@hrobarikt/box-ui-elements
Version:
Box UI Elements
106 lines • 1.05 MB
JavaScript
/*!
* Box UI Element
*
* Copyright 2019 Box, Inc. All rights reserved.
*
* This product includes software developed by Box, Inc. ("Box")
* (http://www.box.com)
*
* ALL BOX SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
* IN NO EVENT SHALL BOX BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* See the Box license for the specific language governing permissions
* and limitations under the license.
*/!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/2.1.0/en-US/",n(n.s=1041)}([function(e,t,n){"use strict";e.exports=n(336)},function(e,t,n){"use strict";n.d(t,"e",(function(){return o})),n.d(t,"Ke",(function(){return i})),n.d(t,"Le",(function(){return a})),n.d(t,"Me",(function(){return s})),n.d(t,"Ne",(function(){return l})),n.d(t,"Kf",(function(){return u})),n.d(t,"Pf",(function(){return c})),n.d(t,"Qf",(function(){return f})),n.d(t,"Of",(function(){return d})),n.d(t,"Jf",(function(){return p})),n.d(t,"Rf",(function(){return h})),n.d(t,"Sf",(function(){return b})),n.d(t,"Tf",(function(){return m})),n.d(t,"Lf",(function(){return y})),n.d(t,"Nf",(function(){return v})),n.d(t,"Mf",(function(){return g})),n.d(t,"Af",(function(){return w})),n.d(t,"zf",(function(){return E})),n.d(t,"Bf",(function(){return S})),n.d(t,"yf",(function(){return O})),n.d(t,"xf",(function(){return k})),n.d(t,"wf",(function(){return C})),n.d(t,"i",(function(){return x})),n.d(t,"h",(function(){return _})),n.d(t,"n",(function(){return P})),n.d(t,"m",(function(){return A})),n.d(t,"l",(function(){return T})),n.d(t,"j",(function(){return I})),n.d(t,"k",(function(){return D})),n.d(t,"cf",(function(){return j})),n.d(t,"df",(function(){return L})),n.d(t,"c",(function(){return R})),n.d(t,"d",(function(){return N})),n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return F})),n.d(t,"xd",(function(){return U})),n.d(t,"Bd",(function(){return B})),n.d(t,"zd",(function(){return H})),n.d(t,"Ad",(function(){return z})),n.d(t,"yd",(function(){return V})),n.d(t,"Xd",(function(){return W})),n.d(t,"ae",(function(){return G})),n.d(t,"Zd",(function(){return q})),n.d(t,"Wd",(function(){return X})),n.d(t,"Vd",(function(){return K})),n.d(t,"Yd",(function(){return Y})),n.d(t,"Fc",(function(){return Q})),n.d(t,"xc",(function(){return J})),n.d(t,"Rc",(function(){return $})),n.d(t,"pd",(function(){return Z})),n.d(t,"jd",(function(){return ee})),n.d(t,"Uc",(function(){return te})),n.d(t,"Bc",(function(){return ne})),n.d(t,"Lc",(function(){return re})),n.d(t,"Wc",(function(){return oe})),n.d(t,"Xc",(function(){return ie})),n.d(t,"Kc",(function(){return ae})),n.d(t,"Vc",(function(){return se})),n.d(t,"tc",(function(){return le})),n.d(t,"uc",(function(){return ue})),n.d(t,"Pc",(function(){return ce})),n.d(t,"bd",(function(){return fe})),n.d(t,"dd",(function(){return de})),n.d(t,"vc",(function(){return pe})),n.d(t,"Gc",(function(){return he})),n.d(t,"gd",(function(){return be})),n.d(t,"hd",(function(){return me})),n.d(t,"id",(function(){return ye})),n.d(t,"nc",(function(){return ve})),n.d(t,"oc",(function(){return ge})),n.d(t,"Dc",(function(){return we})),n.d(t,"Jc",(function(){return Ee})),n.d(t,"rd",(function(){return Se})),n.d(t,"wc",(function(){return Oe})),n.d(t,"Qc",(function(){return ke})),n.d(t,"Tc",(function(){return Ce})),n.d(t,"cd",(function(){return xe})),n.d(t,"od",(function(){return _e})),n.d(t,"yc",(function(){return Pe})),n.d(t,"ad",(function(){return Ae})),n.d(t,"fd",(function(){return Te})),n.d(t,"ud",(function(){return Ie})),n.d(t,"rc",(function(){return De})),n.d(t,"Cc",(function(){return je})),n.d(t,"Ic",(function(){return Le})),n.d(t,"sd",(function(){return Re})),n.d(t,"td",(function(){return Ne})),n.d(t,"Nc",(function(){return Me})),n.d(t,"Oc",(function(){return Fe})),n.d(t,"zc",(function(){return Ue})),n.d(t,"md",(function(){return Be})),n.d(t,"Hc",(function(){return He})),n.d(t,"Mc",(function(){return ze})),n.d(t,"ld",(function(){return Ve})),n.d(t,"nd",(function(){return We})),n.d(t,"qc",(function(){return Ge})),n.d(t,"Yc",(function(){return qe})),n.d(t,"kd",(function(){return Xe})),n.d(t,"mc",(function(){return Ke})),n.d(t,"pc",(function(){return Ye})),n.d(t,"Sc",(function(){return Qe})),n.d(t,"Zc",(function(){return Je})),n.d(t,"ed",(function(){return $e})),n.d(t,"qd",(function(){return Ze})),n.d(t,"sc",(function(){return et})),n.d(t,"Ac",(function(){return tt})),n.d(t,"Ec",(function(){return nt})),n.d(t,"re",(function(){return rt})),n.d(t,"se",(function(){return ot})),n.d(t,"te",(function(){return it})),n.d(t,"ue",(function(){return at})),n.d(t,"ve",(function(){return st})),n.d(t,"we",(function(){return lt})),n.d(t,"xe",(function(){return ut})),n.d(t,"ye",(function(){return ct})),n.d(t,"ze",(function(){return ft})),n.d(t,"Ae",(function(){return dt})),n.d(t,"Sd",(function(){return pt})),n.d(t,"db",(function(){return ht})),n.d(t,"cb",(function(){return bt})),n.d(t,"V",(function(){return mt})),n.d(t,"P",(function(){return yt})),n.d(t,"U",(function(){return vt})),n.d(t,"L",(function(){return gt})),n.d(t,"N",(function(){return wt})),n.d(t,"O",(function(){return Et})),n.d(t,"M",(function(){return St})),n.d(t,"I",(function(){return Ot})),n.d(t,"X",(function(){return kt})),n.d(t,"Y",(function(){return Ct})),n.d(t,"H",(function(){return xt})),n.d(t,"Q",(function(){return _t})),n.d(t,"R",(function(){return Pt})),n.d(t,"S",(function(){return At})),n.d(t,"T",(function(){return Tt})),n.d(t,"K",(function(){return It})),n.d(t,"J",(function(){return Dt})),n.d(t,"Z",(function(){return jt})),n.d(t,"bb",(function(){return Lt})),n.d(t,"ab",(function(){return Rt})),n.d(t,"w",(function(){return Nt})),n.d(t,"E",(function(){return Mt})),n.d(t,"x",(function(){return Ft})),n.d(t,"y",(function(){return Ut})),n.d(t,"z",(function(){return Bt})),n.d(t,"A",(function(){return Ht})),n.d(t,"B",(function(){return zt})),n.d(t,"C",(function(){return Vt})),n.d(t,"D",(function(){return Wt})),n.d(t,"if",(function(){return Gt})),n.d(t,"hf",(function(){return qt})),n.d(t,"jf",(function(){return Xt})),n.d(t,"ff",(function(){return Kt})),n.d(t,"gf",(function(){return Yt})),n.d(t,"ef",(function(){return Qt})),n.d(t,"t",(function(){return Jt})),n.d(t,"u",(function(){return $t})),n.d(t,"v",(function(){return Zt})),n.d(t,"q",(function(){return en})),n.d(t,"p",(function(){return tn})),n.d(t,"r",(function(){return nn})),n.d(t,"s",(function(){return rn})),n.d(t,"o",(function(){return on})),n.d(t,"qe",(function(){return an})),n.d(t,"Rb",(function(){return sn})),n.d(t,"Tb",(function(){return ln})),n.d(t,"Sb",(function(){return un})),n.d(t,"ic",(function(){return cn})),n.d(t,"hc",(function(){return fn})),n.d(t,"lc",(function(){return dn})),n.d(t,"jc",(function(){return pn})),n.d(t,"kc",(function(){return hn})),n.d(t,"vb",(function(){return bn})),n.d(t,"wb",(function(){return mn})),n.d(t,"xb",(function(){return yn})),n.d(t,"Cb",(function(){return vn})),n.d(t,"Db",(function(){return gn})),n.d(t,"Eb",(function(){return wn})),n.d(t,"Ob",(function(){return En})),n.d(t,"yb",(function(){return Sn})),n.d(t,"Mb",(function(){return On})),n.d(t,"Nb",(function(){return kn})),n.d(t,"Kb",(function(){return Cn})),n.d(t,"zb",(function(){return xn})),n.d(t,"Ab",(function(){return _n})),n.d(t,"Bb",(function(){return Pn})),n.d(t,"Lb",(function(){return An})),n.d(t,"Fb",(function(){return Tn})),n.d(t,"Gb",(function(){return In})),n.d(t,"Hb",(function(){return Dn})),n.d(t,"ub",(function(){return jn})),n.d(t,"Jb",(function(){return Ln})),n.d(t,"Ib",(function(){return Rn})),n.d(t,"tb",(function(){return Nn})),n.d(t,"eb",(function(){return Mn})),n.d(t,"fb",(function(){return Fn})),n.d(t,"ib",(function(){return Un})),n.d(t,"kb",(function(){return Bn})),n.d(t,"jb",(function(){return Hn})),n.d(t,"gb",(function(){return zn})),n.d(t,"hb",(function(){return Vn})),n.d(t,"mb",(function(){return Wn})),n.d(t,"lb",(function(){return Gn})),n.d(t,"nb",(function(){return qn})),n.d(t,"qb",(function(){return Xn})),n.d(t,"rb",(function(){return Kn})),n.d(t,"ob",(function(){return Yn})),n.d(t,"pb",(function(){return Qn})),n.d(t,"sb",(function(){return Jn})),n.d(t,"Qb",(function(){return $n})),n.d(t,"Vb",(function(){return Zn})),n.d(t,"Xb",(function(){return er})),n.d(t,"fc",(function(){return tr})),n.d(t,"gc",(function(){return nr})),n.d(t,"cc",(function(){return rr})),n.d(t,"ec",(function(){return or})),n.d(t,"dc",(function(){return ir})),n.d(t,"Pb",(function(){return ar})),n.d(t,"Wb",(function(){return sr})),n.d(t,"Zb",(function(){return lr})),n.d(t,"ac",(function(){return ur})),n.d(t,"Yb",(function(){return cr})),n.d(t,"Ub",(function(){return fr})),n.d(t,"bc",(function(){return dr})),n.d(t,"ie",(function(){return pr})),n.d(t,"je",(function(){return hr})),n.d(t,"he",(function(){return br})),n.d(t,"ke",(function(){return mr})),n.d(t,"le",(function(){return yr})),n.d(t,"oe",(function(){return vr})),n.d(t,"pe",(function(){return gr})),n.d(t,"ne",(function(){return wr})),n.d(t,"me",(function(){return Er})),n.d(t,"ce",(function(){return Sr})),n.d(t,"be",(function(){return Or})),n.d(t,"Td",(function(){return kr})),n.d(t,"Uf",(function(){return xr})),n.d(t,"W",(function(){return _r})),n.d(t,"de",(function(){return Pr})),n.d(t,"F",(function(){return Ar})),n.d(t,"G",(function(){return Tr})),n.d(t,"bf",(function(){return Ir})),n.d(t,"We",(function(){return Dr})),n.d(t,"af",(function(){return jr})),n.d(t,"Ve",(function(){return Lr})),n.d(t,"Xe",(function(){return Rr})),n.d(t,"Te",(function(){return Nr})),n.d(t,"Oe",(function(){return Mr})),n.d(t,"Pe",(function(){return Fr})),n.d(t,"Ue",(function(){return Ur})),n.d(t,"Se",(function(){return Br})),n.d(t,"Re",(function(){return Hr})),n.d(t,"Qe",(function(){return zr})),n.d(t,"Ze",(function(){return Vr})),n.d(t,"Ye",(function(){return Wr})),n.d(t,"vd",(function(){return Gr})),n.d(t,"Vf",(function(){return qr})),n.d(t,"Ce",(function(){return Xr})),n.d(t,"De",(function(){return Kr})),n.d(t,"Ee",(function(){return Yr})),n.d(t,"Ie",(function(){return Qr})),n.d(t,"Ge",(function(){return Jr})),n.d(t,"He",(function(){return $r})),n.d(t,"Fe",(function(){return Zr})),n.d(t,"Je",(function(){return eo})),n.d(t,"Dd",(function(){return to})),n.d(t,"Gd",(function(){return no})),n.d(t,"Hd",(function(){return ro})),n.d(t,"Cd",(function(){return oo})),n.d(t,"Fd",(function(){return io})),n.d(t,"Ed",(function(){return ao})),n.d(t,"Kd",(function(){return so})),n.d(t,"Nd",(function(){return lo})),n.d(t,"Jd",(function(){return uo})),n.d(t,"Rd",(function(){return co})),n.d(t,"Pd",(function(){return fo})),n.d(t,"Md",(function(){return po})),n.d(t,"Od",(function(){return ho})),n.d(t,"Id",(function(){return bo})),n.d(t,"Qd",(function(){return mo})),n.d(t,"Ld",(function(){return yo})),n.d(t,"Cf",(function(){return vo})),n.d(t,"Df",(function(){return go})),n.d(t,"Ef",(function(){return wo})),n.d(t,"If",(function(){return Eo})),n.d(t,"Ff",(function(){return So})),n.d(t,"Hf",(function(){return Oo})),n.d(t,"Gf",(function(){return ko})),n.d(t,"Be",(function(){return Co})),n.d(t,"wd",(function(){return xo})),n.d(t,"f",(function(){return _o})),n.d(t,"g",(function(){return Po})),n.d(t,"fe",(function(){return Ao})),n.d(t,"ge",(function(){return To})),n.d(t,"pf",(function(){return Io})),n.d(t,"qf",(function(){return Do})),n.d(t,"sf",(function(){return jo})),n.d(t,"rf",(function(){return Lo})),n.d(t,"tf",(function(){return Ro})),n.d(t,"vf",(function(){return No})),n.d(t,"uf",(function(){return Mo})),n.d(t,"kf",(function(){return Fo})),n.d(t,"lf",(function(){return Uo})),n.d(t,"mf",(function(){return Bo})),n.d(t,"nf",(function(){return Ho})),n.d(t,"of",(function(){return zo})),n.d(t,"Ud",(function(){return Vo})),n.d(t,"ee",(function(){return Wo}));var r=n(190),o=1e3,i="large",a="medium",s="small",l="very_large",u="folder",c="search",f="selected",d="recents",p="error",h="upload-empty",b="upload-inprogress",m="upload-success",y="metadata",v="list",g="grid",w="folder",E="file",S="web_link",O="folder_",k="file_",C="feedItems_",x=O,_=k,P="web_link_",A="search_",T="recents_",I="metadata_",D="metadata_query_",j="ASC",L="DESC",R="none",N="open",M="collaborators",F="company",U="Accept",B="Content-Type",H="X-Box-Client-Name",z="X-Box-Client-Version",V="Accept-Language",W="securityClassification-6VMVochwUWo",G="boxSkillsCards",q="properties",X="global",K="enterprise",Y=o,Q="id",J="date",$="name",Z="type",ee="size",te="parent",ne="extension",re="expires_at",oe="permissions",ie="".concat(oe,".can_upload"),ae="item_collection",se="path_collection",le="content_created_at",ue="content_modified_at",ce="modified_at",fe="restored_at",de="restored_from",pe="created_at",he="interacted_at",be="shared_link",me="allowed_shared_link_access_levels_disabled_reasons",ye="shared_link_features",ve="allowed_invitee_roles",ge="allowed_shared_link_access_levels",we="has_collaborations",Ee="is_externally_owned",Se="url",Oe="created_by",ke="modified_by",Ce="owned_by",xe="restored_by",_e="trashed_by",Pe="description",Ae="representations",Te="sha1",Ie="watermark_info",De="authenticated_download_url",je="file_version",Le="is_download_available",Re="version_limit",Ne="version_number",Me="metadata",Fe="".concat(Me,".").concat(X,".").concat(G),Ue=("".concat(Me,".").concat(X,".").concat(q),"".concat(Me,".").concat(K,".").concat(W),"due_at"),Be="task_assignment_collection",He="is_completed",ze="message",Ve="tagged_message",We="trashed_at",Ge="assigned_to",qe="",Xe="status",Ke="activity_template",Ye="app",Qe="occurred_at",Je="rendered_text",$e="retention",Ze="uploader_display_name",et="classification",tt="enterprise",nt="hostname",rt="can_comment",ot="can_create_annotations",it="can_delete",at="can_download",st="can_edit",lt="can_preview",ut="can_rename",ct="can_share",ft="can_upload",dt="can_view_annotations",pt="editor",ht="slash",bt="caret",mt="2.37.0",yt="en-US",vt="platform/preview",gt="https://api.box.com",wt="https://cdn01.boxcdn.net",Et="https://upload.box.com",St="https://app.box.com",Ot="body",kt="0",Ct=500,xt=500,_t=25,Pt=50,At=1,Tt=50,It=0,Dt=1e3,jt="files",Lt="recents",Rt="metadata",Nt="ContentExplorer",Mt="ContentOpenWith",Ft="ContentPicker",Ut="ContentPreview",Bt="ContentSharing",Ht="ContentSidebar",zt="ContentUploader",Vt="FilePicker",Wt="FolderPicker",Gt="pending",qt="inprogress",Xt="staged",Kt="complete",Yt="error",Qt="accepted",Jt="be-modal-dialog-content",$t="be-modal-dialog-content-full-bleed",Zt="be-modal-dialog-overlay",en="be-is-small",tn="be-is-medium",nn="be-is-touch",rn="be-modal",on="bcow-integration-icon",an="overlay-wrapper",sn="item_name_invalid",ln="item_name_too_long",un="item_name_in_use",cn="upload_file_limit",fn="child_folder_failed_upload",dn="storage_limit_exceeded",pn="file_size_limit_exceeded",hn="pending_app_folder_size_limit",bn="fetch_activity_error",mn="fetch_annotation_error",yn="fetch_annotations_error",vn="fetch_file_error",gn="forbidden_by_policy",wn="fetch_folder_error",En="fetch_weblink_error",Sn="fetch_comments_error",On="fetch_version_error",kn="fetch_versions_error",Cn="fetch_tasks_error",xn="fetch_current_user_error",_n="fetch_enterprise_groups_error",Pn="fetch_enterprise_users_error",An="fetch_task_collaborator_error",Tn="fetch_integrations_error",In="fetch_metadata_error",Dn="fetch_metadata_templates_error",jn="fetch_access_stats_error",Ln="fetch_skills_error",Rn="fetch_recents_error",Nn="execute_integrations_error",Mn="create_annotation_error",Fn="create_comment_error",Un="create_task_error",Bn="create_task_link_error",Hn="create_task_collaborator_error",zn="create_folder_error",Vn="create_metadata_error",Wn="delete_app_activity_error",Gn="delete_annotation_error",qn="delete_comment_error",Xn="delete_task_error",Kn="delete_task_collaborator_error",Yn="delete_item_error",Qn="delete_metadata_error",Jn="delete_version_error",$n="group_exceeds_limit",Zn="promote_version_error",er="restore_version_error",tr="update_task_error",nr="update_task_collaborator_error",rr="update_comment_error",or="update_skills_error",ir="update_metadata_error",ar="get_download_url_error",sr="rename_item_error",lr="share_item_error",ur="unexpected_exception_error",cr="search_error",fr="metadata_query_error",dr="unknown_error",pr="content_preview",hr="content_sidebar",br="activity_sidebar",mr="details_sidebar",yr="metadata_sidebar",vr="skills_sidebar",gr="versions_sidebar",wr="preview",Er="open_with",Sr="preview_metric",Or="elements_load_metric",kr="isErrorDisplayed",Cr=r.a.canPlayDash()?"[dash,mp4][filmstrip]":"[mp4]",xr="".concat("[3d][pdf][text][mp3][json]").concat("[jpg?dimensions=1024x1024&paged=false]").concat("[jpg?dimensions=2048x2048,png?dimensions=2048x2048]").concat(Cr),_r=3e3,Pr=1e3,Ar="#999",Tr="#fff",Ir="transcript",Dr="keyword",jr="timeline",Lr="face",Rr="status",Nr="skills_invocations_error",Mr="skills_billing_error",Fr="skills_external_auth_error",Ur="skills_unknown_error",Br="skills_invalid_file_size_error",Hr="skills_invalid_file_format_error",zr="skills_file_processing_error",Vr="skills_pending_status",Wr="skills_invoked_status",Gr="boxnote",qr="[jpg?dimensions=".concat("1024x1024","&paged=false,png?dimensions=").concat("1024x1024","][pdf]"),Xr="error",Kr="success",Yr="viewable",Qr="skills",Jr="details",$r="metadata",Zr="activity",eo="versions",to="GET",no="POST",ro="PUT",oo="DELETE",io="OPTIONS",ao="HEAD",so=403,lo=404,uo=409,co=401,fo=429,po=500,ho=501,bo=502,mo=503,yo=504,vo="delete",go="promote",wo="restore",Eo="upload",So="permanently_delete",Oo="remove_retention",ko="indefinite",Co={type:"user",id:"2",name:""},xo="File Request",_o="1338",Po="13418",Ao=26,To=30,Io="APPROVED",Do="COMPLETED",jo="NOT_STARTED",Lo="IN_PROGRESS",Ro="REJECTED",No="GENERAL",Mo="APPROVAL",Fo="ALL_ASSIGNEES",Uo="ANY_ASSIGNEE",Bo="CREATE",Ho="EDIT",zo=250,Vo={arrowDown:"ArrowDown",arrowLeft:"ArrowLeft",arrowRight:"ArrowRight",arrowUp:"ArrowUp",backspace:"Backspace",enter:"Enter",escape:"Escape",space:" "},Wo=36e5},function(e,t,n){"use strict";n.d(t,"y",(function(){return r})),n.d(t,"x",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"f",(function(){return s})),n.d(t,"k",(function(){return l})),n.d(t,"j",(function(){return u})),n.d(t,"i",(function(){return c})),n.d(t,"h",(function(){return f})),n.d(t,"g",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return h})),n.d(t,"n",(function(){return b})),n.d(t,"o",(function(){return m})),n.d(t,"v",(function(){return y})),n.d(t,"w",(function(){return v})),n.d(t,"l",(function(){return g})),n.d(t,"m",(function(){return w})),n.d(t,"p",(function(){return E})),n.d(t,"q",(function(){return S})),n.d(t,"r",(function(){return O})),n.d(t,"s",(function(){return k})),n.d(t,"t",(function(){return C})),n.d(t,"u",(function(){return x})),n.d(t,"a",(function(){return _}));var r="#fff",o="#000",i="#0061d5",a="#e5effa",s="#222",l="#4e4e4e",u="#767676",c="#909090",f="#d3d3d3",d="#e8e8e8",p="#003c84",h="#7f9dc1",b="#2486fc",m="#91c2fd",y="#f5b31b",v="#ffeb7f",g="#26c281",w="#92e0c0",E="#f1811a",S="#f8c08c",O="#9f3fed",k="#cf9ff6",C="#ed3757",x="#f69bab",_=["#2486fc","#0061d5","#003c84","#767676","#26c281","#f5b31b","#4826c2","#9f3fed","#ed3757"]},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(107),o=Object(r.defineMessages)({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’re sorry, the preview didn’t load. Please refresh the page."},previewErrorBlockedByPolicy:{id:"be.previewErrorBlockedByPolicy",defaultMessage:"Your access is restricted due to the classification applied to this content."},boxEditErrorBlockedByPolicy:{id:"be.boxEditErrorBlockedByPolicy",defaultMessage:"Local editing of this content has been disabled based on an access policy"},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"},resume:{id:"be.resume",defaultMessage:"Resume"},resumeAll:{id:"be.resumeAll",defaultMessage:"Resume All"},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"},gridView:{id:"be.gridView",defaultMessage:"Switch to Grid View"},gridViewIncreaseColumnSize:{id:"be.gridView.increaseColumnSize",defaultMessage:"Increase column size"},gridViewDecreaseColumnSize:{id:"be.gridView.decreaseColumnSize",defaultMessage:"Decrease column size"},listView:{id:"be.listView",defaultMessage:"Switch to List View"},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"},sidebarNavLabel:{id:"be.sidebarNavLabel",defaultMessage:"Sidebar"},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’re working on processing your file - please hold!"},skillInvokedStatus:{id:"be.skillInvokedStatus",defaultMessage:"We’re 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’re sorry, no skills information was found. This file size is currently not supported."},skillInvalidFileExtensionError:{id:"be.skillInvalidFileExtensionError",defaultMessage:"We’re sorry, no skills information was found. This file extension is currently not supported."},skillNoInfoFoundError:{id:"be.skillNoInfoFoundError",defaultMessage:"We’re sorry, no skills information was found."},skillFileProcessingError:{id:"be.skillFileProcessingError",defaultMessage:"We’re 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 → Z"},nameDESC:{id:"be.nameDESC",defaultMessage:"Name: Z → A"},dateASC:{id:"be.dateASC",defaultMessage:"Date: Oldest → Newest"},dateDESC:{id:"be.dateDESC",defaultMessage:"Date: Newest → Oldest"},sizeASC:{id:"be.sizeASC",defaultMessage:"Size: Smallest → Largest"},sizeDESC:{id:"be.sizeDESC",defaultMessage:"Size: Largest → Smallest"},searchState:{id:"be.searchState",defaultMessage:"Sorry, we couldn’t find what you’re looking for."},selectedState:{id:"be.selectedState",defaultMessage:"You haven’t 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."},metadataState:{id:"be.metadataState",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’s 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."},errorOccured:{id:"be.errorOccured",defaultMessage:"An error occurred"},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 to show"},noActivityAnnotationPrompt:{id:"be.noActivityAnnotationPrompt",defaultMessage:"Hover over the preview and use the controls at the bottom to annotate the file."},noActivityCommentPrompt:{id:"be.noActivityCommentPrompt",defaultMessage:"Comment and @mention people to notify them."},versionDeleted:{id:"be.versionDeleted",defaultMessage:"{name} deleted v{version_number}"},versionPromoted:{id:"be.versionPromoted",defaultMessage:"{name} promoted v{version_promoted} to v{version_number}"},versionRestored:{id:"be.versionRestored",defaultMessage:"{name} restored v{version_number}"},versionMultipleUsersUploaded:{id:"be.versionMultipleUsersUploaded",defaultMessage:"{numberOfCollaborators} collaborators uploaded v{versions}"},versionUploadCollapsed:{id:"be.versionUploadCollapsed",defaultMessage:"{name} uploaded v{versions}"},versionUploaded:{id:"be.versionUploaded",defaultMessage:"{name} uploaded v{version_number}"},fileRequestDisplayName:{id:"be.fileRequestDisplayName",defaultMessage:"File Request"},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’re 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’re 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"},priorCollaborator:{id:"be.priorCollaborator",defaultMessage:"A Prior Collaborator"}});t.a=o},function(e,t,n){var r;function o(e){return(o="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)}
/*!
Copyright (c) 2017 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/!function(){"use strict";var i={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=o(n);if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)&&n.length){var s=a.apply(null,n);s&&e.push(s)}else if("object"===r)for(var l in n)i.call(n,l)&&n[l]&&e.push(l)}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):"object"===o(n(108))&&n(108)?void 0===(r=function(){return a}.apply(t,[]))||(e.exports=r):window.classNames=a}()},function(e,t,n){"use strict";n(107);var r,o,i=n(0),a=n(11),s=n(48),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};!function(e){e.formatDate="FormattedDate",e.formatTime="FormattedTime",e.formatNumber="FormattedNumber",e.formatList="FormattedList"}(r||(r={})),function(e){e.formatDate="FormattedDateParts",e.formatTime="FormattedTimeParts",e.formatNumber="FormattedNumberParts",e.formatList="FormattedListParts"}(o||(o={}));function u(e){var t=function(t){return i.createElement(s.a.Consumer,null,(function(n){Object(a.h)(n);var r=t.value,o=t.children,i=l(t,["value","children"]),s="string"==typeof r?new Date(r||0):r;return o("formatDate"===e?n.formatDateToParts(s,i):n.formatTimeToParts(s,i))}))};return t.displayName=o[e],t}function c(e){var t=function(t){return i.createElement(s.a.Consumer,null,(function(n){Object(a.h)(n);var r=t.value,o=t.children,s=l(t,["value","children"]),u=n[e](r,s);if("function"==typeof o)return o(u);var c=n.textComponent||i.Fragment;return i.createElement(c,null,u)}))};return t.displayName=r[e],t}n.d(t,"a",(function(){return f})),n.d(t,"b",(function(){return d}));var f=c("formatDate"),d=(c("formatTime"),c("formatNumber"));c("formatList"),u("formatDate"),u("formatTime")},function(e,t,n){var r=n(188);e.exports=function(e,t,n){var o=null==e?void 0:r(e,t);return void 0===o?n:o}},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})),n.d(t,"d",(function(){return s}));var r=n(1);function o(){return new Error("Bad box item!")}function i(){return new Error("Insufficient Permissions!")}function a(){return new Error("Bad box user!")}function s(e){return e===r.Pd||e===r.Rd||e===r.Jd||e>=r.Md}},function(e,t,n){"use strict";var r=n(0),o=n(21),i=n.n(o),a=n(12),s=n.n(a);function l(e){return(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})(e)}function u(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),r=d(n),o="id",i=s()("icon"),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,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&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",n?(s["aria-labelledby"]=a,s.role="img"):s.role="presentation",r.createElement("svg",s,n?r.createElement("title",{id:a},n):null,t)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);n.d(t,"a",(function(){return h}))},function(e,t,n){"use strict";var r=n(0),o=n(21),i=n.n(o),a=n(12),s=n.n(a);function l(e){return(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})(e)}function u(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var h=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=new Array(a),c=0;c<a;c++)u[c]=arguments[c];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?d(e):t}(this,(e=f(t)).call.apply(e,[this].concat(u))),r=d(n),o="id",i=s()("icon"),o in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,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&&p(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.title,o=u(e,["children","title"]),a="".concat(this.id,"-title"),s=i()(o,["role","aria-labelledby"]);return s.focusable="false",n?(s["aria-labelledby"]=a,s.role="img"):s.role="presentation",r.createElement("svg",s,n?r.createElement("title",{id:a},n):null,t)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);t.a=h},function(e,t,n){"use strict";n.d(t,"e",(function(){return u})),n.d(t,"f",(function(){return c})),n.d(t,"h",(function(){return f})),n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"c",(function(){return b})),n.d(t,"g",(function(){return m}));var r=n(0),o=n(133),i=n(42),a=n(256),s={38:"&",62:">",60:"<",34:""",39:"'"},l=/[&><"']/g;function u(e){return(""+e).replace(l,(function(e){return s[e.charCodeAt(0)]}))}function c(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce((function(t,r){return r in e?t[r]=e[r]:r in n&&(t[r]=n[r]),t}),{})}function f(e){Object(a.a)(e,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}function d(e,t){var n=t?"\n".concat(t.stack):"";return"[React Intl] ".concat(e).concat(n)}var p={formats:{},messages:{},timeZone:void 0,textComponent:r.Fragment,defaultLocale:"en",defaultFormats:{},onError:function(e){0}};function h(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}}}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{}},t=Intl.RelativeTimeFormat,n=Intl.ListFormat;return{getDateTimeFormat:Object(i.a)(Intl.DateTimeFormat,e.dateTime),getNumberFormat:Object(i.a)(Intl.NumberFormat,e.number),getMessageFormat:Object(i.a)(o.a,e.message),getRelativeTimeFormat:Object(i.a)(t,e.relativeTime),getPluralRules:Object(i.a)(Intl.PluralRules,e.pluralRules),getListFormat:Object(i.a)(n,e.list)}}function m(e,t,n,r){var o,i=e&&e[t];if(i&&(o=i[n]),o)return o;r(d("No ".concat(t," format named: ").concat(n)))}},function(e,t,n){var r=n(94),o=0;e.exports=function(e){var t=++o;return r(e)+t}},function(e,t,n){e.exports=n(472)()},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(79),a=n.n(i),s=n(7),l=n.n(s),u=n(151),c=n.n(u),f=n(244),d=n.n(f),p=n(60),h=n(1);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=[h.Dd,h.Fd,h.Ed].map(d.a),E=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=n.id,o=n.clientName,i=n.language,s=n.token,u=n.version,c=n.sharedLink,f=n.sharedLinkPassword,d=n.responseInterceptor,p=n.requestInterceptor,b=n.retryableStatusCodes,m=void 0===b?[h.Pd]:b,y=n.shouldRetry,v=void 0===y||y;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),g(this,"retryCount",0),g(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=l()(e,"response.data")||e;return t.responseInterceptor(r),Promise.reject(e)})),this.clientName=o,this.id=r,this.language=i,this.responseInterceptor=d||this.defaultResponseInterceptor,this.retryableStatusCodes=m,this.sharedLink=c,this.sharedLinkPassword=f,this.shouldRetry=v,this.token=s,this.version=u,this.axios=a.a.create(),this.axiosSource=a.a.CancelToken.source(),this.axios.interceptors.response.use(this.responseInterceptor,this.errorInterceptor),"function"==typeof p&&this.axios.interceptors.request.use(p)}var t,n,r,o,i;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,n=e.request,r=e.config,o=l()(t,"status"),i=l()(r,"method"),a=n&&!t,s=o===h.Pd,u=c()(this.retryableStatusCodes,o)&&c()(w,i);return a||s||u}},{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:(o=regeneratorRuntime.mark((function e(t){var n,r,o,i,a=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},r=m(g({Accept:"application/json"},h.Bd,"application/json"),n),this.language&&!r[h.yd]&&(r[h.yd]=this.language),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[h.zd]=this.clientName),this.version&&(r[h.Ad]=this.version),o=t||this.id||"",e.next=9,p.a.getWriteToken(o,this.token);case 9:return(i=e.sent)&&(r.Authorization="Bearer ".concat(i)),e.abrupt("return",r);case 12:case"end":return e.stop()}}),e,this)})),i=function(){var e=this,t=arguments;return new Promise((function(n,r){var i=o.apply(e,t);function a(e){y(i,n,r,a,s,"next",e)}function s(e){y(i,n,r,a,s,"throw",e)}a(void 0)}))},function(e){return i.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,s=void 0===a?{}:a;return this.getHeaders(r,s).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,s=void 0===a?{}:a,l=e.method,u=void 0===l?h.Gd:l;return this.getHeaders(r,s).then((function(e){return t.axios({url:n,data:o,params:i,method:u,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:h.Hd})}},{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:h.Cd})}},{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,s=e.successHandler,l=e.errorHandler;return this.getHeaders(n,a).then((function(e){return t.axios({url:r,data:o,method:h.Fd,headers:e}).then(s).catch(l)})).catch(l)}},{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,s=e.method,l=void 0===s?h.Gd:s,u=e.successHandler,c=e.errorHandler,f=e.progressHandler,d=e.withIdleTimeout,p=void 0!==d&&d,b=e.idleTimeoutDuration,m=void 0===b?12e4:b,y=e.idleTimeoutHandler;return this.getHeaders(n,a).then((function(e){var n,i=f;if(p){var s=function(){t.abort(),y&&y()};n=setTimeout(s,m),i=function(e){clearTimeout(n),n=setTimeout(s,m),f(e)}}t.axios({url:r,data:o,transformRequest:function(e,t){if(delete t[h.xd],delete t[h.Bd],a[h.Bd]&&(t[h.Bd]=a[h.Bd]),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:l,headers:e,onUploadProgress:i,cancelToken:t.axiosSource.token}).then((function(e){clearTimeout(n),u(e)})).catch((function(e){clearTimeout(n),c(e)}))})).catch(c)}},{key:"abort",value:function(){this.retryTimeout&&clearTimeout(this.retryTimeout),this.axiosSource&&(this.axiosSource.cancel(),this.axiosSource=a.a.CancelToken.source())}}])&&v(t.prototype,n),r&&v(t,r),e}(),S=n(65),O=n(97);function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).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){C(i,r,o,a,s,"next",e)}function s(e){C(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var P=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.localStore=new O.a,this.cachedResults={},this.populateCachedResultsWithValidLocalStoreValues(),this.saveCachedResultsToLocalStore()}var t,n,r,o,i;return t=e,(n=[{key:"getCachedResultsFromLocalStore",value:function(){return this.localStore.getItem("bcu-uploads-reachability-cached-results")}},{key:"saveCachedResultsToLocalStore",value:function(){this.localStore.setItem("bcu-uploads-reachability-cached-results",this.cachedResults)}},{key:"isCachedHostValid",value:function(e){return e.expirationTimestampMS>Date.now()}},{key:"getCachedResult",value:function(e){if(e in this.cachedResults){var t=this.cachedResults[e];if(this.isCachedHostValid(t))return t}return null}},{key:"updateCachedResult",value:function(e,t){this.cachedResults[e]={isReachable:t,expirationTimestampMS:Date.now()+864e5},this.saveCachedResultsToLocalStore()}},{key:"populateCachedResultsWithValidLocalStoreValues",value:function(){var e=this,t=this.getCachedResultsFromLocalStore();t&&Object.keys(t).forEach((function(n){var r=t[n];e.isCachedHostValid(r)&&(e.cachedResults[n]=r)}))}},{key:"getUnreachableHostsUrls",value:function(){var e=this,t=[];return this.cachedResults?(Object.keys(this.cachedResults).forEach((function(n){var r=e.cachedResults[n];e.isCachedHostValid(r)&&!r.isReachable&&t.push(n)})),t):t}},{key:"isReachable",value:(i=x(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!=="".concat(h.O,"/")){e.next=2;break}return e.abrupt("return",!0);case 2:if(!(n=this.getCachedResult(t))){e.next=5;break}return e.abrupt("return",n.isReachable);case 5:return e.next=7,this.makeReachabilityRequest(t);case 7:return r=e.sent,this.updateCachedResult(t,r),e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})},{key:"makeReachabilityRequest",value:(o=x(regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r="".concat(t,"html5?reachability_test=run"),k(n={},h.Bd,"application/x-www-form-urlencoded; charset=UTF-8"),k(n,"X-File-Name","reachability_pseudofile.txt"),k(n,"X-File-Size","1234"),o=n,e.prev=3,e.next=6,a.a.post(r,"reachability_file=test_file_data",{headers:o});case 6:e.next=11;break;case 8:return e.prev=8,e.t0=e.catch(3),e.abrupt("return",!1);case 11:return e.abrupt("return",!0);case 12:case"end":return e.stop()}}),e,null,[[3,8]])}))),function(e){return o.apply(this,arguments)})}])&&_(t.prototype,n),r&&_(t,r),e}(),A=n(18),T=n(8);function I(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){R(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),R(this,"errorHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.errorCallback){var t=e.response;t&&t.data?n.errorCallback(t.data,n.errorCode):n.errorCallback(e,n.errorCode)}})),this.cache=t.cache||new S.a,this.apiHost=t.apiHost||h.L,this.uploadHost=t.uploadHost||h.O,this.options=j({},t,{apiHost:this.apiHost,uploadHost:this.uploadHost,cache:this.cache}),this.xhr=new E(this.options),this.destroyed=!1,this.consoleLog=t.consoleLog&&window.console&&window.console.log||o.a,this.consoleError=t.consoleError&&window.console&&window.console.error||o.a,this.uploadsReachability=new P}var t,n,r,i,a;return t=e,(n=[{key:"destroy",value:function(){this.xhr.abort(),this.destroyed=!0}},{key:"isDestroyed",value:function(){return this.destroyed}},{key:"checkApiCallValidity",value:function(e,t,n){if(!n||!t)throw Object(T.a)();if(!t[e])throw Object(T.b)()}},{key:"getBaseApiUrl",value:function(){var e=this.apiHost.endsWith("/")?"2.0":"/2.0";return"".concat(this.apiHost).concat(e)}},{key:"getBaseUploadUrl",value:function(){var e=this.uploadHost.endsWith("/")?"api/2.0":"/api/2.0";return"".concat(this.uploadHost).concat(e)}},{key:"getCache",value:function(){return this.cache}},{key:"getUrl",value:function(e){throw new Error("Implement me!")}},{key:"format",value:function(e){throw new Error("Implement me!")}},{key:"get",value:function(e){var t=e.id,n=e.successCallback,r=e.errorCallback,o=e.requestData,i=e.url||this.getUrl(t);return this.makeRequest(h.Dd,t,i,n,r,o)}},{key:"post",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Gd,t,n,o,i,r)}},{key:"put",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Hd,t,n,o,i,r)}},{key:"delete",value:function(e){var t=e.id,n=e.url,r=e.data,o=e.successCallback,i=e.errorCallback;return this.makeRequest(h.Cd,t,n,o,i,r)}},{key:"makeRequest",value:(i=regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=c.length>5&&void 0!==c[5]?c[5]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return this.successCallback=o,this.errorCallback=i,s=this.xhr[t.toLowerCase()].bind(this.xhr),e.prev=6,e.next=9,s(j({id:Object(A.b)(n),url:r},a));case 9:l=e.sent,u=l.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]])})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){I(o,n,r,a,s,"next",e)}function s(e){I(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t,n,r,o){return a.apply(this,arguments)})}])&&L(t.prototype,n),r&&L(t,r),e}();t.a=N},function(e,t,n){"use strict";n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return v})),n.d(t,"c",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"i",(function(){return E})),n.d(t,"j",(function(){return w})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return p}));var r=n(172),o=n.n(r),i=n(70),a=n.n(i),s=n(1);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e){return(f="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)}var d=[s.Fc,s.Rc,s.pd,s.jd,s.Uc,s.Bc,s.Wc,s.Vc,s.Pc,s.vc,s.Qc,s.Dc,s.Jc,s.Kc,s.rc,s.Ic,s.ad,s.rd],p=[s.Fc,s.Rc,s.jd,s.Bc,s.Cc,s.gd,s.Wc,s.tc,s.uc,s.vc,s.wc,s.Pc,s.Qc,s.Tc,s.yc,s.Oc,s.Lc,s.sd,s.td,s.Jc,s.dd,s.rc,s.Ic,s.qd],h=[s.Fc,s.Wc,s.gd,s.fd,s.Cc,s.Rc,s.jd,s.Bc,s.ad,s.ud,s.rc,s.Ic],b=[s.Cc,s.Pc,s.Qc,s.dd,s.jd,s.qd,s.td],m=[s.rc,s.vc,s.Bc,s.Ic,s.Pc,s.Qc,s.Rc,s.Wc,s.bd,s.cd,s.ed,s.jd,s.nd,s.od,s.qd,s.td],y=[s.oc,s.gd],v=(s.md,s.Hc,s.vc,s.wc,s.zc,s.Mc,s.qc,s.kd,[s.ld,s.Mc,s.vc,s.wc,s.Pc,s.Wc]),g=(s.wc,s.Qc,s.Tc,s.qc,[s.mc,s.pc,s.wc,s.Sc,s.Zc]);function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return e&&"object"===f(e)&&0!==Object.keys(e).length?t.filter((function(t){return!o()(e,t)})):t}function E(){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=u({},e);return w(e,t).forEach((function(e){a()(n,e,null)})),n}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return d})),n.d(t,"e",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return b})),n.d(t,"h",(function(){return m})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return v})),n.d(t,"k",(function(){return r})),n.d(t,"l",(function(){return a})),n.d(t,"m",(function(){return s})),n.d(t,"n",(function(){return l})),n.d(t,"o",(function(){return o})),n.d(t,"p",(function(){return u}));var r=3,o={FULL:"full",SHORT:"short",SHORT_WITH_BTN:"shortWithBtn"},i={SHARED_LINK:"sharedLink",DOWNLOAD:"download",EXTERNAL_COLLAB:"externalCollab",APP:"app",FTP:"ftp"},a={DESKTOP:"desktop",FTP:"ftp",MOBILE:"mobile",WEB:"web"},s={BLACKLIST:"blacklist",BLOCK:"block",WHITELIST:"whitelist"},l={OWNERS_AND_COOWNERS:"ownersCoOwners",OWNERS_COOWNERS_AND_EDITORS:"ownersCoOwnersEditors"},u={COLLAB_AND_COMPANY_ONLY:"companyAndCollabOnly",COLLAB_ONLY:"collabOnly",PUBLIC:"public"},c=0,f=1,d=2,p=3,h=4,b=5,m=6,y=7,v=c},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return u})),n.d(t,"a",(function(){return c}));var r=n(7),o=n.n(r),i=n(1),a=/\.([0-9a-z]+)$/i;function s(e){return"".concat(i.xf).concat(e)}function l(e){return"".concat(i.yf).concat(e)}function u(e){return e.extension===i.vd}function c(e){if("string"!=typeof e)return"";var t=a.exec(e);return o()(t,"[1]","")}},function(e,t,n){"use strict";var r=n(22);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(39);n.d(t,"c",(function(){return r.c})),n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b}))},function(e,t,n){var r=n(157),o=n(263),i=n(393),a=n(99),s=n(74),l=n(399),u=n(297),c=n(220),f=u((function(e,t){var n={};if(null==e)return n;var u=!1;t=r(t,(function(t){return t=a(t,e),u||(u=t.length>1),t})),s(e,c(e),n),u&&(n=o(n,7,l));for(var f=t.length;f--;)i(n,t[f]);return n}));e.exports=f},function(e,t,n){"use strict";var r=n(0),o=n(3),i=n.n(o),a=n(26);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function l(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,u=e.getDOMRef,c=void 0===u?i.a:u,f=e.isDisabled,d=void 0!==f&&f,p=e.type,h=void 0===p?a.a.SUBMIT:p,b=l(e,["children","className","getDOMRef","isDisabled","type"]),m={};return d&&(m["aria-disabled"]=!0,m.onClick=function(e){e.preventDefault(),e.stopPropagation()}),r.createElement("button",s({className:"btn-plain ".concat(o),ref:c,type:h},b,m),t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return E})),n.d(t,"e",(function(){return b})),n.d(t,"f",(function(){return u})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return v})),n.d(t,"i",(function(){return y})),n.d(t,"j",(function(){return w})),n.d(t,"k",(function(){return p})),n.d(t,"l",(function(){return m})),n.d(t,"m",(function(){return S}));var r=n(7),o=n.n(r);function i(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}var a={};function s(e){return!(!e.options||!e.file)}function l(e){return!(!e.options||!e.item)}function u(e){return s(e)?e.file:e}function c(e){return l(e)?e.item:e}function f(e){return s(e)&&e.options||a}function d(e){return l(e)&&e.options||a}function p(e){var t,n=e.lastModified||e.lastModifiedDate;if(n&&("string"==typeof n||"number"==typeof n||n instanceof Date)){var r=new Date(n);if(t=r,"[object Date]"===Object.prototype.toString.call(t)&&!Number.isNaN(t.getTime()))return function(e){return e.toISOString().replace(/\.[0-9]{3}/,"")}(r)}return null}function h(e,t,n){var r=e*Math.pow(n,2);return r>t?t:r}function b(e){return(e.webkitGetAsEntry||e.mozGetAsEntry||e.getAsEntry).call(e)}function m(e){var t=b(c(e));return!!t&&t.isDirectory}function y(e){return new Promise((function(t){e.file((function(e){t(e)}))}))}function v(e){return g.apply(this,arguments)}function g(){var e;return e=regeneratorRuntime.mark((function e(t){var n,r,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=c(t),r=b(n)){e.next=4;break}return e.abrupt("return",null);case 4:return e.next=6,y(r);case 6:if(o=e.sent,!l(t)){e.next=9;break}return e.abrupt("return",{file:o,options:d(t)});case 9:return e.abrupt("return",o);case 10:case"end":return e.stop()}}),e)})),(g=function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}).apply(this,arguments)}function w(e,t){if(!s(e))return e.name;var n=e,r=o()(n,"options.folderId",t),i=o()(n,"options.uploadInitTimestamp",Date.now()),a=n.file.webkitRelativePath||n.file.name;return"".concat(a,"_").concat(r,"_").concat(i)}function E(e,t){var n=b(c(e)).name;if(!l(e))return n;var r=d(e),o=r.folderId,i=void 0===o?t:o,a=r.uploadInitTimestamp,s=void 0===a?Date.now():a;return"".concat(n,"_").concat(i,"_").concat(s)}function S(){var e=window.crypto||window.msCrypto;return"https:"===window.location.protocol&&e&&e.subtle}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,o=n(0),i=n(5),a=n.n(i),s=n(21),l=n.n(s),u=n(53),c=n(139);function f(e){return(f="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 d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BUTTON="button",e.RESET="reset",e.SUBMIT="submit"}(r||(r={}));var g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?m(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),v(m(n),"btnElement",null),v(m(n),"handleClick",(function(e){var t=n.props,r=t.isDisabled,o=t.onClick;if(r||n.btnElement&&n.btnElement.classList.contains("is-disabled"))return e.preventDefault(),void e.stopPropagation();o&&o(e)})),n}var n,r,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&&y(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this,t=this.props,n=t.children,r=t.className,i=t.isDisabled,s=t.isLoading,f=t.isSelected,h=t.setRef,b=t.type,m=t.showRadar,y=p(t,["children","className","isDisabled","isLoading","isSelected","setRef","type","showRadar"]),v=l()(y,["onClick"]);i&&(v["aria-disabled"]=!0);var g=a()("btn",{"is-disabled":i,"is-loading":s,"is-selected":f},r),w=o.createElement("button",d({ref:function(t){e.btnElement=t,h&&h(t)},className:g,onClick:this.handleClick,type:b},v),o.createElement("span",{className:"btn-content"},n),s&&o.createElement(u.b,{className:"btn-loading-indicator"}));return m&&(w=o.createElement(c.a,null,w)),w}}])&&h(n.prototype,r),i&&h(n,i),t}(o.Component);v(g,"defaultProps",{className:"",isLoading:!1,showRadar:!1,type:r.SUBMIT}),t.b=g},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r,o=n(0);n(409);!function(e){e.SMALL="small",e.MEDIUM="medium",e.LARGE="large",e.DEFAULT="default"}(r||(r={}));t.b=function(e){var t=e.className,n=void 0===t?"":t,i=e.size,a=void 0===i?r.DEFAULT:i;return o.createElement("div",{className:"crawler ".concat(n," is-").concat(a)},o.createElement("div",null),o.createElement("div",null),o.createElement("div",null))}},function(e,t,n){"use strict";var r=n(24);n.d(t,"b",(function(){return r.b})),n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return y})),n.d(t,"b",(function(){return k})),n.d(t,"c",(function(){return x})),n.d(t,"i",(function(){return v})),n.d(t,"j",(function(){return C})),n.d(t,"k",(function(){return g})),n.d(t,"g",(function(){return w})),n.d(t,"h",(function(){return E})),n.d(t,"f",(function(){return S})),n.d(t,"a",(function(){return O}));var r=n(144),o=n.n(r),i=1e3,a=86400*i,s=60*i,l=/^(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(\.\d{1,3})?)?((Z$)|(?:[+-](?:([0-2]\d$)|([0-2]\d(?:00|30)$)|([0-2]\d:(?:00|30)$))))$/,u=1,c=2,f=3,d=4,p=5,h=6,b=7;function m(e){return e instanceof Date?e:new Date(e)}function y(e){return e*i}function v(e){return(new Date).toDateString()===m(e).toDateString()}function g(e){return v(m(e).getTime()+a)}function w(e){return(new Date).getMonth()===m(e).getMonth()}function E(e){return(new Date).getFullYear()===m(e).getFullYear()}function S(e){var t=Math.floor(e/3600),n=Math.floor(e%3600/60),r=Math.floor(e%3600%60),o=t>0?"".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 O(e,t){return e instanceof Date?new Date(e.getTime()+t):e+t}function k(e){return e.getTime()-e.getTimezoneOffset()*s}function C(e){return!o()(e.getTime())}function x(e){var t=new Date(function(e){if(l.test(e)){var t=e.split(l),n=t[u],r=t[c],o=t[f];if(r||(n+=".000"),t[d])return e;if(t[p])return"".concat(n+o,":00");if(t[h])return"".concat(n+o.substr(0,3),":").concat(o.substr(3));if(t[b])return e}return e}(e)),n=t.getTime(),r=t.getTimezoneOffset();return new Date(n+r*s)}},function(e,t,n){"use strict";var r=n(107),o=Object(r.defineMessages)({cancel:{id:"boxui.core.cancel",defaultMessage:"Cancel"},close:{id:"boxui.core.close",defaultMessage:"Close"},copy:{id:"boxui.core.copy",defaultMessage:"Copy"},copied:{id:"boxui.core.copied",defaultMessage:"Copied"},done:{id:"boxui.core.done",defaultMessage:"Done"},okay:{id:"boxui.core.okay",defaultMessage:"Okay"},save:{id:"boxui.core.save",defaultMessage:"Save"},send:{id:"boxui.core.send",defaultMessage:"Send"},optional:{id:"boxui.core.optional",defaultMessage:"optional"},pillSelectorPlaceholder:{id:"boxui.share.pillSelectorPlaceholder",defaultMessage:"Add names or email addresses"},messageSelectorPlaceholder:{id:"boxui.share.messageSelectorPlaceholder",defaultMessage:"Add a message"},invalidInputError:{id:"boxui.validation.genericError",defaultMessage:"Invalid Input"},minLengthError:{id:"boxui.validation.tooShortError",defaultMessage:"Input must be at least {min} characters"},maxLengthError:{id:"boxui.validation.tooLongError",defaultMessage:"Input cannot exceed {max} characters"},invalidEmailError:{id:"boxui.validation.emailError",defaultMessage:"Invalid Email Address"},invalidURLError:{id:"boxui.validation.URLError",defaultMessage:"Invalid URL"},invalidUserError:{id:"boxui.validation.invalidUserError",defaultMessage:"Invalid User"},requiredFieldError:{id:"boxui.validation.requiredError",defaultMessage:"Required Field"}});t.a=o},,,function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=n(107),o=Object(r.defineMessages)({appActivityDeleteErrorMessage:{id:"be.api.appActivityDeleteErrorMessage",defaultMessage:"There was an error deleting this item."},commentCreateErrorMessage:{id:"be.api.commentCreateErrorMessage",defaultMessage:"There was an error creating this comment."},commentCreateConflictMessage:{id:"be.api.commentCreateConflictMessage",defaultMessage:"This comment already exists."},commentDeleteErrorMessage:{id:"be.api.commentDeleteErrorMessage",defaultMessage:"There was an error deleting this comment."},taskActionErrorTitle:{id:"be.api.taskActionErrorTitle",defaultMessage:"Error"},taskApproveErrorMessage:{id:"be.api.taskApproveErrorMessage",defaultMessage:"An error has occurred while approving this task. Please refresh the page and try again."},taskCompleteErrorMessage:{id:"be.api.taskCompleteErrorMessage",defaultMessage:"An error has occurred while completing this task. Please refresh the page and try again."},taskRejectErrorMessage:{id:"be.api.taskRejectErrorMessage",defaultMessage:"An error has occurred while rejecting this task. Please refresh the page and try again."},taskDeleteErrorMessage:{id:"be.api.taskDeleteErrorMessage",defaultMessage:"There was an error while deleting this task. Please refresh the page and try again."},taskCreateErrorMessage:{id:"be.api.taskCreateErrorMessage",defaultMessage:"An error occurred while creating this task. Please try again."},taskGroupExceedsLimitWarningMessage:{id:"be.api.taskGroupExceedsWarningTitle",defaultMessage:"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group."}});t.a=o},function(e,t){function n(e){return(n="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)}e.exports=function(e){var t=n(e);return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";function r(e){return(r="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)}var o=n(226),i=n(421),a=Object.prototype.toString;function s(e){return"[object Array]"===a.call(e)}function l(e){return null!==e&&"object"===r(e)}function u(e){return"[object Function]"===a.call(e)}function c(e,t){if(null!=e)if("object"!==r(e)&&(e=[e]),s(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}e.exports={isArray:s,isArrayBuffer:function(e){return"[object ArrayBuffer]"===a.call(e)},isBuffer:i,isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:l,isUndefined:function(e){return void 0===e},isDate:function(e){return"[object Date]"===a.call(e)},isFile:function(e){return"[object File]"===a.call(e)},isBlob:function(e){return"[object Blob]"===a.call(e)},isFunction:u,isStream:function(e){return l(e)&&u(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)},forEach:c,merge:function e(){var t={};function n(n,o){"object"===r(t[o])&&"object"===r(n)?t[o]=e(t[o],n):t[o]=n}for(var o=0,i=arguments.length;o<i;o++)c(arguments[o],n);return t},extend:function(e,t,n){return c(t,(function(t,r){e[r]=n&&"function"==typeof t?o(t,n):t})),e},trim:function(e){return e.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(337)},function(e,t){function n(e){return(n="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)}var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(r=window)}e.exports=r},,function(e,t,n){function r(e){return(r="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)}var o=n(211),i="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,a=o||i||Function("return this")();e.exports=a},function(e,t,n){"use strict";var r,o=n(0),i=n(5),a=n.n(i),s=n(12),l=n.n(s),u=n(45),c=n.n(u);!function(e){e.TOP_LEFT="top left",e.TOP_CENTER="top center",e.TOP_RIGHT="top right",e.MIDDLE_LEFT="middle left",e.MIDDLE_CENTER="middle center",e.MIDDLE_RIGHT="middle right",e.BOTTOM_LEFT="bottom left",e.BOTTOM_CENTER="bottom center",e.BOTTOM_RIGHT="bottom right"}(r||(r={}));var f,d,p,h=r,b=n(153),m=n(19);n(417);function y(e){return(y="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 v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function E(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return p})),function(e){e.CALLOUT="callout",e.DEFAULT="default",e.ERROR="error"}(d||(d={})),function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(p||(p={}));var k=(O(f={},p.BOTTOM_CENTER,{attachment:h.TOP_CENTER,targetAttachment:h.BOTTOM_CENTER}),O(f,p.BOTTOM_LEFT,{attachment:h.TOP_RIGHT,targetAttachment:h.BOTTOM_RIGHT}),O(f,p.BOTTOM_RIGHT,{attachment:h.TOP_LEFT,targetAttachment:h.BOTTOM_LEFT}),O(f,p.MIDDLE_LEFT,{attachment:h.MIDDLE_RIGHT,targetAttachment:h.MIDDLE_LEFT}),O(f,p.MIDDLE_RIGHT,{attachment:h.MIDDLE_LEFT,targetAttachment:h.MIDDLE_RIGHT}),O(f,p.TOP_CENTER,{attachment:h.BOTTOM_CENTER,targetAttachment:h.TOP_CENTER}),O(f,p.TOP_LEFT,{attachment:h.BOTTOM_RIGHT,targetAttachment:h.TOP_RIGHT}),O(f,p.TOP_RIGHT,{attachment:h.BOTTOM_LEFT,targetAttachment:h.TOP_LEFT}),f),C=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"!==y(t)&&"function"!=typeof t?E(e):t}(this,w(t).call(this,e)),O(E(n),"tooltipID",l()("tooltip")),O(E(n),"tetherRef",o.createRef()),O(E(n),"position",(function(){n.tetherRef.current&&n.isShown()&&n.tetherRef.current.position()})),O(E(n),"closeTooltip",(function(){var e=n.props.onDismiss;n.setState({wasClosedByUser:!0}),e&&e()})),O(E(n),"fireChildEvent",(function(e,t){var r=n.props.children.props[e];r&&r(t)})),O(E(n),"handleTooltipEvent",(function(e){e.stopPropagation(),e.nativeEvent.stopImmediatePropagation()})),O(E(n),"handleMouseEnter",(function(e){n.setState({isShown:!0}),n.fireChildEvent("onMouseEnter",e)})),O(E(n),"handleMouseLeave",(function(e){n.setState({isShown:!1}),n.fireChildEvent("onMouseLeave",e)})),O(E(n),"handleFocus",(function(e){n.setState({isShown:!0}),n.fireChildEvent("onFocus",e)})),O(E(n),"handleBlur",(function(e){n.setState({isShown:!1}),n.fireChildEvent("onBlur",e)})),O(E(n),"handleKeyDown",(function(e){"Escape"===e.key&&n.setState({isShown:!1}),n.fireChildEvent("onKeyDown",e)})),O(E(n),"isControlled",(function(){return void 0!==n.props.isShown})),O(E(n),"isShown",(function(){var e=n.props.isShown;return(n.isControlled()?e:n.state.isShown)&&!n.state.wasClosedByUser&&n.state.hasRendered})),n.state={isShown:!!e.isShown,hasRendered:!1,wasClosedByUser:!1},n}var n,r,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&&S(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){this.setState({hasRendered:!0})}},{key:"render",value:function(){var e=this.props,t=e.bodyElement,n=e.children,r=e.className,i=e.constrainToScrollParent,s=e.constrainToWindow,l=e.isDisabled,u=e.isTabbable,f=void 0===u||u,h=e.offset,y=e.position,g=void 0===y?p.TOP_CENTER:y,w=e.showCloseButton,E=e.stopBubble,S=e.text,O=e.theme;if(l)return o.Children.only(n);var C=this.isControlled(),x=this.isShown(),_=w&&C,P="string"==typeof g?k[g]:g,A=[],T={};i&&A.push({to:"scrollParent",attachment:"together"}),s&&A.push({to:"window",attachment:"together"}),x&&(T["aria-describedby"]=this.tooltipID,O===d.ERROR&&(T["aria-errormessage"]=this.tooltipID)),C||(T.onBlur=this.handleBlur,T.onFocus=this.handleFocus,T.onKeyDown=this.handleKeyDown,T.onMouseEnter=this.handleMouseEnter,T.onMouseLeave=this.handleMouseLeave,f&&(T.tabIndex="0"));var I=t instanceof HTMLElement?t:document.body,D=a()("tooltip","bdl-Tooltip",r,{"is-callout":O===d.CALLOUT,"is-error":O===d.ERROR,"with-close-button":_}),j={attachment:P.attachment,bodyElement:I,classPrefix:"tooltip",constraints:A,enabled:x,targetAttachment:P.targetAttachment};h&&(j.offset=h);var L=o.createElement(o.Fragment,null,S,_&&o.createElement(m.a,{className:"tooltip-close-button",onClick:this.closeTooltip},o.createElement(b.a,{className:"bdl-Tooltip-iconClose",width:14,height:14}))),R=E?o.createElement("div",{className:D,id:this.tooltipID,role:"presentation",onClick:this.handleTooltipEvent,onContextMenu:this.handleTooltipEvent,onKeyPress:this.handleTooltipEvent},o.createElement("div",{role:"tooltip","aria-live":"polite"},L)):o.createElement("div",{className:D,id:this.tooltipID,role:"tooltip","aria-live":"polite"},L);return o.createElement(c.a,v({ref:this.tetherRef},j),o.cloneElement(o.Children.only(n),T),x&&R)}}])&&g(n.prototype,r),i&&g(n,i),t}(o.Component);O(C,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isDisabled:!1,position:p.TOP_CENTER,theme:d.DEFAULT});t.c=C},function(e,t){function n(e){return(n="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)}e.exports=function(e){return null!=e&&"object"==n(e)}},,function(e,t,n){"use strict";function r(e){return(r="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)}var o=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r};function i(e){return JSON.stringify(e.map((function(e){return e&&"object"===r(e)?(t=e,Object.keys(t).sort().map((function(e){var n;return(n={})[e]=t[e],n}))):e;var t})))}t.a=function(e,t){return void 0===t&&(t={}),function(){for(var n,r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];var s=i(r),l=s&&t[s];return l||(l=new((n=e).bind.apply(n,o([void 0],r))),s&&(t[s]=l)),l}}},function(e,t,n){"use strict";var r=n(119),o=n(56),i=n(0),a=n(5),s=n.n(a),l=n(21),u=n.n(l);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var f=function(e){return i.createElement(o.a,c({isSelectItem:!0},e))};var d=n(96),p=n.n(d),h=(n(534),n(2)),b=n(10);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var y=function(e){return i.createElement(b.a,m({width:16,height:16,viewBox:"0 0 16 16"},e),i.createElement("path",{fill:h.i,fillRule:"evenodd",d:"M7.646 7.646L4.354 4.354a.5.5 0 010-.708l1.292-1.292a.5.5 0 01.708 0l5.292 5.292a.5.5 0 010 .708l-5.292 5.292a.5.5 0 01-.708 0l-1.292-1.292a.5.5 0 010-.708l3.292-3.292a.5.5 0 000-.708z"}))};function v(e){return(v="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 g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function E(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var x="is-left-aligned",_="is-bottom-aligned";i.Component;n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return o.a})),n.d(t,"c",(function(){return f}))},function(e,t,n){"use strict";n(0);function r(e){return(r="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 o(e){return null!=e&&"object"===r(e)&&1===e.nodeType}function i(e,t){return(!t||"hidden"!==e)&&("visible"!==e&&"clip"!==e)}function a(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return i(n.overflowY,t)||i(n.overflowX,t)}return!1}function s(e,t,n,r,o,i,a,s){return i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0}var l=function(e,t){var n=t.scrollMode,r=t.block,i=t.inline,l=t.boundary,u=t.skipOverflowHiddenElements,c="function"==typeof l?l:function(e){return e!==l};if(!o(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,d=[],p=e;o(p)&&c(p);){if((p=p.parentNode)===f){d.push(p);break}p===document.body&&a(p)&&!a(document.documentElement)||a(p,u)&&d.push(p)}for(var h=window.visualViewport?visualViewport.width:innerWidth,b=window.visualViewport?visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,y=window.scrollY||pageYOffset,v=e.getBoundingClientRect(),g=v.height,w=v.width,E=v.top,S=v.right,O=v.bottom,k=v.left,C="start"===r||"nearest"===r?E:"end"===r?O:E+g/2,x="center"===i?k+w/2:"end"===i?S:k,_=[],P=0;P<d.length;P++){var A=d[P],T=A.getBoundingClientRect(),I=T.height,D=T.width,j=T.top,L=T.right,R=T.bottom,N=T.left;if("if-needed"===n&&E>=0&&k>=0&&O<=b&&S<=h&&E>=j&&O<=R&&k>=N&&S<=L)return _;var M=getComputedStyle(A),F=parseInt(M.borderLeftWidth,10),U=parseInt(M.borderTopWidth,10),B=parseInt(M.borderRightWidth,10),H=parseInt(M.borderBottomWidth,10),z=0,V=0,W="offsetWidth"in A?A.offsetWidth-A.clientWidth-F-B:0,G="offsetHeight"in A?A.offsetHeight-A.clientHeight-U-H:0;if(f===A)z="start"===r?C:"end"===r?C-b:"nearest"===r?s(y,y+b,b,U,H,y+C,y+C+g,g):C-b/2,V="start"===i?x:"center"===i?x-h/2:"end"===i?x-h:s(m,m+h,h,F,B,m+x,m+x+w,w),z=Math.max(0,z+y),V=Math.max(0,V+m);else{z="start"===r?C-j-U:"end"===r?C-R+H+G:"nearest"===r?s(j,R,I,U,H+G,C,C+g,g):C-(j+I/2)+G/2,V="start"===i?x-N-F:"center"===i?x-(N+D/2)+W/2:"end"===i?x-L+B+W:s(N,L,D,F,B+W,x,x+w,w);var q=A.scrollLeft,X=A.scrollTop;C+=X-(z=Math.max(0,Math.min(X+z,A.scrollHeight-I+G))),x+=q-(V=Math.max(0,Math.min(q+V,A.scrollWidth-D+W)))}_.push({el:A,top:z,left:V})}return _};function u(e){return e===Object(e)&&0!==Object.keys(e).length}var c=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(u(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:l(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:u(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,o=e.top,i=e.left;r.scroll&&n?r.scroll({top:o,left:i,behavior:t}):(r.scrollTop=o,r.scrollLeft=i)}))}(l(e,r),r.behavior)}},f=n(1);n(535);function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(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 b(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")||e.parentElement instanceof HTMLElement&&e.parentElement.classList.contains("bdl-Button")||!1;return h(e)||"button"===t||"a"===t||"option"===t||n||r}function m(e){return!(0!==e.button||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}function y(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 v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e){var n=e.closest(".body, .modal, .".concat(f.qe));c(e,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({scrollMode:"if-needed",boundary:n},t))}}n.d(t,"c",(function(){return h})),n.d(t,"b",(function(){return b})),n.d(t,"d",(function(){return m})),n.d(t,"a",(function(){return y})),n.d(t,"e",(function(){return v}))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return o.default}});var r,o=(r=n(411))&&r.__esModule?r:{default:r}},function(e,t,n){"use strict";var r=n(61),o=n.n(r),i=n(7),a=n.n(i),s=n(15),l=n(18),u=n(8),c=n(1),f=n(76),d=n(67),p=n(60);function h(e){return(h="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 b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function g(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){v(i,r,o,a,s,"next",e)}function s(e){v(i,r,o,a,s,"throw",e)}a(void 0)}))}}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),E(this,S(t).apply(this,arguments))}var n,r,i,f,h,b,y;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&&O(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(c.h).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/files").concat(t)}},{key:"getDownloadUrl",value:(y=g(regeneratorRuntime.mark((function e(t,n,r,i){var a,s,u,f,d,h,b,y;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=c.Pb,this.errorCallback=i,this.successCallback=r,a=n[c.Ic],s=n[c.rc],e.next=7,p.a.getReadToken(Object(l.b)(t),this.options.token);case 7:if(u=e.sent,a&&s&&u){e.next=11;break}return this.errorHandler(new Error("Download is missing required fields or token.")),e.abrupt("return");case 11:f=o.a.parseUrl(s),d=f.query,h=f.url,b=m({},d,{access_token:u}),y=o.a.stringify(b),this.successHandler("".concat(h,"?").concat(y));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r){return y.apply(this,arguments)})},{key:"isRepresentationsCallComplete",value:function(e){var t=a()(e,"data.status.state");return!t||t===c.Ce||t===c.De||t===c.Ee}},{key:"generateRepresentation",value:(b=g(regeneratorRuntime.mark((function e(t){var n,r=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=a()(t,"info.url")){e.next=3;break}return e.abrupt("return",t);case 3:return e.abrupt("return",Object(d.a)((function(e,t){return r.xhr.get({successCallback:e,errorCallback:t,url:n}).then((function(n){return r.isRepresentationsCallComplete(n)?e(n.data):t(n.data)})).catch((function(e){t(e)}))}),4,2e3,2));case 4:case"end":return e.stop()}}),e)}))),function(e){return b.apply(this,arguments)})},{key:"getThumbnailUrl",value:(h=g(regeneratorRuntime.mark((function e(t){var n,r,i,s,u,c,f,d,h,b;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a()(t,"representations.entries[0]"),r=a()(n,"representation"),i=a()(n,"content.url_template"),e.next=5,p.a.getReadToken(Object(l.b)(t.id),this.options.token);case 5:if(s=e.sent,r&&i&&s){e.next=8;break}return e.abrupt("return",null);case 8:return u=i.replace("{+asset_path}","jpg"===r?"":"1.png"),c=o.a.parseUrl(u),f=c.query,d=c.url,h=m({},f,{access_token:s}),b=o.a.stringify(h),e.abrupt("return","".concat(d,"?").concat(b));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"setFileDescription",value:function(e,t,n,r){var o=this,i=e.id,a=e.permissions;return i&&a?a.can_rename?this.xhr.put({id:Object(l.b)(i),url:this.getUrl(i),data:{description:t}}).then((function(e){var t=e.data;if(!o.isDestroyed()){var r=o.merge(o.getCacheKey(i),"description",t.description);n(r)}})).catch((function(){if(!o.isDestroyed()){var t=o.merge(o.getCacheKey(i),"description",e.description);r(t)}})):(r(Object(u.b)()),Promise.reject()):(r(Object(u.a)()),Promise.reject())}},{key:"getFile",value:(f=g(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,u,f,d,p,h,b,m,y=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=y.length>3&&void 0!==y[3]?y[3]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(i=this.getCache(),a=this.getCacheKey(t),u=!o.forceFetch&&i.has(a),f=u?i.get(a):{id:t},d=Object(s.j)(f,o.fields),p={id:Object(l.b)(t),url:this.getUrl(t),headers:{"X-Rep-Hints":c.Uf}},this.errorCode=c.Cb,this.successCallback=n,this.errorCallback=r,!u||0!==d.length){e.next=17;break}if(n(f),d=o.fields||[],o.refreshCache){e.next=17;break}return e.abrupt("return");case 17:return d.length>0&&(p.params={fields:d.toString()}),e.prev=18,e.next=21,this.xhr.get(p);case 21:if(h=e.sent,b=h.data,!this.isDestroyed()){e.next=25;break}return e.abrupt("return");case 25:m=Object(s.i)(b,d),i.has(a)?i.merge(a,m):i.set(a,m),this.successHandler(i.get(a)),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(e,t,n){return f.apply(this,arguments)})},{key:"getFileExtension",value:function(e,t,n){this.isDestroyed()||this.getFile(e,t,n,{fields:[c.Bc]})}}])&&w(n.prototype,r),i&&w(n,i),t}(f.a);t.a=k},function(e,t,n){"use strict";var r=n(0),o=n(24);function i(){return(i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function a(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,s=void 0===n?"":n,l=a(e,["children","className"]);return r.createElement(o.b,i({className:"btn-primary ".concat(s)},l),t)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return d})),n.d(t,"c",(function(){return p}));var r=n(0),o=n(171),i=n.n(o),a=n(11);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=i.a||o;var u=r.createContext(null),c=u.Consumer,f=u.Provider,d=u;function p(e,t){var n,o=t||{},i=o.intlPropName,u=void 0===i?"intl":i,f=o.forwardRef,d=void 0!==f&&f,p=o.enforceContext,h=void 0===p||p,b=function(t){return r.createElement(c,null,(function(n){return h&&Object(a.h)(n),r.createElement(e,s({},t,(l=n,(i=u)in(o={})?Object.defineProperty(o,i,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[i]=l,o),{ref:d?t.forwardedRef:null}));var o,i,l}))};return b.displayName="injectIntl(".concat((n=e).displayName||n.name||"Component",")"),b.WrappedComponent=e,l(d?r.forwardRef((function(e,t){return r.createElement(b,s({},e,{forwardedRef:t}))})):b,e)}},function(e,t,n){"use strict";var r,o=n(0),i=n(5),a=n.n(i),s=n(25);n(410);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){e.CENTER="center",e.TOP="top"}(r||(r={}));t.a=function(e){var t=e.children,n=e.className,i=void 0===n?"":n,c=e.crawlerPosition,f=void 0===c?r.CENTER:c,d=e.crawlerSize,p=void 0===d?s.a.DEFAULT:d,h=e.isLoading,b=void 0!==h&&h,m=e.hideContent,y=void 0!==m&&m,v=u(e,["children","className","crawlerPosition","crawlerSize","isLoading","hideContent"]),g=a()("loading-indicator-veil",{"is-with-top-crawler":f===r.TOP,"is-with-center-crawler":f===r.CENTER},y?"hide-content":"blur-content");return o.createElement("div",l({className:"loading-indicator-wrapper ".concat(i)},v),t,b&&o.createElement("div",{className:g},o.createElement(s.b,{size:p})))}},,,function(e,t,n){"use strict";
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;function s(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach((function(e){o[e]=e})),"abcdefghijklmnopqrst"===Object.keys(r({},o)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,r,l=s(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(l[c]=n[c]);if(o){r=o(n);for(var f=0;f<r.length;f++)a.call(n,r[f])&&(l[r[f]]=n[r[f]])}}return l}},function(e,t,n){"use strict";n(143);var r=n(49);n.d(t,"a",(function(){return r.a}));var o=n(25);n.d(t,"b",(function(){return o.b}))},function(e,t,n){"use strict";var r=n(200);n.d(t,"a",(function(){return r.a}))},function(e,t,n){var r=n(85),o=n(351),i=n(352),a="[object Null]",s="[object Undefined]",l=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:l&&l in Object(e)?o(e):i(e)}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(21),s=n.n(a),l=n(139);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 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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(s))),r=p(n),i=function(e){var t=n.props,r=t.isDisabled,o=t.onClick;if(r)return e.stopPropagation(),void e.preventDefault();o&&o(e)},(o="onClickHandler")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,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&&h(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.isDisabled,a=e.isSelectItem,u=e.isSelected,f=e.showRadar,d=c(e,["children","className","isDisabled","isSelectItem","isSelected","showRadar"]),p=s()(d,["role","tabIndex","onClick"]);p.className=i()("menu-item",n,{"is-select-item":a,"is-selected":u}),p.role=a?"menuitemradio":"menuitem",p.tabIndex=-1,p.onClick=this.onClickHandler,a&&(p["aria-checked"]=u),o&&(p["aria-disabled"]="true");var h=r.createElement("li",p,t);return f&&(h=r.createElement(l.a,null,h)),h}}])&&f(n.prototype,o),a&&f(n,a),t}(r.Component);t.a=b},function(e,t,n){"use strict";var r=n(76),o=n(1),i=n(15);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 s(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var n,r,a,d,p;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&&f(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(o.n).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/web_links").concat(t)}},{key:"getWeblink",value:(d=regeneratorRuntime.mark((function e(t,n,r){var a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(a=p.length>3&&void 0!==p[3]?p[3]:{},s=a.fields,!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(l=this.getCache(),u=this.getCacheKey(t),this.errorCode=o.Ob,this.successCallback=n,this.errorCallback=r,!l.has(u)){e.next=13;break}if(0!==Object(i.j)(l.get(u),s).length){e.next=13;break}return n(l.get(u)),e.abrupt("return");case 13:return c={url:this.getUrl(t)},s&&(c.params={fields:s.toString()}),e.prev=15,e.next=18,this.xhr.get(c);case 18:if(f=e.sent,d=f.data,!this.isDestroyed()){e.next=22;break}return e.abrupt("return");case 22:l.has(u)?l.merge(u,d):l.set(u,d),this.successHandler(l.get(u)),e.next=29;break;case 26:e.prev=26,e.t0=e.catch(15),this.errorHandler(e.t0);case 29:case"end":return e.stop()}}),e,this,[[15,26]])})),p=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=d.apply(e,t);function i(e){s(o,n,r,i,a,"next",e)}function a(e){s(o,n,r,i,a,"throw",e)}i(void 0)}))},function(e,t,n){return p.apply(this,arguments)})}])&&l(n.prototype,r),a&&l(n,a),t}(r.a);t.a=d},,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(517),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=function(e){var t=e.Component,n=e.className,o=u(e,["Component","className"]);return r.createElement(t,l({className:i()("bdl-LabelPill-iconContent",n),width:12,height:12},o))};function f(){return(f=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var p,h,b=function(e){var t=e.children,n=e.className,o=d(e,["children","className"]);return r.createElement("span",f({className:i()("bdl-LabelPill-textContent",n)},o),t)};n(646);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}!function(e){e.DEFAULT="default",e.INFO="info",e.HIGHLIGHT="highlight",e.SUCCESS="success",e.WARNING="warning",e.ALERT="alert",e.ERROR="error"}(p||(p={})),function(e){e.REGULAR="regular",e.LARGE="large"}(h||(h={}));var v=r.forwardRef((function(e,t){var n=e.children,o=e.type,a=void 0===o?p.DEFAULT:o,l=e.size,u=void 0===l?h.REGULAR:l,c=e.className,f=y(e,["children","type","size","className"]),d=i()("bdl-LabelPill","bdl-LabelPill--".concat(a),"bdl-LabelPill--size".concat(s()(u)),c);return r.createElement("span",m({ref:t,className:d},f),n)}));v.displayName="LabelPill";var g={Pill:v,Text:b,Icon:c};n.d(t,"a",(function(){return g}))},function(e,t,n){"use strict";var r=n(1);function o(e){return(o="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 i(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var a=e.apply(t,n);function s(e){i(a,r,o,s,l,"next",e)}function l(e){i(a,r,o,s,l,"throw",e)}s(void 0)}))}}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=new Error("Bad id or auth token. ID should be typed id like file_123 or folder_123! Token should be a string or function."),u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,i,u,c,f,d,p;return t=e,n=null,i=[{key:"getToken",value:(p=a(regeneratorRuntime.mark((function e(t,n){var i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==n||"string"==typeof n||"function"==typeof n)&&(t.startsWith(r.yf)||t.startsWith(r.xf))){e.next=2;break}throw l;case 2:if(n&&"string"!=typeof n){e.next=4;break}return e.abrupt("return",n);case 4:return e.next=6,n(t);case 6:if((i=e.sent)&&"string"!=typeof i&&("object"!==o(i)||!i.read&&!i.write)){e.next=9;break}return e.abrupt("return",i);case 9:throw l;case 10:case"end":return e.stop()}}),e)}))),function(e,t){return p.apply(this,arguments)})},{key:"getReadToken",value:(d=a(regeneratorRuntime.mark((function t(n,r){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(n,r);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return d.apply(this,arguments)})},{key:"getReadTokens",value:(f=a(regeneratorRuntime.mark((function t(n,r){var o,i,a,s;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=Array.isArray(n)?n:[n],i=o.map((function(t){return e.getReadToken(t,r)})),t.next=4,Promise.all(i);case 4:return a=t.sent,s={},a.forEach((function(e,t){s[o[t]]=e})),t.abrupt("return",Promise.resolve(s));case 8:case"end":return t.stop()}}),t)}))),function(e,t){return f.apply(this,arguments)})},{key:"getWriteToken",value:(c=a(regeneratorRuntime.mark((function t(n,r){var i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getToken(n,r);case 2:if(!(i=t.sent)||"object"!==o(i)){t.next=5;break}return t.abrupt("return",i.write||i.read);case 5:return t.abrupt("return",i);case 6:case"end":return t.stop()}}),t)}))),function(e,t){return c.apply(this,arguments)})},{key:"cacheTokens",value:(u=a(regeneratorRuntime.mark((function e(t,n){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if((null==n||"string"==typeof n||"function"==typeof n)&&t.every((function(e){return e.startsWith(r.yf)||e.startsWith(r.xf)}))){e.next=2;break}throw l;case 2:if("function"!=typeof n){e.next=5;break}return e.next=5,n(t);case 5:return e.abrupt("return",Promise.resolve());case 6:case"end":return e.stop()}}),e)}))),function(e,t){return u.apply(this,arguments)})}],n&&s(t.prototype,n),i&&s(t,i),e}();t.a=u},function(e,t,n){"use strict";function r(e){return(r="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)}var o=n(457),i=n(52),a=n(458);function s(e,t){return t.encode?t.strict?o(e):encodeURIComponent(e):e}function l(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function u(e,t){var n=function(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t=i({arrayFormat:"none"},t)),o=Object.create(null);return"string"!=typeof e?o:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),i=t.length>0?t.join("="):void 0;i=void 0===i?null:a(i),n(a(r),i,o)})),Object.keys(o).sort().reduce((function(e,t){var n=o[t];return Boolean(n)&&"object"===r(n)&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===r(t)?e(Object.keys(t)).sort((function(e,t){return Number(e)-Number(t)})).map((function(e){return t[e]})):t}(n):e[t]=n,e}),Object.create(null))):o}t.extract=l,t.parse=u,t.stringify=function(e,t){!1===(t=i({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[s(t,e),"[",r,"]"].join(""):[s(t,e),"[",s(r,e),"]=",s(n,e)].join("")};case"bracket":return function(t,n){return null===n?s(t,e):[s(t,e),"[]=",s(n,e)].join("")};default:return function(t,n){return null===n?s(t,e):[s(t,e),"=",s(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(r){var o=e[r];if(void 0===o)return"";if(null===o)return s(r,t);if(Array.isArray(o)){var i=[];return o.slice().forEach((function(e){void 0!==e&&i.push(n(r,e,i.length))})),i.join("&")}return s(r,t)+"="+s(o,t)})).filter((function(e){return e.length>0})).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:u(l(e),t)}}},,,function(e,t,n){var r=n(350),o=n(355);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){"use strict";var r=n(103),o=n.n(r);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cache={}}var t,n,r;return t=e,(n=[{key:"set",value:function(e,t){this.cache[e]=t}},{key:"merge",value:function(e,t){if(!this.has(e))throw new Error("Key ".concat(e," not in cache!"));this.set(e,o()({},this.get(e),t))}},{key:"unset",value:function(e){delete this.cache[e]}},{key:"unsetAll",value:function(e){var t=this;Object.keys(this.cache).forEach((function(n){n.startsWith(e)&&delete t.cache[n]}))}},{key:"has",value:function(e){return{}.hasOwnProperty.call(this.cache,e)}},{key:"get",value:function(e){if(this.has(e))return this.cache[e]}}])&&i(t.prototype,n),r&&i(t,r),e}();t.a=a},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(75),a=n(15),s=n(8),l=n(76),u=n(46),c=n(57),f=n(1);function d(e){return(d="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 p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(n),"folderSuccessHandler",(function(e){var r=e.data;if(!n.isDestroyed()){var o=r.item_collection;if(!o)throw Object(s.a)();var a=o.entries,l=o.total_count,f=o.limit,d=o.offset;if(!Array.isArray(a)||"number"!=typeof l||"number"!=typeof f||"number"!=typeof d)throw Object(s.a)();var p=Object(i.a)(a,new t(n.options),new u.a(n.options),new c.a(n.options));n.itemCache=(n.itemCache||[]).concat(p),n.getCache().set(n.key,h({},r,{item_collection:h({},o,{entries:n.itemCache})})),n.finish()}})),g(y(n),"folderDetailsSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=h({},n.getCache().get(n.key),{},t);n.getCache().set(n.key,r),n.successCallback(r)}})),g(y(n),"createSuccessHandler",(function(e){var t=e.data,r=t.id;if(!n.isDestroyed()&&r){var o=n.getCacheKey(r),i=n.getCache(),a=i.get(n.key);if(a){var l=a.item_collection;if(!l)throw Object(s.a)();var u=l.total_count,c=l.entries;if(!Array.isArray(c)||"number"!=typeof u)throw Object(s.a)();i.set(o,t),l.entries=[o].concat(c),l.total_count=u+1,n.successCallback(t)}else n.successCallback(t)}})),n}var n,r,l;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&&v(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(f.i).concat(e)}},{key:"getUrl",value:function(e){var t=e?"/".concat(e):"";return"".concat(this.getBaseApiUrl(),"/folders").concat(t)}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key),n=t.id,r=t.name,o=t.permissions,i=t.path_collection,a=t.item_collection;if(!a||!i)throw Object(s.a)();var l=a.entries,u=a.offset,c=a.total_count;if(!Array.isArray(l)||"number"!=typeof c)throw Object(s.a)();var f={id:n,name:r,offset:u,percentLoaded:100,permissions:o,boxItem:t,breadcrumbs:i.entries,items:l.map((function(t){return e.get(t)})),sortBy:this.sortBy,sortDirection:this.sortDirection,totalCount:c};this.successCallback(f)}}},{key:"folderRequest",value:function(){var e=arguments.length>0&&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.Eb;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,headers:o.includes(f.ad)?{"X-Rep-Hints":f.Vf}:{}}).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(h({},r,{noPagination:!0}),this.folderDetailsSuccessHandler))}},{key:"getFolder",value:function(e,t,n,r,o,i,a){var s=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,s.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.folderRequest(s))}},{key:"folderCreateRequest",value:function(e){if(this.isDestroyed())return Promise.reject();this.errorCode=f.gb;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))}}])&&b(n.prototype,r),l&&b(n,l),t}(l.a);t.a=w},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 s(l){setTimeout((function(){o+=1,new Promise((function(t,n){e(t,n,a)})).then(n).catch((function(e){o<t?s(i*=r):a(e)}))}),l)}s(i)}))}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),o=n(81),i=n(2),a=n(10);function s(){return(s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var l=function(e){return r.createElement(a.a,s({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:i.i,d:"M8 1a7 7 0 110 14A7 7 0 018 1zm.5 6H7a.5.5 0 000 1h.5v3H7a.5.5 0 100 1h2.5a.5.5 0 100-1H9V7.75a.783.783 0 00-.012-.139A.502.502 0 008.5 7zM8 4a1 1 0 100 2 1 1 0 000-2z"}))},u=n(20),c=function(e){var t=e.className,n=void 0===t?"":t,o=e.iconProps,i=e.tooltipText;return r.createElement("span",{key:"infoIcon",className:"".concat(n," tooltip-icon-container")},r.createElement(u.c,{position:u.a.TOP_CENTER,text:i},r.createElement("span",{className:"info-icon-container"},r.createElement(l,o))))},f=n(5),d=n.n(f);function p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var b=function(e){var t=e.children,n=e.className,o=e.labelContent,i=h(e,["children","className","labelContent"]);return r.createElement("label",null,r.createElement("span",p({className:d()("label bdl-Label",n)},i),o),t)},m=function(e){var t=e.children,n=e.labelContent,o=e.tooltip,i=r.createElement(b,{labelContent:n},t);return o?r.createElement(u.c,{position:u.a.TOP_RIGHT,text:o},i):i},y=function(e){var t=e.children,n=e.labelContent;return r.createElement(b,{className:"accessibility-hidden",labelContent:n},t)},v=n(28);n(649);function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(){return r.createElement("span",{className:"label-optional bdl-Label-optional"},"(",r.createElement(o.a,v.a.optional),")")};t.a=function(e){var t=e.text,n=e.tooltip,o=e.infoTooltip,i=e.infoIconProps,a=e.showOptionalText,s=e.hideLabel,l=e.children,u=[r.createElement("span",{key:"labelText"},t),a?r.createElement(S,{key:"optionalMessage"}):null];return o&&u.push(r.createElement(c,{key:"infoTooltip",iconProps:w({className:"tooltip-icon"},i),tooltipText:o})),s?r.createElement(y,{labelContent:u},l):r.createElement(m,{labelContent:u,tooltip:n},l)}},function(e,t,n){"use strict";var r=n(0),o=n(9);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,u=e.title,c=e.width,f=void 0===c?24:c;return r.createElement(o.a,{className:"icon-close ".concat(n),height:l,title:u,viewBox:"0 0 24 24",width:f},r.createElement("path",{className:"fill-color",d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:a}),r.createElement("path",{d:"M0 0h24v24H0z",fill:"none"}))}},function(e,t,n){var r=n(419);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},,,,function(e,t,n){var r=n(160),o=n(161);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},function(e,t,n){"use strict";var r=n(8),o=n(1);t.a=function(e,t,n,i){var a=[];return e.forEach((function(e){var s,l=e.id,u=e.type;if(!l||!u)throw Object(r.a)();switch(u){case o.Af:s=t;break;case o.zf:s=n;break;case o.Bf:s=i;break;default:throw new Error("Unknown Type!")}var c=s.getCache(),f=s.getCacheKey(l);c.has(f)?c.merge(f,e):c.set(f,e),a.push(f)})),a}},function(e,t,n){"use strict";var r=n(3),o=n.n(r),i=n(70),a=n.n(i),s=n(8),l=n(15),u=n(14),c=n(1);function f(e){return(f="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 d(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function p(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){d(i,r,o,a,s,"next",e)}function s(e){d(i,r,o,a,s,"throw",e)}a(void 0)}))}}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?y(e):t}(this,(e=m(t)).call.apply(e,[this].concat(o))),g(y(n),"deleteSuccessHandler",(function(){if(!n.isDestroyed()){var e=n.getParentCacheKey(n.parentId),t=n.getCache().get(e);if(t){var r=t.item_collection;if(r){var o=r.entries,i=r.total_count;if(!Array.isArray(o)||"number"!=typeof i)throw Object(s.a)();var a=n.getCacheKey(n.id),l=o.length,u=o.filter((function(e){return e!==a})),c=u.length,f=n.merge(e,"item_collection",h(r,{entries:u,total_count:i-(l-c)}));n.successCallback(f),n.postDeleteCleanup()}else n.postDeleteCleanup()}else n.postDeleteCleanup()}})),g(y(n),"renameSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){n.getCache().unsetAll(c.m);var r=n.merge(n.getCacheKey(n.id),"name",t.name);n.successCallback(r)}})),g(y(n),"shareSuccessHandler",(function(e,t){if(!n.isDestroyed()){var r=t?Object(l.i)(e,t):e,o=n.getCache(),i=n.getCacheKey(n.id);o.has(i)?o.merge(i,r):o.set(i,r),n.successCallback(o.get(i))}})),n}var n,r,i,u,d;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&&v(e,t)}(t,e),n=t,(r=[{key:"getParentCacheKey",value:function(e){return"".concat(c.i).concat(e)}},{key:"getCacheKey",value:function(e){return"getCacheKey(".concat(e,") should be overriden")}},{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overriden")}},{key:"merge",value:function(e,t,n){var r=this.getCache();return r.merge(e,a()({},t,n)),r.get(e)}},{key:"postDeleteCleanup",value:function(){this.isDestroyed()||(this.getCache().unsetAll(c.m),this.successCallback())}},{key:"deleteItem",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:o.a;if(this.isDestroyed())return Promise.reject();this.errorCode=c.ob;var i=e.id,a=e.permissions,l=e.parent,u=e.type;if(!(i&&a&&l&&u))return r(Object(s.a)(),this.errorCode),Promise.reject();var f=l.id,d=a.can_delete;if(!d||!f)return r(Object(s.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.Af?"?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.Wb;var a=e.id,l=e.permissions;if(!a||!l)return i(Object(s.a)(),this.errorCode),Promise.reject();var u=l.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(s.b)(),this.errorCode),Promise.reject())}},{key:"validateRequest",value:function(e,t){if(!e||!t)throw this.errorCode=c.Zb,Object(s.a)();var n=t.can_share,r=t.can_set_share_access;if(!n||!r)throw this.errorCode=c.Zb,Object(s.b)()}},{key:"share",value:(d=p(regeneratorRuntime.mark((function e(t,n,r){var i,a,s,l,u,f,d,p,h=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=h.length>3&&void 0!==h[3]?h[3]:o.a,a=h.length>4&&void 0!==h[4]?h[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=r,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,f={url:this.getUrl(this.id),data:{shared_link:n===c.c?null:{access:n}}},u&&(f.params={fields:u.toString()}),e.next=15,this.xhr.put(f);case 15:return d=e.sent,p=d.data,e.abrupt("return",this.shareSuccessHandler(p,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,n){return d.apply(this,arguments)})},{key:"updateSharedLink",value:(u=p(regeneratorRuntime.mark((function e(t,n,r){var i,a,s,l,u,c,f,d,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=p.length>3&&void 0!==p[3]?p[3]:o.a,a=p.length>4&&void 0!==p[4]?p[4]:{},!this.isDestroyed()){e.next=4;break}return e.abrupt("return",Promise.reject());case 4:return e.prev=4,s=t.id,l=t.permissions,this.id=s,this.successCallback=r,this.errorCallback=i,this.validateRequest(s,l),u=a.fields,c={url:this.getUrl(this.id),data:{shared_link:n}},u&&(c.params={fields:u.toString()}),e.next=15,this.xhr.put(c);case 15:return f=e.sent,d=f.data,e.abrupt("return",this.shareSuccessHandler(d,u));case 20:return e.prev=20,e.t0=e.catch(4),e.abrupt("return",this.errorHandler(e.t0));case 23:case"end":return e.stop()}}),e,this,[[4,20]])}))),function(e,t,n){return u.apply(this,arguments)})}])&&b(n.prototype,r),i&&b(n,i),t}(u.a);t.a=w},,function(e,t,n){"use strict";e.exports=function(e,t){if(e===t)return!0;if(!e||!t)return!1;var n=Object.keys(e),r=Object.keys(t),o=n.length;if(r.length!==o)return!1;for(var i=0;i<o;i++){var a=n[i];if(e[a]!==t[a]||!Object.prototype.hasOwnProperty.call(t,a))return!1}return!0}},function(e,t,n){e.exports=n(420)},,function(e,t,n){"use strict";var r=n(0),o=n(48),i=n(102),a=n(11),s=n(78);function l(e){return(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})(e)}function u(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var b=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},m=n.n(s).a||s,y=function(e,t){return Object(i.b)(h(h({},a.a),{locale:"en"}),Object(a.c)(),e,t)},v=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),f(this,d(t).apply(this,arguments))}var n,i,s;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,e),n=t,(i=[{key:"shouldComponentUpdate",value:function(e){var t=this.props,n=t.values,r=b(t,["values"]),o=e.values,i=b(e,["values"]);return!m(o,n)||!m(r,i)}},{key:"render",value:function(){var e=this;return r.createElement(o.a.Consumer,null,(function(t){e.props.defaultMessage||Object(a.h)(t);var n=t||{},o=n.formatMessage,i=void 0===o?y:o,s=n.textComponent,l=void 0===s?r.Fragment:s,c=e.props,f=c.id,d=c.description,p=c.defaultMessage,h=c.values,b=c.children,m=c.tagName,v=void 0===m?l:m,g=i({id:f,description:d,defaultMessage:p},h);return Array.isArray(g)||(g=[g]),"function"==typeof b?b.apply(void 0,u(g)):v?r.createElement.apply(r,[v,null].concat(u(g))):g}))}}])&&c(n.prototype,i),s&&c(n,s),t}(r.Component);v.displayName="FormattedMessage",v.defaultProps={values:{}},t.a=v},,,,function(e,t,n){var r=n(38).Symbol;e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,,,,,,function(e,t,n){var r=n(159),o=n(162);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t,n){var r=n(397);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(130),o=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-o?"-0":t}},function(e,t,n){var r=n(33),o=n(475),i=n(258),a="Expected a function",s=Math.max,l=Math.min;e.exports=function(e,t,n){var u,c,f,d,p,h,b=0,m=!1,y=!1,v=!0;if("function"!=typeof e)throw new TypeError(a);function g(t){var n=u,r=c;return u=c=void 0,b=t,d=e.apply(r,n)}function w(e){var n=e-h;return void 0===h||n>=t||n<0||y&&e-b>=f}function E(){var e=o();if(w(e))return S(e);p=setTimeout(E,function(e){var n=t-(e-h);return y?l(n,f-(e-b)):n}(e))}function S(e){return p=void 0,v&&u?g(e):(u=c=void 0,d)}function O(){var e=o(),n=w(e);if(u=arguments,c=this,h=e,n){if(void 0===p)return function(e){return b=e,p=setTimeout(E,t),m?g(e):d}(h);if(y)return clearTimeout(p),p=setTimeout(E,t),g(h)}return void 0===p&&(p=setTimeout(E,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,f=(y="maxWait"in n)?s(i(n.maxWait)||0,t):f,v="trailing"in n?!!n.trailing:v),O.cancel=function(){void 0!==p&&clearTimeout(p),b=0,u=h=c=p=void 0},O.flush=function(){return void 0===p?d:S(o())},O}},function(e,t,n){"use strict";var r=n(65);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var i=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;try{this.localStorage=window.localStorage,this.isLocalStorageAvailable=this.canUseLocalStorage()}catch(e){this.isLocalStorageAvailable=!1}}var t,n,i;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(e){}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(e){return null}}},{key:"removeItem",value:function(e){if(this.isLocalStorageAvailable)try{this.localStorage.removeItem(this.buildKey(e))}catch(e){}else this.memoryStore.unset(e)}}])&&o(t.prototype,n),i&&o(t,i),e}();t.a=i},,function(e,t,n){var r=n(31),o=n(208),i=n(394),a=n(94);e.exports=function(e,t){return r(e)?e:o(e,t)?[e]:i(a(e))}},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return h}));var r=n(0),o=n(256),i=n(11),a=n(133);function s(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){return Object.keys(e).reduce((function(n,r){return n[r]=l({timeZone:t},e[r]),n}),{})}function c(e,t){return Object.keys(l(l({},e),t)).reduce((function(n,r){return n[r]=l(l({},e[r]||{}),t[r]||{}),n}),{})}function f(e,t){if(!t)return e;var n=a.a.formats;return l(l(l({},n),e),{date:c(u(n.date,t),u(e.date||{},t)),time:c(u(n.time,t),u(e.time||{},t))})}var d=function(e){return r.createElement.apply(r,[r.Fragment,null].concat(s(e)))};function p(e,t){var n=e.locale,r=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=e.onError,c=e.timeZone,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},h=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},b=p.id,m=p.defaultMessage;Object(o.a)(!!b,"[React Intl] An `id` must be provided to format a message.");var y=a&&a[String(b)];r=f(r,c),l=f(l,c);var v=[];if(y)try{v=t.getMessageFormat(y,n,r,{formatters:t}).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting message: "'.concat(b,'" for locale: "').concat(n,'"')+(m?", using default message as fallback.":""),e))}else(!m||n&&n.toLowerCase()!==s.toLowerCase())&&u(Object(i.b)('Missing message: "'.concat(b,'" for locale: "').concat(n,'"')+(m?", using default message as fallback.":"")));if(!v.length&&m)try{v=t.getMessageFormat(m,s,l).formatHTMLMessage(h)}catch(e){u(Object(i.b)('Error formatting the default message for: "'.concat(b,'"'),e))}return v.length?1===v.length&&"string"==typeof v[0]?v[0]||m||String(b):d(v):(u(Object(i.b)('Cannot format message: "'.concat(b,'", ')+"using message ".concat(y||m?"source":"id"," as fallback."))),"string"==typeof y?y||m||String(b):m||String(b))}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{id:""},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return p(e,t,n,Object.keys(r).reduce((function(e,t){var n=r[t];return e[t]="string"==typeof n?Object(i.e)(n):n,e}),{}))}},function(e,t,n){var r=n(449),o=n(455)((function(e,t,n){r(e,t,n)}));e.exports=o},,function(e,t,n){var r=n(304);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(214),o=n(374),i=n(93);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t._=function(e){return e},t.defineMessages=function(e){return e}},function(e,t){(function(t){e.exports=t}).call(this,{})},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},,,function(e,t,n){"use strict";var r=n(47);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r="data-resin-target"},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return l})),n.d(t,"g",(function(){return u})),n.d(t,"h",(function(){return c}));var r="file",o="web_link",i="add",a="remove",s="replace",l="test",u="enum",c="multiSelect"},,,,function(e,t,n){"use strict";(function(e){var r=n(0),o=n(45),i=n.n(o),a=n(12),s=n.n(a),l=n(3),u=n.n(l),c=n(1);n(476);function f(e){return(f="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}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 y=function(t){function n(){var e,t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return t=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?h(e):t}(this,(e=p(n)).call.apply(e,[this].concat(o))),m(h(t),"menuID",s()("menu")),m(h(t),"menuButtonID",s()("menubutton")),m(h(t),"state",{initialFocusIndex:null,isOpen:!1}),m(h(t),"openMenuAndSetFocusIndex",(function(e){t.setState({initialFocusIndex:e,isOpen:!0})})),m(h(t),"closeMenu",(function(){t.setState({isOpen:!1})})),m(h(t),"focusButton",(function(){var e=document.getElementById(t.menuButtonID);e&&e.focus()})),m(h(t),"handleButtonClick",(function(e){var n=t.state.isOpen;e.stopPropagation(),e.preventDefault(),n?t.closeMenu():t.openMenuAndSetFocusIndex(null)})),m(h(t),"handleButtonKeyDown",(function(e){var n=t.state.isOpen;switch(e.key){case c.Ud.space:case c.Ud.enter:case c.Ud.arrowDown:e.stopPropagation(),e.preventDefault(),t.openMenuAndSetFocusIndex(0);break;case c.Ud.arrowUp:e.stopPropagation(),e.preventDefault(),t.openMenuAndSetFocusIndex(-1);break;case c.Ud.escape:n&&e.stopPropagation(),e.preventDefault(),t.closeMenu()}})),m(h(t),"handleMenuClose",(function(e,n){var r=t.props.onMenuClose,o=void 0===r?u.a:r;t.closeMenu(),t.focusButton(),o(n)})),m(h(t),"handleDocumentClick",(function(e){var n=t.props.bodyElement?t.props.bodyElement.getRootNode():document,r=n.getElementById(t.menuID),o=n.getElementById(t.menuButtonID);if(r&&o&&e.target instanceof Node&&!r.contains(e.target)&&!o.contains(e.target)){var i=t.props.onMenuClose,a=void 0===i?u.a:i;t.closeMenu(),a(e)}})),t}var o,a,l;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&&b(e,t)}(n,t),o=n,(a=[{key:"componentDidUpdate",value:function(e,t){var n=this.props.useBubble;if(!t.isOpen&&this.state.isOpen){document.addEventListener("click",this.handleDocumentClick,!n),document.addEventListener("contextmenu",this.handleDocumentClick,!n);var r=this.props.onMenuOpen;r&&r()}else t.isOpen&&!this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!n),document.removeEventListener("click",this.handleDocumentClick,!n))}},{key:"componentWillUnmount",value:function(){var e=this.props.useBubble;this.state.isOpen&&(document.removeEventListener("contextmenu",this.handleDocumentClick,!e),document.removeEventListener("click",this.handleDocumentClick,!e))}},{key:"render",value:function(){var t=this.props,n=t.bodyElement,o=t.children,a=t.isRightAligned,s=t.constrainToScrollParent,l=t.constrainToWindow,u=t.className,c=this.state,f=c.isOpen,d=c.initialFocusIndex,p=r.Children.toArray(o);if(2!==p.length)throw new Error("DropdownMenu must have exactly two children: A button component and a <Menu>");var h=p[0],b=p[1],m={id:this.menuButtonID,key:this.menuButtonID,onClick:this.handleButtonClick,onKeyDown:this.handleButtonKeyDown,"aria-haspopup":"true","aria-expanded":f?"true":"false"};f&&(m["aria-controls"]=this.menuID);var y={id:this.menuID,key:this.menuID,initialFocusIndex:d,onClose:this.handleMenuClose,"aria-labelledby":this.menuButtonID},v="top left",g="bottom left";a&&(v="top right",g="bottom right");var w=[];s&&w.push({to:"scrollParent",attachment:"together"}),l&&w.push({to:"window",attachment:"together"});var E=e.Box.appElement.current.getRootNode(),S=n instanceof HTMLElement||n instanceof ShadowRoot?n:E;return r.createElement(i.a,{attachment:v,bodyElement:S,className:u,classPrefix:"dropdown-menu",constraints:w,enabled:f,targetAttachment:g},r.cloneElement(h,m),f?r.cloneElement(b,y):null)}}])&&d(o.prototype,a),l&&d(o,l),n}(r.Component);m(y,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!1,isRightAligned:!1}),t.a=y}).call(this,n(36))},function(e,t,n){"use strict";var r=n(0),o=n(21),i=n.n(o),a=n(5),s=n.n(a);n(477);function l(e){return(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})(e)}function u(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function d(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b=".menu-item:not([aria-disabled])",m="ul:not(.submenu) > ".concat(b,", ul:not(.submenu) > li > ").concat(b,", ul:not(.submenu) > span > ").concat(b),y="ul.submenu > ".concat(b,", ul.submenu > li > ").concat(b,", ul.submenu > span > ").concat(b);function v(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"!==l(t)&&"function"!=typeof t?d(e):t}(this,f(t).call(this,e)),h(d(n),"setInitialFocusIndex",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:n.props,t=e.initialFocusIndex,r=e.isHidden;r||void 0===t||("number"==typeof t?setTimeout((function(){n.setFocus(t)}),0):null===t&&setTimeout((function(){n.menuEl&&n.menuEl.focus()}),0))})),h(d(n),"setMenuItemEls",(function(){var e=n.props,t=e.isSubmenu,r=e.menuItemSelector||(t?y:m);n.menuItemEls=n.menuEl?[].slice.call(n.menuEl.querySelectorAll(r)):[]})),h(d(n),"getMenuItemElFromEventTarget",(function(e){for(var t=null,r=-1,o=0;o<n.menuItemEls.length;o+=1)if(n.menuItemEls[o].contains(e)){t=n.menuItemEls[o],r=o;break}return{menuItemEl:t,menuIndex:r}})),h(d(n),"setFocus",(function(e){if(n.menuItemEls.length){var t=n.menuItemEls.length;n.focusIndex=e>=t?0:e<0?t-1:e,n.menuItemEls[n.focusIndex].focus()}})),h(d(n),"focusFirstItem",(function(){n.setFocus(0)})),h(d(n),"focusLastItem",(function(){n.setFocus(-1)})),h(d(n),"focusNextItem",(function(){n.setFocus(n.focusIndex+1)})),h(d(n),"focusPreviousItem",(function(){n.setFocus(n.focusIndex-1)})),h(d(n),"fireOnCloseHandler",(function(e,t){var r=n.props.onClose;r&&r(e,t)})),h(d(n),"handleClick",(function(e){(e.target instanceof Node?n.getMenuItemElFromEventTarget(e.target):{}).menuItemEl&&n.fireOnCloseHandler(!1,e)})),h(d(n),"handleKeyDown",(function(e){var t=n.props,r=t.isSubmenu,o=t.initialFocusIndex;switch(e.key){case"ArrowDown":v(e),null!==o||n.keyboardPressed?n.focusNextItem():n.focusFirstItem();break;case"ArrowUp":v(e),n.focusPreviousItem();break;case"ArrowLeft":if(!r)return;v(e),n.fireOnCloseHandler(!0,e);break;case"Home":case"PageUp":v(e),n.focusFirstItem();break;case"End":case"PageDown":v(e),n.focusLastItem();break;case"Escape":v(e),n.fireOnCloseHandler(!0,e);break;case"Tab":n.fireOnCloseHandler(!0,e);break;case" ":case"Enter":v(e),e.target instanceof HTMLElement&&e.target.click()}n.keyboardPressed=!0})),n.focusIndex=0,n.menuEl=null,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&&p(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.setMenuItemEls(),this.setInitialFocusIndex()}},{key:"componentDidUpdate",value:function(e){var t=e.isHidden,n=e.children,o=this.props,i=o.children,a=o.isHidden;if(o.isSubmenu&&t&&!a&&(this.setMenuItemEls(),this.setInitialFocusIndex(this.props)),r.Children.toArray(n).length!==r.Children.toArray(i).length){var s=this.menuItemEls[this.focusIndex];this.setMenuItemEls();var l=this.getMenuItemElFromEventTarget(s).menuIndex;this.setFocus(l)}}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=t.isHidden,l=t.setRef,c=t.shouldOutlineFocus,f=u(t,["children","className","isHidden","setRef","shouldOutlineFocus"]),d=i()(f,["onClose","initialFocusIndex","isSubmenu","menuItemSelector"]);return d.className=s()("aria-menu",o,{"is-hidden":a,"should-outline-focus":c}),d.ref=function(t){e.menuEl=t,l&&l(t)},d.role="menu",d.tabIndex=-1,d.onClick=this.handleClick,d.onKeyDown=this.handleKeyDown,r.createElement("ul",d,n)}}])&&c(n.prototype,o),a&&c(n,a),t}(r.Component);h(g,"defaultProps",{className:"",isSubmenu:!1,isHidden:!1}),t.a=g},function(e,t,n){"use strict";var r=n(68);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r=n(118);n.d(t,"b",(function(){return r.a}));var o=n(136);n.d(t,"a",(function(){return o.a}))},,function(e,t,n){var r=n(340),o=n(341),i=n(342),a=n(343),s=n(344);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(109);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(64)(Object,"create");e.exports=r},function(e,t,n){var r=n(364);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t,n){var r=n(371),o=n(40),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},function(e,t){function n(e){return(n="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)}var r=9007199254740991,o=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=n(e);return!!(t=null==t?r:t)&&("number"==i||"symbol"!=i&&o.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(214),o=n(377),i=n(93);e.exports=function(e){return i(e)?r(e,!0):o(e)}},function(e,t,n){function r(e){return(r="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)}var o=n(55),i=n(40),a="[object Symbol]";e.exports=function(e){return"symbol"==r(e)||i(e)&&o(e)==a}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(12),s=n.n(a),l=n(289),u=n(120),c=n(53),f=n(20);n(657);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function p(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var h=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.error,h=e.errorPosition,b=e.hideLabel,m=e.hideOptionalLabel,y=e.inputRef,v=e.isLoading,g=e.isRequired,w=e.isValid,E=e.label,S=e.labelTooltip,O=p(e,["className","description","error","errorPosition","hideLabel","hideOptionalLabel","inputRef","isLoading","isRequired","isValid","label","labelTooltip"]),k=!!a,C=i()(n,"text-input-container",{"show-error":k}),x=r.useRef(s()("description")).current,_={"aria-invalid":k,"aria-required":g,"aria-describedby":o?x:void 0};return r.createElement("div",{className:C},r.createElement(u.a,{hideLabel:b,showOptionalText:!m&&!g,text:E,tooltip:S},!!o&&r.createElement("div",{id:x,className:"text-input-description"},o),r.createElement(f.c,{isShown:k,position:h||"middle-right",text:a||"",theme:"error"},r.createElement("input",d({ref:y,required:g},_,O))),v&&!w&&r.createElement(c.b,{className:"text-input-loading"}),w&&!v&&r.createElement(l.a,{className:"text-input-verified"})))};h.displayName="TextInput",t.a=h},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(182);t.a=function(e){var t=e.language,n=e.messages,a=e.children;return!!t&&!!n?o.a.createElement(i.a,{locale:t,messages:n},a):r.Children.only(a)}},function(e,t,n){"use strict";function r(e){return(r="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)}var o;function i(e){return e.type===o.literal}function a(e){return e.type===o.argument}function s(e){return e.type===o.number}function l(e){return e.type===o.date}function u(e){return e.type===o.time}function c(e){return e.type===o.select}function f(e){return e.type===o.plural}function d(e){return e.type===o.pound}function p(e){return!(!e||"object"!==r(e)||0!==e.type)}function h(e){return!(!e||"object"!==r(e)||1!==e.type)}!function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound"}(o||(o={}));var b,m=(b=function(e,t){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)},function(e,t){function n(){this.constructor=e}b(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),y=function(){return(y=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},v=function(e){function t(n,r,o,i){var a=e.call(this)||this;return a.message=n,a.expected=r,a.found=o,a.location=i,a.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(a,t),a}return m(t,e),t.buildMessage=function(e,t){function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function r(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function o(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,(function(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function i(e){switch(e.type){case"literal":return'"'+r(e.text)+'"';case"class":var t=e.parts.map((function(e){return Array.isArray(e)?o(e[0])+"-"+o(e[1]):o(e)}));return"["+(e.inverted?"^":"")+t+"]";case"any":return"any character";case"end":return"end of input";case"other":return e.description}}return"Expected "+function(e){var t,n,r=e.map(i);if(r.sort(),r.length>0){for(t=1,n=1;t<r.length;t++)r[t-1]!==r[t]&&(r[n]=r[t],n++);r.length=n}switch(r.length){case 1:return r[0];case 2:return r[0]+" or "+r[1];default:return r.slice(0,-1).join(", ")+", or "+r[r.length-1]}}(e)+" but "+((a=t)?'"'+r(a)+'"':"end of input")+" found.";var a},t}(Error);var g=function(e,t){t=void 0!==t?t:{};var n,r={},i={start:ct},a=ct,s=function(e){return e.join("")},l=function(e){return y({type:o.literal,value:e},jt())},u="#",c=rt("#",!1),f=function(){return y({type:o.pound},jt())},d=it("argumentElement"),p="{",h=rt("{",!1),b="}",m=rt("}",!1),g=function(e){return y({type:o.argument,value:e},jt())},w=it("numberSkeletonId"),E=/^['\/{}]/,S=ot(["'","/","{","}"],!1,!1),O={type:"any"},k=it("numberSkeletonTokenOption"),C="/",x=rt("/",!1),_=function(e){return e},P=it("numberSkeletonToken"),A=function(e,t){return{stem:e,options:t}},T=function(e){return y({type:0,tokens:e},jt())},I="::",D=rt("::",!1),j=function(e){return e},L=function(){return It.push("numberArgStyle"),!0},R=function(e){return It.pop(),e.replace(/\s*$/,"")},N=",",M=rt(",",!1),F="number",U=rt("number",!1),B=function(e,t,n){return y({type:"number"===t?o.number:"date"===t?o.date:o.time,style:n&&n[2],value:e},jt())},H="'",z=rt("'",!1),V=/^[^']/,W=ot(["'"],!0,!1),G=/^[^a-zA-Z'{}]/,q=ot([["a","z"],["A","Z"],"'","{","}"],!0,!1),X=/^[a-zA-Z]/,K=ot([["a","z"],["A","Z"]],!1,!1),Y=function(e){return y({type:1,pattern:e},jt())},Q=function(){return It.push("dateOrTimeArgStyle"),!0},J="date",$=rt("date",!1),Z="time",ee=rt("time",!1),te="plural",ne=rt("plural",!1),re="selectordinal",oe=rt("selectordinal",!1),ie="offset:",ae=rt("offset:",!1),se=function(e,t,n,r){return y({type:o.plural,pluralType:"plural"===t?"cardinal":"ordinal",value:e,offset:n?n[2]:0,options:r.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&nt('Duplicate option "'+n+'" in plural element: "'+et()+'"',tt()),e[n]={value:r,location:o},e}),{})},jt())},le="select",ue=rt("select",!1),ce=function(e,t){return y({type:o.select,value:e,options:t.reduce((function(e,t){var n=t.id,r=t.value,o=t.location;return n in e&&nt('Duplicate option "'+n+'" in select element: "'+et()+'"',tt()),e[n]={value:r,location:o},e}),{})},jt())},fe="=",de=rt("=",!1),pe=function(e){return It.push("select"),!0},he=function(e,t){return It.pop(),y({id:e,value:t},jt())},be=function(e){return It.push("plural"),!0},me=function(e,t){return It.pop(),y({id:e,value:t},jt())},ye=it("whitespace"),ve=/^[\t-\r \x85\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,ge=ot([["\t","\r"]," ","
"," "," ",[" "," "],"\u2028","\u2029"," "," "," "],!1,!1),we=it("syntax pattern"),Ee=/^[!-\/:-@[-\^`{-~\xA1-\xA7\xA9\xAB\xAC\xAE\xB0\xB1\xB6\xBB\xBF\xD7\xF7\u2010-\u2027\u2030-\u203E\u2041-\u2053\u2055-\u205E\u2190-\u245F\u2500-\u2775\u2794-\u2BFF\u2E00-\u2E7F\u3001-\u3003\u3008-\u3020\u3030\uFD3E\uFD3F\uFE45\uFE46]/,Se=ot([["!","/"],[":","@"],["[","^"],"`",["{","~"],["¡","§"],"©","«","¬","®","°","±","¶","»","¿","×","÷",["‐","‧"],["‰","‾"],["⁁","⁓"],["⁕","⁞"],["←",""],["─","❵"],["➔","⯿"],["⸀",""],["、","〃"],["〈","〠"],"〰","﴾","﴿","﹅","﹆"],!1,!1),Oe=it("optional whitespace"),ke=it("number"),Ce="-",xe=rt("-",!1),_e=function(e,t){return t?e?-t:t:0},Pe=(it("apostrophe"),it("double apostrophes")),Ae="''",Te=rt("''",!1),Ie=function(){return"'"},De=function(e,t){return e+t.replace("''","'")},je=function(e){return!("{"===e||Dt()&&"#"===e||It.length>1&&"}"===e)},Le="\n",Re=rt("\n",!1),Ne=function(e){return"{"===e||"}"===e||Dt()&&"#"===e},Me=it("argNameOrNumber"),Fe=it("argNumber"),Ue="0",Be=rt("0",!1),He=function(){return 0},ze=/^[1-9]/,Ve=ot([["1","9"]],!1,!1),We=/^[0-9]/,Ge=ot([["0","9"]],!1,!1),qe=function(e){return parseInt(e.join(""),10)},Xe=it("argName"),Ke=0,Ye=0,Qe=[{line:1,column:1}],Je=0,$e=[],Ze=0;if(void 0!==t.startRule){if(!(t.startRule in i))throw new Error("Can't start parsing from rule \""+t.startRule+'".');a=i[t.startRule]}function et(){return e.substring(Ye,Ke)}function tt(){return st(Ye,Ke)}function nt(e,t){throw function(e,t){return new v(e,[],"",t)}(e,t=void 0!==t?t:st(Ye,Ke))}function rt(e,t){return{type:"literal",text:e,ignoreCase:t}}function ot(e,t,n){return{type:"class",parts:e,inverted:t,ignoreCase:n}}function it(e){return{type:"other",description:e}}function at(t){var n,r=Qe[t];if(r)return r;for(n=t-1;!Qe[n];)n--;for(r={line:(r=Qe[n]).line,column:r.column};n<t;)10===e.charCodeAt(n)?(r.line++,r.column=1):r.column++,n++;return Qe[t]=r,r}function st(e,t){var n=at(e),r=at(t);return{start:{offset:e,line:n.line,column:n.column},end:{offset:t,line:r.line,column:r.column}}}function lt(e){Ke<Je||(Ke>Je&&(Je=Ke,$e=[]),$e.push(e))}function ut(e,t,n){return new v(v.buildMessage(e,t),e,t,n)}function ct(){return ft()}function ft(){var e,t;for(e=[],t=dt();t!==r;)e.push(t),t=dt();return e}function dt(){var t;return(t=function(){var e,t;e=Ke,(t=pt())!==r&&(Ye=e,t=l(t));return e=t}())===r&&(t=function(){var t,n,o,i;Ze++,t=Ke,123===e.charCodeAt(Ke)?(n=p,Ke++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(125===e.charCodeAt(Ke)?(i=b,Ke++):(i=r,0===Ze&<(m)),i!==r?(Ye=t,n=g(o),t=n):(Ke=t,t=r)):(Ke=t,t=r);Ze--,t===r&&(n=r,0===Ze&<(d));return t}())===r&&(t=function(){var t;(t=function(){var t,n,o,i,a,s,l,u,c;t=Ke,123===e.charCodeAt(Ke)?(n=p,Ke++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(44===e.charCodeAt(Ke)?(i=N,Ke++):(i=r,0===Ze&<(M)),i!==r&&Ot()!==r?(e.substr(Ke,6)===F?(a=F,Ke+=6):(a=r,0===Ze&<(U)),a!==r&&Ot()!==r?(s=Ke,44===e.charCodeAt(Ke)?(l=N,Ke++):(l=r,0===Ze&<(M)),l!==r&&(u=Ot())!==r&&(c=function(){var t,n,o;t=Ke,e.substr(Ke,2)===I?(n=I,Ke+=2):(n=r,0===Ze&<(D));n!==r&&(o=function(){var e,t,n;if(e=Ke,t=[],(n=mt())!==r)for(;n!==r;)t.push(n),n=mt();else t=r;t!==r&&(Ye=e,t=T(t));return e=t}())!==r?(Ye=t,n=j(o),t=n):(Ke=t,t=r);t===r&&(t=Ke,Ye=Ke,(n=(n=L())?void 0:r)!==r&&(o=pt())!==r?(Ye=t,n=R(o),t=n):(Ke=t,t=r));return t}())!==r?s=l=[l,u,c]:(Ke=s,s=r),s===r&&(s=null),s!==r&&(l=Ot())!==r?(125===e.charCodeAt(Ke)?(u=b,Ke++):(u=r,0===Ze&<(m)),u!==r?(Ye=t,n=B(o,a,s),t=n):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r);return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c;t=Ke,123===e.charCodeAt(Ke)?(n=p,Ke++):(n=r,0===Ze&<(h));n!==r&&Ot()!==r&&(o=Pt())!==r&&Ot()!==r?(44===e.charCodeAt(Ke)?(i=N,Ke++):(i=r,0===Ze&<(M)),i!==r&&Ot()!==r?(e.substr(Ke,4)===J?(a=J,Ke+=4):(a=r,0===Ze&<($)),a===r&&(e.substr(Ke,4)===Z?(a=Z,Ke+=4):(a=r,0===Ze&<(ee))),a!==r&&Ot()!==r?(s=Ke,44===e.charCodeAt(Ke)?(l=N,Ke++):(l=r,0===Ze&<(M)),l!==r&&(u=Ot())!==r&&(c=function(){var t,n,o;t=Ke,e.substr(Ke,2)===I?(n=I,Ke+=2):(n=r,0===Ze&<(D));n!==r&&(o=function(){var t,n,o,i;t=Ke,n=Ke,o=[],(i=yt())===r&&(i=vt());if(i!==r)for(;i!==r;)o.push(i),(i=yt())===r&&(i=vt());else o=r;n=o!==r?e.substring(n,Ke):o;n!==r&&(Ye=t,n=Y(n));return t=n}())!==r?(Ye=t,n=j(o),t=n):(Ke=t,t=r);t===r&&(t=Ke,Ye=Ke,(n=(n=Q())?void 0:r)!==r&&(o=pt())!==r?(Ye=t,n=R(o),t=n):(Ke=t,t=r));return t}())!==r?s=l=[l,u,c]:(Ke=s,s=r),s===r&&(s=null),s!==r&&(l=Ot())!==r?(125===e.charCodeAt(Ke)?(u=b,Ke++):(u=r,0===Ze&<(m)),u!==r?(Ye=t,n=B(o,a,s),t=n):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r);return t}());return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c,f,d;t=Ke,123===e.charCodeAt(Ke)?(n=p,Ke++):(n=r,0===Ze&<(h));if(n!==r)if(Ot()!==r)if((o=Pt())!==r)if(Ot()!==r)if(44===e.charCodeAt(Ke)?(i=N,Ke++):(i=r,0===Ze&<(M)),i!==r)if(Ot()!==r)if(e.substr(Ke,6)===te?(a=te,Ke+=6):(a=r,0===Ze&<(ne)),a===r&&(e.substr(Ke,13)===re?(a=re,Ke+=13):(a=r,0===Ze&<(oe))),a!==r)if(Ot()!==r)if(44===e.charCodeAt(Ke)?(s=N,Ke++):(s=r,0===Ze&<(M)),s!==r)if(Ot()!==r)if(l=Ke,e.substr(Ke,7)===ie?(u=ie,Ke+=7):(u=r,0===Ze&<(ae)),u!==r&&(c=Ot())!==r&&(f=kt())!==r?l=u=[u,c,f]:(Ke=l,l=r),l===r&&(l=null),l!==r)if((u=Ot())!==r){if(c=[],(f=wt())!==r)for(;f!==r;)c.push(f),f=wt();else c=r;c!==r&&(f=Ot())!==r?(125===e.charCodeAt(Ke)?(d=b,Ke++):(d=r,0===Ze&<(m)),d!==r?(Ye=t,n=se(o,a,l,c),t=n):(Ke=t,t=r)):(Ke=t,t=r)}else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;return t}())===r&&(t=function(){var t,n,o,i,a,s,l,u,c;t=Ke,123===e.charCodeAt(Ke)?(n=p,Ke++):(n=r,0===Ze&<(h));if(n!==r)if(Ot()!==r)if((o=Pt())!==r)if(Ot()!==r)if(44===e.charCodeAt(Ke)?(i=N,Ke++):(i=r,0===Ze&<(M)),i!==r)if(Ot()!==r)if(e.substr(Ke,6)===le?(a=le,Ke+=6):(a=r,0===Ze&<(ue)),a!==r)if(Ot()!==r)if(44===e.charCodeAt(Ke)?(s=N,Ke++):(s=r,0===Ze&<(M)),s!==r)if(Ot()!==r){if(l=[],(u=gt())!==r)for(;u!==r;)l.push(u),u=gt();else l=r;l!==r&&(u=Ot())!==r?(125===e.charCodeAt(Ke)?(c=b,Ke++):(c=r,0===Ze&<(m)),c!==r?(Ye=t,n=ce(o,l),t=n):(Ke=t,t=r)):(Ke=t,t=r)}else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;else Ke=t,t=r;return t}())===r&&(t=function(){var t,n;t=Ke,35===e.charCodeAt(Ke)?(n=u,Ke++):(n=r,0===Ze&<(c));n!==r&&(Ye=t,n=f());return t=n}()),t}function pt(){var e,t,n;if(e=Ke,t=[],(n=Ct())===r&&(n=xt())===r&&(n=_t()),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(n=xt())===r&&(n=_t());else t=r;return t!==r&&(Ye=e,t=s(t)),e=t}function ht(){var t,n,o,i,a;if(Ze++,t=Ke,n=[],o=Ke,i=Ke,Ze++,(a=Et())===r&&(E.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(S))),Ze--,a===r?i=void 0:(Ke=i,i=r),i!==r?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Ke=o,o=r)):(Ke=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Ke,i=Ke,Ze++,(a=Et())===r&&(E.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(S))),Ze--,a===r?i=void 0:(Ke=i,i=r),i!==r?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Ke=o,o=r)):(Ke=o,o=r);else n=r;return t=n!==r?e.substring(t,Ke):n,Ze--,t===r&&(n=r,0===Ze&<(w)),t}function bt(){var t,n,o;return Ze++,t=Ke,47===e.charCodeAt(Ke)?(n=C,Ke++):(n=r,0===Ze&<(x)),n!==r&&(o=ht())!==r?(Ye=t,t=n=_(o)):(Ke=t,t=r),Ze--,t===r&&(n=r,0===Ze&<(k)),t}function mt(){var e,t,n,o;if(Ze++,e=Ke,Ot()!==r)if((t=ht())!==r){for(n=[],o=bt();o!==r;)n.push(o),o=bt();n!==r?(Ye=e,e=A(t,n)):(Ke=e,e=r)}else Ke=e,e=r;else Ke=e,e=r;return Ze--,e===r&&(r,0===Ze&<(P)),e}function yt(){var t,n,o,i;if(t=Ke,39===e.charCodeAt(Ke)?(n=H,Ke++):(n=r,0===Ze&<(z)),n!==r){if(o=[],(i=Ct())===r&&(V.test(e.charAt(Ke))?(i=e.charAt(Ke),Ke++):(i=r,0===Ze&<(W))),i!==r)for(;i!==r;)o.push(i),(i=Ct())===r&&(V.test(e.charAt(Ke))?(i=e.charAt(Ke),Ke++):(i=r,0===Ze&<(W)));else o=r;o!==r?(39===e.charCodeAt(Ke)?(i=H,Ke++):(i=r,0===Ze&<(z)),i!==r?t=n=[n,o,i]:(Ke=t,t=r)):(Ke=t,t=r)}else Ke=t,t=r;if(t===r)if(t=[],(n=Ct())===r&&(G.test(e.charAt(Ke))?(n=e.charAt(Ke),Ke++):(n=r,0===Ze&<(q))),n!==r)for(;n!==r;)t.push(n),(n=Ct())===r&&(G.test(e.charAt(Ke))?(n=e.charAt(Ke),Ke++):(n=r,0===Ze&<(q)));else t=r;return t}function vt(){var t,n;if(t=[],X.test(e.charAt(Ke))?(n=e.charAt(Ke),Ke++):(n=r,0===Ze&<(K)),n!==r)for(;n!==r;)t.push(n),X.test(e.charAt(Ke))?(n=e.charAt(Ke),Ke++):(n=r,0===Ze&<(K));else t=r;return t}function gt(){var t,n,o,i,a;return t=Ke,Ot()!==r&&(n=Tt())!==r&&Ot()!==r?(123===e.charCodeAt(Ke)?(o=p,Ke++):(o=r,0===Ze&<(h)),o!==r?(Ye=Ke,(pe(n)?void 0:r)!==r&&(i=ft())!==r?(125===e.charCodeAt(Ke)?(a=b,Ke++):(a=r,0===Ze&<(m)),a!==r?(Ye=t,t=he(n,i)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r),t}function wt(){var t,n,o,i,a;return t=Ke,Ot()!==r&&(n=function(){var t,n,o,i;return t=Ke,n=Ke,61===e.charCodeAt(Ke)?(o=fe,Ke++):(o=r,0===Ze&<(de)),o!==r&&(i=kt())!==r?n=o=[o,i]:(Ke=n,n=r),(t=n!==r?e.substring(t,Ke):n)===r&&(t=Tt()),t}())!==r&&Ot()!==r?(123===e.charCodeAt(Ke)?(o=p,Ke++):(o=r,0===Ze&<(h)),o!==r?(Ye=Ke,(be(n)?void 0:r)!==r&&(i=ft())!==r?(125===e.charCodeAt(Ke)?(a=b,Ke++):(a=r,0===Ze&<(m)),a!==r?(Ye=t,t=me(n,i)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r)):(Ke=t,t=r),t}function Et(){var t;return Ze++,ve.test(e.charAt(Ke))?(t=e.charAt(Ke),Ke++):(t=r,0===Ze&<(ge)),Ze--,t===r&&(r,0===Ze&<(ye)),t}function St(){var t;return Ze++,Ee.test(e.charAt(Ke))?(t=e.charAt(Ke),Ke++):(t=r,0===Ze&<(Se)),Ze--,t===r&&(r,0===Ze&<(we)),t}function Ot(){var t,n,o;for(Ze++,t=Ke,n=[],o=Et();o!==r;)n.push(o),o=Et();return t=n!==r?e.substring(t,Ke):n,Ze--,t===r&&(n=r,0===Ze&<(Oe)),t}function kt(){var t,n,o;return Ze++,t=Ke,45===e.charCodeAt(Ke)?(n=Ce,Ke++):(n=r,0===Ze&<(xe)),n===r&&(n=null),n!==r&&(o=At())!==r?(Ye=t,t=n=_e(n,o)):(Ke=t,t=r),Ze--,t===r&&(n=r,0===Ze&<(ke)),t}function Ct(){var t,n;return Ze++,t=Ke,e.substr(Ke,2)===Ae?(n=Ae,Ke+=2):(n=r,0===Ze&<(Te)),n!==r&&(Ye=t,n=Ie()),Ze--,(t=n)===r&&(n=r,0===Ze&<(Pe)),t}function xt(){var t,n,o,i,a,s;if(t=Ke,39===e.charCodeAt(Ke)?(n=H,Ke++):(n=r,0===Ze&<(z)),n!==r)if((o=function(){var t,n,o,i;t=Ke,n=Ke,e.length>Ke?(o=e.charAt(Ke),Ke++):(o=r,0===Ze&<(O));o!==r?(Ye=Ke,(i=(i=Ne(o))?void 0:r)!==r?n=o=[o,i]:(Ke=n,n=r)):(Ke=n,n=r);t=n!==r?e.substring(t,Ke):n;return t}())!==r){for(i=Ke,a=[],e.substr(Ke,2)===Ae?(s=Ae,Ke+=2):(s=r,0===Ze&<(Te)),s===r&&(V.test(e.charAt(Ke))?(s=e.charAt(Ke),Ke++):(s=r,0===Ze&<(W)));s!==r;)a.push(s),e.substr(Ke,2)===Ae?(s=Ae,Ke+=2):(s=r,0===Ze&<(Te)),s===r&&(V.test(e.charAt(Ke))?(s=e.charAt(Ke),Ke++):(s=r,0===Ze&<(W)));(i=a!==r?e.substring(i,Ke):a)!==r?(39===e.charCodeAt(Ke)?(a=H,Ke++):(a=r,0===Ze&<(z)),a===r&&(a=null),a!==r?(Ye=t,t=n=De(o,i)):(Ke=t,t=r)):(Ke=t,t=r)}else Ke=t,t=r;else Ke=t,t=r;return t}function _t(){var t,n,o,i;return t=Ke,n=Ke,e.length>Ke?(o=e.charAt(Ke),Ke++):(o=r,0===Ze&<(O)),o!==r?(Ye=Ke,(i=(i=je(o))?void 0:r)!==r?n=o=[o,i]:(Ke=n,n=r)):(Ke=n,n=r),n===r&&(10===e.charCodeAt(Ke)?(n=Le,Ke++):(n=r,0===Ze&<(Re))),t=n!==r?e.substring(t,Ke):n}function Pt(){var t,n;return Ze++,t=Ke,(n=At())===r&&(n=Tt()),t=n!==r?e.substring(t,Ke):n,Ze--,t===r&&(n=r,0===Ze&<(Me)),t}function At(){var t,n,o,i,a;if(Ze++,t=Ke,48===e.charCodeAt(Ke)?(n=Ue,Ke++):(n=r,0===Ze&<(Be)),n!==r&&(Ye=t,n=He()),(t=n)===r){if(t=Ke,n=Ke,ze.test(e.charAt(Ke))?(o=e.charAt(Ke),Ke++):(o=r,0===Ze&<(Ve)),o!==r){for(i=[],We.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(Ge));a!==r;)i.push(a),We.test(e.charAt(Ke))?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(Ge));i!==r?n=o=[o,i]:(Ke=n,n=r)}else Ke=n,n=r;n!==r&&(Ye=t,n=qe(n)),t=n}return Ze--,t===r&&(n=r,0===Ze&<(Fe)),t}function Tt(){var t,n,o,i,a;if(Ze++,t=Ke,n=[],o=Ke,i=Ke,Ze++,(a=Et())===r&&(a=St()),Ze--,a===r?i=void 0:(Ke=i,i=r),i!==r?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Ke=o,o=r)):(Ke=o,o=r),o!==r)for(;o!==r;)n.push(o),o=Ke,i=Ke,Ze++,(a=Et())===r&&(a=St()),Ze--,a===r?i=void 0:(Ke=i,i=r),i!==r?(e.length>Ke?(a=e.charAt(Ke),Ke++):(a=r,0===Ze&<(O)),a!==r?o=i=[i,a]:(Ke=o,o=r)):(Ke=o,o=r);else n=r;return t=n!==r?e.substring(t,Ke):n,Ze--,t===r&&(n=r,0===Ze&<(Xe)),t}var It=["root"];function Dt(){return"plural"===It[It.length-1]}function jt(){return t&&t.captureLocation?{location:tt()}:{}}if((n=a())!==r&&Ke===e.length)return n;throw n!==r&&Ke<e.length&<({type:"end"}),ut($e,Je<e.length?e.charAt(Je):null,Je<e.length?st(Je,Je+1):st(Je,Je))},w=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},E=/(^|[^\\])#/g;function S(e,t){var n=g(e,t);return t&&!1===t.normalizeHashtagInPlural||function e(t){t.forEach((function(t){(f(t)||c(t))&&Object.keys(t.options).forEach((function(n){for(var r,o=t.options[n],a=-1,s=void 0,l=0;l<o.value.length;l++){var u=o.value[l];if(i(u)&&E.test(u.value)){a=l,s=u;break}}if(s){var c=s.value.replace(E,"$1{"+t.value+", number}"),f=g(c);(r=o.value).splice.apply(r,w([a,1],f))}e(o.value)}))}))}(n),n}var O=n(42),k=function(){return(k=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},C=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function x(e){var t={};return e.replace(C,(function(e){var n=e.length;switch(e[0]){case"G":t.era=4===n?"long":5===n?"narrow":"short";break;case"y":t.year=2===n?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=4===n?"short":5===n?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) pattenrs are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) pattenrs are not supported, use `z` instead")}return""})),t}var _=/^\.(?:(0+)(\+|#+)?)?$/g,P=/^(@+)?(\+|#+)?$/g;function A(e){var t={};return e.replace(P,(function(e,n,r){return"string"!=typeof r?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):"+"===r?t.minimumSignificantDigits=n.length:"#"===n[0]?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+("string"==typeof r?r.length:0)),""})),t}function T(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":return{currencySign:"accounting"};case"sign-always":return{signDisplay:"always"};case"sign-accounting-always":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":return{signDisplay:"never"}}}function I(e){var t=T(e);return t||{}}function D(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n];switch(o.stem){case"percent":t.style="percent";continue;case"currency":t.style="currency",t.currency=o.options[0];continue;case"group-off":t.useGrouping=!1;continue;case"precision-integer":t.maximumFractionDigits=0;continue;case"measure-unit":t.style="unit",t.unit=o.options[0].replace(/^(.*?)-/,"");continue;case"compact-short":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=k(k(k({},t),{notation:"scientific"}),o.options.reduce((function(e,t){return k(k({},e),I(t))}),{}));continue;case"engineering":t=k(k(k({},t),{notation:"engineering"}),o.options.reduce((function(e,t){return k(k({},e),I(t))}),{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue}if(_.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(_,(function(e,n,r){return"."===e?t.maximumFractionDigits=0:"+"===r?t.minimumFractionDigits=r.length:"#"===n[0]?t.maximumFractionDigits=n.length:(t.minimumFractionDigits=n.length,t.maximumFractionDigits=n.length+("string"==typeof r?r.length:0)),""})),o.options.length&&(t=k(k({},t),A(o.options[0])))}else if(P.test(o.stem))t=k(k({},t),A(o.stem));else{var i=T(o.stem);i&&(t=k(k({},t),i))}}return t}var j,L=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),R=function(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),o=0;for(t=0;t<n;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)r[o]=i[a];return r},N=function(e){function t(t,n){var r=e.call(this,t)||this;return r.variableId=n,r}return L(t,e),t}(Error);function M(e,t,n,r,o,b,m){if(1===e.length&&i(e[0]))return[{type:0,value:e[0].value}];for(var y,v=[],g=0,w=e;g<w.length;g++){var E=w[g];if(i(E))v.push({type:0,value:E.value});else if(d(E))"number"==typeof b&&v.push({type:0,value:n.getNumberFormat(t).format(b)});else{var S=E.value;if(!(o&&S in o))throw new N('The intl string context variable "'+S+'" was not provided to the string "'+m+'"');var O=o[S];if(a(E))O&&"string"!=typeof O&&"number"!=typeof O||(O="string"==typeof O||"number"==typeof O?String(O):""),v.push({type:1,value:O});else if(l(E)){var k="string"==typeof E.style?r.date[E.style]:void 0;v.push({type:0,value:n.getDateTimeFormat(t,k).format(O)})}else if(u(E)){k="string"==typeof E.style?r.time[E.style]:h(E.style)?x(E.style.pattern):void 0;v.push({type:0,value:n.getDateTimeFormat(t,k).format(O)})}else if(s(E)){k="string"==typeof E.style?r.number[E.style]:p(E.style)?D(E.style.tokens):void 0;v.push({type:0,value:n.getNumberFormat(t,k).format(O)})}else if(c(E)){if(!(C=E.options[O]||E.options.other))throw new RangeError('Invalid values for "'+E.value+'": "'+O+'". Options are "'+Object.keys(E.options).join('", "')+'"');v.push.apply(v,M(C.value,t,n,r,o))}else if(f(E)){var C;if(!(C=E.options["="+O])){if(!Intl.PluralRules)throw new N('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n');var _=n.getPluralRules(t,{type:E.pluralType}).select(O-(E.offset||0));C=E.options[_]||E.options.other}if(!C)throw new RangeError('Invalid values for "'+E.value+'": "'+O+'". Options are "'+Object.keys(E.options).join('", "')+'"');v.push.apply(v,M(C.value,t,n,r,o,O-(E.offset||0)))}else;}}return(y=v).length<2?y:y.reduce((function(e,t){var n=e[e.length-1];return n&&0===n.type&&0===t.type?n.value+=t.value:e.push(t),e}),[])}var F="@@",U=/@@(\d+_\d+)@@/g,B=0;function H(e,t){return e.split(U).filter(Boolean).map((function(e){return null!=t[e]?t[e]:e})).reduce((function(e,t){return e.length&&"string"==typeof t&&"string"==typeof e[e.length-1]?e[e.length-1]+=t:e.push(t),e}),[])}var z=/(<([0-9a-zA-Z-_]*?)>(.*?)<\/([0-9a-zA-Z-_]*?)>)|(<[0-9a-zA-Z-_]*?\/>)/,V=Date.now()+"@@",W=["area","base","br","col","embed","hr","img","input","link","meta","param","source","track","wbr"];function G(e,t,n,r,o,i){var a=M(e,t,n,r,o,void 0,i),s={},l=a.reduce((function(e,t){if(0===t.type)return e+t.value;var n=Date.now()+"_"+ ++B;return s[n]=t.value,e+""+F+n+F}),"");if(!z.test(l))return H(l,s);if(!o)throw new N("Message has placeholders but no values was given");if("undefined"==typeof DOMParser)throw new N("Cannot format XML message without DOMParser");j||(j=new DOMParser);var u=j.parseFromString('<formatted-message id="'+V+'">'+l+"</formatted-message>","text/html").getElementById(V);if(!u)throw new N("Malformed HTML message "+l);var c=Object.keys(o).filter((function(e){return!!u.getElementsByTagName(e).length}));if(!c.length)return H(l,s);var f=c.filter((function(e){return e!==e.toLowerCase()}));if(f.length)throw new N("HTML tag must be lowercased but the following tags are not: "+f.join(", "));return Array.prototype.slice.call(u.childNodes).reduce((function(e,t){return e.concat(function e(t,n,r){var o=t.tagName,i=t.outerHTML,a=t.textContent,s=t.childNodes;if(!o)return H(a||"",n);o=o.toLowerCase();var l=~W.indexOf(o),u=r[o];if(u&&l)throw new N(o+" is a self-closing tag and can not be used, please use another tag name.");if(!s.length)return[i];var c=Array.prototype.slice.call(s).reduce((function(t,o){return t.concat(e(o,n,r))}),[]);return u?"function"==typeof u?[u.apply(void 0,c)]:[u]:R(["<"+o+">"],c,["</"+o+">"])}(t,s,o))}),[])}var q=function(){return(q=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function X(e,t){return t?Object.keys(e).reduce((function(n,r){var o,i;return n[r]=(o=e[r],(i=t[r])?q(q(q({},o||{}),i||{}),Object.keys(o).reduce((function(e,t){return e[t]=q(q({},o[t]),i[t]||{}),e}),{})):o),n}),q({},e)):e}var K=function(){function e(t,n,r,o){var i,a=this;if(void 0===n&&(n=e.defaultLocale),this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(e){return function(e,t,n,r,o,i){var a=M(e,t,n,r,o,void 0,i);return 1===a.length?a[0].value:a.reduce((function(e,t){return e+t.value}),"")}(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.formatToParts=function(e){return M(a.ast,a.locales,a.formatters,a.formats,e,void 0,a.message)},this.formatHTMLMessage=function(e){return G(a.ast,a.locales,a.formatters,a.formats,e,a.message)},this.resolvedOptions=function(){return{locale:Intl.NumberFormat.supportedLocalesOf(a.locales)[0]}},this.getAst=function(){return a.ast},"string"==typeof t){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");this.ast=e.__parse(t,{normalizeHashtagInPlural:!1})}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=X(e.formats,r),this.locales=n,this.formatters=o&&o.formatters||(void 0===(i=this.formatterCache)&&(i={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Object(O.a)(Intl.NumberFormat,i.number),getDateTimeFormat:Object(O.a)(Intl.DateTimeFormat,i.dateTime),getPluralRules:Object(O.a)(Intl.PluralRules,i.pluralRules)})}return e.defaultLocale=(new Intl.NumberFormat).resolvedOptions().locale,e.__parse=S,e.formats={number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();t.a=K},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(21),s=n.n(a),l=n(12),u=n.n(l);n(659);function c(e){return(c="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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){function t(e){var n,r,o,i;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"!==c(t)&&"function"!=typeof t?b(e):t}(this,h(t).call(this,e)),r=b(n),i=function(){var e=n.props.setActiveItemID;e&&e(n.id)},(o="setActiveItemID")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,n.id=u()("datalistitem"),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&&m(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.props.isActive&&this.setActiveItemID()}},{key:"componentDidUpdate",value:function(e){this.props.isActive&&!e.isActive&&this.setActiveItemID()}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.isActive,a=d(e,["children","className","isActive"]),l=i()("datalist-item",{"is-active":o},n),u=s()(a,["closeDropdown","setActiveItemID"]);return r.createElement("li",f({},u,{className:l,id:this.id,role:"option"}),t)}}])&&p(n.prototype,o),a&&p(n,a),t}(r.Component);n.d(t,"a",(function(){return y}))},,function(e,t,n){"use strict";var r=n(0),o=n(149);n(491);t.a=function(e){var t=e.children;return r.createElement("span",{className:"menu-toggle"},t,r.createElement(o.a,{className:"toggle-arrow",width:7}))}},,,function(e,t,n){"use strict";var r,o,i=n(0),a=n(12),s=n.n(a),l=n(45),u=n.n(l);n(416);function c(e){return(c="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<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function d(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.BOTTOM_CENTER="bottom-center",e.BOTTOM_LEFT="bottom-left",e.BOTTOM_RIGHT="bottom-right",e.MIDDLE_CENTER="middle-center",e.MIDDLE_LEFT="middle-left",e.MIDDLE_RIGHT="middle-right",e.TOP_CENTER="top-center",e.TOP_LEFT="top-left",e.TOP_RIGHT="top-right"}(o||(o={}));var v=(y(r={},o.BOTTOM_CENTER,{attachment:"top center",targetAttachment:"bottom center"}),y(r,o.BOTTOM_LEFT,{attachment:"top left",targetAttachment:"bottom left"}),y(r,o.BOTTOM_RIGHT,{attachment:"top right",targetAttachment:"bottom right"}),y(r,o.MIDDLE_CENTER,{attachment:"middle center",targetAttachment:"middle center"}),y(r,o.MIDDLE_LEFT,{attachment:"middle right",targetAttachment:"middle left"}),y(r,o.MIDDLE_RIGHT,{attachment:"middle left",targetAttachment:"middle right"}),y(r,o.TOP_CENTER,{attachment:"bottom center",targetAttachment:"top center"}),y(r,o.TOP_LEFT,{attachment:"bottom left",targetAttachment:"top left"}),y(r,o.TOP_RIGHT,{attachment:"bottom right",targetAttachment:"top right"}),r),g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?b(e):t}(this,(e=h(t)).call.apply(e,[this].concat(o))),y(b(n),"tetherRef",i.createRef()),y(b(n),"radarAnimationID",s()("radarAnimation")),y(b(n),"position",(function(){var e=n.props.isShown;n.tetherRef.current&&e&&n.tetherRef.current.position()})),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&&m(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=void 0===n?"":n,o=e.constrainToScrollParent,a=e.constrainToWindow,s=e.position,l=e.isShown,c=e.offset,p=d(e,["children","className","constrainToScrollParent","constrainToWindow","position","isShown","offset"]),h=[];o&&h.push({to:"scrollParent",attachment:"together"}),a&&h.push({to:"window",attachment:"together"});var b=v[s],m=b.attachment,y=b.targetAttachment,g=i.Children.only(t),w=i.cloneElement(g,{"aria-describedby":this.radarAnimationID}),E={attachment:m,classPrefix:"radar-animation",constraints:h,targetAttachment:y};return c&&(E.offset=c),i.createElement(u.a,f({ref:this.tetherRef},E),w,l&&i.createElement("div",f({className:"radar ".concat(r),id:this.radarAnimationID},p),i.createElement("div",{className:"radar-dot"}),i.createElement("div",{className:"radar-circle"})))}}])&&p(n.prototype,r),o&&p(n,o),t}(i.Component);y(g,"defaultProps",{constrainToScrollParent:!1,constrainToWindow:!0,isShown:!0,position:o.MIDDLE_RIGHT});var w=g;n.d(t,"a",(function(){return w}))},,function(e,t,n){(function(e){function r(e){return(r="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)}var o=n(38),i=n(372),a="object"==r(t)&&t&&!t.nodeType&&t,s=a&&"object"==r(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?o.Buffer:void 0,u=(l?l.isBuffer:void 0)||i;e.exports=u}).call(this,n(86)(e))},function(e,t,n){var r=n(382),o=n(158),i=n(383),a=n(312),s=n(296),l=n(55),u=n(212),c=u(r),f=u(o),d=u(i),p=u(a),h=u(s),b=l;(r&&"[object DataView]"!=b(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=b(new o)||i&&"[object Promise]"!=b(i.resolve())||a&&"[object Set]"!=b(new a)||s&&"[object WeakMap]"!=b(new s))&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case c: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=b},function(e,t,n){"use strict";var r=n(0),o=n(25);function i(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=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,s=t.loadingIndicatorProps,l=void 0===s?{}:s,u=i(t,["isLoading","loadingIndicatorProps"]);return a?r.createElement(o.b,l):r.createElement(e,u)};return t.displayName="Loadable".concat(e.displayName||e.name||"Component"),t}},function(e,t,n){var r=n(459);e.exports=function(e){return r(e)&&e!=+e}},,,,,function(e,t,n){"use strict";var r=n(0),o=n(9);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000":i,s=e.height,l=void 0===s?6:s,u=e.title,c=e.width,f=void 0===c?10:c;return r.createElement(o.a,{className:"icon-caret-down ".concat(n),height:l,title:u,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(285),o=n(0);n(210);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.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var c,f,d,p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),s(this,l(t).apply(this,arguments))}var n,r,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&&u(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.props,t=e.title,n=e.children,r=e.className;return o.createElement("div",{className:"link-group ".concat(r)},t?o.createElement("div",{className:"link-group-title"},t):null,o.createElement("ul",null,o.Children.map(n,(function(e,t){return e?o.createElement("li",{key:t},e," "):null}))))}}])&&a(n.prototype,r),i&&a(n,i),t}(o.Component);d={title:"",className:""},(f="defaultProps")in(c=p)?Object.defineProperty(c,f,{value:d,enumerable:!0,configurable:!0,writable:!0}):c[f]=d;n.d(t,"a",(function(){return r.a}))},function(e,t,n){var r=n(313),o=n(93),i=n(283),a=n(299),s=n(439),l=Math.max;e.exports=function(e,t,n,u){e=o(e)?e:s(e),n=n&&!u?a(n):0;var c=e.length;return n<0&&(n=l(c+n,0)),i(e)?n<=c&&e.indexOf(t,n)>-1:!!c&&r(e,t,n)>-1}},function(e,t,n){var r=n(123),o=n(345),i=n(346),a=n(347),s=n(348),l=n(349);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(10);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}t.a=function(e){return r.createElement(i.a,a({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:o.i,fillRule:"evenodd",d:"M8 6.586l4.182-4.182a.5.5 0 01.707 0l.707.707a.5.5 0 010 .707L9.414 8l4.182 4.182a.5.5 0 010 .707l-.707.707a.5.5 0 01-.707 0L8 9.414l-4.182 4.182a.5.5 0 01-.707 0l-.707-.707a.5.5 0 010-.707L6.586 8 2.404 3.818a.5.5 0 010-.707l.707-.707a.5.5 0 01.707 0L8 6.586z"}))}},function(e,t,n){"use strict";var r=n(0),o=n(9);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#000000":i,s=e.height,l=void 0===s?24:s,u=e.title,c=e.width,f=void 0===c?24:c;return r.createElement(o.a,{className:"icon-info ".concat(n),height:l,title:u,viewBox:"-603 389 16 16",width:f},r.createElement("path",{className:"fill-color",d:"M-595 403c5.5 0 8-7.1 3.9-10.6-4.2-3.6-10.8.3-9.8 5.7.5 2.8 3 4.9 5.9 4.9zm.9-6.7v3.7h-1.4v-3.7h1.4zm.1-2.2c0 1-1.7 1.1-1.7 0 .1-1.1 1.7-1.1 1.7 0z",fill:a,fillRule:"evenodd"}))}},,function(e,t,n){"use strict";var r=n(0),o=function(e){var t=e.className,n=void 0===t?"":t,o=e.url,i=e.onError;return r.createElement("img",{alt:"",className:"avatar-image ".concat(n),onError:function(e){"function"==typeof i&&i(e)},src:o})},i=n(2),a=function(e){var t=e.className,n=void 0===t?"":t,o=e.id,a=void 0===o?0:o,s=e.name,l=(parseInt(a,10)||0)%i.a.length;return r.createElement("span",{className:"avatar-initials ".concat(n),"data-bg-idx":l},function(e){var t=e.replace(/[[({<]+.*[\])}>]+/g,"").trim();return(t.slice(0,1)+t.slice(t.lastIndexOf(" ")+1,t.lastIndexOf(" ")+2)).toUpperCase()}(s))},s=n(10),l=function(e){var t=e.className,n=void 0===t?"":t,o=e.height,i=void 0===o?28:o,a=e.title,l=e.width,u=void 0===l?28:l;return r.createElement(s.a,{className:"unknown-user-avatar ".concat(n),height:i,title:a,viewBox:"0 0 28 28",width:u},r.createElement("circle",{cx:"14",cy:"14",fill:"#ededed",r:"14"}),r.createElement("path",{d:"M5.5 25.1C6.7 21 10 18 14 18s7.3 3 8.5 7.1a14 14 0 0 1-17 0zM14 16a5 5 0 1 1 0-10 5 5 0 0 1 0 10z",fill:"#c3c3c3"}))},u=n(5),c=n.n(u),f=n(261);function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=function(e){return r.createElement(s.a,d({width:16,height:16,viewBox:"0 0 16 16"},e),r.createElement("path",{fill:i.i,fillRule:"evenodd",d:"M8 0a7.988 7.988 0 00-5.662 2.338A7.992 7.992 0 000 8a7.988 7.988 0 002.338 5.662A7.992 7.992 0 008 16a7.988 7.988 0 005.662-2.338A7.992 7.992 0 0016 8a7.988 7.988 0 00-2.338-5.662A7.992 7.992 0 008 0zm-.862 14.4C4.062 13.908 1.6 11.323 1.6 8c0-.492.123-.984.123-1.477L5.54 10.34v.861c0 .862.738 1.6 1.6 1.6v1.6zm5.539-2.092c-.247-.616-.861-1.108-1.477-1.108h-.862V8.738c0-.368-.246-.738-.738-.738H4.8V6.4h1.6c.492 0 .862-.37.862-.862V4.062h1.6c.861 0 1.6-.739 1.6-1.6v-.37C12.8 3.077 14.4 5.292 14.4 8c0 1.723-.616 3.2-1.723 4.308z"}))};n(647);function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var m={small:!0,large:!0};var y=function(e){var t,n,i=e.avatarUrl,s=e.className,u=e.name,d=e.id,y=e.isExternal,v=e.shouldShowExternal,g=void 0!==v&&v,w=e.size,E=void 0===w?"":w,S=b(r.useState(!1),2),O=S[0],k=S[1],C=b(r.useState(null),2),x=C[0],_=C[1],P=c()(["avatar",s,(t={},h(t,"avatar--".concat(E),E&&m[E]),h(t,"avatar--isExternal",g&&y),t)]);return i!==x&&(k(!1),_(i)),n=i&&!O?r.createElement(o,{onError:function(){k(!0)},url:i}):u?r.createElement(a,{id:d,name:u}):r.createElement(l,{className:"avatar-icon"}),r.createElement(f.a,{className:P,bottomRight:g&&y?r.createElement(p,{className:"bdl-Avatar-externalBadge"}):void 0},r.createElement("span",{role:"presentation"},n))};n.d(t,"a",(function(){return y}))},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}},function(e,t,n){var r=n(64)(n(38),"Map");e.exports=r},function(e,t,n){var r=n(55),o=n(33),i="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",l="[object Proxy]";e.exports=function(e){if(!o(e))return!1;var t=r(e);return t==a||t==s||t==i||t==l}},function(e,t,n){var r=n(161),o=n(109),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(213);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){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){function r(e){return(r="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)}var o=n(211),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i&&o.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();e.exports=l}).call(this,n(86)(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,n){var r=n(380),o=n(217),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},function(e,t,n){var r=n(215)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(270);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t,n){"use strict";(function(t){var r=n(34),o=n(423),i={"Content-Type":"application/x-www-form-urlencoded"};function a(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var s,l={adapter:("undefined"!=typeof XMLHttpRequest?s=n(227):void 0!==t&&(s=n(227)),s),transformRequest:[function(e,t){return o(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(a(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)?(a(t,"application/json;charset=utf-8"),JSON.stringify(e)):e}],transformResponse:[function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(e){return e>=200&&e<300}};l.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(195))},function(e,t,n){"use strict";var r=n(407),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return r.isMemo(e)?a:s[e.$$typeof]||o}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(h){var o=p(n);o&&o!==h&&e(t,o,r)}var a=c(n);f&&(a=a.concat(f(n)));for(var s=l(t),b=l(n),m=0;m<a.length;++m){var y=a[m];if(!(i[y]||r&&r[y]||b&&b[y]||s&&s[y])){var v=d(n,y);try{u(t,y,v)}catch(e){}}}}return t}},function(e,t,n){var r=n(418),o=n(272);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t,n){"use strict";var r=n(284),o=n(0),i=n.n(o),a=n(5),s=n.n(a);function l(){return(l=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var c=function(e){var t=e.className,n=u(e,["className"]);return i.a.createElement("div",l({className:s()("modal-actions",t)},n))};n(260);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return c}))},,,,,,function(e,t,n){"use strict";var r=n(0),o=n(107),i=n(81),a=n(9),s=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#979797":o,s=e.height,l=void 0===s?64:s,u=e.title,c=e.width,f=void 0===c?64:c;return r.createElement(a.a,{className:"icon-sad-cloud ".concat(n),height:l,title:u,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:i}),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:i}),r.createElement("circle",{className:"fill-color",cx:"496.3",cy:"351.5",fill:i,r:"32.1"}),r.createElement("circle",{className:"fill-color",cx:"688.9",cy:"351.5",fill:i,r:"32.1"})))},l=(n(538),Object(o.defineMessages)({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(s,{className:"error-mask-sad-cloud",height:50,title:r.createElement(i.a,l.errorMaskIconSadCloudText)}),r.createElement("h4",null,t),r.createElement("h5",null,n))}},,,function(e,t,n){"use strict";var r=n(0),o=n(48),i=n(11);var a=["localeMatcher","style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay"];function s(e,t){var n=e.locale,r=e.formats,o=e.onError,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},l=s.format,u=l&&Object(i.g)(r,"number",l,o)||{};return t(n,Object(i.f)(s,a,u))}function l(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,r).format(n)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return String(n)}function u(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};try{return s(e,t,r).formatToParts(n)}catch(t){e.onError(Object(i.b)("Error formatting number.",t))}return[]}var c=["numeric","style"];function f(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};r||(r="second"),Intl.RelativeTimeFormat||e.onError(Object(i.b)('Intl.RelativeTimeFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-relativetimeformat"\n'));try{return function(e,t){var n=e.locale,r=e.formats,o=e.onError,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a.format,l=!!s&&Object(i.g)(r,"relative",s,o)||{};return t(n,Object(i.f)(a,c,l))}(e,t,o).format(n,r)}catch(t){e.onError(Object(i.b)("Error formatting relative time.",t))}return String(n)}function d(){return(d=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var p=["localeMatcher","formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function h(e,t,n){var r=e.locale,o=e.formats,a=e.onError,s=e.timeZone,l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.format,c=d(d({},s&&{timeZone:s}),u&&Object(i.g)(o,t,u,a)),f=Object(i.f)(l,p,c);return"time"!==t||f.hour||f.minute||f.second||(f=d(d({},f),{hour:"numeric",minute:"numeric"})),n(r,f)}function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).format(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return String(o)}function m(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).format(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return String(o)}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"date",t,r).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting date.",t))}return[]}function v(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o="string"==typeof n?new Date(n||0):n;try{return h(e,"time",t,r).formatToParts(o)}catch(t){e.onError(Object(i.b)("Error formatting time.",t))}return[]}var g=["localeMatcher","type"];function w(e,t,n){var r=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.PluralRules||o(Object(i.b)('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n'));var s=Object(i.f)(a,g);try{return t(r,s).select(n)}catch(e){o(Object(i.b)("Error formatting plural.",e))}return"other"}var E=n(102),S=n(78),O=n.n(S);function k(e){return(k="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)}var C=["localeMatcher","type","style"],x=Date.now();function _(e,t,n){var r=e.locale,o=e.onError,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};Intl.ListFormat||o(Object(i.b)('Intl.ListFormat is not available in this environment.\nTry polyfilling it using "@formatjs/intl-listformat"\n'));var s=Object(i.f)(a,C);try{var l={},u=n.map((function(e,t){if("object"===k(e)){var n=function(e){return"".concat(x,"_").concat(e,"_").concat(x)}(t);return l[n]=e,n}return String(e)}));return Object.keys(l).length?t(r,s).formatToParts(u).reduce((function(e,t){var n=t.value;return l[n]?e.push(l[n]):"string"==typeof e[e.length-1]?e[e.length-1]+=n:e.push(n),e}),[]):t(r,s).format(u)}catch(e){o(Object(i.b)("Error formatting list.",e))}return n}function P(e){return(P="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.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function T(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(){return(j=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}n.d(t,"a",(function(){return M}));var L=O.a||S;function R(e){return{locale:e.locale,timeZone:e.timeZone,formats:e.formats,textComponent:e.textComponent,messages:e.messages,defaultLocale:e.defaultLocale,defaultFormats:e.defaultFormats,onError:e.onError}}function N(e,t){var n=Object(i.c)(t),r=j(j({},i.a),e);if(!r.locale||!function(e,t){if("undefined"==typeof Intl)return!1;if(!e)throw new Error("locales must be supplied.");Array.isArray(e)||(e=[e]);var n=t||[Intl.DateTimeFormat,Intl.NumberFormat,Intl.PluralRules];return!(0===(n=n.filter(Boolean)).length||t&&n.length!==t.length)&&n.every((function(t){return t.supportedLocalesOf(e).length===e.length}))}(r.locale)){var o=r.locale,a=r.defaultLocale,s=r.onError;"function"==typeof s&&s(Object(i.b)('Missing locale data for locale: "'.concat(o,'". ')+'Using default locale: "'.concat(a,'" as fallback.'))),r.locale=r.defaultLocale||"en"}return j(j({},r),{formatters:n,formatNumber:l.bind(null,r,n.getNumberFormat),formatNumberToParts:u.bind(null,r,n.getNumberFormat),formatRelativeTime:f.bind(null,r,n.getRelativeTimeFormat),formatDate:b.bind(null,r,n.getDateTimeFormat),formatDateToParts:y.bind(null,r,n.getDateTimeFormat),formatTime:m.bind(null,r,n.getDateTimeFormat),formatTimeToParts:v.bind(null,r,n.getDateTimeFormat),formatPlural:w.bind(null,r,n.getPluralRules),formatMessage:E.b.bind(null,r,n),formatHTMLMessage:E.a.bind(null,r,n),formatList:_.bind(null,r,n.getListFormat)})}var M=function(e){function t(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(e=T(this,I(t).apply(this,arguments))).cache=Object(i.d)(),e.state={cache:e.cache,intl:N(R(e.props),e.cache),prevConfig:R(e.props)},e}var n,a,s;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,e),n=t,s=[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevConfig,r=t.cache,o=R(e);return L(n,o)?null:{intl:N(o,r),prevConfig:o}}}],(a=[{key:"render",value:function(){return Object(i.h)(this.state.intl),r.createElement(o.b,{value:this.state.intl},this.props.children)}}])&&A(n.prototype,a),s&&A(n,s),t}(r.PureComponent);M.displayName="IntlProvider",M.defaultProps=i.a},function(e,t,n){"use strict";var r=n(0),o=n(9);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#F7931D":i,s=e.height,l=void 0===s?26:s,u=e.title,c=e.width,f=void 0===c?26:c;return r.createElement(o.a,{className:"icon-alert-default ".concat(n),title:u,height:l,width:f,viewBox:"0 0 26 26"},r.createElement("defs",null,r.createElement("circle",{id:"b",cx:"8",cy:"8",r:"8"}),r.createElement("filter",{x:"-46.9%",y:"-46.9%",width:"193.8%",height:"193.8%",filterUnits:"objectBoundingBox",id:"a"},r.createElement("feMorphology",{radius:".5",operator:"dilate",in:"SourceAlpha",result:"shadowSpreadOuter1"}),r.createElement("feOffset",{in:"shadowSpreadOuter1",result:"shadowOffsetOuter1"}),r.createElement("feGaussianBlur",{stdDeviation:"2",in:"shadowOffsetOuter1",result:"shadowBlurOuter1"}),r.createElement("feColorMatrix",{values:"0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0 0.733285502 0 0 0 0.5 0",in:"shadowBlurOuter1"}))),r.createElement("g",{transform:"translate(5 5)",fill:"none",fillRule:"evenodd"},r.createElement("use",{fill:"#000",filter:"url(#a)",xlinkHref:"#b"}),r.createElement("use",{fill:a,xlinkHref:"#b"}),r.createElement("path",{d:"M8.047 4.706v4.111",stroke:"#FFF",strokeWidth:"1.412",strokeLinecap:"round",strokeLinejoin:"round"}),r.createElement("circle",{fill:"#FFF",cx:"8.047",cy:"11.294",r:"1"})))}},,function(e,t,n){"use strict";var r=n(241);n.d(t,"a",(function(){return r.a}))},function(e,t,n){var r=n(356),o=n(363),i=n(365),a=n(366),s=n(367);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(373),o=n(163),i=n(164),a=i&&i.isTypedArray,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(99),o=n(95);e.exports=function(e,t){for(var n=0,i=(t=r(t,e)).length;null!=e&&n<i;)e=e[o(t[n++])];return n&&n==i?e:void 0}},function(e,t){e.exports=function(e){return e}},function(e,t,n){"use strict";(function(e){function n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var r,o=function(){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t)}var o,i,a;return o=t,a=[{key:"getUserAgent",value:function(){return e.navigator.userAgent}},{key:"isMobile",value:function(){return/iphone|ipad|ipod|android|blackberry|bb10|mini|windows\sce|palm/i.test(t.getUserAgent())}},{key:"isIE",value:function(){return/Trident/i.test(t.getUserAgent())}},{key:"canPlayDash",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(void 0===r||t){var n=e.MediaSource;r=!!n&&"function"==typeof n.isTypeSupported&&n.isTypeSupported('video/mp4; codecs="avc1.64001E"')}return r}},{key:"canWriteToClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.writeText)}},{key:"canReadFromClipboard",value:function(){return!(!e.navigator.clipboard||!e.navigator.clipboard.readText)}}],(i=null)&&n(o.prototype,i),a&&n(o,a),t}();t.a=o}).call(this,n(36))},,,function(e,t,n){var r=n(532)();e.exports=r},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t){var n,r,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===i||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:i}catch(e){n=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l,u=[],c=!1,f=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):f=-1,u.length&&p())}function p(){if(!c){var e=s(d);c=!0;for(var t=u.length;t;){for(l=u,u=[];++f<t;)l&&l[f].run();f=-1,t=u.length}l=null,c=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function b(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new h(e,t)),1!==u.length||c||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},,,,,function(e,t,n){"use strict";var r=n(65),o=n(3),i=n.n(o),a=n(144),s=n.n(a),l=n(23),u=n(67),c=n(245),f=n.n(c);function d(){return window.crypto||window.msCrypto}function p(e,t){var n=d();return n!==window.msCrypto?n.subtle.digest(e,t):new Promise((function(r,o){if("SHA-1"===e)try{var i=f.a.arrayBuffer(t);r(i)}catch(e){o(e)}else{var a=n.subtle.digest({name:e},t);a.oncomplete=function(e){r(e.target.result)},a.onerror=o}}))}function h(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,s=0,l=0,u=0,c=0,f=0,d=0,p=0,h=0,b=0,m=0;i=r[t+320>>2]|0;s=r[t+324>>2]|0;u=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;l=s;c=u;d=f;h=p;for(o=0;(o|0)<64;o=o+4|0){m=r[n+o>>2]|0;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[e+o>>2]=m}for(o=e+64|0;(o|0)<(e+80|0);o=o+4|0){m=(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;b=((i<<5|i>>>27)+(s&u|~s&f)|0)+((m+p|0)+1518500249|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+80|0;(o|0)<(e+160|0);o=o+4|0){m=(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;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)+1859775393|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+160|0;(o|0)<(e+240|0);o=o+4|0){m=(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;b=((i<<5|i>>>27)+(s&u|s&f|u&f)|0)+((m+p|0)-1894007588|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}for(o=e+240|0;(o|0)<(e+320|0);o=o+4|0){m=(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;b=((i<<5|i>>>27)+(s^u^f)|0)+((m+p|0)-899497514|0)|0;p=f;f=u;u=s<<30|s>>>2;s=i;i=b;r[o>>2]=m}i=i+a|0;s=s+l|0;u=u+c|0;f=f+d|0;p=p+h|0}r[t+320>>2]=i;r[t+324>>2]=s;r[t+328>>2]=u;r[t+332>>2]=f;r[t+336>>2]=p}return{hash:o}}var b=function(){var e=new Blob(["const RushaCore = ".concat(h.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<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>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<h+i)){for(f=4-i;f<u;f=f+4|0)r[a+f>>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<i+s)){for(f=4-s;f<h;f=f+4|0)r[a+f>>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;t<n.length;t++)n[t]=s[r[t]];return n.join("")};!function(e){if(e%64>0)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<e;r<<=1);else for(r=16777216;r<e;r+=16777216);return r}(n.padMaxChunkLen+320+20)),n.h32=new Int32Array(n.heap),n.h8=new Int8Array(n.heap),n.core=new RushaCore({Int32Array:Int32Array,DataView:DataView},{},n.heap),n.buffer=null}(e||65536);var u=function(e,r){n.offset=0;var t=new Int32Array(e,r+320,5);t[0]=1732584193,t[1]=-271733879,t[2]=-1732584194,t[3]=271733878,t[4]=-1009589776},c=function(e,r){var a,f,s,i=t(e),h=new Int32Array(n.heap,0,i>>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<e.length;f++)e[f]=0}(h,e),s=r,(a=h)[(f=e)>>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<a;)r=Math.min(a-t,n.maxChunkLen-f),o(e,t,r,f),t+=r,(f+=r)===n.maxChunkLen&&(n.core.hash(n.maxChunkLen,n.padMaxChunkLen),f=0);return this},this.getState=function(){var e;if(n.offset%n.maxChunkLen)e=n.heap.slice(0);else{var r=new Int32Array(n.heap,n.padMaxChunkLen+320,5);e=r.buffer.slice(r.byteOffset,r.byteOffset+r.byteLength)}return{offset:n.offset,heap:e}},this.setState=function(e){(n.offset=e.offset,20===e.heap.byteLength)?new Int32Array(n.heap,n.padMaxChunkLen+320,5).set(new Int32Array(e.heap)):n.h32.set(new Int32Array(e.heap));return this};var p=this.rawEnd=function(){var e=n.offset,r=e%n.maxChunkLen,t=c(r,e);n.core.hash(t,n.padMaxChunkLen);var a=y(n.heap,n.padMaxChunkLen);return u(n.heap,n.padMaxChunkLen),a};this.end=function(){return h(p().buffer)}}',";\n","var setupWorker = ",function(){var e=new Rusha;e.resetState();var t=0;self.onmessage=function(n){var r=n.data,o=r.part,i=r.fileSize,a=r.partContents,s=Date.now();try{if(o.offset!==t)throw new Error("Out of order parts given to worker");if(e.append(a),self.postMessage({type:"partDone",part:r.part,duration:Date.now()-s,partContents:a},[a]),t+=o.size,o.offset+o.size===i){var l=e.end();self.postMessage({type:"done",sha1:l})}}catch(e){var u={type:"error",name:e.name,message:e.message,part:o};self.postMessage(u)}}}.toString(),";\n","setupWorker();"],{type:"text/javascript"}),t=(window.URL||window.webkitURL).createObjectURL(e),n=new Worker(t);return n.oldTerminate=n.terminate,n.terminate=function(){(window.URL||window.webkitURL).revokeObjectURL(t),n.oldTerminate()},n},m=n(1),y=n(7),v=n.n(y),g=n(246),w=n.n(g);function E(e,t){if(!t)return e;var n=new w.a(e);return Object.keys(t).forEach((function(e){var r=t[e];r&&(n.hasQueryParam(e)?n.replaceQueryParam(e,r):n.addQueryParam(e,r))})),n.toString()}var S=n(14);function O(e){return(O="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 k(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function C(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var T=5,I=10,D=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?_(e):t}(this,(e=x(t)).call.apply(e,[this].concat(o))),A(_(n),"retryCount",0),A(_(n),"reachabilityRetryCount",0),A(_(n),"isUploadFallbackLogicEnabled",!1),A(_(n),"makePreflightRequest",(function(){if(!n.isDestroyed()){var e="".concat(n.getBaseApiUrl(),"/files/content");if(n.fileId&&(e=e.replace("content","".concat(n.fileId,"/content"))),n.isUploadFallbackLogicEnabled){var t=n.uploadsReachability.getUnreachableHostsUrls();0!==t.length&&(e+="?unreachable_hosts=".concat(t.join(",")))}var r=n.file,o=r.size,i=r.name,a={name:n.fileName||i,parent:{id:n.folderId},description:n.fileDescription,size:o};n.xhr.options({url:e,data:a,successHandler:function(e){n.isUploadFallbackLogicEnabled?n.preflightSuccessReachabilityHandler(e):n.preflightSuccessHandler(e)},errorHandler:n.preflightErrorHandler})}})),A(_(n),"preflightSuccessReachabilityHandler",function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,!n.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:if(o=r.upload_url){e.next=7;break}return n.preflightSuccessHandler({data:r}),e.abrupt("return");case 7:if((i=n.getUploadHostFromUrl(o))!=="".concat(m.O,"/")){e.next=11;break}return n.preflightSuccessHandler({data:r}),e.abrupt("return");case 11:return e.next=13,n.uploadsReachability.isReachable(i);case 13:e.sent?n.preflightSuccessHandler({data:r}):n.reachabilityRetryCount>=I?n.preflightSuccessHandler({data:{}}):(n.reachabilityRetryCount+=1,n.makePreflightRequest());case 15:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){k(i,r,o,a,s,"next",e)}function s(e){k(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()),A(_(n),"preflightErrorHandler",(function(e){if(!n.isDestroyed()){n.fileName=n.file?n.file.name:"";var t=e,r=e.response;if(r&&r.data&&(t=r.data),n.retryCount>=T)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)}else if(n.conflictCallback)n.fileName=n.conflictCallback(n.fileName);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)*m.de),n.retryCount+=1);else{var a=m.W;if(t.headers){var s=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);Number.isNaN(s)||(a=s*m.de)}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&&P(e,t)}(t,e),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}))}},{key:"getUploadHostFromUrl",value:function(e){var t=e.split("/");return"".concat(t[0],"//").concat(t[2],"/")}}])&&C(n.prototype,r),o&&C(n,o),t}(S.a);function j(e){return(j="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){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function N(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U={digestReadahead:5,initialRetryDelayMs:5e3,maxRetryDelayMs:6e4,parallelism:4,requestTimeoutMs:12e4,retries:5},B=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"!==j(t)&&"function"!=typeof t?N(e):t}(this,R(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?L(Object(n),!0).forEach((function(t){F(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{shouldRetry:!1}))),F(N(o),"logEvent",(function(e,t){var n={event_type:e};return t&&(n.event_info=t),o.xhr.post({url:o.sessionEndpoints.logEvent,data:n})})),o.config=r||U,o.sessionEndpoints=n,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&&M(e,t)}(t,e),t}(D);function H(e){return(H="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 z(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){z(i,r,o,a,s,"next",e)}function s(e){z(i,r,o,a,s,"throw",e)}a(void 0)}))}}function W(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function G(e){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function q(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y=0,Q=2,J=3,$=function(e){function t(e,n,r,o,a,s,c,f,d,p,h,b){var y;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y=function(e,t){return!t||"object"!==H(t)&&"function"!=typeof t?q(e):t}(this,G(t).call(this,e,c,f)),K(q(y),"toJSON",(function(){return JSON.stringify({index:y.index,offset:y.offset,partSize:y.partSize,state:y.state,uploadedBytes:y.uploadedBytes,numUploadRetriesPerformed:y.numUploadRetriesPerformed,numDigestRetriesPerformed:y.numDigestRetriesPerformed,sha256:y.sha256,timing:y.timing})})),K(q(y),"getPart",(function(){return y.data.part||{}})),K(q(y),"upload",(function(){if(!y.isDestroyedOrPaused()){if(!y.sha256)throw new Error("Part SHA-256 unavailable");if(!y.blob)throw new Error("Part blob unavailable");var e={documentHidden:document.hidden,digest_retries:y.numDigestRetriesPerformed,timing:y.timing,parts_uploading:y.getNumPartsUploading()},t={"Content-Type":"application/octet-stream",Digest:"sha-256=".concat(y.sha256),"Content-Range":"bytes ".concat(y.offset,"-").concat(y.rangeEnd,"/").concat(y.fileSize),"X-Box-Client-Event-Info":JSON.stringify(e)};y.state=Q,y.startTimestamp=Date.now(),y.xhr.uploadFile({url:y.sessionEndpoints.uploadPart,data:y.blob,headers:t,method:m.Hd,successHandler:y.uploadSuccessHandler,errorHandler:y.uploadErrorHandler,progressHandler:y.uploadProgressHandler,withIdleTimeout:!0,idleTimeoutDuration:y.config.requestTimeoutMs})}})),K(q(y),"uploadSuccessHandler",(function(e){var t=e.data;y.isDestroyedOrPaused()||(y.state=J,y.consoleLog("Upload completed: ".concat(y.toJSON(),".")),y.data=t,y.blob=null,y.timing.uploadTime=Date.now()-y.startTimestamp,y.onSuccess(q(y)),y.uploadedBytes=y.partSize)})),K(q(y),"uploadProgressHandler",(function(e){if(!y.isDestroyedOrPaused()){var t=parseInt(e.loaded,10),n=y.uploadedBytes;y.uploadedBytes=t,y.onProgress(n,t)}})),K(q(y),"uploadErrorHandler",function(){var e=V(regeneratorRuntime.mark((function e(t){var n,r,o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:if(n=v()(y.xhr,"xhr.readyState",null),r=v()(y.xhr,"xhr.statusText",""),y.consoleLog("Upload failure ".concat(t.message," for part ").concat(y.toJSON(),". XHR state: ").concat(n,".")),o={message:t.message,part:{uploadedBytes:y.uploadedBytes,id:y.id,index:y.index,offset:y.offset},xhr_ready_state:n,xhr_status_text:r},i=JSON.stringify(o),y.sessionEndpoints.logEvent?Object(u.a)((function(e,t){y.logEvent("part_failure",i).then(e).catch(t)}),y.config.retries,y.config.initialRetryDelayMs).catch((function(e){return y.consoleLog("Failure in logEvent: ".concat(e.message))})):y.consoleLog("logEvent endpoint not found"),!(y.numUploadRetriesPerformed>=y.config.retries)){e.next=11;break}return y.onError(t,i),e.abrupt("return");case 11:a=Object(l.a)(y.config.initialRetryDelayMs,y.config.maxRetryDelayMs,y.numUploadRetriesPerformed),y.numUploadRetriesPerformed+=1,y.consoleLog("Retrying uploading part ".concat(y.toJSON()," in ").concat(a," ms")),y.retryTimeout=setTimeout(y.retryUpload,a);case 15:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),K(q(y),"retryUpload",V(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!y.isDestroyedOrPaused()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,e.next=5,y.listParts(y.index,1);case 5:if(!(t=e.sent)||1!==t.length||t[0].offset!==y.offset||!t[0].part_id){e.next=11;break}return y.consoleLog("Part ".concat(y.toJSON()," is available on server. Not re-uploading.")),y.id=t[0].part_id,y.uploadSuccessHandler({data:{part:t[0]}}),e.abrupt("return");case 11:throw y.consoleLog("Part ".concat(y.toJSON()," is not available on server. Re-uploading.")),new Error("Part not found on the server");case 15:e.prev=15,e.t0=e.catch(2),(n=e.t0.response)&&n.status&&y.consoleLog("Error ".concat(n.status," while listing part ").concat(y.toJSON(),". Re-uploading.")),y.numUploadRetriesPerformed+=1,y.upload();case 21:case"end":return e.stop()}}),e,null,[[2,15]])})))),K(q(y),"listParts",function(){var e=V(regeneratorRuntime.mark((function e(t,n){var r,o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={offset:t,limit:n},o=E(y.sessionEndpoints.listParts,r),e.next=4,y.xhr.get({url:o});case 4:return i=e.sent,e.abrupt("return",i.data.entries);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),y.index=n,y.numDigestRetriesPerformed=0,y.numUploadRetriesPerformed=0,y.offset=r,y.partSize=o,y.fileSize=a,y.state=Y,y.timing={},y.uploadedBytes=0,y.data={},y.config=f,y.rangeEnd=r+o-1,y.rangeEnd>a-1&&(y.rangeEnd=a-1),y.isPaused=!1,y.onSuccess=p||i.a,y.onError=b||i.a,y.onProgress=h||i.a,y.getNumPartsUploading=d,y}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&&X(e,t)}(t,e),n=t,(r=[{key:"cancel",value:function(){clearTimeout(this.retryTimeout),this.blob=null,this.data={},this.destroy()}},{key:"pause",value:function(){clearTimeout(this.retryTimeout),this.isPaused=!0,this.state=1,this.xhr.abort()}},{key:"unpause",value:function(){this.isPaused=!1,this.state=Q,this.retryUpload()}},{key:"reset",value:function(){this.numUploadRetriesPerformed=0,this.timing={},this.uploadedBytes=0}},{key:"isDestroyedOrPaused",value:function(){return this.isDestroyed()||this.isPaused}}])&&W(n.prototype,r),o&&W(n,o),t}(B);function Z(e){return(Z="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 ee(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function te(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ee(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ee(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ne(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function re(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ne(i,r,o,a,s,"next",e)}function s(e){ne(i,r,o,a,s,"throw",e)}a(void 0)}))}}function oe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ae(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ue="create_session_misc_error",ce="create_session_retries_exceeded",fe="part_upload_retries_exceeded",de="commit_retries_exceeded",pe="web_worker_error",he="file_reader_received_not_found_error",be="part_digest_retries_exceeded",me=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?ae(e):t}(this,ie(t).call(this,e,{createSession:null,uploadPart:null,listParts:null,commit:null,abort:null,logEvent:null},n)),le(ae(r),"getBaseUploadUrlFromPreflightResponse",(function(e){var t=e.data;if(!t||!t.upload_url)return r.getBaseUploadUrl();var n=t.upload_url.split("/");return r.uploadHost="".concat(n[0],"//").concat(n[2]),r.getBaseUploadUrl()})),le(ae(r),"preflightSuccessHandler",function(){var e=re(regeneratorRuntime.mark((function e(t){var n,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return n=r.getBaseUploadUrlFromPreflightResponse(t),(o="".concat(n,"/files/upload_sessions")).includes("fupload-ec2")&&(r.config.parallelism=1),i={file_size:r.file.size,file_name:r.fileName},r.fileId?o=o.replace("upload_sessions","".concat(r.fileId,"/upload_sessions")):i.folder_id=r.folderId,e.prev=7,e.next=10,r.xhr.post({url:o,data:i});case 10:a=e.sent,r.createSessionSuccessHandler(a.data),e.next=31;break;case 14:if(e.prev=14,e.t0=e.catch(7),!((s=r.getErrorResponse(e.t0))&&s.status>=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===m.Kd&&s.code===m.lc||s.status===m.Kd&&"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,ue,JSON.stringify(e.t0));case 31:case"end":return e.stop()}}),e,null,[[7,14]])})));return function(t){return e.apply(this,arguments)}}()),le(ae(r),"createSessionErrorHandler",(function(e){r.isDestroyed()||(r.createSessionNumRetriesPerformed<r.config.retries?r.createSessionRetry():(r.consoleLog("Too many create session failures, failing upload"),r.sessionErrorHandler(e,ce,JSON.stringify(e))))})),le(ae(r),"getSessionInfo",re(regeneratorRuntime.mark((function e(){var t,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=r.getBaseUploadUrl(),n="".concat(t,"/files/upload_sessions/").concat(r.sessionId),e.prev=2,e.next=5,r.xhr.get({url:n});case 5:o=e.sent,r.getSessionSuccessHandler(o.data),e.next=12;break;case 9:e.prev=9,e.t0=e.catch(2),r.getSessionErrorHandler(e.t0);case 12:case"end":return e.stop()}}),e,null,[[2,9]])})))),le(ae(r),"partUploadSuccessHandler",(function(e){r.numPartsUploading-=1,r.numPartsUploaded+=1,r.updateProgress(e.uploadedBytes,r.partSize),r.processNextParts()})),le(ae(r),"partUploadErrorHandler",(function(e,t){if(r.sessionErrorHandler(e,fe,t),r.isResumableUploadsEnabled)for(var n=r.firstUnuploadedPartIndex;r.numPartsUploading>0;){var o=r.parts[n];o&&o.state===Q&&(o.reset(),o.pause(),r.numPartsUploading-=1,r.numPartsDigestReady+=1),n+=1}})),le(ae(r),"updateProgress",(function(e,t){r.isDestroyed()||(r.totalUploadedBytes+=t-e,r.progressCallback({loaded:r.totalUploadedBytes,total:r.file.size}))})),le(ae(r),"processNextParts",(function(){if(!r.failSessionIfFileChangeDetected())if(r.numPartsUploaded===r.parts.length&&r.fileSha1)r.commitSession();else{for(r.updateFirstUnuploadedPartIndex();r.canStartMorePartUploads();)r.uploadNextPart();r.shouldComputeDigestForNextPart()&&r.computeDigestForNextPart()}})),le(ae(r),"onWorkerMessage",(function(e){if(!r.isDestroyed()){var t,n=e.data;if("partDone"===n.type){r.numPartsDigestComputing-=1;var o=n.part;r.parts[o.index].timing.fileDigestTime=n.duration,r.processNextParts()}else"done"===n.type?(r.fileSha1=(t=n.sha1,btoa(String.fromCharCode.apply(null,t.replace(/\r|\n/g,"").replace(/([\da-fA-F]{2}) ?/g,"0x$1 ").replace(/ +$/,"").split(" ")))),r.sha1Worker.terminate(),r.processNextParts()):"error"===n.type&&r.sessionErrorHandler(null,pe,JSON.stringify(n))}})),le(ae(r),"sendPartToWorker",(function(e,t){if(!r.isDestroyed()){var n={index:e.index,offset:e.offset,size:e.partSize};r.sha1Worker.postMessage({part:n,fileSize:r.file.size,partContents:t},[t]),r.consoleLog("Part sent to worker: ".concat(JSON.stringify(e),".}"))}})),le(ae(r),"onPartDigestError",(function(e,t){if(r.consoleLog("Error computing digest for part ".concat(JSON.stringify(t),": ").concat(JSON.stringify(e))),"NotFoundError"!==e.name&&"NOT_FOUND_ERR"!==e.name){if(!r.failSessionIfFileChangeDetected())if(t.numDigestRetriesPerformed>=r.config.retries)r.sessionErrorHandler(null,be,JSON.stringify(e));else{var n=Object(l.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,he,JSON.stringify(e))})),le(ae(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(l.k)(r.file);n&&(t.attributes.content_modified_at=n),r.fileDescription&&(t.attributes.description=r.fileDescription);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)}})),le(ae(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)}})),le(ae(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,de,JSON.stringify(e))):void r.commitSessionRetry(t);r.consoleError(e)}})),le(ae(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.isResumableUploadsEnabled=!1,r.numResumeRetries=0,r}var n,r,o,a,c,f;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&&se(e,t)}(t,e),n=t,(r=[{key:"reset",value:function(){this.parts=[],this.fileSha1=null,this.totalUploadedBytes=0,this.numPartsNotStarted=0,this.numPartsDigestComputing=0,this.numPartsDigestReady=0,this.numPartsUploading=0,this.numPartsUploaded=0,this.firstUnuploadedPartIndex=0,this.createSessionNumRetriesPerformed=0,this.partSize=0,this.commitRetryCount=0,this.numResumeRetries=0}},{key:"setFileInfo",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.file=t,this.fileName=this.file.name,this.folderId=n,this.errorCallback=r||i.a,this.progressCallback=o||i.a,this.successCallback=a||i.a,this.overwrite=l,this.conflictCallback=u,this.fileId=c}},{key:"upload",value:function(e){var t=e.file,n=e.fileDescription,r=e.folderId,o=e.errorCallback,a=e.progressCallback,s=e.successCallback,u=e.overwrite,c=void 0===u||u,f=e.conflictCallback,d=e.fileId;this.file=t,this.fileName=this.file.name,this.initialFileSize=this.file.size,this.initialFileLastModified=Object(l.k)(this.file),this.folderId=r,this.errorCallback=o||i.a,this.progressCallback=a||i.a,this.successCallback=s||i.a,this.sha1Worker=b(),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.conflictCallback=f,this.overwrite=c,this.fileId=d,this.fileDescription=n,this.makePreflightRequest()}},{key:"createSessionRetry",value:function(){var e=Object(l.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=te({},this.sessionEndpoints,{uploadPart:r.upload_part,listParts:r.list_parts,commit:r.commit,abort:r.abort,logEvent:r.log_event}),this.populateParts(),this.processNextParts()}}},{key:"resume",value:function(e){var t=e.file,n=e.folderId,r=e.errorCallback,o=e.progressCallback,i=e.sessionId,a=e.successCallback,s=e.overwrite,l=void 0===s||s,u=e.conflictCallback,c=e.fileId;this.setFileInfo({file:t,folderId:n,errorCallback:r,progressCallback:o,successCallback:a,conflictCallback:u,overwrite:l,fileId:c}),this.sessionId=i,this.sha1Worker||(this.sha1Worker=b()),this.sha1Worker.addEventListener("message",this.onWorkerMessage),this.getSessionInfo()}},{key:"getSessionSuccessHandler",value:function(e){var t=e.part_size,n=e.session_endpoints;this.partSize=t,this.sessionEndpoints=te({},this.sessionEndpoints,{uploadPart:n.upload_part,listParts:n.list_parts,commit:n.commit,abort:n.abort,logEvent:n.log_event}),this.processNextParts()}},{key:"getSessionErrorHandler",value:function(e){if(!this.isDestroyed()){var t=this.getErrorResponse(e);if(this.numResumeRetries>this.config.retries)this.errorCallback(t);else if(t&&429===t.status){var n=m.W;if(t.headers){var r=parseInt(t.headers["retry-after"]||t.headers.get("Retry-After"),10);s()(r)||(n=r*m.de)}this.retryTimeout=setTimeout(this.getSessionInfo,n),this.numResumeRetries+=1}else if(t&&t.status>=400&&t.status<500){this.parts.forEach((function(e){e.cancel()})),this.reset(),clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession();var o={file:this.file,folderId:this.folderId,errorCallback:this.errorCallback,progressCallback:this.progressCallback,successCallback:this.successCallback,overwrite:this.overwrite,fileId:this.fileId};this.upload(o)}else this.retryTimeout=setTimeout(this.getSessionInfo,Math.pow(2,this.numResumeRetries)*m.de),this.numResumeRetries+=1}}},{key:"sessionErrorHandler",value:(f=re(regeneratorRuntime.mark((function e(t,n,r){var o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isResumableUploadsEnabled||this.destroy(),o=this.getErrorResponse(t),this.errorCallback(o),e.prev=3,this.sessionEndpoints.logEvent){e.next=6;break}throw new Error("logEvent endpoint not found");case 6:return e.next=8,Object(u.a)((function(e,t){i.logEvent(n,r).then(e).catch(t)}),this.config.retries,this.config.initialRetryDelayMs);case 8:this.isResumableUploadsEnabled||this.abortSession(),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(3),this.isResumableUploadsEnabled||this.abortSession();case 14:case"end":return e.stop()}}),e,this,[[3,11]])}))),function(e,t,n){return f.apply(this,arguments)})},{key:"abortSession",value:function(){var e=this;this.sha1Worker&&this.sha1Worker.terminate(),this.sessionEndpoints.abort&&this.sessionId&&this.xhr.delete({url:this.sessionEndpoints.abort}).then((function(){e.sessionId=""}))}},{key:"shouldComputeDigestForNextPart",value:function(){return!this.isDestroyed()&&0===this.numPartsDigestComputing&&this.numPartsNotStarted>0&&this.numPartsDigestReady<this.config.digestReadahead}},{key:"computeDigestForNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(t.state===Y)return this.numPartsNotStarted-=1,this.numPartsDigestComputing+=1,void this.computeDigestForPart(t)}}},{key:"computeDigestForPart",value:(c=re(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,u,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this.file.slice(t.offset,t.offset+this.partSize),r=new window.FileReader,o=Date.now(),e.prev=3,e.next=6,this.readFile(r,n);case 6:return i=e.sent,a=i.buffer,s=i.readCompleteTimestamp,e.next=11,p("SHA-256",a);case 11:l=e.sent,u=btoa([].reduce.call(new Uint8Array(l),(function(e,t){return e+String.fromCharCode(t)}),"")),this.sendPartToWorker(t,a),t.sha256=u,t.state=1,t.blob=n,this.numPartsDigestReady+=1,c=Date.now(),t.timing={partDigestTime:c-o,readTime:s-o,subtleCryptoTime:c-s},this.processNextParts(),e.next=26;break;case 23:e.prev=23,e.t0=e.catch(3),this.onPartDigestError(e.t0,t);case 26:case"end":return e.stop()}}),e,this,[[3,23]])}))),function(e){return c.apply(this,arguments)})},{key:"commitSessionRetry",value:function(e){var t=e.status,n=e.headers,r=m.W;if(n){var o=parseInt(n["retry-after"],10);Number.isNaN(o)||(r=1e3*o)}var i=Object(l.a)(this.config.initialRetryDelayMs,this.config.maxRetryDelayMs,this.commitRetryCount);202!==t&&(this.commitRetryCount+=1);var a=r||i;this.consoleLog("Retrying commit in ".concat(a," ms")),this.commitSessionTimeout=setTimeout(this.commitSession,a)}},{key:"uploadNextPart",value:function(){for(var e=this.firstUnuploadedPartIndex;e<this.parts.length;e+=1){var t=this.parts[e];if(1===t.state){this.numPartsDigestReady-=1,this.numPartsUploading+=1,t.isPaused?t.unpause():t.upload();break}}}},{key:"canStartMorePartUploads",value:function(){return!this.isDestroyed()&&this.numPartsUploading<this.config.parallelism&&this.numPartsDigestReady>0}},{key:"updateFirstUnuploadedPartIndex",value:function(){for(var e=this.parts[this.firstUnuploadedPartIndex];e&&e.state===J;)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;e<this.numPartsNotStarted;e+=1){var t=e*this.partSize,n=Math.min(t+this.partSize,this.file.size)-t,r=new $(this.options,e,t,n,this.file.size,this.sessionId,this.sessionEndpoints,this.config,this.getNumPartsUploading,this.partUploadSuccessHandler,this.updateProgress,this.partUploadErrorHandler);this.parts.push(r)}}},{key:"failSessionIfFileChangeDetected",value:function(){var e=this.file.size,t=Object(l.k)(this.file);return(e!==this.initialFileSize||t!==this.initialFileLastModified)&&(this.sessionErrorHandler(null,"file_changed_during_upload",JSON.stringify({oldSize:this.initialFileSize,newSize:e,oldLastModified:this.initialFileLastModified,newLastModified:t})),!0)}},{key:"cancel",value:function(){this.isDestroyed()||(this.parts.forEach((function(e){e.cancel()})),this.parts=[],clearTimeout(this.createSessionTimeout),clearTimeout(this.commitSessionTimeout),this.abortSession(),this.destroy())}},{key:"resolveConflict",value:(a=re(regeneratorRuntime.mark((function e(t){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.overwrite||!t.context_info){e.next=3;break}return this.fileId=t.context_info.conflicts.id,e.abrupt("return");case 3:if(!this.conflictCallback){e.next=6;break}return this.fileName=this.conflictCallback(this.fileName),e.abrupt("return");case 6:n=this.fileName.substr(this.fileName.lastIndexOf("."))||"",this.fileName="".concat(this.fileName.substr(0,this.fileName.lastIndexOf(".")),"-").concat(Date.now()).concat(n);case 8:case"end":return e.stop()}}),e,this)}))),function(e){return a.apply(this,arguments)})},{key:"getErrorResponse",value:function(e){if(!e)return{};var t=e.response;return t?401===t.status?t:t.data:{}}}])&&oe(n.prototype,r),o&&oe(n,o),t}(B);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 ve(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ge(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ve(i,r,o,a,s,"next",e)}function s(e){ve(i,r,o,a,s,"throw",e)}a(void 0)}))}}function we(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Se(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce="Content-MD5",xe=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?Se(e):t}(this,(e=Ee(t)).call.apply(e,[this].concat(o))),ke(Se(n),"uploadSuccessHandler",(function(e){var t=e.data.entries;n.isDestroyed()||"function"==typeof n.successCallback&&n.successCallback(t)})),ke(Se(n),"uploadProgressHandler",(function(e){n.isDestroyed()||"function"==typeof n.progressCallback&&n.progressCallback(e)})),ke(Se(n),"preflightSuccessHandler",function(){var e=ge(regeneratorRuntime.mark((function e(t){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.data,!n.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return(o=r.upload_url)||(o="".concat(n.getBaseUploadUrl(),"/files/content"),n.fileId&&(o=o.replace("content","".concat(n.fileId,"/content")))),i=JSON.stringify({name:n.fileName,parent:{id:n.folderId},description:n.fileDescription,content_modified_at:Object(l.k)(n.file)}),a={url:o,data:{attributes:i,file:n.file},headers:{},successHandler:n.uploadSuccessHandler,errorHandler:n.preflightErrorHandler,progressHandler:n.uploadProgressHandler},e.next=9,n.computeSHA1(n.file);case 9:(s=e.sent)&&(a.headers=ke({},Ce,s)),n.xhr.uploadFile(a);case 12:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),n}var n,r,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&&Oe(e,t)}(t,e),n=t,(r=[{key:"upload",value:function(e){var t=e.folderId,n=e.fileId,r=e.file,o=e.fileDescription,a=e.successCallback,s=void 0===a?i.a:a,l=e.errorCallback,u=void 0===l?i.a:l,c=e.progressCallback,f=void 0===c?i.a:c,d=e.conflictCallback,p=e.overwrite,h=void 0===p||p;this.isDestroyed()||(this.folderId=t,this.fileId=n,this.file=r,this.fileDescription=o,this.fileName=this.file.name,this.successCallback=s,this.errorCallback=u,this.progressCallback=f,this.overwrite=h,this.conflictCallback=d,this.makePreflightRequest())}},{key:"cancel",value:function(){this.isDestroyed()||(clearTimeout(this.retryTimeout),this.destroy())}},{key:"computeSHA1",value:(a=ge(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n="",e.prev=1,r=new window.FileReader,e.next=5,this.readFile(r,t);case 5:return o=e.sent,i=o.buffer,e.next=9,p("SHA-1",i);case 9:a=e.sent,s=Array.from(new Uint8Array(a)),n=s.map((function(e){return"00".concat(e.toString(16)).slice(-2)})).join(""),e.next=16;break;case 14:e.prev=14,e.t0=e.catch(1);case 16:return e.abrupt("return",n);case 17:case"end":return e.stop()}}),e,this,[[1,14]])}))),function(e){return a.apply(this,arguments)})}])&&we(n.prototype,r),o&&we(n,o),t}(D),_e=n(66),Pe=n(46),Ae=n(57),Te=n(75),Ie=n(15),De=n(8);function je(e){return(je="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 Le(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Re(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Le(Object(n),!0).forEach((function(t){Be(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Fe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ue(e,t){return(Ue=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==je(t)&&"function"!=typeof t?Fe(e):t}(this,(e=Me(t)).call.apply(e,[this].concat(o))),Be(Fe(n),"searchSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=t.entries,o=t.total_count,i=t.limit,a=t.offset;if(!Array.isArray(r)||"number"!=typeof o||"number"!=typeof i||"number"!=typeof a)throw Object(De.a)();var s=Object(Te.a)(r,new _e.a(n.options),new Pe.a(n.options),new Ae.a(n.options));n.itemCache=(n.itemCache||[]).concat(s),n.getCache().set(n.key,{item_collection:Re({},t,{entries:n.itemCache})}),n.finish()}})),Be(Fe(n),"searchErrorHandler",(function(e){n.isDestroyed()||n.errorCallback(e,n.errorCode)})),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&&Ue(e,t)}(t,e),n=t,(r=[{key:"getEncodedQuery",value:function(e){return encodeURIComponent(e)}},{key:"getCacheKey",value:function(e,t){return"".concat(m.m).concat(e,"|").concat(t)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/search")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(De.a)();var n=t.entries,r=t.total_count;if(!Array.isArray(n)||"number"!=typeof r)throw Object(De.a)();var o={id:this.id,items:n.map((function(t){return e.get(t)})),offset:this.offset,percentLoaded:100,sortBy:m.Yc,sortDirection:m.df,totalCount:r};this.successCallback(o)}}},{key:"searchRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||Ie.f;return this.errorCode=m.Yb,this.xhr.get({url:this.getUrl(),params:{offset:this.offset,query:this.query,ancestor_folder_ids:this.id,limit:this.limit,fields:n.toString()},headers:n.includes(m.ad)?{"X-Rep-Hints":m.Vf}:{}}).then(this.searchSuccessHandler).catch(this.searchErrorHandler)}},{key:"search",value:function(e,t,n,r,o,i){var a=arguments.length>6&&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(a))}}])&&Ne(n.prototype,r),o&&Ne(n,o),t}(S.a);function ze(e){return(ze="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(){return(Ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ke(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ye=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ze(t)&&"function"!=typeof t?qe(e):t}(this,(e=Ge(t)).call.apply(e,[this].concat(o))),Ke(qe(n),"recentsSuccessHandler",(function(e){var t=e.data;if(!n.isDestroyed()){var r=t.entries,o=t.order,i=o.by,a=o.direction,s=[];r.forEach((function(e){var t=e.item,r=e.interacted_at,o=t.path_collection;(n.id===m.X||!!o&&-1!==o.entries.findIndex((function(e){return e.id===n.id})))&&s.push(Ve(t,{interacted_at:r}))}));var l=Object(Te.a)(s,new _e.a(n.options),new Pe.a(n.options),new Ae.a(n.options));n.getCache().set(n.key,{item_collection:{entries:l,order:[{by:i,direction:a}]}}),n.finish()}})),Ke(qe(n),"recentsErrorHandler",(function(e){n.isDestroyed()||n.errorCallback(e,n.errorCode)})),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&&Xe(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(m.l).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/recent_items")}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache(),t=e.get(this.key).item_collection;if(!t)throw Object(De.a)();var n=t.entries;if(!Array.isArray(n))throw Object(De.a)();var r={id:this.id,items:n.map((function(t){return e.get(t)})),percentLoaded:100,sortBy:m.xc,sortDirection:m.df};this.successCallback(r)}}},{key:"recentsRequest",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this.isDestroyed())return Promise.reject();var t=e.fields,n=t||Ie.f;return this.errorCode=m.Ib,this.xhr.get({url:this.getUrl(),params:{fields:n.toString()},headers:n.includes(m.ad)?{"X-Rep-Hints":m.Vf}:{}}).then(this.recentsSuccessHandler).catch(this.recentsErrorHandler)}},{key:"recents",value:function(e,t,n){var r=arguments.length>3&&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(r)}}}])&&We(n.prototype,r),o&&We(n,o),t}(S.a),Qe=n(18);function Je(e){return(Je="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(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$e(Object(n),!0).forEach((function(t){et(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$e(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tt(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function nt(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){tt(i,r,o,a,s,"next",e)}function s(e){tt(i,r,o,a,s,"throw",e)}a(void 0)}))}}function rt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ot(e,t){return!t||"object"!==Je(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function at(e,t){return(at=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var st=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ot(this,it(t).apply(this,arguments))}var n,r,o,i,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&&at(e,t)}(t,e),n=t,(r=[{key:"getQueryParameters",value:function(e,t,n){var r={offset:e,limit:t};return n&&n.length>0&&(r.fields=n.toString()),r}},{key:"hasMoreItems",value:function(e,t){return void 0===t||e<t}},{key:"offsetGetRequest",value:(a=nt(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c,f,d;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDestroyed()){e.next=2;break}return e.abrupt("return");case 2:return e.prev=2,a=this.getQueryParameters(n,r,i),s=this.getUrl(t),e.next=7,this.xhr.get({url:s,id:Object(Qe.b)(t),params:a});case 7:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=Ze({},u,{entries:c.concat(u.entries)}),f=u.total_count,d=n+r,!o||!this.hasMoreItems(d,f)){e.next=16;break}return this.offsetGetRequest(t,d,r,o,i),e.abrupt("return");case 16:this.successHandler(this.data),e.next=22;break;case 19:e.prev=19,e.t0=e.catch(2),this.errorHandler(e.t0);case 22:case"end":return e.stop()}}),e,this,[[2,19]])}))),function(e,t,n,r,o){return a.apply(this,arguments)})},{key:"offsetGet",value:(i=nt(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o=l.length>3&&void 0!==l[3]?l[3]:m.K,i=l.length>4&&void 0!==l[4]?l[4]:m.J,a=l.length>5?l[5]:void 0,s=!(l.length>6&&void 0!==l[6])||l[6],this.successCallback=n,this.errorCallback=r,e.abrupt("return",this.offsetGetRequest(t,o,i,s,a));case 7:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})}])&&rt(n.prototype,r),o&&rt(n,o),t}(S.a);function lt(e){return(lt="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 ut(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ct(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ct(Object(n),!0).forEach((function(t){yt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ct(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function dt(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function bt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function yt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==lt(t)&&"function"!=typeof t?bt(e):t}(this,(e=ht(t)).call.apply(e,[this].concat(o))),yt(bt(n),"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),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&&mt(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/versions")}},{key:"getVersionUrl",value:function(e,t){if(!t)throw new Error("Missing version id!");return"".concat(this.getUrl(e),"/").concat(t)}},{key:"addPermissions",value:function(e,t){if(!e)return e;var n=e.entries,r=e.total_count,o=v()(t,["permissions",m.ze],!1);return{entries:n.map((function(e){var t=e.permissions;return ft({},dt(e,["permissions"]),{permissions:ft({can_upload:o},t)})})),total_count:r}}},{key:"deleteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=m.sb;try{this.checkApiCallValidity(m.te,r,n)}catch(e){return void t(e,this.errorCode)}this.delete({id:n,url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}},{key:"getVersions",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:m.K,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.J,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:Ie.d,a=!(arguments.length>6&&void 0!==arguments[6])||arguments[6];this.errorCode=m.Nb,this.offsetGet(e,t,n,r,o,i,a)}},{key:"getVersion",value:function(e,t,n,r){this.errorCode=m.Mb,this.get({id:e,successCallback:n,errorCallback:r,url:this.getVersionUrl(e,t),requestData:{params:{fields:Ie.d.toString()}}})}},{key:"addCurrentVersion",value:function(e,t,n){if(!e)return t||{entries:[],total_count:0};if(!t)return{entries:[e],total_count:1};var r=v()(n,"restored_from.id"),o=t.entries.find((function(e){return e.id===r}));return o&&(e.version_promoted=o.version_number),{entries:[].concat(ut(t.entries),[e]),total_count:t.total_count+1}}},{key:"promoteVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=m.Vb;try{this.checkApiCallValidity(m.ze,r,n)}catch(e){return void t(e,this.errorCode)}this.post({id:n,data:{data:{id:i,type:"file_version"}},url:this.getVersionUrl(n,"current"),successCallback:o,errorCallback:t})}},{key:"restoreVersion",value:function(e){var t=e.errorCallback,n=e.fileId,r=e.permissions,o=e.successCallback,i=e.versionId;this.errorCode=m.Xb;try{this.checkApiCallValidity(m.te,r,n)}catch(e){return void t(e,this.errorCode)}this.put({id:n,data:{data:{trashed_at:null}},url:this.getVersionUrl(n,i),successCallback:o,errorCallback:t})}}])&&pt(n.prototype,r),o&&pt(n,o),t}(st);function gt(e){return(gt="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 wt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?wt(Object(n),!0).forEach((function(t){xt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function St(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ot(e){return(Ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function kt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ct(e,t){return(Ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _t=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==gt(t)&&"function"!=typeof t?kt(e):t}(this,(e=Ot(t)).call.apply(e,[this].concat(o))),xt(kt(n),"successHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.successCallback)if(e)if(e.entries){var t=e.entries.map(n.format);n.successCallback(Et({},e,{entries:t}))}else n.successCallback(n.format(e));else n.successCallback()})),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&&Ct(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/comments")}},{key:"commentsUrl",value:function(e){var t="".concat(this.getBaseApiUrl(),"/comments");return e?"".concat(t,"/").concat(e):t}},{key:"format",value:function(e){return Et({},e,{tagged_message:""!==e.tagged_message?e.tagged_message:e.message})}},{key:"createComment",value:function(e){var t=e.file,n=e.message,r=e.taggedMessage,o=e.successCallback,i=e.errorCallback;this.errorCode=m.fb;var a=t.id,s=void 0===a?"":a,l=t.permissions;try{this.checkApiCallValidity(m.re,l,s)}catch(e){return void i(e,this.errorCode)}var u={data:{item:{id:s,type:"file"},message:n,tagged_message:r},params:{fields:Ie.b.toString()}};this.post({id:s,url:this.commentsUrl(),data:u,successCallback:o,errorCallback:i})}},{key:"updateComment",value:function(e){var t=e.file,n=e.commentId,r=e.message,o=e.tagged_message,i=e.permissions,a=e.successCallback,s=e.errorCallback;this.errorCode=m.cc;var l=t.id,u=void 0===l?"":l;try{this.checkApiCallValidity(m.ve,i,u)}catch(e){return void s(e,this.errorCode)}var c={data:{message:r,tagged_message:o}};this.put({id:u,url:this.commentsUrl(n),data:c,successCallback:a,errorCallback:s})}},{key:"deleteComment",value:function(e){var t=e.file,n=e.commentId,r=e.permissions,o=e.successCallback,i=e.errorCallback;this.errorCode=m.nb;var a=t.id,s=void 0===a?"":a;try{this.checkApiCallValidity(m.te,r,s)}catch(e){return void i(e,this.errorCode)}this.delete({id:s,url:this.commentsUrl(n),successCallback:o,errorCallback:i})}},{key:"getComments",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Ie.b,i=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=arguments.length>7?arguments[7]:void 0;this.errorCode=m.yb;try{this.checkApiCallValidity(m.re,t,e)}catch(e){return void r(e,this.errorCode)}this.offsetGet(e,n,r,i,a,o,s)}}])&&St(n.prototype,r),o&&St(n,o),t}(st);function Pt(e){return(Pt="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 At(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function It(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Dt(e,t){return!t||"object"!==Pt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function jt(e){return(jt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Lt(e,t){return(Lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Rt=[m.Pd,m.Md,m.Od,m.Id,m.Qd,m.Ld],Nt=function(e){function t(e){var n=e.retryableStatusCodes,r=void 0===n?Rt:n,o=It(e,["retryableStatusCodes"]);return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(this,jt(t).call(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?At(Object(n),!0).forEach((function(t){Tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):At(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},o,{retryableStatusCodes: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&&Lt(e,t)}(t,e),t}(S.a);function Mt(e){return(Mt="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 Ft(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ft(Object(n),!0).forEach((function(t){Bt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ft(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Bt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ht(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function zt(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wt(e,t){return!t||"object"!==Mt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Xt=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Wt(this,Gt(t).apply(this,arguments))}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&&qt(e,t)}(t,e),n=t,(r=[{key:"getUrlForFileTasks",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/files/").concat(e,"/linked_tasks?limit=").concat(m.e)}},{key:"getUrlForTaskCreateWithDeps",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/with_dependencies")}},{key:"getUrlForTask",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e)}},{key:"getUrlForTaskWithDeps",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/with_dependencies")}},{key:"updateTaskWithDeps",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=m.fc;var i=o.addedAssignees.map((function(e){return{op:e.item&&"group"===e.item.type?"add_task_collaborators_expand_group":"add_task_collaborator",payload:{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}}})),a=o.removedAssignees.map((function(e){return{op:"delete_task_collaborator",id:e.id}})),s=(o.id,o.addedAssignees,o.removedAssignees,zt(o,["id","addedAssignees","removedAssignees"]));this.put({id:n.id,url:this.getUrlForTaskWithDeps(o.id),data:{data:[{op:"update_task",payload:Ut({},s)}].concat(Ht(i),Ht(a))},successCallback:r,errorCallback:t})}},{key:"deleteTask",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=m.qb,this.delete({id:n.id,url:this.getUrlForTask(o.id),successCallback:r,errorCallback:t})}},{key:"getTasksForFile",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback;this.errorCode=m.Kb,this.get({id:n.id,url:this.getUrlForFileTasks(n.id),successCallback:r,errorCallback:t})}},{key:"getTask",value:function(e){var t=e.errorCallback,n=e.file,r=e.id,o=e.successCallback;this.errorCode=m.Kb,this.get({id:n.id,url:this.getUrlForTask(r),successCallback:o,errorCallback:t})}},{key:"createTaskWithDeps",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.assignees;this.errorCode=m.ib;var a=i.map((function(e){return{target:{type:e.item&&"group"===e.item.type?"group":"user",id:e.id}}})),s=[{target:{id:n.id,type:"file"}}],l={task:Ut({},o),assigned_to:a,task_links:s};this.post({id:n.id,url:this.getUrlForTaskCreateWithDeps(),data:{data:Ut({},l)},successCallback:r,errorCallback:t})}}])&&Vt(n.prototype,r),o&&Vt(n,o),t}(Nt),Kt=n(21),Yt=n.n(Kt);function Qt(e){return(Qt="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 Jt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jt(Object(n),!0).forEach((function(t){Zt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Zt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e,t){return!t||"object"!==Qt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nn(e){return(nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var on=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),tn(this,nn(t).apply(this,arguments))}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&&rn(e,t)}(t,e),n=t,(r=[{key:"getUrlForTaskCollaborators",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/tasks/").concat(e,"/task_collaborators?role=ASSIGNEE&limit=").concat(m.e)}},{key:"getUrlForTaskCollaboratorCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators")}},{key:"getUrlForTaskCollaborator",value:function(e){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/").concat(e)}},{key:"getUrlForTaskGroupCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_collaborators/expand_group")}},{key:"createTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.user;this.errorCode=m.jb;var a={data:{task:{type:"task",id:o.id},target:{type:"user",id:i.id}}};this.post({id:n.id,url:this.getUrlForTaskCollaboratorCreate(),data:$t({},a),successCallback:r,errorCallback:t})}},{key:"createTaskCollaboratorsforGroup",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task,i=e.group;this.errorCode=m.jb;var a={data:{task:{type:"task",id:o.id},target:{type:"group",id:i.id}}};this.post({id:n.id,url:this.getUrlForTaskGroupCreate(),data:$t({},a),successCallback:r,errorCallback:t})}},{key:"getTaskCollaborators",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=m.Lb;var i=this.getUrlForTaskCollaborators(o.id);this.get({id:n.id,successCallback:r,errorCallback:t,url:i})}},{key:"updateTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.taskCollaborator;this.errorCode=m.gc;var i={data:Yt()(o,"id")};this.put({id:n.id,url:this.getUrlForTaskCollaborator(o.id),data:$t({},i),successCallback:r,errorCallback:t})}},{key:"deleteTaskCollaborator",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.taskCollaborator;this.errorCode=m.rb,this.delete({id:n.id,url:this.getUrlForTaskCollaborator(o.id),successCallback:r,errorCallback:t})}}])&&en(n.prototype,r),o&&en(n,o),t}(Nt);function an(e){return(an="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 sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(n),!0).forEach((function(t){un(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e,t){return!t||"object"!==an(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function pn(e,t){return(pn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var hn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),fn(this,dn(t).apply(this,arguments))}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&&pn(e,t)}(t,e),n=t,(r=[{key:"getUrlForTaskLinkCreate",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/task_links")}},{key:"createTaskLink",value:function(e){var t=e.errorCallback,n=e.file,r=e.successCallback,o=e.task;this.errorCode=m.kb;var i={data:{target:{id:n.id,type:"file"},task:{id:o.id,type:"task"}}};this.post({id:n.id,url:this.getUrlForTaskLinkCreate(),data:ln({},i),successCallback:r,errorCallback:t})}}])&&cn(n.prototype,r),o&&cn(n,o),t}(Nt);function bn(e){return(bn="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 mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yn(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vn(e){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gn(e,t){return(gn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var wn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),yn(this,vn(t).apply(this,arguments))}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&&gn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/file_access_stats/").concat(e)}},{key:"getFileAccessStats",value:function(e,t,n){this.errorCode=m.ub,this.get({id:e,successCallback:t,errorCallback:n})}}])&&mn(n.prototype,r),o&&mn(n,o),t}(S.a);function En(e){return(En="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 Sn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function On(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sn(Object(n),!0).forEach((function(t){kn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function kn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cn(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function xn(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Cn(i,r,o,a,s,"next",e)}function s(e){Cn(i,r,o,a,s,"throw",e)}a(void 0)}))}}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pn(e,t){return!t||"object"!==En(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function An(e){return(An=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var In=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Pn(this,An(t).apply(this,arguments))}var n,r,o,i,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&&Tn(e,t)}(t,e),n=t,(r=[{key:"hasMoreItems",value:function(e){return null!==e&&""!==e}},{key:"markerGetRequest",value:(a=xn(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=d.length>4&&void 0!==d[4]?d[4]:{},!this.isDestroyed()){e.next=3;break}return e.abrupt("return");case 3:return e.prev=3,a=this.getUrl(t),s=On({},i,{marker:n,limit:r}),e.next=8,this.xhr.get({url:a,id:Object(Qe.b)(t),params:s});case 8:if(l=e.sent,u=l.data,c=this.data?this.data.entries:[],this.data=On({},u,{entries:c.concat(u.entries)}),f=u.next_marker,!o||!this.hasMoreItems(f)){e.next=16;break}return this.markerGetRequest(t,f,r,o,i),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]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"markerGet",value:(i=xn(regeneratorRuntime.mark((function e(t){var n,r,o,i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.successCallback,o=t.errorCallback,i=t.marker,a=void 0===i?"":i,s=t.limit,l=void 0===s?1e3:s,u=t.requestData,c=t.shouldFetchAll,f=void 0===c||c,this.successCallback=r,this.errorCallback=o,e.abrupt("return",this.markerGetRequest(n,a,l,f,u));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return i.apply(this,arguments)})}])&&_n(n.prototype,r),o&&_n(n,o),t}(S.a);function Dn(e){return(Dn="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 jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ln(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mn(e,t){return!t||"object"!==Dn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fn(e){return(Fn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Un(e,t){return(Un=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Bn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Mn(this,Fn(t).apply(this,arguments))}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&&Un(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/groups")}},{key:"getGroupsInEnterprise",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.R;this.errorCode=m.Ab,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:Ln({usemarker:!0},r),shouldFetchAll:!1})}}])&&Nn(n.prototype,r),o&&Nn(n,o),t}(In);function Hn(e){return(Hn="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 zn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?zn(Object(n),!0).forEach((function(t){Wn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Wn(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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qn(e,t){return!t||"object"!==Hn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Xn(e){return(Xn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Kn(e,t){return(Kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Yn=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),qn(this,Xn(t).apply(this,arguments))}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&&Kn(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users")}},{key:"getUsersInEnterprise",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.R;this.errorCode=m.Bb,this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:Vn({usemarker:!0},r),shouldFetchAll:!1})}}])&&Gn(n.prototype,r),o&&Gn(n,o),t}(In);function Qn(e){return(Qn="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 Jn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $n(e,t){return!t||"object"!==Qn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zn(e){return(Zn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function er(e,t){return(er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var tr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),$n(this,Zn(t).apply(this,arguments))}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&&er(e,t)}(t,e),n=t,(r=[{key:"getUrlForGroupCount",value:function(e){return"".concat(this.getBaseApiUrl(),"/groups/").concat(e,"/memberships")}},{key:"getGroupCount",value:function(e){var t=this,n=e.errorCallback,r=void 0===n?i.a:n,o=e.successCallback,a=void 0===o?i.a:o,s=e.group,l=e.file;return new Promise((function(e,n){return t.get({id:l.id,url:t.getUrlForGroupCount(s.id),successCallback:function(){a.apply(void 0,arguments),e.apply(void 0,arguments)},errorCallback:function(){r.apply(void 0,arguments),n()},requestData:{params:{limit:1}}})}))}}])&&Jn(n.prototype,r),o&&Jn(n,o),t}(S.a),nr=n(61),rr=n.n(nr),or=n(60);function ir(e){return(ir="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 ar(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function sr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lr(e,t){return!t||"object"!==ir(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ur(e){return(ur=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function cr(e,t){return(cr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),lr(this,ur(t).apply(this,arguments))}var n,r,o,i,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&&cr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/users/me")}},{key:"getAvatarUrl",value:function(e){if(!e)throw new Error("Missing user id");return"".concat(this.getBaseApiUrl(),"/users/").concat(e,"/avatar")}},{key:"getAvatarUrlWithAccessToken",value:(i=regeneratorRuntime.mark((function e(t,n){var r,o,i,a,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return",null);case 2:if(!(r=this.getCache()).has(t)){e.next=5;break}return e.abrupt("return",r.get(t));case 5:return e.next=7,or.a.getReadToken(Object(Qe.b)(n),this.options.token);case 7:if("string"!=typeof(o=e.sent)){e.next=14;break}return i={access_token:o,pic_type:"large"},a=rr.a.stringify(i),s="".concat(this.getAvatarUrl(t),"?").concat(a),r.set(t,s),e.abrupt("return",s);case 14:return e.abrupt("return",null);case 15:case"end":return e.stop()}}),e,this)})),a=function(){var e=this,t=arguments;return new Promise((function(n,r){var o=i.apply(e,t);function a(e){ar(o,n,r,a,s,"next",e)}function s(e){ar(o,n,r,a,s,"throw",e)}a(void 0)}))},function(e,t){return a.apply(this,arguments)})},{key:"getUser",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this.errorCode=m.zb,this.get({id:e,successCallback:t,errorCallback:n,requestData:r})}}])&&sr(n.prototype,r),o&&sr(n,o),t}(S.a),dr=n(12),pr=n.n(dr);function hr(e){return(hr="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 br(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mr(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function yr(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function vr(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){yr(i,r,o,a,s,"next",e)}function s(e){yr(i,r,o,a,s,"throw",e)}a(void 0)}))}}function gr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wr(e,t){return!t||"object"!==hr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Er(e){return(Er=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Sr(e,t){return(Sr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Or=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),wr(this,Er(t).apply(this,arguments))}var n,r,o,i,a,s,l,u,c,f,d,p,h;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&&Sr(e,t)}(t,e),n=t,(r=[{key:"getMetadataCacheKey",value:function(e){return"".concat(m.j).concat(e)}},{key:"getSkillsCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_skills")}},{key:"getClassificationCacheKey",value:function(e){return"".concat(this.getMetadataCacheKey(e),"_classification")}},{key:"getMetadataUrl",value:function(e,t,n){var r="".concat(this.getUrl(e),"/metadata");return t&&n?"".concat(r,"/").concat(t,"/").concat(n):r}},{key:"getMetadataTemplateUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_templates")}},{key:"getMetadataTemplateUrlForInstance",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"?metadata_instance_id=").concat(e)}},{key:"getMetadataTemplateSchemaUrl",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/enterprise/").concat(e,"/schema")}},{key:"getMetadataTemplateUrlForScope",value:function(e){return"".concat(this.getMetadataTemplateUrl(),"/").concat(e)}},{key:"getCustomPropertiesTemplate",value:function(){return{id:pr()("metadata_template_"),scope:m.Wd,templateKey:m.Zd,hidden:!1}}},{key:"createEditor",value:function(e,t,n){var r={};return Object.keys(e).forEach((function(t){t.startsWith("$")||(r[t]=e[t])})),{template:t,instance:{id:e.$id,canEdit:e.$canEdit&&n,data:r}}}},{key:"getTemplates",value:(h=vr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=m.Hb,o={},i=r?this.getMetadataTemplateUrlForInstance(r):this.getMetadataTemplateUrlForScope(n),e.prev=3,e.next=6,this.xhr.get({url:i,id:Object(Qe.b)(t),params:{limit:m.Yd}});case 6:o=e.sent,e.next=14;break;case 9:if(e.prev=9,e.t0=e.catch(3),a=e.t0.status,!Object(De.d)(a)){e.next=14;break}throw e.t0;case 14:return e.abrupt("return",v()(o,"data.entries",[]));case 15:case"end":return e.stop()}}),e,this,[[3,9]])}))),function(e,t,n){return h.apply(this,arguments)})},{key:"getSchemaByTemplateKey",value:function(e){var t=this.getMetadataTemplateSchemaUrl(e);return this.xhr.get({url:t})}},{key:"getInstances",value:(p=vr(regeneratorRuntime.mark((function e(t){var n,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.errorCode=m.Gb,n={},e.prev=2,e.next=5,this.xhr.get({url:this.getMetadataUrl(t),id:Object(Qe.b)(t)});case 5:n=e.sent,e.next=13;break;case 8:if(e.prev=8,e.t0=e.catch(2),r=e.t0.status,!Object(De.d)(r)){e.next=13;break}throw e.t0;case 13:return e.abrupt("return",v()(n,"data.entries",[]));case 14:case"end":return e.stop()}}),e,this,[[2,8]])}))),function(e){return p.apply(this,arguments)})},{key:"getUserAddableTemplates",value:function(e,t,n,r){var o=[];return n&&(o=r?[e]:[e].concat(t)),o.filter((function(e){return!e.hidden&&e.templateKey!==m.Xd}))}},{key:"extractClassification",value:function(e,t){var n=t.find((function(e){return e.$template===m.Xd}));if(n){t.splice(t.indexOf(n),1);var r=this.getCache(),o=this.getClassificationCacheKey(e);r.set(o,n)}return t}},{key:"getTemplateForInstance",value:(d=vr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=n.$id,i=n.$template,a=n.$scope,(s=r.find((function(e){return e.templateKey===i&&e.scope===a})))||!a.startsWith(m.Vd)){e.next=9;break}return e.next=7,this.getTemplates(t,a,o);case 7:l=e.sent,s=l[0];case 9:return e.abrupt("return",s);case 10:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return d.apply(this,arguments)})},{key:"getEditors",value:(f=vr(regeneratorRuntime.mark((function e(t,n,r,o,i,a){var s,l,u,c=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=[r].concat(o,i),l=this.extractClassification(t,n),u=[],e.next=5,Promise.all(l.map(function(){var e=vr(regeneratorRuntime.mark((function e(n){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c.getTemplateForInstance(t,n,s);case 2:(r=e.sent)&&u.push(c.createEditor(n,r,a));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 5:return e.abrupt("return",u);case 6:case"end":return e.stop()}}),e,this)}))),function(e,t,n,r,o,i){return f.apply(this,arguments)})},{key:"getMetadata",value:(c=vr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d,p,h,b,y,v,g,w=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(i=w.length>4&&void 0!==w[4]?w[4]:{},a=t.id,s=t.permissions,l=t.is_externally_owned,this.errorCode=m.Gb,this.successCallback=n,this.errorCallback=r,a&&s){e.next=8;break}return this.errorHandler(Object(De.a)()),e.abrupt("return");case 8:if(u=this.getCache(),c=this.getMetadataCacheKey(a),i.forceFetch&&u.unset(c),!u.has(c)){e.next=15;break}if(this.successHandler(u.get(c)),i.refreshCache){e.next=15;break}return e.abrupt("return");case 15:return e.prev=15,f=this.getCustomPropertiesTemplate(),e.next=19,Promise.all([this.getInstances(a),this.getTemplates(a,m.Wd),o?this.getTemplates(a,m.Vd):Promise.resolve([])]);case 19:return d=e.sent,p=mr(d,3),h=p[0],b=p[1],y=p[2],e.next=26,this.getEditors(a,h,f,y,b,!!s.can_upload);case 26:v=e.sent,g={editors:v,templates:this.getUserAddableTemplates(f,y,o,l)},u.set(c,g),this.isDestroyed()||this.successHandler(g),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]])}))),function(e,t,n,r){return c.apply(this,arguments)})},{key:"getSkills",value:(u=vr(regeneratorRuntime.mark((function e(t,n,r){var o,i,a,s,l,u,c=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=c.length>3&&void 0!==c[3]&&c[3],this.errorCode=m.Jb,i=t.id){e.next=6;break}return r(Object(De.a)(),this.errorCode),e.abrupt("return");case 6:if(a=this.getCache(),s=this.getSkillsCacheKey(i),this.successCallback=n,this.errorCallback=r,o&&a.unset(s),!a.has(s)){e.next=14;break}return this.successHandler(a.get(s)),e.abrupt("return");case 14:if(l={data:v()(t,m.Oc)},e.prev=15,l.data){e.next=20;break}return e.next=19,this.xhr.get({url:this.getMetadataUrl(i,m.Wd,m.ae),id:Object(Qe.b)(i)});case 19:l=e.sent;case 20:this.isDestroyed()||(u=l.data.cards||[],a.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]])}))),function(e,t,n){return u.apply(this,arguments)})},{key:"updateSkills",value:(l=vr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.ec,i=t.id,a=t.permissions,i&&a){e.next=5;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 5:if(a.can_upload){e.next=8;break}return o(Object(De.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(i,m.Wd,m.ae),headers:br({},m.Bd,"application/json-patch+json"),id:Object(Qe.b)(i),data:n});case 13:s=e.sent,this.isDestroyed()||(l=s.data.cards||[],this.merge(this.getCacheKey(i),m.Oc,s.data),this.getCache().set(this.getSkillsCacheKey(i),l),this.successHandler(l)),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]])}))),function(e,t,n,r){return l.apply(this,arguments)})},{key:"updateMetadata",value:(s=vr(regeneratorRuntime.mark((function e(t,n,r,o,i){var a,s,l,u,c,f,d,p;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.dc,this.successCallback=o,this.errorCallback=i,a=t.id,s=t.permissions,a&&s){e.next=7;break}return this.errorHandler(Object(De.a)()),e.abrupt("return");case 7:if(l=!!s.can_upload){e.next=11;break}return this.errorHandler(Object(De.b)()),e.abrupt("return");case 11:return e.prev=11,e.next=14,this.xhr.put({url:this.getMetadataUrl(a,n.scope,n.templateKey),headers:br({},m.Bd,"application/json-patch+json"),id:Object(Qe.b)(a),data:r});case 14:u=e.sent,this.isDestroyed()||(c=this.getCache(),f=this.getMetadataCacheKey(a),d=c.get(f),p=this.createEditor(u.data,n,l),d&&d.editors&&d.editors.splice(d.editors.findIndex((function(e){return e.instance.id===p.instance.id})),1,p),this.successHandler(p)),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]])}))),function(e,t,n,r,o){return s.apply(this,arguments)})},{key:"createMetadata",value:(a=vr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f,d,p,h;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.hb,t&&n){e.next=4;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 4:if(i=t.id,a=t.permissions,s=t.is_externally_owned,i&&a){e.next=8;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 8:if(l=!!a.can_upload,u=n.templateKey===m.Zd&&n.scope===m.Wd,l&&(!s||u)){e.next=13;break}return o(Object(De.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(i,n.scope,n.templateKey),id:Object(Qe.b)(i),data:{}});case 18:c=e.sent,this.isDestroyed()||(f=this.getCache(),d=this.getMetadataCacheKey(i),p=f.get(d),h=this.createEditor(c.data,n,l),p.editors.push(h),this.successHandler(h)),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]])}))),function(e,t,n,r){return a.apply(this,arguments)})},{key:"deleteMetadata",value:(i=vr(regeneratorRuntime.mark((function e(t,n,r,o){var i,a,s,l,u,c,f;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.errorCode=m.pb,t&&n){e.next=4;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 4:if(i=n.scope,a=n.templateKey,s=t.id,l=t.permissions,s&&l){e.next=9;break}return o(Object(De.a)(),this.errorCode),e.abrupt("return");case 9:if(l.can_upload){e.next=12;break}return o(Object(De.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,i,a),id:Object(Qe.b)(s)});case 17:this.isDestroyed()||(u=this.getCache(),c=this.getMetadataCacheKey(s),(f=u.get(c)).editors.splice(f.editors.findIndex((function(e){return e.template.scope===i&&e.template.templateKey===a})),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]])}))),function(e,t,n,r){return i.apply(this,arguments)})}])&&gr(n.prototype,r),o&&gr(n,o),t}(Pe.a);function kr(e){return(kr="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 Cr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function xr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _r(e){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e,t){return(Ar=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ir=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==kr(t)&&"function"!=typeof t?Pr(e):t}(this,(e=_r(t)).call.apply(e,[this].concat(o))),Tr(Pr(n),"successHandler",(function(e){if(!n.isDestroyed()&&"function"==typeof n.successCallback){var t=e.entries.map((function(e){var t;return"group"===e.type?t=e:(t=e).email=t.login,{id:e.id,name:e.name,item:t}}));n.successCallback(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cr(Object(n),!0).forEach((function(t){Tr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{entries:t}))}})),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,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborators")}},{key:"getFileCollaborators",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.Q;this.markerGet({id:e,limit:o,successCallback:t,errorCallback:n,requestData:r})}}])&&xr(n.prototype,r),o&&xr(n,o),t}(In);function Dr(e){return(Dr="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 jr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lr(e){return(Lr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Rr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nr(e,t){return(Nr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fr=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Dr(t)&&"function"!=typeof t?Rr(e):t}(this,(e=Lr(t)).call.apply(e,[this].concat(o))),Mr(Rr(n),"getCollaborations",(function(e,t,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:m.Q;n.markerGet({id:e,limit:i,successCallback:t,errorCallback:r,requestData:o})})),Mr(Rr(n),"successHandler",(function(e){n.isDestroyed()||"function"!=typeof n.successCallback||n.successCallback(e)})),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&&Nr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){return"getUrl(".concat(e,") should be overridden")}}])&&jr(n.prototype,r),o&&jr(n,o),t}(In);function Ur(e){return(Ur="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 Br(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Hr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zr(e){return(zr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Vr(e,t){return(Vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Wr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Hr(this,zr(t).apply(this,arguments))}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&&Vr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file ID!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/collaborations")}}])&&Br(n.prototype,r),o&&Br(n,o),t}(Fr);function Gr(e){return(Gr="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 qr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return!t||"object"!==Gr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Kr(e){return(Kr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Yr(e,t){return(Yr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Qr=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Xr(this,Kr(t).apply(this,arguments))}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&&Yr(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing folder ID!");return"".concat(this.getBaseApiUrl(),"/folders/").concat(e,"/collaborations")}}])&&qr(n.prototype,r),o&&qr(n,o),t}(Fr);function Jr(e){return(Jr="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,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$r(Object(n),!0).forEach((function(t){oo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function eo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function no(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ro(e,t){return(ro=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var io=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Jr(t)&&"function"!=typeof t?no(e):t}(this,(e=to(t)).call.apply(e,[this].concat(o))),oo(no(n),"addCollaboration",(function(e,t,r,o){var i=e.id;n.post({id:i,data:{data:Zr({item:e},t)},errorCallback:o,successCallback:r,url:n.getUrl()})})),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&&ro(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/collaborations")}}])&&eo(n.prototype,r),o&&eo(n,o),t}(S.a),ao=n(4),so=n(32);function lo(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce((function(e,t){return t?e.concat(t.entries):e}),[]).sort((function(e,t){return Date.parse(e.created_at)-Date.parse(t.created_at)}))}var uo=n(103),co=n.n(uo);function fo(e){return(fo="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 po(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ho(e,t){return!t||"object"!==fo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function bo(e){return(bo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function mo(e,t){return(mo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var yo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ho(this,bo(t).apply(this,arguments))}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&&mo(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/undoc/annotations")}},{key:"getUrlForId",value:function(e){return"".concat(this.getUrl(),"/").concat(e)}},{key:"createAnnotation",value:function(e,t,n,r,o,i){this.errorCode=m.eb;try{this.checkApiCallValidity(m.se,r,e)}catch(e){return void i(e,this.errorCode)}var a={description:{type:"reply"},file_version:{id:t,type:"file_version"},status:"open",type:"annotation"};this.post({id:e,data:{data:co()(a,n)},errorCallback:i,successCallback:o,url:this.getUrl()})}},{key:"deleteAnnotation",value:function(e,t,n,r,o){this.errorCode=m.lb;try{this.checkApiCallValidity(m.te,n,e)}catch(e){return void o(e,this.errorCode)}this.delete({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}},{key:"getAnnotation",value:function(e,t,n,r,o){this.errorCode=m.wb;try{this.checkApiCallValidity(m.Ae,n,e)}catch(e){return void o(e,this.errorCode)}this.get({id:e,errorCallback:o,successCallback:r,url:this.getUrlForId(t)})}},{key:"getAnnotations",value:function(e,t,n,r,o,i,a){this.errorCode=m.xb;try{this.checkApiCallValidity(m.Ae,n,e)}catch(e){return void o(e,this.errorCode)}this.markerGet({id:e,errorCallback:o,limit:i,requestData:{file_id:e,file_version_id:t},shouldFetchAll:a,successCallback:r})}}])&&po(n.prototype,r),o&&po(n,o),t}(In);function vo(e){return(vo="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 go(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wo(e){return(wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function So(e,t){return(So=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ko=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==vo(t)&&"function"!=typeof t?Eo(e):t}(this,(e=wo(t)).call.apply(e,[this].concat(o))),Oo(Eo(n),"permissions",{}),Oo(Eo(n),"mapAppActivityItem",(function(e){var t=e.activity_template,r=e.app,o=e.created_by,i=e.id,a=e.occurred_at,s=e.rendered_text,l=e.type;return{activity_template:t,app:r,created_at:a,created_by:o,id:i,permissions:{can_delete:n.permissions.can_delete},rendered_text:s,type:l}})),Oo(Eo(n),"successHandler",(function(e){var t=e.entries,r=void 0===t?[]:t;if(!n.isDestroyed()&&"function"==typeof n.successCallback){var o=r.map(n.mapAppActivityItem);n.successCallback({entries:o,total_count:o.length})}})),Oo(Eo(n),"errorHandler",(function(e){if(!n.isDestroyed()||"function"==typeof n.errorCallback){var t=e.response;t.status===m.Nd?n.successHandler({entries:[],total_count:0}):n.errorCallback(e,t.status)}})),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&&So(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/app_activities")}},{key:"getDeleteUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getUrl(),"/").concat(e)}},{key:"getAppActivity",value:function(e,t,n,r){var o={item_id:e,item_type:"file",fields:Ie.a.toString()};this.permissions=t,this.markerGet({id:e,successCallback:n,errorCallback:r,requestData:o})}},{key:"deleteAppActivity",value:function(e){var t=e.id,n=e.appActivityId,r=e.successCallback,o=e.errorCallback;this.errorCode=m.mb,this.delete({id:t,url:this.getDeleteUrl(n),successCallback:r,errorCallback:o})}}])&&go(n.prototype,r),o&&go(n,o),t}(In);function Co(e){return(Co="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 xo(e){return function(e){if(Array.isArray(e))return e}(e)||Po(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function _o(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||Po(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Po(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function Ao(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function To(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Io(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?To(Object(n),!0).forEach((function(t){Mo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Do(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lo(e,t,n){return(Lo="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ro(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Ro(e){return(Ro=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function No(e,t){return(No=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fo=m.sf,Uo="task",Bo=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"!==Co(t)&&"function"!=typeof t?jo(e):t}(this,Ro(t).call(this,e)),Mo(jo(n),"deleteAnnotation",(function(e,t,r,o,i){if(n.annotationsAPI=new yo(n.options),!e.id)throw Object(De.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.annotationsAPI.deleteAnnotation(n.file.id,t,r,n.deleteFeedItem.bind(jo(n),t,o),(function(e,r){n.deleteCommentErrorCallback(e,r,t)}))})),Mo(jo(n),"updateTaskCollaborator",(function(e,t,r,o,i,a){if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=a,n.updateFeedItem({isPending:!0},t);var s=new on(n.options);n.taskCollaboratorsAPI.push(s);var l={id:r,status:o},u=function(e,r){var i;switch(o){case m.pf:i=so.a.taskApproveErrorMessage;break;case m.qf:i=so.a.taskCompleteErrorMessage;break;case m.tf:i=so.a.taskRejectErrorMessage;break;default:i=so.a.taskCompleteErrorMessage}n.updateFeedItem(n.createFeedError(i,so.a.taskActionErrorTitle),t),n.feedErrorCallback(!0,e,r)};s.updateTaskCollaborator({file:e,taskCollaborator:l,successCallback:function(r){n.updateTaskCollaboratorSuccessCallback(t,e,r,i,u)},errorCallback:u})})),Mo(jo(n),"updateTaskCollaboratorSuccessCallback",(function(e,t,r,o,i){n.tasksNewAPI=new Xt(n.options),n.tasksNewAPI.getTask({id:e,file:t,successCallback:function(t){n.updateFeedItem(Io({},t,{isPending:!1}),e),o(r)},errorCallback:i})})),Mo(jo(n),"updateTaskNew",function(){var e,t=(e=regeneratorRuntime.mark((function e(t,r){var o,a,s,l,u,c,f=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=f.length>2&&void 0!==f[2]?f[2]:i.a,a=f.length>3&&void 0!==f[3]?f[3]:i.a,t.id){e.next=4;break}throw Object(De.a)();case 4:return n.file=t,n.errorCallback=a,n.tasksNewAPI=new Xt(n.options),n.updateFeedItem({isPending:!0},r.id),e.prev=8,s=r.addedAssignees.filter((function(e){return e.item&&"group"===e.item.type})).map((function(e){return e.id})).map((function(e){return new tr(n.options).getGroupCount({file:t,group:{id:e}})})),e.next=12,Promise.all(s);case 12:if(l=e.sent,u=l.some((function(e){return e.total_count>m.of})),c={code:m.Qb,type:"warning"},!u){e.next=18;break}return n.feedErrorCallback(!1,c,m.Qb),e.abrupt("return");case 18:return e.next=20,new Promise((function(e,o){n.tasksNewAPI.updateTaskWithDeps({file:t,task:r,successCallback:e,errorCallback:o})}));case 20:return e.next=22,new Promise((function(e,o){n.tasksNewAPI.getTask({file:t,id:r.id,successCallback:function(t){n.updateFeedItem(Io({},t,{isPending:!1}),r.id),e()},errorCallback:function(e){n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e,m.fc),o()}})}));case 22:n.isDestroyed()||o(),e.next=29;break;case 25:e.prev=25,e.t0=e.catch(8),n.updateFeedItem({isPending:!1},r.id),n.feedErrorCallback(!1,e.t0,m.fc);case 29:case"end":return e.stop()}}),e,null,[[8,25]])})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ao(i,r,o,a,s,"next",e)}function s(e){Ao(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e,n){return t.apply(this,arguments)}}()),Mo(jo(n),"deleteComment",(function(e,t,r,o,i){if(n.commentsAPI=new _t(n.options),!e.id)throw Object(De.a)();n.file=e,n.errorCallback=i,n.updateFeedItem({isPending:!0},t),n.commentsAPI.deleteComment({file:e,commentId:t,permissions:r,successCallback:n.deleteFeedItem.bind(jo(n),t,o),errorCallback:function(e,r){n.deleteCommentErrorCallback(e,r,t)}})})),Mo(jo(n),"deleteCommentErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(so.a.commentDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),Mo(jo(n),"createTaskNew",(function(e,t,r,o,i,a,s,l,u){if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=u;var c,f=pr()("task_");a&&(c=new Date(a).toISOString());var d={created_by:{type:"task_collaborator",target:t,id:pr()(),role:"CREATOR",status:Fo},completion_rule:s,created_at:(new Date).toISOString(),due_at:c,id:f,description:r,type:Uo,assigned_to:{entries:o.map((function(e){return{id:pr()(),target:Io({},e,{avatar_url:"",type:"user"}),status:Fo,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:pr()(),type:"task_link",target:Io({type:"file"},e),permissions:{can_delete:!1,can_update:!1}}],limit:1,next_marker:null},task_type:i,status:m.sf},p={description:r,due_at:c,task_type:i,completion_rule:s},h=o.filter((function(e){return"group"===(e.item&&e.item.type)})).map((function(e){return e.id})).map((function(t){return new tr(n.options).getGroupCount({file:e,group:{id:t}})}));Promise.all(h).then((function(r){var i=r.some((function(e){return e.total_count>m.of})),a={code:m.Qb,type:"warning"};i?n.feedErrorCallback(!1,a,m.Qb):(n.tasksNewAPI=new Xt(n.options),n.tasksNewAPI.createTaskWithDeps({file:e,task:p,assignees:o,successCallback:function(e){n.addPendingItem(n.file.id,t,d),n.updateFeedItem(Io({},e,{task_links:{entries:e.task_links,next_marker:null,limit:1},assigned_to:{entries:e.assigned_to,next_marker:null,limit:e.assigned_to.length},isPending:!1}),f),l(e)},errorCallback:function(e,t){n.feedErrorCallback(!1,e,t)}}))})).catch((function(e){n.feedErrorCallback(!1,e,m.ib)}))})),Mo(jo(n),"deleteTaskNew",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:i.a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:i.a;if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=o,n.tasksNewAPI=new Xt(n.options),n.updateFeedItem({isPending:!0},t.id),n.tasksNewAPI.deleteTask({file:e,task:t,successCallback:n.deleteFeedItem.bind(jo(n),t.id,r),errorCallback:function(e,r){n.updateFeedItem(n.createFeedError(so.a.taskDeleteErrorMessage),t.id),n.feedErrorCallback(!0,e,r)}})})),Mo(jo(n),"deleteFeedItem",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.a,r=n.getCachedItems(n.file.id);if(r){var o=r.items.filter((function(t){return t.id!==e}));n.setCachedItems(n.file.id,o),n.isDestroyed()||t(e)}})),Mo(jo(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.errors.push(Io({},t,{code:r})),!n.isDestroyed()&&n.errorCallback&&n.errorCallback(t,r,Mo({error:t},m.Td,e)),console.error(t)})),Mo(jo(n),"addPendingItem",(function(e,t,r){if(!t)throw Object(De.c)();var o=(new Date).toISOString(),i=Io({created_at:o,created_by:t,modified_at:o,isPending:!0},r),a=n.getCachedItems(n.file.id),s=a?a.items:[],l=[].concat(_o(s),[i]);return n.setCachedItems(e,l),i})),Mo(jo(n),"createCommentSuccessCallback",(function(e,t,r){var o=e.message,i=void 0===o?"":o,a=e.tagged_message,s=void 0===a?"":a;e.tagged_message=s||i,n.updateFeedItem(Io({},e,{isPending:!1}),t),n.isDestroyed()||r(e)})),Mo(jo(n),"createCommentErrorCallback",(function(e,t,r){var o=e.status===m.Jd?so.a.commentCreateConflictMessage:so.a.commentCreateErrorMessage;n.updateFeedItem(n.createFeedError(o),r),n.feedErrorCallback(!1,e,t)})),Mo(jo(n),"updateFeedItem",(function(e,t){if(!n.file.id)throw Object(De.a)();var r=n.getCachedItems(n.file.id);if(r){var o=r.items.map((function(n){return n.id===t?Io({},n,{},e):n}));return n.setCachedItems(n.file.id,o),o}return null})),Mo(jo(n),"createComment",(function(e,t,r,o,i,a){var s=pr()("comment_"),l={id:s,tagged_message:r,type:"comment"};if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=a,n.addPendingItem(n.file.id,t,l);var u={};o?u.taggedMessage=r:u.message=r,n.commentsAPI=new _t(n.options),n.commentsAPI.createComment(Io({file:e},u,{successCallback:function(e){n.createCommentSuccessCallback(e,s,i)},errorCallback:function(e,t){n.createCommentErrorCallback(e,t,s)}}))})),Mo(jo(n),"updateComment",(function(e,t,r,o,i,a,s){var l={tagged_message:r};if(!e.id)throw Object(De.a)();n.file=e,n.errorCallback=s,n.updateFeedItem(Io({},l,{isPending:!0}),t);var u={};o?u.tagged_message=r:u.message=r,n.commentsAPI=new _t(n.options),n.commentsAPI.updateComment(Io({file:e,commentId:t,permissions:i},u,{successCallback:function(e){n.updateFeedItem(Io({},u,{isPending:!1}),t),n.isDestroyed()||a(e)},errorCallback:function(e,t){n.feedErrorCallback(!0,e,t)}}))})),Mo(jo(n),"deleteAppActivity",(function(e,t,r,o){var i=e.id;if(!i)throw Object(De.a)();n.appActivityAPI=new ko(n.options),n.file=e,n.errorCallback=o,n.updateFeedItem({isPending:!0},t),n.appActivityAPI.deleteAppActivity({id:i,appActivityId:t,successCallback:n.deleteFeedItem.bind(jo(n),t,r),errorCallback:function(e,r){n.deleteAppActivityErrorCallback(e,r,t)}})})),Mo(jo(n),"deleteAppActivityErrorCallback",(function(e,t,r){n.updateFeedItem(n.createFeedError(so.a.appActivityDeleteErrorMessage),r),n.feedErrorCallback(!0,e,t)})),n.taskCollaboratorsAPI=[],n.taskLinksAPI=[],n.errors=[],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&&No(e,t)}(t,e),n=t,(r=[{key:"addAnnotation",value:function(e,t,n,r,o){if(!e.id)throw Object(De.a)();if(this.file=e,o){var i=Io({},n,{created_by:t,id:r,type:"annotation"});this.addPendingItem(this.file.id,t,i)}else this.updateFeedItem(Io({},n,{isPending:!1}),r)}},{key:"getCacheKey",value:function(e){return"".concat(m.wf).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,{errors:this.errors,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]:{},s=a.shouldShowAnnotations,l=void 0!==s&&s,u=a.shouldShowAppActivity,c=void 0!==u&&u,f=e.id,d=e.permissions,p=void 0===d?{}:d,h=this.getCachedItems(f);if(h){var b=h.errors,m=h.items;if(b.length?r(m,b):n(m),!t)return}this.file=e,this.errors=[],this.errorCallback=o;var y=l?this.fetchAnnotations(p):Promise.resolve(),v=this.fetchVersions(),g=this.fetchCurrentVersion(),w=this.fetchComments(p),E=this.fetchTasksNew(),S=c?this.fetchAppActivity(p):Promise.resolve();Promise.all([v,g,w,E,S,y]).then((function(e){var t=xo(e),o=t[0],a=t[1],s=t.slice(2),l=i.versionsAPI.addCurrentVersion(a,o,i.file),u=lo.apply(void 0,[l].concat(_o(s)));i.isDestroyed()||(i.setCachedItems(f,u),i.errors.length?r(u,i.errors):n(u))}))}))},{key:"fetchAnnotations",value:function(e){var t=this;return this.annotationsAPI=new yo(this.options),new Promise((function(n){t.annotationsAPI.getAnnotations(t.file.id,void 0,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchComments",value:function(e){var t=this;return this.commentsAPI=new _t(this.options),new Promise((function(n){t.commentsAPI.getComments(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"fetchVersions",value:function(){var e=this;return this.versionsAPI=new vt(this.options),new Promise((function(t){e.versionsAPI.getVersions(e.file.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchCurrentVersion",value:function(){var e=this;return this.versionsAPI=new vt(this.options),new Promise((function(t){var n=e.file.file_version,r=void 0===n?{}:n;e.versionsAPI.getVersion(e.file.id,r.id,t,e.fetchFeedItemErrorCallback.bind(e,t))}))}},{key:"fetchTasksNew",value:function(){var e=this;return this.tasksNewAPI=new Xt(this.options),new Promise((function(t){e.tasksNewAPI.getTasksForFile({file:{id:e.file.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(De.d)(r);this.feedErrorCallback(o,t,n),e()}},{key:"createTaskCollaboratorsforGroup",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(o,i){var a=new on(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaboratorsforGroup({file:e,task:t,group:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(o,i){var a=new on(r.options);r.taskCollaboratorsAPI.push(a),a.createTaskCollaborator({file:e,task:t,user:n,successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"deleteTaskCollaborator",value:function(e,t,n){var r=this;if(!e.id)throw Object(De.a)();return this.file.id=e.id,new Promise((function(o,i){var a=new on(r.options);r.taskCollaboratorsAPI.push(a),a.deleteTaskCollaborator({file:e,task:t,taskCollaborator:{id:n.id},successCallback:o,errorCallback:function(e){i(e)}})}))}},{key:"createTaskLink",value:function(e,t){var n=this;if(!e.id)throw Object(De.a)();return this.file=e,new Promise((function(r,o){var i=new hn(n.options);n.taskLinksAPI.push(i),i.createTaskLink({file:e,task:t,successCallback:r,errorCallback:o})}))}},{key:"createFeedError",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ao.a.errorOccured;return{error:{message:e,title:t}}}},{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 ko(this.options),new Promise((function(n){t.appActivityAPI.getAppActivity(t.file.id,e,n,t.fetchFeedItemErrorCallback.bind(t,n))}))}},{key:"destroy",value:function(){Lo(Ro(t.prototype),"destroy",this).call(this),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),this.commentsAPI&&(this.commentsAPI.destroy(),delete this.commentsAPI),this.versionsAPI&&(this.versionsAPI.destroy(),delete this.versionsAPI),this.appActivityAPI&&(this.appActivityAPI.destroy(),delete this.appActivityAPI),this.tasksNewAPI&&(this.tasksNewAPI.destroy(),delete this.tasksNewAPI),this.destroyTaskCollaborators(),this.destroyTaskLinks()}}])&&Do(n.prototype,r),o&&Do(n,o),t}(S.a);function Ho(e){return(Ho="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 zo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vo(e,t){return!t||"object"!==Ho(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Wo(e){return(Wo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Go(e,t){return(Go=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var qo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Vo(this,Wo(t).apply(this,arguments))}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&&Go(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing app integration id!");return"".concat(this.getBaseApiUrl(),"/app_integrations/").concat(e)}},{key:"execute",value:function(e,t,n,r){if(!e)throw new Error("Missing integration id!");if(!t)throw new Error("Missing file id!");this.errorCode=m.tb;var o="".concat(this.getUrl(e),"/execute"),i={data:{item:{id:t,type:m.zf}}};this.post({id:t,url:o,data:i,successCallback:n,errorCallback:r})}}])&&zo(n.prototype,r),o&&zo(n,o),t}(S.a);function Xo(e){return(Xo="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 Ko(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qo(e,t){return!t||"object"!==Xo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Jo(e){return(Jo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function $o(e,t){return($o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Zo=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Qo(this,Jo(t).apply(this,arguments))}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&&$o(e,t)}(t,e),n=t,(r=[{key:"getUrl",value:function(e){if(!e)throw new Error("Missing file id!");return"".concat(this.getBaseApiUrl(),"/files/").concat(e,"/open_with_integrations")}},{key:"getOpenWithIntegrations",value:function(e,t,n){var r=this;this.errorCode=m.Fb,this.get({id:e,successCallback:function(e){var n=r.formatOpenWithData(e),o=r.consolidateBoxEditIntegrations(n);t(o)},errorCallback:n})}},{key:"consolidateBoxEditIntegrations",value:function(e){var t=Ko(e);return e.some((function(e){return e.appIntegrationId===m.f}))&&(t=e.filter((function(e){return e.appIntegrationId!==m.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,s=e.is_disabled,l=e.should_show_consent_popup,u=t.id,c=t.type;return{appIntegrationId:u,displayDescription:i,disabledReasons:r||[],displayOrder:a,isDefault:!!n&&u===n.id,isDisabled:s,displayName:o,requiresConsent:l,type:c}})).sort((function(e,t){return e.displayOrder-t.displayOrder}))}}])&&Yo(n.prototype,r),o&&Yo(n,o),t}(S.a);function ei(e){return(ei="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 ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ni(e){return(ni=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ri(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oi(e,t){return(oi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ii=function(e){function t(){var e,n,r,o,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n=function(e,t){return!t||"object"!==ei(t)&&"function"!=typeof t?ri(e):t}(this,(e=ni(t)).call.apply(e,[this].concat(s))),r=ri(n),i=function(e){var t=e.data;n.getCache().set(n.key,t),n.finish()},(o="queryMetadataSuccessHandler")in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,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&&oi(e,t)}(t,e),n=t,(r=[{key:"getCacheKey",value:function(e){return"".concat(m.k).concat(e)}},{key:"getUrl",value:function(){return"".concat(this.getBaseApiUrl(),"/metadata_queries/execute_read")}},{key:"isLoaded",value:function(){return this.getCache().has(this.key)}},{key:"finish",value:function(){if(!this.isDestroyed()){var e=this.getCache().get(this.key);this.successCallback(e)}}},{key:"queryMetadataRequest",value:function(e){this.isDestroyed()||(this.errorCode=m.Ub,this.xhr.post({url:this.getUrl(),data:e}).then(this.queryMetadataSuccessHandler).catch(this.errorHandler))}},{key:"queryMetadata",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!this.isDestroyed()){var o=r.context,i=void 0===o?{}:o;this.key=this.getCacheKey(i.id),this.successCallback=t,this.errorCallback=n,r.forceFetch&&this.getCache().unset(this.key),this.isLoaded()?this.finish():this.queryMetadataRequest(e)}}}])&&ti(n.prototype,r),o&&ti(n,o),t}(S.a);function ai(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var si={CHROME:"Chrome",EDGE:"Edge",FIREFOX:"Firefox",MAC:"Mac",SAFARI:"Safari",IE:"Explorer"},li=[{key:"userAgent",subString:si.EDGE,identity:si.EDGE},{key:"userAgent",subString:si.CHROME,identity:si.CHROME},{key:"userAgent",subString:"criOS",identity:si.CHROME,versionSearch:"criOS"},{key:"vendor",subString:"Apple",identity:si.SAFARI,versionSearch:"Version"},{key:"userAgent",subString:si.FIREFOX,identity:si.FIREFOX},{key:"userAgent",subString:"MSIE",identity:"Explorer",versionSearch:"MSIE"},{key:"userAgent",subString:"Trident",identity:"Explorer",versionSearch:"rv"},{key:"userAgent",subString:"Gecko",identity:"Mozilla",versionSearch:"rv"}],ui=[{key:"platform",subString:"Win",identity:"Windows"},{key:"userAgent",subString:"iPod",identity:"iOS",device:"iPod"},{key:"userAgent",subString:"iPhone",identity:"iOS",device:"iPhone"},{key:"userAgent",subString:"iPad",identity:"iOS",device:"iPad"},{key:"platform",subString:si.MAC,identity:si.MAC},{key:"userAgent",subString:"Android",identity:"Android"},{key:"platform",subString:"Linux",identity:"Linux"}];function ci(e,t){for(var n,r=null,o=null,i="",a=0,s=t.length;a<s;a+=1)if(n=e[t[a].key],i=t[a].versionSearch||t[a].identity,n&&-1!==n.indexOf(t[a].subString)){r=t[a].identity,o=t[a].device;break}return{identity:r,device:o,versionSearchString:i}}function fi(e,t){var n=e.indexOf(t);if(-1===n)return"";var r=e.substring(n+t.length+1).match(/[0-9]+(?:\.[0-9]*)?/);return r&&r.length?r[0]:""}var di=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var t=window.navigator,n=ci(t,li),r=ci(t,ui);this.browser=n.identity||"unknown",this.version=fi(t.userAgent,n.versionSearchString)||fi(t.appVersion,n.versionSearchString)||"unknown",this.OS=r.identity||"unknown",this.device=r.device||"unknown"}var t,n,r;return t=e,(n=[{key:"getName",value:function(){return this.browser}},{key:"getVersion",value:function(){return this.version}},{key:"isMinBrowser",value:function(e,t){return this.browser.toLowerCase()===e.toLowerCase()&&parseFloat(this.version)>=parseFloat(t)}},{key:"isSafari",value:function(){return this.browser===si.SAFARI}},{key:"isFirefox",value:function(){return this.browser===si.FIREFOX}},{key:"isChrome",value:function(){return this.browser===si.CHROME}},{key:"isIE",value:function(){return this.browser===si.IE}},{key:"isEdge",value:function(){return this.browser===si.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(e){n=!1}return n}(e)}}])&&ai(t.prototype,n),r&&ai(t,r),e}());var pi=function(e){var t,n=[],r=0;return new Promise((function(o,i){e.forEach((function(a,s){a.then(o).catch(function(o){return function(a){n[o]=a,(r+=1)===e.length&&(t=new Error("no promises resolved"),i(t))}}(s))}))}))},hi={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 bi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function mi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yi=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),mi(this,"buildNextRequestID",(function(){return"".concat(hi.REQUEST_ID_PRE).concat(n.window.performance.now())})),mi(this,"buildDetailsObj",(function(e,t,r){var o=r.toString(),i={data:void 0,operation:e,properties:{application:n.appName,timeout:o},req_id:n.buildNextRequestID()};if(e!==hi.OPERATION_STATUS){if(!t)throw new TypeError("Data cannot be undefined for ".concat(e));i.data=t}return i})),this.appName=t,this.window=window}var t,n,r;return t=e,(n=[{key:"sendCommand",value:function(e,t,n){return Promise.resolve("TODO")}},{key:"sendRequest",value:function(e,t,n){return Promise.resolve("TODO")}},{key:"getComServerStatus",value:function(e,t){return Promise.resolve("TODO")}},{key:"destroy",value:function(){}}])&&bi(t.prototype,n),r&&bi(t,r),e}();function vi(e){return(vi="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 gi(e){return(gi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function wi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ei(e,t){return(Ei=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oi=2,ki=function(e){function t(e,n){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),r=function(e,t){return!t||"object"!==vi(t)&&"function"!=typeof t?wi(e):t}(this,gi(t).call(this,e)),Si(wi(r),"executeOperation",(function(){var e=arguments.length>0&&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 s=r.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:hi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),n);r.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),r.executeActiveXEvent({detail:s})}))})),Si(wi(r),"repairActiveXConnection",(function(e){di.isIEAndSpecificBrowserPluginSupported(hi.BOX_TOOLS_PLUGIN_NAME)&&(r.retryAttempt>=Oi||(r.retryAttempt+=1,setTimeout((function(){r.executeActiveXEvent(e)}),100)))})),Si(wi(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(t){r.repairActiveXConnection(e)}})),Si(wi(r),"createActiveXObjectJSRef",(function(){return new(0,r.window.ActiveXObject)(hi.BOX_TOOLS_PLUGIN_NAME)})),Si(wi(r),"setupActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached||(r.document.addEventListener(hi.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!0)})),Si(wi(r),"tearDownActiveXCommunication",(function(){r.isActiveXExtensionListenerAttached&&(r.document.removeEventListener(hi.OUTPUT_EVENT,r.appExtensionEventResponseHandler),r.isActiveXExtensionListenerAttached=!1)})),Si(wi(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)}}})),Si(wi(r),"getComServerStatus",(function(e,t){return r.executeOperation(hi.OPERATION_STATUS,null,e,t)})),Si(wi(r),"sendRequest",(function(e,t,n){return r.executeOperation(hi.OPERATION_REQUEST,e,t,n)})),Si(wi(r),"sendCommand",(function(e,t,n){return r.executeOperation(hi.OPERATION_COMMAND,e,t,n)})),Si(wi(r),"destroy",(function(){r.tearDownActiveXCommunication()})),r.isSynchronous=n,r.channelName=hi.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&&Ei(e,t)}(t,e),t}(yi),Ci=n(97);function xi(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",i=window.document,a=new Date,s=[];void 0===n&&(n=a.getTime()+5184e6),a.setTime(n),s.push("".concat(e,"=").concat(encodeURIComponent(t))),0!==n&&s.push("; expires=".concat(a.toUTCString())),s.push("; path=".concat(r)),o&&s.push("; domain=".concat(o)),s.push("; secure"),i.cookie=s.join("")}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 Pi(e){return(Pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ai(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ti(e,t){return(Ti=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ii(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Di="GET",ji="POST",Li=31536e6,Ri=17223,Ni=17224,Mi="Content-Type",Fi="text/plain; charset=UTF-8",Ui="notrunning",Bi=new Ci.a;function Hi(){return Bi.getItem("comUseFallback")?{primary:Ni,fallback:Ri}:{primary:Ri,fallback:Ni}}var zi=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"!==_i(t)&&"function"!=typeof t?Ai(e):t}(this,Pi(t).call(this,e)),Ii(Ai(o),"createCORSRequest",(function(e,t){var n;try{return(n=new(0,o.window.XMLHttpRequest)).open(e,t,!0),n}catch(n){if(o.retryCounter<3)return o.retryCounter+=1,o.createCORSRequest(e,t);throw new Error("could not create xhr")}})),Ii(Ai(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===Ri?Bi.removeItem("comUseFallback"):Bi.setItem("comUseFallback",1),o.comServerInstallationPromiseRejected=!1,t(n)},a=Hi(),s=a.primary,l=a.fallback;return o.checkInstallStatus(s,e).then(i.bind(Ai(o),s)).catch((function(t){if(t===Ui)return o.comServerInstallationPromiseRejected=!0,void n();o.checkInstallStatus(l,e).then(i.bind(Ai(o),l)).catch((function(){o.comServerInstallationPromiseRejected=!0,n()}))})),r})),Ii(Ai(o),"sendComServerRequest",(function(e,t,n,r){return new Promise((function(i,a){try{var s=o.createCORSRequest(e,t);s.setRequestHeader(Mi,Fi),s.onload=function(){i(s)},s.onerror=function(){a(s)},r>0&&(s.timeout=r,s.ontimeout=function(){a(s)}),setTimeout((function(){s.send(n)}),0)}catch(e){a()}}))})),Ii(Ai(o),"checkInstallStatus",(function(e,t){return o.sendComServerRequest(Di,"".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(Ui)}))})),Ii(Ai(o),"getComChannel",(function(e){return function(e){var t,n,r=window.document.cookie.split("; "),o=r.length;for(n=0;n<o;n+=1)if((t=r[n].split("="))[0]===e)return t[1]?decodeURIComponent(t[1]):"";return""}("".concat(e,"-bgp-id"))})),Ii(Ai(o),"setComChannel",(function(e){var t=o.getComChannel(e)||o.generateId(),n="bgp-".concat(t),r=(new Date).getTime()+Li;return xi("".concat(e,"-bgp-id"),t,r),xi("bgp-".concat(t),"generic",r),n})),Ii(Ai(o),"getComServerStatus",(function(e){return!o.comServerInstallationPromise||o.comServerInstallationPromiseRejected?(o.comServerInstallationPromise=null,o.comServerInstallationPromise=o.getComServerStatusInstallationPromise(e),o.comServerInstallationPromise):o.comServerInstallationPromise})),Ii(Ai(o),"sendRequest",(function(e,t,n){var r="".concat(o.url).concat(o.currentPort,"/application_request?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(n);return o.sendComServerRequest(ji,r,e,t).then((function(e){var t=JSON.parse(e.responseText);if(t.response_type&&"error"===t.response_type)throw new Error("Communication error: ".concat(t.message));return t}))})),Ii(Ai(o),"sendCommand",(function(e,t,n){var r="".concat(o.url).concat(o.currentPort,"/application_command?application=").concat(o.appName,"&com=").concat(o.comChannelName,"&timeout=").concat(n);return o.sendComServerRequest(ji,r,e,t).then((function(e){return JSON.parse(e.responseText)}))})),Ii(Ai(o),"generateId",(function(){var e=(new Date).getTime();return"xxxxxxxx".replace(/x/g,(function(){return Math.floor((e+16*Math.random())%16).toString(16)}))})),o.url=n,o.comChannelName=o.setComChannel(e),o.channelName=r,o.comServerInstallationPromise=null,o.comServerInstallationPromiseRejected=!1,o.retryCounter=0,o.sendCount=0,o.currentPort=Hi().primary,o.window=window,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&&Ti(e,t)}(t,e),t}(yi);function Vi(e){return(Vi="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 Wi(e){return(Wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qi(e,t){return(qi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ki="box_extension_input",Yi="box_extension_output",Qi=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"!==Vi(t)&&"function"!=typeof t?Gi(e):t}(this,Wi(t).call(this,e)),Xi(Gi(n),"executeOperation",(function(){var e=arguments.length>0&&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 s=n.buildDetailsObj(e,t,o),l=setTimeout((function(){a(new Error({status_code:hi.REQUEST_TIMEOUT_RESPONSE_CODE}))}),r);n.reqIdToPromiseMap.set(s.req_id,{resolve:i,rejectTimeout:l}),n.createAndDispatchAppExtensionEvent({detail:s})}))})),Xi(Gi(n),"setupSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached||(n.isAppExtensionListenerAttached=!0,n.document.addEventListener(Yi,n.appExtensionEventResponseHandler))})),Xi(Gi(n),"tearDownSafariExtensionCommunication",(function(){n.isAppExtensionListenerAttached&&(n.isAppExtensionListenerAttached=!1,n.document.removeEventListener(Yi,n.appExtensionEventResponseHandler))})),Xi(Gi(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)}}})),Xi(Gi(n),"createAndDispatchAppExtensionEvent",(function(e){var t=new(0,n.window.CustomEvent)(Ki,e);n.document.dispatchEvent(t)})),Xi(Gi(n),"getComServerStatus",(function(e,t){return n.executeOperation(hi.OPERATION_STATUS,null,e,t)})),Xi(Gi(n),"sendRequest",(function(e,t,r){return n.executeOperation(hi.OPERATION_REQUEST,e,t,r)})),Xi(Gi(n),"sendCommand",(function(e,t,r){return n.executeOperation(hi.OPERATION_COMMAND,e,t,r)})),Xi(Gi(n),"destroy",(function(){n.tearDownSafariExtensionCommunication()})),n.reqIdToPromiseMap=new Map,n.channelName=hi.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&&qi(e,t)}(t,e),t}(yi);function Ji(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $i,Zi=55,ea="16.16299",ta="17.17134",na=5e3;function ra(e){var t=hi.BOX_UNSECURE_LOCAL_BASE_URL,n=hi.CREATED_STATUS,r=hi.HTTP_CHANNEL_NAME;return $i.http_channel_status=n,new zi(e,t,r)}function oa(e){var t=hi.CREATED_STATUS;return $i.safari_channel_status=t,new Qi(e)}function ia(e){var t=hi.CREATED_STATUS;return $i.activex_channel_status=t,new ki(e,!0)}function aa(){var e=si.EDGE;return di.isMinBrowser(e,ta)||di.isMinBrowser(e,ea)&&di.getVersion().startsWith("16.")}function sa(){return di.isEdge()&&!aa()}function la(){var e=si.CHROME,t=si.FIREFOX;return di.isMinBrowser(e,53)||di.isMinBrowser(t,Zi)||aa()}function ua(){return di.isMinBrowser(si.SAFARI,10)}function ca(){return di.isMinBrowser(si.IE,11)}function fa(e){var t=hi.BOX_EDIT_NOT_SUPPORTED_ERROR,n=hi.BOX_EDIT_SAFARI_ERROR,r=hi.BOX_EDIT_UNINSTALLED_ERROR,o=hi.BOX_EDIT_UPGRADE_BROWSER_ERROR,i=t;return la()?i=r:ca()?i=r:di.isFirefox()||di.isChrome()||di.isSafari()&&!ua()||sa()?i=o:ua()&&(i=n),$i.error_message=i,e(new Error(i))}function da(e){var t=na;return"number"==typeof e&&e>=0&&(t=Math.floor(e)),t}function pa(e){var t=+(e/1e3).toFixed(2);return e<2?t/=2:t-=1,t}var ha=function(){function e(t){var n,r,o,i,a,s;!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,i=di.getName(),a=di.getVersion(),s=hi.UNCREATED_STATUS,$i={box_tools_version:null,browser_name:i,browser_version:a,error_message:null,installation_type:null,http_channel_status:s,https_channel_status:s,activex_channel_status:s,safari_channel_status:s},la()?this.channels.push(ra(t)):ua()?this.channels.push(oa(t)):ca()&&di.isIEAndSpecificBrowserPluginSupported(hi.BOX_TOOLS_PLUGIN_NAME)?this.channels.push(function(e){var t=hi.CREATED_STATUS;return $i.activex_channel_status=t,new ki(e,!1)}(t)):di.isFirefox()&&!di.isMinBrowser(si.FIREFOX,Zi)||sa()||(this.channels=this.channels.concat([ra(t),oa(t),ia(t)]))}var t,n,r;return t=e,(n=[{key:"getComServerStatus",value:function(e){var t=this,n=hi.ACTIVE_STATUS,r=da(e),o=pa(r),i=sa();return new Promise((function(e,a){return i?fa.call(null,a):t.channels.length?pi(t.channels.map((function(i){return i.getComServerStatus(r,o).then((function(r){return t.activeChannel=i,r&&($i.installation_type=r.installation_type,$i.box_tools_version=r.version),$i["".concat(i.channelName,"_status")]=n,e(r)}))}))).catch(fa.bind(null,a)):fa.call(null,a)}))}},{key:"sendRequest",value:function(e,t,n){var r=this,o=da(n),i=pa(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=da(t),o=pa(r);return this.activeChannel?this.activeChannel.sendCommand(e,r,o):this.getComServerStatus().then((function(){return n.activeChannel.sendCommand(e,r,o)}))}}])&&Ji(t.prototype,n),r&&Ji(t,r),e}();function ba(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function ma(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function ya(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){ma(i,r,o,a,s,"next",e)}function s(e){ma(i,r,o,a,s,"throw",e)}a(void 0)}))}}function va(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var ga;var wa=null,Ea=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),wa instanceof e||(wa=this),this.extensionRequestQueue=new Map,wa}var t,n,r,o;return t=e,(n=[{key:"queueGetNativeAppNameFromLocal",value:function(e){if(this.extensionRequestQueue.has(e)){var t=this.extensionRequestQueue.get(e);if(!t)throw new Error("Race condition re: queueGetNativeAppNameFromLocal");return t.promise}var n={},r=new Promise((function(e,t){n.resolve=e,n.reject=t}));return n.promise=r,this.extensionRequestQueue.set(e,n),r}},{key:"checkBoxEditAvailability",value:function(){return this.getBoxEditAvailability()}},{key:"getBoxEditAvailability",value:function(){return this.client=new ha(hi.BOX_EDIT_APP_NAME),this.client.getComServerStatus()}},{key:"canOpenWithBoxEdit",value:(o=ya(regeneratorRuntime.mark((function e(t){var n,r,o=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(t.map(function(){var e=ya(regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.getAppForExtension(t);case 3:return n=e.sent,r=[t,n],e.abrupt("return",r);case 8:return e.prev=8,e.t0=e.catch(0),i=[t,""],e.abrupt("return",i);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(t){return e.apply(this,arguments)}}()));case 2:return n=e.sent,r=new Map,n.forEach((function(e){return r.set.apply(r,ba(e))})),e.abrupt("return",Promise.resolve(r));case 6:case"end":return e.stop()}}),e)}))),function(e){return o.apply(this,arguments)})},{key:"openFile",value:function(e,t){var n=function(e,t,n,r){return JSON.stringify({auth_code:n,auth_token:t,browser_type:di.getName(),command_type:"launch_application",file_id:e.toString(),token_scope:r})}(e,t.data.token,t.data.auth_code,t.data.token_scope);return this.client.sendCommand(n,5e3)}},{key:"getAppForExtension",value:function(e){var t=this;try{if(function(e){var t=hi.EXTENSION_BLACKLIST,n=e.toUpperCase();return"."===n.charAt(0)&&(n=n.substr(1)),n in t}(e))throw new Error("blacklisted");var n=this.queueGetNativeAppNameFromLocal(e);return ga||(ga=setTimeout((function(){t.processExtensionRequestQueue()}),100)),n}catch(e){return Promise.reject()}}},{key:"processExtensionRequestQueue",value:function(){var e=new Map,t=[];this.extensionRequestQueue.forEach((function(n,r){e.set(r,n),t.push(r)})),this.extensionRequestQueue.clear(),ga=null;var n=function(e){return JSON.stringify({request_type:"get_default_application",extension:e})}(t);return this.client.sendRequest(n).then((function(n){if(n&&n.default_application_name){var r=n.default_application_name;"[object Object]"===Object.prototype.toString.call(r)&&(r=[r]),r.forEach((function(t){var n=Object.keys(t)[0],r=decodeURIComponent(t[n]);if(r){var o=e.get(n);o&&(o.resolve(r),e.delete(n))}}))}t.forEach((function(t){var n=e.get(t);n&&n.reject()}))}))}}])&&va(t.prototype,n),r&&va(t,r),e}();function Sa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Oa(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ca=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Sa(Object(n),!0).forEach((function(t){Oa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Sa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},t,{apiHost:t.apiHost||m.L,uploadHost:t.uploadHost||m.O,cache:t.cache||new r.a,language:t.language})}var t,n,o;return t=e,(n=[{key:"destroy",value:function(){var e=arguments.length>0&&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.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.markerBasedGroupsAPI&&(this.markerBasedGroupsAPI.destroy(),delete this.markerBasedGroupsAPI),this.markerBasedUsersAPI&&(this.markerBasedUsersAPI.destroy(),delete this.markerBasedUsersAPI),this.groupsAPI&&(this.groupsAPI.destroy(),delete this.groupsAPI),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.fileCollaborationsAPI&&(this.fileCollaborationsAPI.destroy(),delete this.fileCollaborationsAPI),this.folderCollaborationsAPI&&(this.folderCollaborationsAPI.destroy(),delete this.folderCollaborationsAPI),this.collaborationsAPI&&(this.collaborationsAPI.destroy(),delete this.collaborationsAPI),this.appIntegrationsAPI&&(this.appIntegrationsAPI.destroy(),delete this.appIntegrationsAPI),this.metadataQueryAPI&&(this.metadataQueryAPI.destroy(),delete this.metadataQueryAPI),this.openWithAPI&&(this.openWithAPI.destroy(),delete this.openWithAPI),this.annotationsAPI&&(this.annotationsAPI.destroy(),delete this.annotationsAPI),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 m.Af:t=this.getFolderAPI();break;case m.zf:t=this.getFileAPI();break;case m.Bf:t=this.getWebLinkAPI();break;default:throw new Error("Unknown Type!")}return t}},{key:"getFileAPI",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return e&&this.destroy(),this.fileAPI=new Pe.a(this.options),this.fileAPI}},{key:"getWebLinkAPI",value:function(){return this.destroy(),this.weblinkAPI=new Ae.a(this.options),this.weblinkAPI}},{key:"getPlainUploadAPI",value:function(){return this.destroy(),this.plainUploadAPI=new xe(this.options),this.plainUploadAPI}},{key:"getChunkedUploadAPI",value:function(){return this.destroy(),this.chunkedUploadAPI=new me(this.options),this.chunkedUploadAPI}},{key:"getFolderAPI",value:function(){return this.destroy(),this.folderAPI=new _e.a(this.options),this.folderAPI}},{key:"getSearchAPI",value:function(){return this.destroy(),this.searchAPI=new He(this.options),this.searchAPI}},{key:"getRecentsAPI",value:function(){return this.destroy(),this.recentsAPI=new Ye(this.options),this.recentsAPI}},{key:"getMetadataAPI",value:function(e){return e&&this.destroy(),this.metadataAPI=new Or(this.options),this.metadataAPI}},{key:"getVersionsAPI",value:function(e){return e&&this.destroy(),this.versionsAPI=new vt(this.options),this.versionsAPI}},{key:"getCommentsAPI",value:function(e){return e&&this.destroy(),this.commentsAPI=new _t(this.options),this.commentsAPI}},{key:"getTasksNewAPI",value:function(e){return e&&this.destroy(),this.tasksNewAPI=new Xt(this.options),this.tasksNewAPI}},{key:"getTaskCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.taskCollaboratorsAPI=new on(this.options),this.taskCollaboratorsAPI}},{key:"getTaskLinksAPI",value:function(e){return e&&this.destroy(),this.taskLinksAPI=new hn(this.options),this.taskLinksAPI}},{key:"getFileAccessStatsAPI",value:function(e){return e&&this.destroy(),this.fileAccessStatsAPI=new wn(this.options),this.fileAccessStatsAPI}},{key:"getFileCollaboratorsAPI",value:function(e){return e&&this.destroy(),this.fileCollaboratorsAPI=new Ir(this.options),this.fileCollaboratorsAPI}},{key:"getFileCollaborationsAPI",value:function(e){return e&&this.destroy(),this.fileCollaborationsAPI=new Wr(this.options),this.fileCollaborationsAPI}},{key:"getFolderCollaborationsAPI",value:function(e){return e&&this.destroy(),this.folderCollaborationsAPI=new Qr(this.options),this.folderCollaborationsAPI}},{key:"getCollaborationsAPI",value:function(e){return e&&this.destroy(),this.collaborationsAPI=new io(this.options),this.collaborationsAPI}},{key:"getMarkerBasedGroupsAPI",value:function(e){return e&&this.destroy(),this.markerBasedGroupsAPI=new Bn(this.options),this.markerBasedGroupsAPI}},{key:"getMarkerBasedUsersAPI",value:function(e){return e&&this.destroy(),this.markerBasedUsersAPI=new Yn(this.options),this.markerBasedUsersAPI}},{key:"getGroupsAPI",value:function(e){return e&&this.destroy(),this.groupsAPI=new tr(this.options),this.groupsAPI}},{key:"getUsersAPI",value:function(e){return e&&this.destroy(),this.usersAPI=new fr(this.options),this.usersAPI}},{key:"getFeedAPI",value:function(e){return e&&this.destroy(),this.feedItemsAPI=new Bo(this.options),this.feedItemsAPI}},{key:"getOpenWithAPI",value:function(e){return e&&this.destroy(),this.openWithAPI=new Zo(this.options),this.openWithAPI}},{key:"getAppIntegrationsAPI",value:function(e){return e&&this.destroy(),this.appIntegrationsAPI=new qo(this.options),this.appIntegrationsAPI}},{key:"getMetadataQueryAPI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.destroy(),this.metadataQueryAPI=new ii(this.options),this.metadataQueryAPI}},{key:"getBoxEditAPI",value:function(){return this.boxEditAPI=new Ea,this.boxEditAPI}},{key:"getAnnotationsAPI",value:function(e){return e&&this.destroy(),this.annotationsAPI=new yo(this.options),this.annotationsAPI}}])&&ka(t.prototype,n),o&&ka(t,o),e}();t.a=Ca},,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(12),s=n.n(a),l=n(44),u=n(3),c=n.n(u),f=n(306),d=n.n(f);n(661);function p(e){return(p="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 h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=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"!==p(t)&&"function"!=typeof t?v(e):t}(this,y(t).call(this,e)),w(v(n),"state",{shouldShowTopScrollShadow:!1,shouldShowBottomScrollShadow:!1}),w(v(n),"componentDidMount",(function(){var e=n.getScrollShadowState();n.setState(e),n.scrollRef&&(n.scrollRef.addEventListener("transitionend",n.throttledOnContentScroll),n.scrollRef&&n.observer.observe(n.scrollRef,{attributes:!0,childlist:!0,subtree:!0}))})),w(v(n),"onContentScroll",(function(){var e=n.getScrollShadowState();n.setState(e)})),w(v(n),"getScrollShadowState",(function(){var e=n.scrollRef||{},t=e.scrollTop,r=e.scrollHeight,o=e.clientHeight,i={};return t>0&&t<r-o&&(i.shouldShowTopScrollShadow=!0,i.shouldShowBottomScrollShadow=!0),0===t&&(i.shouldShowTopScrollShadow=!1),t<r-o&&(i.shouldShowBottomScrollShadow=!0),t===r-o&&(i.shouldShowBottomScrollShadow=!1),i})),w(v(n),"scrollRef",null),w(v(n),"throttledOnContentScroll",d()(n.onContentScroll,100)),n.observer=new MutationObserver(n.throttledOnContentScroll),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&&g(e,t)}(t,e),n=t,(o=[{key:"componentWillUnmount",value:function(){this.observer.disconnect(),this.scrollRef&&this.scrollRef.removeEventListener("transitionend",this.throttledOnContentScroll)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,a=void 0===o?"":o,s=t.scrollRefFn,l=t.shadowSize,u=b(t,["children","className","scrollRefFn","shadowSize"]),c=this.state,f=c.shouldShowTopScrollShadow,d=c.shouldShowBottomScrollShadow,p=i()("scroll-container",a,{"is-showing-top-shadow":f,"is-showing-bottom-shadow":d});return r.createElement("div",h({className:p},u),r.createElement("div",{className:i()("scroll-wrap-container","style--".concat(l)),onScroll:this.throttledOnContentScroll,ref:function(t){e.scrollRef=t,s(t)}},n))}}])&&m(n.prototype,o),a&&m(n,a),t}(r.Component);w(E,"defaultProps",{scrollRefFn:c.a,shadowSize:"cover"});var S=E,O=n(1);n(662);function k(e){return(k="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){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T(e){e.preventDefault(),e.stopPropagation()}var I=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"!==k(t)&&"function"!=typeof t?_(e):t}(this,x(t).call(this,e)),A(_(n),"setActiveItem",(function(e){n.setState({activeItemIndex:e}),-1===e&&n.setActiveItemID(null)})),A(_(n),"setActiveItemID",(function(e){var t=n.props.scrollBoundarySelector,r=e?document.getElementById(e):null,o={block:"nearest"};void 0!==t&&(o.boundary=document.querySelector(t)),n.setState({activeItemID:e},(function(){Object(l.e)(r,o)}))})),A(_(n),"haveChildrenChanged",(function(e){var t=n.props.children,o=r.Children.count(t);if(o!==r.Children.count(e))return!0;if(0===o)return!1;var i=r.Children.map(t,(function(e){return e.key})),a=r.Children.map(e,(function(e){return e.key}));return i.some((function(e,t){return e!==a[t]}))})),A(_(n),"resetActiveItem",(function(){n.setState({activeItemID:null,activeItemIndex:-1})})),A(_(n),"handleFocus",(function(){n.openDropdown()})),A(_(n),"handleDocumentClick",(function(e){var t=n.selectorDropdownRef.current;t&&e.target instanceof Node&&t.contains(e.target)||t===e.target||n.closeDropdown()})),A(_(n),"handleInput",(function(){n.openDropdown()})),A(_(n),"handleKeyDown",(function(e){var t=n.props,o=t.children,i=t.isAlwaysOpen,a=t.onEnter,s=n.state.activeItemIndex,l=r.Children.count(o);switch(e.key){case"ArrowDown":if(n.isDropdownOpen()){l&&T(e);var u=s===l-1?-1:s+1;n.setActiveItem(u)}else n.openDropdown();break;case"ArrowUp":if(n.isDropdownOpen()){l&&T(e);var c=-1===s?l-1:s-1;n.setActiveItem(c)}else n.openDropdown();break;case"Enter":-1!==s&&n.isDropdownOpen()?(T(e),n.selectItem(s,e)):a&&a(e);break;case"Tab":n.isDropdownOpen()&&(n.closeDropdown(),n.resetActiveItem());break;case"Escape":!i&&n.isDropdownOpen()&&(T(e),n.closeDropdown(),n.resetActiveItem())}})),A(_(n),"isDropdownOpen",(function(){var e=n.props,t=e.children,o=e.isAlwaysOpen,i=n.state.shouldOpen;return r.Children.count(t)>0&&(!!o||i)})),A(_(n),"openDropdown",(function(){n.state.shouldOpen||(n.props.shouldSetActiveItemOnOpen&&n.setActiveItem(0),n.setState({shouldOpen:!0}),document.addEventListener("click",n.handleDocumentClick,!0))})),A(_(n),"closeDropdown",(function(){n.setState({shouldOpen:!1}),document.removeEventListener("click",n.handleDocumentClick,!0)})),A(_(n),"selectItem",(function(e,t){var r=n.props.onSelect;r&&r(e,t),n.closeDropdown()})),n.listboxID=s()("listbox"),n.state={activeItemID:null,activeItemIndex:-1,shouldOpen:!1},n.selectorDropdownRef=r.createRef(),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&&P(e,t)}(t,e),n=t,(o=[{key:"componentDidUpdate",value:function(e){var t=e.shouldSetActiveItemOnOpen,n=e.children;this.haveChildrenChanged(n)&&(t?this.setActiveItem(0):this.resetActiveItem())}},{key:"componentWillUnmount",value:function(){document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"render",value:function(){var e=this.listboxID,t=this.selectItem,n=this.setActiveItem,o=this.setActiveItemID,a=this.closeDropdown,s=this.props,l=s.dividerIndex,u=s.overlayTitle,c=s.children,f=s.className,d=s.title,p=s.selector,h=s.shouldScroll,b=this.state,m=b.activeItemID,y=b.activeItemIndex,v=this.isDropdownOpen(),g={"aria-activedescendant":m,"aria-autocomplete":"list","aria-expanded":v,role:"combobox"};v&&(g["aria-owns"]=e);var w=r.createElement("ul",{className:i()("overlay",u?u.toLowerCase():""),id:e,role:"listbox"},u&&r.createElement("h5",{className:"SelectorDropdown-title"},u),r.Children.map(c,(function(e,i){var s={onClick:function(e){t(i,e)},onMouseDown:function(e){e.preventDefault()},onMouseEnter:function(){n(i)},closeDropdown:function(){a()},setActiveItemID:o};i===y&&(s.isActive=!0);var u=i===l;return r.createElement(r.Fragment,null,u&&r.createElement("hr",{className:"SelectorDropdown-divider"}),r.cloneElement(e,s))})));return(r.createElement("div",{className:i()("SelectorDropdown",f),onFocus:this.handleFocus,onKeyDown:this.handleKeyDown,onKeyPress:this.handleInput,onPaste:this.handleInput,ref:this.selectorDropdownRef},r.cloneElement(p,{inputProps:g}),v&&r.createElement("div",{className:"".concat(O.qe," is-visible")},d,h?r.createElement(S,null,w):w)))}}])&&C(n.prototype,o),a&&C(n,a),t}(r.Component);n.d(t,"a",(function(){return I}))},function(e,t,n){"use strict";var r=n(0),o=n(205),i=n.n(o),a=n(5),s=n.n(a);function l(e){return(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})(e)}function u(){return(u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];return n=function(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?p(e):t}(this,(e=d(t)).call.apply(e,[this].concat(o))),b(p(n),"focusFirstElement",(function(){if(n.el){var e=i()(n.el);e.length>3?e[1].focus():n.trapEl&&n.trapEl.focus()}})),b(p(n),"focusLastElement",(function(){if(n.el){var e=i()(n.el);e.length>3?e[e.length-3].focus():n.trapEl&&n.trapEl.focus()}})),b(p(n),"handleElKeyDown",(function(e){var t=n.props.handleOverlayKeyDown;n.el===document.activeElement&&"Tab"===e.key&&(n.focusFirstElement(),e.stopPropagation(),e.preventDefault()),t&&t(e)})),b(p(n),"handleTrapElKeyDown",(function(e){"Tab"===e.key&&(e.stopPropagation(),e.preventDefault())})),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&&h(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this;this.props.shouldDefaultFocus?setTimeout((function(){e.previousFocusEl=document.activeElement,e.focusFirstElement()}),0):setTimeout((function(){e.el&&e.el.focus()}),0)}},{key:"componentWillUnmount",value:function(){var e=this;setTimeout((function(){e.previousFocusEl&&e.previousFocusEl.focus()}),0)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.className,i=t.getRef,a=(t.handleOverlayKeyDown,t.shouldDefaultFocus,t.shouldOutlineFocus),l=c(t,["children","className","getRef","handleOverlayKeyDown","shouldDefaultFocus","shouldOutlineFocus"]);return r.createElement("div",u({ref:function(t){e.el=t,i&&i(t)},className:s()(o,{"should-outline-focus":a}),onKeyDown:this.handleElKeyDown},l),r.createElement("i",{"aria-hidden":!0,onFocus:this.focusLastElement,tabIndex:"0"}),n,r.createElement("i",{"aria-hidden":!0,onFocus:this.focusFirstElement,tabIndex:"0"}),r.createElement("i",{ref:function(t){e.trapEl=t},"aria-hidden":!0,onKeyDown:this.handleTrapElKeyDown,tabIndex:"0"}))}}])&&f(n.prototype,o),a&&f(n,a),t}(r.Component);n.d(t,"a",(function(){return m}))},function(e,t,n){"use strict";var r=n(0),o=n(12),i=n.n(o),a=n(5),s=n.n(a),l=n(107),u=n(81),c=n(154),f=n(20),d=Object(l.defineMessages)({checkboxTooltipIconInfoText:{id:"boxui.checkboxTooltip.iconInfoText",defaultMessage:"Info"}}),p=function(e){var t=e.tooltip;return r.createElement("div",{className:"checkbox-tooltip-wrapper"},r.createElement(f.c,{text:t},r.createElement("div",{className:"info-tooltip"},r.createElement(c.a,{height:16,title:r.createElement(u.a,d.checkboxTooltipIconInfoText),width:16}))))};n(536);function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function b(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var m=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.fieldLabel,l=e.hideLabel,u=e.id,c=e.isChecked,f=e.isDisabled,d=e.label,m=e.name,y=e.onChange,v=e.subsection,g=e.tooltip,w=b(e,["className","description","fieldLabel","hideLabel","id","isChecked","isDisabled","label","name","onChange","subsection","tooltip"]),E=r.useRef(i()("checkbox")).current,S=u||E,O=r.createElement("span",{className:"checkbox-label"},r.createElement("input",h({checked:c,disabled:f,id:S,name:m,onChange:y,type:"checkbox"},w)),r.createElement("span",{className:"checkbox-pointer-target"}),r.createElement("span",{className:s()("bdl-Checkbox-labelTooltipWrapper",{"accessibility-hidden":l})},r.createElement("label",{htmlFor:S},d),g&&r.createElement(p,{tooltip:g})));return r.createElement("div",{className:s()("checkbox-container",n,{"is-disabled bdl-is-disabled":f})},a&&r.createElement("div",{className:"label"},a),O,o?r.createElement("div",{className:"checkbox-description"},o):null,v?r.createElement("div",{className:"checkbox-subsection"},v):null)};n.d(t,"a",(function(){return m}))},function(e,t){e.exports=function(e,t){t=t||{};var n,r,o,i=e.ownerDocument||e,a=[],s=[],l=function(e){var t=[];return function(n){if(n===e.documentElement)return!1;var r=e.defaultView.getComputedStyle(n);return!!function n(r,o){if(r===e.documentElement)return!1;for(var i=0,a=t.length;i<a;i++)if(t[i][0]===r)return t[i][1];var s=!1;return"none"===(o=o||e.defaultView.getComputedStyle(r)).display?s=!0:r.parentNode&&(s=n(r.parentNode)),t.push([r,s]),s}(n,r)||"hidden"===r.visibility}}(i),u=["input","select","a[href]","textarea","button","[tabindex]"],c=e.querySelectorAll(u.join(","));if(t.includeContainer){var f=Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;u.some((function(t){return f.call(e,t)}))&&(c=Array.prototype.slice.apply(c)).unshift(e)}for(var d=0,p=c.length;d<p;d++)n=c[d],r=parseInt(n.getAttribute("tabindex"),10),(o=isNaN(r)?n.tabIndex:r)<0||"INPUT"===n.tagName&&"hidden"===n.type||n.disabled||l(n,i)||(0===o?a.push(n):s.push({index:d,tabIndex:o,node:n}));var h=s.sort((function(e,t){return e.tabIndex===t.tabIndex?e.index-t.index:e.tabIndex-t.tabIndex})).map((function(e){return e.node}));return Array.prototype.push.apply(h,a),h}},,function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){function r(e){return(r="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)}var o=n(31),i=n(130),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var n=r(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||(s.test(e)||!a.test(e)||null!=t&&e in Object(t))}},,function(e,t,n){"use strict";var r=n(0);function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t,n,a,s=e.children,l=e.href,u=void 0===l?"#":l,c=e.linkRef,f=e.target,d=e.rel,p=e.component,h=e.refProp,b=i(e,["children","href","linkRef","target","rel","component","refProp"]),m="_blank"!==f||d?d:"noopener",y=p||"a",v=(a=c,(n=h||"ref")in(t={})?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t);return r.createElement(y,o({href:u,rel:m,target:f},v,b),s)}},function(e,t,n){(function(t){function n(e){return(n="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)}var r="object"==(void 0===t?"undefined":n(t))&&t&&t.Object===Object&&t;e.exports=r}).call(this,n(36))},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(64),o=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},function(e,t,n){var r=n(370),o=n(127),i=n(31),a=n(141),s=n(128),l=n(187),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),f=!n&&!c&&a(e),d=!n&&!c&&!f&&l(e),p=n||c||f||d,h=p?r(e.length,String):[],b=h.length;for(var m in e)!t&&!u.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||d&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,b))||h.push(m);return h}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){(function(e){function r(e){return(r="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)}var o=n(38),i="object"==r(t)&&t&&!t.nodeType&&t,a=i&&"object"==r(e)&&e&&!e.nodeType&&e,s=a&&a.exports===i?o.Buffer:void 0,l=s?s.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=l?l(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(86)(e))},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(167),o=n(168),i=n(166),a=n(217),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=s},function(e,t,n){var r=n(167),o=n(31);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},function(e,t,n){var r=n(219),o=n(218),i=n(129);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(169);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(257),o=n(168),i=n(165);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},function(e,t,n){var r=n(55),o=n(168),i=n(40),a="[object Object]",s=Function.prototype,l=Object.prototype,u=s.toString,c=l.hasOwnProperty,f=u.call(Object);e.exports=function(e){if(!i(e)||r(e)!=a)return!1;var t=o(e);if(null===t)return!0;var n=c.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&u.call(n)==f}},function(e,t,n){var r=n(403),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},function(e,t,n){var r=n(404),o=n(406)(r);e.exports=o},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),r=0;r<n.length;r++)n[r]=arguments[r];return e.apply(t,n)}}},function(e,t,n){"use strict";var r=n(34),o=n(424),i=n(426),a=n(427),s=n(428),l=n(228);e.exports=function(e){return new Promise((function(t,u){var c=e.data,f=e.headers;r.isFormData(c)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(e.auth){var p=e.auth.username||"",h=e.auth.password||"";f.Authorization="Basic "+btoa(p+":"+h)}if(d.open(e.method.toUpperCase(),i(e.url,e.params,e.paramsSerializer),!0),d.timeout=e.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,r={data:e.responseType&&"text"!==e.responseType?d.response:d.responseText,status:d.status,statusText:d.statusText,headers:n,config:e,request:d};o(t,u,r),d=null}},d.onerror=function(){u(l("Network Error",e,null,d)),d=null},d.ontimeout=function(){u(l("timeout of "+e.timeout+"ms exceeded",e,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var b=n(429),m=(e.withCredentials||s(e.url))&&e.xsrfCookieName?b.read(e.xsrfCookieName):void 0;m&&(f[e.xsrfHeaderName]=m)}if("setRequestHeader"in d&&r.forEach(f,(function(e,t){void 0===c&&"content-type"===t.toLowerCase()?delete f[t]:d.setRequestHeader(t,e)})),e.withCredentials&&(d.withCredentials=!0),e.responseType)try{d.responseType=e.responseType}catch(t){if("json"!==e.responseType)throw t}"function"==typeof e.onDownloadProgress&&d.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){d&&(d.abort(),u(e),d=null)})),void 0===c&&(c=null),d.send(c)}))}},function(e,t,n){"use strict";var r=n(425);e.exports=function(e,t,n,o,i){var a=new Error(e);return r(a,t,n,o,i)}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";function r(e){this.message=e}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,e.exports=r},function(e,t,n){var r=n(441),o=n(442),i=n(445),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(e,t,n){var r=n(161),o=n(109);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},,,function(e,t,n){},,,,,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,l=e.title,u=e.type,c=void 0===u?"warning":u,f=s(e,["children","className","title","type"]);return r.createElement("div",a({className:i()(o,"inline-alert","inline-alert-visible","inline-alert-".concat(c))},f),l?r.createElement("strong",null,l):null,r.createElement("div",null,t))}},,function(e,t,n){"use strict";function r(e){return(r="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)}var o,i="object"===("undefined"==typeof Reflect?"undefined":r(Reflect))?Reflect:null,a=i&&"function"==typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};o=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var u=10;function c(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,o){var i,a,s,l;if("function"!=typeof n)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(n));if(void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),s=a[t]),void 0===s)s=a[t]=n,++e._eventsCount;else if("function"==typeof s?s=a[t]=o?[n,s]:[s,n]:o?s.unshift(n):s.push(n),(i=c(e))>0&&s.length>i&&!s.warned){s.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=s.length,l=u,console&&console.warn&&console.warn(l)}return e}function d(){for(var e=[],t=0;t<arguments.length;t++)e.push(arguments[t]);this.fired||(this.target.removeListener(this.type,this.wrapFn),this.fired=!0,a(this.listener,this.target,e))}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(r);return o.listener=n,r.wrapFn=o,o}function h(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):m(o,o.length)}function b(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function m(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return u},set:function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");u=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||s(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return c(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var r="error"===e,o=this._events;if(void 0!==o)r=r&&void 0===o.error;else if(!r)return!1;if(r){var i;if(t.length>0&&(i=t[0]),i instanceof Error)throw i;var s=new Error("Unhandled error."+(i?" ("+i.message+")":""));throw s.context=i,s}var l=o[e];if(void 0===l)return!1;if("function"==typeof l)a(l,this,t);else{var u=l.length,c=m(l,u);for(n=0;n<u;++n)a(c[n],this,t)}return!0},l.prototype.addListener=function(e,t){return f(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return f(this,e,t,!0)},l.prototype.once=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.on(e,p(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));return this.prependListener(e,p(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,o,i,a,s;if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+r(t));if(void 0===(o=this._events))return this;if(void 0===(n=o[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete o[e],o.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(o[e]=n[0]),void 0!==o.removeListener&&this.emit("removeListener",e,s||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):b.call(e,t)},l.prototype.listenerCount=b,l.prototype.eventNames=function(){return this._eventsCount>0?o(this._events):[]}},function(e,t,n){var r=n(231)((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}));e.exports=r},function(module,exports,__webpack_require__){(function(process,global,module){var __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(e){return(_typeof="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)}
/*
* [js-sha1]{@link https://github.com/emn178/js-sha1}
*
* @version 0.6.0
* @author Chen, Yi-Cyuan [emn178@gmail.com]
* @copyright Chen, Yi-Cyuan 2014-2017
* @license MIT
*/!function(){"use strict";var root="object"===("undefined"==typeof window?"undefined":_typeof(window))?window:{},NODE_JS=!root.JS_SHA1_NO_NODE_JS&&"object"===(void 0===process?"undefined":_typeof(process))&&process.versions&&process.versions.node;NODE_JS&&(root=global);var COMMON_JS=!root.JS_SHA1_NO_COMMON_JS&&"object"===_typeof(module)&&module.exports,AMD=__webpack_require__(108),HEX_CHARS="0123456789abcdef".split(""),EXTRA=[-2147483648,8388608,32768,128],SHIFT=[24,16,8,0],OUTPUT_TYPES=["hex","array","digest","arrayBuffer"],blocks=[],createOutputMethod=function(e){return function(t){return new Sha1(!0).update(t)[e]()}},createMethod=function(){var e=createOutputMethod("hex");NODE_JS&&(e=nodeWrap(e)),e.create=function(){return new Sha1},e.update=function(t){return e.create().update(t)};for(var t=0;t<OUTPUT_TYPES.length;++t){var n=OUTPUT_TYPES[t];e[n]=createOutputMethod(n)}return e},nodeWrap=function nodeWrap(method){var crypto=eval("require('crypto')"),Buffer=eval("require('buffer').Buffer"),nodeMethod=function(e){if("string"==typeof e)return crypto.createHash("sha1").update(e,"utf8").digest("hex");if(e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(void 0===e.length)return method(e);return crypto.createHash("sha1").update(new Buffer(e)).digest("hex")};return nodeMethod};function Sha1(e){e?(blocks[0]=blocks[16]=blocks[1]=blocks[2]=blocks[3]=blocks[4]=blocks[5]=blocks[6]=blocks[7]=blocks[8]=blocks[9]=blocks[10]=blocks[11]=blocks[12]=blocks[13]=blocks[14]=blocks[15]=0,this.blocks=blocks):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.h0=1732584193,this.h1=4023233417,this.h2=2562383102,this.h3=271733878,this.h4=3285377520,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1,this.first=!0}Sha1.prototype.update=function(e){if(!this.finalized){var t="string"!=typeof e;t&&e.constructor===root.ArrayBuffer&&(e=new Uint8Array(e));for(var n,r,o=0,i=e.length||0,a=this.blocks;o<i;){if(this.hashed&&(this.hashed=!1,a[0]=this.block,a[16]=a[1]=a[2]=a[3]=a[4]=a[5]=a[6]=a[7]=a[8]=a[9]=a[10]=a[11]=a[12]=a[13]=a[14]=a[15]=0),t)for(r=this.start;o<i&&r<64;++o)a[r>>2]|=e[o]<<SHIFT[3&r++];else for(r=this.start;o<i&&r<64;++o)(n=e.charCodeAt(o))<128?a[r>>2]|=n<<SHIFT[3&r++]:n<2048?(a[r>>2]|=(192|n>>6)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]):n<55296||n>=57344?(a[r>>2]|=(224|n>>12)<<SHIFT[3&r++],a[r>>2]|=(128|n>>6&63)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++o)),a[r>>2]|=(240|n>>18)<<SHIFT[3&r++],a[r>>2]|=(128|n>>12&63)<<SHIFT[3&r++],a[r>>2]|=(128|n>>6&63)<<SHIFT[3&r++],a[r>>2]|=(128|63&n)<<SHIFT[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=64?(this.block=a[16],this.start=r-64,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296<<0,this.bytes=this.bytes%4294967296),this}},Sha1.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex;e[16]=this.block,e[t>>2]|=EXTRA[3&t],this.block=e[16],t>=56&&(this.hashed||this.hash(),e[0]=this.block,e[16]=e[1]=e[2]=e[3]=e[4]=e[5]=e[6]=e[7]=e[8]=e[9]=e[10]=e[11]=e[12]=e[13]=e[14]=e[15]=0),e[14]=this.hBytes<<3|this.bytes>>>29,e[15]=this.bytes<<3,this.hash()}},Sha1.prototype.hash=function(){var e,t,n=this.h0,r=this.h1,o=this.h2,i=this.h3,a=this.h4,s=this.blocks;for(e=16;e<80;++e)t=s[e-3]^s[e-8]^s[e-14]^s[e-16],s[e]=t<<1|t>>>31;for(e=0;e<20;e+=5)n=(t=(r=(t=(o=(t=(i=(t=(a=(t=n<<5|n>>>27)+(r&o|~r&i)+a+1518500249+s[e]<<0)<<5|a>>>27)+(n&(r=r<<30|r>>>2)|~n&o)+i+1518500249+s[e+1]<<0)<<5|i>>>27)+(a&(n=n<<30|n>>>2)|~a&r)+o+1518500249+s[e+2]<<0)<<5|o>>>27)+(i&(a=a<<30|a>>>2)|~i&n)+r+1518500249+s[e+3]<<0)<<5|r>>>27)+(o&(i=i<<30|i>>>2)|~o&a)+n+1518500249+s[e+4]<<0,o=o<<30|o>>>2;for(;e<40;e+=5)n=(t=(r=(t=(o=(t=(i=(t=(a=(t=n<<5|n>>>27)+(r^o^i)+a+1859775393+s[e]<<0)<<5|a>>>27)+(n^(r=r<<30|r>>>2)^o)+i+1859775393+s[e+1]<<0)<<5|i>>>27)+(a^(n=n<<30|n>>>2)^r)+o+1859775393+s[e+2]<<0)<<5|o>>>27)+(i^(a=a<<30|a>>>2)^n)+r+1859775393+s[e+3]<<0)<<5|r>>>27)+(o^(i=i<<30|i>>>2)^a)+n+1859775393+s[e+4]<<0,o=o<<30|o>>>2;for(;e<60;e+=5)n=(t=(r=(t=(o=(t=(i=(t=(a=(t=n<<5|n>>>27)+(r&o|r&i|o&i)+a-1894007588+s[e]<<0)<<5|a>>>27)+(n&(r=r<<30|r>>>2)|n&o|r&o)+i-1894007588+s[e+1]<<0)<<5|i>>>27)+(a&(n=n<<30|n>>>2)|a&r|n&r)+o-1894007588+s[e+2]<<0)<<5|o>>>27)+(i&(a=a<<30|a>>>2)|i&n|a&n)+r-1894007588+s[e+3]<<0)<<5|r>>>27)+(o&(i=i<<30|i>>>2)|o&a|i&a)+n-1894007588+s[e+4]<<0,o=o<<30|o>>>2;for(;e<80;e+=5)n=(t=(r=(t=(o=(t=(i=(t=(a=(t=n<<5|n>>>27)+(r^o^i)+a-899497514+s[e]<<0)<<5|a>>>27)+(n^(r=r<<30|r>>>2)^o)+i-899497514+s[e+1]<<0)<<5|i>>>27)+(a^(n=n<<30|n>>>2)^r)+o-899497514+s[e+2]<<0)<<5|o>>>27)+(i^(a=a<<30|a>>>2)^n)+r-899497514+s[e+3]<<0)<<5|r>>>27)+(o^(i=i<<30|i>>>2)^a)+n-899497514+s[e+4]<<0,o=o<<30|o>>>2;this.h0=this.h0+n<<0,this.h1=this.h1+r<<0,this.h2=this.h2+o<<0,this.h3=this.h3+i<<0,this.h4=this.h4+a<<0},Sha1.prototype.hex=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4;return HEX_CHARS[e>>28&15]+HEX_CHARS[e>>24&15]+HEX_CHARS[e>>20&15]+HEX_CHARS[e>>16&15]+HEX_CHARS[e>>12&15]+HEX_CHARS[e>>8&15]+HEX_CHARS[e>>4&15]+HEX_CHARS[15&e]+HEX_CHARS[t>>28&15]+HEX_CHARS[t>>24&15]+HEX_CHARS[t>>20&15]+HEX_CHARS[t>>16&15]+HEX_CHARS[t>>12&15]+HEX_CHARS[t>>8&15]+HEX_CHARS[t>>4&15]+HEX_CHARS[15&t]+HEX_CHARS[n>>28&15]+HEX_CHARS[n>>24&15]+HEX_CHARS[n>>20&15]+HEX_CHARS[n>>16&15]+HEX_CHARS[n>>12&15]+HEX_CHARS[n>>8&15]+HEX_CHARS[n>>4&15]+HEX_CHARS[15&n]+HEX_CHARS[r>>28&15]+HEX_CHARS[r>>24&15]+HEX_CHARS[r>>20&15]+HEX_CHARS[r>>16&15]+HEX_CHARS[r>>12&15]+HEX_CHARS[r>>8&15]+HEX_CHARS[r>>4&15]+HEX_CHARS[15&r]+HEX_CHARS[o>>28&15]+HEX_CHARS[o>>24&15]+HEX_CHARS[o>>20&15]+HEX_CHARS[o>>16&15]+HEX_CHARS[o>>12&15]+HEX_CHARS[o>>8&15]+HEX_CHARS[o>>4&15]+HEX_CHARS[15&o]},Sha1.prototype.toString=Sha1.prototype.hex,Sha1.prototype.digest=function(){this.finalize();var e=this.h0,t=this.h1,n=this.h2,r=this.h3,o=this.h4;return[e>>24&255,e>>16&255,e>>8&255,255&e,t>>24&255,t>>16&255,t>>8&255,255&t,n>>24&255,n>>16&255,n>>8&255,255&n,r>>24&255,r>>16&255,r>>8&255,255&r,o>>24&255,o>>16&255,o>>8&255,255&o]},Sha1.prototype.array=Sha1.prototype.digest,Sha1.prototype.arrayBuffer=function(){this.finalize();var e=new ArrayBuffer(20),t=new DataView(e);return t.setUint32(0,this.h0),t.setUint32(4,this.h1),t.setUint32(8,this.h2),t.setUint32(12,this.h3),t.setUint32(16,this.h4),e};var exports=createMethod();COMMON_JS?module.exports=exports:(root.sha1=exports,AMD&&(__WEBPACK_AMD_DEFINE_RESULT__=function(){return exports}.call(exports,__webpack_require__,exports,module),void 0===__WEBPACK_AMD_DEFINE_RESULT__||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)))}()}).call(this,__webpack_require__(195),__webpack_require__(36),__webpack_require__(86)(module))},function(e,t,n){var r;
/*!
* jsUri
* https://github.com/derek-watson/jsUri
*
* Copyright 2013, Derek Watson
* Released under the MIT license.
*
* Includes parseUri regular expressions
* http://blog.stevenlevithan.com/archives/parseuri
* Copyright 2007, Steven Levithan
* Released under the MIT license.
*/!function(o){var i={starts_with_slashes:/^\/+/,ends_with_slashes:/\/+$/,pluses:/\+/g,query_separator:/[&;]/,uri_parser:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*)(?::([^:@]*))?)?@)?(\[[0-9a-fA-F:.]+\]|[^:\/?#]*)(?::(\d+|(?=:)))?(:)?)((((?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/};function a(e){return e&&(e=e.toString().replace(i.pluses,"%20"),e=decodeURIComponent(e)),e}function s(e){var t,n,r,o,s,l,u,c=[];if(null==e||""===e)return c;for(0===e.indexOf("?")&&(e=e.substring(1)),t=0,u=(n=e.toString().split(i.query_separator)).length;t<u;t++)0!==(o=(r=n[t]).indexOf("="))&&(s=a(r.substring(0,o)),l=a(r.substring(o+1)),c.push(-1===o?[r,null]:[s,l]));return c}function l(e){this.uriParts=function(e){var t=i.uri_parser.exec(e||""),n={};return["source","protocol","authority","userInfo","user","password","host","port","isColonUri","relative","path","directory","file","query","anchor"].forEach((function(e,r){n[e]=t[r]||""})),n}(e),this.queryPairs=s(this.uriParts.query),this.hasAuthorityPrefixUserPref=null}Array.prototype.forEach||(Array.prototype.forEach=function(e,t){var n,r;if(null==this)throw new TypeError(" this is null or not defined");var o=Object(this),i=o.length>>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(arguments.length>1&&(n=t),r=0;r<i;){var a;r in o&&(a=o[r],e.call(n,a,r,o)),r++}}),["protocol","userInfo","host","port","path","anchor"].forEach((function(e){l.prototype[e]=function(t){return void 0!==t&&(this.uriParts[e]=t),this.uriParts[e]}})),l.prototype.hasAuthorityPrefix=function(e){return void 0!==e&&(this.hasAuthorityPrefixUserPref=e),null===this.hasAuthorityPrefixUserPref?-1!==this.uriParts.source.indexOf("//"):this.hasAuthorityPrefixUserPref},l.prototype.isColonUri=function(e){if(void 0===e)return!!this.uriParts.isColonUri;this.uriParts.isColonUri=!!e},l.prototype.query=function(e){var t,n,r,o="";for(void 0!==e&&(this.queryPairs=s(e)),t=0,r=this.queryPairs.length;t<r;t++)n=this.queryPairs[t],o.length>0&&(o+="&"),null===n[1]?o+=n[0]:(o+=n[0],o+="=",void 0!==n[1]&&(o+=encodeURIComponent(n[1])));return o.length>0?"?"+o:o},l.prototype.getQueryParamValue=function(e){var t,n,r;for(n=0,r=this.queryPairs.length;n<r;n++)if(e===(t=this.queryPairs[n])[0])return t[1]},l.prototype.getQueryParamValues=function(e){var t,n,r,o=[];for(t=0,r=this.queryPairs.length;t<r;t++)e===(n=this.queryPairs[t])[0]&&o.push(n[1]);return o},l.prototype.deleteQueryParam=function(e,t){var n,r,o,i,s,l=[];for(n=0,s=this.queryPairs.length;n<s;n++)o=a((r=this.queryPairs[n])[0])===a(e),i=r[1]===t,(1!==arguments.length||o)&&(2!==arguments.length||o&&i)||l.push(r);return this.queryPairs=l,this},l.prototype.addQueryParam=function(e,t,n){return 3===arguments.length&&-1!==n?(n=Math.min(n,this.queryPairs.length),this.queryPairs.splice(n,0,[e,t])):arguments.length>0&&this.queryPairs.push([e,t]),this},l.prototype.hasQueryParam=function(e){var t,n=this.queryPairs.length;for(t=0;t<n;t++)if(this.queryPairs[t][0]==e)return!0;return!1},l.prototype.replaceQueryParam=function(e,t,n){var r,o,i=-1,s=this.queryPairs.length;if(3===arguments.length){for(r=0;r<s;r++)if(a((o=this.queryPairs[r])[0])===a(e)&&decodeURIComponent(o[1])===a(n)){i=r;break}i>=0&&this.deleteQueryParam(e,a(n)).addQueryParam(e,t,i)}else{for(r=0;r<s;r++)if(a((o=this.queryPairs[r])[0])===a(e)){i=r;break}this.deleteQueryParam(e),this.addQueryParam(e,t,i)}return this},["protocol","hasAuthorityPrefix","isColonUri","userInfo","host","port","path","query","anchor"].forEach((function(e){var t="set"+e.charAt(0).toUpperCase()+e.slice(1);l.prototype[t]=function(t){return this[e](t),this}})),l.prototype.scheme=function(){var e="";return this.protocol()?(e+=this.protocol(),this.protocol().indexOf(":")!==this.protocol().length-1&&(e+=":"),e+="//"):this.hasAuthorityPrefix()&&this.host()&&(e+="//"),e},l.prototype.origin=function(){var e=this.scheme();return this.userInfo()&&this.host()&&(e+=this.userInfo(),this.userInfo().indexOf("@")!==this.userInfo().length-1&&(e+="@")),this.host()&&(e+=this.host(),(this.port()||this.path()&&this.path().substr(0,1).match(/[0-9]/))&&(e+=":"+this.port())),e},l.prototype.addTrailingSlash=function(){var e=this.path()||"";return"/"!==e.substr(-1)&&this.path(e+"/"),this},l.prototype.toString=function(){var e,t=this.origin();return this.isColonUri()?this.path()&&(t+=":"+this.path()):this.path()?(e=this.path(),i.ends_with_slashes.test(t)||i.starts_with_slashes.test(e)?(t&&t.replace(i.ends_with_slashes,"/"),e=e.replace(i.starts_with_slashes,"/")):t+="/",t+=e):this.host()&&(this.query().toString()||this.anchor())&&(t+="/"),this.query().toString()&&(t+=this.query().toString()),this.anchor()&&(0!==this.anchor().indexOf("#")&&(t+="#"),t+=this.anchor()),t},l.prototype.clone=function(){return new l(this.toString())},void 0===(r=function(){return l}.call(t,n,t,e))||(e.exports=r)}()},,function(e,t,n){"use strict";var r=n(243),o=n.n(r),i=n(35),a=n.n(i);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={language:"en-US",messages:function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},{"be.accessStatsPermissionsError":"Sorry, you do not have permission to see the access stats for this file.","be.activityFeed.fullDateTime":"{time, date, full} at {time, time, short}","be.activityFeedItemApiError":"There was a problem loading the activity feed. Please refresh the page or try again later.","be.activitySidebar.activityFeed.annotationMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.commentMissingError":"This comment no longer exists","be.activitySidebar.activityFeed.feedInlineErrorTitle":"Error","be.activitySidebar.activityFeed.taskMissingError":"This task no longer exists","be.add":"Add","be.additionalTab.blockedByShieldAccessPolicy":"Use of this app has been disabled by the applied access policy","be.api.appActivityDeleteErrorMessage":"There was an error deleting this item.","be.api.commentCreateConflictMessage":"This comment already exists.","be.api.commentCreateErrorMessage":"There was an error creating this comment.","be.api.commentDeleteErrorMessage":"There was an error deleting this comment.","be.api.taskActionErrorTitle":"Error","be.api.taskApproveErrorMessage":"An error has occurred while approving this task. Please refresh the page and try again.","be.api.taskCompleteErrorMessage":"An error has occurred while completing this task. Please refresh the page and try again.","be.api.taskCreateErrorMessage":"An error occurred while creating this task. Please try again.","be.api.taskDeleteErrorMessage":"There was an error while deleting this task. Please refresh the page and try again.","be.api.taskGroupExceedsWarningTitle":"One or more groups can not receive this task as a group size cannot exceed the limit of {max} assignees per group.","be.api.taskRejectErrorMessage":"An error has occurred while rejecting this task. Please refresh the page and try again.","be.appActivity.altIcon":"{appActivityName} Icon","be.appActivity.deleteMenuItem":"Delete","be.appActivity.deletePrompt":"Are you sure you want to permanently delete this app activity?","be.back":"Back","be.boxEditBlacklistedError":"This file cannot be opened locally","be.boxEditErrorBlockedByPolicy":"Local editing of this content has been disabled based on an access policy","be.boxToolsInstallMessage":"Install {boxTools} to open this file on your desktop","be.cancel":"Cancel","be.choose":"Choose","be.close":"Close","be.collapse":"Collapse","be.contentSharing.badRequestError":"The request for this item was malformed.","be.contentSharing.collaboratorsLoadingError":"Could not retrieve collaborators for this item.","be.contentSharing.getContactsError":"Could not retrieve contacts.","be.contentSharing.loadingError":"Could not load shared link for this item.","be.contentSharing.noAccessError":"You do not have access to this item.","be.contentSharing.notFoundError":"Could not find shared link for this item.","be.contentSharing.sendInvitesError":"Could not send invites.","be.contentSharing.sendInvitesSuccess":"Successfully invited collaborators.","be.contentSharing.sharedLinkRemovalSuccess":"The shared link for this item was removed.","be.contentSharing.sharedLinkSettingsUpdateSuccess":"The shared link for this item was successfully updated.","be.contentSharing.sharedLinkUpdateError":"Could not update the shared link for this item.","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.annotationActivity.annotationActivityDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.annotationActivity.annotationActivityPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.annotationActivityPageItem":"Page {number}","be.contentSidebar.activityFeed.annotationActivityVersionLink":"Version {number}","be.contentSidebar.activityFeed.annotationActivityVersionUnavailable":"Version Unavailable","be.contentSidebar.activityFeed.comment.commentDeleteMenuItem":"Delete","be.contentSidebar.activityFeed.comment.commentDeletePrompt":"Are you sure you want to permanently delete this comment?","be.contentSidebar.activityFeed.comment.commentEditMenuItem":"Modify","be.contentSidebar.activityFeed.comment.commentPostedFullDateTime":"{time, date, full} at {time, time, short}","be.contentSidebar.activityFeed.commentForm.approvalAddAssignee":"Add an assignee","be.contentSidebar.activityFeed.commentForm.approvalAddTask":"Add Task","be.contentSidebar.activityFeed.commentForm.approvalAddTaskTooltip":"Assigning a task to someone will send them a notification with the message in the comment box and allow them to approve or deny.","be.contentSidebar.activityFeed.commentForm.approvalAssignees":"Assignees","be.contentSidebar.activityFeed.commentForm.approvalDueDate":"Due Date","be.contentSidebar.activityFeed.commentForm.approvalSelectDate":"Select a date","be.contentSidebar.activityFeed.commentForm.atMentionTip":"@mention users to notify them.","be.contentSidebar.activityFeed.commentForm.commentCancel":"Cancel","be.contentSidebar.activityFeed.commentForm.commentLabel":"Comment","be.contentSidebar.activityFeed.commentForm.commentPost":"Post","be.contentSidebar.activityFeed.commentForm.commentWrite":"Write a comment","be.contentSidebar.activityFeed.commmon.showOriginalMessage":"Show Original","be.contentSidebar.activityFeed.common.translateMessage":"Translate","be.contentSidebar.activityFeed.task.taskAnyAffordanceTooltip":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.task.taskDeleteMenuItem":"Delete task","be.contentSidebar.activityFeed.task.taskDeletePrompt":"Are you sure you want to permanently delete this task?","be.contentSidebar.activityFeed.task.taskEditMenuItem":"Modify task","be.contentSidebar.activityFeed.task.taskMultipleFilesAffordanceTooltip":"There are multiple files associated with this task","be.contentSidebar.activityFeed.taskForm.taskAnyCheckboxLabel":"Only one assignee is required to complete this task","be.contentSidebar.activityFeed.taskForm.taskAnyInfoGroupTooltip":"Selecting this option will require only one assignee to complete this task. This will include assignees across all groups.","be.contentSidebar.activityFeed.taskForm.taskAnyInfoTooltip":"By default, all assignees are required to take action before a task is complete. Selecting this option will require only one assignee to complete this task.","be.contentSidebar.activityFeed.taskForm.taskApprovalAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now approved.","be.contentSidebar.activityFeed.taskForm.taskCreateErrorTitle":"Error","be.contentSidebar.activityFeed.taskForm.taskCreateGroupLabel":"Group","be.contentSidebar.activityFeed.taskForm.taskEditWarningTitle":"Task Updated with Errors","be.contentSidebar.activityFeed.taskForm.taskGeneralAssigneeRemovalWarningMessage":"Unable to remove assignee(s) because the task is now completed.","be.contentSidebar.activityFeed.taskForm.taskGroupExceedsWarningTitle":"Exceeded max assignees per group","be.contentSidebar.activityFeed.taskForm.taskUpdateErrorMessage":"An error occurred while modifying this task. Please try again.","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormCancelLabel":"Cancel","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormDueDateLabel":"Due Date","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormMessageLabel":"Message","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSelectAssigneesLabel":"Select Assignees","be.contentSidebar.activityFeed.taskForm.tasksAddTaskFormSubmitLabel":"Create","be.contentSidebar.activityFeed.taskForm.tasksEditTaskFormSubmitLabel":"Update","be.contentSidebar.activityFeed.taskNew.taskAssignmentCompleted":"Completed","be.contentSidebar.activityFeed.taskNew.taskCollaboratorLoadErrorMessage":"An error has occurred while loading collaborators for this task. Please try again.","be.contentSidebar.activityFeed.taskNew.taskDueDateLabel":"Due: {date}","be.contentSidebar.activityFeed.taskNew.taskFeedStatusDue":"DUE {dateTime}","be.contentSidebar.activityFeed.taskNew.taskShowLessAssignees":"Show Less","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssignees":"Show {additionalAssigneeCount} More","be.contentSidebar.activityFeed.taskNew.taskShowMoreAssigneesOverflow":"{additionalAssigneeCount, plural, one {Show #+ More} other {Show #+ More}}","be.contentSidebar.activityFeed.taskNew.tasksFeedApproveAction":"Approve","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedLabel":"Approved","be.contentSidebar.activityFeed.taskNew.tasksFeedApprovedUppercaseLabel":"APPROVED","be.contentSidebar.activityFeed.taskNew.tasksFeedAssigneeListTitle":"Assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedCompleteAction":"Mark as Complete","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedLabel":"Completed","be.contentSidebar.activityFeed.taskNew.tasksFeedCompletedUppercaseLabel":"COMPLETED","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApproval":"{user} assigned an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineApprovalCurrentUser":"{user} assigned you an Approval Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneral":"{user} assigned a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedHeadlineGeneralCurrentUser":"{user} assigned you a Task","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressLabel":"In Progress","be.contentSidebar.activityFeed.taskNew.tasksFeedInProgressUppercaseLabel":"IN PROGRESS","be.contentSidebar.activityFeed.taskNew.tasksFeedMoreAssigneesLabel":"See all assignees","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectAction":"Reject","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedLabel":"Rejected","be.contentSidebar.activityFeed.taskNew.tasksFeedRejectedUppercaseLabel":"REJECTED","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusApproved":"Approved {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusCompleted":"Completed {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedStatusRejected":"Rejected {dateTime}","be.contentSidebar.activityFeed.taskNew.tasksFeedViewDetailsAction":"View Task Details","be.contentSidebar.addTask":"Add Task","be.contentSidebar.addTask.approval":"Approval Task","be.contentSidebar.addTask.approval.description":"Assignees will be responsible for approving or rejecting tasks","be.contentSidebar.addTask.approval.title":"Create Approval Task","be.contentSidebar.addTask.general":"General Task","be.contentSidebar.addTask.general.description":"Assignees will be responsible for marking tasks as complete","be.contentSidebar.addTask.general.title":"Create General Task","be.contentSidebar.editTask.approval.title":"Modify Approval Task","be.contentSidebar.editTask.general.title":"Modify General Task","be.copy":"Copy","be.create":"Create","be.createDialogErrorInUse":"A folder with the same name already exists.","be.createDialogErrorInvalid":"This is an invalid folder name.","be.createDialogErrorTooLong":"This folder name is too long.","be.createDialogLabel":"New Folder","be.createDialogText":"Please enter a name.","be.currentUserErrorHeaderMessage":"Something went wrong when fetching the current user.","be.dateASC":"Date: Oldest → Newest","be.dateDESC":"Date: Newest → Oldest","be.defaultErrorMaskHeaderMessage":"We’re sorry, something went wrong.","be.defaultErrorMaskSubHeaderMessage":"Please refresh the page or try again later.","be.defaultInlineErrorContentMessage":"Please try again later.","be.defaultOpenWithDescription":"Open this file with a partner service","be.defaultSkill":"Skill Card","be.delete":"Delete","be.deleteDialogFileText":"Are you sure you want to delete {name}?","be.deleteDialogFolderText":"Are you sure you want to delete {name} and all its contents?","be.deleteDialogLabel":"Confirm Delete","be.description":"Description","be.descriptionPlaceholder":"Enter a description","be.download":"Download","be.drawAnnotation":"Drawing annotation mode","be.editLabel":"Edit","be.emptyOpenWithDescription":"No integrations are available for this file","be.error":"Error","be.errorBreadcrumb":"Error","be.errorOccured":"An error occurred","be.errorOpenWithDescription":"Opening this file with other services is currently unavailable","be.errorState":"A network error has occurred while trying to load.","be.executeIntegrationOpenWithErrorHeader":"We’re sorry, this integration is currently unavailable.","be.executeIntegrationOpenWithErrorSubHeader":"Please try again later.","be.expand":"Expand","be.faceSkill":"Faces","be.feedbackCtaText":"Click to provide feedback","be.feedbackFormDescription":"Beta Feedback Form","be.fileAccessStatsErrorHeaderMessage":"Something went wrong when fetching the access stats.","be.fileClassificationErrorHeaderMessage":"Something went wrong when fetching classification.","be.fileDescriptionInlineErrorTitleMessage":"Something went wrong when saving the description.","be.fileRequestDisplayName":"File Request","be.folderState":"There are no items in this folder.","be.getVersionInfo":"Get version information","be.gridView":"Switch to Grid View","be.gridView.decreaseColumnSize":"Decrease column size","be.gridView.increaseColumnSize":"Increase column size","be.in":"In","be.interactedDate":"Last accessed on {date}","be.itemCreated":"Created","be.itemInteracted":"Last Accessed","be.itemModified":"Modified","be.itemName":"Name","be.itemOwner":"Owner","be.itemSize":"Size","be.itemUploader":"Uploader","be.keywordSkill":"Topics","be.keywordsAppliedList":"Keywords were applied","be.keywordsList":"Keywords: {words}","be.listView":"Switch to List View","be.loadingState":"Please wait while the items load...","be.logo":"Logo","be.max":"max","be.metadataState":"There are no items in this folder.","be.modifiedDate":"Modified {date}","be.modifiedDateBy":"Modified {date} by {name}","be.nameASC":"Name: A → Z","be.nameDESC":"Name: Z → A","be.nameDate":"{date} by {name}","be.newFolder":"New Folder","be.nextFile":"Next File","be.nextSegment":"Next Segment","be.noActivity":"No activity to show","be.noActivityAnnotationPrompt":"Hover over the preview and use the controls at the bottom to annotate the file.","be.noActivityCommentPrompt":"Comment and @mention people to notify them.","be.open":"Open","be.pagination.nextPage":"Next Page","be.pagination.pageStatus":"{pageNumber} of {pageCount}","be.pagination.previousPage":"Previous Page","be.pointAnnotation":"Point annotation mode","be.preview":"Preview","be.previewError":"We’re sorry, the preview didn’t load. Please refresh the page.","be.previewErrorBlockedByPolicy":"Your access is restricted due to the classification applied to this content.","be.previewUpdate":"A new version of this file is available.","be.previousFile":"Previous File","be.previousSegment":"Previous Segment","be.print":"Print","be.priorCollaborator":"A Prior Collaborator","be.recentsBreadcrumb":"Recents","be.recentsState":"There are no recent items yet.","be.reload":"Reload","be.remove":"Remove","be.rename":"Rename","be.renameDialogErrorInUse":"An item with the same name already exists.","be.renameDialogErrorInvalid":"This name is invalid.","be.renameDialogErrorTooLong":"This name is too long.","be.renameDialogLabel":"Rename","be.renameDialogText":"Please enter a new name for {name}:","be.resume":"Resume","be.resumeAll":"Resume All","be.retry":"Retry","be.rootBreadcrumb":"All Files","be.save":"Save","be.searchBreadcrumb":"Search Results","be.searchPlaceholder":"Search files and folders","be.searchState":"Sorry, we couldn’t find what you’re looking for.","be.selected":"{count} Selected","be.selectedBreadcrumb":"Selected Items","be.selectedState":"You haven’t selected any items yet.","be.share":"Share","be.shareAccessCollab":"Access: People in this folder","be.shareAccessCompany":"People in this company","be.shareAccessNone":"No shared link","be.shareAccessOpen":"Access: People with the link","be.shareAccessRemove":"Remove shared link","be.shareDialogLabel":"Share","be.shareDialogNone":"None","be.shareDialogText":"Shared Link:","be.sidebarAccessStats":"Access Stats","be.sidebarActivityTitle":"Activity","be.sidebarDetailsTitle":"Details","be.sidebarFileFetchingErrorContent":"An error has occurred while fetching your Box file. Please refresh the page and try again.","be.sidebarHide":"Hide Sidebar","be.sidebarMetadataEditingErrorContent":"An error has occurred while updating metadata. Please refresh the page and try again.","be.sidebarMetadataFetchingErrorContent":"An error has occurred while fetching metadata. Please refresh the page and try again.","be.sidebarMetadataTitle":"Metadata","be.sidebarNavLabel":"Sidebar","be.sidebarProperties":"File Properties","be.sidebarShow":"Show Sidebar","be.sidebarSkillsErrorContent":"An error has occurred while updating skills. Please refresh the page and try again.","be.sidebarSkillsErrorTitle":"Skills Error","be.sidebarSkillsTitle":"Skills","be.sidebarVersions.current":"Current Version","be.sidebarVersions.delete":"Delete","be.sidebarVersions.deleteError":"File version could not be deleted.","be.sidebarVersions.deletedBy":"Deleted by {name}","be.sidebarVersions.disabledByRetention":"Disabled by retention policy","be.sidebarVersions.download":"Download","be.sidebarVersions.downloadError":"File version could not be downloaded.","be.sidebarVersions.empty":"No prior versions are available for this file.","be.sidebarVersions.fetchError":"File versions could not be retrieved.","be.sidebarVersions.fileRequestDisplayName":"File Request","be.sidebarVersions.preview":"Preview","be.sidebarVersions.priorWeek":"Last Week","be.sidebarVersions.promote":"Make Current","be.sidebarVersions.promoteError":"File version could not be made current.","be.sidebarVersions.promotedBy":"Promoted from v{versionPromoted} by {name}","be.sidebarVersions.restore":"Restore","be.sidebarVersions.restoreError":"File version could not be restored.","be.sidebarVersions.restoredBy":"Restored by {name}","be.sidebarVersions.serverError":"Server Error","be.sidebarVersions.thisMonth":"This Month","be.sidebarVersions.title":"Version History","be.sidebarVersions.today":"Today","be.sidebarVersions.toggle":"Toggle Actions Menu","be.sidebarVersions.uploadedBy":"Uploaded by {name}","be.sidebarVersions.versionLimitExceeded":"You are limited to the last {versionLimit, number} {versionLimit, plural, one {version} other {versions}}.","be.sidebarVersions.versionMaxEntries":"Version history is limited to the last {maxVersions} entries.","be.sidebarVersions.versionNumberBadge":"V{versionNumber}","be.sidebarVersions.versionNumberLabel":"Version number {versionNumber}","be.sidebarVersions.versionRetentionDelete":"Will be deleted {time} by retention policy.","be.sidebarVersions.versionRetentionIndefinite":"Retained indefinitely by retention policy.","be.sidebarVersions.versionRetentionRemove":"Retention policy expires on {time}.","be.sidebarVersions.versionUserUnknown":"Unknown","be.sidebarVersions.yesterday":"Yesterday","be.sizeASC":"Size: Smallest → Largest","be.sizeDESC":"Size: Largest → Smallest","be.skillFileProcessingError":"We’re sorry, something went wrong with processing the file.","be.skillInvalidFileExtensionError":"We’re sorry, no skills information was found. This file extension is currently not supported.","be.skillInvalidFileSizeError":"We’re sorry, no skills information was found. This file size is currently not supported.","be.skillInvokedStatus":"We’re preparing to process your file - please hold!","be.skillNoInfoFoundError":"We’re sorry, no skills information was found.","be.skillPendingStatus":"We’re working on processing your file - please hold!","be.skillUnknownError":"Something went wrong with running this skill or fetching its data.","be.sort":"Sort","be.statusSkill":"Status","be.today":"today","be.topicsSkill":"Topics","be.transcriptEdit":"Click any section to edit.","be.transcriptSkill":"Transcript","be.upload":"Upload","be.uploadEmptyFileInput":"Browse your device","be.uploadEmptyFolderInput":"Select Folders","be.uploadEmptyWithFolderUploadDisabled":"Drag and drop files","be.uploadEmptyWithFolderUploadEnabled":"Drag and drop files and folders","be.uploadError":"A network error has occurred while trying to upload.","be.uploadErrorTooManyFiles":"You can only upload up to {fileLimit} file(s) at a time.","be.uploadInProgress":"Drag and drop to add additional files","be.uploadNoDragDrop":"Select files from your device","be.uploadOptions":"{option1} or {option2}","be.uploadSuccess":"Success! Your files have been uploaded.","be.uploadSuccessFileInput":"Select More Files","be.uploadSuccessFolderInput":"Select More Folders","be.uploadsCancelButtonTooltip":"Cancel this upload","be.uploadsDefaultErrorMessage":"Something went wrong with the upload. Please try again.","be.uploadsFileSizeLimitExceededErrorMessage":"File size exceeds the folder owner’s file size limit","be.uploadsItemNameInUseErrorMessage":"A file with this name already exists.","be.uploadsManagerUploadComplete":"Completed","be.uploadsManagerUploadFailed":"Some Uploads Failed","be.uploadsManagerUploadInProgress":"Uploading","be.uploadsManagerUploadPrompt":"Drop files on this page to upload them into this folder.","be.uploadsOneOrMoreChildFoldersFailedToUploadMessage":"One or more child folders failed to upload.","be.uploadsPendingFolderSizeLimitErrorMessage":"Pending app folder size limit exceeded","be.uploadsProvidedFolderNameInvalidMessage":"Provided folder name, {name}, could not be used to create a folder.","be.uploadsRetryButtonTooltip":"Retry upload","be.uploadsStorageLimitErrorMessage":"Account storage limit reached","be.versionDeleted":"{name} deleted v{version_number}","be.versionMultipleUsersUploaded":"{numberOfCollaborators} collaborators uploaded v{versions}","be.versionPromoted":"{name} promoted v{version_promoted} to v{version_number}","be.versionRestored":"{name} restored v{version_number}","be.versionUploadCollapsed":"{name} uploaded v{versions}","be.versionUploaded":"{name} uploaded v{version_number}","be.yesterday":"yesterday","boxui.accessStats.accessStatsComments":"Comments","boxui.accessStats.accessStatsDownloads":"Downloads","boxui.accessStats.accessStatsEdits":"Edits","boxui.accessStats.accessStatsPreviews":"Previews","boxui.accessStats.accessStatsViewDetails":"View Details","boxui.accessStats.accessStatsViews":"Views","boxui.badges.beta":"BETA","boxui.badges.trial":"TRIAL","boxui.badges.upgrade":"UPGRADE","boxui.base.nextMonth":"Next Month","boxui.base.previousMonth":"Previous Month","boxui.breadcrumb.breadcrumbLabel":"Breadcrumb","boxui.checkboxTooltip.iconInfoText":"Info","boxui.classification.add":"Add","boxui.classification.classification":"Classification","boxui.classification.classificationDarkBlue":"Dark Blue","boxui.classification.classificationGreen":"Green","boxui.classification.classificationGrey":"Grey","boxui.classification.classificationLightBlue":"Light Blue","boxui.classification.classificationOrange":"Orange","boxui.classification.classificationPurple":"Purple","boxui.classification.classificationRed":"Red","boxui.classification.classificationYellow":"Yellow","boxui.classification.definition":"Definition","boxui.classification.edit":"Edit","boxui.classification.missing":"Not classified","boxui.classification.modifiedBy":"{modifiedBy} on {modifiedAt}","boxui.classification.modifiedByLabel":"Classification Updated By","boxui.collaboratorAvatars.collaboration.pendingCollabText":"Pending","boxui.collaboratorAvatars.collaboratorAvatarsLabel":"Shared with","boxui.collaboratorAvatars.collaborators.expirationTooltipText":"Access expires on {date}","boxui.collaboratorAvatars.collaborators.externalCollabTooltipText":"{email} is from outside of your company","boxui.collaboratorAvatars.manageAllLinkText":"Manage All","boxui.collaboratorAvatars.viewAdditionalPeopleText":"View additional people","boxui.collapsiblesidebar.collapseBtnLabel":"Collapse","boxui.collapsiblesidebar.expandBtnLabel":"Expand","boxui.contentExplorer.bookmark":"Bookmark","boxui.contentExplorer.breadcrumb":"Breadcrumb","boxui.contentExplorer.cancel":"Cancel","boxui.contentExplorer.choose":"Choose","boxui.contentExplorer.clickToGoBack":"Click to go back","boxui.contentExplorer.collaboratedFolder":"Collaborated Folder","boxui.contentExplorer.copy":"Copy","boxui.contentExplorer.emptyFolder":"There are no subfolders in this folder.","boxui.contentExplorer.emptySearch":"Sorry, we couldn't find what you're looking for.","boxui.contentExplorer.externalFolder":"External Folder","boxui.contentExplorer.file":"File","boxui.contentExplorer.move":"Move","boxui.contentExplorer.name":"Name","boxui.contentExplorer.newFolder":"New Folder","boxui.contentExplorer.numSelected":"{numSelected} Selected","boxui.contentExplorer.personalFolder":"Personal Folder","boxui.contentExplorer.searchPlaceholder":"Search","boxui.contentExplorer.searchResults":"Search Results","boxui.contentExplorer.selectItem":"Select {name}","boxui.contentexplorer.newFolder.forbidden":"You do not have permission to create a folder here.","boxui.core.cancel":"Cancel","boxui.core.close":"Close","boxui.core.copied":"Copied","boxui.core.copy":"Copy","boxui.core.done":"Done","boxui.core.guidetooltip.navigation":"{currentStepIndex} of {totalNumSteps}","boxui.core.hotkeys.altKey":"Alt","boxui.core.hotkeys.ctrlKey":"Ctrl","boxui.core.hotkeys.enterKey":"Enter","boxui.core.hotkeys.escKey":"Esc","boxui.core.hotkeys.hotkeyModalTitle":"Keyboard Shortcuts","boxui.core.hotkeys.hotkeySequence":"{key1} then {key2}","boxui.core.hotkeys.shiftKey":"Shift","boxui.core.hotkeys.spacebarKey":"Spacebar","boxui.core.okay":"Okay","boxui.core.optional":"optional","boxui.core.save":"Save","boxui.core.selection.deselectAllDescription":"Deselect all items","boxui.core.selection.downDescription":"Select next item","boxui.core.selection.selectAllDescription":"Select all items","boxui.core.selection.shiftDownDescription":"Add next item to current selection","boxui.core.selection.shiftUpDescription":"Add previous item to current selection","boxui.core.selection.shiftXDescription":"Select current item","boxui.core.selection.upDescription":"Select previous item","boxui.core.send":"Send","boxui.datePicker.chooseDate":"Choose Date","boxui.datePicker.dateClearButton":"Clear Date","boxui.datePicker.iconAlertText":"Invalid Date","boxui.draftjs.mentionSelector.startMention":"Mention someone to notify them","boxui.errorMask.iconSadCloudText":"Sad Box Cloud","boxui.features.VirtualizedTableRenderers.allFiles":"All Files","boxui.features.VirtualizedTableRenderers.anonymousUser":"Anonymous User","boxui.features.VirtualizedTableRenderers.externalFile":"External File","boxui.features.VirtualizedTableRenderers.externalFolder":"External Folder","boxui.features.VirtualizedTableRenderers.lastModifiedBy":"{lastModified} by {user}","boxui.features.VirtualizedTableRenderers.unknownUser":"Unknown User","boxui.itemDetails.bookmarkExpiration":"This bookmark will be deleted on {expiration}.","boxui.itemDetails.created":"Created","boxui.itemDetails.deleted":"Deleted","boxui.itemDetails.description":"Description","boxui.itemDetails.descriptionPlaceholder":"Enter a description","boxui.itemDetails.enterpriseOwner":"Enterprise Owner","boxui.itemDetails.fileExpiration":"This file will be deleted on {expiration}.","boxui.itemDetails.folderExpiration":"This folder will be deleted on {expiration}.","boxui.itemDetails.modified":"Modified","boxui.itemDetails.owner":"Owner","boxui.itemDetails.retentionPolicyDescription":"Policy","boxui.itemDetails.retentionPolicyExpiration":"Policy Expiration","boxui.itemDetails.retentionPolicyExtend":"Extend","boxui.itemDetails.savedVersions":"{versionCount, number} Saved Versions","boxui.itemDetails.sharedLinkExpiration":"This shared link will be disabled on {expiration}.","boxui.itemDetails.size":"Size","boxui.itemDetails.uploader":"Uploader","boxui.itemDetails.url":"URL","boxui.itemDetails.urlPlaceholder":"Enter a valid url","boxui.metadataInstanceEditor.allAttributesAreHidden":"All attributes in this template have been hidden.","boxui.metadataInstanceEditor.applyCascadePolicyText":"Apply template and its values to all new and existing items in this folder and its subfolders.","boxui.metadataInstanceEditor.cannotApplyCascadePolicyText":"Cascade policy cannot be applied to custom metadata at this time.","boxui.metadataInstanceEditor.cascadePolicyLearnMore":"Learn more","boxui.metadataInstanceEditor.cascadePolicyModeQuestion":"In the case of conflicts when applying this template and its values to existing items, what would you like to do? This is a one time action.","boxui.metadataInstanceEditor.cascadePolicyOverwriteMode":"Overwrite all existing template values","boxui.metadataInstanceEditor.cascadePolicySkipMode":"Skip and keep all existing template values","boxui.metadataInstanceEditor.customAdd":"Add","boxui.metadataInstanceEditor.customErrorDuplicateKey":"A field with that key already exists.","boxui.metadataInstanceEditor.customErrorInternalKey":"Keys cannot begin with a $.","boxui.metadataInstanceEditor.customErrorRequired":"A key is required.","boxui.metadataInstanceEditor.customKey":"Key","boxui.metadataInstanceEditor.customKeyPlaceholder":"e.g. Order Number","boxui.metadataInstanceEditor.customNewField":"New Field","boxui.metadataInstanceEditor.customNewFieldMessage":"Add a custom metadata field. Other people will be able to see and search for this field.","boxui.metadataInstanceEditor.customRemove":"Remove","boxui.metadataInstanceEditor.customTitle":"Custom Metadata","boxui.metadataInstanceEditor.customValue":"Value","boxui.metadataInstanceEditor.customValuePlaceholder":"e.g. 42","boxui.metadataInstanceEditor.editTooltip":"Edit Metadata","boxui.metadataInstanceEditor.enableCascadePolicy":"Enable Cascade Policy","boxui.metadataInstanceEditor.fileMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values from this file?","boxui.metadataInstanceEditor.fileMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values from this file?',"boxui.metadataInstanceEditor.folderMetadataRemoveCustomTemplateConfirm":"Are you sure you want to delete this custom metadata and all of its values? Any metadata template values already applied to files in this folder will not be deleted.","boxui.metadataInstanceEditor.folderMetadataRemoveTemplateConfirm":'Are you sure you want to delete "{metadataName}" and all of its values? Any metadata template values already applied to files in this folder will not be deleted.',"boxui.metadataInstanceEditor.invalidValue":"Invalid Input!","boxui.metadataInstanceEditor.metadataCancel":"Cancel","boxui.metadataInstanceEditor.metadataCascadePolicyEnabledInfo":"This template and its values are being cascaded to all items in this folder and its subfolders.","boxui.metadataInstanceEditor.metadataSave":"Save","boxui.metadataInstanceEditor.noAttributesForTemplate":"There are no attributes in this template.","boxui.metadataInstanceEditor.noMetadata":"No Metadata Applied","boxui.metadataInstanceEditor.noMetadataAddTemplate":"Click 'Add' in the top right to add metadata to this item","boxui.metadataInstanceEditor.operationNotImmediate":"This operation is not immediate and may take some time.","boxui.metadataInstanceEditor.removeTemplate":"Remove","boxui.metadataInstanceEditor.templateAdd":"Add","boxui.metadataInstanceEditor.templateSearchPlaceholder":"Search all templates","boxui.metadataInstanceEditor.templatesFetchFailed":"Sorry! We could not fetch templates. Please contact your administrator","boxui.metadataInstanceEditor.templatesNoRemainingTemplates":"All templates have been added","boxui.metadataInstanceEditor.templatesNoResults":"No Results","boxui.metadataInstanceEditor.templatesServerHasNoTemplates":"Zero templates","boxui.metadataInstanceEditor.templatesTitle":"Templates","boxui.metadataInstanceFields.customAdd":"Add","boxui.metadataInstanceFields.customRemove":"Remove","boxui.metadataInstanceFields.fieldMultiSelectValue":"Select Values","boxui.metadataInstanceFields.fieldNoValue":"No Value","boxui.metadataInstanceFields.fieldSelectValue":"Select Value","boxui.metadataInstanceFields.fieldSetDate":"Set Date","boxui.metadataInstanceFields.fieldSetValue":"Set Value","boxui.metadataInstanceFields.invalidMetadataFieldType":"Invalid metadata field type!","boxui.modalDialog.closeModalText":"Close Modal","boxui.newFolderModal.cancel":"Cancel","boxui.newFolderModal.create":"Create","boxui.newFolderModal.folderName.label":"Folder Name","boxui.newFolderModal.folderName.placeholder":"My New Folder","boxui.newFolderModal.title":'Create a New Folder in "{parentFolderName}"',"boxui.notification.clearNotification":"Clear Notification","boxui.presence.accessedInTheLastMinute":"Viewed less than a minute ago","boxui.presence.activeNow":"Active now","boxui.presence.commentedIntheLastMinute":"Commented less than a minute ago","boxui.presence.getLinkButton":"Get Link","boxui.presence.inviteButton":"Invite People","boxui.presence.modifiedIntheLastMinute":"Edited less than a minute ago","boxui.presence.previewPresenceFlyoutAccessStatsLink":"See all activity","boxui.presence.previewPresenceFlyoutActivityCTA":"View Recent Activity","boxui.presence.previewPresenceFlyoutCopy":"Quickly see who has commented on, edited, or viewed this file.","boxui.presence.previewedIntheLastMinute":"Previewed less than a minute ago","boxui.presence.recentActivity":"Recent Activity","boxui.presence.timeSinceLastAccessed":"Viewed {timeAgo}","boxui.presence.timeSinceLastCommented":"Commented {timeAgo}","boxui.presence.timeSinceLastModified":"Edited {timeAgo}","boxui.presence.timeSinceLastPreviewed":"Previewed {timeAgo}","boxui.queryBar.addFilterButtonText":"+ Add Filter","boxui.queryBar.applyFiltersButtonText":"Apply","boxui.queryBar.columnsButtonText":"Columns","boxui.queryBar.columnsHiddenButtonText":"{count, plural, one {1 Column Hidden} other {{count} Columns Hidden}}","boxui.queryBar.connectorAndText":"AND","boxui.queryBar.connectorOrText":"OR","boxui.queryBar.connectorWhereText":"WHERE","boxui.queryBar.filtersButtonText":"Modify Filters","boxui.queryBar.metadataViewTemplateListHeaderTitle":"METADATA TEMPLATES","boxui.queryBar.multipleFiltersButtonText":"{number} Filters","boxui.queryBar.noFiltersAppliedText":"No Filters Applied","boxui.queryBar.noTemplatesText":"No Templates Available","boxui.queryBar.selectValuePlaceholderText":"Select value","boxui.queryBar.templatesButtonText":"Select Metadata","boxui.queryBar.templatesLoadingButtonText":"Template Name","boxui.queryBar.tooltipEnterValueError":"Please Enter a Value","boxui.queryBar.tooltipInvalidFloatError":"Please Enter a Decimal Number","boxui.queryBar.tooltipInvalidNumberError":"Please Enter an Integer","boxui.queryBar.tooltipSelectDateError":"Please Select a Date","boxui.queryBar.tooltipSelectValueError":"Please Select a Value","boxui.quickSearch.bookmark":"Bookmark","boxui.quickSearch.collaboratedFolder":"Collaborated Folder","boxui.quickSearch.externalFolder":"External Folder","boxui.quickSearch.file":"File","boxui.quickSearch.parentFolder":"Parent Folder","boxui.quickSearch.personalFolder":"Personal Folder","boxui.quickSearch.updatedText":"{date, date, medium} by {user}","boxui.quickSearch.updatedTextToday":"Today by {user}","boxui.quickSearch.updatedTextYesterday":"Yesterday by {user}","boxui.readableTime.eventTime":"{time, date, medium}","boxui.readableTime.eventTimeDate":"{time, date, medium} at {time, time, short}","boxui.readableTime.eventTimeDateShort":"{date} at {time, time, short}","boxui.readableTime.eventTimeToday":"Today at {time, time, short}","boxui.readableTime.eventTimeWeekdayLong":"{weekday}, {time, date, medium}","boxui.readableTime.eventTimeYesterday":"Yesterday at {time, time, short}","boxui.searchForm.clearButtonTitle":"Clear","boxui.searchForm.searchButtonTitle":"Search","boxui.searchForm.searchLabel":"Search query","boxui.securityCloudGame.instructions":"For security purposes, please drag the white cloud into the dark cloud.","boxui.securityCloudGame.success":"Success!","boxui.securityControls.allAppNames":"All applications: {appsList}","boxui.securityControls.appDownloadBlacklist":"Download restricted for some applications: {appNames}","boxui.securityControls.appDownloadBlacklistOverflow":"Download restricted for some applications: {appNames} +{remainingAppCount} more","boxui.securityControls.appDownloadBlock":"Some application restrictions apply.","boxui.securityControls.appDownloadWhitelist":"Only select applications are allowed: {appNames}","boxui.securityControls.appDownloadWhitelistOverflow":"Only select applications are allowed: {appNames} +{remainingAppCount} more","boxui.securityControls.desktopDownloadExternalOwners":"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.desktopDownloadExternalOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.desktopDownloadOwners":"Download restricted on Box Drive, except Owners/Co-Owners.","boxui.securityControls.desktopDownloadOwnersEditors":"Download restricted on Box Drive, except Owners/Co-Owners/Editors.","boxui.securityControls.downloadExternal":"Download restricted on Box Drive for external users.","boxui.securityControls.externalCollabBlock":"External collaboration restricted.","boxui.securityControls.externalCollabDomainList":"External collaboration limited to approved domains.","boxui.securityControls.mobileDownloadExternal":"Download restricted on mobile for external users.","boxui.securityControls.mobileDownloadExternalOwners":"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.mobileDownloadExternalOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.mobileDownloadOwners":"Download restricted on mobile, except Owners/Co-Owners.","boxui.securityControls.mobileDownloadOwnersEditors":"Download restricted on mobile, except Owners/Co-Owners/Editors.","boxui.securityControls.modalDescription":"Classification labels defined by your administrator can be used to label content and apply security policies.","boxui.securityControls.modalTitle":"View Classification for '{itemName}'","boxui.securityControls.securityControlsLabel":"Restrictions","boxui.securityControls.sharingCollabAndCompanyOnly":"Shared links cannot be made publicly accessible.","boxui.securityControls.sharingCollabOnly":"Shared links allowed for collaborators only.","boxui.securityControls.shortAllRestrictions":"Sharing, download and app restrictions apply","boxui.securityControls.shortApp":"Application restrictions apply","boxui.securityControls.shortDownload":"Download restrictions apply","boxui.securityControls.shortDownloadApp":"Download and app restrictions apply","boxui.securityControls.shortSharing":"Sharing restriction applies","boxui.securityControls.shortSharingApp":"Sharing and app restrictions apply","boxui.securityControls.shortSharingDownload":"Sharing and download restrictions apply","boxui.securityControls.viewAll":"View All","boxui.securityControls.webDownloadExternal":"Download restricted on web for external users.","boxui.securityControls.webDownloadExternalOwners":"Download restricted on web, except Owners/Co-Owners. Also restricted for external users.","boxui.securityControls.webDownloadExternalOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users.","boxui.securityControls.webDownloadOwners":"Download restricted on web, except Owners/Co-Owners.","boxui.securityControls.webDownloadOwnersEditors":"Download restricted on web, except Owners/Co-Owners/Editors.","boxui.selectField.clearAll":"Clear All","boxui.selectField.noResults":"No Results","boxui.selectField.searchPlaceholder":"Search","boxui.share.accessType":"ACCESS TYPE","boxui.share.canEdit":"Can edit","boxui.share.canView":"Can view","boxui.share.coownerLevelText":"Co-owner","boxui.share.deleteTableHeaderText":"Delete","boxui.share.downloadTableHeaderText":"Download","boxui.share.editTableHeaderText":"Edit","boxui.share.editorLevelText":"Editor","boxui.share.emailSharedLink":"Email Shared Link","boxui.share.enterAtLeastOneEmail":"Enter at least one valid email","boxui.share.getLinkTableHeaderText":"Get Link","boxui.share.groupLabel":"Group","boxui.share.inviteCollaboratorsModalCancelButton":"Cancel","boxui.share.inviteCollaboratorsModalSendInvites":"Send Invites","boxui.share.inviteCollaboratorsModalTitle":"Invite to {itemName}","boxui.share.inviteFieldLabel":"Invite","boxui.share.inviteFileEditorsLabel":"Invite people to become editors of this file.","boxui.share.inviteePermissionsFieldLabel":"Invitee Permissions","boxui.share.inviteePermissionsLearnMore":"Learn More","boxui.share.message":"Message","boxui.share.messageSelectorPlaceholder":"Add a message","boxui.share.ownerTableHeaderText":"Owner","boxui.share.peopleInCompanyCanDownloadFile":"Anyone in your company with the link can view and download this file.","boxui.share.peopleInCompanyCanDownloadFolder":"Anyone in your company with the link can view this folder and download its contents.","boxui.share.peopleInCompanyCanEditFile":"Anyone in your company with the link can edit and download this file.","boxui.share.peopleInCompanyCanViewFile":"Anyone in your company with the link can view this file.","boxui.share.peopleInCompanyCanViewFolder":"Anyone in your company with the link can view this folder.","boxui.share.peopleInEnterprise":"People in {enterpriseName}","boxui.share.peopleInItemCanAccessFile":"Any collaborator on the file with the link can access this file.","boxui.share.peopleInItemCanAccessFolder":"Any collaborator on the folder with the link can access this folder.","boxui.share.peopleInItemCanDownloadFile":"Any collaborator on this file with the link can download this file.","boxui.share.peopleInItemCanDownloadFolder":"Any collaborator on this folder with the link can download this folder.","boxui.share.peopleInItemCanEditFile":"Any collaborator on this file with the link can edit this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFile":"Any collaborator on this file with the link can view this file and download its contents.","boxui.share.peopleInItemCanPreviewAndDownloadFolder":"Any collaborator on this folder with the link can view this folder and download its contents.","boxui.share.peopleInItemCanPreviewFile":"Any collaborator on this file with the link can view this file.","boxui.share.peopleInItemCanPreviewFolder":"Any collaborator on this folder with the link can view this folder.","boxui.share.peopleInSpecifiedCompanyCanDownloadFile":"Anyone in {company} with the link can view and download this file.","boxui.share.peopleInSpecifiedCompanyCanDownloadFolder":"Anyone in {company} with the link can view this folder and download its contents.","boxui.share.peopleInSpecifiedCompanyCanEditFile":"Anyone in {company} with the link can edit and download this file.","boxui.share.peopleInSpecifiedCompanyCanViewFile":"Anyone in {company} with the link can view this file.","boxui.share.peopleInSpecifiedCompanyCanViewFolder":"Anyone in {company} with the link can view this folder.","boxui.share.peopleInThisFile":"People in this file","boxui.share.peopleInThisFolder":"People in this folder","boxui.share.peopleInYourCompany":"People in your company","boxui.share.peopleWithLinkCanDownloadFile":"Anyone with the link can view and download this file.","boxui.share.peopleWithLinkCanDownloadFolder":"Anyone with the link can view this folder and download its contents.","boxui.share.peopleWithLinkCanEditFile":"Anyone with the link can edit and download this file.","boxui.share.peopleWithLinkCanViewFile":"Anyone with the link can view this file.","boxui.share.peopleWithLinkCanViewFolder":"Anyone with the link can view this folder.","boxui.share.peopleWithTheLink":"People with the link","boxui.share.permissionLevelsTableHeaderText":"Permission Levels","boxui.share.personalMessageLabel":"Personal Message","boxui.share.pillSelectorPlaceholder":"Add names or email addresses","boxui.share.previewTableHeaderText":"Preview","boxui.share.previewerLevelText":"Previewer","boxui.share.previewerUploaderLevelText":"Previewer Uploader","boxui.share.referAFriendBadgeText":"REFER","boxui.share.referAFriendRewardCenterLinkText":"Click Here","boxui.share.referAFriendText":"Want a free month of Box? Refer your friend!","boxui.share.removeLink":"Remove Link","boxui.share.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.share.removeLinkConfirmationTitle":"Remove Shared Link","boxui.share.settingsButtonLabel":"Open shared link settings popup","boxui.share.sharedLinkExpirationTooltip":"This link will expire on {expiration, date, long}","boxui.share.sharedLinkLabel":"Shared Link","boxui.share.sharedLinkModalTitle":"Shared Link for {itemName}","boxui.share.sharedLinkSettings.accessLevel.inCompanyView":"This content is available to anyone within your company with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload":"This content is available to anyone within your company with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.accessLevel.inItem":"This content is available to invited collaborators with the link.","boxui.share.sharedLinkSettings.accessLevel.withLinkView":"This content is publicly available to anyone with the link, and can be viewed.","boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload":"This content is publicly available to anyone with the link, and can be viewed or downloaded.","boxui.share.sharedLinkSettings.allowDownloadLabel":"Allow users with the shared link to download this item","boxui.share.sharedLinkSettings.allowDownloadTitle":"Allow Download","boxui.share.sharedLinkSettings.customURLLabel":"Non-private custom URL","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification":"Download has been disabled for content due to the classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification":"Download has been disabled for content without classification.","boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent":"Download for this content has been disabled due to a security policy.","boxui.share.sharedLinkSettings.directLinkLabel":"Direct Link","boxui.share.sharedLinkSettings.expirationLabel":"Disable Shared Link on","boxui.share.sharedLinkSettings.expirationTitle":"Link Expiration","boxui.share.sharedLinkSettings.inaccessibleSettingsNotice":"Certain settings may not be available for this item due to permissions.","boxui.share.sharedLinkSettings.modalTitle":"Shared Link Settings","boxui.share.sharedLinkSettings.passwordLabel":"Require password","boxui.share.sharedLinkSettings.passwordPlaceholder":"Enter a password","boxui.share.sharedLinkSettings.passwordTitle":"Password Protect","boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText":"Learn more about shared link settings.","boxui.share.sharedLinkSettings.sharedLinkWarningText":"This content is publicly available to anyone with the link.","boxui.share.sharedLinkSettings.vanityNameNotSet":"The custom URL has not been set","boxui.share.sharedLinkSettings.vanityNamePlaceholder":"Enter a custom path (12 or more characters)","boxui.share.sharedLinkSettings.vanityURLWarning":"Custom URLs should not be used when sharing sensitive content.","boxui.share.sharedLinkURLLabel":"URL","boxui.share.upgradeGetMoreAccessControls":"Get More Access Controls","boxui.share.uploadTableHeaderText":"Upload","boxui.share.uploaderLevelText":"Uploader","boxui.share.vanityURLEnableText":"Publish content broadly with a custom, non-private URL","boxui.share.viewerLevelText":"Viewer","boxui.share.viewerUploaderLevelText":"Viewer Uploader","boxui.shareMenu.downloadOnly":"Download Only","boxui.shareMenu.editAndComment":"Edit and Comment","boxui.shareMenu.getSharedLink":"Get Shared Link","boxui.shareMenu.insufficientPermissionsMenuOption":"Insufficient sharing permissions. Please contact the folder owner.","boxui.shareMenu.insufficientPermissionsTooltip":"You have insufficient permissions to invite collaborators.","boxui.shareMenu.inviteCollabs":"Invite Collaborators","boxui.shareMenu.ownerCoownerOnlyTooltip":"You have insufficient permissions to invite collaborators. Only the owner and co-owners can invite collaborators.","boxui.shareMenu.shortcutOnly":"Shortcut Only","boxui.shareMenu.viewAndDownload":"View and Download","boxui.shareMenu.viewOnly":"View Only","boxui.unifiedShare.collaboration.groupCollabText":"Group","boxui.unifiedShare.collaboration.userCollabText":"User","boxui.unifiedShare.collaboratorListTitle":"People in ‘{itemName}’","boxui.unifiedShare.collaborators.expirationTooltipClickableText":"Access expires on {date}. Click for details.","boxui.unifiedShare.contactsExceedLimitError":"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches.","boxui.unifiedShare.contentSharedWithExternalCollaborators":"This content will be shared with external collaborators.","boxui.unifiedShare.coownerLevelButtonLabel":"Invite as Co-owner","boxui.unifiedShare.coownerLevelDescription":"Manage security, upload, download, preview, share, edit, and delete","boxui.unifiedShare.coownerLevelText":"Co-owner","boxui.unifiedShare.disabledCreateLinkTooltip":"You do not have permission to create the link.","boxui.unifiedShare.disabledMaliciousContentShareLinkPermission":"This option isn’t available for this item due to a security policy.","boxui.unifiedShare.disabledShareLinkPermission":"This option isn’t available for this item due to a security restriction or classification.","boxui.unifiedShare.editorLevelButtonLabel":"Invite as Editor","boxui.unifiedShare.editorLevelDescription":"Upload, download, preview, share, edit, and delete","boxui.unifiedShare.editorLevelFileDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.editorLevelText":"Editor","boxui.unifiedShare.emailModalTitle":"Send Link to ‘{itemName}’","boxui.unifiedShare.enterAtLeastOneEmail":"Enter at least one valid email","boxui.unifiedShare.enterEmailAddressesCalloutText":"Share this item with coworkers by entering their email addresses","boxui.unifiedShare.ftuxConfirmLabel":"Got it","boxui.unifiedShare.ftuxLinkText":"Read more about shared link security here.","boxui.unifiedShare.ftuxNewUSMUserBody":"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing.","boxui.unifiedShare.ftuxNewUsmUserTitle":"Simplified sharing for files and folders","boxui.unifiedShare.groupLabel":"Group","boxui.unifiedShare.inviteDisabledTooltip":"You do not have permission to invite collaborators.","boxui.unifiedShare.inviteDisabledWeblinkTooltip":"Collaborators cannot be added to bookmarks.","boxui.unifiedShare.inviteFieldLabel":"Invite People","boxui.unifiedShare.linkShareOff":"Create shared link","boxui.unifiedShare.linkShareOn":"Shared link is created","boxui.unifiedShare.message":"Message","boxui.unifiedShare.modalTitle":"Share ‘{itemName}’","boxui.unifiedShare.peopleInCompanyCanAccessFile":"Anyone in your company with the link or people invited to this file can access","boxui.unifiedShare.peopleInCompanyCanAccessFolder":"Anyone in your company with the link or people invited to this folder can access","boxui.unifiedShare.peopleInEnterpriseName":"People in {enterpriseName}","boxui.unifiedShare.peopleInItemCanAccessFile":"Only invited people can access this file","boxui.unifiedShare.peopleInItemCanAccessFolder":"Only invited people can access this folder","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile":"Anyone at {company} with the link or people invited to this file can access","boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder":"Anyone at {company} with the link or people invited to this folder can access","boxui.unifiedShare.peopleInThisFile":"Invited people only","boxui.unifiedShare.peopleInThisFolder":"Invited people only","boxui.unifiedShare.peopleInYourCompany":"People in your company","boxui.unifiedShare.peopleWithLinkDescription":"Publicly accessible and no sign-in required","boxui.unifiedShare.peopleWithTheLinkText":"People with the link","boxui.unifiedShare.previewerLevelButtonLabel":"Invite as Previewer","boxui.unifiedShare.previewerLevelDescription":"Preview only","boxui.unifiedShare.previewerLevelText":"Previewer","boxui.unifiedShare.previewerUploaderLevelButtonLabel":"Invite as Previewer Uploader","boxui.unifiedShare.previewerUploaderLevelDescription":"Upload and preview","boxui.unifiedShare.previewerUploaderLevelText":"Previewer Uploader","boxui.unifiedShare.recommendedSharingTooltipCalloutText":"Based on your usage, we think {fullName} would be interested in this file.","boxui.unifiedShare.removeLinkConfirmationDescription":"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?","boxui.unifiedShare.removeLinkConfirmationTitle":"Remove Shared Link","boxui.unifiedShare.removeLinkTooltip":"You do not have permission to remove the link.","boxui.unifiedShare.sendSharedLink":"Send Shared Link","boxui.unifiedShare.sendSharedLinkFieldLabel":"Email Shared Link","boxui.unifiedShare.settingsButtonLabel":"Open shared link settings popup","boxui.unifiedShare.sharedLinkDisabledTooltipCopy":"Create and copy link for sharing","boxui.unifiedShare.sharedLinkExpirationTooltip":"This link will expire and be inaccessible on {expiration, date, long}.","boxui.unifiedShare.sharedLinkPermissionsEdit":"Can edit","boxui.unifiedShare.sharedLinkPermissionsEditTooltip":"This permission can only be changed in Box Notes","boxui.unifiedShare.sharedLinkPermissionsViewDownload":"Can view and download","boxui.unifiedShare.sharedLinkPermissionsViewDownloadDescription":"Users can view and download","boxui.unifiedShare.sharedLinkPermissionsViewOnly":"Can view only","boxui.unifiedShare.sharedLinkPermissionsViewOnlyDescription":"Users can view only","boxui.unifiedShare.sharedLinkPubliclyAvailable":"This content is publicly available to anyone with the link.","boxui.unifiedShare.sharedLinkSectionLabel":"Share Link","boxui.unifiedShare.sharedLinkSettings":"Link Settings","boxui.unifiedShare.sharedLinkSettingsCalloutText":"Create a custom URL, enable password protection, enable link expiration, and much more","boxui.unifiedShare.suggestedCollabsTitle":"Suggested","boxui.unifiedShare.upgradeGetMoreAccessControlsDescription":"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings","boxui.unifiedShare.upgradeGetMoreAccessControlsLink":"upgrade","boxui.unifiedShare.uploaderLevelButtonLabel":"Invite as Uploader","boxui.unifiedShare.uploaderLevelDescription":"Upload only","boxui.unifiedShare.uploaderLevelText":"Uploader","boxui.unifiedShare.viewerLevelButtonLabel":"Invite as Viewer","boxui.unifiedShare.viewerLevelDescription":"Download, preview, and share","boxui.unifiedShare.viewerLevelText":"Viewer","boxui.unifiedShare.viewerUploaderLevelButtonLabel":"Invite as Viewer Uploader","boxui.unifiedShare.viewerUploaderLevelDescription":"Upload, download, preview, share, and edit","boxui.unifiedShare.viewerUploaderLevelText":"Viewer Uploader","boxui.validation.URLError":"Invalid URL","boxui.validation.emailError":"Invalid Email Address","boxui.validation.genericError":"Invalid Input","boxui.validation.invalidUserError":"Invalid User","boxui.validation.requiredError":"Required Field","boxui.validation.tooLongError":"Input cannot exceed {max} characters","boxui.validation.tooShortError":"Input must be at least {min} characters"})},c=n(1);function f(e){return(f="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 d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=b(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e,t){return(m=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?p(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),y(p(n),"language",u.language),y(p(n),"messages",u.messages),y(p(n),"setComponent",(function(e){n.component=e})),y(p(n),"onInteraction",(function(e){n.emit("interaction",e)})),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&&m(e,t)}(t,e),n=t,(r=[{key:"show",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.id=e,this.token=t,this.options=n,this.options.version="2.1.0",this.emit=this.emit.bind(this);var r=n.container||c.I;this.container=r instanceof HTMLElement?r:document.querySelector(r),this.render()}},{key:"hide",value:function(){this.removeAllListeners(),a.a.unmountComponentAtNode(this.container),this.container&&(this.container.innerHTML="")}},{key:"render",value:function(){throw new Error("Unimplemented!")}},{key:"getComponent",value:function(){return this.component}},{key:"clearCache",value:function(){var e=this.getComponent();e&&"function"==typeof e.clearCache&&e.clearCache()}},{key:"emit",value:function(e,n){try{return h(b(t.prototype),"emit",this).call(this,e,n)}catch(e){}return!1}}])&&d(n.prototype,r),o&&d(n,o),t}(o.a);t.a=v},,,,,,,function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(6),a=n(81),s=n(27),l=n(68),u=n(25),c=n(19),f=n(20),d=n(5),p=n.n(d),h=n(9),b=n(2),m=function(e){var t=e.className,n=void 0===t?"":t,o=e.height,i=void 0===o?12:o,a=e.color,s=void 0===a?b.f:a,l=e.title,u=e.width,c=void 0===u?12:u,f=p()("bdl-IconSecurityClassification",n);return r.createElement(h.a,{className:f,height:i,title:l,viewBox:"0 0 12 12",width:c},r.createElement("path",{d:"M6 0l4.875 2.438v2.856c0 2.645-2.309 5.792-4.79 6.366L6 11.68l-.084-.02c-2.482-.574-4.791-3.721-4.791-6.366V2.438L6 0zm0 .839L1.875 2.9v2.393c0 2.276 2.026 5.068 4.125 5.614 2.1-.546 4.125-3.338 4.125-5.614V2.901L6 .839zm2.25 2.58c.207 0 .375.168.375.375v3c0 .207-.168.375-.375.375s-.375-.168-.375-.375v-3c0-.207.168-.375.375-.375z",fill:s,fillRule:"evenodd"}))},y=n(183);n(650);function v(){return(v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function g(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var w=function(e){var t=e.className,n=e.color,o=e.icon,i=e.message,a=g(e,["className","color","icon","message"]);return r.createElement("h1",v({className:p()("bdl-SecurityBadge",t),style:{backgroundColor:n}},a),o,r.createElement("span",{className:"bdl-SecurityBadge-name"},i))};w.defaultProps={icon:r.createElement(y.a,{color:b.w,height:22,width:22,strokeWidth:3})};var E=w,S=(n(651),function(e){var t=e.color,n=e.name,o=e.onClick,i=e.tooltipPosition,a=void 0===i?"bottom-center":i,s=e.tooltipText,l="function"==typeof o,u=!s,d=r.createElement(E,{className:"bdl-ClassifiedBadge",color:t,icon:r.createElement(m,{height:12,width:12}),message:n});return r.createElement(f.c,{isDisabled:u,isTabbable:!1,position:a,text:s},l?r.createElement(c.a,{className:"bdl-ClassifiedBadge-editButton",onClick:o,type:"button"},d):d)});S.defaultProps={color:b.w};var O,k=S,C=n(17),x=n(7),_=n.n(x),P=n(292),A=n.n(P),T=n(107),I=Object(T.defineMessages)({securityControlsLabel:{id:"boxui.securityControls.securityControlsLabel",defaultMessage:"Restrictions"},shortSharing:{id:"boxui.securityControls.shortSharing",defaultMessage:"Sharing restriction applies"},shortDownload:{id:"boxui.securityControls.shortDownload",defaultMessage:"Download restrictions apply"},shortApp:{id:"boxui.securityControls.shortApp",defaultMessage:"Application restrictions apply"},shortSharingDownload:{id:"boxui.securityControls.shortSharingDownload",defaultMessage:"Sharing and download restrictions apply"},shortSharingApp:{id:"boxui.securityControls.shortSharingApp",defaultMessage:"Sharing and app restrictions apply"},shortDownloadApp:{id:"boxui.securityControls.shortDownloadApp",defaultMessage:"Download and app restrictions apply"},shortAllRestrictions:{id:"boxui.securityControls.shortAllRestrictions",defaultMessage:"Sharing, download and app restrictions apply"},sharingCollabOnly:{id:"boxui.securityControls.sharingCollabOnly",defaultMessage:"Shared links allowed for collaborators only."},sharingCollabAndCompanyOnly:{id:"boxui.securityControls.sharingCollabAndCompanyOnly",defaultMessage:"Shared links cannot be made publicly accessible."},externalCollabBlock:{id:"boxui.securityControls.externalCollabBlock",defaultMessage:"External collaboration restricted."},externalCollabDomainList:{id:"boxui.securityControls.externalCollabDomainList",defaultMessage:"External collaboration limited to approved domains."},appDownloadBlock:{id:"boxui.securityControls.appDownloadBlock",defaultMessage:"Some application restrictions apply."},appDownloadBlacklist:{id:"boxui.securityControls.appDownloadBlacklist",defaultMessage:"Download restricted for some applications: {appNames}"},appDownloadBlacklistOverflow:{id:"boxui.securityControls.appDownloadBlacklistOverflow",defaultMessage:"Download restricted for some applications: {appNames} +{remainingAppCount} more"},appDownloadWhitelist:{id:"boxui.securityControls.appDownloadWhitelist",defaultMessage:"Only select applications are allowed: {appNames}"},appDownloadWhitelistOverflow:{id:"boxui.securityControls.appDownloadWhitelistOverflow",defaultMessage:"Only select applications are allowed: {appNames} +{remainingAppCount} more"},allAppNames:{id:"boxui.securityControls.allAppNames",defaultMessage:"All applications: {appsList}"},webDownloadOwners:{id:"boxui.securityControls.webDownloadOwners",defaultMessage:"Download restricted on web, except Owners/Co-Owners."},webDownloadOwnersEditors:{id:"boxui.securityControls.webDownloadOwnersEditors",defaultMessage:"Download restricted on web, except Owners/Co-Owners/Editors."},webDownloadExternalOwners:{id:"boxui.securityControls.webDownloadExternalOwners",defaultMessage:"Download restricted on web, except Owners/Co-Owners. Also restricted for external users."},webDownloadExternalOwnersEditors:{id:"boxui.securityControls.webDownloadExternalOwnersEditors",defaultMessage:"Download restricted on web, except Owners/Co-Owners/Editors. Also restricted for external users."},webDownloadExternal:{id:"boxui.securityControls.webDownloadExternal",defaultMessage:"Download restricted on web for external users."},mobileDownloadOwners:{id:"boxui.securityControls.mobileDownloadOwners",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners."},mobileDownloadOwnersEditors:{id:"boxui.securityControls.mobileDownloadOwnersEditors",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners/Editors."},mobileDownloadExternalOwners:{id:"boxui.securityControls.mobileDownloadExternalOwners",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners. Also restricted for external users."},mobileDownloadExternalOwnersEditors:{id:"boxui.securityControls.mobileDownloadExternalOwnersEditors",defaultMessage:"Download restricted on mobile, except Owners/Co-Owners/Editors. Also restricted for external users."},mobileDownloadExternal:{id:"boxui.securityControls.mobileDownloadExternal",defaultMessage:"Download restricted on mobile for external users."},desktopDownloadOwners:{id:"boxui.securityControls.desktopDownloadOwners",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners."},desktopDownloadOwnersEditors:{id:"boxui.securityControls.desktopDownloadOwnersEditors",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners/Editors."},desktopDownloadExternalOwners:{id:"boxui.securityControls.desktopDownloadExternalOwners",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners. Also restricted for external users."},desktopDownloadExternalOwnersEditors:{id:"boxui.securityControls.desktopDownloadExternalOwnersEditors",defaultMessage:"Download restricted on Box Drive, except Owners/Co-Owners/Editors. Also restricted for external users."},desktopDownloadExternal:{id:"boxui.securityControls.downloadExternal",defaultMessage:"Download restricted on Box Drive for external users."},viewAll:{id:"boxui.securityControls.viewAll",defaultMessage:"View All"},modalTitle:{id:"boxui.securityControls.modalTitle",defaultMessage:"View Classification for '{itemName}'"},modalDescription:{id:"boxui.securityControls.modalDescription",defaultMessage:"Classification labels defined by your administrator can be used to label content and apply security policies."}});function D(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j,L,R,N,M,F,U,B=C.m.BLACKLIST,H=C.m.WHITELIST,z=(D(O={},B,{default:I.appDownloadBlacklist,overflow:I.appDownloadBlacklistOverflow}),D(O,H,{default:I.appDownloadWhitelist,overflow:I.appDownloadWhitelistOverflow}),O);function V(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var W=C.l.DESKTOP,G=C.l.MOBILE,q=C.l.WEB,X=C.n.OWNERS_AND_COOWNERS,K=C.n.OWNERS_COOWNERS_AND_EDITORS,Y=(V(U={},W,{externalAllowed:(j={},V(j,X,I.desktopDownloadOwners),V(j,K,I.desktopDownloadOwnersEditors),j),externalRestricted:(L={},V(L,X,I.desktopDownloadExternalOwners),V(L,K,I.desktopDownloadExternalOwnersEditors),V(L,"default",I.desktopDownloadExternal),L)}),V(U,G,{externalAllowed:(R={},V(R,X,I.mobileDownloadOwners),V(R,K,I.mobileDownloadOwnersEditors),R),externalRestricted:(N={},V(N,X,I.mobileDownloadExternalOwners),V(N,K,I.mobileDownloadExternalOwnersEditors),V(N,"default",I.mobileDownloadExternal),N)}),V(U,q,{externalAllowed:(M={},V(M,X,I.webDownloadOwners),V(M,K,I.webDownloadOwnersEditors),M),externalRestricted:(F={},V(F,X,I.webDownloadExternalOwners),V(F,K,I.webDownloadExternalOwnersEditors),V(F,"default",I.webDownloadExternal),F)}),U);function Q(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function J(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?J(Object(n),!0).forEach((function(t){Z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Z(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ee=C.a.SHARED_LINK,te=C.a.DOWNLOAD,ne=C.a.EXTERNAL_COLLAB,re=C.a.APP,oe=C.l.DESKTOP,ie=C.l.MOBILE,ae=C.l.WEB,se=C.m.BLOCK,le=C.m.WHITELIST,ue=C.m.BLACKLIST,ce=C.p.COLLAB_ONLY,fe=C.p.COLLAB_AND_COMPANY_ONLY,de=C.p.PUBLIC,pe=function(e,t){return[].concat(Q(function(e){var t=[];switch(_()(e,"".concat(ee,".accessLevel"))){case ce:t.push({message:I.sharingCollabOnly});break;case fe:t.push({message:I.sharingCollabAndCompanyOnly})}return t}(e)),Q(function(e){var t=[];switch(_()(e,"".concat(ne,".accessLevel"))){case se:t.push({message:I.externalCollabBlock});break;case le:case ue:t.push({message:I.externalCollabDomainList})}return t}(e)),Q(function(e){var t,n=[],r=_()(e,te,{}),o=r.web,i=r.mobile,a=r.desktop,s=(Z(t={},ae,{platform:ae,restrictions:o}),Z(t,ie,{platform:ie,restrictions:i}),Z(t,oe,{platform:oe,restrictions:a}),t);return Object.keys(s).forEach((function(e){var t=s[e],r=t.platform,o=t.restrictions;if(o){var i=o.restrictExternalUsers,a=o.restrictManagedUsers;a&&i?n.push({message:Y[r].externalRestricted[a]}):a?n.push({message:Y[r].externalAllowed[a]}):i&&n.push({message:Y[r].externalRestricted.default})}})),n}(e)),Q(function(e,t){var n=[],r=_()(e,"".concat(re,".accessLevel"));switch(r){case se:n.push({message:I.appDownloadBlock});break;case le:case ue:var o=_()(e,"".concat(re,".apps"),[]);t=A()(t)?o.length:t;var i=o.slice(0,t),a=o.slice(t).length,s=i.map((function(e){return e.displayText})).join(", ");if(a){var l=o.map((function(e){return e.displayText})).join(", ");n.push({message:$({},z[r].overflow,{values:{appNames:s,remainingAppCount:a}}),tooltipMessage:$({},I.allAppNames,{values:{appsList:l}})})}else n.push({message:$({},z[r].default,{values:{appNames:s}})})}return n}(e,t)))},he=n(154),be=(n(652),function(e){var t=e.message,n=e.tooltipMessage;return r.createElement("li",{className:"bdl-SecurityControlsItem"},r.createElement(a.a,t),n&&r.createElement(f.c,{className:"bdl-SecurityControlsItem-tooltip",text:r.createElement(a.a,n),position:"middle-right",isTabbable:!1},r.createElement("span",{className:"bdl-SecurityControlsItem-tooltipIcon"},r.createElement(he.a,{color:b.b,width:13,height:13}))))}),me=n(173),ye=n(28),ve=n(26),ge=Object(T.defineMessages)({add:{id:"boxui.classification.add",defaultMessage:"Add"},classification:{id:"boxui.classification.classification",defaultMessage:"Classification"},definition:{id:"boxui.classification.definition",defaultMessage:"Definition"},edit:{id:"boxui.classification.edit",defaultMessage:"Edit"},missing:{id:"boxui.classification.missing",defaultMessage:"Not classified"},modifiedByLabel:{id:"boxui.classification.modifiedByLabel",defaultMessage:"Classification Updated By"},modifiedBy:{id:"boxui.classification.modifiedBy",defaultMessage:"{modifiedBy} on {modifiedAt}"},classificationYellow:{id:"boxui.classification.classificationYellow",defaultMessage:"Yellow"},classificationOrange:{id:"boxui.classification.classificationOrange",defaultMessage:"Orange"},classificationRed:{id:"boxui.classification.classificationRed",defaultMessage:"Red"},classificationPurple:{id:"boxui.classification.classificationPurple",defaultMessage:"Purple"},classificationLightBlue:{id:"boxui.classification.classificationLightBlue",defaultMessage:"Light Blue"},classificationDarkBlue:{id:"boxui.classification.classificationDarkBlue",defaultMessage:"Dark Blue"},classificationGreen:{id:"boxui.classification.classificationGreen",defaultMessage:"Green"},classificationGrey:{id:"boxui.classification.classificationGrey",defaultMessage:"Grey"}});n(654);function we(){return(we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Ee=function(e){var t=e.closeModal,n=e.definition,o=e.classificationColor,i=e.classificationName,s=e.isSecurityControlsModalOpen,u=e.itemName,c=e.modalItems;if(!u||!i||!n)return null;var f=r.createElement(a.a,we({},I.modalTitle,{values:{itemName:u}}));return r.createElement(me.a,{className:"bdl-SecurityControlsModal",title:f,onRequestClose:t,isOpen:s},r.createElement("p",null,r.createElement(a.a,I.modalDescription)),r.createElement(k,{color:o,name:i}),r.createElement(l.a,{text:r.createElement(a.a,ge.definition)},r.createElement("p",{className:"bdl-SecurityControlsModal-definition"},n)),r.createElement("ul",{className:"bdl-SecurityControlsModal-controlsItemList"},c.map((function(e){var t=e.message,n=e.tooltipMessage;return r.createElement(be,{key:t.id,message:t,tooltipMessage:n})}))),r.createElement(me.b,null,r.createElement(ve.b,{onClick:t,type:"button"},r.createElement(a.a,ye.a.close))))};Ee.defaultProps={isSecurityControlsModalOpen:!1,modalItems:[]};var Se=Ee;n(655);function Oe(e){return(Oe="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 ke(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function xe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ae=C.o.FULL,Te=C.o.SHORT,Ie=C.o.SHORT_WITH_BTN,De=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?xe(e):t}(this,(e=Ce(t)).call.apply(e,[this].concat(o))),Pe(xe(n),"state",{isSecurityControlsModalOpen:!1}),Pe(xe(n),"openModal",(function(){return n.setState({isSecurityControlsModalOpen:!0})})),Pe(xe(n),"closeModal",(function(){return n.setState({isSecurityControlsModalOpen:!1})})),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&&_e(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.props,n=t.classificationColor,o=t.classificationName,i=t.controls,s=t.controlsFormat,u=t.definition,f=t.itemName,d=t.maxAppCount,p=t.shouldRenderLabel,h=[];if(s===Ae)h=pe(i,d);else{var b=function(e){var t=e.sharedLink,n=e.download,r=e.externalCollab,o=e.app,i=t&&t.accessLevel!==de||r;return i&&n&&o?{message:I.shortAllRestrictions}:i&&n?{message:I.shortSharingDownload}:i&&o?{message:I.shortSharingApp}:n&&o?{message:I.shortDownloadApp}:i?{message:I.shortSharing}:n?{message:I.shortDownload}:o?{message:I.shortApp}:null}(i);(h=b?[b]:[]).length&&s===Ie&&(e=pe(i,d))}if(!h.length)return null;var m=this.state.isSecurityControlsModalOpen,y=s===Ie&&!!f&&!!o&&!!u,v=r.createElement("ul",{className:"bdl-SecurityControls"},h.map((function(e){var t=e.message,n=e.tooltipMessage;return r.createElement(be,{key:t.id,message:t,tooltipMessage:n})})));return p&&(v=r.createElement(l.a,{text:r.createElement(a.a,I.securityControlsLabel)},v)),r.createElement(r.Fragment,null,v,y&&r.createElement(r.Fragment,null,r.createElement(c.a,{className:"lnk",onClick:this.openModal,type:"button"},r.createElement(a.a,I.viewAll)),r.createElement(Se,{classificationColor:n,classificationName:o,closeModal:this.closeModal,definition:u,itemName:f,isSecurityControlsModalOpen:m,modalItems:e})))}}])&&ke(n.prototype,o),i&&ke(n,i),t}(r.Component);Pe(De,"defaultProps",{classificationName:"",definition:"",itemName:"",controls:{},controlsFormat:Te,maxAppCount:C.k,shouldRenderLabel:!1});var je=De;n(656);function Le(){return(Le=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Re=function(e){var t=e.definition,n=e.className,o=void 0===n?"":n,c=e.controls,f=e.controlsFormat,d=e.isLoadingControls,p=e.maxAppCount,h=e.messageStyle,b=e.modifiedAt,m=e.modifiedBy,y=e.name,v=e.itemName,g=void 0===v?"":v,w=e.color,E=e.onClick,S=!!y,O=!!t,C=!!b,x=!!m,_=S&&O&&"tooltip"===h,P=S&&O&&"inline"===h,A=!S&&"inline"===h,T=S&&d&&"inline"===h,I=S&&!d&&!!c&&"inline"===h,D=new Date(b||0),j=S&&C&&Object(s.j)(D)&&x&&"inline"===h,L=j&&r.createElement(i.a,{value:D,month:"long",year:"numeric",day:"numeric"});return r.createElement("article",{className:"bdl-Classification ".concat(o)},S&&r.createElement(k,{color:w,name:y,onClick:E,tooltipText:_?t:void 0}),P&&r.createElement(l.a,{text:r.createElement(a.a,ge.definition)},r.createElement("p",{className:"bdl-Classification-definition"},t)),A&&r.createElement("span",{className:"bdl-Classification-missingMessage"},r.createElement(a.a,ge.missing)),j&&r.createElement(l.a,{text:r.createElement(a.a,ge.modifiedByLabel)},r.createElement("p",{className:"bdl-Classification-modifiedBy","data-testid":"classification-modifiedby"},r.createElement(a.a,Le({},ge.modifiedBy,{values:{modifiedAt:L,modifiedBy:m}})))),I&&r.createElement(je,{classificationColor:w,classificationName:y,controls:c,controlsFormat:f,definition:t,itemName:g,maxAppCount:p,shouldRenderLabel:!0}),T&&r.createElement(u.b,null))},Ne=n(22);function Me(){return(Me=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Fe(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Ue,Be=function(e){var t=e.className,n=void 0===t?"":t,r=e.isEditing,i=e.onEdit,s=Fe(e,["className","isEditing","onEdit"]),l=r?ge.edit:ge.add;return o.a.createElement(Ne.a,Me({className:"bdl-EditClassificationButton ".concat(n),onClick:i,type:"button"},s),o.a.createElement(a.a,l))};function He(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ze=(He(Ue={},C.b,{name:ge.classificationYellow,color:b.w,tinycon:b.v}),He(Ue,C.c,{name:ge.classificationOrange,color:b.q,tinycon:b.p}),He(Ue,C.d,{name:ge.classificationRed,color:b.u,tinycon:b.t}),He(Ue,C.e,{name:ge.classificationPurple,color:b.s,tinycon:b.r}),He(Ue,C.f,{name:ge.classificationLightBlue,color:b.o,tinycon:b.n}),He(Ue,C.g,{name:ge.classificationDarkBlue,color:b.e,tinycon:b.d}),He(Ue,C.h,{name:ge.classificationGreen,color:b.m,tinycon:b.l}),He(Ue,C.i,{name:ge.classificationGrey,color:b.h,tinycon:b.j}),Ue);function Ve(e){var t=_()(e,"colorID",C.j);return(ze[t]||ze[C.j]).color}n.d(t,"c",(function(){return Re})),n.d(t,"b",(function(){return ge})),n.d(t,"a",(function(){return Be})),n.d(t,"d",(function(){return Ve}))},function(e,t,n){"use strict";function r(e,t,n){if(void 0===n&&(n=Error),!e)throw new n(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(33),o=Object.create,i=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=i},function(e,t,n){var r=n(33),o=n(130),i=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(o(e))return i;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?i:+e}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o);n(490);t.a=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,a=e.topLeft,s=void 0===a?null:a,l=e.topRight,u=void 0===l?null:l,c=e.bottomLeft,f=void 0===c?null:c,d=e.bottomRight,p=void 0===d?null:d;return r.createElement("div",{className:i()("badgeable-container",o)},t,r.createElement("div",{className:"badges"},s&&r.createElement("div",{className:"top-left-badge"},s),u&&r.createElement("div",{className:"top-right-badge"},u),f&&r.createElement("div",{className:"bottom-left-badge"},f),p&&r.createElement("div",{className:"bottom-right-badge"},p)))}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(21),s=n.n(a),l=n(12),u=n.n(l),c=n(107),f=n(48),d=n(69);function p(e){return(p="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 h(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=Object(c.defineMessages)({closeModalText:{id:"boxui.modalDialog.closeModalText",defaultMessage:"Close Modal"}}),S=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?v(e):t}(this,(e=y(t)).call.apply(e,[this].concat(o))),w(v(n),"onCloseButtonClick",(function(e){var t=n.props.onRequestClose;t&&t(e)})),w(v(n),"modalID",u()("modal")),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&&g(e,t)}(t,e),n=t,(o=[{key:"renderCloseButton",value:function(){var e=this.props,t=e.closeButtonProps,n=e.onRequestClose,o=e.intl.formatMessage;return n?r.createElement("button",b({},t,{"aria-label":o(E.closeModalText),className:"modal-close-button",onClick:this.onCloseButtonClick}),r.createElement(d.a,{color:"#909090",height:18,width:18})):null}},{key:"renderContent",value:function(){var e=this.props,t=e.children;if("alert"!==e.type)return r.createElement("div",{className:"modal-content"},t);var n=r.Children.toArray(t);if(2!==n.length)throw new Error("Alert modal must have exactly two children: A message and <ModalActions>");return r.createElement("div",{className:"modal-content"},r.createElement("p",{id:"".concat(this.modalID,"-desc")},n[0]),n[1])}},{key:"render",value:function(){var e=this.props,t=e.className,n=e.modalRef,o=e.title,a=e.type,l=h(e,["className","modalRef","title","type"]),u="alert"===a,c=s()(l,["children","closeButtonProps","onRequestClose","intl"]);return c.role=u?"alertdialog":"dialog",c["aria-labelledby"]="".concat(this.modalID,"-label"),u&&(c["aria-describedby"]="".concat(this.modalID,"-desc")),r.createElement("div",b({ref:n,className:i()("modal-dialog",t)},c),r.createElement("div",{className:"modal-header"},r.createElement("h2",{className:"modal-title",id:"".concat(this.modalID,"-label")},o)),this.renderCloseButton(),this.renderContent())}}])&&m(n.prototype,o),a&&m(n,a),t}(r.Component);w(S,"defaultProps",{type:"dialog",closeButtonProps:{}}),t.a=Object(f.c)(S)},function(e,t,n){"use strict";var r=n(259);n.d(t,"a",(function(){return r.a}))},,function(e,t,n){var r=n(152),o=n(368),i=n(160),a=n(369),s=n(376),l=n(216),u=n(194),c=n(379),f=n(381),d=n(269),p=n(220),h=n(142),b=n(384),m=n(385),y=n(222),v=n(31),g=n(141),w=n(389),E=n(33),S=n(391),O=n(106),k=1,C=2,x=4,_="[object Arguments]",P="[object Function]",A="[object GeneratorFunction]",T="[object Object]",I={};I[_]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[T]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[P]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,D,j,L,R){var N,M=n&k,F=n&C,U=n&x;if(D&&(N=L?D(t,j,L,R):D(t)),void 0!==N)return N;if(!E(t))return t;var B=v(t);if(B){if(N=b(t),!M)return u(t,N)}else{var H=h(t),z=H==P||H==A;if(g(t))return l(t,M);if(H==T||H==_||z&&!L){if(N=F||z?{}:y(t),!M)return F?f(t,s(N,t)):c(t,a(N,t))}else{if(!I[H])return L?t:{};N=m(t,H,M)}}R||(R=new r);var V=R.get(t);if(V)return V;R.set(t,N),S(t)?t.forEach((function(r){N.add(e(r,n,D,r,t,R))})):w(t)&&t.forEach((function(r,o){N.set(o,e(r,n,D,o,t,R))}));var W=U?F?p:d:F?keysIn:O,G=B?void 0:W(t);return o(G||t,(function(r,o){G&&(r=t[o=r]),i(N,o,e(r,n,D,o,t,R))})),N}},function(e,t,n){(function(e){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)}var n=function(e){"use strict";var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",l=i.toStringTag||"@@toStringTag";function u(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),a=new P(r||[]);return i._invoke=function(e,t,n){var r=f;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===o)throw i;return T()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===b)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?h:d,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=h,n.method="throw",n.arg=l.arg)}}}(e,n,a),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",b={};function m(){}function y(){}function v(){}var g={};g[a]=function(){return this};var w=Object.getPrototypeOf,E=w&&w(w(A([])));E&&E!==r&&o.call(E,a)&&(g=E);var S=v.prototype=m.prototype=Object.create(g);function O(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function k(e){var n;this._invoke=function(r,i){function a(){return new Promise((function(n,a){!function n(r,i,a,s){var l=c(e[r],e,i);if("throw"!==l.type){var u=l.arg,f=u.value;return f&&"object"===t(f)&&o.call(f,"__await")?Promise.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):Promise.resolve(f).then((function(e){u.value=e,a(u)}),(function(e){return n("throw",e,a,s)}))}s(l.arg)}(r,i,n,a)}))}return n=n?n.then(a,a):a()}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return b;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return b}var o=c(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,b;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,b):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,b)}function x(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 _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(o.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return i.next=i}}return{next:T}}function T(){return{value:n,done:!0}}return y.prototype=S.constructor=v,v.constructor=y,v[l]=y.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,l in e||(e[l]="GeneratorFunction")),e.prototype=Object.create(S),e},e.awrap=function(e){return{__await:e}},O(k.prototype),k.prototype[s]=function(){return this},e.AsyncIterator=k,e.async=function(t,n,r,o){var i=new k(u(t,n,r,o));return e.isGeneratorFunction(n)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},O(S),S[l]="Generator",S[a]=function(){return this},S.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(l&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),b}},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;_(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),b}},e}("object"===t(e)?e.exports:{});try{regeneratorRuntime=n}catch(e){Function("r","regeneratorRuntime = r")(n)}}).call(this,n(86)(e))},function(e,t,n){var r=n(258),o=1/0,i=17976931348623157e292;e.exports=function(e){return e?(e=r(e))===o||e===-o?(e<0?-1:1)*i:e==e?e:0:0===e?e:0}},function(e,t,n){function r(e){return(r="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)}var o=n(109),i=n(93),a=n(128),s=n(33);e.exports=function(e,t,n){if(!s(n))return!1;var l=r(t);return!!("number"==l?i(n)&&a(t,n.length):"string"==l&&t in n)&&o(n[t],e)}},,,function(e,t,n){var r=n(219),o=n(166),i=n(106);e.exports=function(e){return r(e,i,o)}},function(e,t,n){var r=n(38).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++r<o;)i[r]=e[r+t];return i}},function(e,t,n){var r=n(99),o=n(127),i=n(31),a=n(128),s=n(162),l=n(95);e.exports=function(e,t,n){for(var u=-1,c=(t=r(t,e)).length,f=!1;++u<c;){var d=l(t[u]);if(!(f=null!=e&&n(e,d)))break;e=e[d]}return f||++u!=c?f:!!(c=null==e?0:e.length)&&s(c)&&a(d,c)&&(i(e)||o(e))}},,,,,,,,,,,function(e,t,n){var r=n(55),o=n(31),i=n(40),a="[object String]";e.exports=function(e){return"string"==typeof e||!o(e)&&i(e)&&r(e)==a}},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(205),s=n.n(a),l=n(21),u=n.n(l),c=n(203),f=n(53),d=n(291),p=n(260);n(653);function h(e){return(h="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 b(){return(b=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?g(e):t}(this,(e=v(t)).call.apply(e,[this].concat(o))),E(g(n),"onKeyDown",(function(e){var t=n.props,r=t.isOpen,o=t.onRequestClose;r&&o&&"Escape"===e.key&&(e.stopPropagation(),o(e))})),E(g(n),"onBackdropClick",(function(e){var t=n.props,r=t.onRequestClose,o=t.onBackdropClick;o?o(e):r&&r(e)})),E(g(n),"onModalOpen",(function(){setTimeout((function(){var e=n.props.focusElementSelector,t=e&&e.trim();t?n.focusElement(t):n.focusFirstUsefulElement()}),0)})),E(g(n),"focusFirstUsefulElement",(function(){if(n.dialog){var e=s()(n.dialog);e.length>1?e[1].focus():e.length>0&&e[0].focus()}})),E(g(n),"focusElement",(function(e){if(n.dialog){var t=n.dialog.querySelector(e);if(!t)throw new Error("Could not find element matching selector ".concat(e," to focus on."));t.focus()}})),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&&w(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){this.props.isOpen&&this.onModalOpen()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isLoading,r=t.isOpen;e.isOpen&&!e.isLoading||!r||n||this.onModalOpen()}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.isLoading,a=t.isOpen,s=t.onRequestClose,l=t.shouldNotUsePortal,h=t.style,y=m(t,["className","isLoading","isOpen","onRequestClose","shouldNotUsePortal","style"]);if(!a)return null;var v=u()(y,["onBackdropClick","focusElementSelector"]),g=l?"div":d.a;return r.createElement(g,{className:i()("modal",n),onKeyDown:this.onKeyDown,tabIndex:"-1"},r.createElement("div",{className:"modal-backdrop",onClick:this.onBackdropClick,style:h.backdrop}),r.createElement(c.a,{className:"modal-dialog-container"},o?r.createElement(f.b,{size:"large"}):r.createElement(p.a,b({modalRef:function(t){e.dialog=t},onRequestClose:s,style:h.dialog},v))),r.createElement("style",{type:"text/css"},"\n body {\n overflow:hidden;\n }\n "))}}])&&y(n.prototype,o),a&&y(n,a),t}(r.Component);E(S,"defaultProps",{style:{backdrop:{},dialog:{}}}),t.a=S},function(e,t,n){"use strict";var r=n(0),o=n(210);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(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d,p,h,b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,c(t).apply(this,arguments))}var n,i,d;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&&f(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=e.className,n=s(e,["className"]);return r.createElement(o.a,a({className:"link ".concat(t)},n))}}])&&l(n.prototype,i),d&&l(n,d),t}(r.Component);h={className:""},(p="defaultProps")in(d=b)?Object.defineProperty(d,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[p]=h,t.a=b},function(e,t,n){"use strict";var r=n(0),o=n(107),i=n(81),a=n(48),s=n(5),l=n.n(s),u=n(519),c=n.n(u),f=n(193),d=n.n(f),p=n(12),h=n.n(p),b=n(113),m=n(9),y=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#000000":o,a=e.height,s=void 0===a?24:a,l=e.title,u=e.width,c=void 0===u?24:u;return r.createElement(m.a,{className:"icon-alert ".concat(n),height:s,title:l,viewBox:"0 0 24 24",width:c},r.createElement("path",{className:"fill-color",d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z",fill:i,fillRule:"evenodd"}))},v=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#BABABA":o,a=e.height,s=void 0===a?17:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(m.a,{className:"icon-calendar ".concat(n),height:s,title:l,viewBox:"0 0 16 17",width:c},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(0 1)"},r.createElement("rect",{className:"fill-color",fill:i,height:s,rx:"2",width:c,y:"2"}),r.createElement("rect",{fill:"#FFF",height:"9",rx:"1",width:"13.75",x:"1.25",y:"6"}),r.createElement("path",{className:"fill-color",d:"M11 7h2.5v2.5H11zM7 11h2.5v2.5H7zM3 11h2.5v2.5H3zM7 7h2.5v2.5H7zM3 7h2.5v2.5H3z",fill:i})))},g=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#AEAEAE":o,a=e.height,s=void 0===a?12:a,l=e.title,u=e.width,c=void 0===u?12:u;return r.createElement(m.a,{className:"icon-clear ".concat(n),height:s,title:l,viewBox:"0 0 12 13",width:c},r.createElement("g",{fill:"none",fillRule:"evenodd",stroke:"none",strokeWidth:"1"},r.createElement("g",{className:"fill-color",fill:i,transform:"translate(-1219.000000, -46.000000)"},r.createElement("g",{transform:"translate(855.000000, 35.000000)"},r.createElement("g",null,r.createElement("path",{d:"M370,16.1907436 L372.023141,14.1676025 C372.246611,13.9441325 372.608928,13.9441325 372.832398,14.1676025 C373.055867,14.3910725 373.055867,14.7533889 372.832398,14.9768589 L370.809256,17 L372.832398,19.0231411 C373.055867,19.2466111 373.055867,19.6089275 372.832398,19.8323975 C372.608928,20.0558675 372.246611,20.0558675 372.023141,19.8323975 L370,17.8092564 L367.976859,19.8323975 C367.753389,20.0558675 367.391072,20.0558675 367.167602,19.8323975 C366.944133,19.6089275 366.944133,19.2466111 367.167602,19.0231411 L369.190744,17 L367.167602,14.9768589 C366.944133,14.7533889 366.944133,14.3910725 367.167602,14.1676025 C367.391072,13.9441325 367.753389,13.9441325 367.976859,14.1676025 L370,16.1907436 Z M370,23 C373.313708,23 376,20.3137085 376,17 C376,13.6862915 373.313708,11 370,11 C366.686292,11 364,13.6862915 364,17 C364,20.3137085 366.686292,23 370,23 Z"}))))))},w=n(120),E=n(19),S=n(20),O=n(27);n(660);function k(e){return(k="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(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I=Object(o.defineMessages)({previousMonth:{id:"boxui.base.previousMonth",defaultMessage:"Previous Month"},nextMonth:{id:"boxui.base.nextMonth",defaultMessage:"Next Month"},iconAlertText:{id:"boxui.datePicker.iconAlertText",defaultMessage:"Invalid Date"},dateClearButton:{id:"boxui.datePicker.dateClearButton",defaultMessage:"Clear Date"},chooseDate:{id:"boxui.datePicker.chooseDate",defaultMessage:"Choose Date"}}),D=300,j="isoString",L="utcTime",R="utcISOString",N="Enter",M="Escape",F="Tab",U=function(){};var B=["en-US","en-CA","jp-JP"],H=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?P(e):t}(this,(e=_(t)).call.apply(e,[this].concat(o))),T(P(n),"errorMessageID",h()("errorMessage")),T(P(n),"descriptionID",h()("description")),T(P(n),"onSelectHandler",(function(e){var t=n.props.onChange;t&&t(e,n.formatValue(e))})),T(P(n),"shouldStayClosed",!1),T(P(n),"focusDatePicker",(function(){n.dateInputEl&&n.dateInputEl.focus()})),T(P(n),"handleInputKeyDown",(function(e){var t=n.props.isTextInputAllowed;n.datePicker.isVisible()&&e.stopPropagation(),t||e.key===F||e.preventDefault(),t&&e.key===N&&e.preventDefault(),e.key!==N&&e.key!==M&&" "!==e.key||n.datePicker.isVisible()&&n.datePicker.hide()})),T(P(n),"handleInputBlur",(function(e){var t=n.props,r=t.onBlur,o=t.isTextInputAllowed,i=e.relatedTarget||document.activeElement;n.datePicker.isVisible()&&i&&i===n.datePickerButtonEl&&(n.shouldStayClosed=!0,setTimeout((function(){n.shouldStayClosed=!1}),D)),r&&r(e);var a=null;n.dateInputEl&&(a=new Date(n.dateInputEl.value)),o&&a&&a.getDate()&&n.onSelectHandler(a)})),T(P(n),"handleButtonClick",(function(e){e.preventDefault(),n.shouldStayClosed||n.focusDatePicker()})),T(P(n),"formatDisplay",(function(e){var t=n.props,r=t.displayFormat,o=t.intl;return e?o.formatDate(e,r):""})),T(P(n),"formatValue",(function(e){return function(e,t){if(!e)return"";switch(t){case j:return e.toISOString();case L:return Object(O.b)(e);case R:return new Date(Object(O.b)(e)).toISOString();default:return e.getTime()}}(e,n.props.dateFormat)})),T(P(n),"clearDate",(function(e){e.preventDefault(),n.datePicker.setDate(null),n.onSelectHandler(null)})),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&&A(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e,t=this.props,n=t.dateFormat,r=t.intl,o=t.maxDate,i=t.minDate,a=t.value,s=t.yearRange,l=t.isTextInputAllowed,u=r.formatDate,f=r.formatMessage,p=I.nextMonth,h=I.previousMonth,b=a;n===L&&void 0!==a&&(e=a.toUTCString().slice(0,-4),b=new Date(e));var m=(new Date).getFullYear(),y={previousMonth:f(h),nextMonth:f(p),months:d()(12).map((function(e){return u(new Date(m,e,15),{month:"long"})})),weekdays:d()(1,8).map((function(e){return u(new Date(2016,4,e),{weekday:"long"})})),weekdaysShort:d()(1,8).map((function(e){return u(new Date(2016,4,e),{weekday:"narrow"})}))};this.datePicker=new c.a({blurFieldOnSelect:!1,setDefaultDate:!0,defaultDate:b,field:this.dateInputEl,firstDay:B.includes(r.locale)?0:1,maxDate:o,minDate:i,position:"bottom left",i18n:y,showDaysInNextAndPreviousMonths:!0,onSelect:this.onSelectHandler,yearRange:s,toString:this.formatDisplay}),l&&this.updateDateInputValue(this.formatDisplay(b))}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.value,n=e.minDate,r=e.maxDate,o=this.props,i=o.value,a=o.minDate,s=o.maxDate,l=o.isTextInputAllowed;(t&&!i||!t&&i||t&&i&&t.getTime()!==i.getTime())&&this.datePicker.setDate(t),l&&this.updateDateInputValue(this.formatDisplay(t)),(n&&!a||!n&&a||n&&a&&n.getTime()!==a.getTime())&&(this.datePicker.setMinDate(n),this.datePicker.getDate()<n&&this.datePicker.gotoDate(n)),(r&&!s||!r&&s||r&&s&&r.getTime()!==s.getTime())&&(this.datePicker.setMaxDate(r),this.datePicker.getDate()>r&&this.datePicker.gotoDate(r))}},{key:"componentWillUnmount",value:function(){this.datePicker.destroy()}},{key:"updateDateInputValue",value:function(e){this.dateInputEl&&(this.dateInputEl.value=e)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=t.description,a=t.error,s=t.errorTooltipPosition,u=t.hideLabel,c=t.hideOptionalLabel,f=t.inputProps,d=t.intl,p=t.isClearable,h=t.isDisabled,m=t.isRequired,O=t.isTextInputAllowed,k=t.label,x=t.name,_=t.onFocus,P=t.placeholder,A=t.resinTarget,D=t.value,j=d.formatMessage,L=l()(n,"date-picker-wrapper",{"show-clear-btn":!!D,"show-error":!!a}),R={"aria-invalid":!!a,"aria-required":m,"aria-errormessage":this.errorMessageID,"aria-describedby":o?this.descriptionID:void 0},N=A?T({},b.a,A):{},M=O?{defaultValue:this.formatDisplay(D)}:{value:this.formatDisplay(D)},F=O?{}:{onChange:U};return r.createElement("div",{className:L},r.createElement("span",{className:"date-picker-icon-holder"},r.createElement(w.a,{hideLabel:u,showOptionalText:!c&&!m,text:k},!!o&&r.createElement("div",{id:this.descriptionID,className:"date-picker-description"},o),r.createElement(S.c,{className:"date-picker-error-tooltip",isShown:!!a,position:s,text:a||"",theme:"error"},r.createElement("input",C({ref:function(t){e.dateInputEl=t},className:"date-picker-input",disabled:h,onBlur:this.handleInputBlur,placeholder:P||j(I.chooseDate),required:m,type:"text"},F,{onFocus:_,onKeyDown:this.handleInputKeyDown},N,R,f,M))),r.createElement("span",{id:this.errorMessageID,className:"accessibility-hidden",role:"alert"},a)),p&&D&&!h?r.createElement(E.a,{"aria-label":j(I.dateClearButton),className:"date-picker-clear-btn",onClick:this.clearDate,type:"button"},r.createElement(g,{height:12,width:12})):null,a?r.createElement(y,{className:"date-picker-icon-alert",height:13,title:r.createElement(i.a,I.iconAlertText),width:13}):null,r.createElement(E.a,{"aria-label":j(I.chooseDate),className:"date-picker-open-btn",disabled:h,getDOMRef:function(t){e.datePickerButtonEl=t},onClick:this.handleButtonClick,type:"button"},r.createElement(v,{height:17,width:16})),r.createElement("input",{className:"date-picker-unix-time-input",name:x,readOnly:!0,type:"hidden",value:this.formatValue(D)})))}}])&&x(n.prototype,o),a&&x(n,a),t}(r.Component);T(H,"defaultProps",{className:"",dateFormat:"unixTime",displayFormat:{},error:"",errorTooltipPosition:"bottom-left",inputProps:{},isClearable:!0,isTextInputAllowed:!1,yearRange:10});t.a=Object(a.c)(H)},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o);n(658);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,l=e.isDisabled,u=e.isOn,c=e.isToggleRightAligned,f=void 0!==c&&c,d=e.label,p=e.name,h=e.onBlur,b=e.onChange,m=s(e,["className","description","isDisabled","isOn","isToggleRightAligned","label","name","onBlur","onChange"]),y=i()("toggle-container",n,{"is-toggle-right-aligned":f}),v=[r.createElement("div",{key:"toggle-simple-switch",className:"toggle-simple-switch"}),r.createElement("div",{key:"toggle-simple-label",className:"toggle-simple-label"},d)];return f&&(v=v.reverse()),r.createElement("div",{className:y},r.createElement("label",{className:"toggle-simple"},r.createElement("input",a({checked:u,className:"toggle-simple-input",disabled:l,name:p,onBlur:h,onChange:b,type:"checkbox"},m)),v),o?r.createElement("div",{className:"toggle-simple-description"},o):null)}},,function(e,t,n){"use strict";var r=n(0),o=n(2),i=n(9);t.a=function(e){var t=e.className,n=void 0===t?"":t,a=e.color,s=void 0===a?o.l:a,l=e.height,u=void 0===l?14:l,c=e.opacity,f=void 0===c?1:c,d=e.title,p=e.width,h=void 0===p?14:p;return r.createElement(i.a,{className:"icon-verified ".concat(n),height:u,opacity:f,title:d,viewBox:"0 0 14 14",width:h},r.createElement("path",{d:"M7 14c-3.865993 0-7-3.134007-7-7s3.134007-7 7-7 7 3.134007 7 7-3.134007 7-7 7zM5.31288 9.303048l1.44555 1.21296 4.499514-5.36231-1.44555-1.21296-4.499514 5.36231zM3 7.36231L5.31288 9.30305l1.21296-1.44555L4.21296 5.91676 3 7.36231z",fill:s,fillRule:"evenodd"}))}},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(5),a=n.n(i),s=n(12),l=n.n(s),u=(n(498),n(20)),c=n(1),f=n(3),d=n.n(f),p=n(153),h=n(59),b=n(156);n(648);function m(){return(m=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function y(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var v=function(e){var t=e.onClick,n=y(e,["onClick"]);return o.a.createElement(p.a,m({},n,{"aria-hidden":"true",onClick:t}))},g=function(e){var t,n=e.getPillImageUrl,r=e.isDisabled,i=void 0!==r&&r,s=e.isSelected,l=void 0!==s&&s,u=e.hasWarning,c=void 0!==u&&u,f=e.isExternal,p=e.isValid,m=void 0===p||p,y=e.onRemove,g=e.text,w=e.className,E=e.showAvatar,S=void 0!==E&&E,O=e.id,k=a()("bdl-RoundPill",w,{"bdl-RoundPill--selected":l&&!i,"bdl-RoundPill--disabled":i,"bdl-RoundPill--warning":c,"bdl-RoundPill--error":!m});c&&(t="warning"),m||(t="error");var C=i?d.a:y,x=S?o.a.createElement(h.a.Icon,{Component:b.a,avatarUrl:n&&O?n({id:O}):void 0,id:O,isExternal:f,name:g,size:"small",shouldShowExternal:!0}):null;return o.a.createElement(h.a.Pill,{size:"large",className:k,type:t},x,o.a.createElement(h.a.Text,{className:"bdl-RoundPill-text"},g),o.a.createElement(h.a.Icon,{className:"bdl-RoundPill-closeBtn",Component:v,onClick:C}))},w=function(e){var t=e.isDisabled,n=void 0!==t&&t,r=e.isSelected,i=void 0!==r&&r,s=e.isValid,l=void 0===s||s,u=e.onRemove,c=e.text,f=a()("bdl-Pill","pill",{"is-selected":i&&!n,"is-invalid":!l,"is-disabled":n,"bdl-is-disabled":n}),p=n?d.a:u;return o.a.createElement("span",{className:f},o.a.createElement("span",{className:"bdl-Pill-text pill-text"},c),o.a.createElement("span",{"aria-hidden":"true",className:"close-btn",onClick:p},"✕"))},E=n(19),S=(n(500),function(e){var t=e.email,n=e.id,r=e.name,i=e.onAdd,a=function(e){e.preventDefault(),i({email:t,id:n,name:r,text:r,type:"user",value:t})};return o.a.createElement(u.c,{position:"bottom-center",text:t},o.a.createElement(E.a,{className:"suggested-pill-invisible-button",onClick:a,onKeyDown:function(e){e.key===c.Ud.enter&&a(e)},type:"button"},o.a.createElement("span",{className:"bdl-Pill-text pill-text suggested-pill"},r)))}),O=function(e){var t=e.onSuggestedPillAdd,n=void 0===t?d.a:t,r=e.selectedPillsValues,i=void 0===r?[]:r,a=e.suggestedPillsData,s=void 0===a?[]:a,l=e.suggestedPillsFilter,u=void 0===l?"id":l,c=e.title,f=s.filter((function(e){return!i.includes(e[u])}));return 0===f.length?null:o.a.createElement("div",{className:"pill-selector-suggested"},o.a.createElement("span",null,c),f.map((function(e){return o.a.createElement(S,{key:e.id,email:e.email,id:e.id,name:e.name,onAdd:n})})))};function k(e){return(k="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(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function x(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function _(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function A(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D(e){e.preventDefault(),e.stopPropagation()}var j=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?A(e):t}(this,(e=P(t)).call.apply(e,[this].concat(o))),I(A(n),"state",{isFocused:!1,selectedIndex:-1}),I(A(n),"getNumSelected",(function(){var e=n.props.selectedOptions;return"number"==typeof e.size?e.size:e.length})),I(A(n),"getPillsByKey",(function(e){return n.props.selectedOptions.map((function(t){return t[e]}))})),I(A(n),"handleClick",(function(){n.inputEl.focus()})),I(A(n),"handleFocus",(function(){n.setState({isFocused:!0})})),I(A(n),"handleBlur",(function(){n.setState({isFocused:!1})})),I(A(n),"handleKeyDown",(function(e){var t=n.inputEl.value,r=n.getNumSelected(),o=n.state.selectedIndex;switch(e.key){case c.Ud.backspace:var i=-1;if(o>=0?(i=o,n.resetSelectedIndex(),n.inputEl.focus()):""===t&&(i=r-1),i>=0){var a=n.props,s=a.onRemove,l=a.selectedOptions;s("function"==typeof l.get?l.get(i):l[i],i),D(e)}break;case c.Ud.arrowLeft:o>=0?(n.setState({selectedIndex:Math.max(o-1,0)}),D(e)):""===t&&r>0&&(n.hiddenEl.focus(),n.setState({selectedIndex:r-1}),D(e));break;case c.Ud.arrowRight:if(o>=0){var u=o+1;u>=r?(n.resetSelectedIndex(),n.inputEl.focus()):n.setState({selectedIndex:u}),D(e)}}})),I(A(n),"errorMessageID",l()("errorMessage")),I(A(n),"hiddenRef",(function(e){e&&(n.hiddenEl=e)})),I(A(n),"resetSelectedIndex",(function(){-1!==n.state.selectedIndex&&n.setState({selectedIndex:-1})})),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&&T(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this,t=this.state,n=t.isFocused,o=t.selectedIndex,i=this.props,s=i.allowInvalidPills,l=i.className,c=i.disabled,f=i.error,d=i.getPillImageUrl,p=i.inputProps,h=i.onInput,b=i.onRemove,m=i.onSuggestedPillAdd,y=i.placeholder,v=i.selectedOptions,E=i.showAvatars,S=i.showRoundedPills,k=i.suggestedPillsData,_=i.suggestedPillsFilter,P=i.suggestedPillsTitle,A=i.validator,T=x(i,["allowInvalidPills","className","disabled","error","getPillImageUrl","inputProps","onInput","onRemove","onSuggestedPillAdd","placeholder","selectedOptions","showAvatars","showRoundedPills","suggestedPillsData","suggestedPillsFilter","suggestedPillsTitle","validator"]),I=k&&k.length>0,D=!!f,j=a()("bdl-PillSelector","pill-selector-input-wrapper",{"is-disabled":c,"bdl-is-disabled":c,"is-focused":n,"show-error":D,"pill-selector-suggestions-enabled":I,"bdl-PillSelector--suggestionsEnabled":I}),L={"aria-invalid":D,"aria-errormessage":this.errorMessageID};return r.createElement(u.c,{isShown:D,text:f||"",position:"middle-right",theme:"error"},r.createElement("span",{className:j,onBlur:this.handleBlur,onClick:this.handleClick,onFocus:this.handleFocus,onKeyDown:this.handleKeyDown},S?v.map((function(t,n){return r.createElement(g,{getPillImageUrl:d,isValid:!s||A(t),isDisabled:c,isSelected:n===o,key:t.value,onRemove:b.bind(e,t,n),text:t.displayText||t.text,showAvatar:!0,id:t.id,hasWarning:t.hasWarning,isExternal:t.isExternalUser})})):v.map((function(t,n){return r.createElement(w,{isValid:!s||A(t),isDisabled:c,isSelected:n===o,key:t.value,onRemove:b.bind(e,t,n),text:t.displayText||t.text})})),r.createElement("span",{"aria-hidden":"true",className:"accessibility-hidden",onBlur:this.resetSelectedIndex,ref:this.hiddenRef,tabIndex:-1,"data-testid":"pill-selection-helper"}),r.createElement("textarea",C({},L,T,p,{autoComplete:"off",className:a()("bdl-PillSelector-input","pill-selector-input",l,{"bdl-PillSelector-input--showAvatars":E}),disabled:c,onInput:h,placeholder:0===this.getNumSelected()?y:"",ref:function(t){e.inputEl=t}})),r.createElement(O,{onSuggestedPillAdd:m,selectedPillsValues:this.getPillsByKey("value"),suggestedPillsFilter:_,suggestedPillsData:k,title:P}),r.createElement("span",{id:this.errorMessageID,className:"accessibility-hidden",role:"alert"},f)))}}])&&_(n.prototype,o),i&&_(n,i),t}(r.Component);I(j,"defaultProps",{allowInvalidPills:!1,disabled:!1,error:"",inputProps:{},placeholder:"",selectedOptions:[],validator:function(){return!0}});t.a=j},function(e,t,n){"use strict";var r=n(0),o=n.n(r),i=n(35);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 s(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var d,p,h,b=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=u(this,c(t).call(this,e))).container=n.props.container,n.layer=document.createElement("div"),n.layer.setAttribute("data-portal",""),n.container&&n.layer&&n.container.appendChild(n.layer),n}var n,r,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&&f(e,t)}(t,e),n=t,(r=[{key:"componentWillUnmount",value:function(){this.container&&this.layer&&this.container.removeChild(this.layer),this.layer=null}},{key:"render",value:function(){var e=this.props,t=(e.container,s(e,["container"]));return this.layer?Object(i.createPortal)(o.a.createElement("div",t),this.layer):null}}])&&l(n.prototype,r),a&&l(n,a),t}(o.a.PureComponent);d=b,p="defaultProps",h={container:document.body},p in d?Object.defineProperty(d,p,{value:h,enumerable:!0,configurable:!0,writable:!0}):d[p]=h;var m=b;n.d(t,"a",(function(){return m}))},function(e,t){e.exports=function(e){return null==e}},,,,function(e,t,n){var r=n(64)(n(38),"WeakMap");e.exports=r},function(e,t,n){var r=n(400),o=n(224),i=n(225);e.exports=function(e){return i(o(e,void 0,r),e+"")}},function(e,t){e.exports=function(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}},function(e,t,n){var r=n(265);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t,n){},,,,function(e,t,n){var r=n(626),o=n(40);e.exports=function e(t,n,i,a,s){return t===n||(null==t||null==n||!o(t)&&!o(n)?t!=t&&n!=n:r(t,n,i,a,e,s))}},,function(e,t,n){var r=n(96),o=n(33),i="Expected a function";e.exports=function(e,t,n){var a=!0,s=!0;if("function"!=typeof e)throw new TypeError(i);return o(n)&&(a="leading"in n?!!n.leading:a,s="trailing"in n?!!n.trailing:s),r(e,t,{leading:a,maxWait:t,trailing:s})}},function(e,t,n){"use strict";var r=n(0),o=n(9);t.a=function(e){var t=e.className,n=void 0===t?"":t,i=e.color,a=void 0===i?"#FFFFFF":i,s=e.height,l=void 0===s?20:s,u=e.title,c=e.width,f=void 0===c?20:c;return r.createElement(o.a,{className:"icon-alert-circle ".concat(n),height:l,title:u,viewBox:"0 0 20 20",width:f},r.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},r.createElement("circle",{className:"stroke-color",cx:"9",cy:"9",r:"9",stroke:a}),r.createElement("rect",{className:"fill-color",fill:a,height:"6",rx:"1",width:"2",x:"8",y:"4"}),r.createElement("circle",{className:"fill-color",cx:"9",cy:"13",fill:a,r:"1"})))}},,function(e,t,n){"use strict";var r=n(131);n(0),n(7);n.d(t,"a",(function(){return r.a}))},function(e,t,n){"use strict";var r,o,i=n(0),a=n(107),s=n(48),l=n(5),u=n.n(l),c=n(307),f=n(9),d=function(e){var t=e.className,n=void 0===t?"":t,r=e.color,o=void 0===r?"#FFFFFF":r,a=e.height,s=void 0===a?20:a,l=e.title,u=e.width,c=void 0===u?20:u;return i.createElement(f.a,{className:"icon-bell ".concat(n),height:s,title:l,viewBox:"0 0 20 20",width:c},i.createElement("g",{fill:"none",fillRule:"evenodd",transform:"matrix(1 0 0 -1 1 19)"},i.createElement("circle",{className:"stroke-color",cx:"9",cy:"9",r:"9",stroke:o}),i.createElement("path",{className:"fill-color stroke-color",d:"M8.99870528,7.00322692 C7.99741056,6.95995299 7.30772192,7.34932799 7.11647844,7.80376162 C6.82121147,8.50537574 7.10298215,10.0005227 6.71043535,10.9763966 C6.58716695,11.2828427 6.06362295,11.9195122 5.65453844,12.1850724 C5.20038627,12.5026605 4.89677352,12.9073399 5.02828427,13.0110609 C5.72719221,13.5622817 7.28244474,13.9531171 8.99741056,13.959953 C10.7123764,13.9667889 13.4237984,13.4483355 12.9439635,12.7329733 C12.8273573,12.559131 12.3880586,12.2308909 12.1481974,12.0118607 C11.8280166,11.7194856 11.4102812,11.5124985 11.192734,10.8874732 C11.0694856,10.5333733 11.0505996,10.0375459 11.0505996,9.33473924 C11.0505996,8.17299224 10.7077261,7.53483599 10.2753173,7.32416568 C9.93812209,7.15988362 9.93912199,7.00322692 8.99870528,7.00322692 Z",fill:o,stroke:o,strokeWidth:"0.538649962",transform:"rotate(180 9 10.48)"}),i.createElement("circle",{className:"stroke-color",cx:"9",cy:"5",r:"1",stroke:o})))},p=n(69),h=function(e){var t=e.className,n=void 0===t?"":t,r=e.color,o=void 0===r?"#FFFFFF":r,a=e.height,s=void 0===a?20:a,l=e.title,u=e.width,c=void 0===u?20:u;return i.createElement(f.a,{className:"icon-info-thin ".concat(n),height:s,title:l,viewBox:"0 0 20 20",width:c},i.createElement("g",{fill:"none",fillRule:"evenodd",transform:"translate(1 1)"},i.createElement("circle",{className:"stroke-color",cx:"9",cy:"9",r:"9",stroke:o}),i.createElement("rect",{className:"fill-color",fill:o,height:"6",rx:"1",width:"2",x:"8",y:"8"}),i.createElement("circle",{className:"fill-color",cx:"9",cy:"5",fill:o,r:"1"})))},b=function(e){var t=e.className,n=void 0===t?"":t,r=e.color,o=void 0===r?"#979797":r,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return i.createElement(f.a,{className:"icon-sync ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},i.createElement("g",{className:"stroke-color",fill:"none",fillRule:"evenodd",stroke:o,transform:"translate(1 1)"},i.createElement("circle",{cx:"7",cy:"7",r:"7"}),i.createElement("path",{d:"M4 7.054l2.58 2.69L10.938 5",strokeLinecap:"round",strokeLinejoin:"round"})))};n(771);function m(e){return(m="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 y(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"b",(function(){return S})),n.d(t,"a",(function(){return O}));var S="info",O="error",k=(E(r={},"short",5e3),E(r,"long",1e4),r),C=(E(o={},"default",(function(){return i.createElement(d,null)})),E(o,O,(function(){return i.createElement(c.a,null)})),E(o,S,(function(){return i.createElement(b,null)})),E(o,"warn",(function(){return i.createElement(h,null)})),o),x=Object(a.defineMessages)({clearNotificationButtonText:{id:"boxui.notification.clearNotification",defaultMessage:"Clear Notification"}}),_=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?g(e):t}(this,(e=v(t)).call.apply(e,[this].concat(o))),E(g(n),"onClose",(function(e){var t=n.props.onClose;n.timeout&&clearTimeout(n.timeout),t&&t(e)})),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&&w(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.duration,n=e.onClose;this.timeout=t&&n?setTimeout(n,k[t]):null}},{key:"getChildren",value:function(){var e=this.props.children;return"string"==typeof e?i.createElement("span",null,e):e}},{key:"render",value:function(){var e=this.getChildren(),t=this.props,n=t.intl,r=t.type,o=t.overflow,a=n.formatMessage,s=u()("notification",r,o);return i.createElement("div",{className:s},i.cloneElement(C[r](),{color:"#fff",height:20,width:20}),e,i.createElement("button",{"aria-label":a(x.clearNotificationButtonText),className:"close-btn",onClick:this.onClose,type:"button"},i.createElement(p.a,{color:"#FFF",height:18,width:18})))}}])&&y(n.prototype,r),o&&y(n,o),t}(i.Component);E(_,"defaultProps",{overflow:"wrap",type:"default"});t.c=Object(s.c)(_)},,function(e,t,n){var r=n(64)(n(38),"Set");e.exports=r},function(e,t,n){var r=n(298),o=n(437),i=n(438);e.exports=function(e,t,n){return t==t?i(e,t,n):r(e,o,n)}},,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";
/** @license React v16.9.0
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function r(e){return(r="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)}var o=n(52),i="function"==typeof Symbol&&Symbol.for,a=i?Symbol.for("react.element"):60103,s=i?Symbol.for("react.portal"):60106,l=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,c=i?Symbol.for("react.profiler"):60114,f=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,b=i?Symbol.for("react.suspense_list"):60120,m=i?Symbol.for("react.memo"):60115,y=i?Symbol.for("react.lazy"):60116;i&&Symbol.for("react.fundamental"),i&&Symbol.for("react.responder");var v="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E={};function S(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||w}function O(){}function k(e,t,n){this.props=e,this.context=t,this.refs=E,this.updater=n||w}S.prototype.isReactComponent={},S.prototype.setState=function(e,t){if("object"!==r(e)&&"function"!=typeof e&&null!=e)throw g(Error(85));this.updater.enqueueSetState(this,e,t,"setState")},S.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},O.prototype=S.prototype;var C=k.prototype=new O;C.constructor=k,o(C,S.prototype),C.isPureReactComponent=!0;var x={current:null},_={suspense:null},P={current:null},A=Object.prototype.hasOwnProperty,T={key:!0,ref:!0,__self:!0,__source:!0};function I(e,t,n){var r=void 0,o={},i=null,s=null;if(null!=t)for(r in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)A.call(t,r)&&!T.hasOwnProperty(r)&&(o[r]=t[r]);var l=arguments.length-2;if(1===l)o.children=n;else if(1<l){for(var u=Array(l),c=0;c<l;c++)u[c]=arguments[c+2];o.children=u}if(e&&e.defaultProps)for(r in l=e.defaultProps)void 0===o[r]&&(o[r]=l[r]);return{$$typeof:a,type:e,key:i,ref:s,props:o,_owner:P.current}}function D(e){return"object"===r(e)&&null!==e&&e.$$typeof===a}var j=/\/+/g,L=[];function R(e,t,n,r){if(L.length){var o=L.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function N(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>L.length&&L.push(e)}function M(e,t,n){return null==e?0:function e(t,n,o,i){var l=r(t);"undefined"!==l&&"boolean"!==l||(t=null);var u=!1;if(null===t)u=!0;else switch(l){case"string":case"number":u=!0;break;case"object":switch(t.$$typeof){case a:case s:u=!0}}if(u)return o(i,t,""===n?"."+F(t,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(t))for(var c=0;c<t.length;c++){var f=n+F(l=t[c],c);u+=e(l,f,o,i)}else if(null===t||"object"!==r(t)?f=null:f="function"==typeof(f=v&&t[v]||t["@@iterator"])?f:null,"function"==typeof f)for(t=f.call(t),c=0;!(l=t.next()).done;)u+=e(l=l.value,f=n+F(l,c++),o,i);else if("object"===l)throw o=""+t,g(Error(31),"[object Object]"===o?"object with keys {"+Object.keys(t).join(", ")+"}":o,"");return u}(e,"",t,n)}function F(e,t){return"object"===r(e)&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function U(e,t){e.func.call(e.context,t,e.count++)}function B(e,t,n){var r=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?H(e,r,n,(function(e){return e})):null!=e&&(D(e)&&(e=function(e,t){return{$$typeof:a,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(j,"$&/")+"/")+n)),r.push(e))}function H(e,t,n,r,o){var i="";null!=n&&(i=(""+n).replace(j,"$&/")+"/"),M(e,B,t=R(t,i,r,o)),N(t)}function z(){var e=x.current;if(null===e)throw g(Error(321));return e}var V={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return H(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;M(e,U,t=R(null,null,t,n)),N(t)},count:function(e){return M(e,(function(){return null}),null)},toArray:function(e){var t=[];return H(e,t,null,(function(e){return e})),t},only:function(e){if(!D(e))throw g(Error(143));return e}},createRef:function(){return{current:null}},Component:S,PureComponent:k,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:f,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:p,render:e}},lazy:function(e){return{$$typeof:y,_ctor:e,_status:-1,_result:null}},memo:function(e,t){return{$$typeof:m,type:e,compare:void 0===t?null:t}},useCallback:function(e,t){return z().useCallback(e,t)},useContext:function(e,t){return z().useContext(e,t)},useEffect:function(e,t){return z().useEffect(e,t)},useImperativeHandle:function(e,t,n){return z().useImperativeHandle(e,t,n)},useDebugValue:function(){},useLayoutEffect:function(e,t){return z().useLayoutEffect(e,t)},useMemo:function(e,t){return z().useMemo(e,t)},useReducer:function(e,t,n){return z().useReducer(e,t,n)},useRef:function(e){return z().useRef(e)},useState:function(e){return z().useState(e)},Fragment:l,Profiler:c,StrictMode:u,Suspense:h,unstable_SuspenseList:b,createElement:I,cloneElement:function(e,t,n){if(null==e)throw g(Error(267),e);var r=void 0,i=o({},e.props),s=e.key,l=e.ref,u=e._owner;if(null!=t){void 0!==t.ref&&(l=t.ref,u=P.current),void 0!==t.key&&(s=""+t.key);var c=void 0;for(r in e.type&&e.type.defaultProps&&(c=e.type.defaultProps),t)A.call(t,r)&&!T.hasOwnProperty(r)&&(i[r]=void 0===t[r]&&void 0!==c?c[r]:t[r])}if(1===(r=arguments.length-2))i.children=n;else if(1<r){c=Array(r);for(var f=0;f<r;f++)c[f]=arguments[f+2];i.children=c}return{$$typeof:a,type:e.type,key:s,ref:l,props:i,_owner:u}},createFactory:function(e){var t=I.bind(null,e);return t.type=e,t},isValidElement:D,version:"16.9.0",unstable_withSuspenseConfig:function(e,t){var n=_.suspense;_.suspense=void 0===t?null:t;try{e()}finally{_.suspense=n}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentDispatcher:x,ReactCurrentBatchConfig:_,ReactCurrentOwner:P,IsSomeRendererActing:{current:!1},assign:o}},W={default:V},G=W&&V||W;e.exports=G.default||G},function(e,t,n){"use strict";
/** @license React v16.9.0
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function r(e){return(r="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)}var o=n(0),i=n(52),a=n(338);function s(e){for(var t=e.message,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)n+="&args[]="+encodeURIComponent(arguments[r]);return e.message="Minified React error #"+t+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e}if(!o)throw s(Error(227));var l=null,u={};function c(){if(l)for(var e in u){var t=u[e],n=l.indexOf(e);if(!(-1<n))throw s(Error(96),e);if(!d[n]){if(!t.extractEvents)throw s(Error(97),e);for(var r in d[n]=t,n=t.eventTypes){var o=void 0,i=n[r],a=t,c=r;if(p.hasOwnProperty(c))throw s(Error(99),c);p[c]=i;var h=i.phasedRegistrationNames;if(h){for(o in h)h.hasOwnProperty(o)&&f(h[o],a,c);o=!0}else i.registrationName?(f(i.registrationName,a,c),o=!0):o=!1;if(!o)throw s(Error(98),r,e)}}}}function f(e,t,n){if(h[e])throw s(Error(100),e);h[e]=t,b[e]=t.eventTypes[n].dependencies}var d=[],p={},h={},b={};function m(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var y=!1,v=null,g=!1,w=null,E={onError:function(e){y=!0,v=e}};function S(e,t,n,r,o,i,a,s,l){y=!1,v=null,m.apply(E,arguments)}var O=null,k=null,C=null;function x(e,t,n){var r=e.type||"unknown-event";e.currentTarget=C(n),function(e,t,n,r,o,i,a,l,u){if(S.apply(this,arguments),y){if(!y)throw s(Error(198));var c=v;y=!1,v=null,g||(g=!0,w=c)}}(r,t,void 0,e),e.currentTarget=null}function _(e,t){if(null==t)throw s(Error(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function P(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var A=null;function T(e){if(e){var t=e._dispatchListeners,n=e._dispatchInstances;if(Array.isArray(t))for(var r=0;r<t.length&&!e.isPropagationStopped();r++)x(e,t[r],n[r]);else t&&x(e,t,n);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function I(e){if(null!==e&&(A=_(A,e)),e=A,A=null,e){if(P(e,T),A)throw s(Error(95));if(g)throw e=w,g=!1,w=null,e}}var D={injectEventPluginOrder:function(e){if(l)throw s(Error(101));l=Array.prototype.slice.call(e),c()},injectEventPluginsByName:function(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];if(!u.hasOwnProperty(t)||u[t]!==r){if(u[t])throw s(Error(102),t);u[t]=r,n=!0}}n&&c()}};function j(e,t){var n=e.stateNode;if(!n)return null;var o=O(n);if(!o)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(o=!o.disabled)||(o=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!o;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw s(Error(231),t,r(n));return n}var L=Math.random().toString(36).slice(2),R="__reactInternalInstance$"+L,N="__reactEventHandlers$"+L;function M(e){if(e[R])return e[R];for(;!e[R];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[R]).tag||6===e.tag?e:null}function F(e){return!(e=e[R])||5!==e.tag&&6!==e.tag?null:e}function U(e){if(5===e.tag||6===e.tag)return e.stateNode;throw s(Error(33))}function B(e){return e[N]||null}function H(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function z(e,t,n){(t=j(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function V(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,n=[];t;)n.push(t),t=H(t);for(t=n.length;0<t--;)z(n[t],"captured",e);for(t=0;t<n.length;t++)z(n[t],"bubbled",e)}}function W(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=j(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=_(n._dispatchListeners,t),n._dispatchInstances=_(n._dispatchInstances,e))}function G(e){e&&e.dispatchConfig.registrationName&&W(e._targetInst,null,e)}function q(e){P(e,V)}var X=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement);function K(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Y={animationend:K("Animation","AnimationEnd"),animationiteration:K("Animation","AnimationIteration"),animationstart:K("Animation","AnimationStart"),transitionend:K("Transition","TransitionEnd")},Q={},J={};function $(e){if(Q[e])return Q[e];if(!Y[e])return e;var t,n=Y[e];for(t in n)if(n.hasOwnProperty(t)&&t in J)return Q[e]=n[t];return e}X&&(J=document.createElement("div").style,"AnimationEvent"in window||(delete Y.animationend.animation,delete Y.animationiteration.animation,delete Y.animationstart.animation),"TransitionEvent"in window||delete Y.transitionend.transition);var Z=$("animationend"),ee=$("animationiteration"),te=$("animationstart"),ne=$("transitionend"),re="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),oe=null,ie=null,ae=null;function se(){if(ae)return ae;var e,t,n=ie,r=n.length,o="value"in oe?oe.value:oe.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return ae=o.slice(e,1<t?1-t:void 0)}function le(){return!0}function ue(){return!1}function ce(e,t,n,r){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(n):"target"===o?this.target=r:this[o]=n[o]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?le:ue,this.isPropagationStopped=ue,this}function fe(e,t,n,r){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,n,r),o}return new this(e,t,n,r)}function de(e){if(!(e instanceof this))throw s(Error(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=fe,e.release=de}i(ce.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=le)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=le)},persist:function(){this.isPersistent=le},isPersistent:ue,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=ue,this._dispatchInstances=this._dispatchListeners=null}}),ce.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ce.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var o=new t;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(ce);var he=ce.extend({data:null}),be=ce.extend({data:null}),me=[9,13,27,32],ye=X&&"CompositionEvent"in window,ve=null;X&&"documentMode"in document&&(ve=document.documentMode);var ge=X&&"TextEvent"in window&&!ve,we=X&&(!ye||ve&&8<ve&&11>=ve),Ee=String.fromCharCode(32),Se={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Oe=!1;function ke(e,t){switch(e){case"keyup":return-1!==me.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ce(e){return"object"===r(e=e.detail)&&"data"in e?e.data:null}var xe=!1;var _e={eventTypes:Se,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(ye)e:{switch(e){case"compositionstart":o=Se.compositionStart;break e;case"compositionend":o=Se.compositionEnd;break e;case"compositionupdate":o=Se.compositionUpdate;break e}o=void 0}else xe?ke(e,n)&&(o=Se.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=Se.compositionStart);return o?(we&&"ko"!==n.locale&&(xe||o!==Se.compositionStart?o===Se.compositionEnd&&xe&&(i=se()):(ie="value"in(oe=r)?oe.value:oe.textContent,xe=!0)),o=he.getPooled(o,t,n,r),i?o.data=i:null!==(i=Ce(n))&&(o.data=i),q(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return Ce(t);case"keypress":return 32!==t.which?null:(Oe=!0,Ee);case"textInput":return(e=t.data)===Ee&&Oe?null:e;default:return null}}(e,n):function(e,t){if(xe)return"compositionend"===e||!ye&&ke(e,t)?(e=se(),ae=ie=oe=null,xe=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return we&&"ko"!==t.locale?null:t.data;default:return null}}(e,n))?((t=be.getPooled(Se.beforeInput,t,n,r)).data=e,q(t)):t=null,null===i?t:null===t?i:[i,t]}},Pe=null,Ae=null,Te=null;function Ie(e){if(e=k(e)){if("function"!=typeof Pe)throw s(Error(280));var t=O(e.stateNode);Pe(e.stateNode,e.type,t)}}function De(e){Ae?Te?Te.push(e):Te=[e]:Ae=e}function je(){if(Ae){var e=Ae,t=Te;if(Te=Ae=null,Ie(e),t)for(e=0;e<t.length;e++)Ie(t[e])}}function Le(e,t){return e(t)}function Re(e,t,n,r){return e(t,n,r)}function Ne(){}var Me=Le,Fe=!1;function Ue(){null===Ae&&null===Te||(Ne(),je())}var Be={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function He(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Be[e.type]:"textarea"===t}function ze(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function Ve(e){if(!X)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t}function We(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Ge(e){e._valueTracker||(e._valueTracker=function(e){var t=We(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function qe(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=We(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var Xe=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Xe.hasOwnProperty("ReactCurrentDispatcher")||(Xe.ReactCurrentDispatcher={current:null}),Xe.hasOwnProperty("ReactCurrentBatchConfig")||(Xe.ReactCurrentBatchConfig={suspense:null});var Ke=/^(.*)[\\\/]/,Ye="function"==typeof Symbol&&Symbol.for,Qe=Ye?Symbol.for("react.element"):60103,Je=Ye?Symbol.for("react.portal"):60106,$e=Ye?Symbol.for("react.fragment"):60107,Ze=Ye?Symbol.for("react.strict_mode"):60108,et=Ye?Symbol.for("react.profiler"):60114,tt=Ye?Symbol.for("react.provider"):60109,nt=Ye?Symbol.for("react.context"):60110,rt=Ye?Symbol.for("react.concurrent_mode"):60111,ot=Ye?Symbol.for("react.forward_ref"):60112,it=Ye?Symbol.for("react.suspense"):60113,at=Ye?Symbol.for("react.suspense_list"):60120,st=Ye?Symbol.for("react.memo"):60115,lt=Ye?Symbol.for("react.lazy"):60116;Ye&&Symbol.for("react.fundamental"),Ye&&Symbol.for("react.responder");var ut="function"==typeof Symbol&&Symbol.iterator;function ct(e){return null===e||"object"!==r(e)?null:"function"==typeof(e=ut&&e[ut]||e["@@iterator"])?e:null}function ft(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case $e:return"Fragment";case Je:return"Portal";case et:return"Profiler";case Ze:return"StrictMode";case it:return"Suspense";case at:return"SuspenseList"}if("object"===r(e))switch(e.$$typeof){case nt:return"Context.Consumer";case tt:return"Context.Provider";case ot:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case st:return ft(e.type);case lt:if(e=1===e._status?e._result:null)return ft(e)}return null}function dt(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var n="";break e;default:var r=e._debugOwner,o=e._debugSource,i=ft(e.type);n=null,r&&(n=ft(r.type)),r=i,i="",o?i=" (at "+o.fileName.replace(Ke,"")+":"+o.lineNumber+")":n&&(i=" (created by "+n+")"),n="\n in "+(r||"Unknown")+i}t+=n,e=e.return}while(e);return t}var pt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,ht=Object.prototype.hasOwnProperty,bt={},mt={};function yt(e,t,n,o){if(null==t||function(e,t,n,o){if(null!==n&&0===n.type)return!1;switch(r(t)){case"function":case"symbol":return!0;case"boolean":return!o&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,o))return!0;if(o)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function vt(e,t,n,r,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i}var gt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){gt[e]=new vt(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];gt[t]=new vt(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){gt[e]=new vt(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){gt[e]=new vt(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){gt[e]=new vt(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){gt[e]=new vt(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){gt[e]=new vt(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){gt[e]=new vt(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){gt[e]=new vt(e,5,!1,e.toLowerCase(),null,!1)}));var wt=/[\-:]([a-z])/g;function Et(e){return e[1].toUpperCase()}function St(e,t,n,r){var o=gt.hasOwnProperty(t)?gt[t]:null;(null!==o?0===o.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(yt(t,n,o,r)&&(n=null),r||null===o?function(e){return!!ht.call(mt,e)||!ht.call(bt,e)&&(pt.test(e)?mt[e]=!0:(bt[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Ot(e){switch(r(e)){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function kt(e,t){var n=t.checked;return i({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ct(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Ot(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function xt(e,t){null!=(t=t.checked)&&St(e,"checked",t,!1)}function _t(e,t){xt(e,t);var n=Ot(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?At(e,t.type,n):t.hasOwnProperty("defaultValue")&&At(e,t.type,Ot(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Pt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function At(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(wt,Et);gt[t]=new vt(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(wt,Et);gt[t]=new vt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(wt,Et);gt[t]=new vt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){gt[e]=new vt(e,1,!1,e.toLowerCase(),null,!1)})),gt.xlinkHref=new vt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){gt[e]=new vt(e,1,!1,e.toLowerCase(),null,!0)}));var Tt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function It(e,t,n){return(e=ce.getPooled(Tt.change,e,t,n)).type="change",De(n),q(e),e}var Dt=null,jt=null;function Lt(e){I(e)}function Rt(e){if(qe(U(e)))return e}function Nt(e,t){if("change"===e)return t}var Mt=!1;function Ft(){Dt&&(Dt.detachEvent("onpropertychange",Ut),jt=Dt=null)}function Ut(e){if("value"===e.propertyName&&Rt(jt))if(e=It(jt,e,ze(e)),Fe)I(e);else{Fe=!0;try{Le(Lt,e)}finally{Fe=!1,Ue()}}}function Bt(e,t,n){"focus"===e?(Ft(),jt=n,(Dt=t).attachEvent("onpropertychange",Ut)):"blur"===e&&Ft()}function Ht(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Rt(jt)}function zt(e,t){if("click"===e)return Rt(t)}function Vt(e,t){if("input"===e||"change"===e)return Rt(t)}X&&(Mt=Ve("input")&&(!document.documentMode||9<document.documentMode));var Wt={eventTypes:Tt,_isInputEventSupported:Mt,extractEvents:function(e,t,n,r){var o=t?U(t):window,i=void 0,a=void 0,s=o.nodeName&&o.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===o.type?i=Nt:He(o)?Mt?i=Vt:(i=Ht,a=Bt):(s=o.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(i=zt),i&&(i=i(e,t)))return It(i,n,r);a&&a(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&At(o,"number",o.value)}},Gt=ce.extend({view:null,detail:null}),qt={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Xt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=qt[e])&&!!t[e]}function Kt(){return Xt}var Yt=0,Qt=0,Jt=!1,$t=!1,Zt=Gt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Kt,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=Yt;return Yt=e.screenX,Jt?"mousemove"===e.type?e.screenX-t:0:(Jt=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=Qt;return Qt=e.screenY,$t?"mousemove"===e.type?e.screenY-t:0:($t=!0,0)}}),en=Zt.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),tn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},nn={eventTypes:tn,extractEvents:function(e,t,n,r){var o="mouseover"===e||"pointerover"===e,i="mouseout"===e||"pointerout"===e;if(o&&(n.relatedTarget||n.fromElement)||!i&&!o)return null;if(o=r.window===r?r:(o=r.ownerDocument)?o.defaultView||o.parentWindow:window,i?(i=t,t=(t=n.relatedTarget||n.toElement)?M(t):null):i=null,i===t)return null;var a=void 0,s=void 0,l=void 0,u=void 0;"mouseout"===e||"mouseover"===e?(a=Zt,s=tn.mouseLeave,l=tn.mouseEnter,u="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=en,s=tn.pointerLeave,l=tn.pointerEnter,u="pointer");var c=null==i?o:U(i);if(o=null==t?o:U(t),(e=a.getPooled(s,i,n,r)).type=u+"leave",e.target=c,e.relatedTarget=o,(n=a.getPooled(l,t,n,r)).type=u+"enter",n.target=o,n.relatedTarget=c,r=t,i&&r)e:{for(o=r,u=0,a=t=i;a;a=H(a))u++;for(a=0,l=o;l;l=H(l))a++;for(;0<u-a;)t=H(t),u--;for(;0<a-u;)o=H(o),a--;for(;u--;){if(t===o||t===o.alternate)break e;t=H(t),o=H(o)}t=null}else t=null;for(o=t,t=[];i&&i!==o&&(null===(u=i.alternate)||u!==o);)t.push(i),i=H(i);for(i=[];r&&r!==o&&(null===(u=r.alternate)||u!==o);)i.push(r),r=H(r);for(r=0;r<t.length;r++)W(t[r],"bubbled",e);for(r=i.length;0<r--;)W(i[r],"captured",n);return[e,n]}};function rn(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t}var on=Object.prototype.hasOwnProperty;function an(e,t){if(rn(e,t))return!0;if("object"!==r(e)||null===e||"object"!==r(t)||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++)if(!on.call(t,n[o])||!rn(e[n[o]],t[n[o]]))return!1;return!0}function sn(e,t){return{responder:e,props:t}}function ln(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function un(e){if(2!==ln(e))throw s(Error(188))}function cn(e){if(!(e=function(e){var t=e.alternate;if(!t){if(3===(t=ln(e)))throw s(Error(188));return 1===t?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return un(o),e;if(i===r)return un(o),t;i=i.sibling}throw s(Error(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw s(Error(189))}}if(n.alternate!==r)throw s(Error(190))}if(3!==n.tag)throw s(Error(188));return n.stateNode.current===n?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}new Map,new Map,new Set,new Map;var fn=ce.extend({animationName:null,elapsedTime:null,pseudoElement:null}),dn=ce.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),pn=Gt.extend({relatedTarget:null});function hn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}for(var bn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},mn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},yn=Gt.extend({key:function(e){if(e.key){var t=bn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=hn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?mn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Kt,charCode:function(e){return"keypress"===e.type?hn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?hn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),vn=Zt.extend({dataTransfer:null}),gn=Gt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Kt}),wn=ce.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),En=Zt.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),Sn=[["blur","blur",0],["cancel","cancel",0],["click","click",0],["close","close",0],["contextmenu","contextMenu",0],["copy","copy",0],["cut","cut",0],["auxclick","auxClick",0],["dblclick","doubleClick",0],["dragend","dragEnd",0],["dragstart","dragStart",0],["drop","drop",0],["focus","focus",0],["input","input",0],["invalid","invalid",0],["keydown","keyDown",0],["keypress","keyPress",0],["keyup","keyUp",0],["mousedown","mouseDown",0],["mouseup","mouseUp",0],["paste","paste",0],["pause","pause",0],["play","play",0],["pointercancel","pointerCancel",0],["pointerdown","pointerDown",0],["pointerup","pointerUp",0],["ratechange","rateChange",0],["reset","reset",0],["seeked","seeked",0],["submit","submit",0],["touchcancel","touchCancel",0],["touchend","touchEnd",0],["touchstart","touchStart",0],["volumechange","volumeChange",0],["drag","drag",1],["dragenter","dragEnter",1],["dragexit","dragExit",1],["dragleave","dragLeave",1],["dragover","dragOver",1],["mousemove","mouseMove",1],["mouseout","mouseOut",1],["mouseover","mouseOver",1],["pointermove","pointerMove",1],["pointerout","pointerOut",1],["pointerover","pointerOver",1],["scroll","scroll",1],["toggle","toggle",1],["touchmove","touchMove",1],["wheel","wheel",1],["abort","abort",2],[Z,"animationEnd",2],[ee,"animationIteration",2],[te,"animationStart",2],["canplay","canPlay",2],["canplaythrough","canPlayThrough",2],["durationchange","durationChange",2],["emptied","emptied",2],["encrypted","encrypted",2],["ended","ended",2],["error","error",2],["gotpointercapture","gotPointerCapture",2],["load","load",2],["loadeddata","loadedData",2],["loadedmetadata","loadedMetadata",2],["loadstart","loadStart",2],["lostpointercapture","lostPointerCapture",2],["playing","playing",2],["progress","progress",2],["seeking","seeking",2],["stalled","stalled",2],["suspend","suspend",2],["timeupdate","timeUpdate",2],[ne,"transitionEnd",2],["waiting","waiting",2]],On={},kn={},Cn=0;Cn<Sn.length;Cn++){var xn=Sn[Cn],_n=xn[0],Pn=xn[1],An=xn[2],Tn="on"+(Pn[0].toUpperCase()+Pn.slice(1)),In={phasedRegistrationNames:{bubbled:Tn,captured:Tn+"Capture"},dependencies:[_n],eventPriority:An};On[Pn]=In,kn[_n]=In}var Dn={eventTypes:On,getEventPriority:function(e){return void 0!==(e=kn[e])?e.eventPriority:2},extractEvents:function(e,t,n,r){var o=kn[e];if(!o)return null;switch(e){case"keypress":if(0===hn(n))return null;case"keydown":case"keyup":e=yn;break;case"blur":case"focus":e=pn;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Zt;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=vn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gn;break;case Z:case ee:case te:e=fn;break;case ne:e=wn;break;case"scroll":e=Gt;break;case"wheel":e=En;break;case"copy":case"cut":case"paste":e=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=en;break;default:e=ce}return q(t=e.getPooled(o,t,n,r)),t}},jn=Dn.getEventPriority,Ln=[];function Rn(e){var t=e.targetInst,n=t;do{if(!n){e.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;e.ancestors.push(n),n=M(r)}while(n);for(n=0;n<e.ancestors.length;n++){t=e.ancestors[n];var o=ze(e.nativeEvent);r=e.topLevelType;for(var i=e.nativeEvent,a=null,s=0;s<d.length;s++){var l=d[s];l&&(l=l.extractEvents(r,t,i,o))&&(a=_(a,l))}I(a)}}var Nn=!0;function Mn(e,t){Fn(t,e,!1)}function Fn(e,t,n){switch(jn(t)){case 0:var r=Un.bind(null,t,1);break;case 1:r=Bn.bind(null,t,1);break;default:r=Hn.bind(null,t,1)}n?e.addEventListener(t,r,!0):e.addEventListener(t,r,!1)}function Un(e,t,n){Fe||Ne();var r=Hn,o=Fe;Fe=!0;try{Re(r,e,t,n)}finally{(Fe=o)||Ue()}}function Bn(e,t,n){Hn(e,t,n)}function Hn(e,t,n){if(Nn){if(null===(t=M(t=ze(n)))||"number"!=typeof t.tag||2===ln(t)||(t=null),Ln.length){var r=Ln.pop();r.topLevelType=e,r.nativeEvent=n,r.targetInst=t,e=r}else e={topLevelType:e,nativeEvent:n,targetInst:t,ancestors:[]};try{if(n=e,Fe)Rn(n);else{Fe=!0;try{Me(Rn,n,void 0)}finally{Fe=!1,Ue()}}}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Ln.length&&Ln.push(e)}}}var zn=new("function"==typeof WeakMap?WeakMap:Map);function Vn(e){var t=zn.get(e);return void 0===t&&(t=new Set,zn.set(e,t)),t}function Wn(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Gn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qn(e,t){var n,r=Gn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Gn(r)}}function Xn(){for(var e=window,t=Wn();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=Wn((e=t.contentWindow).document)}return t}function Kn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Yn=X&&"documentMode"in document&&11>=document.documentMode,Qn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Jn=null,$n=null,Zn=null,er=!1;function tr(e,t){var n=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return er||null==Jn||Jn!==Wn(n)?null:("selectionStart"in(n=Jn)&&Kn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Zn&&an(Zn,n)?null:(Zn=n,(e=ce.getPooled(Qn.select,$n,e,t)).type="select",e.target=Jn,q(e),e))}var nr={eventTypes:Qn,extractEvents:function(e,t,n,r){var o,i=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(o=!i)){e:{i=Vn(i),o=b.onSelect;for(var a=0;a<o.length;a++)if(!i.has(o[a])){i=!1;break e}i=!0}o=!i}if(o)return null;switch(i=t?U(t):window,e){case"focus":(He(i)||"true"===i.contentEditable)&&(Jn=i,$n=t,Zn=null);break;case"blur":Zn=$n=Jn=null;break;case"mousedown":er=!0;break;case"contextmenu":case"mouseup":case"dragend":return er=!1,tr(n,r);case"selectionchange":if(Yn)break;case"keydown":case"keyup":return tr(n,r)}return null}};function rr(e,t){return e=i({children:void 0},t),(t=function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function or(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Ot(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function ir(e,t){if(null!=t.dangerouslySetInnerHTML)throw s(Error(91));return i({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ar(e,t){var n=t.value;if(null==n){if(n=t.defaultValue,null!=(t=t.children)){if(null!=n)throw s(Error(92));if(Array.isArray(t)){if(!(1>=t.length))throw s(Error(93));t=t[0]}n=t}null==n&&(n="")}e._wrapperState={initialValue:Ot(n)}}function sr(e,t){var n=Ot(t.value),r=Ot(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function lr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}D.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),O=B,k=F,C=U,D.injectEventPluginsByName({SimpleEventPlugin:Dn,EnterLeaveEventPlugin:nn,ChangeEventPlugin:Wt,SelectEventPlugin:nr,BeforeInputEventPlugin:_e});var ur={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function cr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function fr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?cr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var dr=void 0,pr=function(e){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,n,r,o){MSApp.execUnsafeLocalFunction((function(){return e(t,n)}))}:e}((function(e,t){if(e.namespaceURI!==ur.svg||"innerHTML"in e)e.innerHTML=t;else{for((dr=dr||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=dr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function hr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var br={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},mr=["Webkit","ms","Moz","O"];function yr(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||br.hasOwnProperty(e)&&br[e]?(""+t).trim():t+"px"}function vr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=yr(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(br).forEach((function(e){mr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),br[t]=br[e]}))}));var gr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function wr(e,t){if(t){if(gr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw s(Error(137),e,"");if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw s(Error(60));if(!("object"===r(t.dangerouslySetInnerHTML)&&"__html"in t.dangerouslySetInnerHTML))throw s(Error(61))}if(null!=t.style&&"object"!==r(t.style))throw s(Error(62),"")}}function Er(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function Sr(e,t){var n=Vn(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=b[t];for(var r=0;r<t.length;r++){var o=t[r];if(!n.has(o)){switch(o){case"scroll":Fn(e,"scroll",!0);break;case"focus":case"blur":Fn(e,"focus",!0),Fn(e,"blur",!0),n.add("blur"),n.add("focus");break;case"cancel":case"close":Ve(o)&&Fn(e,o,!0);break;case"invalid":case"submit":case"reset":break;default:-1===re.indexOf(o)&&Mn(o,e)}n.add(o)}}}function Or(){}var kr=null,Cr=null;function xr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function _r(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"===r(t.dangerouslySetInnerHTML)&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var Pr="function"==typeof setTimeout?setTimeout:void 0,Ar="function"==typeof clearTimeout?clearTimeout:void 0;function Tr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}new Set;var Ir=[],Dr=-1;function jr(e){0>Dr||(e.current=Ir[Dr],Ir[Dr]=null,Dr--)}function Lr(e,t){Ir[++Dr]=e.current,e.current=t}var Rr={},Nr={current:Rr},Mr={current:!1},Fr=Rr;function Ur(e,t){var n=e.type.contextTypes;if(!n)return Rr;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Br(e){return null!=(e=e.childContextTypes)}function Hr(e){jr(Mr),jr(Nr)}function zr(e){jr(Mr),jr(Nr)}function Vr(e,t,n){if(Nr.current!==Rr)throw s(Error(168));Lr(Nr,t),Lr(Mr,n)}function Wr(e,t,n){var r=e.stateNode;if(e=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in e))throw s(Error(108),ft(t)||"Unknown",o);return i({},n,r)}function Gr(e){var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||Rr,Fr=Nr.current,Lr(Nr,t),Lr(Mr,Mr.current),!0}function qr(e,t,n){var r=e.stateNode;if(!r)throw s(Error(169));n?(t=Wr(e,t,Fr),r.__reactInternalMemoizedMergedChildContext=t,jr(Mr),jr(Nr),Lr(Nr,t)):jr(Mr),Lr(Mr,n)}var Xr=a.unstable_runWithPriority,Kr=a.unstable_scheduleCallback,Yr=a.unstable_cancelCallback,Qr=a.unstable_shouldYield,Jr=a.unstable_requestPaint,$r=a.unstable_now,Zr=a.unstable_getCurrentPriorityLevel,eo=a.unstable_ImmediatePriority,to=a.unstable_UserBlockingPriority,no=a.unstable_NormalPriority,ro=a.unstable_LowPriority,oo=a.unstable_IdlePriority,io={},ao=void 0!==Jr?Jr:function(){},so=null,lo=null,uo=!1,co=$r(),fo=1e4>co?$r:function(){return $r()-co};function po(){switch(Zr()){case eo:return 99;case to:return 98;case no:return 97;case ro:return 96;case oo:return 95;default:throw s(Error(332))}}function ho(e){switch(e){case 99:return eo;case 98:return to;case 97:return no;case 96:return ro;case 95:return oo;default:throw s(Error(332))}}function bo(e,t){return e=ho(e),Xr(e,t)}function mo(e,t,n){return e=ho(e),Kr(e,t,n)}function yo(e){return null===so?(so=[e],lo=Kr(eo,go)):so.push(e),io}function vo(){null!==lo&&Yr(lo),go()}function go(){if(!uo&&null!==so){uo=!0;var e=0;try{var t=so;bo(99,(function(){for(;e<t.length;e++){var n=t[e];do{n=n(!0)}while(null!==n)}})),so=null}catch(t){throw null!==so&&(so=so.slice(e+1)),Kr(eo,vo),t}finally{uo=!1}}}function wo(e,t){return 1073741823===t?99:1===t?95:0>=(e=10*(1073741821-t)-10*(1073741821-e))?99:250>=e?98:5250>=e?97:95}function Eo(e,t){if(e&&e.defaultProps)for(var n in t=i({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}var So={current:null},Oo=null,ko=null,Co=null;function xo(){Co=ko=Oo=null}function _o(e,t){var n=e.type._context;Lr(So,n._currentValue),n._currentValue=t}function Po(e){var t=So.current;jr(So),e.type._context._currentValue=t}function Ao(e,t){for(;null!==e;){var n=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t);else{if(!(null!==n&&n.childExpirationTime<t))break;n.childExpirationTime=t}e=e.return}}function To(e,t){Oo=e,Co=ko=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(pa=!0),e.firstContext=null)}function Io(e,t){if(Co!==e&&!1!==t&&0!==t)if("number"==typeof t&&1073741823!==t||(Co=e,t=1073741823),t={context:e,observedBits:t,next:null},null===ko){if(null===Oo)throw s(Error(308));ko=t,Oo.dependencies={expirationTime:0,firstContext:t,responders:null}}else ko=ko.next=t;return e._currentValue}var Do=!1;function jo(e){return{baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Lo(e){return{baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Ro(e,t){return{expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function No(e,t){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t)}function Mo(e,t){var n=e.alternate;if(null===n){var r=e.updateQueue,o=null;null===r&&(r=e.updateQueue=jo(e.memoizedState))}else r=e.updateQueue,o=n.updateQueue,null===r?null===o?(r=e.updateQueue=jo(e.memoizedState),o=n.updateQueue=jo(n.memoizedState)):r=e.updateQueue=Lo(o):null===o&&(o=n.updateQueue=Lo(r));null===o||r===o?No(r,t):null===r.lastUpdate||null===o.lastUpdate?(No(r,t),No(o,t)):(No(r,t),o.lastUpdate=t)}function Fo(e,t){var n=e.updateQueue;null===(n=null===n?e.updateQueue=jo(e.memoizedState):Uo(e,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=t:(n.lastCapturedUpdate.next=t,n.lastCapturedUpdate=t)}function Uo(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Lo(t)),t}function Bo(e,t,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(a,r,o):e;case 3:e.effectTag=-2049&e.effectTag|64;case 0:if(null==(o="function"==typeof(e=n.payload)?e.call(a,r,o):e))break;return i({},r,o);case 2:Do=!0}return r}function Ho(e,t,n,r,o){Do=!1;for(var i=(t=Uo(e,t)).baseState,a=null,s=0,l=t.firstUpdate,u=i;null!==l;){var c=l.expirationTime;c<o?(null===a&&(a=l,i=u),s<c&&(s=c)):(Ws(c,l.suspenseConfig),u=Bo(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=l:(t.lastEffect.nextEffect=l,t.lastEffect=l))),l=l.next}for(c=null,l=t.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f<o?(null===c&&(c=l,null===a&&(i=u)),s<f&&(s=f)):(u=Bo(e,0,l,u,n,r),null!==l.callback&&(e.effectTag|=32,l.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=l:(t.lastCapturedEffect.nextEffect=l,t.lastCapturedEffect=l))),l=l.next}null===a&&(t.lastUpdate=null),null===c?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===c&&(i=u),t.baseState=i,t.firstUpdate=a,t.firstCapturedUpdate=c,e.expirationTime=s,e.memoizedState=u}function zo(e,t,n){null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),Vo(t.firstEffect,n),t.firstEffect=t.lastEffect=null,Vo(t.firstCapturedEffect,n),t.firstCapturedEffect=t.lastCapturedEffect=null}function Vo(e,t){for(;null!==e;){var n=e.callback;if(null!==n){e.callback=null;var r=t;if("function"!=typeof n)throw s(Error(191),n);n.call(r)}e=e.nextEffect}}var Wo=Xe.ReactCurrentBatchConfig,Go=(new o.Component).refs;function qo(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:i({},t,n),e.memoizedState=n,null!==(r=e.updateQueue)&&0===e.expirationTime&&(r.baseState=n)}var Xo={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===ln(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=Is(),o=Wo.suspense;(o=Ro(r=Ds(r,e,o),o)).payload=t,null!=n&&(o.callback=n),Mo(e,o),Ls(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=Is(),o=Wo.suspense;(o=Ro(r=Ds(r,e,o),o)).tag=1,o.payload=t,null!=n&&(o.callback=n),Mo(e,o),Ls(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=Is(),r=Wo.suspense;(r=Ro(n=Ds(n,e,r),r)).tag=2,null!=t&&(r.callback=t),Mo(e,r),Ls(e,n)}};function Ko(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!an(n,r)||!an(o,i))}function Yo(e,t,n){var o=!1,i=Rr,a=t.contextType;return"object"===r(a)&&null!==a?a=Io(a):(i=Br(t)?Fr:Nr.current,a=(o=null!=(o=t.contextTypes))?Ur(e,i):Rr),t=new t(n,a),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Xo,e.stateNode=t,t._reactInternalFiber=e,o&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Qo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Xo.enqueueReplaceState(t,t.state,null)}function Jo(e,t,n,o){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=Go;var a=t.contextType;"object"===r(a)&&null!==a?i.context=Io(a):(a=Br(t)?Fr:Nr.current,i.context=Ur(e,a)),null!==(a=e.updateQueue)&&(Ho(e,a,n,i,o),i.state=e.memoizedState),"function"==typeof(a=t.getDerivedStateFromProps)&&(qo(e,t,a,n),i.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(t=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Xo.enqueueReplaceState(i,i.state,null),null!==(a=e.updateQueue)&&(Ho(e,a,n,i,o),i.state=e.memoizedState)),"function"==typeof i.componentDidMount&&(e.effectTag|=4)}var $o=Array.isArray;function Zo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!==r(e)){if(n._owner){n=n._owner;var o=void 0;if(n){if(1!==n.tag)throw s(Error(309));o=n.stateNode}if(!o)throw s(Error(147),e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=o.refs;t===Go&&(t=o.refs={}),null===e?delete t[i]:t[i]=e})._stringRef=i,t)}if("string"!=typeof e)throw s(Error(284));if(!n._owner)throw s(Error(290),e)}return e}function ei(e,t){if("textarea"!==e.type)throw s(Error(31),"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function ti(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function o(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=sl(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function l(t){return e&&null===t.alternate&&(t.effectTag=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=cl(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){return null!==t&&t.elementType===n.type?((r=i(t,n.props)).ref=Zo(e,t,n),r.return=e,r):((r=ll(n.type,n.key,n.props,null,e.mode,r)).ref=Zo(e,t,n),r.return=e,r)}function f(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=fl(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,o){return null===t||7!==t.tag?((t=ul(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function p(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=cl(""+t,e.mode,n)).return=e,t;if("object"===r(t)&&null!==t){switch(t.$$typeof){case Qe:return(n=ll(t.type,t.key,t.props,null,e.mode,n)).ref=Zo(e,null,t),n.return=e,n;case Je:return(t=fl(t,e.mode,n)).return=e,t}if($o(t)||ct(t))return(t=ul(t,e.mode,n,null)).return=e,t;ei(e,t)}return null}function h(e,t,n,o){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(e,t,""+n,o);if("object"===r(n)&&null!==n){switch(n.$$typeof){case Qe:return n.key===i?n.type===$e?d(e,t,n.props.children,o,i):c(e,t,n,o):null;case Je:return n.key===i?f(e,t,n,o):null}if($o(n)||ct(n))return null!==i?null:d(e,t,n,o,null);ei(e,n)}return null}function b(e,t,n,o,i){if("string"==typeof o||"number"==typeof o)return u(t,e=e.get(n)||null,""+o,i);if("object"===r(o)&&null!==o){switch(o.$$typeof){case Qe:return e=e.get(null===o.key?n:o.key)||null,o.type===$e?d(t,e,o.props.children,i,o.key):c(t,e,o,i);case Je:return f(t,e=e.get(null===o.key?n:o.key)||null,o,i)}if($o(o)||ct(o))return d(t,e=e.get(n)||null,o,i,null);ei(t,o)}return null}function m(r,i,s,l){for(var u=null,c=null,f=i,d=i=0,m=null;null!==f&&d<s.length;d++){f.index>d?(m=f,f=null):m=f.sibling;var y=h(r,f,s[d],l);if(null===y){null===f&&(f=m);break}e&&f&&null===y.alternate&&t(r,f),i=a(y,i,d),null===c?u=y:c.sibling=y,c=y,f=m}if(d===s.length)return n(r,f),u;if(null===f){for(;d<s.length;d++)null!==(f=p(r,s[d],l))&&(i=a(f,i,d),null===c?u=f:c.sibling=f,c=f);return u}for(f=o(r,f);d<s.length;d++)null!==(m=b(f,r,d,s[d],l))&&(e&&null!==m.alternate&&f.delete(null===m.key?d:m.key),i=a(m,i,d),null===c?u=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(r,e)})),u}function y(r,i,l,u){var c=ct(l);if("function"!=typeof c)throw s(Error(150));if(null==(l=c.call(l)))throw s(Error(151));for(var f=c=null,d=i,m=i=0,y=null,v=l.next();null!==d&&!v.done;m++,v=l.next()){d.index>m?(y=d,d=null):y=d.sibling;var g=h(r,d,v.value,u);if(null===g){null===d&&(d=y);break}e&&d&&null===g.alternate&&t(r,d),i=a(g,i,m),null===f?c=g:f.sibling=g,f=g,d=y}if(v.done)return n(r,d),c;if(null===d){for(;!v.done;m++,v=l.next())null!==(v=p(r,v.value,u))&&(i=a(v,i,m),null===f?c=v:f.sibling=v,f=v);return c}for(d=o(r,d);!v.done;m++,v=l.next())null!==(v=b(d,r,m,v.value,u))&&(e&&null!==v.alternate&&d.delete(null===v.key?m:v.key),i=a(v,i,m),null===f?c=v:f.sibling=v,f=v);return e&&d.forEach((function(e){return t(r,e)})),c}return function(e,o,a,u){var c="object"===r(a)&&null!==a&&a.type===$e&&null===a.key;c&&(a=a.props.children);var f="object"===r(a)&&null!==a;if(f)switch(a.$$typeof){case Qe:e:{for(f=a.key,c=o;null!==c;){if(c.key===f){if(7===c.tag?a.type===$e:c.elementType===a.type){n(e,c.sibling),(o=i(c,a.type===$e?a.props.children:a.props)).ref=Zo(e,c,a),o.return=e,e=o;break e}n(e,c);break}t(e,c),c=c.sibling}a.type===$e?((o=ul(a.props.children,e.mode,u,a.key)).return=e,e=o):((u=ll(a.type,a.key,a.props,null,e.mode,u)).ref=Zo(e,o,a),u.return=e,e=u)}return l(e);case Je:e:{for(c=a.key;null!==o;){if(o.key===c){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(e,o.sibling),(o=i(o,a.children||[])).return=e,e=o;break e}n(e,o);break}t(e,o),o=o.sibling}(o=fl(a,e.mode,u)).return=e,e=o}return l(e)}if("string"==typeof a||"number"==typeof a)return a=""+a,null!==o&&6===o.tag?(n(e,o.sibling),(o=i(o,a)).return=e,e=o):(n(e,o),(o=cl(a,e.mode,u)).return=e,e=o),l(e);if($o(a))return m(e,o,a,u);if(ct(a))return y(e,o,a,u);if(f&&ei(e,a),void 0===a&&!c)switch(e.tag){case 1:case 0:throw e=e.type,s(Error(152),e.displayName||e.name||"Component")}return n(e,o)}}var ni=ti(!0),ri=ti(!1),oi={},ii={current:oi},ai={current:oi},si={current:oi};function li(e){if(e===oi)throw s(Error(174));return e}function ui(e,t){Lr(si,t),Lr(ai,e),Lr(ii,oi);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:fr(null,"");break;default:t=fr(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}jr(ii),Lr(ii,t)}function ci(e){jr(ii),jr(ai),jr(si)}function fi(e){li(si.current);var t=li(ii.current),n=fr(t,e.type);t!==n&&(Lr(ai,e),Lr(ii,n))}function di(e){ai.current===e&&(jr(ii),jr(ai))}var pi=1,hi=1,bi=2,mi={current:0};function yi(e){for(var t=e;null!==t;){if(13===t.tag){if(null!==t.memoizedState)return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!=(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var vi=0,gi=2,wi=4,Ei=8,Si=16,Oi=32,ki=64,Ci=128,xi=Xe.ReactCurrentDispatcher,_i=0,Pi=null,Ai=null,Ti=null,Ii=null,Di=null,ji=null,Li=0,Ri=null,Ni=0,Mi=!1,Fi=null,Ui=0;function Bi(){throw s(Error(321))}function Hi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!rn(e[n],t[n]))return!1;return!0}function zi(e,t,n,r,o,i){if(_i=i,Pi=t,Ti=null!==e?e.memoizedState:null,xi.current=null===Ti?ta:na,t=n(r,o),Mi){do{Mi=!1,Ui+=1,Ti=null!==e?e.memoizedState:null,ji=Ii,Ri=Di=Ai=null,xi.current=na,t=n(r,o)}while(Mi);Fi=null,Ui=0}if(xi.current=ea,(e=Pi).memoizedState=Ii,e.expirationTime=Li,e.updateQueue=Ri,e.effectTag|=Ni,e=null!==Ai&&null!==Ai.next,_i=0,ji=Di=Ii=Ti=Ai=Pi=null,Li=0,Ri=null,Ni=0,e)throw s(Error(300));return t}function Vi(){xi.current=ea,_i=0,ji=Di=Ii=Ti=Ai=Pi=null,Li=0,Ri=null,Ni=0,Mi=!1,Fi=null,Ui=0}function Wi(){var e={memoizedState:null,baseState:null,queue:null,baseUpdate:null,next:null};return null===Di?Ii=Di=e:Di=Di.next=e,Di}function Gi(){if(null!==ji)ji=(Di=ji).next,Ti=null!==(Ai=Ti)?Ai.next:null;else{if(null===Ti)throw s(Error(310));var e={memoizedState:(Ai=Ti).memoizedState,baseState:Ai.baseState,queue:Ai.queue,baseUpdate:Ai.baseUpdate,next:null};Di=null===Di?Ii=e:Di.next=e,Ti=Ai.next}return Di}function qi(e,t){return"function"==typeof t?t(e):t}function Xi(e){var t=Gi(),n=t.queue;if(null===n)throw s(Error(311));if(n.lastRenderedReducer=e,0<Ui){var r=n.dispatch;if(null!==Fi){var o=Fi.get(n);if(void 0!==o){Fi.delete(n);var i=t.memoizedState;do{i=e(i,o.action),o=o.next}while(null!==o);return rn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate===n.last&&(t.baseState=i),n.lastRenderedState=i,[i,r]}}return[t.memoizedState,r]}r=n.last;var a=t.baseUpdate;if(i=t.baseState,null!==a?(null!==r&&(r.next=null),r=a.next):r=null!==r?r.next:null,null!==r){var l=o=null,u=r,c=!1;do{var f=u.expirationTime;f<_i?(c||(c=!0,l=a,o=i),f>Li&&(Li=f)):(Ws(f,u.suspenseConfig),i=u.eagerReducer===e?u.eagerState:e(i,u.action)),a=u,u=u.next}while(null!==u&&u!==r);c||(l=a,o=i),rn(i,t.memoizedState)||(pa=!0),t.memoizedState=i,t.baseUpdate=l,t.baseState=o,n.lastRenderedState=i}return[t.memoizedState,n.dispatch]}function Ki(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===Ri?(Ri={lastEffect:null}).lastEffect=e.next=e:null===(t=Ri.lastEffect)?Ri.lastEffect=e.next=e:(n=t.next,t.next=e,e.next=n,Ri.lastEffect=e),e}function Yi(e,t,n,r){var o=Wi();Ni|=e,o.memoizedState=Ki(t,n,void 0,void 0===r?null:r)}function Qi(e,t,n,r){var o=Gi();r=void 0===r?null:r;var i=void 0;if(null!==Ai){var a=Ai.memoizedState;if(i=a.destroy,null!==r&&Hi(r,a.deps))return void Ki(vi,n,i,r)}Ni|=e,o.memoizedState=Ki(t,n,i,r)}function Ji(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function $i(){}function Zi(e,t,n){if(!(25>Ui))throw s(Error(301));var r=e.alternate;if(e===Pi||null!==r&&r===Pi)if(Mi=!0,e={expirationTime:_i,suspenseConfig:null,action:n,eagerReducer:null,eagerState:null,next:null},null===Fi&&(Fi=new Map),void 0===(n=Fi.get(t)))Fi.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}else{var o=Is(),i=Wo.suspense;i={expirationTime:o=Ds(o,e,i),suspenseConfig:i,action:n,eagerReducer:null,eagerState:null,next:null};var a=t.last;if(null===a)i.next=i;else{var l=a.next;null!==l&&(i.next=l),a.next=i}if(t.last=i,0===e.expirationTime&&(null===r||0===r.expirationTime)&&null!==(r=t.lastRenderedReducer))try{var u=t.lastRenderedState,c=r(u,n);if(i.eagerReducer=r,i.eagerState=c,rn(c,u))return}catch(e){}Ls(e,o)}}var ea={readContext:Io,useCallback:Bi,useContext:Bi,useEffect:Bi,useImperativeHandle:Bi,useLayoutEffect:Bi,useMemo:Bi,useReducer:Bi,useRef:Bi,useState:Bi,useDebugValue:Bi,useResponder:Bi},ta={readContext:Io,useCallback:function(e,t){return Wi().memoizedState=[e,void 0===t?null:t],e},useContext:Io,useEffect:function(e,t){return Yi(516,Ci|ki,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Yi(4,wi|Oi,Ji.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yi(4,wi|Oi,e,t)},useMemo:function(e,t){var n=Wi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Wi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e=(e=r.queue={last:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=Zi.bind(null,Pi,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Wi().memoizedState=e},useState:function(e){var t=Wi();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={last:null,dispatch:null,lastRenderedReducer:qi,lastRenderedState:e}).dispatch=Zi.bind(null,Pi,e),[t.memoizedState,e]},useDebugValue:$i,useResponder:sn},na={readContext:Io,useCallback:function(e,t){var n=Gi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Hi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)},useContext:Io,useEffect:function(e,t){return Qi(516,Ci|ki,e,t)},useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Qi(4,wi|Oi,Ji.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Qi(4,wi|Oi,e,t)},useMemo:function(e,t){var n=Gi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Hi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)},useReducer:Xi,useRef:function(){return Gi().memoizedState},useState:function(e){return Xi(qi)},useDebugValue:$i,useResponder:sn},ra=null,oa=null,ia=!1;function aa(e,t){var n=il(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function sa(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function la(e){if(ia){var t=oa;if(t){var n=t;if(!sa(e,t)){if(!(t=Tr(n.nextSibling))||!sa(e,t))return e.effectTag|=2,ia=!1,void(ra=e);aa(ra,n)}ra=e,oa=Tr(t.firstChild)}else e.effectTag|=2,ia=!1,ra=e}}function ua(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&18!==e.tag;)e=e.return;ra=e}function ca(e){if(e!==ra)return!1;if(!ia)return ua(e),ia=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!_r(t,e.memoizedProps))for(t=oa;t;)aa(e,t),t=Tr(t.nextSibling);return ua(e),oa=ra?Tr(e.stateNode.nextSibling):null,!0}function fa(){oa=ra=null,ia=!1}var da=Xe.ReactCurrentOwner,pa=!1;function ha(e,t,n,r){t.child=null===e?ri(t,null,n,r):ni(t,e.child,n,r)}function ba(e,t,n,r,o){n=n.render;var i=t.ref;return To(t,o),r=zi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,ha(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),_a(e,t,o))}function ma(e,t,n,r,o,i){if(null===e){var a=n.type;return"function"!=typeof a||al(a)||void 0!==a.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=ll(n.type,null,r,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,ya(e,t,a,r,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(n=null!==(n=n.compare)?n:an)(o,r)&&e.ref===t.ref)?_a(e,t,i):(t.effectTag|=1,(e=sl(a,r)).ref=t.ref,e.return=t,t.child=e)}function ya(e,t,n,r,o,i){return null!==e&&an(e.memoizedProps,r)&&e.ref===t.ref&&(pa=!1,o<i)?_a(e,t,i):ga(e,t,n,r,i)}function va(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function ga(e,t,n,r,o){var i=Br(n)?Fr:Nr.current;return i=Ur(t,i),To(t,o),n=zi(e,t,n,r,i,o),null===e||pa?(t.effectTag|=1,ha(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),_a(e,t,o))}function wa(e,t,n,o,i){if(Br(n)){var a=!0;Gr(t)}else a=!1;if(To(t,i),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),Yo(t,n,o),Jo(t,n,o,i),o=!0;else if(null===e){var s=t.stateNode,l=t.memoizedProps;s.props=l;var u=s.context,c=n.contextType;"object"===r(c)&&null!==c?c=Io(c):c=Ur(t,c=Br(n)?Fr:Nr.current);var f=n.getDerivedStateFromProps,d="function"==typeof f||"function"==typeof s.getSnapshotBeforeUpdate;d||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==o||u!==c)&&Qo(t,s,o,c),Do=!1;var p=t.memoizedState;u=s.state=p;var h=t.updateQueue;null!==h&&(Ho(t,h,o,s,i),u=t.memoizedState),l!==o||p!==u||Mr.current||Do?("function"==typeof f&&(qo(t,n,f,o),u=t.memoizedState),(l=Do||Ko(t,n,l,o,p,u,c))?(d||"function"!=typeof s.UNSAFE_componentWillMount&&"function"!=typeof s.componentWillMount||("function"==typeof s.componentWillMount&&s.componentWillMount(),"function"==typeof s.UNSAFE_componentWillMount&&s.UNSAFE_componentWillMount()),"function"==typeof s.componentDidMount&&(t.effectTag|=4)):("function"==typeof s.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=u),s.props=o,s.state=u,s.context=c,o=l):("function"==typeof s.componentDidMount&&(t.effectTag|=4),o=!1)}else s=t.stateNode,l=t.memoizedProps,s.props=t.type===t.elementType?l:Eo(t.type,l),u=s.context,"object"===r(c=n.contextType)&&null!==c?c=Io(c):c=Ur(t,c=Br(n)?Fr:Nr.current),(d="function"==typeof(f=n.getDerivedStateFromProps)||"function"==typeof s.getSnapshotBeforeUpdate)||"function"!=typeof s.UNSAFE_componentWillReceiveProps&&"function"!=typeof s.componentWillReceiveProps||(l!==o||u!==c)&&Qo(t,s,o,c),Do=!1,u=t.memoizedState,p=s.state=u,null!==(h=t.updateQueue)&&(Ho(t,h,o,s,i),p=t.memoizedState),l!==o||u!==p||Mr.current||Do?("function"==typeof f&&(qo(t,n,f,o),p=t.memoizedState),(f=Do||Ko(t,n,l,o,u,p,c))?(d||"function"!=typeof s.UNSAFE_componentWillUpdate&&"function"!=typeof s.componentWillUpdate||("function"==typeof s.componentWillUpdate&&s.componentWillUpdate(o,p,c),"function"==typeof s.UNSAFE_componentWillUpdate&&s.UNSAFE_componentWillUpdate(o,p,c)),"function"==typeof s.componentDidUpdate&&(t.effectTag|=4),"function"==typeof s.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),t.memoizedProps=o,t.memoizedState=p),s.props=o,s.state=p,s.context=c,o=f):("function"!=typeof s.componentDidUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=4),"function"!=typeof s.getSnapshotBeforeUpdate||l===e.memoizedProps&&u===e.memoizedState||(t.effectTag|=256),o=!1);return Ea(e,t,n,o,a,i)}function Ea(e,t,n,r,o,i){va(e,t);var a=0!=(64&t.effectTag);if(!r&&!a)return o&&qr(t,n,!1),_a(e,t,i);r=t.stateNode,da.current=t;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.effectTag|=1,null!==e&&a?(t.child=ni(t,e.child,null,i),t.child=ni(t,null,s,i)):ha(e,t,s,i),t.memoizedState=r.state,o&&qr(t,n,!0),t.child}function Sa(e){var t=e.stateNode;t.pendingContext?Vr(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Vr(0,t.context,!1),ui(e,t.containerInfo)}var Oa={};function ka(e,t,n){var r,o=t.mode,i=t.pendingProps,a=mi.current,s=null,l=!1;if((r=0!=(64&t.effectTag))||(r=0!=(a&bi)&&(null===e||null!==e.memoizedState)),r?(s=Oa,l=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=hi),Lr(mi,a&=pi),null===e)if(l){if(i=i.fallback,(e=ul(null,o,0,null)).return=t,0==(2&t.mode))for(l=null!==t.memoizedState?t.child.child:t.child,e.child=l;null!==l;)l.return=e,l=l.sibling;(n=ul(i,o,n,null)).return=t,e.sibling=n,o=e}else o=n=ri(t,null,i.children,n);else{if(null!==e.memoizedState)if(o=(a=e.child).sibling,l){if(i=i.fallback,(n=sl(a,a.pendingProps)).return=t,0==(2&t.mode)&&(l=null!==t.memoizedState?t.child.child:t.child)!==a.child)for(n.child=l;null!==l;)l.return=n,l=l.sibling;(i=sl(o,i,o.expirationTime)).return=t,n.sibling=i,o=n,n.childExpirationTime=0,n=i}else o=n=ni(t,a.child,i.children,n);else if(a=e.child,l){if(l=i.fallback,(i=ul(null,o,0,null)).return=t,i.child=a,null!==a&&(a.return=i),0==(2&t.mode))for(a=null!==t.memoizedState?t.child.child:t.child,i.child=a;null!==a;)a.return=i,a=a.sibling;(n=ul(l,o,n,null)).return=t,i.sibling=n,n.effectTag|=2,o=i,i.childExpirationTime=0}else n=o=ni(t,a,i.children,n);t.stateNode=e.stateNode}return t.memoizedState=s,t.child=o,n}function Ca(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,last:r,tail:n,tailExpiration:0,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.last=r,i.tail=n,i.tailExpiration=0,i.tailMode=o)}function xa(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(ha(e,t,r.children,n),0!=((r=mi.current)&bi))r=r&pi|bi,t.effectTag|=64;else{if(null!==e&&0!=(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag){if(null!==e.memoizedState){e.expirationTime<n&&(e.expirationTime=n);var a=e.alternate;null!==a&&a.expirationTime<n&&(a.expirationTime=n),Ao(e.return,n)}}else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=pi}if(Lr(mi,r),0==(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(r=n.alternate)&&null===yi(r)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Ca(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(r=o.alternate)&&null===yi(r)){t.child=o;break}r=o.sibling,o.sibling=n,n=o,o=r}Ca(t,!0,n,null,i);break;case"together":Ca(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function _a(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),t.childExpirationTime<n)return null;if(null!==e&&t.child!==e.child)throw s(Error(153));if(null!==t.child){for(n=sl(e=t.child,e.pendingProps,e.expirationTime),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=sl(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Pa(e){e.effectTag|=4}var Aa=void 0,Ta=void 0,Ia=void 0,Da=void 0;function ja(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function La(e){switch(e.tag){case 1:Br(e.type)&&Hr();var t=e.effectTag;return 2048&t?(e.effectTag=-2049&t|64,e):null;case 3:if(ci(),zr(),0!=(64&(t=e.effectTag)))throw s(Error(285));return e.effectTag=-2049&t|64,e;case 5:return di(e),null;case 13:return jr(mi),2048&(t=e.effectTag)?(e.effectTag=-2049&t|64,e):null;case 18:return null;case 19:return jr(mi),null;case 4:return ci(),null;case 10:return Po(e),null;default:return null}}function Ra(e,t){return{value:e,source:t,stack:dt(t)}}Aa=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(20===n.tag)e.appendChild(n.stateNode.instance);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ta=function(){},Ia=function(e,t,n,r,o){var a=e.memoizedProps;if(a!==r){var s=t.stateNode;switch(li(ii.current),e=null,n){case"input":a=kt(s,a),r=kt(s,r),e=[];break;case"option":a=rr(s,a),r=rr(s,r),e=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),e=[];break;case"textarea":a=ir(s,a),r=ir(s,r),e=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=Or)}wr(n,r),s=n=void 0;var l=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var u=a[n];for(s in u)u.hasOwnProperty(s)&&(l||(l={}),l[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(h.hasOwnProperty(n)?e||(e=[]):(e=e||[]).push(n,null));for(n in r){var c=r[n];if(u=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==u&&(null!=c||null!=u))if("style"===n)if(u){for(s in u)!u.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(l||(l={}),l[s]="");for(s in c)c.hasOwnProperty(s)&&u[s]!==c[s]&&(l||(l={}),l[s]=c[s])}else l||(e||(e=[]),e.push(n,l)),l=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(e=e||[]).push(n,""+c)):"children"===n?u===c||"string"!=typeof c&&"number"!=typeof c||(e=e||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(h.hasOwnProperty(n)?(null!=c&&Sr(o,n),e||u===c||(e=[])):(e=e||[]).push(n,c))}l&&(e=e||[]).push("style",l),o=e,(t.updateQueue=o)&&Pa(t)}},Da=function(e,t,n,r){n!==r&&Pa(t)};var Na="function"==typeof WeakSet?WeakSet:Set;function Ma(e,t){var n=t.source,r=t.stack;null===r&&null!==n&&(r=dt(n)),null!==n&&ft(n.type),t=t.value,null!==e&&1===e.tag&&ft(e.type);try{console.error(t)}catch(e){setTimeout((function(){throw e}))}}function Fa(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){$s(e,t)}else t.current=null}function Ua(e,t,n){if(null!==(n=null!==(n=n.updateQueue)?n.lastEffect:null)){var r=n=n.next;do{if((r.tag&e)!==vi){var o=r.destroy;r.destroy=void 0,void 0!==o&&o()}(r.tag&t)!==vi&&(o=r.create,r.destroy=o()),r=r.next}while(r!==n)}}function Ba(e,t){switch("function"==typeof rl&&rl(e),e.tag){case 0:case 11:case 14:case 15:var n=e.updateQueue;if(null!==n&&null!==(n=n.lastEffect)){var r=n.next;bo(97<t?97:t,(function(){var t=r;do{var n=t.destroy;if(void 0!==n){var o=e;try{n()}catch(e){$s(o,e)}}t=t.next}while(t!==r)}))}break;case 1:Fa(e),"function"==typeof(t=e.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){$s(e,t)}}(e,t);break;case 5:Fa(e);break;case 4:Wa(e,t)}}function Ha(e,t){for(var n=e;;)if(Ba(n,t),null!==n.child&&4!==n.tag)n.child.return=n,n=n.child;else{if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function za(e){return 5===e.tag||3===e.tag||4===e.tag}function Va(e){e:{for(var t=e.return;null!==t;){if(za(t)){var n=t;break e}t=t.return}throw s(Error(160))}switch(t=n.stateNode,n.tag){case 5:var r=!1;break;case 3:case 4:t=t.containerInfo,r=!0;break;default:throw s(Error(161))}16&n.effectTag&&(hr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||za(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag&&18!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var o=e;;){var i=5===o.tag||6===o.tag;if(i||20===o.tag){var a=i?o.stateNode:o.stateNode.instance;if(n)if(r){var l=a;a=n,8===(i=t).nodeType?i.parentNode.insertBefore(l,a):i.insertBefore(l,a)}else t.insertBefore(a,n);else r?(8===(l=t).nodeType?(i=l.parentNode).insertBefore(a,l):(i=l).appendChild(a),null!=(l=l._reactRootContainer)||null!==i.onclick||(i.onclick=Or)):t.appendChild(a)}else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===e)break;for(;null===o.sibling;){if(null===o.return||o.return===e)return;o=o.return}o.sibling.return=o.return,o=o.sibling}}function Wa(e,t){for(var n=e,r=!1,o=void 0,i=void 0;;){if(!r){r=n.return;e:for(;;){if(null===r)throw s(Error(160));switch(o=r.stateNode,r.tag){case 5:i=!1;break e;case 3:case 4:o=o.containerInfo,i=!0;break e}r=r.return}r=!0}if(5===n.tag||6===n.tag)if(Ha(n,t),i){var a=o,l=n.stateNode;8===a.nodeType?a.parentNode.removeChild(l):a.removeChild(l)}else o.removeChild(n.stateNode);else if(20===n.tag)l=n.stateNode.instance,Ha(n,t),i?8===(a=o).nodeType?a.parentNode.removeChild(l):a.removeChild(l):o.removeChild(l);else if(4===n.tag){if(null!==n.child){o=n.stateNode.containerInfo,i=!0,n.child.return=n,n=n.child;continue}}else if(Ba(n,t),null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;4===(n=n.return).tag&&(r=!1)}n.sibling.return=n.return,n=n.sibling}}function Ga(e,t){switch(t.tag){case 0:case 11:case 14:case 15:Ua(wi,Ei,t);break;case 1:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps,o=null!==e?e.memoizedProps:r;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(n[N]=r,"input"===e&&"radio"===r.type&&null!=r.name&&xt(n,r),Er(e,o),t=Er(e,r),o=0;o<i.length;o+=2){var a=i[o],l=i[o+1];"style"===a?vr(n,l):"dangerouslySetInnerHTML"===a?pr(n,l):"children"===a?hr(n,l):St(n,a,l,t)}switch(e){case"input":_t(n,r);break;case"textarea":sr(n,r);break;case"select":t=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(e=r.value)?or(n,!!r.multiple,e,!1):t!==!!r.multiple&&(null!=r.defaultValue?or(n,!!r.multiple,r.defaultValue,!0):or(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:if(null===t.stateNode)throw s(Error(162));t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 12:break;case 13:if(n=t,null===t.memoizedState?r=!1:(r=!0,n=t.child,ys=fo()),null!==n)e:for(e=n;;){if(5===e.tag)i=e.stateNode,r?"function"==typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,i.style.display=yr("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break e;for(;null===e.sibling;){if(null===e.return||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}qa(t);break;case 19:qa(t);break;case 17:case 20:break;default:throw s(Error(163))}}function qa(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Na),t.forEach((function(t){var r=el.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}var Xa="function"==typeof WeakMap?WeakMap:Map;function Ka(e,t,n){(n=Ro(n,null)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){ws||(ws=!0,Es=r),Ma(e,t)},n}function Ya(e,t,n){(n=Ro(n,null)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return Ma(e,t),r(o)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Ss?Ss=new Set([this]):Ss.add(this),Ma(e,t));var n=t.stack;this.componentDidCatch(t.value,{componentStack:null!==n?n:""})}),n}var Qa=Math.ceil,Ja=Xe.ReactCurrentDispatcher,$a=Xe.ReactCurrentOwner,Za=0,es=8,ts=16,ns=32,rs=0,os=1,is=2,as=3,ss=4,ls=Za,us=null,cs=null,fs=0,ds=rs,ps=1073741823,hs=1073741823,bs=null,ms=!1,ys=0,vs=500,gs=null,ws=!1,Es=null,Ss=null,Os=!1,ks=null,Cs=90,xs=0,_s=null,Ps=0,As=null,Ts=0;function Is(){return(ls&(ts|ns))!==Za?1073741821-(fo()/10|0):0!==Ts?Ts:Ts=1073741821-(fo()/10|0)}function Ds(e,t,n){if(0==(2&(t=t.mode)))return 1073741823;var r=po();if(0==(4&t))return 99===r?1073741823:1073741822;if((ls&ts)!==Za)return fs;if(null!==n)e=1073741821-25*(1+((1073741821-e+(0|n.timeoutMs||5e3)/10)/25|0));else switch(r){case 99:e=1073741823;break;case 98:e=1073741821-10*(1+((1073741821-e+15)/10|0));break;case 97:case 96:e=1073741821-25*(1+((1073741821-e+500)/25|0));break;case 95:e=1;break;default:throw s(Error(326))}return null!==us&&e===fs&&--e,e}var js=0;function Ls(e,t){if(50<Ps)throw Ps=0,As=null,s(Error(185));if(null!==(e=Rs(e,t))){e.pingTime=0;var n=po();if(1073741823===t)if((ls&es)!==Za&&(ls&(ts|ns))===Za)for(var r=Vs(e,1073741823,!0);null!==r;)r=r(!0);else Ns(e,99,1073741823),ls===Za&&vo();else Ns(e,n,t);(4&ls)===Za||98!==n&&99!==n||(null===_s?_s=new Map([[e,t]]):(void 0===(n=_s.get(e))||n>t)&&_s.set(e,t))}}function Rs(e,t){e.expirationTime<t&&(e.expirationTime=t);var n=e.alternate;null!==n&&n.expirationTime<t&&(n.expirationTime=t);var r=e.return,o=null;if(null===r&&3===e.tag)o=e.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<t&&(r.childExpirationTime=t),null!==n&&n.childExpirationTime<t&&(n.childExpirationTime=t),null===r.return&&3===r.tag){o=r.stateNode;break}r=r.return}return null!==o&&(t>o.firstPendingTime&&(o.firstPendingTime=t),0===(e=o.lastPendingTime)||t<e)&&(o.lastPendingTime=t),o}function Ns(e,t,n){if(e.callbackExpirationTime<n){var r=e.callbackNode;null!==r&&r!==io&&Yr(r),e.callbackExpirationTime=n,1073741823===n?e.callbackNode=yo(Ms.bind(null,e,Vs.bind(null,e,n))):(r=null,1!==n&&(r={timeout:10*(1073741821-n)-fo()}),e.callbackNode=mo(t,Ms.bind(null,e,Vs.bind(null,e,n)),r))}}function Ms(e,t,n){var r=e.callbackNode,o=null;try{return null!==(o=t(n))?Ms.bind(null,e,o):null}finally{null===o&&r===e.callbackNode&&(e.callbackNode=null,e.callbackExpirationTime=0)}}function Fs(){(ls&(1|ts|ns))===Za&&(function(){if(null!==_s){var e=_s;_s=null,e.forEach((function(e,t){yo(Vs.bind(null,t,e))})),vo()}}(),Ys())}function Us(e,t){var n=ls;ls|=1;try{return e(t)}finally{(ls=n)===Za&&vo()}}function Bs(e,t,n,r){var o=ls;ls|=4;try{return bo(98,e.bind(null,t,n,r))}finally{(ls=o)===Za&&vo()}}function Hs(e,t){var n=ls;ls&=-2,ls|=es;try{return e(t)}finally{(ls=n)===Za&&vo()}}function zs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,Ar(n)),null!==cs)for(n=cs.return;null!==n;){var r=n;switch(r.tag){case 1:var o=r.type.childContextTypes;null!=o&&Hr();break;case 3:ci(),zr();break;case 5:di(r);break;case 4:ci();break;case 13:case 19:jr(mi);break;case 10:Po(r)}n=n.return}us=e,cs=sl(e.current,null),fs=t,ds=rs,hs=ps=1073741823,bs=null,ms=!1}function Vs(e,t,n){if((ls&(ts|ns))!==Za)throw s(Error(327));if(e.firstPendingTime<t)return null;if(n&&e.finishedExpirationTime===t)return Xs.bind(null,e);if(Ys(),e!==us||t!==fs)zs(e,t);else if(ds===as)if(ms)zs(e,t);else{var o=e.lastPendingTime;if(o<t)return Vs.bind(null,e,o)}if(null!==cs){o=ls,ls|=ts;var i=Ja.current;if(null===i&&(i=ea),Ja.current=ea,n){if(1073741823!==t){var a=Is();if(a<t)return ls=o,xo(),Ja.current=i,Vs.bind(null,e,a)}}else Ts=0;for(;;)try{if(n)for(;null!==cs;)cs=Gs(cs);else for(;null!==cs&&!Qr();)cs=Gs(cs);break}catch(n){if(xo(),Vi(),null===(a=cs)||null===a.return)throw zs(e,t),ls=o,n;e:{var l=e,u=a.return,c=a,f=n,d=fs;if(c.effectTag|=1024,c.firstEffect=c.lastEffect=null,null!==f&&"object"===r(f)&&"function"==typeof f.then){var p=f,h=0!=(mi.current&hi);f=u;do{var b;if((b=13===f.tag)&&(null!==f.memoizedState?b=!1:b=void 0!==(b=f.memoizedProps).fallback&&(!0!==b.unstable_avoidThisFallback||!h)),b){if(null===(u=f.updateQueue)?((u=new Set).add(p),f.updateQueue=u):u.add(p),0==(2&f.mode)){f.effectTag|=64,c.effectTag&=-1957,1===c.tag&&(null===c.alternate?c.tag=17:((d=Ro(1073741823,null)).tag=2,Mo(c,d))),c.expirationTime=1073741823;break e}c=l,l=d,null===(h=c.pingCache)?(h=c.pingCache=new Xa,u=new Set,h.set(p,u)):void 0===(u=h.get(p))&&(u=new Set,h.set(p,u)),u.has(l)||(u.add(l),c=Zs.bind(null,c,p,l),p.then(c,c)),f.effectTag|=2048,f.expirationTime=d;break e}f=f.return}while(null!==f);f=Error((ft(c.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+dt(c))}ds!==ss&&(ds=os),f=Ra(f,c),c=u;do{switch(c.tag){case 3:c.effectTag|=2048,c.expirationTime=d,Fo(c,d=Ka(c,f,d));break e;case 1:if(p=f,l=c.type,u=c.stateNode,0==(64&c.effectTag)&&("function"==typeof l.getDerivedStateFromError||null!==u&&"function"==typeof u.componentDidCatch&&(null===Ss||!Ss.has(u)))){c.effectTag|=2048,c.expirationTime=d,Fo(c,d=Ya(c,p,d));break e}}c=c.return}while(null!==c)}cs=qs(a)}if(ls=o,xo(),Ja.current=i,null!==cs)return Vs.bind(null,e,t)}if(e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,function(e,t){var n=e.firstBatch;return!!(null!==n&&n._defer&&n._expirationTime>=t)&&(mo(97,(function(){return n._onComplete(),null})),!0)}(e,t))return null;switch(us=null,ds){case rs:throw s(Error(328));case os:return(o=e.lastPendingTime)<t?Vs.bind(null,e,o):n?Xs.bind(null,e):(zs(e,t),yo(Vs.bind(null,e,t)),null);case is:return 1073741823===ps&&!n&&10<(n=ys+vs-fo())?ms?(zs(e,t),Vs.bind(null,e,t)):(o=e.lastPendingTime)<t?Vs.bind(null,e,o):(e.timeoutHandle=Pr(Xs.bind(null,e),n),null):Xs.bind(null,e);case as:if(!n){if(ms)return zs(e,t),Vs.bind(null,e,t);if((n=e.lastPendingTime)<t)return Vs.bind(null,e,n);if(1073741823!==hs?n=10*(1073741821-hs)-fo():1073741823===ps?n=0:(n=10*(1073741821-ps)-5e3,0>(n=(o=fo())-n)&&(n=0),(t=10*(1073741821-t)-o)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*Qa(n/1960))-n)&&(n=t)),10<n)return e.timeoutHandle=Pr(Xs.bind(null,e),n),null}return Xs.bind(null,e);case ss:return!n&&1073741823!==ps&&null!==bs&&(o=ps,0>=(t=0|(i=bs).busyMinDurationMs)?t=0:(n=0|i.busyDelayMs,t=(o=fo()-(10*(1073741821-o)-(0|i.timeoutMs||5e3)))<=n?0:n+t-o),10<t)?(e.timeoutHandle=Pr(Xs.bind(null,e),t),null):Xs.bind(null,e);default:throw s(Error(329))}}function Ws(e,t){e<ps&&1<e&&(ps=e),null!==t&&e<hs&&1<e&&(hs=e,bs=t)}function Gs(e){var t=tl(e.alternate,e,fs);return e.memoizedProps=e.pendingProps,null===t&&(t=qs(e)),$a.current=null,t}function qs(e){cs=e;do{var t=cs.alternate;if(e=cs.return,0==(1024&cs.effectTag)){e:{var n=t,r=fs,o=(t=cs).pendingProps;switch(t.tag){case 2:case 16:break;case 15:case 0:break;case 1:Br(t.type)&&Hr();break;case 3:ci(),zr(),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==n&&null!==n.child||(ca(t),t.effectTag&=-3),Ta(t);break;case 5:di(t),r=li(si.current);var a=t.type;if(null!==n&&null!=t.stateNode)Ia(n,t,a,o,r),n.ref!==t.ref&&(t.effectTag|=128);else if(o){var l=li(ii.current);if(ca(t)){o=void 0,a=(n=t).stateNode;var u=n.type,c=n.memoizedProps;switch(a[R]=n,a[N]=c,u){case"iframe":case"object":case"embed":Mn("load",a);break;case"video":case"audio":for(var f=0;f<re.length;f++)Mn(re[f],a);break;case"source":Mn("error",a);break;case"img":case"image":case"link":Mn("error",a),Mn("load",a);break;case"form":Mn("reset",a),Mn("submit",a);break;case"details":Mn("toggle",a);break;case"input":Ct(a,c),Mn("invalid",a),Sr(r,"onChange");break;case"select":a._wrapperState={wasMultiple:!!c.multiple},Mn("invalid",a),Sr(r,"onChange");break;case"textarea":ar(a,c),Mn("invalid",a),Sr(r,"onChange")}for(o in wr(u,c),f=null,c)c.hasOwnProperty(o)&&(l=c[o],"children"===o?"string"==typeof l?a.textContent!==l&&(f=["children",l]):"number"==typeof l&&a.textContent!==""+l&&(f=["children",""+l]):h.hasOwnProperty(o)&&null!=l&&Sr(r,o));switch(u){case"input":Ge(a),Pt(a,c,!0);break;case"textarea":Ge(a),lr(a);break;case"select":case"option":break;default:"function"==typeof c.onClick&&(a.onclick=Or)}r=f,n.updateQueue=r,null!==r&&Pa(t)}else{c=a,n=o,u=t,f=9===r.nodeType?r:r.ownerDocument,l===ur.html&&(l=cr(c)),l===ur.html?"script"===c?((c=f.createElement("div")).innerHTML="<script><\/script>",f=c.removeChild(c.firstChild)):"string"==typeof n.is?f=f.createElement(c,{is:n.is}):(f=f.createElement(c),"select"===c&&(c=f,n.multiple?c.multiple=!0:n.size&&(c.size=n.size))):f=f.createElementNS(l,c),(c=f)[R]=u,c[N]=n,Aa(n=c,t,!1,!1),u=n;var d=r,p=Er(a,o);switch(a){case"iframe":case"object":case"embed":Mn("load",u),r=o;break;case"video":case"audio":for(r=0;r<re.length;r++)Mn(re[r],u);r=o;break;case"source":Mn("error",u),r=o;break;case"img":case"image":case"link":Mn("error",u),Mn("load",u),r=o;break;case"form":Mn("reset",u),Mn("submit",u),r=o;break;case"details":Mn("toggle",u),r=o;break;case"input":Ct(u,o),r=kt(u,o),Mn("invalid",u),Sr(d,"onChange");break;case"option":r=rr(u,o);break;case"select":u._wrapperState={wasMultiple:!!o.multiple},r=i({},o,{value:void 0}),Mn("invalid",u),Sr(d,"onChange");break;case"textarea":ar(u,o),r=ir(u,o),Mn("invalid",u),Sr(d,"onChange");break;default:r=o}wr(a,r),c=void 0,f=a,l=u;var b=r;for(c in b)if(b.hasOwnProperty(c)){var m=b[c];"style"===c?vr(l,m):"dangerouslySetInnerHTML"===c?null!=(m=m?m.__html:void 0)&&pr(l,m):"children"===c?"string"==typeof m?("textarea"!==f||""!==m)&&hr(l,m):"number"==typeof m&&hr(l,""+m):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(h.hasOwnProperty(c)?null!=m&&Sr(d,c):null!=m&&St(l,c,m,p))}switch(a){case"input":Ge(u),Pt(u,o,!1);break;case"textarea":Ge(u),lr(u);break;case"option":null!=o.value&&u.setAttribute("value",""+Ot(o.value));break;case"select":r=u,u=o,r.multiple=!!u.multiple,null!=(c=u.value)?or(r,!!u.multiple,c,!1):null!=u.defaultValue&&or(r,!!u.multiple,u.defaultValue,!0);break;default:"function"==typeof r.onClick&&(u.onclick=Or)}xr(a,o)&&Pa(t),t.stateNode=n}null!==t.ref&&(t.effectTag|=128)}else if(null===t.stateNode)throw s(Error(166));break;case 6:if(n&&null!=t.stateNode)Da(n,t,n.memoizedProps,o);else{if("string"!=typeof o&&null===t.stateNode)throw s(Error(166));n=li(si.current),li(ii.current),ca(t)?(r=t.stateNode,n=t.memoizedProps,r[R]=t,r.nodeValue!==n&&Pa(t)):(r=t,(n=(9===n.nodeType?n:n.ownerDocument).createTextNode(o))[R]=t,r.stateNode=n)}break;case 11:break;case 13:if(jr(mi),o=t.memoizedState,0!=(64&t.effectTag)){t.expirationTime=r;break e}r=null!==o,o=!1,null===n?ca(t):(o=null!==(a=n.memoizedState),r||null===a||null!==(a=n.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=a,a.nextEffect=u):(t.firstEffect=t.lastEffect=a,a.nextEffect=null),a.effectTag=8)),r&&!o&&0!=(2&t.mode)&&(null===n&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!=(mi.current&hi)?ds===rs&&(ds=is):ds!==rs&&ds!==is||(ds=as)),(r||o)&&(t.effectTag|=4);break;case 7:case 8:case 12:break;case 4:ci(),Ta(t);break;case 10:Po(t);break;case 9:case 14:break;case 17:Br(t.type)&&Hr();break;case 18:break;case 19:if(jr(mi),null===(o=t.memoizedState))break;if(a=0!=(64&t.effectTag),null===(u=o.rendering)){if(a)ja(o,!1);else if(ds!==rs||null!==n&&0!=(64&n.effectTag))for(n=t.child;null!==n;){if(null!==(u=yi(n))){for(t.effectTag|=64,ja(o,!1),null!==(n=u.updateQueue)&&(t.updateQueue=n,t.effectTag|=4),t.firstEffect=t.lastEffect=null,n=t.child;null!==n;)a=r,(o=n).effectTag&=2,o.nextEffect=null,o.firstEffect=null,o.lastEffect=null,null===(u=o.alternate)?(o.childExpirationTime=0,o.expirationTime=a,o.child=null,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null):(o.childExpirationTime=u.childExpirationTime,o.expirationTime=u.expirationTime,o.child=u.child,o.memoizedProps=u.memoizedProps,o.memoizedState=u.memoizedState,o.updateQueue=u.updateQueue,a=u.dependencies,o.dependencies=null===a?null:{expirationTime:a.expirationTime,firstContext:a.firstContext,responders:a.responders}),n=n.sibling;Lr(mi,mi.current&pi|bi),t=t.child;break e}n=n.sibling}}else{if(!a)if(null!==(n=yi(u))){if(t.effectTag|=64,a=!0,ja(o,!0),null===o.tail&&"hidden"===o.tailMode){null!==(r=n.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),null!==(t=t.lastEffect=o.lastEffect)&&(t.nextEffect=null);break}}else fo()>o.tailExpiration&&1<r&&(t.effectTag|=64,a=!0,ja(o,!1),t.expirationTime=t.childExpirationTime=r-1);o.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=o.last)?r.sibling=u:t.child=u,o.last=u)}if(null!==o.tail){0===o.tailExpiration&&(o.tailExpiration=fo()+500),r=o.tail,o.rendering=r,o.tail=r.sibling,o.lastEffect=t.lastEffect,r.sibling=null,n=mi.current,Lr(mi,n=a?n&pi|bi:n&pi),t=r;break e}break;case 20:break;default:throw s(Error(156))}t=null}if(r=cs,1===fs||1!==r.childExpirationTime){for(n=0,o=r.child;null!==o;)(a=o.expirationTime)>n&&(n=a),(u=o.childExpirationTime)>n&&(n=u),o=o.sibling;r.childExpirationTime=n}if(null!==t)return t;null!==e&&0==(1024&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=cs.firstEffect),null!==cs.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=cs.firstEffect),e.lastEffect=cs.lastEffect),1<cs.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=cs:e.firstEffect=cs,e.lastEffect=cs))}else{if(null!==(t=La(cs)))return t.effectTag&=1023,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=1024)}if(null!==(t=cs.sibling))return t;cs=e}while(null!==cs);return ds===rs&&(ds=ss),null}function Xs(e){var t=po();return bo(99,Ks.bind(null,e,t)),null!==ks&&mo(97,(function(){return Ys(),null})),null}function Ks(e,t){if(Ys(),(ls&(ts|ns))!==Za)throw s(Error(327));var n=e.finishedWork,r=e.finishedExpirationTime;if(null===n)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,n===e.current)throw s(Error(177));e.callbackNode=null,e.callbackExpirationTime=0;var o=n.expirationTime,i=n.childExpirationTime;if(o=i>o?i:o,e.firstPendingTime=o,o<e.lastPendingTime&&(e.lastPendingTime=o),e===us&&(cs=us=null,fs=0),1<n.effectTag?null!==n.lastEffect?(n.lastEffect.nextEffect=n,o=n.firstEffect):o=n:o=n.firstEffect,null!==o){i=ls,ls|=ns,$a.current=null,kr=Nn;var a=Xn();if(Kn(a)){if("selectionStart"in a)var l={start:a.selectionStart,end:a.selectionEnd};else e:{var u=(l=(l=a.ownerDocument)&&l.defaultView||window).getSelection&&l.getSelection();if(u&&0!==u.rangeCount){l=u.anchorNode;var c=u.anchorOffset,f=u.focusNode;u=u.focusOffset;try{l.nodeType,f.nodeType}catch(e){l=null;break e}var d=0,p=-1,h=-1,b=0,m=0,y=a,v=null;t:for(;;){for(var g;y!==l||0!==c&&3!==y.nodeType||(p=d+c),y!==f||0!==u&&3!==y.nodeType||(h=d+u),3===y.nodeType&&(d+=y.nodeValue.length),null!==(g=y.firstChild);)v=y,y=g;for(;;){if(y===a)break t;if(v===l&&++b===c&&(p=d),v===f&&++m===u&&(h=d),null!==(g=y.nextSibling))break;v=(y=v).parentNode}y=g}l=-1===p||-1===h?null:{start:p,end:h}}else l=null}l=l||{start:0,end:0}}else l=null;Cr={focusedElem:a,selectionRange:l},Nn=!1,gs=o;do{try{for(;null!==gs;){if(0!=(256&gs.effectTag)){var w=gs.alternate;switch((a=gs).tag){case 0:case 11:case 15:Ua(gi,vi,a);break;case 1:if(256&a.effectTag&&null!==w){var E=w.memoizedProps,S=w.memoizedState,O=a.stateNode,k=O.getSnapshotBeforeUpdate(a.elementType===a.type?E:Eo(a.type,E),S);O.__reactInternalSnapshotBeforeUpdate=k}break;case 3:case 5:case 6:case 4:case 17:break;default:throw s(Error(163))}}gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));$s(gs,e),gs=gs.nextEffect}}while(null!==gs);gs=o;do{try{for(w=t;null!==gs;){var C=gs.effectTag;if(16&C&&hr(gs.stateNode,""),128&C){var x=gs.alternate;if(null!==x){var _=x.ref;null!==_&&("function"==typeof _?_(null):_.current=null)}}switch(14&C){case 2:Va(gs),gs.effectTag&=-3;break;case 6:Va(gs),gs.effectTag&=-3,Ga(gs.alternate,gs);break;case 4:Ga(gs.alternate,gs);break;case 8:Wa(E=gs,w),E.return=null,E.child=null,E.memoizedState=null,E.updateQueue=null,E.dependencies=null;var P=E.alternate;null!==P&&(P.return=null,P.child=null,P.memoizedState=null,P.updateQueue=null,P.dependencies=null)}gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));$s(gs,e),gs=gs.nextEffect}}while(null!==gs);if(_=Cr,x=Xn(),C=_.focusedElem,w=_.selectionRange,x!==C&&C&&C.ownerDocument&&function e(t,n){return!(!t||!n)&&(t===n||(!t||3!==t.nodeType)&&(n&&3===n.nodeType?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}(C.ownerDocument.documentElement,C)){null!==w&&Kn(C)&&(x=w.start,void 0===(_=w.end)&&(_=x),"selectionStart"in C?(C.selectionStart=x,C.selectionEnd=Math.min(_,C.value.length)):(_=(x=C.ownerDocument||document)&&x.defaultView||window).getSelection&&(_=_.getSelection(),E=C.textContent.length,P=Math.min(w.start,E),w=void 0===w.end?P:Math.min(w.end,E),!_.extend&&P>w&&(E=w,w=P,P=E),E=qn(C,P),S=qn(C,w),E&&S&&(1!==_.rangeCount||_.anchorNode!==E.node||_.anchorOffset!==E.offset||_.focusNode!==S.node||_.focusOffset!==S.offset)&&((x=x.createRange()).setStart(E.node,E.offset),_.removeAllRanges(),P>w?(_.addRange(x),_.extend(S.node,S.offset)):(x.setEnd(S.node,S.offset),_.addRange(x))))),x=[];for(_=C;_=_.parentNode;)1===_.nodeType&&x.push({element:_,left:_.scrollLeft,top:_.scrollTop});for("function"==typeof C.focus&&C.focus(),C=0;C<x.length;C++)(_=x[C]).element.scrollLeft=_.left,_.element.scrollTop=_.top}Cr=null,Nn=!!kr,kr=null,e.current=n,gs=o;do{try{for(C=r;null!==gs;){var A=gs.effectTag;if(36&A){var T=gs.alternate;switch(_=C,(x=gs).tag){case 0:case 11:case 15:Ua(Si,Oi,x);break;case 1:var I=x.stateNode;if(4&x.effectTag)if(null===T)I.componentDidMount();else{var D=x.elementType===x.type?T.memoizedProps:Eo(x.type,T.memoizedProps);I.componentDidUpdate(D,T.memoizedState,I.__reactInternalSnapshotBeforeUpdate)}var j=x.updateQueue;null!==j&&zo(0,j,I);break;case 3:var L=x.updateQueue;if(null!==L){if(P=null,null!==x.child)switch(x.child.tag){case 5:P=x.child.stateNode;break;case 1:P=x.child.stateNode}zo(0,L,P)}break;case 5:var R=x.stateNode;null===T&&4&x.effectTag&&(_=R,xr(x.type,x.memoizedProps)&&_.focus());break;case 6:case 4:case 12:break;case 13:case 19:case 17:case 20:break;default:throw s(Error(163))}}if(128&A){var N=gs.ref;if(null!==N){var M=gs.stateNode;switch(gs.tag){case 5:var F=M;break;default:F=M}"function"==typeof N?N(F):N.current=F}}512&A&&(Os=!0),gs=gs.nextEffect}}catch(e){if(null===gs)throw s(Error(330));$s(gs,e),gs=gs.nextEffect}}while(null!==gs);gs=null,ao(),ls=i}else e.current=n;if(Os)Os=!1,ks=e,xs=r,Cs=t;else for(gs=o;null!==gs;)t=gs.nextEffect,gs.nextEffect=null,gs=t;if(0!==(t=e.firstPendingTime)?Ns(e,A=wo(A=Is(),t),t):Ss=null,"function"==typeof nl&&nl(n.stateNode,r),1073741823===t?e===As?Ps++:(Ps=0,As=e):Ps=0,ws)throw ws=!1,e=Es,Es=null,e;return(ls&es)!==Za?null:(vo(),null)}function Ys(){if(null===ks)return!1;var e=ks,t=xs,n=Cs;return ks=null,xs=0,Cs=90,bo(97<n?97:n,Qs.bind(null,e,t))}function Qs(e){if((ls&(ts|ns))!==Za)throw s(Error(331));var t=ls;for(ls|=ns,e=e.current.firstEffect;null!==e;){try{var n=e;if(0!=(512&n.effectTag))switch(n.tag){case 0:case 11:case 15:Ua(Ci,vi,n),Ua(vi,ki,n)}}catch(t){if(null===e)throw s(Error(330));$s(e,t)}n=e.nextEffect,e.nextEffect=null,e=n}return ls=t,vo(),!0}function Js(e,t,n){Mo(e,t=Ka(e,t=Ra(n,t),1073741823)),null!==(e=Rs(e,1073741823))&&Ns(e,99,1073741823)}function $s(e,t){if(3===e.tag)Js(e,e,t);else for(var n=e.return;null!==n;){if(3===n.tag){Js(n,e,t);break}if(1===n.tag){var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Ss||!Ss.has(r))){Mo(n,e=Ya(n,e=Ra(t,e),1073741823)),null!==(n=Rs(n,1073741823))&&Ns(n,99,1073741823);break}}n=n.return}}function Zs(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),us===e&&fs===n?ds===as||ds===is&&1073741823===ps&&fo()-ys<vs?zs(e,fs):ms=!0:e.lastPendingTime<n||(0!==(t=e.pingTime)&&t<n||(e.pingTime=n,e.finishedExpirationTime===n&&(e.finishedExpirationTime=0,e.finishedWork=null),Ns(e,t=wo(t=Is(),n),n)))}function el(e,t){var n=e.stateNode;null!==n&&n.delete(t),n=wo(n=Is(),t=Ds(n,e,null)),null!==(e=Rs(e,t))&&Ns(e,n,t)}var tl=void 0;tl=function(e,t,n){var o=t.expirationTime;if(null!==e){var i=t.pendingProps;if(e.memoizedProps!==i||Mr.current)pa=!0;else if(o<n){switch(pa=!1,t.tag){case 3:Sa(t),fa();break;case 5:if(fi(t),4&t.mode&&1!==n&&i.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:Br(t.type)&&Gr(t);break;case 4:ui(t,t.stateNode.containerInfo);break;case 10:_o(t,t.memoizedProps.value);break;case 13:if(null!==t.memoizedState)return 0!==(o=t.child.childExpirationTime)&&o>=n?ka(e,t,n):(Lr(mi,mi.current&pi),null!==(t=_a(e,t,n))?t.sibling:null);Lr(mi,mi.current&pi);break;case 19:if(o=t.childExpirationTime>=n,0!=(64&e.effectTag)){if(o)return xa(e,t,n);t.effectTag|=64}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null),Lr(mi,mi.current),!o)return null}return _a(e,t,n)}}else pa=!1;switch(t.expirationTime=0,t.tag){case 2:if(o=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=Ur(t,Nr.current),To(t,n),i=zi(null,t,o,e,i,n),t.effectTag|=1,"object"===r(i)&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(t.tag=1,Vi(),Br(o)){var a=!0;Gr(t)}else a=!1;t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var l=o.getDerivedStateFromProps;"function"==typeof l&&qo(t,o,l,e),i.updater=Xo,t.stateNode=i,i._reactInternalFiber=t,Jo(t,o,e,n),t=Ea(null,t,o,!0,a,n)}else t.tag=0,ha(null,t,i,n),t=t.child;return t;case 16:switch(i=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,i=function(e){var t=e._result;switch(e._status){case 1:return t;case 2:case 0:throw t;default:switch(e._status=0,(t=(t=e._ctor)()).then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)})),e._status){case 1:return e._result;case 2:throw e._result}throw e._result=t,t}}(i),t.type=i,a=t.tag=function(e){if("function"==typeof e)return al(e)?1:0;if(null!=e){if((e=e.$$typeof)===ot)return 11;if(e===st)return 14}return 2}(i),e=Eo(i,e),a){case 0:t=ga(null,t,i,e,n);break;case 1:t=wa(null,t,i,e,n);break;case 11:t=ba(null,t,i,e,n);break;case 14:t=ma(null,t,i,Eo(i.type,e),o,n);break;default:throw s(Error(306),i,"")}return t;case 0:return o=t.type,i=t.pendingProps,ga(e,t,o,i=t.elementType===o?i:Eo(o,i),n);case 1:return o=t.type,i=t.pendingProps,wa(e,t,o,i=t.elementType===o?i:Eo(o,i),n);case 3:if(Sa(t),null===(o=t.updateQueue))throw s(Error(282));return i=null!==(i=t.memoizedState)?i.element:null,Ho(t,o,t.pendingProps,null,n),(o=t.memoizedState.element)===i?(fa(),t=_a(e,t,n)):(i=t.stateNode,(i=(null===e||null===e.child)&&i.hydrate)&&(oa=Tr(t.stateNode.containerInfo.firstChild),ra=t,i=ia=!0),i?(t.effectTag|=2,t.child=ri(t,null,o,n)):(ha(e,t,o,n),fa()),t=t.child),t;case 5:return fi(t),null===e&&la(t),o=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,l=i.children,_r(o,i)?l=null:null!==a&&_r(o,a)&&(t.effectTag|=16),va(e,t),4&t.mode&&1!==n&&i.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(ha(e,t,l,n),t=t.child),t;case 6:return null===e&&la(t),null;case 13:return ka(e,t,n);case 4:return ui(t,t.stateNode.containerInfo),o=t.pendingProps,null===e?t.child=ni(t,null,o,n):ha(e,t,o,n),t.child;case 11:return o=t.type,i=t.pendingProps,ba(e,t,o,i=t.elementType===o?i:Eo(o,i),n);case 7:return ha(e,t,t.pendingProps,n),t.child;case 8:case 12:return ha(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(o=t.type._context,i=t.pendingProps,l=t.memoizedProps,_o(t,a=i.value),null!==l){var u=l.value;if(0===(a=rn(u,a)?0:0|("function"==typeof o._calculateChangedBits?o._calculateChangedBits(u,a):1073741823))){if(l.children===i.children&&!Mr.current){t=_a(e,t,n);break e}}else for(null!==(u=t.child)&&(u.return=t);null!==u;){var c=u.dependencies;if(null!==c){l=u.child;for(var f=c.firstContext;null!==f;){if(f.context===o&&0!=(f.observedBits&a)){1===u.tag&&((f=Ro(n,null)).tag=2,Mo(u,f)),u.expirationTime<n&&(u.expirationTime=n),null!==(f=u.alternate)&&f.expirationTime<n&&(f.expirationTime=n),Ao(u.return,n),c.expirationTime<n&&(c.expirationTime=n);break}f=f.next}}else l=10===u.tag&&u.type===t.type?null:u.child;if(null!==l)l.return=u;else for(l=u;null!==l;){if(l===t){l=null;break}if(null!==(u=l.sibling)){u.return=l.return,l=u;break}l=l.return}u=l}}ha(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,o=(a=t.pendingProps).children,To(t,n),o=o(i=Io(i,a.unstable_observedBits)),t.effectTag|=1,ha(e,t,o,n),t.child;case 14:return a=Eo(i=t.type,t.pendingProps),ma(e,t,i,a=Eo(i.type,a),o,n);case 15:return ya(e,t,t.type,t.pendingProps,o,n);case 17:return o=t.type,i=t.pendingProps,i=t.elementType===o?i:Eo(o,i),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,Br(o)?(e=!0,Gr(t)):e=!1,To(t,n),Yo(t,o,i),Jo(t,o,i,n),Ea(null,t,o,!0,e,n);case 19:return xa(e,t,n)}throw s(Error(156))};var nl=null,rl=null;function ol(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function il(e,t,n,r){return new ol(e,t,n,r)}function al(e){return!(!(e=e.prototype)||!e.isReactComponent)}function sl(e,t){var n=e.alternate;return null===n?((n=il(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=e.childExpirationTime,n.expirationTime=e.expirationTime,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function ll(e,t,n,o,i,a){var l=2;if(o=e,"function"==typeof e)al(e)&&(l=1);else if("string"==typeof e)l=5;else e:switch(e){case $e:return ul(n.children,i,a,t);case rt:l=8,i|=7;break;case Ze:l=8,i|=1;break;case et:return(e=il(12,n,t,8|i)).elementType=et,e.type=et,e.expirationTime=a,e;case it:return(e=il(13,n,t,i)).type=it,e.elementType=it,e.expirationTime=a,e;case at:return(e=il(19,n,t,i)).elementType=at,e.expirationTime=a,e;default:if("object"===r(e)&&null!==e)switch(e.$$typeof){case tt:l=10;break e;case nt:l=9;break e;case ot:l=11;break e;case st:l=14;break e;case lt:l=16,o=null;break e}throw s(Error(130),null==e?e:r(e),"")}return(t=il(l,n,t,i)).elementType=e,t.type=o,t.expirationTime=a,t}function ul(e,t,n,r){return(e=il(7,e,r,t)).expirationTime=n,e}function cl(e,t,n){return(e=il(6,e,null,t)).expirationTime=n,e}function fl(e,t,n){return(t=il(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function dl(e,t,n){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=n,this.callbackNode=this.firstBatch=null,this.pingTime=this.lastPendingTime=this.firstPendingTime=this.callbackExpirationTime=0}function pl(e,t,n){return e=new dl(e,t,n),t=il(3,null,null,2===t?7:1===t?3:0),e.current=t,t.stateNode=e}function hl(e,t,n,r,o,i){var a=t.current;e:if(n){t:{if(2!==ln(n=n._reactInternalFiber)||1!==n.tag)throw s(Error(170));var l=n;do{switch(l.tag){case 3:l=l.stateNode.context;break t;case 1:if(Br(l.type)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}}l=l.return}while(null!==l);throw s(Error(171))}if(1===n.tag){var u=n.type;if(Br(u)){n=Wr(n,u,l);break e}}n=l}else n=Rr;return null===t.context?t.context=n:t.pendingContext=n,t=i,(o=Ro(r,o)).payload={element:e},null!==(t=void 0===t?null:t)&&(o.callback=t),Mo(a,o),Ls(a,r),r}function bl(e,t,n,r){var o=t.current,i=Is(),a=Wo.suspense;return hl(e,t,n,o=Ds(i,o,a),a,r)}function ml(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function yl(e){var t=1073741821-25*(1+((1073741821-Is()+500)/25|0));t<=js&&--t,this._expirationTime=js=t,this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function vl(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function gl(e,t,n){this._internalRoot=pl(e,t,n)}function wl(e,t){this._internalRoot=pl(e,2,t)}function El(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Sl(e,t,n,r,o){var i=n._reactRootContainer,a=void 0;if(i){if(a=i._internalRoot,"function"==typeof o){var s=o;o=function(){var e=ml(a);s.call(e)}}bl(t,a,e,o)}else{if(i=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new gl(e,0,t)}(n,r),a=i._internalRoot,"function"==typeof o){var l=o;o=function(){var e=ml(a);l.call(e)}}Hs((function(){bl(t,a,e,o)}))}return ml(a)}function Ol(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!El(t))throw s(Error(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Je,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Pe=function(e,t,n){switch(t){case"input":if(_t(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=B(r);if(!o)throw s(Error(90));qe(r),_t(r,o)}}}break;case"textarea":sr(e,n);break;case"select":null!=(t=n.value)&&or(e,!!n.multiple,t,!1)}},yl.prototype.render=function(e){if(!this._defer)throw s(Error(250));this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new vl;return hl(e,t,null,n,null,r._onCommit),r},yl.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},yl.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(!this._defer||null===t)throw s(Error(251));if(this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,o=t;o!==this;)r=o,o=o._next;if(null===r)throw s(Error(251));r._next=o._next,this._next=t,e.firstBatch=this}if(this._defer=!1,t=n,(ls&(ts|ns))!==Za)throw s(Error(253));yo(Vs.bind(null,e,t)),vo(),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},yl.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},vl.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},vl.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];if("function"!=typeof n)throw s(Error(191),n);n()}}},wl.prototype.render=gl.prototype.render=function(e,t){var n=this._internalRoot,r=new vl;return null!==(t=void 0===t?null:t)&&r.then(t),bl(e,n,null,r._onCommit),r},wl.prototype.unmount=gl.prototype.unmount=function(e){var t=this._internalRoot,n=new vl;return null!==(e=void 0===e?null:e)&&n.then(e),bl(null,t,null,n._onCommit),n},wl.prototype.createBatch=function(){var e=new yl(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime>=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Le=Us,Re=Bs,Ne=Fs,Me=function(e,t){var n=ls;ls|=2;try{return e(t)}finally{(ls=n)===Za&&vo()}};var kl,Cl,xl={createPortal:Ol,findDOMNode:function(e){if(null==e)e=null;else if(1!==e.nodeType){var t=e._reactInternalFiber;if(void 0===t){if("function"==typeof e.render)throw s(Error(188));throw s(Error(268),Object.keys(e))}e=null===(e=cn(t))?null:e.stateNode}return e},hydrate:function(e,t,n){if(!El(t))throw s(Error(200));return Sl(null,e,t,!0,n)},render:function(e,t,n){if(!El(t))throw s(Error(200));return Sl(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){if(!El(n))throw s(Error(200));if(null==e||void 0===e._reactInternalFiber)throw s(Error(38));return Sl(e,t,n,!1,r)},unmountComponentAtNode:function(e){if(!El(e))throw s(Error(40));return!!e._reactRootContainer&&(Hs((function(){Sl(null,null,e,!1,(function(){e._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return Ol.apply(void 0,arguments)},unstable_batchedUpdates:Us,unstable_interactiveUpdates:function(e,t,n,r){return Fs(),Bs(e,t,n,r)},unstable_discreteUpdates:Bs,unstable_flushDiscreteUpdates:Fs,flushSync:function(e,t){if((ls&(ts|ns))!==Za)throw s(Error(187));var n=ls;ls|=1;try{return bo(99,e.bind(null,t))}finally{ls=n,vo()}},unstable_createRoot:function(e,t){if(!El(e))throw s(Error(299),"unstable_createRoot");return new wl(e,null!=t&&!0===t.hydrate)},unstable_createSyncRoot:function(e,t){if(!El(e))throw s(Error(299),"unstable_createRoot");return new gl(e,1,null!=t&&!0===t.hydrate)},unstable_flushControlled:function(e){var t=ls;ls|=1;try{bo(99,e)}finally{(ls=t)===Za&&vo()}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[F,U,B,D.injectEventPluginsByName,p,q,function(e){P(e,G)},De,je,Hn,I,Ys,{current:!1}]}};Cl=(kl={findFiberByHostInstance:M,bundleType:0,version:"16.9.0",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);nl=function(e){try{t.onCommitFiberRoot(n,e,void 0,64==(64&e.current.effectTag))}catch(e){}},rl=function(e){try{t.onCommitFiberUnmount(n,e)}catch(e){}}}catch(e){}}(i({},kl,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Xe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=cn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return Cl?Cl(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}));var _l={default:xl},Pl=_l&&xl||_l;e.exports=Pl.default||Pl},function(e,t,n){"use strict";e.exports=n(339)},function(e,t,n){"use strict";
/** @license React v0.15.0
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0});var o=void 0,i=void 0,a=void 0,s=void 0,l=void 0;if(t.unstable_now=void 0,t.unstable_forceFrameRate=void 0,"undefined"==typeof window||"function"!=typeof MessageChannel){var u=null,c=null,f=function e(){if(null!==u)try{var n=t.unstable_now();u(!0,n),u=null}catch(t){throw setTimeout(e,0),t}};t.unstable_now=function(){return Date.now()},o=function(e){null!==u?setTimeout(o,0,e):(u=e,setTimeout(f,0))},i=function(e,t){c=setTimeout(e,t)},a=function(){clearTimeout(c)},s=function(){return!1},l=t.unstable_forceFrameRate=function(){}}else{var d=window.performance,p=window.Date,h=window.setTimeout,b=window.clearTimeout,m=window.requestAnimationFrame,y=window.cancelAnimationFrame;"undefined"!=typeof console&&("function"!=typeof m&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!=typeof y&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")),t.unstable_now="object"===r(d)&&"function"==typeof d.now?function(){return d.now()}:function(){return p.now()};var v=!1,g=null,w=-1,E=-1,S=33.33,O=-1,k=-1,C=0,x=!1;s=function(){return t.unstable_now()>=C},l=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):0<e?(S=Math.floor(1e3/e),x=!0):(S=33.33,x=!1)};var _=function(){if(null!==g){var e=t.unstable_now(),n=0<C-e;try{g(n,e)||(g=null)}catch(e){throw A.postMessage(null),e}}},P=new MessageChannel,A=P.port2;P.port1.onmessage=_;o=function(e){g=e,v||(v=!0,m((function(e){!function e(n){if(null===g)k=O=-1,v=!1;else{v=!0,m((function(t){b(w),e(t)}));if(w=h((function e(){C=t.unstable_now()+S/2,_(),w=h(e,3*S)}),3*S),-1!==O&&.1<n-O){var r=n-O;!x&&-1!==k&&r<S&&k<S&&(8.33>(S=r<k?k:r)&&(S=8.33)),k=r}O=n,C=n+S,A.postMessage(null)}}(e)})))},i=function(e,n){E=h((function(){e(t.unstable_now())}),n)},a=function(){b(E),E=-1}}var T=null,I=null,D=null,j=3,L=!1,R=!1,N=!1;function M(e,t){var n=e.next;if(n===e)T=null;else{e===T&&(T=n);var r=e.previous;r.next=n,n.previous=r}e.next=e.previous=null,n=e.callback,r=j;var o=D;j=e.priorityLevel,D=e;try{var i=e.expirationTime<=t;switch(j){case 1:var a=n(i);break;case 2:case 3:case 4:a=n(i);break;case 5:a=n(i)}}catch(e){throw e}finally{j=r,D=o}if("function"==typeof a)if(t=e.expirationTime,e.callback=a,null===T)T=e.next=e.previous=e;else{a=null,i=T;do{if(t<=i.expirationTime){a=i;break}i=i.next}while(i!==T);null===a?a=T:a===T&&(T=e),(t=a.previous).next=a.previous=e,e.next=a,e.previous=t}}function F(e){if(null!==I&&I.startTime<=e)do{var t=I,n=t.next;if(t===n)I=null;else{I=n;var r=t.previous;r.next=n,n.previous=r}t.next=t.previous=null,z(t,t.expirationTime)}while(null!==I&&I.startTime<=e)}function U(e){N=!1,F(e),R||(null!==T?(R=!0,o(B)):null!==I&&i(U,I.startTime-e))}function B(e,n){R=!1,N&&(N=!1,a()),F(n),L=!0;try{if(e){if(null!==T)do{M(T,n),F(n=t.unstable_now())}while(null!==T&&!s())}else for(;null!==T&&T.expirationTime<=n;)M(T,n),F(n=t.unstable_now());return null!==T||(null!==I&&i(U,I.startTime-n),!1)}finally{L=!1}}function H(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}function z(e,t){if(null===T)T=e.next=e.previous=e;else{var n=null,r=T;do{if(t<r.expirationTime){n=r;break}r=r.next}while(r!==T);null===n?n=T:n===T&&(T=e),(t=n.previous).next=n.previous=e,e.next=n,e.previous=t}}var V=l;t.unstable_ImmediatePriority=1,t.unstable_UserBlockingPriority=2,t.unstable_NormalPriority=3,t.unstable_IdlePriority=5,t.unstable_LowPriority=4,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,s){var l=t.unstable_now();if("object"===r(s)&&null!==s){var u=s.delay;u="number"==typeof u&&0<u?l+u:l,s="number"==typeof s.timeout?s.timeout:H(e)}else s=H(e),u=l;if(e={callback:n,priorityLevel:e,startTime:u,expirationTime:s=u+s,next:null,previous:null},u>l){if(s=u,null===I)I=e.next=e.previous=e;else{n=null;var c=I;do{if(s<c.startTime){n=c;break}c=c.next}while(c!==I);null===n?n=I:n===I&&(I=e),(s=n.previous).next=n.previous=e,e.next=n,e.previous=s}null===T&&I===e&&(N?a():N=!0,i(U,u-l))}else z(e,s),R||L||(R=!0,o(B));return e},t.unstable_cancelCallback=function(e){var t=e.next;if(null!==t){if(e===t)e===T?T=null:e===I&&(I=null);else{e===T?T=t:e===I&&(I=t);var n=e.previous;n.next=t,t.previous=n}e.next=e.previous=null}},t.unstable_wrapCallback=function(e){var t=j;return function(){var n=j;j=t;try{return e.apply(this,arguments)}finally{j=n}}},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_shouldYield=function(){var e=t.unstable_now();return F(e),null!==D&&null!==T&&T.startTime<=e&&T.expirationTime<D.expirationTime||s()},t.unstable_requestPaint=V,t.unstable_continueExecution=function(){R||L||(R=!0,o(B))},t.unstable_pauseExecution=function(){},t.unstable_getFirstCallbackNode=function(){return T}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(124),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},function(e,t,n){var r=n(124);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(124);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(124);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(123);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(123),o=n(158),i=n(186),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!o||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(s)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(159),o=n(353),i=n(33),a=n(212),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=RegExp("^"+c.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},function(e,t,n){var r=n(85),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(354),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(38)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(357),o=n(123),i=n(158);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(e,t,n){var r=n(358),o=n(359),i=n(360),a=n(361),s=n(362);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},function(e,t,n){var r=n(125);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t,n){var r=n(125),o="__lodash_hash_undefined__",i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===o?void 0:n}return i.call(t,e)?t[e]:void 0}},function(e,t,n){var r=n(125),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},function(e,t,n){var r=n(125),o="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?o:t,this}},function(e,t,n){var r=n(126);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t){function n(e){return(n="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)}e.exports=function(e){var t=n(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(126);e.exports=function(e){return r(this,e).get(e)}},function(e,t,n){var r=n(126);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(126);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t,n){var r=n(74),o=n(106);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(55),o=n(40),i="[object Arguments]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t){e.exports=function(){return!1}},function(e,t,n){var r=n(55),o=n(162),i=n(40),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},function(e,t,n){var r=n(165),o=n(375),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){var r=n(215)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(74),o=n(129);e.exports=function(e,t){return e&&r(t,o(t),e)}},function(e,t,n){var r=n(33),o=n(165),i=n(378),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(74),o=n(166);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},function(e,t,n){var r=n(74),o=n(218);e.exports=function(e,t){return r(e,o(e),t)}},function(e,t,n){var r=n(64)(n(38),"DataView");e.exports=r},function(e,t,n){var r=n(64)(n(38),"Promise");e.exports=r},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(169),o=n(386),i=n(387),a=n(388),s=n(221),l="[object Boolean]",u="[object Date]",c="[object Map]",f="[object Number]",d="[object RegExp]",p="[object Set]",h="[object String]",b="[object Symbol]",m="[object ArrayBuffer]",y="[object DataView]",v="[object Float32Array]",g="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",S="[object Int32Array]",O="[object Uint8Array]",k="[object Uint8ClampedArray]",C="[object Uint16Array]",x="[object Uint32Array]";e.exports=function(e,t,n){var _=e.constructor;switch(t){case m:return r(e);case l:case u:return new _(+e);case y:return o(e,n);case v:case g:case w:case E:case S:case O:case k:case C:case x:return s(e,n);case c:return new _;case f:case h:return new _(e);case d:return i(e);case p:return new _;case b:return a(e)}}},function(e,t,n){var r=n(169);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(85),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},function(e,t,n){var r=n(390),o=n(163),i=n(164),a=i&&i.isMap,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(142),o=n(40),i="[object Map]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(392),o=n(163),i=n(164),a=i&&i.isSet,s=a?o(a):r;e.exports=s},function(e,t,n){var r=n(142),o=n(40),i="[object Set]";e.exports=function(e){return o(e)&&r(e)==i}},function(e,t,n){var r=n(99),o=n(207),i=n(398),a=n(95);e.exports=function(e,t){return t=r(t,e),null==(e=i(e,t))||delete e[a(o(t))]}},function(e,t,n){var r=n(395),o=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,a=r((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(o,(function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)})),t}));e.exports=a},function(e,t,n){var r=n(396),o=500;e.exports=function(e){var t=r(e,(function(e){return n.size===o&&n.clear(),e})),n=t.cache;return t}},function(e,t,n){var r=n(186),o="Expected a function";function i(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(o);var n=function n(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(i.Cache||r),n}i.Cache=r,e.exports=i},function(e,t,n){var r=n(85),o=n(157),i=n(31),a=n(130),s=1/0,l=r?r.prototype:void 0,u=l?l.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(i(t))return o(t,e)+"";if(a(t))return u?u.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(188),o=n(271);e.exports=function(e,t){return t.length<2?e:r(e,o(t,0,-1))}},function(e,t,n){var r=n(223);e.exports=function(e){return r(e)?void 0:e}},function(e,t,n){var r=n(401);e.exports=function(e){return(null==e?0:e.length)?r(e,1):[]}},function(e,t,n){var r=n(167),o=n(402);e.exports=function e(t,n,i,a,s){var l=-1,u=t.length;for(i||(i=o),s||(s=[]);++l<u;){var c=t[l];n>0&&i(c)?n>1?e(c,n-1,i,a,s):r(s,c):a||(s[s.length]=c)}return s}},function(e,t,n){var r=n(85),o=n(127),i=n(31),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||o(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(405),o=n(213),i=n(189),a=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i;e.exports=a},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t){var n=800,r=16,o=Date.now;e.exports=function(e){var t=0,i=0;return function(){var a=o(),s=r-(a-i);if(i=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){"use strict";e.exports=n(408)},function(e,t,n){"use strict";
/** @license React v16.12.0
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0});var o="function"==typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,s=o?Symbol.for("react.fragment"):60107,l=o?Symbol.for("react.strict_mode"):60108,u=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,d=o?Symbol.for("react.async_mode"):60111,p=o?Symbol.for("react.concurrent_mode"):60111,h=o?Symbol.for("react.forward_ref"):60112,b=o?Symbol.for("react.suspense"):60113,m=o?Symbol.for("react.suspense_list"):60120,y=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,g=o?Symbol.for("react.fundamental"):60117,w=o?Symbol.for("react.responder"):60118,E=o?Symbol.for("react.scope"):60119;function S(e){if("object"===r(e)&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type){case d:case p:case s:case u:case l:case b:return e;default:switch(e=e&&e.$$typeof){case f:case h:case v:case y:case c:return e;default:return t}}case a:return t}}}function O(e){return S(e)===p}t.typeOf=S,t.AsyncMode=d,t.ConcurrentMode=p,t.ContextConsumer=f,t.ContextProvider=c,t.Element=i,t.ForwardRef=h,t.Fragment=s,t.Lazy=v,t.Memo=y,t.Portal=a,t.Profiler=u,t.StrictMode=l,t.Suspense=b,t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===s||e===p||e===u||e===l||e===b||e===m||"object"===r(e)&&null!==e&&(e.$$typeof===v||e.$$typeof===y||e.$$typeof===c||e.$$typeof===f||e.$$typeof===h||e.$$typeof===g||e.$$typeof===w||e.$$typeof===E)},t.isAsyncMode=function(e){return O(e)||S(e)===d},t.isConcurrentMode=O,t.isContextConsumer=function(e){return S(e)===f},t.isContextProvider=function(e){return S(e)===c},t.isElement=function(e){return"object"===r(e)&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return S(e)===h},t.isFragment=function(e){return S(e)===s},t.isLazy=function(e){return S(e)===v},t.isMemo=function(e){return S(e)===y},t.isPortal=function(e){return S(e)===a},t.isProfiler=function(e){return S(e)===u},t.isStrictMode=function(e){return S(e)===l},t.isSuspense=function(e){return S(e)===b}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";function r(e){return(r="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)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};r.get||r.set?Object.defineProperty(t,n,r):t[n]=e[n]}return t.default=e,t}(n(0)),i=l(n(412)),a=l(n(35)),s=l(n(415));function l(e){return e&&e.__esModule?e:{default:e}}function u(e){return(u="function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?function(e){return r(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function f(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(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}s.default||console.error("It looks like Tether has not been included. Please load this dependency first https://github.com/HubSpot/tether");var y=void 0!==a.default.createPortal,v=[i.default.string,i.default.shape({appendChild:i.default.func.isRequired})],g=["auto auto","top left","top center","top right","middle left","middle center","middle right","bottom left","bottom center","bottom right"],w=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"!==u(t)&&"function"!=typeof t?b(e):t}(this,p(t).call(this,e)),m(b(b(n)),"_targetNode",null),m(b(b(n)),"_elementParentNode",null),m(b(b(n)),"_tether",null),m(b(b(n)),"_elementComponent",null),m(b(b(n)),"_targetComponent",null),n.updateChildrenComponents(n.props),n}var n,r,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&&h(e,t)}(t,e),n=t,(r=[{key:"updateChildrenComponents",value:function(e){var t=o.Children.toArray(e.children);if(this._targetComponent=t[0],this._elementComponent=t[1],this._targetComponent&&this._elementComponent&&this._createContainer(),this._elementParentNode&&this.props.className!==e.className){var n,r,i=(this.props.className||"").split(" ").filter((function(e){return e.length>0})),a=(e.className||"").split(" ").filter((function(e){return e.length>0}));(n=this._elementParentNode.classList).remove.apply(n,f(i)),(r=this._elementParentNode.classList).add.apply(r,f(a))}}},{key:"componentDidMount",value:function(){this._update()}},{key:"componentDidUpdate",value:function(){this._update()}},{key:"componentWillUnmount",value:function(){this._destroy()}},{key:"getTetherInstance",value:function(){return this._tether}},{key:"disable",value:function(){this._tether.disable()}},{key:"enable",value:function(){this._tether.enable()}},{key:"on",value:function(e,t,n){this._tether.on(e,t,n)}},{key:"once",value:function(e,t,n){this._tether.once(e,t,n)}},{key:"off",value:function(e,t){this._tether.off(e,t)}},{key:"position",value:function(){this._tether.position()}},{key:"_registerEventListeners",value:function(){var e=this;this.on("update",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onUpdate&&e.props.onUpdate.apply(e,n)})),this.on("repositioned",(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return e.props.onRepositioned&&e.props.onRepositioned.apply(e,n)}))}},{key:"_destroy",value:function(){this._elementParentNode&&(y||a.default.unmountComponentAtNode(this._elementParentNode),this._elementParentNode.parentNode.removeChild(this._elementParentNode)),this._tether&&this._tether.destroy(),this._elementParentNode=null,this._tether=null,this._targetNode=null,this._targetComponent=null,this._elementComponent=null}},{key:"_createContainer",value:function(){if(!this._elementParentNode){var e=this.props,t=e.renderElementTag,n=e.className;this._elementParentNode=document.createElement(t),this._elementParentNode.className=n||"",this._renderNode.appendChild(this._elementParentNode)}}},{key:"_update",value:function(){var e=this,t=!this._elementComponent||!this._targetComponent;t||(this._targetNode=a.default.findDOMNode(this),t=!this._targetNode),t?this._destroy():y?this._updateTether():a.default.unstable_renderSubtreeIntoContainer(this,this._elementComponent,this._elementParentNode,(function(){e._elementParentNode&&e._updateTether()}))}},{key:"_updateTether",value:function(){var e=this.props,t=(e.children,e.renderElementTag,e.renderElementTo,e.id),n=(e.className,e.style),r=c(e,["children","renderElementTag","renderElementTo","id","className","style"]),o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){m(e,t,n[t])}))}return e}({target:this._targetNode,element:this._elementParentNode},r),i=t||"";if(this._elementParentNode.id!==i&&(this._elementParentNode.id=i),n){var a=this._elementParentNode.style;Object.keys(n).forEach((function(e){a[e]!==n[e]&&(a[e]=n[e])}))}this._tether?this._tether.setOptions(o):(this._tether=new s.default(o),this._registerEventListeners()),this._tether.position()}},{key:"render",value:function(){return this._targetComponent?y&&this._elementComponent?[this._targetComponent,a.default.createPortal(this._elementComponent,this._elementParentNode)]:this._targetComponent:null}},{key:"_renderNode",get:function(){var e=this.props.renderElementTo;return"string"==typeof e?document.querySelector(e):e||document.body}}])&&d(n.prototype,r),i&&d(n,i),t}(o.Component);function E(e){this.updateChildrenComponents(e)}m(w,"propTypes",{renderElementTag:i.default.string,renderElementTo:i.default.oneOfType(v),attachment:i.default.oneOf(g).isRequired,targetAttachment:i.default.oneOf(g),offset:i.default.string,targetOffset:i.default.string,targetModifier:i.default.string,enabled:i.default.bool,classes:i.default.object,classPrefix:i.default.string,optimizations:i.default.object,constraints:i.default.array,id:i.default.string,className:i.default.string,style:i.default.object,onUpdate:i.default.func,onRepositioned:i.default.func,children:function(e,t,n){var r=e.children,i=o.Children.count(r);return i<=0?new Error("".concat(n," expects at least one child to use as the target element.")):i>2?new Error("Only a max of two children allowed in ".concat(n,".")):void 0}}),m(w,"defaultProps",{renderElementTag:"div",renderElementTo:null});var S,O,k=o.default.version.split(".").map(Number),C=(O=2,function(e){if(Array.isArray(e))return e}(S=k)||function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(S,O)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()),x=C[0],_=C[1];x<16||16===x&&_<9?w.prototype.componentWillUpdate=E:w.prototype.UNSAFE_componentWillUpdate=E;var P=w;t.default=P},function(e,t,n){e.exports=n(413)()},function(e,t,n){"use strict";var r=n(414);function o(){}e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=o,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){var r,o,i;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)}
/*! tether 1.4.7 */o=[],void 0===(i="function"==typeof(r=function(){"use strict";var e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=void 0;void 0===n&&(n={modules:[]});var r=null;function o(e){var t=e.getBoundingClientRect(),n={};for(var r in t)n[r]=t[r];try{if(e.ownerDocument!==document){var i=e.ownerDocument.defaultView.frameElement;if(i){var a=o(i);n.top+=a.top,n.bottom+=a.top,n.left+=a.left,n.right+=a.left}}}catch(e){}return n}function i(e){var t=(getComputedStyle(e)||{}).position,n=[];if("fixed"===t)return[e];for(var r=e;(r=r.parentNode)&&r&&1===r.nodeType;){var o=void 0;try{o=getComputedStyle(r)}catch(e){}if(null==o)return n.push(r),n;var i=o,a=i.overflow,s=i.overflowX,l=i.overflowY;/(auto|scroll|overlay)/.test(a+l+s)&&("absolute"!==t||["relative","absolute","fixed"].indexOf(o.position)>=0)&&n.push(r)}return n.push(e.ownerDocument.body),e.ownerDocument!==document&&n.push(e.ownerDocument.defaultView),n}var s,l=(s=0,function(){return++s}),u={},c=function(){var e=r;e&&document.body.contains(e)||((e=document.createElement("div")).setAttribute("data-tether-id",l()),m(e.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(e),r=e);var t=e.getAttribute("data-tether-id");return void 0===u[t]&&(u[t]=o(e),k((function(){delete u[t]}))),u[t]};function f(){r&&document.body.removeChild(r),r=null}function d(e){var t=void 0;e===document?(t=document,e=document.documentElement):t=e.ownerDocument;var n=t.documentElement,r=o(e),i=c();return r.top-=i.top,r.left-=i.left,void 0===r.width&&(r.width=document.body.scrollWidth-r.left-r.right),void 0===r.height&&(r.height=document.body.scrollHeight-r.top-r.bottom),r.top=r.top-n.clientTop,r.left=r.left-n.clientLeft,r.right=t.body.clientWidth-r.width-r.left,r.bottom=t.body.clientHeight-r.height-r.top,r}function p(e){return e.offsetParent||document.documentElement}var h=null;function b(){if(h)return h;var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var t=document.createElement("div");m(t.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),t.appendChild(e),document.body.appendChild(t);var n=e.offsetWidth;t.style.overflow="scroll";var r=e.offsetWidth;n===r&&(r=t.clientWidth),document.body.removeChild(t);var o=n-r;return h={width:o,height:o}}function m(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],t=[];return Array.prototype.push.apply(t,arguments),t.slice(1).forEach((function(t){if(t)for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])})),e}function y(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.remove(t)}));else{var n=new RegExp("(^| )"+t.split(" ").join("|")+"( |$)","gi"),r=w(e).replace(n," ");E(e,r)}}function v(e,t){if(void 0!==e.classList)t.split(" ").forEach((function(t){t.trim()&&e.classList.add(t)}));else{y(e,t);var n=w(e)+" "+t;E(e,n)}}function g(e,t){if(void 0!==e.classList)return e.classList.contains(t);var n=w(e);return new RegExp("(^| )"+t+"( |$)","gi").test(n)}function w(e){return e.className instanceof e.ownerDocument.defaultView.SVGAnimatedString?e.className.baseVal:e.className}function E(e,t){e.setAttribute("class",t)}function S(e,t,n){n.forEach((function(n){-1===t.indexOf(n)&&g(e,n)&&y(e,n)})),t.forEach((function(t){g(e,t)||v(e,t)}))}var O=[],k=function(e){O.push(e)},C=function(){for(var e=void 0;e=O.pop();)e()},x=function(){function n(){t(this,n)}return e(n,[{key:"on",value:function(e,t,n){var r=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[e]&&(this.bindings[e]=[]),this.bindings[e].push({handler:t,ctx:n,once:r})}},{key:"once",value:function(e,t,n){this.on(e,t,n,!0)}},{key:"off",value:function(e,t){if(void 0!==this.bindings&&void 0!==this.bindings[e])if(void 0===t)delete this.bindings[e];else for(var n=0;n<this.bindings[e].length;)this.bindings[e][n].handler===t?this.bindings[e].splice(n,1):++n}},{key:"trigger",value:function(e){if(void 0!==this.bindings&&this.bindings[e]){for(var t=0,n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];for(;t<this.bindings[e].length;){var i=this.bindings[e][t],a=i.handler,s=i.ctx,l=i.once,u=s;void 0===u&&(u=this),a.apply(u,r),l?this.bindings[e].splice(t,1):++t}}}}]),n}();n.Utils={getActualBoundingClientRect:o,getScrollParents:i,getBounds:d,getOffsetParent:p,extend:m,addClass:v,removeClass:y,hasClass:g,updateClasses:S,defer:k,flush:C,uniqueId:l,Evented:x,getScrollBarSize:b,removeUtilElements:f};var _=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},P=(e=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),function(e,t,n){for(var r=!0;r;){var o=e,i=t,a=n;r=!1,null===o&&(o=Function.prototype);var s=Object.getOwnPropertyDescriptor(o,i);if(void 0!==s){if("value"in s)return s.value;var l=s.get;if(void 0===l)return;return l.call(a)}var u=Object.getPrototypeOf(o);if(null===u)return;e=u,t=i,n=a,r=!0,s=u=void 0}});function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}if(void 0===n)throw new Error("You must include the utils.js file before tether.js");var i=(Q=n.Utils).getScrollParents,p=(d=Q.getBounds,Q.getOffsetParent),v=(m=Q.extend,Q.addClass),y=Q.removeClass,b=(S=Q.updateClasses,k=Q.defer,C=Q.flush,Q.getScrollBarSize),f=Q.removeUtilElements;function A(e,t){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return e+n>=t&&t>=e-n}var T,I,D,j,L=function(){if("undefined"==typeof document)return"";for(var e=document.createElement("div"),t=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<t.length;++n){var r=t[n];if(void 0!==e.style[r])return r}}(),R=[],N=function(){R.forEach((function(e){e.position(!1)})),C()};function M(){return"object"===("undefined"==typeof performance?"undefined":a(performance))&&"function"==typeof performance.now?performance.now():+new Date}T=null,I=null,D=null,j=function e(){if(void 0!==I&&I>16)return I=Math.min(I-16,250),void(D=setTimeout(e,250));void 0!==T&&M()-T<10||(null!=D&&(clearTimeout(D),D=null),T=M(),N(),I=M()-T)},"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach((function(e){window.addEventListener(e,j)}));var F={center:"center",left:"right",right:"left"},U={middle:"middle",top:"bottom",bottom:"top"},B={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},H=function(e,t){var n=e.left,r=e.top;return"auto"===n&&(n=F[t.left]),"auto"===r&&(r=U[t.top]),{left:n,top:r}},z=function(e){var t=e.left,n=e.top;return void 0!==B[e.left]&&(t=B[e.left]),void 0!==B[e.top]&&(n=B[e.top]),{left:t,top:n}};function V(){for(var e={top:0,left:0},t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.forEach((function(t){var n=t.top,r=t.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof r&&(r=parseFloat(r,10)),e.top+=n,e.left+=r})),e}function W(e,t){return"string"==typeof e.left&&-1!==e.left.indexOf("%")&&(e.left=parseFloat(e.left,10)/100*t.width),"string"==typeof e.top&&-1!==e.top.indexOf("%")&&(e.top=parseFloat(e.top,10)/100*t.height),e}var G=function(e){var t=e.split(" "),n=_(t,2);return{top:n[0],left:n[1]}},q=G,X=function(r){function o(e){var r=this;t(this,o),P(Object.getPrototypeOf(o.prototype),"constructor",this).call(this),this.position=this.position.bind(this),R.push(this),this.history=[],this.setOptions(e,!1),n.modules.forEach((function(e){void 0!==e.initialize&&e.initialize.call(r)})),this.position()}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+a(t));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,r),e(o,[{key:"getClass",value:function(){var e=arguments.length<=0||void 0===arguments[0]?"":arguments[0],t=this.options.classes;return void 0!==t&&t[e]?this.options.classes[e]:this.options.classPrefix?this.options.classPrefix+"-"+e:e}},{key:"setOptions",value:function(e){var t=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],r={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=m(r,e);var o=this.options,a=o.element,s=o.target,l=o.targetModifier;if(this.element=a,this.target=s,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach((function(e){if(void 0===t[e])throw new Error("Tether Error: Both element and target must be defined");void 0!==t[e].jquery?t[e]=t[e][0]:"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),v(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&v(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=q(this.options.targetAttachment),this.attachment=q(this.options.attachment),this.offset=G(this.options.offset),this.targetOffset=G(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=i(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return d(this.target);if("visible"===this.targetModifier)return this.target===document.body?{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth}:((i={height:(e=d(this.target)).height,width:e.width,top:e.top,left:e.left}).height=Math.min(i.height,e.height-(pageYOffset-e.top)),i.height=Math.min(i.height,e.height-(e.top+e.height-(pageYOffset+innerHeight))),i.height=Math.min(innerHeight,i.height),i.height-=2,i.width=Math.min(i.width,e.width-(pageXOffset-e.left)),i.width=Math.min(i.width,e.width-(e.left+e.width-(pageXOffset+innerWidth))),i.width=Math.min(innerWidth,i.width),i.width-=2,i.top<pageYOffset&&(i.top=pageYOffset),i.left<pageXOffset&&(i.left=pageXOffset),i);if("scroll-handle"===this.targetModifier){var e=void 0,t=this.target;t===document.body?(t=document.documentElement,e={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):e=d(t);var n=getComputedStyle(t),r=0;(t.scrollWidth>t.clientWidth||[n.overflow,n.overflowX].indexOf("scroll")>=0||this.target!==document.body)&&(r=15);var o=e.height-parseFloat(n.borderTopWidth)-parseFloat(n.borderBottomWidth)-r,i={width:15,height:.975*o*(o/t.scrollHeight),left:e.left+e.width-parseFloat(n.borderLeftWidth)-15},a=0;o<408&&this.target===document.body&&(a=-11e-5*Math.pow(o,2)-.00727*o+22.58),this.target!==document.body&&(i.height=Math.max(i.height,24));var s=this.target.scrollTop/(t.scrollHeight-o);return i.top=s*(o-i.height-a)+e.top+parseFloat(n.borderTopWidth),this.target===document.body&&(i.height=Math.max(i.height,24)),i}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(e,t){return void 0===this._cache&&(this._cache={}),void 0===this._cache[e]&&(this._cache[e]=t.call(this)),this._cache[e]}},{key:"enable",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&v(this.target,this.getClass("enabled")),v(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach((function(t){t!==e.target.ownerDocument&&t.addEventListener("scroll",e.position)})),t&&this.position()}},{key:"disable",value:function(){var e=this;y(this.target,this.getClass("enabled")),y(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach((function(t){t.removeEventListener("scroll",e.position)}))}},{key:"destroy",value:function(){var e=this;this.disable(),R.forEach((function(t,n){t===e&&R.splice(n,1)})),0===R.length&&f()}},{key:"updateAttachClasses",value:function(e,t){var n=this;e=e||this.attachment,t=t||this.targetAttachment,void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var r=this._addAttachClasses;e.top&&r.push(this.getClass("element-attached")+"-"+e.top),e.left&&r.push(this.getClass("element-attached")+"-"+e.left),t.top&&r.push(this.getClass("target-attached")+"-"+t.top),t.left&&r.push(this.getClass("target-attached")+"-"+t.left);var o=[];["left","top","bottom","right","middle","center"].forEach((function(e){o.push(n.getClass("element-attached")+"-"+e),o.push(n.getClass("target-attached")+"-"+e)})),k((function(){void 0!==n._addAttachClasses&&(S(n.element,n._addAttachClasses,o),!1!==n.options.addTargetClasses&&S(n.target,n._addAttachClasses,o),delete n._addAttachClasses)}))}},{key:"position",value:function(){var e=this,t=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var r=H(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,r);var o=this.cache("element-bounds",(function(){return d(e.element)})),i=o.width,s=o.height;if(0===i&&0===s&&void 0!==this.lastSize){var l=this.lastSize;i=l.width,s=l.height}else this.lastSize={width:i,height:s};var u=this.cache("target-bounds",(function(){return e.getTargetBounds()})),c=u,f=W(z(this.attachment),{width:i,height:s}),h=W(z(r),c),m=W(this.offset,{width:i,height:s}),y=W(this.targetOffset,c);f=V(f,m),h=V(h,y);for(var v=u.left+h.left-f.left,g=u.top+h.top-f.top,w=0;w<n.modules.length;++w){var E=n.modules[w],S=E.position.call(this,{left:v,top:g,targetAttachment:r,targetPos:u,elementPos:o,offset:f,targetOffset:h,manualOffset:m,manualTargetOffset:y,scrollbarSize:_,attachment:this.attachment});if(!1===S)return!1;void 0!==S&&"object"===a(S)&&(g=S.top,v=S.left)}var O={page:{top:g,left:v},viewport:{top:g-pageYOffset,bottom:pageYOffset-g-s+innerHeight,left:v-pageXOffset,right:pageXOffset-v-i+innerWidth}},k=this.target.ownerDocument,x=k.defaultView,_=void 0;return x.innerHeight>k.documentElement.clientHeight&&(_=this.cache("scrollbar-size",b),O.viewport.bottom-=_.height),x.innerWidth>k.documentElement.clientWidth&&(_=this.cache("scrollbar-size",b),O.viewport.right-=_.width),-1!==["","static"].indexOf(k.body.style.position)&&-1!==["","static"].indexOf(k.body.parentElement.style.position)||(O.page.bottom=k.body.scrollHeight-g-s,O.page.right=k.body.scrollWidth-v-i),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var t=e.cache("target-offsetparent",(function(){return p(e.target)})),n=e.cache("target-offsetparent-bounds",(function(){return d(t)})),r=getComputedStyle(t),o=n,i={};if(["Top","Left","Bottom","Right"].forEach((function(e){i[e.toLowerCase()]=parseFloat(r["border"+e+"Width"])})),n.right=k.body.scrollWidth-n.left-o.width+i.right,n.bottom=k.body.scrollHeight-n.top-o.height+i.bottom,O.page.top>=n.top+i.top&&O.page.bottom>=n.bottom&&O.page.left>=n.left+i.left&&O.page.right>=n.right){var a=t.scrollTop,s=t.scrollLeft;O.offset={top:O.page.top-n.top+a-i.top,left:O.page.left-n.left+s-i.left}}}(),this.move(O),this.history.unshift(O),this.history.length>3&&this.history.pop(),t&&C(),!0}}},{key:"move",value:function(e){var t=this;if(void 0!==this.element.parentNode){var n={};for(var r in e)for(var o in n[r]={},e[r]){for(var i=!1,a=0;a<this.history.length;++a){var s=this.history[a];if(void 0!==s[r]&&!A(s[r][o],e[r][o])){i=!0;break}}i||(n[r][o]=!0)}var l,u,c={top:"",left:"",right:"",bottom:""},f=function(e,n){if(!1!==(void 0!==t.options.optimizations?t.options.optimizations.gpu:null)){var r=void 0,o=void 0;e.top?(c.top=0,r=n.top):(c.bottom=0,r=-n.bottom),e.left?(c.left=0,o=n.left):(c.right=0,o=-n.right),"number"==typeof window.devicePixelRatio&&devicePixelRatio%1==0&&(o=Math.round(o*devicePixelRatio)/devicePixelRatio,r=Math.round(r*devicePixelRatio)/devicePixelRatio),c[L]="translateX("+o+"px) translateY("+r+"px)","msTransform"!==L&&(c[L]+=" translateZ(0)")}else e.top?c.top=n.top+"px":c.bottom=n.bottom+"px",e.left?c.left=n.left+"px":c.right=n.right+"px"},d=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(c.position="absolute",f(n.page,e.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(c.position="fixed",f(n.viewport,e.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){c.position="absolute";var r=t.cache("target-offsetparent",(function(){return p(t.target)}));p(t.element)!==r&&k((function(){t.element.parentNode.removeChild(t.element),r.appendChild(t.element)})),f(n.offset,e.offset),d=!0}():(c.position="absolute",f({top:!0,left:!0},e.page)),!d)if(this.options.bodyElement)this.element.parentNode!==this.options.bodyElement&&this.options.bodyElement.appendChild(this.element);else{for(var h=!0,b=this.element.parentNode;b&&1===b.nodeType&&"BODY"!==b.tagName&&(u=void 0,((u=(l=b).ownerDocument).fullscreenElement||u.webkitFullscreenElement||u.mozFullScreenElement||u.msFullscreenElement)!==l);){if("static"!==getComputedStyle(b).position){h=!1;break}b=b.parentNode}h||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var y={},v=!1;for(var o in c){var g=c[o];this.element.style[o]!==g&&(v=!0,y[o]=g)}v&&k((function(){m(t.element.style,y),t.trigger("repositioned")}))}}}]),o}(x);X.modules=[],n.position=N;var K=m(X,n);_=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},d=(Q=n.Utils).getBounds;var m=Q.extend,Y=(S=Q.updateClasses,k=Q.defer,["left","top","right","bottom"]);n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=e.targetAttachment;if(!this.options.constraints)return!0;var i=this.cache("element-bounds",(function(){return d(t.element)})),a=i.height,s=i.width;if(0===s&&0===a&&void 0!==this.lastSize){var l=this.lastSize;s=l.width,a=l.height}var u=this.cache("target-bounds",(function(){return t.getTargetBounds()})),c=u.height,f=u.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach((function(e){var t=e.outOfBoundsClass,n=e.pinnedClass;t&&p.push(t),n&&p.push(n)})),p.forEach((function(e){["left","top","right","bottom"].forEach((function(t){p.push(e+"-"+t)}))}));var h=[],b=m({},o),y=m({},this.attachment);return this.options.constraints.forEach((function(e){var i=e.to,l=e.attachment,u=e.pin;void 0===l&&(l="");var p=void 0,m=void 0;if(l.indexOf(" ")>=0){var v=l.split(" "),g=_(v,2);m=g[0],p=g[1]}else p=m=l;var w=function(e,t){return"scrollParent"===t?t=e.scrollParents[0]:"window"===t&&(t=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),t===document&&(t=t.documentElement),void 0!==t.nodeType&&function(){var e=t,n=d(t),r=n,o=getComputedStyle(t);if(t=[r.left,r.top,n.width+r.left,n.height+r.top],e.ownerDocument!==document){var i=e.ownerDocument.defaultView;t[0]+=i.pageXOffset,t[1]+=i.pageYOffset,t[2]+=i.pageXOffset,t[3]+=i.pageYOffset}Y.forEach((function(e,n){"Top"===(e=e[0].toUpperCase()+e.substr(1))||"Left"===e?t[n]+=parseFloat(o["border"+e+"Width"]):t[n]-=parseFloat(o["border"+e+"Width"])}))}(),t}(t,i);"target"!==m&&"both"!==m||(n<w[1]&&"top"===b.top&&(n+=c,b.top="bottom"),n+a>w[3]&&"bottom"===b.top&&(n-=c,b.top="top")),"together"===m&&("top"===b.top&&("bottom"===y.top&&n<w[1]?(n+=c,b.top="bottom",n+=a,y.top="top"):"top"===y.top&&n+a>w[3]&&n-(a-c)>=w[1]&&(n-=a-c,b.top="bottom",y.top="bottom")),"bottom"===b.top&&("top"===y.top&&n+a>w[3]?(n-=c,b.top="top",n-=a,y.top="bottom"):"bottom"===y.top&&n<w[1]&&n+(2*a-c)<=w[3]&&(n+=a-c,b.top="top",y.top="top")),"middle"===b.top&&(n+a>w[3]&&"top"===y.top?(n-=a,y.top="bottom"):n<w[1]&&"bottom"===y.top&&(n+=a,y.top="top"))),"target"!==p&&"both"!==p||(r<w[0]&&"left"===b.left&&(r+=f,b.left="right"),r+s>w[2]&&"right"===b.left&&(r-=f,b.left="left")),"together"===p&&(r<w[0]&&"left"===b.left?"right"===y.left?(r+=f,b.left="right",r+=s,y.left="left"):"left"===y.left&&(r+=f,b.left="right",r-=s,y.left="right"):r+s>w[2]&&"right"===b.left?"left"===y.left?(r-=f,b.left="left",r-=s,y.left="right"):"right"===y.left&&(r-=f,b.left="left",r+=s,y.left="left"):"center"===b.left&&(r+s>w[2]&&"left"===y.left?(r-=s,y.left="right"):r<w[0]&&"right"===y.left&&(r+=s,y.left="left"))),"element"!==m&&"both"!==m||(n<w[1]&&"bottom"===y.top&&(n+=a,y.top="top"),n+a>w[3]&&"top"===y.top&&(n-=a,y.top="bottom")),"element"!==p&&"both"!==p||(r<w[0]&&("right"===y.left?(r+=s,y.left="left"):"center"===y.left&&(r+=s/2,y.left="left")),r+s>w[2]&&("left"===y.left?(r-=s,y.left="right"):"center"===y.left&&(r-=s/2,y.left="right"))),"string"==typeof u?u=u.split(",").map((function(e){return e.trim()})):!0===u&&(u=["top","left","right","bottom"]),u=u||[];var E,S,O=[],k=[];n<w[1]&&(u.indexOf("top")>=0?(n=w[1],O.push("top")):k.push("top")),n+a>w[3]&&(u.indexOf("bottom")>=0?(n=w[3]-a,O.push("bottom")):k.push("bottom")),r<w[0]&&(u.indexOf("left")>=0?(r=w[0],O.push("left")):k.push("left")),r+s>w[2]&&(u.indexOf("right")>=0?(r=w[2]-s,O.push("right")):k.push("right")),O.length&&(E=void 0,E=void 0!==t.options.pinnedClass?t.options.pinnedClass:t.getClass("pinned"),h.push(E),O.forEach((function(e){h.push(E+"-"+e)}))),k.length&&(S=void 0,S=void 0!==t.options.outOfBoundsClass?t.options.outOfBoundsClass:t.getClass("out-of-bounds"),h.push(S),k.forEach((function(e){h.push(S+"-"+e)}))),(O.indexOf("left")>=0||O.indexOf("right")>=0)&&(y.left=b.left=!1),(O.indexOf("top")>=0||O.indexOf("bottom")>=0)&&(y.top=b.top=!1),b.top===o.top&&b.left===o.left&&y.top===t.attachment.top&&y.left===t.attachment.left||(t.updateAttachClasses(y,b),t.trigger("update",{attachment:y,targetAttachment:b}))})),k((function(){!1!==t.options.addTargetClasses&&S(t.target,h,p),S(t.element,h,p)})),{top:n,left:r}}});var Q,d=(Q=n.Utils).getBounds,S=Q.updateClasses;return k=Q.defer,n.modules.push({position:function(e){var t=this,n=e.top,r=e.left,o=this.cache("element-bounds",(function(){return d(t.element)})),i=o.height,a=o.width,s=this.getTargetBounds(),l=n+i,u=r+a,c=[];n<=s.bottom&&l>=s.top&&["left","right"].forEach((function(e){var t=s[e];t!==r&&t!==u||c.push(e)})),r<=s.right&&u>=s.left&&["top","bottom"].forEach((function(e){var t=s[e];t!==n&&t!==l||c.push(e)}));var f=[],p=[];return f.push(this.getClass("abutted")),["left","top","right","bottom"].forEach((function(e){f.push(t.getClass("abutted")+"-"+e)})),c.length&&p.push(this.getClass("abutted")),c.forEach((function(e){p.push(t.getClass("abutted")+"-"+e)})),k((function(){!1!==t.options.addTargetClasses&&S(t.target,p,f),S(t.element,p,f)})),!0}}),_=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&s.return&&s.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},n.modules.push({position:function(e){var t=e.top,n=e.left;if(this.options.shift){var r=this.options.shift;"function"==typeof this.options.shift&&(r=this.options.shift.call(this,{top:t,left:n}));var o=void 0,i=void 0;if("string"==typeof r){(r=r.split(" "))[1]=r[1]||r[0];var a=_(r,2);o=a[0],i=a[1],o=parseFloat(o,10),i=parseFloat(i,10)}else o=r.top,i=r.left;return{top:t+=o,left:n+=i}}}}),K})?r.apply(t,o):r)||(e.exports=i)},function(e,t,n){},function(e,t,n){},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(160),o=n(99),i=n(128),a=n(33),s=n(95);e.exports=function(e,t,n,l){if(!a(e))return e;for(var u=-1,c=(t=o(t,e)).length,f=c-1,d=e;null!=d&&++u<c;){var p=s(t[u]),h=n;if(u!=f){var b=d[p];void 0===(h=l?l(b,p,d):void 0)&&(h=a(b)?b:i(t[u+1])?[]:{})}r(d,p,h),d=d[p]}return e}},function(e,t,n){"use strict";var r=n(34),o=n(226),i=n(422),a=n(170);function s(e){var t=new i(e),n=o(i.prototype.request,t);return r.extend(n,i.prototype,t),r.extend(n,t),n}var l=s(a);l.Axios=i,l.create=function(e){return s(r.merge(a,e))},l.Cancel=n(230),l.CancelToken=n(435),l.isCancel=n(229),l.all=function(e){return Promise.all(e)},l.spread=n(436),e.exports=l,e.exports.default=l},function(e,t){
/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/
e.exports=function(e){return null!=e&&null!=e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}},function(e,t,n){"use strict";var r=n(170),o=n(34),i=n(430),a=n(431);function s(e){this.defaults=e,this.interceptors={request:new i,response:new i}}s.prototype.request=function(e){"string"==typeof e&&(e=o.merge({url:arguments[0]},arguments[1])),(e=o.merge(r,{method:"get"},this.defaults,e)).method=e.method.toLowerCase();var t=[a,void 0],n=Promise.resolve(e);for(this.interceptors.request.forEach((function(e){t.unshift(e.fulfilled,e.rejected)})),this.interceptors.response.forEach((function(e){t.push(e.fulfilled,e.rejected)}));t.length;)n=n.then(t.shift(),t.shift());return n},o.forEach(["delete","get","head","options"],(function(e){s.prototype[e]=function(t,n){return this.request(o.merge(n||{},{method:e,url:t}))}})),o.forEach(["post","put","patch"],(function(e){s.prototype[e]=function(t,n,r){return this.request(o.merge(r||{},{method:e,url:t,data:n}))}})),e.exports=s},function(e,t,n){"use strict";var r=n(34);e.exports=function(e,t){r.forEach(e,(function(n,r){r!==t&&r.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[r])}))}},function(e,t,n){"use strict";var r=n(228);e.exports=function(e,t,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?t(r("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o){return e.config=t,n&&(e.code=n),e.request=r,e.response=o,e}},function(e,t,n){"use strict";var r=n(34);function o(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var i;if(n)i=n(t);else if(r.isURLSearchParams(t))i=t.toString();else{var a=[];r.forEach(t,(function(e,t){null!=e&&(r.isArray(e)?t+="[]":e=[e],r.forEach(e,(function(e){r.isDate(e)?e=e.toISOString():r.isObject(e)&&(e=JSON.stringify(e)),a.push(o(t)+"="+o(e))})))})),i=a.join("&")}return i&&(e+=(-1===e.indexOf("?")?"?":"&")+i),e}},function(e,t,n){"use strict";var r=n(34),o=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,i,a={};return e?(r.forEach(e.split("\n"),(function(e){if(i=e.indexOf(":"),t=r.trim(e.substr(0,i)).toLowerCase(),n=r.trim(e.substr(i+1)),t){if(a[t]&&o.indexOf(t)>=0)return;a[t]="set-cookie"===t?(a[t]?a[t]:[]).concat([n]):a[t]?a[t]+", "+n:n}})),a):a}},function(e,t,n){"use strict";var r=n(34);e.exports=r.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function o(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=o(window.location.href),function(t){var n=r.isString(t)?o(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";var r=n(34);e.exports=r.isStandardBrowserEnv()?{write:function(e,t,n,o,i,a){var s=[];s.push(e+"="+encodeURIComponent(t)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(o)&&s.push("path="+o),r.isString(i)&&s.push("domain="+i),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";var r=n(34);function o(){this.handlers=[]}o.prototype.use=function(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1},o.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=o},function(e,t,n){"use strict";var r=n(34),o=n(432),i=n(229),a=n(170),s=n(433),l=n(434);function u(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return u(e),e.baseURL&&!s(e.url)&&(e.url=l(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||a.adapter)(e).then((function(t){return u(e),t.data=o(t.data,t.headers,e.transformResponse),t}),(function(t){return i(t)||(u(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},function(e,t,n){"use strict";var r=n(34);e.exports=function(e,t,n){return r.forEach(n,(function(n){e=n(e,t)})),e}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var r=n(230);function o(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new r(e),t(n.reason))}))}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o((function(t){e=t})),cancel:e}},e.exports=o},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}},function(e,t,n){var r=n(440),o=n(106);e.exports=function(e){return null==e?[]:r(e,o(e))}},function(e,t,n){var r=n(157);e.exports=function(e,t){return r(t,(function(t){return e[t]}))}},function(e,t){e.exports=function(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}},function(e,t,n){var r=n(443),o=n(94),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,r).replace(a,"")}},function(e,t,n){var r=n(444)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(446),o=n(447),i=n(94),a=n(448);e.exports=function(e,t,n){return e=i(e),void 0===(t=n?void 0:t)?o(e)?a(e):r(e):e.match(t)||[]}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",o="\\d+",i="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+n+o+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",l="(?:\\ud83c[\\udde6-\\uddff]){2}",u="[\\ud800-\\udbff][\\udc00-\\udfff]",c="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+s+")",d="(?:"+c+"|"+s+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",h="[\\ufe0e\\ufe0f]?"+p+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",l,u].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*"),b="(?:"+[i,l,u].join("|")+")"+h,m=RegExp([c+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,c,"$"].join("|")+")",d+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,c+f,"$"].join("|")+")",c+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",c+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",o,b].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t,n){var r=n(152),o=n(232),i=n(450),a=n(452),s=n(33),l=n(129),u=n(233);e.exports=function e(t,n,c,f,d){t!==n&&i(n,(function(i,l){if(d||(d=new r),s(i))a(t,n,l,c,e,f,d);else{var p=f?f(u(t,l),i,l+"",t,n,d):void 0;void 0===p&&(p=i),o(t,l,p)}}),l)}},function(e,t,n){var r=n(451)();e.exports=r},function(e,t){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},function(e,t,n){var r=n(232),o=n(216),i=n(221),a=n(194),s=n(222),l=n(127),u=n(31),c=n(453),f=n(141),d=n(159),p=n(33),h=n(223),b=n(187),m=n(233),y=n(454);e.exports=function(e,t,n,v,g,w,E){var S=m(e,n),O=m(t,n),k=E.get(O);if(k)r(e,n,k);else{var C=w?w(S,O,n+"",e,t,E):void 0,x=void 0===C;if(x){var _=u(O),P=!_&&f(O),A=!_&&!P&&b(O);C=O,_||P||A?u(S)?C=S:c(S)?C=a(S):P?(x=!1,C=o(O,!0)):A?(x=!1,C=i(O,!0)):C=[]:h(O)||l(O)?(C=S,l(S)?C=y(S):p(S)&&!d(S)||(C=s(O))):x=!1}x&&(E.set(O,C),g(C,O,v,w,E),E.delete(O)),r(e,n,C)}}},function(e,t,n){var r=n(93),o=n(40);e.exports=function(e){return o(e)&&r(e)}},function(e,t,n){var r=n(74),o=n(129);e.exports=function(e){return r(e,o(e))}},function(e,t,n){var r=n(456),o=n(266);e.exports=function(e){return r((function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t}))}},function(e,t,n){var r=n(189),o=n(224),i=n(225);e.exports=function(e,t){return i(o(e,t,r),e+"")}},function(e,t,n){"use strict";e.exports=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))}},function(e,t,n){"use strict";function r(e){return(r="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)}var o=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function s(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(o),n=1;n<t.length;n++)t=(e=a(t,n).join("")).match(o);return e}}e.exports=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+r(e)+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return function(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(e){var r=s(n[0]);r!==n[0]&&(t[n[0]]=r)}n=i.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),a=0;a<o.length;a++){var l=o[a];e=e.replace(new RegExp(l,"g"),t[l])}return e}(e)}}},function(e,t,n){var r=n(55),o=n(40),i="[object Number]";e.exports=function(e){return"number"==typeof e||o(e)&&r(e)==i}},,,function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=(n(498),n(3)),s=n.n(a),l=n(465),u=n(120),c=n(202),f=n(290);n(665);function d(e){return(d="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 p(){return(p=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?m(e):t}(this,(e=b(t)).call.apply(e,[this].concat(o))),v(m(n),"state",{inputValue:"",isInCompositionMode:!1}),v(m(n),"parsePills",(function(e){var t=n.props,r=t.allowInvalidPills,o=t.parseItems,i=t.validator,a=o?o(e):Object(l.a)(e);return a?(r||(a=a.filter((function(e){return i(e)}))),a.map((function(e){return"string"==typeof e?{displayText:e,text:e,value:e}:e}))):[]})),v(m(n),"addPillsFromInput",(function(e){var t=n.props,r=t.allowCustomPills,o=t.onPillCreate,i=t.onSelect,a=t.selectedOptions,s=t.shouldClearUnmatchedInput,l=t.validateForError;if(r){var u=n.parsePills(e);u.length>0?(i(u),o(u),n.resetInputValue()):(!l||""===e&&0!==a.length||l(e),s&&n.resetInputValue())}})),v(m(n),"handleBlur",(function(e){var t=n.props.onBlur,r=n.state.inputValue;n.addPillsFromInput(r),t(e)})),v(m(n),"handleInput",(function(e){var t=e.target.value;n.setState({inputValue:t}),n.props.onInput(t,e)})),v(m(n),"handleEnter",(function(e){var t=n.state,r=t.isInCompositionMode,o=t.inputValue;r||(e.preventDefault(),n.addPillsFromInput(o))})),v(m(n),"handlePaste",(function(e){e.preventDefault();var t=e.clipboardData.getData("text");n.setState({inputValue:t}),n.props.onInput(t,e),n.addPillsFromInput(t)})),v(m(n),"handleSelect",(function(e,t){var r=n.props,o=r.onPillCreate,i=r.onSelect,a=r.selectorOptions,s="function"==typeof a.get?a.get(e):a[e];i([s],t),o([s]),n.handleInput({target:{value:""}})})),v(m(n),"handleCompositionStart",(function(){n.setState({isInCompositionMode:!0})})),v(m(n),"handleCompositionEnd",(function(){n.setState({isInCompositionMode:!1})})),v(m(n),"resetInputValue",(function(){var e=n.props.onInput;n.setState({inputValue:""}),e("")})),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&&y(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.allowInvalidPills,n=e.children,o=e.className,a=e.disabled,l=e.dividerIndex,d=e.dropdownScrollBoundarySelector,h=e.error,b=e.getPillImageUrl,m=e.inputProps,y=e.label,v=e.onRemove,g=e.onSuggestedPillAdd,w=e.overlayTitle,E=e.placeholder,S=e.selectedOptions,O=e.showAvatars,k=e.showRoundedPills,C=e.suggestedPillsData,x=e.suggestedPillsFilter,_=e.suggestedPillsTitle,P=e.shouldSetActiveItemOnOpen,A=e.validator;return r.createElement(u.a,{text:y},r.createElement(c.a,{className:i()("bdl-PillSelectorDropdown","pill-selector-wrapper",o),dividerIndex:l,onEnter:this.handleEnter,onSelect:this.handleSelect,overlayTitle:w,scrollBoundarySelector:d,shouldSetActiveItemOnOpen:P,selector:r.createElement(f.a,p({onChange:s.a,onCompositionEnd:this.handleCompositionEnd,onCompositionStart:this.handleCompositionStart},m,{allowInvalidPills:t,disabled:a,error:h,getPillImageUrl:b,onBlur:this.handleBlur,onInput:this.handleInput,onPaste:this.handlePaste,onRemove:v,onSuggestedPillAdd:g,placeholder:E,selectedOptions:S,showRoundedPills:k,showAvatars:O&&k,suggestedPillsData:C,suggestedPillsFilter:x,suggestedPillsTitle:_,validator:A,value:this.state.inputValue}))},n))}}])&&h(n.prototype,o),a&&h(n,a),t}(r.Component);v(g,"defaultProps",{allowCustomPills:!1,allowInvalidPills:!1,disabled:!1,error:"",inputProps:{},label:"",onBlur:s.a,onPillCreate:s.a,placeholder:"",selectedOptions:[],selectorOptions:[],shouldClearUnmatchedInput:!1,shouldSetActiveItemOnOpen:!1,validator:function(){return!0}}),t.a=g},,,function(e,t,n){"use strict";t.a=function(e){if(null==e)return[];var t=e.match(/(".*?"|[^",\r\n]+)(?=\s*[,\r\n]|\s*$)/g);return t?t.map((function(e){for(e=e.trim();e.length>=2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1);)e=e.substr(1,e.length-2);return e})):[]}},,,,,,,function(e,t,n){"use strict";var r=n(473);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},,function(e,t,n){var r=n(38);e.exports=function(){return r.Date.now()}},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,function(e,t,n){},function(e,t,n){},,,,function(e,t,n){var r=n(566),o=n(629),i=n(567),a=1,s=2;e.exports=function(e,t,n,l,u,c){var f=n&a,d=e.length,p=t.length;if(d!=p&&!(f&&p>d))return!1;var h=c.get(e);if(h&&c.get(t))return h==t;var b=-1,m=!0,y=n&s?new r:void 0;for(c.set(e,t),c.set(t,e);++b<d;){var v=e[b],g=t[b];if(l)var w=f?l(g,v,b,t,e,c):l(v,g,b,e,t,c);if(void 0!==w){if(w)continue;m=!1;break}if(y){if(!o(t,(function(e,t){if(!i(y,t)&&(v===e||u(v,e,n,l,c)))return y.push(t)}))){m=!1;break}}else if(v!==g&&!u(v,g,n,l,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},function(e,t,n){var r=n(33);e.exports=function(e){return e==e&&!r(e)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}}},function(e,t,n){var r,o,i;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)}i=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return s(e)?e:X(e)}function r(e){return l(e)?e:K(e)}function o(e){return u(e)?e:Y(e)}function i(e){return s(e)&&!c(e)?e:Q(e)}function s(e){return!(!e||!e[d])}function l(e){return!(!e||!e[p])}function u(e){return!(!e||!e[h])}function c(e){return l(e)||u(e)}function f(e){return!(!e||!e[b])}t(r,n),t(o,n),t(i,n),n.isIterable=s,n.isKeyed=l,n.isIndexed=u,n.isAssociative=c,n.isOrdered=f,n.Keyed=r,n.Indexed=o,n.Set=i;var d="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",b="@@__IMMUTABLE_ORDERED__@@",m=5,y=1<<m,v=y-1,g={},w={value:!1},E={value:!1};function S(e){return e.value=!1,e}function O(e){e&&(e.value=!0)}function k(){}function C(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o<n;o++)r[o]=e[o+t];return r}function x(e){return void 0===e.size&&(e.size=e.__iterate(P)),e.size}function _(e,t){if("number"!=typeof t){var n=t>>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function P(){return!0}function A(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function T(e,t){return D(e,t,0)}function I(e,t){return D(e,t,t)}function D(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var j=0,L=1,R=2,N="function"==typeof Symbol&&Symbol.iterator,M="@@iterator",F=N||M;function U(e){this.next=e}function B(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function H(){return{value:void 0,done:!0}}function z(e){return!!G(e)}function V(e){return e&&"function"==typeof e.next}function W(e){var t=G(e);return t&&t.call(e)}function G(e){var t=e&&(N&&e[N]||e[M]);if("function"==typeof t)return t}function q(e){return e&&"number"==typeof e.length}function X(e){return null==e?ae():s(e)?e.toSeq():function(e){var t=ue(e)||"object"===a(e)&&new ne(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function K(e){return null==e?ae().toKeyedSeq():s(e)?l(e)?e.toSeq():e.fromEntrySeq():se(e)}function Y(e){return null==e?ae():s(e)?l(e)?e.entrySeq():e.toIndexedSeq():le(e)}function Q(e){return(null==e?ae():s(e)?l(e)?e.entrySeq():e:le(e)).toSetSeq()}U.prototype.toString=function(){return"[Iterator]"},U.KEYS=j,U.VALUES=L,U.ENTRIES=R,U.prototype.inspect=U.prototype.toSource=function(){return this.toString()},U.prototype[F]=function(){return this},t(X,n),X.of=function(){return X(arguments)},X.prototype.toSeq=function(){return this},X.prototype.toString=function(){return this.__toString("Seq {","}")},X.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},X.prototype.__iterate=function(e,t){return ce(this,e,t,!0)},X.prototype.__iterator=function(e,t){return fe(this,e,t,!0)},t(K,X),K.prototype.toKeyedSeq=function(){return this},t(Y,X),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return ce(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return fe(this,e,t,!1)},t(Q,X),Q.of=function(){return Q(arguments)},Q.prototype.toSetSeq=function(){return this},X.isSeq=ie,X.Keyed=K,X.Set=Q,X.Indexed=Y;var J,$,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function oe(e){this._iterator=e,this._iteratorCache=[]}function ie(e){return!(!e||!e[ee])}function ae(){return J||(J=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new oe(e).fromEntrySeq():z(e)?new re(e).fromEntrySeq():"object"===a(e)?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function le(e){var t=ue(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ue(e){return q(e)?new te(e):V(e)?new oe(e):z(e)?new re(e):void 0}function ce(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var s=o[n?i-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function fe(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new U((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:B(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function de(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,Y(n).map((function(r,o){return e(t,r,o,n)}))):he(n)?t.call(o,r,K(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):pe(e)}function pe(e){return Array.isArray(e)?Y(e).map(pe).toList():he(e)?K(e).map(pe).toMap():e}function he(e){return e&&(e.constructor===Object||void 0===e.constructor)}function be(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(e,t){if(e===t)return!0;if(!s(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||l(e)!==l(t)||u(e)!==u(t)||f(e)!==f(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(f(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&be(o[1],e)&&(n||be(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var a=!0,d=t.__iterate((function(t,r){if(n?!e.has(t):o?!be(t,e.get(r,g)):!be(e.get(r,g),t))return a=!1,!1}));return a&&e.size===d}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if($)return $;$=this}}function ve(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(ve(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),t<e&&(n=-n),this._start=e,this._end=t,this._step=n,this.size=Math.max(0,Math.ceil((t-e)/n-1)+1),0===this.size){if(Z)return Z;Z=this}}function we(){throw TypeError("Abstract")}function Ee(){}function Se(){}function Oe(){}X.prototype[ee]=!0,t(te,Y),te.prototype.get=function(e,t){return this.has(e)?this._array[_(this,e)]:t},te.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length-1,o=0;o<=r;o++)if(!1===e(n[t?r-o:o],o,this))return o+1;return o},te.prototype.__iterator=function(e,t){var n=this._array,r=n.length-1,o=0;return new U((function(){return o>r?{value:void 0,done:!0}:B(e,o,n[t?r-o++:o++])}))},t(ne,K),ne.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},ne.prototype.has=function(e){return this._object.hasOwnProperty(e)},ne.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},ne.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new U((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:B(e,a,n[a])}))},ne.prototype[b]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=W(this._iterable),r=0;if(V(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=W(this._iterable);if(!V(n))return new U(H);var r=0;return new U((function(){var t=n.next();return t.done?t:B(e,r++,t.value)}))},t(oe,Y),oe.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i<o.length;)if(!1===e(o[i],i++,this))return i;for(;!(n=r.next()).done;){var a=n.value;if(o[i]=a,!1===e(a,i++,this))break}return i},oe.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._iterator,r=this._iteratorCache,o=0;return new U((function(){if(o>=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return B(e,o,r[o++])}))},t(ye,Y),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return be(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:new ye(this._value,I(t,n)-T(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return be(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return be(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n<this.size;n++)if(!1===e(this._value,n,this))return n+1;return n},ye.prototype.__iterator=function(e,t){var n=this,r=0;return new U((function(){return r<n.size?B(e,r++,n._value):{value:void 0,done:!0}}))},ye.prototype.equals=function(e){return e instanceof ye?be(this._value,e._value):me(e)},t(ge,Y),ge.prototype.toString=function(){return 0===this.size?"Range []":"Range [ "+this._start+"..."+this._end+(1!==this._step?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+_(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},ge.prototype.slice=function(e,t){return A(e,t,this.size)?this:(e=T(e,this.size),(t=I(t,this.size))<=e?new ge(0,0):new ge(this.get(e,this._end),this.get(t,this._end),this._step))},ge.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step==0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},ge.prototype.lastIndexOf=function(e){return this.indexOf(e)},ge.prototype.__iterate=function(e,t){for(var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;i<=n;i++){if(!1===e(o,i,this))return i+1;o+=t?-r:r}return i},ge.prototype.__iterator=function(e,t){var n=this.size-1,r=this._step,o=t?this._start+n*r:this._start,i=0;return new U((function(){var a=o;return o+=t?-r:r,i>n?{value:void 0,done:!0}:B(e,i++,a)}))},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:me(this,e)},t(we,n),t(Ee,we),t(Se,we),t(Oe,we),we.Keyed=Ee,we.Indexed=Se,we.Set=Oe;var ke="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function Ce(e){return e>>>1&1073741824|3221225471&e}function xe(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=a(e);if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return Ce(n)}if("string"===t)return e.length>Le?function(e){var t=Me[e];return void 0===t&&(t=_e(e),Ne===Re&&(Ne=0,Me={}),Ne++,Me[e]=t),t}(e):_e(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ie&&void 0!==(t=Pe.get(e)))return t;if(void 0!==(t=e[je]))return t;if(!Te){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[je]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++De,1073741824&De&&(De=0),Ie)Pe.set(e,t);else{if(void 0!==Ae&&!1===Ae(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Te)Object.defineProperty(e,je,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[je]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[je]=t}}return t}(e);if("function"==typeof e.toString)return _e(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function _e(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Ce(t)}var Pe,Ae=Object.isExtensible,Te=function(){try{return Object.defineProperty({},"@",{}),!0}catch(e){return!1}}(),Ie="function"==typeof WeakMap;Ie&&(Pe=new WeakMap);var De=0,je="__immutablehash__";"function"==typeof Symbol&&(je=Symbol(je));var Le=16,Re=255,Ne=0,Me={};function Fe(e){ve(e!==1/0,"Cannot perform this action with an infinite size.")}function Ue(e){return null==e?Ze():Be(e)&&!f(e)?e:Ze().withMutations((function(t){var n=r(e);Fe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function Be(e){return!(!e||!e[ze])}t(Ue,Ee),Ue.of=function(){var t=e.call(arguments,0);return Ze().withMutations((function(e){for(var n=0;n<t.length;n+=2){if(n+1>=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},Ue.prototype.toString=function(){return this.__toString("Map {","}")},Ue.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},Ue.prototype.set=function(e,t){return et(this,e,t)},Ue.prototype.setIn=function(e,t){return this.updateIn(e,g,(function(){return t}))},Ue.prototype.remove=function(e){return et(this,e,g)},Ue.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return g}))},Ue.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},Ue.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===g,a=n.next();if(a.done){var s=i?r:t,l=o(s);return l===s?t:l}ve(i||t&&t.set,"invalid keyPath");var u=a.value,c=i?g:t.get(u,g),f=e(c,n,r,o);return f===c?t:f===g?t.remove(u):(i?Ze():t).set(u,f)}(this,on(e),t,n);return r===g?void 0:r},Ue.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ze()},Ue.prototype.merge=function(){return ot(this,void 0,arguments)},Ue.prototype.mergeWith=function(t){var n=e.call(arguments,1);return ot(this,t,n)},Ue.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ze(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},Ue.prototype.mergeDeep=function(){return ot(this,it,arguments)},Ue.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return ot(this,at(t),n)},Ue.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,Ze(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},Ue.prototype.sort=function(e){return Tt(Xt(this,e))},Ue.prototype.sortBy=function(e,t){return Tt(Xt(this,t,e))},Ue.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},Ue.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new k)},Ue.prototype.asImmutable=function(){return this.__ensureOwner()},Ue.prototype.wasAltered=function(){return this.__altered},Ue.prototype.__iterator=function(e,t){return new Ye(this,e,t)},Ue.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},Ue.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?$e(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Ue.isMap=Be;var He,ze="@@__IMMUTABLE_MAP__@@",Ve=Ue.prototype;function We(e,t){this.ownerID=e,this.entries=t}function Ge(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function qe(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Xe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ke(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ye(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Je(e._root)}function Qe(e,t){return B(e,t[0],t[1])}function Je(e,t){return{node:e,index:0,__prev:t}}function $e(e,t,n,r){var o=Object.create(Ve);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function Ze(){return He||(He=$e(0))}function et(e,t,n){var r,o;if(e._root){var i=S(w),a=S(E);if(r=tt(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===g?-1:1:0)}else{if(n===g)return e;o=1,r=new We(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?$e(o,r):Ze()}function tt(e,t,n,r,o,i,a,s){return e?e.update(t,n,r,o,i,a,s):i===g?e:(O(s),O(a),new Ke(t,r,[o,i]))}function nt(e){return e.constructor===Ke||e.constructor===Xe}function rt(e,t,n,r,o){if(e.keyHash===r)return new Xe(t,r,[e.entry,o]);var i,a=(0===n?e.keyHash:e.keyHash>>>n)&v,s=(0===n?r:r>>>n)&v;return new Ge(t,1<<a|1<<s,a===s?[rt(e,t,n+m,r,o)]:(i=new Ke(t,r,o),a<s?[e,i]:[i,e]))}function ot(e,t,n){for(var o=[],i=0;i<n.length;i++){var a=n[i],l=r(a);s(a)||(l=l.map((function(e){return de(e)}))),o.push(l)}return st(e,t,o)}function it(e,t,n){return e&&e.mergeDeep&&s(t)?e.mergeDeep(t):be(e,t)?e:t}function at(e){return function(t,n,r){if(t&&t.mergeDeepWith&&s(n))return t.mergeDeepWith(e,n);var o=e(t,n,r);return be(t,o)?t:o}}function st(e,t,n){return 0===(n=n.filter((function(e){return 0!==e.size}))).length?e:0!==e.size||e.__ownerID||1!==n.length?e.withMutations((function(e){for(var r=t?function(n,r){e.update(r,g,(function(e){return e===g?n:t(e,n,r)}))}:function(t,n){e.set(n,t)},o=0;o<n.length;o++)n[o].forEach(r)})):e.constructor(n[0])}function lt(e){return e=(e=(858993459&(e-=e>>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function ut(e,t,n,r){var o=r?e:C(e);return o[t]=n,o}Ve[ze]=!0,Ve.delete=Ve.remove,Ve.removeIn=Ve.deleteIn,We.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(be(n,o[i][0]))return o[i][1];return r},We.prototype.update=function(e,t,n,r,o,i,a){for(var s=o===g,l=this.entries,u=0,c=l.length;u<c&&!be(r,l[u][0]);u++);var f=u<c;if(f?l[u][1]===o:s)return this;if(O(a),(s||!f)&&O(i),!s||1!==l.length){if(!f&&!s&&l.length>=ct)return function(e,t,n,r){e||(e=new k);for(var o=new Ke(e,xe(n),[n,r]),i=0;i<t.length;i++){var a=t[i];o=o.update(e,0,void 0,a[0],a[1])}return o}(e,l,r,o);var d=e&&e===this.ownerID,p=d?l:C(l);return f?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new We(e,p)}},Ge.prototype.get=function(e,t,n,r){void 0===t&&(t=xe(n));var o=1<<((0===e?t:t>>>e)&v),i=this.bitmap;return 0==(i&o)?r:this.nodes[lt(i&o-1)].get(e+m,t,n,r)},Ge.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=xe(r));var s=(0===t?n:n>>>t)&v,l=1<<s,u=this.bitmap,c=0!=(u&l);if(!c&&o===g)return this;var f=lt(u&l-1),d=this.nodes,p=c?d[f]:void 0,h=tt(p,e,t+m,n,r,o,i,a);if(h===p)return this;if(!c&&h&&d.length>=ft)return function(e,t,n,r,o){for(var i=0,a=new Array(y),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[i++]:void 0;return a[r]=o,new qe(e,i+1,a)}(e,d,u,s,h);if(c&&!h&&2===d.length&&nt(d[1^f]))return d[1^f];if(c&&h&&1===d.length&&nt(h))return h;var b=e&&e===this.ownerID,w=c?h?u:u^l:u|l,E=c?h?ut(d,f,h,b):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a<r;a++)a===t&&(i=1),o[a]=e[a+i];return o}(d,f,b):function(e,t,n,r){var o=e.length+1;if(r&&t+1===o)return e[t]=n,e;for(var i=new Array(o),a=0,s=0;s<o;s++)s===t?(i[s]=n,a=-1):i[s]=e[s+a];return i}(d,f,h,b);return b?(this.bitmap=w,this.nodes=E,this):new Ge(e,w,E)},qe.prototype.get=function(e,t,n,r){void 0===t&&(t=xe(n));var o=(0===e?t:t>>>e)&v,i=this.nodes[o];return i?i.get(e+m,t,n,r):r},qe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=xe(r));var s=(0===t?n:n>>>t)&v,l=o===g,u=this.nodes,c=u[s];if(l&&!c)return this;var f=tt(c,e,t+m,n,r,o,i,a);if(f===c)return this;var d=this.count;if(c){if(!f&&--d<dt)return function(e,t,n,r){for(var o=0,i=0,a=new Array(n),s=0,l=1,u=t.length;s<u;s++,l<<=1){var c=t[s];void 0!==c&&s!==r&&(o|=l,a[i++]=c)}return new Ge(e,o,a)}(e,u,d,s)}else d++;var p=e&&e===this.ownerID,h=ut(u,s,f,p);return p?(this.count=d,this.nodes=h,this):new qe(e,d,h)},Xe.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i<a;i++)if(be(n,o[i][0]))return o[i][1];return r},Xe.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=xe(r));var s=o===g;if(n!==this.keyHash)return s?this:(O(a),O(i),rt(this,e,t,n,[r,o]));for(var l=this.entries,u=0,c=l.length;u<c&&!be(r,l[u][0]);u++);var f=u<c;if(f?l[u][1]===o:s)return this;if(O(a),(s||!f)&&O(i),s&&2===c)return new Ke(e,this.keyHash,l[1^u]);var d=e&&e===this.ownerID,p=d?l:C(l);return f?s?u===c-1?p.pop():p[u]=p.pop():p[u]=[r,o]:p.push([r,o]),d?(this.entries=p,this):new Xe(e,this.keyHash,p)},Ke.prototype.get=function(e,t,n,r){return be(n,this.entry[0])?this.entry[1]:r},Ke.prototype.update=function(e,t,n,r,o,i,a){var s=o===g,l=be(r,this.entry[0]);return(l?o===this.entry[1]:s)?this:(O(a),s?void O(i):l?e&&e===this.ownerID?(this.entry[1]=o,this):new Ke(e,this.keyHash,[r,o]):(O(i),rt(this,e,t,xe(r),[r,o])))},We.prototype.iterate=Xe.prototype.iterate=function(e,t){for(var n=this.entries,r=0,o=n.length-1;r<=o;r++)if(!1===e(n[t?o-r:r]))return!1},Ge.prototype.iterate=qe.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,o=n.length-1;r<=o;r++){var i=n[t?o-r:r];if(i&&!1===i.iterate(e,t))return!1}},Ke.prototype.iterate=function(e,t){return e(this.entry)},t(Ye,U),Ye.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n,r=t.node,o=t.index++;if(r.entry){if(0===o)return Qe(e,r.entry)}else if(r.entries){if(o<=(n=r.entries.length-1))return Qe(e,r.entries[this._reverse?n-o:o])}else if(o<=(n=r.nodes.length-1)){var i=r.nodes[this._reverse?n-o:o];if(i){if(i.entry)return Qe(e,i.entry);t=this._stack=Je(i,t)}continue}t=this._stack=this._stack.__prev}return{value:void 0,done:!0}};var ct=y/4,ft=y/2,dt=y/4;function pt(e){var t=Ot();if(null==e)return t;if(ht(e))return e;var n=o(e),r=n.size;return 0===r?t:(Fe(r),r>0&&r<y?St(0,r,m,null,new yt(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function ht(e){return!(!e||!e[bt])}t(pt,Se),pt.of=function(){return this(arguments)},pt.prototype.toString=function(){return this.__toString("List [","]")},pt.prototype.get=function(e,t){if((e=_(this,e))>=0&&e<this.size){var n=xt(this,e+=this._origin);return n&&n.array[e&v]}return t},pt.prototype.set=function(e,t){return function(e,t,n){if((t=_(e,t))!=t)return e;if(t>=e.size||t<0)return e.withMutations((function(e){t<0?_t(e,t).set(0,n):_t(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=S(E);return t>=At(e._capacity)?r=kt(r,e.__ownerID,0,t,n,i):o=kt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):St(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},pt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},pt.prototype.insert=function(e,t){return this.splice(e,0,t)},pt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=m,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Ot()},pt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){_t(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])}))},pt.prototype.pop=function(){return _t(this,0,-1)},pt.prototype.unshift=function(){var e=arguments;return this.withMutations((function(t){_t(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])}))},pt.prototype.shift=function(){return _t(this,1)},pt.prototype.merge=function(){return Pt(this,void 0,arguments)},pt.prototype.mergeWith=function(t){var n=e.call(arguments,1);return Pt(this,t,n)},pt.prototype.mergeDeep=function(){return Pt(this,it,arguments)},pt.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return Pt(this,at(t),n)},pt.prototype.setSize=function(e){return _t(this,0,e)},pt.prototype.slice=function(e,t){var n=this.size;return A(e,t,n)?this:_t(this,T(e,n),I(t,n))},pt.prototype.__iterator=function(e,t){var n=0,r=Et(this,t);return new U((function(){var t=r();return t===wt?{value:void 0,done:!0}:B(e,n++,t)}))},pt.prototype.__iterate=function(e,t){for(var n,r=0,o=Et(this,t);(n=o())!==wt&&!1!==e(n,r++,this););return r},pt.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?St(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):(this.__ownerID=e,this)},pt.isList=ht;var bt="@@__IMMUTABLE_LIST__@@",mt=pt.prototype;function yt(e,t){this.array=e,this.ownerID=t}mt[bt]=!0,mt.delete=mt.remove,mt.setIn=Ve.setIn,mt.deleteIn=mt.removeIn=Ve.removeIn,mt.update=Ve.update,mt.updateIn=Ve.updateIn,mt.mergeIn=Ve.mergeIn,mt.mergeDeepIn=Ve.mergeDeepIn,mt.withMutations=Ve.withMutations,mt.asMutable=Ve.asMutable,mt.asImmutable=Ve.asImmutable,mt.wasAltered=Ve.wasAltered,yt.prototype.removeBefore=function(e,t,n){if(n===t?1<<t:0===this.array.length)return this;var r=n>>>t&v;if(r>=this.array.length)return new yt([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-m,n))===a&&i)return this}if(i&&!o)return this;var s=Ct(this,e);if(!i)for(var l=0;l<r;l++)s.array[l]=void 0;return o&&(s.array[r]=o),s},yt.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t:0)||0===this.array.length)return this;var r,o=n-1>>>t&v;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-m,n))===i&&o===this.array.length-1)return this}var a=Ct(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var vt,gt,wt={};function Et(e,t){var n=e._origin,r=e._capacity,o=At(r),i=e._tail;return a(e._root,e._level,0);function a(e,s,l){return 0===s?function(e,a){var s=a===o?i&&i.array:e&&e.array,l=a>n?0:n-a,u=r-a;return u>y&&(u=y),function(){if(l===u)return wt;var e=t?--u:l++;return s&&s[e]}}(e,l):function(e,o,i){var s,l=e&&e.array,u=i>n?0:n-i>>o,c=1+(r-i>>o);return c>y&&(c=y),function(){for(;;){if(s){var e=s();if(e!==wt)return e;s=null}if(u===c)return wt;var n=t?--c:u++;s=a(l&&l[n],o-m,i+(n<<o))}}}(e,s,l)}}function St(e,t,n,r,o,i,a){var s=Object.create(mt);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=o,s.__ownerID=i,s.__hash=a,s.__altered=!1,s}function Ot(){return vt||(vt=St(0,0,m))}function kt(e,t,n,r,o,i){var a,s=r>>>n&v,l=e&&s<e.array.length;if(!l&&void 0===o)return e;if(n>0){var u=e&&e.array[s],c=kt(u,t,n-m,r,o,i);return c===u?e:((a=Ct(e,t)).array[s]=c,a)}return l&&e.array[s]===o?e:(O(i),a=Ct(e,t),void 0===o&&s===a.array.length-1?a.array.pop():a.array[s]=o,a)}function Ct(e,t){return t&&e&&t===e.ownerID?e:new yt(e?e.array.slice():[],t)}function xt(e,t){if(t>=At(e._capacity))return e._tail;if(t<1<<e._level+m){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&v],r-=m;return n}}function _t(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new k,o=e._origin,i=e._capacity,a=o+t,s=void 0===n?i:n<0?i+n:o+n;if(a===o&&s===i)return e;if(a>=s)return e.clear();for(var l=e._level,u=e._root,c=0;a+c<0;)u=new yt(u&&u.array.length?[void 0,u]:[],r),c+=1<<(l+=m);c&&(a+=c,o+=c,s+=c,i+=c);for(var f=At(i),d=At(s);d>=1<<l+m;)u=new yt(u&&u.array.length?[u]:[],r),l+=m;var p=e._tail,h=d<f?xt(e,s-1):d>f?new yt([],r):p;if(p&&d>f&&a<i&&p.array.length){for(var b=u=Ct(u,r),y=l;y>m;y-=m){var g=f>>>y&v;b=b.array[g]=Ct(b.array[g],r)}b.array[f>>>m&v]=p}if(s<i&&(h=h&&h.removeAfter(r,0,s)),a>=d)a-=d,s-=d,l=m,u=null,h=h&&h.removeBefore(r,0,a);else if(a>o||d<f){for(c=0;u;){var w=a>>>l&v;if(w!==d>>>l&v)break;w&&(c+=(1<<l)*w),l-=m,u=u.array[w]}u&&a>o&&(u=u.removeBefore(r,l,a-c)),u&&d<f&&(u=u.removeAfter(r,l,d-c)),c&&(a-=c,s-=c)}return e.__ownerID?(e.size=s-a,e._origin=a,e._capacity=s,e._level=l,e._root=u,e._tail=h,e.__hash=void 0,e.__altered=!0,e):St(a,s,l,u,h)}function Pt(e,t,n){for(var r=[],i=0,a=0;a<n.length;a++){var l=n[a],u=o(l);u.size>i&&(i=u.size),s(l)||(u=u.map((function(e){return de(e)}))),r.push(u)}return i>e.size&&(e=e.setSize(i)),st(e,t,r)}function At(e){return e<y?0:e-1>>>m<<m}function Tt(e){return null==e?jt():It(e)?e:jt().withMutations((function(t){var n=r(e);Fe(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function It(e){return Be(e)&&f(e)}function Dt(e,t,n,r){var o=Object.create(Tt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function jt(){return gt||(gt=Dt(Ze(),Ot()))}function Lt(e,t,n){var r,o,i=e._map,a=e._list,s=i.get(t),l=void 0!==s;if(n===g){if(!l)return e;a.size>=y&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&s!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=s===a.size-1?a.pop():a.set(s,void 0))}else if(l){if(n===a.get(s)[1])return e;r=i,o=a.set(s,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Dt(r,o)}function Rt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Nt(e){this._iter=e,this.size=e.size}function Mt(e){this._iter=e,this.size=e.size}function Ft(e){this._iter=e,this.size=e.size}function Ut(e){var t=tn(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=nn,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(t===R){var r=e.__iterator(t,n);return new U((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(t===L?j:L,n)},t}function Bt(e,t,n){var r=tn(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,g);return i===g?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(R,o);return new U((function(){var o=i.next();if(o.done)return o;var a=o.value,s=a[0];return B(r,s,t.call(n,a[1],s,e),o)}))},r}function Ht(e,t){var n=tn(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=Ut(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=nn,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function zt(e,t,n,r){var o=tn(e);return r&&(o.has=function(r){var o=e.get(r,g);return o!==g&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,g);return i!==g&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,s=0;return e.__iterate((function(e,i,l){if(t.call(n,e,i,l))return s++,o(e,r?i:s-1,a)}),i),s},o.__iteratorUncached=function(o,i){var a=e.__iterator(R,i),s=0;return new U((function(){for(;;){var i=a.next();if(i.done)return i;var l=i.value,u=l[0],c=l[1];if(t.call(n,c,u,e))return B(o,r?u:s++,c,i)}}))},o}function Vt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),A(t,n,o))return e;var i=T(t,o),a=I(n,o);if(i!=i||a!=a)return Vt(e.toSeq().cacheResult(),t,n,r);var s,l=a-i;l==l&&(s=l<0?0:l);var u=tn(e);return u.size=0===s?s:e.size&&s||void 0,!r&&ie(e)&&s>=0&&(u.get=function(t,n){return(t=_(this,t))>=0&&t<s?e.get(t+i,n):n}),u.__iterateUncached=function(t,n){var o=this;if(0===s)return 0;if(n)return this.cacheResult().__iterate(t,n);var a=0,l=!0,u=0;return e.__iterate((function(e,n){if(!l||!(l=a++<i))return u++,!1!==t(e,r?n:u-1,o)&&u!==s})),u},u.__iteratorUncached=function(t,n){if(0!==s&&n)return this.cacheResult().__iterator(t,n);var o=0!==s&&e.__iterator(t,n),a=0,l=0;return new U((function(){for(;a++<i;)o.next();if(++l>s)return{value:void 0,done:!0};var e=o.next();return r||t===L?e:B(t,l-1,t===j?void 0:e.value[1],e)}))},u}function Wt(e,t,n,r){var o=tn(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var s=!0,l=0;return e.__iterate((function(e,i,u){if(!s||!(s=t.call(n,e,i,u)))return l++,o(e,r?i:l-1,a)})),l},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var s=e.__iterator(R,i),l=!0,u=0;return new U((function(){var e,i,c;do{if((e=s.next()).done)return r||o===L?e:B(o,u++,o===j?void 0:e.value[1],e);var f=e.value;i=f[0],c=f[1],l&&(l=t.call(n,c,i,a))}while(l);return o===R?e:B(o,i,c,e)}))},o}function Gt(e,t){var n=l(e),o=[e].concat(t).map((function(e){return s(e)?n&&(e=r(e)):e=n?se(e):le(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&l(i)||u(e)&&u(i))return i}var a=new te(o);return n?a=a.toKeyedSeq():u(e)||(a=a.toSetSeq()),(a=a.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),a}function qt(e,t,n){var r=tn(e);return r.__iterateUncached=function(r,o){var i=0,a=!1;return function e(l,u){var c=this;l.__iterate((function(o,l){return(!t||u<t)&&s(o)?e(o,u+1):!1===r(o,n?l:i++,c)&&(a=!0),!a}),o)}(e,0),i},r.__iteratorUncached=function(r,o){var i=e.__iterator(r,o),a=[],l=0;return new U((function(){for(;i;){var e=i.next();if(!1===e.done){var u=e.value;if(r===R&&(u=u[1]),t&&!(a.length<t)||!s(u))return n?e:B(r,l++,u,e);a.push(i),i=u.__iterator(r,o)}else i=a.pop()}return{value:void 0,done:!0}}))},r}function Xt(e,t,n){t||(t=rn);var r=l(e),o=0,i=e.toSeq().map((function(t,r){return[r,t,o++,n?n(t,r,e):t]})).toArray();return i.sort((function(e,n){return t(e[3],n[3])||e[2]-n[2]})).forEach(r?function(e,t){i[t].length=2}:function(e,t){i[t]=e[1]}),r?K(i):u(e)?Y(i):Q(i)}function Kt(e,t,n){if(t||(t=rn),n){var r=e.toSeq().map((function(t,r){return[t,n(t,r,e)]})).reduce((function(e,n){return Yt(t,e[1],n[1])?n:e}));return r&&r[0]}return e.reduce((function(e,n){return Yt(t,e,n)?n:e}))}function Yt(e,t,n){var r=e(n,t);return 0===r&&n!==t&&(null==n||n!=n)||r>0}function Qt(e,t,r){var o=tn(e);return o.size=new te(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(L,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),W(o?e.reverse():e)})),a=0,s=!1;return new U((function(){var n;return s||(n=i.map((function(e){return e.next()})),s=n.some((function(e){return e.done}))),s?{value:void 0,done:!0}:B(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function Jt(e,t){return ie(e)?t:e.constructor(t)}function $t(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Zt(e){return Fe(e.size),x(e)}function en(e){return l(e)?r:u(e)?o:i}function tn(e){return Object.create((l(e)?K:u(e)?Y:Q).prototype)}function nn(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):X.prototype.cacheResult.call(this)}function rn(e,t){return e>t?1:e<t?-1:0}function on(e){var t=W(e);if(!t){if(!q(e))throw new TypeError("Expected iterable or array-like: "+e);t=W(n(e))}return t}function an(e,t){var n,r=function(i){if(i instanceof r)return i;if(!(this instanceof r))return new r(i);if(!n){n=!0;var a=Object.keys(e);!function(e,t){try{t.forEach(cn.bind(void 0,e))}catch(e){}}(o,a),o.size=a.length,o._name=t,o._keys=a,o._defaultValues=e}this._map=Ue(i)},o=r.prototype=Object.create(sn);return o.constructor=r,r}t(Tt,Ue),Tt.of=function(){return this(arguments)},Tt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Tt.prototype.get=function(e,t){var n=this._map.get(e);return void 0!==n?this._list.get(n)[1]:t},Tt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):jt()},Tt.prototype.set=function(e,t){return Lt(this,e,t)},Tt.prototype.remove=function(e){return Lt(this,e,g)},Tt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Tt.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate((function(t){return t&&e(t[1],t[0],n)}),t)},Tt.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},Tt.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Dt(t,n,e,this.__hash):(this.__ownerID=e,this._map=t,this._list=n,this)},Tt.isOrderedMap=It,Tt.prototype[b]=!0,Tt.prototype.delete=Tt.prototype.remove,t(Rt,K),Rt.prototype.get=function(e,t){return this._iter.get(e,t)},Rt.prototype.has=function(e){return this._iter.has(e)},Rt.prototype.valueSeq=function(){return this._iter.valueSeq()},Rt.prototype.reverse=function(){var e=this,t=Ht(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},Rt.prototype.map=function(e,t){var n=this,r=Bt(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},Rt.prototype.__iterate=function(e,t){var n,r=this;return this._iter.__iterate(this._useKeys?function(t,n){return e(t,n,r)}:(n=t?Zt(this):0,function(o){return e(o,t?--n:n++,r)}),t)},Rt.prototype.__iterator=function(e,t){if(this._useKeys)return this._iter.__iterator(e,t);var n=this._iter.__iterator(L,t),r=t?Zt(this):0;return new U((function(){var o=n.next();return o.done?o:B(e,t?--r:r++,o.value,o)}))},Rt.prototype[b]=!0,t(Nt,Y),Nt.prototype.includes=function(e){return this._iter.includes(e)},Nt.prototype.__iterate=function(e,t){var n=this,r=0;return this._iter.__iterate((function(t){return e(t,r++,n)}),t)},Nt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t),r=0;return new U((function(){var t=n.next();return t.done?t:B(e,r++,t.value,t)}))},t(Mt,Q),Mt.prototype.has=function(e){return this._iter.includes(e)},Mt.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){return e(t,t,n)}),t)},Mt.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new U((function(){var t=n.next();return t.done?t:B(e,t.value,t.value,t)}))},t(Ft,K),Ft.prototype.entrySeq=function(){return this._iter.toSeq()},Ft.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate((function(t){if(t){$t(t);var r=s(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}}),t)},Ft.prototype.__iterator=function(e,t){var n=this._iter.__iterator(L,t);return new U((function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){$t(r);var o=s(r);return B(e,o?r.get(0):r[0],o?r.get(1):r[1],t)}}}))},Nt.prototype.cacheResult=Rt.prototype.cacheResult=Mt.prototype.cacheResult=Ft.prototype.cacheResult=nn,t(an,Ee),an.prototype.toString=function(){return this.__toString(un(this)+" {","}")},an.prototype.has=function(e){return this._defaultValues.hasOwnProperty(e)},an.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._defaultValues[e];return this._map?this._map.get(e,n):n},an.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var e=this.constructor;return e._empty||(e._empty=ln(this,Ze()))},an.prototype.set=function(e,t){if(!this.has(e))throw new Error('Cannot set unknown key "'+e+'" on '+un(this));if(this._map&&!this._map.has(e)&&t===this._defaultValues[e])return this;var n=this._map&&this._map.set(e,t);return this.__ownerID||n===this._map?this:ln(this,n)},an.prototype.remove=function(e){if(!this.has(e))return this;var t=this._map&&this._map.remove(e);return this.__ownerID||t===this._map?this:ln(this,t)},an.prototype.wasAltered=function(){return this._map.wasAltered()},an.prototype.__iterator=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterator(e,t)},an.prototype.__iterate=function(e,t){var n=this;return r(this._defaultValues).map((function(e,t){return n.get(t)})).__iterate(e,t)},an.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map&&this._map.__ensureOwner(e);return e?ln(this,t,e):(this.__ownerID=e,this._map=t,this)};var sn=an.prototype;function ln(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._map=t,r.__ownerID=n,r}function un(e){return e._name||e.constructor.name||"Record"}function cn(e,t){Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){ve(this.__ownerID,"Cannot set on an immutable record."),this.set(t,e)}})}function fn(e){return null==e?vn():dn(e)&&!f(e)?e:vn().withMutations((function(t){var n=i(e);Fe(n.size),n.forEach((function(e){return t.add(e)}))}))}function dn(e){return!(!e||!e[hn])}sn.delete=sn.remove,sn.deleteIn=sn.removeIn=Ve.removeIn,sn.merge=Ve.merge,sn.mergeWith=Ve.mergeWith,sn.mergeIn=Ve.mergeIn,sn.mergeDeep=Ve.mergeDeep,sn.mergeDeepWith=Ve.mergeDeepWith,sn.mergeDeepIn=Ve.mergeDeepIn,sn.setIn=Ve.setIn,sn.update=Ve.update,sn.updateIn=Ve.updateIn,sn.withMutations=Ve.withMutations,sn.asMutable=Ve.asMutable,sn.asImmutable=Ve.asImmutable,t(fn,Oe),fn.of=function(){return this(arguments)},fn.fromKeys=function(e){return this(r(e).keySeq())},fn.prototype.toString=function(){return this.__toString("Set {","}")},fn.prototype.has=function(e){return this._map.has(e)},fn.prototype.add=function(e){return mn(this,this._map.set(e,!0))},fn.prototype.remove=function(e){return mn(this,this._map.remove(e))},fn.prototype.clear=function(){return mn(this,this._map.clear())},fn.prototype.union=function(){var t=e.call(arguments,0);return 0===(t=t.filter((function(e){return 0!==e.size}))).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations((function(e){for(var n=0;n<t.length;n++)i(t[n]).forEach((function(t){return e.add(t)}))})):this.constructor(t[0])},fn.prototype.intersect=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.every((function(e){return e.includes(n)}))||e.remove(n)}))}))},fn.prototype.subtract=function(){var t=e.call(arguments,0);if(0===t.length)return this;t=t.map((function(e){return i(e)}));var n=this;return this.withMutations((function(e){n.forEach((function(n){t.some((function(e){return e.includes(n)}))&&e.remove(n)}))}))},fn.prototype.merge=function(){return this.union.apply(this,arguments)},fn.prototype.mergeWith=function(t){var n=e.call(arguments,1);return this.union.apply(this,n)},fn.prototype.sort=function(e){return gn(Xt(this,e))},fn.prototype.sortBy=function(e,t){return gn(Xt(this,t,e))},fn.prototype.wasAltered=function(){return this._map.wasAltered()},fn.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate((function(t,r){return e(r,r,n)}),t)},fn.prototype.__iterator=function(e,t){return this._map.map((function(e,t){return t})).__iterator(e,t)},fn.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):(this.__ownerID=e,this._map=t,this)},fn.isSet=dn;var pn,hn="@@__IMMUTABLE_SET__@@",bn=fn.prototype;function mn(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:0===t.size?e.__empty():e.__make(t)}function yn(e,t){var n=Object.create(bn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function vn(){return pn||(pn=yn(Ze()))}function gn(e){return null==e?kn():wn(e)?e:kn().withMutations((function(t){var n=i(e);Fe(n.size),n.forEach((function(e){return t.add(e)}))}))}function wn(e){return dn(e)&&f(e)}bn[hn]=!0,bn.delete=bn.remove,bn.mergeDeep=bn.merge,bn.mergeDeepWith=bn.mergeWith,bn.withMutations=Ve.withMutations,bn.asMutable=Ve.asMutable,bn.asImmutable=Ve.asImmutable,bn.__empty=vn,bn.__make=yn,t(gn,fn),gn.of=function(){return this(arguments)},gn.fromKeys=function(e){return this(r(e).keySeq())},gn.prototype.toString=function(){return this.__toString("OrderedSet {","}")},gn.isOrderedSet=wn;var En,Sn=gn.prototype;function On(e,t){var n=Object.create(Sn);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function kn(){return En||(En=On(jt()))}function Cn(e){return null==e?In():xn(e)?e:In().unshiftAll(e)}function xn(e){return!(!e||!e[Pn])}Sn[b]=!0,Sn.__empty=kn,Sn.__make=On,t(Cn,Se),Cn.of=function(){return this(arguments)},Cn.prototype.toString=function(){return this.__toString("Stack [","]")},Cn.prototype.get=function(e,t){var n=this._head;for(e=_(this,e);n&&e--;)n=n.next;return n?n.value:t},Cn.prototype.peek=function(){return this._head&&this._head.value},Cn.prototype.push=function(){if(0===arguments.length)return this;for(var e=this.size+arguments.length,t=this._head,n=arguments.length-1;n>=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):Tn(e,t)},Cn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Fe(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):Tn(t,n)},Cn.prototype.pop=function(){return this.slice(1)},Cn.prototype.unshift=function(){return this.push.apply(this,arguments)},Cn.prototype.unshiftAll=function(e){return this.pushAll(e)},Cn.prototype.shift=function(){return this.pop.apply(this,arguments)},Cn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):In()},Cn.prototype.slice=function(e,t){if(A(e,t,this.size))return this;var n=T(e,this.size);if(I(t,this.size)!==this.size)return Se.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):Tn(r,o)},Cn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Tn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Cn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},Cn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new U((function(){if(r){var t=r.value;return r=r.next,B(e,n++,t)}return{value:void 0,done:!0}}))},Cn.isStack=xn;var _n,Pn="@@__IMMUTABLE_STACK__@@",An=Cn.prototype;function Tn(e,t,n,r){var o=Object.create(An);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function In(){return _n||(_n=Tn(0))}function Dn(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}An[Pn]=!0,An.withMutations=Ve.withMutations,An.asMutable=Ve.asMutable,An.asImmutable=Ve.asImmutable,An.wasAltered=Ve.wasAltered,n.Iterator=U,Dn(n,{toArray:function(){Fe(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new Nt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new Rt(this,!0)},toMap:function(){return Ue(this.toKeyedSeq())},toObject:function(){Fe(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return Tt(this.toKeyedSeq())},toOrderedSet:function(){return gn(l(this)?this.valueSeq():this)},toSet:function(){return fn(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Mt(this)},toSeq:function(){return u(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Cn(l(this)?this.valueSeq():this)},toList:function(){return pt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Jt(this,Gt(this,t))},includes:function(e){return this.some((function(t){return be(t,e)}))},entries:function(){return this.__iterator(R)},every:function(e,t){Fe(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return Jt(this,zt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Fe(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Fe(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(j)},map:function(e,t){return Jt(this,Bt(this,e,t))},reduce:function(e,t,n){var r,o;return Fe(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Jt(this,Ht(this,!0))},slice:function(e,t){return Jt(this,Vt(this,e,t,!0))},some:function(e,t){return!this.every(Mn(e),t)},sort:function(e){return Jt(this,Xt(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=Ue().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return me(this,e)},entrySeq:function(){var e=this;if(e._cache)return new te(e._cache);var t=e.toSeq().map(Nn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Mn(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(P)},flatMap:function(e,t){return Jt(this,function(e,t,n){var r=en(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return Jt(this,qt(this,e,!0))},fromEntrySeq:function(){return new Ft(this)},get:function(e,t){return this.find((function(t,n){return be(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=on(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,g):g)===g)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=l(e),o=(f(e)?Tt():Ue()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=en(e);return o.map((function(t){return Jt(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return be(t,e)}))},keySeq:function(){return this.toSeq().map(Rn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Kt(this,e)},maxBy:function(e,t){return Kt(this,t,e)},min:function(e){return Kt(this,e?Fn(e):Hn)},minBy:function(e,t){return Kt(this,t?Fn(t):Hn,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Jt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Jt(this,Wt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Mn(e),t)},sortBy:function(e,t){return Jt(this,Xt(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Jt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Jt(this,function(e,t,n){var r=tn(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,s){return t.call(n,e,o,s)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(R,o),s=!0;return new U((function(){if(!s)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,l=o[0],u=o[1];return t.call(n,u,l,i)?r===R?e:B(r,l,u,e):(s=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Mn(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=f(e),n=l(e),r=t?1:0;return function(e,t){return t=ke(t,3432918353),t=ke(t<<15|t>>>-15,461845907),t=ke(t<<13|t>>>-13,5),t=ke((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Ce((t=ke(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+zn(xe(e),xe(t))|0}:function(e,t){r=r+zn(xe(e),xe(t))|0}:t?function(e){r=31*r+xe(e)|0}:function(e){r=r+xe(e)|0}),r)}(this))}});var jn=n.prototype;jn[d]=!0,jn[F]=jn.values,jn.__toJS=jn.toArray,jn.__toStringMapper=Un,jn.inspect=jn.toSource=function(){return this.toString()},jn.chain=jn.flatMap,jn.contains=jn.includes,Dn(r,{flip:function(){return Jt(this,Ut(this))},mapEntries:function(e,t){var n=this,r=0;return Jt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return Jt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Ln=r.prototype;function Rn(e,t){return t}function Nn(e,t){return[t,e]}function Mn(e){return function(){return!e.apply(this,arguments)}}function Fn(e){return function(){return-e.apply(this,arguments)}}function Un(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Bn(){return C(arguments)}function Hn(e,t){return e<t?1:e>t?-1:0}function zn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Ln[p]=!0,Ln[F]=jn.entries,Ln.__toJS=jn.toObject,Ln.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Un(e)},Dn(o,{toKeyedSeq:function(){return new Rt(this,!1)},filter:function(e,t){return Jt(this,zt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,Ht(this,!1))},slice:function(e,t){return Jt(this,Vt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=T(e,e<0?this.count():this.size);var r=this.slice(0,e);return Jt(this,1===n?r:r.concat(C(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Jt(this,qt(this,e,!1))},get:function(e,t){return(e=_(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=_(this,e))>=0&&(void 0!==this.size?this.size===1/0||e<this.size:-1!==this.indexOf(e))},interpose:function(e){return Jt(this,function(e,t){var n=tn(e);return n.size=e.size&&2*e.size-1,n.__iterateUncached=function(n,r){var o=this,i=0;return e.__iterate((function(e,r){return(!i||!1!==n(t,i++,o))&&!1!==n(e,i++,o)}),r),i},n.__iteratorUncached=function(n,r){var o,i=e.__iterator(L,r),a=0;return new U((function(){return(!o||a%2)&&(o=i.next()).done?o:a%2?B(n,a++,t):B(n,a++,o.value,o)}))},n}(this,e))},interleave:function(){var e=[this].concat(C(arguments)),t=Qt(this.toSeq(),Y.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),Jt(this,n)},keySeq:function(){return ge(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(e,t){return Jt(this,Wt(this,e,t,!1))},zip:function(){var e=[this].concat(C(arguments));return Jt(this,Qt(this,Bn,e))},zipWith:function(e){var t=C(arguments);return t[0]=this,Jt(this,Qt(this,e,t))}}),o.prototype[h]=!0,o.prototype[b]=!0,Dn(i,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}),i.prototype.has=jn.includes,i.prototype.contains=i.prototype.includes,Dn(K,r.prototype),Dn(Y,o.prototype),Dn(Q,i.prototype),Dn(Ee,r.prototype),Dn(Se,o.prototype),Dn(Oe,i.prototype),{Iterable:n,Seq:X,Collection:we,Map:Ue,OrderedMap:Tt,List:pt,Stack:Cn,Set:fn,OrderedSet:gn,Record:an,Range:ge,Repeat:ye,is:be,fromJS:de}},"object"===a(t)&&void 0!==e?e.exports=i():void 0===(o="function"==typeof(r=i)?r.call(t,n,t,e):r)||(e.exports=o)},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){},,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(156),i=n(134);n(663);function a(){return(a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function s(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.a=function(e){var t=e.getContactAvatarUrl,n=e.id,l=e.isExternal,u=e.name,c=e.showAvatar,f=e.subtitle,d=s(e,["getContactAvatarUrl","id","isExternal","name","showAvatar","subtitle"]);return r.createElement(i.a,a({className:"contact-data-list-item"},d),c&&r.createElement(o.a,{className:"contact-avatar",id:n,name:u,isExternal:l,shouldShowExternal:!0,avatarUrl:t&&n?t({id:n}):void 0}),r.createElement("div",{className:"contact-name-container"},r.createElement("div",{className:"contact-text contact-name"},u),f&&r.createElement("div",{className:"contact-text contact-sub-name"},f)))}},,function(e,t,n){var r=n(231),o=n(526),i=r((function(e,t,n){return e+(n?" ":"")+o(t)}));e.exports=i},function(e,t,n){"use strict";var r=n(286);n.d(t,"a",(function(){return r.a}))},function(e,t,n){
/*!
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/
!function(t,r){"use strict";var o;try{o=n(!function(){var e=new Error("Cannot find module 'moment'");throw e.code="MODULE_NOT_FOUND",e}())}catch(e){}e.exports=function(e){var t="function"==typeof e,n=!!window.addEventListener,r=window.document,o=window.setTimeout,i=function(e,t,r,o){n?e.addEventListener(t,r,!!o):e.attachEvent("on"+t,r)},a=function(e,t,r,o){n?e.removeEventListener(t,r,!!o):e.detachEvent("on"+t,r)},s=function(e,t){return-1!==(" "+e.className+" ").indexOf(" "+t+" ")},l=function(e,t){s(e,t)||(e.className=""===e.className?t:e.className+" "+t)},u=function(e,t){var n;e.className=(n=(" "+e.className+" ").replace(" "+t+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},c=function(e){return/Array/.test(Object.prototype.toString.call(e))},f=function(e){return/Date/.test(Object.prototype.toString.call(e))&&!isNaN(e.getTime())},d=function(e){var t=e.getDay();return 0===t||6===t},p=function(e){return e%4==0&&e%100!=0||e%400==0},h=function(e,t){return[31,p(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},b=function(e){f(e)&&e.setHours(0,0,0,0)},m=function(e,t){return e.getTime()===t.getTime()},y=function(e,t,n){var r,o;for(r in t)(o=void 0!==e[r])&&"object"==typeof t[r]&&null!==t[r]&&void 0===t[r].nodeName?f(t[r])?n&&(e[r]=new Date(t[r].getTime())):c(t[r])?n&&(e[r]=t[r].slice(0)):e[r]=y({},t[r],n):!n&&o||(e[r]=t[r]);return e},v=function(e,t,n){var o;r.createEvent?((o=r.createEvent("HTMLEvents")).initEvent(t,!0,!1),o=y(o,n),e.dispatchEvent(o)):r.createEventObject&&(o=r.createEventObject(),o=y(o,n),e.fireEvent("on"+t,o))},g=function(e){return e.month<0&&(e.year-=Math.ceil(Math.abs(e.month)/12),e.month+=12),e.month>11&&(e.year+=Math.floor(Math.abs(e.month)/12),e.month-=12),e},w={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},E=function(e,t,n){for(t+=e.firstDay;t>=7;)t-=7;return n?e.i18n.weekdaysShort[t]:e.i18n.weekdays[t]},S=function(e){var t=[],n="false";if(e.isEmpty){if(!e.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';t.push("is-outside-current-month"),e.enableSelectionDaysInNextAndPreviousMonths||t.push("is-selection-disabled")}return e.isDisabled&&t.push("is-disabled"),e.isToday&&t.push("is-today"),e.isSelected&&(t.push("is-selected"),n="true"),e.hasEvent&&t.push("has-event"),e.isInRange&&t.push("is-inrange"),e.isStartRange&&t.push("is-startrange"),e.isEndRange&&t.push("is-endrange"),'<td data-day="'+e.day+'" class="'+t.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+e.year+'" data-pika-month="'+e.month+'" data-pika-day="'+e.day+'">'+e.day+"</button></td>"},O=function(e,t,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(t?e.reverse():e).join("")+"</tr>"},k=function(e,t,n,r,o,i){var a,s,l,u,f,d=e._o,p=n===d.minYear,h=n===d.maxYear,b='<div id="'+i+'" class="pika-title" role="heading" aria-live="assertive">',m=!0,y=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===o?a-t:12+a-t)+'"'+(a===r?' selected="selected"':"")+(p&&a<d.minMonth||h&&a>d.maxMonth?'disabled="disabled"':"")+">"+d.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+d.i18n.months[r]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(d.yearRange)?(a=d.yearRange[0],s=d.yearRange[1]+1):(a=n-d.yearRange,s=1+n+d.yearRange),l=[];a<s&&a<=d.maxYear;a++)a>=d.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return f='<div class="pika-label">'+n+d.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",d.showMonthAfterYear?b+=f+u:b+=u+f,p&&(0===r||d.minMonth>=r)&&(m=!1),h&&(11===r||d.maxMonth<=r)&&(y=!1),0===t&&(b+='<button class="pika-prev'+(m?"":" is-disabled")+'" type="button">'+d.i18n.previousMonth+"</button>"),t===e._o.numberOfMonths-1&&(b+='<button class="pika-next'+(y?"":" is-disabled")+'" type="button">'+d.i18n.nextMonth+"</button>"),b+"</div>"},C=function(a){var l=this,u=l.config(a);l._onMouseDown=function(e){if(l._v){var t=(e=e||window.event).target||e.srcElement;if(t)if(s(t,"is-disabled")||(!s(t,"pika-button")||s(t,"is-empty")||s(t.parentNode,"is-disabled")?s(t,"pika-prev")?l.prevMonth():s(t,"pika-next")&&l.nextMonth():(l.setDate(new Date(t.getAttribute("data-pika-year"),t.getAttribute("data-pika-month"),t.getAttribute("data-pika-day"))),u.bound&&o((function(){l.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()}),100))),s(t,"pika-select"))l._c=!0;else{if(!e.preventDefault)return e.returnValue=!1,!1;e.preventDefault()}}},l._onChange=function(e){var t=(e=e||window.event).target||e.srcElement;t&&(s(t,"pika-select-month")?l.gotoMonth(t.value):s(t,"pika-select-year")&&l.gotoYear(t.value))},l._onKeyChange=function(e){if(e=e||window.event,l.isVisible())switch(e.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:e.preventDefault(),l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7)}},l._onInputChange=function(n){var r;n.firedBy!==l&&(r=u.parse?u.parse(u.field.value,u.format):t?(r=e(u.field.value,u.format,u.formatStrict))&&r.isValid()?r.toDate():null:new Date(Date.parse(u.field.value)),f(r)&&l.setDate(r),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var e=r.activeElement;do{if(s(e,"pika-single"))return}while(e=e.parentNode);l._c||(l._b=o((function(){l.hide()}),50)),l._c=!1},l._onClick=function(e){var t=(e=e||window.event).target||e.srcElement,r=t;if(t){!n&&s(t,"pika-select")&&(t.onchange||(t.setAttribute("onchange","return;"),i(t,"change",l._onChange)));do{if(s(r,"pika-single")||r===u.trigger)return}while(r=r.parentNode);l._v&&t!==u.trigger&&r!==u.trigger&&l.hide()}},l.el=r.createElement("div"),l.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),i(l.el,"mousedown",l._onMouseDown,!0),i(l.el,"touchend",l._onMouseDown,!0),i(l.el,"change",l._onChange),u.keyboardInput&&i(r,"keydown",l._onKeyChange),u.field&&(u.container?u.container.appendChild(l.el):u.bound?r.body.appendChild(l.el):u.field.parentNode.insertBefore(l.el,u.field.nextSibling),i(u.field,"change",l._onInputChange),u.defaultDate||(t&&u.field.value?u.defaultDate=e(u.field.value,u.format).toDate():u.defaultDate=new Date(Date.parse(u.field.value)),u.setDefaultDate=!0));var c=u.defaultDate;f(c)?u.setDefaultDate?l.setDate(c,!0):l.gotoDate(c):l.gotoDate(new Date),u.bound?(this.hide(),l.el.className+=" is-bound",i(u.trigger,"click",l._onInputClick),i(u.trigger,"focus",l._onInputFocus),i(u.trigger,"blur",l._onInputBlur)):this.show()};return C.prototype={config:function(e){this._o||(this._o=y({},w,!0));var t=y(this._o,e,!0);t.isRTL=!!t.isRTL,t.field=t.field&&t.field.nodeName?t.field:null,t.theme="string"==typeof t.theme&&t.theme?t.theme:null,t.bound=!!(void 0!==t.bound?t.field&&t.bound:t.field),t.trigger=t.trigger&&t.trigger.nodeName?t.trigger:t.field,t.disableWeekends=!!t.disableWeekends,t.disableDayFn="function"==typeof t.disableDayFn?t.disableDayFn:null;var n=parseInt(t.numberOfMonths,10)||1;if(t.numberOfMonths=n>4?4:n,f(t.minDate)||(t.minDate=!1),f(t.maxDate)||(t.maxDate=!1),t.minDate&&t.maxDate&&t.maxDate<t.minDate&&(t.maxDate=t.minDate=!1),t.minDate&&this.setMinDate(t.minDate),t.maxDate&&this.setMaxDate(t.maxDate),c(t.yearRange)){var r=(new Date).getFullYear()-10;t.yearRange[0]=parseInt(t.yearRange[0],10)||r,t.yearRange[1]=parseInt(t.yearRange[1],10)||r}else t.yearRange=Math.abs(parseInt(t.yearRange,10))||w.yearRange,t.yearRange>100&&(t.yearRange=100);return t},toString:function(n){return n=n||this._o.format,f(this._d)?this._o.toString?this._o.toString(this._d,n):t?e(this._d).format(n):this._d.toDateString():""},getMoment:function(){return t?e(this._d):null},setMoment:function(n,r){t&&e.isMoment(n)&&this.setDate(n.toDate(),r)},getDate:function(){return f(this._d)?new Date(this._d.getTime()):null},setDate:function(e,t){if(!e)return this._d=null,this._o.field&&(this._o.field.value="",v(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof e&&(e=new Date(Date.parse(e))),f(e)){var n=this._o.minDate,r=this._o.maxDate;f(n)&&e<n?e=n:f(r)&&e>r&&(e=r),this._d=new Date(e.getTime()),b(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),v(this._o.field,"change",{firedBy:this})),t||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},gotoDate:function(e){var t=!0;if(f(e)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),r=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),o=e.getTime();r.setMonth(r.getMonth()+1),r.setDate(r.getDate()-1),t=o<n.getTime()||r.getTime()<o}t&&(this.calendars=[{month:e.getMonth(),year:e.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(e,t){var n,r=this.getDate()||new Date,o=24*parseInt(t)*60*60*1e3;"add"===e?n=new Date(r.valueOf()+o):"subtract"===e&&(n=new Date(r.valueOf()-o)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=g(this.calendars[0]);for(var e=1;e<this._o.numberOfMonths;e++)this.calendars[e]=g({month:this.calendars[0].month+e,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(e){isNaN(e)||(this.calendars[0].month=parseInt(e,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(e){isNaN(e)||(this.calendars[0].year=parseInt(e,10),this.adjustCalendars())},setMinDate:function(e){e instanceof Date?(b(e),this._o.minDate=e,this._o.minYear=e.getFullYear(),this._o.minMonth=e.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(e){e instanceof Date?(b(e),this._o.maxDate=e,this._o.maxYear=e.getFullYear(),this._o.maxMonth=e.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(e){this._o.startRange=e},setEndRange:function(e){this._o.endRange=e},draw:function(e){if(this._v||e){var t,n=this._o,r=n.minYear,i=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=r&&(this._y=r,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=i&&(this._y=i,!isNaN(s)&&this._m>s&&(this._m=s)),t="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2);for(var u=0;u<n.numberOfMonths;u++)l+='<div class="pika-lendar">'+k(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,t)+this.render(this.calendars[u].year,this.calendars[u].month,t)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&o((function(){n.trigger.focus()}),1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var e,t,n,o,i,a,s,c,f,d,p,h;if(!this._o.container){if(this.el.style.position="absolute",t=e=this._o.trigger,n=this.el.offsetWidth,o=this.el.offsetHeight,i=window.innerWidth||r.documentElement.clientWidth,a=window.innerHeight||r.documentElement.clientHeight,s=window.pageYOffset||r.body.scrollTop||r.documentElement.scrollTop,p=!0,h=!0,"function"==typeof e.getBoundingClientRect)c=(d=e.getBoundingClientRect()).left+window.pageXOffset,f=d.bottom+window.pageYOffset;else for(c=t.offsetLeft,f=t.offsetTop+t.offsetHeight;t=t.offsetParent;)c+=t.offsetLeft,f+=t.offsetTop;(this._o.reposition&&c+n>i||this._o.position.indexOf("right")>-1&&c-n+e.offsetWidth>0)&&(c=c-n+e.offsetWidth,p=!1),(this._o.reposition&&f+o>a+s||this._o.position.indexOf("top")>-1&&f-o-e.offsetHeight>0)&&(f=f-o-e.offsetHeight,h=!1),this.el.style.left=c+"px",this.el.style.top=f+"px",l(this.el,p?"left-aligned":"right-aligned"),l(this.el,h?"bottom-aligned":"top-aligned"),u(this.el,p?"right-aligned":"left-aligned"),u(this.el,h?"top-aligned":"bottom-aligned")}},render:function(e,t,n){var r=this._o,o=new Date,i=h(e,t),a=new Date(e,t,1).getDay(),s=[],l=[];b(o),r.firstDay>0&&(a-=r.firstDay)<0&&(a+=7);for(var u=0===t?11:t-1,c=11===t?0:t+1,p=0===t?e-1:e,y=11===t?e+1:e,v=h(p,u),g=i+a,w=g;w>7;)w-=7;g+=7-w;for(var k,C,x,_,P=!1,A=0,T=0;A<g;A++){var I=new Date(e,t,A-a+1),D=!!f(this._d)&&m(I,this._d),j=m(I,o),L=-1!==r.events.indexOf(I.toDateString()),R=A<a||A>=i+a,N=A-a+1,M=t,F=e,U=r.startRange&&m(r.startRange,I),B=r.endRange&&m(r.endRange,I),H=r.startRange&&r.endRange&&r.startRange<I&&I<r.endRange;R&&(A<a?(N=v+N,M=u,F=p):(N-=i,M=c,F=y));var z={day:N,month:M,year:F,hasEvent:L,isSelected:D,isToday:j,isDisabled:r.minDate&&I<r.minDate||r.maxDate&&I>r.maxDate||r.disableWeekends&&d(I)||r.disableDayFn&&r.disableDayFn(I),isEmpty:R,isStartRange:U,isEndRange:B,isInRange:H,showDaysInNextAndPreviousMonths:r.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:r.enableSelectionDaysInNextAndPreviousMonths};r.pickWholeWeek&&D&&(P=!0),l.push(S(z)),7==++T&&(r.showWeekNumber&&l.unshift((k=A-a,C=t,x=e,_=void 0,void 0,_=new Date(x,0,1),'<td class="pika-week">'+Math.ceil(((new Date(x,C,k)-_)/864e5+_.getDay()+1)/7)+"</td>")),s.push(O(l,r.isRTL,r.pickWholeWeek,P)),l=[],T=0,P=!1)}return function(e,t,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(e){var t,n=[];e.showWeekNumber&&n.push("<th></th>");for(t=0;t<7;t++)n.push('<th scope="col"><abbr title="'+E(e,t)+'">'+E(e,t,!0)+"</abbr></th>");return"<thead><tr>"+(e.isRTL?n.reverse():n).join("")+"</tr></thead>"}(e)+(r=t,"<tbody>"+r.join("")+"</tbody>")+"</table>";var r}(r,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(i(r,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var e=this._v;!1!==e&&(this._o.bound&&a(r,"click",this._onClick),this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto",l(this.el,"is-hidden"),this._v=!1,void 0!==e&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var e=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),e.keyboardInput&&a(r,"keydown",this._onKeyChange),e.field&&(a(e.field,"change",this._onInputChange),e.bound&&(a(e.trigger,"click",this._onInputClick),a(e.trigger,"focus",this._onInputFocus),a(e.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},C}(o)}()},function(e,t,n){"use strict";var r=n(0),o=n(5),i=n.n(o),a=n(12),s=n.n(a),l=n(120),u=n(20);n(664);function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var d=function(e){var t=e.className,n=void 0===t?"":t,o=e.description,a=e.error,d=e.errorTooltipPosition,p=e.hideLabel,h=e.hideOptionalLabel,b=e.isRequired,m=e.isResizable,y=e.label,v=e.textareaRef,g=f(e,["className","description","error","errorTooltipPosition","hideLabel","hideOptionalLabel","isRequired","isResizable","label","textareaRef"]),w=!!a,E=i()(n,"text-area-container",{"show-error":w}),S=r.useRef(s()("errorMessage")).current,O=r.useRef(s()("description")).current,k={"aria-invalid":w,"aria-required":b,"aria-errormessage":S,"aria-describedby":o?O:void 0};return r.createElement("div",{className:E},r.createElement(l.a,{hideLabel:p,showOptionalText:!h&&!b,text:y},!!o&&r.createElement("div",{id:O,className:"text-area-description"},o),r.createElement(u.c,{isShown:w,position:d||"bottom-left",text:a||"",theme:"error"},r.createElement("textarea",c({ref:v,required:b,style:{resize:m?"":"none"}},k,g))),r.createElement("span",{id:S,className:"accessibility-hidden",role:"alert"},a)))};d.displayName="TextArea";var p=d;n(7);n.d(t,"a",(function(){return p}))},,,,,function(e,t,n){},function(e,t,n){var r=n(641)("toUpperCase");e.exports=r},,,,,,function(e,t,n){var r=n(533),o=n(266),i=n(265);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&o(t,n,a)&&(n=a=void 0),t=i(t),void 0===n?(n=t,t=0):n=i(n),a=void 0===a?t<n?1:-1:i(a),r(t,n,a,e)}}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,o,i){for(var a=-1,s=r(n((t-e)/(o||1)),0),l=Array(s);s--;)l[i?s:++a]=e,e+=o;return l}},function(e,t,n){},function(e,t){window.Element.prototype.closest=function(e){window.Element.prototype.matches||(window.Element.prototype.matches=window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector);var t=this;do{if(t.matches(e))return t;t=t.parentElement||t.parentNode}while(null!==t&&1===t.nodeType);return null}},function(e,t,n){},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){function r(e){return(r="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)}var o=n(624),i=n(634),a=n(189),s=n(31),l=n(637);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==r(e)?s(e)?i(e[0],e[1]):o(e):l(e)}},function(e,t,n){var r=n(186),o=n(627),i=n(628);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},function(e,t){e.exports=function(e,t){return e.has(t)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r=n(0),o=n(203),i=n(291);t.a=function(e){var t=e.children;return r.createElement(i.a,{className:"notifications-wrapper","aria-live":"polite"},t?r.createElement(o.a,null,t):null)}},,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r=n(625),o=n(633),i=n(497);e.exports=function(e){var t=o(e);return 1==t.length&&t[0][2]?i(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(152),o=n(304),i=1,a=2;e.exports=function(e,t,n,s){var l=n.length,u=l,c=!s;if(null==e)return!u;for(e=Object(e);l--;){var f=n[l];if(c&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++l<u;){var d=(f=n[l])[0],p=e[d],h=f[1];if(c&&f[2]){if(void 0===p&&!(d in e))return!1}else{var b=new r;if(s)var m=s(p,h,d,e,t,b);if(!(void 0===m?o(h,p,i|a,s,b):m))return!1}}return!0}},function(e,t,n){var r=n(152),o=n(495),i=n(630),a=n(632),s=n(142),l=n(31),u=n(141),c=n(187),f=1,d="[object Arguments]",p="[object Array]",h="[object Object]",b=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,y,v){var g=l(e),w=l(t),E=g?p:s(e),S=w?p:s(t),O=(E=E==d?h:E)==h,k=(S=S==d?h:S)==h,C=E==S;if(C&&u(e)){if(!u(t))return!1;g=!0,O=!1}if(C&&!O)return v||(v=new r),g||c(e)?o(e,t,n,m,y,v):i(e,t,E,n,m,y,v);if(!(n&f)){var x=O&&b.call(e,"__wrapped__"),_=k&&b.call(t,"__wrapped__");if(x||_){var P=x?e.value():e,A=_?t.value():t;return v||(v=new r),y(P,A,n,m,v)}}return!!C&&(v||(v=new r),a(e,t,n,m,y,v))}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(85),o=n(270),i=n(109),a=n(495),s=n(631),l=n(537),u=1,c=2,f="[object Boolean]",d="[object Date]",p="[object Error]",h="[object Map]",b="[object Number]",m="[object RegExp]",y="[object Set]",v="[object String]",g="[object Symbol]",w="[object ArrayBuffer]",E="[object DataView]",S=r?r.prototype:void 0,O=S?S.valueOf:void 0;e.exports=function(e,t,n,r,S,k,C){switch(n){case E:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case w:return!(e.byteLength!=t.byteLength||!k(new o(e),new o(t)));case f:case d:case b:return i(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case v:return e==t+"";case h:var x=s;case y:var _=r&u;if(x||(x=l),e.size!=t.size&&!_)return!1;var P=C.get(e);if(P)return P==t;r|=c,C.set(e,t);var A=a(x(e),x(t),r,S,k,C);return C.delete(e),A;case g:if(O)return O.call(e)==O.call(t)}return!1}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},function(e,t,n){var r=n(269),o=1,i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,l){var u=n&o,c=r(e),f=c.length;if(f!=r(t).length&&!u)return!1;for(var d=f;d--;){var p=c[d];if(!(u?p in t:i.call(t,p)))return!1}var h=l.get(e);if(h&&l.get(t))return h==t;var b=!0;l.set(e,t),l.set(t,e);for(var m=u;++d<f;){var y=e[p=c[d]],v=t[p];if(a)var g=u?a(v,y,p,t,e,l):a(y,v,p,e,t,l);if(!(void 0===g?y===v||s(y,v,n,a,l):g)){b=!1;break}m||(m="constructor"==p)}if(b&&!m){var w=e.constructor,E=t.constructor;w!=E&&"constructor"in e&&"constructor"in t&&!("function"==typeof w&&w instanceof w&&"function"==typeof E&&E instanceof E)&&(b=!1)}return l.delete(e),l.delete(t),b}},function(e,t,n){var r=n(496),o=n(106);e.exports=function(e){for(var t=o(e),n=t.length;n--;){var i=t[n],a=e[i];t[n]=[i,a,r(a)]}return t}},function(e,t,n){var r=n(304),o=n(7),i=n(635),a=n(208),s=n(496),l=n(497),u=n(95),c=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?l(u(e),t):function(n){var a=o(n,e);return void 0===a&&a===t?i(n,e):r(t,a,c|f)}}},function(e,t,n){var r=n(636),o=n(272);e.exports=function(e,t){return null!=e&&o(e,t,r)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(638),o=n(639),i=n(208),a=n(95);e.exports=function(e){return i(e)?r(a(e)):o(e)}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(188);e.exports=function(e){return function(t){return r(t,e)}}},,function(e,t,n){var r=n(642),o=n(499),i=n(643),a=n(94);e.exports=function(e){return function(t){t=a(t);var n=o(t)?i(t):void 0,s=n?n[0]:t.charAt(0),l=n?r(n,1).join(""):t.slice(1);return s[e]()+l}}},function(e,t,n){var r=n(271);e.exports=function(e,t,n){var o=e.length;return n=void 0===n?o:n,!t&&n>=o?e:r(e,t,n)}},function(e,t,n){var r=n(644),o=n(499),i=n(645);e.exports=function(e){return o(e)?i(e):r(e)}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\\ud83c[\\udffb-\\udfff]",i="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+r+"|"+o+")"+"?",u="[\\ufe0e\\ufe0f]?"+l+("(?:\\u200d(?:"+[i,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+l+")*"),c="(?:"+[i+r+"?",r,a,s,n].join("|")+")",f=RegExp(o+"(?="+o+")|"+c+u,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";function r(e){return(r="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 o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var i=n(1051),a=n(1053),s={defaultTlds:{allow:n(1059),deny:null}};e.exports={domain:{analyze:function(e,t){return t=s.options(t),i.analyze(e,t)},isValid:function(e,t){return t=s.options(t),i.isValid(e,t)}},email:{analyze:function(e,t){return t=s.options(t),a.analyze(e,t)},isValid:function(e,t){return t=s.options(t),a.isValid(e,t)}}},s.options=function(e){if(!e)return{tlds:s.defaultTlds};if(!1===e.tlds)return e;if(!e.tlds||!0===e.tlds)return o({},e,{tlds:s.defaultTlds});if("object"!==r(e.tlds))throw new Error("Invalid options: tlds must be a boolean or an object");if(e.tlds.deny){if(e.tlds.deny instanceof Set==!1)throw new Error("Invalid options: tlds.deny must be a Set object");if(e.tlds.allow)throw new Error("Invalid options: cannot specify both tlds.allow and tlds.deny lists");return e}if(!0===e.tlds.allow)return o({},e,{tlds:s.defaultTlds});if(e.tlds.allow instanceof Set==!1)throw new Error("Invalid options: tlds.allow must be a Set object or true");return e}},,,function(e,t,n){"use strict";var r=n(1052),o={minDomainSegments:2};t.nonAsciiRx=/[^\x00-\x7f]/,o.tldSegmentRx=/^[a-zA-Z](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,o.domainSegmentRx=/^[a-zA-Z0-9](?:[a-zA-Z0-9\-]*[a-zA-Z0-9])?$/,t.domain=function(e,n){var r=n.minDomainSegments||o.minDomainSegments,i=e.split(".");if(i.length<r)return t.error("Domain lacks the minimum required number of segments");var a=n.tlds;if(a){var s=i[i.length-1].toLowerCase();if(a.deny&&a.deny.has(s)||a.allow&&!a.allow.has(s))return t.error("Domain uses forbidden TLD")}for(var l=0;l<i.length;++l){var u=i[l];if(!u.length)return t.error("Domain contains empty dot-separated segment");if(u.length>63)return t.error("Domain contains dot-separated segment that is too long");if(l<i.length-1){if(!o.domainSegmentRx.test(u))return t.error("Domain contains invalid character")}else if(!o.tldSegmentRx.test(u))return t.error("Domain contains invalid tld character")}},t.error=function(e){return{error:e}},t.punycode=function(e){return r.toASCII(e)}},,,,,,,,,,function(e,t,n){var r=n(565),o=n(1047);e.exports=function(e,t){return e&&e.length?o(e,r(t,2)):[]}},function(e,t,n){var r=n(94),o=/[\\^$.*+?()[\]{}|]/g,i=RegExp(o.source);e.exports=function(e){return(e=r(e))&&i.test(e)?e.replace(o,"\\$&"):e}},function(e,t,n){"use strict";n(264);var r=n(0),o=n.n(r),i=n(54),a=n(3),s=n.n(a),l=n(81),u=n(132),c=n(179),f=n(25),d=n(48),p=n(173),h=n(255),b=n(107),m=Object(b.defineMessages)({contentSharedWithExternalCollaborators:{id:"boxui.unifiedShare.contentSharedWithExternalCollaborators",defaultMessage:"This content will be shared with external collaborators."},disabledShareLinkPermission:{id:"boxui.unifiedShare.disabledShareLinkPermission",defaultMessage:"This option isn’t available for this item due to a security restriction or classification."},disabledMaliciousContentShareLinkPermission:{id:"boxui.unifiedShare.disabledMaliciousContentShareLinkPermission",defaultMessage:"This option isn’t available for this item due to a security policy."},enterAtLeastOneEmailError:{id:"boxui.unifiedShare.enterAtLeastOneEmail",defaultMessage:"Enter at least one valid email"},contactsExceedLimitError:{id:"boxui.unifiedShare.contactsExceedLimitError",defaultMessage:"Oops! The maximum number of collaborators that can be added at once is {maxContacts} collaborators. Please try again by splitting your invitations into batches."},enterEmailAddressesCalloutText:{id:"boxui.unifiedShare.enterEmailAddressesCalloutText",defaultMessage:"Share this item with coworkers by entering their email addresses"},ftuxNewUSMUserTitle:{id:"boxui.unifiedShare.ftuxNewUsmUserTitle",defaultMessage:"Simplified sharing for files and folders"},ftuxNewUSMUserBody:{id:"boxui.unifiedShare.ftuxNewUSMUserBody",defaultMessage:"We’ve simplified the sharing experience when you click 'Share'. Invite people to this item here and toggle the link on or off below for easy sharing."},ftuxLinkText:{id:"boxui.unifiedShare.ftuxLinkText",defaultMessage:"Read more about shared link security here."},ftuxConfirmLabel:{id:"boxui.unifiedShare.ftuxConfirmLabel",defaultMessage:"Got it"},collaboratorListTitle:{id:"boxui.unifiedShare.collaboratorListTitle",defaultMessage:"People in ‘{itemName}’"},expirationTooltipClickableText:{id:"boxui.unifiedShare.collaborators.expirationTooltipClickableText",defaultMessage:"Access expires on {date}. Click for details."},groupLabel:{id:"boxui.unifiedShare.groupLabel",defaultMessage:"Group"},modalTitle:{id:"boxui.unifiedShare.modalTitle",defaultMessage:"Share ‘{itemName}’"},emailModalTitle:{id:"boxui.unifiedShare.emailModalTitle",defaultMessage:"Send Link to ‘{itemName}’"},inviteDisabledTooltip:{id:"boxui.unifiedShare.inviteDisabledTooltip",defaultMessage:"You do not have permission to invite collaborators."},inviteDisabledWeblinkTooltip:{id:"boxui.unifiedShare.inviteDisabledWeblinkTooltip",defaultMessage:"Collaborators cannot be added to bookmarks."},inviteFieldLabel:{id:"boxui.unifiedShare.inviteFieldLabel",defaultMessage:"Invite People"},sharedLinkSectionLabel:{id:"boxui.unifiedShare.sharedLinkSectionLabel",defaultMessage:"Share Link"},sharedLinkURLLabel:{id:"boxui.share.sharedLinkURLLabel",defaultMessage:"URL"},settingsButtonLabel:{id:"boxui.unifiedShare.settingsButtonLabel",defaultMessage:"Open shared link settings popup"},linkShareOff:{id:"boxui.unifiedShare.linkShareOff",defaultMessage:"Create shared link"},linkShareOn:{id:"boxui.unifiedShare.linkShareOn",defaultMessage:"Shared link is created"},messageTitle:{id:"boxui.unifiedShare.message",defaultMessage:"Message"},suggestedCollabsTitle:{id:"boxui.unifiedShare.suggestedCollabsTitle",defaultMessage:"Suggested"},peopleInEnterpriseName:{id:"boxui.unifiedShare.peopleInEnterpriseName",defaultMessage:"People in {enterpriseName}"},peopleInYourCompany:{id:"boxui.unifiedShare.peopleInYourCompany",defaultMessage:"People in your company"},peopleInThisFolder:{id:"boxui.unifiedShare.peopleInThisFolder",defaultMessage:"Invited people only"},peopleInThisFile:{id:"boxui.unifiedShare.peopleInThisFile",defaultMessage:"Invited people only"},peopleWithTheLinkText:{id:"boxui.unifiedShare.peopleWithTheLinkText",defaultMessage:"People with the link"},removeLinkConfirmationTitle:{id:"boxui.unifiedShare.removeLinkConfirmationTitle",defaultMessage:"Remove Shared Link"},removeLinkConfirmationDescription:{id:"boxui.unifiedShare.removeLinkConfirmationDescription",defaultMessage:"This will permanently remove the shared link. If this item is embedded on other sites it will also become inaccessible. Any custom properties, settings and expirations will be removed as well. Do you want to continue?"},removeLinkTooltip:{id:"boxui.unifiedShare.removeLinkTooltip",defaultMessage:"You do not have permission to remove the link."},disabledCreateLinkTooltip:{id:"boxui.unifiedShare.disabledCreateLinkTooltip",defaultMessage:"You do not have permission to create the link."},sendSharedLink:{id:"boxui.unifiedShare.sendSharedLink",defaultMessage:"Send Shared Link"},sendSharedLinkFieldLabel:{id:"boxui.unifiedShare.sendSharedLinkFieldLabel",defaultMessage:"Email Shared Link"},sharedLinkExpirationTooltip:{id:"boxui.unifiedShare.sharedLinkExpirationTooltip",defaultMessage:"This link will expire and be inaccessible on {expiration, date, long}."},sharedLinkPermissionsViewDownload:{id:"boxui.unifiedShare.sharedLinkPermissionsViewDownload",defaultMessage:"Can view and download"},sharedLinkPermissionsViewDownloadDescription:{id:"boxui.unifiedShare.sharedLinkPermissionsViewDownloadDescription",defaultMessage:"Users can view and download"},sharedLinkPermissionsViewOnly:{id:"boxui.unifiedShare.sharedLinkPermissionsViewOnly",defaultMessage:"Can view only"},sharedLinkPermissionsEdit:{id:"boxui.unifiedShare.sharedLinkPermissionsEdit",defaultMessage:"Can edit"},sharedLinkPermissionsEditTooltip:{id:"boxui.unifiedShare.sharedLinkPermissionsEditTooltip",defaultMessage:"This permission can only be changed in Box Notes"},sharedLinkPermissionsViewOnlyDescription:{id:"boxui.unifiedShare.sharedLinkPermissionsViewOnlyDescription",defaultMessage:"Users can view only"},sharedLinkDisabledTooltipCopy:{id:"boxui.unifiedShare.sharedLinkDisabledTooltipCopy",defaultMessage:"Create and copy link for sharing"},sharedLinkSettingsCalloutText:{id:"boxui.unifiedShare.sharedLinkSettingsCalloutText",defaultMessage:"Create a custom URL, enable password protection, enable link expiration, and much more"},sharedLinkPubliclyAvailable:{id:"boxui.unifiedShare.sharedLinkPubliclyAvailable",defaultMessage:"This content is publicly available to anyone with the link."},upgradeGetMoreAccessControlsDescription:{id:"boxui.unifiedShare.upgradeGetMoreAccessControlsDescription",defaultMessage:"62% of customers on your plan {upgradeGetMoreAccessControlsLink} to manage collaborators’ access and permission settings"},upgradeGetMoreAccessControlsLink:{id:"boxui.unifiedShare.upgradeGetMoreAccessControlsLink",defaultMessage:"upgrade"},sharedLinkSettings:{id:"boxui.unifiedShare.sharedLinkSettings",defaultMessage:"Link Settings"},peopleWithLinkDescription:{id:"boxui.unifiedShare.peopleWithLinkDescription",defaultMessage:"Publicly accessible and no sign-in required"},peopleInSpecifiedCompanyCanAccessFolder:{id:"boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFolder",defaultMessage:"Anyone at {company} with the link or people invited to this folder can access"},peopleInCompanyCanAccessFolder:{id:"boxui.unifiedShare.peopleInCompanyCanAccessFolder",defaultMessage:"Anyone in your company with the link or people invited to this folder can access"},peopleInSpecifiedCompanyCanAccessFile:{id:"boxui.unifiedShare.peopleInSpecifiedCompanyCanAccessFile",defaultMessage:"Anyone at {company} with the link or people invited to this file can access"},peopleInCompanyCanAccessFile:{id:"boxui.unifiedShare.peopleInCompanyCanAccessFile",defaultMessage:"Anyone in your company with the link or people invited to this file can access"},peopleInItemCanAccessFolder:{id:"boxui.unifiedShare.peopleInItemCanAccessFolder",defaultMessage:"Only invited people can access this folder"},peopleInItemCanAccessFile:{id:"boxui.unifiedShare.peopleInItemCanAccessFile",defaultMessage:"Only invited people can access this file"},coownerLevelButtonLabel:{id:"boxui.unifiedShare.coownerLevelButtonLabel",defaultMessage:"Invite as Co-owner"},coownerLevelText:{id:"boxui.unifiedShare.coownerLevelText",defaultMessage:"Co-owner"},coownerLevelDescription:{id:"boxui.unifiedShare.coownerLevelDescription",defaultMessage:"Manage security, upload, download, preview, share, edit, and delete"},editorLevelButtonLabel:{id:"boxui.unifiedShare.editorLevelButtonLabel",defaultMessage:"Invite as Editor"},editorLevelText:{id:"boxui.unifiedShare.editorLevelText",defaultMessage:"Editor"},editorLevelDescription:{id:"boxui.unifiedShare.editorLevelDescription",defaultMessage:"Upload, download, preview, share, edit, and delete"},editorLevelFileDescription:{id:"boxui.unifiedShare.editorLevelFileDescription",defaultMessage:"Upload, download, preview, share, and edit"},previewerLevelButtonLabel:{id:"boxui.unifiedShare.previewerLevelButtonLabel",defaultMessage:"Invite as Previewer"},previewerLevelText:{id:"boxui.unifiedShare.previewerLevelText",defaultMessage:"Previewer"},previewerLevelDescription:{id:"boxui.unifiedShare.previewerLevelDescription",defaultMessage:"Preview only"},previewerUploaderLevelButtonLabel:{id:"boxui.unifiedShare.previewerUploaderLevelButtonLabel",defaultMessage:"Invite as Previewer Uploader"},previewerUploaderLevelText:{id:"boxui.unifiedShare.previewerUploaderLevelText",defaultMessage:"Previewer Uploader"},previewerUploaderLevelDescription:{id:"boxui.unifiedShare.previewerUploaderLevelDescription",defaultMessage:"Upload and preview"},viewerLevelButtonLabel:{id:"boxui.unifiedShare.viewerLevelButtonLabel",defaultMessage:"Invite as Viewer"},viewerLevelText:{id:"boxui.unifiedShare.viewerLevelText",defaultMessage:"Viewer"},viewerLevelDescription:{id:"boxui.unifiedShare.viewerLevelDescription",defaultMessage:"Download, preview, and share"},viewerUploaderLevelButtonLabel:{id:"boxui.unifiedShare.viewerUploaderLevelButtonLabel",defaultMessage:"Invite as Viewer Uploader"},viewerUploaderLevelText:{id:"boxui.unifiedShare.viewerUploaderLevelText",defaultMessage:"Viewer Uploader"},viewerUploaderLevelDescription:{id:"boxui.unifiedShare.viewerUploaderLevelDescription",defaultMessage:"Upload, download, preview, share, and edit"},uploaderLevelButtonLabel:{id:"boxui.unifiedShare.uploaderLevelButtonLabel",defaultMessage:"Invite as Uploader"},uploaderLevelText:{id:"boxui.unifiedShare.uploaderLevelText",defaultMessage:"Uploader"},uploaderLevelDescription:{id:"boxui.unifiedShare.uploaderLevelDescription",defaultMessage:"Upload only"},userCollabText:{id:"boxui.unifiedShare.collaboration.userCollabText",defaultMessage:"User"},groupCollabText:{id:"boxui.unifiedShare.collaboration.groupCollabText",defaultMessage:"Group"},recommendedSharingTooltipCalloutText:{id:"boxui.unifiedShare.recommendedSharingTooltipCalloutText",defaultMessage:"Based on your usage, we think {fullName} would be interested in this file."}});function y(){return(y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var v=function(e){var t=e.isEmailLinkSectionExpanded,n=e.showCollaboratorList,r=e.item,i=function(e,t,n){var r=n.name;return e?o.a.createElement(l.a,y({},m.emailModalTitle,{values:{itemName:r}})):t?o.a.createElement(l.a,y({},m.collaboratorListTitle,{values:{itemName:r}})):o.a.createElement(l.a,y({},m.modalTitle,{values:{itemName:r}}))}(t,n,r),a=r.bannerPolicy,s=r.canUserSeeClassification,u=r.classification,c=Object(h.d)(a);return o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{className:"bdl-UnifiedShareModalTitle"},i),s&&o.a.createElement(h.c,{definition:a?a.body:void 0,messageStyle:"tooltip",name:u,color:c,className:"bdl-UnifiedShareModalTitle-classification"}))},g=n(49),w=n(150),E=n(26),S=n(5),O=n.n(S);n(1042);function k(){return(k=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var x=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.type,a=void 0===i?"default":i,s=C(e,["children","className","type"]),l=O()("badge","default"!==a?"badge-".concat(a):"",o);return r.createElement("span",k({className:l},s),t)},_=Object(b.defineMessages)({beta:{id:"boxui.badges.beta",defaultMessage:"BETA"},trial:{id:"boxui.badges.trial",defaultMessage:"TRIAL"},upgrade:{id:"boxui.badges.upgrade",defaultMessage:"UPGRADE"}});function P(){return(P=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function A(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var T=function(e){var t=e.className,n=void 0===t?"":t,o=A(e,["className"]),i=O()("upgrade-badge",n);return r.createElement(x,P({className:i},o),r.createElement(l.a,_.upgrade))},I=n(114),D=n(20),j=n(259),L=n(39),R=n(156),N=n(9),M=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?"#494949":o,a=e.height,s=void 0===a?14:a,l=e.title,u=e.width,c=void 0===u?14:u;return r.createElement(N.a,{className:"icon-expiration-badge ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("circle",{className:"fill-color",cx:"8",cy:"8",fill:i,r:"8"}),r.createElement("path",{d:"M8,1.5C4.4,1.5,1.5,4.4,1.5,8s2.9,6.5,6.5,6.5s6.5-2.9,6.5-6.5S11.6,1.5,8,1.5z M8,13.5C5,13.5,2.5,11,2.5,8 C2.5,5,5,2.5,8,2.5S13.5,5,13.5,8C13.5,11,11,13.5,8,13.5z",fill:"#FFFFFF"}),r.createElement("polygon",{fill:"#FFFFFF",points:"8.5,8.2 8.5,3.5 7.5,3.5 7.5,8.5 9.7,11.3 10.5,10.7 "}))},F=Object(b.defineMessages)({collaboratorAvatarsLabel:{id:"boxui.collaboratorAvatars.collaboratorAvatarsLabel",defaultMessage:"Shared with"},expirationTooltipText:{id:"boxui.collaboratorAvatars.collaborators.expirationTooltipText",defaultMessage:"Access expires on {date}"},externalCollabTooltipText:{id:"boxui.collaboratorAvatars.collaborators.externalCollabTooltipText",defaultMessage:"{email} is from outside of your company"},manageAllLinkText:{id:"boxui.collaboratorAvatars.manageAllLinkText",defaultMessage:"Manage All"},pendingCollabText:{id:"boxui.collaboratorAvatars.collaboration.pendingCollabText",defaultMessage:"Pending"},viewAdditionalPeopleText:{id:"boxui.collaboratorAvatars.viewAdditionalPeopleText",defaultMessage:"View additional people"}});function U(){return(U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function B(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var H=function(e){var t=e.allowBadging,n=void 0!==t&&t,r=e.expiration,i=e.isExternalCollab,a=void 0!==i&&i,s=e.hasCustomAvatar,u=e.avatarUrl,c=e.name,f=B(e,["allowBadging","expiration","isExternalCollab","hasCustomAvatar","avatarUrl","name"]),d=s&&u?o.a.createElement(R.a,U({avatarUrl:u,name:c},f,{isExternal:a,shouldShowExternal:n})):o.a.createElement(R.a,U({name:c||"-"},f,{isExternal:a,shouldShowExternal:n})),p=n&&r&&r.executeAt?o.a.createElement(L.c,{position:"middle-right",text:o.a.createElement(l.a,U({},F.expirationTooltipText,{values:{date:r.executeAt}}))},o.a.createElement("div",null,o.a.createElement(M,{className:"themed",height:14,width:14}))):null;return o.a.createElement(j.a,{topLeft:p},d)},z=n(19);n(1043);function V(e){return(V="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 W(){return(W=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function G(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function q(e,t){return!t||"object"!==V(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var Y,Q,J,$=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),q(this,X(t).apply(this,arguments))}var n,r,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&&K(e,t)}(t,e),n=t,(r=[{key:"isVisible",value:function(){return this.props.collaborators.length>0}},{key:"hasAdditionalCollaborators",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars;return t.length>n}},{key:"collaboratorsOverMaxCount",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars,r=e.maxAdditionalCollaboratorsNum;return t.length-n>r}},{key:"formatAdditionalCollaboratorCount",value:function(){var e=this.props,t=e.maxAdditionalCollaboratorsNum,n=e.maxDisplayedUserAvatars,r=e.collaborators;return this.collaboratorsOverMaxCount()?"".concat(t,"+"):"+".concat(r.length-n)}},{key:"render",value:function(){var e=this.props,t=e.collaborators,n=e.maxDisplayedUserAvatars,r=e.containerAttributes,i=e.onClick;return o.a.createElement(z.a,W({className:O()("collaborator-avatar-container",{"are-avatars-hidden":!this.isVisible()}),onClick:i},r,{"aria-hidden":this.isVisible()?"false":"true",type:"button"}),o.a.createElement("div",{className:"avatars-label"},o.a.createElement(l.a,F.collaboratorAvatarsLabel)),o.a.createElement("div",{className:"avatars"},this.isVisible()&&t.slice(0,n).map((function(e,t){var n=e.collabID,r=e.imageURL,i=e.hasCustomAvatar,a=e.name;return o.a.createElement(H,{key:"collab-avatar-".concat(n),avatarUrl:r,hasCustomAvatar:i,id:t,name:a})}))),this.isVisible()&&this.hasAdditionalCollaborators()&&o.a.createElement("div",{className:"avatars-count"},this.formatAdditionalCollaboratorCount()))}}])&&G(n.prototype,r),i&&G(n,i),t}(r.Component);J={maxDisplayedUserAvatars:3,maxAdditionalCollaboratorsNum:99,containerAttributes:{}},(Q="defaultProps")in(Y=$)?Object.defineProperty(Y,Q,{value:J,enumerable:!0,configurable:!0,writable:!0}):Y[Q]=J;var Z=$,ee=n(2),te=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ee.b:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(N.a,{className:"collaboration-badge ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("g",{fill:"none",fillRule:"evenodd"},r.createElement("path",{className:"fill-color",d:"M0 8c0 .62.07 1.23.21 1.824C.47 10.95.975 12 1.682 12.91c.792 1.017 1.82 1.832 2.994 2.37C5.71 15.75 6.837 16 8 16c4.418 0 8-3.582 8-8 0-.26-.21-.47-.47-.47s-.47.21-.47.47c0 3.898-3.162 7.06-7.06 7.06-1.026 0-2.02-.22-2.932-.637-1.035-.473-1.943-1.193-2.642-2.092-.624-.8-1.07-1.727-1.3-2.72C1.003 9.087.94 8.548.94 8 .94 4.102 4.103.94 8 .94c.26 0 .47-.21.47-.47S8.26 0 8 0C3.582 0 0 3.582 0 8z",fill:i}),r.createElement("path",{className:"fill-color",d:"M9 6c0-.552-.448-1-1-1s-1 .448-1 1 .448 1 1 1 1-.448 1-1zM6 6c0-1.105.895-2 2-2s2 .895 2 2-.895 2-2 2-2-.895-2-2zM5.59 11.014c.63-.32 1.354-.514 2.16-.514s1.53.193 2.16.514c.374.19.63.376.75.488.2.188.517.177.706-.024.188-.202.177-.52-.025-.707-.183-.17-.512-.41-.976-.647C9.6 9.733 8.724 9.5 7.75 9.5c-.973 0-1.85.233-2.614.623-.464.236-.793.476-.977.648-.203.19-.214.506-.026.708.19.2.505.212.707.024.12-.112.376-.298.75-.488zM14 2V.498C14 .215 13.776 0 13.5 0c-.268 0-.5.223-.5.498V2h-1.502c-.283 0-.498.224-.498.5 0 .268.223.5.498.5H13v1.502c0 .283.224.498.5.498.268 0 .5-.223.5-.498V3h1.502c.283 0 .498-.224.498-.5 0-.268-.223-.5-.498-.5H14z",fill:i})))},ne=n(28);n(1044);function re(){return(re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var oe=function(e){var t=e.index,n=e.trackingProps,r=n.usernameProps,i=n.emailProps,a=e.collaborator,s=a.email,u=a.expiration,c=a.hasCustomAvatar,f=a.name,d=a.type,p=a.imageURL,h=a.isExternalCollab,b=a.profileURL,m=a.translatedRole,y=a.userID,v="group"!==d?o.a.createElement("div",{className:O()("name",d)},o.a.createElement(w.a,re({href:b||"/profile/".concat(y),rel:"noopener",target:"_blank",title:f},r),f)):o.a.createElement("div",{className:O()("name",d)},f),g="group"!==d&&s?o.a.createElement("div",{className:"email"},o.a.createElement(w.a,re({href:"mailto:".concat(s),title:s},i),s)):null;return o.a.createElement("li",null,o.a.createElement("div",{className:"collaborator-list-item"},o.a.createElement("div",{className:"user"},o.a.createElement(H,{allowBadging:!0,avatarUrl:p,email:s,expiration:u,hasCustomAvatar:c,id:t,isExternalCollab:h,name:f}),o.a.createElement("div",{className:"info"},v,g)),o.a.createElement("div",{className:"role"},"pending"===d?o.a.createElement(l.a,F.pendingCollabText):m)))};n(1045);function ie(e){return(ie="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 ae(){return(ae=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function se(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function le(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var fe=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),le(this,ue(t).apply(this,arguments))}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&&ce(e,t)}(t,e),n=t,(o=[{key:"createCollaboratorPageLink",value:function(e,t){var n=this.props.item,o=n.type,i=n.id,a="/".concat(o,"/").concat(i,"/collaborators/");return r.createElement(w.a,ae({href:a,rel:"noopener",target:"_blank"},t),e)}},{key:"render",value:function(){var e=this.props,t=e.collaborators,n=e.onDoneClick,o=e.maxCollaboratorListSize,i=e.trackingProps,a=i.usernameProps,s=i.emailProps,u=i.manageLinkProps,c=i.viewAdditionalProps,f=i.doneButtonProps,d=r.createElement(z.a,{className:"manage-all-btn",type:"button"},r.createElement(l.a,F.manageAllLinkText)),h=Math.min(o,90);return r.createElement("div",{className:"usm-collaborator-list"},r.createElement("div",{className:"manage-all-btn-container"},this.createCollaboratorPageLink(d,u)),r.createElement("ul",{className:"be collaborator-list"},t.slice(0,h).map((function(e,t){var n=e.collabID,o=e.type;return r.createElement(oe,{key:"".concat(n,"-").concat(o),collaborator:e,index:t,trackingProps:{usernameProps:a,emailProps:s}})})),t.length>h&&r.createElement("li",{className:"collaborator-list-item more"},r.createElement("div",null,r.createElement(te,{height:32,width:32})),r.createElement("div",null,this.createCollaboratorPageLink(r.createElement(l.a,F.viewAdditionalPeopleText),c)))),r.createElement(p.b,null,r.createElement(E.b,ae({className:"btn-done",onClick:n},f),r.createElement(l.a,ne.a.done))))}}])&&se(n.prototype,o),i&&se(n,i),t}(r.Component);!function(e,t,n){t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n}(fe,"defaultProps",{maxCollaboratorListSize:90});var de=fe,pe=n(121),he=n(43),be="peopleWithTheLink",me="peopleInThisItem",ye={peopleInThisItem:!0,peopleInYourCompany:!0,peopleWithTheLink:!0},ve=[{default:!1,text:"Co-owner",value:"Co-owner"},{default:!0,text:"Editor",value:"Editor"},{default:!1,text:"Previewer",value:"Previewer"},{default:!1,text:"Previewer Uploader",value:"Previewer Uploader"},{default:!1,text:"Uploader",value:"Uploader"},{default:!1,text:"Viewer",value:"Viewer"},{default:!1,text:"Viewer Uploader",value:"Viewer Uploader"}],ge=function(e){return e.reduce((function(e,t){return t.default?t.value:e}),"Editor")};function we(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ee=function(e){var t,n=e.inviteePermissionLevel,r=(we(t={},"Editor","folder"===e.itemType?m.editorLevelDescription:m.editorLevelFileDescription),we(t,"Co-owner",m.coownerLevelDescription),we(t,"Viewer Uploader",m.viewerUploaderLevelDescription),we(t,"Previewer Uploader",m.previewerUploaderLevelDescription),we(t,"Viewer",m.viewerLevelDescription),we(t,"Previewer",m.previewerLevelDescription),we(t,"Uploader",m.uploaderLevelDescription),t)[n];return o.a.createElement("small",{className:"usm-menu-description"},o.a.createElement(l.a,r))};function Se(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Oe=function(e){var t,n,r=e.hasDescription,i=e.inviteePermissionLevel,a=e.itemType,s=(Se(t={},"Editor",m.editorLevelText),Se(t,"Co-owner",m.coownerLevelText),Se(t,"Viewer Uploader",m.viewerUploaderLevelText),Se(t,"Previewer Uploader",m.previewerUploaderLevelText),Se(t,"Viewer",m.viewerLevelText),Se(t,"Previewer",m.previewerLevelText),Se(t,"Uploader",m.uploaderLevelText),t),u=(Se(n={},"Editor",m.editorLevelButtonLabel),Se(n,"Co-owner",m.coownerLevelButtonLabel),Se(n,"Viewer Uploader",m.viewerUploaderLevelButtonLabel),Se(n,"Previewer Uploader",m.previewerUploaderLevelButtonLabel),Se(n,"Viewer",m.viewerLevelButtonLabel),Se(n,"Previewer",m.previewerLevelButtonLabel),Se(n,"Uploader",m.uploaderLevelButtonLabel),n);return r?o.a.createElement("span",null,o.a.createElement("strong",null,o.a.createElement(l.a,s[i])," "),o.a.createElement(Ee,{inviteePermissionLevel:i,itemType:a})):o.a.createElement(l.a,u[i])};function ke(e){return(ke="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 Ce(){return(Ce=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ae(e,t){return(Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ie=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==ke(t)&&"function"!=typeof t?Pe(e):t}(this,(e=_e(t)).call.apply(e,[this].concat(o))),Te(Pe(n),"onChangeInviteePermissionsLevel",(function(e){var t=n.props,r=t.inviteePermissionLevel,o=t.changeInviteePermissionLevel;r!==e&&o(e)})),n}var n,r,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&&Ae(e,t)}(t,e),n=t,(r=[{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.inviteePermissionLevel,r=t.inviteePermissions,i=t.itemType,a=ge(r),s=n||a;return o.a.createElement(he.a,{className:"usm-share-access-menu"},r.map((function(t){return t.value?o.a.createElement(he.c,{key:t.value,isDisabled:t.disabled,isSelected:t.value===s,onClick:function(){return e.onChangeInviteePermissionsLevel(t.value)}},o.a.createElement(Oe,{hasDescription:!0,inviteePermissionLevel:t.value,inviteePermissions:!0,itemType:i})):null})))}},{key:"render",value:function(){var e=this.props,t=e.inviteePermissions,n=e.inviteePermissionsButtonProps,r=e.inviteePermissionLevel,i=e.disabled,a=e.itemType,s=ge(t),u=r||s,c=a===I.b?o.a.createElement(l.a,m.inviteDisabledWeblinkTooltip):o.a.createElement(l.a,m.inviteDisabledTooltip),f=o.a.createElement(z.a,Ce({className:O()("lnk",{"is-disabled":i,"bdl-is-disabled":i}),disabled:i},n),o.a.createElement(pe.a,null,u&&o.a.createElement(Oe,{hasDescription:!1,inviteePermissionLevel:u,itemType:a}))),d=i?o.a.createElement(D.c,{position:"bottom-center",text:c},o.a.createElement("div",{className:"tooltip-target"},f)):f;return o.a.createElement("div",{className:"be invitee-menu-wrap"},o.a.createElement(pe.b,null,d,this.renderMenu()))}}])&&xe(n.prototype,r),i&&xe(n,i),t}(r.Component);Te(Ie,"defaultProps",{disabled:!1,inviteePermissions:[],inviteePermissionsButtonProps:{}});var De=Ie,je=n(21),Le=n.n(je),Re=n(309);n(1046);function Ne(e){return(Ne="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 Me(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Fe(){return(Fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function He(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var We=r.createElement(l.a,ne.a.copy),Ge=r.createElement(l.a,ne.a.copied),qe=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"!==Ne(t)&&"function"!=typeof t?He(e):t}(this,Be(t).call(this,e)),Ve(He(n),"copySelectedText",(function(){return document.execCommand("copy")})),Ve(He(n),"restoreCopyButton",(function(){n.setState({copySuccess:!1,buttonText:n.props.buttonDefaultText})})),Ve(He(n),"handleCopyButtonClick",(function(){n.performAutofocus(),n.copySelectedText(),n.animateCopyButton()})),Ve(He(n),"handleFocus",(function(e){n.copyInputRef&&n.performAutofocus(),n.props.onFocus&&n.props.onFocus(e)})),Ve(He(n),"handleCopyEvent",(function(e){n.animateCopyButton();var t=n.props.onCopySuccess;t&&t(e)})),Ve(He(n),"performAutofocus",(function(){var e=He(n).copyInputRef;e&&(e.select(),e.scrollLeft=0)})),Ve(He(n),"renderCopyButton",(function(){return n.isCopyCommandSupported?r.createElement(E.b,Fe({isDisabled:n.props.disabled,onClick:n.handleCopyButtonClick,type:"button"},n.props.buttonProps),n.state.buttonText):null})),n.isCopyCommandSupported=document.queryCommandSupported("copy"),n.state={copySuccess:!1,buttonText:e.buttonDefaultText,hasFocused:!1},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&&ze(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.autofocus,n=e.value;t&&n&&this.performAutofocus()}},{key:"componentDidUpdate",value:function(){var e=this.props,t=e.autofocus,n=e.value,r=e.triggerCopyOnLoad,o=this.state,i=o.copySuccess,a=o.hasFocused;t&&n&&this.performAutofocus(),!r||i||a||this.animateCopyButton()}},{key:"componentWillUnmount",value:function(){this.clearCopySuccessTimeout()}},{key:"animateCopyButton",value:function(){var e=this,t=this.props,n=t.successStateDuration,r=t.buttonSuccessText;this.clearCopySuccessTimeout(),this.setState({copySuccess:!0,buttonText:r,hasFocused:!0},(function(){e.copySuccessTimeout=setTimeout((function(){e.restoreCopyButton()}),n)}))}},{key:"clearCopySuccessTimeout",value:function(){this.copySuccessTimeout&&(clearTimeout(this.copySuccessTimeout),this.copySuccessTimeout=null)}},{key:"render",value:function(){var e=this,t=this.props,n=t.className,o=Me(t,["className"]),i=this.state.copySuccess,a=this.isCopyCommandSupported,s=Le()(o,["autofocus","buttonDefaultText","buttonSuccessText","buttonProps","onCopySuccess","successStateDuration","triggerCopyOnLoad"]);a&&(s.inputRef=function(t){e.copyInputRef=t});var l=O()(n,{"copy-success":i,"text-input-with-copy-button-container":a}),u=a?{onCopy:this.handleCopyEvent}:{};return r.createElement("div",Fe({className:l},u),r.createElement(Re.a,Fe({},s,{onFocus:this.handleFocus})),this.renderCopyButton())}}])&&Ue(n.prototype,o),i&&Ue(n,i),t}(r.PureComponent);Ve(qe,"defaultProps",{buttonDefaultText:We,buttonProps:{},buttonSuccessText:Ge,className:"",hideOptionalLabel:!0,readOnly:!0,successStateDuration:3e3,type:"text"});var Xe=qe,Ke=n(287),Ye=n(27),Qe=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ee.k:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(N.a,{className:"icon-mail ".concat(n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{className:"fill-color",fill:i,fillRule:"evenodd",d:"M14 3H2c-.6 0-1 .4-1 1v9c0 .6.5 1 1 1h12c.6 0 1-.4 1-1V4c0-.6-.5-1-1-1zM8 8.5L2.8 4h10.5L8 8.5zm6 4.5H2V4.7l5.7 4.8.3.3.3-.3L14 4.7V13z"}))},Je=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ee.i:o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(N.a,{className:O()("bdl-IconClock",n),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("path",{className:"fill-color",fill:i,d:"M8 15A7 7 0 1 0 8 1a7 7 0 0 0 0 14zm0 1A8 8 0 1 1 8 0a8 8 0 0 1 0 16z"}),r.createElement("path",{className:"fill-color",fill:i,d:"M8 2.5a.5.5 0 0 1 .5.5v4.486l3.208 1.687a.5.5 0 0 1 .244.592l-.034.083a.5.5 0 0 1-.676.21L7.767 8.23a.5.5 0 0 1-.267-.442V3a.5.5 0 0 1 .5-.5z"}))},$e=function(e){var t=e.className,n=void 0===t?"":t,o=e.color,i=void 0===o?ee.i:o,a=e.height,s=void 0===a?20:a,l=e.title,u=e.width,c=void 0===u?20:u;return r.createElement(N.a,{className:"icon-globe ".concat(n),height:s,title:l,viewBox:"0 0 20 20",width:c},r.createElement("g",null,r.createElement("path",{d:"M10 0A9.98 9.98 0 0 0 0 10a9.98 9.98 0 0 0 10 10 9.98 9.98 0 0 0 10-10A9.98 9.98 0 0 0 10 0z",fill:ee.y}),r.createElement("path",{className:"fill-color",d:"M10 0A9.98 9.98 0 0 0 0 10a9.98 9.98 0 0 0 10 10 9.98 9.98 0 0 0 10-10A9.98 9.98 0 0 0 10 0zM8.923 18C5.077 17.385 2 14.154 2 10c0-.615.154-1.23.154-1.846l4.77 4.77V14c0 1.077.922 2 2 2v2zm6.923-2.615C15.538 14.615 14.77 14 14 14h-1.077v-3.077c0-.461-.308-.923-.923-.923H6V8h2c.615 0 1.077-.462 1.077-1.077V5.077h2c1.077 0 2-.923 2-2v-.462C16 3.846 18 6.615 18 10c0 2.154-.77 4-2.154 5.385z",fill:i})))},Ze=n(18),et=n(190);var tt=function(e){return{allowed_shared_link_access_levels:void 0,content_created_at:void 0,content_modified_at:void 0,created_at:void 0,created_by:void 0,description:e.description,download_url:void 0,extension:e.extension,file_version:void 0,has_collaborations:void 0,id:String(e.id),interacted_at:void 0,is_download_available:void 0,is_externally_owned:void 0,item_collection:void 0,metadata:void 0,modified_at:void 0,modified_by:void 0,name:e.name,owned_by:void 0,parent:void 0,path_collection:void 0,permissions:void 0,restored_from:void 0,selected:void 0,shared_link:void 0,size:void 0,type:e.type,url:void 0,version_number:void 0}};function nt(){return(nt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var rt=function(e){var t,n=e.accessLevel,r=e.enterpriseName,i=e.itemType;switch(n){case be:t=m.peopleWithLinkDescription;break;case"peopleInYourCompany":t="folder"===i?r?m.peopleInSpecifiedCompanyCanAccessFolder:m.peopleInCompanyCanAccessFolder:r?m.peopleInSpecifiedCompanyCanAccessFile:m.peopleInCompanyCanAccessFile;break;case me:t="folder"===i?m.peopleInItemCanAccessFolder:m.peopleInItemCanAccessFile;break;default:return null}return o.a.createElement("small",{className:"usm-menu-description"},o.a.createElement(l.a,nt({},t,{values:{company:r}})))};function ot(){return(ot=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function it(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var at=function(e){var t,n,o=e.accessLevel,i=e.enterpriseName,a=e.hasDescription,s=e.itemType,u=(it(t={},be,"peopleWithTheLinkText"),it(t,"peopleInYourCompany",""===i?"peopleInYourCompany":"peopleInEnterpriseName"),it(t,me,"folder"===s?"peopleInThisFolder":"peopleInThisFile"),t);return o?(n=u[o],a?r.createElement("span",null,r.createElement("strong",null,r.createElement(l.a,ot({},m[n],{values:{enterpriseName:i}}))),r.createElement(rt,{accessLevel:o,enterpriseName:i,itemType:s})):r.createElement(l.a,ot({},m[n],{values:{enterpriseName:i}}))):null};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 lt(){return(lt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ut(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ct(e){return(ct=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ft(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dt(e,t){return(dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ht=[be,"peopleInYourCompany",me],bt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?ft(e):t}(this,(e=ct(t)).call.apply(e,[this].concat(o))),pt(ft(n),"onChangeAccessLevel",(function(e){var t=n.props,r=t.accessLevel,o=t.changeAccessLevel,i=t.trackingProps.onChangeSharedLinkAccessLevel;r!==e&&(o(e),i&&i(e))})),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&&dt(e,t)}(t,e),n=t,(o=[{key:"renderMenu",value:function(){var e=this,t=this.props,n=t.accessLevel,o=t.accessLevelsDisabledReason,i=t.allowedAccessLevels,a=t.enterpriseName,s=t.itemType;return r.createElement(he.a,{className:"usm-share-access-menu"},ht.map((function(t){var u=!i[t],c="access_policy"===o[t],f="malicious_content"===o[t],d=c||f,p=f?m.disabledMaliciousContentShareLinkPermission:m.disabledShareLinkPermission;return u&&!d?null:r.createElement(D.c,{isDisabled:!d,key:"tooltip-".concat(t),position:"top-center",text:r.createElement(l.a,p)},r.createElement(he.c,{key:t,isDisabled:u,isSelected:t===n,onClick:function(){return e.onChangeAccessLevel(t)}},r.createElement(at,{accessLevel:t,enterpriseName:a,hasDescription:!0,itemType:s})))})))}},{key:"render",value:function(){var e=this.props,t=e.accessLevel,n=e.enterpriseName,o=e.itemType,i=e.onDismissTooltip,a=e.submitting,s=e.tooltipContent,l=e.trackingProps,u=l.onSharedLinkAccessMenuOpen,c=l.sharedLinkAccessMenuButtonProps;return r.createElement(D.c,{className:"usm-ftux-tooltip",isShown:!!s,onDismiss:i,position:"middle-left",showCloseButton:!0,text:s,theme:"callout"},r.createElement(pe.b,{onMenuOpen:u,constrainToWindow:!0},r.createElement(z.a,lt({className:O()("lnk",{"is-disabled":a,"bdl-is-disabled":a}),disabled:a},c),r.createElement(pe.a,null,r.createElement(at,{accessLevel:t,enterpriseName:n,hasDescription:!1,itemType:o}))),this.renderMenu()))}}])&&ut(n.prototype,o),i&&ut(n,i),t}(r.Component);pt(bt,"defaultProps",{accessLevelsDisabledReason:{},allowedAccessLevels:{},trackingProps:{}});var mt=bt;function yt(e){return(yt="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 vt(){return(vt=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wt(e){return(wt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Et(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function St(e,t){return(St=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ot(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var kt=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==yt(t)&&"function"!=typeof t?Et(e):t}(this,(e=wt(t)).call.apply(e,[this].concat(o))),Ot(Et(n),"onChangePermissionLevel",(function(e){var t=n.props,r=t.changePermissionLevel,o=t.permissionLevel,i=t.trackingProps.onChangeSharedLinkPermissionLevel;o!==e&&(r(e),i&&i(e))})),n}var n,r,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&&St(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e,t=this,n=this.props,r=n.allowedPermissionLevels,i=n.permissionLevel,a=n.submitting,s=n.trackingProps.sharedLinkPermissionsMenuButtonProps;if(!i)return null;var u=(Ot(e={},"canViewDownload",{label:o.a.createElement(l.a,m.sharedLinkPermissionsViewDownload),description:o.a.createElement(l.a,m.sharedLinkPermissionsViewDownloadDescription)}),Ot(e,"canViewOnly",{label:o.a.createElement(l.a,m.sharedLinkPermissionsViewOnly),description:o.a.createElement(l.a,m.sharedLinkPermissionsViewOnlyDescription)}),e);return o.a.createElement(pe.b,{constrainToWindow:!0},o.a.createElement(z.a,vt({className:O()("lnk",{"is-disabled":a,"bdl-is-disabled":a}),disabled:a},s),o.a.createElement(pe.a,null,u[i].label)),o.a.createElement(he.a,{className:"ums-share-permissions-menu"},r.map((function(e){return o.a.createElement(he.c,{key:e,isSelected:e===i,onClick:function(){return t.onChangePermissionLevel(e)}},o.a.createElement("div",null,o.a.createElement("strong",null,u[e].label),o.a.createElement("small",{className:"usm-menu-description"}," ",u[e].description," ")))}))))}}])&>(n.prototype,r),i&>(n,i),t}(r.Component);Ot(kt,"defaultProps",{trackingProps:{}});var Ct=kt;function xt(e){return(xt="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 _t(){return(_t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function It(e,t){return(It=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var jt=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"!==xt(t)&&"function"!=typeof t?Tt(e):t}(this,At(t).call(this,e)),Dt(Tt(n),"canAddSharedLink",(function(e,t){return!e&&t})),Dt(Tt(n),"canRemoveSharedLink",(function(e,t){return e&&t})),n.state={isAutoCreatingSharedLink:!1,isCopySuccessful:null},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&&It(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.sharedLink,n=e.autoCreateSharedLink,r=e.addSharedLink,o=e.submitting;!n||this.state.isAutoCreatingSharedLink||!t||t.url||o||t.isNewSharedLink||(this.setState({isAutoCreatingSharedLink:!0}),r())}},{key:"componentDidUpdate",value:function(e){var t=this,n=this.props,r=n.sharedLink,o=n.autoCreateSharedLink,i=n.addSharedLink,a=n.submitting,s=n.triggerCopyOnLoad,l=n.onCopyError,u=void 0===l?function(){}:l,c=n.onCopySuccess,f=void 0===c?function(){}:c,d=n.onCopyInit,p=void 0===d?function(){}:d,h=this.state,b=h.isAutoCreatingSharedLink,m=h.isCopySuccessful;!o||b||r.url||a||r.isNewSharedLink||(this.setState({isAutoCreatingSharedLink:!0}),i()),!e.sharedLink.url&&r.url&&this.setState({isAutoCreatingSharedLink:!1}),et.a.canWriteToClipboard()&&s&&!b&&r.url&&null===m&&(p(),navigator.clipboard.writeText(r.url).then((function(){t.setState({isCopySuccessful:!0}),f()})).catch((function(){t.setState({isCopySuccessful:!1}),u()})))}},{key:"renderSharedLink",value:function(){var e=this.props,t=e.autofocusSharedLink,n=e.changeSharedLinkAccessLevel,o=e.changeSharedLinkPermissionLevel,i=e.config,a=e.item,s=e.itemType,u=e.intl,c=e.onDismissTooltip,f=e.onEmailSharedLinkClick,d=e.sharedLink,p=e.submitting,h=e.trackingProps,b=e.triggerCopyOnLoad,y=e.tooltips,v=this.state.isCopySuccessful,g=d.accessLevel,w=d.accessLevelsDisabledReason,S=d.allowedAccessLevels,O=d.canChangeAccessLevel,k=d.enterpriseName,C=d.isEditAllowed,x=d.isDownloadSettingAvailable,_=d.permissionLevel,P=d.url,A=h.copyButtonProps,T=h.onChangeSharedLinkAccessLevel,I=h.onChangeSharedLinkPermissionLevel,j=h.onSharedLinkAccessMenuOpen,L=h.onSharedLinkCopy,R=h.sendSharedLinkButtonProps,N=h.sharedLinkAccessMenuButtonProps,M=h.sharedLinkPermissionsMenuButtonProps,F=!!b&&!!v,U=i&&!1===i.showEmailSharedLinkForm,B=Object(Ze.d)(tt(a))&&C,H=["canViewDownload","canViewOnly"];return O||(H=H.filter((function(e){return e===_}))),x||(H=H.filter((function(e){return"canViewDownload"!==e}))),r.createElement(r.Fragment,null,r.createElement("div",{className:"shared-link-field-row"},r.createElement(D.c,{className:"usm-ftux-tooltip",isShown:!!y["shared-link-copy-button"],onDismiss:function(){return c("shared-link-copy-button")},position:"middle-right",showCloseButton:!0,text:y["shared-link-copy-button"],theme:"callout"},r.createElement(Xe,{"aria-label":u.formatMessage(m.sharedLinkURLLabel),autofocus:t,buttonProps:A,className:"shared-link-field-container",disabled:p,label:"",onCopySuccess:L,triggerCopyOnLoad:F,type:"url",value:P})),!U&&r.createElement(D.c,{position:"top-left",text:r.createElement(l.a,m.sendSharedLink)},r.createElement(E.b,_t({"aria-label":u.formatMessage(m.sendSharedLink),className:"email-shared-link-btn",isDisabled:p,onClick:f,type:"button"},R),r.createElement(Qe,null)))),r.createElement("div",{className:"shared-link-access-row"},r.createElement(mt,{accessLevel:g,accessLevelsDisabledReason:w,allowedAccessLevels:S,changeAccessLevel:n,enterpriseName:k,itemType:s,onDismissTooltip:function(){return c("shared-link-access-menu")},tooltipContent:y["shared-link-access-menu"]||null,submitting:p,trackingProps:{onChangeSharedLinkAccessLevel:T,onSharedLinkAccessMenuOpen:j,sharedLinkAccessMenuButtonProps:N}}),!B&&g!==me&&r.createElement(Ct,{allowedPermissionLevels:H,canChangePermissionLevel:O,changePermissionLevel:o,permissionLevel:_,submitting:p,trackingProps:{onChangeSharedLinkPermissionLevel:I,sharedLinkPermissionsMenuButtonProps:M}}),B&&r.createElement(D.c,{text:r.createElement(l.a,m.sharedLinkPermissionsEditTooltip)},r.createElement(z.a,{isDisabled:!0,className:"can-edit-btn"},r.createElement(l.a,m.sharedLinkPermissionsEdit)))),g===be&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement($e,{height:12,width:12})),r.createElement(l.a,m.sharedLinkPubliclyAvailable)))}},{key:"renderSharedLinkSettingsLink",value:function(){var e=this.props,t=e.intl,n=e.onDismissTooltip,o=e.onSettingsClick,i=e.showSharedLinkSettingsCallout,a=e.trackingProps,s=e.tooltips,u=a.sharedLinkSettingsButtonProps;return r.createElement("div",{className:"shared-link-settings-btn-container"},r.createElement(D.c,{className:"usm-ftux-tooltip",isShown:!!s["shared-link-settings"]||i,onDismiss:function(){return n("shared-link-settings")},position:"middle-right",showCloseButton:!0,text:s["shared-link-settings"]||r.createElement(l.a,m.sharedLinkSettingsCalloutText),theme:"callout"},r.createElement(z.a,_t({},u,{"aria-label":t.formatMessage(m.settingsButtonLabel),className:"shared-link-settings-btn",onClick:o,type:"button"}),r.createElement(l.a,m.sharedLinkSettings))))}},{key:"renderToggle",value:function(){var e,t=this.props,n=t.item,o=t.onDismissTooltip,i=t.onToggleSharedLink,a=t.sharedLink,s=t.submitting,u=t.tooltips,c=a.canChangeAccessLevel,f=a.expirationTimestamp,d=!!a.url,p=this.canAddSharedLink(d,n.grantedPermissions.itemShare),h=this.canRemoveSharedLink(d,c),b=(p||h)&&!s;d?(e=r.createElement(l.a,m.linkShareOn),f&&0!==f&&(e=r.createElement("span",null,r.createElement(l.a,m.linkShareOn),r.createElement(D.c,{position:"top-center",text:r.createElement(l.a,_t({},m.sharedLinkExpirationTooltip,{values:{expiration:Object(Ye.e)(f)}}))},r.createElement("span",{className:"shared-link-expiration-badge"},r.createElement(Je,{color:ee.t})))))):e=r.createElement(l.a,m.linkShareOff);var y=r.createElement("div",{className:"share-toggle-container"},r.createElement(Ke.a,{isDisabled:!b,isOn:d,label:e,name:"toggle",onChange:i}));if(!s){if(p){var v=u["shared-link-toggle"];return v?r.createElement(D.c,{className:"usm-ftux-tooltip",isShown:!0,onDismiss:function(){return o("shared-link-toggle")},position:"middle-left",showCloseButton:!0,text:v,theme:"callout"},y):r.createElement(D.c,{position:"top-right",text:r.createElement(l.a,m.sharedLinkDisabledTooltipCopy)},y)}if(!b){var g=d?m.removeLinkTooltip:m.disabledCreateLinkTooltip;return r.createElement(D.c,{className:"usm-disabled-message-tooltip",position:"top-right",text:r.createElement(l.a,g)},y)}}return y}},{key:"render",value:function(){var e=this.props,t=e.sharedLink,n=e.onSettingsClick,o=!!t.url;return r.createElement("div",{className:"be"},r.createElement("hr",{className:"bdl-SharedLinkSection-separator"}),r.createElement("label",null,r.createElement("span",{className:"label bdl-Label"},r.createElement(l.a,m.sharedLinkSectionLabel))),r.createElement("div",{className:"shared-link-toggle-row"},this.renderToggle(),o&&n&&this.renderSharedLinkSettingsLink()),o&&this.renderSharedLink())}}])&&Pt(n.prototype,o),i&&Pt(n,i),t}(r.Component);Dt(jt,"defaultProps",{trackingProps:{},autoCreateSharedLink:!1});var Lt=jt,Rt=n(520),Nt=n(112),Mt=n(185),Ft=n(462),Ut=n(7),Bt=n.n(Ut),Ht=n(134);var zt=function(e){return e.map((function(e){var t=e.displayText,n=e.value;return r.createElement(Ht.a,{key:n},t)}))},Vt=n(105),Wt=n.n(Vt);var Gt=function(e,t,n){return e.filter(function(e){var t=Array.isArray(e)?e:[];return function(e){return!t.find((function(t){return Wt()(t,e)}))}}(t)).filter(function(e){var t=e||"";return function(e){return e.displayText.toLowerCase().includes(t.toLowerCase())}}(n))},qt=n(1012),Xt=n.n(qt),Kt=n(1013),Yt=n.n(Kt),Qt=n(465);var Jt=function(e,t,n){var r;return r=Object(Qt.a)(e).map((function(e){var n=e.replace(/\s/g,""),r=Yt()(n),o=new RegExp("^".concat(r,"$"),"i");return t.find((function(e){var t=e.displayText,n=e.value;return(o.test(t.replace(/\s|,/g,""))||o.test(String(n)))}))||{displayText:e,value:e}})),r=(r=Xt()(r,(function(e){return e.value}))).filter((function(e){return!n.some((function(t){return e.value===t.value}))}))};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 Zt(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function en(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tn(e){return(tn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function nn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rn(e,t){return(rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an=function(e){function t(){var e,n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];return n=function(e,t){return!t||"object"!==$t(t)&&"function"!=typeof t?nn(e):t}(this,(e=tn(t)).call.apply(e,[this].concat(o))),on(nn(n),"state",{inputText:""}),on(nn(n),"handleBlur",(function(e){var t=n.props.field,r=t.name;(0,t.onBlur)(e||n.createFakeEventTarget(r))})),on(nn(n),"handleInput",(function(e,t){var r=n.props.onInput;n.setState({inputText:e}),r(e,t),""===e&&n.handleBlur(t)})),on(nn(n),"handleSelect",(function(e){var t=n.props.field,r=t.name,o=t.onChange,i=t.value,a=void 0===i?[]:i,s=e.filter((function(e){return n.isValidOption(e)}));o(n.createFakeEventTarget(r,[].concat(Zt(a),Zt(s))))})),on(nn(n),"handleRemove",(function(e,t){var r=n.props.field,o=r.name,i=r.onChange,a=r.value,s=(void 0===a?[]:a).slice();s.splice(t,1),i(n.createFakeEventTarget(o,s))})),on(nn(n),"handleParseItems",(function(e){var t=n.props,r=t.field,o=t.inputParser,i=t.options,a=r.value;return o(e,i,void 0===a?[]:a)})),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&&rn(e,t)}(t,e),n=t,(o=[{key:"isValidOption",value:function(e){return!!e.displayText.trim()}},{key:"createFakeEventTarget",value:function(e,t){return{target:{name:e,value:t}}}},{key:"render",value:function(){var e=this.state.inputText,t=this.props,n=t.className,o=t.dropdownFilter,i=t.dropdownRenderer,a=t.dropdownScrollBoundarySelector,s=t.field,l=t.form,u=t.isCustomInputAllowed,c=t.isDisabled,f=t.label,d=t.options,p=t.placeholder,h=t.shouldClearUnmatchedInput,b=t.validator,m=s.name,y=s.value,v=void 0===y?[]:y,g=l.errors,w=l.touched,E=Bt()(w,m)?Bt()(g,m):null,S=o(d,v,e),O={name:m};return r.createElement(Ft.a,{allowCustomPills:u,allowInvalidPills:!0,className:n,disabled:c,dropdownScrollBoundarySelector:a,inputProps:O,label:f,error:E,onBlur:this.handleBlur,onInput:this.handleInput,onRemove:this.handleRemove,onSelect:this.handleSelect,parseItems:this.handleParseItems,placeholder:p,selectedOptions:v,selectorOptions:S,shouldClearUnmatchedInput:h,shouldSetActiveItemOnOpen:!0,validator:b},i(S))}}])&&en(n.prototype,o),i&&en(n,i),t}(r.PureComponent);on(an,"defaultProps",{dropdownFilter:Gt,dropdownRenderer:zt,inputParser:Jt,isCustomInputAllowed:!0,isDisabled:!1,onInput:s.a,options:[],shouldClearUnmatchedInput:!1});var sn=n(999),ln=n.n(sn);var un=n(96),cn=n.n(un),fn=n(515),dn=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2;if(!t)return!1;var o=t.toLowerCase().replace(/\s/g,""),i=e.toLowerCase().replace(/\s/g,""),a=o.length,s=i.length;if(s<n||s>a)return!1;for(var l=!1,u=0,c=0;c<a&&!(a-c<s);c+=1){for(var f=0,d=0,p=0,h=c;h<a;h+=1)o[h]===i[f]?(f+=1,d+=1+d):d=0,p+=d;if(f!==s)break;p>u&&(u=p)}if(u>0){var b=Math.min(r,s),m=Math.max(b*Math.pow(2,Math.floor(s/b-1)),s+1);l=u>=m}return l};function pn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function hn(e,t){return t.userScore-e.userScore}var bn=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:3,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:2,a=new Set(e.map((function(e){return e.id.toString()}))),s=Object.values(t),l=s.filter((function(e){return e.id&&a.has(e.id.toString())})),u=l.map((function(e){return e.id.toString()})),c=l.length>=r?[]:s.filter((function(e){if(!n||u.includes(e.id.toString()))return!1;var t=dn(n,e.name,o,i),r=e.email||"",a=r.substring(0,r.indexOf("@")),s=n.length>=o&&a.includes(n);return t||s})),f=[].concat(pn(l.sort(hn)),pn(c.sort(hn))).slice(0,r),d=f.map((function(e){return e.id}));return[f,e.filter((function(e){return!d.includes(e.id)}))]};var mn=function(e,t,n){return!!(n&&t&&e)&&n.split("@")[1]!==t},yn=function(e){if(null==e)return[];var t=e.match(/[^\s[<(]+@[^\s<>@,/\\]+\.[^\s<>,;)]+/gi);return t?t.map((function(e){for(e=e.trim();e.length>=2&&'"'===e.charAt(0)&&'"'===e.charAt(e.length-1);)e=e.substr(1,e.length-2);return e})):[]};function vn(e){return(vn="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 gn(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function wn(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function En(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Sn(e){return(Sn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function On(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kn(e,t){return(kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Cn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xn=function(e,t){return e&&-1!==e.toLowerCase().indexOf(t.toLowerCase())},_n=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"!==vn(t)&&"function"!=typeof t?On(e):t}(this,Sn(t).call(this,e)),Cn(On(n),"addSuggestedContacts",(function(e){var t=n.props.suggestedCollaborators,r=void 0===t?{}:t,o=n.state.pillSelectorInputValue,i=wn(bn(e,r,o),2),a=i[0],s=i[1];return n.setState({numSuggestedShowing:a.length}),[].concat(gn(a),gn(s))})),Cn(On(n),"filterContacts",(function(e){var t=n.state.pillSelectorInputValue,r=n.props,o=r.selectedContacts,i=r.suggestedCollaborators;if(t&&e){var a=e.filter((function(e){var n=e.name,r=e.email;return xn(n,t)||xn(r,t)})).filter((function(e){var t=e.email,n=e.id;return!o.find((function(e){var r=e.value;return r===t||r===n}))}));return i&&(a=n.addSuggestedContacts(a)),a.map((function(e){var t=e.email,n=e.id;return{email:t,id:n,isExternalUser:e.isExternalUser,text:e.name,type:e.type,value:t||n}}))}return[]})),Cn(On(n),"getContactsPromise",(function(e){return n.props.getContacts(e).then((function(e){var t=n.filterContacts(e);n.setState({contacts:t})})).catch((function(e){if(!e.isCanceled)throw e}))})),Cn(On(n),"debouncedGetContacts",cn()(n.getContactsPromise,200)),Cn(On(n),"handlePillSelectorInput",(function(e){var t=n.props.onInput,r=e.trim();n.setState({pillSelectorInputValue:r}),t&&t(e),r?n.debouncedGetContacts(r):n.setState({contacts:[]})})),n.state={contacts:[],numSuggestedShowing:0,pillSelectorInputValue:""},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&&kn(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e=this.props,t=e.disabled,n=e.error,o=e.fieldRef,i=e.getContactAvatarUrl,a=e.intl,u=e.label,c=e.onContactAdd,f=e.onContactRemove,d=e.onPillCreate,p=e.selectedContacts,h=e.showContactAvatars,b=e.validateForError,y=e.validator,v=this.state,g=v.contacts,w=v.numSuggestedShowing,E=r.createElement(l.a,m.groupLabel),S=w>0,k=O()({scrollable:g.length>5});return r.createElement(Ft.a,{allowCustomPills:!0,className:k,dividerIndex:S?w:void 0,disabled:t,error:n,getPillImageUrl:i,inputProps:{autoFocus:!0,onChange:s.a},label:u,onInput:this.handlePillSelectorInput,onRemove:f,onSelect:c,onPillCreate:d,overlayTitle:S?a.formatMessage(m.suggestedCollabsTitle):void 0,parseItems:yn,placeholder:a.formatMessage(ne.a.pillSelectorPlaceholder),ref:o,selectedOptions:p,showRoundedPills:!0,selectorOptions:g,validateForError:b,validator:y},g.map((function(e){var t=e.email,n=e.isExternalUser,o=e.text,a=void 0===o?null:o,s=e.id;return r.createElement(fn.a,{getContactAvatarUrl:i,key:s,id:s,isExternal:n,name:a,subtitle:t||E,title:a,showAvatar:h})})))}}])&&En(n.prototype,o),i&&En(n,i),t}(r.Component);Cn(_n,"defaultProps",{showContactAvatars:!1});var Pn=Object(d.c)(_n);function An(e){return(An="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 Tn(){return(Tn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function In(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Dn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function jn(e){return(jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Ln(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Rn(e,t){return(Rn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Mn=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"!==An(t)&&"function"!=typeof t?Ln(e):t}(this,jn(t).call(this,e)),Nn(Ln(n),"contactsFieldRef",r.createRef()),Nn(Ln(n),"handleContactAdd",(function(e){var t=n.props,r=t.selectedContacts,o=t.onContactAdd,i=t.updateSelectedContacts,a=[].concat(In(r),In(e));i(a),n.validateContacts(a),o&&o(e)})),Nn(Ln(n),"handleContactRemove",(function(e,t){var r=n.props,o=r.onContactRemove,i=r.updateSelectedContacts,a=n.props.selectedContacts.slice(),s=a.splice(t,1);i(a),n.validateContacts(a),o&&o(s)})),Nn(Ln(n),"validateContacts",(function(e){var t=n.props,r=t.contactLimit,o=t.intl,i="";return void 0!==r&&e.length>r?i=o.formatMessage(m.contactsExceedLimitError,{maxContacts:r}):0===e.length&&(i=o.formatMessage(m.enterAtLeastOneEmailError)),n.setState({contactsFieldError:i}),i})),Nn(Ln(n),"handleContactInput",(function(e){var t=n.props.onContactInput;t&&t(e)})),Nn(Ln(n),"handleMessageChange",(function(e){var t=e.target;t instanceof HTMLTextAreaElement&&n.setState({message:t.value})})),Nn(Ln(n),"handleClose",(function(){n.setState({message:"",contactsFieldError:""}),n.props.updateSelectedContacts([]),n.contactsFieldRef.current&&n.contactsFieldRef.current.setState({inputValue:""}),n.props.onRequestClose()})),Nn(Ln(n),"handleSubmit",(function(e){e.preventDefault();var t=n.props,r=t.onSubmit,o=t.selectedContacts,i=n.state,a=i.message;if(""===i.contactsFieldError&&!n.validateContacts(o)){var s=[],l=[];o.forEach((function(e){var t=e.type,n=e.value;"group"===t?l.push(n):s.push(n)})),r({emails:s,groupIDs:l,message:a}).catch((function(e){var t=e.invitedEmails||[];n.filterSentEmails(t)}))}})),Nn(Ln(n),"filterSentEmails",(function(e){n.props.updateSelectedContacts(n.props.selectedContacts.filter((function(t){var n=t.value;return!e.includes(n)})))})),Nn(Ln(n),"validateContactField",(function(e){var t=n.props.intl,r="";e&&!n.isValidEmail(e)&&(r=t.formatMessage(ne.a.invalidEmailError)),n.setState({contactsFieldError:r})})),Nn(Ln(n),"isValidEmail",(function(e){return function(e){return ln.a.email.isValid(e)}(e)})),n.state={contactsFieldError:"",message:""},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&&Rn(e,t)}(t,e),n=t,(o=[{key:"render",value:function(){var e,t=this.state,n=t.contactsFieldError,o=t.message,i=this.props,a=i.cancelButtonProps,s=i.children,u=i.contactsFieldAvatars,c=i.contactsFieldDisabledTooltip,f=i.contactsFieldLabel,d=i.inlineNotice,h=i.isContactsFieldEnabled,b=i.isExternalUserSelected,y=i.getContactAvatarUrl,v=i.getContacts,g=i.intl,w=i.isExpanded,S=i.messageProps,k=i.onPillCreate,C=i.recommendedSharingTooltipCalloutName,x=i.sendButtonProps,_=i.showEnterEmailsCallout,P=i.selectedContacts,A=i.submitting,T=i.suggestedCollaborators,I={className:"usm-ftux-tooltip",isShown:_,position:"middle-right",showCloseButton:!0,text:r.createElement(l.a,m.enterEmailAddressesCalloutText),theme:"callout"},j={isShown:!!C,position:"middle-left",text:r.createElement(l.a,Tn({},m.recommendedSharingTooltipCalloutText,{values:{fullName:C}})),theme:"callout"},L=C?j:I,R=r.createElement("div",{className:"tooltip-target"},r.createElement(D.c,L,r.createElement(Pn,{disabled:!h,error:n,fieldRef:this.contactsFieldRef,getContacts:v,getContactAvatarUrl:y,label:f,onContactAdd:this.handleContactAdd,onContactRemove:this.handleContactRemove,onInput:this.handleContactInput,onPillCreate:k,selectedContacts:P,suggestedCollaborators:T,validateForError:this.validateContactField,validator:this.isValidEmail,showContactAvatars:!0})));return e=h?R:r.createElement(D.c,{position:"bottom-center",text:c},R),r.createElement("form",{className:O()({"is-expanded":w}),onSubmit:this.handleSubmit},d.content&&w&&r.createElement(Mt.a,{type:d.type},d.content),u,e,s,w&&r.createElement(Rt.a,Tn({label:r.createElement(l.a,m.messageTitle),onChange:this.handleMessageChange,placeholder:g.formatMessage(ne.a.messageSelectorPlaceholder),rows:3,value:o},S)),w&&b&&r.createElement("div",{className:"security-indicator-note"},r.createElement("span",{className:"security-indicator-icon-globe"},r.createElement($e,{height:12,width:12})),r.createElement(l.a,m.contentSharedWithExternalCollaborators)),w&&r.createElement(p.b,null,r.createElement(E.b,Tn({isDisabled:A,onClick:this.handleClose,type:"button"},a),r.createElement(l.a,ne.a.cancel)),r.createElement(Nt.a,Tn({isDisabled:A,isLoading:A,type:"submit"},x),r.createElement(l.a,ne.a.send))))}}])&&Dn(n.prototype,o),i&&Dn(n,i),t}(r.Component);Nn(Mn,"defaultProps",{messageProps:{},contactsFieldDisabledTooltip:null});var Fn=Object(d.c)(Mn);function Un(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}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}var Hn=function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return e[n]=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Un(Object(n),!0).forEach((function(t){Bn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Un(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},r,{text:r.name,value:r.email||r.id}),e}),{});return e.map((function(e){return e.id?e:e.value&&n[e.value]||{email:String(e.value),id:String(e.value),isExternalUser:!0,text:String(e.value),type:"user",value:e.value}}))};function zn(e){return(zn="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 Vn(){return(Vn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qn(e){return(qn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Xn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Kn(e,t){return(Kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qn="inviteCollabsContacts",Jn="emailSharedLinkContacts",$n=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"!==zn(t)&&"function"!=typeof t?Xn(e):t}(this,qn(t).call(this,e)),Yn(Xn(n),"handleInviteCollabPillCreate",(function(e){return n.onPillCreate(Qn,e)})),Yn(Xn(n),"handleEmailSharedLinkPillCreate",(function(e){return n.onPillCreate(Jn,e)})),Yn(Xn(n),"onToggleSharedLink",(function(e){var t=e.target,r=n.props,o=r.handleFtuxCloseClick,i=r.onAddLink,a=r.openConfirmModal,s=r.shouldRenderFTUXTooltip,l=r.trackingProps.sharedLinkTracking.onToggleLink;s&&o(),"checkbox"===t.type&&(!1===t.checked?a():i(),l&&l(t.checked))})),Yn(Xn(n),"showCollaboratorList",(function(){n.setState({showCollaboratorList:!0})})),Yn(Xn(n),"closeCollaboratorList",(function(){n.setState({showCollaboratorList:!1})})),Yn(Xn(n),"handleSendInvites",(function(e){var t=n.props,r=t.inviteePermissions,o=t.sendInvites,i=t.trackingProps.inviteCollabsEmailTracking.onSendClick,a=n.state.inviteePermissionLevel,s=ge(r),l=a||s,u=e.emails,c=e.groupIDs,f=e.message,d={emails:u.join(","),groupIDs:c.join(","),emailMessage:f,permission:l,numsOfInvitees:u.length,numOfInviteeGroups:c.length};return i&&i(d),o(d)})),Yn(Xn(n),"handleSendSharedLink",(function(e){var t=n.props,r=t.sendSharedLink,o=t.trackingProps.sharedLinkEmailTracking.onSendClick,i=e.emails,a=e.groupIDs;o&&o(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach((function(t){Yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{numsOfRecipients:i.length,numOfRecipientGroups:a.length}));return r(e)})),Yn(Xn(n),"handleInviteePermissionChange",(function(e){var t=n.props.trackingProps.inviteCollabTracking.onInviteePermissionChange;n.setState({inviteePermissionLevel:e}),t&&t(e)})),Yn(Xn(n),"onPillCreate",(function(e,t){if(0!==t.filter((function(e){return!e.id})).length){var r=n.props.getContactsByEmail;if(r)r({emails:t.map((function(e){return e.value}))}).then((function(t){e===Qn?n.setState((function(e){return{inviteCollabsContacts:Hn(e.inviteCollabsContacts,t)}})):e===Jn&&n.setState((function(e){return{emailSharedLinkContacts:Hn(e.emailSharedLinkContacts,t)}}))}))}})),Yn(Xn(n),"openInviteCollaborators",(function(e){var t=n.props.handleFtuxCloseClick;n.state.isInviteSectionExpanded||""!==e&&(t(),n.setState({isInviteSectionExpanded:!0},(function(){var e=n.props.trackingProps.inviteCollabTracking.onEnterInviteCollabs;e&&e()})))})),Yn(Xn(n),"openInviteCollaboratorsSection",(function(){n.setState({isInviteSectionExpanded:!0})})),Yn(Xn(n),"closeInviteCollaborators",(function(){n.setState({isInviteSectionExpanded:!1})})),Yn(Xn(n),"openEmailSharedLinkForm",(function(){(0,n.props.handleFtuxCloseClick)(),n.setState({isEmailLinkSectionExpanded:!0})})),Yn(Xn(n),"closeEmailSharedLinkForm",(function(){n.setState({isEmailLinkSectionExpanded:!1})})),Yn(Xn(n),"hasExternalContact",(function(e){var t=n.state,r=t.inviteCollabsContacts,o=t.emailSharedLinkContacts;return e===Qn?r.some((function(e){return e.isExternalUser})):e===Jn&&o.some((function(e){return e.isExternalUser}))})),Yn(Xn(n),"updateInviteCollabsContacts",(function(e){var t=n.props.setUpdatedContacts;n.setState({inviteCollabsContacts:e}),t&&t(e)})),Yn(Xn(n),"updateEmailSharedLinkContacts",(function(e){n.setState({emailSharedLinkContacts:e})})),Yn(Xn(n),"shouldAutoFocusSharedLink",(function(){var e=n.props,t=e.focusSharedLinkOnLoad,r=e.sharedLink,o=e.sharedLinkLoaded;return!(!t&&!r.isNewSharedLink)&&!!o})),n.state={emailSharedLinkContacts:[],inviteCollabsContacts:e.initiallySelectedContacts,inviteePermissionLevel:"",isEmailLinkSectionExpanded:!1,isInviteSectionExpanded:!!e.initiallySelectedContacts.length,showCollaboratorList:!1},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&&Kn(e,t)}(t,e),n=t,(o=[{key:"renderInviteSection",value:function(){var e=this.props,t=e.canInvite,n=e.collaborationRestrictionWarning,o=e.contactLimit,i=e.getCollaboratorContacts,a=e.getContactAvatarUrl,s=e.handleFtuxCloseClick,u=e.item,c=e.recommendedSharingTooltipCalloutName,f=void 0===c?null:c,d=e.sendInvitesError,p=e.shouldRenderFTUXTooltip,h=e.showEnterEmailsCallout,b=void 0!==h&&h,y=e.showCalloutForUser,v=void 0!==y&&y,g=e.showUpgradeOptions,S=e.submitting,O=e.suggestedCollaborators,k=e.trackingProps,C=u.type,x=this.state.isInviteSectionExpanded,_=k.inviteCollabsEmailTracking,P=k.modalTracking,A=C===I.b?r.createElement(l.a,m.inviteDisabledWeblinkTooltip):r.createElement(l.a,m.inviteDisabledTooltip),T=d?{type:"error",content:d}:{type:"warning",content:n},j=this.renderCollaboratorAvatars(),L=P.ftuxConfirmButtonProps,R={className:"usm-ftux-tooltip",isShown:!f&&p&&v,position:"middle-left",showCloseButton:!0,text:r.createElement("div",null,r.createElement("h4",{className:"ftux-tooltip-title"},r.createElement(l.a,m.ftuxNewUSMUserTitle)),r.createElement("p",{className:"ftux-tooltip-body"},r.createElement(l.a,m.ftuxNewUSMUserBody)," ",r.createElement(w.a,{className:"ftux-tooltip-link",href:"https://community.box.com/t5/Using-Shared-Links/Creating-Shared-Links/ta-p/19523",target:"_blank"},r.createElement(l.a,m.ftuxLinkText))),r.createElement("div",{className:"ftux-tooltip-controls"},r.createElement(E.b,Vn({className:"ftux-tooltip-button",onClick:s},L),r.createElement(l.a,m.ftuxConfirmLabel)))),theme:"callout"};return r.createElement(r.Fragment,null,r.createElement(D.c,R,r.createElement("div",{className:"invite-collaborator-container"},r.createElement(Fn,Vn({contactLimit:o,contactsFieldAvatars:j,contactsFieldDisabledTooltip:A,contactsFieldLabel:r.createElement(l.a,m.inviteFieldLabel),getContacts:i,getContactAvatarUrl:a,inlineNotice:T,isContactsFieldEnabled:t,isExpanded:x,isExternalUserSelected:this.hasExternalContact(Qn),onContactInput:this.openInviteCollaborators,onPillCreate:this.handleInviteCollabPillCreate,onRequestClose:this.closeInviteCollaborators,onSubmit:this.handleSendInvites,openInviteCollaboratorsSection:this.openInviteCollaboratorsSection,recommendedSharingTooltipCalloutName:f,showEnterEmailsCallout:b,submitting:S,selectedContacts:this.state.inviteCollabsContacts,suggestedCollaborators:O,updateSelectedContacts:this.updateInviteCollabsContacts},_),this.renderInviteePermissionsDropdown(),x&&g&&this.renderUpgradeLinkDescription()))))}},{key:"renderCollaboratorAvatars",value:function(){var e=this.props,t=e.collaboratorsList,n=e.canInvite,o=e.currentUserID,i=e.item,a=e.trackingProps.modalTracking,s=null;if(t){var l=t.collaborators,u=i.hideCollaborators;s=(!(void 0===u||u)||n)&&r.createElement(Z,{collaborators:l.filter((function(e){return String(e.userID)!==o})),onClick:this.showCollaboratorList,containerAttributes:a.collaboratorAvatarsProps})}return s}},{key:"renderUpgradeLinkDescription",value:function(){var e=this.props.trackingProps,t=(void 0===e?{}:e).inviteCollabsEmailTracking,n=(void 0===t?{}:t).upgradeLinkProps,o=void 0===n?{}:n;return r.createElement("div",{className:"upgrade-description"},r.createElement(T,{type:"warning"}),r.createElement(l.a,Vn({values:{upgradeGetMoreAccessControlsLink:r.createElement(w.a,Vn({className:"upgrade-link",href:"/upgrade"},o),r.createElement(l.a,m.upgradeGetMoreAccessControlsLink))}},m.upgradeGetMoreAccessControlsDescription)))}},{key:"renderInviteePermissionsDropdown",value:function(){var e=this.props,t=e.inviteePermissions,n=e.item,o=e.submitting,i=e.canInvite,a=e.trackingProps,s=n.type,l=a.inviteCollabTracking;return t&&r.createElement(De,{disabled:!i||o,inviteePermissionsButtonProps:l.inviteePermissionsButtonProps,inviteePermissionLevel:this.state.inviteePermissionLevel,inviteePermissions:t,changeInviteePermissionLevel:this.handleInviteePermissionChange,itemType:s})}},{key:"renderCollaboratorList",value:function(){var e=this.props,t=e.item,n=e.collaboratorsList,o=e.trackingProps,i=t.name,a=t.type,s=o.collaboratorListTracking,l=null;if(n){var u=n.collaborators;l=r.createElement(de,{itemName:i,itemType:a,onDoneClick:this.closeCollaboratorList,item:t,collaborators:u,trackingProps:s})}return l}},{key:"render",value:function(){var e=this.props,t=e.allShareRestrictionWarning,n=e.changeSharedLinkAccessLevel,o=e.createSharedLinkOnLoad,i=e.changeSharedLinkPermissionLevel,a=e.config,s=e.displayInModal,u=e.focusSharedLinkOnLoad,c=e.getSharedLinkContacts,f=e.getContactAvatarUrl,d=e.intl,p=e.isFetching,h=e.item,b=e.onAddLink,y=e.onCopyError,v=e.onCopyInit,w=e.onCopySuccess,E=e.onDismissTooltip,S=void 0===E?function(){}:E,O=e.onSettingsClick,k=e.sendSharedLinkError,C=e.sharedLink,x=e.showEnterEmailsCallout,_=void 0!==x&&x,P=e.showSharedLinkSettingsCallout,A=void 0!==P&&P,T=e.submitting,I=e.tooltips,D=void 0===I?{}:I,j=e.trackingProps,L=j.sharedLinkTracking,R=j.sharedLinkEmailTracking,N=this.state,M=N.isEmailLinkSectionExpanded,F=N.isInviteSectionExpanded,U=N.showCollaboratorList,B=!M&&!F&&!U&&t;return r.createElement("div",{className:s?"":"be bdl-UnifiedShareForm"},r.createElement(g.a,{isLoading:p,hideContent:!0},B&&t,!M&&!U&&this.renderInviteSection(),!M&&!F&&!U&&r.createElement(Lt,{addSharedLink:b,autofocusSharedLink:this.shouldAutoFocusSharedLink(),autoCreateSharedLink:o,config:a,triggerCopyOnLoad:o&&u,changeSharedLinkAccessLevel:n,changeSharedLinkPermissionLevel:i,intl:d,item:h,itemType:h.type,onDismissTooltip:S,onEmailSharedLinkClick:this.openEmailSharedLinkForm,onSettingsClick:O,onToggleSharedLink:this.onToggleSharedLink,onCopyInit:v,onCopySuccess:w,onCopyError:y,sharedLink:C,showSharedLinkSettingsCallout:A,submitting:T||p,trackingProps:L,tooltips:D}),M&&!U&&r.createElement(Fn,Vn({contactsFieldLabel:r.createElement(l.a,m.sendSharedLinkFieldLabel),getContactAvatarUrl:f,getContacts:c,inlineNotice:{type:"error",content:k},isContactsFieldEnabled:!0,isExpanded:!0,isExternalUserSelected:this.hasExternalContact(Jn),onPillCreate:this.handleEmailSharedLinkPillCreate,onRequestClose:this.closeEmailSharedLinkForm,onSubmit:this.handleSendSharedLink,showEnterEmailsCallout:_,submitting:T,selectedContacts:this.state.emailSharedLinkContacts,updateSelectedContacts:this.updateEmailSharedLinkContacts},R)),U&&this.renderCollaboratorList()))}}])&&Gn(n.prototype,o),i&&Gn(n,i),t}(r.Component);Yn($n,"defaultProps",{displayInModal:!0,initiallySelectedContacts:[],createSharedLinkOnLoad:!1,focusSharedLinkOnLoad:!1,trackingProps:{collaboratorListTracking:{},inviteCollabsEmailTracking:{},inviteCollabTracking:{},modalTracking:{},removeLinkConfirmModalTracking:{},sharedLinkEmailTracking:{},sharedLinkTracking:{}}});var Zn=Object(d.c)($n);function er(e){return(er="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 tr(){return(tr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function nr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rr(e,t){return!t||"object"!==er(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function or(e){return(or=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function ir(e,t){return(ir=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var ar=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),rr(this,or(t).apply(this,arguments))}var n,r,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&&ir(e,t)}(t,e),n=t,(r=[{key:"componentDidMount",value:function(){var e=this.props.onLoad;e&&e()}},{key:"render",value:function(){var e=this.props,t=e.isOpen,n=e.onRequestClose,r=e.removeLink,i=e.submitting,a=e.okayButtonProps,s=e.modalProps,u=e.cancelButtonProps;return o.a.createElement(p.a,tr({className:"be-modal",focusElementSelector:".btn-primary",isOpen:t,onRequestClose:i?void 0:n,title:o.a.createElement(l.a,m.removeLinkConfirmationTitle),type:"alert"},s),o.a.createElement(l.a,m.removeLinkConfirmationDescription),o.a.createElement(p.b,null,o.a.createElement(E.b,tr({isDisabled:i,onClick:n},u),o.a.createElement(l.a,ne.a.cancel)),o.a.createElement(Nt.a,tr({isDisabled:i,isLoading:i,onClick:r},a),o.a.createElement(l.a,ne.a.okay))))}}])&&nr(n.prototype,r),i&&nr(n,i),t}(r.Component);n(1060);function sr(e){return(sr="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 lr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(){return(ur=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function cr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fr(e){return(fr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function dr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pr(e,t){return(pr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function hr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var br=function(e){function t(e){var n;!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"!==sr(t)&&"function"!=typeof t?dr(e):t}(this,fr(t).call(this,e)),hr(dr(n),"getInitialData",(function(){(0,n.props.getInitialData)().finally((function(){n.setState({isFetching:!1,shouldRenderFTUXTooltip:!0})})),n.setState({getInitialDataCalled:!0})})),hr(dr(n),"handleFtuxCloseClick",(function(){n.setState({shouldRenderFTUXTooltip:!1})})),hr(dr(n),"openConfirmModal",(function(){n.setState({isConfirmModalOpen:!0})})),hr(dr(n),"closeConfirmModal",(function(){n.setState({isConfirmModalOpen:!1})})),hr(dr(n),"removeLink",(function(){var e=n.props,t=e.onRemoveLink,r=e.displayInModal;t(),r||n.closeConfirmModal()})),hr(dr(n),"renderUSF",(function(){var e=n.state,t=e.isFetching,o=e.sharedLinkLoaded,i=e.shouldRenderFTUXTooltip;return r.createElement(Zn,ur({},n.props,{handleFtuxCloseClick:n.handleFtuxCloseClick,isFetching:t,openConfirmModal:n.openConfirmModal,sharedLinkLoaded:o,shouldRenderFTUXTooltip:i}))}));var o=e.initialDataReceived;return n.state={getInitialDataCalled:!!o,isConfirmModalOpen:!1,isEmailLinkSectionExpanded:!1,isFetching:!o,sharedLinkLoaded:!1,shouldRenderFTUXTooltip:!1,showCollaboratorList:!1},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&&pr(e,t)}(t,e),n=t,(o=[{key:"componentDidMount",value:function(){var e=this.props,t=e.item,n=e.trackingProps,r=t.type,o=t.typedID,i=n.modalTracking.onLoad;!this.state.getInitialDataCalled&&r&&o&&this.getInitialData(),i&&i()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.item,r=t.sharedLink,o=n.type,i=n.typedID,a=e.sharedLink;!this.state.getInitialDataCalled&&o&&i&&this.getInitialData(),a.url!==r.url&&r.url&&this.setState({sharedLinkLoaded:!0})}},{key:"render",value:function(){var e=this.props,t=e.canInvite,n=e.displayInModal,o=e.isOpen,i=e.item,a=e.onRequestClose,s=e.submitting,l=e.trackingProps,u=l.modalTracking,c=l.removeLinkConfirmModalTracking,f=u.modalProps,d=this.state,h=d.isEmailLinkSectionExpanded,b=d.isConfirmModalOpen,m=d.showCollaboratorList,y=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lr(Object(n),!0).forEach((function(t){hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({focusElementSelector:t?".bdl-PillSelector-input":".toggle-simple"},f);return r.createElement(r.Fragment,null,n?r.createElement(p.a,ur({className:"be-modal unified-share-modal",isOpen:!b&&o,onRequestClose:s?void 0:a,title:r.createElement(v,{isEmailLinkSectionExpanded:h,showCollaboratorList:m,item:i})},y),this.renderUSF()):r.createElement("div",{className:"bdl-UnifiedShareForm-container"},this.renderUSF()),b&&r.createElement(ar,ur({isOpen:b,onRequestClose:this.closeConfirmModal,removeLink:this.removeLink,submitting:s},c)))}}])&&cr(n.prototype,o),i&&cr(n,i),t}(r.Component);hr(br,"defaultProps",{displayInModal:!0,initiallySelectedContacts:[],createSharedLinkOnLoad:!1,focusSharedLinkOnLoad:!1,trackingProps:{inviteCollabsEmailTracking:{},sharedLinkEmailTracking:{},sharedLinkTracking:{},inviteCollabTracking:{},modalTracking:{},removeLinkConfirmModalTracking:{},collaboratorListTracking:{}}});var mr=Object(d.c)(br),yr=n(13),vr=n.n(yr),gr=n(210),wr=n(204);n(1061);function Er(){return(Er=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Sr(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<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var Or=function(e){var t=e.children,n=e.className,o=void 0===n?"":n,i=e.title,a=Sr(e,["children","className","title"]);return r.createElement("fieldset",Er({className:"fieldset ".concat(o)},a),r.createElement("legend",{className:"label"},i),t)},kr=function(e){var t=e.color,n=void 0===t?"#ED3757":t,o=e.className,i=void 0===o?"":o,a=e.height,s=void 0===a?16:a,l=e.title,u=e.width,c=void 0===u?16:u;return r.createElement(N.a,{className:"quarantine-badge ".concat(i),height:s,title:l,viewBox:"0 0 16 16",width:c},r.createElement("g",{fill:n,fillRule:"evenodd"},r.createElement("path",{d:"M15 8c0-3.866-3.134-7-7-7S1 4.134 1 8s3.134 7 7 7 7-3.134 7-7zM0 8c0-4.418 3.582-8 8-8s8 3.582 8 8-3.582 8-8 8-8-3.582-8-8z"}),r.createElement("path",{d:"M7.82 7.845c.012.062.12.155.18.155.065 0 .167-.088.18-.155l.668-4.02c-.01.068.08.175.143.175H7.01c.055 0 .15-.114.142-.174l.67 4.02zM7.01 3h1.98c.558 0 .935.45.845.99l-.67 4.02C9.075 8.555 8.555 9 8 9c-.552 0-1.075-.45-1.165-.99l-.67-4.02c-.09-.546.278-.99.844-.99zM9.5 11c0-.828-.672-1.5-1.5-1.5s-1.5.672-1.5 1.5.672 1.5 1.5 1.5 1.5-.672 1.5-1.5zm-2 0c0-.276.224-.5.5-.5s.5.224.5.5-.224.5-.5.5-.5-.224-.5-.5z"})))},Cr=Object(b.defineMessages)({allowDownloadLabel:{id:"boxui.share.sharedLinkSettings.allowDownloadLabel",defaultMessage:"Allow users with the shared link to download this item"},allowDownloadTitle:{id:"boxui.share.sharedLinkSettings.allowDownloadTitle",defaultMessage:"Allow Download"},directLinkLabel:{id:"boxui.share.sharedLinkSettings.directLinkLabel",defaultMessage:"Direct Link"},directDownloadBlockedByAccessPolicyWithClassification:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithClassification",defaultMessage:"Download has been disabled for content due to the classification."},directDownloadBlockedByMaliciousContent:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByMaliciousContent",defaultMessage:"Download for this content has been disabled due to a security policy."},directDownloadBlockedByAccessPolicyWithoutClassification:{id:"boxui.share.sharedLinkSettings.directDownloadBlockedByAccessPolicyWithoutClassification",defaultMessage:"Download has been disabled for content without classification."},inaccessibleSettingsNotice:{id:"boxui.share.sharedLinkSettings.inaccessibleSettingsNotice",defaultMessage:"Certain settings may not be available for this item due to permissions."},modalTitle:{id:"boxui.share.sharedLinkSettings.modalTitle",defaultMessage:"Shared Link Settings"},customURLLabel:{id:"boxui.share.sharedLinkSettings.customURLLabel",defaultMessage:"Non-private custom URL"},expirationTitle:{id:"boxui.share.sharedLinkSettings.expirationTitle",defaultMessage:"Link Expiration"},expirationLabel:{id:"boxui.share.sharedLinkSettings.expirationLabel",defaultMessage:"Disable Shared Link on"},passwordLabel:{id:"boxui.share.sharedLinkSettings.passwordLabel",defaultMessage:"Require password"},passwordPlaceholder:{id:"boxui.share.sharedLinkSettings.passwordPlaceholder",defaultMessage:"Enter a password"},passwordTitle:{id:"boxui.share.sharedLinkSettings.passwordTitle",defaultMessage:"Password Protect"},vanityNamePlaceholder:{id:"boxui.share.sharedLinkSettings.vanityNamePlaceholder",defaultMessage:"Enter a custom path (12 or more characters)"},vanityNameNotSet:{id:"boxui.share.sharedLinkSettings.vanityNameNotSet",defaultMessage:"The custom URL has not been set"},vanityURLWarning:{id:"boxui.share.sharedLinkSettings.vanityURLWarning",defaultMessage:"Custom URLs should not be used when sharing sensitive content."},vanityURLEnableText:{id:"boxui.share.vanityURLEnableText",defaultMessage:"Publish content broadly with a custom, non-private URL"},sharedLinkWarningText:{id:"boxui.share.sharedLinkSettings.sharedLinkWarningText",defaultMessage:"This content is publicly available to anyone with the link."},withLinkViewDownload:{id:"boxui.share.sharedLinkSettings.accessLevel.withLinkViewDownload",defaultMessage:"This content is publicly available to anyone with the link, and can be viewed or downloaded."},withLinkView:{id:"boxui.share.sharedLinkSettings.accessLevel.withLinkView",defaultMessage:"This content is publicly available to anyone with the link, and can be viewed."},inCompanyViewDownload:{id:"boxui.share.sharedLinkSettings.accessLevel.inCompanyViewDownload",defaultMessage:"This content is available to anyone within your company with the link, and can be viewed or downloaded."},inCompanyView:{id:"boxui.share.sharedLinkSettings.accessLevel.inCompanyView",defaultMessage:"This content is available to anyone within your company with the link, and can be viewed."},inItem:{id:"boxui.share.sharedLinkSettings.accessLevel.inItem",defaultMessage:"This content is available to invited collaborators with the link."},sharedLinkSettingWarningLinkText:{id:"boxui.share.sharedLinkSettings.sharedLinkSettingWarningLinkText",defaultMessage:"Learn more about shared link settings."}});function xr(){return(xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var _r=function(e){var t=e.canChangeVanityName,n=e.error,r=e.intl.formatMessage,i=e.isVanityEnabled,a=e.vanityName,s=e.vanityNameInputProps,u=void 0===s?{}:s,c=e.serverURL,f=e.onChange,d=e.onCheckboxChange,p=t?a:a||r(Cr.vanityNameNotSet),h=o.a.createElement("div",{className:"vanity-name-content"},o.a.createElement(Re.a,xr({description:o.a.createElement("span",null,o.a.createElement(kr,{color:ee.j}),o.a.createElement(l.a,Cr.vanityURLWarning)),hideLabel:!0,disabled:!t,error:n,name:"vanityName",onChange:f,placeholder:r(Cr.vanityNamePlaceholder),type:"text",value:p},u)),(t||!!a)&&o.a.createElement("p",{className:"custom-url-preview"},"".concat(c).concat(a)));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(Or,{className:"be vanity-name-section",title:o.a.createElement(l.a,Cr.customURLLabel)},o.a.createElement(wr.a,{label:o.a.createElement(l.a,Cr.vanityURLEnableText),isChecked:i,isDisabled:!t,subsection:i?h:void 0,onChange:d})))};_r.propTypes={canChangeVanityName:vr.a.bool.isRequired,error:vr.a.string,intl:vr.a.any,isVanityEnabled:vr.a.bool.isRequired,vanityName:vr.a.string.isRequired,vanityNameInputProps:vr.a.object,serverURL:vr.a.string.isRequired,onChange:vr.a.func,onCheckboxChange:vr.a.func};var Pr=Object(d.c)(_r);function Ar(){return(Ar=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Tr=function(e){var t=e.canChangePassword,n=e.error,r=e.intl.formatMessage,i=e.isPasswordAvailable,a=e.isPasswordEnabled,s=e.isPasswordInitiallyEnabled,u=e.onCheckboxChange,c=e.onPasswordChange,f=e.password,d=e.passwordCheckboxProps,p=void 0===d?{}:d,h=e.passwordInputProps,b=void 0===h?{}:h;if(!i)return null;var m=o.a.createElement("div",null,o.a.createElement(Re.a,Ar({disabled:!t,error:n,hideLabel:!0,isRequired:!s,label:o.a.createElement(l.a,Cr.passwordPlaceholder),maxLength:100,name:"password",onChange:c,placeholder:s?"••••••••":r(Cr.passwordPlaceholder),type:"password",value:f},b)));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(Or,{className:"be password-section",title:o.a.createElement(l.a,Cr.passwordTitle)},o.a.createElement(wr.a,Ar({isChecked:a,isDisabled:!t,label:o.a.createElement(l.a,Cr.passwordLabel),name:"isPasswordEnabled",onChange:u,subsection:a?m:void 0},p))))};Tr.propTypes={canChangePassword:vr.a.bool.isRequired,error:vr.a.string,intl:vr.a.any,isPasswordAvailable:vr.a.bool.isRequired,isPasswordEnabled:vr.a.bool.isRequired,isPasswordInitiallyEnabled:vr.a.bool.isRequired,onCheckboxChange:vr.a.func.isRequired,onPasswordChange:vr.a.func.isRequired,password:vr.a.string,passwordCheckboxProps:vr.a.object,passwordInputProps:vr.a.object};var Ir=Object(d.c)(Tr),Dr=n(518);function jr(){return(jr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Lr={weekday:"short",year:"numeric",month:"short",day:"numeric"},Rr=function(e){var t=e.canChangeExpiration,n=e.error,r=e.expirationCheckboxProps,i=void 0===r?{}:r,a=e.expirationDate,s=e.expirationInputProps,u=void 0===s?{}:s,c=e.isExpirationEnabled,f=e.onCheckboxChange,d=e.onExpirationDateChange,p=new Date((new Date).getTime()+864e5),h=o.a.createElement("div",null,o.a.createElement(Dr.a,{displayFormat:Lr,error:n,hideLabel:!0,inputProps:u,isDisabled:!t,isRequired:!0,label:o.a.createElement(l.a,Cr.expirationLabel),minDate:p,name:"expiration",onChange:d,value:a}));return o.a.createElement("div",null,o.a.createElement("hr",null),o.a.createElement(Or,{className:"be expiration-section",title:o.a.createElement(l.a,Cr.expirationTitle)},o.a.createElement(wr.a,jr({isChecked:c,isDisabled:!t,label:o.a.createElement(l.a,Cr.expirationLabel),name:"isExpirationEnabled",onChange:f,subsection:c?h:void 0},i))))};Rr.propTypes={canChangeExpiration:vr.a.bool.isRequired,error:vr.a.string,expirationCheckboxProps:vr.a.object,expirationDate:vr.a.instanceOf(Date),expirationInputProps:vr.a.object,isExpirationEnabled:vr.a.bool.isRequired,onCheckboxChange:vr.a.func.isRequired,onExpirationDateChange:vr.a.func.isRequired};var Nr=Rr;n(1062);function Mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mr(Object(n),!0).forEach((function(t){Ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ur(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Br(){return(Br=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}var Hr=function(e){var t=e.canChangeDownload,n=e.classification,r=e.directLink,i=e.directLinkInputProps,a=void 0===i?{}:i,s=e.downloadCheckboxProps,u=void 0===s?{}:s,c=e.isDirectLinkAvailable,f=e.isDirectLinkUnavailableDueToDownloadSettings,d=e.isDirectLinkUnavailableDueToAccessPolicy,p=e.isDirectLinkUnavailableDueToMaliciousContent,h=e.isDownloadAvailable,b=e.isDownloadEnabled,m=e.onChange;if(!h&&!c)return null;var y=o.a.createElement("div",null,o.a.createElement(Xe,Br({className:"direct-link-input",label:o.a.createElement(l.a,Cr.directLinkLabel),type:"url",value:r},a))),v=d||p,g=O()("bdl-AllowDownloadSection",{"bdl-is-disabled":v}),w=(c||f)&&b,E=null;return E=Fr({},p?Cr.directDownloadBlockedByMaliciousContent:n?Cr.directDownloadBlockedByAccessPolicyWithClassification:Cr.directDownloadBlockedByAccessPolicyWithoutClassification),h?o.a.createElement("div",{className:g},o.a.createElement("hr",null),o.a.createElement(D.c,{isDisabled:!v,text:o.a.createElement(l.a,E),position:"middle-left"},o.a.createElement(Or,{className:"be",disabled:v,title:o.a.createElement(l.a,Cr.allowDownloadTitle)},o.a.createElement(wr.a,Br({isChecked:b,isDisabled:!t||v,label:o.a.createElement(l.a,Cr.allowDownloadLabel),name:"isDownloadEnabled",onChange:m},u)),w&&y))):o.a.createElement("div",null,o.a.createElement("hr",null),y)};Hr.propTypes={canChangeDownload:vr.a.bool.isRequired,classification:vr.a.string,directLink:vr.a.string.isRequired,directLinkInputProps:vr.a.object,downloadCheckboxProps:vr.a.object,isDirectLinkAvailable:vr.a.bool.isRequired,isDirectLinkUnavailableDueToMaliciousContent:vr.a.bool,isDirectLinkUnavailableDueToAccessPolicy:vr.a.bool,isDirectLinkUnavailableDueToDownloadSettings:vr.a.bool.isRequired,isDownloadAvailable:vr.a.bool.isRequired,isDownloadEnabled:vr.a.bool.isRequired,onChange:vr.a.func.isRequired};var zr=Hr,Vr="peopleWithTheLink",Wr="peopleInYourCompany",Gr="peopleInThisItem";n(1063);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 Xr(){return(Xr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function Kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yr(e){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function Qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Jr(e,t){return(Jr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Zr=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"!==qr(t)&&"function"!=typeof t?Qr(e):t}(this,Yr(t).call(this,e)),$r(Qr(n),"onSubmit",(function(e){e.preventDefault();var t=n.state,r=t.expirationDate,o=t.isDownloadEnabled,i=t.isExpirationEnabled,a=t.isPasswordEnabled,s=t.password,l=t.vanityName;n.props.onSubmit({expirationTimestamp:r?r.getTime():void 0,isDownloadEnabled:o,isExpirationEnabled:i,isPasswordEnabled:a,password:s,vanityName:l})})),$r(Qr(n),"onVanityNameChange",(function(e){n.setState({vanityName:e.target.value,vanityNameError:void 0})})),$r(Qr(n),"onPasswordChange",(function(e){n.setState({password:e.target.value,passwordError:void 0})})),$r(Qr(n),"onPasswordCheckboxChange",(function(e){n.setState({isPasswordEnabled:e.target.checked})})),$r(Qr(n),"onExpirationDateChange",(function(e){n.setState({expirationDate:e,expirationError:void 0})})),$r(Qr(n),"onExpirationCheckboxChange",(function(e){n.setState({isExpirationEnabled:e.target.checked})})),$r(Qr(n),"onAllowDownloadChange",(function(e){n.setState({isDownloadEnabled:e.target.checked})})),$r(Qr(n),"onVanityCheckboxChange",(function(e){n.setState({isVanityEnabled:e.target.checked,vanityName:e.target.checked?n.props.vanityName:""})})),n.state={expirationDate:e.expirationTimestamp?new Date(e.expirationTimestamp):null,expirationError:e.expirationError,isVanityEnabled:!!e.vanityName,isDownloadEnabled:e.isDownloadEnabled,isExpirationEnabled:!!e.expirationTimestamp,isPasswordEnabled:e.isPasswordEnabled,password:"",passwordError:e.passwordError,vanityName:e.vanityName,vanityNameError:e.vanityNameError},n}var n,r,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&&Jr(e,t)}(t,e),n=t,(r=[{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.expirationError,r=t.passwordError,o=t.vanityNameError;e.expirationError===n&&e.passwordError===r&&e.vanityNameError===o||this.setState({expirationError:n,passwordError:r,vanityNameError:o})}},{key:"renderVanityNameSection",value:function(){var e=this.props,t=e.canChangeVanityName,n=e.hideVanityNameSection,r=e.serverURL,i=e.vanityNameInputProps,a=e.warnOnPublic,s=void 0!==a&&a,l=this.state,u=l.vanityNameError,c=l.isVanityEnabled;return n?null:o.a.createElement(Pr,{canChangeVanityName:t,isVanityEnabled:c,error:u,onChange:this.onVanityNameChange,onCheckboxChange:this.onVanityCheckboxChange,serverURL:r,vanityName:this.state.vanityName,vanityNameInputProps:i,warnOnPublic:s})}},{key:"renderPasswordSection",value:function(){var e=this.props,t=e.canChangePassword,n=e.isPasswordAvailable,r=e.passwordCheckboxProps,i=e.passwordInputProps,a=this.state,s=a.isPasswordEnabled,l=a.password,u=a.passwordError;return o.a.createElement(Ir,{canChangePassword:t,error:u,isPasswordAvailable:n,isPasswordEnabled:s,isPasswordInitiallyEnabled:this.props.isPasswordEnabled,onCheckboxChange:this.onPasswordCheckboxChange,onPasswordChange:this.onPasswordChange,password:l,passwordCheckboxProps:r,passwordInputProps:i})}},{key:"renderExpirationSection",value:function(){var e=this.props,t=e.canChangeExpiration,n=e.expirationCheckboxProps,r=e.expirationInputProps,i=this.state,a=i.expirationDate,s=i.isExpirationEnabled,l=i.expirationError;return o.a.createElement(Nr,{canChangeExpiration:t,error:l,expirationCheckboxProps:n,expirationDate:a,expirationInputProps:r,isExpirationEnabled:s,onCheckboxChange:this.onExpirationCheckboxChange,onExpirationDateChange:this.onExpirationDateChange})}},{key:"renderAccessLevelNotice",value:function(){var e=function(e,t){var n;switch(e){case Vr:n=t?Cr.withLinkViewDownload:Cr.withLinkView;break;case Wr:n=t?Cr.inCompanyViewDownload:Cr.inCompanyView;break;case Gr:n=Cr.inItem}return n}(this.props.accessLevel,this.state.isDownloadEnabled);return e&&o.a.createElement("div",{className:"link-settings-modal-notice"},o.a.createElement(l.a,e)," ",o.a.createElement(gr.a,{href:"https://community.box.com/t5/Using-Shared-Links/Shared-Link-Settings/ta-p/50250",target:"_blank"},o.a.createElement(l.a,Cr.sharedLinkSettingWarningLinkText)))}},{key:"renderAllowDownloadSection",value:function(){var e=this.props,t=e.canChangeDownload,n=e.directLink,r=e.directLinkInputProps,i=e.downloadCheckboxProps,a=e.isDirectLinkAvailable,s=e.isDirectLinkUnavailableDueToDownloadSettings,l=e.isDirectLinkUnavailableDueToAccessPolicy,u=e.isDirectLinkUnavailableDueToMaliciousContent,c=e.isDownloadAvailable,f=e.item,d=this.state.isDownloadEnabled,p=f.classification;return o.a.createElement(zr,{canChangeDownload:t,classification:p,directLink:n,directLinkInputProps:r,downloadCheckboxProps:i,isDirectLinkAvailable:a,isDirectLinkUnavailableDueToDownloadSettings:s,isDirectLinkUnavailableDueToAccessPolicy:l,isDirectLinkUnavailableDueToMaliciousContent:u,isDownloadAvailable:c,isDownloadEnabled:d,onChange:this.onAllowDownloadChange})}},{key:"renderModalTitle",value:function(){var e=this.props.item,t=e.bannerPolicy,n=e.classification;return o.a.createElement("span",{className:"bdl-SharedLinkSettingsModal-title"},o.a.createElement(l.a,Cr.modalTitle),o.a.createElement(h.c,{definition:t?t.body:void 0,messageStyle:"tooltip",name:n,className:"bdl-SharedLinkSettingsModal-classification"}))}},{key:"render",value:function(){var e=this.props,t=e.canChangeDownload,n=e.canChangeExpiration,r=e.canChangePassword,i=e.canChangeVanityName,a=e.cancelButtonProps,s=e.isOpen,u=e.modalProps,c=e.onRequestClose,f=e.saveButtonProps,d=e.submitting,h=!(t&&n&&r&&i),b=!(t||n||r||i);return o.a.createElement(p.a,Xr({className:"be-modal shared-link-settings-modal",isOpen:s,onRequestClose:d?void 0:c,title:this.renderModalTitle()},u),o.a.createElement("form",{onSubmit:this.onSubmit},h&&o.a.createElement(Mt.a,{type:"warning"},o.a.createElement(l.a,Cr.inaccessibleSettingsNotice)),this.renderAccessLevelNotice(),this.renderExpirationSection(),this.renderPasswordSection(),this.renderVanityNameSection(),this.renderAllowDownloadSection(),o.a.createElement(p.b,null,o.a.createElement(E.b,Xr({isDisabled:d,onClick:c,type:"button"},a),o.a.createElement(l.a,ne.a.cancel)),o.a.createElement(Nt.a,Xr({isDisabled:d||b,isLoading:d},f),o.a.createElement(l.a,ne.a.save)))))}}])&&Kr(n.prototype,r),i&&Kr(n,i),t}(r.Component);$r(Zr,"propTypes",{hideVanityNameSection:vr.a.bool,isOpen:vr.a.bool,onRequestClose:vr.a.func,submitting:vr.a.bool,warnOnPublic:vr.a.bool,onSubmit:vr.a.func.isRequired,accessLevel:vr.a.string,canChangeVanityName:vr.a.bool.isRequired,vanityName:vr.a.string.isRequired,serverURL:vr.a.string.isRequired,vanityNameError:vr.a.string,canChangePassword:vr.a.bool.isRequired,isPasswordAvailable:vr.a.bool.isRequired,isPasswordEnabled:vr.a.bool.isRequired,passwordError:vr.a.string,canChangeExpiration:vr.a.bool.isRequired,expirationTimestamp:vr.a.number,expirationError:vr.a.string,isDownloadAvailable:vr.a.bool.isRequired,canChangeDownload:vr.a.bool.isRequired,isDownloadEnabled:vr.a.bool.isRequired,directLink:vr.a.string.isRequired,isDirectLinkAvailable:vr.a.bool.isRequired,isDirectLinkUnavailableDueToDownloadSettings:vr.a.bool.isRequired,isDirectLinkUnavailableDueToAccessPolicy:vr.a.bool.isRequired,isDirectLinkUnavailableDueToMaliciousContent:vr.a.bool.isRequired,item:vr.a.object,cancelButtonProps:vr.a.object,directLinkInputProps:vr.a.object,downloadCheckboxProps:vr.a.object,expirationCheckboxProps:vr.a.object,expirationInputProps:vr.a.object,modalProps:vr.a.object,passwordCheckboxProps:vr.a.object,passwordInputProps:vr.a.object,saveButtonProps:vr.a.object,vanityNameInputProps:vr.a.object}),$r(Zr,"defaultProps",{cancelButtonProps:{},modalProps:{},saveButtonProps:{}});var eo=Zr,to=n(310),no=n(603),ro=n(1),oo={400:"badRequestError",401:"noAccessError",403:"noAccessError",404:"notFoundError",500:"loadingError"},io=[ro.nc,ro.oc,ro.sc,ro.yc,ro.Bc,ro.Fc,ro.pd,ro.Rc,ro.Tc,ro.Wc,ro.gd,ro.hd,ro.id],ao={fields:io},so={SHARED_LINK_SETTINGS:"SHARED_LINK_SETTINGS",UNIFIED_SHARE_MODAL:"UNIFIED_SHARE_MODAL"};function lo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var uo,co,fo,po,ho,bo=function(e,t,n,o,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},l=lo(r.useState(null),2),u=l[0],c=l[1],f=lo(r.useState(null),2),d=f[0],p=f[1],h=lo(r.useState(null),2),b=h[0],m=h[1],y=lo(r.useState(null),2),v=y[0],g=y[1],w=lo(r.useState(null),2),E=w[0],S=w[1],O=lo(r.useState(!1),2),k=O[0],C=O[1],x=r.useRef(i),_=a.handleRemoveSharedLinkError,P=void 0===_?s.a:_,A=a.handleRemoveSharedLinkSuccess,T=void 0===A?function(e){return e}:A,I=a.handleUpdateSharedLinkError,D=void 0===I?s.a:I,j=a.handleUpdateSharedLinkSuccess,L=void 0===j?function(e){return e}:j,R=a.setIsLoading,N=void 0===R?s.a:R,M=a.transformAccess,F=void 0===M?function(e){return e}:M,U=a.transformPermissions,B=void 0===U?function(e){return e}:U,H=a.transformSettings,z=void 0===H?function(e,t){return e}:H;return r.useEffect((function(){if(o&&!k){var r,i={id:t,permissions:o};n===ro.zf?r=e.getFileAPI():n===ro.Af&&(r=e.getFolderAPI());var a=function(e){var t=e.access,n=e.requestOptions,o=void 0===n?ao:n,a=e.successFn,s=void 0===a?L:a,l=e.errorFn,u=void 0===l?D:l;return N(!0),r.share(i,t,s,u,o)};c((function(){return function(){return a({successFn:function(e){var t=e.shared_link.access;x.current=t,L(e)}})}}));p((function(){return function(){return a({access:ro.c,successFn:T,errorFn:P})}}));m((function(){return function(e){return a({access:F(e),successFn:function(t){x.current=e,L(t)}})}}));var s=function(e){return N(!0),r.updateSharedLink(i,e,L,D,ao)};g((function(){return function(e){return s({permissions:B(e)})}}));S((function(){return function(e){return s(z(e,x.current))}})),C(!0)}}),[o,k,t,n,L,T,F,i,B,z,x,e,N,P,D]),{changeSharedLinkAccessLevel:b,changeSharedLinkPermissionLevel:v,onAddLink:u,onRemoveLink:d,onSubmitSettings:E}},mo=n(17);function yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function vo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yo(Object(n),!0).forEach((function(t){go(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function go(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wo=(go(uo={},ro.a,me),go(uo,ro.b,"peopleInYourCompany"),go(uo,ro.d,be),go(uo,ro.c,""),uo),Eo=(go(co={},ro.ue,"canViewDownload"),go(co,ro.we,"canViewOnly"),co),So=(go(fo={},"peopleInYourCompany",ro.b),go(fo,be,ro.d),go(fo,me,ro.a),fo),Oo=(go(po={},"canViewDownload",ro.ue),go(po,"canViewOnly",ro.we),po),ko=(go(ho={},ee.w,mo.b),go(ho,ee.q,mo.c),go(ho,ee.u,mo.d),go(ho,ee.s,mo.e),go(ho,ee.o,mo.f),go(ho,ee.e,mo.g),go(ho,ee.m,mo.h),go(ho,ee.h,mo.i),ho),Co=new RegExp("boxdevedition.com"),xo=function(e){if(!e)return null;var t={peopleInThisItem:!1,peopleInYourCompany:!1,peopleWithTheLink:!1};return e.forEach((function(e){t[wo[e]]=!0})),t},_o=function(e){var t=e.allowed_invitee_roles,n=e.allowed_shared_link_access_levels,r=e.allowed_shared_link_access_levels_disabled_reasons,o=e.classification,i=e.id,a=e.description,s=e.extension,l=e.name,u=e.owned_by,c=u.id,f=u.login,d=e.permissions,p=e.shared_link,h=e.shared_link_features,b=h.download_url,m=h.password,y=e.type,v=d.can_download,g=d.can_invite_collaborator,w=d.can_preview,E=d.can_set_share_access,S=d.can_share,O={};if(o){var k=o.color,C=o.definition,x=o.name;O={bannerPolicy:{body:C,colorID:ko[k]},classification:x}}var _=-1!==t.indexOf(ro.Sd),P={canInvite:!!g};if(p){var A=p.download_url,T=p.effective_access,I=p.effective_permission,D=p.is_password_enabled,j=p.password,L=p.unshared_at,R=p.url,N=p.vanity_name,M=T?wo[T]:"",F=I?Eo[I]:null,U=F===Eo.can_download,B=E&&v&&T!==ro.a,H=E&&m,z=E&&_;P={accessLevel:M,accessLevelsDisabledReason:r||{},allowedAccessLevels:xo(n)||ye,canChangeAccessLevel:E,canChangeDownload:B,canChangeExpiration:z,canChangePassword:H,canChangeVanityName:!1,canInvite:!!g,directLink:A,expirationTimestamp:L?new Date(L).getTime():null,isDirectLinkAvailable:b,isDownloadAllowed:U,isDownloadAvailable:v,isDownloadEnabled:U,isDownloadSettingAvailable:v,isEditAllowed:_,isNewSharedLink:!1,isPasswordAvailable:m,isPasswordEnabled:D,isPreviewAllowed:w,password:j,permissionLevel:F,url:R,vanityName:N||""}}return{item:vo({canUserSeeClassification:!!o,description:a,extension:s,grantedPermissions:{itemShare:!!S},hideCollaborators:!1,id:i,name:l,ownerEmail:f,ownerID:c,permissions:d,type:y,typedID:y===ro.Af?Object(Ze.c)(i):Object(Ze.b)(i)},O),sharedLink:P}},Po=function(e){var t=e.enterprise,n=e.hostname;return{id:e.id,userEnterpriseData:{enterpriseName:t?t.name:"",serverURL:n?"".concat(n,"v/"):""}}},Ao=function(e){var t={};return Object.keys(Oo).forEach((function(n){t[Oo[n]]=n===e})),t},To=function(e,t,n){var r=e.expirationTimestamp,o=e.isDownloadEnabled,i=e.isExpirationEnabled,a=e.isPasswordEnabled,s=e.password,l=e.vanityName,u={unshared_at:r&&i?new Date(r).toISOString():null,vanity_url:n&&l?"".concat(n).concat(l):""};return[ro.a,me].includes(t)||(u.permissions={can_download:o,can_preview:!o}),[be,ro.d].includes(t)&&(a&&s?u.password=s:a||(u.password=null)),u},Io=function(e,t,n,r){var o=e.entries,i=void 0===o?[]:o;if(!i.length)return{collaborators:[]};var a=n&&/@/.test(n)?n.split("@")[1]:null;return{collaborators:i.filter((function(e){return e.status===ro.ef})).map((function(e){var n=e.accessible_by,o=n.id,i=n.login,s=n.name,l=n.type,u=e.id,c=e.expires_at,f=e.role,d=t?t[o]:void 0,p={collabID:parseInt(u,10),email:i,hasCustomAvatar:!!d,imageURL:d,isExternalCollab:mn(r,a,i),name:s,translatedRole:"".concat(f[0].toUpperCase()).concat(f.slice(1)),type:l,userID:parseInt(o,10)};return c&&(p.expiration={executeAt:c}),p}))}},Do=function(e){var t=e.emails,n=e.groupIDs,r=e.permission,o=t?t.split(","):[],i=n?n.split(","):[],a={role:r.toLowerCase()};return{groups:i.map((function(e){return vo({accessible_by:{id:e,type:"group"}},a)})),users:o.map((function(e){return vo({accessible_by:{login:e,type:"user"}},a)}))}},jo=function(e,t){var n=e.entries;return(void 0===n?[]:n).map((function(e){return{id:e.id,email:e.login,name:e.name,type:e.type}})).filter((function(e){var n=e.id,r=e.email;return n!==t&&r&&!Co.test(r)}))},Lo=function(e){var t=e.entries;return(void 0===t?[]:t).filter((function(e){var t=e.permissions;return t&&t.can_invite_as_collaborator})).map((function(e){return{id:e.id,name:e.name,type:e.type}}))};function Ro(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function No(e){return function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Ro(i,r,o,a,s,"next",e)}function s(e){Ro(i,r,o,a,s,"throw",e)}a(void 0)}))}}function Mo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Fo=function(e,t,n){var o=Mo(r.useState(null),2),i=o[0],a=o[1];return r.useEffect((function(){if(!i&&n&&n.entries){var r=e.getUsersAPI(!1);No(regeneratorRuntime.mark((function e(){var o,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return o={},i=n?n.entries:[],e.next=4,Promise.all(i.map(function(){var e=No(regeneratorRuntime.mark((function e(n){var i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n&&n.accessible_by){e.next=2;break}return e.abrupt("return");case 2:return i=n.accessible_by.id,e.next=5,r.getAvatarUrlWithAccessToken(i.toString(),t);case 5:a=e.sent,o[i]=a;case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()));case 4:a(o);case 5:case"end":return e.stop()}}),e)})))()}}),[e,i,n,t]),i};function Uo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Bo=function(e,t,n,o){var i=Uo(r.useState(null),2),a=i[0],l=i[1],u=o.handleSuccess,c=void 0===u?s.a:u,f=o.handleError,d=void 0===f?s.a:f;return r.useEffect((function(){if(!a){var r;n===ro.zf?r=e.getFileCollaborationsAPI(!1):n===ro.Af&&(r=e.getFolderCollaborationsAPI(!1)),r&&r.getCollaborations(t,(function(e){l(e),c(e)}),(function(){l({entries:[],next_marker:null}),d()}))}}),[e,a,d,c,t,n]),a};function Ho(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function zo(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Vo=function(e,t,n){var o=zo(r.useState(null),2),i=o[0],a=o[1],l=n.handleSuccess,u=void 0===l?s.a:l,c=n.handleError,f=void 0===c?s.a:c,d=n.transformGroups,p=n.transformUsers;return r.useEffect((function(){if(!i){var n=function(e,t,n){u(t);var r=t&&t.entries&&t.entries.length;if(n&&r)return e(n(t));return e(t&&t.entries?t.entries:[])};a((function(){return function(r){var o=new Promise((function(o){e.getMarkerBasedUsersAPI(!1).getUsersInEnterprise(t,(function(e){return n(o,e,p)}),f,{filter_term:r})})),i=new Promise((function(o){e.getMarkerBasedGroupsAPI(!1).getGroupsInEnterprise(t,(function(e){return n(o,e,d)}),f,{fields:[ro.Rc,ro.Wc].toString(),filter_term:r})}));return Promise.all([o,i]).then((function(e){return[].concat(Ho(e[0]),Ho(e[1]))}))}}))}}),[e,i,f,u,t,d,p]),i};function Wo(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,o)}function Go(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var qo=function(e,t,n,o){var i=Go(r.useState(null),2),a=i[0],l=i[1],u=o.handleSuccess,c=void 0===u?s.a:u,f=o.handleError,d=void 0===f?s.a:f,p=o.setIsLoading,h=void 0===p?s.a:p,b=o.transformRequest,m=o.transformResponse,y=void 0===m?function(e){return e}:m;return r.useEffect((function(){if(!a){var r={id:t,type:n},o=function(t){return h(!0),e.getCollaborationsAPI(!1).addCollaboration(r,t,(function(e){return c(e),y(e)}),d)};a||l((function(){return function(){var e,t=(e=regeneratorRuntime.mark((function e(t){var n,r,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(b){e.next=2;break}return e.abrupt("return",Promise.resolve(null));case 2:return n=b(t),r=n.users,i=n.groups,e.abrupt("return",Promise.all([r.map((function(e){return o(e)})),i.map((function(e){return o(e)}))]));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,n=arguments;return new Promise((function(r,o){var i=e.apply(t,n);function a(e){Wo(i,r,o,a,s,"next",e)}function s(e){Wo(i,r,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}()}))}}),[e,d,c,t,n,a,h,b,y]),a},Xo=Object(b.defineMessages)({badRequestError:{id:"be.contentSharing.badRequestError",defaultMessage:"The request for this item was malformed."},loadingError:{id:"be.contentSharing.loadingError",defaultMessage:"Could not load shared link for this item."},noAccessError:{id:"be.contentSharing.noAccessError",defaultMessage:"You do not have access to this item."},notFoundError:{id:"be.contentSharing.notFoundError",defaultMessage:"Could not find shared link for this item."},sharedLinkUpdateError:{id:"be.contentSharing.sharedLinkUpdateError",defaultMessage:"Could not update the shared link for this item."},sharedLinkSettingsUpdateSuccess:{id:"be.contentSharing.sharedLinkSettingsUpdateSuccess",defaultMessage:"The shared link for this item was successfully updated."},sharedLinkRemovalSuccess:{id:"be.contentSharing.sharedLinkRemovalSuccess",defaultMessage:"The shared link for this item was removed."},collaboratorsLoadingError:{id:"be.contentSharing.collaboratorsLoadingError",defaultMessage:"Could not retrieve collaborators for this item."},getContactsError:{id:"be.contentSharing.getContactsError",defaultMessage:"Could not retrieve contacts."},sendInvitesError:{id:"be.contentSharing.sendInvitesError",defaultMessage:"Could not send invites."},sendInvitesSuccess:{id:"be.contentSharing.sendInvitesSuccess",defaultMessage:"Successfully invited collaborators."}});function Ko(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function Yo(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Qo(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(n),!0).forEach((function(t){Jo(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var Zo=function(e){var t=e.accessLevel,n=e.api,o=e.closeComponent,i=e.closeSettings,a=e.collaboratorsList,s=e.currentUserID,u=e.getContacts,c=e.itemID,f=e.itemType,d=e.ownerEmail,p=e.ownerID,h=e.permissions,b=e.sendInvites,m=e.serverURL,y=e.setChangeSharedLinkAccessLevel,v=e.setChangeSharedLinkPermissionLevel,g=e.setGetContacts,w=e.setCollaboratorsList,E=e.setIsLoading,S=e.setItem,O=e.setOnAddLink,k=e.setOnRemoveLink,C=e.setOnSubmitSettings,x=e.setSendInvites,_=e.setSharedLink,P=$o(r.useState({}),2),A=P[0],T=P[1],I=$o(r.useState(0),2),D=I[0],j=I[1],L=r.useCallback((function(e){var t=Qo({},A);delete t[e],T(t)}),[A]),R=r.useCallback((function(e,t){var n=Qo({},A);n[D]||(n[D]=r.createElement(to.c,{duration:"short",key:D,onClose:function(){return L(D)},type:e},r.createElement("span",null,r.createElement(l.a,t))),T(n),j(D+1))}),[L,D,A]),N=function(){R(to.a,Xo.sharedLinkUpdateError),E(!1),i()},M=bo(n,c,f,h,t,{handleUpdateSharedLinkError:N,handleUpdateSharedLinkSuccess:function(e){R(to.b,Xo.sharedLinkSettingsUpdateSuccess),function(e){var t=_o(e),n=t.item,r=t.sharedLink;S((function(e){return Qo({},e,{},n)})),_((function(e){return Qo({},e,{},r)}))}(e),E(!1),i()},handleRemoveSharedLinkError:function(){N(),o()},handleRemoveSharedLinkSuccess:function(e){R(to.b,Xo.sharedLinkRemovalSuccess),function(e){var t=_o(e),n=t.item,r=t.sharedLink;S((function(e){return Qo({},e,{},n)})),_((function(e){return Qo({},r,{serverURL:e?e.serverURL:""})}))}(e),E(!1),o()},setIsLoading:E,transformAccess:function(e){return So[e]},transformPermissions:function(e){return Ao(e)},transformSettings:function(e,t){return To(e,t,m)}}),F=M.changeSharedLinkAccessLevel,U=M.changeSharedLinkPermissionLevel,B=M.onAddLink,H=M.onRemoveLink,z=M.onSubmitSettings;y((function(){return F})),v((function(){return U})),O((function(){return B})),k((function(){return H})),C((function(){return z}));var V=Bo(n,c,f,{handleError:function(){return R(to.a,Xo.collaboratorsLoadingError)}}),W=Fo(n,c,V);V&&W&&!a&&w(Io(V,W,d,s===p));var G=Vo(n,c,{handleError:function(){return R(to.a,Xo.getContactsError)},transformGroups:function(e){return Lo(e)},transformUsers:function(e){return jo(e,s)}});G&&!u&&g((function(){return G}));var q=qo(n,c,f,{handleSuccess:function(){R(to.b,Xo.sendInvitesSuccess),E(!1),o()},handleError:function(){R(to.a,Xo.sendInvitesError),E(!1),o()},setIsLoading:E,transformRequest:function(e){return Do(e)}});return q&&!b&&x((function(){return q})),r.createElement(no.a,null,r.createElement(r.Fragment,null,Ko(Object.values(A))))};function ei(){return(ei=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function ti(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ri(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var oi=function(e){var t=e.api,n=e.config,o=e.displayInModal,i=e.itemID,a=e.itemType,d=e.language,p=e.messages,h=ri(r.useState(null),2),b=h[0],m=h[1],y=ri(r.useState(null),2),v=y[0],g=y[1],w=ri(r.useState(null),2),E=w[0],S=w[1],O=ri(r.useState(null),2),k=O[0],C=O[1],x=ri(r.useState(null),2),_=x[0],P=x[1],A=ri(r.useState(null),2),T=A[0],I=A[1],D=ri(r.useState(null),2),j=D[0],L=D[1],R=ri(r.useState(null),2),N=R[0],M=R[1],F=ri(r.useState(null),2),U=F[0],B=F[1],H=ri(r.useState(null),2),z=H[0],V=H[1],W=ri(r.useState(so.UNIFIED_SHARE_MODAL),2),G=W[0],q=W[1],X=ri(r.useState(null),2),K=X[0],Y=X[1],Q=ri(r.useState(null),2),J=Q[0],$=Q[1],Z=ri(r.useState(!0),2),ee=Z[0],te=Z[1],ne=ri(r.useState(!0),2),re=ne[0],oe=ne[1],ie=r.useCallback((function(e){var t=_o(e),n=t.item,r=t.sharedLink;C(null),m(n),g(r),te(!1)}),[]),ae=r.useCallback((function(e){var t;t=e.status?Xo[oo[e.status]]:e.response&&e.response.status?Xo[oo[e.response.status]]:Xo.loadingError,C(t)}),[C]);if(r.useEffect((function(){M(null),B(null),P(null),S(null),m(null),I(null),L(null),g(null),te(!0)}),[]),r.useEffect((function(){b||v||(a===ro.zf?t.getFileAPI().getFile(i,ie,ae,{fields:io}):a===ro.Af&&t.getFolderAPI().getFolderFields(i,ie,ae,{fields:io}))}),[t,ae,ie,b,i,a,v]),r.useEffect((function(){var e=function(e){var t=Po(e),n=t.id,r=t.userEnterpriseData;S(n),g((function(e){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ti(Object(n),!0).forEach((function(t){ni(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ti(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e,{},r)})),C(null),te(!1)};b&&v&&!E&&t.getUsersAPI(!1).getUser(i,e,ae,{params:{fields:[ro.Ac,ro.Ec].toString()}})}),[ae,b,i,a,v,E,t]),k)return r.createElement(c.a,{errorHeader:r.createElement(l.a,k)});if(!(b&&v&&E&&v.serverURL))return r.createElement(f.b,null);var se=b.ownerEmail,le=b.ownerID,ue=b.permissions,ce=v.accessLevel,fe=void 0===ce?"":ce,de=v.serverURL;return r.createElement(u.a,{language:d,messages:p},r.createElement(r.Fragment,null,r.createElement(Zo,{accessLevel:fe,api:t,closeComponent:o?function(){return oe(!1)}:s.a,closeSettings:function(){return q(so.UNIFIED_SHARE_MODAL)},collaboratorsList:_,currentUserID:E,getContacts:K,itemID:i,itemType:a,onSubmitSettings:z,ownerEmail:se,ownerID:le,permissions:ue,sendInvites:J,serverURL:de,setChangeSharedLinkAccessLevel:M,setChangeSharedLinkPermissionLevel:B,setGetContacts:Y,setCollaboratorsList:P,setIsLoading:te,setItem:m,setOnAddLink:I,setOnRemoveLink:L,setOnSubmitSettings:V,setSendInvites:$,setSharedLink:g}),re&&G===so.SHARED_LINK_SETTINGS&&r.createElement(eo,ei({isDirectLinkUnavailableDueToDownloadSettings:!1,isDirectLinkUnavailableDueToAccessPolicy:!1,isDirectLinkUnavailableDueToMaliciousContent:!1,isOpen:!0,item:b,onRequestClose:function(){return q(so.UNIFIED_SHARE_MODAL)},onSubmit:z,submitting:ee},v)),re&&G===so.UNIFIED_SHARE_MODAL&&r.createElement(mr,{canInvite:v.canInvite,config:n,changeSharedLinkAccessLevel:N,changeSharedLinkPermissionLevel:U,collaboratorsList:_,currentUserID:E,displayInModal:o,getCollaboratorContacts:K,initialDataReceived:!0,inviteePermissions:ve,isOpen:!0,item:b,onAddLink:T,onRequestClose:o?function(){return oe(!1)}:s.a,onRemoveLink:j,onSettingsClick:function(){return q(so.SHARED_LINK_SETTINGS)},sendInvites:J,sharedLink:v,submitting:ee})))};n(236),n(300),n(525);function ii(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(!(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var ai=function(e,t,n,r){return new i.a({apiHost:e,clientName:ro.z,id:"".concat(n,"_").concat(t),token:r})};var si=function(e){var t=e.apiHost,n=e.config,o=e.customButton,i=e.displayInModal,a=e.itemID,s=e.itemType,l=e.language,u=e.messages,c=e.token,f=ii(r.useState(ai(t,a,s,c)),2),d=f[0],p=f[1],h=ii(r.useState(null),2),b=h[0],m=h[1],y=ii(r.useState(o?null:r.createElement(oi,{api:d,config:n,displayInModal:!1,itemID:a,itemType:s,language:l,messages:u})),2),v=y[0],g=y[1];return r.useEffect((function(){p(ai(t,a,s,c))}),[t,a,s,c]),r.useEffect((function(){g(null),m(null)}),[d]),r.useEffect((function(){var e=function(){return r.createElement(oi,{api:d,config:n,displayInModal:i,itemID:a,itemType:s,language:l,messages:u})};o&&!b&&m(r.cloneElement(o,{onClick:function(){return g(e())}})),o||v||g(e())}),[d,n,v,o,i,a,s,l,b,u]),r.createElement(r.Fragment,null,b,v)};n.d(t,"a",(function(){return si}))},,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t),function(e){var r=n(0),o=n.n(r),i=n(35),a=n(248),s=n(1014),l=n(114);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 c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var b=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,p(t).apply(this,arguments))}var n,r,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&&h(e,t)}(t,e),n=t,(r=[{key:"render",value:function(){var e=this.options.itemType;Object(i.render)(o.a.createElement(s.a,c({itemID:this.id,itemType:e||l.a,language:this.language,messages:this.messages,token:this.token},this.options)),this.container)}}])&&f(n.prototype,r),a&&f(n,a),t}(a.a);e.Box=e.Box||{},e.Box.ContentSharing=b,t.default=b}.call(this,n(36))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var r=n(566),o=n(1048),i=n(1049),a=n(567),s=n(1050),l=n(537),u=200;e.exports=function(e,t,n){var c=-1,f=o,d=e.length,p=!0,h=[],b=h;if(n)p=!1,f=i;else if(d>=u){var m=t?null:s(e);if(m)return l(m);p=!1,f=a,b=new r}else b=t?[]:h;e:for(;++c<d;){var y=e[c],v=t?t(y):y;if(y=n||0!==y?y:0,p&&v==v){for(var g=b.length;g--;)if(b[g]===v)continue e;t&&b.push(v),h.push(y)}else f(b,v,n)||(b!==h&&b.push(v),h.push(y))}return h}},function(e,t,n){var r=n(313);e.exports=function(e,t){return!!(null==e?0:e.length)&&r(e,t,0)>-1}},function(e,t){e.exports=function(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(312),o=n(3),i=n(537),a=r&&1/i(new r([,-0]))[1]==1/0?function(e){return new r(e)}:o;e.exports=a},function(e,t,n){"use strict";var r=n(1002);t.analyze=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof e)throw new Error("Invalid input: domain must be a string");if(!e)return r.error("Domain must be a non-empty string");if(e.length>256)return r.error("Domain too long");var n=!r.nonAsciiRx.test(e);if(!n){if(!1===t.allowUnicode)return r.error("Domain contains forbidden Unicode characters");var o=e.normalize("NFC");e=r.punycode(o)}return r.domain(e,t)},t.isValid=function(e,n){return!t.analyze(e,n)}},function(e,t,n){(function(e,r){var o;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)}
/*! https://mths.be/punycode v1.4.1 by @mathias */!function(a){var s="object"==i(t)&&t&&!t.nodeType&&t,l="object"==i(e)&&e&&!e.nodeType&&e,u="object"==(void 0===r?"undefined":i(r))&&r;u.global!==u&&u.window!==u&&u.self!==u||(a=u);var c,f,d=2147483647,p=36,h=1,b=26,m=38,y=700,v=72,g=128,w="-",E=/^xn--/,S=/[^\x20-\x7E]/,O=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=p-h,x=Math.floor,_=String.fromCharCode;function P(e){throw new RangeError(k[e])}function A(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function T(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),r+A((e=e.replace(O,".")).split("."),t).join(".")}function I(e){for(var t,n,r=[],o=0,i=e.length;o<i;)(t=e.charCodeAt(o++))>=55296&&t<=56319&&o<i?56320==(64512&(n=e.charCodeAt(o++)))?r.push(((1023&t)<<10)+(1023&n)+65536):(r.push(t),o--):r.push(t);return r}function D(e){return A(e,(function(e){var t="";return e>65535&&(t+=_((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=_(e)})).join("")}function j(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function L(e,t,n){var r=0;for(e=n?x(e/y):e>>1,e+=x(e/t);e>C*b>>1;r+=p)e=x(e/C);return x(r+(C+1)*e/(e+m))}function R(e){var t,n,r,o,i,a,s,l,u,c,f,m=[],y=e.length,E=0,S=g,O=v;for((n=e.lastIndexOf(w))<0&&(n=0),r=0;r<n;++r)e.charCodeAt(r)>=128&&P("not-basic"),m.push(e.charCodeAt(r));for(o=n>0?n+1:0;o<y;){for(i=E,a=1,s=p;o>=y&&P("invalid-input"),((l=(f=e.charCodeAt(o++))-48<10?f-22:f-65<26?f-65:f-97<26?f-97:p)>=p||l>x((d-E)/a))&&P("overflow"),E+=l*a,!(l<(u=s<=O?h:s>=O+b?b:s-O));s+=p)a>x(d/(c=p-u))&&P("overflow"),a*=c;O=L(E-i,t=m.length+1,0==i),x(E/t)>d-S&&P("overflow"),S+=x(E/t),E%=t,m.splice(E++,0,S)}return D(m)}function N(e){var t,n,r,o,i,a,s,l,u,c,f,m,y,E,S,O=[];for(m=(e=I(e)).length,t=g,n=0,i=v,a=0;a<m;++a)(f=e[a])<128&&O.push(_(f));for(r=o=O.length,o&&O.push(w);r<m;){for(s=d,a=0;a<m;++a)(f=e[a])>=t&&f<s&&(s=f);for(s-t>x((d-n)/(y=r+1))&&P("overflow"),n+=(s-t)*y,t=s,a=0;a<m;++a)if((f=e[a])<t&&++n>d&&P("overflow"),f==t){for(l=n,u=p;!(l<(c=u<=i?h:u>=i+b?b:u-i));u+=p)S=l-c,E=p-c,O.push(_(j(c+S%E,0))),l=x(S/E);O.push(_(j(l,0))),i=L(n,y,r==o),n=0,++r}++n,++t}return O.join("")}if(c={version:"1.4.1",ucs2:{decode:I,encode:D},decode:R,encode:N,toASCII:function(e){return T(e,(function(e){return S.test(e)?"xn--"+N(e):e}))},toUnicode:function(e){return T(e,(function(e){return E.test(e)?R(e.slice(4).toLowerCase()):e}))}},"object"==i(n(108))&&n(108))void 0===(o=function(){return c}.call(t,n,t,e))||(e.exports=o);else if(s&&l)if(e.exports==s)l.exports=c;else for(f in c)c.hasOwnProperty(f)&&(s[f]=c[f]);else a.punycode=c}(this)}).call(this,n(86)(e),n(36))},function(e,t,n){"use strict";(function(e){var r=n(1058),o=n(1002),i={};t.analyze=function(e,t){return i.email(e,t)},t.isValid=function(e,t){return!i.email(e,t)},i.email=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"!=typeof t)throw new Error("Invalid input: email must be a string");if(!t)return o.error("Address must be a non-empty string");var r=!o.nonAsciiRx.test(t);if(!r){if(!1===n.allowUnicode)return o.error("Address contains forbidden Unicode characters");var a=t.normalize("NFC");t=o.punycode(a)}var s=t.split("@");if(2!==s.length)return o.error(s.length>2?"Address cannot contain more than one @ character":"Address must contain one @ character");var l=s[0],u=s[1];if(!l)return o.error("Address local part cannot be empty");if(!u)return o.error("Domain cannot be empty");if(!n.ignoreLength){if(t.length>254)return o.error("Address too long");if(e.byteLength(l,"utf-8")>64)return o.error("Address local part too long")}return i.local(l,r)||o.domain(u,n)},i.local=function(t,n){var i=t.split("."),a=!0,s=!1,l=void 0;try{for(var u,c=i[Symbol.iterator]();!(a=(u=c.next()).done);a=!0){var f=u.value;if(!f.length)return o.error("Address local part contains empty dot-separated segment");if(n){if(!r.atextRx.test(f))return o.error("Address local part contains invalid character")}else{var d=!0,p=!1,h=void 0;try{for(var b,m=f[Symbol.iterator]();!(d=(b=m.next()).done);d=!0){var y=b.value,v=e.from(y).toString("binary");if(!r.atomRx.test(v))return o.error("Address local part contains invalid character")}}catch(e){p=!0,h=e}finally{try{d||null==m.return||m.return()}finally{if(p)throw h}}}}}catch(e){s=!0,l=e}finally{try{a||null==c.return||c.return()}finally{if(s)throw l}}}}).call(this,n(1054).Buffer)},function(e,t,n){"use strict";(function(e){
/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/
var r=n(1055),o=n(1056),i=n(1057);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return u(this,e,t,n)}function u(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=d(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|h(t,n),o=(e=s(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|p(t.length);return 0===(e=s(e,n)).length?e:(t.copy(e,0,0,n),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):d(e,t);if("Buffer"===t.type&&i(t.data))return d(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function d(e,t){var n=t.length<0?0:0|p(t.length);e=s(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function p(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return H(e).length;t=(""+t).toLowerCase(),r=!0}}function b(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return x(this,t,n);case"ascii":return P(this,t,n);case"latin1":case"binary":return A(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):v(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,s=e.length,l=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else-1!==c&&(i-=i-c),c=-1}else for(n+l>s&&(n=s-l),i=n;i>=0;i--){for(var f=!0,d=0;d<l;d++)if(u(e,i+d)!==u(t,d)){f=!1;break}if(f)return i}return-1}function g(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[n+a]=s}return a}function w(e,t,n,r){return V(H(t,e.length-n),e,n,r)}function E(e,t,n,r){return V(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function S(e,t,n,r){return E(e,t,n,r)}function O(e,t,n,r){return V(z(t),e,n,r)}function k(e,t,n,r){return V(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function x(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,s,l,u=e[o],c=null,f=u>239?4:u>223?3:u>191?2:1;if(o+f<=n)switch(f){case 1:u<128&&(c=u);break;case 2:128==(192&(i=e[o+1]))&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return function(e){var t=e.length;if(t<=_)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=_));return n}(r)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return u(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,r){return c(t),t<=0?s(e,t):void 0!==n?"string"==typeof r?s(e,t).fill(n,r):s(e,t).fill(n):s(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return f(null,e)},l.allocUnsafeSlow=function(e){return f(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=l.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!l.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)m(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)m(this,t,t+3),m(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)m(this,t,t+7),m(this,t+1,t+6),m(this,t+2,t+5),m(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?x(this,0,e):b.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),f=0;f<s;++f)if(u[f]!==c[f]){i=u[f],a=c[f];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return y(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return y(this,e,t,n,!1)},l.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return g(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return E(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var _=4096;function P(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function A(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=B(e[i]);return o}function I(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function D(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function L(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function R(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function N(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function M(e,t,n,r,i){return i||N(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function F(e,t,n,r,i){return i||N(e,0,n,8),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var o=t-e;n=new l(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||D(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||D(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||D(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||D(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||D(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||D(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||j(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):R(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):L(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):L(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):R(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):R(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return M(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return M(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return F(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return F(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},l.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!l.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=l.isBuffer(e)?e:H(new l(e,r).toString()),s=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%s]}return this};var U=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function H(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(U,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function V(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(36))},function(e,t,n){"use strict";t.byteLength=function(e){return 3*e.length/4-u(e)},t.toByteArray=function(e){var t,n,r,a,s,l,c=e.length;s=u(e),l=new i(3*c/4-s),r=s>0?c-4:c;var f=0;for(t=0,n=0;t<r;t+=4,n+=3)a=o[e.charCodeAt(t)]<<18|o[e.charCodeAt(t+1)]<<12|o[e.charCodeAt(t+2)]<<6|o[e.charCodeAt(t+3)],l[f++]=a>>16&255,l[f++]=a>>8&255,l[f++]=255&a;2===s?(a=o[e.charCodeAt(t)]<<2|o[e.charCodeAt(t+1)]>>4,l[f++]=255&a):1===s&&(a=o[e.charCodeAt(t)]<<10|o[e.charCodeAt(t+1)]<<4|o[e.charCodeAt(t+2)]>>2,l[f++]=a>>8&255,l[f++]=255&a);return l},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i="",a=[],s=0,l=n-o;s<l;s+=16383)a.push(c(e,s,s+16383>l?l:s+16383));1===o?(t=e[n-1],i+=r[t>>2],i+=r[t<<4&63],i+="=="):2===o&&(t=(e[n-2]<<8)+e[n-1],i+=r[t>>10],i+=r[t>>4&63],i+=r[t<<2&63],i+="=");return a.push(i),a.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,l=a.length;s<l;++s)r[s]=a[s],o[a.charCodeAt(s)]=s;function u(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function c(e,t,n){for(var o,i,a=[],s=t;s<n;s+=3)o=(e[s]<<16)+(e[s+1]<<8)+e[s+2],a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,s=8*o-r-1,l=(1<<s)-1,u=l>>1,c=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+f],f+=d,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=r;c>0;a=256*a+e[t+f],f+=d,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=u}return(p?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,s,l,u=8*i-o-1,c=(1<<u)-1,f=c>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),(t+=a+f>=1?d/l:d*Math.pow(2,1-f))*l>=2&&(a++,l/=2),a+f>=c?(s=0,a=c):a+f>=1?(s=(t*l-1)*Math.pow(2,o),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&s,p+=h,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[n+p]=255&a,p+=h,a/=256,u-=8);e[n+p-h]|=128*b}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,t,n){"use strict";var r={atext:"[\\w!#\\$%&'\\*\\+\\-/=\\?\\^`\\{\\|\\}~]"};t.atextRx=new RegExp("^".concat(r.atext,"+$")),t.atomRx=new RegExp([r.atext,"(?:[\\xc2-\\xdf][\\x80-\\xbf])","(?:\\xe0[\\xa0-\\xbf][\\x80-\\xbf])|(?:[\\xe1-\\xec][\\x80-\\xbf]{2})|(?:\\xed[\\x80-\\x9f][\\x80-\\xbf])|(?:[\\xee-\\xef][\\x80-\\xbf]{2})","(?:\\xf0[\\x90-\\xbf][\\x80-\\xbf]{2})|(?:[\\xf1-\\xf3][\\x80-\\xbf]{3})|(?:\\xf4[\\x80-\\x8f][\\x80-\\xbf]{2})"].join("|"))},function(e,t,n){"use strict";var r={tlds:["AAA","AARP","ABARTH","ABB","ABBOTT","ABBVIE","ABC","ABLE","ABOGADO","ABUDHABI","AC","ACADEMY","ACCENTURE","ACCOUNTANT","ACCOUNTANTS","ACO","ACTOR","AD","ADAC","ADS","ADULT","AE","AEG","AERO","AETNA","AF","AFAMILYCOMPANY","AFL","AFRICA","AG","AGAKHAN","AGENCY","AI","AIG","AIGO","AIRBUS","AIRFORCE","AIRTEL","AKDN","AL","ALFAROMEO","ALIBABA","ALIPAY","ALLFINANZ","ALLSTATE","ALLY","ALSACE","ALSTOM","AM","AMERICANEXPRESS","AMERICANFAMILY","AMEX","AMFAM","AMICA","AMSTERDAM","ANALYTICS","ANDROID","ANQUAN","ANZ","AO","AOL","APARTMENTS","APP","APPLE","AQ","AQUARELLE","AR","ARAB","ARAMCO","ARCHI","ARMY","ARPA","ART","ARTE","AS","ASDA","ASIA","ASSOCIATES","AT","ATHLETA","ATTORNEY","AU","AUCTION","AUDI","AUDIBLE","AUDIO","AUSPOST","AUTHOR","AUTO","AUTOS","AVIANCA","AW","AWS","AX","AXA","AZ","AZURE","BA","BABY","BAIDU","BANAMEX","BANANAREPUBLIC","BAND","BANK","BAR","BARCELONA","BARCLAYCARD","BARCLAYS","BAREFOOT","BARGAINS","BASEBALL","BASKETBALL","BAUHAUS","BAYERN","BB","BBC","BBT","BBVA","BCG","BCN","BD","BE","BEATS","BEAUTY","BEER","BENTLEY","BERLIN","BEST","BESTBUY","BET","BF","BG","BH","BHARTI","BI","BIBLE","BID","BIKE","BING","BINGO","BIO","BIZ","BJ","BLACK","BLACKFRIDAY","BLOCKBUSTER","BLOG","BLOOMBERG","BLUE","BM","BMS","BMW","BN","BNL","BNPPARIBAS","BO","BOATS","BOEHRINGER","BOFA","BOM","BOND","BOO","BOOK","BOOKING","BOSCH","BOSTIK","BOSTON","BOT","BOUTIQUE","BOX","BR","BRADESCO","BRIDGESTONE","BROADWAY","BROKER","BROTHER","BRUSSELS","BS","BT","BUDAPEST","BUGATTI","BUILD","BUILDERS","BUSINESS","BUY","BUZZ","BV","BW","BY","BZ","BZH","CA","CAB","CAFE","CAL","CALL","CALVINKLEIN","CAM","CAMERA","CAMP","CANCERRESEARCH","CANON","CAPETOWN","CAPITAL","CAPITALONE","CAR","CARAVAN","CARDS","CARE","CAREER","CAREERS","CARS","CARTIER","CASA","CASE","CASEIH","CASH","CASINO","CAT","CATERING","CATHOLIC","CBA","CBN","CBRE","CBS","CC","CD","CEB","CENTER","CEO","CERN","CF","CFA","CFD","CG","CH","CHANEL","CHANNEL","CHARITY","CHASE","CHAT","CHEAP","CHINTAI","CHRISTMAS","CHROME","CHRYSLER","CHURCH","CI","CIPRIANI","CIRCLE","CISCO","CITADEL","CITI","CITIC","CITY","CITYEATS","CK","CL","CLAIMS","CLEANING","CLICK","CLINIC","CLINIQUE","CLOTHING","CLOUD","CLUB","CLUBMED","CM","CN","CO","COACH","CODES","COFFEE","COLLEGE","COLOGNE","COM","COMCAST","COMMBANK","COMMUNITY","COMPANY","COMPARE","COMPUTER","COMSEC","CONDOS","CONSTRUCTION","CONSULTING","CONTACT","CONTRACTORS","COOKING","COOKINGCHANNEL","COOL","COOP","CORSICA","COUNTRY","COUPON","COUPONS","COURSES","CR","CREDIT","CREDITCARD","CREDITUNION","CRICKET","CROWN","CRS","CRUISE","CRUISES","CSC","CU","CUISINELLA","CV","CW","CX","CY","CYMRU","CYOU","CZ","DABUR","DAD","DANCE","DATA","DATE","DATING","DATSUN","DAY","DCLK","DDS","DE","DEAL","DEALER","DEALS","DEGREE","DELIVERY","DELL","DELOITTE","DELTA","DEMOCRAT","DENTAL","DENTIST","DESI","DESIGN","DEV","DHL","DIAMONDS","DIET","DIGITAL","DIRECT","DIRECTORY","DISCOUNT","DISCOVER","DISH","DIY","DJ","DK","DM","DNP","DO","DOCS","DOCTOR","DODGE","DOG","DOHA","DOMAINS","DOT","DOWNLOAD","DRIVE","DTV","DUBAI","DUCK","DUNLOP","DUNS","DUPONT","DURBAN","DVAG","DVR","DZ","EARTH","EAT","EC","ECO","EDEKA","EDU","EDUCATION","EE","EG","EMAIL","EMERCK","ENERGY","ENGINEER","ENGINEERING","ENTERPRISES","EPSON","EQUIPMENT","ER","ERICSSON","ERNI","ES","ESQ","ESTATE","ESURANCE","ET","ETISALAT","EU","EUROVISION","EUS","EVENTS","EVERBANK","EXCHANGE","EXPERT","EXPOSED","EXPRESS","EXTRASPACE","FAGE","FAIL","FAIRWINDS","FAITH","FAMILY","FAN","FANS","FARM","FARMERS","FASHION","FAST","FEDEX","FEEDBACK","FERRARI","FERRERO","FI","FIAT","FIDELITY","FIDO","FILM","FINAL","FINANCE","FINANCIAL","FIRE","FIRESTONE","FIRMDALE","FISH","FISHING","FIT","FITNESS","FJ","FK","FLICKR","FLIGHTS","FLIR","FLORIST","FLOWERS","FLY","FM","FO","FOO","FOOD","FOODNETWORK","FOOTBALL","FORD","FOREX","FORSALE","FORUM","FOUNDATION","FOX","FR","FREE","FRESENIUS","FRL","FROGANS","FRONTDOOR","FRONTIER","FTR","FUJITSU","FUJIXEROX","FUN","FUND","FURNITURE","FUTBOL","FYI","GA","GAL","GALLERY","GALLO","GALLUP","GAME","GAMES","GAP","GARDEN","GB","GBIZ","GD","GDN","GE","GEA","GENT","GENTING","GEORGE","GF","GG","GGEE","GH","GI","GIFT","GIFTS","GIVES","GIVING","GL","GLADE","GLASS","GLE","GLOBAL","GLOBO","GM","GMAIL","GMBH","GMO","GMX","GN","GODADDY","GOLD","GOLDPOINT","GOLF","GOO","GOODYEAR","GOOG","GOOGLE","GOP","GOT","GOV","GP","GQ","GR","GRAINGER","GRAPHICS","GRATIS","GREEN","GRIPE","GROCERY","GROUP","GS","GT","GU","GUARDIAN","GUCCI","GUGE","GUIDE","GUITARS","GURU","GW","GY","HAIR","HAMBURG","HANGOUT","HAUS","HBO","HDFC","HDFCBANK","HEALTH","HEALTHCARE","HELP","HELSINKI","HERE","HERMES","HGTV","HIPHOP","HISAMITSU","HITACHI","HIV","HK","HKT","HM","HN","HOCKEY","HOLDINGS","HOLIDAY","HOMEDEPOT","HOMEGOODS","HOMES","HOMESENSE","HONDA","HONEYWELL","HORSE","HOSPITAL","HOST","HOSTING","HOT","HOTELES","HOTELS","HOTMAIL","HOUSE","HOW","HR","HSBC","HT","HU","HUGHES","HYATT","HYUNDAI","IBM","ICBC","ICE","ICU","ID","IE","IEEE","IFM","IKANO","IL","IM","IMAMAT","IMDB","IMMO","IMMOBILIEN","IN","INC","INDUSTRIES","INFINITI","INFO","ING","INK","INSTITUTE","INSURANCE","INSURE","INT","INTEL","INTERNATIONAL","INTUIT","INVESTMENTS","IO","IPIRANGA","IQ","IR","IRISH","IS","ISELECT","ISMAILI","IST","ISTANBUL","IT","ITAU","ITV","IVECO","JAGUAR","JAVA","JCB","JCP","JE","JEEP","JETZT","JEWELRY","JIO","JLL","JM","JMP","JNJ","JO","JOBS","JOBURG","JOT","JOY","JP","JPMORGAN","JPRS","JUEGOS","JUNIPER","KAUFEN","KDDI","KE","KERRYHOTELS","KERRYLOGISTICS","KERRYPROPERTIES","KFH","KG","KH","KI","KIA","KIM","KINDER","KINDLE","KITCHEN","KIWI","KM","KN","KOELN","KOMATSU","KOSHER","KP","KPMG","KPN","KR","KRD","KRED","KUOKGROUP","KW","KY","KYOTO","KZ","LA","LACAIXA","LADBROKES","LAMBORGHINI","LAMER","LANCASTER","LANCIA","LANCOME","LAND","LANDROVER","LANXESS","LASALLE","LAT","LATINO","LATROBE","LAW","LAWYER","LB","LC","LDS","LEASE","LECLERC","LEFRAK","LEGAL","LEGO","LEXUS","LGBT","LI","LIAISON","LIDL","LIFE","LIFEINSURANCE","LIFESTYLE","LIGHTING","LIKE","LILLY","LIMITED","LIMO","LINCOLN","LINDE","LINK","LIPSY","LIVE","LIVING","LIXIL","LK","LLC","LOAN","LOANS","LOCKER","LOCUS","LOFT","LOL","LONDON","LOTTE","LOTTO","LOVE","LPL","LPLFINANCIAL","LR","LS","LT","LTD","LTDA","LU","LUNDBECK","LUPIN","LUXE","LUXURY","LV","LY","MA","MACYS","MADRID","MAIF","MAISON","MAKEUP","MAN","MANAGEMENT","MANGO","MAP","MARKET","MARKETING","MARKETS","MARRIOTT","MARSHALLS","MASERATI","MATTEL","MBA","MC","MCKINSEY","MD","ME","MED","MEDIA","MEET","MELBOURNE","MEME","MEMORIAL","MEN","MENU","MERCKMSD","METLIFE","MG","MH","MIAMI","MICROSOFT","MIL","MINI","MINT","MIT","MITSUBISHI","MK","ML","MLB","MLS","MM","MMA","MN","MO","MOBI","MOBILE","MOBILY","MODA","MOE","MOI","MOM","MONASH","MONEY","MONSTER","MOPAR","MORMON","MORTGAGE","MOSCOW","MOTO","MOTORCYCLES","MOV","MOVIE","MOVISTAR","MP","MQ","MR","MS","MSD","MT","MTN","MTR","MU","MUSEUM","MUTUAL","MV","MW","MX","MY","MZ","NA","NAB","NADEX","NAGOYA","NAME","NATIONWIDE","NATURA","NAVY","NBA","NC","NE","NEC","NET","NETBANK","NETFLIX","NETWORK","NEUSTAR","NEW","NEWHOLLAND","NEWS","NEXT","NEXTDIRECT","NEXUS","NF","NFL","NG","NGO","NHK","NI","NICO","NIKE","NIKON","NINJA","NISSAN","NISSAY","NL","NO","NOKIA","NORTHWESTERNMUTUAL","NORTON","NOW","NOWRUZ","NOWTV","NP","NR","NRA","NRW","NTT","NU","NYC","NZ","OBI","OBSERVER","OFF","OFFICE","OKINAWA","OLAYAN","OLAYANGROUP","OLDNAVY","OLLO","OM","OMEGA","ONE","ONG","ONL","ONLINE","ONYOURSIDE","OOO","OPEN","ORACLE","ORANGE","ORG","ORGANIC","ORIGINS","OSAKA","OTSUKA","OTT","OVH","PA","PAGE","PANASONIC","PARIS","PARS","PARTNERS","PARTS","PARTY","PASSAGENS","PAY","PCCW","PE","PET","PF","PFIZER","PG","PH","PHARMACY","PHD","PHILIPS","PHONE","PHOTO","PHOTOGRAPHY","PHOTOS","PHYSIO","PIAGET","PICS","PICTET","PICTURES","PID","PIN","PING","PINK","PIONEER","PIZZA","PK","PL","PLACE","PLAY","PLAYSTATION","PLUMBING","PLUS","PM","PN","PNC","POHL","POKER","POLITIE","PORN","POST","PR","PRAMERICA","PRAXI","PRESS","PRIME","PRO","PROD","PRODUCTIONS","PROF","PROGRESSIVE","PROMO","PROPERTIES","PROPERTY","PROTECTION","PRU","PRUDENTIAL","PS","PT","PUB","PW","PWC","PY","QA","QPON","QUEBEC","QUEST","QVC","RACING","RADIO","RAID","RE","READ","REALESTATE","REALTOR","REALTY","RECIPES","RED","REDSTONE","REDUMBRELLA","REHAB","REISE","REISEN","REIT","RELIANCE","REN","RENT","RENTALS","REPAIR","REPORT","REPUBLICAN","REST","RESTAURANT","REVIEW","REVIEWS","REXROTH","RICH","RICHARDLI","RICOH","RIGHTATHOME","RIL","RIO","RIP","RMIT","RO","ROCHER","ROCKS","RODEO","ROGERS","ROOM","RS","RSVP","RU","RUGBY","RUHR","RUN","RW","RWE","RYUKYU","SA","SAARLAND","SAFE","SAFETY","SAKURA","SALE","SALON","SAMSCLUB","SAMSUNG","SANDVIK","SANDVIKCOROMANT","SANOFI","SAP","SARL","SAS","SAVE","SAXO","SB","SBI","SBS","SC","SCA","SCB","SCHAEFFLER","SCHMIDT","SCHOLARSHIPS","SCHOOL","SCHULE","SCHWARZ","SCIENCE","SCJOHNSON","SCOR","SCOT","SD","SE","SEARCH","SEAT","SECURE","SECURITY","SEEK","SELECT","SENER","SERVICES","SES","SEVEN","SEW","SEX","SEXY","SFR","SG","SH","SHANGRILA","SHARP","SHAW","SHELL","SHIA","SHIKSHA","SHOES","SHOP","SHOPPING","SHOUJI","SHOW","SHOWTIME","SHRIRAM","SI","SILK","SINA","SINGLES","SITE","SJ","SK","SKI","SKIN","SKY","SKYPE","SL","SLING","SM","SMART","SMILE","SN","SNCF","SO","SOCCER","SOCIAL","SOFTBANK","SOFTWARE","SOHU","SOLAR","SOLUTIONS","SONG","SONY","SOY","SPACE","SPORT","SPOT","SPREADBETTING","SR","SRL","SRT","SS","ST","STADA","STAPLES","STAR","STARHUB","STATEBANK","STATEFARM","STC","STCGROUP","STOCKHOLM","STORAGE","STORE","STREAM","STUDIO","STUDY","STYLE","SU","SUCKS","SUPPLIES","SUPPLY","SUPPORT","SURF","SURGERY","SUZUKI","SV","SWATCH","SWIFTCOVER","SWISS","SX","SY","SYDNEY","SYMANTEC","SYSTEMS","SZ","TAB","TAIPEI","TALK","TAOBAO","TARGET","TATAMOTORS","TATAR","TATTOO","TAX","TAXI","TC","TCI","TD","TDK","TEAM","TECH","TECHNOLOGY","TEL","TELEFONICA","TEMASEK","TENNIS","TEVA","TF","TG","TH","THD","THEATER","THEATRE","TIAA","TICKETS","TIENDA","TIFFANY","TIPS","TIRES","TIROL","TJ","TJMAXX","TJX","TK","TKMAXX","TL","TM","TMALL","TN","TO","TODAY","TOKYO","TOOLS","TOP","TORAY","TOSHIBA","TOTAL","TOURS","TOWN","TOYOTA","TOYS","TR","TRADE","TRADING","TRAINING","TRAVEL","TRAVELCHANNEL","TRAVELERS","TRAVELERSINSURANCE","TRUST","TRV","TT","TUBE","TUI","TUNES","TUSHU","TV","TVS","TW","TZ","UA","UBANK","UBS","UCONNECT","UG","UK","UNICOM","UNIVERSITY","UNO","UOL","UPS","US","UY","UZ","VA","VACATIONS","VANA","VANGUARD","VC","VE","VEGAS","VENTURES","VERISIGN","VERSICHERUNG","VET","VG","VI","VIAJES","VIDEO","VIG","VIKING","VILLAS","VIN","VIP","VIRGIN","VISA","VISION","VISTAPRINT","VIVA","VIVO","VLAANDEREN","VN","VODKA","VOLKSWAGEN","VOLVO","VOTE","VOTING","VOTO","VOYAGE","VU","VUELOS","WALES","WALMART","WALTER","WANG","WANGGOU","WARMAN","WATCH","WATCHES","WEATHER","WEATHERCHANNEL","WEBCAM","WEBER","WEBSITE","WED","WEDDING","WEIBO","WEIR","WF","WHOSWHO","WIEN","WIKI","WILLIAMHILL","WIN","WINDOWS","WINE","WINNERS","WME","WOLTERSKLUWER","WOODSIDE","WORK","WORKS","WORLD","WOW","WS","WTC","WTF","XBOX","XEROX","XFINITY","XIHUAN","XIN","XN--11B4C3D","XN--1CK2E1B","XN--1QQW23A","XN--2SCRJ9C","XN--30RR7Y","XN--3BST00M","XN--3DS443G","XN--3E0B707E","XN--3HCRJ9C","XN--3OQ18VL8PN36A","XN--3PXU8K","XN--42C2D9A","XN--45BR5CYL","XN--45BRJ9C","XN--45Q11C","XN--4GBRIM","XN--54B7FTA0CC","XN--55QW42G","XN--55QX5D","XN--5SU34J936BGSG","XN--5TZM5G","XN--6FRZ82G","XN--6QQ986B3XL","XN--80ADXHKS","XN--80AO21A","XN--80AQECDR1A","XN--80ASEHDB","XN--80ASWG","XN--8Y0A063A","XN--90A3AC","XN--90AE","XN--90AIS","XN--9DBQ2A","XN--9ET52U","XN--9KRT00A","XN--B4W605FERD","XN--BCK1B9A5DRE4C","XN--C1AVG","XN--C2BR7G","XN--CCK2B3B","XN--CG4BKI","XN--CLCHC0EA0B2G2A9GCD","XN--CZR694B","XN--CZRS0T","XN--CZRU2D","XN--D1ACJ3B","XN--D1ALF","XN--E1A4C","XN--ECKVDTC9D","XN--EFVY88H","XN--ESTV75G","XN--FCT429K","XN--FHBEI","XN--FIQ228C5HS","XN--FIQ64B","XN--FIQS8S","XN--FIQZ9S","XN--FJQ720A","XN--FLW351E","XN--FPCRJ9C3D","XN--FZC2C9E2C","XN--FZYS8D69UVGM","XN--G2XX48C","XN--GCKR3F0F","XN--GECRJ9C","XN--GK3AT1E","XN--H2BREG3EVE","XN--H2BRJ9C","XN--H2BRJ9C8C","XN--HXT814E","XN--I1B6B1A6A2E","XN--IMR513N","XN--IO0A7I","XN--J1AEF","XN--J1AMH","XN--J6W193G","XN--JLQ61U9W7B","XN--JVR189M","XN--KCRX77D1X4A","XN--KPRW13D","XN--KPRY57D","XN--KPU716F","XN--KPUT3I","XN--L1ACC","XN--LGBBAT1AD8J","XN--MGB9AWBF","XN--MGBA3A3EJT","XN--MGBA3A4F16A","XN--MGBA7C0BBN0A","XN--MGBAAKC7DVF","XN--MGBAAM7A8H","XN--MGBAB2BD","XN--MGBAH1A3HJKRD","XN--MGBAI9AZGQP6J","XN--MGBAYH7GPA","XN--MGBB9FBPOB","XN--MGBBH1A","XN--MGBBH1A71E","XN--MGBC0A9AZCG","XN--MGBCA7DZDO","XN--MGBERP4A5D4AR","XN--MGBGU82A","XN--MGBI4ECEXP","XN--MGBPL2FH","XN--MGBT3DHD","XN--MGBTX2B","XN--MGBX4CD0AB","XN--MIX891F","XN--MK1BU44C","XN--MXTQ1M","XN--NGBC5AZD","XN--NGBE9E0A","XN--NGBRX","XN--NODE","XN--NQV7F","XN--NQV7FS00EMA","XN--NYQY26A","XN--O3CW4H","XN--OGBPF8FL","XN--OTU796D","XN--P1ACF","XN--P1AI","XN--PBT977C","XN--PGBS0DH","XN--PSSY2U","XN--Q9JYB4C","XN--QCKA1PMC","XN--QXAM","XN--RHQV96G","XN--ROVU88B","XN--RVC1E0AM3E","XN--S9BRJ9C","XN--SES554G","XN--T60B56A","XN--TCKWE","XN--TIQ49XQYJ","XN--UNUP4Y","XN--VERMGENSBERATER-CTB","XN--VERMGENSBERATUNG-PWB","XN--VHQUV","XN--VUQ861B","XN--W4R85EL8FHU5DNRA","XN--W4RS40L","XN--WGBH1C","XN--WGBL6A","XN--XHQ521B","XN--XKC2AL3HYE2A","XN--XKC2DL3A5EE0H","XN--Y9A3AQ","XN--YFRO4I67O","XN--YGBI2AMMX","XN--ZFR164B","XXX","XYZ","YACHTS","YAHOO","YAMAXUN","YANDEX","YE","YODOBASHI","YOGA","YOKOHAMA","YOU","YOUTUBE","YT","YUN","ZA","ZAPPOS","ZARA","ZERO","ZIP","ZM","ZONE","ZUERICH","ZW"]};e.exports=new Set(r.tlds.map((function(e){return e.toLowerCase()})))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){}]);