(window["webpackJsonpbox-folder-picker"]=window["webpackJsonpbox-folder-picker"]||[]).push([[3],[function(e,t,n){"use strict";e.exports=n(311)},function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"Xd",function(){return i}),n.d(t,"Vd",function(){return a}),n.d(t,"Wd",function(){return l}),n.d(t,"Ne",function(){return s}),n.d(t,"Pe",function(){return c}),n.d(t,"Qe",function(){return u}),n.d(t,"Oe",function(){return f}),n.d(t,"Me",function(){return d}),n.d(t,"Re",function(){return p}),n.d(t,"Se",function(){return h}),n.d(t,"Te",function(){return m}),n.d(t,"He",function(){return v}),n.d(t,"Ge",function(){return y}),n.d(t,"Ie",function(){return b}),n.d(t,"Fe",function(){return g}),n.d(t,"Ee",function(){return w}),n.d(t,"De",function(){return C}),n.d(t,"i",function(){return _}),n.d(t,"h",function(){return k}),n.d(t,"m",function(){return E}),n.d(t,"l",function(){return S}),n.d(t,"k",function(){return O}),n.d(t,"j",function(){return x}),n.d(t,"me",function(){return P}),n.d(t,"ne",function(){return T}),n.d(t,"c",function(){return j}),n.d(t,"d",function(){return I}),n.d(t,"a",function(){return A}),n.d(t,"b",function(){return M}),n.d(t,"Tc",function(){return L}),n.d(t,"Xc",function(){return N}),n.d(t,"Vc",function(){return F}),n.d(t,"Wc",function(){return R}),n.d(t,"Uc",function(){return D}),n.d(t,"nd",function(){return z}),n.d(t,"qd",function(){return U}),n.d(t,"pd",function(){return H}),n.d(t,"md",function(){return B}),n.d(t,"ld",function(){return W}),n.d(t,"od",function(){return V}),n.d(t,"mc",function(){return q}),n.d(t,"fc",function(){return G}),n.d(t,"xc",function(){return K}),n.d(t,"Pc",function(){return Q}),n.d(t,"Kc",function(){return $}),n.d(t,"Ac",function(){return X}),n.d(t,"jc",function(){return Z}),n.d(t,"sc",function(){return J}),n.d(t,"Cc",function(){return Y}),n.d(t,"Dc",function(){return ee}),n.d(t,"rc",function(){return te}),n.d(t,"Bc",function(){return ne}),n.d(t,"bc",function(){return re}),n.d(t,"cc",function(){return oe}),n.d(t,"vc",function(){return ie}),n.d(t,"Hc",function(){return ae}),n.d(t,"dc",function(){return le}),n.d(t,"nc",function(){return se}),n.d(t,"Jc",function(){return ce}),n.d(t,"Xb",function(){return ue}),n.d(t,"lc",function(){return fe}),n.d(t,"qc",function(){return de}),n.d(t,"hc",function(){return pe}),n.d(t,"ec",function(){return he}),n.d(t,"wc",function(){return me}),n.d(t,"zc",function(){return ve}),n.d(t,"gc",function(){return ye}),n.d(t,"Gc",function(){return be}),n.d(t,"Ic",function(){return ge}),n.d(t,"Rc",function(){return we}),n.d(t,"ac",function(){return Ce}),n.d(t,"kc",function(){return _e}),n.d(t,"pc",function(){return ke}),n.d(t,"Qc",function(){return Ee}),n.d(t,"uc",function(){return Se}),n.d(t,"ic",function(){return Oe}),n.d(t,"Nc",function(){return xe}),n.d(t,"oc",function(){return Pe}),n.d(t,"tc",function(){return Te}),n.d(t,"Mc",function(){return je}),n.d(t,"Oc",function(){return Ie}),n.d(t,"Zb",function(){return Ae}),n.d(t,"Ec",function(){return Me}),n.d(t,"Lc",function(){return Le}),n.d(t,"Wb",function(){return Ne}),n.d(t,"Yb",function(){return Fe}),n.d(t,"yc",function(){return Re}),n.d(t,"Fc",function(){return De}),n.d(t,"Ld",function(){return ze}),n.d(t,"Md",function(){return Ue}),n.d(t,"Jd",function(){return He}),n.d(t,"Id",function(){return Be}),n.d(t,"Od",function(){return We}),n.d(t,"Nd",function(){return Ve}),n.d(t,"Hd",function(){return qe}),n.d(t,"Kd",function(){return Ge}),n.d(t,"W",function(){return Ke}),n.d(t,"V",function(){return Qe}),n.d(t,"P",function(){return $e}),n.d(t,"K",function(){return Xe}),n.d(t,"O",function(){return Ze}),n.d(t,"G",function(){return Je}),n.d(t,"I",function(){return Ye}),n.d(t,"J",function(){return et}),n.d(t,"H",function(){return tt}),n.d(t,"R",function(){return nt}),n.d(t,"S",function(){return rt}),n.d(t,"D",function(){return ot}),n.d(t,"L",function(){return it}),n.d(t,"M",function(){return at}),n.d(t,"N",function(){return lt}),n.d(t,"F",function(){return st}),n.d(t,"E",function(){return ct}),n.d(t,"T",function(){return ut}),n.d(t,"U",function(){return ft}),n.d(t,"w",function(){return dt}),n.d(t,"z",function(){return pt}),n.d(t,"v",function(){return ht}),n.d(t,"x",function(){return mt}),n.d(t,"y",function(){return vt}),n.d(t,"A",function(){return yt}),n.d(t,"re",function(){return bt}),n.d(t,"qe",function(){return gt}),n.d(t,"oe",function(){return wt}),n.d(t,"pe",function(){return Ct}),n.d(t,"s",function(){return _t}),n.d(t,"t",function(){return kt}),n.d(t,"u",function(){return Et}),n.d(t,"p",function(){return St}),n.d(t,"o",function(){return Ot}),n.d(t,"q",function(){return xt}),n.d(t,"r",function(){return Pt}),n.d(t,"n",function(){return Tt}),n.d(t,"Gd",function(){return jt}),n.d(t,"Cb",function(){return It}),n.d(t,"Eb",function(){return At}),n.d(t,"Db",function(){return Mt}),n.d(t,"Sb",function(){return Lt}),n.d(t,"Rb",function(){return Nt}),n.d(t,"Vb",function(){return Ft}),n.d(t,"Tb",function(){return Rt}),n.d(t,"Ub",function(){return Dt}),n.d(t,"qb",function(){return zt}),n.d(t,"rb",function(){return Ut}),n.d(t,"ob",function(){return Ht}),n.d(t,"Ab",function(){return Bt}),n.d(t,"xb",function(){return Wt}),n.d(t,"pb",function(){return Vt}),n.d(t,"yb",function(){return qt}),n.d(t,"zb",function(){return Gt}),n.d(t,"sb",function(){return Kt}),n.d(t,"tb",function(){return Qt}),n.d(t,"ub",function(){return $t}),n.d(t,"nb",function(){return Xt}),n.d(t,"wb",function(){return Zt}),n.d(t,"vb",function(){return Jt}),n.d(t,"mb",function(){return Yt}),n.d(t,"X",function(){return en}),n.d(t,"ab",function(){return tn}),n.d(t,"db",function(){return nn}),n.d(t,"bb",function(){return rn}),n.d(t,"cb",function(){return on}),n.d(t,"Y",function(){return an}),n.d(t,"Z",function(){return ln}),n.d(t,"eb",function(){return sn}),n.d(t,"fb",function(){return cn}),n.d(t,"ib",function(){return un}),n.d(t,"jb",function(){return fn}),n.d(t,"kb",function(){return dn}),n.d(t,"gb",function(){return pn}),n.d(t,"hb",function(){return hn}),n.d(t,"lb",function(){return mn}),n.d(t,"Fb",function(){return vn}),n.d(t,"Ob",function(){return yn}),n.d(t,"Pb",function(){return bn}),n.d(t,"Qb",function(){return gn}),n.d(t,"Lb",function(){return wn}),n.d(t,"Nb",function(){return Cn}),n.d(t,"Mb",function(){return _n}),n.d(t,"Bb",function(){return kn}),n.d(t,"Gb",function(){return En}),n.d(t,"Ib",function(){return Sn}),n.d(t,"Jb",function(){return On}),n.d(t,"Hb",function(){return xn}),n.d(t,"Kb",function(){return Pn}),n.d(t,"yd",function(){return Tn}),n.d(t,"zd",function(){return jn}),n.d(t,"xd",function(){return In}),n.d(t,"Ad",function(){return An}),n.d(t,"Bd",function(){return Mn}),n.d(t,"Ed",function(){return Ln}),n.d(t,"Fd",function(){return Nn}),n.d(t,"Dd",function(){return Fn}),n.d(t,"Cd",function(){return Rn}),n.d(t,"sd",function(){return Dn}),n.d(t,"rd",function(){return zn}),n.d(t,"jd",function(){return Un}),n.d(t,"Ue",function(){return Bn}),n.d(t,"Q",function(){return Wn}),n.d(t,"td",function(){return Vn}),n.d(t,"B",function(){return qn}),n.d(t,"C",function(){return Gn}),n.d(t,"le",function(){return Kn}),n.d(t,"ge",function(){return Qn}),n.d(t,"ke",function(){return $n}),n.d(t,"fe",function(){return Xn}),n.d(t,"he",function(){return Zn}),n.d(t,"de",function(){return Jn}),n.d(t,"Yd",function(){return Yn}),n.d(t,"Zd",function(){return er}),n.d(t,"ee",function(){return tr}),n.d(t,"ce",function(){return nr}),n.d(t,"be",function(){return rr}),n.d(t,"ae",function(){return or}),n.d(t,"je",function(){return ir}),n.d(t,"ie",function(){return ar}),n.d(t,"Sc",function(){return lr}),n.d(t,"Td",function(){return sr}),n.d(t,"Rd",function(){return cr}),n.d(t,"Sd",function(){return ur}),n.d(t,"Qd",function(){return fr}),n.d(t,"Ud",function(){return dr}),n.d(t,"Zc",function(){return pr}),n.d(t,"bd",function(){return hr}),n.d(t,"cd",function(){return mr}),n.d(t,"Yc",function(){return vr}),n.d(t,"ad",function(){return yr}),n.d(t,"ed",function(){return br}),n.d(t,"gd",function(){return gr}),n.d(t,"dd",function(){return wr}),n.d(t,"id",function(){return Cr}),n.d(t,"hd",function(){return _r}),n.d(t,"fd",function(){return kr}),n.d(t,"Ke",function(){return Er}),n.d(t,"Je",function(){return Sr}),n.d(t,"Le",function(){return Or}),n.d(t,"Pd",function(){return xr}),n.d(t,"f",function(){return Pr}),n.d(t,"g",function(){return Tr}),n.d(t,"vd",function(){return jr}),n.d(t,"wd",function(){return Ir}),n.d(t,"se",function(){return Ar}),n.d(t,"te",function(){return Mr}),n.d(t,"ue",function(){return Lr}),n.d(t,"Ae",function(){return Nr}),n.d(t,"ve",function(){return Fr}),n.d(t,"we",function(){return Rr}),n.d(t,"ye",function(){return Dr}),n.d(t,"xe",function(){return zr}),n.d(t,"ze",function(){return Ur}),n.d(t,"Ce",function(){return Hr}),n.d(t,"Be",function(){return Br}),n.d(t,"kd",function(){return Wr}),n.d(t,"ud",function(){return Vr});var r=n(94),o=1e3,i="small",a="large",l="medium",s="folder",c="search",u="selected",f="recents",d="error",p="upload-empty",h="upload-inprogress",m="upload-success",v="folder",y="file",b="web_link",g="folder_",w="file_",C="feedItems_",_=g,k=w,E="web_link_",S="search_",O="recents_",x="metadata_",P="ASC",T="DESC",j="none",I="open",A="collaborators",M="company",L="Accept",N="Content-Type",F="X-Box-Client-Name",R="X-Box-Client-Version",D="Accept-Language",z="securityClassification-6VMVochwUWo",U="boxSkillsCards",H="properties",B="global",W="enterprise",V=o,q="id",G="date",K="name",Q="type",$="size",X="parent",Z="extension",J="expires_at",Y="permissions",ee="".concat(Y,".can_upload"),te="item_collection",ne="path_collection",re="content_created_at",oe="content_modified_at",ie="modified_at",ae="restored_from",le="created_at",se="interacted_at",ce="shared_link",ue="allowed_shared_link_access_levels",fe="has_collaborations",de="is_externally_owned",pe="download_url",he="created_by",me="modified_by",ve="owned_by",ye="description",be="representations",ge="sha1",we="watermark_info",Ce="authenticated_download_url",_e="file_version",ke="is_download_available",Ee="version_number",Se="".concat("metadata",".").concat(B,".").concat(U),Oe=("".concat("metadata",".").concat(B,".").concat(H),"".concat("metadata",".").concat(W,".").concat(z),"due_at"),xe="task_assignment_collection",Pe="is_completed",Te="message",je="tagged_message",Ie="trashed_at",Ae="assigned_to",Me="",Le="status",Ne="activity_template",Fe="app",Re="occurred_at",De="rendered_text",ze="can_preview",Ue="can_rename",He="can_download",Be="can_delete",We="can_upload",Ve="can_share",qe="can_comment",Ge="can_edit",Ke="slash",Qe="caret",$e="2.5.1",Xe="en-US",Ze="platform/preview",Je="https://api.box.com",Ye="https://cdn01.boxcdn.net",et="https://upload.box.com",tt="https://app.box.com",nt="0",rt=500,ot=500,it=5,at=1,lt=50,st=0,ct=1e3,ut="files",ft="recents",dt="ContentPicker",pt="ContentUploader",ht="ContentExplorer",mt="ContentPreview",vt="ContentSidebar",yt="ContentOpenWith",bt="pending",gt="inprogress",wt="complete",Ct="error",_t="be-modal-dialog-content",kt="be-modal-dialog-content-full-bleed",Et="be-modal-dialog-overlay",St="be-is-small",Ot="be-is-medium",xt="be-is-touch",Pt="be-modal",Tt="bcow-integration-icon",jt="overlay-wrapper",It="item_name_invalid",At="item_name_too_long",Mt="item_name_in_use",Lt="upload_file_limit",Nt="child_folder_failed_upload",Ft="storage_limit_exceeded",Rt="file_size_limit_exceeded",Dt="pending_app_folder_size_limit",zt="fetch_file_error",Ut="fetch_folder_error",Ht="fetch_comments_error",Bt="fetch_versions_error",Wt="fetch_tasks_error",Vt="fetch_current_user_error",qt="fetch_task_assignment_error",Gt="fetch_task_collaborator_error",Kt="fetch_integrations_error",Qt="fetch_metadata_error",$t="fetch_metadata_templates_error",Xt="fetch_access_stats_error",Zt="fetch_skills_error",Jt="fetch_recents_error",Yt="execute_integrations_error",en="create_comment_error",tn="create_task_error",nn="create_task_link_error",rn="create_task_assignment_error",on="create_task_collaborator_error",an="create_folder_error",ln="create_metadata_error",sn="delete_app_activity_error",cn="delete_comment_error",un="delete_task_error",fn="delete_task_assignment_error",dn="delete_task_collaborator_error",pn="delete_item_error",hn="delete_metadata_error",mn="delete_version_error",vn="promote_version_error",yn="update_task_error",bn="update_task_assignment_error",gn="update_task_collaborator_error",wn="update_comment_error",Cn="update_skills_error",_n="update_metadata_error",kn="get_download_url_error",En="rename_item_error",Sn="share_item_error",On="unexpected_exception_error",xn="search_error",Pn="unknown_error",Tn="content_preview",jn="content_sidebar",In="activity_sidebar",An="details_sidebar",Mn="metadata_sidebar",Ln="skills_sidebar",Nn="versions_sidebar",Fn="preview",Rn="open_with",Dn="preview_metric",zn="elements_load_metric",Un="isErrorDisplayed",Hn=r.a.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",Bn="".concat("[3d][pdf][text][mp3]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(Hn),Wn=3e3,Vn=1e3,qn="#999",Gn="#fff",Kn="transcript",Qn="keyword",$n="timeline",Xn="face",Zn="status",Jn="skills_invocations_error",Yn="skills_billing_error",er="skills_external_auth_error",tr="skills_unknown_error",nr="skills_invalid_file_size_error",rr="skills_invalid_file_format_error",or="skills_file_processing_error",ir="skills_pending_status",ar="skills_invoked_status",lr="boxnote",sr="skills",cr="details",ur="metadata",fr="activity",dr="versions",pr="GET",hr="POST",mr="PUT",vr="DELETE",yr="OPTIONS",br=403,gr=404,wr=409,Cr=401,_r=429,kr=500,Er="restore",Sr="delete",Or="upload",xr={type:"user",id:"2",name:""},Pr="1338",Tr="13418",jr=26,Ir=30,Ar="approved",Mr="completed",Lr="incomplete",Nr="rejected",Fr="APPROVED",Rr="COMPLETED",Dr="NOT_STARTED",zr="IN_PROGRESS",Ur="REJECTED",Hr="GENERAL",Br="APPROVAL",Wr={arrowDown:"ArrowDown",arrowLeft:"ArrowLeft",arrowRight:"ArrowRight",arrowUp:"ArrowUp",backspace:"Backspace",enter:"Enter",space:" "},Vr=36e5},function(e,t,n){"use strict";var r=n(3),o=Object(r.f)({today:{id:"be.today",defaultMessage:"today"},yesterday:{id:"be.yesterday",defaultMessage:"yesterday"},logo:{id:"be.logo",defaultMessage:"Logo"},error:{id:"be.error",defaultMessage:"Error"},preview:{id:"be.preview",defaultMessage:"Preview"},previewError:{id:"be.previewError",defaultMessage:"We\u2019re sorry, the preview didn\u2019t load. Please refresh the page."},previewUpdate:{id:"be.previewUpdate",defaultMessage:"A new version of this file is available."},reload:{id:"be.reload",defaultMessage:"Reload"},open:{id:"be.open",defaultMessage:"Open"},close:{id:"be.close",defaultMessage:"Close"},copy:{id:"be.copy",defaultMessage:"Copy"},delete:{id:"be.delete",defaultMessage:"Delete"},rename:{id:"be.rename",defaultMessage:"Rename"},remove:{id:"be.remove",defaultMessage:"Remove"},retry:{id:"be.retry",defaultMessage:"Retry"},share:{id:"be.share",defaultMessage:"Share"},download:{id:"be.download",defaultMessage:"Download"},save:{id:"be.save",defaultMessage:"Save"},cancel:{id:"be.cancel",defaultMessage:"Cancel"},create:{id:"be.create",defaultMessage:"Create"},choose:{id:"be.choose",defaultMessage:"Choose"},upload:{id:"be.upload",defaultMessage:"Upload"},add:{id:"be.add",defaultMessage:"Add"},sort:{id:"be.sort",defaultMessage:"Sort"},newFolder:{id:"be.newFolder",defaultMessage:"New Folder"},in:{id:"be.in",defaultMessage:"In"},print:{id:"be.print",defaultMessage:"Print"},selected:{id:"be.selected",defaultMessage:"{count} Selected"},max:{id:"be.max",defaultMessage:"max"},nameDate:{id:"be.nameDate",defaultMessage:"{date} by {name}"},modified:{id:"be.itemModified",defaultMessage:"Modified"},modifiedDateBy:{id:"be.modifiedDateBy",defaultMessage:"Modified {date} by {name}"},modifiedDate:{id:"be.modifiedDate",defaultMessage:"Modified {date}"},created:{id:"be.itemCreated",defaultMessage:"Created"},owner:{id:"be.itemOwner",defaultMessage:"Owner"},uploader:{id:"be.itemUploader",defaultMessage:"Uploader"},interacted:{id:"be.itemInteracted",defaultMessage:"Last Accessed"},interactedDate:{id:"be.interactedDate",defaultMessage:"Last accessed on {date}"},name:{id:"be.itemName",defaultMessage:"Name"},size:{id:"be.itemSize",defaultMessage:"Size"},deleteDialogLabel:{id:"be.deleteDialogLabel",defaultMessage:"Confirm Delete"},deleteDialogFileText:{id:"be.deleteDialogFileText",defaultMessage:"Are you sure you want to delete {name}?"},deleteDialogFolderText:{id:"be.deleteDialogFolderText",defaultMessage:"Are you sure you want to delete {name} and all its contents?"},renameDialogLabel:{id:"be.renameDialogLabel",defaultMessage:"Rename"},renameDialogText:{id:"be.renameDialogText",defaultMessage:"Please enter a new name for {name}:"},renameDialogErrorInvalid:{id:"be.renameDialogErrorInvalid",defaultMessage:"This name is invalid."},renameDialogErrorInUse:{id:"be.renameDialogErrorInUse",defaultMessage:"An item with the same name already exists."},renameDialogErrorTooLong:{id:"be.renameDialogErrorTooLong",defaultMessage:"This name is too long."},createDialogLabel:{id:"be.createDialogLabel",defaultMessage:"New Folder"},createDialogText:{id:"be.createDialogText",defaultMessage:"Please enter a name."},createDialogErrorInvalid:{id:"be.createDialogErrorInvalid",defaultMessage:"This is an invalid folder name."},createDialogErrorTooLong:{id:"be.createDialogErrorTooLong",defaultMessage:"This folder name is too long."},createDialogErrorInUse:{id:"be.createDialogErrorInUse",defaultMessage:"A folder with the same name already exists."},shareDialogLabel:{id:"be.shareDialogLabel",defaultMessage:"Share"},shareDialogText:{id:"be.shareDialogText",defaultMessage:"Shared Link:"},shareDialogNone:{id:"be.shareDialogNone",defaultMessage:"None"},shareAccessOpen:{id:"be.shareAccessOpen",defaultMessage:"Access: People with the link"},shareAccessCollab:{id:"be.shareAccessCollab",defaultMessage:"Access: People in this folder"},shareAccessCompany:{id:"be.shareAccessCompany",defaultMessage:"People in this company"},shareAccessNone:{id:"be.shareAccessNone",defaultMessage:"No shared link"},shareAccessRemove:{id:"be.shareAccessRemove",defaultMessage:"Remove shared link"},searchPlaceholder:{id:"be.searchPlaceholder",defaultMessage:"Search files and folders"},sidebarAccessStats:{id:"be.sidebarAccessStats",defaultMessage:"Access Stats"},sidebarShow:{id:"be.sidebarShow",defaultMessage:"Show Sidebar"},sidebarHide:{id:"be.sidebarHide",defaultMessage:"Hide Sidebar"},description:{id:"be.description",defaultMessage:"Description"},descriptionPlaceholder:{id:"be.descriptionPlaceholder",defaultMessage:"Enter a description"},sidebarDetailsTitle:{id:"be.sidebarDetailsTitle",defaultMessage:"Details"},sidebarSkillsTitle:{id:"be.sidebarSkillsTitle",defaultMessage:"Skills"},sidebarSkillsErrorTitle:{id:"be.sidebarSkillsErrorTitle",defaultMessage:"Skills Error"},sidebarSkillsErrorContent:{id:"be.sidebarSkillsErrorContent",defaultMessage:"An error has occurred while updating skills. Please refresh the page and try again."},sidebarActivityTitle:{id:"be.sidebarActivityTitle",defaultMessage:"Activity"},sidebarMetadataTitle:{id:"be.sidebarMetadataTitle",defaultMessage:"Metadata"},sidebarMetadataEditingErrorContent:{id:"be.sidebarMetadataEditingErrorContent",defaultMessage:"An error has occurred while updating metadata. Please refresh the page and try again."},sidebarMetadataFetchingErrorContent:{id:"be.sidebarMetadataFetchingErrorContent",defaultMessage:"An error has occurred while fetching metadata. Please refresh the page and try again."},sidebarFileFetchingErrorContent:{id:"be.sidebarFileFetchingErrorContent",defaultMessage:"An error has occurred while fetching your Box file. Please refresh the page and try again."},sidebarProperties:{id:"be.sidebarProperties",defaultMessage:"File Properties"},defaultSkill:{id:"be.defaultSkill",defaultMessage:"Skill Card"},statusSkill:{id:"be.statusSkill",defaultMessage:"Status"},topicsSkill:{id:"be.topicsSkill",defaultMessage:"Topics"},keywordSkill:{id:"be.keywordSkill",defaultMessage:"Topics"},faceSkill:{id:"be.faceSkill",defaultMessage:"Faces"},transcriptSkill:{id:"be.transcriptSkill",defaultMessage:"Transcript"},skillPendingStatus:{id:"be.skillPendingStatus",defaultMessage:"We\u2019re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We\u2019re preparing to process your file - please hold!"},skillUnknownError:{id:"be.skillUnknownError",defaultMessage:"Something went wrong with running this skill or fetching its data."},skillInvalidFileSizeError:{id:"be.skillInvalidFileSizeError",defaultMessage:"We\u2019re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We\u2019re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We\u2019re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We\u2019re sorry, something went wrong with processing the file."},uploadErrorTooManyFiles:{id:"be.uploadErrorTooManyFiles",defaultMessage:"You can only upload up to {fileLimit} file(s) at a time."},uploadError:{id:"be.uploadError",defaultMessage:"A network error has occurred while trying to upload."},uploadEmptyWithFolderUploadEnabled:{id:"be.uploadEmptyWithFolderUploadEnabled",defaultMessage:"Drag and drop files and folders"},uploadEmptyWithFolderUploadDisabled:{id:"be.uploadEmptyWithFolderUploadDisabled",defaultMessage:"Drag and drop files"},uploadEmptyFileInput:{id:"be.uploadEmptyFileInput",defaultMessage:"Browse your device"},uploadEmptyFolderInput:{id:"be.uploadEmptyFolderInput",defaultMessage:"Select Folders"},uploadNoDragDrop:{id:"be.uploadNoDragDrop",defaultMessage:"Select files from your device"},uploadInProgress:{id:"be.uploadInProgress",defaultMessage:"Drag and drop to add additional files"},uploadSuccess:{id:"be.uploadSuccess",defaultMessage:"Success! Your files have been uploaded."},uploadSuccessFileInput:{id:"be.uploadSuccessFileInput",defaultMessage:"Select More Files"},uploadSuccessFolderInput:{id:"be.uploadSuccessFolderInput",defaultMessage:"Select More Folders"},uploadOptions:{id:"be.uploadOptions",defaultMessage:"{option1} or {option2}"},nameASC:{id:"be.nameASC",defaultMessage:"Name: A \u2192 Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z \u2192 A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest \u2192 Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest \u2192 Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest \u2192 Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest \u2192 Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn\u2019t find what you\u2019re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven\u2019t selected any items yet."},errorState:{id:"be.errorState",defaultMessage:"A network error has occurred while trying to load."},folderState:{id:"be.folderState",defaultMessage:"There are no items in this folder."},recentsState:{id:"be.recentsState",defaultMessage:"There are no recent items yet."},loadingState:{id:"be.loadingState",defaultMessage:"Please wait while the items load..."},errorBreadcrumb:{id:"be.errorBreadcrumb",defaultMessage:"Error"},rootBreadcrumb:{id:"be.rootBreadcrumb",defaultMessage:"All Files"},searchBreadcrumb:{id:"be.searchBreadcrumb",defaultMessage:"Search Results"},recentsBreadcrumb:{id:"be.recentsBreadcrumb",defaultMessage:"Recents"},selectedBreadcrumb:{id:"be.selectedBreadcrumb",defaultMessage:"Selected Items"},uploadsManagerUploadInProgress:{id:"be.uploadsManagerUploadInProgress",defaultMessage:"Uploading"},uploadsManagerUploadPrompt:{id:"be.uploadsManagerUploadPrompt",defaultMessage:"Drop files on this page to upload them into this folder."},uploadsManagerUploadComplete:{id:"be.uploadsManagerUploadComplete",defaultMessage:"Completed"},uploadsManagerUploadFailed:{id:"be.uploadsManagerUploadFailed",defaultMessage:"Some Uploads Failed"},uploadsCancelButtonTooltip:{id:"be.uploadsCancelButtonTooltip",defaultMessage:"Cancel this upload"},uploadsRetryButtonTooltip:{id:"be.uploadsRetryButtonTooltip",defaultMessage:"Retry upload"},uploadsFileSizeLimitExceededErrorMessage:{id:"be.uploadsFileSizeLimitExceededErrorMessage",defaultMessage:"File size exceeds the folder owner\u2019s file size limit"},uploadsStorageLimitErrorMessage:{id:"be.uploadsStorageLimitErrorMessage",defaultMessage:"Account storage limit reached"},uploadsPendingFolderSizeLimitErrorMessage:{id:"be.uploadsPendingFolderSizeLimitErrorMessage",defaultMessage:"Pending app folder size limit exceeded"},uploadsItemNameInUseErrorMessage:{id:"be.uploadsItemNameInUseErrorMessage",defaultMessage:"A file with this name already exists."},uploadsProvidedFolderNameInvalidMessage:{id:"be.uploadsProvidedFolderNameInvalidMessage",defaultMessage:"Provided folder name, {name}, could not be used to create a folder."},uploadsOneOrMoreChildFoldersFailedToUploadMessage:{id:"be.uploadsOneOrMoreChildFoldersFailedToUploadMessage",defaultMessage:"One or more child folders failed to upload."},uploadsDefaultErrorMessage:{id:"be.uploadsDefaultErrorMessage",defaultMessage:"Something went wrong with the upload. Please try again."},approvalAddAssignee:{id:"be.approvalAddAssignee",defaultMessage:"Add an assignee"},approvalAddTask:{id:"be.approvalAddTask",defaultMessage:"Add Task"},approvalAddTaskTooltip:{id:"be.approvalAddTaskTooltip",defaultMessage:"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny."},approvalAssignees:{id:"be.approvalAssignees",defaultMessage:"Assignees"},approvalDueDate:{id:"be.approvalDueDate",defaultMessage:"Due Date"},approvalSelectDate:{id:"be.approvalSelectDate",defaultMessage:"Select a date"},atMentionTip:{id:"be.atMentionTip",defaultMessage:"@mention users to notify them."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},commentCancel:{id:"be.commentCancel",defaultMessage:"Cancel"},commentDeletePrompt:{id:"be.commentDeletePrompt",defaultMessage:"Delete comment?"},commentPost:{id:"be.commentPost",defaultMessage:"Post"},commentShowOriginal:{id:"be.commentShowOriginal",defaultMessage:"Show Original"},commentTranslate:{id:"be.commentTranslate",defaultMessage:"Translate"},commentWrite:{id:"be.commentWrite",defaultMessage:"Write a comment"},commentPostedFullDateTime:{id:"be.commentPostedFullDateTime",defaultMessage:"{time, date, full} at {time, time, short}"},commentCreateErrorMessage:{id:"be.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},taskDeletePrompt:{id:"be.taskDeletePrompt",defaultMessage:"Delete task?"},taskCreateErrorTitle:{id:"be.taskCreateErrorTitle",defaultMessage:"Error"},taskCreateErrorMessage:{id:"be.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskUpdateErrorMessage:{id:"be.taskEditErrorMessage",defaultMessage:"There was an error updating this task."},taskDeleteErrorMessage:{id:"be.taskDeleteErrorMessage",defaultMessage:"There was an error deleting this task."},completedAssignment:{id:"be.completedAssignment",defaultMessage:"Completed"},appActivityDeleteErrorMessage:{id:"be.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},appActivityCreatedAtFullDateTime:{id:"be.appActivityCreatedAtFullDateTime",defaultMessage:"{time, date, full} at {time, time, short}"},appActivityDeletePrompt:{id:"be.appActivityDeletePrompt",defaultMessage:"Delete App Activity?"},appActivityAltIcon:{id:"be.appActivityAltIcon",defaultMessage:"{appActivityName} Icon"},editLabel:{id:"be.editLabel",defaultMessage:"Edit"},getVersionInfo:{id:"be.getVersionInfo",defaultMessage:"Get version information"},keywordsApplied:{id:"be.keywordsAppliedList",defaultMessage:"Keywords were applied"},keywordsList:{id:"be.keywordsList",defaultMessage:"Keywords: {words}"},noActivity:{id:"be.noActivity",defaultMessage:"No Activity Yet"},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},rejectedAssignment:{id:"be.rejectedAssignment",defaultMessage:"Rejected"},taskApprove:{id:"be.taskApprove",defaultMessage:"Complete"},taskDueDate:{id:"be.taskDueDate",defaultMessage:"Due"},tasksForApproval:{id:"be.tasksForApproval",defaultMessage:"Tasks"},taskReject:{id:"be.taskReject",defaultMessage:"Decline"},taskDueDateLabel:{id:"be.tasks.taskDueDate",defaultMessage:"Due: {date}"},tasksAddTask:{id:"be.tasks.addTask",defaultMessage:"Add Task"},taskAddTaskGeneral:{id:"be.tasks.addTask.general",defaultMessage:"Task"},taskAddTaskGeneralDescription:{id:"be.tasks.addTask.general.description",defaultMessage:"Keep track of work that needs to get done"},taskAddTaskApproval:{id:"be.tasks.addTask.approval",defaultMessage:"Approval"},taskAddTaskApprovalDescription:{id:"be.tasks.addTask.approval.description",defaultMessage:"Request an approval to move work forward"},tasksCreateGeneralTaskFormTitle:{id:"be.tasks.createTask.general.title",defaultMessage:"Create General Task"},tasksCreateApprovalTaskFormTitle:{id:"be.tasks.createTask.approval.title",defaultMessage:"Create Approval Task"},tasksAddTaskFormSelectAssigneesLabel:{id:"be.tasks.addTaskForm.selectAssigneesLabel",defaultMessage:"Select Assignee(s)"},tasksAddTaskFormMessageLabel:{id:"be.tasks.addTaskForm.messageLabel",defaultMessage:"Message"},tasksAddTaskFormDueDateLabel:{id:"be.tasks.addTaskForm.dueDateLabel",defaultMessage:"Due Date"},tasksAddTaskFormSubmitLabel:{id:"be.tasks.addTaskForm.submit",defaultMessage:"Add Task"},tasksAddTaskFormCancelLabel:{id:"be.tasks.addTaskForm.cancel",defaultMessage:"Cancel"},tasksFeedApproveAction:{id:"be.tasks.feed.approveAction",defaultMessage:"Approve"},tasksFeedCompleteAction:{id:"be.tasks.feed.completeAction",defaultMessage:"Mark as Complete"},tasksFeedRejectAction:{id:"be.tasks.feed.rejectAction",defaultMessage:"Reject"},tasksFeedCompletedLabel:{id:"be.tasks.feed.completedLabel",defaultMessage:"Task Complete"},tasksFeedApprovedLabel:{id:"be.tasks.feed.approvedLabel",defaultMessage:"Task Approved"},tasksFeedRejectedLabel:{id:"be.tasks.feed.rejectedLabel",defaultMessage:"Task Rejected"},tasksFeedIncompleteLabel:{id:"be.tasks.feed.incompleteLabel",defaultMessage:"Awaiting Assignees"},tasksFeedHeadlineApprovalCurrentUser:{id:"be.tasks.feed.headline.approval.currentUser",defaultMessage:"{user} assigned you an Approval Task"},tasksFeedHeadlineApproval:{id:"be.tasks.feed.headline.approval",defaultMessage:"{user} assigned an Approval Task"},tasksFeedHeadlineGeneralCurrentUser:{id:"be.tasks.feed.headline.general.currentUser",defaultMessage:"{user} assigned you a Task"},tasksFeedHeadlineGeneral:{id:"be.tasks.feed.headline.general",defaultMessage:"{user} assigned a Task"},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted version {version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored version {version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded versions {versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded versions {versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded version {version_number}"},defaultInlineErrorContentMessage:{id:"be.defaultInlineErrorContentMessage",defaultMessage:"Please try again later."},fileDescriptionInlineErrorTitleMessage:{id:"be.fileDescriptionInlineErrorTitleMessage",defaultMessage:"Something went wrong when saving the description."},defaultErrorMaskHeaderMessage:{id:"be.defaultErrorMaskHeaderMessage",defaultMessage:"We\u2019re sorry, something went wrong."},defaultErrorMaskSubHeaderMessage:{id:"be.defaultErrorMaskSubHeaderMessage",defaultMessage:"Please refresh the page or try again later."},fileAccessStatsErrorHeaderMessage:{id:"be.fileAccessStatsErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the access stats."},fileAccessStatsPermissionsError:{id:"be.accessStatsPermissionsError",defaultMessage:"Sorry, you do not have permission to see the access stats for this file."},fileClassificationErrorHeaderMessage:{id:"be.fileClassificationErrorHeaderMessage",defaultMessage:"Something went wrong when fetching classification."},currentUserErrorHeaderMessage:{id:"be.currentUserErrorHeaderMessage",defaultMessage:"Something went wrong when fetching the current user."},activityFeedItemApiError:{id:"be.activityFeedItemApiError",defaultMessage:"There was a problem loading the activity feed. Please refresh the page or try again later."},nextFile:{id:"be.nextFile",defaultMessage:"Next File"},nextPage:{id:"be.pagination.nextPage",defaultMessage:"Next Page"},pageStatus:{id:"be.pagination.pageStatus",defaultMessage:"{pageNumber} of {pageCount}"},previousFile:{id:"be.previousFile",defaultMessage:"Previous File"},previousPage:{id:"be.pagination.previousPage",defaultMessage:"Previous Page"},previousSegment:{id:"be.previousSegment",defaultMessage:"Previous Segment"},nextSegment:{id:"be.nextSegment",defaultMessage:"Next Segment"},transcriptEdit:{id:"be.transcriptEdit",defaultMessage:"Click any section to edit."},emptyOpenWithDescription:{id:"be.emptyOpenWithDescription",defaultMessage:"No integrations are available for this file"},errorOpenWithDescription:{id:"be.errorOpenWithDescription",defaultMessage:"Opening this file with other services is currently unavailable"},defaultOpenWithDescription:{id:"be.defaultOpenWithDescription",defaultMessage:"Open this file with a partner service"},executeIntegrationOpenWithErrorHeader:{id:"be.executeIntegrationOpenWithErrorHeader",defaultMessage:"We\u2019re sorry, this integration is currently unavailable."},executeIntegrationOpenWithErrorSubHeader:{id:"be.executeIntegrationOpenWithErrorSubHeader",defaultMessage:"Please try again later."},boxToolsInstallMessage:{id:"be.boxToolsInstallMessage",defaultMessage:"Install {boxTools} to open this file on your desktop"},boxToolsBlacklistedError:{id:"be.boxEditBlacklistedError",defaultMessage:"This file cannot be opened locally"},drawAnnotation:{id:"be.drawAnnotation",defaultMessage:"Drawing annotation mode"},pointAnnotation:{id:"be.pointAnnotation",defaultMessage:"Point annotation mode"},expand:{id:"be.expand",defaultMessage:"Expand"},collapse:{id:"be.collapse",defaultMessage:"Collapse"},back:{id:"be.back",defaultMessage:"Back"}});t.a=o},function(e,t,n){"use strict";var r=n(285),o=n.n(r),i=n(71),a=n.n(i),l=n(100),s=n.n(l),c=n(11),u=n.n(c),f=n(0),d=n.n(f),p=n(286),h=n.n(p),m=n(114),v=n.n(m);function y(e){return JSON.stringify(e.map(function(e){return e&&"object"===typeof e?(t=e,Object.keys(t).sort().map(function(e){var n;return(n={})[e]=t[e],n})):e;var t}))}var b=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(a.a.__addLocaleData(e),s.a.__addLocaleData(e))})}function C(e){var t=e&&e.toLowerCase();return!(!a.a.__localeData__[t]||!s.a.__localeData__[t])}var _="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=(function(){function e(e){this.value=e}function t(t){var n,r;function o(n,r){try{var a=t[n](r),l=a.value;l instanceof e?Promise.resolve(l.value).then(function(e){o("next",e)},function(e){o("throw",e)}):i(a.done?"return":"normal",a.value)}catch(s){i("throw",s)}}function i(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?o(n.key,n.arg):r=null}this._invoke=function(e,t){return new Promise(function(i,a){var l={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=l:(n=r=l,o(e,t))})},"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),E=function(){function e(e,t){for(var n=0;n":">","<":"<",'"':""","'":"'"},J=/[&><"']/g;function Y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function ee(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).intl;v()(e,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function te(e,t){if(e===t)return!0;if("object"!==("undefined"===typeof e?"undefined":_(e))||null===e||"object"!==("undefined"===typeof t?"undefined":_(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=Object.prototype.hasOwnProperty.bind(t),i=0;i3&&void 0!==arguments[3]?arguments[3]:{},s=a.intl,c=void 0===s?{}:s,u=l.intl,f=void 0===u?{}:u;return!te(t,r)||!te(n,o)||!(f===c||te(Y(f,X),Y(c,X)))}function re(e,t){return"[React Intl] "+e+(t?"\n"+t:"")}function oe(e){0}function ie(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.intlPropName,o=void 0===r?"intl":r,i=n.withRef,a=void 0!==i&&i,l=function(t){function n(e,t){k(this,n);var r=P(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return ee(t),r}return x(n,t),E(n,[{key:"getWrappedInstance",value:function(){return v()(a,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return d.a.createElement(e,O({},this.props,S({},o,this.context.intl),{ref:a?function(e){return t._wrappedInstance=e}:null}))}}]),n}(f.Component);return l.displayName="InjectIntl("+((t=e).displayName||t.name||"Component")+")",l.contextTypes={intl:q},l.WrappedComponent=e,h()(l,e)}function ae(e){return e}function le(e){return a.a.prototype._resolveLocale(e)}function se(e){return a.a.prototype._findPluralRuleFunction(e)}var ce=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,e);var r="ordinal"===n.style,o=se(le(t));this.format=function(e){return o(e,r)}},ue=Object.keys(G),fe=Object.keys(K),de=Object.keys(Q),pe=Object.keys($),he={second:60,minute:60,hour:24,day:30,month:12};function me(e){var t=s.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function ve(e,t,n,r){var o=e&&e[t]&&e[t][n];if(o)return o;r(re("No "+t+" format named: "+n))}function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=e.messages,l=e.defaultLocale,s=e.defaultFormats,c=n.id,u=n.defaultMessage;v()(c,"[React Intl] An `id` must be provided to format a message.");var f=a&&a[c];if(!(Object.keys(r).length>0))return f||u||c;var d=void 0,p=e.onError||oe;if(f)try{d=t.getMessageFormat(f,o,i).format(r)}catch(h){p(re('Error formatting message: "'+c+'" for locale: "'+o+'"'+(u?", using default message as fallback.":""),h))}else(!u||o&&o.toLowerCase()!==l.toLowerCase())&&p(re('Missing message: "'+c+'" for locale: "'+o+'"'+(u?", using default message as fallback.":"")));if(!d&&u)try{d=t.getMessageFormat(u,l,s).format(r)}catch(h){p(re('Error formatting the default message for: "'+c+'"',h))}return d||p(re('Cannot format message: "'+c+'", using message '+(f||u?"source":"id")+" as fallback.")),d||f||u||c}var be=Object.freeze({formatDate:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=e.timeZone,l=r.format,s=e.onError||oe,c=new Date(n),u=O({},a&&{timeZone:a},l&&ve(i,"date",l,s)),f=Y(r,ue,u);try{return t.getDateTimeFormat(o,f).format(c)}catch(d){s(re("Error formatting date.",d))}return String(c)},formatTime:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=e.timeZone,l=r.format,s=e.onError||oe,c=new Date(n),u=O({},a&&{timeZone:a},l&&ve(i,"time",l,s)),f=Y(r,ue,u);f.hour||f.minute||f.second||(f=O({},f,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(o,f).format(c)}catch(d){s(re("Error formatting time.",d))}return String(c)},formatRelative:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=r.format,l=e.onError||oe,c=new Date(n),u=new Date(r.now),f=a&&ve(i,"relative",a,l),d=Y(r,de,f),p=O({},s.a.thresholds);me(he);try{return t.getRelativeFormat(o,d).format(c,{now:isFinite(u)?u:t.now()})}catch(h){l(re("Error formatting relative time.",h))}finally{me(p)}return String(c)},formatNumber:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=e.formats,a=r.format,l=e.onError||oe,s=a&&ve(i,"number",a,l),c=Y(r,fe,s);try{return t.getNumberFormat(o,c).format(n)}catch(u){l(re("Error formatting number.",u))}return String(n)},formatPlural:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=e.locale,i=Y(r,pe),a=e.onError||oe;try{return t.getPluralFormat(o,i).format(n)}catch(l){a(re("Error formatting plural.",l))}return"other"},formatMessage:ye,formatHTMLMessage:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return ye(e,t,n,Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"===typeof n?(""+n).replace(J,function(e){return Z[e]}):n,e},{}))}}),ge=Object.keys(W),we=Object.keys(V),Ce={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:oe},_e=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,t);var r=P(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));v()("undefined"!==typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var o=n.intl,i=void 0;i=isFinite(e.initialNow)?Number(e.initialNow):o?o.now():Date.now();var l=(o||{}).formatters,c=void 0===l?{getDateTimeFormat:b(Intl.DateTimeFormat),getNumberFormat:b(Intl.NumberFormat),getMessageFormat:b(a.a),getRelativeFormat:b(s.a),getPluralFormat:b(ce)}:l;return r.state=O({},c,{now:function(){return r._didDisplay?Date.now():i}}),r}return x(t,e),E(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=Y(this.props,ge,e);for(var n in Ce)void 0===t[n]&&(t[n]=Ce[n]);if(!function(e){for(var t=(e||"").split("-");t.length>0;){if(C(t.join("-")))return!0;t.pop()}return!1}(t.locale)){var r=t,o=r.locale,i=r.defaultLocale,a=r.defaultFormats;(0,r.onError)(re('Missing locale data for locale: "'+o+'". Using default locale: "'+i+'" as fallback.')),t=O({},t,{locale:i,formats:a,messages:Ce.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return we.reduce(function(n,r){return n[r]=be[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,o=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["now"]);return{intl:O({},e,t,{formatters:o,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?o-1:0),a=1;a0){var y=Math.floor(1099511627776*Math.random()).toString(16),b=function(){var e=0;return function(){return"ELEMENT-"+y+"-"+(e+=1)}}();h="@__"+y+"__@",m={},v={},Object.keys(c).forEach(function(e){var t=c[e];if(Object(f.isValidElement)(t)){var n=b();m[e]=h+n+h,v[n]=t}else m[e]=t})}var g=n({id:a,description:l,defaultMessage:s},m||c),w=void 0;return w=v&&Object.keys(v).length>0?g.split(h).filter(function(e){return!!e}).map(function(e){return v[e]||e}):[g],"function"===typeof p?p.apply(void 0,T(w)):f.createElement.apply(void 0,[d,null].concat(T(w)))}}]),t}(f.Component);Le.displayName="FormattedMessage",Le.contextTypes={intl:q},Le.defaultProps={values:{}};var Ne=function(e){function t(e,n){k(this,t);var r=P(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return ee(n),r}return x(t,e),E(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!te(n,t))return!0;for(var r=O({},e,{values:t}),o=arguments.length,i=Array(o>1?o-1:0),a=1;a=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;n=r.fd}},function(e,t,n){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;tt?t:r}function y(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function b(e){var t=y(d(e));return!!t&&t.isDirectory}function g(e){return new Promise(function(t){e.file(function(e){t(e)})})}function w(e){return C.apply(this,arguments)}function C(){var e;return e=o.a.mark(function e(t){var n,r,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n=d(t),r=y(n)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,g(r);case 6:if(i=e.sent,!u(t)){e.next=9;break}return e.abrupt("return",{file:i,options:h(t)});case 9:return e.abrupt("return",i);case 10:case"end":return e.stop()}},e,this)}),(C=function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)})}).apply(this,arguments)}function _(e,t){if(!c(e))return e.name;var n=e,r=a()(n,"options.folderId",t),o=a()(n,"options.uploadInitTimestamp",Date.now()),i=n.file.webkitRelativePath||n.file.name;return"".concat(i,"_").concat(r,"_").concat(o)}function k(e,t){var n=y(d(e)).name,r=h(e),o=r.folderId,i=void 0===o?t:o,a=r.uploadInitTimestamp,l=void 0===a?Date.now():a;return"".concat(n,"_").concat(i,"_").concat(l)}function E(){var e=window.crypto||window.msCrypto;return"https:"===window.location.protocol&&e&&e.subtle}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(5),a=n.n(i),l=n(194),s=n.n(l),c=n(10),u=n.n(c),f=n(78),d=n(1);function p(){return(p=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=n.id,o=n.clientName,i=n.token,a=n.version,l=n.sharedLink,c=n.sharedLinkPassword,f=n.responseInterceptor,d=n.requestInterceptor,p=n.shouldRetry,h=void 0===p||p;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),v(this,"retryCount",0),v(this,"errorInterceptor",function(e){if(t.shouldRetryRequest(e)){t.retryCount+=1;var n=t.getExponentialRetryTimeoutInMs(t.retryCount);return new Promise(function(r,o){t.retryTimeout=setTimeout(function(){t.axios(e.config).then(r,o)},n)})}var r=u()(e,"response.data")||e;return t.responseInterceptor(r),Promise.reject(e)}),this.id=r,this.token=i,this.clientName=o,this.version=a,this.sharedLink=l,this.sharedLinkPassword=c,this.responseInterceptor=f||this.defaultResponseInterceptor,this.axios=s.a.create(),this.axiosSource=s.a.CancelToken.source(),this.shouldRetry=h,this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"===typeof d&&this.axios.interceptors.request.use(d)}var t,n,r;return t=e,(n=[{key:"defaultResponseInterceptor",value:function(e){return e}},{key:"shouldRetryRequest",value:function(e){if(!this.shouldRetry||this.retryCount>=3)return!1;var t=e.response;return e.request&&!t||u()(t,"status")===d.hd}},{key:"getExponentialRetryTimeoutInMs",value:function(e){var t=Math.ceil(1e3*Math.random());return 1e3*Math.pow(2,e-1)+t}},{key:"getParsedUrl",value:function(e){var t=document.createElement("a");return t.href=e,{api:e.replace("".concat(t.origin,"/2.0"),""),host:t.host,hostname:t.hostname,pathname:t.pathname,origin:t.origin,protocol:t.protocol,hash:t.hash,port:t.port}}},{key:"getHeaders",value:function(){var e,t=(e=o.a.mark(function e(t){var n,r,i,a,l=arguments;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=l.length>1&&void 0!==l[1]?l[1]:{},r=p(v({Accept:"application/json"},d.Xc,"application/json"),n),this.sharedLink&&(r.BoxApi="shared_link=".concat(this.sharedLink),this.sharedLinkPassword&&(r.BoxApi="".concat(r.BoxApi,"&shared_link_password=").concat(this.sharedLinkPassword))),this.clientName&&(r[d.Vc]=this.clientName),this.version&&(r[d.Wc]=this.version),i=t||this.id||"",e.next=8,f.a.getWriteToken(i,this.token);case 8:return(a=e.sent)&&(r.Authorization="Bearer ".concat(a)),e.abrupt("return",r);case 11:case"end":return e.stop()}},e,this)}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){h(i,r,o,a,l,"next",e)}function l(e){h(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e){return t.apply(this,arguments)}}()},{key:"get",value:function(e){var t=this,n=e.url,r=e.id,o=e.params,i=void 0===o?{}:o,a=e.headers,l=void 0===a?{}:a;return this.getHeaders(r,l).then(function(e){return t.axios.get(n,{cancelToken:t.axiosSource.token,params:i,headers:e,parsedUrl:t.getParsedUrl(n)})})}},{key:"post",value:function(e){var t=this,n=e.url,r=e.id,o=e.data,i=e.params,a=e.headers,l=void 0===a?{}:a,s=e.method,c=void 0===s?d.bd:s;return this.getHeaders(r,l).then(function(e){return t.axios({url:n,data:o,params:i,method:c,parsedUrl:t.getParsedUrl(n),headers:e})})}},{key:"put",value:function(e){var t=e.url,n=e.id,r=e.data,o=e.params,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:r,params:o,headers:a,method:d.cd})}},{key:"delete",value:function(e){var t=e.url,n=e.id,r=e.data,o=void 0===r?{}:r,i=e.headers,a=void 0===i?{}:i;return this.post({id:n,url:t,data:o,headers:a,method:d.Yc})}},{key:"options",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,l=e.successHandler,s=e.errorHandler;return this.getHeaders(n,a).then(function(e){return t.axios({url:r,data:o,method:d.ad,headers:e}).then(l).catch(s)}).catch(s)}},{key:"uploadFile",value:function(e){var t=this,n=e.id,r=e.url,o=e.data,i=e.headers,a=void 0===i?{}:i,l=e.method,s=void 0===l?d.bd:l,c=e.successHandler,u=e.errorHandler,f=e.progressHandler,p=e.withIdleTimeout,h=void 0!==p&&p,m=e.idleTimeoutDuration,v=void 0===m?12e4:m,y=e.idleTimeoutHandler;return this.getHeaders(n,a).then(function(e){var n,i=f;if(h){var l=function(){t.abort(),y&&y()};n=setTimeout(l,v),i=function(e){clearTimeout(n),n=setTimeout(l,v),f(e)}}t.axios({url:r,data:o,transformRequest:function(e,t){if(delete t[d.Tc],delete t[d.Xc],a[d.Xc]&&(t[d.Xc]=a[d.Xc]),e&&!(e instanceof Blob)&&e.attributes){var n=new FormData;return Object.keys(e).forEach(function(t){n.append(t,e[t])}),n}return e},method:s,headers:e,onUploadProgress:i,cancelToken:t.axiosSource.token}).then(function(e){clearTimeout(n),c(e)}).catch(function(e){clearTimeout(n),u(e)})}).catch(u)}},{key:"abort",value:function(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&this.axiosSource.cancel()}}])&&m(t.prototype,n),r&&m(t,r),e}(),b=n(79),g=n(17),w=n(7);function C(e){for(var t=1;t5&&void 0!==f[5]?f[5]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return this.successCallback=i,this.errorCallback=a,s=this.xhr[t.toLowerCase()].bind(this.xhr),e.prev=6,e.next=9,s(C({id:Object(g.a)(n),url:r},l));case 9:c=e.sent,u=c.data,this.successHandler(u),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(6),this.errorHandler(e.t0);case 17:case"end":return e.stop()}},e,this,[[6,14]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){_(i,r,o,a,l,"next",e)}function l(e){_(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n,r,o,i){return t.apply(this,arguments)}}()}])&&E(t.prototype,n),r&&E(t,r),e}();t.a=O},function(e,t,n){"use strict";n.d(t,"d",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return l}),n.d(t,"e",function(){return s}),n.d(t,"a",function(){return c}),n.d(t,"f",function(){return u});var r=n(280),o=n(1);n(535);function i(e){if(!e||!(e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase();return"input"===t||"select"===t||"textarea"===t||"div"===t&&!!e.getAttribute("contenteditable")}function a(e){if(!e||!(e instanceof HTMLElement))return!1;var t=e.tagName.toLowerCase(),n=e.classList.contains("checkbox-pointer-target")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("checkbox-label"),r=e.classList.contains("btn-content")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("btn");return i(e)||"button"===t||"a"===t||"option"===t||n||r}function l(e){return e.key===o.kd.enter||e.key===o.kd.space}function s(e){return 0===e.button&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&!e.shiftKey}function c(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e)if(t){var r=e.querySelector(t);r&&"function"===typeof r.focus?r.focus():n&&e.focus()}else e.focus()}function u(e){if(e){var t=e.closest(".body, .modal, .".concat(o.Gd));Object(r.a)(e,!1,void 0,t)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return C}),n.d(t,"b",function(){return g}),n.d(t,"c",function(){return v}),n.d(t,"e",function(){return h}),n.d(t,"d",function(){return m}),n.d(t,"k",function(){return k}),n.d(t,"l",function(){return E}),n.d(t,"m",function(){return _}),n.d(t,"f",function(){return f}),n.d(t,"g",function(){return p}),n.d(t,"h",function(){return d}),n.d(t,"j",function(){return b}),n.d(t,"i",function(){return y});var r=n(193),o=n.n(r),i=n(112),a=n.n(i),l=n(1);function s(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===u(e)&&0!==Object.keys(e).length?t.filter(function(t){return!o()(e,t)}):t}function k(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(!Array.isArray(t)||0===t.length)return e;var n=s({},e);return _(e,t).forEach(function(e){a()(n,e,null)}),n}function E(e){var t=s({},e);return w.forEach(function(e){o()(t,e)&&null===t[e]&&a()(t,e,l.Pd)}),t}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return i}),n.d(t,"c",function(){return a});var r=n(1);function o(e){return"".concat(r.Ee).concat(e)}function i(e){return"".concat(r.Fe).concat(e)}function a(e){return e.extension===r.Sc}},function(e,t,n){"use strict";var r=n(0);function o(){return(o=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,a=void 0===n?"":n,l=e.getDOMRef,s=e.isDisabled,c=void 0!==s&&s,u=e.type,f=void 0===u?"submit":u,d=i(e,["children","className","getDOMRef","isDisabled","type"]),p={};return c&&(p["aria-disabled"]=!0,p.onClick=function(e){e.preventDefault(),e.stopPropagation()}),r.createElement("button",o({ref:l,className:"btn-plain ".concat(a),type:f},d,p),t)}},function(e,t,n){"use strict";var r=n(0),o=n(8),i=n.n(o),a=n(22),l=n.n(a),s=n(116),c=n(148);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n1),t}),l(e,u(e),n),c&&(n=o(n,7,s));for(var f=t.length;f--;)i(n,t[f]);return n});e.exports=f},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.isDisabled,l=e.text,s=a(e,["children","isDisabled","text"]);return n||!l?t:r.createElement(o.a,i({text:l},s),t)}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(0),o=n.n(r);n(415);t.a=function(e){var t=e.className,n=void 0===t?"":t,r=e.size,i=void 0===r?"default":r;return o.a.createElement("div",{className:"crawler ".concat(n," is-").concat(i)},o.a.createElement("div",null),o.a.createElement("div",null),o.a.createElement("div",null))}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"g",function(){return o}),n.d(t,"e",function(){return i}),n.d(t,"c",function(){return a}),n.d(t,"i",function(){return l}),n.d(t,"d",function(){return s}),n.d(t,"f",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"h",function(){return f}),n.d(t,"j",function(){return d}),n.d(t,"n",function(){return p}),n.d(t,"q",function(){return h}),n.d(t,"k",function(){return m}),n.d(t,"m",function(){return v}),n.d(t,"o",function(){return y}),n.d(t,"l",function(){return b}),n.d(t,"p",function(){return g});var r="#0061d5",o="#003c84",i="#2486fc",a="#26c281",l="#f5b31b",s="#4826c2",c="#9f3fed",u="#fc627a",f="#ed3757",d="#0061d5",p="#c82341",h="#afafaf",m="#999ea4",v="#444",y="#999",b="#eee",g="#9f3fed"},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return o});var r="#0061d5",o="data-resin-target"},function(e,t,n){"use strict";var r=n(19);n.d(t,"a",function(){return r.a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o=n(400),i=(r=o)&&r.__esModule?r:{default:r};t.default=i.default,e.exports=t.default},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(99),a=n(27),l=n(200),s=n(201),c=(n(577),function(e){var t=e.title;return r.createElement(l.a,{title:t},r.createElement(s.a,{isOpen:!0},r.createElement(a.a,{className:"bcs-sidebar-loading"})))}),u=n(98),f=(n(578),function(){return r.createElement("div",{className:"bcs-loading-error"},r.createElement(u.a,null))}),d=n(275),p=n(2),h=n(62),m=n(1);function v(e){for(var t=1;t0)}},{key:"shouldRenderSidebar",value:function(t,n,r){return!!n&&(e.canHaveDetailsSidebar(t)||e.shouldRenderSkillsSidebar(t,n)||e.canHaveActivitySidebar(t)||e.shouldRenderMetadataSidebar(t,r))}},{key:"getTitleForView",value:function(e){switch(e){case m.Td:return r.createElement(o.b,p.a.sidebarSkillsTitle);case m.Rd:return r.createElement(o.b,p.a.sidebarDetailsTitle);case m.Sd:return r.createElement(o.b,p.a.sidebarMetadataTitle);case m.Qd:return r.createElement(o.b,p.a.sidebarActivityTitle);default:return null}}},{key:"getLoaderForView",value:function(e,t){var r;switch(Object(h.b)(t),e){case m.Td:r=n.e(6).then(n.bind(null,859));break;case m.Rd:r=n.e(7).then(n.bind(null,860));break;case m.Sd:r=Promise.all([n.e(0),n.e(5)]).then(n.bind(null,858));break;case m.Qd:r=Promise.all([n.e(0),n.e(4)]).then(n.bind(null,857));break;case m.Ud:r=n.e(8).then(n.bind(null,861));break;default:return Promise.resolve(null)}return r}},{key:"getAsyncSidebarContent",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object(i.a)(v({errorComponent:f,fallback:r.createElement(c,{title:this.getTitleForView(e)}),loader:function(){return n.getLoaderForView(e,t)}},o))}}],(a=null)&&b(t.prototype,a),l&&b(t,l),e}();t.a=g},function(e,t,n){var r=n(179)("wks"),o=n(132),i=n(26).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){"use strict";var r=n(79),o=n(4),i=n.n(o),a=n(5),l=n.n(a),s=n(13),c=n(97);function u(){return window.crypto||window.msCrypto}function f(e,t){var n=u();return n!==window.msCrypto?n.subtle.digest(e,t):new Promise(function(r,o){var i=n.subtle.digest({name:e},t);i.oncomplete=function(e){r(e.target.result)},i.onerror=o})}function d(e,t,n){"use asm";var r=new e.Int32Array(n);function o(e,t){e=e|0;t=t|0;var n=0,o=0,i=0,a=0,l=0,s=0,c=0,u=0,f=0,d=0,p=0,h=0,m=0,v=0;i=r[t+320>>2]|0;l=r[t+324>>2]|0;c=r[t+328>>2]|0;f=r[t+332>>2]|0;p=r[t+336>>2]|0;for(n=0;(n|0)<(e|0);n=n+64|0){a=i;s=l;u=c;d=f;h=p;for(o=0;(o|0)<64;o=o+4|0){v=r[n+o>>2]|0;m=((i<<5|i>>>27)+(l&c|~l&f)|0)+((v+p|0)+1518500249|0)|0;p=f;f=c;c=l<<30|l>>>2;l=i;i=m;r[e+o>>2]=v}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){v=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(l&c|~l&f)|0)+((v+p|0)+1518500249|0)|0;p=f;f=c;c=l<<30|l>>>2;l=i;i=m;r[o>>2]=v}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){v=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(l^c^f)|0)+((v+p|0)+1859775393|0)|0;p=f;f=c;c=l<<30|l>>>2;l=i;i=m;r[o>>2]=v}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){v=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(l&c|l&f|c&f)|0)+((v+p|0)-1894007588|0)|0;p=f;f=c;c=l<<30|l>>>2;l=i;i=m;r[o>>2]=v}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){v=(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])<<1|(r[o-12>>2]^r[o-32>>2]^r[o-56>>2]^r[o-64>>2])>>>31;m=((i<<5|i>>>27)+(l^c^f)|0)+((v+p|0)-899497514|0)|0;p=f;f=c;c=l<<30|l>>>2;l=i;i=m;r[o>>2]=v}i=i+a|0;l=l+s|0;c=c+u|0;f=f+d|0;p=p+h|0}r[t+320>>2]=i;r[t+324>>2]=l;r[t+328>>2]=c;r[t+332>>2]=f;r[t+336>>2]=p}return{hash:o}}var p=function(){var e=new Blob(["const RushaCore = ".concat(d.toString()),";\n",'function Rusha(e){for(var r=function(e){if("string"==typeof e)return"string";if(e instanceof Array)return"array";if("undefined"!=typeof global&&global.Buffer&&global.Buffer.isBuffer(e))return"buffer";if(e instanceof ArrayBuffer)return"arraybuffer";if(e.buffer instanceof ArrayBuffer)return"view";if(e instanceof Blob)return"blob";throw new Error("Unsupported data type.")},n={fill:0},t=function(e){for(e+=9;e%64>0;e+=1);return e},a=function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s[n+3];case 1:e[a+1-(i<<1)|0]=s[n+2];case 2:e[a+2-(i<<1)|0]=s[n+1];case 3:e[a+3-(i<<1)|0]=s[n]}if(!(t>2|0]=s[n+f]<<24|s[n+f+1]<<16|s[n+f+2]<<8|s[n+f+3];switch(h){case 3:e[a+u+1|0]=s[n+u+2];case 2:e[a+u+2|0]=s[n+u+1];case 1:e[a+u+3|0]=s[n+u]}}},f=function(e){switch(r(e)){case"string":return function(e,r,n,t,a){var f,s=this,i=a%4,h=(t+i)%4,u=t-h;switch(i){case 0:e[a]=s.charCodeAt(n+3);case 1:e[a+1-(i<<1)|0]=s.charCodeAt(n+2);case 2:e[a+2-(i<<1)|0]=s.charCodeAt(n+1);case 3:e[a+3-(i<<1)|0]=s.charCodeAt(n)}if(!(t>2]=s.charCodeAt(n+f)<<24|s.charCodeAt(n+f+1)<<16|s.charCodeAt(n+f+2)<<8|s.charCodeAt(n+f+3);switch(h){case 3:e[a+u+1|0]=s.charCodeAt(n+u+2);case 2:e[a+u+2|0]=s.charCodeAt(n+u+1);case 1:e[a+u+3|0]=s.charCodeAt(n+u)}}}.bind(e);case"array":case"buffer":return a.bind(e);case"arraybuffer":return a.bind(new Uint8Array(e));case"view":return a.bind(new Uint8Array(e.buffer,e.byteOffset,e.byteLength));case"blob":return function(e,r,n,t,a){var f,s=a%4,i=(t+s)%4,h=t-i,u=new Uint8Array(reader.readAsArrayBuffer(this.slice(n,n+t)));switch(s){case 0:e[a]=u[3];case 1:e[a+1-(s<<1)|0]=u[2];case 2:e[a+2-(s<<1)|0]=u[1];case 3:e[a+3-(s<<1)|0]=u[0]}if(!(t>2|0]=u[f]<<24|u[f+1]<<16|u[f+2]<<8|u[f+3];switch(i){case 3:e[a+h+1|0]=u[h+2];case 2:e[a+h+2|0]=u[h+1];case 1:e[a+h+3|0]=u[h]}}}.bind(e)}},s=new Array(256),i=0;i<256;i++)s[i]=(i<16?"0":"")+i.toString(16);var h=function(e){for(var r=new Uint8Array(e),n=new Array(e.byteLength),t=0;t0)throw new Error("Chunk size must be a multiple of 128 bit");n.offset=0,n.maxChunkLen=e,n.padMaxChunkLen=t(e),n.heap=new ArrayBuffer(function(e){var r;if(e<=65536)return 65536;if(e<16777216)for(r=1;r>2);return function(e,r){var n=new Uint8Array(e.buffer),t=r%4,a=r-t;switch(t){case 0:n[a+3]=0;case 1:n[a+2]=0;case 2:n[a+1]=0;case 3:n[a+0]=0}for(var f=1+(r>>2);f>2]|=128<<24-(f%4<<3),a[14+(2+(f>>2)&-16)]=s/(1<<29)|0,a[15+(2+(f>>2)&-16)]=s<<3,i},o=function(e,r,t,a){f(e)(n.h8,n.h32,r,t,a||0)},d=function(e,r,t,a,f){var s=t;o(e,r,t),f&&(s=c(t,a)),n.core.hash(s,n.padMaxChunkLen)},y=function(e,r){var n=new Int32Array(e,r+320,5),t=new Int32Array(5),a=new DataView(t.buffer);return a.setInt32(0,n[0],!1),a.setInt32(4,n[1],!1),a.setInt32(8,n[2],!1),a.setInt32(12,n[3],!1),a.setInt32(16,n[4],!1),t},w=this.rawDigest=function(e){var r=e.byteLength||e.length||e.size||0;u(n.heap,n.padMaxChunkLen);var t=0,a=n.maxChunkLen;for(t=0;r>t+a;t+=a)d(e,t,a,r,!1);return d(e,t,r-t,r,!0),y(n.heap,n.padMaxChunkLen)};this.digest=this.digestFromString=this.digestFromBuffer=this.digestFromArrayBuffer=function(e){return h(w(e).buffer)},this.resetState=function(){return u(n.heap,n.padMaxChunkLen),this},this.append=function(e){var r,t=0,a=e.byteLength||e.length||e.size||0,f=n.offset%n.maxChunkLen;for(n.offset+=a;t=x)n.errorCallback(t);else if(t&&409===t.status){if(n.overwrite){var o=t.context_info.conflicts.id;!n.fileId&&o&&(n.fileId=o),n.makePreflightRequest()}else{var i=n.fileName.substr(n.fileName.lastIndexOf("."))||"";n.fileName="".concat(n.fileName.substr(0,n.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(i),n.makePreflightRequest()}n.retryCount+=1}else if(!t||429!==t.status&&"too_many_requests"!==t.code)t&&(t.status||"Failed to fetch"===t.message)&&"function"===typeof n.errorCallback?n.errorCallback(t):(n.retryTimeout=setTimeout(n.makePreflightRequest,Math.pow(2,n.retryCount)*h.td),n.retryCount+=1);else{var a=h.Q;if(t.headers){var l=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(l)||(a=l*h.td)}n.retryTimeout=setTimeout(n.makePreflightRequest,a),n.retryCount+=1}}}),n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(t,w["a"]),n=t,(r=[{key:"readFile",value:function(e,t){return new Promise(function(n,r){e.readAsArrayBuffer(t),e.onload=function(){n({buffer:e.result,readCompleteTimestamp:Date.now()})},e.onerror=r})}}])&&_(n.prototype,r),o&&_(n,o),t}();function T(e){return(T="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},N=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==T(t)&&"function"!==typeof t?A(e):t}(this,j(t).call(this,function(e){for(var t=1;t=w.config.retries)){e.next=20;break}return w.onError(t,a),e.abrupt("return");case 20:l=Object(s.a)(w.config.initialRetryDelayMs,w.config.maxRetryDelayMs,w.numUploadRetriesPerformed),w.numUploadRetriesPerformed+=1,w.consoleLog("Retrying uploading part ".concat(w.toJSON()," in ").concat(l," ms")),w.retryTimeout=setTimeout(w.retryUpload,l);case 24:case"end":return e.stop()}},e,this,[[7,14]])}));return function(t){return e.apply(this,arguments)}}()),W(B(B(w)),"retryUpload",D(i.a.mark(function e(){var t,n;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!w.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:if(e.prev=2,!(w.uploadedBytesa-1&&(w.rangeEnd=a-1),w.onSuccess=m||l.a,w.onError=b||l.a,w.onProgress=y||l.a,w.getNumPartsUploading=p,w}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(t,N),n=t,(r=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}}])&&z(n.prototype,r),o&&z(n,o),t}();function Q(e){return(Q="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function X(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){$(i,r,o,a,l,"next",e)}function l(e){$(i,r,o,a,l,"throw",e)}a(void 0)})}}function Z(e,t){for(var n=0;n=500&&s.status<600)){e.next=20;break}return r.createSessionErrorHandler(e.t0),e.abrupt("return");case 20:if(!s||409!==s.status||"session_conflict"!==s.code){e.next=23;break}return r.createSessionSuccessHandler(s.context_info.session),e.abrupt("return");case 23:if(!(s&&s.status===h.ed&&s.code===h.Vb||s.status===h.ed&&"access_denied_insufficient_permissions"===s.code)){e.next=26;break}return r.errorCallback(s),e.abrupt("return");case 26:if(!s||409!==s.status){e.next=30;break}return r.resolveConflict(s),r.createSessionRetry(),e.abrupt("return");case 30:r.sessionErrorHandler(e.t0,ne,JSON.stringify(e.t0));case 31:case"end":return e.stop()}},e,this,[[7,14]])}));return function(t){return e.apply(this,arguments)}}()),te(ee(ee(r)),"createSessionErrorHandler",function(e){r.isDestroyed()||(r.createSessionNumRetriesPerformed=r.config.retries)r.sessionErrorHandler(null,se,JSON.stringify(e));else{var n=Object(s.a)(r.config.initialRetryDelayMs,r.config.maxRetryDelayMs,t.numDigestRetriesPerformed);t.numDigestRetriesPerformed+=1,r.consoleLog("Retrying digest work for part ".concat(JSON.stringify(t)," in ").concat(n," ms")),setTimeout(function(){r.computeDigestForPart(t)},n)}}else r.sessionErrorHandler(null,le,JSON.stringify(e))}),te(ee(ee(r)),"commitSession",function(){if(!r.isDestroyed()){var e={totalPartReadTime:0,totalPartDigestTime:0,totalFileDigestTime:0,totalPartUploadTime:0},t={parts:r.parts.map(function(t){return e.totalPartReadTime+=t.timing.readTime,e.totalPartDigestTime+=t.timing.subtleCryptoTime,e.totalFileDigestTime+=t.timing.fileDigestTime,e.totalPartUploadTime+=t.timing.uploadTime,t.getPart()}).sort(function(e,t){return e.offset-t.offset}),attributes:{}},n=Object(s.k)(r.file);n&&(t.attributes.content_modified_at=n);var o={avg_part_read_time:Math.round(e.totalPartReadTime/r.parts.length),avg_part_digest_time:Math.round(e.totalPartDigestTime/r.parts.length),avg_file_digest_time:Math.round(e.totalFileDigestTime/r.parts.length),avg_part_upload_time:Math.round(e.totalPartUploadTime/r.parts.length)},i=r.fileSha1,a={Digest:"sha=".concat(i),"X-Box-Client-Event-Info":JSON.stringify(o)};r.xhr.post({url:r.sessionEndpoints.commit,data:t,headers:a}).then(r.commitSessionSuccessHandler).catch(r.commitSessionErrorHandler)}}),te(ee(ee(r)),"commitSessionSuccessHandler",function(e){if(!r.isDestroyed()){var t=e.status,n=e.data;if(202!==t){var o=n.entries;!o&&n.id&&(o=[n]),r.destroy(),r.successCallback&&o&&r.successCallback(o)}else r.commitSessionRetry(e)}}),te(ee(ee(r)),"commitSessionErrorHandler",function(e){if(!r.isDestroyed()){var t=e.response;if(t)return r.commitRetryCount>=r.config.retries?(r.consoleLog("Too many commit failures, failing upload"),void r.sessionErrorHandler(e,ie,JSON.stringify(e))):void r.commitSessionRetry(t);r.consoleError(e)}}),te(ee(ee(r)),"getNumPartsUploading",function(){return r.numPartsUploading}),r.parts=[],r.options=e,r.fileSha1=null,r.totalUploadedBytes=0,r.numPartsNotStarted=0,r.numPartsDigestComputing=0,r.numPartsDigestReady=0,r.numPartsUploading=0,r.numPartsUploaded=0,r.firstUnuploadedPartIndex=0,r.createSessionNumRetriesPerformed=0,r.partSize=0,r.commitRetryCount=0,r.clientId=null,r}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(t,N),n=t,(r=[{key:"upload",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,i=e.successCallback,a=e.overwrite,c=void 0===a||a,u=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=Object(s.k)(this.file),this.folderId=n,this.errorCallback=r||l.a,this.progressCallback=o||l.a,this.successCallback=i||l.a,this.sha1Worker=p(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.overwrite=c,this.fileId=u,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=Object(s.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.createSessionNumRetriesPerformed);this.createSessionNumRetriesPerformed+=1,this.consoleLog("Retrying create session in ".concat(e," ms")),this.createSessionTimeout=setTimeout(this.makePreflightRequest,e)}},{key:"createSessionSuccessHandler",value:function(e){if(!this.isDestroyed()){var t=e.id,n=e.part_size,r=e.session_endpoints;this.sessionId=t,this.partSize=n,this.sessionEndpoints=function(e){for(var t=1;t0&&this.numPartsDigestReady0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&e.state===G;)this.firstUnuploadedPartIndex+=1,e=this.parts[this.firstUnuploadedPartIndex]}},{key:"populateParts",value:function(){this.numPartsNotStarted=Math.ceil(this.file.size/this.partSize);for(var e=0;e6&&void 0!==arguments[6]?arguments[6]:{};this.isDestroyed()||(this.limit=n,this.offset=r,this.query=t,this.id=e,this.key=this.getCacheKey(e,this.getEncodedQuery(this.query)),this.successCallback=o,this.errorCallback=i,a.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.searchRequest())}}])&&Pe(n.prototype,r),o&&Pe(n,o),t}();function Le(e){return(Le="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(){return(Ne=Object.assign||function(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){this.id=e,this.successCallback=t,this.errorCallback=n;var o=this.getCache();this.key=this.getCacheKey(this.id),r.forceFetch&&o.unset(this.key),o.has(this.key)?this.finish():this.recentsRequest()}}}])&&Fe(n.prototype,r),o&&Fe(n,o),t}(),Be=n(17);function We(e){return(We="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ve(e){for(var t=1;t0&&(r.fields=n.toString()),r}},{key:"hasMoreItems",value:function(e,t){return void 0===t||e3&&void 0!==c[3]?c[3]:h.F,a=c.length>4&&void 0!==c[4]?c[4]:h.E,l=c.length>5?c[5]:void 0,s=!(c.length>6&&void 0!==c[6])||c[6],this.successCallback=n,this.errorCallback=r,e.abrupt("return",this.offsetGetRequest(t,o,a,s,l));case 7:case"end":return e.stop()}},e,this)}));return function(t,n,r){return e.apply(this,arguments)}}()}])&&Qe(n.prototype,r),o&&Qe(n,o),t}();function Ye(e){return(Ye="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t3&&void 0!==arguments[3]?arguments[3]:h.F,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:h.E,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Ee.d,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];this.errorCode=h.Ab,this.offsetGet(e,t,n,r,o,i,a)}},{key:"promoteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=h.Fb;try{this.checkApiCallValidity(h.Od,r,n)}catch(a){return void t(a,this.errorCode)}this.post({id:n,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(n,"current"),successCallback:o,errorCallback:t})}}])&&nt(n.prototype,r),o&&nt(n,o),t}();function st(e){return(st="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ct(e){for(var t=1;t4&&void 0!==arguments[4]?arguments[4]:Ee.b,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0;this.errorCode=h.ob;try{this.checkApiCallValidity(h.Hd,t,e)}catch(s){return void r(s,this.errorCode)}this.offsetGet(e,n,r,i,a,o,l)}}])&&ut(n.prototype,r),o&&ut(n,o),t}();function vt(e){return(vt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yt(e,t){for(var n=0;n4&&void 0!==arguments[4]?arguments[4]:{params:{fields:Ee.j.toString()}};this.errorCode=h.yb;var i="".concat(this.tasksUrl(t),"/assignments");this.get({id:e,successCallback:n,errorCallback:r,requestData:o,url:i})}},{key:"createTask",value:function(e){var t=e.file,n=e.message,r=e.dueAt,o=e.successCallback,i=e.errorCallback,a=t.id,l=void 0===a?"":a,s=t.permissions;this.errorCode=h.ab;try{this.checkApiCallValidity(h.Hd,s,l)}catch(u){return void i(u,this.errorCode)}var c={data:{item:{id:l,type:"file"},message:n,due_at:r}};this.post({id:l,url:this.tasksUrl(),data:c,successCallback:o,errorCallback:i})}},{key:"updateTask",value:function(e){var t=e.file,n=e.taskId,r=e.message,o=e.dueAt,i=e.successCallback,a=e.errorCallback,l=t.id,s=void 0===l?"":l,c=t.permissions;this.errorCode=h.Ob;try{this.checkApiCallValidity(h.Hd,c,s)}catch(f){return void a(f,this.errorCode)}var u={data:{message:r}};o&&(u.data.due_at=o),this.put({id:s,url:this.tasksUrl(n),data:u,successCallback:i,errorCallback:a})}},{key:"deleteTask",value:function(e){var t=e.file,n=e.taskId,r=e.successCallback,o=e.errorCallback;this.errorCode=h.ib;var i=t.id,a=void 0===i?"":i,l=t.permissions;try{this.checkApiCallValidity(h.Hd,l,a)}catch(s){return void o(s,this.errorCode)}this.delete({id:a,url:this.tasksUrl(n),successCallback:r,errorCallback:o})}},{key:"getTasks",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{params:{fields:Ee.i.toString()}};this.errorCode=h.xb,this.get({id:e,successCallback:t,errorCallback:n,requestData:r})}}])&&yt(n.prototype,r),o&&yt(n,o),t}();function _t(e){return(_t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function kt(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{};this.errorCode=h.pb,this.get({id:e,successCallback:t,errorCallback:n,requestData:r})}}])&&un(n.prototype,r),o&&un(n,o),t}(),mn=n(12),vn=n.n(mn);function yn(e){return(yn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(s){o=!0,i=s}finally{try{r||null==l.return||l.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function wn(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(c){return void n(c)}l.done?t(s):Promise.resolve(s).then(r,o)}function Cn(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){wn(i,r,o,a,l,"next",e)}function l(e){wn(i,r,o,a,l,"throw",e)}a(void 0)})}}function _n(e,t){for(var n=0;n4&&void 0!==C[4]?C[4]:{},l=t.id,s=t.permissions,c=t.is_externally_owned,this.errorCode=h.tb,this.successCallback=n,this.errorCallback=r,l&&s){e.next=8;break}return this.errorHandler(Object(Se.a)()),e.abrupt("return");case 8:if(u=this.getCache(),f=this.getMetadataCacheKey(l),a.forceFetch&&u.unset(f),!u.has(f)){e.next=15;break}if(this.successHandler(u.get(f)),a.refreshCache){e.next=15;break}return e.abrupt("return");case 15:return e.prev=15,d=this.getCustomPropertiesTemplate(),e.next=19,Promise.all([this.getInstances(l),this.getTemplates(l,h.md),o?this.getTemplates(l,h.ld):Promise.resolve([])]);case 19:return p=e.sent,m=gn(p,3),v=m[0],y=m[1],b=m[2],e.next=26,this.getEditors(l,v,d,b,y,!!s.can_upload);case 26:g=e.sent,w={editors:g,templates:this.getUserAddableTemplates(d,b,o,c)},u.set(f,w),this.isDestroyed()||this.successHandler(w),e.next=35;break;case 32:e.prev=32,e.t0=e.catch(15),this.errorHandler(e.t0);case 35:case"end":return e.stop()}},e,this,[[15,32]])}));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"getSkills",value:function(){var e=Cn(i.a.mark(function e(t,n,r){var o,a,l,s,c,u,f=arguments;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=f.length>3&&void 0!==f[3]&&f[3],this.errorCode=h.wb,a=t.id){e.next=6;break}return r(Object(Se.a)(),this.errorCode),e.abrupt("return");case 6:if(l=this.getCache(),s=this.getSkillsCacheKey(a),this.successCallback=n,this.errorCallback=r,o&&l.unset(s),!l.has(s)){e.next=14;break}return this.successHandler(l.get(s)),e.abrupt("return");case 14:if(c={data:v()(t,h.uc)},e.prev=15,c.data){e.next=20;break}return e.next=19,this.xhr.get({url:this.getMetadataUrl(a,h.md,h.qd),id:Object(Be.a)(a)});case 19:c=e.sent;case 20:this.isDestroyed()||(u=c.data.cards||[],l.set(s,u),this.successHandler(u)),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(15),this.errorHandler(e.t0);case 26:case"end":return e.stop()}},e,this,[[15,23]])}));return function(t,n,r){return e.apply(this,arguments)}}()},{key:"updateSkills",value:function(){var e=Cn(i.a.mark(function e(t,n,r,o){var a,l,s,c;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.Nb,a=t.id,l=t.permissions,a&&l){e.next=5;break}return o(Object(Se.a)(),this.errorCode),e.abrupt("return");case 5:if(l.can_upload){e.next=8;break}return o(Object(Se.b)(),this.errorCode),e.abrupt("return");case 8:return this.successCallback=r,this.errorCallback=o,e.prev=10,e.next=13,this.xhr.put({url:this.getMetadataUrl(a,h.md,h.qd),headers:bn({},h.Xc,"application/json-patch+json"),id:Object(Be.a)(a),data:n});case 13:s=e.sent,this.isDestroyed()||(c=s.data.cards||[],this.merge(this.getCacheKey(a),h.uc,s.data),this.getCache().set(this.getSkillsCacheKey(a),c),this.successHandler(c)),e.next=20;break;case 17:e.prev=17,e.t0=e.catch(10),this.errorHandler(e.t0);case 20:case"end":return e.stop()}},e,this,[[10,17]])}));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"updateMetadata",value:function(){var e=Cn(i.a.mark(function e(t,n,r,o,a){var l,s,c,u,f,d,p,m;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.Mb,this.successCallback=o,this.errorCallback=a,l=t.id,s=t.permissions,l&&s){e.next=7;break}return this.errorHandler(Object(Se.a)()),e.abrupt("return");case 7:if(c=!!s.can_upload){e.next=11;break}return this.errorHandler(Object(Se.b)()),e.abrupt("return");case 11:return e.prev=11,e.next=14,this.xhr.put({url:this.getMetadataUrl(l,n.scope,n.templateKey),headers:bn({},h.Xc,"application/json-patch+json"),id:Object(Be.a)(l),data:r});case 14:u=e.sent,this.isDestroyed()||(f=this.getCache(),d=this.getMetadataCacheKey(l),p=f.get(d),m=this.createEditor(u.data,n,c),p.editors.splice(p.editors.findIndex(function(e){return e.instance.id===m.instance.id}),1,m),this.successHandler(m)),e.next=21;break;case 18:e.prev=18,e.t0=e.catch(11),this.errorHandler(e.t0);case 21:case"end":return e.stop()}},e,this,[[11,18]])}));return function(t,n,r,o,i){return e.apply(this,arguments)}}()},{key:"createMetadata",value:function(){var e=Cn(i.a.mark(function e(t,n,r,o){var a,l,s,c,u,f,d,p,m,v;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.Z,t&&n){e.next=4;break}return o(Object(Se.a)(),this.errorCode),e.abrupt("return");case 4:if(a=t.id,l=t.permissions,s=t.is_externally_owned,a&&l){e.next=8;break}return o(Object(Se.a)(),this.errorCode),e.abrupt("return");case 8:if(c=!!l.can_upload,u=n.templateKey===h.pd&&n.scope===h.md,c&&(!s||u)){e.next=13;break}return o(Object(Se.b)(),this.errorCode),e.abrupt("return");case 13:return this.successCallback=r,this.errorCallback=o,e.prev=15,e.next=18,this.xhr.post({url:this.getMetadataUrl(a,n.scope,n.templateKey),id:Object(Be.a)(a),data:{}});case 18:f=e.sent,this.isDestroyed()||(d=this.getCache(),p=this.getMetadataCacheKey(a),m=d.get(p),v=this.createEditor(f.data,n,c),m.editors.push(v),this.successHandler(v)),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(15),this.errorHandler(e.t0);case 25:case"end":return e.stop()}},e,this,[[15,22]])}));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"deleteMetadata",value:function(){var e=Cn(i.a.mark(function e(t,n,r,o){var a,l,s,c,u,f,d;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=h.hb,t&&n){e.next=4;break}return o(Object(Se.a)(),this.errorCode),e.abrupt("return");case 4:if(a=n.scope,l=n.templateKey,s=t.id,c=t.permissions,s&&c){e.next=9;break}return o(Object(Se.a)(),this.errorCode),e.abrupt("return");case 9:if(c.can_upload){e.next=12;break}return o(Object(Se.b)(),this.errorCode),e.abrupt("return");case 12:return this.successCallback=r,this.errorCallback=o,e.prev=14,e.next=17,this.xhr.delete({url:this.getMetadataUrl(s,a,l),id:Object(Be.a)(s)});case 17:this.isDestroyed()||(u=this.getCache(),f=this.getMetadataCacheKey(s),(d=u.get(f)).editors.splice(d.editors.findIndex(function(e){return e.template.scope===a&&e.template.templateKey===l}),1),this.successHandler()),e.next=23;break;case 20:e.prev=20,e.t0=e.catch(14),this.errorHandler(e.t0);case 23:case"end":return e.stop()}},e,this,[[14,20]])}));return function(t,n,r,o){return e.apply(this,arguments)}}()}])&&_n(n.prototype,r),o&&_n(n,o),t}();function xn(e){return(xn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pn(e){for(var t=1;t4&&void 0!==p[4]?p[4]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,l=this.getUrl(t),s=Pn({},a,{marker:n,limit:r}),e.next=8,this.xhr.get({url:l,id:Object(Be.a)(t),params:s});case 8:if(c=e.sent,u=c.data,f=this.data?this.data.entries:[],this.data=Pn({},u,{entries:f.concat(u.entries)}),d=u.next_marker,!o||!this.hasMoreItems(d)){e.next=16;break}return this.markerGetRequest(t,d,r,o,a),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(3),this.errorHandler(e.t0);case 22:case"end":return e.stop()}},e,this,[[3,19]])}));return function(t,n,r,o){return e.apply(this,arguments)}}()},{key:"markerGet",value:function(){var e=In(i.a.mark(function e(t){var n,r,o,a,l,s,c,u,f,d;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.successCallback,o=t.errorCallback,a=t.marker,l=void 0===a?"":a,s=t.limit,c=void 0===s?1e3:s,u=t.requestData,f=t.shouldFetchAll,d=void 0===f||f,this.successCallback=r,this.errorCallback=o,e.abrupt("return",this.markerGetRequest(n,l,c,d,u));case 4:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}])&&An(n.prototype,r),o&&An(n,o),t}();function Rn(e){return(Rn="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:h.L;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:r})}}])&&Dn(n.prototype,r),o&&Dn(n,o),t}(),Vn=n(2);function qn(){for(var e=arguments.length,t=new Array(e),n=0;n3&&void 0!==arguments[3]?arguments[3]:l.a,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;if(!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.tasksAPI=new Ct(n.options),n.tasksAPI.updateTask({file:e,taskId:t,message:r,dueAt:a,successCallback:function(e){n.updateTaskSuccessCallback(e,o)},errorCallback:function(e,t){n.feedErrorCallback(!0,e,t)}})}),sr(lr(lr(n)),"updateTaskSuccessCallback",function(e,t){var r=Rt()(e,fr);n.updateFeedItem(nr({},r,{isPending:!1}),e.id),n.isDestroyed()||t(e)}),sr(lr(lr(n)),"deleteComment",function(e,t,r,o,i){if(n.commentsAPI=new mt(n.options),!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:n.deleteFeedItem.bind(lr(lr(n)),t,o),errorCallback:function(e,r){n.deleteCommentErrorCallback(e,r,t)}})}),sr(lr(lr(n)),"deleteCommentErrorCallback",function(e,t,r){n.updateFeedItem(n.createFeedError(Vn.a.commentDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)}),sr(lr(lr(n)),"createTask",function(e,t,r,o,i,a,l){if(!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=l;var s,c=vn()("task_");i&&(s=new Date(i).toISOString());var u=o.map(function(e){return{assigned_to:{id:e.id,name:e.name},status:h.ue}}),f={due_at:s,id:c,is_completed:!1,message:r,task_assignment_collection:{entries:u,total_count:u.length},type:ur};n.addPendingItem(n.id,t,f),n.tasksAPI=new Ct(n.options),n.tasksAPI.createTask({file:e,message:r,dueAt:s,successCallback:function(t){n.createTaskSuccessCallback(e,c,t,o,a,l)},errorCallback:function(e,t){n.updateFeedItem(n.createFeedError(Vn.a.taskCreateErrorMessage),c),n.feedErrorCallback(!1,e,t)}})}),sr(lr(lr(n)),"createTaskNew",function(e,t,r,o,i,a,l,s){if(!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=s;var c,u=vn()("task_");a&&(c=new Date(a).toISOString());var f={created_by:{type:"task_collaborator",target:t,id:vn()(),role:"CREATOR",status:cr},created_at:(new Date).toISOString(),due_at:c,id:u,name:r,type:ur,assigned_to:{entries:o.map(function(e){return{id:vn()(),target:nr({},e,{avatar_url:"",type:"user"}),status:cr,permissions:{can_delete:!1,can_update:!1},role:"ASSIGNEE",type:"task_collaborator"}}),limit:10,next_marker:null},permissions:{can_update:!1,can_delete:!1,can_create_task_collaborator:!1,can_create_task_link:!1},task_links:{entries:[{id:vn()(),type:"task_link",target:nr({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:h.ye},d={name:r,due_at:c,task_type:i};n.tasksNewAPI=new Nt(n.options),n.tasksNewAPI.createTask({file:e,task:d,successCallback:function(r){n.addPendingItem(n.id,t,f),n.createTaskNewSuccessCallback(e,u,r,o,l,s)},errorCallback:function(e,t){n.feedErrorCallback(!1,e,t)}})}),sr(lr(lr(n)),"deleteTask",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.a;if(!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=o,n.tasksAPI=new Ct(n.options),n.updateFeedItem({isPending:!0},t),n.tasksAPI.deleteTask({file:e,taskId:t,successCallback:n.deleteFeedItem.bind(lr(lr(n)),t,r),errorCallback:function(e,t){n.feedErrorCallback(!0,e,t)}})}),sr(lr(lr(n)),"deleteTaskNew",function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:l.a;if(!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=o,n.tasksNewAPI=new Nt(n.options),n.updateFeedItem({isPending:!0},t.id),n.tasksNewAPI.deleteTask({file:e,task:t,successCallback:n.deleteFeedItem.bind(lr(lr(n)),t.id,r),errorCallback:function(e,t){n.feedErrorCallback(!0,e,t)}})}),sr(lr(lr(n)),"deleteFeedItem",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.a,r=n.getCachedItems(n.id);if(r){var o=r.items.filter(function(t){return t.id!==e});n.setCachedItems(n.id,o),n.isDestroyed()||t(e)}}),sr(lr(lr(n)),"feedErrorCallback",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;e&&(n.hasError=!0),!n.isDestroyed()&&n.errorCallback&&n.errorCallback(t,r,sr({error:t},h.jd,e)),console.error(t)}),sr(lr(lr(n)),"addPendingItem",function(e,t,r){if(!t)throw Object(Se.c)();var o=(new Date).toISOString(),i=nr({created_at:o,created_by:t,modified_at:o,isPending:!0},r),a=n.getCachedItems(n.id),l=tr(a?a.items:[]).concat([i]);return n.setCachedItems(e,l),i}),sr(lr(lr(n)),"createCommentSuccessCallback",function(e,t,r){var o=e.message,i=void 0===o?"":o,a=e.tagged_message,l=void 0===a?"":a;e.tagged_message=l||i,n.updateFeedItem(nr({},e,{isPending:!1}),t),n.isDestroyed()||r(e)}),sr(lr(lr(n)),"createCommentErrorCallback",function(e,t,r){var o=e.status===h.dd?Vn.a.commentCreateConflictMessage:Vn.a.commentCreateErrorMessage;n.updateFeedItem(n.createFeedError(o),r),n.feedErrorCallback(!1,e,t)}),sr(lr(lr(n)),"updateFeedItem",function(e,t){if(!n.id)throw Object(Se.a)();var r=n.getCachedItems(n.id);if(r){var o=r.items.map(function(n){return n.id===t?nr({},n,e):n});return n.setCachedItems(n.id,o),o}return null}),sr(lr(lr(n)),"createComment",function(e,t,r,o,i,a){var l=vn()("comment_"),s={id:l,tagged_message:r,type:"comment"};if(!e.id)throw Object(Se.a)();n.id=e.id,n.errorCallback=a,n.addPendingItem(n.id,t,s);var c={};o?c.taggedMessage=r:c.message=r,n.commentsAPI=new mt(n.options),n.commentsAPI.createComment(nr({file:e},c,{successCallback:function(e){n.createCommentSuccessCallback(e,l,i)},errorCallback:function(e,t){n.createCommentErrorCallback(e,t,l)}}))}),sr(lr(lr(n)),"deleteAppActivity",function(e,t,r,o){var i=e.id;if(!i)throw Object(Se.a)();n.appActivityAPI=new Jn(n.options),n.id=i,n.errorCallback=o,n.updateFeedItem({isPending:!0},t),n.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:n.deleteFeedItem.bind(lr(lr(n)),t,r),errorCallback:function(e,r){n.deleteAppActivityErrorCallback(e,r,t)}})}),sr(lr(lr(n)),"deleteAppActivityErrorCallback",function(e,t,r){n.updateFeedItem(n.createFeedError(Vn.a.appActivityDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)}),n.taskAssignmentsAPI=[],n.taskCollaboratorsAPI=[],n.taskLinksAPI=[],n}var n,r,o;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ar(e,t)}(t,w["a"]),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(h.De).concat(e)}},{key:"getCachedItems",value:function(e){var t=this.getCache(),n=this.getCacheKey(e);return t.get(n)}},{key:"setCachedItems",value:function(e,t){var n=this.getCache(),r=this.getCacheKey(e);n.set(r,{hasError:!!this.hasError,items:t})}},{key:"feedItems",value:function(e){function t(t,n,r,o,i){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e,t,n,r,o){var i=this,a=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6&&void 0!==arguments[6]&&arguments[6],s=e.id,c=e.permissions,u=void 0===c?{}:c,f=this.getCachedItems(s);if(f){var d=f.hasError,p=f.items;if(d?r(p):n(p),!t)return}this.id=s,this.hasError=!1,this.errorCallback=o;var h=this.fetchVersions(),m=this.fetchComments(u),v=a?this.fetchTasksNew():this.fetchTasks(),y=l?this.fetchAppActivity(u):Promise.resolve();Promise.all([h,m,v,y]).then(function(t){var o=t[0],a=[i.versionsAPI.addCurrentVersion(o,e)].concat(tr(t.slice(1))),l=qn.apply(void 0,tr(a));i.isDestroyed()||(i.setCachedItems(s,l),i.hasError?r(l):n(l))})})},{key:"fetchComments",value:function(e){var t=this;return this.commentsAPI=new mt(this.options),new Promise(function(n){t.commentsAPI.getComments(t.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))})}},{key:"fetchVersions",value:function(){var e=this;return this.versionsAPI=new lt(this.options),new Promise(function(t){e.versionsAPI.getVersions(e.id,t,e.fetchFeedItemErrorCallback.bind(e,t))})}},{key:"fetchTasks",value:function(){var e=this;return this.tasksAPI=new Ct(this.options),new Promise(function(t){e.tasksAPI.getTasks(e.id,function(n){e.fetchTaskAssignments(n).then(t)},e.fetchFeedItemErrorCallback.bind(e,t))})}},{key:"fetchTasksNew",value:function(){var e=this;return this.tasksNewAPI=new Nt(this.options),new Promise(function(t){e.tasksNewAPI.getTasksForFile({file:{id:e.id},successCallback:t,errorCallback:function(n,r){return e.fetchFeedItemErrorCallback(t,n,r)}})})}},{key:"fetchFeedItemErrorCallback",value:function(e,t,n){var r=t.status,o=Object(Se.d)(r);this.feedErrorCallback(o,t,n),e()}},{key:"createTaskSuccessCallback",value:function(e,t,n,r,o,i){var a=this;if(!e)throw Object(Se.a)();this.errorCallback=i;var l=r.map(function(t){return a.createTaskAssignment(e,n,t)});Promise.all(l).then(function(e){var r=a.appendAssignmentsToTask(n,e);a.updateFeedItem(nr({},r,{isPending:!1}),t),o(n)},function(e){a.feedErrorCallback(!1,e,h.bb)})}},{key:"createTaskNewSuccessCallback",value:function(){var e,t=(e=i.a.mark(function e(t,n,r,o,a,l){var s,c,u=this;return i.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw Object(Se.a)();case 2:return this.errorCallback=l,e.prev=3,e.next=6,this.createTaskLink(t,r);case 6:return s=e.sent,e.next=9,Promise.all(o.map(function(e){return u.createTaskCollaborator(t,r,e)}));case 9:c=e.sent,this.updateFeedItem(nr({},r,{task_links:{entries:[s],next_marker:null,limit:1},assigned_to:{entries:c,next_marker:null,limit:c.length},isPending:!1}),n),a(r),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(3),this.feedErrorCallback(!1,e.t0,h.ab);case 17:case"end":return e.stop()}},e,this,[[3,14]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){er(i,r,o,a,l,"next",e)}function l(e){er(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n,r,o,i,a){return t.apply(this,arguments)}}()},{key:"createTaskAssignment",value:function(e,t,n){var r=this;if(!e.id)throw Object(Se.a)();return this.id=e.id,new Promise(function(o,i){var a=new xt(r.options);r.taskAssignmentsAPI.push(a),a.createTaskAssignment({file:e,taskId:t.id,assignTo:{id:n.id},successCallback:function(e){o(e)},errorCallback:function(n){r.deleteTask(e,t.id),i(n)}})})}},{key:"createTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(Se.a)();return this.id=e.id,new Promise(function(o,i){var a=new qt(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaborator({file:e,task:t,user:n,successCallback:o,errorCallback:function(e){i(e)}})})}},{key:"createTaskLink",value:function(e,t){var n=this;if(!e.id)throw Object(Se.a)();return this.id=e.id,new Promise(function(r,o){var i=new Yt(n.options);n.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:o})})}},{key:"fetchTaskAssignments",value:function(e){var t=this,n=e.entries.map(function(e){return new Promise(function(n){var r=new Ct(t.options);t.taskAssignmentsAPI.push(r),r.getAssignments(t.id,e.id,function(r){var o=t.appendAssignmentsToTask(e,r.entries);n(o)},t.fetchFeedItemErrorCallback.bind(t,n))})}),r={total_count:0,entries:[]};return Promise.all(n).then(function(e){return e.forEach(function(e){e&&(r.entries.push(e),r.total_count+=1)}),r},function(){return r})}},{key:"appendAssignmentsToTask",value:function(e,t){return t?(e.task_assignment_collection.entries=t.map(function(e){return{type:"task_assignment",id:e.id,assigned_to:e.assigned_to,status:e.status}}),e.task_assignment_collection.total_count+=t.length,e):e}},{key:"createFeedError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Vn.a.errorOccured;return{error:{message:e,title:t}}}},{key:"destroyTaskAssignments",value:function(){Array.isArray(this.taskAssignmentsAPI)&&(this.taskAssignmentsAPI.forEach(function(e){return e.destroy()}),this.taskAssignmentsAPI=[])}},{key:"destroyTaskCollaborators",value:function(){Array.isArray(this.taskCollaboratorsAPI)&&(this.taskCollaboratorsAPI.forEach(function(e){return e.destroy()}),this.taskCollaboratorsAPI=[])}},{key:"destroyTaskLinks",value:function(){Array.isArray(this.taskLinksAPI)&&(this.taskLinksAPI.forEach(function(e){return e.destroy()}),this.taskLinksAPI=[])}},{key:"fetchAppActivity",value:function(e){var t=this;return this.appActivityAPI=new Jn(this.options),new Promise(function(n){t.appActivityAPI.getAppActivity(t.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))})}},{key:"destroy",value:function(){or(ir(t.prototype),"destroy",this).call(this),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.tasksAPI&&(this.tasksAPI.destroy(),delete this.tasksAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskAssignments(),this.destroyTaskCollaborators(),this.destroyTaskLinks()}}])&&rr(n.prototype,r),o&&rr(n,o),t}();function pr(e){return(pr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hr(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:h.K;this.errorCode=h.sb;var i={headers:Cr({},h.Uc,o)};this.get({id:e,requestData:i,successCallback:function(e){var n=r.formatOpenWithData(e),o=r.consolidateBoxEditIntegrations(n);t(o)},errorCallback:n})}},{key:"consolidateBoxEditIntegrations",value:function(e){var t=wr(e);return e.some(function(e){return e.appIntegrationId===h.f})&&(t=e.filter(function(e){return e.appIntegrationId!==h.g})),t}},{key:"formatOpenWithData",value:function(e){var t=e.items,n=e.default_app_integration;return t.map(function(e){var t=e.app_integration,r=e.disabled_reasons,o=e.display_name,i=e.display_description,a=e.display_order,l=e.is_disabled,s=e.should_show_consent_popup,c=t.id,u=t.type;return{appIntegrationId:c,displayDescription:i,disabledReasons:r||[],displayOrder:a,isDefault:!!n&&c===n.id,isDisabled:l,displayName:o,requiresConsent:s,type:u}}).sort(function(e,t){return e.displayOrder-t.displayOrder})}}])&&_r(n.prototype,r),o&&_r(n,o),t}();function xr(e,t){for(var n=0;n=parseFloat(t)}},{key:"isSafari",value:function(){return this.browser===Pr.SAFARI}},{key:"isFirefox",value:function(){return this.browser===Pr.FIREFOX}},{key:"isChrome",value:function(){return this.browser===Pr.CHROME}},{key:"isIE",value:function(){return this.browser===Pr.IE}},{key:"isEdge",value:function(){return this.browser===Pr.EDGE}},{key:"isIEAndSpecificBrowserPluginSupported",value:function(e){return this.isIE()&&function(e){var t=e||"htmlfile",n=!1;try{"ActiveXObject"in window&&(n=!!new(0,window.ActiveXObject)(t))}catch(r){n=!1}return n}(e)}}])&&xr(t.prototype,n),r&&xr(t,r),e}());var Lr=function(e){var t,n=[],r=0;return new Promise(function(o,i){e.forEach(function(a,l){a.then(o).catch(function(o){return function(a){n[o]=a,(r+=1)===e.length&&(t=new Error("no promises resolved"),i(t))}}(l))})})},Nr={SAFARI_CHANNEL_NAME:"safari_channel",SECRET_STORE_COOKIE_NAME:"box-edit-secret-cookie-name",BOX_EDIT_APP_NAME:"BoxEdit",BOX_EDIT_NOT_SUPPORTED_ERROR:"box_edit_not_supported_error",BOX_EDIT_UNINSTALLED_ERROR:"box_edit_uninstalled_error",BOX_EDIT_UPGRADE_BROWSER_ERROR:"box_edit_upgrade_browser_error",BOX_EDIT_SAFARI_ERROR:"box_edit_safari_error",BOX_EDIT_INSECURE_REQUESTS_UPGRADED_ERROR:"box_edit_insecure_requests_upgraded_error",BOX_TOOLS_PLUGIN_NAME:"Box.BoxTools",BOX_SECURE_LOCAL_BASE_URL:"https://edit.boxlocalhost.com:",BOX_UNSECURE_LOCAL_BASE_URL:"http://127.0.0.1:",ACTIVEX_CHANNEL_NAME:"activex_channel",HTTP_CHANNEL_NAME:"http_channel",HTTPS_CHANNEL_NAME:"https_channel",OPERATION_STATUS:"status",OPERATION_REQUEST:"application_request",OPERATION_COMMAND:"application_command",UNCREATED_STATUS:"uncreated",CREATED_STATUS:"created",ACTIVE_STATUS:"active",HIVE_TABLE_WEBAPP_BOXTOOLS_ANALYTICS:"webapp_boxtools_analytics",KEY_LENGTH:16,KEY_ID_LENGTH:8,IV:"75392C57F66CE7E7EF47110410280DD7",OUTPUT_EVENT:"box_extension_output",REQUEST_ID_PRE:"BOX-EXT-REQ-ID-",REQUEST_TIMEOUT_RESPONSE_CODE:408,EXTENSION_BLACKLIST:{A6P:1,AC:1,AS:1,ACR:1,ACTION:1,AIR:1,APP:1,AWK:1,BAT:1,BOXNOTE:1,CGI:1,CHM:1,CMD:1,COM:1,CSH:1,DEK:1,DLD:1,DS:1,EBM:1,ESH:1,EXE:1,EZS:1,FKY:1,FRS:1,FXP:1,GADGET:1,HMS:1,HTA:1,ICD:1,INX:1,IPF:1,ISU:1,JAR:1,JS:1,JSE:1,JSX:1,KIX:1,LNK:1,LUA:1,MCR:1,MEM:1,MPX:1,MS:1,MSI:1,MST:1,OBS:1,PAF:1,PEX:1,PIF:1,PL:1,PRC:1,PRG:1,PVD:1,PWC:1,PY:1,PYC:1,PYO:1,QPX:1,RBX:1,REG:1,RGS:1,ROX:1,RPJ:1,SCAR:1,SCR:1,SCRIPT:1,SCPT:1,SCT:1,SH:1,SHB:1,SHS:1,SPR:1,TLB:1,TMS:1,U3P:1,UDF:1,URL:1,VB:1,VBE:1,VBS:1,VBSCRIPT:1,WCM:1,WPK:1,WS:1,WSF:1,XQT:1}};function Fr(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise(function(i,a){var l=r.buildDetailsObj(e,t,o),s=setTimeout(function(){a(new Error({status_code:Nr.REQUEST_TIMEOUT_RESPONSE_CODE}))},n);r.reqIdToPromiseMap.set(l.req_id,{resolve:i,rejectTimeout:s}),r.executeActiveXEvent({detail:l})})}),Wr(Br(Br(r)),"repairActiveXConnection",function(e){Mr.isIEAndSpecificBrowserPluginSupported(Nr.BOX_TOOLS_PLUGIN_NAME)&&(r.retryAttempt>=Vr||(r.retryAttempt+=1,setTimeout(function(){r.executeActiveXEvent(e)},100)))}),Wr(Br(Br(r)),"executeActiveXEvent",function(e){var t=r.createActiveXObjectJSRef(),n="ExecuteSync"in t;try{r.isSynchronous&&n?t.ExecuteSync(JSON.stringify(e)):t.Execute(JSON.stringify(e))}catch(o){r.repairActiveXConnection(e)}}),Wr(Br(Br(r)),"createActiveXObjectJSRef",function(){return new(0,r.window.ActiveXObject)(Nr.BOX_TOOLS_PLUGIN_NAME)}),Wr(Br(Br(r)),"setupActiveXCommunication",function(){r.isActiveXExtensionListenerAttached||(r.document.addEventListener(Nr.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!0)}),Wr(Br(Br(r)),"tearDownActiveXCommunication",function(){r.isActiveXExtensionListenerAttached&&(r.document.removeEventListener(Nr.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!1)}),Wr(Br(Br(r)),"appExtensionEventResponseHandler",function(e){r.retryAttempt>0&&(r.retryAttempt=0);var t="string"===typeof e.detail?JSON.parse(e.detail):e.detail;if(r.reqIdToPromiseMap.has(t.req_id)){var n=r.reqIdToPromiseMap.get(t.req_id);if(n){clearTimeout(n.rejectTimeout),r.reqIdToPromiseMap.delete(t.req_id);var o="string"===typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;n.resolve(o)}}}),Wr(Br(Br(r)),"getComServerStatus",function(e,t){return r.executeOperation(Nr.OPERATION_STATUS,null,e,t)}),Wr(Br(Br(r)),"sendRequest",function(e,t,n){return r.executeOperation(Nr.OPERATION_REQUEST,e,t,n)}),Wr(Br(Br(r)),"sendCommand",function(e,t,n){return r.executeOperation(Nr.OPERATION_COMMAND,e,t,n)}),Wr(Br(Br(r)),"destroy",function(){r.tearDownActiveXCommunication()}),r.isSynchronous=n,r.channelName=Nr.ACTIVEX_CHANNEL_NAME,r.reqIdToPromiseMap=new Map,r.isActiveXExtensionListenerAttached=!1,r.retryAttempt=0,r.document=document,r.window=window,r.setupActiveXCommunication(),r}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Hr(e,t)}(t,Dr),t}();function Gr(e,t){for(var n=0;n3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=window.document,a=new Date,l=[];"undefined"===typeof n&&(n=a.getTime()+5184e6),a.setTime(n),l.push("".concat(e,"=").concat(encodeURIComponent(t))),0!==n&&l.push("; expires=".concat(a.toUTCString())),l.push("; path=".concat(r)),o&&l.push("; domain=".concat(o)),l.push("; secure"),i.cookie=l.join("")}function Qr(e){return(Qr="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $r(e){return($r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Yr="GET",eo="POST",to=31536e6,no=17223,ro=17224,oo="Content-Type",io="text/plain; charset=UTF-8",ao="notrunning",lo=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.memoryStore=new r.a,this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}var t,n,o;return t=e,(n=[{key:"buildKey",value:function(e){return"".concat("localStore","/").concat("0","/").concat(e)}},{key:"canUseLocalStorage",value:function(){if(!this.localStorage)return!1;try{return this.localStorage.setItem(this.buildKey("TestKey"),"testValue"),this.localStorage.removeItem(this.buildKey("TestKey")),!0}catch(e){return!1}}},{key:"setItem",value:function(e,t){if(this.isLocalStorageAvailable)try{this.localStorage.setItem(this.buildKey(e),JSON.stringify(t))}catch(n){}else this.memoryStore.set(e,t)}},{key:"getItem",value:function(e){if(!this.isLocalStorageAvailable)return this.memoryStore.get(e);try{var t=this.localStorage.getItem(this.buildKey(e));return t?JSON.parse(t):null}catch(n){return null}}},{key:"removeItem",value:function(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(t){}else this.memoryStore.unset(e)}}])&&Gr(t.prototype,n),o&&Gr(t,o),e}());function so(){return lo.getItem("comUseFallback")?{primary:ro,fallback:no}:{primary:no,fallback:ro}}var co=function(e){function t(e,n,r){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),o=function(e,t){return!t||"object"!==Qr(t)&&"function"!==typeof t?Zr(e):t}(this,$r(t).call(this,e)),Jr(Zr(Zr(o)),"createCORSRequest",function(e,t){var n;try{return(n=new(0,o.window.XMLHttpRequest)).open(e,t,!0),n}catch(r){if(o.retryCounter<3)return o.retryCounter+=1,o.createCORSRequest(e,t);throw new Error("could not create xhr")}}),Jr(Zr(Zr(o)),"getComServerStatusInstallationPromise",function(e){var t,n,r=new Promise(function(e,r){t=e,n=r}),i=function(e,n){o.currentPort=e,e===no?lo.removeItem("comUseFallback"):lo.setItem("comUseFallback",1),o.comServerInstallationPromiseRejected=!1,t(n)},a=so(),l=a.primary,s=a.fallback;return o.checkInstallStatus(l,e).then(i.bind(Zr(Zr(o)),l)).catch(function(t){if(t===ao)return o.comServerInstallationPromiseRejected=!0,void n();o.checkInstallStatus(s,e).then(i.bind(Zr(Zr(o)),s)).catch(function(){o.comServerInstallationPromiseRejected=!0,n()})}),r}),Jr(Zr(Zr(o)),"sendComServerRequest",function(e,t,n,r){return new Promise(function(i,a){try{var l=o.createCORSRequest(e,t);l.setRequestHeader(oo,io),l.onload=function(){i(l)},l.onerror=function(){a(l)},r>0&&(l.timeout=r,l.ontimeout=function(){a(l)}),setTimeout(function(){l.send(n)},0)}catch(s){a()}})}),Jr(Zr(Zr(o)),"checkInstallStatus",function(e,t){return o.sendComServerRequest(Yr,"".concat(o.url).concat(e,"/status"),null,t).then(function(e){var t=JSON.parse(e.responseText);if(t.running)return t;throw o.comServerInstallationPromiseRejected=!0,new Error(ao)})}),Jr(Zr(Zr(o)),"getComChannel",function(e){return function(e){var t,n,r=window.document.cookie.split("; "),o=r.length;for(n=0;n0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Promise(function(i,a){var l=n.buildDetailsObj(e,t,o),s=setTimeout(function(){a(new Error({status_code:Nr.REQUEST_TIMEOUT_RESPONSE_CODE}))},r);n.reqIdToPromiseMap.set(l.req_id,{resolve:i,rejectTimeout:s}),n.createAndDispatchAppExtensionEvent({detail:l})})}),mo(ho(ho(n)),"setupSafariExtensionCommunication",function(){n.isAppExtensionListenerAttached||(n.isAppExtensionListenerAttached=!0,n.document.addEventListener(yo,n.appExtensionEventResponseHandler))}),mo(ho(ho(n)),"tearDownSafariExtensionCommunication",function(){n.isAppExtensionListenerAttached&&(n.isAppExtensionListenerAttached=!1,n.document.removeEventListener(yo,n.appExtensionEventResponseHandler))}),mo(ho(ho(n)),"appExtensionEventResponseHandler",function(e){var t="string"===typeof e.detail?JSON.parse(e.detail):e.detail;if(n.reqIdToPromiseMap.has(t.req_id)){var r=n.reqIdToPromiseMap.get(t.req_id);if(r){clearTimeout(r.rejectTimeout),n.reqIdToPromiseMap.delete(t.req_id);var o="string"===typeof t.com_server_response.data?JSON.parse(t.com_server_response.data):t.com_server_response.data;r.resolve(o)}}}),mo(ho(ho(n)),"createAndDispatchAppExtensionEvent",function(e){var t=new(0,n.window.CustomEvent)(vo,e);n.document.dispatchEvent(t)}),mo(ho(ho(n)),"getComServerStatus",function(e,t){return n.executeOperation(Nr.OPERATION_STATUS,null,e,t)}),mo(ho(ho(n)),"sendRequest",function(e,t,r){return n.executeOperation(Nr.OPERATION_REQUEST,e,t,r)}),mo(ho(ho(n)),"sendCommand",function(e,t,r){return n.executeOperation(Nr.OPERATION_COMMAND,e,t,r)}),mo(ho(ho(n)),"destroy",function(){n.tearDownSafariExtensionCommunication()}),n.reqIdToPromiseMap=new Map,n.channelName=Nr.SAFARI_CHANNEL_NAME,n.window=window,n.document=document,n.setupSafariExtensionCommunication(),n}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&po(e,t)}(t,Dr),t}();function go(e,t){for(var n=0;n=0&&(t=Math.floor(e)),t}function No(e){var t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}var Fo=function(){function e(t){var n,r,o;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o=!1,(r="isInitialized")in(n=this)?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,this.channels=[],this.isInitialized=!0,function(){var e=Mr.getName(),t=Mr.getVersion(),n=Nr.UNCREATED_STATUS;wo={box_tools_version:null,browser_name:e,browser_version:t,error_message:null,installation_type:null,http_channel_status:n,https_channel_status:n,activex_channel_status:n,safari_channel_status:n}}(),jo()?this.channels.push(So(t)):Io()?this.channels.push(Oo(t)):Ao()&&Mr.isIEAndSpecificBrowserPluginSupported(Nr.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){var t=Nr.CREATED_STATUS;return wo.activex_channel_status=t,new qr(e,!1)}(t)):Mr.isFirefox()&&!Mr.isMinBrowser(Pr.FIREFOX,Co)||To()||(this.channels=this.channels.concat([So(t),Oo(t),xo(t)]))}var t,n,r;return t=e,(n=[{key:"getComServerStatus",value:function(e){var t=this,n=Nr.ACTIVE_STATUS,r=Lo(e),o=No(r),i=To();return new Promise(function(e,a){return i?Mo.call(null,a):t.channels.length?Lr(t.channels.map(function(i){return i.getComServerStatus(r,o).then(function(r){return t.activeChannel=i,r&&(wo.installation_type=r.installation_type,wo.box_tools_version=r.version),wo["".concat(i.channelName,"_status")]=n,e(r)})})).catch(Mo.bind(null,a)):Mo.call(null,a)})}},{key:"sendRequest",value:function(e,t,n){var r=this,o=Lo(n),i=No(o);return this.activeChannel?this.activeChannel.sendRequest(e,o,i):this.getComServerStatus().then(function(){return r.activeChannel.sendRequest(e,o,i)})}},{key:"sendCommand",value:function(e,t){var n=this,r=Lo(t),o=No(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,o):this.getComServerStatus().then(function(){return n.activeChannel.sendCommand(e,r,o)})}}])&&go(t.prototype,n),r&&go(t,r),e}();function Ro(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&void 0!==arguments[0]&&arguments[0];this.fileAPI&&(this.fileAPI.destroy(),delete this.fileAPI),this.weblinkAPI&&(this.weblinkAPI.destroy(),delete this.weblinkAPI),this.plainUploadAPI&&(this.plainUploadAPI.destroy(),delete this.plainUploadAPI),this.chunkedUploadAPI&&(this.chunkedUploadAPI.destroy(),delete this.chunkedUploadAPI),this.folderAPI&&(this.folderAPI.destroy(),delete this.folderAPI),this.searchAPI&&(this.searchAPI.destroy(),delete this.searchAPI),this.recentsAPI&&(this.recentsAPI.destroy(),delete this.recentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.fileAccessStatsAPI&&(this.fileAccessStatsAPI.destroy(),delete this.fileAccessStatsAPI),this.tasksAPI&&(this.tasksAPI.destroy(),delete this.tasksAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.taskCollaboratorsAPI&&(this.taskCollaboratorsAPI.destroy(),delete this.taskCollaboratorsAPI),this.taskLinksAPI&&(this.taskLinksAPI.destroy(),delete this.taskLinksAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.usersAPI&&(this.usersAPI.destroy(),delete this.usersAPI),this.metadataAPI&&(this.metadataAPI.destroy(),delete this.metadataAPI),this.fileCollaboratorsAPI&&(this.fileCollaboratorsAPI.destroy(),delete this.fileCollaboratorsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),e&&(this.options.cache=new r.a)}},{key:"getCache",value:function(){return this.options.cache}},{key:"getAPI",value:function(e){var t;switch(e){case h.He:t=this.getFolderAPI();break;case h.Ge:t=this.getFileAPI();break;case h.Ie:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}},{key:"getFileAPI",value:function(){return this.destroy(),this.fileAPI=new Ce.a(this.options),this.fileAPI}},{key:"getWebLinkAPI",value:function(){return this.destroy(),this.weblinkAPI=new _e.a(this.options),this.weblinkAPI}},{key:"getPlainUploadAPI",value:function(){return this.destroy(),this.plainUploadAPI=new ge(this.options),this.plainUploadAPI}},{key:"getChunkedUploadAPI",value:function(){return this.destroy(),this.chunkedUploadAPI=new ce(this.options),this.chunkedUploadAPI}},{key:"getFolderAPI",value:function(){return this.destroy(),this.folderAPI=new we.a(this.options),this.folderAPI}},{key:"getSearchAPI",value:function(){return this.destroy(),this.searchAPI=new Me(this.options),this.searchAPI}},{key:"getRecentsAPI",value:function(){return this.destroy(),this.recentsAPI=new He(this.options),this.recentsAPI}},{key:"getMetadataAPI",value:function(e){return e&&this.destroy(),this.metadataAPI=new On(this.options),this.metadataAPI}},{key:"getVersionsAPI",value:function(e){return e&&this.destroy(),this.versionsAPI=new lt(this.options),this.versionsAPI}},{key:"getCommentsAPI",value:function(e){return e&&this.destroy(),this.commentsAPI=new mt(this.options),this.commentsAPI}},{key:"getTasksAPI",value:function(e){return e&&this.destroy(),this.tasksAPI=new Ct(this.options),this.tasksAPI}},{key:"getTaskAssignmentsAPI",value:function(e){return e&&this.destroy(),this.taskAssignmentsAPI=new xt(this.options),this.taskAssignmentsAPI}},{key:"getTasksNewAPI",value:function(e){return e&&this.destroy(),this.tasksNewAPI=new Nt(this.options),this.tasksNewAPI}},{key:"getTaskCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new qt(this.options),this.taskCollaboratorsAPI}},{key:"getTaskLinksAPI",value:function(e){return e&&this.destroy(),this.taskLinksAPI=new Yt(this.options),this.taskLinksAPI}},{key:"getFileAccessStatsAPI",value:function(e){return e&&this.destroy(),this.fileAccessStatsAPI=new an(this.options),this.fileAccessStatsAPI}},{key:"getFileCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new Wn(this.options),this.fileCollaboratorsAPI}},{key:"getUsersAPI",value:function(e){return e&&this.destroy(),this.usersAPI=new hn(this.options),this.usersAPI}},{key:"getFeedAPI",value:function(e){return e&&this.destroy(),this.feedItemsAPI=new dr(this.options),this.feedItemsAPI}},{key:"getOpenWithAPI",value:function(e){return e&&this.destroy(),this.openWithAPI=new Or(this.options),this.openWithAPI}},{key:"getAppIntegrationsAPI",value:function(e){return e&&this.destroy(),this.appIntegrationsAPI=new br(this.options),this.appIntegrationsAPI}},{key:"getBoxEditAPI",value:function(){return this.boxEditAPI=new Wo,this.boxEditAPI}}])&&qo(t.prototype,n),o&&qo(t,o),e}();n.d(t,"a",function(){return Go})},function(e,t,n){var r=n(212),o=1,i=4;e.exports=function(e){return r(e,o|i)}},function(e,t,n){"use strict";function r(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=!0,o="Invariant failed";t.a=function(e,t){if(!e)throw r?new Error(o):new Error(o+": "+(t||""))}},function(e,t,n){"use strict";var r=n(0),o=n(30);function i(){return(i=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,l=void 0===n?"":n,s=e.isDisabled,c=e.isSelected,u=e.isLoading,f=a(e,["children","className","isDisabled","isSelected","isLoading"]);return r.createElement(o.a,i({className:"btn-primary ".concat(l),isDisabled:s,isLoading:u,isSelected:c},f),t)}},function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(312)},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";var r=n(237),o=n(424),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function l(e){return null!==e&&"object"===typeof e}function s(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n");var p=d[0],h=d[1],m={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-haspopup":"true","aria-expanded":u?"true":"false"};u&&(m["aria-controls"]=this.menuID);var v={id:this.menuID,key:this.menuID,initialFocusIndex:f,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID},y="top left",b="bottom left";o&&(y="top right",b="bottom right");var g=[];a&&g.push({to:"scrollParent",attachment:"together"}),l&&g.push({to:"window",attachment:"together"});var w=t instanceof HTMLElement?t:document.body;return r.createElement(i.a,{attachment:y,bodyElement:w,className:s,classPrefix:"dropdown-menu",constraints:g,enabled:u,targetAttachment:b},r.cloneElement(p,m),u?r.cloneElement(h,v):null)}}])&&c(n.prototype,o),a&&c(n,a),t}();p(h,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isRightAligned:!1}),t.a=h},function(e,t,n){"use strict";var r=n(0),o=n(22),i=n.n(o),a=n(8),l=n.n(a);n(521);function s(e){return(s="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e,t){for(var n=0;n li > ").concat(m),y="ul.submenu > ".concat(m,", ul.submenu > li > ").concat(m);function b(e){e.stopPropagation(),e.preventDefault()}var g=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),n=function(e,t){return!t||"object"!==s(t)&&"function"!==typeof t?p(e):t}(this,f(t).call(this,e)),h(p(p(n)),"setInitialFocusIndex",function(e){e||(e=n.props);var t=e.initialFocusIndex;n.setMenuItemEls(),"number"===typeof t?setTimeout(function(){n.setFocus(t)},0):null===t&&setTimeout(function(){n.menuEl&&n.menuEl.focus()},0)}),h(p(p(n)),"setMenuItemEls",function(){var e=n.props.isSubmenu?y:v;n.menuItemEls=n.menuEl?[].slice.call(n.menuEl.querySelectorAll(e)):[]}),h(p(p(n)),"getMenuItemElFromEventTarget",function(e){for(var t=null,r=-1,o=0;o=t?0:e<0?t-1:e,n.menuItemEls[n.focusIndex].focus()}}),h(p(p(n)),"focusFirstItem",function(){n.setFocus(0)}),h(p(p(n)),"focusLastItem",function(){n.setFocus(-1)}),h(p(p(n)),"focusNextItem",function(){n.setFocus(n.focusIndex+1)}),h(p(p(n)),"focusPreviousItem",function(){n.setFocus(n.focusIndex-1)}),h(p(p(n)),"fireOnCloseHandler",function(e,t){var r=n.props.onClose;r&&r(e,t)}),h(p(p(n)),"handleClick",function(e){(e.target instanceof Node?n.getMenuItemElFromEventTarget(e.target):{}).menuItemEl&&n.fireOnCloseHandler(!1,e)}),h(p(p(n)),"handleKeyDown",function(e){var t=n.props,r=t.isSubmenu,o=t.initialFocusIndex;switch(e.key){case"ArrowDown":b(e),null!==o||n.keyboardPressed?n.focusNextItem():n.focusFirstItem();break;case"ArrowUp":b(e),n.focusPreviousItem();break;case"ArrowLeft":if(!r)return;b(e),n.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":b(e),n.focusFirstItem();break;case"End":case"PageDown":b(e),n.focusLastItem();break;case"Escape":b(e),n.fireOnCloseHandler(!0,e);break;case"Tab":n.fireOnCloseHandler(!0,e);break;case" ":case"Enter":b(e),e.target instanceof HTMLElement&&e.target.click()}n.keyboardPressed=!0}),n.menuEl=null,n.focusIndex=0,n.menuItemEls=[],n}var n,o,a;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(t,r["Component"]),n=t,(o=[{key:"componentDidMount",value:function(){this.setInitialFocusIndex()}},{key:"componentWillReceiveProps",value:function(e){e.isSubmenu&&!e.isHidden&&this.props.isHidden&&this.setInitialFocusIndex(e)}},{key:"componentDidUpdate",value:function(e){if(r.Children.toArray(e.children).length!==r.Children.toArray(this.props.children).length){var t=this.menuItemEls[this.focusIndex];this.setMenuItemEls();var n=this.getMenuItemElFromEventTarget(t).menuIndex;this.setFocus(n)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=t.isHidden,s=t.setRef,u=t.shouldOutlineFocus,f=c(t,["children","className","isHidden","setRef","shouldOutlineFocus"]),d=i()(f,["onClose","initialFocusIndex","isSubmenu"]);return d.className=l()("aria-menu",o,{"is-hidden":a,"should-outline-focus":u}),d.ref=function(t){e.menuEl=t,s&&s(t)},d.role="menu",d.tabIndex=-1,d.onClick=this.handleClick,d.onKeyDown=this.handleKeyDown,r.createElement("ul",d,n)}}])&&u(n.prototype,o),a&&u(n,a),t}();h(g,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1}),t.a=g},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3);t.a=function(e){var t=e.language,n=e.messages,a=e.children;if(!!t&&!!n){var l=t&&t.substr(0,t.indexOf("-"));return o.a.createElement(i.e,{locale:l,messages:n},a)}return r.Children.only(a)}},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";var r=n(23);function o(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,o=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],a=e&&o(e),l=t&&o(t),s=a||l;if(e&&o(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var c=void 0;if(r.length){var u=r[r.length-1];c="."===u||".."===u||""===u}else c=!1;for(var f=0,d=r.length;d>=0;d--){var p=r[d];"."===p?i(r,d):".."===p?(i(r,d),f++):f&&(i(r,d),f--)}if(!s)for(;f--;f)r.unshift("..");!s||""===r[0]||r[0]&&o(r[0])||r.unshift("");var h=r.join("/");return c&&"/"!==h.substr(-1)&&(h+="/"),h},l="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var s=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r="undefined"===typeof t?"undefined":l(t);if(r!==("undefined"===typeof n?"undefined":l(n)))return!1;if("object"===r){var o=t.valueOf(),i=n.valueOf();if(o!==t||i!==n)return e(o,i);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},c=n(37);function u(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)}(e,t)?e.substr(t.length):e}function p(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function h(e){var t=e.pathname,n=e.search,r=e.hash,o=t||"/";return n&&"?"!==n&&(o+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(o+="#"===r.charAt(0)?r:"#"+r),o}function m(e,t,n,o){var i;"string"===typeof e?(i=function(e){var t=e||"/",n="",r="",o=t.indexOf("#");-1!==o&&(r=t.substr(o),t=t.substr(0,o));var i=t.indexOf("?");return-1!==i&&(n=t.substr(i),t=t.substr(0,i)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=Object(r.a)({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(l){throw l instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):l}return n&&(i.key=n),o?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=a(i.pathname,o.pathname)):i.pathname=o.pathname:i.pathname||(i.pathname="/"),i}function v(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&s(e.state,t.state)}function y(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,o){if(null!=e){var i="function"===typeof e?e(t,n):e;"string"===typeof i?"function"===typeof r?r(i,o):o(!0):o(!1!==i)}else o(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;r=0?t:0)+"#"+e)}function P(e){void 0===e&&(e={}),b||Object(c.a)(!1);var t=window.history,n=(window.navigator.userAgent.indexOf("Firefox"),e),o=n.getUserConfirmation,i=void 0===o?g:o,a=n.hashType,l=void 0===a?"slash":a,s=e.basename?p(u(e.basename)):"",f=S[l],w=f.encodePath,C=f.decodePath;function _(){var e=C(O());return s&&(e=d(e,s)),m(e)}var k=y();function P(e){Object(r.a)(U,e),U.length=t.length,k.notifyListeners(U.location,U.action)}var T=!1,j=null;function I(){var e=O(),t=w(e);if(e!==t)x(t);else{var n=_(),r=U.location;if(!T&&v(r,n))return;if(j===h(n))return;j=null,function(e){if(T)T=!1,P();else{k.confirmTransitionTo(e,"POP",i,function(t){t?P({action:"POP",location:e}):function(e){var t=U.location,n=N.lastIndexOf(h(t));-1===n&&(n=0);var r=N.lastIndexOf(h(e));-1===r&&(r=0);var o=n-r;o&&(T=!0,F(o))}(e)})}}(n)}}var A=O(),M=w(A);A!==M&&x(M);var L=_(),N=[h(L)];function F(e){t.go(e)}var R=0;function D(e){1===(R+=e)&&1===e?window.addEventListener(E,I):0===R&&window.removeEventListener(E,I)}var z=!1;var U={length:t.length,action:"POP",location:L,createHref:function(e){return"#"+w(s+h(e))},push:function(e,t){var n=m(e,void 0,void 0,U.location);k.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=h(n),r=w(s+t);if(O()!==r){j=t,function(e){window.location.hash=e}(r);var o=N.lastIndexOf(h(U.location)),i=N.slice(0,-1===o?0:o+1);i.push(t),N=i,P({action:"PUSH",location:n})}else P()}})},replace:function(e,t){var n=m(e,void 0,void 0,U.location);k.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=h(n),r=w(s+t);O()!==r&&(j=t,x(r));var o=N.indexOf(h(U.location));-1!==o&&(N[o]=t),P({action:"REPLACE",location:n})}})},go:F,goBack:function(){F(-1)},goForward:function(){F(1)},block:function(e){void 0===e&&(e=!1);var t=k.setPrompt(e);return z||(D(1),z=!0),function(){return z&&(z=!1,D(-1)),t()}},listen:function(e){var t=k.appendListener(e);return D(1),function(){D(-1),t()}}};return U}function T(e,t,n){return Math.min(Math.max(e,t),n)}function j(e){void 0===e&&(e={});var t=e,n=t.getUserConfirmation,o=t.initialEntries,i=void 0===o?["/"]:o,a=t.initialIndex,l=void 0===a?0:a,s=t.keyLength,c=void 0===s?6:s,u=y();function f(e){Object(r.a)(w,e),w.length=w.entries.length,u.notifyListeners(w.location,w.action)}function d(){return Math.random().toString(36).substr(2,c)}var p=T(l,0,i.length-1),v=i.map(function(e){return m(e,void 0,"string"===typeof e?d():e.key||d())}),b=h;function g(e){var t=T(w.index+e,0,w.entries.length-1),r=w.entries[t];u.confirmTransitionTo(r,"POP",n,function(e){e?f({action:"POP",location:r,index:t}):f()})}var w={length:v.length,action:"POP",location:v[p],index:p,entries:v,createHref:b,push:function(e,t){var r=m(e,t,d(),w.location);u.confirmTransitionTo(r,"PUSH",n,function(e){if(e){var t=w.index+1,n=w.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),f({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,t){var r=m(e,t,d(),w.location);u.confirmTransitionTo(r,"REPLACE",n,function(e){e&&(w.entries[w.index]=r,f({action:"REPLACE",location:r}))})},go:g,goBack:function(){g(-1)},goForward:function(){g(1)},canGo:function(e){var t=w.index+e;return t>=0&&t3&&void 0!==b[3]?b[3]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(c=this.getCache(),u=this.getCacheKey(t),f=!l.forceFetch&&c.has(u),d=f?c.get(u):{id:t},p=Object(i.m)(d,l.fields),h={id:Object(a.a)(t),url:this.getUrl(t),headers:{"X-Rep-Hints":s.Ue}},this.errorCode=s.qb,this.successCallback=n,this.errorCallback=r,!f||0!==p.length){e.next=17;break}if(n(d),p=l.fields||[],l.refreshCache){e.next=17;break}return e.abrupt("return");case 17:return p.length>0&&(h.params={fields:p.toString()}),e.prev=18,e.next=21,this.xhr.get(h);case 21:if(m=e.sent,v=m.data,!this.isDestroyed()){e.next=25;break}return e.abrupt("return");case 25:y=Object(i.k)(v,p),c.has(u)?c.merge(u,y):c.set(u,y),this.successHandler(c.get(u)),e.next=33;break;case 30:e.prev=30,e.t0=e.catch(18),this.errorHandler(e.t0);case 33:case"end":return e.stop()}},e,this,[[18,30]])}),function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){f(i,r,o,a,l,"next",e)}function l(e){f(i,r,o,a,l,"throw",e)}a(void 0)})});return function(e,n,r){return t.apply(this,arguments)}}()},{key:"getFileExtension",value:function(e,t,n){this.isDestroyed()||this.getFile(e,t,n,{fields:[s.jc]})}}])&&d(n.prototype,r),u&&d(n,u),t}();t.a=v},function(e,t,n){"use strict";t.__esModule=!0;var r,o=n(481),i=(r=o)&&r.__esModule?r:{default:r};t.default=function(){function e(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}n.d(t,"a",function(){return r})},function(e,t,n){"use strict";var r=n(0),o=n(76),i=n.n(o),a=n(144),l=n(8),s=n.n(l),c=n(1);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=e.fields,n=e.noPagination,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.folderSuccessHandler;if(this.isDestroyed())return Promise.reject();var o=t||a.f;this.errorCode=f.rb;var i={fields:o.toString()};return n||(i=h({},i,{direction:this.sortDirection.toLowerCase(),limit:this.limit,offset:this.offset,fields:o.toString(),sort:this.sortBy.toLowerCase()})),this.xhr.get({url:this.getUrl(this.id),params:i}).then(r).catch(this.errorHandler)}},{key:"getFolderFields",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=t,this.errorCallback=n,this.folderRequest(p({},r,{noPagination:!0}),this.folderDetailsSuccessHandler))}},{key:"getFolder",value:function(e,t,n,r,o,i,a){var l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{};this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.limit=t,this.offset=n,this.sortBy=r,this.sortDirection=o,this.successCallback=i,this.errorCallback=a,l.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest())}},{key:"folderCreateRequest",value:function(e){if(this.isDestroyed())return Promise.reject();this.errorCode=f.Y;var t="".concat(this.getUrl(),"?fields=").concat(a.f.toString());return this.xhr.post({url:t,data:{name:e,parent:{id:this.id}}}).then(this.createSuccessHandler).catch(this.errorHandler)}},{key:"create",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;this.isDestroyed()||(this.id=e,this.key=this.getCacheKey(e),this.successCallback=n,this.errorCallback=r,this.folderCreateRequest(t))}}])&&m(n.prototype,r),w&&m(n,w),t}();t.a=w},function(e,t,n){"use strict";var r=n(96),o=n(1);function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n=t||n<0||y&&e-m>=f}function C(){var e=o();if(w(e))return _(e);p=setTimeout(C,function(e){var n=t-(e-h);return y?s(n,f-(e-m)):n}(e))}function _(e){return p=void 0,b&&c?g(e):(c=u=void 0,d)}function k(){var e=o(),n=w(e);if(c=arguments,u=this,h=e,n){if(void 0===p)return function(e){return m=e,p=setTimeout(C,t),v?g(e):d}(h);if(y)return clearTimeout(p),p=setTimeout(C,t),g(h)}return void 0===p&&(p=setTimeout(C,t)),d}return t=i(t)||0,r(n)&&(v=!!n.leading,f=(y="maxWait"in n)?l(i(n.maxWait)||0,t):f,b="trailing"in n?!!n.trailing:b),k.cancel=function(){void 0!==p&&clearTimeout(p),m=0,c=h=u=p=void 0},k.flush=function(){return void 0===p?d:_(o())},k}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return a});var r=n(10),o=n.n(r);n(111);function i(e,t){return!!o()(e,t,!1)}function a(e,t){return o()(e,t,{})}},function(e,t,n){"use strict";var r=n(4),o=n.n(r),i=n(1);function a(e){return(a="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t,n,r,o,i,a){try{var l=e[i](a),s=l.value}catch(u){return void n(u)}l.done?t(s):Promise.resolve(s).then(r,o)}function s(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(e){l(i,r,o,a,s,"next",e)}function s(e){l(i,r,o,a,s,"throw",e)}a(void 0)})}}function c(e,t){for(var n=0;n=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:n.props.errorOrigin;if(e&&t&&o){var i={type:"error",code:t,message:e.message,origin:o,context_info:u(m({},a.jd,!0),r)};n.props.onError(i)}}),n}var n,o,i;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(t,r["Component"]),n=t,(o=[{key:"componentDidCatch",value:function(e,t){var n=this;this.setState({error:e},function(){n.handleError(e,a.Jb,u({},t),n.props.errorOrigin)})}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.errorComponent,o=c(e,["children","errorComponent"]),i=this.state.error;return i?r.createElement(n,{error:i}):r.cloneElement(t,u({},o,{onError:this.handleError}))}}])&&f(n.prototype,o),i&&f(n,i),t}();m(v,"defaultProps",{errorComponent:l.a,onError:i.a});var y=v;function b(){return(b=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:l.a;return function(n){return r.forwardRef(function(o,i){return r.createElement(y,b({errorComponent:t,errorOrigin:e},o),r.createElement(n,{ref:i}))})}};n.d(t,"a",function(){return g})},function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function s(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new x(r||[]);return i._invoke=function(e,t,n){var r=u;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===p){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=E(a,n);if(l){if(l===h)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var s=c(e,t,n);if("normal"===s.type){if(r=n.done?p:f,s.arg===h)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=p,n.method="throw",n.arg=s.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(r){return{type:"throw",arg:r}}}e.wrap=s;var u="suspendedStart",f="suspendedYield",d="executing",p="completed",h={};function m(){}function v(){}function y(){}var b={};b[i]=function(){return this};var g=Object.getPrototypeOf,w=g&&g(g(P([])));w&&w!==n&&r.call(w,i)&&(b=w);var C=y.prototype=m.prototype=Object.create(b);function _(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function k(e){var t;this._invoke=function(n,o){function i(){return new Promise(function(t,i){!function t(n,o,i,a){var l=c(e[n],e,o);if("throw"!==l.type){var s=l.arg,u=s.value;return u&&"object"===typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(u).then(function(e){s.value=e,i(s)},function(e){return t("throw",e,i,a)})}a(l.arg)}(n,o,t,i)})}return t=t?t.then(i,i):i()}}function E(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,E(e,n),"throw"===n.method))return h;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return h}var o=c(r,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,h;var i=o.arg;return i?i.done?(n[e.resultName]=i.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,h):i:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,h)}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function x(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function P(e){if(e){var n=e[i];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var o=-1,a=function n(){for(;++o=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;O(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:P(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),h}},e}(e.exports);try{regeneratorRuntime=r}catch(o){Function("r","regeneratorRuntime = r")(r)}},function(e,t,n){var r=n(102),o=n(342),i=n(343),a="[object Null]",l="[object Undefined]",s=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?l:a:s&&s in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(158),o=n(159);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var l=-1,s=t.length;++l0&&void 0!==arguments[0]&&arguments[0];if("undefined"===typeof r||t){var n=e.MediaSource;r=!!n&&"function"===typeof n.isTypeSupported&&n.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return r}}],(i=null)&&n(o.prototype,i),a&&n(o,a),t}();t.a=o}).call(this,n(72))},function(e,t,n){"use strict";var r=n(7),o=n(1);t.a=function(e,t,n,i){var a=[];return e.forEach(function(e){var l,s=e.id,c=e.type;if(!s||!c)throw Object(r.a)();switch(c){case o.He:l=t;break;case o.Ge:l=n;break;case o.Ie:l=i;break;default:throw new Error("Unknown Type!")}var u=l.getCache(),f=l.getCacheKey(s);u.has(f)?u.merge(f,e):u.set(f,e),a.push(f)}),a}},function(e,t,n){"use strict";var r=n(5),o=n.n(r),i=n(112),a=n.n(i),l=n(7),s=n(14),c=n(1);function u(e){return(u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(){return(f=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.gb;var i=e.id,a=e.permissions,s=e.parent,u=e.type;if(!i||!a||!s||!u)return r(Object(l.a)(),this.errorCode),Promise.reject();var f=s.id,d=a.can_delete;if(!d||!f)return r(Object(l.b)(),this.errorCode),Promise.reject();this.id=i,this.parentId=f,this.successCallback=t,this.errorCallback=r;var p="".concat(this.getUrl(i)).concat(u===c.He?"?recursive=true":"");return this.xhr.delete({url:p}).then(this.deleteSuccessHandler).catch(function(e){n.errorHandler(e)})}},{key:"rename",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Gb;var a=e.id,s=e.permissions;if(!a||!s)return i(Object(l.a)(),this.errorCode),Promise.reject();var u=s.can_rename;return u?(this.id=a,this.successCallback=n,this.errorCallback=i,this.xhr.put({url:"".concat(this.getUrl(a)),data:{name:t}}).then(this.renameSuccessHandler).catch(function(e){r.errorHandler(e)})):(i(Object(l.b)(),this.errorCode),Promise.reject())}},{key:"share",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.Ib;var a=e.id,s=e.permissions;if(!a||!s)return i(Object(l.a)(),this.errorCode),Promise.reject();var u=s.can_share,f=s.can_set_share_access;return u&&f?(this.id=a,this.successCallback=n,this.errorCallback=i,this.xhr.put({url:this.getUrl(this.id),data:{shared_link:t===c.c?null:{access:t}}}).then(this.shareSuccessHandler).catch(function(e){r.errorHandler(e)})):(i(Object(l.b)(),this.errorCode),Promise.reject())}}])&&d(n.prototype,r),i&&d(n,i),t}();t.a=y},function(e,t,n){"use strict";function r(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o=0,i=n;return new Promise(function(n,a){function l(s){setTimeout(function(){o+=1,new Promise(function(t,n){e(t,n,a)}).then(n).catch(function(e){o0&&void 0!==arguments[0]?arguments[0]:{},t=function(){return Object(o.a)(function(t,n){return e.loader().then(t,n)},3,500,2)},n=r.lazy(t);return function(t){function o(){var e,t;a(this,o);for(var n=arguments.length,r=new Array(n),i=0;i=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e){for(var t=1;t-1&&e%1==0&&e=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=function(t){var n=t.isLoading,a=void 0!==n&&n,l=t.loadingIndicatorProps,s=void 0===l?{}:l,c=i(t,["isLoading","loadingIndicatorProps"]);return a?r.createElement(o.a,s):r.createElement(e,c)};return t.displayName="Loadable".concat(e.displayName||e.name||"Component"),t}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(60).f,o=n(74),i=n(33)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n(6),a=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,a=void 0===o?"#979797":o,l=e.height,s=void 0===l?64:l,c=e.title,u=e.width,f=void 0===u?64:u;return r.createElement(i.a,{className:"icon-sad-cloud ".concat(n),height:s,title:c,viewBox:"0 0 1224 792",width:f},r.createElement("g",{transform:"translate(1 1)"},r.createElement("path",{className:"fill-color",d:"M273.7 788.9c-142 0-257.6-116.5-257.6-259.7 0-140.3 110.9-255 249-259.6 4.6-70.2 33.9-135.4 83.6-185.3C402.8 29.7 475-.3 551.9-.3c56.8 0 110.7 11.3 156 32.7 43.7 20.7 78.4 50.5 101.3 86.9 7.8-1.9 16.2-2.9 25.1-2.9 43.4 0 97.3 23.8 128.2 56.6l.2.2c23.9 26 41.2 59.1 48.9 93.1 4.1 18.3 5 35.1 2.8 49.2 15.8 3.5 32.3 9.8 48.9 18.7 25.1 13.5 49.9 32.7 71.7 55.4 48.9 51.2 77 113.7 77 171.7 0 61.1-23.4 118.4-66 161.3-42.5 42.8-99.1 66.4-159.5 66.4l-712.8-.1zm0-479.5c-120 0-217.6 98.6-217.6 219.7 0 121.2 97.6 219.7 217.6 219.7h712.8c49.6 0 96.2-19.4 131.1-54.6 35.1-35.3 54.4-82.6 54.4-133.1 0-47.7-24-100.2-65.9-144-37.8-39.5-84.7-65-119.6-65-7.9 0-15.1-4.6-18.3-11.9-3.2-7.2-1.9-15.6 3.4-21.5 2.8-3.1 6.8-18 1-43.8-6.1-26.9-20.4-54.1-39.3-74.8-23.2-24.6-66.7-43.9-99-43.9-9.9 0-18.3 1.7-24.8 5.2-4.7 2.5-10.3 3-15.3 1.4-5.1-1.6-9.3-5.2-11.8-9.9-18.2-35.5-49.9-64.7-91.6-84.4-40-18.9-88-28.9-138.9-28.9-66.2 0-128.3 25.8-175 72.8-46.8 47.1-72.6 109.9-72.6 176.9 0 11-9 20-20 20h-10.6z",fill:a}),r.createElement("path",{className:"fill-color",d:"M442.7 585.5c-2.9 0-5.9-.6-8.7-2-10-4.8-14.1-16.7-9.3-26.7 15.4-32 39.7-59.1 70.3-78.1 31-19.3 66.9-29.5 104-29.5 75.5 0 141.4 40 176.2 107.1 5.1 9.8 1.3 21.9-8.5 27-9.8 5.1-21.9 1.3-27-8.5-27.8-53.6-80.3-85.5-140.6-85.5-29.6 0-58.2 8.1-82.8 23.5-24.1 15.1-43.3 36.3-55.4 61.5-3.6 7-10.7 11.2-18.2 11.2z",fill:a}),r.createElement("circle",{className:"fill-color",cx:"496.3",cy:"351.5",fill:a,r:"32.1"}),r.createElement("circle",{className:"fill-color",cx:"688.9",cy:"351.5",fill:a,r:"32.1"})))},l=(n(536),Object(o.f)({errorMaskIconSadCloudText:{id:"boxui.errorMask.iconSadCloudText",defaultMessage:"Sad Box Cloud"}}));t.a=function(e){var t=e.errorHeader,n=e.errorSubHeader;return r.createElement("div",{className:"error-mask"},r.createElement(a,{className:"error-mask-sad-cloud",height:50,title:r.createElement(o.b,l.errorMaskIconSadCloudText)}),r.createElement("h4",null,t),r.createElement("h5",null,n))}},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000":i,l=e.height,s=void 0===l?6:l,c=e.title,u=e.width,f=void 0===u?10:u;return r.createElement(o.a,{className:"icon-caret-down ".concat(n),height:s,title:c,viewBox:"0 0 10 6",width:f},r.createElement("path",{className:"fill-color",d:"M0 .5l5 5 5-5H0z",fill:a,fillRule:"evenodd"}))}},function(e,t,n){"use strict";var r=n(0),o=n(92);n(111);t.a=function(e){var t=e.features,n=void 0===t?{}:t,i=e.children;return r.createElement(o.a.Provider,{value:n},i)}},function(e,t,n){"use strict";t.a=function(e){if(!e)return"0 Byte";var t=Math.floor(Math.log(e)/Math.log(1024));return"".concat(parseFloat((e/Math.pow(1024,t)).toFixed(2))," ").concat(["Bytes","KB","MB","GB","TB","PB"][t])}},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#444444":i,l=e.height,s=void 0===l?12:l,c=e.title,u=e.width,f=void 0===u?12:u;return r.createElement(o.a,{className:"icon-open-with ".concat(n),height:s,title:c,viewBox:"0 0 12 12",width:f},r.createElement("path",{className:"fill-color",d:"M10 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h8m0-1H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2z",fill:a}),r.createElement("path",{className:"fill-color",d:"M3 3v1h4.29L2.65 8.65l.7.7L8 4.71V9h1V3H3z",fill:a}))}},function(e,t,n){"use strict";var r=n(0),o=n(6);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,l=e.height,s=void 0===l?20:l,c=e.title,u=e.width,f=void 0===u?20:u;return r.createElement(o.a,{className:"icon-ellipsis ".concat(n),height:s,title:c,viewBox:"0 0 10 2",width:f},r.createElement("path",{className:"fill-color",d:"M1 2c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zm8 0c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1zM5 2c.6 0 1-.4 1-1s-.4-1-1-1-1 .4-1 1 .4 1 1 1z",fill:a,fillRule:"evenodd"}))}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(3),a=n(152),l=n(2),s=(n(549),{weekday:"short",month:"short",year:"numeric",day:"numeric"}),c=Object(i.g)(function(e){var t=e.date,n=e.dateFormat,r=void 0===n?s:n,c=e.omitCommas,u=void 0!==c&&c,f=e.intl,d=e.relative,p=void 0===d||d,h=e.capitalize,m=void 0!==h&&h,v=new Date(t),y=Object(a.f)(v),b=Object(a.g)(v);if(p&&(y||b)){var g=o.a.createElement(i.b,l.a.today);return b&&(g=o.a.createElement(i.b,l.a.yesterday)),m?o.a.createElement("span",{className:"be-date-capitalize"},g):g}var w=f.formatDate(v,r);return w=u?w.replace(/,/g,""):w});n.d(t,"a",function(){return c})},function(e,t,n){"use strict";var r=n(23),o=n(63),i=n(36),a=n(0),l=n(11),s=n.n(l),c=n(287),u=["client","offset","scroll","bounds","margin"];function f(e){var t=[];return u.forEach(function(n){e[n]&&t.push(n)}),t}function d(e,t){var n={};if(t.indexOf("client")>-1&&(n.client={top:e.clientTop,left:e.clientLeft,width:e.clientWidth,height:e.clientHeight}),t.indexOf("offset")>-1&&(n.offset={top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}),t.indexOf("scroll")>-1&&(n.scroll={top:e.scrollTop,left:e.scrollLeft,width:e.scrollWidth,height:e.scrollHeight}),t.indexOf("bounds")>-1){var r=e.getBoundingClientRect();n.bounds={top:r.top,right:r.right,bottom:r.bottom,left:r.left,width:r.width,height:r.height}}if(t.indexOf("margin")>-1){var o=getComputedStyle(e);n.margin={top:o?parseInt(o.marginTop):0,right:o?parseInt(o.marginRight):0,bottom:o?parseInt(o.marginBottom):0,left:o?parseInt(o.marginLeft):0}}return n}var p=function(e){return function(t){var n,l;return l=n=function(n){function l(){for(var t,r=arguments.length,o=new Array(r),i=0;i0?"".concat(t.toString(),":"):"",i=r<10?"0".concat(r.toString()):r.toString(),a=n.toString();return t>0&&n<10&&(a="0".concat(a)),"".concat(o).concat(a,":").concat(i)}function u(e,t){return e instanceof Date?new Date(e.getTime()+t):e+t}function f(e){return e.getTime()-e.getTimezoneOffset()*i}function d(e){var t=new Date(e),n=t.getTime(),r=t.getTimezoneOffset();return new Date(n+r*i)}},function(e,t,n){(function(e){var r=n(49),o=n(363),i=t&&!t.nodeType&&t,a=i&&"object"==typeof e&&e&&!e.nodeType&&e,l=a&&a.exports===i?r.Buffer:void 0,s=(l?l.isBuffer:void 0)||o;e.exports=s}).call(this,n(119)(e))},function(e,t,n){var r=n(373),o=n(156),i=n(374),a=n(375),l=n(223),s=n(85),c=n(214),u=c(r),f=c(o),d=c(i),p=c(a),h=c(l),m=s;(r&&"[object DataView]"!=m(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=m(new o)||i&&"[object Promise]"!=m(i.resolve())||a&&"[object Set]"!=m(new a)||l&&"[object WeakMap]"!=m(new l))&&(m=function(e){var t=s(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case u:return"[object DataView]";case f:return"[object Map]";case d:return"[object Promise]";case p:return"[object Set]";case h:return"[object WeakMap]"}return t}),e.exports=m},,function(e,t,n){var r=n(73)(n(49),"Map");e.exports=r},function(e,t,n){var r=n(85),o=n(40),i="[object AsyncFunction]",a="[object Function]",l="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==l||t==i||t==s}},function(e,t,n){var r=n(159),o=n(117),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t,n){var r=n(215);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t,n){var r=n(216),o=n(365),i=n(127);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){(function(e){var r=n(213),o=t&&!t.nodeType&&t,i=o&&"object"==typeof e&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,l=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();e.exports=l}).call(this,n(119)(e))},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],function(e){l.headers[e]={}}),r.forEach(["post","put","patch"],function(e){l.headers[e]=r.merge(i)}),e.exports=l}).call(this,n(309))},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(179)("keys"),o=n(132);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(24),o=n(26),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(107)?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(61),o=n(26).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(61);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(55),o=n(461),i=n(180),a=n(178)("IE_PROTO"),l=function(){},s=function(){var e,t=n(181)("iframe"),r=i.length;for(t.style.display="none",n(255).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("