@univerjs-pro/collaboration-client 0.4.0-alpha.2 → 0.4.0-experimental.d7288c0-20241017

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x2fd58b=_0x4bd5;(function(_0x3f30be,_0x36bf8b){const _0x39fefc=_0x4bd5,_0x4561db=_0x3f30be();while(!![]){try{const _0x41eb4e=parseInt(_0x39fefc(0x45d))/0x1*(-parseInt(_0x39fefc(0x4ea))/0x2)+parseInt(_0x39fefc(0x2a7))/0x3+parseInt(_0x39fefc(0x287))/0x4*(-parseInt(_0x39fefc(0x4ae))/0x5)+parseInt(_0x39fefc(0x5f4))/0x6*(-parseInt(_0x39fefc(0x5e6))/0x7)+-parseInt(_0x39fefc(0x4ac))/0x8+parseInt(_0x39fefc(0x33a))/0x9*(-parseInt(_0x39fefc(0x20c))/0xa)+parseInt(_0x39fefc(0x5fc))/0xb*(parseInt(_0x39fefc(0x4c9))/0xc);if(_0x41eb4e===_0x36bf8b)break;else _0x4561db['push'](_0x4561db['shift']());}catch(_0xa5fafa){_0x4561db['push'](_0x4561db['shift']());}}}(_0x5090,0xb7911));var Ft=Object[_0x2fd58b(0x38e)],Gt=(_0x39eeff,_0x386bfa,_0x5aa4e5)=>_0x386bfa in _0x39eeff?Ft(_0x39eeff,_0x386bfa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5aa4e5}):_0x39eeff[_0x386bfa]=_0x5aa4e5,u=(_0x44ea55,_0x274c1d,_0x2980a1)=>Gt(_0x44ea55,typeof _0x274c1d!=_0x2fd58b(0x305)?_0x274c1d+'':_0x274c1d,_0x2980a1);Object['defineProperty'](exports,Symbol[_0x2fd58b(0x24c)],{'value':_0x2fd58b(0x583)});const a=require('@univerjs/core'),v=require(_0x2fd58b(0x200)),E=require(_0x2fd58b(0x548)),q=require(_0x2fd58b(0x525)),A=require(_0x2fd58b(0x603)),w=require(_0x2fd58b(0x2de)),_=require(_0x2fd58b(0x349)),Yt=require(_0x2fd58b(0x309)),W=require(_0x2fd58b(0x461)),M=require('@univerjs/docs-ui'),C=require(_0x2fd58b(0x4ab)),O=require(_0x2fd58b(0x3d0)),j=require(_0x2fd58b(0x528)),et=require(_0x2fd58b(0x4e7)),se=require(_0x2fd58b(0x2a9)),P=require(_0x2fd58b(0x20f)),Kt=require(_0x2fd58b(0x443)),Xt=require('@univerjs-pro/license'),St=_0x2fd58b(0x344),qt='/universer-api/snapshot',vt=_0x2fd58b(0x3e4),zt='SEND_CHANGESET_TIMEOUT',Jt=0x7d0,gt=_0x2fd58b(0x5ce),Zt=_0x2fd58b(0x2af),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x2fd58b(0x489),ft=0x4e20,es=0x4e20,It=_0x2fd58b(0x2f0),ts=0x3,pt='LOCAL_CACHE_INTERVAL',ss=0x3e8,Ct=_0x2fd58b(0x2a0),is='/universer-api/comb',Et=_0x2fd58b(0x436),ns=_0x2fd58b(0x5b6);var bt=(_0x3edc7d=>(_0x3edc7d[_0x3edc7d['UNDEFINED']=0x0]=_0x2fd58b(0x567),_0x3edc7d[_0x3edc7d['OK']=0x1]='OK',_0x3edc7d[_0x3edc7d[_0x2fd58b(0x526)]=0x2]=_0x2fd58b(0x526),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x22b)]=0x3]=_0x2fd58b(0x22b),_0x3edc7d[_0x3edc7d['NOT_FOUND']=0x4]=_0x2fd58b(0x4d2),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x57b)]=0x5]=_0x2fd58b(0x57b),_0x3edc7d[_0x3edc7d['ALREADY_EXISTS']=0x6]=_0x2fd58b(0x5d6),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x589)]=0x7]=_0x2fd58b(0x589),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x1ed)]=0x8]=_0x2fd58b(0x1ed),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x3f2)]=0x9]=_0x2fd58b(0x3f2),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x59a)]=0x1389]='CHANGESET_REVISION_CONFILICT',_0x3edc7d[_0x3edc7d['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x2fd58b(0x32a),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x288)]=0x1772]=_0x2fd58b(0x288),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x202)]=0x1773]=_0x2fd58b(0x202),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x4f3)]=0x1b59]=_0x2fd58b(0x4f3),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x28b)]=0x1b5a]=_0x2fd58b(0x28b),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x3aa)]=0x1b5b]=_0x2fd58b(0x3aa),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x3a3)]=0x1b5c]=_0x2fd58b(0x3a3),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x24d)]=0x1b5d]=_0x2fd58b(0x24d),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x41c)]=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x3edc7d[_0x3edc7d[_0x2fd58b(0x531)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x3edc7d[_0x3edc7d[_0x2fd58b(0x23f)]=0x232a]=_0x2fd58b(0x23f),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x3f0)]=0x232b]=_0x2fd58b(0x3f0),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x57d)]=0x232c]=_0x2fd58b(0x57d),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x5d3)]=0x232d]=_0x2fd58b(0x5d3),_0x3edc7d[_0x3edc7d['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x2fd58b(0x4b1),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x30a)]=0x2712]=_0x2fd58b(0x30a),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x51c)]=0x2713]=_0x2fd58b(0x51c),_0x3edc7d[_0x3edc7d['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x2fd58b(0x55a),_0x3edc7d[_0x3edc7d[_0x2fd58b(0x32f)]=-0x1]=_0x2fd58b(0x32f),_0x3edc7d))(bt||{}),$=(_0x50cbb3=>(_0x50cbb3[_0x50cbb3[_0x2fd58b(0x3a5)]=0x0]='UNIVER_UNKNOWN',_0x50cbb3[_0x50cbb3['UNIVER_DOC']=0x1]=_0x2fd58b(0x2ea),_0x50cbb3[_0x50cbb3[_0x2fd58b(0x29b)]=0x2]=_0x2fd58b(0x29b),_0x50cbb3[_0x50cbb3[_0x2fd58b(0x396)]=0x3]=_0x2fd58b(0x396),_0x50cbb3[_0x50cbb3['UNIVER_PROJECT']=0x4]=_0x2fd58b(0x37d),_0x50cbb3[_0x50cbb3[_0x2fd58b(0x32f)]=-0x1]=_0x2fd58b(0x32f),_0x50cbb3))($||{}),b=(_0x1f8fe1=>(_0x1f8fe1[_0x1f8fe1[_0x2fd58b(0x3c2)]=0x0]=_0x2fd58b(0x3c2),_0x1f8fe1[_0x1f8fe1['HELLO']=0x1]=_0x2fd58b(0x3d7),_0x1f8fe1[_0x1f8fe1[_0x2fd58b(0x5f6)]=0x2]='JOIN',_0x1f8fe1[_0x1f8fe1['LEAVE']=0x3]=_0x2fd58b(0x2e4),_0x1f8fe1[_0x1f8fe1[_0x2fd58b(0x5c8)]=0x4]=_0x2fd58b(0x5c8),_0x1f8fe1[_0x1f8fe1['HEARTBEAT']=0x5]=_0x2fd58b(0x50a),_0x1f8fe1[_0x1f8fe1[_0x2fd58b(0x605)]=0x6]='RECV',_0x1f8fe1[_0x1f8fe1[_0x2fd58b(0x32f)]=-0x1]=_0x2fd58b(0x32f),_0x1f8fe1))(b||{}),Ye=(_0x157b4c=>(_0x157b4c[_0x157b4c['UNKNOWN_CODE']=0x0]=_0x2fd58b(0x283),_0x157b4c[_0x157b4c['OK']=0x1]='OK',_0x157b4c[_0x157b4c[_0x2fd58b(0x48b)]=0x2]='FAIL',_0x157b4c[_0x157b4c[_0x2fd58b(0x32f)]=-0x1]=_0x2fd58b(0x32f),_0x157b4c))(Ye||{}),Tt=(_0x4de281=>(_0x4de281[_0x4de281[_0x2fd58b(0x5c2)]=0x0]=_0x2fd58b(0x5c2),_0x4de281[_0x4de281[_0x2fd58b(0x540)]=0x1]=_0x2fd58b(0x540),_0x4de281[_0x4de281[_0x2fd58b(0x4c2)]=0x2]=_0x2fd58b(0x4c2),_0x4de281[_0x4de281[_0x2fd58b(0x406)]=0x3]=_0x2fd58b(0x406),_0x4de281[_0x4de281[_0x2fd58b(0x380)]=0x4]=_0x2fd58b(0x380),_0x4de281[_0x4de281[_0x2fd58b(0x32f)]=-0x1]=_0x2fd58b(0x32f),_0x4de281))(Tt||{});const L=_0x2fd58b(0x566),rs={};function Rt(_0x489657){const _0x11d929=_0x2fd58b;var _0x468b68,_0x516d9f,_0x3dca7d,_0x1b9198;const _0x588f98=_0x489657[_0x11d929(0x316)],_0x3134cb=JSON[_0x11d929(0x33b)](_0x588f98);switch(_0x3134cb[_0x11d929(0x27c)]){case b['HEARTBEAT']:case b[_0x11d929(0x3d7)]:{const _0x5561b0=_0x3134cb[_0x11d929(0x40f)];return{..._0x3134cb,'data':_0x5561b0,'cmd':_0x3134cb[_0x11d929(0x27c)]};}case b[_0x11d929(0x5f6)]:{const _0x2a53c0=_0x3134cb['joinRsp'];return{..._0x3134cb,'data':_0x2a53c0,'cmd':_0x3134cb['cmd']};}case b[_0x11d929(0x605)]:{const _0x8bc160=_0x3134cb['collaMsg'];switch(_0x8bc160['eventID']){case _[_0x11d929(0x2ca)][_0x11d929(0x403)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':(_0x468b68=_0x8bc160[_0x11d929(0x408)])==null?void 0x0:_0x468b68['cs']},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x460)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':(_0x516d9f=_0x8bc160[_0x11d929(0x371)])==null?void 0x0:_0x516d9f['cs']},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x405)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':(_0x3dca7d=_0x8bc160['newCsEvent'])==null?void 0x0:_0x3dca7d['cs']},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x2f3)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':(_0x1b9198=_0x8bc160['csRejEvent'])==null?void 0x0:_0x1b9198['cs']},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _['CollaborationEvent'][_0x11d929(0x398)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x45a)]},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x2e3)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x28c)]},'cmd':_0x3134cb['cmd']};case _[_0x11d929(0x2ca)][_0x11d929(0x46a)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160['leaveEvent']},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x2e2)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x32c)]},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x5cd)]:case _[_0x11d929(0x2ca)]['LIVESHARE_OPERATION']:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x270)]},'cmd':_0x3134cb['cmd']};case _[_0x11d929(0x2ca)]['LIVESHARE_TERMINATE']:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x32c)]},'cmd':_0x3134cb['cmd']};case _[_0x11d929(0x2ca)]['MSG_FOR_ERROR']:return{..._0x3134cb,'data':_0x8bc160,'cmd':_0x3134cb[_0x11d929(0x27c)]};case _[_0x11d929(0x2ca)][_0x11d929(0x225)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x369)]},'cmd':_0x3134cb['cmd']};case _[_0x11d929(0x2ca)][_0x11d929(0x213)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160[_0x11d929(0x31b)]},'cmd':_0x3134cb[_0x11d929(0x27c)]};case _['CollaborationEvent'][_0x11d929(0x5db)]:return{..._0x3134cb,'data':{..._0x8bc160,'data':_0x8bc160['shouldCloseConn']},'cmd':_0x3134cb[_0x11d929(0x27c)]};default:return _0x3134cb;}}default:return _0x3134cb;}}function Ot(_0x1cc2a0){const _0x1d084b=_0x2fd58b;switch(_0x1cc2a0[_0x1d084b(0x27c)]){case b[_0x1d084b(0x50a)]:case b['HELLO']:return JSON[_0x1d084b(0x4ff)]({'cmd':_0x1cc2a0[_0x1d084b(0x27c)],'routeKey':_0x1cc2a0[_0x1d084b(0x495)]});case b['INGEST']:{let _0x5753b0;switch(_0x1cc2a0['data'][_0x1d084b(0x55f)]){case _[_0x1d084b(0x2ca)][_0x1d084b(0x398)]:{_0x5753b0={'eventID':_[_0x1d084b(0x2ca)][_0x1d084b(0x398)],'updateCursorEvent':_0x1cc2a0['data'][_0x1d084b(0x316)]};break;}case _[_0x1d084b(0x2ca)][_0x1d084b(0x46a)]:{_0x5753b0={'eventID':_[_0x1d084b(0x2ca)][_0x1d084b(0x46a)],'leaveEvent':_0x1cc2a0[_0x1d084b(0x316)]['data']};break;}case _['CollaborationEvent'][_0x1d084b(0x2e3)]:{_0x5753b0={'eventID':_[_0x1d084b(0x2ca)][_0x1d084b(0x2e3)],'joinEvent':_0x1cc2a0[_0x1d084b(0x316)]['data']};break;}case _[_0x1d084b(0x2ca)][_0x1d084b(0x2e2)]:{_0x5753b0={'eventID':_[_0x1d084b(0x2ca)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x1cc2a0['data'][_0x1d084b(0x316)]};break;}case _['CollaborationEvent'][_0x1d084b(0x3a6)]:{_0x5753b0={'eventID':_['CollaborationEvent'][_0x1d084b(0x3a6)],'liveShareOperation':_0x1cc2a0[_0x1d084b(0x316)][_0x1d084b(0x316)]};break;}case _[_0x1d084b(0x2ca)][_0x1d084b(0x4b5)]:{_0x5753b0={'eventID':_[_0x1d084b(0x2ca)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1cc2a0[_0x1d084b(0x316)][_0x1d084b(0x316)]};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x5753b0={'eventID':_['CollaborationEvent'][_0x1d084b(0x454)],'liveShareRequestHost':_0x1cc2a0[_0x1d084b(0x316)][_0x1d084b(0x316)]};break;}case _[_0x1d084b(0x2ca)][_0x1d084b(0x5cd)]:{_0x5753b0={'eventID':_['CollaborationEvent'][_0x1d084b(0x5cd)]};break;}default:_0x5753b0={'eventID':_0x1cc2a0[_0x1d084b(0x316)]['eventID']};}return JSON[_0x1d084b(0x4ff)]({'cmd':_0x1cc2a0[_0x1d084b(0x27c)],'routeKey':_0x1cc2a0[_0x1d084b(0x495)],'collaMsg':_0x5753b0});}case b['JOIN']:return JSON[_0x1d084b(0x4ff)]({'cmd':_0x1cc2a0[_0x1d084b(0x27c)],'routeKey':_0x1cc2a0[_0x1d084b(0x495)],'joinReq':_0x1cc2a0[_0x1d084b(0x316)]});case b['LEAVE']:return JSON[_0x1d084b(0x4ff)]({'cmd':_0x1cc2a0[_0x1d084b(0x27c)],'routeKey':_0x1cc2a0['routeKey'],'leaveReq':_0x1cc2a0[_0x1d084b(0x316)]});default:throw new Error(_0x1d084b(0x3e8));}}var os=Object[_0x2fd58b(0x38e)],as=Object[_0x2fd58b(0x36f)],cs=(_0x161ccf,_0x3517f1,_0x424b40,_0x5b3d4c)=>{for(var _0x382933=_0x5b3d4c>0x1?void 0x0:_0x5b3d4c?as(_0x3517f1,_0x424b40):_0x3517f1,_0x28b833=_0x161ccf['length']-0x1,_0x12cd7f;_0x28b833>=0x0;_0x28b833--)(_0x12cd7f=_0x161ccf[_0x28b833])&&(_0x382933=(_0x5b3d4c?_0x12cd7f(_0x3517f1,_0x424b40,_0x382933):_0x12cd7f(_0x382933))||_0x382933);return _0x5b3d4c&&_0x382933&&os(_0x3517f1,_0x424b40,_0x382933),_0x382933;},ae=(_0x42d13f,_0x3264ca)=>(_0x48f3b9,_0x8eacf3)=>_0x3264ca(_0x48f3b9,_0x8eacf3,_0x42d13f);const Ke=a[_0x2fd58b(0x215)](_0x2fd58b(0x367));function ls(_0x54febe,_0x41851d,_0x147982){const _0x5a8bb8=_0x2fd58b;return _0x54febe+'/'+_0x41851d+'/unit/'+_0x147982+_0x5a8bb8(0x490);}exports[_0x2fd58b(0x4bd)]=class extends a[_0x2fd58b(0x560)]{constructor(_0x4bf5cc,_0xdda76,_0x33222b,_0x9389fd,_0x5a3c7e){const _0x30d0e3=_0x2fd58b;super(),this['_http']=_0x4bf5cc,this[_0x30d0e3(0x535)]=_0xdda76,this[_0x30d0e3(0x41e)]=_0x33222b,this[_0x30d0e3(0x3b8)]=_0x9389fd,this[_0x30d0e3(0x5a8)]=_0x5a3c7e;}[_0x2fd58b(0x53f)](_0x3cc673){const _0x3b130b=_0x2fd58b,_0x21bb48=this[_0x3b130b(0x535)][_0x3b130b(0x53f)](_0x3cc673);if(!_0x21bb48)throw new Error(_0x3b130b(0x1f7));const _0x1e7097=new a[(_0x3b130b(0x5ec))](),_0x247418=new v[(_0x3b130b(0x4bf))]();_0x1e7097[_0x3b130b(0x4e2)](_0x21bb48['close$'][_0x3b130b(0x384)](_0x4470b5=>_0x247418[_0x3b130b(0x46b)](_0x4470b5))),_0x1e7097['add'](a[_0x3b130b(0x5c3)](()=>_0x247418[_0x3b130b(0x49d)]()));const _0x1a467a=new v['Subject']();_0x1e7097[_0x3b130b(0x4e2)](_0x21bb48[_0x3b130b(0x483)][_0x3b130b(0x384)](_0x5e0808=>_0x1a467a[_0x3b130b(0x46b)](_0x5e0808))),_0x1e7097[_0x3b130b(0x4e2)](a['toDisposable'](()=>_0x1a467a[_0x3b130b(0x49d)]()));const _0x144f52=new v['Subject']();_0x1e7097[_0x3b130b(0x4e2)](_0x21bb48[_0x3b130b(0x42c)]['subscribe'](_0x48f400=>{const _0x36229c=_0x3b130b,_0x89cc5a=Rt(_0x48f400);_0x144f52[_0x36229c(0x46b)](_0x89cc5a);})),_0x1e7097['add'](a['toDisposable'](()=>_0x144f52[_0x3b130b(0x49d)]()));let _0x3fcb28;const _0x4726ba=()=>{const _0x196bb8=_0x3b130b;_0x1a467a[_0x196bb8(0x46b)](new Event('connection\x20error')),_0x247418['next'](new CloseEvent(_0x196bb8(0x354))),_0x3fcb28['close']();};return _0x3fcb28={'memberID':'','close$':_0x247418[_0x3b130b(0x4b9)](),'error$':_0x1a467a[_0x3b130b(0x4b9)](),'open$':_0x21bb48[_0x3b130b(0x54d)],'message$':_0x144f52[_0x3b130b(0x4b9)](),'send':_0x173739=>{const _0x378beb=_0x3b130b;if(_0x173739[_0x378beb(0x27c)]===b[_0x378beb(0x5c8)]){if(_0x173739[_0x378beb(0x316)][_0x378beb(0x55f)]===_['CollaborationEvent'][_0x378beb(0x4ca)]){this[_0x378beb(0x229)](_0x3fcb28,_0x173739[_0x378beb(0x316)])[_0x378beb(0x36c)](_0x2ead25=>{this['_logService']['error'](_0x2ead25),_0x4726ba();});return;}if(_0x173739[_0x378beb(0x316)][_0x378beb(0x55f)]===_[_0x378beb(0x2ca)][_0x378beb(0x324)]){const _0x2e7cc2=_0x173739[_0x378beb(0x316)];this[_0x378beb(0x5a3)](_0x2e7cc2)['then'](_0x4e157c=>{const _0x90d7=_0x378beb;_0x144f52['next']({'cmd':b[_0x90d7(0x605)],'code':Ye['OK'],'routeKey':_0x2e7cc2[_0x90d7(0x316)][_0x90d7(0x440)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x90d7(0x35c)],'data':{'changesets':_0x4e157c}}});})[_0x378beb(0x36c)](_0x4a76e1=>{const _0x1a700e=_0x378beb;this[_0x1a700e(0x3b8)][_0x1a700e(0x359)](_0x4a76e1),_0x4726ba();});return;}}_0x21bb48[_0x378beb(0x373)](Ot(_0x173739));},'close':()=>{const _0x1f5b5d=_0x3b130b;_0x21bb48['close'](),_0x1e7097[_0x1f5b5d(0x40b)]();}},_0x3fcb28;}async[_0x2fd58b(0x229)](_0x27455a,_0x1e071c){const _0x1cf13c=_0x2fd58b;var _0x3eb461,_0x5d6bbd;const {unitType:_0x4b72dc,unitID:_0x13c27c,changeset:_0x6bece0}=_0x1e071c[_0x1cf13c(0x316)],_0x47e6d4={'unitID':_0x13c27c,'memberID':_0x27455a[_0x1cf13c(0x374)],'type':_0x4b72dc,'changeset':_['parseChangesetToProtocol'](_0x6bece0)},_0x399d72=this[_0x1cf13c(0x41e)][_0x1cf13c(0x54a)](Ct),_0x431cb6=this['_configService'][_0x1cf13c(0x54a)](L),_0x467caf=ls((_0x5d6bbd=(_0x3eb461=_0x431cb6==null?void 0x0:_0x431cb6['collabSubmitChangesetUrl'])!=null?_0x3eb461:_0x399d72)!=null?_0x5d6bbd:is,_0x4b72dc,_0x13c27c);try{await this['_http']['post'](_0x467caf,{'body':_0x47e6d4});}catch(_0x476519){throw this[_0x1cf13c(0x3b8)][_0x1cf13c(0x359)](_0x1cf13c(0x390),_0x1cf13c(0x43b)),_0x476519;}}async['_fetchMissChangesets'](_0x399d1a){const _0x309960=_0x2fd58b,{unitID:_0x2bfd94,from:_0x4392dd,to:_0xeb017c,unitType:_0x20c176}=_0x399d1a[_0x309960(0x316)];return(await this[_0x309960(0x5a8)][_0x309960(0x3cd)]({'metadata':void 0x0},{'unitID':_0x2bfd94,'type':_0x20c176,'from':_0x4392dd,'to':_0xeb017c}))[_0x309960(0x40a)];}},exports['CollaborationSocketService']=cs([ae(0x0,a['Inject'](w[_0x2fd58b(0x308)])),ae(0x1,a[_0x2fd58b(0x2c2)](w[_0x2fd58b(0x48d)])),ae(0x2,a[_0x2fd58b(0x5bf)]),ae(0x3,a[_0x2fd58b(0x286)]),ae(0x4,_[_0x2fd58b(0x2ef)])],exports[_0x2fd58b(0x4bd)]);const hs='collaboration_new_changeset';function _s(_0x1970ad){const _0x119bd7=_0x2fd58b;return JSON[_0x119bd7(0x4ff)](_0x1970ad)['length'];}class Xe{constructor(){const _0x25b8cd=_0x2fd58b;u(this,_0x25b8cd(0x51e),new v['Subject']()),u(this,_0x25b8cd(0x1eb),this[_0x25b8cd(0x51e)][_0x25b8cd(0x4b9)]());}[_0x2fd58b(0x561)](_0x50df5d){const _0x363162=_0x2fd58b;this[_0x363162(0x51e)][_0x363162(0x46b)](_0x50df5d);}}var us=Object[_0x2fd58b(0x38e)],ds=Object['getOwnPropertyDescriptor'],Ss=(_0x20c2c4,_0x129831,_0x3948c9,_0x39870c)=>{const _0x3cf01c=_0x2fd58b;for(var _0x336715=_0x39870c>0x1?void 0x0:_0x39870c?ds(_0x129831,_0x3948c9):_0x129831,_0x3320fd=_0x20c2c4[_0x3cf01c(0x598)]-0x1,_0x2a4b4d;_0x3320fd>=0x0;_0x3320fd--)(_0x2a4b4d=_0x20c2c4[_0x3320fd])&&(_0x336715=(_0x39870c?_0x2a4b4d(_0x129831,_0x3948c9,_0x336715):_0x2a4b4d(_0x336715))||_0x336715);return _0x39870c&&_0x336715&&us(_0x129831,_0x3948c9,_0x336715),_0x336715;},tt=(_0x60abca,_0x2e8051)=>(_0x571bbf,_0xca0c74)=>_0x2e8051(_0x571bbf,_0xca0c74,_0x60abca);let z=class extends a[_0x2fd58b(0x560)]{constructor(_0x1a92d4,_0x334b1b){const _0x49a1f2=_0x2fd58b;super(),u(this,_0x49a1f2(0x59b),new Map()),(this[_0x49a1f2(0x248)]=_0x1a92d4,this['_userManagerService']=_0x334b1b,this['disposeWithMe'](a['toDisposable'](v['merge'](this['_univerInstanceService'][_0x49a1f2(0x537)](a[_0x49a1f2(0x2a2)]['UNIVER_SHEET'])[_0x49a1f2(0x50b)](E[_0x49a1f2(0x3b0)](_0x37551d=>_0x37551d[_0x49a1f2(0x478)]())),this['_univerInstanceService'][_0x49a1f2(0x537)](a['UniverInstanceType'][_0x49a1f2(0x2ea)])[_0x49a1f2(0x50b)](E[_0x49a1f2(0x3b0)](_0x5c7d4c=>_0x5c7d4c[_0x49a1f2(0x478)]())),this[_0x49a1f2(0x248)][_0x49a1f2(0x537)](a[_0x49a1f2(0x2a2)][_0x49a1f2(0x396)])[_0x49a1f2(0x50b)](E[_0x49a1f2(0x3b0)](_0x237101=>_0x237101[_0x49a1f2(0x478)]())))[_0x49a1f2(0x384)](_0x5e60b4=>this[_0x49a1f2(0x4db)](_0x5e60b4)))));}[_0x2fd58b(0x514)](_0x214cc4){const _0x3270af=_0x2fd58b;this['_userManagerService'][_0x3270af(0x514)](_0x214cc4);}[_0x2fd58b(0x260)](){const _0x7ab149=_0x2fd58b;return this[_0x7ab149(0x330)][_0x7ab149(0x260)]();}[_0x2fd58b(0x53b)](_0xd5a19e,_0x34efed){const _0x3cd360=_0x2fd58b;let _0xc9bb01=this[_0x3cd360(0x59b)]['get'](_0xd5a19e);_0xc9bb01||(_0xc9bb01=new vs(),this['_roomMembers'][_0x3cd360(0x57a)](_0xd5a19e,_0xc9bb01)),_0xc9bb01[_0x3cd360(0x53b)](_0x34efed);}[_0x2fd58b(0x4fc)](_0x2ffb47,_0x9647e0){const _0x2f865e=_0x2fd58b,_0x43b84d=this[_0x2f865e(0x59b)][_0x2f865e(0x5e1)](_0x2ffb47);_0x43b84d&&_0x43b84d[_0x2f865e(0x4fc)](_0x9647e0);}[_0x2fd58b(0x402)](_0x2116db){const _0x3c52ce=_0x2fd58b;return this[_0x3c52ce(0x59b)][_0x3c52ce(0x5e1)](_0x2116db);}[_0x2fd58b(0x4fa)](_0x1cd2aa,_0x4131d2){const _0x1441f3=_0x2fd58b,_0x4a11ba=this[_0x1441f3(0x59b)][_0x1441f3(0x5e1)](_0x1cd2aa);if(_0x4a11ba)return _0x4a11ba[_0x1441f3(0x4fa)](_0x4131d2);}['_removeRoom'](_0x183613){const _0xde8fef=_0x2fd58b,_0x5e8b12=this[_0xde8fef(0x59b)][_0xde8fef(0x5e1)](_0x183613);_0x5e8b12&&(_0x5e8b12[_0xde8fef(0x40b)](),this[_0xde8fef(0x59b)][_0xde8fef(0x55d)](_0x183613));}[_0x2fd58b(0x40b)](){const _0x38e4e7=_0x2fd58b;this['_roomMembers'][_0x38e4e7(0x2df)](_0x53507c=>_0x53507c[_0x38e4e7(0x40b)]()),this[_0x38e4e7(0x59b)][_0x38e4e7(0x4b3)]();}};z=Ss([tt(0x0,a[_0x2fd58b(0x387)]),tt(0x1,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x236)]))],z);class vs extends a[_0x2fd58b(0x560)]{constructor(){const _0x364908=_0x2fd58b;super(...arguments),u(this,_0x364908(0x5ee),new Map());}[_0x2fd58b(0x40b)](){const _0xe5cebd=_0x2fd58b;this[_0xe5cebd(0x5ee)][_0xe5cebd(0x4b3)]();}[_0x2fd58b(0x53b)](_0x2d67e4){const _0x21308a=_0x2fd58b;this[_0x21308a(0x5ee)]['set'](_0x2d67e4[_0x21308a(0x374)],_0x2d67e4);}[_0x2fd58b(0x4fc)](_0x53c9ff){const _0x28fab4=_0x2fd58b;this[_0x28fab4(0x5ee)][_0x28fab4(0x55d)](_0x53c9ff);}[_0x2fd58b(0x4fa)](_0xf26fd7){const _0x40acae=_0x2fd58b;return this[_0x40acae(0x5ee)][_0x40acae(0x5e1)](_0xf26fd7);}}var gs=Object[_0x2fd58b(0x38e)],ms=Object[_0x2fd58b(0x36f)],fs=(_0x29dd9a,_0x244f19,_0x168e52,_0x3cd984)=>{const _0x4ffdd3=_0x2fd58b;for(var _0x2be959=_0x3cd984>0x1?void 0x0:_0x3cd984?ms(_0x244f19,_0x168e52):_0x244f19,_0x163f44=_0x29dd9a[_0x4ffdd3(0x598)]-0x1,_0x3d1093;_0x163f44>=0x0;_0x163f44--)(_0x3d1093=_0x29dd9a[_0x163f44])&&(_0x2be959=(_0x3cd984?_0x3d1093(_0x244f19,_0x168e52,_0x2be959):_0x3d1093(_0x2be959))||_0x2be959);return _0x3cd984&&_0x2be959&&gs(_0x244f19,_0x168e52,_0x2be959),_0x2be959;},V=(_0x512aaa,_0xb38d6b)=>(_0x34f827,_0x47506a)=>_0xb38d6b(_0x34f827,_0x47506a,_0x512aaa),H=(_0x4bac45=>(_0x4bac45[_0x4bac45[_0x2fd58b(0x4bb)]=0x0]=_0x2fd58b(0x4bb),_0x4bac45[_0x4bac45[_0x2fd58b(0x2be)]=0x1]=_0x2fd58b(0x2be),_0x4bac45[_0x4bac45[_0x2fd58b(0x4fe)]=0x2]=_0x2fd58b(0x4fe),_0x4bac45[_0x4bac45[_0x2fd58b(0x572)]=0x3]=_0x2fd58b(0x572),_0x4bac45))(H||{});exports[_0x2fd58b(0x492)]=class extends a['RxDisposable']{constructor(_0x3bd908,_0x35c089,_0x1ddd6f,_0x37ef9c,_0x13086e,_0x1fb4b7,_0x1bc1de,_0x50023c,_0x5eb5d1,_0x326eb7){const _0x368242=_0x2fd58b;super(),u(this,'_sessionStatus$',new v[(_0x368242(0x50e))](0x0)),u(this,_0x368242(0x1fc),this[_0x368242(0x251)][_0x368242(0x4b9)]()),u(this,'_event$',new v[(_0x368242(0x4bf))]()),u(this,_0x368242(0x2ce),this[_0x368242(0x52c)][_0x368242(0x4b9)]()),u(this,_0x368242(0x2a5)),u(this,_0x368242(0x2a8)),u(this,'_collaborationTimeoutTimer'),u(this,_0x368242(0x2d4),!0x1),u(this,_0x368242(0x5ae),null),(this[_0x368242(0x261)]=_0x3bd908,this[_0x368242(0x3b8)]=_0x1ddd6f,this[_0x368242(0x5c4)]=_0x37ef9c,this['_messageService']=_0x13086e,this[_0x368242(0x41e)]=_0x1fb4b7,this[_0x368242(0x48a)]=_0x1bc1de,this[_0x368242(0x444)]=_0x50023c,this[_0x368242(0x5f5)]=_0x5eb5d1,this['_telemetryService']=_0x326eb7,this[_0x368242(0x2d4)]=!!this['_telemetryService'],_0x35c089[_0x368242(0x50b)](v[_0x368242(0x3f7)](this['dispose$']))[_0x368242(0x384)](_0x5024f1=>{const _0x17f20a=_0x368242;var _0x2ed2c6;typeof _0x5024f1>'u'||(this['_socket']=_0x5024f1,_0x5024f1?(this[_0x17f20a(0x493)](_0x5024f1),this['_socketMessageSubscription']=_0x5024f1['message$'][_0x17f20a(0x384)](_0x4d1b1b=>{const _0x25a610=_0x17f20a;_0x4d1b1b[_0x25a610(0x495)]===this['_unitID']&&this[_0x25a610(0x52b)](_0x4d1b1b);})):(this[_0x17f20a(0x56b)](),this[_0x17f20a(0x251)][_0x17f20a(0x46b)](0x2),(_0x2ed2c6=this[_0x17f20a(0x2a8)])==null||_0x2ed2c6[_0x17f20a(0x4a5)](),this['_socketMessageSubscription']=null));}),this[_0x368242(0x4de)](this[_0x368242(0x5c4)][_0x368242(0x276)](()=>{const _0x271931=_0x368242;var _0x534889;(_0x534889=this[_0x271931(0x2a5)])==null||_0x534889[_0x271931(0x373)]({'cmd':b[_0x271931(0x2e4)],'data':{'roomID':this[_0x271931(0x261)]}});})));}get[_0x2fd58b(0x2a6)](){const _0x27b043=_0x2fd58b;return this[_0x27b043(0x251)][_0x27b043(0x2e0)]();}[_0x2fd58b(0x5d8)](){const _0x44c9e7=_0x2fd58b;var _0x3a9386,_0x2b31b0;return(_0x2b31b0=(_0x3a9386=this[_0x44c9e7(0x2a5)])==null?void 0x0:_0x3a9386[_0x44c9e7(0x374)])!=null?_0x2b31b0:null;}[_0x2fd58b(0x40b)](){const _0x521fdb=_0x2fd58b;super[_0x521fdb(0x40b)](),this[_0x521fdb(0x328)]['next'](),this[_0x521fdb(0x328)][_0x521fdb(0x49d)]();}[_0x2fd58b(0x4a1)](){const _0x1ad7ca=_0x2fd58b;var _0x32838e,_0x3908a7;this['_throwTelemetryCollaborationNewChangeset'](),(_0x32838e=this['_socket'])==null||_0x32838e[_0x1ad7ca(0x373)]({'cmd':b[_0x1ad7ca(0x2e4)],'data':{'roomID':this[_0x1ad7ca(0x261)]}}),(_0x3908a7=this[_0x1ad7ca(0x2a5)])==null||_0x3908a7[_0x1ad7ca(0x4a1)](),this[_0x1ad7ca(0x52c)][_0x1ad7ca(0x49d)](),this[_0x1ad7ca(0x251)][_0x1ad7ca(0x49d)](),this[_0x1ad7ca(0x40b)]();}[_0x2fd58b(0x52b)](_0x42865f){const _0x2b2ada=_0x2fd58b;_0x42865f[_0x2b2ada(0x27c)]===b[_0x2b2ada(0x5f6)]?this[_0x2b2ada(0x542)](_0x42865f):_0x42865f[_0x2b2ada(0x27c)]===b[_0x2b2ada(0x605)]&&this['_onRecvEvent'](_0x42865f);}[_0x2fd58b(0x493)](_0x5edbe6){const _0x4eef15=_0x2fd58b;this['_sessionStatus$'][_0x4eef15(0x46b)](0x1),_0x5edbe6[_0x4eef15(0x373)]({'cmd':b[_0x4eef15(0x5f6)],'routeKey':this[_0x4eef15(0x261)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x2fd58b(0x542)](_0x13b798){const _0x46d169=_0x2fd58b;var _0xe1f850;if(_0x13b798[_0x46d169(0x5e0)]===Ye[_0x46d169(0x48b)]){this[_0x46d169(0x1ec)][_0x46d169(0x232)]({'type':q[_0x46d169(0x395)][_0x46d169(0x3b9)],'content':this[_0x46d169(0x48a)]['t']('session.room-full')}),this[_0x46d169(0x251)][_0x46d169(0x46b)](0x2);return;}this['_sessionStatus$'][_0x46d169(0x46b)](0x3);const _0x3396bb=(_0xe1f850=_0x13b798[_0x46d169(0x316)]['roomInfos'][this[_0x46d169(0x261)]])==null?void 0x0:_0xe1f850[_0x46d169(0x4a8)];_0x3396bb&&_0x3396bb[_0x46d169(0x2df)](_0x4b07d4=>this[_0x46d169(0x444)][_0x46d169(0x53b)](this[_0x46d169(0x261)],_0x4b07d4));}[_0x2fd58b(0x607)](_0x213bec){const _0x3eab06=_0x2fd58b;try{const _0x1ffecf=_0x213bec[_0x3eab06(0x316)];switch(_0x1ffecf[_0x3eab06(0x55f)]){case _['CollaborationEvent']['USERS_ENTER']:this['_onUserJoin'](_0x1ffecf),this[_0x3eab06(0x52c)][_0x3eab06(0x46b)](_0x1ffecf);break;case _[_0x3eab06(0x2ca)]['USERS_LEAVE']:this[_0x3eab06(0x50d)](_0x1ffecf),this[_0x3eab06(0x52c)][_0x3eab06(0x46b)](_0x1ffecf);break;case _[_0x3eab06(0x2ca)][_0x3eab06(0x460)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x3eab06(0x52c)]['next'](_0x1ffecf);break;case _[_0x3eab06(0x2ca)][_0x3eab06(0x34b)]:this[_0x3eab06(0x3b8)][_0x3eab06(0x359)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x3eab06(0x4ff)](_0x1ffecf)),this[_0x3eab06(0x52c)]['next'](_0x1ffecf);break;case _[_0x3eab06(0x2ca)][_0x3eab06(0x225)]:this[_0x3eab06(0x5f5)][_0x3eab06(0x561)](_0x1ffecf['data']),this['_event$'][_0x3eab06(0x46b)](_0x1ffecf);break;default:this['_event$'][_0x3eab06(0x46b)](_0x1ffecf);}}catch(_0x5eb207){this[_0x3eab06(0x3b8)]['error'](_0x5eb207,_0x213bec);}}[_0x2fd58b(0x534)](_0x2e1f19){const _0x30a002=_0x2fd58b;this[_0x30a002(0x444)]['updateMember'](this[_0x30a002(0x261)],_0x2e1f19[_0x30a002(0x316)]);}['_onUserLeave'](_0x352db1){const _0x481ee1=_0x2fd58b;this['_memberService']['removeMember'](this[_0x481ee1(0x261)],_0x352db1[_0x481ee1(0x316)]['memberID']);}async[_0x2fd58b(0x373)](_0x4db29f,_0x3dcbfb){const _0x5351ec=_0x2fd58b;if(this[_0x5351ec(0x2a6)]!==0x3||!this[_0x5351ec(0x2a5)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x4db29f[_0x5351ec(0x55f)]===_['CollaborationEvent'][_0x5351ec(0x4ca)]&&(this[_0x5351ec(0x2b6)](),this[_0x5351ec(0x53d)](_0x4db29f)),this[_0x5351ec(0x2a5)][_0x5351ec(0x373)]({'cmd':b[_0x5351ec(0x5c8)],'routeKey':_0x3dcbfb,'routeType':'','data':_0x4db29f});}catch(_0x253896){this[_0x5351ec(0x3b8)][_0x5351ec(0x359)](_0x253896);}}[_0x2fd58b(0x2b6)](){const _0x9d3c17=_0x2fd58b;var _0x23fac4;this[_0x9d3c17(0x5d1)]=window[_0x9d3c17(0x22e)](()=>{const _0x3cf30f=_0x9d3c17;this['_collaborationTimeoutTimer']=null,this['_messageService'][_0x3cf30f(0x232)]({'type':q[_0x3cf30f(0x395)][_0x3cf30f(0x4da)],'content':this[_0x3cf30f(0x48a)]['t']('session.collaboration-timeout')});},(_0x23fac4=this['_configService'][_0x9d3c17(0x54a)](Ge))!=null?_0x23fac4:ft);}[_0x2fd58b(0x5a9)](){const _0x35d04d=_0x2fd58b;this[_0x35d04d(0x5d1)]&&(clearTimeout(this[_0x35d04d(0x5d1)]),this[_0x35d04d(0x5d1)]=null);}[_0x2fd58b(0x53d)](_0x346ba5){const _0x2087be=_0x2fd58b;if(!this['_shouldReportTelemetry'])return;const {data:_0x3e1048}=_0x346ba5,{unitID:_0x8b6ae4,changeset:_0x5caaa0}=_0x3e1048,{mutations:_0x333d8b,type:_0xd369b1}=_0x5caaa0;this[_0x2087be(0x5ae)]={'unitId':_0x8b6ae4,'type':_0xd369b1,'startTime':performance[_0x2087be(0x468)](),'stopTime':0x0,'duration':0x0,'size':_s(_0x333d8b)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x1c375c=_0x2fd58b;if(this[_0x1c375c(0x2d4)]){if(!this[_0x1c375c(0x5ae)]){this[_0x1c375c(0x3b8)][_0x1c375c(0x359)](_0x1c375c(0x390),'telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x1c375c(0x5ae)][_0x1c375c(0x246)]=performance['now'](),this[_0x1c375c(0x5ae)][_0x1c375c(0x393)]=this[_0x1c375c(0x5ae)]['stopTime']-this[_0x1c375c(0x5ae)][_0x1c375c(0x45b)],this[_0x1c375c(0x2b9)][_0x1c375c(0x39f)](hs,this['_telemetryInfo']),this[_0x1c375c(0x5ae)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x315e0b=_0x2fd58b;this[_0x315e0b(0x5ae)]=null;}},exports[_0x2fd58b(0x492)]=fs([V(0x2,a['ILogService']),V(0x3,A['IBeforeCloseService']),V(0x4,A[_0x2fd58b(0x599)]),V(0x5,a[_0x2fd58b(0x5bf)]),V(0x6,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x57f)])),V(0x7,a['Inject'](z)),V(0x8,a['Inject'](Xe)),V(0x9,a[_0x2fd58b(0x278)](Yt[_0x2fd58b(0x2f2)]))],exports['CollaborationSession']);var Is=Object[_0x2fd58b(0x38e)],ps=Object[_0x2fd58b(0x36f)],Cs=(_0x375799,_0x13f537,_0x36061a,_0x4c2d00)=>{const _0xcaff23=_0x2fd58b;for(var _0x574d50=_0x4c2d00>0x1?void 0x0:_0x4c2d00?ps(_0x13f537,_0x36061a):_0x13f537,_0x4eae8c=_0x375799[_0xcaff23(0x598)]-0x1,_0x1d652b;_0x4eae8c>=0x0;_0x4eae8c--)(_0x1d652b=_0x375799[_0x4eae8c])&&(_0x574d50=(_0x4c2d00?_0x1d652b(_0x13f537,_0x36061a,_0x574d50):_0x1d652b(_0x574d50))||_0x574d50);return _0x4c2d00&&_0x574d50&&Is(_0x13f537,_0x36061a,_0x574d50),_0x574d50;},Q=(_0x18d26d,_0x583b96)=>(_0x5789e9,_0x48ebc6)=>_0x583b96(_0x5789e9,_0x48ebc6,_0x18d26d);exports[_0x2fd58b(0x370)]=class extends a[_0x2fd58b(0x560)]{constructor(_0x1fc597,_0x1cc819,_0x5dfb0a,_0x3cfdd7,_0x573995,_0x1d0753){const _0x3d372d=_0x2fd58b;super(),u(this,_0x3d372d(0x258),new v[(_0x3d372d(0x50e))](void 0x0)),u(this,_0x3d372d(0x5b5),this[_0x3d372d(0x258)][_0x3d372d(0x4b9)]()),u(this,_0x3d372d(0x4d3),null),u(this,_0x3d372d(0x37f),new Map()),u(this,'_status$',new v[(_0x3d372d(0x50e))](H[_0x3d372d(0x4bb)])),u(this,_0x3d372d(0x5fa),this[_0x3d372d(0x22a)]['asObservable']()),u(this,_0x3d372d(0x3ba),!0x1),u(this,'_retryConnectingTimer'),u(this,_0x3d372d(0x327),0x0),u(this,'_sendHeartbeatTimer'),u(this,_0x3d372d(0x249)),(this['_injector']=_0x1fc597,this[_0x3d372d(0x48a)]=_0x1cc819,this['_messageService']=_0x5dfb0a,this[_0x3d372d(0x3b8)]=_0x3cfdd7,this[_0x3d372d(0x41e)]=_0x573995,this[_0x3d372d(0x5f8)]=_0x1d0753,this[_0x3d372d(0x58f)]());}get['_socket'](){const _0x397d4d=_0x2fd58b;return this[_0x397d4d(0x258)][_0x397d4d(0x2e0)]();}[_0x2fd58b(0x58f)](){const _0x875b77=_0x2fd58b;this['_listenToOfflineEvent'](),this[_0x875b77(0x285)]();}[_0x2fd58b(0x40b)](){const _0x35827f=_0x2fd58b;super[_0x35827f(0x40b)](),this['_sessions'][_0x35827f(0x2df)](_0x2b6612=>_0x2b6612[_0x35827f(0x40b)]()),this[_0x35827f(0x37f)]['clear'](),this[_0x35827f(0x22a)]['complete']();}async[_0x2fd58b(0x5b1)](_0x3a2e20){const _0x4299ac=_0x2fd58b;if(this[_0x4299ac(0x37f)][_0x4299ac(0x563)](_0x3a2e20))return this[_0x4299ac(0x37f)]['get'](_0x3a2e20);this[_0x4299ac(0x37b)]();const _0x18148e=this['_injector'][_0x4299ac(0x307)](exports[_0x4299ac(0x492)],_0x3a2e20,this[_0x4299ac(0x258)][_0x4299ac(0x4b9)]());return this[_0x4299ac(0x37f)][_0x4299ac(0x57a)](_0x3a2e20,_0x18148e),_0x18148e;}['closeSession'](_0x43890c){const _0x48f46f=_0x2fd58b;var _0x54b25a;const _0x135fcd=this['_sessions']['get'](_0x43890c);_0x135fcd&&(this[_0x48f46f(0x37f)][_0x48f46f(0x55d)](_0x43890c),_0x135fcd[_0x48f46f(0x4a1)]()),this[_0x48f46f(0x37f)][_0x48f46f(0x262)]||(_0x54b25a=this[_0x48f46f(0x2a5)])==null||_0x54b25a['close']();}[_0x2fd58b(0x22f)](){const _0x33634e=_0x2fd58b;this['_retryCount']=0x0,this[_0x33634e(0x51f)]!=null&&(clearTimeout(this[_0x33634e(0x51f)]),this['_retryConnectingTimer']=null),this[_0x33634e(0x3d5)]();}[_0x2fd58b(0x326)](){const _0x4244b2=_0x2fd58b;var _0x4f13ae,_0x5e2a0f;const _0x40d7b=this[_0x4244b2(0x41e)][_0x4244b2(0x54a)](gt),_0x1ccd26=this[_0x4244b2(0x41e)][_0x4244b2(0x54a)](L),_0x3795d1=(_0x5e2a0f=(_0x4f13ae=_0x1ccd26==null?void 0x0:_0x1ccd26[_0x4244b2(0x5b2)])!=null?_0x4f13ae:_0x40d7b)!=null?_0x5e2a0f:Zt,_0x54f5a0=this['_socketService']['createSocket'](_0x3795d1);return this[_0x4244b2(0x4d3)]=_0x54f5a0,_0x54f5a0;}[_0x2fd58b(0x37b)](){const _0x93544a=_0x2fd58b;var _0x62aa96,_0x67c50b;try{const _0x420442=(_0x67c50b=(_0x62aa96=this[_0x93544a(0x2a5)])!=null?_0x62aa96:this[_0x93544a(0x4d3)])!=null?_0x67c50b:this[_0x93544a(0x326)]();if(_0x420442){const _0x2f213b=_0x420442[_0x93544a(0x373)];_0x420442['send']=_0x1245a3=>(this[_0x93544a(0x5e4)](),_0x2f213b['apply'](_0x420442,[_0x1245a3])),_0x420442[_0x93544a(0x42c)][_0x93544a(0x384)](_0x53b49a=>this[_0x93544a(0x544)](_0x420442,_0x53b49a)),_0x420442[_0x93544a(0x483)][_0x93544a(0x50b)](E[_0x93544a(0x3fc)](0x1))[_0x93544a(0x384)](_0x4874e6=>this[_0x93544a(0x3b8)][_0x93544a(0x359)]('[CollaborationSessionService]:\x20socket\x20error',_0x4874e6)),_0x420442[_0x93544a(0x54d)][_0x93544a(0x50b)](E[_0x93544a(0x3fc)](0x1))[_0x93544a(0x384)](()=>{const _0x4502c3=_0x93544a;this[_0x4502c3(0x2ab)](_0x420442);}),_0x420442[_0x93544a(0x512)][_0x93544a(0x50b)](E[_0x93544a(0x3fc)](0x1))[_0x93544a(0x384)](_0x111f3e=>{const _0x178643=_0x93544a;this['_logService'][_0x178643(0x513)]('[CollaborationSessionService]',_0x178643(0x252),_0x111f3e),this['_onConnectionFailed']();});}}catch(_0xae1b27){this[_0x93544a(0x3b8)][_0x93544a(0x359)](_0xae1b27),this[_0x93544a(0x5fe)]();}}[_0x2fd58b(0x2ab)](_0x12c9ed){const _0x3a3781=_0x2fd58b;this[_0x3a3781(0x3b8)][_0x3a3781(0x513)]('[CollaborationSessionService]',_0x3a3781(0x2c4)),_0x12c9ed[_0x3a3781(0x373)]({'cmd':b[_0x3a3781(0x3d7)]}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0xb37df0=_0x2fd58b;window['addEventListener'](_0xb37df0(0x40c),()=>this[_0xb37df0(0x428)]());}[_0x2fd58b(0x428)](){const _0x2b5607=_0x2fd58b;this['_socketReady']=!0x1,this[_0x2b5607(0x4d3)]=null,this[_0x2b5607(0x22a)][_0x2b5607(0x46b)](H[_0x2b5607(0x4fe)]),this[_0x2b5607(0x258)][_0x2b5607(0x46b)](null),this[_0x2b5607(0x4f7)](),this[_0x2b5607(0x33f)]();}[_0x2fd58b(0x5fe)](){const _0x113fd4=_0x2fd58b;var _0xc8dd4c;this[_0x113fd4(0x428)](),this['_retryCount']<((_0xc8dd4c=this[_0x113fd4(0x41e)][_0x113fd4(0x54a)](It))!=null?_0xc8dd4c:ts)?(this[_0x113fd4(0x1ec)]['show']({'key':_0x113fd4(0x590),'type':q[_0x113fd4(0x395)]['Warning'],'content':this[_0x113fd4(0x48a)]['t'](_0x113fd4(0x241))}),this['_tryReconnect']()):this['_messageService'][_0x113fd4(0x232)]({'key':_0x113fd4(0x590),'type':q['MessageType'][_0x113fd4(0x4da)],'content':this[_0x113fd4(0x48a)]['t'](_0x113fd4(0x500))});}[_0x2fd58b(0x285)](){const _0x2ce2e1=_0x2fd58b,_0x4f924f=()=>{const _0x55d9d0=_0x4bd5;this[_0x55d9d0(0x2a5)]||this[_0x55d9d0(0x22f)]();},_0xf79eaa=()=>{const _0x4c0b5a=_0x4bd5;this['_socket']||document[_0x4c0b5a(0x322)]===_0x4c0b5a(0x5b9)||this[_0x4c0b5a(0x22f)]();};window['addEventListener'](_0x2ce2e1(0x264),_0x4f924f),document[_0x2ce2e1(0x47b)]('visibilitychange',_0xf79eaa);}[_0x2fd58b(0x3d5)](){const _0x2cd9bd=_0x2fd58b;var _0x863b7f;const _0x15c276=this[_0x2cd9bd(0x327)],_0x1d7fc9=this[_0x2cd9bd(0x41e)][_0x2cd9bd(0x54a)](L),_0x2ec932=_0x15c276===0x0?0x0:((_0x863b7f=_0x1d7fc9==null?void 0x0:_0x1d7fc9['retryConnectingInterval'])!=null?_0x863b7f:es)*0x2**_0x15c276;this['_retryConnectingTimer']=window[_0x2cd9bd(0x22e)](()=>{const _0x26200b=_0x2cd9bd;clearTimeout(this[_0x26200b(0x51f)]),this[_0x26200b(0x51f)]=null,this[_0x26200b(0x37b)]();},_0x2ec932),this[_0x2cd9bd(0x327)]+=0x1;}[_0x2fd58b(0x544)](_0x2c4fdd,_0x3d308d){const _0x1d51d2=_0x2fd58b,{cmd:_0x227786}=_0x3d308d;_0x227786===b[_0x1d51d2(0x3d7)]&&!this[_0x1d51d2(0x3ba)]&&(_0x2c4fdd[_0x1d51d2(0x374)]=_0x3d308d['data'][_0x1d51d2(0x374)],this['_socket$'][_0x1d51d2(0x46b)](_0x2c4fdd),this[_0x1d51d2(0x22a)]['next'](H[_0x1d51d2(0x572)]),this[_0x1d51d2(0x3ba)]=!0x0,this[_0x1d51d2(0x4d3)]=null),_0x227786===b[_0x1d51d2(0x50a)]&&this[_0x1d51d2(0x4f7)](),this[_0x1d51d2(0x5e4)]();}[_0x2fd58b(0x5e4)](){const _0x43e568=_0x2fd58b;var _0x513910;this[_0x43e568(0x33f)](),this[_0x43e568(0x2e8)]=window[_0x43e568(0x22e)](()=>this[_0x43e568(0x477)](),(_0x513910=this['_configService'][_0x43e568(0x54a)](mt))!=null?_0x513910:Qt);}[_0x2fd58b(0x477)](){const _0x4d3ffa=_0x2fd58b;this[_0x4d3ffa(0x2a5)][_0x4d3ffa(0x373)]({'cmd':b['HEARTBEAT']}),this[_0x4d3ffa(0x3da)]();}[_0x2fd58b(0x3da)](){const _0x43533b=_0x2fd58b;var _0x58c5f4;this[_0x43533b(0x249)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x58c5f4=this[_0x43533b(0x41e)][_0x43533b(0x54a)](Ge))!=null?_0x58c5f4:ft);}[_0x2fd58b(0x33f)](){const _0x67e480=_0x2fd58b;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x67e480(0x2e8)]),this['_sendHeartbeatTimer']=null);}[_0x2fd58b(0x4f7)](){const _0x442e2b=_0x2fd58b;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x442e2b(0x249)]),this[_0x442e2b(0x249)]=null);}},exports[_0x2fd58b(0x370)]=Cs([Q(0x0,a[_0x2fd58b(0x2c2)](a['Injector'])),Q(0x1,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x57f)])),Q(0x2,A[_0x2fd58b(0x599)]),Q(0x3,a[_0x2fd58b(0x286)]),Q(0x4,a[_0x2fd58b(0x5bf)]),Q(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x2fd58b(0x4a2)]((Ue+0x100)[_0x2fd58b(0x24e)](0x10)[_0x2fd58b(0x588)](0x1));function Es(_0x5ee45,_0x2f3f4e=0x0){const _0x3e6cea=_0x2fd58b;return(R[_0x5ee45[_0x2f3f4e+0x0]]+R[_0x5ee45[_0x2f3f4e+0x1]]+R[_0x5ee45[_0x2f3f4e+0x2]]+R[_0x5ee45[_0x2f3f4e+0x3]]+'-'+R[_0x5ee45[_0x2f3f4e+0x4]]+R[_0x5ee45[_0x2f3f4e+0x5]]+'-'+R[_0x5ee45[_0x2f3f4e+0x6]]+R[_0x5ee45[_0x2f3f4e+0x7]]+'-'+R[_0x5ee45[_0x2f3f4e+0x8]]+R[_0x5ee45[_0x2f3f4e+0x9]]+'-'+R[_0x5ee45[_0x2f3f4e+0xa]]+R[_0x5ee45[_0x2f3f4e+0xb]]+R[_0x5ee45[_0x2f3f4e+0xc]]+R[_0x5ee45[_0x2f3f4e+0xd]]+R[_0x5ee45[_0x2f3f4e+0xe]]+R[_0x5ee45[_0x2f3f4e+0xf]])[_0x3e6cea(0x23d)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x1dac60=_0x2fd58b;if(!Se&&(Se=typeof crypto<'u'&&crypto['getRandomValues']&&crypto[_0x1dac60(0x4e3)]['bind'](crypto),!Se))throw new Error(_0x1dac60(0x256));return Se(bs);}var Rs=typeof crypto<'u'&&crypto[_0x2fd58b(0x49b)]&&crypto[_0x2fd58b(0x49b)][_0x2fd58b(0x447)](crypto);const st={'randomUUID':Rs};function Os(_0x394b9c,_0x5d8457,_0x10e8c6){const _0x3a36aa=_0x2fd58b;if(st[_0x3a36aa(0x49b)]&&!_0x5d8457&&!_0x394b9c)return st['randomUUID']();_0x394b9c=_0x394b9c||{};var _0x29cc20=_0x394b9c[_0x3a36aa(0x2ed)]||(_0x394b9c[_0x3a36aa(0x42a)]||Ts)();return _0x29cc20[0x6]=_0x29cc20[0x6]&0xf|0x40,_0x29cc20[0x8]=_0x29cc20[0x8]&0x3f|0x80,Es(_0x29cc20);}var Ds=Object[_0x2fd58b(0x38e)],ys=Object[_0x2fd58b(0x36f)],Us=(_0x161715,_0x207108,_0x51b71e,_0x3daa8d)=>{const _0x4b6ab9=_0x2fd58b;for(var _0x2c9f6c=_0x3daa8d>0x1?void 0x0:_0x3daa8d?ys(_0x207108,_0x51b71e):_0x207108,_0x5026e2=_0x161715[_0x4b6ab9(0x598)]-0x1,_0x536c82;_0x5026e2>=0x0;_0x5026e2--)(_0x536c82=_0x161715[_0x5026e2])&&(_0x2c9f6c=(_0x3daa8d?_0x536c82(_0x207108,_0x51b71e,_0x2c9f6c):_0x536c82(_0x2c9f6c))||_0x2c9f6c);return _0x3daa8d&&_0x2c9f6c&&Ds(_0x207108,_0x51b71e,_0x2c9f6c),_0x2c9f6c;},Pe=(_0x89a3d9,_0x2d39c9)=>(_0x27f8f8,_0x4d4372)=>_0x2d39c9(_0x27f8f8,_0x4d4372,_0x89a3d9);let fe=class{constructor(_0x55dcf2,_0x2ab582,_0x3bc743){const _0x258a51=_0x2fd58b;this[_0x258a51(0x227)]=_0x55dcf2,this[_0x258a51(0x263)]=_0x2ab582,this['_renderManagerService']=_0x3bc743;}[_0x2fd58b(0x1f0)](_0x225539){const _0x16f3ee=_0x2fd58b;this[_0x16f3ee(0x467)](_0x225539),this[_0x16f3ee(0x46e)](_0x225539);}[_0x2fd58b(0x49a)](_0x3d5427){const _0x2d4bb0=_0x2fd58b,{unitID:_0x2b8fdf}=_0x3d5427,_0x28fc56=this['_renderManagerService']['getRenderById'](_0x2b8fdf)[_0x2d4bb0(0x3c1)](M[_0x2d4bb0(0x434)]),{redoCache:_0x31fb22}=_0x28fc56[_0x2d4bb0(0x5f7)]();if(_0x31fb22[_0x2d4bb0(0x598)]===0x0)return _0x3d5427;let _0x177218=a[_0x2d4bb0(0x538)][_0x2d4bb0(0x39c)](_0x3d5427[_0x2d4bb0(0x3e7)][0x0]);for(let _0x203c12=0x0;_0x203c12<_0x31fb22[_0x2d4bb0(0x598)];_0x203c12++){const _0x216f66={'id':_0x2d4bb0(0x47c),'params':{..._0x31fb22[_0x203c12]}},_0x568bd2=this[_0x2d4bb0(0x263)][_0x2d4bb0(0x4c7)](_0x177218,_0x216f66,!0x1);if(_[_0x2d4bb0(0x595)](_0x568bd2))throw _0x568bd2['error'];_0x177218=_0x568bd2[_0x2d4bb0(0x5c1)];}return{...a[_0x2d4bb0(0x538)]['deepClone'](_0x3d5427),'mutations':[_0x177218]};}[_0x2fd58b(0x467)](_0x46934f){const _0x2652b5=_0x2fd58b,{unitID:_0xd2dfbe}=_0x46934f,_0x5f029c=this[_0x2652b5(0x2f5)][_0x2652b5(0x378)](_0xd2dfbe)[_0x2652b5(0x3c1)](M[_0x2652b5(0x434)]),{undoCache:_0x284a17,redoCache:_0x17bf24}=_0x5f029c[_0x2652b5(0x5f7)]();if(_0x284a17[_0x2652b5(0x598)]===0x0||_0x17bf24[_0x2652b5(0x598)]===0x0)return;const _0x11ebcf=[],_0xf96905=[];let _0x554409=a[_0x2652b5(0x538)][_0x2652b5(0x39c)](_0x46934f[_0x2652b5(0x3e7)][0x0]),_0x4503b9=a[_0x2652b5(0x538)][_0x2652b5(0x39c)](_0x46934f['mutations'][0x0]);for(let _0x1d30e6=_0x284a17[_0x2652b5(0x598)]-0x1;_0x1d30e6>=0x0;_0x1d30e6--){const _0x89e66a={'id':_0x2652b5(0x47c),'params':{..._0x284a17[_0x1d30e6]}},_0x5c25c9={'id':_0x2652b5(0x47c),'params':{..._0x17bf24[_0x1d30e6]}},_0x1faa93=this[_0x2652b5(0x263)][_0x2652b5(0x4c7)](_0x554409,_0x89e66a,!0x1),_0x30fd44=this[_0x2652b5(0x263)]['transformMutation'](_0x4503b9,_0x5c25c9,!0x1);if(_['isTransformMutationFailure'](_0x1faa93))throw _0x1faa93[_0x2652b5(0x359)];if(_['isTransformMutationFailure'](_0x30fd44))throw _0x30fd44[_0x2652b5(0x359)];_0x11ebcf[_0x2652b5(0x30e)](_0x1faa93[_0x2652b5(0x43c)]['params']),_0xf96905[_0x2652b5(0x30e)](_0x30fd44[_0x2652b5(0x43c)]['params']),_0x554409=_0x1faa93[_0x2652b5(0x5c1)],_0x4503b9=_0x30fd44['m1Prime'];}_0x5f029c[_0x2652b5(0x332)]({'undoCache':_0x11ebcf,'redoCache':_0xf96905});}[_0x2fd58b(0x46e)](_0x4ae46f){const _0x478cdc=_0x2fd58b,{unitID:_0x1f2cd1}=_0x4ae46f,_0x17ffd3=this[_0x478cdc(0x2f5)][_0x478cdc(0x378)](_0x1f2cd1)['with'](M['DocIMEInputManagerService']),_0x3fc402=_0x17ffd3['getActiveRange']();if(_0x3fc402==null)return;const _0x1c4eeb=[{'id':_0x478cdc(0x47c),'params':{'unitId':_0x4ae46f[_0x478cdc(0x440)],'actions':null,'textRanges':[_0x3fc402]}}],_0x5ab715=this[_0x478cdc(0x263)][_0x478cdc(0x42f)](_0x4ae46f,_0x1c4eeb);if(!_['isTransformMutationsWithChangesetSuccess'](_0x5ab715))throw _0x5ab715['error'];const _0x35f0ac=_0x5ab715['m2Prime'][0x0]['params'][_0x478cdc(0x424)];Array[_0x478cdc(0x4eb)](_0x35f0ac)&&_0x35f0ac[_0x478cdc(0x598)]&&_0x17ffd3[_0x478cdc(0x295)](_0x35f0ac[0x0]);}};fe=Us([Pe(0x0,a['Inject'](a[_0x2fd58b(0x581)])),Pe(0x1,_[_0x2fd58b(0x259)]),Pe(0x2,O[_0x2fd58b(0x487)])],fe);var Ps=Object[_0x2fd58b(0x38e)],ws=Object[_0x2fd58b(0x36f)],Ms=(_0x261191,_0x2aea51,_0x2a8db6,_0x26b784)=>{for(var _0x643074=_0x26b784>0x1?void 0x0:_0x26b784?ws(_0x2aea51,_0x2a8db6):_0x2aea51,_0x2573ce=_0x261191['length']-0x1,_0x2543fa;_0x2573ce>=0x0;_0x2573ce--)(_0x2543fa=_0x261191[_0x2573ce])&&(_0x643074=(_0x26b784?_0x2543fa(_0x2aea51,_0x2a8db6,_0x643074):_0x2543fa(_0x643074))||_0x643074);return _0x26b784&&_0x643074&&Ps(_0x2aea51,_0x2a8db6,_0x643074),_0x643074;},ce=(_0x1fbaa2,_0x3ae9cd)=>(_0x320192,_0x3d4c0c)=>_0x3ae9cd(_0x320192,_0x3d4c0c,_0x1fbaa2);exports[_0x2fd58b(0x208)]=class extends a[_0x2fd58b(0x560)]{constructor(_0x30d543,_0x28ef26,_0x5bf8c4,_0x5dcf9d,_0x3624ba){const _0x229af1=_0x2fd58b;super(),u(this,_0x229af1(0x239),new Map()),u(this,_0x229af1(0x290),new Map()),u(this,_0x229af1(0x4f1),!0x1),(this['_configService']=_0x30d543,this[_0x229af1(0x391)]=_0x28ef26,this[_0x229af1(0x5c4)]=_0x5bf8c4,this['_localeService']=_0x5dcf9d,this[_0x229af1(0x4e9)]=_0x3624ba,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){this['_disabled']=!0x0;}[_0x2fd58b(0x323)](){this['_disabled']=!0x1;}[_0x2fd58b(0x40b)](){const _0x427c3a=_0x2fd58b;this[_0x427c3a(0x413)]()[_0x427c3a(0x265)](()=>super[_0x427c3a(0x40b)]());}async[_0x2fd58b(0x3e2)](_0x53459b){return this['_disabled']?null:this['_localStorageService']['getItem'](it(_0x53459b));}async[_0x2fd58b(0x2bf)](_0x43b349,_0x5af358){const _0x29b197=_0x2fd58b;return!!this[_0x29b197(0x391)][_0x29b197(0x511)](_0x43b349,_0x5af358);}['updateOfflineData'](_0x18c443,_0x301335,_0x22c444,_0x4f23b9){const _0x3331e7=_0x2fd58b,_0x4abb6f=this[_0x3331e7(0x4e9)][_0x3331e7(0x40e)](_0x18c443);this[_0x3331e7(0x239)][_0x3331e7(0x57a)](_0x18c443,{'unitID':_0x18c443,'type':_0x301335,'awaitingChangeset':_0x22c444,'mutations':_0x4f23b9,'rev':_0x4abb6f}),this[_0x3331e7(0x290)]['has'](_0x18c443)||this[_0x3331e7(0x3c7)](_0x18c443);}[_0x2fd58b(0x3c7)](_0x5891dc){const _0x79331d=_0x2fd58b,_0xe6ee8d=this[_0x79331d(0x451)]();_0xe6ee8d===0x0?this[_0x79331d(0x485)](_0x5891dc):this['_saveTaskMap'][_0x79331d(0x57a)](_0x5891dc,setTimeout(()=>this[_0x79331d(0x485)](_0x5891dc),_0xe6ee8d));}[_0x2fd58b(0x451)](){const _0x3dc587=_0x2fd58b;var _0x17f1b0;return(_0x17f1b0=this[_0x3dc587(0x41e)]['getConfig'](pt))!=null?_0x17f1b0:ss;}[_0x2fd58b(0x485)](_0x46daf7){const _0x596b99=_0x2fd58b,_0x4e7b8c=this['_saveTaskMap'][_0x596b99(0x5e1)](_0x46daf7);return _0x4e7b8c!==void 0x0&&window['clearTimeout'](_0x4e7b8c),this[_0x596b99(0x391)][_0x596b99(0x511)](it(_0x46daf7),this['_cachedData']['get'](_0x46daf7))[_0x596b99(0x265)](()=>this[_0x596b99(0x290)][_0x596b99(0x55d)](_0x46daf7));}async[_0x2fd58b(0x413)](){const _0x5a5230=_0x2fd58b,_0x2f69e7=[];this[_0x5a5230(0x290)][_0x5a5230(0x2df)]((_0x4ac808,_0x3d0792)=>{const _0x2e2a37=_0x5a5230;window[_0x2e2a37(0x557)](_0x4ac808),_0x2f69e7[_0x2e2a37(0x4a2)](this['_saveCache'](_0x3d0792)[_0x2e2a37(0x265)](()=>{const _0x2f531c=_0x2e2a37;this[_0x2f531c(0x290)]['delete'](_0x3d0792);}));}),await Promise[_0x5a5230(0x21d)](_0x2f69e7);}['_setupBeforeClosingHandler'](){const _0x5b1dac=_0x2fd58b;this[_0x5b1dac(0x4de)](this[_0x5b1dac(0x5c4)][_0x5b1dac(0x31c)](()=>{const _0x552f35=_0x5b1dac;if(this[_0x552f35(0x290)]['size'])return this[_0x552f35(0x48a)]['t'](_0x552f35(0x2db));}));}},exports[_0x2fd58b(0x208)]=Ms([ce(0x0,a[_0x2fd58b(0x5bf)]),ce(0x1,a[_0x2fd58b(0x228)]),ce(0x2,A[_0x2fd58b(0x28d)]),ce(0x3,a['Inject'](a[_0x2fd58b(0x57f)])),ce(0x4,a[_0x2fd58b(0x2c2)](_['RevisionService']))],exports[_0x2fd58b(0x208)]);function it(_0x58be8d){return'unit-cache-'+_0x58be8d;}var Ns=Object['defineProperty'],As=Object['getOwnPropertyDescriptor'],Ls=(_0x207dad,_0x3af999,_0x3f5fd0,_0xb1cee0)=>{const _0x5f3d3e=_0x2fd58b;for(var _0x2748d6=_0xb1cee0>0x1?void 0x0:_0xb1cee0?As(_0x3af999,_0x3f5fd0):_0x3af999,_0x214319=_0x207dad[_0x5f3d3e(0x598)]-0x1,_0x360d77;_0x214319>=0x0;_0x214319--)(_0x360d77=_0x207dad[_0x214319])&&(_0x2748d6=(_0xb1cee0?_0x360d77(_0x3af999,_0x3f5fd0,_0x2748d6):_0x360d77(_0x2748d6))||_0x2748d6);return _0xb1cee0&&_0x2748d6&&Ns(_0x3af999,_0x3f5fd0,_0x2748d6),_0x2748d6;},we=(_0x29f0d1,_0x3a92fa)=>(_0xe0af62,_0xe0e550)=>_0x3a92fa(_0xe0af62,_0xe0e550,_0x29f0d1);function js(_0x4280a6){const _0x5e4c75=_0x2fd58b,{unitID:_0x1b2b99,mutations:_0x499784}=_0x4280a6;return{'unitId':_0x1b2b99,'subUnitId':_0x499784[0x0][_0x5e4c75(0x494)]['subUnitId']};}let Ie=class{constructor(_0x3face3,_0x200c9e,_0x49e05e){const _0x150b73=_0x2fd58b;this[_0x150b73(0x227)]=_0x3face3,this['_transformService']=_0x200c9e,this['_instanceService']=_0x49e05e;}[_0x2fd58b(0x592)](_0x984428){const _0xdcf919=_0x2fd58b;var _0x56110a,_0x2b93f6,_0x21f324,_0x4cd4ac;const _0x2619bc=this['_injector']['get'](C[_0xdcf919(0x2dc)]),{unitId:_0x47ab87,subUnitId:_0x10f495}=js(_0x984428),_0x475127=_0x2619bc[_0xdcf919(0x5e2)](_0x47ab87)[_0xdcf919(0x415)](),_0x514759=(_0x2b93f6=(_0x56110a=this['_instanceService'][_0xdcf919(0x58e)](_0x47ab87))==null?void 0x0:_0x56110a[_0xdcf919(0x47f)]())==null?void 0x0:_0x2b93f6[_0xdcf919(0x44b)]();if(_0x475127[_0xdcf919(0x598)]===0x0||!_0x47ab87||!_0x10f495)return;const _0x435ee9=[{'id':C['SetSelectionsOperation']['id'],'params':{'unitId':_0x47ab87,'subUnitId':_0x514759,'selections':a['Tools'][_0xdcf919(0x39c)](_0x475127)}}],_0x59125d=this[_0xdcf919(0x263)][_0xdcf919(0x42f)](_0x984428,_0x435ee9);if(!_[_0xdcf919(0x3f9)](_0x59125d))throw _0x59125d[_0xdcf919(0x359)];const _0x2eb95d=(_0x4cd4ac=(_0x21f324=_0x59125d['m2Prime'][0x0])==null?void 0x0:_0x21f324[_0xdcf919(0x494)])==null?void 0x0:_0x4cd4ac[_0xdcf919(0x465)];Array[_0xdcf919(0x4eb)](_0x2eb95d)&&_0x2eb95d['length']&&this[_0xdcf919(0x227)][_0xdcf919(0x5e1)](a[_0xdcf919(0x4b6)])[_0xdcf919(0x3a4)](C[_0xdcf919(0x4cf)]['id'],{'unitId':_0x47ab87,'subUnitId':_0x514759,'selections':_0x2eb95d});}};Ie=Ls([we(0x0,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),we(0x1,_['ITransformService']),we(0x2,a[_0x2fd58b(0x387)])],Ie);const Re=a[_0x2fd58b(0x215)](_0x2fd58b(0x57e));var Dt=(_0x1089f2=>(_0x1089f2[_0x1089f2[_0x2fd58b(0x36e)]=0x0]=_0x2fd58b(0x36e),_0x1089f2[_0x1089f2[_0x2fd58b(0x2e1)]=0x1]=_0x2fd58b(0x2e1),_0x1089f2))(Dt||{});const nt=0x7530,rt=_0x2fd58b(0x4b7);class $s extends a[_0x2fd58b(0x560)]{constructor(){const _0x5ad81f=_0x2fd58b;super(),u(this,_0x5ad81f(0x43f),a['Tools'][_0x5ad81f(0x3e6)]()),u(this,_0x5ad81f(0x55c),new Set()),u(this,_0x5ad81f(0x4ef),new Map()),u(this,_0x5ad81f(0x1f2),null),u(this,'_clearOtherTimers',new Map()),u(this,_0x5ad81f(0x25a),new Map()),this[_0x5ad81f(0x2fa)]();}[_0x2fd58b(0x40b)](){const _0xe15b58=_0x2fd58b;super['dispose'](),this[_0xe15b58(0x505)][_0xe15b58(0x2df)]((_0x44e609,_0x2d520c)=>this[_0xe15b58(0x2bc)](_0x2d520c)),this[_0xe15b58(0x1f2)]&&window[_0xe15b58(0x5c7)](this[_0xe15b58(0x1f2)]);}['getUnitStatus$'](_0x126a62){const _0x32d8ae=_0x2fd58b;return this['_ensureSubject'](_0x126a62)[_0x32d8ae(0x50b)](v['distinctUntilChanged']());}['editingUnit'](_0x49ea82){const _0x28b74e=_0x2fd58b;this[_0x28b74e(0x55c)][_0x28b74e(0x262)]===0x0&&this[_0x28b74e(0x3f1)](),this[_0x28b74e(0x55c)][_0x28b74e(0x4e2)](_0x49ea82),this[_0x28b74e(0x3b4)]({'type':0x0,'memberID':this[_0x28b74e(0x43f)],'unitIDs':[_0x49ea82],'isForwarded':!0x1});}['disposeUnit'](_0x5ba5f5){const _0x4a9d63=_0x2fd58b;this[_0x4a9d63(0x55c)]['delete'](_0x5ba5f5),this[_0x4a9d63(0x55c)]['size']===0x0&&this['_heartbeatTimer']&&window[_0x4a9d63(0x5c7)](this[_0x4a9d63(0x1f2)]);}[_0x2fd58b(0x2fa)](){const _0x1395a3=_0x2fd58b;this[_0x1395a3(0x4de)](a[_0x1395a3(0x5c3)](v[_0x1395a3(0x346)](window,_0x1395a3(0x3c5))[_0x1395a3(0x384)](_0x2acef4=>{const _0x250139=_0x1395a3;if(_0x2acef4[_0x250139(0x4e6)]!==rt||!_0x2acef4['newValue'])return;const _0xaca719=JSON[_0x250139(0x33b)](_0x2acef4[_0x250139(0x503)]);this[_0x250139(0x273)](_0xaca719);}))),window[_0x1395a3(0x47b)](_0x1395a3(0x50f),()=>this[_0x1395a3(0x3b4)]({'type':0x1,'memberID':this[_0x1395a3(0x43f)],'unitIDs':Array[_0x1395a3(0x5c6)](this[_0x1395a3(0x55c)])}));}[_0x2fd58b(0x273)](_0x17d69b){const _0x91f506=_0x2fd58b;switch(_0x17d69b[_0x91f506(0x5bd)]){case 0x0:this['_handleJoinEvent'](_0x17d69b);break;case 0x1:this[_0x91f506(0x550)](_0x17d69b);break;case 0x2:this[_0x91f506(0x575)](_0x17d69b);break;}}[_0x2fd58b(0x419)](_0x3b7686){const _0x1a6cce=_0x2fd58b,{unitIDs:_0x2373a6,memberID:_0x2ed3ac,isForwarded:_0x604036}=_0x3b7686;_0x2373a6['forEach'](_0x4223e8=>{const _0x407cf8=_0x4bd5;if(!_0x604036&&this[_0x407cf8(0x4ef)][_0x407cf8(0x563)](_0x4223e8)&&this[_0x407cf8(0x1ef)](_0x4223e8)[_0x407cf8(0x46b)](0x1),!this[_0x407cf8(0x4ef)][_0x407cf8(0x563)](_0x4223e8)||!this[_0x407cf8(0x4ef)][_0x407cf8(0x5e1)](_0x4223e8)['has'](_0x2ed3ac)){const _0x158d10=this[_0x407cf8(0x4ef)]['get'](_0x4223e8)||new Set();_0x158d10[_0x407cf8(0x4e2)](_0x2ed3ac),this['_unitOnClients'][_0x407cf8(0x57a)](_0x4223e8,_0x158d10),this['_scheduleClearOtherTimer'](_0x2ed3ac);}}),_0x604036||this[_0x1a6cce(0x3b4)]({'type':0x0,'memberID':this[_0x1a6cce(0x43f)],'unitIDs':[...this[_0x1a6cce(0x55c)]],'isForwarded':!0x0});}[_0x2fd58b(0x543)](_0x4df00f){const _0x2a64a2=_0x2fd58b;this[_0x2a64a2(0x2bc)](_0x4df00f);const _0xcb2acd=window[_0x2a64a2(0x22e)](()=>{const _0x1e4cdf=_0x2a64a2;this['_unitOnClients'][_0x1e4cdf(0x2df)](_0x5468dc=>{const _0x5e0b18=_0x1e4cdf;_0x5468dc[_0x5e0b18(0x55d)](_0x4df00f);});},nt*0x2);this['_clearOtherTimers'][_0x2a64a2(0x57a)](_0x4df00f,_0xcb2acd);}[_0x2fd58b(0x2bc)](_0x365d46){const _0x27e8d1=_0x2fd58b;if(this[_0x27e8d1(0x505)][_0x27e8d1(0x563)](_0x365d46)){const _0x4b4912=this[_0x27e8d1(0x505)]['get'](_0x365d46);_0x4b4912&&window[_0x27e8d1(0x557)](_0x4b4912),this['_clearOtherTimers'][_0x27e8d1(0x57a)](_0x365d46,null);}}[_0x2fd58b(0x550)](_0x2ecb3e){const _0x1a1540=_0x2fd58b,{memberID:_0x477f7f,unitIDs:_0x3262ac}=_0x2ecb3e;_0x3262ac['forEach'](_0x46fefd=>{const _0x382da2=_0x4bd5;var _0x4d7cf7;const _0x3322fa=this['_unitOnClients']['get'](_0x46fefd);_0x3322fa&&(_0x3322fa[_0x382da2(0x55d)](_0x477f7f),(_0x4d7cf7=this[_0x382da2(0x1ef)](_0x46fefd))==null||_0x4d7cf7[_0x382da2(0x46b)](_0x3322fa[_0x382da2(0x262)]===0x0?0x0:0x1));}),this[_0x1a1540(0x2bc)](_0x477f7f);}[_0x2fd58b(0x575)](_0x53b267){const _0x59e8ff=_0x2fd58b;this[_0x59e8ff(0x543)](_0x53b267[_0x59e8ff(0x374)]);}['_send'](_0x21380d){const _0x360d2d=_0x2fd58b;localStorage[_0x360d2d(0x511)](rt,JSON['stringify'](_0x21380d));}[_0x2fd58b(0x3f1)](){const _0x3fe1e7=_0x2fd58b;this[_0x3fe1e7(0x1f2)]=window[_0x3fe1e7(0x5dd)](()=>{const _0x1b4167=_0x3fe1e7;this['_send']({'type':0x2,'memberID':this[_0x1b4167(0x43f)]});},nt);}[_0x2fd58b(0x1ef)](_0x57e2cc){const _0x1714ec=_0x2fd58b;return this[_0x1714ec(0x25a)]['has'](_0x57e2cc)||this[_0x1714ec(0x25a)]['set'](_0x57e2cc,new v[(_0x1714ec(0x50e))](0x0)),this[_0x1714ec(0x25a)][_0x1714ec(0x5e1)](_0x57e2cc);}}function yt(_0x26a909){const _0x4730db=_0x2fd58b;let _0x419d8e='';for(const _0x5716cf of _0x26a909){const {startOffset:_0x503635,endOffset:_0x228f9f,isActive:_0x84591b}=_0x5716cf;_0x419d8e[_0x4730db(0x598)]&&(_0x419d8e+=','),_0x419d8e+=_0x503635+':'+_0x228f9f+':'+(_0x84591b?'1':'0');}return _0x419d8e;}function Hs(_0x1a0697){const _0x3ee3c5=_0x2fd58b,_0x214b08=_0x1a0697['split'](','),_0x6c581e=[];for(const _0x254b51 of _0x214b08){const [_0x24b380,_0x2d5a48,_0x1982f2]=_0x254b51[_0x3ee3c5(0x45c)](':');_0x6c581e[_0x3ee3c5(0x4a2)]({'startOffset':Number(_0x24b380),'endOffset':Number(_0x2d5a48),'collapsed':_0x24b380===_0x2d5a48,'isActive':_0x1982f2==='1'});}return _0x6c581e[_0x3ee3c5(0x2ff)](_0x3096e5=>_0x3096e5['isActive'])||(_0x6c581e[0x0]['isActive']=!0x0),_0x6c581e;}class qe extends a[_0x2fd58b(0x5ff)]{constructor(){const _0x15585f=_0x2fd58b;super(...arguments),u(this,_0x15585f(0x55b),new v['BehaviorSubject'](null)),u(this,_0x15585f(0x4c5),this[_0x15585f(0x55b)][_0x15585f(0x4b9)]());}[_0x2fd58b(0x5fb)](_0x186709){const _0x54568f=_0x2fd58b,{unitID:_0x47b5f8,memberID:_0x2d93e5,textRanges:_0x2a088d}=_0x186709,_0xd6a998=yt(_0x2a088d),_0x3215ba={'unitID':_0x47b5f8,'memberID':_0x2d93e5,'selection':_0xd6a998};this[_0x54568f(0x55b)][_0x54568f(0x46b)](_0x3215ba);}}var xs=Object[_0x2fd58b(0x38e)],ks=Object[_0x2fd58b(0x36f)],Bs=(_0x2f1fc3,_0x10b146,_0x344336,_0x72bc1a)=>{const _0x341b9d=_0x2fd58b;for(var _0x381a47=_0x72bc1a>0x1?void 0x0:_0x72bc1a?ks(_0x10b146,_0x344336):_0x10b146,_0x519ddd=_0x2f1fc3[_0x341b9d(0x598)]-0x1,_0x4b167e;_0x519ddd>=0x0;_0x519ddd--)(_0x4b167e=_0x2f1fc3[_0x519ddd])&&(_0x381a47=(_0x72bc1a?_0x4b167e(_0x10b146,_0x344336,_0x381a47):_0x4b167e(_0x381a47))||_0x381a47);return _0x72bc1a&&_0x381a47&&xs(_0x10b146,_0x344336,_0x381a47),_0x381a47;},ot=(_0xe87e0a,_0x2165b8)=>(_0x502ad6,_0x12b54e)=>_0x2165b8(_0x502ad6,_0x12b54e,_0xe87e0a);let pe=class{constructor(_0x5d18ce,_0x197aa9){const _0x2a23ff=_0x2fd58b;this['_injector']=_0x5d18ce,this[_0x2a23ff(0x263)]=_0x197aa9;}[_0x2fd58b(0x592)](_0x3fddaf){const _0x35398d=_0x2fd58b;var _0x1f0617;const _0x422f6e=this['_injector'][_0x35398d(0x5e1)](W[_0x35398d(0x209)]),_0x2e9ba8=(_0x1f0617=_0x422f6e[_0x35398d(0x3c3)]())!=null?_0x1f0617:[];if(_0x2e9ba8[_0x35398d(0x598)]===0x0)return;const _0x2d8fb2=[{'id':_0x35398d(0x47c),'params':{'unitId':_0x3fddaf[_0x35398d(0x440)],'actions':null,'textRanges':_0x2e9ba8}}],_0x51f32e=this[_0x35398d(0x263)][_0x35398d(0x42f)](_0x3fddaf,_0x2d8fb2);if(!_[_0x35398d(0x3f9)](_0x51f32e))throw _0x51f32e[_0x35398d(0x359)];const _0x405b21=_0x51f32e[_0x35398d(0x43c)][0x0]['params'][_0x35398d(0x424)];Array[_0x35398d(0x4eb)](_0x405b21)&&_0x405b21[_0x35398d(0x598)]&&_0x422f6e[_0x35398d(0x48e)](_0x405b21,!0x1);}};pe=Bs([ot(0x0,a[_0x2fd58b(0x2c2)](a['Injector'])),ot(0x1,_[_0x2fd58b(0x259)])],pe);const Vs=new Set([C['InsertSheetMutation']['id']]);function at(_0x3c1055,_0x5c5b80,_0x42d566,_0x3a9ae5,_0x476bd8){const _0xdb475c=_0x2fd58b;var _0x48f766,_0x1a15c6,_0x4766bf,_0x1d8433;const _0x444aca=[];for(const _0x4ece18 of _0x3c1055)if(Vs[_0xdb475c(0x563)](_0x4ece18['id'])){if(_0x444aca[_0xdb475c(0x598)]>0x0)break;_0x444aca[_0xdb475c(0x4a2)](_0x4ece18);break;}else _0x444aca[_0xdb475c(0x4a2)](_0x4ece18);const _0x253eac=(_0x1a15c6=(_0x48f766=_0x476bd8[_0xdb475c(0x260)]())==null?void 0x0:_0x48f766[_0xdb475c(0x458)])!=null?_0x1a15c6:_0xdb475c(0x266),_0x31f95d=(_0x1d8433=(_0x4766bf=_0x476bd8[_0xdb475c(0x260)]())==null?void 0x0:_0x4766bf[_0xdb475c(0x374)])!=null?_0x1d8433:'unknown';return{'changeset':{'unitID':_0x5c5b80,'type':_[_0xdb475c(0x365)](_0x42d566[_0xdb475c(0x3fe)](_0x5c5b80)),'baseRev':_0x3a9ae5[_0xdb475c(0x40e)](_0x5c5b80),'revision':0x0,'userID':_0x253eac,'memberID':_0x31f95d,'mutations':_0x444aca},'pendingMutations':_0x3c1055[_0xdb475c(0x588)](_0x444aca[_0xdb475c(0x598)])};}function Ws(_0x4f5990,_0xe7b81d,_0x10b060,_0x3375eb,_0x387c08){const _0x495c5e=_0x2fd58b;var _0x1b98b3,_0x3c66a4,_0x2b3aab,_0x593e32;const _0x122caa=[_0x4f5990['reduce']((_0x3075a0,_0x2653a5)=>{const _0x1b8be0=_0x4bd5;var _0x533583;const {id:_0xe2ee99}=_0x3075a0,{id:_0x60c8d8,type:_0x3c1b54}=_0x2653a5,_0x3d6aa1=(_0x533583=_0x3075a0[_0x1b8be0(0x494)])!=null?_0x533583:{'actions':null},_0x10aae8=_0x2653a5[_0x1b8be0(0x494)];if(_0xe2ee99&&_0xe2ee99!==_0x60c8d8)throw new Error(_0x1b8be0(0x5e9)+_0xe2ee99+'\x20-\x20'+_0x60c8d8+'.');return{..._0x3075a0,'id':_0x60c8d8,'type':_0x3c1b54,'params':{'unitId':_0x10aae8[_0x1b8be0(0x401)],'textRanges':_0x10aae8[_0x1b8be0(0x424)],'actions':a['JSONX'][_0x1b8be0(0x496)](_0x3d6aa1['actions'],_0x10aae8[_0x1b8be0(0x446)])}};},{})],_0x1c1692=(_0x3c66a4=(_0x1b98b3=_0x387c08[_0x495c5e(0x260)]())==null?void 0x0:_0x1b98b3[_0x495c5e(0x458)])!=null?_0x3c66a4:_0x495c5e(0x266),_0x312d88=(_0x593e32=(_0x2b3aab=_0x387c08[_0x495c5e(0x260)]())==null?void 0x0:_0x2b3aab['memberID'])!=null?_0x593e32:'unknown';return{'changeset':{'unitID':_0xe7b81d,'type':_[_0x495c5e(0x365)](_0x10b060[_0x495c5e(0x3fe)](_0xe7b81d)),'baseRev':_0x3375eb[_0x495c5e(0x40e)](_0xe7b81d),'revision':0x0,'userID':_0x1c1692,'memberID':_0x312d88,'mutations':_0x122caa},'pendingMutations':[]};}const Fs={'id':C['EmptyMutation']['id'],'type':a[_0x2fd58b(0x3e3)][_0x2fd58b(0x4cb)],'params':{}};var Gs=Object[_0x2fd58b(0x38e)],Ys=Object[_0x2fd58b(0x36f)],J=(_0x379a19,_0x29d77b,_0x5bf3bb,_0x335626)=>{const _0x56c39a=_0x2fd58b;for(var _0x46fad2=_0x335626>0x1?void 0x0:_0x335626?Ys(_0x29d77b,_0x5bf3bb):_0x29d77b,_0x5d6ca9=_0x379a19[_0x56c39a(0x598)]-0x1,_0x20b7b9;_0x5d6ca9>=0x0;_0x5d6ca9--)(_0x20b7b9=_0x379a19[_0x5d6ca9])&&(_0x46fad2=(_0x335626?_0x20b7b9(_0x29d77b,_0x5bf3bb,_0x46fad2):_0x20b7b9(_0x46fad2))||_0x46fad2);return _0x335626&&_0x46fad2&&Gs(_0x29d77b,_0x5bf3bb,_0x46fad2),_0x46fad2;},m=(_0x563a28,_0x3563ab)=>(_0x5a0c95,_0x267f9e)=>_0x3563ab(_0x5a0c95,_0x267f9e,_0x563a28),U=(_0x3e1157=>(_0x3e1157[_0x2fd58b(0x5a0)]=_0x2fd58b(0x38a),_0x3e1157['SYNCED']=_0x2fd58b(0x3ef),_0x3e1157[_0x2fd58b(0x4f2)]=_0x2fd58b(0x267),_0x3e1157[_0x2fd58b(0x39b)]=_0x2fd58b(0x377),_0x3e1157['AWAITING_WITH_PENDING']='awaiting_with_pending',_0x3e1157[_0x2fd58b(0x4cd)]=_0x2fd58b(0x22c),_0x3e1157['CONFLICT']=_0x2fd58b(0x4d9),_0x3e1157['OFFLINE']='offline',_0x3e1157))(U||{});class Z{constructor(_0x138833,_0x181bc6,_0x49272d,_0x1ed63b,_0x3dca2b,_0x5ef5ef,_0x86a6e5,_0x2245fa,_0x5cec31){const _0x41e358=_0x2fd58b;u(this,'_awaitingChangeset',null),u(this,'_pendingMutations',[]),(this['unitID']=_0x138833,this['type']=_0x181bc6,this[_0x41e358(0x3ea)]=_0x3dca2b,this[_0x41e358(0x502)]=_0x5ef5ef,this[_0x41e358(0x3ed)]=_0x86a6e5,this[_0x41e358(0x4e9)]=_0x2245fa,this['_localCacheService']=_0x5cec31,this['_awaitingChangeset']=_0x49272d,this[_0x41e358(0x52e)]=_0x1ed63b);}[_0x2fd58b(0x23a)](_0x17365f){const _0x276494=_0x2fd58b,_0x4abb21=this[_0x276494(0x4e9)]['getCurrentRevOfUnit'](this[_0x276494(0x440)]);return _0x17365f[_0x276494(0x24f)]>_0x4abb21+0x1?(this[_0x276494(0x3ea)][_0x276494(0x504)]({'from':_0x4abb21,'to':_0x17365f[_0x276494(0x24f)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x49f839){const _0x18f3b4=_0x2fd58b;this[_0x18f3b4(0x3ed)][_0x18f3b4(0x366)](this[_0x18f3b4(0x440)],_0x49f839);}['_transformSelections'](_0x5d87a7){const _0x23cc52=_0x2fd58b;var _0x209a35,_0x1d3d79;(_0x1d3d79=(_0x209a35=this[_0x23cc52(0x3ea)])[_0x23cc52(0x3e0)])==null||_0x1d3d79[_0x23cc52(0x321)](_0x209a35,_0x5d87a7);}[_0x2fd58b(0x299)](_0x7ce4ad){const _0x2e69d7=_0x2fd58b;var _0x524e59,_0x2614a8;return(_0x2614a8=(_0x524e59=this['_handler'])[_0x2e69d7(0x46f)])==null?void 0x0:_0x2614a8[_0x2e69d7(0x321)](_0x524e59,_0x7ce4ad);}[_0x2fd58b(0x3c9)](_0x4a020d){const _0x1ef331=_0x2fd58b;var _0x31191e,_0xdca51f,_0x26e367;return(_0x26e367=(_0xdca51f=(_0x31191e=this[_0x1ef331(0x3ea)])[_0x1ef331(0x36b)])==null?void 0x0:_0xdca51f[_0x1ef331(0x321)](_0x31191e,_0x4a020d))!=null?_0x26e367:_0x4a020d;}[_0x2fd58b(0x27b)](_0x4cdcb3){const _0x3e794b=_0x2fd58b;var _0x27b3c6,_0x44e980;if(this[_0x3e794b(0x5bd)]===$[_0x3e794b(0x2ea)]){const {unitID:_0x24a13a,mutations:_0x20bc68,memberID:_0x181977}=_0x4cdcb3,_0x4dfa1d=_0x20bc68[0x0][_0x3e794b(0x494)][_0x3e794b(0x424)];Array[_0x3e794b(0x4eb)](_0x4dfa1d)&&_0x4dfa1d[_0x3e794b(0x598)]>0x0&&((_0x44e980=(_0x27b3c6=this['_handler'])[_0x3e794b(0x4a0)])==null||_0x44e980['call'](_0x27b3c6,{'unitID':_0x24a13a,'memberID':_0x181977,'textRanges':_0x4dfa1d}));}}[_0x2fd58b(0x304)](){const _0x36bafd=_0x2fd58b;this['_localCacheService'][_0x36bafd(0x30d)](this[_0x36bafd(0x440)],this[_0x36bafd(0x5bd)],this[_0x36bafd(0x279)],this[_0x36bafd(0x52e)]);}['_getCurrentRevision'](){const _0x50cfc6=_0x2fd58b;return this[_0x50cfc6(0x4e9)][_0x50cfc6(0x40e)](this[_0x50cfc6(0x440)]);}['_incrementRevisionNumber'](){const _0x4b9a3f=_0x2fd58b;this[_0x4b9a3f(0x4e9)][_0x4b9a3f(0x27e)](this[_0x4b9a3f(0x440)]);}['_executeRemoteChangeset'](_0x561d5d){const _0x59c1fe=_0x2fd58b;var _0x20930f;const _0x103929=this[_0x59c1fe(0x3c9)](_0x561d5d),_0x2db984=a[_0x59c1fe(0x459)](_0x103929[_0x59c1fe(0x3e7)],this[_0x59c1fe(0x502)],{'fromCollab':!0x0});if(!_0x2db984[_0x59c1fe(0x2fd)])throw _0x2db984[_0x59c1fe(0x359)]instanceof Error?_0x2db984[_0x59c1fe(0x359)]:new Error((_0x20930f=_0x2db984[_0x59c1fe(0x359)])!=null?_0x20930f:_0x59c1fe(0x46c));this['_transformIMECache'](_0x103929),this['_transformUndoredo'](_0x561d5d),this[_0x59c1fe(0x54c)](_0x103929),this[_0x59c1fe(0x27b)](_0x103929),this[_0x59c1fe(0x3b1)]();}}let ie=class extends Z{constructor(_0x53178c,_0x1bfc0b,_0x2fd5f6,_0x3fd4bd,_0x59b24c,_0x31e5d4,_0x51c015,_0x5d35d,_0x2ee924,_0x5934e9){const _0x5ebbad=_0x2fd58b;super(_0x53178c,_0x1bfc0b,null,[],_0x2fd5f6,_0x5d35d,_0x51c015,_0x3fd4bd,_0x59b24c),u(this,_0x5ebbad(0x2f9),'synced'),(this['_injector']=_0x31e5d4,this[_0x5ebbad(0x3b8)]=_0x2ee924,this[_0x5ebbad(0x263)]=_0x5934e9);}[_0x2fd58b(0x3be)](_0x34c7f9){const _0x17ef5a=_0x2fd58b,_0x955341=this[_0x17ef5a(0x227)][_0x17ef5a(0x307)](k,this[_0x17ef5a(0x440)],this[_0x17ef5a(0x5bd)],[_0x34c7f9],this['_handler']);return _0x955341[_0x17ef5a(0x338)](),_0x955341['_updateLocalCache'](),_0x955341;}[_0x2fd58b(0x1f9)](_0x237e29){const _0x4d7e9e=_0x2fd58b;if(this[_0x4d7e9e(0x23a)](_0x237e29))return this[_0x4d7e9e(0x227)][_0x4d7e9e(0x307)](x,this[_0x4d7e9e(0x440)],this['type'],null,[],null,[_0x237e29],this['_handler']);try{const _0xf30303=this['_transformService'][_0x4d7e9e(0x42f)](_0x237e29,[Fs]);if(_[_0x4d7e9e(0x3f9)](_0xf30303)){const {c1Prime:_0x9f690a}=_0xf30303;return this[_0x4d7e9e(0x5a5)](_0x9f690a),this;}throw _0xf30303[_0x4d7e9e(0x359)];}catch(_0x28a79a){return this['_logService'][_0x4d7e9e(0x359)](_0x28a79a),this[_0x4d7e9e(0x37e)](!0x1);}}[_0x2fd58b(0x37e)](_0x3c9d51){const _0x2ec588=_0x2fd58b;return this[_0x2ec588(0x227)][_0x2ec588(0x307)](G,this[_0x2ec588(0x440)],this[_0x2ec588(0x5bd)],null,[],this[_0x2ec588(0x3ea)],_0x3c9d51);}['onRemoteAck'](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x2fd58b(0x5b8)](){const _0x1784b4=_0x2fd58b;throw new Error(_0x1784b4(0x466));}[_0x2fd58b(0x298)](){const _0x43cf26=_0x2fd58b;return this[_0x43cf26(0x227)][_0x43cf26(0x307)](Y,this[_0x43cf26(0x440)],this['type'],null,[],this['_handler']);}[_0x2fd58b(0x506)](){return this;}[_0x2fd58b(0x3af)](){const _0x435c2=_0x2fd58b;throw new Error(_0x435c2(0x423));}[_0x2fd58b(0x5ac)](){const _0x55e998=_0x2fd58b,_0x3eafe3=this[_0x55e998(0x4e9)]['getCurrentRevOfUnit'](this[_0x55e998(0x440)]);return this[_0x55e998(0x3ea)][_0x55e998(0x504)]({'from':_0x3eafe3,'to':0x0}),this[_0x55e998(0x227)][_0x55e998(0x307)](x,this[_0x55e998(0x440)],this[_0x55e998(0x5bd)],null,[],null,[],this[_0x55e998(0x3ea)]);}};ie=J([m(0x3,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x533)])),m(0x4,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),m(0x5,a['Inject'](a[_0x2fd58b(0x581)])),m(0x6,a[_0x2fd58b(0x319)]),m(0x7,a['ICommandService']),m(0x8,a[_0x2fd58b(0x286)]),m(0x9,_[_0x2fd58b(0x259)])],ie);let k=class extends Z{constructor(_0x3ffbd6,_0x529f3d,_0x1cfef4,_0x3f0682,_0x5a842e,_0x1c3e9c,_0x24459a,_0x10812c,_0x1cd2d4,_0x286039,_0x3ec4c1,_0x17c893,_0x1dfe0e,_0x47045d){const _0x1bf570=_0x2fd58b;super(_0x3ffbd6,_0x529f3d,null,_0x1cfef4,_0x3f0682,_0x286039,_0x47045d,_0x1c3e9c,_0x24459a),u(this,_0x1bf570(0x2f9),_0x1bf570(0x267)),u(this,_0x1bf570(0x576),null),u(this,_0x1bf570(0x556),null),(this['_injector']=_0x5a842e,this[_0x1bf570(0x444)]=_0x10812c,this[_0x1bf570(0x3b8)]=_0x1cd2d4,this[_0x1bf570(0x41e)]=_0x3ec4c1,this[_0x1bf570(0x263)]=_0x17c893,this[_0x1bf570(0x248)]=_0x1dfe0e);}[_0x2fd58b(0x3be)](_0x29e3e4){const _0x971f60=_0x2fd58b;return this[_0x971f60(0x52e)][_0x971f60(0x4a2)](_0x29e3e4),this[_0x971f60(0x304)](),this;}[_0x2fd58b(0x1f9)](_0x1172f9){const _0x4d1b7b=_0x2fd58b;if(this[_0x4d1b7b(0x23a)](_0x1172f9))return this[_0x4d1b7b(0x26d)](),this[_0x4d1b7b(0x227)][_0x4d1b7b(0x307)](x,this[_0x4d1b7b(0x440)],this[_0x4d1b7b(0x5bd)],null,this[_0x4d1b7b(0x52e)],null,[_0x1172f9],this['_handler']);try{const _0x158d70=this[_0x4d1b7b(0x263)]['transformMutationsWithChangeset'](_0x1172f9,this[_0x4d1b7b(0x52e)]);if(_['isTransformMutationsWithChangesetSuccess'](_0x158d70)){const {c1Prime:_0x4505c1,m2Prime:_0x36d601}=_0x158d70;this[_0x4d1b7b(0x5a5)](_0x4505c1);const _0x76059c=this['_injector'][_0x4d1b7b(0x307)](k,this[_0x4d1b7b(0x440)],this[_0x4d1b7b(0x5bd)],_0x36d601,this['_handler']);return this[_0x4d1b7b(0x26d)](),_0x76059c[_0x4d1b7b(0x338)](this[_0x4d1b7b(0x576)]?Math[_0x4d1b7b(0x48f)](0x0,new Date()[_0x4d1b7b(0x34f)]()-this[_0x4d1b7b(0x576)]):this[_0x4d1b7b(0x3e1)]()),_0x76059c;}throw _0x158d70[_0x4d1b7b(0x359)];}catch(_0x2bb41f){return this[_0x4d1b7b(0x3b8)]['error'](_0x2bb41f),this[_0x4d1b7b(0x37e)](!0x1);}}[_0x2fd58b(0x604)](){const _0x4dbe15=_0x2fd58b;throw new Error(_0x4dbe15(0x274));}[_0x2fd58b(0x5b8)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2fd58b(0x298)](){const _0x12309e=_0x2fd58b;return this[_0x12309e(0x26d)](),this['_injector']['createInstance'](Y,this[_0x12309e(0x440)],this[_0x12309e(0x5bd)],null,this[_0x12309e(0x52e)],this[_0x12309e(0x3ea)]);}[_0x2fd58b(0x506)](){return this;}[_0x2fd58b(0x338)](_0x272f5c){const _0x17684e=_0x2fd58b,_0x2dfdef=_0x272f5c!=null?_0x272f5c:this[_0x17684e(0x3e1)]();this[_0x17684e(0x576)]=new Date()[_0x17684e(0x34f)](),this['_sendingTimer']=window[_0x17684e(0x22e)](()=>{const _0x29e012=_0x17684e;this[_0x29e012(0x26d)]();let _0x27d57f=null;switch(this[_0x29e012(0x5bd)]){case $[_0x29e012(0x29b)]:{_0x27d57f=at(this['_pendingMutations'],this[_0x29e012(0x440)],this[_0x29e012(0x248)],this[_0x29e012(0x4e9)],this[_0x29e012(0x444)]);break;}case $['UNIVER_DOC']:{this[_0x29e012(0x52e)][_0x29e012(0x3cb)](_0x3c9197=>_0x3c9197['id']===W[_0x29e012(0x340)]['id'])?_0x27d57f=Ws(this[_0x29e012(0x52e)],this[_0x29e012(0x440)],this[_0x29e012(0x248)],this['_revisionService'],this[_0x29e012(0x444)]):_0x27d57f=at(this[_0x29e012(0x52e)],this['unitID'],this['_univerInstanceService'],this[_0x29e012(0x4e9)],this[_0x29e012(0x444)]);break;}default:throw new Error(_0x29e012(0x29c)+this[_0x29e012(0x5bd)]+'\x20in\x20_schedule.');}const {changeset:_0x5e5304,pendingMutations:_0x1e9689}=_0x27d57f;this[_0x29e012(0x3ea)]['onSendChangeset'](_0x5e5304);const _0x316a09=_0x1e9689['length']?this['_injector'][_0x29e012(0x307)](B,this['unitID'],this['type'],_0x5e5304,_0x1e9689,this[_0x29e012(0x3ea)]):this['_injector']['createInstance'](F,this[_0x29e012(0x440)],this['type'],_0x5e5304,this[_0x29e012(0x3ea)]);_0x316a09[_0x29e012(0x304)](),this['_handler'][_0x29e012(0x244)](this,_0x316a09);},_0x2dfdef);}[_0x2fd58b(0x3e1)](){const _0x43f32b=_0x2fd58b;var _0x20b4f5;const _0x9f3ee8=this[_0x43f32b(0x41e)]['getConfig'](L);return(_0x20b4f5=_0x9f3ee8==null?void 0x0:_0x9f3ee8[_0x43f32b(0x51a)])!=null?_0x20b4f5:Jt;}[_0x2fd58b(0x3af)](){const _0x10d8c0=_0x2fd58b;throw new Error(_0x10d8c0(0x5dc));}[_0x2fd58b(0x26d)](){const _0x4e760c=_0x2fd58b;this[_0x4e760c(0x556)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x4e760c(0x556)]=null);}[_0x2fd58b(0x37e)](_0x23896e){const _0x4d1686=_0x2fd58b;return this['_clearScheduledTask'](),this[_0x4d1686(0x227)][_0x4d1686(0x307)](G,this[_0x4d1686(0x440)],this[_0x4d1686(0x5bd)],null,this[_0x4d1686(0x52e)],this[_0x4d1686(0x3ea)],_0x23896e);}};k=J([m(0x4,a[_0x2fd58b(0x2c2)](a['Injector'])),m(0x5,a[_0x2fd58b(0x2c2)](_['RevisionService'])),m(0x6,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),m(0x7,a[_0x2fd58b(0x2c2)](z)),m(0x8,a['ILogService']),m(0x9,a[_0x2fd58b(0x4b6)]),m(0xa,a[_0x2fd58b(0x5bf)]),m(0xb,_[_0x2fd58b(0x259)]),m(0xc,a[_0x2fd58b(0x387)]),m(0xd,a[_0x2fd58b(0x319)])],k);let F=class extends Z{constructor(_0x238110,_0x504bf2,_0x14c614,_0x515b30,_0x16c6cf,_0x49c08b,_0x4e2e8e,_0x1a0fc9,_0x1c2982,_0x246092,_0x16cc0d){const _0xcb94b9=_0x2fd58b;super(_0x238110,_0x504bf2,_0x14c614,[],_0x515b30,_0x1a0fc9,_0x16cc0d,_0x49c08b,_0x4e2e8e),u(this,_0xcb94b9(0x2f9),_0xcb94b9(0x377)),(this[_0xcb94b9(0x227)]=_0x16c6cf,this[_0xcb94b9(0x3b8)]=_0x1c2982,this[_0xcb94b9(0x263)]=_0x246092);}[_0x2fd58b(0x3be)](_0x55c74a){const _0xf29603=_0x2fd58b,_0x16a198=this[_0xf29603(0x227)][_0xf29603(0x307)](B,this[_0xf29603(0x440)],this[_0xf29603(0x5bd)],this['_awaitingChangeset'],[_0x55c74a],this['_handler']);return _0x16a198[_0xf29603(0x304)](),_0x16a198;}['onRemoteChangeset'](_0x3470eb){const _0x2ae4d1=_0x2fd58b;if(this['_checkMissing'](_0x3470eb))return this[_0x2ae4d1(0x227)]['createInstance'](x,this[_0x2ae4d1(0x440)],this['type'],this[_0x2ae4d1(0x279)],[],null,[_0x3470eb],this[_0x2ae4d1(0x3ea)]);try{const _0x1aece7=this['_transformService']['transformChangesets']([_0x3470eb],[this[_0x2ae4d1(0x279)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x1aece7)){const {c1Prime:_0x587850,c2Prime:_0x2cb450}=_0x1aece7;this['_executeRemoteChangeset'](_0x587850[0x0]),_0x2cb450[0x0][_0x2ae4d1(0x3dd)]=this[_0x2ae4d1(0x47e)]();const _0x544ede=this[_0x2ae4d1(0x227)]['createInstance'](F,this[_0x2ae4d1(0x440)],this[_0x2ae4d1(0x5bd)],_0x2cb450[0x0],this['_handler']);return _0x544ede['_updateLocalCache'](),_0x544ede;}return this[_0x2ae4d1(0x37e)](!0x1);}catch(_0x21c2db){return this['_logService'][_0x2ae4d1(0x359)](_0x21c2db),this['_onConflict'](!0x1);}}[_0x2fd58b(0x604)](_0x2b0f07){const _0x3dbd1c=_0x2fd58b,_0x2a9051=this[_0x3dbd1c(0x4e9)][_0x3dbd1c(0x40e)](this[_0x3dbd1c(0x440)]);if(_0x2b0f07['revision']<_0x2a9051-0x1)return this;if(this[_0x3dbd1c(0x23a)](_0x2b0f07))return this[_0x3dbd1c(0x227)][_0x3dbd1c(0x307)](x,this[_0x3dbd1c(0x440)],this['type'],null,[],this[_0x3dbd1c(0x279)],[],this[_0x3dbd1c(0x3ea)]);this[_0x3dbd1c(0x3b1)]();const _0x432be4=this[_0x3dbd1c(0x227)]['createInstance'](ie,this[_0x3dbd1c(0x440)],this[_0x3dbd1c(0x5bd)],this['_handler']);return _0x432be4['_updateLocalCache'](),_0x432be4;}[_0x2fd58b(0x5b8)](_0x3d40c7){const _0x516b44=_0x2fd58b;return this[_0x516b44(0x37e)](!!(_0x3d40c7!=null&&_0x3d40c7['isPermissionRej']));}[_0x2fd58b(0x298)](){const _0x27c65f=_0x2fd58b;return this[_0x27c65f(0x227)]['createInstance'](Y,this[_0x27c65f(0x440)],this[_0x27c65f(0x5bd)],this[_0x27c65f(0x279)],[],this[_0x27c65f(0x3ea)]);}[_0x2fd58b(0x506)](){return this;}[_0x2fd58b(0x3af)](){const _0x225c64=_0x2fd58b;this[_0x225c64(0x3ea)][_0x225c64(0x2ac)](this['_awaitingChangeset']);}[_0x2fd58b(0x37e)](_0x4fe721){const _0x33691a=_0x2fd58b;return this['_injector'][_0x33691a(0x307)](G,this[_0x33691a(0x440)],this[_0x33691a(0x5bd)],this[_0x33691a(0x279)],[],this[_0x33691a(0x3ea)],_0x4fe721);}};F=J([m(0x4,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),m(0x5,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x533)])),m(0x6,a[_0x2fd58b(0x2c2)](exports['LocalCacheService'])),m(0x7,a[_0x2fd58b(0x4b6)]),m(0x8,a['ILogService']),m(0x9,_[_0x2fd58b(0x259)]),m(0xa,a['IUndoRedoService'])],F);let B=class extends Z{constructor(_0x44e965,_0x128b31,_0x687114,_0x483777,_0x3732d8,_0x59dd1d,_0x3ec31e,_0x2b4daa,_0x593535,_0x3b8b8f,_0x415598,_0x597c26){const _0x30760d=_0x2fd58b;super(_0x44e965,_0x128b31,_0x687114,_0x483777,_0x3732d8,_0x593535,_0x597c26,_0x3ec31e,_0x2b4daa),u(this,_0x30760d(0x2f9),'awaiting_with_pending'),(this[_0x30760d(0x227)]=_0x59dd1d,this[_0x30760d(0x3b8)]=_0x3b8b8f,this[_0x30760d(0x263)]=_0x415598);}[_0x2fd58b(0x3be)](_0x2845aa){return this['_pendingMutations']['push'](_0x2845aa),this;}[_0x2fd58b(0x1f9)](_0xd77810){const _0x2c095a=_0x2fd58b;if(this[_0x2c095a(0x23a)](_0xd77810))return this[_0x2c095a(0x227)][_0x2c095a(0x307)](x,this[_0x2c095a(0x440)],this[_0x2c095a(0x5bd)],this[_0x2c095a(0x279)],this['_pendingMutations'],null,[_0xd77810],this[_0x2c095a(0x3ea)]);try{const _0x3f8ca0=this['_transformService'][_0x2c095a(0x509)]([_0xd77810],[this['_awaitingChangeset']],!0x1);if(_[_0x2c095a(0x339)](_0x3f8ca0)){const {c1Prime:_0x2ccb1e,c2Prime:_0x10bd6b}=_0x3f8ca0,_0x5e061c=this[_0x2c095a(0x263)][_0x2c095a(0x42f)](_0x2ccb1e[0x0],this[_0x2c095a(0x52e)]);if(_[_0x2c095a(0x3f9)](_0x5e061c)){const {c1Prime:_0x1bdb1e,m2Prime:_0x46e3b2}=_0x5e061c;return this[_0x2c095a(0x5a5)](_0x1bdb1e),_0x10bd6b[0x0]['baseRev']=this[_0x2c095a(0x47e)](),this[_0x2c095a(0x227)][_0x2c095a(0x307)](B,this[_0x2c095a(0x440)],this[_0x2c095a(0x5bd)],_0x10bd6b[0x0],_0x46e3b2,this[_0x2c095a(0x3ea)]);}throw _0x5e061c[_0x2c095a(0x359)];}throw _0x3f8ca0['error'];}catch(_0x238bc9){return this[_0x2c095a(0x3b8)][_0x2c095a(0x359)](_0x238bc9),this[_0x2c095a(0x37e)](!0x1);}}[_0x2fd58b(0x604)](_0x4b0ecd){const _0x904134=_0x2fd58b;if(this['_checkMissing'](_0x4b0ecd))return this['_injector'][_0x904134(0x307)](x,this['unitID'],this[_0x904134(0x5bd)],null,this['_pendingMutations'],this[_0x904134(0x279)],[],this[_0x904134(0x3ea)]);this[_0x904134(0x3b1)]();const _0x4ed2cd=this[_0x904134(0x227)][_0x904134(0x307)](k,this[_0x904134(0x440)],this[_0x904134(0x5bd)],this[_0x904134(0x52e)],this['_handler']);return _0x4ed2cd['_schedule'](),_0x4ed2cd[_0x904134(0x304)](),_0x4ed2cd;}['onRemoteRej'](_0x10a7f9){const _0x5d25ce=_0x2fd58b;return this[_0x5d25ce(0x37e)](!!(_0x10a7f9!=null&&_0x10a7f9[_0x5d25ce(0x527)]));}[_0x2fd58b(0x298)](){const _0x5bf177=_0x2fd58b;return this[_0x5bf177(0x227)][_0x5bf177(0x307)](Y,this[_0x5bf177(0x440)],this[_0x5bf177(0x5bd)],this['_awaitingChangeset'],this[_0x5bf177(0x52e)],this[_0x5bf177(0x3ea)]);}[_0x2fd58b(0x506)](){return this;}[_0x2fd58b(0x3af)](){const _0x12e0de=_0x2fd58b;this[_0x12e0de(0x3ea)][_0x12e0de(0x2ac)](this[_0x12e0de(0x279)]);}[_0x2fd58b(0x37e)](_0x444bb8){const _0x335c01=_0x2fd58b;return this[_0x335c01(0x227)][_0x335c01(0x307)](G,this[_0x335c01(0x440)],this[_0x335c01(0x5bd)],null,this['_pendingMutations'],this[_0x335c01(0x3ea)],_0x444bb8);}};B=J([m(0x5,a['Inject'](a[_0x2fd58b(0x581)])),m(0x6,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x533)])),m(0x7,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),m(0x8,a[_0x2fd58b(0x4b6)]),m(0x9,a[_0x2fd58b(0x286)]),m(0xa,_[_0x2fd58b(0x259)]),m(0xb,a[_0x2fd58b(0x319)])],B);let G=class extends Z{constructor(_0x32658e,_0x4232ad,_0x3bc1d3,_0x38f060,_0x3e6f53,_0x53d445=!0x1,_0x37ab37,_0x1ce539,_0x2f87ab,_0xf8875c,_0x16ea87,_0x22ba7b,_0x3a4696){const _0x55073f=_0x2fd58b;super(_0x32658e,_0x4232ad,_0x3bc1d3,_0x38f060,_0x3e6f53,_0x1ce539,_0x2f87ab,_0x16ea87,_0xf8875c),u(this,_0x55073f(0x2f9),_0x55073f(0x4d9)),(this[_0x55073f(0x5f2)]=_0x53d445,this[_0x55073f(0x5b3)]=_0x37ab37,this[_0x55073f(0x48a)]=_0x22ba7b,this[_0x55073f(0x3c6)]=_0x3a4696,this['_showConflictNotification'](),this[_0x55073f(0x25e)](),this[_0x55073f(0x4fb)]());}[_0x2fd58b(0x3be)](){return this;}['onRemoteChangeset'](){return this;}[_0x2fd58b(0x604)](){return this;}['onRemoteRej'](){return this;}['toggleOffline'](){return this;}[_0x2fd58b(0x506)](){return this;}[_0x2fd58b(0x3af)](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2fd58b(0x25e)](){const _0x15a8e6=_0x2fd58b;this[_0x15a8e6(0x470)][_0x15a8e6(0x30d)](this['unitID'],this[_0x15a8e6(0x5bd)],null,[]);}['_showConflictNotification'](){const _0x2dd384=_0x2fd58b;this[_0x2dd384(0x5f2)]?this[_0x2dd384(0x3c6)][_0x2dd384(0x232)]({'title':this[_0x2dd384(0x48a)]['t']('permission.title'),'content':this[_0x2dd384(0x48a)]['t']('permission.content'),'type':'error','duration':0x0}):this[_0x2dd384(0x3c6)][_0x2dd384(0x232)]({'title':this[_0x2dd384(0x48a)]['t'](_0x2dd384(0x441)),'content':this[_0x2dd384(0x48a)]['t'](_0x2dd384(0x41a)),'type':_0x2dd384(0x359),'duration':0x0});}[_0x2fd58b(0x4fb)](){const _0x46425d=_0x2fd58b;this['_permissionService']['updatePermissionPoint'](new C[(_0x46425d(0x35e))](this[_0x46425d(0x440)])['id'],!0x1);}};G=J([m(0x6,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x375)])),m(0x7,a[_0x2fd58b(0x4b6)]),m(0x8,a['IUndoRedoService']),m(0x9,a['Inject'](exports[_0x2fd58b(0x208)])),m(0xa,a['Inject'](_[_0x2fd58b(0x533)])),m(0xb,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x57f)])),m(0xc,A['INotificationService'])],G);let Y=class extends Z{constructor(_0x13ec21,_0x51221e,_0x16e317,_0x20db05,_0x433980,_0x4fccd7,_0x50079b,_0x10717f,_0x4d5f03,_0x400946){const _0x47e17f=_0x2fd58b;super(_0x13ec21,_0x51221e,_0x16e317,_0x20db05,_0x433980,_0x4d5f03,_0x400946,_0x50079b,_0x10717f),u(this,_0x47e17f(0x2f9),'offline'),this[_0x47e17f(0x227)]=_0x4fccd7;}[_0x2fd58b(0x3be)](_0xd5014e){const _0x38843d=_0x2fd58b;return this[_0x38843d(0x52e)][_0x38843d(0x4a2)](_0xd5014e),this[_0x38843d(0x304)](),this;}[_0x2fd58b(0x1f9)](_0x2d134a){const _0x166c0b=_0x2fd58b;throw new Error(_0x166c0b(0x4d5));}[_0x2fd58b(0x604)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x2fd58b(0x5b8)](){const _0xe397c6=_0x2fd58b;throw new Error(_0xe397c6(0x281));}['toggleOffline'](){return this;}[_0x2fd58b(0x506)](){const _0x27125e=_0x2fd58b,{_injector:_0x21a36a,_pendingMutations:_0x234c97,_awaitingChangeset:_0x453a2d,unitID:_0x12394c,_handler:_0x4a78e5,type:_0x5c25a1}=this,_0x4346cf=Ut(_0x21a36a,_0x12394c,_0x5c25a1,_0x453a2d,_0x234c97,_0x4a78e5);return _0x4346cf instanceof k?_0x4346cf[_0x27125e(0x338)]():(_0x4346cf instanceof B||_0x4346cf instanceof F)&&_0x4346cf[_0x27125e(0x3af)](),_0x4346cf;}[_0x2fd58b(0x3af)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};Y=J([m(0x5,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),m(0x6,a['Inject'](_['RevisionService'])),m(0x7,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),m(0x8,a[_0x2fd58b(0x4b6)]),m(0x9,a[_0x2fd58b(0x319)])],Y);let x=class extends Z{constructor(_0x2101a7,_0x262354,_0x5583b1,_0x4987b2,_0x1dff61,_0x29489b,_0x134e08,_0x4b20b8,_0x528005,_0x184ca7,_0xc1c848,_0x5273c3,_0x5a2f3b,_0x31acda){const _0x4ad30a=_0x2fd58b;super(_0x2101a7,_0x262354,_0x5583b1,_0x4987b2,_0x134e08,_0x5273c3,_0x5a2f3b,_0x528005,_0x184ca7),u(this,_0x4ad30a(0x2f9),'fetch_missing'),(this[_0x4ad30a(0x3b3)]=_0x1dff61,this[_0x4ad30a(0x242)]=_0x29489b,this['_injector']=_0x4b20b8,this['_logService']=_0xc1c848,this[_0x4ad30a(0x263)]=_0x31acda);}['onMissedChangesetFetched'](_0x7671b4){const _0x52527a=_0x2fd58b;try{const _0x788d3=[..._0x7671b4,...this['_queuedRemoteChangesets']],_0x2414a0=[this['_awaitingChangeset']||this[_0x52527a(0x3b3)]][_0x52527a(0x5ab)](_0x565383=>!!_0x565383);let _0x49a767,_0x28cc9a;if(_0x2414a0['length']){const _0x53a3e5=this[_0x52527a(0x263)][_0x52527a(0x509)](_0x788d3,_0x2414a0,!0x1);if(!_[_0x52527a(0x339)](_0x53a3e5))throw _0x53a3e5[_0x52527a(0x359)];_0x49a767=_0x53a3e5[_0x52527a(0x40d)],_0x28cc9a=_0x53a3e5['c2Prime'];}else _0x49a767=_0x788d3,_0x28cc9a=[];let _0x282168=this['_pendingMutations'];_0x49a767['forEach'](_0x298a49=>{const _0x282cf4=_0x52527a;let _0x2030ba;if(_0x282168[_0x282cf4(0x598)]){const _0x47b915=this[_0x282cf4(0x263)][_0x282cf4(0x42f)](_0x298a49,_0x282168);if(!_[_0x282cf4(0x3f9)](_0x47b915))throw _0x47b915['error'];_0x2030ba=_0x47b915[_0x282cf4(0x40d)],_0x282168=_0x47b915[_0x282cf4(0x43c)];}else _0x2030ba=_0x298a49;this[_0x282cf4(0x5a5)](_0x2030ba);}),this[_0x52527a(0x3b3)]&&this[_0x52527a(0x3b1)](),this[_0x52527a(0x279)]&&_0x28cc9a[_0x52527a(0x598)]&&(_0x28cc9a[0x0]['baseRev']=this[_0x52527a(0x47e)]());let _0x3f069d;if(this[_0x52527a(0x279)]&&_0x282168['length']!==0x0)_0x3f069d=this['_injector'][_0x52527a(0x307)](B,this[_0x52527a(0x440)],this['type'],_0x28cc9a[0x0],_0x282168,this[_0x52527a(0x3ea)]);else{if(this[_0x52527a(0x279)]&&_0x282168[_0x52527a(0x598)]===0x0)_0x28cc9a[0x0][_0x52527a(0x3dd)]=this[_0x52527a(0x47e)](),_0x3f069d=this[_0x52527a(0x227)][_0x52527a(0x307)](F,this['unitID'],this[_0x52527a(0x5bd)],_0x28cc9a[0x0],this[_0x52527a(0x3ea)]);else{if(_0x282168['length']!==0x0){const _0xe48db6=this[_0x52527a(0x227)][_0x52527a(0x307)](k,this[_0x52527a(0x440)],this[_0x52527a(0x5bd)],_0x282168,this[_0x52527a(0x3ea)]);_0xe48db6[_0x52527a(0x338)](),_0x3f069d=_0xe48db6;}else _0x3f069d=this[_0x52527a(0x227)][_0x52527a(0x307)](ie,this[_0x52527a(0x440)],this[_0x52527a(0x5bd)],this[_0x52527a(0x3ea)]);}}return _0x3f069d['_updateLocalCache'](),_0x3f069d;}catch(_0x6d55ba){return this[_0x52527a(0x3b8)][_0x52527a(0x359)](_0x52527a(0x480),_0x52527a(0x5e5),_0x6d55ba),this[_0x52527a(0x227)][_0x52527a(0x307)](G,this['unitID'],this[_0x52527a(0x5bd)],this[_0x52527a(0x279)],this['_pendingMutations'],this[_0x52527a(0x3ea)],!0x1);}}[_0x2fd58b(0x3af)](){const _0xac84ba=_0x2fd58b;throw new Error(_0xac84ba(0x2c0));}[_0x2fd58b(0x3be)](_0x4148c4){return this['_pendingMutations']['push'](_0x4148c4),this;}['onRemoteChangeset'](_0x57c001){const _0x5e82a1=_0x2fd58b;return this[_0x5e82a1(0x242)][_0x5e82a1(0x4a2)](_0x57c001),this;}[_0x2fd58b(0x604)](_0x36e758){const _0x48fc4c=_0x2fd58b;if(this[_0x48fc4c(0x279)])return this[_0x48fc4c(0x3b3)]=this[_0x48fc4c(0x279)],this[_0x48fc4c(0x279)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x2fd58b(0x5b8)](_0x30e6a3){const _0x90b05d=_0x2fd58b;return this[_0x90b05d(0x37e)](!!(_0x30e6a3!=null&&_0x30e6a3[_0x90b05d(0x527)]));}[_0x2fd58b(0x298)](){const _0x8bdda5=_0x2fd58b;return this[_0x8bdda5(0x227)][_0x8bdda5(0x307)](Y,this[_0x8bdda5(0x440)],this[_0x8bdda5(0x5bd)],this[_0x8bdda5(0x279)],this[_0x8bdda5(0x52e)],this[_0x8bdda5(0x3ea)]);}['toggleOnline'](){return this;}[_0x2fd58b(0x37e)](_0x3a03c8){const _0x37d559=_0x2fd58b;return this[_0x37d559(0x227)][_0x37d559(0x307)](G,this[_0x37d559(0x440)],this['type'],this[_0x37d559(0x279)],this['_pendingMutations'],this[_0x37d559(0x3ea)],_0x3a03c8);}};x=J([m(0x7,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),m(0x8,a['Inject'](_[_0x2fd58b(0x533)])),m(0x9,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),m(0xa,a[_0x2fd58b(0x286)]),m(0xb,a[_0x2fd58b(0x4b6)]),m(0xc,a['IUndoRedoService']),m(0xd,_[_0x2fd58b(0x259)])],x);function Ut(_0x479bec,_0x33b1ea,_0x2afda5,_0x2c1527,_0x3efd99,_0x41d5d1){const _0x5c0930=_0x2fd58b;return _0x2c1527&&_0x3efd99[_0x5c0930(0x598)]?_0x479bec[_0x5c0930(0x307)](B,_0x33b1ea,_0x2afda5,_0x2c1527,_0x3efd99,_0x41d5d1):_0x2c1527?_0x479bec[_0x5c0930(0x307)](F,_0x33b1ea,_0x2afda5,_0x2c1527,_0x41d5d1):_0x3efd99[_0x5c0930(0x598)]?_0x479bec[_0x5c0930(0x307)](k,_0x33b1ea,_0x2afda5,_0x3efd99,_0x41d5d1):_0x479bec[_0x5c0930(0x307)](ie,_0x33b1ea,_0x2afda5,_0x41d5d1);}var Ks=Object[_0x2fd58b(0x38e)],Xs=Object['getOwnPropertyDescriptor'],ze=(_0x5cdf95,_0x1bd200,_0x42e0a9,_0x22c19e)=>{const _0x46b6bf=_0x2fd58b;for(var _0x4e75dc=_0x22c19e>0x1?void 0x0:_0x22c19e?Xs(_0x1bd200,_0x42e0a9):_0x1bd200,_0x12a66e=_0x5cdf95[_0x46b6bf(0x598)]-0x1,_0x39b52b;_0x12a66e>=0x0;_0x12a66e--)(_0x39b52b=_0x5cdf95[_0x12a66e])&&(_0x4e75dc=(_0x22c19e?_0x39b52b(_0x1bd200,_0x42e0a9,_0x4e75dc):_0x39b52b(_0x4e75dc))||_0x4e75dc);return _0x22c19e&&_0x4e75dc&&Ks(_0x1bd200,_0x42e0a9,_0x4e75dc),_0x4e75dc;},I=(_0xffdd39,_0x59996e)=>(_0x413254,_0x121baa)=>_0x59996e(_0x413254,_0x121baa,_0xffdd39);exports[_0x2fd58b(0x2bd)]=class extends a['RxDisposable']{constructor(_0x2daee3,_0xed5da9,_0x57a1c8,_0x4a86b0,_0x3c80d4,_0x17a6f3,_0x3a2d14,_0x294ed4,_0x47810a,_0x43c03d,_0x5eb0e2,_0xd1267e,_0x17bc20){const _0x5b74e9=_0x2fd58b;super(),u(this,_0x5b74e9(0x303),new v[(_0x5b74e9(0x50e))](null)),u(this,_0x5b74e9(0x383),this['_state$'][_0x5b74e9(0x4b9)]()),u(this,_0x5b74e9(0x58d)),u(this,_0x5b74e9(0x58c),!0x1),u(this,_0x5b74e9(0x237),''),u(this,_0x5b74e9(0x44f),0x0),u(this,_0x5b74e9(0x5fa),this[_0x5b74e9(0x383)]['pipe'](v[_0x5b74e9(0x3b0)](_0x56a6f1=>_0x56a6f1?_0x56a6f1[_0x5b74e9(0x2f9)]:U['OFFLINE']),v[_0x5b74e9(0x313)](0x1))),u(this,_0x5b74e9(0x3d1),!0x1),u(this,'_remoteChangesetQueue',[]),(this[_0x5b74e9(0x440)]=_0x2daee3,this[_0x5b74e9(0x437)]=_0xed5da9,this[_0x5b74e9(0x52f)]=_0x57a1c8,this[_0x5b74e9(0x227)]=_0x4a86b0,this['_localCacheService']=_0x3c80d4,this[_0x5b74e9(0x318)]=_0x17a6f3,this['_localeService']=_0x3a2d14,this['_revisionService']=_0x294ed4,this[_0x5b74e9(0x3b8)]=_0x47810a,this[_0x5b74e9(0x502)]=_0x43c03d,this['_messageService']=_0x5eb0e2,this['_permissionService']=_0xd1267e,this[_0x5b74e9(0x3e9)]=_0x17bc20);}get[_0x2fd58b(0x33d)](){const _0x422d74=_0x2fd58b;return this[_0x422d74(0x58d)];}async[_0x2fd58b(0x4e8)](){const _0x27546c=_0x2fd58b;if(this[_0x27546c(0x33d)])throw new Error(_0x27546c(0x3bf));await this[_0x27546c(0x2fa)]();}['pauseCollaboration'](){const _0x15b0bb=_0x2fd58b;return this[_0x15b0bb(0x58c)]=!0x0,a['toDisposable'](()=>{this['_collaborationPaused']=!0x1,this['_exhaustRemoteChangesetQueue']();});}['_updateState'](_0x2d6748){const _0x4e5543=_0x2fd58b;this[_0x4e5543(0x58d)]=_0x2d6748,this['_state$'][_0x4e5543(0x46b)](_0x2d6748);}async['_init'](){const _0x5d3ee1=_0x2fd58b;var _0x1a1ce2;this['_updateState'](await this[_0x5d3ee1(0x43e)]()),this[_0x5d3ee1(0x3e9)]&&((_0x1a1ce2=this['_singleActiveUnitService'])==null||_0x1a1ce2[_0x5d3ee1(0x23b)](this[_0x5d3ee1(0x440)]),this['disposeWithMe'](this['_singleActiveUnitService']['getUnitStatus$'](this[_0x5d3ee1(0x440)])[_0x5d3ee1(0x384)](_0x4c74e1=>{const _0x313db7=_0x5d3ee1;this['_logService'][_0x313db7(0x513)](_0x313db7(0x4cc),'editing\x20status\x20changed\x20to',_0x4c74e1),_0x4c74e1===Dt[_0x313db7(0x2e1)]?(this['_messageService']['show']({'content':this[_0x313db7(0x48a)]['t']('collaboration.single-unit.warning'),'type':q[_0x313db7(0x395)][_0x313db7(0x3b9)]}),this[_0x313db7(0x5b3)][_0x313db7(0x2c9)](new C[(_0x313db7(0x35e))](this[_0x313db7(0x440)])['id'],!0x1)):this[_0x313db7(0x5b3)][_0x313db7(0x2c9)](new C[(_0x313db7(0x35e))](this[_0x313db7(0x440)])['id'],!0x0);})));let _0xaee3ee=!0x1;return this[_0x5d3ee1(0x4de)](this[_0x5d3ee1(0x437)]['sessionStatus$']['subscribe'](_0x47343b=>{const _0x55a1a5=_0x5d3ee1;_0x47343b===H[_0x55a1a5(0x572)]?this[_0x55a1a5(0x363)](_0xaee3ee):_0x47343b===H[_0x55a1a5(0x4fe)]&&(_0xaee3ee=!0x0,this[_0x55a1a5(0x521)]());})),this[_0x5d3ee1(0x4de)](this[_0x5d3ee1(0x437)][_0x5d3ee1(0x2ce)][_0x5d3ee1(0x384)](_0x2a75fb=>{const _0x3cac64=_0x5d3ee1;try{switch(_0x2a75fb[_0x3cac64(0x55f)]){case _[_0x3cac64(0x2ca)][_0x3cac64(0x405)]:{this[_0x3cac64(0x4ed)](_['parseProtocolChangeset'](_0x2a75fb['data']));break;}case _[_0x3cac64(0x2ca)][_0x3cac64(0x460)]:{this[_0x3cac64(0x602)](_0x2a75fb[_0x3cac64(0x316)]);break;}case _[_0x3cac64(0x2ca)][_0x3cac64(0x2f3)]:{this['_onRemoteRejected']();break;}case _['CollaborationEvent'][_0x3cac64(0x35c)]:{this[_0x3cac64(0x2cf)](_0x2a75fb[_0x3cac64(0x316)][_0x3cac64(0x40a)][_0x3cac64(0x3b0)](_0x512b44=>_['parseProtocolChangeset'](_0x512b44)));break;}case _[_0x3cac64(0x2ca)][_0x3cac64(0x403)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x1e2140){throw console['error']('Error\x20on\x20receiving\x20event',_0x1e2140),_0x1e2140;}})),this[_0x5d3ee1(0x58d)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x2fd58b(0x1f5)](){const _0x2e416c=_0x2fd58b;if(this[_0x2e416c(0x3d1)])throw new Error(_0x2e416c(0x3fb));this[_0x2e416c(0x3d1)]=!0x0;}[_0x2fd58b(0x412)](_0xb588bd){const _0x91278f=_0x2fd58b;this[_0x91278f(0x1f5)](),this[_0x91278f(0x28a)](this[_0x91278f(0x58d)][_0x91278f(0x3be)](_0xb588bd)),this[_0x91278f(0x325)]();}[_0x2fd58b(0x4ed)](_0x167305){const _0x3ea9cb=_0x2fd58b;if(!(_0x167305['revision']<=this[_0x3ea9cb(0x4e9)]['getCurrentRevOfUnit'](this[_0x3ea9cb(0x440)]))){if(this[_0x3ea9cb(0x58c)]){this[_0x3ea9cb(0x389)][_0x3ea9cb(0x4a2)](_0x167305);return;}this[_0x3ea9cb(0x361)](_0x167305);}}['_exhaustRemoteChangesetQueue'](){const _0x49bebb=_0x2fd58b;this['_remoteChangesetQueue']['forEach'](_0x53d4c2=>this[_0x49bebb(0x361)](_0x53d4c2)),this[_0x49bebb(0x389)]=[];}['_applyRemoteChangeset'](_0x554f8d){const _0x148cc5=_0x2fd58b,_0x27a525=this[_0x148cc5(0x318)][_0x148cc5(0x606)][_0x148cc5(0x362)](this['_compressMutationService'][_0x148cc5(0x606)]['getInterceptPoints']()[_0x148cc5(0x486)])(_0x554f8d['mutations'],null)||_0x554f8d[_0x148cc5(0x3e7)],_0x13f0fe={..._0x554f8d,'mutations':_0x27a525};this[_0x148cc5(0x1f5)](),this[_0x148cc5(0x28a)](this[_0x148cc5(0x58d)][_0x148cc5(0x1f9)](_0x13f0fe)),this[_0x148cc5(0x325)]();}[_0x2fd58b(0x602)](_0x3cf5b0){const _0x373536=_0x2fd58b;this['_lockTransition'](),this[_0x373536(0x28a)](this[_0x373536(0x58d)]['onRemoteAck'](_0x3cf5b0)),this[_0x373536(0x325)]();}[_0x2fd58b(0x2d6)](_0x230482){const _0x509cfe=_0x2fd58b;this['_lockTransition'](),this[_0x509cfe(0x28a)](this[_0x509cfe(0x58d)]['onRemoteRej'](_0x230482)),this['_unlockTransition']();}['_onFetchMissResult'](_0x2ac909){const _0x3b2123=_0x2fd58b;if(!(this[_0x3b2123(0x58d)]instanceof x))throw new TypeError(_0x3b2123(0x3a2));const _0x1760ee=_0x2ac909[_0x3b2123(0x3b0)](_0x5e0a0b=>{const _0x4e851f=_0x3b2123,_0x20a2b3=this[_0x4e851f(0x318)][_0x4e851f(0x606)][_0x4e851f(0x362)](this[_0x4e851f(0x318)][_0x4e851f(0x606)][_0x4e851f(0x2f4)]()[_0x4e851f(0x486)])(_0x5e0a0b['mutations'],null)||_0x5e0a0b['mutations'];return{..._0x5e0a0b,'mutations':_0x20a2b3};});this[_0x3b2123(0x1f5)](),this[_0x3b2123(0x28a)](this[_0x3b2123(0x58d)][_0x3b2123(0x5ca)](_0x1760ee)),this[_0x3b2123(0x325)]();}[_0x2fd58b(0x521)](){const _0x522784=_0x2fd58b;this['_lockTransition'](),this[_0x522784(0x28a)](this[_0x522784(0x58d)]['toggleOffline']()),this[_0x522784(0x325)]();}['_toggleOnline'](_0x570191=!0x1){const _0x26200e=_0x2fd58b;this[_0x26200e(0x1f5)](),this[_0x26200e(0x28a)](this[_0x26200e(0x58d)][_0x26200e(0x506)]()),this[_0x26200e(0x325)]();const _0x17bf3a=this['_state'];_0x570191&&_0x17bf3a instanceof ie&&(this[_0x26200e(0x1f5)](),this[_0x26200e(0x28a)](_0x17bf3a['fetchMiss']()),this[_0x26200e(0x325)]());}async[_0x2fd58b(0x43e)](){return new Promise(_0x9b5482=>{const _0x2ebb5c=_0x4bd5;this[_0x2ebb5c(0x437)]['sessionStatus$'][_0x2ebb5c(0x50b)](v['take'](0x1))[_0x2ebb5c(0x384)](async _0x29a1d9=>{const _0x55d57a=_0x2ebb5c;_0x9b5482(await this[_0x55d57a(0x311)](_0x29a1d9===H[_0x55d57a(0x572)]));});});}['_createHandler'](){const _0xe5fbe4=_0x2fd58b,_0x4d945a=this[_0xe5fbe4(0x440)];return{'onStateChange':(_0x52f384,_0x33d25b)=>{const _0x3efc53=_0xe5fbe4;if(_0x52f384!==this[_0x3efc53(0x58d)])throw new Error(_0x3efc53(0x360)+_0x52f384[_0x3efc53(0x2f9)]+_0x3efc53(0x418)+_0x33d25b['status']+_0x3efc53(0x3ad)+this['_state'][_0x3efc53(0x2f9)]);this[_0x3efc53(0x28a)](_0x33d25b);},'onSendChangeset':_0x4dba9b=>{const _0x5a2466=_0xe5fbe4;_0x4dba9b[_0x5a2466(0x2c3)]||(_0x4dba9b['sid']=this[_0x5a2466(0x237)],_0x4dba9b['reqId']=++this['_changesetReqId']);const _0x2df231={'eventID':_['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x4dba9b[_0x5a2466(0x440)],'unitType':this['_type'],'changeset':_0x4dba9b,'memberID':this[_0x5a2466(0x437)][_0x5a2466(0x5d8)]()}};this[_0x5a2466(0x437)][_0x5a2466(0x373)](_0x2df231,this['unitID']);},'onMissingChangesets':({from:_0x3850d9,to:_0x247da3})=>{const _0x1aef04=_0xe5fbe4;this[_0x1aef04(0x3b8)]['debug'](_0x1aef04(0x4cc),_0x1aef04(0x334)+_0x3850d9+_0x1aef04(0x579)+_0x247da3);const _0x60c60c={'eventID':_[_0x1aef04(0x2ca)][_0x1aef04(0x324)],'data':{'unitID':_0x4d945a,'unitType':this[_0x1aef04(0x52f)],'from':_0x3850d9,'to':_0x247da3}};this[_0x1aef04(0x437)][_0x1aef04(0x373)](_0x60c60c,this[_0x1aef04(0x440)]);}};}async['_createInitialStateImpl'](_0x4fb2d1){const _0x1e03fc=_0x2fd58b;var _0x538338,_0x592a54;const _0x4123cf=await this[_0x1e03fc(0x470)][_0x1e03fc(0x3e2)](this[_0x1e03fc(0x440)]),_0x565cbe=(_0x538338=_0x4123cf==null?void 0x0:_0x4123cf[_0x1e03fc(0x3e7)])!=null?_0x538338:[],_0x746c12=(_0x592a54=_0x4123cf==null?void 0x0:_0x4123cf[_0x1e03fc(0x3ae)])!=null?_0x592a54:null,_0x1a8d2d=!!(_0x746c12!=null&&_0x746c12[_0x1e03fc(0x2c3)])&&!!(_0x746c12!=null&&_0x746c12[_0x1e03fc(0x4d1)]);this[_0x1e03fc(0x237)]=_0x1a8d2d?_0x746c12[_0x1e03fc(0x2c3)]:Os(),this[_0x1e03fc(0x44f)]=_0x1a8d2d?_0x746c12[_0x1e03fc(0x4d1)]:0x0;const _0x30c230=this[_0x1e03fc(0x440)];try{this[_0x1e03fc(0x5f3)](_0x746c12,_0x565cbe);}catch(_0x2098c3){this[_0x1e03fc(0x3b8)][_0x1e03fc(0x359)](_0x2098c3);}const _0x20d9e7=this['_createHandler']();if(_0x4fb2d1){const _0x53ce89=Ut(this[_0x1e03fc(0x227)],_0x30c230,this[_0x1e03fc(0x52f)],_0x746c12,_0x565cbe,_0x20d9e7);return _0x53ce89 instanceof k?_0x53ce89[_0x1e03fc(0x338)]():(_0x53ce89 instanceof B||_0x53ce89 instanceof F)&&_0x53ce89[_0x1e03fc(0x3af)](),_0x53ce89;}return this['_injector'][_0x1e03fc(0x307)](Y,_0x30c230,this[_0x1e03fc(0x52f)],_0x746c12,_0x565cbe,_0x20d9e7);}[_0x2fd58b(0x5f3)](_0x564f94,_0x505f14){const _0x1510c7=_0x2fd58b;var _0x2dea5f,_0x2bb034;const _0x1a4f4d=this[_0x1510c7(0x318)]['interceptor'][_0x1510c7(0x362)](this['_compressMutationService'][_0x1510c7(0x606)][_0x1510c7(0x2f4)]()[_0x1510c7(0x486)]);(_0x2dea5f=_0x1a4f4d((_0x564f94==null?void 0x0:_0x564f94[_0x1510c7(0x3e7)])||[],null))==null||_0x2dea5f[_0x1510c7(0x2df)](_0x342759=>this['_commandService'][_0x1510c7(0x3a4)](_0x342759['id'],_0x342759[_0x1510c7(0x494)])),(_0x2bb034=_0x1a4f4d(_0x505f14||[],null))==null||_0x2bb034[_0x1510c7(0x2df)](_0x33fe3f=>this[_0x1510c7(0x502)][_0x1510c7(0x3a4)](_0x33fe3f['id'],_0x33fe3f[_0x1510c7(0x494)]));}},exports[_0x2fd58b(0x2bd)]=ze([I(0x3,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),I(0x4,a['Inject'](exports[_0x2fd58b(0x208)])),I(0x5,a[_0x2fd58b(0x2c2)](_['CompressMutationService'])),I(0x6,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x57f)])),I(0x7,a['Inject'](_[_0x2fd58b(0x533)])),I(0x8,a['ILogService']),I(0x9,a['ICommandService']),I(0xa,A['IMessageService']),I(0xb,a[_0x2fd58b(0x375)]),I(0xc,a[_0x2fd58b(0x278)](Re))],exports[_0x2fd58b(0x2bd)]),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x463b15,_0x549275,_0x1fe1c3,_0x1b0a16,_0x33c7fd,_0x128a16,_0x24a293,_0xea5d10,_0x2b8f57,_0x2452ec,_0x484175,_0x1419a6,_0x9bc99f,_0x225d4e,_0x5041ac,_0x344e21,_0x5aa5bc){const _0x38be87=_0x2fd58b;super(_0x463b15,_0x1fe1c3,_0x549275,_0x1b0a16,_0x33c7fd,_0x128a16,_0x24a293,_0xea5d10,_0x9bc99f,_0x225d4e,_0x5041ac,_0x344e21,_0x5aa5bc),this[_0x38be87(0x440)]=_0x463b15,this['type']=_0x549275,this['_docStateChangeManagerService']=_0x2b8f57,this['_docTransformIMECacheService']=_0x2452ec,this[_0x38be87(0x39e)]=_0x484175,this[_0x38be87(0x601)]=_0x1419a6;}[_0x2fd58b(0x4d7)](){const _0x45b2fc=_0x2fd58b,_0x2663d5=super[_0x45b2fc(0x4d7)]();return _0x2663d5[_0x45b2fc(0x46f)]=_0x392075=>this[_0x45b2fc(0x33e)][_0x45b2fc(0x1f0)](_0x392075),_0x2663d5[_0x45b2fc(0x3e0)]=_0x1e2d29=>this['_docTransformSelectionsService'][_0x45b2fc(0x592)](_0x1e2d29),_0x2663d5['onSyncEditingCollabCursor']=_0x54855f=>this[_0x45b2fc(0x601)][_0x45b2fc(0x5fb)](_0x54855f),_0x2663d5[_0x45b2fc(0x36b)]=_0x390859=>this[_0x45b2fc(0x33e)]['transformRemoteChangeset'](_0x390859),_0x2663d5;}async[_0x2fd58b(0x2fa)](){const _0x59a3ed=_0x2fd58b,_0x39effd=await super[_0x59a3ed(0x2fa)]();return this[_0x59a3ed(0x4de)](this['_commandService']['onCommandExecuted']((_0x7f99c2,_0x5df436)=>{const _0x418eb4=_0x59a3ed;if(_0x7f99c2[_0x418eb4(0x5bd)]!==a[_0x418eb4(0x3e3)][_0x418eb4(0x4cb)]||_0x5df436!=null&&_0x5df436[_0x418eb4(0x58a)]||_0x5df436!=null&&_0x5df436[_0x418eb4(0x4ba)])return;const _0x4be56f=_0x7f99c2['params'];if((_0x4be56f==null?void 0x0:_0x4be56f[_0x418eb4(0x401)])!==this[_0x418eb4(0x440)])return;let _0x25246a=_0x7f99c2;if(_0x25246a['id']===W[_0x418eb4(0x340)]['id']){const _0x23d244=_0x25246a[_0x418eb4(0x494)];_0x25246a={'id':W[_0x418eb4(0x340)]['id'],'type':a[_0x418eb4(0x3e3)]['MUTATION'],'params':{'unitId':_0x23d244[_0x418eb4(0x401)],'actions':_0x23d244['actions'],'textRanges':null}};}const _0x5a4ca1=this[_0x418eb4(0x318)][_0x418eb4(0x606)][_0x418eb4(0x362)](this[_0x418eb4(0x318)][_0x418eb4(0x606)][_0x418eb4(0x2f4)]()[_0x418eb4(0x29a)])([_0x25246a],null)||[_0x25246a];this[_0x418eb4(0x412)](_0x5a4ca1[0x0]);})),_0x39effd;}},exports[_0x2fd58b(0x522)]=ze([I(0x3,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),I(0x4,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),I(0x5,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x5cf)])),I(0x6,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x57f)])),I(0x7,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x533)])),I(0x8,a[_0x2fd58b(0x2c2)](M[_0x2fd58b(0x26f)])),I(0x9,a[_0x2fd58b(0x2c2)](fe)),I(0xa,a[_0x2fd58b(0x2c2)](pe)),I(0xb,a['Inject'](qe)),I(0xc,a[_0x2fd58b(0x286)]),I(0xd,a[_0x2fd58b(0x4b6)]),I(0xe,A['IMessageService']),I(0xf,a[_0x2fd58b(0x375)]),I(0x10,a[_0x2fd58b(0x278)](Re))],exports[_0x2fd58b(0x522)]),exports['SheetCollaborationEntity']=class extends exports[_0x2fd58b(0x2bd)]{constructor(_0x5aad8a,_0x35fdb3,_0x19f67a,_0x2dd18b,_0x323bd7,_0x579bae,_0x10eef3,_0x609280,_0x53d4a3,_0x2ad233,_0x1e620c,_0x358b35,_0x3bc3ef,_0x51488b){const _0x515be3=_0x2fd58b;super(_0x5aad8a,_0x19f67a,_0x35fdb3,_0x2dd18b,_0x323bd7,_0x579bae,_0x10eef3,_0x609280,_0x2ad233,_0x1e620c,_0x358b35,_0x3bc3ef,_0x51488b),this[_0x515be3(0x440)]=_0x5aad8a,this[_0x515be3(0x5bd)]=_0x35fdb3,this[_0x515be3(0x4f0)]=_0x53d4a3;}[_0x2fd58b(0x4d7)](){const _0x51c394=_0x2fd58b,_0x544cc0=super[_0x51c394(0x4d7)]();return _0x544cc0[_0x51c394(0x3e0)]=_0x17fb42=>this[_0x51c394(0x4f0)][_0x51c394(0x592)](_0x17fb42),_0x544cc0;}async[_0x2fd58b(0x2fa)](){const _0x3f5e5b=_0x2fd58b,_0x3064a0=await super[_0x3f5e5b(0x2fa)]();return this[_0x3f5e5b(0x4de)](this[_0x3f5e5b(0x502)]['onCommandExecuted']((_0x2a9191,_0x551860)=>{const _0x34995e=_0x3f5e5b;if(_0x2a9191[_0x34995e(0x5bd)]!==a[_0x34995e(0x3e3)][_0x34995e(0x4cb)]||_0x551860!=null&&_0x551860[_0x34995e(0x58a)]||_0x551860!=null&&_0x551860[_0x34995e(0x4ba)])return;const _0x2f8722=_0x2a9191[_0x34995e(0x494)];if((_0x2f8722==null?void 0x0:_0x2f8722[_0x34995e(0x401)])!==this[_0x34995e(0x440)])return;const _0x156ecf=_0x2a9191,_0xd785b=this[_0x34995e(0x318)][_0x34995e(0x606)]['fetchThroughInterceptors'](this[_0x34995e(0x318)][_0x34995e(0x606)][_0x34995e(0x2f4)]()['COMPRESS_MUTATION_SEND'])([_0x156ecf],null)||[_0x156ecf];this[_0x34995e(0x412)](_0xd785b[0x0]);})),_0x3064a0;}},exports[_0x2fd58b(0x482)]=ze([I(0x3,a['Inject'](a[_0x2fd58b(0x581)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x5cf)])),I(0x6,a[_0x2fd58b(0x2c2)](a['LocaleService'])),I(0x7,a[_0x2fd58b(0x2c2)](_[_0x2fd58b(0x533)])),I(0x8,a[_0x2fd58b(0x2c2)](Ie)),I(0x9,a[_0x2fd58b(0x286)]),I(0xa,a[_0x2fd58b(0x4b6)]),I(0xb,A[_0x2fd58b(0x599)]),I(0xc,a['IPermissionService']),I(0xd,a[_0x2fd58b(0x278)](Re))],exports['SheetCollaborationEntity']);var qs=Object[_0x2fd58b(0x38e)],zs=Object[_0x2fd58b(0x36f)],Js=(_0x44c85e,_0x3a5386,_0x3c51f,_0x131058)=>{const _0x325b22=_0x2fd58b;for(var _0x3c57c8=_0x131058>0x1?void 0x0:_0x131058?zs(_0x3a5386,_0x3c51f):_0x3a5386,_0x5426e9=_0x44c85e[_0x325b22(0x598)]-0x1,_0x145822;_0x5426e9>=0x0;_0x5426e9--)(_0x145822=_0x44c85e[_0x5426e9])&&(_0x3c57c8=(_0x131058?_0x145822(_0x3a5386,_0x3c51f,_0x3c57c8):_0x145822(_0x3c57c8))||_0x3c57c8);return _0x131058&&_0x3c57c8&&qs(_0x3a5386,_0x3c51f,_0x3c57c8),_0x3c57c8;},Me=(_0x383a2a,_0x2b8f1)=>(_0x2e4d10,_0x1feb1f)=>_0x2b8f1(_0x2e4d10,_0x1feb1f,_0x383a2a);exports['CollaborationController']=class extends a[_0x2fd58b(0x5ff)]{constructor(_0x146272,_0x5bfb91,_0x151cd0){const _0x58a5ac=_0x2fd58b;super(),u(this,_0x58a5ac(0x31f),new Map()),u(this,_0x58a5ac(0x2b0),new v[(_0x58a5ac(0x4bf))]()),(this[_0x58a5ac(0x227)]=_0x146272,this[_0x58a5ac(0x331)]=_0x5bfb91,this[_0x58a5ac(0x248)]=_0x151cd0,this[_0x58a5ac(0x2fa)]());}[_0x2fd58b(0x40b)](){const _0x4c53ab=_0x2fd58b;super['dispose'](),this[_0x4c53ab(0x31f)][_0x4c53ab(0x2df)](_0x700e0f=>_0x700e0f[_0x4c53ab(0x40b)]()),this[_0x4c53ab(0x31f)][_0x4c53ab(0x4b3)]();}[_0x2fd58b(0x558)](_0x43e6a2){const _0x2ed3ba=_0x2fd58b;var _0x18b9c5;return(_0x18b9c5=this['_entities'][_0x2ed3ba(0x5e1)](_0x43e6a2))!=null?_0x18b9c5:null;}[_0x2fd58b(0x582)](_0x29975c){const _0x1a8d18=_0x2fd58b,_0x4d69e5=this[_0x1a8d18(0x558)](_0x29975c);return _0x4d69e5?v['of'](_0x4d69e5):this[_0x1a8d18(0x2b0)][_0x1a8d18(0x50b)](E[_0x1a8d18(0x5ab)](_0x426980=>_0x426980[_0x1a8d18(0x440)]===_0x29975c));}[_0x2fd58b(0x2fa)](){const _0x43e6e2=_0x2fd58b;this[_0x43e6e2(0x248)][_0x43e6e2(0x5ef)](a[_0x43e6e2(0x2a2)][_0x43e6e2(0x29b)])[_0x43e6e2(0x50b)](v['takeUntil'](this[_0x43e6e2(0x328)]),E[_0x43e6e2(0x4f5)](0x10))[_0x43e6e2(0x384)](async _0x4e8b08=>{const _0x499c8a=_0x43e6e2,_0x13c39e=_0x4e8b08[_0x499c8a(0x478)](),_0x443ca6=await this[_0x499c8a(0x3ac)](_0x13c39e,$[_0x499c8a(0x29b)]);this[_0x499c8a(0x31f)][_0x499c8a(0x57a)](_0x13c39e,_0x443ca6);}),this[_0x43e6e2(0x248)][_0x43e6e2(0x5ef)](a['UniverInstanceType'][_0x43e6e2(0x2ea)])['pipe'](v[_0x43e6e2(0x3f7)](this[_0x43e6e2(0x328)]),E[_0x43e6e2(0x4f5)](0x10))[_0x43e6e2(0x50b)](E['filter'](_0x1221a8=>!_0x1221a8['getUnitId']()['startsWith']('__')))[_0x43e6e2(0x384)](async _0x3b9e06=>{const _0x518d18=_0x43e6e2,_0xa9b382=_0x3b9e06[_0x518d18(0x478)](),_0x490218=await this[_0x518d18(0x3ac)](_0xa9b382,$[_0x518d18(0x2ea)]);this['_entities'][_0x518d18(0x57a)](_0xa9b382,_0x490218);}),v['merge'](this['_univerInstanceService'][_0x43e6e2(0x537)](a[_0x43e6e2(0x2a2)][_0x43e6e2(0x29b)]),this[_0x43e6e2(0x248)][_0x43e6e2(0x537)](a[_0x43e6e2(0x2a2)]['UNIVER_DOC']))[_0x43e6e2(0x50b)](v[_0x43e6e2(0x3f7)](this[_0x43e6e2(0x328)]))[_0x43e6e2(0x384)](_0x535309=>{const _0x2431b2=_0x43e6e2,_0x13b816=_0x535309[_0x2431b2(0x478)](),_0x39d8e4=this['_entities'][_0x2431b2(0x5e1)](_0x13b816);_0x39d8e4&&(_0x39d8e4[_0x2431b2(0x40b)](),this['_entities']['delete'](_0x13b816));});}async[_0x2fd58b(0x3ac)](_0x196aaf,_0x58b8e8){const _0x61079a=_0x2fd58b,_0x3c71b0=await this[_0x61079a(0x331)][_0x61079a(0x5b1)](_0x196aaf),_0x4c8393=this['_injector'][_0x61079a(0x307)](this[_0x61079a(0x1f3)](_0x58b8e8),_0x196aaf,_0x58b8e8,_0x3c71b0);return await _0x4c8393[_0x61079a(0x4e8)](),this[_0x61079a(0x2b0)]['next'](_0x4c8393),_0x4c8393;}['_getCtorByUniverType'](_0x2f0a84){const _0x199172=_0x2fd58b;switch(_0x2f0a84){case $[_0x199172(0x2ea)]:return exports[_0x199172(0x522)];case $[_0x199172(0x29b)]:return exports[_0x199172(0x482)];default:throw new Error(_0x199172(0x314)+_0x2f0a84);}}},exports[_0x2fd58b(0x2ba)]=Js([Me(0x0,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),Me(0x1,a[_0x2fd58b(0x2c2)](exports['CollaborationSessionService'])),Me(0x2,a['IUniverInstanceService'])],exports['CollaborationController']);const ct=['purple300','jiqing500',_0x2fd58b(0x597),_0x2fd58b(0x409),_0x2fd58b(0x5ed),_0x2fd58b(0x433)];class Je extends a[_0x2fd58b(0x560)]{constructor(){const _0x2aeb26=_0x2fd58b;super(...arguments),u(this,_0x2aeb26(0x476),new Map()),u(this,'_colorIndex',0x0);}[_0x2fd58b(0x3d2)](_0x3875a3){const _0x24d672=_0x2fd58b;if(this[_0x24d672(0x476)]['has'](_0x3875a3))return this[_0x24d672(0x476)][_0x24d672(0x5e1)](_0x3875a3);const _0x34b37f=ct[this[_0x24d672(0x345)]];return this['_colorIndex']=(this['_colorIndex']+0x1)%ct[_0x24d672(0x598)],this[_0x24d672(0x476)]['set'](_0x3875a3,_0x34b37f),_0x34b37f;}}var Zs=Object['defineProperty'],Qs=Object[_0x2fd58b(0x36f)],ei=(_0xb82d80,_0x54e61c,_0x25cd84,_0x242317)=>{const _0x234e88=_0x2fd58b;for(var _0x219367=_0x242317>0x1?void 0x0:_0x242317?Qs(_0x54e61c,_0x25cd84):_0x54e61c,_0x3de2ad=_0xb82d80[_0x234e88(0x598)]-0x1,_0x52b893;_0x3de2ad>=0x0;_0x3de2ad--)(_0x52b893=_0xb82d80[_0x3de2ad])&&(_0x219367=(_0x242317?_0x52b893(_0x54e61c,_0x25cd84,_0x219367):_0x52b893(_0x219367))||_0x219367);return _0x242317&&_0x219367&&Zs(_0x54e61c,_0x25cd84,_0x219367),_0x219367;},X=(_0x489f9b,_0x3256f5)=>(_0x4339ac,_0x125185)=>_0x3256f5(_0x4339ac,_0x125185,_0x489f9b);const ti=0x12c,si=0x64;let ke=class extends a[_0x2fd58b(0x5ff)]{constructor(_0x4e319d,_0x44af09,_0x2a6f4b,_0x8d936,_0x22a956,_0x318a0d,_0x5d8280,_0x59b6d2,_0x43220c){const _0x30ea49=_0x2fd58b;super(),u(this,_0x30ea49(0x25b),!0x1),u(this,_0x30ea49(0x2fa),!0x1),u(this,_0x30ea49(0x565),new v[(_0x30ea49(0x50e))](new Map())),u(this,_0x30ea49(0x376),this[_0x30ea49(0x565)][_0x30ea49(0x4b9)]()),u(this,'_roomMembers$',new v[(_0x30ea49(0x50e))]([])),u(this,_0x30ea49(0x342),this[_0x30ea49(0x58b)][_0x30ea49(0x50b)](v[_0x30ea49(0x277)](ti))),u(this,'_updateLocalCursor',a['debounce'](_0x87ebbb=>{const _0x2522f2=_0x30ea49,_0x16cfbd={'eventID':_['CollaborationEvent'][_0x2522f2(0x398)],'data':{'unitID':this['unitID'],'memberID':this[_0x2522f2(0x5d4)]['getMemberID'](),'selection':yt(_0x87ebbb)}};this[_0x2522f2(0x5d4)][_0x2522f2(0x373)](_0x16cfbd,this[_0x2522f2(0x440)]);},si)),(this[_0x30ea49(0x440)]=_0x4e319d,this[_0x30ea49(0x5d4)]=_0x44af09,this[_0x30ea49(0x227)]=_0x2a6f4b,this[_0x30ea49(0x4be)]=_0x8d936,this[_0x30ea49(0x444)]=_0x22a956,this[_0x30ea49(0x2e5)]=_0x318a0d,this[_0x30ea49(0x263)]=_0x5d8280,this[_0x30ea49(0x248)]=_0x59b6d2,this[_0x30ea49(0x502)]=_0x43220c);}get['cursorInfo'](){const _0xf2f64d=_0x2fd58b;return this[_0xf2f64d(0x565)][_0xf2f64d(0x2e0)]();}get[_0x2fd58b(0x272)](){const _0x506fd3=_0x2fd58b;return this[_0x506fd3(0x58b)][_0x506fd3(0x2e0)]();}[_0x2fd58b(0x40b)](){const _0x35e1f8=_0x2fd58b;super[_0x35e1f8(0x40b)](),this['_cursorInfo$'][_0x35e1f8(0x46b)](new Map()),this[_0x35e1f8(0x565)][_0x35e1f8(0x49d)](),this[_0x35e1f8(0x58b)][_0x35e1f8(0x46b)]([]),this[_0x35e1f8(0x58b)][_0x35e1f8(0x49d)]();}[_0x2fd58b(0x4e8)](){const _0x7b7f04=_0x2fd58b;this[_0x7b7f04(0x2fa)]||(this[_0x7b7f04(0x2fa)]=!0x0,this['_session'][_0x7b7f04(0x1fc)][_0x7b7f04(0x50b)](v[_0x7b7f04(0x3f7)](this[_0x7b7f04(0x328)]))[_0x7b7f04(0x384)](_0x3d8368=>{const _0x201399=_0x7b7f04;_0x3d8368===H[_0x201399(0x572)]?this[_0x201399(0x363)]():this['_toggleOffline']();}),this[_0x7b7f04(0x5d4)][_0x7b7f04(0x2ce)][_0x7b7f04(0x50b)](v['takeUntil'](this[_0x7b7f04(0x328)]))[_0x7b7f04(0x384)](_0x5244d1=>{const _0x12a22b=_0x7b7f04,_0x4fc675=_0x5244d1[_0x12a22b(0x55f)];_0x4fc675===_[_0x12a22b(0x2ca)]['UPDATE_CURSOR']&&this[_0x12a22b(0x2dd)](_0x5244d1),_0x4fc675===_['CollaborationEvent'][_0x12a22b(0x46a)]&&this['_onCursorDelete'](_0x5244d1);}),this[_0x7b7f04(0x4de)](this[_0x7b7f04(0x502)][_0x7b7f04(0x41d)](_0x310aaf=>{const _0x15e0b5=_0x7b7f04,_0x5a9207=_0x310aaf[_0x15e0b5(0x494)];_0x5a9207!=null&&this[_0x15e0b5(0x25b)]&&_0x310aaf['id']===W['SetTextSelectionsOperation']['id']&&_0x5a9207[_0x15e0b5(0x401)]===this[_0x15e0b5(0x440)]&&_0x5a9207['isEditing']===!0x1&&this[_0x15e0b5(0x39a)](_0x5a9207[_0x15e0b5(0x282)]);})),this[_0x7b7f04(0x2e5)][_0x7b7f04(0x4c5)][_0x7b7f04(0x50b)](v[_0x7b7f04(0x3f7)](this[_0x7b7f04(0x328)]))['subscribe'](_0x559430=>{const _0x3ea221=_0x7b7f04;if((_0x559430==null?void 0x0:_0x559430[_0x3ea221(0x440)])!==this[_0x3ea221(0x440)])return;const _0x26515d={'eventID':_[_0x3ea221(0x2ca)][_0x3ea221(0x398)],'data':_0x559430};this['_onCursorUpdate'](_0x26515d);}),this[_0x7b7f04(0x4de)](this[_0x7b7f04(0x502)]['onCommandExecuted'](_0x11a9dc=>{const _0x2ca7ef=_0x7b7f04;if(_0x11a9dc[_0x2ca7ef(0x494)]==null)return;const _0x580494=_0x11a9dc['params'];if(_0x11a9dc['id']!==W[_0x2ca7ef(0x340)]['id']||_0x580494[_0x2ca7ef(0x401)]!==this[_0x2ca7ef(0x440)])return;const _0x1128ca={'id':_0x2ca7ef(0x47c),'params':_0x580494},_0x17d678=this[_0x2ca7ef(0x553)];for(const [_0xdbe8a6,_0x15e1f2]of _0x17d678){const _0x3d2c9a={'id':_0x2ca7ef(0x47c),'params':{'unitId':this[_0x2ca7ef(0x440)],'actions':null,'textRanges':_0x15e1f2[_0x2ca7ef(0x282)]}},_0x1d13e8=this['_transformService'][_0x2ca7ef(0x4c7)](_0x1128ca,_0x3d2c9a,!0x1);if(_['isTransformMutationFailure'](_0x1d13e8))throw _0x1d13e8[_0x2ca7ef(0x359)];_0x17d678['set'](_0xdbe8a6,{..._0x15e1f2,'ranges':_0x1d13e8[_0x2ca7ef(0x43c)]['params']['textRanges']});}queueMicrotask(()=>{const _0x50278f=_0x2ca7ef;this['_cursorInfo$'][_0x50278f(0x46b)](_0x17d678);});})));}[_0x2fd58b(0x2dd)](_0xe8962a){const _0x35b36f=_0x2fd58b;var _0x39aa43,_0x624096;const {memberID:_0x5ef94d,selection:_0x33b5a0}=_0xe8962a['data'],_0x18d537=Hs(_0x33b5a0),_0x514d54=(_0x624096=(_0x39aa43=this[_0x35b36f(0x444)]['getMember'](this[_0x35b36f(0x440)],_0x5ef94d))==null?void 0x0:_0x39aa43[_0x35b36f(0x351)])!=null?_0x624096:_0x35b36f(0x235),_0x1edf8f={'color':this['_colorAssignService'][_0x35b36f(0x3d2)](_0x5ef94d),'name':_0x514d54,'ranges':_0x18d537},_0x1c2c4d=this[_0x35b36f(0x553)];_0x1c2c4d['set'](_0x5ef94d,_0x1edf8f),this[_0x35b36f(0x565)][_0x35b36f(0x46b)](_0x1c2c4d);}[_0x2fd58b(0x3b5)](_0x8bd56a){const _0x338cd7=_0x2fd58b,{memberID:_0x4133eb}=_0x8bd56a[_0x338cd7(0x316)],_0xcc7224=this['cursorInfo'];_0xcc7224['delete'](_0x4133eb),this[_0x338cd7(0x565)][_0x338cd7(0x46b)](_0xcc7224);}[_0x2fd58b(0x363)](){const _0x5dbddc=_0x2fd58b;var _0x5d1889;if(this['_online']=!0x0,((_0x5d1889=this[_0x5dbddc(0x248)][_0x5dbddc(0x425)]())==null?void 0x0:_0x5d1889[_0x5dbddc(0x478)]())!==this[_0x5dbddc(0x440)])return;const _0x319058=this[_0x5dbddc(0x227)]['get'](W[_0x5dbddc(0x209)])['getDocRanges']();Array[_0x5dbddc(0x4eb)](_0x319058)&&_0x319058[_0x5dbddc(0x598)]>0x0&&this[_0x5dbddc(0x39a)](_0x319058);}['_toggleOffline'](){this['_online']=!0x1;}};ke=ei([X(0x2,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),X(0x3,a[_0x2fd58b(0x2c2)](Je)),X(0x4,a[_0x2fd58b(0x2c2)](z)),X(0x5,a[_0x2fd58b(0x2c2)](qe)),X(0x6,_[_0x2fd58b(0x259)]),X(0x7,a[_0x2fd58b(0x387)]),X(0x8,a[_0x2fd58b(0x4b6)])],ke);var ii=Object[_0x2fd58b(0x38e)],ni=Object[_0x2fd58b(0x36f)],ri=(_0x4845e8,_0x2d62ca,_0x2c89e5,_0x10ec45)=>{const _0x2bd5c0=_0x2fd58b;for(var _0x915f7a=_0x10ec45>0x1?void 0x0:_0x10ec45?ni(_0x2d62ca,_0x2c89e5):_0x2d62ca,_0x47e210=_0x4845e8[_0x2bd5c0(0x598)]-0x1,_0x2be763;_0x47e210>=0x0;_0x47e210--)(_0x2be763=_0x4845e8[_0x47e210])&&(_0x915f7a=(_0x10ec45?_0x2be763(_0x2d62ca,_0x2c89e5,_0x915f7a):_0x2be763(_0x915f7a))||_0x915f7a);return _0x10ec45&&_0x915f7a&&ii(_0x2d62ca,_0x2c89e5,_0x915f7a),_0x915f7a;},ee=(_0x191007,_0x38f7bd)=>(_0x149ee7,_0x2fe20a)=>_0x38f7bd(_0x149ee7,_0x2fe20a,_0x191007);const oi=0x12c,ai=0x64,ci=()=>{let _0x53488b=[],_0x122060=!0x1;return _0x13f445=>{const _0x521a2d=_0x4bd5;_0x53488b[_0x521a2d(0x4a2)](_0x13f445),_0x122060||(_0x122060=!0x0,setTimeout(()=>{const _0x4d7fb7=_0x521a2d;_0x53488b[_0x4d7fb7(0x2df)](_0x5ebd4d=>_0x5ebd4d()),_0x53488b=[],_0x122060=!0x1;}));};};let Be=class extends a['RxDisposable']{constructor(_0x512a7b,_0x1e3696,_0x2a7cc7,_0x1a3f8f,_0x399484,_0xc1f76a,_0x4d0fef,_0x3cd40d){const _0x32922f=_0x2fd58b;super(),u(this,_0x32922f(0x25b),!0x1),u(this,_0x32922f(0x2fa),!0x1),u(this,_0x32922f(0x565),new v[(_0x32922f(0x50e))](new Map())),u(this,_0x32922f(0x376),this[_0x32922f(0x565)][_0x32922f(0x4b9)]()),u(this,_0x32922f(0x58b),new v[(_0x32922f(0x50e))]([])),u(this,'roomMembers$',this['_roomMembers$'][_0x32922f(0x50b)](v[_0x32922f(0x277)](oi))),u(this,_0x32922f(0x39a),a[_0x32922f(0x44e)]((_0x529673,_0x1c334d)=>{const _0xb8da9e=_0x32922f,_0x3498fa={'eventID':_[_0xb8da9e(0x2ca)][_0xb8da9e(0x398)],'data':{'unitID':this['unitID'],'memberID':this[_0xb8da9e(0x5d4)]['getMemberID'](),'selection':et[_0xb8da9e(0x420)](_0x529673,_0x1c334d[_0xb8da9e(0x41f)])}};this[_0xb8da9e(0x5d4)]['send'](_0x3498fa,this[_0xb8da9e(0x440)]);},ai)),(this['unitID']=_0x512a7b,this[_0x32922f(0x5d4)]=_0x1e3696,this[_0x32922f(0x227)]=_0x2a7cc7,this['_colorAssignService']=_0x1a3f8f,this[_0x32922f(0x444)]=_0x399484,this[_0x32922f(0x248)]=_0xc1f76a,this['_commandService']=_0x4d0fef,this[_0x32922f(0x301)]=_0x3cd40d);}get[_0x2fd58b(0x553)](){const _0x28ec39=_0x2fd58b;return this[_0x28ec39(0x565)][_0x28ec39(0x2e0)]();}get['roomMembers'](){const _0x400e5e=_0x2fd58b;return this[_0x400e5e(0x58b)][_0x400e5e(0x2e0)]();}[_0x2fd58b(0x40b)](){const _0x3da2e7=_0x2fd58b;super[_0x3da2e7(0x40b)](),this['_cursorInfo$'][_0x3da2e7(0x46b)](new Map()),this[_0x3da2e7(0x565)][_0x3da2e7(0x49d)](),this[_0x3da2e7(0x58b)]['next']([]),this[_0x3da2e7(0x58b)][_0x3da2e7(0x49d)]();}[_0x2fd58b(0x4e8)](){const _0x55ab4a=_0x2fd58b;this[_0x55ab4a(0x2fa)]||(this[_0x55ab4a(0x2fa)]=!0x0,this[_0x55ab4a(0x5d4)][_0x55ab4a(0x1fc)]['pipe'](v[_0x55ab4a(0x3f7)](this[_0x55ab4a(0x328)]))[_0x55ab4a(0x384)](_0x235290=>{const _0x2b012f=_0x55ab4a;_0x235290===H[_0x2b012f(0x572)]?this[_0x2b012f(0x363)]():this['_toggleOffline']();}),this['_session']['event$'][_0x55ab4a(0x50b)](v['takeUntil'](this[_0x55ab4a(0x328)]))[_0x55ab4a(0x384)](_0x148bf0=>{const _0x1cef31=_0x55ab4a,_0x38a016=_0x148bf0['eventID'];_0x38a016===_[_0x1cef31(0x2ca)][_0x1cef31(0x398)]&&this['_onCursorUpdate'](_0x148bf0),_0x38a016===_[_0x1cef31(0x2ca)]['USERS_LEAVE']&&this[_0x1cef31(0x3b5)](_0x148bf0);}),this['_onRefRangeChange'](),this[_0x55ab4a(0x4de)](this['_commandService']['onCommandExecuted'](_0x653772=>{const _0x3bacc2=_0x55ab4a;if(this[_0x3bacc2(0x25b)]&&_0x653772['id']===C['SetSelectionsOperation']['id']&&_0x653772[_0x3bacc2(0x494)]['unitId']===this[_0x3bacc2(0x440)]){const _0xf29409=_0x653772['params'];this[_0x3bacc2(0x39a)](_0xf29409[_0x3bacc2(0x5bc)],_0xf29409['selections'][0x0]);}})));}[_0x2fd58b(0x2dd)](_0xddceb9){const _0x311880=_0x2fd58b;var _0x1ae0eb,_0x39b5aa;const {memberID:_0x520a19,selection:_0x5892f6}=_0xddceb9[_0x311880(0x316)],{sheetName:_0x13c606,range:_0x20b72f}=et[_0x311880(0x3b6)](_0x5892f6),_0x3a1229={'name':(_0x39b5aa=(_0x1ae0eb=this[_0x311880(0x444)]['getMember'](this[_0x311880(0x440)],_0x520a19))==null?void 0x0:_0x1ae0eb[_0x311880(0x351)])!=null?_0x39b5aa:_0x311880(0x235),'range':this[_0x311880(0x530)](_0x13c606,_0x20b72f),'sheetID':_0x13c606,'color':this[_0x311880(0x4be)][_0x311880(0x3d2)](_0x520a19),'selection':_0x5892f6},_0x2f643a=this[_0x311880(0x553)];_0x2f643a[_0x311880(0x57a)](_0x520a19,_0x3a1229),this[_0x311880(0x565)][_0x311880(0x46b)](_0x2f643a);}['_onCursorDelete'](_0x372d07){const _0x1f9264=_0x2fd58b,{memberID:_0x401902}=_0x372d07[_0x1f9264(0x316)],_0x23e8ef=this[_0x1f9264(0x553)];_0x23e8ef[_0x1f9264(0x55d)](_0x401902),this[_0x1f9264(0x565)][_0x1f9264(0x46b)](_0x23e8ef);}[_0x2fd58b(0x530)](_0x284253,_0x3c862a){const _0x3ea0a8=_0x2fd58b;var _0x21b4d3,_0x86098a;const _0x2935cb=(_0x86098a=(_0x21b4d3=this['_univerInstanceService']['getUniverSheetInstance'](this[_0x3ea0a8(0x440)]))==null?void 0x0:_0x21b4d3[_0x3ea0a8(0x32b)](_0x284253))==null?void 0x0:_0x86098a[_0x3ea0a8(0x516)]();return(_0x2935cb==null?void 0x0:_0x2935cb[_0x3ea0a8(0x429)](_0x53050a=>a[_0x3ea0a8(0x55e)]['contains'](_0x53050a,_0x3c862a)))||_0x3c862a;}[_0x2fd58b(0x5eb)](){const _0x85d6d0=_0x2fd58b,_0x47c924=new a[(_0x85d6d0(0x5ec))](),_0x40c53b=ci(),_0x30992e=()=>{const _0x37bc29=_0x85d6d0;_0x47c924[_0x37bc29(0x40b)]();const _0x521375=(_0x5a51dd,_0x45863a,_0x20b4f8,_0x18c2f8)=>{const _0x7252b9=_0x37bc29;let _0xc0a653=[];switch(_0x5a51dd['id']){case C[_0x7252b9(0x302)]['DeleteRangeMoveLeftCommandId']:{_0xc0a653=C[_0x7252b9(0x23e)](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)][_0x7252b9(0x52d)]:{_0xc0a653=C['handleDeleteRangeMoveUp'](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)][_0x7252b9(0x216)]:{_0xc0a653=C['handleInsertCol'](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)][_0x7252b9(0x257)]:{_0xc0a653=C['handleInsertRangeMoveDown'](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)][_0x7252b9(0x596)]:{_0xc0a653=C[_0x7252b9(0x1ff)](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)]['InsertRowCommandId']:{_0xc0a653=C[_0x7252b9(0x439)](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)][_0x7252b9(0x4e0)]:{_0xc0a653=C[_0x7252b9(0x22d)](_0x5a51dd,_0x18c2f8);break;}case C['EffectRefRangId']['RemoveColCommandId']:{_0xc0a653=C[_0x7252b9(0x2f7)](_0x5a51dd,_0x18c2f8);break;}case C[_0x7252b9(0x302)][_0x7252b9(0x2bb)]:{_0xc0a653=C[_0x7252b9(0x5da)](_0x5a51dd,_0x18c2f8);break;}}const _0x58b94f=C[_0x7252b9(0x42e)](_0xc0a653,_0x18c2f8),_0x1d8dcb=this['cursorInfo'][_0x7252b9(0x5e1)](_0x45863a);if(_0x1d8dcb&&_0x58b94f){const _0x2ba410={..._0x1d8dcb,'range':_0x58b94f};this[_0x7252b9(0x553)]['set'](_0x45863a,_0x2ba410),_0x40c53b(()=>{const _0x57d649=_0x7252b9,_0x3cd833=this[_0x57d649(0x301)][_0x57d649(0x414)](_0x58b94f,_0x1bc19c=>(_0x3cd833['dispose'](),_0x521375(_0x1bc19c,_0x45863a,_0x20b4f8,_0x58b94f)));_0x47c924[_0x57d649(0x4e2)](_0x3cd833);});}return{'redos':[],'undos':[]};};this[_0x37bc29(0x553)][_0x37bc29(0x2df)]((_0x2a12f4,_0x6df6f2)=>{const _0x301ebe=_0x37bc29,{range:_0x633f8f,sheetID:_0x20e3d7}=_0x2a12f4,_0x301eb6=this['_refRangeService'][_0x301ebe(0x414)](_0x633f8f,_0xb59e56=>(_0x301eb6[_0x301ebe(0x40b)](),_0x521375(_0xb59e56,_0x6df6f2,_0x20e3d7,_0x633f8f)));_0x47c924[_0x301ebe(0x4e2)](_0x301eb6);});};this['disposeWithMe'](a[_0x85d6d0(0x5c3)](this[_0x85d6d0(0x565)]['subscribe'](()=>{_0x30992e();})));}[_0x2fd58b(0x363)](){const _0x48e13d=_0x2fd58b;var _0x50cb69,_0x597989;if(this[_0x48e13d(0x25b)]=!0x0,((_0x50cb69=this['_univerInstanceService'][_0x48e13d(0x425)]())==null?void 0x0:_0x50cb69[_0x48e13d(0x478)]())!==this[_0x48e13d(0x440)])return;const _0x1495f5=(_0x597989=this['_injector'][_0x48e13d(0x5e1)](C[_0x48e13d(0x2dc)])['getCurrentSelections']())==null?void 0x0:_0x597989[0x0],_0x568093=this[_0x48e13d(0x248)][_0x48e13d(0x2eb)](a['UniverInstanceType'][_0x48e13d(0x29b)])[_0x48e13d(0x47f)]();_0x1495f5&&_0x568093&&this[_0x48e13d(0x39a)](_0x568093[_0x48e13d(0x44b)](),_0x1495f5);}[_0x2fd58b(0x521)](){this['_online']=!0x1;}};Be=ri([ee(0x2,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),ee(0x3,a['Inject'](Je)),ee(0x4,a[_0x2fd58b(0x2c2)](z)),ee(0x5,a[_0x2fd58b(0x387)]),ee(0x6,a[_0x2fd58b(0x4b6)]),ee(0x7,a[_0x2fd58b(0x2c2)](C[_0x2fd58b(0x5b0)]))],Be);var li=Object[_0x2fd58b(0x38e)],hi=Object[_0x2fd58b(0x36f)],_i=(_0x51bd5a,_0x4562e7,_0x1516a4,_0x462c1a)=>{const _0x3fbdf1=_0x2fd58b;for(var _0x532e68=_0x462c1a>0x1?void 0x0:_0x462c1a?hi(_0x4562e7,_0x1516a4):_0x4562e7,_0x3224bf=_0x51bd5a[_0x3fbdf1(0x598)]-0x1,_0x52cf75;_0x3224bf>=0x0;_0x3224bf--)(_0x52cf75=_0x51bd5a[_0x3224bf])&&(_0x532e68=(_0x462c1a?_0x52cf75(_0x4562e7,_0x1516a4,_0x532e68):_0x52cf75(_0x532e68))||_0x532e68);return _0x462c1a&&_0x532e68&&li(_0x4562e7,_0x1516a4,_0x532e68),_0x532e68;},Ne=(_0x10edd0,_0x5b049b)=>(_0x7f1b54,_0x200092)=>_0x5b049b(_0x7f1b54,_0x200092,_0x10edd0);let ne=class extends a[_0x2fd58b(0x5ff)]{constructor(_0x146dab,_0x9c22b8,_0x33f8ca){const _0x1d5416=_0x2fd58b;super(),u(this,_0x1d5416(0x31f),new Map()),u(this,_0x1d5416(0x2b0),new v[(_0x1d5416(0x4bf))]()),(this[_0x1d5416(0x248)]=_0x146dab,this[_0x1d5416(0x227)]=_0x9c22b8,this['_collabSessionService']=_0x33f8ca,this[_0x1d5416(0x2fa)]());}[_0x2fd58b(0x40b)](){const _0x4201ff=_0x2fd58b;super[_0x4201ff(0x40b)](),this[_0x4201ff(0x2b0)][_0x4201ff(0x49d)](),this[_0x4201ff(0x31f)]['forEach'](_0x327ca7=>_0x327ca7[_0x4201ff(0x40b)]());}['getCollabCursors$'](_0x54c6bc){const _0x493534=_0x2fd58b;return this[_0x493534(0x31f)][_0x493534(0x563)](_0x54c6bc)?this['_entities'][_0x493534(0x5e1)](_0x54c6bc)[_0x493534(0x376)]:this[_0x493534(0x2b0)][_0x493534(0x50b)](v[_0x493534(0x5ab)](_0x50d860=>_0x50d860[_0x493534(0x440)]===_0x54c6bc),v[_0x493534(0x427)](_0x69ff6b=>_0x69ff6b[_0x493534(0x376)]));}[_0x2fd58b(0x2fa)](){const _0x11b59d=_0x2fd58b;this[_0x11b59d(0x248)][_0x11b59d(0x5ef)](a['UniverInstanceType']['UNIVER_SHEET'])[_0x11b59d(0x50b)](v[_0x11b59d(0x3f7)](this[_0x11b59d(0x328)]))[_0x11b59d(0x384)](async _0x4fd522=>{const _0x3b5722=_0x11b59d,_0x4ee796=_0x4fd522[_0x3b5722(0x478)](),_0x8065d4=await this[_0x3b5722(0x5b7)](_0x4ee796);this['_entityInit$'][_0x3b5722(0x46b)](_0x8065d4),this[_0x3b5722(0x31f)][_0x3b5722(0x57a)](_0x4ee796,_0x8065d4);}),this[_0x11b59d(0x248)][_0x11b59d(0x5ef)](a[_0x11b59d(0x2a2)][_0x11b59d(0x2ea)])[_0x11b59d(0x50b)](v['takeUntil'](this[_0x11b59d(0x328)]))[_0x11b59d(0x50b)](v['filter'](_0x58f15f=>!_0x58f15f[_0x11b59d(0x478)]()[_0x11b59d(0x578)]('__')))[_0x11b59d(0x384)](async _0x177192=>{const _0x1f6646=_0x11b59d,_0x37ed60=_0x177192['getUnitId'](),_0x9cab8c=await this['_startDocCollabCursor'](_0x37ed60);this[_0x1f6646(0x2b0)]['next'](_0x9cab8c),this[_0x1f6646(0x31f)][_0x1f6646(0x57a)](_0x37ed60,_0x9cab8c);}),v['merge'](this['_univerInstanceService'][_0x11b59d(0x537)](a[_0x11b59d(0x2a2)][_0x11b59d(0x2ea)]),this[_0x11b59d(0x248)][_0x11b59d(0x537)](a[_0x11b59d(0x2a2)][_0x11b59d(0x29b)]))[_0x11b59d(0x50b)](v[_0x11b59d(0x3f7)](this[_0x11b59d(0x328)]))['subscribe'](_0x45d06c=>{const _0x545a13=_0x11b59d,_0x2cb916=_0x45d06c[_0x545a13(0x478)](),_0x473d4d=this[_0x545a13(0x31f)]['get'](_0x2cb916);_0x473d4d&&(_0x473d4d[_0x545a13(0x40b)](),this['_entities'][_0x545a13(0x55d)](_0x2cb916));});}async['_startSheetCollabCursor'](_0x1cfaa4){const _0x24a768=_0x2fd58b,_0x471c16=await this[_0x24a768(0x331)][_0x24a768(0x5b1)](_0x1cfaa4),_0x4f9004=this[_0x24a768(0x227)][_0x24a768(0x307)](Be,_0x1cfaa4,_0x471c16);return _0x4f9004[_0x24a768(0x4e8)](),_0x4f9004;}async[_0x2fd58b(0x1f6)](_0x548591){const _0x37cc57=_0x2fd58b,_0x3b18e0=await this[_0x37cc57(0x331)]['requireSession'](_0x548591),_0x8b50c2=this[_0x37cc57(0x227)]['createInstance'](ke,_0x548591,_0x3b18e0);return _0x8b50c2[_0x37cc57(0x4e8)](),_0x8b50c2;}};ne=_i([Ne(0x0,a[_0x2fd58b(0x387)]),Ne(0x1,a[_0x2fd58b(0x2c2)](a['Injector'])),Ne(0x2,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x370)]))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x13e9a4,_0x255678){const _0xe8e216=_0x2fd58b;let {radius:_0x9100aa,width:_0x361e35,height:_0x9a76dc}=_0x255678;_0x9100aa=_0x9100aa!=null?_0x9100aa:0x0,_0x361e35=_0x361e35!=null?_0x361e35:0x1e,_0x9a76dc=_0x9a76dc!=null?_0x9a76dc:0x1e;let _0xa46300=0x0,_0x3f33d3=0x0,_0xa5bfeb=0x0;_0xa46300=_0x3f33d3=_0xa5bfeb=Math[_0xe8e216(0x46d)](_0x9100aa,_0x361e35/0x2,_0x9a76dc/0x2),_0x13e9a4[_0xe8e216(0x499)](),_0x13e9a4[_0xe8e216(0x3df)](_0xa46300,0x0),_0x13e9a4[_0xe8e216(0x3b2)](_0x361e35-_0x3f33d3,0x0),_0x13e9a4['arc'](_0x361e35-_0x3f33d3,_0x3f33d3,_0x3f33d3,Math['PI']*0x3/0x2,0x0,!0x1),_0x13e9a4[_0xe8e216(0x3b2)](_0x361e35,_0x9a76dc-_0xa5bfeb),_0x13e9a4['arc'](_0x361e35-_0xa5bfeb,_0x9a76dc-_0xa5bfeb,_0xa5bfeb,0x0,Math['PI']/0x2,!0x1),_0x13e9a4[_0xe8e216(0x3b2)](0x0,_0x9a76dc),_0x13e9a4[_0xe8e216(0x3b2)](0x0,_0xa46300),_0x13e9a4[_0xe8e216(0x4f6)](_0xa46300,_0xa46300,_0xa46300,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x13e9a4[_0xe8e216(0x240)](),_0x255678[_0xe8e216(0x3a0)]&&(_0x13e9a4['save'](),_0x13e9a4[_0xe8e216(0x4a6)]=_0x255678[_0xe8e216(0x3a0)],_0x255678['fillRule']==='evenodd'?_0x13e9a4['fill']('evenodd'):_0x13e9a4[_0xe8e216(0x3a0)](),_0x13e9a4[_0xe8e216(0x329)]());}class Oe extends O[_0x2fd58b(0x350)]{constructor(_0x27ff26,_0x5bcd58){const _0x2fc2b7=_0x2fd58b;super(_0x27ff26,_0x5bcd58),u(this,_0x2fc2b7(0x3a9)),u(this,_0x2fc2b7(0x25d)),(this[_0x2fc2b7(0x3a9)]=_0x5bcd58==null?void 0x0:_0x5bcd58[_0x2fc2b7(0x3a9)],this[_0x2fc2b7(0x25d)]=_0x5bcd58==null?void 0x0:_0x5bcd58[_0x2fc2b7(0x25d)]);}static[_0x2fd58b(0x449)](_0x3cd394,_0x18404b){const _0x4d2dab=_0x2fd58b,{text:_0x4b1c33,color:_0x295797}=_0x18404b;_0x3cd394[_0x4d2dab(0x508)](),_0x3cd394['font']=_0x4d2dab(0x53c);const _0x145580=_0x3cd394[_0x4d2dab(0x34e)](_0x4b1c33)['width'],_0x32c306=Math['min'](_0x145580+0x2*Ae,lt);di(_0x3cd394,{'height':de,'radius':0x4,'width':_0x32c306,'fill':_0x295797,'evented':!0x1}),_0x3cd394[_0x4d2dab(0x4a6)]=_0x4d2dab(0x3cf);const _0x44af6e=Ae,_0x1e5dfc=de-ui,_0x517220=lt-0x2*Ae;if(_0x145580>_0x517220){let _0x3b3add='',_0x194d1c=0x0;for(const _0x6c80c3 of _0x4b1c33){const _0x356492=_0x3cd394[_0x4d2dab(0x34e)](_0x6c80c3)[_0x4d2dab(0x510)];if(_0x194d1c+_0x356492<=_0x517220-_0x3cd394[_0x4d2dab(0x34e)]('...')[_0x4d2dab(0x510)])_0x3b3add+=_0x6c80c3,_0x194d1c+=_0x356492;else{_0x3b3add+='...';break;}}_0x3cd394[_0x4d2dab(0x333)](_0x3b3add,_0x44af6e,_0x1e5dfc);}else _0x3cd394[_0x4d2dab(0x333)](_0x4b1c33,_0x44af6e,_0x1e5dfc);_0x3cd394['restore']();}[_0x2fd58b(0x3bc)](_0x5cf10e){const _0x1046ea=_0x2fd58b;Oe[_0x1046ea(0x449)](_0x5cf10e,this);}}const Le=_0x2fd58b(0x312),Si=_0x2fd58b(0x51d),vi=_0x2fd58b(0x212),le=0x6,gi=1.5,je=0x4,mi=1.5,fi='rgba(255,\x20255,\x20255,\x200.01)';class ht{constructor(_0x1d6738,_0x5481b1,_0x1f0366,_0x485505){const _0x3b6b4c=_0x2fd58b;u(this,_0x3b6b4c(0x296),[]),u(this,'_anchor',null),u(this,'_textBubble',null),u(this,_0x3b6b4c(0x4a3),null),u(this,_0x3b6b4c(0x532),null),u(this,_0x3b6b4c(0x218),null),(this[_0x3b6b4c(0x32d)]=_0x1d6738,this['_scene']=_0x5481b1,this[_0x3b6b4c(0x5bb)]=_0x1f0366,this[_0x3b6b4c(0x551)]=_0x485505,this[_0x3b6b4c(0x24a)]());}set[_0x2fd58b(0x4dc)](_0xe45c81){const _0x13c716=_0x2fd58b;_0xe45c81?(this[_0x13c716(0x4a3)]&&this[_0x13c716(0x4a3)]['hide'](),this[_0x13c716(0x4ce)]&&this[_0x13c716(0x4ce)][_0x13c716(0x232)]()):(this[_0x13c716(0x4a3)]&&this[_0x13c716(0x4a3)][_0x13c716(0x232)](),this[_0x13c716(0x4ce)]&&this[_0x13c716(0x4ce)][_0x13c716(0x5d7)]());}['dispose'](){const _0x1f503e=_0x2fd58b;for(const _0x25df34 of this[_0x1f503e(0x296)])_0x25df34[_0x1f503e(0x40b)]();this[_0x1f503e(0x4ce)]&&this['_textBubble'][_0x1f503e(0x40b)](),this[_0x1f503e(0x4a3)]&&this['_anchorDot'][_0x1f503e(0x40b)](),this[_0x1f503e(0x353)]&&this['_anchor']['dispose'](),this[_0x1f503e(0x218)]&&this['_eventUnsubscribe']();}[_0x2fd58b(0x24a)](){const _0x276986=_0x2fd58b;var _0xc40ef6;const {_docSkeleton:_0x2cf705,_document:_0x57f7a3}=this,{color:_0x5580cb,name:_0x2dfc36,ranges:_0x5c314b}=this['_cursor'],_0x2a0da1=_0x57f7a3[_0x276986(0x491)](),{docsLeft:_0x5e5013,docsTop:_0x2eee04}=_0x2a0da1,_0x39e1a3=new M['NodePositionConvertToCursor'](_0x2a0da1,_0x2cf705);for(const {startOffset:_0xb126ca,endOffset:_0x538351,collapsed:_0x179967,isActive:_0x3bc863}of _0x5c314b){const _0x20ad7a=_0x2cf705['findNodePositionByCharIndex'](_0xb126ca),_0x39fe34=_0x2cf705[_0x276986(0x59e)](_0x538351);if(_0x3bc863){const {contentBoxPointGroup:_0x2657d6}=_0x39e1a3[_0x276986(0x38b)](_0x39fe34,_0x39fe34);if(_0x2657d6['length']===0x0)continue;this[_0x276986(0x5be)](_0x5580cb,_0x2657d6,_0x5e5013,_0x2eee04,_0x2dfc36),this[_0x276986(0x218)]=this[_0x276986(0x358)]();}if(!_0x179967&&_0x20ad7a&&_0x39fe34){if(M['isValidRectRange'](_0x20ad7a,_0x39fe34)){const _0xc0e5ee=new M[(_0x276986(0x29e))](_0x2a0da1,_0x2cf705),{pointGroup:_0x5e5a12}=(_0xc40ef6=_0xc0e5ee[_0x276986(0x38b)](_0x20ad7a,_0x39fe34))!=null?_0xc40ef6:{};if(_0x5e5a12==null||_0x5e5a12[_0x276986(0x598)]===0x0)continue;this['_drawRectRange'](_0x5580cb,_0x5e5a12,_0x5e5013,_0x2eee04);}else{const {contentBoxPointGroup:_0x304d68}=_0x39e1a3[_0x276986(0x38b)](_0x20ad7a,_0x39fe34);if(_0x304d68['length']===0x0)continue;this[_0x276986(0x573)](_0x5580cb,_0x304d68,_0x5e5013,_0x2eee04);}}}}[_0x2fd58b(0x5be)](_0x1922ad,_0x4d3868,_0x2a9083,_0x42261c,_0x4a2daa){const _0x1551fe=_0x2fd58b,_0x2005a0=this[_0x1551fe(0x224)](_0x4d3868),{left:_0x24191e,top:_0x31b7c2,height:_0x1721a6}=_0x2005a0,_0x42badf=this['_getScale'](),_0x177054=mi/_0x42badf,_0x3e65b0=new O[(_0x1551fe(0x243))](Le+a[_0x1551fe(0x538)]['generateRandomId'](le),{'left':_0x24191e+_0x2a9083-_0x177054,'top':_0x31b7c2+_0x42261c,'height':_0x1721a6,'width':gi,'fill':_0x1922ad||O[_0x1551fe(0x4aa)](a[_0x1551fe(0x5cc)][_0x1551fe(0x28f)],0x0),'strokeWidth':_0x177054,'stroke':fi,'evented':!0x0});this[_0x1551fe(0x353)]=_0x3e65b0,this['_scene'][_0x1551fe(0x5df)](_0x3e65b0,M[_0x1551fe(0x3dc)]);const _0x2388b6=new O[(_0x1551fe(0x243))](Le+a[_0x1551fe(0x538)][_0x1551fe(0x3e6)](le),{'left':_0x24191e+_0x2a9083-_0x177054,'top':_0x31b7c2+_0x42261c-je/0x2,'height':je,'width':je,'fill':_0x1922ad||O['getColor'](a[_0x1551fe(0x5cc)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x1922ad||O[_0x1551fe(0x4aa)](a[_0x1551fe(0x5cc)][_0x1551fe(0x28f)],0x0),'evented':!0x1});this[_0x1551fe(0x4a3)]=_0x2388b6,this[_0x1551fe(0x21b)][_0x1551fe(0x5df)](_0x2388b6,M[_0x1551fe(0x3dc)]);const _0x4354c4=new Oe(Le+a[_0x1551fe(0x538)][_0x1551fe(0x3e6)](le),{'left':_0x24191e+_0x2a9083-_0x177054,'top':_0x31b7c2+_0x42261c-de,'text':_0x4a2daa,'color':_0x1922ad});this[_0x1551fe(0x4ce)]=_0x4354c4,this[_0x1551fe(0x21b)][_0x1551fe(0x5df)](_0x4354c4,M[_0x1551fe(0x3dc)]),this[_0x1551fe(0x4dc)]=!0x1;}[_0x2fd58b(0x358)](){const _0x33536e=_0x2fd58b,_0x11d35b=this[_0x33536e(0x353)][_0x33536e(0x2ad)]['subscribeEvent'](()=>{const _0x5c7fef=_0x33536e;this[_0x5c7fef(0x4dc)]=!0x0;}),_0x57fc3f=this[_0x33536e(0x353)]['onPointerLeave$'][_0x33536e(0x21e)](()=>{const _0xaa6d02=_0x33536e;this[_0xaa6d02(0x532)]&&clearTimeout(this[_0xaa6d02(0x532)]),this['_hideTimer']=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{_0x11d35b['unsubscribe'](),_0x57fc3f['unsubscribe']();};}[_0x2fd58b(0x573)](_0x2723ce,_0x560539,_0x16c169,_0x590a58){const _0x29a8f1=_0x2fd58b,_0x13524d=new a[(_0x29a8f1(0x5a2))](_0x2723ce)[_0x29a8f1(0x2ee)](0.2)[_0x29a8f1(0x2d7)](),_0x2fa0c5=new O[(_0x29a8f1(0x47d))](Si+a[_0x29a8f1(0x538)][_0x29a8f1(0x3e6)](le),{'pointsGroup':_0x560539,'fill':_0x13524d||O[_0x29a8f1(0x4aa)](a[_0x29a8f1(0x5cc)][_0x29a8f1(0x28f)],0.2),'left':_0x16c169,'top':_0x590a58,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x29a8f1(0x4a2)](_0x2fa0c5),this[_0x29a8f1(0x21b)][_0x29a8f1(0x5df)](_0x2fa0c5,M[_0x29a8f1(0x3dc)]);}[_0x2fd58b(0x574)](_0x274775,_0xf99b15,_0x5b8b1a,_0x3a2fc3){const _0x408b60=_0x2fd58b,_0x2431f2=new a[(_0x408b60(0x5a2))](_0x274775)[_0x408b60(0x2ee)](0.2)[_0x408b60(0x2d7)](),_0x339280=new O[(_0x408b60(0x47d))](vi+a[_0x408b60(0x538)][_0x408b60(0x3e6)](le),{'pointsGroup':_0xf99b15,'fill':_0x2431f2||O[_0x408b60(0x4aa)](a[_0x408b60(0x5cc)]['black'],0.2),'left':_0x5b8b1a,'top':_0x3a2fc3,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x408b60(0x296)]['push'](_0x339280),this['_scene']['addObject'](_0x339280,M[_0x408b60(0x3dc)]);}[_0x2fd58b(0x224)](_0x239fb2){const _0x470672=_0x239fb2[0x0],_0x8e000a=_0x470672[0x0],_0x2577ed=_0x470672[0x2],{x:_0x2b7dfa,y:_0x7e0ef5}=_0x8e000a,{x:_0x3b7aaa,y:_0x3d81f0}=_0x2577ed;return{'left':_0x2b7dfa,'top':_0x7e0ef5,'width':_0x3b7aaa-_0x2b7dfa,'height':_0x3d81f0-_0x7e0ef5};}[_0x2fd58b(0x335)](){const _0xba2333=_0x2fd58b,{scaleX:_0x4e1e89,scaleY:_0x27e6ad}=this['_scene']['getAncestorScale']();return Math[_0xba2333(0x48f)](_0x4e1e89,_0x27e6ad);}}var Ii=Object['defineProperty'],pi=Object[_0x2fd58b(0x36f)],Ci=(_0x20abc4,_0x1e6a18,_0x4d9a8e,_0x27e7c3)=>{const _0xdf8e54=_0x2fd58b;for(var _0xefc31f=_0x27e7c3>0x1?void 0x0:_0x27e7c3?pi(_0x1e6a18,_0x4d9a8e):_0x1e6a18,_0x118d55=_0x20abc4[_0xdf8e54(0x598)]-0x1,_0x354845;_0x118d55>=0x0;_0x118d55--)(_0x354845=_0x20abc4[_0x118d55])&&(_0xefc31f=(_0x27e7c3?_0x354845(_0x1e6a18,_0x4d9a8e,_0xefc31f):_0x354845(_0xefc31f))||_0xefc31f);return _0x27e7c3&&_0xefc31f&&Ii(_0x1e6a18,_0x4d9a8e,_0xefc31f),_0xefc31f;},ve=(_0x1a6e6f,_0x2286ea)=>(_0x3dadeb,_0xa0a600)=>_0x2286ea(_0x3dadeb,_0xa0a600,_0x1a6e6f);let Ve=class extends a['RxDisposable']{constructor(_0x3f1ccb,_0x518ce6,_0x3bed2d,_0x5577f3,_0x5c5be7){const _0x408c96=_0x2fd58b;super(),u(this,_0x408c96(0x3ec),[]),u(this,'_cursors',[]),(this[_0x408c96(0x4c1)]=_0x3f1ccb,this['_docSkeletonManagerService']=_0x518ce6,this[_0x408c96(0x280)]=_0x3bed2d,this[_0x408c96(0x502)]=_0x5577f3,this['_themeService']=_0x5c5be7,this[_0x408c96(0x2fa)]());}['_init'](){const _0x26c12f=_0x2fd58b,_0xa716e8=this['_context']['unitId'],_0x2bc9fc=this[_0x26c12f(0x20b)];this['disposeWithMe'](v[_0x26c12f(0x2f8)]([this[_0x26c12f(0x280)][_0x26c12f(0x4b0)](_0xa716e8),this[_0x26c12f(0x31a)][_0x26c12f(0x1f8)]])['pipe'](E['map'](([_0x4aef5d,_0x42a107])=>({'skeleton':_0x2bc9fc[_0x26c12f(0x4f8)](),'cursors':[..._0x4aef5d[_0x26c12f(0x38d)]()][_0x26c12f(0x3c0)](_0x124153=>({..._0x124153,'color':_0x42a107[_0x124153[_0x26c12f(0x3a9)]]}))})))[_0x26c12f(0x384)](_0x556f3a=>{const _0x5f0d5b=_0x26c12f;if(this[_0x5f0d5b(0x2c5)](),_0x556f3a){const {skeleton:_0x11e042,cursors:_0x300cfc}=_0x556f3a;this['_updateCollabCursors'](_0x11e042,_0x300cfc);}})),this[_0x26c12f(0x4a4)](),this[_0x26c12f(0x43d)]();}[_0x2fd58b(0x34a)](_0x1b3518,_0x5160cf){const _0x1eec19=_0x2fd58b,{scene:_0x1c18e3,mainComponent:_0x55c403}=this[_0x1eec19(0x4c1)],_0x2dc43b=_0x5160cf[_0x1eec19(0x3b0)](_0x212175=>new ht(_0x212175,_0x1c18e3,_0x1b3518,_0x55c403));this[_0x1eec19(0x3ec)]=_0x2dc43b,this[_0x1eec19(0x54f)]=_0x5160cf;}[_0x2fd58b(0x352)](){const _0x3cb32a=_0x2fd58b;this[_0x3cb32a(0x2c5)]();const {scene:_0x5a3773,mainComponent:_0x573025}=this[_0x3cb32a(0x4c1)],_0x60f448=this[_0x3cb32a(0x20b)][_0x3cb32a(0x4f8)](),_0x3ff31d=this[_0x3cb32a(0x54f)][_0x3cb32a(0x3b0)](_0x26be65=>new ht(_0x26be65,_0x5a3773,_0x60f448,_0x573025));this[_0x3cb32a(0x3ec)]=_0x3ff31d;}['_removeCollabCursors'](){const _0x39490e=_0x2fd58b;this[_0x39490e(0x3ec)][_0x39490e(0x2df)](_0x5ef9ec=>_0x5ef9ec['dispose']()),this[_0x39490e(0x3ec)]=[];}[_0x2fd58b(0x43d)](){const _0x28584b=_0x2fd58b,_0x1ca3ed=[M[_0x28584b(0x4c0)]['id']];this['disposeWithMe'](this[_0x28584b(0x502)]['onCommandExecuted'](_0xb53258=>{const _0xa5e5a7=_0x28584b;_0x1ca3ed[_0xa5e5a7(0x568)](_0xb53258['id'])&&_0xb53258[_0xa5e5a7(0x494)][_0xa5e5a7(0x401)]===this[_0xa5e5a7(0x4c1)]['unitId']&&this[_0xa5e5a7(0x352)]();}));}[_0x2fd58b(0x4a4)](){const _0x584a76=_0x2fd58b;this[_0x584a76(0x4de)](a['fromEventSubject'](this['_context']['engine']['onTransformChange$'])[_0x584a76(0x50b)](E[_0x584a76(0x5ab)](_0x15819e=>_0x15819e['type']===O['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x584a76(0x28e)]),E[_0x584a76(0x5d0)](0x10))[_0x584a76(0x384)](()=>{const _0x297b09=_0x584a76;this[_0x297b09(0x352)]();}));}};Ve=Ci([ve(0x1,a[_0x2fd58b(0x2c2)](W[_0x2fd58b(0x50c)])),ve(0x2,a[_0x2fd58b(0x2c2)](ne)),ve(0x3,a[_0x2fd58b(0x4b6)]),ve(0x4,a['Inject'](a[_0x2fd58b(0x484)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x2fd58b(0x350)]{constructor(_0x424ee6,_0x167e81){const _0x492005=_0x2fd58b;super(_0x424ee6,_0x167e81),u(this,_0x492005(0x5b4)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,_0x492005(0x5f9),''),u(this,_0x492005(0x2a4),_0x492005(0x53a)),u(this,_0x492005(0x4e1)),(_0x167e81&&this[_0x492005(0x20a)](_0x167e81),this[_0x492005(0x2ad)][_0x492005(0x21e)](()=>this[_0x492005(0x20a)]({'hovered':!0x0})),this[_0x492005(0x4bc)][_0x492005(0x21e)](()=>this[_0x492005(0x20a)]({'hovered':!0x1})));}['setShapeProps'](_0xe76e91){const _0x55b412=_0x2fd58b;var _0xec351f,_0x37fca5,_0xf01e45,_0x1f7010,_0x153943,_0x40afb3;this[_0x55b412(0x5b4)]=(_0xec351f=_0xe76e91['color'])!=null?_0xec351f:this[_0x55b412(0x5b4)],this[_0x55b412(0x207)]=(_0x37fca5=_0xe76e91[_0x55b412(0x4f4)])!=null?_0x37fca5:this[_0x55b412(0x207)],this[_0x55b412(0x5d5)]=(_0xf01e45=_0xe76e91['range'])!=null?_0xf01e45:this['_range'],this[_0x55b412(0x5f9)]=(_0x1f7010=_0xe76e91[_0x55b412(0x351)])!=null?_0x1f7010:this[_0x55b412(0x5f9)],this[_0x55b412(0x2a4)]=(_0x153943=_0xe76e91['labelPosition'])!=null?_0x153943:this[_0x55b412(0x2a4)],this[_0x55b412(0x4e1)]=(_0x40afb3=_0xe76e91[_0x55b412(0x591)])!=null?_0x40afb3:this[_0x55b412(0x4e1)],this[_0x55b412(0x3eb)]({'width':_0xe76e91[_0x55b412(0x510)],'height':_0xe76e91[_0x55b412(0x29d)]});}[_0x2fd58b(0x541)](_0x3a2b47){const _0x439a89=_0x2fd58b,{row:_0x562d33,column:_0x1f84e6}=_0x3a2b47;if(_0x562d33>=this[_0x439a89(0x5d5)][_0x439a89(0x294)]&&_0x562d33<=this[_0x439a89(0x5d5)][_0x439a89(0x26a)]&&_0x1f84e6>=this[_0x439a89(0x5d5)][_0x439a89(0x2b2)]&&_0x1f84e6<=this[_0x439a89(0x5d5)][_0x439a89(0x4e5)]){this[_0x439a89(0x20a)]({'hovered':!0x0});return;}this[_0x439a89(0x20a)]({'hovered':!0x1});}[_0x2fd58b(0x1fb)](_0x7c4b6e){return!0x1;}[_0x2fd58b(0x3bc)](_0x5f07a2){const _0x2e2369=_0x2fd58b;O['Rect'][_0x2e2369(0x449)](_0x5f07a2,{'width':this[_0x2e2369(0x510)],'height':this['height'],'strokeWidth':bi,'stroke':this[_0x2e2369(0x5b4)],'evented':!0x1,'fill':this[_0x2e2369(0x4e1)]}),this[_0x2e2369(0x207)]&&(_0x5f07a2[_0x2e2369(0x508)](),_0x5f07a2['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']===_0x2e2369(0x238)?0x0:-de),Oe['drawWith'](_0x5f07a2,{'text':this['_name'],'color':this[_0x2e2369(0x5b4)]}),_0x5f07a2[_0x2e2369(0x329)]());}}var Ti=Object[_0x2fd58b(0x38e)],Ri=Object[_0x2fd58b(0x36f)],Oi=(_0x3c5118,_0x41c3c6,_0x1bf6b0,_0x1d142d)=>{const _0x23f3e7=_0x2fd58b;for(var _0x1e242f=_0x1d142d>0x1?void 0x0:_0x1d142d?Ri(_0x41c3c6,_0x1bf6b0):_0x41c3c6,_0x55d160=_0x3c5118[_0x23f3e7(0x598)]-0x1,_0x4b7d08;_0x55d160>=0x0;_0x55d160--)(_0x4b7d08=_0x3c5118[_0x55d160])&&(_0x1e242f=(_0x1d142d?_0x4b7d08(_0x41c3c6,_0x1bf6b0,_0x1e242f):_0x4b7d08(_0x1e242f))||_0x1e242f);return _0x1d142d&&_0x1e242f&&Ti(_0x41c3c6,_0x1bf6b0,_0x1e242f),_0x1e242f;},$e=(_0x35b0f5,_0x2b2564)=>(_0x2fefa6,_0x306e6f)=>_0x2b2564(_0x2fefa6,_0x306e6f,_0x35b0f5);const Di=0x1389;let We=class extends a[_0x2fd58b(0x5ff)]{constructor(_0x2ae430,_0x17b4ac,_0x1ca0bf,_0x4d4755){const _0x405403=_0x2fd58b;super(),u(this,_0x405403(0x54f),new Set()),u(this,_0x405403(0x37c),null),(this['_context']=_0x2ae430,this[_0x405403(0x1f1)]=_0x17b4ac,this[_0x405403(0x280)]=_0x1ca0bf,this['_themeService']=_0x4d4755,this[_0x405403(0x2fa)]());}[_0x2fd58b(0x2fa)](){const _0x399a08=_0x2fd58b;this[_0x399a08(0x1f1)]['currentSkeleton$'][_0x399a08(0x50b)](E[_0x399a08(0x3f7)](this[_0x399a08(0x328)]),E[_0x399a08(0x427)](_0x36b666=>{const _0x5c97e0=_0x399a08;if(_0x36b666){const _0x475b8a=_0x36b666[_0x5c97e0(0x292)];return v[_0x5c97e0(0x2f8)](this[_0x5c97e0(0x280)][_0x5c97e0(0x4b0)](this[_0x5c97e0(0x4c1)][_0x5c97e0(0x401)]),this[_0x5c97e0(0x31a)][_0x5c97e0(0x1f8)])[_0x5c97e0(0x50b)](E['map'](([_0x52c5bb,_0x4ac819])=>{const _0x1622b2=new Map();return _0x52c5bb['forEach']((_0x335c44,_0x23536d)=>{const _0x503e8c=_0x4bd5;if(_0x335c44[_0x503e8c(0x539)]===_0x475b8a){const _0x357529={..._0x335c44};_0x357529[_0x503e8c(0x3a9)]=_0x4ac819[_0x335c44[_0x503e8c(0x3a9)]],_0x1622b2['set'](_0x23536d,_0x357529);}}),{'skeleton':_0x36b666,'cursors':_0x1622b2};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x390d64,cursors:_0x580b8d})=>{const _0x279f10=_0x399a08;this[_0x279f10(0x2c5)](),_0x390d64&&this['_updateCollabCursors'](_0x390d64,_0x580b8d);}),this[_0x399a08(0x1f1)][_0x399a08(0x608)]['subscribe'](_0x165fec=>{const _0x122fbf=_0x399a08;if(_0x165fec==null)return;const {skeleton:_0x3914b2}=_0x165fec,{scene:_0x2a2279}=this[_0x122fbf(0x4c1)];_0x2a2279[_0x122fbf(0x3a7)][_0x122fbf(0x21e)](a[_0x122fbf(0x44e)](_0x1ecede=>{const _0x4068c1=_0x122fbf;var _0x5600ee,_0x27d514;const {offsetX:_0x4bd970,offsetY:_0x5177c4}=_0x1ecede,{x:_0x21332c,y:_0x399fc6}=_0x2a2279[_0x4068c1(0x570)](O[_0x4068c1(0x56d)][_0x4068c1(0x56a)]([_0x4bd970,_0x5177c4])),{scaleX:_0x343df0,scaleY:_0x2795d2}=_0x2a2279[_0x4068c1(0x26c)](),_0x51837a=_0x2a2279[_0x4068c1(0x2b8)](se[_0x4068c1(0x3b7)][_0x4068c1(0x3f6)]),_0x5860ae=_0x2a2279[_0x4068c1(0x230)](O[_0x4068c1(0x56d)][_0x4068c1(0x56a)]([_0x21332c,_0x399fc6]),_0x51837a),_0x5ba4d1=_0x3914b2[_0x4068c1(0x2ec)](_0x4bd970,_0x5177c4,_0x343df0,_0x2795d2,_0x5860ae);((_0x5600ee=this['_lastPointer'])==null?void 0x0:_0x5600ee[_0x4068c1(0x448)])===_0x5ba4d1[_0x4068c1(0x448)]&&((_0x27d514=this['_lastPointer'])==null?void 0x0:_0x27d514[_0x4068c1(0x5af)])===_0x5ba4d1[_0x4068c1(0x5af)]||this[_0x4068c1(0x54f)][_0x4068c1(0x2df)](_0x215d61=>{_0x215d61['onMouseMove'](_0x5ba4d1);});},0x64));});}[_0x2fd58b(0x34a)](_0x1116bb,_0x3940d1){const _0x5c8417=_0x2fd58b;var _0x5b0ef3;const _0x1cdd2a=(_0x5b0ef3=this[_0x5c8417(0x1f1)]['getCurrent']())==null?void 0x0:_0x5b0ef3[_0x5c8417(0x400)];if(!_0x1cdd2a)return;const _0x3fdad0=this[_0x5c8417(0x4d8)]();if(!_0x3fdad0)return;this[_0x5c8417(0x54f)]['forEach'](_0xf1ffbc=>{_0xf1ffbc['makeDirty']();});const {scene:_0x22051e}=_0x3fdad0,_0x9aa246=yi(Array['from'](_0x3940d1['values']()))[_0x5c8417(0x3b0)](_0x3c06f8=>{const _0x15dd57=_0x5c8417,{color:_0x4e5ebb,range:_0xa4e71e,name:_0x442e02,selection:_0x4191db,sheetID:_0x4ba22e}=_0x3c06f8,{startColumn:_0x503082,startRow:_0x10b5cb,endColumn:_0xcd7064,endRow:_0x48abb0}=_0xa4e71e,_0x1a7096=se['getCoordByCell'](_0x10b5cb,_0x503082,_0x22051e,_0x1cdd2a),_0x117c83=se['getCoordByCell'](_0x48abb0,_0xcd7064,_0x22051e,_0x1cdd2a),{columnHeaderHeightAndMarginTop:_0x45d8db}=_0x1cdd2a,{startX:_0x386b97,startY:_0x47f46b}=_0x1a7096,{endX:_0xc862db,endY:_0x25fc76}=_0x117c83,_0x3250ad=_0xc862db-_0x386b97,_0x599226=_0x25fc76-_0x47f46b,_0x87553f={'labelPosition':_0x47f46b-_0x45d8db>=de?_0x15dd57(0x53a):'bottom','sheetID':_0x4ba22e,'range':_0xa4e71e,'color':_0x4e5ebb,'name':_0x442e02,'selection':_0x4191db,'left':_0x386b97,'top':_0x47f46b,'width':_0x3250ad,'height':_0x599226,'evented':!0x1,'zIndex':Di};return new Pt(_0x442e02,_0x87553f);});_0x22051e['addObjects'](_0x9aa246,Ei),this[_0x5c8417(0x54f)]=new Set(_0x9aa246);}[_0x2fd58b(0x2c5)](){const _0x15d7b2=_0x2fd58b;var _0x14bc09;(_0x14bc09=this[_0x15d7b2(0x54f)])==null||_0x14bc09[_0x15d7b2(0x2df)](_0x1ff2a0=>_0x1ff2a0[_0x15d7b2(0x40b)]());}[_0x2fd58b(0x4d8)](){const _0x59e2f3=_0x2fd58b;return se['getSheetObject'](this[_0x59e2f3(0x4c1)][_0x59e2f3(0x3fa)],this[_0x59e2f3(0x4c1)]);}};We=Oi([$e(0x1,a['Inject'](se[_0x2fd58b(0x5f0)])),$e(0x2,a[_0x2fd58b(0x2c2)](ne)),$e(0x3,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x484)]))],We);function yi(_0x2fe941){const _0x1297ef=_0x2fd58b,_0x2f32d0=new Map();return _0x2fe941[_0x1297ef(0x2df)](_0x29b6ed=>{const _0x3b7a3c=_0x1297ef;if(_0x2f32d0['has'](_0x29b6ed[_0x3b7a3c(0x554)])){const _0x4e9a27=_0x2f32d0[_0x3b7a3c(0x5e1)](_0x29b6ed[_0x3b7a3c(0x554)]);_0x4e9a27[_0x3b7a3c(0x351)]+=',\x20'+_0x29b6ed[_0x3b7a3c(0x351)];}else _0x2f32d0[_0x3b7a3c(0x57a)](_0x29b6ed[_0x3b7a3c(0x554)],_0x29b6ed);}),Array['from'](_0x2f32d0[_0x1297ef(0x38d)]());}var N=function(){const _0x210279=_0x2fd58b;return N=Object['assign']||function(_0x3c88f6){const _0x10306d=_0x4bd5;for(var _0x2da3c9,_0x4f6a69=0x1,_0x59cd2f=arguments['length'];_0x4f6a69<_0x59cd2f;_0x4f6a69++){_0x2da3c9=arguments[_0x4f6a69];for(var _0x4da257 in _0x2da3c9)Object[_0x10306d(0x35f)][_0x10306d(0x234)]['call'](_0x2da3c9,_0x4da257)&&(_0x3c88f6[_0x4da257]=_0x2da3c9[_0x4da257]);}return _0x3c88f6;},N[_0x210279(0x2d1)](this,arguments);},Ui=function(_0x40b979,_0x4f5079){const _0x2df477=_0x2fd58b;var _0x5629b9={};for(var _0x4f266b in _0x40b979)Object[_0x2df477(0x35f)][_0x2df477(0x234)]['call'](_0x40b979,_0x4f266b)&&_0x4f5079[_0x2df477(0x559)](_0x4f266b)<0x0&&(_0x5629b9[_0x4f266b]=_0x40b979[_0x4f266b]);if(_0x40b979!=null&&typeof Object['getOwnPropertySymbols']==_0x2df477(0x457)){for(var _0x48e8d0=0x0,_0x4f266b=Object['getOwnPropertySymbols'](_0x40b979);_0x48e8d0<_0x4f266b[_0x2df477(0x598)];_0x48e8d0++)_0x4f5079[_0x2df477(0x559)](_0x4f266b[_0x48e8d0])<0x0&&Object['prototype'][_0x2df477(0x417)][_0x2df477(0x321)](_0x40b979,_0x4f266b[_0x48e8d0])&&(_0x5629b9[_0x4f266b[_0x48e8d0]]=_0x40b979[_0x4f266b[_0x48e8d0]]);}return _0x5629b9;},Ze=P[_0x2fd58b(0x385)](function(_0x49ab82,_0x40297c){const _0x3d5368=_0x2fd58b;var _0x37ace2=_0x49ab82[_0x3d5368(0x546)],_0xad1313=_0x49ab82['id'],_0x3c81da=_0x49ab82[_0x3d5368(0x453)],_0x5dfdf5=_0x49ab82['extend'],_0x3af411=Ui(_0x49ab82,[_0x3d5368(0x546),'id',_0x3d5368(0x453),'extend']),_0x45ffe8=_0x3d5368(0x519)[_0x3d5368(0x577)](_0xad1313,'\x20')[_0x3d5368(0x577)](_0x3c81da||'')[_0x3d5368(0x3cc)](),_0x5075d5=P[_0x3d5368(0x5e8)]('_'[_0x3d5368(0x577)](Mi()));return wt(_0x37ace2,''[_0x3d5368(0x577)](_0xad1313),{'defIds':_0x37ace2[_0x3d5368(0x438)],'idSuffix':_0x5075d5[_0x3d5368(0x431)]},N({'ref':_0x40297c,'className':_0x45ffe8},_0x3af411),_0x5dfdf5);});function wt(_0x1332ab,_0xbe6e7a,_0x381495,_0x1cdb58,_0x532911){const _0x23cccf=_0x2fd58b;return P[_0x23cccf(0x2b5)](_0x1332ab[_0x23cccf(0x355)],N(N({'key':_0xbe6e7a},Pi(_0x1332ab,_0x381495,_0x532911)),_0x1cdb58),(wi(_0x1332ab,_0x381495)[_0x23cccf(0x407)]||[])[_0x23cccf(0x3b0)](function(_0xe86b4,_0x1cfae1){const _0x2aeb2d=_0x23cccf;return wt(_0xe86b4,''['concat'](_0xbe6e7a,'-')[_0x2aeb2d(0x577)](_0x1332ab[_0x2aeb2d(0x355)],'-')['concat'](_0x1cfae1),_0x381495,void 0x0,_0x532911);}));}function Pi(_0x114537,_0x40faad,_0xb860ba){const _0x25878a=_0x2fd58b;var _0x1903a3=N({},_0x114537['attrs']);_0xb860ba!=null&&_0xb860ba['colorChannel1']&&_0x1903a3[_0x25878a(0x3a0)]===_0x25878a(0x203)&&(_0x1903a3[_0x25878a(0x3a0)]=_0xb860ba[_0x25878a(0x203)]);var _0x41a37f=_0x40faad['defIds'];return!_0x41a37f||_0x41a37f['length']===0x0||(_0x114537[_0x25878a(0x355)]===_0x25878a(0x515)&&_0x1903a3[_0x25878a(0x25c)]&&(_0x1903a3[_0x25878a(0x25c)]=_0x1903a3[_0x25878a(0x25c)]+_0x40faad[_0x25878a(0x2cb)]),Object[_0x25878a(0x56e)](_0x1903a3)[_0x25878a(0x2df)](function(_0x4bfad8){const _0x27b37f=_0x25878a;var _0x223e7b=_0x4bfad8[0x0],_0x2a2d9e=_0x4bfad8[0x1];typeof _0x2a2d9e==_0x27b37f(0x27d)&&(_0x1903a3[_0x223e7b]=_0x2a2d9e[_0x27b37f(0x4a9)](/url\(#(.*)\)/,_0x27b37f(0x275)[_0x27b37f(0x577)](_0x40faad['idSuffix'],')')));})),_0x1903a3;}function wi(_0x58bf63,_0x1717fd){const _0x3ac6a9=_0x2fd58b;var _0xfcfff3,_0x365b42=_0x1717fd['defIds'];return!_0x365b42||_0x365b42[_0x3ac6a9(0x598)]===0x0?_0x58bf63:_0x58bf63[_0x3ac6a9(0x355)]===_0x3ac6a9(0x3d8)&&(!((_0xfcfff3=_0x58bf63['children'])===null||_0xfcfff3===void 0x0)&&_0xfcfff3[_0x3ac6a9(0x598)])?N(N({},_0x58bf63),{'children':_0x58bf63[_0x3ac6a9(0x407)][_0x3ac6a9(0x3b0)](function(_0x220eba){const _0x308ee4=_0x3ac6a9;return typeof _0x220eba[_0x308ee4(0x51b)]['id']==_0x308ee4(0x27d)&&_0x365b42&&_0x365b42['indexOf'](_0x220eba[_0x308ee4(0x51b)]['id'])>-0x1?N(N({},_0x220eba),{'attrs':N(N({},_0x220eba['attrs']),{'id':_0x220eba['attrs']['id']+_0x1717fd[_0x308ee4(0x2cb)]})}):_0x220eba;})}):_0x58bf63;}function Mi(){const _0xe2d6f9=_0x2fd58b;return Math['random']()[_0xe2d6f9(0x24e)](0x24)['substring'](0x2,0x8);}Ze[_0x2fd58b(0x3ee)]=_0x2fd58b(0x372);var Ni={'tag':_0x2fd58b(0x501),'attrs':{'fill':_0x2fd58b(0x388),'viewBox':_0x2fd58b(0x2b3),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2fd58b(0x518)},'children':[{'tag':_0x2fd58b(0x5ad),'attrs':{'stroke':_0x2fd58b(0x59c),'d':_0x2fd58b(0x5ba),'strokeLinecap':_0x2fd58b(0x291),'strokeLinejoin':_0x2fd58b(0x291),'strokeWidth':1.2}}]},{'tag':_0x2fd58b(0x3d8),'attrs':{},'children':[{'tag':_0x2fd58b(0x2aa),'attrs':{'id':_0x2fd58b(0x2ae)},'children':[{'tag':_0x2fd58b(0x5ad),'attrs':{'fill':'#fff','d':_0x2fd58b(0x37a)}}]}]}],'defIds':[_0x2fd58b(0x2ae)]},Mt=P[_0x2fd58b(0x385)](function(_0x443703,_0x21a704){const _0x516de1=_0x2fd58b;return P['createElement'](Ze,Object[_0x516de1(0x255)]({},_0x443703,{'id':_0x516de1(0x2a1),'ref':_0x21a704,'icon':Ni}));});Mt[_0x2fd58b(0x3ee)]='OffLineSingle';var Ai={'tag':_0x2fd58b(0x501),'attrs':{'fill':_0x2fd58b(0x388),'viewBox':_0x2fd58b(0x36a),'width':_0x2fd58b(0x210),'height':_0x2fd58b(0x210)},'children':[{'tag':'g','attrs':{'clipPath':_0x2fd58b(0x422)},'children':[{'tag':_0x2fd58b(0x5ad),'attrs':{'stroke':_0x2fd58b(0x59c),'d':_0x2fd58b(0x337),'strokeLinecap':_0x2fd58b(0x291),'strokeLinejoin':_0x2fd58b(0x291),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x2fd58b(0x2aa),'attrs':{'id':_0x2fd58b(0x4c8)},'children':[{'tag':'path','attrs':{'fill':_0x2fd58b(0x445),'d':_0x2fd58b(0x37a),'transform':_0x2fd58b(0x555)}}]}]}],'defIds':[_0x2fd58b(0x4c8)]},Nt=P[_0x2fd58b(0x385)](function(_0x2d9815,_0xd22581){const _0xffb501=_0x2fd58b;return P[_0xffb501(0x2b5)](Ze,Object[_0xffb501(0x255)]({},_0x2d9815,{'id':_0xffb501(0x394),'ref':_0xd22581,'icon':Ai}));});Nt[_0x2fd58b(0x3ee)]=_0x2fd58b(0x23c);function At(_0x14db2a){const _0x98367f=_0x2fd58b;var _0x271558,_0xb02ab9,_0x5b561d='';if(typeof _0x14db2a=='string'||typeof _0x14db2a==_0x98367f(0x231))_0x5b561d+=_0x14db2a;else{if(typeof _0x14db2a=='object'){if(Array[_0x98367f(0x4eb)](_0x14db2a)){var _0x40ba86=_0x14db2a['length'];for(_0x271558=0x0;_0x271558<_0x40ba86;_0x271558++)_0x14db2a[_0x271558]&&(_0xb02ab9=At(_0x14db2a[_0x271558]))&&(_0x5b561d&&(_0x5b561d+='\x20'),_0x5b561d+=_0xb02ab9);}else{for(_0xb02ab9 in _0x14db2a)_0x14db2a[_0xb02ab9]&&(_0x5b561d&&(_0x5b561d+='\x20'),_0x5b561d+=_0xb02ab9);}}}return _0x5b561d;}function Li(){const _0x49bac7=_0x2fd58b;for(var _0x3b0dfe,_0x5a7ef2,_0x110f6e=0x0,_0x407e03='',_0x360aef=arguments[_0x49bac7(0x598)];_0x110f6e<_0x360aef;_0x110f6e++)(_0x3b0dfe=arguments[_0x110f6e])&&(_0x5a7ef2=At(_0x3b0dfe))&&(_0x407e03&&(_0x407e03+='\x20'),_0x407e03+=_0x5a7ef2);return _0x407e03;}const ji='univer-online-status-icon',$i=_0x2fd58b(0x2d5),Hi=_0x2fd58b(0x245),xi=_0x2fd58b(0x310),ki=_0x2fd58b(0x456),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x2ad134){const _0x47b512=_0x2fd58b;switch(_0x2ad134){case U[_0x47b512(0x4fe)]:return'collabStatus.offline';case U[_0x47b512(0x3c4)]:return _0x47b512(0x217);case U[_0x47b512(0x4cd)]:return _0x47b512(0x4fd);case U[_0x47b512(0x5a0)]:return'collabStatus.notCollab';case U[_0x47b512(0x4f2)]:case U[_0x47b512(0x39b)]:case U[_0x47b512(0x404)]:return _0x47b512(0x584);case U[_0x47b512(0x464)]:return _0x47b512(0x3bd);}}function Lt(_0x464c17){const _0x515065=_0x2fd58b,{status$:_0x24a8af}=_0x464c17,_0x131b7a=A[_0x515065(0x547)](_0x24a8af,U[_0x515065(0x5a0)]),_0x2fa74e=a['useDependency'](a[_0x515065(0x57f)]),_0x9e9575=a[_0x515065(0x2e7)](exports[_0x515065(0x370)]),_0x33878b=_0x131b7a!==U[_0x515065(0x4fe)],_0x219a41=_0x2fa74e['t'](Bi(_0x131b7a)),_0x4c640b=Li(he[_0x515065(0x223)],{[he[_0x515065(0x264)]]:_0x33878b,[he[_0x515065(0x40c)]]:!_0x33878b}),_0x54a48f=_0x33878b?P[_0x515065(0x2b5)](Nt,null):P['createElement'](Mt,null),_0x216cde=P[_0x515065(0x469)](()=>{const _0x295321=_0x515065;_0x33878b||_0x9e9575[_0x295321(0x22f)]();},[_0x33878b,_0x9e9575]);function _0x2ef59a(){const _0x18e597=_0x515065;return P[_0x18e597(0x2b5)](_0x18e597(0x226),{'className':_0x4c640b,'onClick':_0x216cde},P[_0x18e597(0x2b5)]('div',{'className':he[_0x18e597(0x4c4)]},_0x54a48f),P[_0x18e597(0x2b5)]('div',{'className':he[_0x18e597(0x31d)]},_0x219a41));}return _0x33878b?_0x2ef59a():P['createElement'](q['Tooltip'],{'title':_0x2fa74e['t']('collab-client.tooltip.reconnect')},_0x2ef59a());}var Vi=Object[_0x2fd58b(0x38e)],Wi=Object[_0x2fd58b(0x36f)],Fi=(_0x22c830,_0x5666a9,_0x4e70d7,_0x274b96)=>{const _0x112b98=_0x2fd58b;for(var _0x45a7cd=_0x274b96>0x1?void 0x0:_0x274b96?Wi(_0x5666a9,_0x4e70d7):_0x5666a9,_0x12f9f7=_0x22c830[_0x112b98(0x598)]-0x1,_0x41336d;_0x12f9f7>=0x0;_0x12f9f7--)(_0x41336d=_0x22c830[_0x12f9f7])&&(_0x45a7cd=(_0x274b96?_0x41336d(_0x5666a9,_0x4e70d7,_0x45a7cd):_0x41336d(_0x45a7cd))||_0x45a7cd);return _0x274b96&&_0x45a7cd&&Vi(_0x5666a9,_0x4e70d7,_0x45a7cd),_0x45a7cd;},ge=(_0x45fc27,_0x1b97f3)=>(_0x5696cd,_0x391f3b)=>_0x1b97f3(_0x5696cd,_0x391f3b,_0x45fc27);exports[_0x2fd58b(0x214)]=class extends a[_0x2fd58b(0x560)]{constructor(_0x103c58,_0x51519b,_0x3a0bbe,_0x5df554){const _0x2d3b11=_0x2fd58b;super(),u(this,_0x2d3b11(0x22a),new v['BehaviorSubject'](U[_0x2d3b11(0x5a0)])),(this[_0x2d3b11(0x248)]=_0x103c58,this[_0x2d3b11(0x2fc)]=_0x51519b,this[_0x2d3b11(0x227)]=_0x3a0bbe,this[_0x2d3b11(0x30f)]=_0x5df554,this[_0x2d3b11(0x549)](),this['_initStatusListener']());}[_0x2fd58b(0x320)](){const _0x5dad4c=_0x2fd58b;this[_0x5dad4c(0x4de)](this[_0x5dad4c(0x248)][_0x5dad4c(0x2a3)][_0x5dad4c(0x50b)](v[_0x5dad4c(0x427)](()=>{const _0x55af3a=_0x5dad4c,_0x3ce062=this[_0x55af3a(0x248)]['getFocusedUnit']();return _0x3ce062?this[_0x55af3a(0x30f)]['getCollabEntity$'](_0x3ce062['getUnitId']()):v['of'](null);}),v[_0x5dad4c(0x427)](_0x206e7b=>_0x206e7b?_0x206e7b[_0x5dad4c(0x5fa)]:v['of'](U['NOT_COLLAB'])))['subscribe'](_0x56ece0=>{const _0x410de2=_0x5dad4c;this['_status$'][_0x410de2(0x46b)](_0x56ece0);}));}[_0x2fd58b(0x549)](){const _0x48cc11=_0x2fd58b;this[_0x48cc11(0x4de)](this[_0x48cc11(0x2fc)][_0x48cc11(0x594)](A[_0x48cc11(0x341)][_0x48cc11(0x30c)],()=>a['connectInjector'](Gi({'status$':this['_status$']['asObservable']()}),this[_0x48cc11(0x227)])));}},exports[_0x2fd58b(0x214)]=Fi([ge(0x0,a['IUniverInstanceService']),ge(0x1,A['IUIPartsService']),ge(0x2,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),ge(0x3,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x2ba)]))],exports[_0x2fd58b(0x214)]);function Gi(_0x203a4d){const {status$:_0x438046}=_0x203a4d;return function(){const _0x288ac2=_0x4bd5;return P[_0x288ac2(0x2b5)](Lt,{'status$':_0x438046});};}const Qe=a[_0x2fd58b(0x215)](_0x2fd58b(0x45e));var Yi=Object['defineProperty'],Ki=Object[_0x2fd58b(0x36f)],Xi=(_0x2a8597,_0xfc3a7d,_0x22ef63,_0x5cecdf)=>{const _0x2a6aa6=_0x2fd58b;for(var _0x4e92f4=_0x5cecdf>0x1?void 0x0:_0x5cecdf?Ki(_0xfc3a7d,_0x22ef63):_0xfc3a7d,_0x544ad8=_0x2a8597[_0x2a6aa6(0x598)]-0x1,_0xecdbbd;_0x544ad8>=0x0;_0x544ad8--)(_0xecdbbd=_0x2a8597[_0x544ad8])&&(_0x4e92f4=(_0x5cecdf?_0xecdbbd(_0xfc3a7d,_0x22ef63,_0x4e92f4):_0xecdbbd(_0x4e92f4))||_0x4e92f4);return _0x5cecdf&&_0x4e92f4&&Yi(_0xfc3a7d,_0x22ef63,_0x4e92f4),_0x4e92f4;},te=(_0xfb3e6b,_0x2d1082)=>(_0xb667e4,_0x2cedfc)=>_0x2d1082(_0xb667e4,_0x2cedfc,_0xfb3e6b);exports[_0x2fd58b(0x5de)]=class extends a['RxDisposable']{constructor(_0x3ac413,_0x17fb36,_0x57f920,_0x44ee66,_0x39faa8,_0x53179c){const _0x4ea6c4=_0x2fd58b;super(),this[_0x4ea6c4(0x462)]=_0x3ac413,this['_logService']=_0x17fb36,this[_0x4ea6c4(0x502)]=_0x57f920,this[_0x4ea6c4(0x470)]=_0x44ee66,this[_0x4ea6c4(0x585)]=_0x39faa8,_0x53179c?_0x53179c==null||_0x53179c[_0x4ea6c4(0x4d6)]()[_0x4ea6c4(0x265)](()=>this['_init']()):(this[_0x4ea6c4(0x3b8)][_0x4ea6c4(0x513)]('[DataLoaderController]',_0x4ea6c4(0x220)),this[_0x4ea6c4(0x2fa)]());}async[_0x2fd58b(0x2fa)](){const _0x5c9895=_0x2fd58b,_0x4f1607=this['_urlService'][_0x5c9895(0x43a)](_0x5c9895(0x3fa)),_0x5c76aa=this[_0x5c9895(0x462)][_0x5c9895(0x43a)]('type');if(!_0x4f1607||!_0x5c76aa){this[_0x5c9895(0x3b8)][_0x5c9895(0x513)](_0x5c9895(0x529),_0x5c9895(0x2c7));return;}switch(Number(_0x5c76aa)){case $[_0x5c9895(0x29b)]:{const _0x5af741=await this[_0x5c9895(0x59f)](_0x4f1607);this[_0x5c9895(0x204)](_0x5af741);break;}case $[_0x5c9895(0x2ea)]:{await this[_0x5c9895(0x34d)](_0x4f1607);break;}default:{this[_0x5c9895(0x3b8)]['error'](_0x5c9895(0x529),_0x5c9895(0x49e));break;}}}async['_setupSubUnitSync'](_0x20f733){const _0xee366b=_0x2fd58b;await this['_updateSubUnitFromURLParams'](_0x20f733),_0x20f733[_0xee366b(0x2e9)][_0xee366b(0x50b)](v[_0xee366b(0x3f7)](this[_0xee366b(0x328)]))[_0xee366b(0x384)](_0x2d2dc7=>{const _0x45d39f=_0xee366b;_0x2d2dc7&&this[_0x45d39f(0x211)](_0x2d2dc7);}),this['_urlService'][_0xee366b(0x397)][_0xee366b(0x50b)](v[_0xee366b(0x3f7)](this[_0xee366b(0x328)]))[_0xee366b(0x384)](()=>this['_updateSubUnitFromURLParams'](_0x20f733));}[_0x2fd58b(0x211)](_0x11e648,_0x580cb6=!0x1){const _0x148593=_0x2fd58b,_0x2044ce=this[_0x148593(0x462)][_0x148593(0x43a)](_0x148593(0x35b));_0x11e648[_0x148593(0x44b)]()!==_0x2044ce&&this[_0x148593(0x462)][_0x148593(0x498)]('subunit',_0x11e648[_0x148593(0x44b)](),_0x580cb6);}async[_0x2fd58b(0x2d8)](_0x2a8f7a){const _0x5dd7ec=_0x2fd58b;var _0x4e260e;const _0x54f0ca=this[_0x5dd7ec(0x462)][_0x5dd7ec(0x43a)](_0x5dd7ec(0x35b));if(!_0x54f0ca||!_0x2a8f7a['getSheetBySheetId'](_0x54f0ca)){const _0x561a46=_0x2a8f7a['getUnhiddenWorksheets']()[0x0],_0x4738fc=_0x2a8f7a['getSheetBySheetId'](_0x561a46);if(!_0x4738fc)return;this[_0x5dd7ec(0x211)](_0x4738fc,!0x0),await this['_commandService'][_0x5dd7ec(0x3a4)](C[_0x5dd7ec(0x44d)]['id'],{'unitId':_0x2a8f7a['getUnitId'](),'subUnitId':_0x561a46});return;}((_0x4e260e=_0x2a8f7a[_0x5dd7ec(0x47f)]())==null?void 0x0:_0x4e260e['getSheetId']())!==_0x54f0ca&&await this[_0x5dd7ec(0x502)][_0x5dd7ec(0x3a4)](C[_0x5dd7ec(0x44d)]['id'],{'unitId':_0x2a8f7a[_0x5dd7ec(0x478)](),'subUnitId':_0x54f0ca});}async['_loadSheet'](_0x5eb721){const _0x3415d2=_0x2fd58b;let _0x3c8e7d=0x0;const _0x5c9103=await this[_0x3415d2(0x470)][_0x3415d2(0x3e2)](_0x5eb721);return _0x5c9103&&(_0x5c9103[_0x3415d2(0x3ae)]||_0x5c9103[_0x3415d2(0x3e7)]['length']!==0x0)&&(_0x3c8e7d=_0x5c9103['rev']),_0x3c8e7d===0x0&&this[_0x3415d2(0x3b8)][_0x3415d2(0x513)](_0x3415d2(0x529),_0x3415d2(0x3ca)),this[_0x3415d2(0x585)][_0x3415d2(0x315)](_0x5eb721,_0x3c8e7d);}async[_0x2fd58b(0x34d)](_0x19e69){const _0x4c0f8a=_0x2fd58b;let _0x4c00b7=0x0;const _0xe28bb3=await this[_0x4c0f8a(0x470)][_0x4c0f8a(0x3e2)](_0x19e69);return _0xe28bb3&&(_0xe28bb3[_0x4c0f8a(0x3ae)]||_0xe28bb3[_0x4c0f8a(0x3e7)][_0x4c0f8a(0x598)]!==0x0)&&(_0x4c00b7=_0xe28bb3['rev']),_0x4c00b7===0x0&&this[_0x4c0f8a(0x3b8)][_0x4c0f8a(0x513)]('[DataLoaderController]',_0x4c0f8a(0x3ca)),this[_0x4c0f8a(0x585)][_0x4c0f8a(0x2b7)](_0x19e69,_0x4c00b7);}},exports[_0x2fd58b(0x5de)]=Xi([te(0x0,Qe),te(0x1,a['ILogService']),te(0x2,a[_0x2fd58b(0x4b6)]),te(0x3,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x208)])),te(0x4,a['Inject'](_[_0x2fd58b(0x1fa)])),te(0x5,a[_0x2fd58b(0x278)](Kt[_0x2fd58b(0x5c0)]))],exports[_0x2fd58b(0x5de)]);var qi=Object[_0x2fd58b(0x38e)],zi=Object[_0x2fd58b(0x36f)],Ji=(_0x422382,_0x587c5b,_0x4b1932,_0x5783e7)=>{const _0x36a93e=_0x2fd58b;for(var _0x3e7184=_0x5783e7>0x1?void 0x0:_0x5783e7?zi(_0x587c5b,_0x4b1932):_0x587c5b,_0x41ce37=_0x422382[_0x36a93e(0x598)]-0x1,_0x17a90d;_0x41ce37>=0x0;_0x41ce37--)(_0x17a90d=_0x422382[_0x41ce37])&&(_0x3e7184=(_0x5783e7?_0x17a90d(_0x587c5b,_0x4b1932,_0x3e7184):_0x17a90d(_0x3e7184))||_0x3e7184);return _0x5783e7&&_0x3e7184&&qi(_0x587c5b,_0x4b1932,_0x3e7184),_0x3e7184;},_t=(_0x5480f9,_0x5c93f7)=>(_0x5f2715,_0x204cac)=>_0x5c93f7(_0x5f2715,_0x204cac,_0x5480f9);const Zi='DEFAULT_FILE_NAME',Qi=_0x2fd58b(0x47a);let Ce=class extends a['Disposable']{constructor(_0x1c9433,_0x414425){const _0x1cc028=_0x2fd58b;super(),this[_0x1cc028(0x248)]=_0x1c9433,this['_configService']=_0x414425,this[_0x1cc028(0x2fa)]();}['_init'](){const _0x236813=_0x2fd58b;this[_0x236813(0x4de)](this[_0x236813(0x248)]['focused$'][_0x236813(0x384)](()=>{const _0x52ee94=_0x236813;var _0xaf9bce;const _0x2e595a=this[_0x52ee94(0x248)][_0x52ee94(0x425)]();let _0x15fb04=(_0xaf9bce=this['_configService'][_0x52ee94(0x54a)](Zi))!=null?_0xaf9bce:Qi;_0x2e595a instanceof a[_0x52ee94(0x3a1)]&&(_0x15fb04=_0x2e595a[_0x52ee94(0x351)]),document['title']=_0x15fb04;}));}};Ce=Ji([_t(0x0,a[_0x2fd58b(0x387)]),_t(0x1,a[_0x2fd58b(0x5bf)])],Ce);var en=Object['defineProperty'],tn=Object[_0x2fd58b(0x36f)],sn=(_0x28d13f,_0x508753,_0x222040,_0x1ea99d)=>{const _0xb4e965=_0x2fd58b;for(var _0x2df6e1=_0x1ea99d>0x1?void 0x0:_0x1ea99d?tn(_0x508753,_0x222040):_0x508753,_0x56188c=_0x28d13f[_0xb4e965(0x598)]-0x1,_0x535912;_0x56188c>=0x0;_0x56188c--)(_0x535912=_0x28d13f[_0x56188c])&&(_0x2df6e1=(_0x1ea99d?_0x535912(_0x508753,_0x222040,_0x2df6e1):_0x535912(_0x2df6e1))||_0x2df6e1);return _0x1ea99d&&_0x2df6e1&&en(_0x508753,_0x222040,_0x2df6e1),_0x2df6e1;},He=(_0x410a65,_0x39aabe)=>(_0x17da77,_0x3a70a3)=>_0x39aabe(_0x17da77,_0x3a70a3,_0x410a65);let Ee=class{constructor(_0x3d6db1,_0x353e71,_0x42fb22){const _0x436a89=_0x2fd58b;this[_0x436a89(0x41e)]=_0x3d6db1,this['_httpService']=_0x353e71,this[_0x436a89(0x386)]=_0x42fb22,this['init']();}['init'](){const _0x3e0939=_0x2fd58b;this[_0x3e0939(0x52a)][_0x3e0939(0x35a)]({'priority':0x1,'interceptor':(_0x35cdd7,_0x445913)=>_0x445913(_0x35cdd7)[_0x3e0939(0x50b)](v[_0x3e0939(0x5d2)](async _0x7430a7=>{const _0x10a17b=_0x3e0939,_0x497717=_0x7430a7;if(_0x497717['status']===0x191&&window['confirm'](this[_0x10a17b(0x386)]['t'](_0x10a17b(0x5e7)))){const _0x2f3a91=window[_0x10a17b(0x524)](window[_0x10a17b(0x432)][_0x10a17b(0x348)]);window[_0x10a17b(0x432)][_0x10a17b(0x348)]=this[_0x10a17b(0x580)]()+_0x10a17b(0x2e6)+_0x2f3a91;}return _0x497717;}))});}['_getLoginPath'](){const _0x4045e6=_0x2fd58b;var _0x47c853,_0x286fdb;const _0x5f1b22=this[_0x4045e6(0x41e)]['getConfig'](Et),_0x371606=this[_0x4045e6(0x41e)][_0x4045e6(0x54a)](L);return(_0x286fdb=(_0x47c853=_0x371606==null?void 0x0:_0x371606[_0x4045e6(0x481)])!=null?_0x47c853:_0x5f1b22)!=null?_0x286fdb:ns;}};Ee=sn([He(0x0,a[_0x2fd58b(0x5bf)]),He(0x1,a[_0x2fd58b(0x2c2)](w[_0x2fd58b(0x308)])),He(0x2,a[_0x2fd58b(0x2c2)](a['LocaleService']))],Ee);var nn=Object['defineProperty'],rn=Object[_0x2fd58b(0x36f)],on=(_0x3a4014,_0x3233a6,_0x461cc0,_0x126463)=>{const _0x300669=_0x2fd58b;for(var _0x5e4b91=_0x126463>0x1?void 0x0:_0x126463?rn(_0x3233a6,_0x461cc0):_0x3233a6,_0x36c7a4=_0x3a4014[_0x300669(0x598)]-0x1,_0x51672e;_0x36c7a4>=0x0;_0x36c7a4--)(_0x51672e=_0x3a4014[_0x36c7a4])&&(_0x5e4b91=(_0x126463?_0x51672e(_0x3233a6,_0x461cc0,_0x5e4b91):_0x51672e(_0x5e4b91))||_0x5e4b91);return _0x126463&&_0x5e4b91&&nn(_0x3233a6,_0x461cc0,_0x5e4b91),_0x5e4b91;},ut=(_0x4bd20a,_0x36c62c)=>(_0x48b2cc,_0x616f75)=>_0x36c62c(_0x48b2cc,_0x616f75,_0x4bd20a);const jt=_0x2fd58b(0x455),an='/universer-api/authz';exports[_0x2fd58b(0x5d9)]=class extends a[_0x2fd58b(0x560)]{constructor(_0x393bf4,_0x34d048){const _0x17d0d5=_0x2fd58b;super(),this[_0x17d0d5(0x2fe)]=_0x393bf4,this[_0x17d0d5(0x41e)]=_0x34d048,this[_0x17d0d5(0x4b8)]();}[_0x2fd58b(0x4b8)](){const _0x16c388=_0x2fd58b,_0x336143=this;this['disposeWithMe'](this[_0x16c388(0x2fe)][_0x16c388(0x35a)]({'priority':0x3e7,'interceptor':w[_0x16c388(0x4a7)]({'isMatch'(_0x300b73){const _0x301828=_0x16c388;var _0x231ce7;if(_0x300b73[_0x301828(0x2fb)]===_0x301828(0x382)&&((_0x231ce7=_0x300b73[_0x301828(0x5a4)])!=null&&_0x231ce7[_0x301828(0x3f5)])){const {objectID:_0x2218db,objectType:_0x2076d3}=_0x300b73[_0x301828(0x5a4)][_0x301828(0x3f5)]||{};if(!_0x2218db||_0x2076d3===void 0x0)return!0x1;const _0x54041e=_0x336143[_0x301828(0x452)]()+'/'+_0x2076d3+_0x301828(0x3fd)+_0x2218db+_0x301828(0x27a);if(_0x300b73[_0x301828(0x254)]===_0x54041e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5533be){const _0x14651f=_0x16c388;var _0x52c758;return(_0x52c758=_0x5533be['requestParams'])==null?void 0x0:_0x52c758[_0x14651f(0x3f5)];},'mergeParamsToRequest'(_0x1d5bc1,_0x51fefd){const _0x157d78=_0x16c388,_0x343714=_0x336143['_getAPIPrefixPath']()+_0x157d78(0x1fd),_0x423274=_0x1d5bc1[_0x157d78(0x430)]((_0x1e3020,_0x22cf43)=>{const _0x5ece28=_0x157d78,{unitID:_0x3c0654,objectID:_0x5dfa6f,objectType:_0x4a145c,actions:_0x3c2e1d}=_0x22cf43;return _0x1e3020[_0x3c0654]||(_0x1e3020[_0x3c0654]={}),_0x1e3020[_0x3c0654][_0x5dfa6f]||(_0x1e3020[_0x3c0654][_0x5dfa6f]={'objectID':_0x5dfa6f,'objectType':_0x4a145c,'actions':[]}),_0x1e3020[_0x3c0654][_0x5dfa6f][_0x5ece28(0x446)][_0x5ece28(0x4a2)](..._0x3c2e1d),_0x1e3020;},{}),_0x40ac1f=[];for(const _0x2d9942 in _0x423274)for(const _0x565803 in _0x423274[_0x2d9942]){const {actions:_0x47c65d,objectType:_0x30c710}=_0x423274[_0x2d9942][_0x565803],_0x13860e=[...new Set(_0x47c65d)];_0x40ac1f[_0x157d78(0x4a2)]({'unitID':_0x2d9942,'objectID':_0x565803,'objectType':_0x30c710,'actions':_0x13860e});}return new w[(_0x157d78(0x289))](_0x157d78(0x382),_0x343714,{'headers':_0x51fefd[_0x157d78(0x536)],'withCredentials':_0x51fefd[_0x157d78(0x42d)],'responseType':_0x51fefd[_0x157d78(0x497)],'body':{'requests':_0x40ac1f}});}},{'distributeResult'(_0x42f458,_0x46ecc9){const _0x57ae5a=_0x16c388,{objectActions:_0x428ee5}=_0x42f458;return _0x46ecc9[_0x57ae5a(0x3b0)](_0x1ab84e=>{const _0x407404=_0x57ae5a,{unitID:_0x571870,objectID:_0x58aedb,actions:_0x125206}=_0x1ab84e,_0x46a79a=_0x428ee5['find'](_0x577ed2=>_0x577ed2[_0x407404(0x440)]===_0x571870&&_0x577ed2['objectID']===_0x58aedb),_0x5b7942=_0x125206[_0x407404(0x3b0)](_0x13b705=>_0x46a79a==null?void 0x0:_0x46a79a['actions'][_0x407404(0x429)](_0x18cd99=>_0x18cd99[_0x407404(0x3a8)]===_0x13b705))[_0x407404(0x5ab)](_0x3a5755=>!!_0x3a5755);return{'config':_0x1ab84e,'result':{'actions':_0x5b7942,'error':_0x42f458[_0x407404(0x359)]}};});}})}));}['_getAPIPrefixPath'](){const _0x5395dc=_0x2fd58b;var _0x478e87,_0x4b8403;const _0x45db68=this['_configService']['getConfig'](jt),_0x8791a=this[_0x5395dc(0x41e)]['getConfig'](L);return(_0x4b8403=(_0x478e87=_0x8791a==null?void 0x0:_0x8791a[_0x5395dc(0x347)])!=null?_0x478e87:_0x45db68)!=null?_0x4b8403:an;}async[_0x2fd58b(0x4ec)](_0x136de0){const _0xbbb4a2=_0x2fd58b,_0x26b1e5=this[_0xbbb4a2(0x452)]()+'/'+_0x136de0[_0xbbb4a2(0x24b)]+_0xbbb4a2(0x562);return(await this[_0xbbb4a2(0x2fe)]['post'](_0x26b1e5,{'body':_0x136de0}))[_0xbbb4a2(0x3f5)][_0xbbb4a2(0x2d3)]||'';}async[_0x2fd58b(0x253)](_0x268445){const _0x17df00=_0x2fd58b,_0x5b96b9=this[_0x17df00(0x452)]()+_0x17df00(0x571);return(await this[_0x17df00(0x2fe)][_0x17df00(0x450)](_0x5b96b9,{'body':_0x268445}))[_0x17df00(0x3f5)][_0x17df00(0x569)];}async['update'](_0x12d642){const _0x3b29a5=_0x2fd58b,_0xb0a30=this[_0x3b29a5(0x452)]()+'/'+_0x12d642[_0x3b29a5(0x24b)]+_0x3b29a5(0x3fd)+_0x12d642[_0x3b29a5(0x2d3)];await this[_0x3b29a5(0x2fe)][_0x3b29a5(0x368)](_0xb0a30,{'body':_0x12d642});}async['allowed'](_0x1cc316){const _0x36c16e=_0x2fd58b,_0x29e8ac=this[_0x36c16e(0x452)]()+'/'+_0x1cc316['objectType']+'/object/'+_0x1cc316[_0x36c16e(0x2d3)]+_0x36c16e(0x27a);return(await this['_HTTPService'][_0x36c16e(0x450)](_0x29e8ac,{'body':_0x1cc316}))['body']['actions'];}async[_0x2fd58b(0x5c9)](_0x14d0f8){const _0x341d7f=_0x2fd58b,_0x3aff21=this['_getAPIPrefixPath']()+_0x341d7f(0x1fd);return(await this[_0x341d7f(0x2fe)][_0x341d7f(0x450)](_0x3aff21,{'body':{'requests':_0x14d0f8}}))[_0x341d7f(0x3f5)][_0x341d7f(0x3d3)];}async[_0x2fd58b(0x410)](_0x35f5f9){const _0x129d08=_0x2fd58b,_0x10392b=this[_0x129d08(0x452)]()+'/'+_0x35f5f9[_0x129d08(0x24b)]+'/role',_0x379e9b=await this[_0x129d08(0x2fe)][_0x129d08(0x450)](_0x10392b,{'body':_0x35f5f9});return{'roles':_0x379e9b['body']['roles'],'actions':_0x379e9b[_0x129d08(0x3f5)]['actions']};}async[_0x2fd58b(0x306)](_0x3f6f5b){const _0x4853eb=_0x2fd58b,_0xfa1d5d=this[_0x4853eb(0x452)]()+_0x4853eb(0x2cd);await this[_0x4853eb(0x2fe)][_0x4853eb(0x55d)](_0xfa1d5d,{'params':{'collaboratorID':_0x3f6f5b[_0x4853eb(0x586)],'objectID':_0x3f6f5b[_0x4853eb(0x2d3)],'unitID':_0x3f6f5b[_0x4853eb(0x440)]}});}async[_0x2fd58b(0x473)](_0x5de963){const _0x2b04a0=_0x2fd58b,_0xba33c1=this[_0x2b04a0(0x452)]()+_0x2b04a0(0x2cd);await this[_0x2b04a0(0x2fe)][_0x2b04a0(0x3ff)](_0xba33c1,{'body':_0x5de963});}async['createCollaborator'](_0x1e8777){const _0xd4f5ea=_0x2fd58b,_0x2b3e6f=this[_0xd4f5ea(0x452)]()+'/collaborator';await this[_0xd4f5ea(0x2fe)]['post'](_0x2b3e6f,{'body':_0x1e8777});}async[_0x2fd58b(0x3f3)](_0x4476a5){const _0x283e99=_0x2fd58b,_0x45a0e3=this[_0x283e99(0x452)]()+_0x283e99(0x2cd);return(await this['_HTTPService'][_0x283e99(0x5e1)](_0x45a0e3,{'params':{'objectID':_0x4476a5[_0x283e99(0x2d3)],'unitID':_0x4476a5[_0x283e99(0x440)]}}))[_0x283e99(0x3f5)][_0x283e99(0x471)];}async['putCollaborators'](_0x538115){const _0x1cc5b7=_0x2fd58b,_0x433e39=this[_0x1cc5b7(0x452)]()+_0x1cc5b7(0x2cd);await this['_HTTPService'][_0x1cc5b7(0x368)](_0x433e39,{'body':_0x538115});}},exports[_0x2fd58b(0x5d9)]=on([ut(0x0,a[_0x2fd58b(0x2c2)](w[_0x2fd58b(0x308)])),ut(0x1,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x5bf)]))],exports[_0x2fd58b(0x5d9)]);var cn=Object[_0x2fd58b(0x38e)],ln=Object[_0x2fd58b(0x36f)],hn=(_0x12ee97,_0x41aff7,_0x4db71d,_0x19e4e1)=>{const _0x15dc58=_0x2fd58b;for(var _0x53bea3=_0x19e4e1>0x1?void 0x0:_0x19e4e1?ln(_0x41aff7,_0x4db71d):_0x41aff7,_0x239970=_0x12ee97[_0x15dc58(0x598)]-0x1,_0x387f84;_0x239970>=0x0;_0x239970--)(_0x387f84=_0x12ee97[_0x239970])&&(_0x53bea3=(_0x19e4e1?_0x387f84(_0x41aff7,_0x4db71d,_0x53bea3):_0x387f84(_0x53bea3))||_0x53bea3);return _0x19e4e1&&_0x53bea3&&cn(_0x41aff7,_0x4db71d,_0x53bea3),_0x53bea3;},_n=(_0x125047,_0x5046b5)=>(_0x5c9825,_0x308912)=>_0x5046b5(_0x5c9825,_0x308912,_0x125047);let be=class{constructor(_0xf3936){const _0x14d2c0=_0x2fd58b;this['_httpService']=_0xf3936,this[_0x14d2c0(0x38c)]();}[_0x2fd58b(0x38c)](){const _0x263b55=_0x2fd58b;this['_httpService'][_0x263b55(0x35a)]({'interceptor':(_0x7c1b77,_0x2a7467)=>{const _0x17965d=_0x263b55,_0x1f0f8a=_0x7c1b77[_0x17965d(0x536)],_0x566a15=Xt['getAttachHeader']();return _0x566a15&&_0x1f0f8a[_0x17965d(0x57a)]('x-univer-host',_0x566a15),_0x2a7467(_0x7c1b77);}});}};be=hn([_n(0x0,a[_0x2fd58b(0x2c2)](w['HTTPService']))],be);var un=Object[_0x2fd58b(0x38e)],dn=Object[_0x2fd58b(0x36f)],Sn=(_0x25a8fa,_0xe68013,_0x37690d,_0x43794a)=>{const _0x5956f4=_0x2fd58b;for(var _0x32a8a8=_0x43794a>0x1?void 0x0:_0x43794a?dn(_0xe68013,_0x37690d):_0xe68013,_0x1393cc=_0x25a8fa[_0x5956f4(0x598)]-0x1,_0x46144c;_0x1393cc>=0x0;_0x1393cc--)(_0x46144c=_0x25a8fa[_0x1393cc])&&(_0x32a8a8=(_0x43794a?_0x46144c(_0xe68013,_0x37690d,_0x32a8a8):_0x46144c(_0x32a8a8))||_0x32a8a8);return _0x43794a&&_0x32a8a8&&un(_0xe68013,_0x37690d,_0x32a8a8),_0x32a8a8;},xe=(_0x21a942,_0x2d1ab4)=>(_0xd83f96,_0x2acf5a)=>_0x2d1ab4(_0xd83f96,_0x2acf5a,_0x21a942);const vn=['image/png',_0x2fd58b(0x3e5),'image/jpg',_0x2fd58b(0x269),_0x2fd58b(0x1fe)],gn=0x5*0x400*0x400,mn=_0x2fd58b(0x4f9),fn=_0x2fd58b(0x34c),In=_0x2fd58b(0x475),pn=_0x2fd58b(0x2b1);exports[_0x2fd58b(0x2c6)]=class{constructor(_0x5353e0,_0xeade64,_0x25c7e2){const _0x4d022b=_0x2fd58b;u(this,'_waitCount',0x0),u(this,'_change$',new v[(_0x4d022b(0x4bf))]()),u(this,_0x4d022b(0x343),this[_0x4d022b(0x1f4)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x5353e0,this[_0x4d022b(0x41e)]=_0xeade64,this[_0x4d022b(0x248)]=_0x25c7e2);}['setWaitCount'](_0x3cd816){const _0x51b543=_0x2fd58b;this[_0x51b543(0x20e)]=_0x3cd816,this[_0x51b543(0x1f4)][_0x51b543(0x46b)](_0x3cd816);}[_0x2fd58b(0x2d2)](_0x204802,_0x318330){const _0x368b24=_0x2fd58b;if(_0x318330===j[_0x368b24(0x56c)][_0x368b24(0x27f)]){const _0x1df615=new Image();return _0x1df615[_0x368b24(0x523)]=_0x204802,_0x1df615;}return this[_0x368b24(0x233)][_0x368b24(0x5e1)](_0x204802);}[_0x2fd58b(0x4ad)](_0x21f1a6,_0x19b042,_0x51090e){const _0x10faee=_0x2fd58b;_0x19b042===j['ImageSourceType'][_0x10faee(0x27f)]||_0x51090e==null||this[_0x10faee(0x233)][_0x10faee(0x57a)](_0x21f1a6,_0x51090e);}async[_0x2fd58b(0x247)](_0x2e8d38){const _0x912284=_0x2fd58b;try{const _0x4beed7=this[_0x912284(0x421)](this['_getSignURL'](),''+_0x2e8d38),_0x58a6be=(await this['_httpService'][_0x912284(0x5e1)](_0x4beed7))[_0x912284(0x3f5)];if(_0x58a6be['error']&&_0x58a6be['error']['code']===bt['OK']){const _0x40667d=new URL(_0x58a6be['url'],this[_0x912284(0x2da)]())[_0x912284(0x24e)]();return Promise[_0x912284(0x3ce)](_0x40667d);}return Promise['reject'](_0x58a6be[_0x912284(0x359)]);}catch(_0x241e2e){return Promise[_0x912284(0x49c)](_0x241e2e);}}async['saveImage'](_0x1cfe49){const _0x5f10dc=_0x2fd58b;let _0x2ebd69='';if(!vn[_0x5f10dc(0x568)](_0x1cfe49[_0x5f10dc(0x5bd)]))return this[_0x5f10dc(0x564)](),Promise[_0x5f10dc(0x49c)](new Error(j[_0x5f10dc(0x21f)]['ERROR_IMAGE_TYPE']));if(_0x1cfe49[_0x5f10dc(0x262)]>gn)return this[_0x5f10dc(0x564)](),Promise[_0x5f10dc(0x49c)](new Error(j['ImageUploadStatusType'][_0x5f10dc(0x4c6)]));try{const _0x4154bf=new FormData();_0x4154bf[_0x5f10dc(0x463)](_0x5f10dc(0x399),_0x1cfe49);const _0x2c0a55=this[_0x5f10dc(0x248)][_0x5f10dc(0x425)](),_0xc5be19=_0x2c0a55==null?void 0x0:_0x2c0a55[_0x5f10dc(0x478)]();if(!_0xc5be19)throw new Error('unitId\x20is\x20not\x20found');const _0x147f1c=this[_0x5f10dc(0x552)]()+_0x5f10dc(0x5fd)+_0x1cfe49[_0x5f10dc(0x262)][_0x5f10dc(0x24e)]()+'&source='+Tt[_0x5f10dc(0x406)]+'&assign='+encodeURIComponent(_0xc5be19),_0x194480=await(await fetch(_0x147f1c,{'method':_0x5f10dc(0x382),'body':_0x4154bf}))[_0x5f10dc(0x219)]();if(typeof _0x194480[_0x5f10dc(0x426)]!=_0x5f10dc(0x27d))return this[_0x5f10dc(0x564)](),Promise[_0x5f10dc(0x49c)](new Error(j[_0x5f10dc(0x21f)][_0x5f10dc(0x4b2)]));_0x2ebd69=_0x194480[_0x5f10dc(0x426)];}catch{return this[_0x5f10dc(0x564)](),Promise['reject'](new Error(j[_0x5f10dc(0x21f)][_0x5f10dc(0x4b2)]));}return new Promise((_0x4f6926,_0x3ccab9)=>{const _0x4c480f=_0x5f10dc,_0x125581=new FileReader();_0x125581[_0x4c480f(0x21a)](_0x1cfe49),_0x125581[_0x4c480f(0x300)]=_0x5ef813=>{const _0x1170b8=_0x4c480f;var _0x4dbd74;const _0x2c36d1=(_0x4dbd74=_0x5ef813['target'])==null?void 0x0:_0x4dbd74[_0x1170b8(0x2fd)];if(_0x2c36d1==null){this[_0x1170b8(0x564)](),_0x3ccab9(new Error(j[_0x1170b8(0x21f)][_0x1170b8(0x4b2)]));return;}const _0x5bf250=a[_0x1170b8(0x538)][_0x1170b8(0x3e6)](0x6);_0x4f6926({'imageId':_0x5bf250,'imageSourceType':j[_0x1170b8(0x56c)][_0x1170b8(0x59d)],'source':_0x2ebd69,'base64Cache':_0x2c36d1,'status':j[_0x1170b8(0x21f)][_0x1170b8(0x3d4)]}),this[_0x1170b8(0x564)]();};});}[_0x2fd58b(0x552)](){const _0x540885=_0x2fd58b;var _0x1ab950,_0x4a42ac;const _0x162009=this[_0x540885(0x41e)][_0x540885(0x54a)](mn),_0x5f1ff4=this[_0x540885(0x41e)][_0x540885(0x54a)](L);return(_0x4a42ac=(_0x1ab950=_0x5f1ff4==null?void 0x0:_0x5f1ff4[_0x540885(0x3de)])!=null?_0x1ab950:_0x162009)!=null?_0x4a42ac:fn;}[_0x2fd58b(0x297)](){const _0x3405d8=_0x2fd58b;var _0x5b98b3,_0x492c63;const _0x1779be=this[_0x3405d8(0x41e)][_0x3405d8(0x54a)](In),_0xf4577c=this[_0x3405d8(0x41e)][_0x3405d8(0x54a)](L);return(_0x492c63=(_0x5b98b3=_0xf4577c==null?void 0x0:_0xf4577c[_0x3405d8(0x56f)])!=null?_0x5b98b3:_0x1779be)!=null?_0x492c63:pn;}[_0x2fd58b(0x2da)](){const _0x38b41d=_0x2fd58b;var _0x2403e3;const _0x375d97=this[_0x38b41d(0x41e)][_0x38b41d(0x54a)](L);return(_0x2403e3=_0x375d97==null?void 0x0:_0x375d97[_0x38b41d(0x29f)])!=null?_0x2403e3:location[_0x38b41d(0x2b4)];}[_0x2fd58b(0x421)](_0x4a8937,_0x31594a){return _0x4a8937['replace']('{fileID}',_0x31594a);}[_0x2fd58b(0x564)](){const _0x48755c=_0x2fd58b;this[_0x48755c(0x20e)]-=0x1,this[_0x48755c(0x1f4)][_0x48755c(0x46b)](this[_0x48755c(0x20e)]);}},exports[_0x2fd58b(0x2c6)]=Sn([xe(0x0,a[_0x2fd58b(0x2c2)](w[_0x2fd58b(0x308)])),xe(0x1,a[_0x2fd58b(0x5bf)]),xe(0x2,a['Inject'](a['IUniverInstanceService']))],exports['ImageIoService']);var Cn=Object['defineProperty'],En=Object[_0x2fd58b(0x36f)],bn=(_0x42e95c,_0x2108ae,_0x192d75,_0x5060c4)=>{for(var _0x296a83=_0x5060c4>0x1?void 0x0:_0x5060c4?En(_0x2108ae,_0x192d75):_0x2108ae,_0x2aad60=_0x42e95c['length']-0x1,_0xd2c92d;_0x2aad60>=0x0;_0x2aad60--)(_0xd2c92d=_0x42e95c[_0x2aad60])&&(_0x296a83=(_0x5060c4?_0xd2c92d(_0x2108ae,_0x192d75,_0x296a83):_0xd2c92d(_0x296a83))||_0x296a83);return _0x5060c4&&_0x296a83&&Cn(_0x2108ae,_0x192d75,_0x296a83),_0x296a83;},_e=(_0x4aeb94,_0x2c596b)=>(_0x39e47d,_0x5327d6)=>_0x2c596b(_0x39e47d,_0x5327d6,_0x4aeb94);let Te=class extends a[_0x2fd58b(0x5ff)]{constructor(_0x32a616,_0x22ded5,_0x46f7ab,_0x1a1f5f,_0x144603){const _0x1ff2f9=_0x2fd58b;super(),this['_injector']=_0x32a616,this[_0x1ff2f9(0x248)]=_0x22ded5,this[_0x1ff2f9(0x5b3)]=_0x46f7ab,this[_0x1ff2f9(0x30b)]=_0x1a1f5f,this['_localeService']=_0x144603,this[_0x1ff2f9(0x379)](),this[_0x1ff2f9(0x2f1)]();}[_0x2fd58b(0x2f1)](){const _0x4c04d4=_0x2fd58b,_0x2bcce1=async _0x156563=>{const _0x4cd86d=_0x4bd5;(await this['_collaborationSessionService']['requireSession'](_0x156563))[_0x4cd86d(0x2ce)][_0x4cd86d(0x50b)](E[_0x4cd86d(0x5ab)](_0x1e7fe1=>_0x1e7fe1[_0x4cd86d(0x55f)]===_[_0x4cd86d(0x2ca)][_0x4cd86d(0x5db)]),E[_0x4cd86d(0x3f7)](this['dispose$']))[_0x4cd86d(0x384)](_0x55278e=>{const _0x3a10ee=_0x4cd86d,_0x1ef9d9=_0x55278e,{reason:_0xbb41bf}=_0x1ef9d9[_0x3a10ee(0x316)];this['_injector'][_0x3a10ee(0x5e1)](A['IMessageService'])['show']({'type':q[_0x3a10ee(0x395)][_0x3a10ee(0x4da)],'content':this[_0x3a10ee(0x48a)]['t'](_0x3a10ee(0x3d6))+'('+_0xbb41bf+')'}),this[_0x3a10ee(0x5b3)][_0x3a10ee(0x2c9)](new C[(_0x3a10ee(0x35e))](_0x156563)['id'],!0x1),this[_0x3a10ee(0x30b)][_0x3a10ee(0x221)](_0x156563);});};v[_0x4c04d4(0x3db)](this['_univerInstanceService'][_0x4c04d4(0x5ef)](a[_0x4c04d4(0x2a2)][_0x4c04d4(0x29b)]),this[_0x4c04d4(0x248)][_0x4c04d4(0x5ef)](a[_0x4c04d4(0x2a2)][_0x4c04d4(0x2ea)]))[_0x4c04d4(0x50b)](E[_0x4c04d4(0x3b0)](_0x90553=>_0x90553[_0x4c04d4(0x478)]()),E[_0x4c04d4(0x5ab)](_0x7e5a64=>!a[_0x4c04d4(0x3ab)](_0x7e5a64)),E[_0x4c04d4(0x3f7)](this[_0x4c04d4(0x328)]))[_0x4c04d4(0x384)](_0x450ad6=>{_0x2bcce1(_0x450ad6);});}[_0x2fd58b(0x379)](){const _0x5e089f=_0x2fd58b,_0x320061=async _0x4a462e=>{const _0xa40ba5=_0x4bd5;(await this['_collaborationSessionService'][_0xa40ba5(0x5b1)](_0x4a462e))['event$']['pipe'](E['filter'](_0x26f79a=>_0x26f79a['eventID']===_['CollaborationEvent'][_0xa40ba5(0x213)]),E[_0xa40ba5(0x3f7)](this[_0xa40ba5(0x328)]))[_0xa40ba5(0x384)](_0x47a522=>{const _0x3e7f9c=_0xa40ba5,_0x518e35=_0x47a522,{objectId:_0x10775b}=_0x518e35[_0x3e7f9c(0x316)],_0x1ea753=this[_0x3e7f9c(0x227)][_0x3e7f9c(0x5e1)](se[_0x3e7f9c(0x545)]);_0x10775b===_0x4a462e?_0x1ea753[_0x3e7f9c(0x3bb)](_0x4a462e):_0x1ea753[_0x3e7f9c(0x268)](_0x4a462e,_0x10775b);});};v['merge'](this[_0x5e089f(0x248)][_0x5e089f(0x5ef)](a[_0x5e089f(0x2a2)]['UNIVER_SHEET']),this[_0x5e089f(0x248)][_0x5e089f(0x5ef)](a[_0x5e089f(0x2a2)][_0x5e089f(0x2ea)]))['pipe'](E[_0x5e089f(0x3b0)](_0x200b56=>_0x200b56['getUnitId']()),E['filter'](_0x3d0a2a=>!a[_0x5e089f(0x3ab)](_0x3d0a2a)),E[_0x5e089f(0x3f7)](this[_0x5e089f(0x328)]))[_0x5e089f(0x384)](_0x18c521=>{_0x320061(_0x18c521);});}};Te=bn([_e(0x0,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),_e(0x1,a['IUniverInstanceService']),_e(0x2,a[_0x2fd58b(0x375)]),_e(0x3,a[_0x2fd58b(0x2c2)](exports[_0x2fd58b(0x370)])),_e(0x4,a['Inject'](a[_0x2fd58b(0x57f)]))],Te);var Tn=Object[_0x2fd58b(0x38e)],Rn=Object[_0x2fd58b(0x36f)],On=(_0x55a2d5,_0x4db125,_0xdb5a97,_0x10eb62)=>{const _0x5a6d3e=_0x2fd58b;for(var _0x435be7=_0x10eb62>0x1?void 0x0:_0x10eb62?Rn(_0x4db125,_0xdb5a97):_0x4db125,_0x3c91cc=_0x55a2d5[_0x5a6d3e(0x598)]-0x1,_0x26b259;_0x3c91cc>=0x0;_0x3c91cc--)(_0x26b259=_0x55a2d5[_0x3c91cc])&&(_0x435be7=(_0x10eb62?_0x26b259(_0x4db125,_0xdb5a97,_0x435be7):_0x26b259(_0x435be7))||_0x435be7);return _0x10eb62&&_0x435be7&&Tn(_0x4db125,_0xdb5a97,_0x435be7),_0x435be7;},dt=(_0x583dc4,_0x3d1899)=>(_0xcc3088,_0x55f1e9)=>_0x3d1899(_0xcc3088,_0x55f1e9,_0x583dc4);exports[_0x2fd58b(0x2c1)]=class{constructor(_0x577ac7,_0x407584){this['_configService']=_0x577ac7,this['_httpService']=_0x407584;}async[_0x2fd58b(0x206)](_0x50f268,_0x41336f){const _0x2b5468=_0x2fd58b;var _0x3a35fc;const {unitID:_0x30b733,type:_0x2f84e8,revision:_0x58f6bf=0x0}=_0x41336f,_0x26f5ca=this[_0x2b5468(0x39d)]()+'/'+_0x2f84e8+_0x2b5468(0x2f6)+_0x30b733+'/rev/'+_0x58f6bf,_0x3a2dc4=(await this[_0x2b5468(0x52a)][_0x2b5468(0x5e1)](_0x26f5ca))[_0x2b5468(0x3f5)],_0x257375=(_0x3a35fc=_0x3a2dc4[_0x2b5468(0x250)])==null?void 0x0:_0x3a35fc[_0x2b5468(0x416)];if(_0x257375){const _0x1982b3=_0x257375==null?void 0x0:_0x257375[_0x2b5468(0x5a7)],_0x3c114a=_[_0x2b5468(0x4e4)][_0x2b5468(0x520)](_['b64DecodeUnicode'](_0x1982b3));_0x257375[_0x2b5468(0x5a7)]=_0x3c114a,Object['entries'](_0x257375['sheets'])[_0x2b5468(0x2df)](([,_0xfda74f])=>{const _0x44d742=_0x2b5468,_0xd1d664=_0xfda74f[_0x44d742(0x5a7)],_0x199051=_[_0x44d742(0x4e4)][_0x44d742(0x520)](_[_0x44d742(0x317)](_0xd1d664));_0xfda74f[_0x44d742(0x5a7)]=_0x199051;});}return _0x3a2dc4;}async[_0x2fd58b(0x205)](_0x5ef4e3,_0x3fdb54){const _0x1f8411=_0x2fd58b,{unitID:_0x51e528,type:_0x11e3b9,blockID:_0x17fb7f}=_0x3fdb54,_0x230a8f=this[_0x1f8411(0x26e)]()+'/'+_0x11e3b9+_0x1f8411(0x2f6)+_0x51e528+_0x1f8411(0x222)+_0x17fb7f;return(await this[_0x1f8411(0x52a)][_0x1f8411(0x5e1)](_0x230a8f))[_0x1f8411(0x3f5)];}async['getDeserializedSheetBlock'](_0x12d293,_0x17f375){const _0x111832=_0x2fd58b,{unitID:_0x4cb5b2,type:_0x417129,blockID:_0x11e7cf}=_0x17f375,_0x10258d=this[_0x111832(0x26e)]()+'/block/'+_0x417129+'/unit/'+_0x4cb5b2+_0x111832(0x222)+_0x11e7cf;return(await this[_0x111832(0x52a)][_0x111832(0x5e1)](_0x10258d))[_0x111832(0x3f5)];}async[_0x2fd58b(0x3cd)](_0x2c4e7e,_0x235770){const _0x1e9c70=_0x2fd58b,{unitID:_0x21346e,type:_0x20c363,from:_0x3e07df,to:_0x1b1245}=_0x235770,_0x19e3ab=this[_0x1e9c70(0x26e)]()+'/'+_0x20c363+_0x1e9c70(0x2f6)+_0x21346e+_0x1e9c70(0x435)+_0x3e07df+_0x1e9c70(0x49f)+_0x1b1245;return(await this['_httpService'][_0x1e9c70(0x5e1)](_0x19e3ab))[_0x1e9c70(0x3f5)];}['_getSnapshotAPIPrefix'](){const _0xca3f0b=_0x2fd58b;var _0x320cee;return(_0x320cee=this['_configService']['getConfig'](vt))!=null?_0x320cee:this[_0xca3f0b(0x26e)]();}[_0x2fd58b(0x26e)](){const _0x385a1d=_0x2fd58b;var _0x5eea11,_0x13f684;const _0x4ea2ea=this['_configService'][_0x385a1d(0x54a)](St),_0x199588=this['_configService']['getConfig'](L);return(_0x13f684=(_0x5eea11=_0x199588==null?void 0x0:_0x199588[_0x385a1d(0x45f)])!=null?_0x5eea11:_0x4ea2ea)!=null?_0x13f684:qt;}async[_0x2fd58b(0x472)](_0x1307c5,_0xb4afbb){const _0x25b94c=_0x2fd58b,_0x1526d7=_0x25b94c(0x507)+_0xb4afbb[_0x25b94c(0x5bd)]+_0x25b94c(0x2f6)+_0xb4afbb['unitID']+_0x25b94c(0x293);return(await this[_0x25b94c(0x52a)][_0x25b94c(0x5e1)](_0x1526d7,{'params':{'resourceId':JSON[_0x25b94c(0x4ff)](_0xb4afbb[_0x25b94c(0x364)])}}))[_0x25b94c(0x3f5)];}['saveSnapshot'](){const _0x1d5a7f=_0x2fd58b;throw new Error(_0x1d5a7f(0x356));}[_0x2fd58b(0x4b4)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2fd58b(0x4dd)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2fd58b(0x284)](){const _0xe515a8=_0x2fd58b;throw new Error(_0xe515a8(0x356));}[_0x2fd58b(0x38f)](){const _0x17440e=_0x2fd58b;throw new Error(_0x17440e(0x356));}},exports[_0x2fd58b(0x2c1)]=On([dt(0x0,a[_0x2fd58b(0x5bf)]),dt(0x1,a[_0x2fd58b(0x2c2)](w['HTTPService']))],exports['SnapshotServerOverHTTPService']);var Dn=Object[_0x2fd58b(0x38e)],yn=Object['getOwnPropertyDescriptor'],Un=(_0x1a225a,_0x77b3d1,_0x2a9f23,_0x118ba3)=>{const _0x7e659b=_0x2fd58b;for(var _0x188e4b=_0x118ba3>0x1?void 0x0:_0x118ba3?yn(_0x77b3d1,_0x2a9f23):_0x77b3d1,_0x320d46=_0x1a225a[_0x7e659b(0x598)]-0x1,_0x377f90;_0x320d46>=0x0;_0x320d46--)(_0x377f90=_0x1a225a[_0x320d46])&&(_0x188e4b=(_0x118ba3?_0x377f90(_0x77b3d1,_0x2a9f23,_0x188e4b):_0x377f90(_0x188e4b))||_0x188e4b);return _0x118ba3&&_0x188e4b&&Dn(_0x77b3d1,_0x2a9f23,_0x188e4b),_0x188e4b;},ue=(_0x44d5dd,_0x24df6f)=>(_0x1d9f3d,_0x249e1a)=>_0x24df6f(_0x1d9f3d,_0x249e1a,_0x44d5dd);let Fe=class extends a[_0x2fd58b(0x3f4)]{constructor(_0x492d44,_0xb07435,_0x20edcd,_0x302fa5,_0x3b3a91){const _0x24b3dd=_0x2fd58b;super(_0x492d44,_0xb07435,_0x20edcd),this['_transformService']=_0x302fa5,this[_0x24b3dd(0x3b8)]=_0x3b3a91;}[_0x2fd58b(0x366)](_0xa893a0,_0x1e1fde){const _0x3b6e93=_0x2fd58b,_0x17b3c5=this[_0x3b6e93(0x2c8)](_0xa893a0);if(_0x17b3c5)try{const _0x5955c2=this[_0x3b6e93(0x4af)](_0x17b3c5,_0x1e1fde);this[_0x3b6e93(0x3f8)](_0xa893a0,_0x5955c2);}catch(_0x53e497){this[_0x3b6e93(0x3b8)][_0x3b6e93(0x359)](_0x3b6e93(0x2d9),_0x53e497),this['_clearUndo'](_0xa893a0);}const _0x5e6dcb=this[_0x3b6e93(0x5a1)](_0xa893a0);if(_0x5e6dcb)try{const _0x10d821=this[_0x3b6e93(0x4af)](_0x5e6dcb,_0x1e1fde);this[_0x3b6e93(0x392)](_0xa893a0,_0x10d821);}catch(_0xd6ce8a){this[_0x3b6e93(0x3b8)][_0x3b6e93(0x359)](_0xd6ce8a),this[_0x3b6e93(0x4d4)](_0xa893a0);}}[_0x2fd58b(0x5ea)](_0xc59b23){const _0x54d74c=_0x2fd58b,_0x18bc79=this[_0x54d74c(0x2c8)](_0xc59b23);_0x18bc79&&(_0x18bc79['length']=0x0,this['_updateStatus']());}[_0x2fd58b(0x4d4)](_0x203e8d){const _0x4c648f=_0x2fd58b,_0x2b0878=this[_0x4c648f(0x5a1)](_0x203e8d);_0x2b0878&&(_0x2b0878[_0x4c648f(0x598)]=0x0,this[_0x4c648f(0x5f1)]());}['_substituteUndoStack'](_0x2e4432,_0x37c9ef){const _0x581b2a=_0x2fd58b;this[_0x581b2a(0x411)][_0x581b2a(0x57a)](_0x2e4432,_0x37c9ef),this[_0x581b2a(0x5f1)]();}[_0x2fd58b(0x392)](_0x347c5f,_0x2f9bf0){const _0x28849d=_0x2fd58b;this['_redoStacks'][_0x28849d(0x57a)](_0x347c5f,_0x2f9bf0),this[_0x28849d(0x5f1)]();}['_transformStack'](_0x229e98,_0x43a0f0){const _0x34a481=_0x2fd58b,_0x2396d9=[];let _0x369ad8=_0x43a0f0,_0x3aed33=_0x43a0f0;for(let _0x33fe44=_0x229e98['length']-0x1;_0x33fe44>=0x0;_0x33fe44--){const {unitID:_0x1fc367,undoMutations:_0x5f36b9,redoMutations:_0x23c60a}=_0x229e98[_0x33fe44],_0x598d88=this[_0x34a481(0x263)][_0x34a481(0x42f)](_0x369ad8,_0x5f36b9),_0x3e0dee=this['_transformService'][_0x34a481(0x42f)](_0x3aed33,_0x23c60a);if(_[_0x34a481(0x271)](_0x598d88)||_[_0x34a481(0x271)](_0x3e0dee)){this[_0x34a481(0x3b8)][_0x34a481(0x359)](_0x34a481(0x2d9),_0x34a481(0x44a),_0x598d88,_0x3e0dee);break;}_0x369ad8=_0x598d88['c1Prime'],_0x3aed33=_0x3e0dee[_0x34a481(0x40d)],_0x2396d9[_0x34a481(0x4a2)]({'unitID':_0x1fc367,'undoMutations':_0x598d88[_0x34a481(0x43c)],'redoMutations':_0x3e0dee[_0x34a481(0x43c)]});}return _0x2396d9[_0x34a481(0x5aa)]();}};Fe=Un([ue(0x0,a[_0x2fd58b(0x387)]),ue(0x1,a[_0x2fd58b(0x4b6)]),ue(0x2,a[_0x2fd58b(0x54b)]),ue(0x3,_['ITransformService']),ue(0x4,a[_0x2fd58b(0x286)])],Fe);function _0x4bd5(_0x5ec2ff,_0x3bad4d){const _0x509048=_0x5090();return _0x4bd5=function(_0x4bd5e6,_0x30420f){_0x4bd5e6=_0x4bd5e6-0x1eb;let _0x52edb0=_0x509048[_0x4bd5e6];return _0x52edb0;},_0x4bd5(_0x5ec2ff,_0x3bad4d);}class $t extends a[_0x2fd58b(0x5ff)]{constructor(){const _0x4cad61=_0x2fd58b;super(),u(this,_0x4cad61(0x397)),this[_0x4cad61(0x397)]=v[_0x4cad61(0x346)](window,'popstate')[_0x4cad61(0x50b)](v[_0x4cad61(0x3f7)](this[_0x4cad61(0x328)]),v['shareReplay'](0x1),v['mapTo'](void 0x0));}['setParam'](_0x13f764,_0x1c40cb,_0x233dab=!0x1){const _0x40c123=_0x2fd58b,_0x33ab24=new URL(window[_0x40c123(0x432)]['href']);_0x33ab24[_0x40c123(0x442)][_0x40c123(0x57a)](_0x13f764,_0x1c40cb),_0x233dab?window[_0x40c123(0x2d0)]['replaceState']('','',_0x33ab24[_0x40c123(0x24e)]()):window[_0x40c123(0x2d0)]['pushState']('','',_0x33ab24[_0x40c123(0x24e)]());}[_0x2fd58b(0x474)](_0x56ba77,_0x269f01=!0x1){const _0x4b289f=_0x2fd58b,_0x117529=new URL(window['location'][_0x4b289f(0x348)]);_0x117529['searchParams']['delete'](_0x56ba77),_0x269f01?window[_0x4b289f(0x2d0)][_0x4b289f(0x57c)]('','',_0x117529[_0x4b289f(0x24e)]()):window['history'][_0x4b289f(0x33c)]('','',_0x117529[_0x4b289f(0x24e)]());}[_0x2fd58b(0x43a)](_0x7e0986){const _0x26d0f4=_0x2fd58b;var _0x1b114d;return(_0x1b114d=new URL(window[_0x26d0f4(0x432)]['href'])[_0x26d0f4(0x442)]['get'](_0x7e0986))!=null?_0x1b114d:void 0x0;}}var Ht=Object[_0x2fd58b(0x38e)],Pn=Object[_0x2fd58b(0x36f)],wn=(_0x407858,_0x4e3321,_0x642a9e)=>_0x4e3321 in _0x407858?Ht(_0x407858,_0x4e3321,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x642a9e}):_0x407858[_0x4e3321]=_0x642a9e,Mn=(_0x41ad9e,_0x3d0806,_0x30603c,_0x11a5c8)=>{const _0x253140=_0x2fd58b;for(var _0x371d0f=_0x11a5c8>0x1?void 0x0:_0x11a5c8?Pn(_0x3d0806,_0x30603c):_0x3d0806,_0x3c788c=_0x41ad9e[_0x253140(0x598)]-0x1,_0x3b3b91;_0x3c788c>=0x0;_0x3c788c--)(_0x3b3b91=_0x41ad9e[_0x3c788c])&&(_0x371d0f=(_0x11a5c8?_0x3b3b91(_0x3d0806,_0x30603c,_0x371d0f):_0x3b3b91(_0x371d0f))||_0x371d0f);return _0x11a5c8&&_0x371d0f&&Ht(_0x3d0806,_0x30603c,_0x371d0f),_0x371d0f;},me=(_0x2e6274,_0x192984)=>(_0x215a11,_0x47e2f5)=>_0x192984(_0x215a11,_0x47e2f5,_0x2e6274),Nn=(_0x32daa9,_0x136ac2,_0x240110)=>wn(_0x32daa9,_0x136ac2+'',_0x240110);const An=_0x2fd58b(0x593);function _0x5090(){const _0x4e5f56=['LICENSE_MAX_UNITS_EXCEEDED','_hideTimer','RevisionService','_onUserJoin','_ws','headers','getTypeOfUnitDisposed$','Tools','sheetID','top','updateMember','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','_startTelemetryCollaborationNewChangeset','ThresholdInterceptorFactory','createSocket','HttpImport','onMouseMove','_onJoinRoomEvent','_scheduleClearOtherTimer','_onMessage','SheetPermissionInitController','icon','useObservable','rxjs/operators','_initStatusComponent','getConfig','IContextService','_transformSelections','open$','ICollaborationSocketService','_cursors','_handleLeaveEvent','_document','_getUploadFileURL','cursorInfo','selection','translate(.97)','_sendingTimer','clearTimeout','getCollabEntity','indexOf','YUUMI_SUBSCRIPTION_NOT_FOUND','_collabCursorState$','_selfUnitIDs','delete','Rectangle','eventID','Disposable','onCommentUpdate','/object','has','_decreaseWaiting','_cursorInfo$','collaboration-client.config','UNDEFINED','includes','objects','FromArray','_throwTelemetryCollaborationNewChangeset','ImageSourceType','Vector2','entries','signUrlServerUrl','getRelativeToViewportCoord','/-/object/list','ONLINE','_drawTextRange','_drawRectRange','_handleHeartbeatEvent','_scheduleTimestamp','concat','startsWith','\x20to\x20','set','UNAUTHENTICATED','replaceState','LICENSE_EXPORT_SIZE_EXCEEDED','univer-pro.collaboration-client.single-active-unit-service','LocaleService','_getLoginPath','Injector','getCollabEntity$','Module','collabStatus.syncing','_snapshotService','collaboratorID','serializeCombRequest','slice','INVALID_ARGUMENT','fromCollab','_roomMembers$','_collaborationPaused','_state','getUnit','_initEventListeners','collaboration-session-retry','backgroundColor','transformSelections','UNIVER_COLLABORATION_CLIENT_PLUGIN','registerComponent','isTransformMutationFailure','InsertRangeMoveRightCommandId','verdancy600','length','IMessageService','CHANGESET_REVISION_CONFILICT','_roomMembers','currentColor','UUID','findNodePositionByCharIndex','_loadSheet','NOT_COLLAB','_getRedoStack','ColorKit','_fetchMissChangesets','requestParams','_executeRemoteChangeset','LOCAL_CACHE_INTERVAL_KEY','originalMeta','_snapshotServerService','_clearCollaborationTimeoutTimer','reverse','filter','fetchMiss','path','_telemetryInfo','row','RefRangeService','requireSession','collabWebSocketUrl','_permissionService','_color','socket$','/universer-api/oidc/authpage','_startSheetCollabCursor','onRemoteRej','hidden','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','_docSkeleton','subUnitId','type','_drawAnchor','IConfigService','IRemoteInstanceService','m1Prime','Undefined','toDisposable','_beforeCloseService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','from','clearInterval','INGEST','batchAllowed','onMissedChangesetFetched','SessionStatus','COLORS','LIVESHARE_FETCH_OPERATIONS','COLLAB_WEB_SOCKET_URL','CompressMutationService','throttleTime','_collaborationTimeoutTimer','concatMap','LICENSE_DISTRO_REJECTED','_session','_range','ALREADY_EXISTS','hide','getMemberID','AuthzIoHttpService','handleIRemoveRow','SHOULD_CLOSE_CONN','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','setInterval','DataLoaderController','addObject','code','get','getWorkbookSelections','touchDependencies','_rescheduleHeartbeat','failed\x20to\x20apply\x20missed\x20changesets!','102935RrEhSd','auth.needGotoLoginAlert','useRef','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_clearUndo','_onRefRangeChange','DisposableCollection','blue400','_members','getTypeOfUnitAdded$','SheetSkeletonManagerService','_updateStatus','_isPermissionRej','_replayCachedMutations','444IeacEu','_commentService','JOIN','getUndoRedoMutationParamsCache','_socketService','_name','status$','syncEditingCollabCursor','11LWYmnV','?size=','_onConnectionFailed','RxDisposable','RETRY_CONNECTING_MAX_COUNT_KEY','_docSyncEditingCollabCursorService','_onRemoteACK','@univerjs/ui','onRemoteAck','RECV','interceptor','_onRecvEvent','currentSkeleton$','commentUpdate$','_messageService','TOO_MANY_REQUESTS','UniverCollaborationPlugin','_ensureSubject','transformIMECache','_sheetSkeletonManagerService','_heartbeatTimer','_getCtorByUniverType','_change$','_lockTransition','_startDocCollabCursor','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','currentTheme$','onRemoteChangeset','SnapshotService','triggerDblclick','sessionStatus$','/-/object/-/batch_allowed','image/bmp','handleInsertRangeMoveRight','rxjs','Plugin','ENSURE_SNAPSHOT_EXECUTION','colorChannel1','_setupSubUnitSync','getSheetBlock','getUnitOnRev','_hovered','LocalCacheService','DocSelectionManagerService','setShapeProps','_docSkeletonManagerService','1660NIcqbI','pluginName','_waitCount','react','1em','_updateURLWithCurrentState','collab-rect-range-','UPDATE_PERMISSION_OBJ','DesktopCollaborationStatusDisplayController','createIdentifier','InsertColCommandId','collabStatus.conflict','_eventUnsubscribe','json','readAsDataURL','_scene','override','all','subscribeEvent','ImageUploadStatusType','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','closeSession','/block/','onlineStatus','_getAnchorBounding','COMMENT_UPDATE','div','_injector','ILocalStorageService','_submitChangeset','_status$','PERMISSION_DENIED','fetch_missing','handleMoveRange','setTimeout','reconnect','getVpScrollXYInfoByPosToVp','number','show','_imageSourceCache','hasOwnProperty','Unknown\x20user','UserManagerService','_changesetSessionId','bottom','_cachedData','_checkMissing','editingUnit','OnLineSingle','toLowerCase','handleDeleteRangeMoveLeft','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','closePath','session.will-retry','_queuedRemoteChangesets','Rect','onStateChange','univer-online-status','stopTime','getImage','_univerInstanceService','_timeoutTimer','_render','objectType','toStringTag','APPLY_DUPLICATED','toString','revision','snapshot','_sessionStatus$','socket\x20close','list','url','assign','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','InsertRangeMoveDownCommandId','_socket$','ITransformService','_unitStatus','_online','xlink:href','text','_clearLocalCache','enableOfflineEditing','getCurrentUser','_unitID','size','_transformService','online','then','unknown','pending','refreshPermission','image/gif','endRow','enableSingleActiveInstanceLock','getAncestorScale','_clearScheduledTask','_getAPIPrefix','DocStateChangeManagerService','liveShareOperation','isTransformMutationsWithChangesetFailure','roomMembers','_handleEvent','[PendingState]:\x20received\x20acknowledgement.','url(#$1','registerOnClose','debounceTime','Optional','_awaitingChangeset','/allowed','_syncEditingCollabCursor','cmd','string','incrementRevOfUnit','BASE64','_collabCursorController','[OfflineState]:\x20received\x20rejection.','ranges','UNKNOWN_CODE','copyFileMeta','_listenToOnlineEvent','ILogService','41212PoSvqP','SNAPSHOT_HAS_BEEN_REMOVED','HTTPRequest','_updateState','APPLY_NON_SEQUENTIAL_REVISION','joinEvent','IBeforeCloseService','resize','black','_saveTaskMap','round','sheetId','/resources','startRow','setActiveRange','_shapes','_getSignURL','toggleOffline','_transformIMECache','COMPRESS_MUTATION_SEND','UNIVER_SHEET','[PendingState]:\x20unhandled\x20univer\x20type:\x20','height','NodePositionConvertToRectRange','downloadEndpointUrl','COLLAB_SUBMIT_CHANGESET_URL','off-line-single','UniverInstanceType','focused$','_labelPosition','_socket','sessionStatus','65973xnbuuS','_socketMessageSubscription','@univerjs/sheets-ui','clipPath','_onConnectionOpen','onSendChangeset','onPointerEnter$','off-line-single_clip0_910_343','ws://127.0.0.1:8000/universer-api/comb/connect','_entityInit$','/universer-api/file/{fileID}/sign-url','startColumn','0\x200\x2016\x2016','origin','createElement','_scheduleCollaborationTimeoutTimer','loadDoc','getViewport','_telemetryService','CollaborationController','RemoveRowCommandId','_removeClearOtherTimer','CollaborationEntity','JOINING','saveOfflineData','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','SnapshotServerOverHTTPService','Inject','sid','socket\x20open.','_removeCollabCursors','ImageIoService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_getUndoStack','updatePermissionPoint','CollaborationEvent','idSuffix','registerRenderModule','/collaborator','event$','_onFetchMissResult','history','apply','getImageSourceCache','objectID','_shouldReportTelemetry','univer-online-status-title','_onRemoteRejected','toRgbString','_updateSubUnitFromURLParams','[CollaborationUndoRedoService]','_getDownloadEndpointURL','collaboration-client.offline-data-not-saved','SheetsSelectionsService','_onCursorUpdate','@univerjs/network','forEach','getValue','OTHER_CLIENTS_EDITING','LIVESHARE_NEW_HOST','USERS_ENTER','LEAVE','_syncEditingCollabCursorService','?url=','useDependency','_sendHeartbeatTimer','activeSheet$','UNIVER_DOC','getCurrentUnitForType','getCellPositionByOffset','random','setAlpha','ISnapshotServerService','RETRY_CONNECTING_MAX_COUNT','_initCloseConn','ITelemetryService','CHANGESET_REJ','getInterceptPoints','_renderManagerService','/unit/','handleIRemoveCol','combineLatest','status','_init','method','_uiPartsService','result','_HTTPService','some','onload','_refRangeService','EffectRefRangId','_state$','_updateLocalCache','symbol','deleteCollaborator','createInstance','HTTPService','@univerjs/telemetry','YUUMI_URL_COL_OUT_OF_RANGE','_collaborationSessionService','HEADER_MENU','updateOfflineData','unshift','_collaborationController','univer-online','_createInitialStateImpl','collab-text-anchor-','shareReplay','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','loadSheet','data','b64DecodeUnicode','_compressMutationService','IUndoRedoService','_themeService','updatePermissionObjEvent','registerBeforeClose','onlineStatusTitle','COLLAB_WEB_SOCKET_URL_KEY','_entities','_initStatusListener','call','visibilityState','enableLocalCache','FETCH_MISSING','_unlockTransition','_createSocket','_retryCount','dispose$','restore','SNAPSHOT_INVALID_SNAPSHOT','getSheetBySheetId','liveShareNewHost','_cursor','_registerDependencies','UNRECOGNIZED','_userManagerService','_collabSessionService','setUndoRedoMutationParamsCache','fillText','fetching\x20missing\x20changesets\x20from\x20','_getScale','WebURLService','M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','_schedule','isTransformChangesetsSuccess','40374NVawLb','parse','pushState','state','_docTransformIMECacheService','_clearHeartbeatTimer','RichTextEditingMutation','BuiltInUIPart','roomMembers$','change$','SNAPSHOT_SERVER_URL_KEY','_colorIndex','fromEvent','authzUrl','href','@univerjs-pro/collaboration','_updateCollabCursors','MSG_FOR_ERROR','/universer-api/stream/file/upload','_loadDoc','measureText','getTime','Shape','name','_refreshCollabCursors','_anchor','connection\x20error','tag','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','UniverCollaborationClientPlugin','_handleHover','error','registerHTTPInterceptor','subunit','PSEUDO_FETCH_MISSING_RESULT','HEARTBEAT_INTERVAL_KEY','WorkbookEditablePermission','prototype','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_applyRemoteChangeset','fetchThroughInterceptors','_toggleOnline','resourceIDs','mapDocumentTypeToUniverType','transformUndoRedo','univer-pro.collaboration-client-socket-service','put','commentUpdateEvent','0\x200\x2017\x2016','onTransformRemoteChangesetByIMECache','catch','deserializeToCombResponse','NO_OTHER_CLIENTS_EDITING','getOwnPropertyDescriptor','CollaborationSessionService','csAckEvent','UniverIcon','send','memberID','IPermissionService','cursorInfo$','awaiting','getRenderById','_initUnitPermissionChange','M0\x200H16V16H0z','_tryEnsureSocket','_lastPointer','UNIVER_PROJECT','_onConflict','_sessions','UnitSnapshot','_initModules','POST','state$','subscribe','forwardRef','localeService','IUniverInstanceService','none','_remoteChangesetQueue','not_collab','getRangePointData','_initRequestHeader','values','defineProperty','getLatestCsReqIdBySid','[CollaborationSession]','_localStorageService','_substituteRedoStack','duration','on-line-single','MessageType','UNIVER_SLIDE','urlChange$','UPDATE_CURSOR','file','_updateLocalCursor','AWAITING','deepClone','_getSnapshotAPIPrefix','_docTransformSelectionsService','capture','fill','Workbook','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','APPLY_PERMISSION_DENIED','executeCommand','UNIVER_UNKNOWN','LIVESHARE_OPERATION','onPointerMove$','action','color','APPLY_REVISION_CONFILICT','isInternalEditorID','_startCollaboration','\x0aCurrent:\x20','awaitingChangeset','resend','map','_incrementRevisionNumber','lineTo','_acknowledgedAwaitingChangeset','_send','_onCursorDelete','deserializeRangeWithSheet','VIEWPORT_KEY','_logService','Warning','_socketReady','initWorkbookPermissionChange','_draw','collabStatus.synced','appendMutation','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','flatMap','with','UNKNOWN_CMD','getDocRanges','CONFLICT','storage','_notificationService','_scheduleSaving','SheetCollabCursorShape','_transformRemoteChangesetByIMECache','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','every','trim','fetchMissingChangesets','resolve','#FFF','@univerjs/engine-render','_transitionLocked','assignAColorForMemberID','objectActions','SUCCUSS','_tryReconnect','collaboration.closeRoom','HELLO','defs','mergeOverrideWithDependencies','_waitForHeartbeatResponse','merge','TEXT_RANGE_LAYER_INDEX','baseRev','uploadFileServerUrl','moveTo','onTransformSelections','_getSendChangesetTimeout','loadOfflineData','CommandType','SNAPSHOT_URL_KEY','image/jpeg','generateRandomId','mutations','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_singleActiveUnitService','_handler','transformByState','_cursorShapes','_undoRedoService','displayName','synced','LICENSE_IMPORT_SIZE_EXCEEDED','_scheduleHeartbeat','COMPLETION_FINISHED','listCollaborators','LocalUndoRedoService','body','VIEW_MAIN','takeUntil','_substituteUndoStack','isTransformMutationsWithChangesetSuccess','unit','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','take','/object/','getUnitType','patch','skeleton','unitId','getRoom','PERMISSION_REJ','AWAITING_WITH_PENDING','NEW_CHANGESETS','UnitEmbedded','children','permissionRejEvent','red300','changesets','dispose','offline','c1Prime','getCurrentRevOfUnit','infoRsp','listRoles','_undoStacks','_onLocalMutation','exhaustSavingTask','registerRefRange','getCurrentSelections','workbook','propertyIsEnumerable','\x0aAfter:\x20','_handleJoinEvent','conflict.content','XHRHTTPImplementation','CONNECTOR_DATA_TOO_LARGE','onCommandExecuted','_configService','range','serializeRangeWithSheet','_replaceFileID','url(#on-line-single_clip0_910_349)','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','textRanges','getFocusedUnit','FileId','switchMap','_onOffline','find','rng','IURLService','message$','withCredentials','runRefRangeMutations','transformMutationsWithChangeset','reduce','current','location','gold400','DocIMEInputManagerService','/fetchmissing?from=','LOGIN_URL_KEY','session','defIds','handleInsertRow','getParam','submit\x20changeset\x20error!','m2Prime','_initCommandExecutedListener','_createInitialState','_id','unitID','conflict.title','searchParams','@univerjs/rpc','_memberService','#fff','actions','bind','column','drawWith','transformStack\x20failed!','getSheetId','onReady','SetWorksheetActivateCommand','debounce','_changesetReqId','post','_getSaveTimeout','_getAPIPrefixPath','className','LIVESHARE_REQUEST_HOST','AUTHZ_URL_KEY','univer-offline','function','userID','sequenceExecute','updateCursorEvent','startTime','split','1OIfAey','uni.network.url-service','snapshotServerUrl','CHANGESET_ACK','@univerjs/docs','_urlService','append','SYNCED','selections','[SyncedState]:\x20received\x20rejection.','_transformUndoRedoStack','now','useCallback','USERS_LEAVE','next','[CollaborationState]:\x20apply\x20error!','min','_transformPreviousActiveRange','onTransformIME','_localCacheService','collaborators','getResourcesRequest','updateCollaborator','removeParam','EXCHANGE_SIGN_URL_SERVER_URL_KEY','_assignedColors','_sendHeartbeat','getUnitId','CollaborationStatusDisplay','Univer','addEventListener','doc.mutation.rich-text-editing','RegularPolygon','_getCurrentRevision','getActiveSheet','[FetchMissState]','loginUrlKey','SheetCollaborationEntity','error$','ThemeService','_saveCache','COMPRESS_MUTATION_APPLY','IRenderManagerService','onRendered','HEARTBEAT_TIMEOUT','_localeService','FAIL','IHTTPImplementation','WebSocketService','replaceTextRanges','max','/new_changes','getOffsetConfig','CollaborationSession','_joinRoom','params','routeKey','compose','responseType','setParam','beginPath','transformRemoteChangeset','randomUUID','reject','complete','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','&to=','onSyncEditingCollabCursor','close','push','_anchorDot','_initResize','unsubscribe','fillStyle','MergeInterceptorFactory','members','replace','getColor','@univerjs/sheets','10348784HhQnfW','addImageSourceCache','395HdErKv','_transformStack','getCollabCursors$','YUUMI_UNABLE_LOAD_URL','ERROR_IMAGE','clear','saveSheetBlock','LIVESHARE_TERMINATE','ICommandService','ACTIVE_UNIT_EVENT_CHANNEL','_initMergeInterceptor','asObservable','onlyLocal','IDLE','onPointerLeave$','CollaborationSocketService','_colorAssignService','Subject','SetDocZoomRatioOperation','_context','HttpExport','disableLocalCache','onlineStatusIcon','collabCursorState$','ERROR_EXCEED_SIZE','transformMutation','on-line-single_clip0_910_349','64759728qLGHBN','SUBMIT_CHANGESET','MUTATION','[CollaborationEntity]','FETCH_MISS','_textBubble','SetSelectionsOperation','_config','reqId','NOT_FOUND','_candidateSocket','_clearRedo','[OfflineState]:\x20received\x20changeset.','whenReady','_createHandler','_getSheetObject','conflict','Error','_removeRoom','_hover','saveChangeset','disposeWithMe','SEND_CHANGESET_TIMEOUT_KEY','MoveRangeCommandId','_backgroundColor','add','getRandomValues','textEncoder','endColumn','key','@univerjs/engine-formula','init','_revisionService','1452730YvaVjP','isArray','create','_onRemoteChangeset','CollaborationStatus','_unitOnClients','_sheetTransformSelectionsService','_disabled','PENDING','APPLY_REJECT','hovered','delay','arc','_clearTimeoutTimer','getSkeleton','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','getMember','_disableEditing','removeMember','collabStatus.fetchMiss','OFFLINE','stringify','session.connection-failed','svg','_commandService','newValue','onMissingChangesets','_clearOtherTimers','toggleOnline','/universer-api/snapshot/','save','transformChangesets','HEARTBEAT','pipe','DocSkeletonManagerService','_onUserLeave','BehaviorSubject','unload','width','setItem','close$','debug','setCurrentUser','use','getMergeData','_registerRenderDependencies','url(#off-line-single_clip0_910_343)','univerjs-icon\x20univerjs-icon-','sendChangesetTimeout','attrs','YUUMI_RATE_OVER_LIMIT','collab-text-range-','_commentUpdate$','_retryConnectingTimer','encode','_toggleOffline','DocCollaborationEntity','src','encodeURIComponent','@univerjs/design','INTERNAL_ERROR','isPermissionRej','@univerjs/drawing','[DataLoaderController]','_httpService','_onCombEvent','_event$','DeleteRangeMoveUpCommandId','_pendingMutations','_type','_getMergeRange'];_0x5090=function(){return _0x4e5f56;};return _0x5090();}exports[_0x2fd58b(0x357)]=class extends a[_0x2fd58b(0x201)]{constructor(_0x288b82=rs,_0x1f3004,_0x2573ab,_0x54e5c1,_0x50db31){const _0x3e4a9c=_0x2fd58b;super(),this[_0x3e4a9c(0x4d0)]=_0x288b82,this[_0x3e4a9c(0x3b8)]=_0x1f3004,this['_renderManagerService']=_0x2573ab,this[_0x3e4a9c(0x227)]=_0x54e5c1,this[_0x3e4a9c(0x41e)]=_0x50db31;const {..._0x5d04d4}=this[_0x3e4a9c(0x4d0)];this['_configService']['setConfig'](L,_0x5d04d4);}['onStarting'](){const _0x369722=_0x2fd58b;this[_0x369722(0x32e)](),a[_0x369722(0x5e3)](this[_0x369722(0x227)],[[ne],[exports[_0x369722(0x5de)]],[Te]]);}[_0x2fd58b(0x44c)](){const _0x3f1731=_0x2fd58b;a[_0x3f1731(0x5e3)](this['_injector'],[[Ce]]);}[_0x2fd58b(0x488)](){const _0x31b290=_0x2fd58b;this[_0x31b290(0x517)]();}[_0x2fd58b(0x32e)](){const _0x5c88ea=_0x2fd58b;var _0x5e3a51,_0xf69b46,_0x2cfcc0,_0x5c6a1b;this[_0x5c88ea(0x227)][_0x5c88ea(0x563)](a[_0x5c88ea(0x319)])&&this[_0x5c88ea(0x3b8)][_0x5c88ea(0x359)]('[UniverCollaborationClientPlugin]',_0x5c88ea(0x5c5));let _0x5f51a4=[[a[_0x5c88ea(0x319)],{'useClass':Fe}],[exports[_0x5c88ea(0x370)]],[Je],[w[_0x5c88ea(0x308)]],[Qe,{'useClass':$t}],[z],[exports[_0x5c88ea(0x208)]],[w[_0x5c88ea(0x48d)]],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0xf69b46=(_0x5e3a51=this[_0x5c88ea(0x4d0)])==null?void 0x0:_0x5e3a51['socketService'])!=null?_0xf69b46:exports['CollaborationSocketService']}],[w[_0x5c88ea(0x48c)],{'useClass':w[_0x5c88ea(0x41b)]}],[_[_0x5c88ea(0x2ef)],{'useClass':exports[_0x5c88ea(0x2c1)]}],[a['IAuthzIoService'],{'useClass':exports['AuthzIoHttpService']}],[j['IImageIoService'],{'useClass':exports[_0x5c88ea(0x2c6)]}],[exports[_0x5c88ea(0x2ba)]],[exports[_0x5c88ea(0x5de)]],[exports['DesktopCollaborationStatusDisplayController']],[Ce],[ne]];(_0x2cfcc0=this[_0x5c88ea(0x4d0)])!=null&&_0x2cfcc0[_0x5c88ea(0x26b)]&&_0x5f51a4[_0x5c88ea(0x4a2)]([Re,{'useClass':$s}]),_0x5f51a4=a[_0x5c88ea(0x3d9)](_0x5f51a4,(_0x5c6a1b=this[_0x5c88ea(0x4d0)])==null?void 0x0:_0x5c6a1b[_0x5c88ea(0x21c)]),_0x5f51a4[_0x5c88ea(0x2df)](_0x24f64b=>this['_injector'][_0x5c88ea(0x4e2)](_0x24f64b)),this[_0x5c88ea(0x381)]();}['_registerRenderDependencies'](){const _0x9a0dfb=_0x2fd58b;this['disposeWithMe'](this[_0x9a0dfb(0x2f5)][_0x9a0dfb(0x2cc)](a[_0x9a0dfb(0x2a2)]['UNIVER_DOC'],[Ve])),this[_0x9a0dfb(0x4de)](this['_renderManagerService'][_0x9a0dfb(0x2cc)](a[_0x9a0dfb(0x2a2)][_0x9a0dfb(0x29b)],[We]));}[_0x2fd58b(0x381)](){const _0x23915c=_0x2fd58b;var _0x4bbf1f,_0x334ae0;this[_0x23915c(0x227)][_0x23915c(0x5e1)](w[_0x23915c(0x308)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w[_0x23915c(0x53e)]({'maxParallel':0x6})}),this[_0x23915c(0x227)]['get'](be),(_0x4bbf1f=this[_0x23915c(0x4d0)])!=null&&_0x4bbf1f[_0x23915c(0x25f)]||this[_0x23915c(0x227)][_0x23915c(0x5e1)](exports[_0x23915c(0x208)])[_0x23915c(0x4c3)](),(_0x334ae0=this[_0x23915c(0x4d0)])!=null&&_0x334ae0['enableAuthServer']&&this[_0x23915c(0x227)]['get'](Ee),this[_0x23915c(0x227)][_0x23915c(0x5e1)](exports['CollaborationController']),this[_0x23915c(0x227)][_0x23915c(0x563)](exports[_0x23915c(0x214)])&&this[_0x23915c(0x227)][_0x23915c(0x5e1)](exports[_0x23915c(0x214)]);}},Nn(exports['UniverCollaborationClientPlugin'],_0x2fd58b(0x20d),An),exports[_0x2fd58b(0x357)]=Mn([a['DependentOn'](_[_0x2fd58b(0x1ee)]),me(0x1,a[_0x2fd58b(0x286)]),me(0x2,O['IRenderManagerService']),me(0x3,a[_0x2fd58b(0x2c2)](a[_0x2fd58b(0x581)])),me(0x4,a[_0x2fd58b(0x5bf)])],exports[_0x2fd58b(0x357)]),exports['AUTHZ_URL_KEY']=jt,exports['COLLAB_SUBMIT_CHANGESET_URL_KEY']=Ct,exports[_0x2fd58b(0x31e)]=gt,exports[_0x2fd58b(0x4ee)]=U,exports[_0x2fd58b(0x479)]=Lt,exports['CommentService']=Xe,exports[_0x2fd58b(0x35d)]=mt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x2fd58b(0x54e)]=Ke,exports[_0x2fd58b(0x42b)]=Qe,exports[_0x2fd58b(0x5a6)]=pt,exports['LOGIN_URL_KEY']=Et,exports[_0x2fd58b(0x600)]=It,exports[_0x2fd58b(0x4df)]=zt,exports['SNAPSHOT_SERVER_URL_KEY']=St,exports['SNAPSHOT_URL_KEY']=vt,exports[_0x2fd58b(0x5cb)]=H,exports[_0x2fd58b(0x3c8)]=Pt,exports[_0x2fd58b(0x336)]=$t,exports[_0x2fd58b(0x36d)]=Rt,exports[_0x2fd58b(0x587)]=Ot;
1
+ 'use strict';const _0x27a195=_0x3f87;(function(_0x2b739d,_0x2b1c7c){const _0x25b95d=_0x3f87,_0x5d85ac=_0x2b739d();while(!![]){try{const _0x36d9fb=-parseInt(_0x25b95d(0x5c5))/0x1*(-parseInt(_0x25b95d(0x2ee))/0x2)+parseInt(_0x25b95d(0x52e))/0x3+parseInt(_0x25b95d(0x372))/0x4+parseInt(_0x25b95d(0x4bf))/0x5+-parseInt(_0x25b95d(0x2e1))/0x6*(parseInt(_0x25b95d(0x361))/0x7)+-parseInt(_0x25b95d(0x1d9))/0x8+-parseInt(_0x25b95d(0x355))/0x9*(parseInt(_0x25b95d(0x3b8))/0xa);if(_0x36d9fb===_0x2b1c7c)break;else _0x5d85ac['push'](_0x5d85ac['shift']());}catch(_0x580c78){_0x5d85ac['push'](_0x5d85ac['shift']());}}}(_0x2ddc,0x1c344));var Ft=Object['defineProperty'],Gt=(_0x1e1ff1,_0x10e63e,_0x1d541a)=>_0x10e63e in _0x1e1ff1?Ft(_0x1e1ff1,_0x10e63e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d541a}):_0x1e1ff1[_0x10e63e]=_0x1d541a,u=(_0xafd1e7,_0x4ce04b,_0x2fb2ea)=>Gt(_0xafd1e7,typeof _0x4ce04b!=_0x27a195(0x26d)?_0x4ce04b+'':_0x4ce04b,_0x2fb2ea);Object['defineProperty'](exports,Symbol[_0x27a195(0x499)],{'value':_0x27a195(0x226)});const a=require(_0x27a195(0x1ef)),v=require(_0x27a195(0x3cc)),E=require(_0x27a195(0x25e)),X=require('@univerjs/design'),A=require(_0x27a195(0x468)),w=require('@univerjs/network'),_=require(_0x27a195(0x335)),Yt=require('@univerjs/telemetry'),N=require(_0x27a195(0x4f7)),C=require(_0x27a195(0x286)),O=require(_0x27a195(0x3a2)),se=require('@univerjs/docs'),j=require('@univerjs/drawing'),et=require('@univerjs/engine-formula'),te=require(_0x27a195(0x3a6)),P=require(_0x27a195(0x414)),Kt=require(_0x27a195(0x259)),Xt=require(_0x27a195(0x210)),St=_0x27a195(0x397),qt=_0x27a195(0x2b6),vt='SNAPSHOT_URL_KEY',zt=_0x27a195(0x3ac),Jt=0x7d0,gt='COLLAB_WEB_SOCKET_URL',Zt=_0x27a195(0x5da),mt='HEARTBEAT_INTERVAL',Qt=0x7530,Ge=_0x27a195(0x608),ft=0x4e20,es=0x4e20,It=_0x27a195(0x501),ts=0x3,pt=_0x27a195(0x5d9),ss=0x3e8,Ct=_0x27a195(0x1e9),is='/universer-api/comb',Et=_0x27a195(0x5c9),ns=_0x27a195(0x270);var bt=(_0x3e33e4=>(_0x3e33e4[_0x3e33e4[_0x27a195(0x444)]=0x0]=_0x27a195(0x444),_0x3e33e4[_0x3e33e4['OK']=0x1]='OK',_0x3e33e4[_0x3e33e4[_0x27a195(0x2ab)]=0x2]=_0x27a195(0x2ab),_0x3e33e4[_0x3e33e4['PERMISSION_DENIED']=0x3]=_0x27a195(0x2e2),_0x3e33e4[_0x3e33e4['NOT_FOUND']=0x4]='NOT_FOUND',_0x3e33e4[_0x3e33e4[_0x27a195(0x5ae)]=0x5]=_0x27a195(0x5ae),_0x3e33e4[_0x3e33e4[_0x27a195(0x43f)]=0x6]='ALREADY_EXISTS',_0x3e33e4[_0x3e33e4[_0x27a195(0x318)]=0x7]=_0x27a195(0x318),_0x3e33e4[_0x3e33e4[_0x27a195(0x5d0)]=0x8]=_0x27a195(0x5d0),_0x3e33e4[_0x3e33e4['COMPLETION_FINISHED']=0x9]=_0x27a195(0x515),_0x3e33e4[_0x3e33e4['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x27a195(0x208),_0x3e33e4[_0x3e33e4[_0x27a195(0x28b)]=0x1771]=_0x27a195(0x28b),_0x3e33e4[_0x3e33e4[_0x27a195(0x261)]=0x1772]=_0x27a195(0x261),_0x3e33e4[_0x3e33e4[_0x27a195(0x21e)]=0x1773]='ENSURE_SNAPSHOT_EXECUTION',_0x3e33e4[_0x3e33e4[_0x27a195(0x4d7)]=0x1b59]=_0x27a195(0x4d7),_0x3e33e4[_0x3e33e4[_0x27a195(0x37a)]=0x1b5a]=_0x27a195(0x37a),_0x3e33e4[_0x3e33e4[_0x27a195(0x289)]=0x1b5b]=_0x27a195(0x289),_0x3e33e4[_0x3e33e4[_0x27a195(0x3f0)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x3e33e4[_0x3e33e4[_0x27a195(0x49b)]=0x1b5d]=_0x27a195(0x49b),_0x3e33e4[_0x3e33e4[_0x27a195(0x51c)]=0x1f41]=_0x27a195(0x51c),_0x3e33e4[_0x3e33e4['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x27a195(0x3d0),_0x3e33e4[_0x3e33e4[_0x27a195(0x4c7)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x3e33e4[_0x3e33e4[_0x27a195(0x230)]=0x232b]=_0x27a195(0x230),_0x3e33e4[_0x3e33e4[_0x27a195(0x2ba)]=0x232c]=_0x27a195(0x2ba),_0x3e33e4[_0x3e33e4[_0x27a195(0x207)]=0x232d]=_0x27a195(0x207),_0x3e33e4[_0x3e33e4[_0x27a195(0x27a)]=0x2711]=_0x27a195(0x27a),_0x3e33e4[_0x3e33e4[_0x27a195(0x33c)]=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3e33e4[_0x3e33e4[_0x27a195(0x4ef)]=0x2713]=_0x27a195(0x4ef),_0x3e33e4[_0x3e33e4[_0x27a195(0x3aa)]=0x2714]=_0x27a195(0x3aa),_0x3e33e4[_0x3e33e4[_0x27a195(0x26a)]=-0x1]=_0x27a195(0x26a),_0x3e33e4))(bt||{}),$=(_0x2d5725=>(_0x2d5725[_0x2d5725[_0x27a195(0x582)]=0x0]='UNIVER_UNKNOWN',_0x2d5725[_0x2d5725['UNIVER_DOC']=0x1]=_0x27a195(0x211),_0x2d5725[_0x2d5725[_0x27a195(0x5d1)]=0x2]=_0x27a195(0x5d1),_0x2d5725[_0x2d5725[_0x27a195(0x44e)]=0x3]='UNIVER_SLIDE',_0x2d5725[_0x2d5725[_0x27a195(0x4cb)]=0x4]=_0x27a195(0x4cb),_0x2d5725[_0x2d5725[_0x27a195(0x26a)]=-0x1]='UNRECOGNIZED',_0x2d5725))($||{}),b=(_0x41a5df=>(_0x41a5df[_0x41a5df[_0x27a195(0x49e)]=0x0]=_0x27a195(0x49e),_0x41a5df[_0x41a5df['HELLO']=0x1]=_0x27a195(0x3c4),_0x41a5df[_0x41a5df['JOIN']=0x2]='JOIN',_0x41a5df[_0x41a5df[_0x27a195(0x433)]=0x3]=_0x27a195(0x433),_0x41a5df[_0x41a5df[_0x27a195(0x2fb)]=0x4]=_0x27a195(0x2fb),_0x41a5df[_0x41a5df['HEARTBEAT']=0x5]=_0x27a195(0x48d),_0x41a5df[_0x41a5df[_0x27a195(0x5f7)]=0x6]=_0x27a195(0x5f7),_0x41a5df[_0x41a5df[_0x27a195(0x26a)]=-0x1]=_0x27a195(0x26a),_0x41a5df))(b||{}),Ye=(_0x3618e2=>(_0x3618e2[_0x3618e2[_0x27a195(0x249)]=0x0]=_0x27a195(0x249),_0x3618e2[_0x3618e2['OK']=0x1]='OK',_0x3618e2[_0x3618e2[_0x27a195(0x555)]=0x2]='FAIL',_0x3618e2[_0x3618e2[_0x27a195(0x26a)]=-0x1]=_0x27a195(0x26a),_0x3618e2))(Ye||{}),Tt=(_0x2a48dc=>(_0x2a48dc[_0x2a48dc[_0x27a195(0x224)]=0x0]=_0x27a195(0x224),_0x2a48dc[_0x2a48dc[_0x27a195(0x5e0)]=0x1]='HttpImport',_0x2a48dc[_0x2a48dc[_0x27a195(0x5f1)]=0x2]=_0x27a195(0x5f1),_0x2a48dc[_0x2a48dc[_0x27a195(0x3e0)]=0x3]=_0x27a195(0x3e0),_0x2a48dc[_0x2a48dc[_0x27a195(0x4d2)]=0x4]=_0x27a195(0x4d2),_0x2a48dc[_0x2a48dc['UNRECOGNIZED']=-0x1]=_0x27a195(0x26a),_0x2a48dc))(Tt||{});const L=_0x27a195(0x2f0),rs={};function Rt(_0x2d5b15){const _0x3c9fb3=_0x27a195;var _0x276764,_0x1d832f,_0x40ff1b,_0x453880;const _0x541efa=_0x2d5b15[_0x3c9fb3(0x276)],_0x556b08=JSON[_0x3c9fb3(0x56f)](_0x541efa);switch(_0x556b08[_0x3c9fb3(0x59a)]){case b[_0x3c9fb3(0x48d)]:case b[_0x3c9fb3(0x3c4)]:{const _0x165415=_0x556b08[_0x3c9fb3(0x2a0)];return{..._0x556b08,'data':_0x165415,'cmd':_0x556b08['cmd']};}case b[_0x3c9fb3(0x4ca)]:{const _0x2f9a01=_0x556b08[_0x3c9fb3(0x5a3)];return{..._0x556b08,'data':_0x2f9a01,'cmd':_0x556b08[_0x3c9fb3(0x59a)]};}case b[_0x3c9fb3(0x5f7)]:{const _0x2fb591=_0x556b08['collaMsg'];switch(_0x2fb591[_0x3c9fb3(0x5e3)]){case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x1fe)]:return{..._0x556b08,'data':{..._0x2fb591,'data':(_0x276764=_0x2fb591[_0x3c9fb3(0x4ba)])==null?void 0x0:_0x276764['cs']},'cmd':_0x556b08['cmd']};case _['CollaborationEvent']['CHANGESET_ACK']:return{..._0x556b08,'data':{..._0x2fb591,'data':(_0x1d832f=_0x2fb591['csAckEvent'])==null?void 0x0:_0x1d832f['cs']},'cmd':_0x556b08['cmd']};case _['CollaborationEvent'][_0x3c9fb3(0x362)]:return{..._0x556b08,'data':{..._0x2fb591,'data':(_0x40ff1b=_0x2fb591['newCsEvent'])==null?void 0x0:_0x40ff1b['cs']},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _['CollaborationEvent'][_0x3c9fb3(0x28a)]:return{..._0x556b08,'data':{..._0x2fb591,'data':(_0x453880=_0x2fb591[_0x3c9fb3(0x545)])==null?void 0x0:_0x453880['cs']},'cmd':_0x556b08['cmd']};case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x1ff)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x379)]},'cmd':_0x556b08['cmd']};case _['CollaborationEvent'][_0x3c9fb3(0x39a)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x514)]},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _[_0x3c9fb3(0x5f2)]['USERS_LEAVE']:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x4d0)]},'cmd':_0x556b08['cmd']};case _['CollaborationEvent'][_0x3c9fb3(0x38b)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x41f)]},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _['CollaborationEvent'][_0x3c9fb3(0x588)]:case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x240)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x309)]},'cmd':_0x556b08['cmd']};case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x4f3)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x41f)]},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x5f8)]:return{..._0x556b08,'data':_0x2fb591,'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x3a3)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591['commentUpdateEvent']},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _[_0x3c9fb3(0x5f2)]['UPDATE_PERMISSION_OBJ']:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x5f6)]},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};case _[_0x3c9fb3(0x5f2)][_0x3c9fb3(0x35d)]:return{..._0x556b08,'data':{..._0x2fb591,'data':_0x2fb591[_0x3c9fb3(0x301)]},'cmd':_0x556b08[_0x3c9fb3(0x59a)]};default:return _0x556b08;}}default:return _0x556b08;}}function Ot(_0xf4079a){const _0x41b40c=_0x27a195;switch(_0xf4079a[_0x41b40c(0x59a)]){case b['HEARTBEAT']:case b['HELLO']:return JSON[_0x41b40c(0x2c4)]({'cmd':_0xf4079a[_0x41b40c(0x59a)],'routeKey':_0xf4079a['routeKey']});case b[_0x41b40c(0x2fb)]:{let _0x7122e9;switch(_0xf4079a[_0x41b40c(0x276)][_0x41b40c(0x5e3)]){case _['CollaborationEvent'][_0x41b40c(0x1ff)]:{_0x7122e9={'eventID':_[_0x41b40c(0x5f2)][_0x41b40c(0x1ff)],'updateCursorEvent':_0xf4079a[_0x41b40c(0x276)]['data']};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x47f)]:{_0x7122e9={'eventID':_['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0xf4079a[_0x41b40c(0x276)][_0x41b40c(0x276)]};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x39a)]:{_0x7122e9={'eventID':_[_0x41b40c(0x5f2)][_0x41b40c(0x39a)],'joinEvent':_0xf4079a[_0x41b40c(0x276)]['data']};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x38b)]:{_0x7122e9={'eventID':_[_0x41b40c(0x5f2)][_0x41b40c(0x38b)],'liveShareNewHost':_0xf4079a[_0x41b40c(0x276)][_0x41b40c(0x276)]};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x240)]:{_0x7122e9={'eventID':_['CollaborationEvent'][_0x41b40c(0x240)],'liveShareOperation':_0xf4079a['data'][_0x41b40c(0x276)]};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x4f3)]:{_0x7122e9={'eventID':_[_0x41b40c(0x5f2)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0xf4079a[_0x41b40c(0x276)]['data']};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x4dc)]:{_0x7122e9={'eventID':_[_0x41b40c(0x5f2)][_0x41b40c(0x4dc)],'liveShareRequestHost':_0xf4079a[_0x41b40c(0x276)]['data']};break;}case _[_0x41b40c(0x5f2)][_0x41b40c(0x588)]:{_0x7122e9={'eventID':_[_0x41b40c(0x5f2)]['LIVESHARE_FETCH_OPERATIONS']};break;}default:_0x7122e9={'eventID':_0xf4079a[_0x41b40c(0x276)]['eventID']};}return JSON[_0x41b40c(0x2c4)]({'cmd':_0xf4079a[_0x41b40c(0x59a)],'routeKey':_0xf4079a[_0x41b40c(0x413)],'collaMsg':_0x7122e9});}case b[_0x41b40c(0x4ca)]:return JSON['stringify']({'cmd':_0xf4079a[_0x41b40c(0x59a)],'routeKey':_0xf4079a[_0x41b40c(0x413)],'joinReq':_0xf4079a['data']});case b['LEAVE']:return JSON['stringify']({'cmd':_0xf4079a[_0x41b40c(0x59a)],'routeKey':_0xf4079a[_0x41b40c(0x413)],'leaveReq':_0xf4079a['data']});default:throw new Error(_0x41b40c(0x251));}}var os=Object[_0x27a195(0x410)],as=Object[_0x27a195(0x219)],cs=(_0x2778c4,_0x2431f3,_0x1fd4a4,_0x560cbf)=>{const _0x2acad3=_0x27a195;for(var _0x156de8=_0x560cbf>0x1?void 0x0:_0x560cbf?as(_0x2431f3,_0x1fd4a4):_0x2431f3,_0x5426e4=_0x2778c4[_0x2acad3(0x540)]-0x1,_0x4632e6;_0x5426e4>=0x0;_0x5426e4--)(_0x4632e6=_0x2778c4[_0x5426e4])&&(_0x156de8=(_0x560cbf?_0x4632e6(_0x2431f3,_0x1fd4a4,_0x156de8):_0x4632e6(_0x156de8))||_0x156de8);return _0x560cbf&&_0x156de8&&os(_0x2431f3,_0x1fd4a4,_0x156de8),_0x156de8;},ae=(_0x2df17e,_0x4f2d72)=>(_0x179330,_0x3bf903)=>_0x4f2d72(_0x179330,_0x3bf903,_0x2df17e);const Ke=a[_0x27a195(0x4d4)](_0x27a195(0x531));function ls(_0xe900f1,_0x1ddad3,_0x588d51){const _0x35e952=_0x27a195;return _0xe900f1+'/'+_0x1ddad3+_0x35e952(0x5b1)+_0x588d51+'/new_changes';}exports[_0x27a195(0x228)]=class extends a[_0x27a195(0x2cb)]{constructor(_0x1480ce,_0x322b32,_0x301314,_0x5003ae,_0x1098d1){const _0x299f6d=_0x27a195;super(),this[_0x299f6d(0x492)]=_0x1480ce,this['_ws']=_0x322b32,this[_0x299f6d(0x4d6)]=_0x301314,this[_0x299f6d(0x369)]=_0x5003ae,this[_0x299f6d(0x233)]=_0x1098d1;}[_0x27a195(0x1dc)](_0x15ce2f){const _0x5ba9f9=_0x27a195,_0x8eb6a2=this[_0x5ba9f9(0x461)][_0x5ba9f9(0x1dc)](_0x15ce2f);if(!_0x8eb6a2)throw new Error(_0x5ba9f9(0x5dc));const _0x4be1b4=new a[(_0x5ba9f9(0x21d))](),_0x540438=new v['Subject']();_0x4be1b4['add'](_0x8eb6a2['close$'][_0x5ba9f9(0x262)](_0x967355=>_0x540438['next'](_0x967355))),_0x4be1b4[_0x5ba9f9(0x4b5)](a[_0x5ba9f9(0x3eb)](()=>_0x540438['complete']()));const _0x103d0c=new v['Subject']();_0x4be1b4[_0x5ba9f9(0x4b5)](_0x8eb6a2[_0x5ba9f9(0x3bf)][_0x5ba9f9(0x262)](_0x4c7245=>_0x103d0c[_0x5ba9f9(0x573)](_0x4c7245))),_0x4be1b4[_0x5ba9f9(0x4b5)](a[_0x5ba9f9(0x3eb)](()=>_0x103d0c[_0x5ba9f9(0x2e4)]()));const _0x56b29e=new v[(_0x5ba9f9(0x529))]();_0x4be1b4[_0x5ba9f9(0x4b5)](_0x8eb6a2[_0x5ba9f9(0x254)][_0x5ba9f9(0x262)](_0x344ee7=>{const _0x3a5ee3=_0x5ba9f9,_0x448d0d=Rt(_0x344ee7);_0x56b29e[_0x3a5ee3(0x573)](_0x448d0d);})),_0x4be1b4[_0x5ba9f9(0x4b5)](a[_0x5ba9f9(0x3eb)](()=>_0x56b29e[_0x5ba9f9(0x2e4)]()));let _0xbe4edf;const _0x3efed3=()=>{const _0x5e20f9=_0x5ba9f9;_0x103d0c[_0x5e20f9(0x573)](new Event(_0x5e20f9(0x23e))),_0x540438[_0x5e20f9(0x573)](new CloseEvent('connection\x20error')),_0xbe4edf[_0x5e20f9(0x522)]();};return _0xbe4edf={'memberID':'','close$':_0x540438[_0x5ba9f9(0x601)](),'error$':_0x103d0c[_0x5ba9f9(0x601)](),'open$':_0x8eb6a2['open$'],'message$':_0x56b29e[_0x5ba9f9(0x601)](),'send':_0x5195b8=>{const _0x589c0a=_0x5ba9f9;if(_0x5195b8[_0x589c0a(0x59a)]===b[_0x589c0a(0x2fb)]){if(_0x5195b8['data']['eventID']===_['CollaborationEvent'][_0x589c0a(0x586)]){this[_0x589c0a(0x1f0)](_0xbe4edf,_0x5195b8['data'])[_0x589c0a(0x412)](_0x2758bf=>{const _0xa5f0db=_0x589c0a;this[_0xa5f0db(0x369)][_0xa5f0db(0x466)](_0x2758bf),_0x3efed3();});return;}if(_0x5195b8[_0x589c0a(0x276)][_0x589c0a(0x5e3)]===_[_0x589c0a(0x5f2)]['FETCH_MISSING']){const _0x5691b1=_0x5195b8[_0x589c0a(0x276)];this[_0x589c0a(0x4a4)](_0x5691b1)[_0x589c0a(0x2c7)](_0x56c541=>{const _0x4cd793=_0x589c0a;_0x56b29e['next']({'cmd':b[_0x4cd793(0x5f7)],'code':Ye['OK'],'routeKey':_0x5691b1[_0x4cd793(0x276)]['unitID'],'routeType':'','data':{'eventID':_[_0x4cd793(0x5f2)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x56c541}}});})[_0x589c0a(0x412)](_0x3bf11c=>{const _0x2115e9=_0x589c0a;this[_0x2115e9(0x369)][_0x2115e9(0x466)](_0x3bf11c),_0x3efed3();});return;}}_0x8eb6a2[_0x589c0a(0x2f9)](Ot(_0x5195b8));},'close':()=>{const _0x34945e=_0x5ba9f9;_0x8eb6a2[_0x34945e(0x522)](),_0x4be1b4[_0x34945e(0x22a)]();}},_0xbe4edf;}async[_0x27a195(0x1f0)](_0x8b7f4d,_0x215cf1){const _0x451835=_0x27a195;var _0x561524,_0x2a68ea;const {unitType:_0x530139,unitID:_0x46e203,changeset:_0x39effa}=_0x215cf1['data'],_0x27a89e={'unitID':_0x46e203,'memberID':_0x8b7f4d[_0x451835(0x203)],'type':_0x530139,'changeset':_[_0x451835(0x41d)](_0x39effa)},_0x55d13d=this[_0x451835(0x4d6)][_0x451835(0x4e9)](Ct),_0x177656=this[_0x451835(0x4d6)][_0x451835(0x4e9)](L),_0x4c28c1=ls((_0x2a68ea=(_0x561524=_0x177656==null?void 0x0:_0x177656[_0x451835(0x32b)])!=null?_0x561524:_0x55d13d)!=null?_0x2a68ea:is,_0x530139,_0x46e203);try{await this[_0x451835(0x492)][_0x451835(0x29c)](_0x4c28c1,{'body':_0x27a89e});}catch(_0x515fd3){throw this[_0x451835(0x369)]['error'](_0x451835(0x22e),'submit\x20changeset\x20error!'),_0x515fd3;}}async[_0x27a195(0x4a4)](_0x4cf30a){const _0x3633ab=_0x27a195,{unitID:_0x5ecef9,from:_0x34dcb1,to:_0x4494d4,unitType:_0xcb01a4}=_0x4cf30a[_0x3633ab(0x276)];return(await this['_snapshotServerService'][_0x3633ab(0x27e)]({'metadata':void 0x0},{'unitID':_0x5ecef9,'type':_0xcb01a4,'from':_0x34dcb1,'to':_0x4494d4}))[_0x3633ab(0x425)];}},exports[_0x27a195(0x228)]=cs([ae(0x0,a[_0x27a195(0x4da)](w[_0x27a195(0x275)])),ae(0x1,a[_0x27a195(0x4da)](w[_0x27a195(0x5a6)])),ae(0x2,a[_0x27a195(0x41e)]),ae(0x3,a[_0x27a195(0x246)]),ae(0x4,_[_0x27a195(0x3c3)])],exports[_0x27a195(0x228)]);const hs=_0x27a195(0x2c6);function _s(_0x56cc46){return JSON['stringify'](_0x56cc46)['length'];}class Xe{constructor(){const _0x13c876=_0x27a195;u(this,_0x13c876(0x49d),new v[(_0x13c876(0x529))]()),u(this,_0x13c876(0x2e5),this[_0x13c876(0x49d)]['asObservable']());}[_0x27a195(0x28e)](_0xe6eeb7){const _0x21be3b=_0x27a195;this[_0x21be3b(0x49d)]['next'](_0xe6eeb7);}}var us=Object[_0x27a195(0x410)],ds=Object[_0x27a195(0x219)],Ss=(_0x19228a,_0x1a0eb5,_0x4c0197,_0x496adf)=>{const _0x4fda2f=_0x27a195;for(var _0x2ff0fc=_0x496adf>0x1?void 0x0:_0x496adf?ds(_0x1a0eb5,_0x4c0197):_0x1a0eb5,_0x469a9f=_0x19228a[_0x4fda2f(0x540)]-0x1,_0xfafe94;_0x469a9f>=0x0;_0x469a9f--)(_0xfafe94=_0x19228a[_0x469a9f])&&(_0x2ff0fc=(_0x496adf?_0xfafe94(_0x1a0eb5,_0x4c0197,_0x2ff0fc):_0xfafe94(_0x2ff0fc))||_0x2ff0fc);return _0x496adf&&_0x2ff0fc&&us(_0x1a0eb5,_0x4c0197,_0x2ff0fc),_0x2ff0fc;},tt=(_0x2f578c,_0x6d1990)=>(_0x487497,_0x36cbc6)=>_0x6d1990(_0x487497,_0x36cbc6,_0x2f578c);let q=class extends a[_0x27a195(0x2cb)]{constructor(_0x286df9,_0x305dfe){const _0x1d942f=_0x27a195;super(),u(this,_0x1d942f(0x25d),new Map()),(this[_0x1d942f(0x4d3)]=_0x286df9,this[_0x1d942f(0x33b)]=_0x305dfe,this[_0x1d942f(0x598)](a['toDisposable'](v[_0x1d942f(0x30b)](this[_0x1d942f(0x4d3)][_0x1d942f(0x38c)](a[_0x1d942f(0x562)]['UNIVER_SHEET'])[_0x1d942f(0x3b2)](E[_0x1d942f(0x2ae)](_0x212711=>_0x212711[_0x1d942f(0x2f2)]())),this[_0x1d942f(0x4d3)][_0x1d942f(0x38c)](a['UniverInstanceType'][_0x1d942f(0x211)])['pipe'](E[_0x1d942f(0x2ae)](_0x22d914=>_0x22d914[_0x1d942f(0x2f2)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x1d942f(0x562)][_0x1d942f(0x44e)])[_0x1d942f(0x3b2)](E[_0x1d942f(0x2ae)](_0x13e0c9=>_0x13e0c9[_0x1d942f(0x2f2)]())))[_0x1d942f(0x262)](_0x43d0ba=>this[_0x1d942f(0x49a)](_0x43d0ba)))));}[_0x27a195(0x46a)](_0x5a8f66){this['_userManagerService']['setCurrentUser'](_0x5a8f66);}[_0x27a195(0x5e2)](){const _0x1bca1b=_0x27a195;return this[_0x1bca1b(0x33b)][_0x1bca1b(0x5e2)]();}[_0x27a195(0x241)](_0x323424,_0x567d6b){const _0x425a68=_0x27a195;let _0x2fb9d6=this[_0x425a68(0x25d)][_0x425a68(0x520)](_0x323424);_0x2fb9d6||(_0x2fb9d6=new vs(),this[_0x425a68(0x25d)][_0x425a68(0x36e)](_0x323424,_0x2fb9d6)),_0x2fb9d6[_0x425a68(0x241)](_0x567d6b);}[_0x27a195(0x525)](_0x4bf376,_0x3e6248){const _0x431d95=_0x27a195,_0x470412=this[_0x431d95(0x25d)][_0x431d95(0x520)](_0x4bf376);_0x470412&&_0x470412[_0x431d95(0x525)](_0x3e6248);}[_0x27a195(0x2ec)](_0x1603a2){const _0x46e8d5=_0x27a195;return this[_0x46e8d5(0x25d)][_0x46e8d5(0x520)](_0x1603a2);}[_0x27a195(0x1d8)](_0x37c7a6,_0x1669d4){const _0x25f1dd=_0x27a195,_0x254d04=this[_0x25f1dd(0x25d)][_0x25f1dd(0x520)](_0x37c7a6);if(_0x254d04)return _0x254d04[_0x25f1dd(0x1d8)](_0x1669d4);}[_0x27a195(0x49a)](_0x483c60){const _0x8ae538=_0x27a195,_0x19edb5=this['_roomMembers'][_0x8ae538(0x520)](_0x483c60);_0x19edb5&&(_0x19edb5[_0x8ae538(0x22a)](),this[_0x8ae538(0x25d)][_0x8ae538(0x4a1)](_0x483c60));}['dispose'](){const _0x4f041f=_0x27a195;this[_0x4f041f(0x25d)][_0x4f041f(0x481)](_0x39273b=>_0x39273b[_0x4f041f(0x22a)]()),this[_0x4f041f(0x25d)]['clear']();}};q=Ss([tt(0x0,a['IUniverInstanceService']),tt(0x1,a[_0x27a195(0x4da)](a[_0x27a195(0x519)]))],q);class vs extends a[_0x27a195(0x2cb)]{constructor(){const _0x20980c=_0x27a195;super(...arguments),u(this,_0x20980c(0x245),new Map());}[_0x27a195(0x22a)](){const _0x11ca3c=_0x27a195;this['_members'][_0x11ca3c(0x22b)]();}[_0x27a195(0x241)](_0x52b0f7){const _0x4370fa=_0x27a195;this['_members']['set'](_0x52b0f7[_0x4370fa(0x203)],_0x52b0f7);}[_0x27a195(0x525)](_0x412df5){const _0x36a5c4=_0x27a195;this[_0x36a5c4(0x245)][_0x36a5c4(0x4a1)](_0x412df5);}[_0x27a195(0x1d8)](_0x4fd2d1){const _0x21208a=_0x27a195;return this[_0x21208a(0x245)][_0x21208a(0x520)](_0x4fd2d1);}}var gs=Object[_0x27a195(0x410)],ms=Object['getOwnPropertyDescriptor'],fs=(_0x1091cf,_0x431cf3,_0x5c114a,_0x3e9dd0)=>{for(var _0x8b0fa5=_0x3e9dd0>0x1?void 0x0:_0x3e9dd0?ms(_0x431cf3,_0x5c114a):_0x431cf3,_0x5e370d=_0x1091cf['length']-0x1,_0x276133;_0x5e370d>=0x0;_0x5e370d--)(_0x276133=_0x1091cf[_0x5e370d])&&(_0x8b0fa5=(_0x3e9dd0?_0x276133(_0x431cf3,_0x5c114a,_0x8b0fa5):_0x276133(_0x8b0fa5))||_0x8b0fa5);return _0x3e9dd0&&_0x8b0fa5&&gs(_0x431cf3,_0x5c114a,_0x8b0fa5),_0x8b0fa5;},V=(_0x54b52e,_0xea8ff5)=>(_0x1e2fce,_0x3618e6)=>_0xea8ff5(_0x1e2fce,_0x3618e6,_0x54b52e),H=(_0x293bcf=>(_0x293bcf[_0x293bcf[_0x27a195(0x23a)]=0x0]=_0x27a195(0x23a),_0x293bcf[_0x293bcf[_0x27a195(0x359)]=0x1]=_0x27a195(0x359),_0x293bcf[_0x293bcf[_0x27a195(0x45a)]=0x2]=_0x27a195(0x45a),_0x293bcf[_0x293bcf['ONLINE']=0x3]=_0x27a195(0x3e8),_0x293bcf))(H||{});exports[_0x27a195(0x340)]=class extends a['RxDisposable']{constructor(_0x160942,_0xdca1a0,_0x5bb4d3,_0x45c8e6,_0x2eae85,_0x2703e0,_0x34f5c6,_0x3978c9,_0x334082,_0x43aaf0){const _0x437f82=_0x27a195;super(),u(this,_0x437f82(0x393),new v[(_0x437f82(0x4ec))](0x0)),u(this,_0x437f82(0x4c9),this[_0x437f82(0x393)]['asObservable']()),u(this,_0x437f82(0x299),new v[(_0x437f82(0x529))]()),u(this,_0x437f82(0x483),this['_event$'][_0x437f82(0x601)]()),u(this,_0x437f82(0x30c)),u(this,_0x437f82(0x31c)),u(this,'_collaborationTimeoutTimer'),u(this,_0x437f82(0x4e0),!0x1),u(this,_0x437f82(0x44c),null),(this[_0x437f82(0x4e5)]=_0x160942,this[_0x437f82(0x369)]=_0x5bb4d3,this['_beforeCloseService']=_0x45c8e6,this['_messageService']=_0x2eae85,this['_configService']=_0x2703e0,this[_0x437f82(0x37d)]=_0x34f5c6,this[_0x437f82(0x3ae)]=_0x3978c9,this['_commentService']=_0x334082,this['_telemetryService']=_0x43aaf0,this[_0x437f82(0x4e0)]=!!this[_0x437f82(0x48f)],_0xdca1a0[_0x437f82(0x3b2)](v[_0x437f82(0x33e)](this['dispose$']))[_0x437f82(0x262)](_0x2795d7=>{const _0x30b3b7=_0x437f82;var _0x14f37b;typeof _0x2795d7>'u'||(this[_0x30b3b7(0x30c)]=_0x2795d7,_0x2795d7?(this[_0x30b3b7(0x43b)](_0x2795d7),this['_socketMessageSubscription']=_0x2795d7['message$'][_0x30b3b7(0x262)](_0x10ac92=>{const _0x11b304=_0x30b3b7;_0x10ac92[_0x11b304(0x413)]===this[_0x11b304(0x4e5)]&&this[_0x11b304(0x2a8)](_0x10ac92);})):(this[_0x30b3b7(0x23c)](),this[_0x30b3b7(0x393)]['next'](0x2),(_0x14f37b=this['_socketMessageSubscription'])==null||_0x14f37b[_0x30b3b7(0x554)](),this[_0x30b3b7(0x31c)]=null));}),this['disposeWithMe'](this[_0x437f82(0x377)][_0x437f82(0x450)](()=>{const _0x11ffdc=_0x437f82;var _0x36c333;(_0x36c333=this[_0x11ffdc(0x30c)])==null||_0x36c333[_0x11ffdc(0x2f9)]({'cmd':b[_0x11ffdc(0x433)],'data':{'roomID':this[_0x11ffdc(0x4e5)]}});})));}get[_0x27a195(0x331)](){const _0xfdb925=_0x27a195;return this['_sessionStatus$'][_0xfdb925(0x2aa)]();}[_0x27a195(0x48a)](){const _0x3c2d02=_0x27a195;var _0x1b7036,_0x297585;return(_0x297585=(_0x1b7036=this[_0x3c2d02(0x30c)])==null?void 0x0:_0x1b7036[_0x3c2d02(0x203)])!=null?_0x297585:null;}[_0x27a195(0x22a)](){const _0xa5c4bb=_0x27a195;super['dispose'](),this[_0xa5c4bb(0x497)][_0xa5c4bb(0x573)](),this[_0xa5c4bb(0x497)][_0xa5c4bb(0x2e4)]();}[_0x27a195(0x522)](){const _0x2e5881=_0x27a195;var _0x25d8f4,_0x147be7;this[_0x2e5881(0x23c)](),(_0x25d8f4=this[_0x2e5881(0x30c)])==null||_0x25d8f4[_0x2e5881(0x2f9)]({'cmd':b[_0x2e5881(0x433)],'data':{'roomID':this[_0x2e5881(0x4e5)]}}),(_0x147be7=this['_socket'])==null||_0x147be7['close'](),this['_event$'][_0x2e5881(0x2e4)](),this[_0x2e5881(0x393)][_0x2e5881(0x2e4)](),this[_0x2e5881(0x22a)]();}['_onCombEvent'](_0x23fbd6){const _0x2077b7=_0x27a195;_0x23fbd6[_0x2077b7(0x59a)]===b['JOIN']?this[_0x2077b7(0x5d5)](_0x23fbd6):_0x23fbd6[_0x2077b7(0x59a)]===b[_0x2077b7(0x5f7)]&&this['_onRecvEvent'](_0x23fbd6);}[_0x27a195(0x43b)](_0x3c161f){const _0x35a18f=_0x27a195;this[_0x35a18f(0x393)][_0x35a18f(0x573)](0x1),_0x3c161f[_0x35a18f(0x2f9)]({'cmd':b[_0x35a18f(0x4ca)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x35a18f(0x4e5)]}]}});}[_0x27a195(0x5d5)](_0x501654){const _0x3e567=_0x27a195;var _0x4fa67a;if(_0x501654[_0x3e567(0x33f)]===Ye[_0x3e567(0x555)]){this[_0x3e567(0x20c)]['show']({'type':X['MessageType'][_0x3e567(0x20b)],'content':this[_0x3e567(0x37d)]['t'](_0x3e567(0x38a))}),this[_0x3e567(0x393)]['next'](0x2);return;}this[_0x3e567(0x393)][_0x3e567(0x573)](0x3);const _0x216357=(_0x4fa67a=_0x501654[_0x3e567(0x276)]['roomInfos'][this[_0x3e567(0x4e5)]])==null?void 0x0:_0x4fa67a[_0x3e567(0x256)];_0x216357&&_0x216357['forEach'](_0x739916=>this[_0x3e567(0x3ae)][_0x3e567(0x241)](this[_0x3e567(0x4e5)],_0x739916));}[_0x27a195(0x3a0)](_0x5b6632){const _0x3e9e06=_0x27a195;try{const _0xe783aa=_0x5b6632['data'];switch(_0xe783aa[_0x3e9e06(0x5e3)]){case _[_0x3e9e06(0x5f2)]['USERS_ENTER']:this[_0x3e9e06(0x295)](_0xe783aa),this[_0x3e9e06(0x299)][_0x3e9e06(0x573)](_0xe783aa);break;case _['CollaborationEvent'][_0x3e9e06(0x47f)]:this[_0x3e9e06(0x39c)](_0xe783aa),this[_0x3e9e06(0x299)]['next'](_0xe783aa);break;case _[_0x3e9e06(0x5f2)][_0x3e9e06(0x54b)]:this[_0x3e9e06(0x1e4)](),this['_clearCollaborationTimeoutTimer'](),this['_event$']['next'](_0xe783aa);break;case _['CollaborationEvent'][_0x3e9e06(0x5f8)]:this[_0x3e9e06(0x369)]['error'](_0x3e9e06(0x45d)+JSON[_0x3e9e06(0x2c4)](_0xe783aa)),this[_0x3e9e06(0x299)][_0x3e9e06(0x573)](_0xe783aa);break;case _[_0x3e9e06(0x5f2)][_0x3e9e06(0x3a3)]:this[_0x3e9e06(0x572)]['onCommentUpdate'](_0xe783aa['data']),this[_0x3e9e06(0x299)]['next'](_0xe783aa);break;default:this[_0x3e9e06(0x299)][_0x3e9e06(0x573)](_0xe783aa);}}catch(_0x4b3861){this[_0x3e9e06(0x369)][_0x3e9e06(0x466)](_0x4b3861,_0x5b6632);}}[_0x27a195(0x295)](_0x4f107f){const _0x332e3a=_0x27a195;this[_0x332e3a(0x3ae)][_0x332e3a(0x241)](this[_0x332e3a(0x4e5)],_0x4f107f[_0x332e3a(0x276)]);}[_0x27a195(0x39c)](_0x1ed3b6){const _0x4690e6=_0x27a195;this[_0x4690e6(0x3ae)][_0x4690e6(0x525)](this[_0x4690e6(0x4e5)],_0x1ed3b6[_0x4690e6(0x276)][_0x4690e6(0x203)]);}async[_0x27a195(0x2f9)](_0x4d432b,_0x13b73f){const _0x4badd8=_0x27a195;if(this[_0x4badd8(0x331)]!==0x3||!this['_socket'])throw new Error(_0x4badd8(0x5e1));try{_0x4d432b['eventID']===_['CollaborationEvent'][_0x4badd8(0x586)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4badd8(0x5f5)](_0x4d432b)),this[_0x4badd8(0x30c)][_0x4badd8(0x2f9)]({'cmd':b[_0x4badd8(0x2fb)],'routeKey':_0x13b73f,'routeType':'','data':_0x4d432b});}catch(_0x308fb3){this[_0x4badd8(0x369)][_0x4badd8(0x466)](_0x308fb3);}}[_0x27a195(0x3e9)](){const _0x50b765=_0x27a195;var _0x36910d;this[_0x50b765(0x1ee)]=window[_0x50b765(0x46c)](()=>{const _0x4db5cf=_0x50b765;this[_0x4db5cf(0x1ee)]=null,this[_0x4db5cf(0x20c)][_0x4db5cf(0x4f0)]({'type':X[_0x4db5cf(0x429)]['Error'],'content':this['_localeService']['t'](_0x4db5cf(0x39f))});},(_0x36910d=this['_configService'][_0x50b765(0x4e9)](Ge))!=null?_0x36910d:ft);}['_clearCollaborationTimeoutTimer'](){const _0x5ab473=_0x27a195;this[_0x5ab473(0x1ee)]&&(clearTimeout(this[_0x5ab473(0x1ee)]),this[_0x5ab473(0x1ee)]=null);}[_0x27a195(0x5f5)](_0x20d399){const _0x833468=_0x27a195;if(!this[_0x833468(0x4e0)])return;const {data:_0x38e5a9}=_0x20d399,{unitID:_0x3fb996,changeset:_0x359ea6}=_0x38e5a9,{mutations:_0x5ee694,type:_0x427ca3}=_0x359ea6;this[_0x833468(0x44c)]={'unitId':_0x3fb996,'type':_0x427ca3,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_s(_0x5ee694)};}[_0x27a195(0x1e4)](){const _0x5b6886=_0x27a195;if(this[_0x5b6886(0x4e0)]){if(!this[_0x5b6886(0x44c)]){this[_0x5b6886(0x369)][_0x5b6886(0x466)]('[CollaborationSession]','telemetry\x20info\x20is\x20not\x20initialized');return;}this[_0x5b6886(0x44c)]['stopTime']=performance[_0x5b6886(0x3c5)](),this[_0x5b6886(0x44c)]['duration']=this[_0x5b6886(0x44c)]['stopTime']-this['_telemetryInfo'][_0x5b6886(0x53c)],this['_telemetryService'][_0x5b6886(0x307)](hs,this[_0x5b6886(0x44c)]),this[_0x5b6886(0x44c)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x4f3082=_0x27a195;this[_0x4f3082(0x44c)]=null;}},exports[_0x27a195(0x340)]=fs([V(0x2,a['ILogService']),V(0x3,A[_0x27a195(0x4c6)]),V(0x4,A[_0x27a195(0x367)]),V(0x5,a[_0x27a195(0x41e)]),V(0x6,a['Inject'](a[_0x27a195(0x58f)])),V(0x7,a[_0x27a195(0x4da)](q)),V(0x8,a[_0x27a195(0x4da)](Xe)),V(0x9,a[_0x27a195(0x606)](Yt['ITelemetryService']))],exports[_0x27a195(0x340)]);var Is=Object[_0x27a195(0x410)],ps=Object['getOwnPropertyDescriptor'],Cs=(_0x40e54e,_0x53e153,_0x981c48,_0x3473fe)=>{const _0x5690bb=_0x27a195;for(var _0x35c4f3=_0x3473fe>0x1?void 0x0:_0x3473fe?ps(_0x53e153,_0x981c48):_0x53e153,_0x428c77=_0x40e54e[_0x5690bb(0x540)]-0x1,_0x52c61f;_0x428c77>=0x0;_0x428c77--)(_0x52c61f=_0x40e54e[_0x428c77])&&(_0x35c4f3=(_0x3473fe?_0x52c61f(_0x53e153,_0x981c48,_0x35c4f3):_0x52c61f(_0x35c4f3))||_0x35c4f3);return _0x3473fe&&_0x35c4f3&&Is(_0x53e153,_0x981c48,_0x35c4f3),_0x35c4f3;},Z=(_0xdeae22,_0x7d3a1a)=>(_0x21f697,_0x539bc8)=>_0x7d3a1a(_0x21f697,_0x539bc8,_0xdeae22);exports[_0x27a195(0x445)]=class extends a[_0x27a195(0x2cb)]{constructor(_0x2b0d8e,_0x5653f1,_0x5b6979,_0x4eb82a,_0x358af7,_0x36004b){const _0x117468=_0x27a195;super(),u(this,_0x117468(0x2c5),new v[(_0x117468(0x4ec))](void 0x0)),u(this,'socket$',this[_0x117468(0x2c5)][_0x117468(0x601)]()),u(this,'_candidateSocket',null),u(this,_0x117468(0x5bc),new Map()),u(this,'_status$',new v['BehaviorSubject'](H['IDLE'])),u(this,_0x117468(0x477),this[_0x117468(0x28c)]['asObservable']()),u(this,_0x117468(0x455),!0x1),u(this,'_retryConnectingTimer'),u(this,'_retryCount',0x0),u(this,'_sendHeartbeatTimer'),u(this,_0x117468(0x1f5)),(this[_0x117468(0x3cf)]=_0x2b0d8e,this['_localeService']=_0x5653f1,this[_0x117468(0x20c)]=_0x5b6979,this['_logService']=_0x4eb82a,this[_0x117468(0x4d6)]=_0x358af7,this[_0x117468(0x4cd)]=_0x36004b,this[_0x117468(0x448)]());}get[_0x27a195(0x30c)](){return this['_socket$']['getValue']();}[_0x27a195(0x448)](){const _0x2340e2=_0x27a195;this['_listenToOfflineEvent'](),this[_0x2340e2(0x303)]();}['dispose'](){const _0x4338c3=_0x27a195;super[_0x4338c3(0x22a)](),this[_0x4338c3(0x5bc)][_0x4338c3(0x481)](_0x1e2de2=>_0x1e2de2[_0x4338c3(0x22a)]()),this[_0x4338c3(0x5bc)][_0x4338c3(0x22b)](),this['_status$'][_0x4338c3(0x2e4)]();}async[_0x27a195(0x546)](_0x378989){const _0x5cb019=_0x27a195;if(this['_sessions'][_0x5cb019(0x3a8)](_0x378989))return this[_0x5cb019(0x5bc)][_0x5cb019(0x520)](_0x378989);this[_0x5cb019(0x4b9)]();const _0x4b0360=this[_0x5cb019(0x3cf)]['createInstance'](exports[_0x5cb019(0x340)],_0x378989,this['_socket$'][_0x5cb019(0x601)]());return this[_0x5cb019(0x5bc)]['set'](_0x378989,_0x4b0360),_0x4b0360;}[_0x27a195(0x250)](_0x319b73){const _0x511081=_0x27a195;var _0x46152d;const _0xc532fa=this[_0x511081(0x5bc)][_0x511081(0x520)](_0x319b73);_0xc532fa&&(this[_0x511081(0x5bc)][_0x511081(0x4a1)](_0x319b73),_0xc532fa[_0x511081(0x522)]()),this[_0x511081(0x5bc)][_0x511081(0x476)]||(_0x46152d=this[_0x511081(0x30c)])==null||_0x46152d['close']();}[_0x27a195(0x3e6)](){const _0x568fd1=_0x27a195;this[_0x568fd1(0x376)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x568fd1(0x4fc)]),this[_0x568fd1(0x4fc)]=null),this[_0x568fd1(0x293)]();}[_0x27a195(0x551)](){const _0x3fdbba=_0x27a195;var _0x186891,_0x591ca0;const _0x5b9fff=this['_configService'][_0x3fdbba(0x4e9)](gt),_0x2b6a6f=this[_0x3fdbba(0x4d6)][_0x3fdbba(0x4e9)](L),_0x2eadfd=(_0x591ca0=(_0x186891=_0x2b6a6f==null?void 0x0:_0x2b6a6f[_0x3fdbba(0x55a)])!=null?_0x186891:_0x5b9fff)!=null?_0x591ca0:Zt,_0x3df018=this[_0x3fdbba(0x4cd)]['createSocket'](_0x2eadfd);return this['_candidateSocket']=_0x3df018,_0x3df018;}[_0x27a195(0x4b9)](){const _0x506d5e=_0x27a195;var _0x512e45,_0x17143b;try{const _0x2c9bd8=(_0x17143b=(_0x512e45=this['_socket'])!=null?_0x512e45:this[_0x506d5e(0x434)])!=null?_0x17143b:this[_0x506d5e(0x551)]();if(_0x2c9bd8){const _0x30630d=_0x2c9bd8[_0x506d5e(0x2f9)];_0x2c9bd8[_0x506d5e(0x2f9)]=_0x4ebd29=>(this['_rescheduleHeartbeat'](),_0x30630d[_0x506d5e(0x2b3)](_0x2c9bd8,[_0x4ebd29])),_0x2c9bd8['message$'][_0x506d5e(0x262)](_0x38805d=>this['_onMessage'](_0x2c9bd8,_0x38805d)),_0x2c9bd8[_0x506d5e(0x3bf)][_0x506d5e(0x3b2)](E[_0x506d5e(0x2da)](0x1))[_0x506d5e(0x262)](_0x559cd3=>this['_logService'][_0x506d5e(0x466)](_0x506d5e(0x48b),_0x559cd3)),_0x2c9bd8[_0x506d5e(0x4f1)]['pipe'](E[_0x506d5e(0x2da)](0x1))['subscribe'](()=>{const _0x33c298=_0x506d5e;this[_0x33c298(0x34f)](_0x2c9bd8);}),_0x2c9bd8[_0x506d5e(0x566)][_0x506d5e(0x3b2)](E['take'](0x1))[_0x506d5e(0x262)](_0x220a65=>{const _0xb2868c=_0x506d5e;this[_0xb2868c(0x369)][_0xb2868c(0x5f3)](_0xb2868c(0x3b5),_0xb2868c(0x435),_0x220a65),this[_0xb2868c(0x430)]();});}}catch(_0x5df704){this[_0x506d5e(0x369)][_0x506d5e(0x466)](_0x5df704),this[_0x506d5e(0x430)]();}}['_onConnectionOpen'](_0x253ffc){const _0x109bd5=_0x27a195;this[_0x109bd5(0x369)][_0x109bd5(0x5f3)](_0x109bd5(0x3b5),_0x109bd5(0x2ed)),_0x253ffc[_0x109bd5(0x2f9)]({'cmd':b[_0x109bd5(0x3c4)]}),this['_rescheduleHeartbeat']();}['_listenToOfflineEvent'](){const _0x40857c=_0x27a195;window[_0x40857c(0x350)](_0x40857c(0x3bb),()=>this[_0x40857c(0x5ee)]());}[_0x27a195(0x5ee)](){const _0xa38c5c=_0x27a195;this['_socketReady']=!0x1,this[_0xa38c5c(0x434)]=null,this[_0xa38c5c(0x28c)][_0xa38c5c(0x573)](H[_0xa38c5c(0x45a)]),this[_0xa38c5c(0x2c5)][_0xa38c5c(0x573)](null),this[_0xa38c5c(0x2ff)](),this['_clearHeartbeatTimer']();}[_0x27a195(0x430)](){const _0x4fc4cf=_0x27a195;var _0x279490;this['_onOffline'](),this[_0x4fc4cf(0x376)]<((_0x279490=this[_0x4fc4cf(0x4d6)]['getConfig'](It))!=null?_0x279490:ts)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':X[_0x4fc4cf(0x429)][_0x4fc4cf(0x20b)],'content':this['_localeService']['t']('session.will-retry')}),this[_0x4fc4cf(0x293)]()):this[_0x4fc4cf(0x20c)]['show']({'key':'collaboration-session-retry','type':X[_0x4fc4cf(0x429)]['Error'],'content':this[_0x4fc4cf(0x37d)]['t'](_0x4fc4cf(0x40b))});}['_listenToOnlineEvent'](){const _0x28b04f=_0x27a195,_0x486109=()=>{const _0x4255c3=_0x3f87;this[_0x4255c3(0x30c)]||this['reconnect']();},_0x75ae04=()=>{const _0x47884d=_0x3f87;this[_0x47884d(0x30c)]||document[_0x47884d(0x40e)]==='hidden'||this[_0x47884d(0x3e6)]();};window['addEventListener'](_0x28b04f(0x37e),_0x486109),document[_0x28b04f(0x350)](_0x28b04f(0x496),_0x75ae04);}['_tryReconnect'](){const _0x17d3e3=_0x27a195;var _0x35db2c;const _0x474527=this[_0x17d3e3(0x376)],_0x374cb3=this[_0x17d3e3(0x4d6)][_0x17d3e3(0x4e9)](L),_0x4161ac=_0x474527===0x0?0x0:((_0x35db2c=_0x374cb3==null?void 0x0:_0x374cb3['retryConnectingInterval'])!=null?_0x35db2c:es)*0x2**_0x474527;this[_0x17d3e3(0x4fc)]=window[_0x17d3e3(0x46c)](()=>{const _0x4b113c=_0x17d3e3;clearTimeout(this[_0x4b113c(0x4fc)]),this['_retryConnectingTimer']=null,this[_0x4b113c(0x4b9)]();},_0x4161ac),this[_0x17d3e3(0x376)]+=0x1;}[_0x27a195(0x40d)](_0x2ec6e3,_0x1619bd){const _0x3f00ad=_0x27a195,{cmd:_0x5e305e}=_0x1619bd;_0x5e305e===b[_0x3f00ad(0x3c4)]&&!this['_socketReady']&&(_0x2ec6e3[_0x3f00ad(0x203)]=_0x1619bd[_0x3f00ad(0x276)][_0x3f00ad(0x203)],this[_0x3f00ad(0x2c5)][_0x3f00ad(0x573)](_0x2ec6e3),this[_0x3f00ad(0x28c)][_0x3f00ad(0x573)](H[_0x3f00ad(0x3e8)]),this[_0x3f00ad(0x455)]=!0x0,this[_0x3f00ad(0x434)]=null),_0x5e305e===b[_0x3f00ad(0x48d)]&&this[_0x3f00ad(0x2ff)](),this['_rescheduleHeartbeat']();}[_0x27a195(0x5ba)](){const _0x4c7183=_0x27a195;var _0x493217;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window['setTimeout'](()=>this[_0x4c7183(0x209)](),(_0x493217=this[_0x4c7183(0x4d6)][_0x4c7183(0x4e9)](mt))!=null?_0x493217:Qt);}[_0x27a195(0x209)](){const _0x4e89e1=_0x27a195;this[_0x4e89e1(0x30c)]['send']({'cmd':b[_0x4e89e1(0x48d)]}),this[_0x4e89e1(0x40f)]();}[_0x27a195(0x40f)](){const _0x5f341a=_0x27a195;var _0x24ecd7;this[_0x5f341a(0x1f5)]=window[_0x5f341a(0x46c)](()=>this[_0x5f341a(0x430)](),(_0x24ecd7=this[_0x5f341a(0x4d6)][_0x5f341a(0x4e9)](Ge))!=null?_0x24ecd7:ft);}[_0x27a195(0x255)](){const _0x5767fe=_0x27a195;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this['_sendHeartbeatTimer']),this[_0x5767fe(0x3a1)]=null);}[_0x27a195(0x2ff)](){const _0x11b664=_0x27a195;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x11b664(0x1f5)]),this['_timeoutTimer']=null);}},exports[_0x27a195(0x445)]=Cs([Z(0x0,a[_0x27a195(0x4da)](a['Injector'])),Z(0x1,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)])),Z(0x2,A[_0x27a195(0x367)]),Z(0x3,a[_0x27a195(0x246)]),Z(0x4,a['IConfigService']),Z(0x5,Ke)],exports[_0x27a195(0x445)]);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x27a195(0x24b)]((Ue+0x100)[_0x27a195(0x3bd)](0x10)[_0x27a195(0x253)](0x1));function Es(_0x1a94ed,_0x5af3a5=0x0){const _0x55a37f=_0x27a195;return(R[_0x1a94ed[_0x5af3a5+0x0]]+R[_0x1a94ed[_0x5af3a5+0x1]]+R[_0x1a94ed[_0x5af3a5+0x2]]+R[_0x1a94ed[_0x5af3a5+0x3]]+'-'+R[_0x1a94ed[_0x5af3a5+0x4]]+R[_0x1a94ed[_0x5af3a5+0x5]]+'-'+R[_0x1a94ed[_0x5af3a5+0x6]]+R[_0x1a94ed[_0x5af3a5+0x7]]+'-'+R[_0x1a94ed[_0x5af3a5+0x8]]+R[_0x1a94ed[_0x5af3a5+0x9]]+'-'+R[_0x1a94ed[_0x5af3a5+0xa]]+R[_0x1a94ed[_0x5af3a5+0xb]]+R[_0x1a94ed[_0x5af3a5+0xc]]+R[_0x1a94ed[_0x5af3a5+0xd]]+R[_0x1a94ed[_0x5af3a5+0xe]]+R[_0x1a94ed[_0x5af3a5+0xf]])[_0x55a37f(0x358)]();}var Se,bs=new Uint8Array(0x10);function Ts(){const _0x42e8e6=_0x27a195;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x42e8e6(0x51b)]&&crypto[_0x42e8e6(0x51b)][_0x42e8e6(0x4bd)](crypto),!Se))throw new Error(_0x42e8e6(0x4c5));return Se(bs);}var Rs=typeof crypto<'u'&&crypto['randomUUID']&&crypto[_0x27a195(0x415)][_0x27a195(0x4bd)](crypto);const st={'randomUUID':Rs};function Os(_0x5195ef,_0x37866e,_0x4d9434){const _0x29e4ef=_0x27a195;if(st[_0x29e4ef(0x415)]&&!_0x37866e&&!_0x5195ef)return st['randomUUID']();_0x5195ef=_0x5195ef||{};var _0x4145c5=_0x5195ef[_0x29e4ef(0x20e)]||(_0x5195ef[_0x29e4ef(0x3d8)]||Ts)();return _0x4145c5[0x6]=_0x4145c5[0x6]&0xf|0x40,_0x4145c5[0x8]=_0x4145c5[0x8]&0x3f|0x80,Es(_0x4145c5);}var Ds=Object['defineProperty'],ys=Object[_0x27a195(0x219)],Us=(_0xaa6cb2,_0x15ec1c,_0x33e122,_0x31fad4)=>{const _0x73593f=_0x27a195;for(var _0x5797e5=_0x31fad4>0x1?void 0x0:_0x31fad4?ys(_0x15ec1c,_0x33e122):_0x15ec1c,_0x53db3a=_0xaa6cb2[_0x73593f(0x540)]-0x1,_0x977e37;_0x53db3a>=0x0;_0x53db3a--)(_0x977e37=_0xaa6cb2[_0x53db3a])&&(_0x5797e5=(_0x31fad4?_0x977e37(_0x15ec1c,_0x33e122,_0x5797e5):_0x977e37(_0x5797e5))||_0x5797e5);return _0x31fad4&&_0x5797e5&&Ds(_0x15ec1c,_0x33e122,_0x5797e5),_0x5797e5;},Pe=(_0x3a2c48,_0x106189)=>(_0x25561c,_0x3ff13a)=>_0x106189(_0x25561c,_0x3ff13a,_0x3a2c48);let fe=class{constructor(_0x1f9c64,_0x196509,_0x46d295){const _0x2e8c4b=_0x27a195;this[_0x2e8c4b(0x3cf)]=_0x1f9c64,this[_0x2e8c4b(0x547)]=_0x196509,this[_0x2e8c4b(0x559)]=_0x46d295;}[_0x27a195(0x265)](_0x56607f){const _0x242f8d=_0x27a195;this[_0x242f8d(0x2f8)](_0x56607f),this[_0x242f8d(0x3c0)](_0x56607f);}[_0x27a195(0x3bc)](_0x5ac037){const _0x9d31b=_0x27a195,{unitID:_0x599f63}=_0x5ac037,_0x1d96b1=this['_renderManagerService'][_0x9d31b(0x1eb)](_0x599f63)['with'](N[_0x9d31b(0x58e)]),{redoCache:_0x5bda5e}=_0x1d96b1[_0x9d31b(0x3c7)]();if(_0x5bda5e[_0x9d31b(0x540)]===0x0)return _0x5ac037;let _0x3676dc=a['Tools']['deepClone'](_0x5ac037[_0x9d31b(0x4e1)][0x0]);for(let _0x85a16b=0x0;_0x85a16b<_0x5bda5e[_0x9d31b(0x540)];_0x85a16b++){const _0x50b545={'id':_0x9d31b(0x473),'params':{..._0x5bda5e[_0x85a16b]}},_0xe396aa=this[_0x9d31b(0x547)][_0x9d31b(0x248)](_0x3676dc,_0x50b545,!0x1);if(_[_0x9d31b(0x252)](_0xe396aa))throw _0xe396aa[_0x9d31b(0x466)];_0x3676dc=_0xe396aa[_0x9d31b(0x42d)];}return{...a['Tools'][_0x9d31b(0x2f6)](_0x5ac037),'mutations':[_0x3676dc]};}[_0x27a195(0x2f8)](_0x1ca6df){const _0x55ec8=_0x27a195,{unitID:_0xea30a7}=_0x1ca6df,_0x459ce3=this[_0x55ec8(0x559)][_0x55ec8(0x1eb)](_0xea30a7)[_0x55ec8(0x602)](N[_0x55ec8(0x58e)]),{undoCache:_0x31d653,redoCache:_0x4ad4ec}=_0x459ce3[_0x55ec8(0x3c7)]();if(_0x31d653[_0x55ec8(0x540)]===0x0||_0x4ad4ec[_0x55ec8(0x540)]===0x0)return;const _0x29a249=[],_0x44e4cf=[];let _0x4cbc88=a['Tools'][_0x55ec8(0x2f6)](_0x1ca6df[_0x55ec8(0x4e1)][0x0]),_0x1faeb3=a[_0x55ec8(0x3ca)][_0x55ec8(0x2f6)](_0x1ca6df[_0x55ec8(0x4e1)][0x0]);for(let _0x2936e6=_0x31d653['length']-0x1;_0x2936e6>=0x0;_0x2936e6--){const _0x42facd={'id':_0x55ec8(0x473),'params':{..._0x31d653[_0x2936e6]}},_0x50d439={'id':_0x55ec8(0x473),'params':{..._0x4ad4ec[_0x2936e6]}},_0x2df182=this[_0x55ec8(0x547)][_0x55ec8(0x248)](_0x4cbc88,_0x42facd,!0x1),_0x2fe4ff=this['_transformService'][_0x55ec8(0x248)](_0x1faeb3,_0x50d439,!0x1);if(_[_0x55ec8(0x252)](_0x2df182))throw _0x2df182['error'];if(_[_0x55ec8(0x252)](_0x2fe4ff))throw _0x2fe4ff[_0x55ec8(0x466)];_0x29a249[_0x55ec8(0x512)](_0x2df182[_0x55ec8(0x36c)]['params']),_0x44e4cf[_0x55ec8(0x512)](_0x2fe4ff[_0x55ec8(0x36c)]['params']),_0x4cbc88=_0x2df182[_0x55ec8(0x42d)],_0x1faeb3=_0x2fe4ff[_0x55ec8(0x42d)];}_0x459ce3[_0x55ec8(0x3fb)]({'undoCache':_0x29a249,'redoCache':_0x44e4cf});}[_0x27a195(0x3c0)](_0x2073e0){const _0x32e45c=_0x27a195,{unitID:_0xcea0b8}=_0x2073e0,_0x121c75=this['_renderManagerService']['getRenderById'](_0xcea0b8)[_0x32e45c(0x602)](N[_0x32e45c(0x58e)]),_0x24f0fa=_0x121c75[_0x32e45c(0x3d5)]();if(_0x24f0fa==null)return;const _0x267c9b=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2073e0[_0x32e45c(0x43c)],'actions':null,'textRanges':[_0x24f0fa]}}],_0x23c4d9=this[_0x32e45c(0x547)][_0x32e45c(0x3e4)](_0x2073e0,_0x267c9b);if(!_[_0x32e45c(0x47d)](_0x23c4d9))throw _0x23c4d9[_0x32e45c(0x466)];const _0x3a12ab=_0x23c4d9[_0x32e45c(0x36c)][0x0][_0x32e45c(0x4e6)]['textRanges'];Array[_0x32e45c(0x4e8)](_0x3a12ab)&&_0x3a12ab[_0x32e45c(0x540)]&&_0x121c75[_0x32e45c(0x3ef)](_0x3a12ab[0x0]);}};fe=Us([Pe(0x0,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),Pe(0x1,_[_0x27a195(0x212)]),Pe(0x2,O[_0x27a195(0x2cf)])],fe);var Ps=Object[_0x27a195(0x410)],ws=Object[_0x27a195(0x219)],Ns=(_0x24fc55,_0x27f5b8,_0x37e8a3,_0x398f27)=>{const _0x1338ac=_0x27a195;for(var _0x43dcba=_0x398f27>0x1?void 0x0:_0x398f27?ws(_0x27f5b8,_0x37e8a3):_0x27f5b8,_0x5d4c35=_0x24fc55[_0x1338ac(0x540)]-0x1,_0x2f2c04;_0x5d4c35>=0x0;_0x5d4c35--)(_0x2f2c04=_0x24fc55[_0x5d4c35])&&(_0x43dcba=(_0x398f27?_0x2f2c04(_0x27f5b8,_0x37e8a3,_0x43dcba):_0x2f2c04(_0x43dcba))||_0x43dcba);return _0x398f27&&_0x43dcba&&Ps(_0x27f5b8,_0x37e8a3,_0x43dcba),_0x43dcba;},ce=(_0x488b0f,_0x2b1dde)=>(_0x574463,_0x279df4)=>_0x2b1dde(_0x574463,_0x279df4,_0x488b0f);exports[_0x27a195(0x2bc)]=class extends a[_0x27a195(0x2cb)]{constructor(_0x24e19f,_0xc53da2,_0x350286,_0x22e244,_0x274637){const _0x1d830=_0x27a195;super(),u(this,_0x1d830(0x35b),new Map()),u(this,_0x1d830(0x3e3),new Map()),u(this,_0x1d830(0x258),!0x1),(this[_0x1d830(0x4d6)]=_0x24e19f,this[_0x1d830(0x391)]=_0xc53da2,this[_0x1d830(0x377)]=_0x350286,this['_localeService']=_0x22e244,this[_0x1d830(0x41b)]=_0x274637,this['_setupBeforeClosingHandler']());}[_0x27a195(0x474)](){const _0x24e47b=_0x27a195;this[_0x24e47b(0x258)]=!0x0;}[_0x27a195(0x339)](){const _0x4adbf1=_0x27a195;this[_0x4adbf1(0x258)]=!0x1;}[_0x27a195(0x22a)](){const _0x9f51a6=_0x27a195;this[_0x9f51a6(0x53a)]()['then'](()=>super[_0x9f51a6(0x22a)]());}async[_0x27a195(0x5e9)](_0x48022a){const _0x42375a=_0x27a195;return this[_0x42375a(0x258)]?null:this['_localStorageService']['getItem'](it(_0x48022a));}async[_0x27a195(0x471)](_0x32789d,_0x2a7395){const _0xed2035=_0x27a195;return!!this[_0xed2035(0x391)][_0xed2035(0x480)](_0x32789d,_0x2a7395);}[_0x27a195(0x4e3)](_0x3a1f44,_0x4e12be,_0x444bfa,_0x464c2a){const _0x2cdf39=_0x27a195,_0x58d872=this[_0x2cdf39(0x41b)][_0x2cdf39(0x5dd)](_0x3a1f44);this['_cachedData'][_0x2cdf39(0x36e)](_0x3a1f44,{'unitID':_0x3a1f44,'type':_0x4e12be,'awaitingChangeset':_0x444bfa,'mutations':_0x464c2a,'rev':_0x58d872}),this[_0x2cdf39(0x3e3)]['has'](_0x3a1f44)||this['_scheduleSaving'](_0x3a1f44);}[_0x27a195(0x46b)](_0x2a1ded){const _0x338457=_0x27a195,_0x1028a8=this[_0x338457(0x41c)]();_0x1028a8===0x0?this[_0x338457(0x349)](_0x2a1ded):this[_0x338457(0x3e3)][_0x338457(0x36e)](_0x2a1ded,setTimeout(()=>this['_saveCache'](_0x2a1ded),_0x1028a8));}[_0x27a195(0x41c)](){const _0x264ca4=_0x27a195;var _0x59520d;return(_0x59520d=this[_0x264ca4(0x4d6)][_0x264ca4(0x4e9)](pt))!=null?_0x59520d:ss;}[_0x27a195(0x349)](_0x5b0907){const _0x24cd18=_0x27a195,_0x7b6d23=this[_0x24cd18(0x3e3)][_0x24cd18(0x520)](_0x5b0907);return _0x7b6d23!==void 0x0&&window[_0x24cd18(0x37b)](_0x7b6d23),this[_0x24cd18(0x391)][_0x24cd18(0x480)](it(_0x5b0907),this[_0x24cd18(0x35b)]['get'](_0x5b0907))[_0x24cd18(0x2c7)](()=>this['_saveTaskMap'][_0x24cd18(0x4a1)](_0x5b0907));}async['exhaustSavingTask'](){const _0x39357d=_0x27a195,_0x3cfd60=[];this['_saveTaskMap'][_0x39357d(0x481)]((_0x1446a2,_0x5d8ca8)=>{const _0x429f7d=_0x39357d;window[_0x429f7d(0x37b)](_0x1446a2),_0x3cfd60['push'](this[_0x429f7d(0x349)](_0x5d8ca8)['then'](()=>{this['_saveTaskMap']['delete'](_0x5d8ca8);}));}),await Promise[_0x39357d(0x420)](_0x3cfd60);}[_0x27a195(0x366)](){const _0x3be0a5=_0x27a195;this[_0x3be0a5(0x598)](this[_0x3be0a5(0x377)][_0x3be0a5(0x201)](()=>{const _0x32fc02=_0x3be0a5;if(this[_0x32fc02(0x3e3)]['size'])return this['_localeService']['t'](_0x32fc02(0x3b3));}));}},exports[_0x27a195(0x2bc)]=Ns([ce(0x0,a[_0x27a195(0x41e)]),ce(0x1,a[_0x27a195(0x30a)]),ce(0x2,A['IBeforeCloseService']),ce(0x3,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)])),ce(0x4,a[_0x27a195(0x4da)](_[_0x27a195(0x59d)]))],exports[_0x27a195(0x2bc)]);function it(_0x1dbfbf){const _0xdffd40=_0x27a195;return _0xdffd40(0x3ab)+_0x1dbfbf;}var Ms=Object[_0x27a195(0x410)],As=Object[_0x27a195(0x219)],Ls=(_0x217324,_0x5cd927,_0x4df802,_0x364887)=>{const _0x44e217=_0x27a195;for(var _0x140a85=_0x364887>0x1?void 0x0:_0x364887?As(_0x5cd927,_0x4df802):_0x5cd927,_0x9db81e=_0x217324[_0x44e217(0x540)]-0x1,_0x185a41;_0x9db81e>=0x0;_0x9db81e--)(_0x185a41=_0x217324[_0x9db81e])&&(_0x140a85=(_0x364887?_0x185a41(_0x5cd927,_0x4df802,_0x140a85):_0x185a41(_0x140a85))||_0x140a85);return _0x364887&&_0x140a85&&Ms(_0x5cd927,_0x4df802,_0x140a85),_0x140a85;},we=(_0x415cd8,_0x1812e4)=>(_0x473cac,_0x314b23)=>_0x1812e4(_0x473cac,_0x314b23,_0x415cd8);function js(_0x580c51){const _0x5260a4=_0x27a195,{unitID:_0x484539,mutations:_0x1197d8}=_0x580c51;return{'unitId':_0x484539,'subUnitId':_0x1197d8[0x0][_0x5260a4(0x4e6)][_0x5260a4(0x5e7)]};}let Ie=class{constructor(_0x1b9606,_0x623fd3,_0x357544){const _0x2f5d06=_0x27a195;this[_0x2f5d06(0x3cf)]=_0x1b9606,this[_0x2f5d06(0x547)]=_0x623fd3,this[_0x2f5d06(0x5fe)]=_0x357544;}[_0x27a195(0x467)](_0x13c814){const _0x5a57cb=_0x27a195;var _0x5a945,_0x15f1c7,_0x298cbd,_0x49adf3;const _0x2beda8=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x5d95f1,subUnitId:_0x55e059}=js(_0x13c814),_0x3b2d1b=_0x2beda8['getWorkbookSelections'](_0x5d95f1)[_0x5a57cb(0x5b2)](),_0x55f8ba=(_0x15f1c7=(_0x5a945=this[_0x5a57cb(0x5fe)][_0x5a57cb(0x54c)](_0x5d95f1))==null?void 0x0:_0x5a945[_0x5a57cb(0x345)]())==null?void 0x0:_0x15f1c7['getSheetId']();if(_0x3b2d1b[_0x5a57cb(0x540)]===0x0||!_0x5d95f1||!_0x55e059)return;const _0x2fc24e=[{'id':C[_0x5a57cb(0x33d)]['id'],'params':{'unitId':_0x5d95f1,'subUnitId':_0x55f8ba,'selections':a[_0x5a57cb(0x3ca)][_0x5a57cb(0x2f6)](_0x3b2d1b)}}],_0x12f7b8=this[_0x5a57cb(0x547)][_0x5a57cb(0x3e4)](_0x13c814,_0x2fc24e);if(!_[_0x5a57cb(0x47d)](_0x12f7b8))throw _0x12f7b8[_0x5a57cb(0x466)];const _0x5df9e3=(_0x49adf3=(_0x298cbd=_0x12f7b8[_0x5a57cb(0x36c)][0x0])==null?void 0x0:_0x298cbd['params'])==null?void 0x0:_0x49adf3[_0x5a57cb(0x5d4)];Array[_0x5a57cb(0x4e8)](_0x5df9e3)&&_0x5df9e3[_0x5a57cb(0x540)]&&this[_0x5a57cb(0x3cf)]['get'](a['ICommandService'])[_0x5a57cb(0x2bf)](C[_0x5a57cb(0x33d)]['id'],{'unitId':_0x5d95f1,'subUnitId':_0x55f8ba,'selections':_0x5df9e3});}};Ie=Ls([we(0x0,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),we(0x1,_[_0x27a195(0x212)]),we(0x2,a[_0x27a195(0x48c)])],Ie);const Re=a['createIdentifier'](_0x27a195(0x505));var Dt=(_0x17a61b=>(_0x17a61b[_0x17a61b['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x27a195(0x485),_0x17a61b[_0x17a61b['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x17a61b))(Dt||{});const nt=0x7530,rt='ACTIVE_UNIT_EVENT_CHANNEL';class $s extends a[_0x27a195(0x2cb)]{constructor(){const _0x548a6f=_0x27a195;super(),u(this,'_id',a[_0x548a6f(0x3ca)][_0x548a6f(0x49f)]()),u(this,'_selfUnitIDs',new Set()),u(this,_0x548a6f(0x26c),new Map()),u(this,_0x548a6f(0x57b),null),u(this,_0x548a6f(0x510),new Map()),u(this,'_unitStatus',new Map()),this[_0x548a6f(0x3be)]();}[_0x27a195(0x22a)](){const _0x15929b=_0x27a195;super[_0x15929b(0x22a)](),this[_0x15929b(0x510)][_0x15929b(0x481)]((_0xdb41ff,_0x511392)=>this[_0x15929b(0x28d)](_0x511392)),this[_0x15929b(0x57b)]&&window[_0x15929b(0x604)](this[_0x15929b(0x57b)]);}[_0x27a195(0x605)](_0x34949d){const _0x4989c0=_0x27a195;return this[_0x4989c0(0x27f)](_0x34949d)[_0x4989c0(0x3b2)](v[_0x4989c0(0x3f4)]());}['editingUnit'](_0x4972ca){const _0x5eaba8=_0x27a195;this[_0x5eaba8(0x5c3)][_0x5eaba8(0x476)]===0x0&&this[_0x5eaba8(0x333)](),this[_0x5eaba8(0x5c3)]['add'](_0x4972ca),this[_0x5eaba8(0x4ac)]({'type':0x0,'memberID':this[_0x5eaba8(0x34d)],'unitIDs':[_0x4972ca],'isForwarded':!0x1});}[_0x27a195(0x442)](_0x52630f){const _0x5997c5=_0x27a195;this[_0x5997c5(0x5c3)][_0x5997c5(0x4a1)](_0x52630f),this[_0x5997c5(0x5c3)][_0x5997c5(0x476)]===0x0&&this['_heartbeatTimer']&&window[_0x5997c5(0x604)](this['_heartbeatTimer']);}[_0x27a195(0x3be)](){const _0x5440ae=_0x27a195;this[_0x5440ae(0x598)](a[_0x5440ae(0x3eb)](v[_0x5440ae(0x457)](window,_0x5440ae(0x44d))[_0x5440ae(0x262)](_0x45f0e6=>{const _0x3926a6=_0x5440ae;if(_0x45f0e6[_0x3926a6(0x4de)]!==rt||!_0x45f0e6[_0x3926a6(0x507)])return;const _0x13f8f0=JSON[_0x3926a6(0x56f)](_0x45f0e6[_0x3926a6(0x507)]);this['_handleEvent'](_0x13f8f0);}))),window[_0x5440ae(0x350)](_0x5440ae(0x332),()=>this['_send']({'type':0x1,'memberID':this[_0x5440ae(0x34d)],'unitIDs':Array[_0x5440ae(0x3e1)](this['_selfUnitIDs'])}));}['_handleEvent'](_0x12dc55){const _0x40b580=_0x27a195;switch(_0x12dc55[_0x40b580(0x44f)]){case 0x0:this[_0x40b580(0x53d)](_0x12dc55);break;case 0x1:this[_0x40b580(0x4a6)](_0x12dc55);break;case 0x2:this['_handleHeartbeatEvent'](_0x12dc55);break;}}[_0x27a195(0x53d)](_0x4253a1){const _0x111fb9=_0x27a195,{unitIDs:_0x12d61d,memberID:_0x29aaaf,isForwarded:_0x3f24ee}=_0x4253a1;_0x12d61d[_0x111fb9(0x481)](_0x2a306b=>{const _0x254ead=_0x111fb9;if(!_0x3f24ee&&this[_0x254ead(0x26c)][_0x254ead(0x3a8)](_0x2a306b)&&this[_0x254ead(0x27f)](_0x2a306b)['next'](0x1),!this['_unitOnClients'][_0x254ead(0x3a8)](_0x2a306b)||!this['_unitOnClients'][_0x254ead(0x520)](_0x2a306b)[_0x254ead(0x3a8)](_0x29aaaf)){const _0x5b2e4b=this['_unitOnClients']['get'](_0x2a306b)||new Set();_0x5b2e4b['add'](_0x29aaaf),this[_0x254ead(0x26c)]['set'](_0x2a306b,_0x5b2e4b),this['_scheduleClearOtherTimer'](_0x29aaaf);}}),_0x3f24ee||this[_0x111fb9(0x4ac)]({'type':0x0,'memberID':this[_0x111fb9(0x34d)],'unitIDs':[...this[_0x111fb9(0x5c3)]],'isForwarded':!0x0});}[_0x27a195(0x334)](_0xdc991){const _0x100b02=_0x27a195;this['_removeClearOtherTimer'](_0xdc991);const _0x57dd5b=window['setTimeout'](()=>{const _0x1cb049=_0x3f87;this['_unitOnClients'][_0x1cb049(0x481)](_0x243528=>{const _0x4b42b3=_0x1cb049;_0x243528[_0x4b42b3(0x4a1)](_0xdc991);});},nt*0x2);this['_clearOtherTimers'][_0x100b02(0x36e)](_0xdc991,_0x57dd5b);}['_removeClearOtherTimer'](_0x3e8b53){const _0x4df1e5=_0x27a195;if(this['_clearOtherTimers']['has'](_0x3e8b53)){const _0x428b89=this[_0x4df1e5(0x510)]['get'](_0x3e8b53);_0x428b89&&window[_0x4df1e5(0x37b)](_0x428b89),this[_0x4df1e5(0x510)][_0x4df1e5(0x36e)](_0x3e8b53,null);}}['_handleLeaveEvent'](_0x60cca0){const _0x122398=_0x27a195,{memberID:_0x6cdac5,unitIDs:_0x4d9f4c}=_0x60cca0;_0x4d9f4c[_0x122398(0x481)](_0x4b4ffd=>{const _0x307071=_0x122398;var _0xf25d27;const _0x2d7bb7=this[_0x307071(0x26c)][_0x307071(0x520)](_0x4b4ffd);_0x2d7bb7&&(_0x2d7bb7[_0x307071(0x4a1)](_0x6cdac5),(_0xf25d27=this[_0x307071(0x27f)](_0x4b4ffd))==null||_0xf25d27['next'](_0x2d7bb7['size']===0x0?0x0:0x1));}),this[_0x122398(0x28d)](_0x6cdac5);}[_0x27a195(0x563)](_0x4dc3a1){const _0x22a4bc=_0x27a195;this[_0x22a4bc(0x334)](_0x4dc3a1[_0x22a4bc(0x203)]);}['_send'](_0x172b4b){const _0x5cfd56=_0x27a195;localStorage[_0x5cfd56(0x480)](rt,JSON[_0x5cfd56(0x2c4)](_0x172b4b));}[_0x27a195(0x333)](){const _0x3deecb=_0x27a195;this[_0x3deecb(0x57b)]=window[_0x3deecb(0x427)](()=>{const _0x3f7191=_0x3deecb;this[_0x3f7191(0x4ac)]({'type':0x2,'memberID':this[_0x3f7191(0x34d)]});},nt);}['_ensureSubject'](_0x4356ae){const _0x32e567=_0x27a195;return this[_0x32e567(0x4b1)][_0x32e567(0x3a8)](_0x4356ae)||this[_0x32e567(0x4b1)][_0x32e567(0x36e)](_0x4356ae,new v[(_0x32e567(0x4ec))](0x0)),this['_unitStatus'][_0x32e567(0x520)](_0x4356ae);}}function yt(_0x5298f1){const _0x3f6a1f=_0x27a195;let _0x17b412='';for(const _0x186523 of _0x5298f1){const {startOffset:_0x431be8,endOffset:_0x2d3d40,isActive:_0x1f47a7}=_0x186523;_0x17b412[_0x3f6a1f(0x540)]&&(_0x17b412+=','),_0x17b412+=_0x431be8+':'+_0x2d3d40+':'+(_0x1f47a7?'1':'0');}return _0x17b412;}function Hs(_0x4ef6be){const _0x3cbb03=_0x27a195,_0x295028=_0x4ef6be['split'](','),_0x54cd20=[];for(const _0x53336e of _0x295028){const [_0x123661,_0xafa8ed,_0x3e835a]=_0x53336e[_0x3cbb03(0x603)](':');_0x54cd20[_0x3cbb03(0x24b)]({'startOffset':Number(_0x123661),'endOffset':Number(_0xafa8ed),'collapsed':_0x123661===_0xafa8ed,'isActive':_0x3e835a==='1'});}return _0x54cd20['some'](_0x47c0fb=>_0x47c0fb[_0x3cbb03(0x325)])||(_0x54cd20[0x0][_0x3cbb03(0x325)]=!0x0),_0x54cd20;}class qe extends a[_0x27a195(0x47c)]{constructor(){const _0x3316fd=_0x27a195;super(...arguments),u(this,'_collabCursorState$',new v['BehaviorSubject'](null)),u(this,_0x3316fd(0x32a),this[_0x3316fd(0x4b0)][_0x3316fd(0x601)]());}['syncEditingCollabCursor'](_0x295d4b){const _0x41de0f=_0x27a195,{unitID:_0x5680c5,memberID:_0x304770,textRanges:_0x22a759}=_0x295d4b,_0x23e2ca=yt(_0x22a759),_0x372b35={'unitID':_0x5680c5,'memberID':_0x304770,'selection':_0x23e2ca};this[_0x41de0f(0x4b0)][_0x41de0f(0x573)](_0x372b35);}}var xs=Object[_0x27a195(0x410)],ks=Object[_0x27a195(0x219)],Bs=(_0x389563,_0x1fb05d,_0x51ff37,_0x1f60c7)=>{const _0x112f04=_0x27a195;for(var _0x2221e3=_0x1f60c7>0x1?void 0x0:_0x1f60c7?ks(_0x1fb05d,_0x51ff37):_0x1fb05d,_0x38c6a2=_0x389563[_0x112f04(0x540)]-0x1,_0x24f432;_0x38c6a2>=0x0;_0x38c6a2--)(_0x24f432=_0x389563[_0x38c6a2])&&(_0x2221e3=(_0x1f60c7?_0x24f432(_0x1fb05d,_0x51ff37,_0x2221e3):_0x24f432(_0x2221e3))||_0x2221e3);return _0x1f60c7&&_0x2221e3&&xs(_0x1fb05d,_0x51ff37,_0x2221e3),_0x2221e3;},ot=(_0x363813,_0x5c7697)=>(_0x2a8ce9,_0x5e6f50)=>_0x5c7697(_0x2a8ce9,_0x5e6f50,_0x363813);let pe=class{constructor(_0x1b5dd4,_0x562dfe){const _0x3933f0=_0x27a195;this['_injector']=_0x1b5dd4,this[_0x3933f0(0x547)]=_0x562dfe;}[_0x27a195(0x467)](_0x26cbfc){const _0x5d345d=_0x27a195;var _0x354583;const _0x2091f0=this[_0x5d345d(0x3cf)][_0x5d345d(0x520)](se[_0x5d345d(0x1fb)]),_0x271fb5=(_0x354583=_0x2091f0['getDocRanges']())!=null?_0x354583:[];if(_0x271fb5[_0x5d345d(0x540)]===0x0)return;const _0x5e4983=[{'id':_0x5d345d(0x473),'params':{'unitId':_0x26cbfc[_0x5d345d(0x43c)],'actions':null,'textRanges':_0x271fb5}}],_0x229164=this['_transformService'][_0x5d345d(0x3e4)](_0x26cbfc,_0x5e4983);if(!_[_0x5d345d(0x47d)](_0x229164))throw _0x229164[_0x5d345d(0x466)];const _0x4c8f98=_0x229164[_0x5d345d(0x36c)][0x0][_0x5d345d(0x4e6)][_0x5d345d(0x266)];Array[_0x5d345d(0x4e8)](_0x4c8f98)&&_0x4c8f98[_0x5d345d(0x540)]&&_0x2091f0['replaceTextRanges'](_0x4c8f98,!0x1);}};pe=Bs([ot(0x0,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),ot(0x1,_[_0x27a195(0x212)])],pe);const Vs=new Set([C[_0x27a195(0x1f8)]['id']]);function at(_0x2ef30c,_0x55ebd8,_0x103621,_0x96a258,_0x5404c2){const _0x14e783=_0x27a195;var _0x4b50fd,_0x20885f,_0x15d1ef,_0x2ced6f;const _0x3302a5=[];for(const _0x4e12ef of _0x2ef30c)if(Vs[_0x14e783(0x3a8)](_0x4e12ef['id'])){if(_0x3302a5[_0x14e783(0x540)]>0x0)break;_0x3302a5[_0x14e783(0x24b)](_0x4e12ef);break;}else _0x3302a5[_0x14e783(0x24b)](_0x4e12ef);const _0x1f3fca=(_0x20885f=(_0x4b50fd=_0x5404c2[_0x14e783(0x5e2)]())==null?void 0x0:_0x4b50fd['userID'])!=null?_0x20885f:_0x14e783(0x401),_0x20b589=(_0x2ced6f=(_0x15d1ef=_0x5404c2[_0x14e783(0x5e2)]())==null?void 0x0:_0x15d1ef['memberID'])!=null?_0x2ced6f:_0x14e783(0x401);return{'changeset':{'unitID':_0x55ebd8,'type':_[_0x14e783(0x561)](_0x103621['getUnitType'](_0x55ebd8)),'baseRev':_0x96a258[_0x14e783(0x5dd)](_0x55ebd8),'revision':0x0,'userID':_0x1f3fca,'memberID':_0x20b589,'mutations':_0x3302a5},'pendingMutations':_0x2ef30c[_0x14e783(0x253)](_0x3302a5[_0x14e783(0x540)])};}function Ws(_0x5c2bf2,_0x550fe5,_0x30d5b8,_0x4855e0,_0x2299bf){const _0x34e576=_0x27a195;var _0x1fe633,_0x49b154,_0x23fcf0,_0x42aeb4;const _0x158daa=[_0x5c2bf2[_0x34e576(0x37f)]((_0x32fbe2,_0xd92289)=>{const _0x56b829=_0x34e576;var _0x198458;const {id:_0x5004e7}=_0x32fbe2,{id:_0x1c6b68,type:_0x1d6858}=_0xd92289,_0x14ec18=(_0x198458=_0x32fbe2[_0x56b829(0x4e6)])!=null?_0x198458:{'actions':null},_0x81deec=_0xd92289[_0x56b829(0x4e6)];if(_0x5004e7&&_0x5004e7!==_0x1c6b68)throw new Error(_0x56b829(0x1e2)+_0x5004e7+_0x56b829(0x284)+_0x1c6b68+'.');return{..._0x32fbe2,'id':_0x1c6b68,'type':_0x1d6858,'params':{'unitId':_0x81deec[_0x56b829(0x431)],'textRanges':_0x81deec['textRanges'],'actions':a[_0x56b829(0x408)][_0x56b829(0x2db)](_0x14ec18[_0x56b829(0x2c3)],_0x81deec[_0x56b829(0x2c3)])}};},{})],_0xd43487=(_0x49b154=(_0x1fe633=_0x2299bf[_0x34e576(0x5e2)]())==null?void 0x0:_0x1fe633[_0x34e576(0x406)])!=null?_0x49b154:_0x34e576(0x401),_0xe9b0c=(_0x42aeb4=(_0x23fcf0=_0x2299bf['getCurrentUser']())==null?void 0x0:_0x23fcf0[_0x34e576(0x203)])!=null?_0x42aeb4:_0x34e576(0x401);return{'changeset':{'unitID':_0x550fe5,'type':_[_0x34e576(0x561)](_0x30d5b8[_0x34e576(0x371)](_0x550fe5)),'baseRev':_0x4855e0[_0x34e576(0x5dd)](_0x550fe5),'revision':0x0,'userID':_0xd43487,'memberID':_0xe9b0c,'mutations':_0x158daa},'pendingMutations':[]};}const Fs={'id':C[_0x27a195(0x327)]['id'],'type':a[_0x27a195(0x306)]['MUTATION'],'params':{}};var Gs=Object[_0x27a195(0x410)],Ys=Object[_0x27a195(0x219)],z=(_0x5f5098,_0x54c7b3,_0x2abe59,_0x1822bb)=>{const _0x49ed83=_0x27a195;for(var _0x217c31=_0x1822bb>0x1?void 0x0:_0x1822bb?Ys(_0x54c7b3,_0x2abe59):_0x54c7b3,_0x17fad1=_0x5f5098[_0x49ed83(0x540)]-0x1,_0xb8493e;_0x17fad1>=0x0;_0x17fad1--)(_0xb8493e=_0x5f5098[_0x17fad1])&&(_0x217c31=(_0x1822bb?_0xb8493e(_0x54c7b3,_0x2abe59,_0x217c31):_0xb8493e(_0x217c31))||_0x217c31);return _0x1822bb&&_0x217c31&&Gs(_0x54c7b3,_0x2abe59,_0x217c31),_0x217c31;},m=(_0xde6524,_0x3ba440)=>(_0x160efe,_0x42ff55)=>_0x3ba440(_0x160efe,_0x42ff55,_0xde6524),U=(_0x3828ee=>(_0x3828ee[_0x27a195(0x1df)]='not_collab',_0x3828ee['SYNCED']=_0x27a195(0x392),_0x3828ee[_0x27a195(0x2eb)]=_0x27a195(0x330),_0x3828ee[_0x27a195(0x538)]=_0x27a195(0x3b4),_0x3828ee['AWAITING_WITH_PENDING']=_0x27a195(0x235),_0x3828ee['FETCH_MISS']=_0x27a195(0x403),_0x3828ee[_0x27a195(0x223)]=_0x27a195(0x3fd),_0x3828ee[_0x27a195(0x45a)]=_0x27a195(0x3bb),_0x3828ee))(U||{});class J{constructor(_0x5a66ca,_0x273905,_0x5c24a9,_0x9ccb87,_0x4dae8b,_0x4b652d,_0x3eaba7,_0x1749fd,_0x1cfae7){const _0x2ddfd9=_0x27a195;u(this,_0x2ddfd9(0x5a5),null),u(this,'_pendingMutations',[]),(this[_0x2ddfd9(0x43c)]=_0x5a66ca,this[_0x2ddfd9(0x44f)]=_0x273905,this['_handler']=_0x4dae8b,this[_0x2ddfd9(0x39e)]=_0x4b652d,this[_0x2ddfd9(0x3f2)]=_0x3eaba7,this[_0x2ddfd9(0x41b)]=_0x1749fd,this['_localCacheService']=_0x1cfae7,this[_0x2ddfd9(0x5a5)]=_0x5c24a9,this['_pendingMutations']=_0x9ccb87);}['_checkMissing'](_0x5a5c5b){const _0x5b8808=_0x27a195,_0x783d=this[_0x5b8808(0x41b)]['getCurrentRevOfUnit'](this[_0x5b8808(0x43c)]);return _0x5a5c5b[_0x5b8808(0x550)]>_0x783d+0x1?(this[_0x5b8808(0x570)][_0x5b8808(0x5b8)]({'from':_0x783d,'to':_0x5a5c5b[_0x5b8808(0x550)]-0x1}),!0x0):!0x1;}[_0x27a195(0x2be)](_0xbe5808){const _0x16986d=_0x27a195;this[_0x16986d(0x3f2)][_0x16986d(0x3fc)](this[_0x16986d(0x43c)],_0xbe5808);}[_0x27a195(0x3de)](_0x42835e){const _0x5d844f=_0x27a195;var _0x5ca4d0,_0x4988fb;(_0x4988fb=(_0x5ca4d0=this[_0x5d844f(0x570)])[_0x5d844f(0x4c4)])==null||_0x4988fb[_0x5d844f(0x53e)](_0x5ca4d0,_0x42835e);}['_transformIMECache'](_0x5bd8d3){var _0x5b0377,_0x5558cd;return(_0x5558cd=(_0x5b0377=this['_handler'])['onTransformIME'])==null?void 0x0:_0x5558cd['call'](_0x5b0377,_0x5bd8d3);}[_0x27a195(0x441)](_0x4a28aa){const _0x3441a5=_0x27a195;var _0x2fcdf4,_0x50d7d5,_0x13bdff;return(_0x13bdff=(_0x50d7d5=(_0x2fcdf4=this['_handler'])[_0x3441a5(0x30f)])==null?void 0x0:_0x50d7d5[_0x3441a5(0x53e)](_0x2fcdf4,_0x4a28aa))!=null?_0x13bdff:_0x4a28aa;}[_0x27a195(0x3ad)](_0x6868da){const _0x1ac0e3=_0x27a195;var _0x5971cd,_0x2add7c;if(this['type']===$['UNIVER_DOC']){const {unitID:_0xaa8c8f,mutations:_0x446311,memberID:_0x15b617}=_0x6868da,_0x146d02=_0x446311[0x0][_0x1ac0e3(0x4e6)]['textRanges'];Array['isArray'](_0x146d02)&&_0x146d02[_0x1ac0e3(0x540)]>0x0&&((_0x2add7c=(_0x5971cd=this[_0x1ac0e3(0x570)])[_0x1ac0e3(0x50a)])==null||_0x2add7c[_0x1ac0e3(0x53e)](_0x5971cd,{'unitID':_0xaa8c8f,'memberID':_0x15b617,'textRanges':_0x146d02}));}}[_0x27a195(0x388)](){const _0x2d890a=_0x27a195;this[_0x2d890a(0x4d1)][_0x2d890a(0x4e3)](this['unitID'],this[_0x2d890a(0x44f)],this[_0x2d890a(0x5a5)],this['_pendingMutations']);}[_0x27a195(0x5a2)](){const _0xf4d791=_0x27a195;return this[_0xf4d791(0x41b)]['getCurrentRevOfUnit'](this[_0xf4d791(0x43c)]);}[_0x27a195(0x5c8)](){const _0x199cb8=_0x27a195;this[_0x199cb8(0x41b)][_0x199cb8(0x336)](this['unitID']);}[_0x27a195(0x543)](_0x3f13ba){const _0x1426a9=_0x27a195;var _0xfc3ce9;const _0x7ea989=this[_0x1426a9(0x441)](_0x3f13ba),_0x57385c=a[_0x1426a9(0x396)](_0x7ea989['mutations'],this[_0x1426a9(0x39e)],{'fromCollab':!0x0});if(!_0x57385c[_0x1426a9(0x31f)])throw _0x57385c[_0x1426a9(0x466)]instanceof Error?_0x57385c[_0x1426a9(0x466)]:new Error((_0xfc3ce9=_0x57385c['error'])!=null?_0xfc3ce9:_0x1426a9(0x222));this[_0x1426a9(0x452)](_0x7ea989),this[_0x1426a9(0x2be)](_0x3f13ba),this[_0x1426a9(0x3de)](_0x7ea989),this[_0x1426a9(0x3ad)](_0x7ea989),this[_0x1426a9(0x5c8)]();}}let ie=class extends J{constructor(_0x149c3c,_0x46b327,_0x2b9854,_0x569a31,_0x3424f5,_0x50a3e3,_0x15d1c3,_0x4bf459,_0x3aa2d3,_0x2cffc4){const _0x445810=_0x27a195;super(_0x149c3c,_0x46b327,null,[],_0x2b9854,_0x4bf459,_0x15d1c3,_0x569a31,_0x3424f5),u(this,_0x445810(0x30d),'synced'),(this[_0x445810(0x3cf)]=_0x50a3e3,this[_0x445810(0x369)]=_0x3aa2d3,this[_0x445810(0x547)]=_0x2cffc4);}['appendMutation'](_0x436019){const _0x35e925=_0x27a195,_0x1115c8=this[_0x35e925(0x3cf)][_0x35e925(0x2a3)](k,this[_0x35e925(0x43c)],this['type'],[_0x436019],this[_0x35e925(0x570)]);return _0x1115c8[_0x35e925(0x3f1)](),_0x1115c8[_0x35e925(0x388)](),_0x1115c8;}[_0x27a195(0x279)](_0x5ba1c1){const _0x5b0390=_0x27a195;if(this[_0x5b0390(0x4a2)](_0x5ba1c1))return this[_0x5b0390(0x3cf)]['createInstance'](x,this[_0x5b0390(0x43c)],this[_0x5b0390(0x44f)],null,[],null,[_0x5ba1c1],this[_0x5b0390(0x570)]);try{const _0x445a3f=this[_0x5b0390(0x547)][_0x5b0390(0x3e4)](_0x5ba1c1,[Fs]);if(_[_0x5b0390(0x47d)](_0x445a3f)){const {c1Prime:_0x5adbc0}=_0x445a3f;return this['_executeRemoteChangeset'](_0x5adbc0),this;}throw _0x445a3f[_0x5b0390(0x466)];}catch(_0x4207d7){return this['_logService'][_0x5b0390(0x466)](_0x4207d7),this['_onConflict'](!0x1);}}[_0x27a195(0x354)](_0x4c52f1){const _0x57b5df=_0x27a195;return this[_0x57b5df(0x3cf)]['createInstance'](F,this[_0x57b5df(0x43c)],this[_0x57b5df(0x44f)],null,[],this['_handler'],_0x4c52f1);}[_0x27a195(0x315)](){const _0x42e112=_0x27a195;throw new Error(_0x42e112(0x1ec));}['onRemoteRej'](){const _0x189ef4=_0x27a195;throw new Error(_0x189ef4(0x583));}[_0x27a195(0x45e)](){const _0x3d6425=_0x27a195;return this['_injector'][_0x3d6425(0x2a3)](G,this[_0x3d6425(0x43c)],this[_0x3d6425(0x44f)],null,[],this[_0x3d6425(0x570)]);}['toggleOnline'](){return this;}[_0x27a195(0x5a4)](){const _0x395b23=_0x27a195;throw new Error(_0x395b23(0x31e));}[_0x27a195(0x411)](){const _0x2327ac=_0x27a195,_0x36ff51=this[_0x2327ac(0x41b)]['getCurrentRevOfUnit'](this[_0x2327ac(0x43c)]);return this[_0x2327ac(0x570)][_0x2327ac(0x5b8)]({'from':_0x36ff51,'to':0x0}),this[_0x2327ac(0x3cf)][_0x2327ac(0x2a3)](x,this[_0x2327ac(0x43c)],this[_0x2327ac(0x44f)],null,[],null,[],this['_handler']);}};ie=z([m(0x3,a['Inject'](_[_0x27a195(0x59d)])),m(0x4,a['Inject'](exports[_0x27a195(0x2bc)])),m(0x5,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),m(0x6,a[_0x27a195(0x36b)]),m(0x7,a[_0x27a195(0x3e2)]),m(0x8,a['ILogService']),m(0x9,_[_0x27a195(0x212)])],ie);let k=class extends J{constructor(_0x449603,_0x360a4f,_0x11e135,_0x3ca51c,_0x248539,_0x41c1fc,_0x2a7b39,_0x5934aa,_0x341e27,_0x6841a5,_0x4adf1a,_0x3073f0,_0x5df12e,_0x4d50a5){const _0x9d0110=_0x27a195;super(_0x449603,_0x360a4f,null,_0x11e135,_0x3ca51c,_0x6841a5,_0x4d50a5,_0x41c1fc,_0x2a7b39),u(this,'status','pending'),u(this,_0x9d0110(0x478),null),u(this,'_sendingTimer',null),(this[_0x9d0110(0x3cf)]=_0x248539,this[_0x9d0110(0x3ae)]=_0x5934aa,this['_logService']=_0x341e27,this[_0x9d0110(0x4d6)]=_0x4adf1a,this['_transformService']=_0x3073f0,this[_0x9d0110(0x4d3)]=_0x5df12e);}[_0x27a195(0x1e1)](_0x42cded){const _0x2df26b=_0x27a195;return this[_0x2df26b(0x2c9)][_0x2df26b(0x24b)](_0x42cded),this[_0x2df26b(0x388)](),this;}[_0x27a195(0x279)](_0x331476){const _0x598cc5=_0x27a195;if(this[_0x598cc5(0x4a2)](_0x331476))return this['_clearScheduledTask'](),this[_0x598cc5(0x3cf)][_0x598cc5(0x2a3)](x,this['unitID'],this[_0x598cc5(0x44f)],null,this[_0x598cc5(0x2c9)],null,[_0x331476],this[_0x598cc5(0x570)]);try{const _0x468991=this[_0x598cc5(0x547)][_0x598cc5(0x3e4)](_0x331476,this['_pendingMutations']);if(_[_0x598cc5(0x47d)](_0x468991)){const {c1Prime:_0x163c37,m2Prime:_0x17beb5}=_0x468991;this['_executeRemoteChangeset'](_0x163c37);const _0x26af80=this['_injector'][_0x598cc5(0x2a3)](k,this[_0x598cc5(0x43c)],this[_0x598cc5(0x44f)],_0x17beb5,this['_handler']);return this[_0x598cc5(0x50c)](),_0x26af80[_0x598cc5(0x3f1)](this[_0x598cc5(0x478)]?Math[_0x598cc5(0x530)](0x0,new Date()[_0x598cc5(0x580)]()-this[_0x598cc5(0x478)]):this[_0x598cc5(0x28f)]()),_0x26af80;}throw _0x468991[_0x598cc5(0x466)];}catch(_0x511051){return this[_0x598cc5(0x369)]['error'](_0x511051),this[_0x598cc5(0x354)](!0x1);}}[_0x27a195(0x315)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x27a195(0x3d1)](){const _0xd03128=_0x27a195;throw new Error(_0xd03128(0x533));}[_0x27a195(0x45e)](){const _0x18e80f=_0x27a195;return this[_0x18e80f(0x50c)](),this[_0x18e80f(0x3cf)][_0x18e80f(0x2a3)](G,this[_0x18e80f(0x43c)],this['type'],null,this[_0x18e80f(0x2c9)],this[_0x18e80f(0x570)]);}[_0x27a195(0x5aa)](){return this;}[_0x27a195(0x3f1)](_0x235574){const _0x441bd5=_0x27a195,_0x296ff4=_0x235574!=null?_0x235574:this[_0x441bd5(0x28f)]();this['_scheduleTimestamp']=new Date()[_0x441bd5(0x580)](),this['_sendingTimer']=window[_0x441bd5(0x46c)](()=>{const _0x13f183=_0x441bd5;this[_0x13f183(0x50c)]();let _0x2fec14=null;switch(this[_0x13f183(0x44f)]){case $['UNIVER_SHEET']:{_0x2fec14=at(this[_0x13f183(0x2c9)],this[_0x13f183(0x43c)],this['_univerInstanceService'],this[_0x13f183(0x41b)],this['_memberService']);break;}case $['UNIVER_DOC']:{this[_0x13f183(0x2c9)][_0x13f183(0x4aa)](_0x185076=>_0x185076['id']===se['RichTextEditingMutation']['id'])?_0x2fec14=Ws(this[_0x13f183(0x2c9)],this[_0x13f183(0x43c)],this['_univerInstanceService'],this[_0x13f183(0x41b)],this[_0x13f183(0x3ae)]):_0x2fec14=at(this[_0x13f183(0x2c9)],this[_0x13f183(0x43c)],this[_0x13f183(0x4d3)],this[_0x13f183(0x41b)],this[_0x13f183(0x3ae)]);break;}default:throw new Error(_0x13f183(0x23f)+this['type']+_0x13f183(0x407));}const {changeset:_0x7103d6,pendingMutations:_0x13b5dc}=_0x2fec14;this[_0x13f183(0x570)][_0x13f183(0x576)](_0x7103d6);const _0x3dbb82=_0x13b5dc[_0x13f183(0x540)]?this[_0x13f183(0x3cf)][_0x13f183(0x2a3)](B,this[_0x13f183(0x43c)],this['type'],_0x7103d6,_0x13b5dc,this[_0x13f183(0x570)]):this[_0x13f183(0x3cf)][_0x13f183(0x2a3)](W,this['unitID'],this[_0x13f183(0x44f)],_0x7103d6,this[_0x13f183(0x570)]);_0x3dbb82['_updateLocalCache'](),this['_handler'][_0x13f183(0x2c8)](this,_0x3dbb82);},_0x296ff4);}['_getSendChangesetTimeout'](){const _0x14efab=_0x27a195;var _0x1f6434;const _0x58d757=this[_0x14efab(0x4d6)][_0x14efab(0x4e9)](L);return(_0x1f6434=_0x58d757==null?void 0x0:_0x58d757[_0x14efab(0x316)])!=null?_0x1f6434:Jt;}[_0x27a195(0x5a4)](){const _0x1d948c=_0x27a195;throw new Error(_0x1d948c(0x1e5));}['_clearScheduledTask'](){const _0x1b2ab8=_0x27a195;this[_0x1b2ab8(0x438)]!=null&&(clearTimeout(this[_0x1b2ab8(0x438)]),this[_0x1b2ab8(0x438)]=null);}[_0x27a195(0x354)](_0x39cd54){const _0x1e1e73=_0x27a195;return this[_0x1e1e73(0x50c)](),this['_injector'][_0x1e1e73(0x2a3)](F,this[_0x1e1e73(0x43c)],this[_0x1e1e73(0x44f)],null,this[_0x1e1e73(0x2c9)],this[_0x1e1e73(0x570)],_0x39cd54);}};k=z([m(0x4,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),m(0x5,a[_0x27a195(0x4da)](_[_0x27a195(0x59d)])),m(0x6,a['Inject'](exports[_0x27a195(0x2bc)])),m(0x7,a['Inject'](q)),m(0x8,a[_0x27a195(0x246)]),m(0x9,a['ICommandService']),m(0xa,a['IConfigService']),m(0xb,_[_0x27a195(0x212)]),m(0xc,a['IUniverInstanceService']),m(0xd,a[_0x27a195(0x36b)])],k);let W=class extends J{constructor(_0x6d2c9e,_0x555ee7,_0xc73d39,_0x45fb24,_0x598a87,_0x493be0,_0x2ce792,_0x30d20f,_0x57f315,_0x48506b,_0x2fc872){const _0x526ab1=_0x27a195;super(_0x6d2c9e,_0x555ee7,_0xc73d39,[],_0x45fb24,_0x30d20f,_0x2fc872,_0x493be0,_0x2ce792),u(this,'status',_0x526ab1(0x3b4)),(this[_0x526ab1(0x3cf)]=_0x598a87,this['_logService']=_0x57f315,this['_transformService']=_0x48506b);}[_0x27a195(0x1e1)](_0x37061f){const _0x53f15e=_0x27a195,_0x378179=this[_0x53f15e(0x3cf)][_0x53f15e(0x2a3)](B,this['unitID'],this[_0x53f15e(0x44f)],this[_0x53f15e(0x5a5)],[_0x37061f],this[_0x53f15e(0x570)]);return _0x378179[_0x53f15e(0x388)](),_0x378179;}[_0x27a195(0x279)](_0x4993ae){const _0x14abd7=_0x27a195;if(this[_0x14abd7(0x4a2)](_0x4993ae))return this[_0x14abd7(0x3cf)][_0x14abd7(0x2a3)](x,this[_0x14abd7(0x43c)],this[_0x14abd7(0x44f)],this[_0x14abd7(0x5a5)],[],null,[_0x4993ae],this['_handler']);try{const _0x185d37=this[_0x14abd7(0x547)]['transformChangesets']([_0x4993ae],[this['_awaitingChangeset']],!0x1);if(_[_0x14abd7(0x1f3)](_0x185d37)){const {c1Prime:_0x23667b,c2Prime:_0x252fbe}=_0x185d37;this['_executeRemoteChangeset'](_0x23667b[0x0]),_0x252fbe[0x0][_0x14abd7(0x484)]=this[_0x14abd7(0x5a2)]();const _0x1c7a24=this[_0x14abd7(0x3cf)]['createInstance'](W,this[_0x14abd7(0x43c)],this[_0x14abd7(0x44f)],_0x252fbe[0x0],this[_0x14abd7(0x570)]);return _0x1c7a24[_0x14abd7(0x388)](),_0x1c7a24;}return this[_0x14abd7(0x354)](!0x1);}catch(_0x2865c2){return this[_0x14abd7(0x369)]['error'](_0x2865c2),this[_0x14abd7(0x354)](!0x1);}}[_0x27a195(0x315)](_0x2de8d0){const _0x252bdd=_0x27a195,_0x9eed1c=this['_revisionService'][_0x252bdd(0x5dd)](this['unitID']);if(_0x2de8d0[_0x252bdd(0x550)]<_0x9eed1c-0x1)return this;if(this[_0x252bdd(0x4a2)](_0x2de8d0))return this[_0x252bdd(0x3cf)][_0x252bdd(0x2a3)](x,this[_0x252bdd(0x43c)],this[_0x252bdd(0x44f)],null,[],this[_0x252bdd(0x5a5)],[],this[_0x252bdd(0x570)]);this['_incrementRevisionNumber']();const _0x4b6eda=this[_0x252bdd(0x3cf)][_0x252bdd(0x2a3)](ie,this['unitID'],this['type'],this[_0x252bdd(0x570)]);return _0x4b6eda[_0x252bdd(0x388)](),_0x4b6eda;}[_0x27a195(0x3d1)](_0x57f7d0){const _0x236703=_0x27a195;return this[_0x236703(0x354)](!!(_0x57f7d0!=null&&_0x57f7d0[_0x236703(0x352)]));}['toggleOffline'](){const _0x118afe=_0x27a195;return this[_0x118afe(0x3cf)][_0x118afe(0x2a3)](G,this[_0x118afe(0x43c)],this[_0x118afe(0x44f)],this['_awaitingChangeset'],[],this[_0x118afe(0x570)]);}[_0x27a195(0x5aa)](){return this;}[_0x27a195(0x5a4)](){const _0x4c9937=_0x27a195;this['_handler'][_0x4c9937(0x576)](this[_0x4c9937(0x5a5)]);}[_0x27a195(0x354)](_0x4ce155){const _0x3bd455=_0x27a195;return this[_0x3bd455(0x3cf)]['createInstance'](F,this['unitID'],this[_0x3bd455(0x44f)],this['_awaitingChangeset'],[],this['_handler'],_0x4ce155);}};W=z([m(0x4,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),m(0x5,a[_0x27a195(0x4da)](_['RevisionService'])),m(0x6,a[_0x27a195(0x4da)](exports[_0x27a195(0x2bc)])),m(0x7,a[_0x27a195(0x3e2)]),m(0x8,a[_0x27a195(0x246)]),m(0x9,_['ITransformService']),m(0xa,a[_0x27a195(0x36b)])],W);let B=class extends J{constructor(_0x39dc5e,_0x2fc578,_0x1c165b,_0x45cddf,_0xf3a000,_0x311a2e,_0x12d37a,_0x275e57,_0x14abf6,_0x14a420,_0x1fa470,_0xdd77ca){const _0x1c7bb6=_0x27a195;super(_0x39dc5e,_0x2fc578,_0x1c165b,_0x45cddf,_0xf3a000,_0x14abf6,_0xdd77ca,_0x12d37a,_0x275e57),u(this,_0x1c7bb6(0x30d),'awaiting_with_pending'),(this['_injector']=_0x311a2e,this[_0x1c7bb6(0x369)]=_0x14a420,this[_0x1c7bb6(0x547)]=_0x1fa470);}[_0x27a195(0x1e1)](_0x3cc8f9){const _0x67fa5c=_0x27a195;return this[_0x67fa5c(0x2c9)][_0x67fa5c(0x24b)](_0x3cc8f9),this;}['onRemoteChangeset'](_0x241287){const _0x4be6d1=_0x27a195;if(this[_0x4be6d1(0x4a2)](_0x241287))return this[_0x4be6d1(0x3cf)][_0x4be6d1(0x2a3)](x,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x4be6d1(0x2c9)],null,[_0x241287],this['_handler']);try{const _0x42c30a=this[_0x4be6d1(0x547)][_0x4be6d1(0x3d4)]([_0x241287],[this[_0x4be6d1(0x5a5)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x42c30a)){const {c1Prime:_0x71672b,c2Prime:_0x53c99e}=_0x42c30a,_0x29a25c=this[_0x4be6d1(0x547)][_0x4be6d1(0x3e4)](_0x71672b[0x0],this[_0x4be6d1(0x2c9)]);if(_[_0x4be6d1(0x47d)](_0x29a25c)){const {c1Prime:_0x58a73f,m2Prime:_0xb584de}=_0x29a25c;return this[_0x4be6d1(0x543)](_0x58a73f),_0x53c99e[0x0][_0x4be6d1(0x484)]=this[_0x4be6d1(0x5a2)](),this[_0x4be6d1(0x3cf)][_0x4be6d1(0x2a3)](B,this[_0x4be6d1(0x43c)],this[_0x4be6d1(0x44f)],_0x53c99e[0x0],_0xb584de,this[_0x4be6d1(0x570)]);}throw _0x29a25c[_0x4be6d1(0x466)];}throw _0x42c30a[_0x4be6d1(0x466)];}catch(_0x4540eb){return this['_logService'][_0x4be6d1(0x466)](_0x4540eb),this['_onConflict'](!0x1);}}[_0x27a195(0x315)](_0x517910){const _0x3007f6=_0x27a195;if(this[_0x3007f6(0x4a2)](_0x517910))return this[_0x3007f6(0x3cf)]['createInstance'](x,this[_0x3007f6(0x43c)],this['type'],null,this[_0x3007f6(0x2c9)],this[_0x3007f6(0x5a5)],[],this[_0x3007f6(0x570)]);this[_0x3007f6(0x5c8)]();const _0x118eb5=this[_0x3007f6(0x3cf)]['createInstance'](k,this[_0x3007f6(0x43c)],this['type'],this[_0x3007f6(0x2c9)],this[_0x3007f6(0x570)]);return _0x118eb5[_0x3007f6(0x3f1)](),_0x118eb5[_0x3007f6(0x388)](),_0x118eb5;}[_0x27a195(0x3d1)](_0x11a10f){const _0x57bac7=_0x27a195;return this[_0x57bac7(0x354)](!!(_0x11a10f!=null&&_0x11a10f[_0x57bac7(0x352)]));}[_0x27a195(0x45e)](){const _0x3cfebc=_0x27a195;return this['_injector'][_0x3cfebc(0x2a3)](G,this[_0x3cfebc(0x43c)],this[_0x3cfebc(0x44f)],this['_awaitingChangeset'],this[_0x3cfebc(0x2c9)],this['_handler']);}[_0x27a195(0x5aa)](){return this;}['resend'](){const _0x3a24c6=_0x27a195;this[_0x3a24c6(0x570)]['onSendChangeset'](this[_0x3a24c6(0x5a5)]);}[_0x27a195(0x354)](_0x1c9934){const _0xa5ed18=_0x27a195;return this[_0xa5ed18(0x3cf)]['createInstance'](F,this[_0xa5ed18(0x43c)],this['type'],null,this[_0xa5ed18(0x2c9)],this[_0xa5ed18(0x570)],_0x1c9934);}};B=z([m(0x5,a['Inject'](a[_0x27a195(0x4f5)])),m(0x6,a[_0x27a195(0x4da)](_[_0x27a195(0x59d)])),m(0x7,a[_0x27a195(0x4da)](exports['LocalCacheService'])),m(0x8,a[_0x27a195(0x3e2)]),m(0x9,a[_0x27a195(0x246)]),m(0xa,_['ITransformService']),m(0xb,a[_0x27a195(0x36b)])],B);let F=class extends J{constructor(_0x55cbf5,_0x1f07ce,_0x4f9aae,_0x48d3a5,_0x40c5a0,_0x1a2317=!0x1,_0x14252d,_0x2d1a1b,_0x54d1ff,_0x15d105,_0x3fd815,_0x26646e,_0x1c8bbe){const _0x5358ba=_0x27a195;super(_0x55cbf5,_0x1f07ce,_0x4f9aae,_0x48d3a5,_0x40c5a0,_0x2d1a1b,_0x54d1ff,_0x3fd815,_0x15d105),u(this,'status',_0x5358ba(0x3fd)),(this[_0x5358ba(0x205)]=_0x1a2317,this[_0x5358ba(0x4ad)]=_0x14252d,this[_0x5358ba(0x37d)]=_0x26646e,this[_0x5358ba(0x2e9)]=_0x1c8bbe,this[_0x5358ba(0x437)](),this['_clearLocalCache'](),this[_0x5358ba(0x463)]());}[_0x27a195(0x1e1)](){return this;}[_0x27a195(0x279)](){return this;}[_0x27a195(0x315)](){return this;}[_0x27a195(0x3d1)](){return this;}[_0x27a195(0x45e)](){return this;}['toggleOnline'](){return this;}[_0x27a195(0x5a4)](){const _0x2a9960=_0x27a195;throw new Error(_0x2a9960(0x3c1));}[_0x27a195(0x439)](){const _0x172673=_0x27a195;this[_0x172673(0x4d1)][_0x172673(0x4e3)](this['unitID'],this[_0x172673(0x44f)],null,[]);}[_0x27a195(0x437)](){const _0x406731=_0x27a195;this[_0x406731(0x205)]?this['_notificationService']['show']({'title':this[_0x406731(0x37d)]['t']('permission.title'),'content':this[_0x406731(0x37d)]['t'](_0x406731(0x346)),'type':_0x406731(0x466),'duration':0x0}):this[_0x406731(0x2e9)]['show']({'title':this['_localeService']['t'](_0x406731(0x2df)),'content':this['_localeService']['t'](_0x406731(0x4f6)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x2431bd=_0x27a195;this[_0x2431bd(0x4ad)][_0x2431bd(0x216)](new C[(_0x2431bd(0x428))](this['unitID'])['id'],!0x1);}};F=z([m(0x6,a[_0x27a195(0x4da)](a[_0x27a195(0x260)])),m(0x7,a[_0x27a195(0x3e2)]),m(0x8,a['IUndoRedoService']),m(0x9,a['Inject'](exports[_0x27a195(0x2bc)])),m(0xa,a[_0x27a195(0x4da)](_[_0x27a195(0x59d)])),m(0xb,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)])),m(0xc,A[_0x27a195(0x281)])],F);let G=class extends J{constructor(_0x3df9c6,_0x1d656f,_0x58fee6,_0x541fb6,_0x36d86a,_0x49573e,_0xf59a12,_0x1e32a3,_0x10b0d2,_0x5262fd){const _0x3382fe=_0x27a195;super(_0x3df9c6,_0x1d656f,_0x58fee6,_0x541fb6,_0x36d86a,_0x10b0d2,_0x5262fd,_0xf59a12,_0x1e32a3),u(this,_0x3382fe(0x30d),_0x3382fe(0x3bb)),this['_injector']=_0x49573e;}[_0x27a195(0x1e1)](_0x4ad00b){const _0x3a190f=_0x27a195;return this[_0x3a190f(0x2c9)][_0x3a190f(0x24b)](_0x4ad00b),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0xddc654){const _0xfa7c82=_0x27a195;throw new Error(_0xfa7c82(0x4f4));}[_0x27a195(0x315)](){const _0x368a7f=_0x27a195;throw new Error(_0x368a7f(0x4b2));}[_0x27a195(0x3d1)](){const _0xc020d9=_0x27a195;throw new Error(_0xc020d9(0x5ce));}[_0x27a195(0x45e)](){return this;}[_0x27a195(0x5aa)](){const _0x45f0de=_0x27a195,{_injector:_0x29d430,_pendingMutations:_0x502df2,_awaitingChangeset:_0x31c996,unitID:_0x109777,_handler:_0x4a1e7f,type:_0x4ec804}=this,_0x11ea9a=Ut(_0x29d430,_0x109777,_0x4ec804,_0x31c996,_0x502df2,_0x4a1e7f);return _0x11ea9a instanceof k?_0x11ea9a[_0x45f0de(0x3f1)]():(_0x11ea9a instanceof B||_0x11ea9a instanceof W)&&_0x11ea9a[_0x45f0de(0x5a4)](),_0x11ea9a;}[_0x27a195(0x5a4)](){const _0x471d72=_0x27a195;throw new Error(_0x471d72(0x4a7));}};G=z([m(0x5,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),m(0x6,a[_0x27a195(0x4da)](_[_0x27a195(0x59d)])),m(0x7,a[_0x27a195(0x4da)](exports[_0x27a195(0x2bc)])),m(0x8,a[_0x27a195(0x3e2)]),m(0x9,a[_0x27a195(0x36b)])],G);function _0x3f87(_0x5ac8cc,_0x1a4e07){const _0x2ddce7=_0x2ddc();return _0x3f87=function(_0x3f878c,_0x4a0579){_0x3f878c=_0x3f878c-0x1d8;let _0xb8a7d4=_0x2ddce7[_0x3f878c];return _0xb8a7d4;},_0x3f87(_0x5ac8cc,_0x1a4e07);}let x=class extends J{constructor(_0x4a6715,_0x147941,_0x2d4f66,_0x29a90b,_0x345c5f,_0x482b03,_0x6e6377,_0xb23ced,_0x5a63d2,_0x64d500,_0x174e9b,_0x7565aa,_0x186cdd,_0x5d24af){const _0x5510f7=_0x27a195;super(_0x4a6715,_0x147941,_0x2d4f66,_0x29a90b,_0x6e6377,_0x7565aa,_0x186cdd,_0x5a63d2,_0x64d500),u(this,_0x5510f7(0x30d),'fetch_missing'),(this[_0x5510f7(0x458)]=_0x345c5f,this[_0x5510f7(0x4a0)]=_0x482b03,this['_injector']=_0xb23ced,this[_0x5510f7(0x369)]=_0x174e9b,this[_0x5510f7(0x547)]=_0x5d24af);}['onMissedChangesetFetched'](_0x58ac00){const _0x35a221=_0x27a195;try{const _0x182139=[..._0x58ac00,...this[_0x35a221(0x4a0)]],_0x4a13f9=[this[_0x35a221(0x5a5)]||this[_0x35a221(0x458)]]['filter'](_0x23287a=>!!_0x23287a);let _0x189bab,_0x25e2c9;if(_0x4a13f9[_0x35a221(0x540)]){const _0x61ec91=this[_0x35a221(0x547)][_0x35a221(0x3d4)](_0x182139,_0x4a13f9,!0x1);if(!_['isTransformChangesetsSuccess'](_0x61ec91))throw _0x61ec91[_0x35a221(0x466)];_0x189bab=_0x61ec91[_0x35a221(0x3da)],_0x25e2c9=_0x61ec91[_0x35a221(0x506)];}else _0x189bab=_0x182139,_0x25e2c9=[];let _0x5aec83=this[_0x35a221(0x2c9)];_0x189bab['forEach'](_0x4b28f6=>{const _0x550e8d=_0x35a221;let _0x54cdf1;if(_0x5aec83['length']){const _0xf98d6=this['_transformService'][_0x550e8d(0x3e4)](_0x4b28f6,_0x5aec83);if(!_[_0x550e8d(0x47d)](_0xf98d6))throw _0xf98d6[_0x550e8d(0x466)];_0x54cdf1=_0xf98d6[_0x550e8d(0x3da)],_0x5aec83=_0xf98d6['m2Prime'];}else _0x54cdf1=_0x4b28f6;this[_0x550e8d(0x543)](_0x54cdf1);}),this['_acknowledgedAwaitingChangeset']&&this[_0x35a221(0x5c8)](),this['_awaitingChangeset']&&_0x25e2c9['length']&&(_0x25e2c9[0x0][_0x35a221(0x484)]=this[_0x35a221(0x5a2)]());let _0x3a8571;if(this[_0x35a221(0x5a5)]&&_0x5aec83[_0x35a221(0x540)]!==0x0)_0x3a8571=this[_0x35a221(0x3cf)][_0x35a221(0x2a3)](B,this[_0x35a221(0x43c)],this[_0x35a221(0x44f)],_0x25e2c9[0x0],_0x5aec83,this[_0x35a221(0x570)]);else{if(this[_0x35a221(0x5a5)]&&_0x5aec83[_0x35a221(0x540)]===0x0)_0x25e2c9[0x0][_0x35a221(0x484)]=this[_0x35a221(0x5a2)](),_0x3a8571=this[_0x35a221(0x3cf)][_0x35a221(0x2a3)](W,this[_0x35a221(0x43c)],this[_0x35a221(0x44f)],_0x25e2c9[0x0],this[_0x35a221(0x570)]);else{if(_0x5aec83['length']!==0x0){const _0x2d6348=this['_injector']['createInstance'](k,this[_0x35a221(0x43c)],this[_0x35a221(0x44f)],_0x5aec83,this[_0x35a221(0x570)]);_0x2d6348['_schedule'](),_0x3a8571=_0x2d6348;}else _0x3a8571=this[_0x35a221(0x3cf)][_0x35a221(0x2a3)](ie,this[_0x35a221(0x43c)],this['type'],this[_0x35a221(0x570)]);}}return _0x3a8571['_updateLocalCache'](),_0x3a8571;}catch(_0x44b54b){return this[_0x35a221(0x369)][_0x35a221(0x466)](_0x35a221(0x342),_0x35a221(0x32c),_0x44b54b),this['_injector'][_0x35a221(0x2a3)](F,this['unitID'],this[_0x35a221(0x44f)],this['_awaitingChangeset'],this[_0x35a221(0x2c9)],this[_0x35a221(0x570)],!0x1);}}['resend'](){const _0x323a08=_0x27a195;throw new Error(_0x323a08(0x3b0));}['appendMutation'](_0x20de5b){const _0x4cb3d7=_0x27a195;return this['_pendingMutations'][_0x4cb3d7(0x24b)](_0x20de5b),this;}[_0x27a195(0x279)](_0x4de53f){return this['_queuedRemoteChangesets']['push'](_0x4de53f),this;}['onRemoteAck'](_0x388ffb){const _0x23cdb7=_0x27a195;if(this[_0x23cdb7(0x5a5)])return this[_0x23cdb7(0x458)]=this[_0x23cdb7(0x5a5)],this[_0x23cdb7(0x5a5)]=null,this;throw new Error(_0x23cdb7(0x5fc));}['onRemoteRej'](_0x5e00ae){const _0x5232bb=_0x27a195;return this[_0x5232bb(0x354)](!!(_0x5e00ae!=null&&_0x5e00ae['isPermissionRej']));}['toggleOffline'](){const _0x18ca92=_0x27a195;return this['_injector'][_0x18ca92(0x2a3)](G,this[_0x18ca92(0x43c)],this[_0x18ca92(0x44f)],this['_awaitingChangeset'],this[_0x18ca92(0x2c9)],this['_handler']);}[_0x27a195(0x5aa)](){return this;}[_0x27a195(0x354)](_0x20f2f4){const _0x5aeb9c=_0x27a195;return this[_0x5aeb9c(0x3cf)]['createInstance'](F,this[_0x5aeb9c(0x43c)],this[_0x5aeb9c(0x44f)],this[_0x5aeb9c(0x5a5)],this['_pendingMutations'],this[_0x5aeb9c(0x570)],_0x20f2f4);}};x=z([m(0x7,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),m(0x8,a[_0x27a195(0x4da)](_['RevisionService'])),m(0x9,a[_0x27a195(0x4da)](exports[_0x27a195(0x2bc)])),m(0xa,a[_0x27a195(0x246)]),m(0xb,a[_0x27a195(0x3e2)]),m(0xc,a[_0x27a195(0x36b)]),m(0xd,_[_0x27a195(0x212)])],x);function Ut(_0x26ddb8,_0x19d8c5,_0x218506,_0x44921d,_0x21c78e,_0x4ed539){const _0x4c6b37=_0x27a195;return _0x44921d&&_0x21c78e[_0x4c6b37(0x540)]?_0x26ddb8['createInstance'](B,_0x19d8c5,_0x218506,_0x44921d,_0x21c78e,_0x4ed539):_0x44921d?_0x26ddb8['createInstance'](W,_0x19d8c5,_0x218506,_0x44921d,_0x4ed539):_0x21c78e['length']?_0x26ddb8['createInstance'](k,_0x19d8c5,_0x218506,_0x21c78e,_0x4ed539):_0x26ddb8[_0x4c6b37(0x2a3)](ie,_0x19d8c5,_0x218506,_0x4ed539);}var Ks=Object[_0x27a195(0x410)],Xs=Object['getOwnPropertyDescriptor'],ze=(_0x9578e6,_0x2f3bfc,_0x1b95f5,_0x5574eb)=>{const _0x5cee08=_0x27a195;for(var _0x22ac88=_0x5574eb>0x1?void 0x0:_0x5574eb?Xs(_0x2f3bfc,_0x1b95f5):_0x2f3bfc,_0x734112=_0x9578e6[_0x5cee08(0x540)]-0x1,_0x2b839b;_0x734112>=0x0;_0x734112--)(_0x2b839b=_0x9578e6[_0x734112])&&(_0x22ac88=(_0x5574eb?_0x2b839b(_0x2f3bfc,_0x1b95f5,_0x22ac88):_0x2b839b(_0x22ac88))||_0x22ac88);return _0x5574eb&&_0x22ac88&&Ks(_0x2f3bfc,_0x1b95f5,_0x22ac88),_0x22ac88;},I=(_0x33442a,_0x58bbcc)=>(_0x3643b6,_0x4ea3fc)=>_0x58bbcc(_0x3643b6,_0x4ea3fc,_0x33442a);exports['CollaborationEntity']=class extends a[_0x27a195(0x47c)]{constructor(_0x3ae7d2,_0x1bb15f,_0xd55bf9,_0x12fd31,_0x498ad2,_0xe5c2f2,_0x41e9cb,_0x1c01c0,_0x5c5e08,_0xdde26f,_0x2c7db7,_0x2fe10b,_0x218b05){const _0x31b655=_0x27a195;super(),u(this,_0x31b655(0x382),new v[(_0x31b655(0x4ec))](null)),u(this,_0x31b655(0x571),this['_state$']['asObservable']()),u(this,'_state'),u(this,_0x31b655(0x273),!0x1),u(this,_0x31b655(0x5cd),''),u(this,_0x31b655(0x49c),0x0),u(this,_0x31b655(0x477),this[_0x31b655(0x571)][_0x31b655(0x3b2)](v['map'](_0x5508a4=>_0x5508a4?_0x5508a4[_0x31b655(0x30d)]:U[_0x31b655(0x45a)]),v[_0x31b655(0x3df)](0x1))),u(this,_0x31b655(0x3f3),!0x1),u(this,_0x31b655(0x42c),[]),(this[_0x31b655(0x43c)]=_0x3ae7d2,this['session']=_0x1bb15f,this[_0x31b655(0x417)]=_0xd55bf9,this[_0x31b655(0x3cf)]=_0x12fd31,this[_0x31b655(0x4d1)]=_0x498ad2,this[_0x31b655(0x2a1)]=_0xe5c2f2,this[_0x31b655(0x37d)]=_0x41e9cb,this[_0x31b655(0x41b)]=_0x1c01c0,this[_0x31b655(0x369)]=_0x5c5e08,this[_0x31b655(0x39e)]=_0xdde26f,this[_0x31b655(0x20c)]=_0x2c7db7,this[_0x31b655(0x4ad)]=_0x2fe10b,this['_singleActiveUnitService']=_0x218b05);}get['state'](){const _0xe19c5c=_0x27a195;return this[_0xe19c5c(0x2b1)];}async[_0x27a195(0x202)](){const _0x10450d=_0x27a195;if(this[_0x10450d(0x5cf)])throw new Error(_0x10450d(0x4f9));await this[_0x10450d(0x3be)]();}[_0x27a195(0x44a)](){const _0x5afb33=_0x27a195;return this[_0x5afb33(0x273)]=!0x0,a['toDisposable'](()=>{const _0x2fe3f7=_0x5afb33;this[_0x2fe3f7(0x273)]=!0x1,this[_0x2fe3f7(0x311)]();});}[_0x27a195(0x3f8)](_0x4f216b){const _0x131118=_0x27a195;this[_0x131118(0x2b1)]=_0x4f216b,this[_0x131118(0x382)][_0x131118(0x573)](_0x4f216b);}async[_0x27a195(0x3be)](){const _0x2d6247=_0x27a195;var _0x125c2d;this['_updateState'](await this[_0x2d6247(0x537)]()),this[_0x2d6247(0x26f)]&&((_0x125c2d=this['_singleActiveUnitService'])==null||_0x125c2d['editingUnit'](this['unitID']),this[_0x2d6247(0x598)](this[_0x2d6247(0x26f)][_0x2d6247(0x605)](this[_0x2d6247(0x43c)])[_0x2d6247(0x262)](_0x45e9d4=>{const _0x196b7f=_0x2d6247;this['_logService'][_0x196b7f(0x5f3)](_0x196b7f(0x3d6),'editing\x20status\x20changed\x20to',_0x45e9d4),_0x45e9d4===Dt[_0x196b7f(0x4d9)]?(this[_0x196b7f(0x20c)][_0x196b7f(0x4f0)]({'content':this['_localeService']['t'](_0x196b7f(0x247)),'type':X[_0x196b7f(0x429)]['Warning']}),this[_0x196b7f(0x4ad)]['updatePermissionPoint'](new C[(_0x196b7f(0x428))](this[_0x196b7f(0x43c)])['id'],!0x1)):this[_0x196b7f(0x4ad)][_0x196b7f(0x216)](new C[(_0x196b7f(0x428))](this[_0x196b7f(0x43c)])['id'],!0x0);})));let _0x2a15e0=!0x1;return this[_0x2d6247(0x598)](this[_0x2d6247(0x1e3)][_0x2d6247(0x4c9)][_0x2d6247(0x262)](_0x3fc186=>{const _0x17d371=_0x2d6247;_0x3fc186===H[_0x17d371(0x3e8)]?this[_0x17d371(0x294)](_0x2a15e0):_0x3fc186===H[_0x17d371(0x45a)]&&(_0x2a15e0=!0x0,this['_toggleOffline']());})),this[_0x2d6247(0x598)](this[_0x2d6247(0x1e3)][_0x2d6247(0x483)][_0x2d6247(0x262)](_0x2f3074=>{const _0x3c4a26=_0x2d6247;try{switch(_0x2f3074[_0x3c4a26(0x5e3)]){case _['CollaborationEvent'][_0x3c4a26(0x362)]:{this[_0x3c4a26(0x2d8)](_[_0x3c4a26(0x589)](_0x2f3074[_0x3c4a26(0x276)]));break;}case _['CollaborationEvent'][_0x3c4a26(0x54b)]:{this[_0x3c4a26(0x44b)](_0x2f3074[_0x3c4a26(0x276)]);break;}case _['CollaborationEvent'][_0x3c4a26(0x28a)]:{this[_0x3c4a26(0x487)]();break;}case _[_0x3c4a26(0x5f2)][_0x3c4a26(0x2a2)]:{this[_0x3c4a26(0x57d)](_0x2f3074['data'][_0x3c4a26(0x425)][_0x3c4a26(0x2ae)](_0x5dc8a7=>_['parseProtocolChangeset'](_0x5dc8a7)));break;}case _[_0x3c4a26(0x5f2)][_0x3c4a26(0x1fe)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x2b7abd){throw console[_0x3c4a26(0x466)]('Error\x20on\x20receiving\x20event',_0x2b7abd),_0x2b7abd;}})),this[_0x2d6247(0x2b1)];}[_0x27a195(0x3d3)](){this['_transitionLocked']=!0x1;}[_0x27a195(0x2d2)](){const _0x351cc2=_0x27a195;if(this[_0x351cc2(0x3f3)])throw new Error(_0x351cc2(0x21a));this[_0x351cc2(0x3f3)]=!0x0;}['_onLocalMutation'](_0xdff6f6){const _0x1c0f2f=_0x27a195;this[_0x1c0f2f(0x2d2)](),this[_0x1c0f2f(0x3f8)](this[_0x1c0f2f(0x2b1)]['appendMutation'](_0xdff6f6)),this[_0x1c0f2f(0x3d3)]();}[_0x27a195(0x2d8)](_0x18bca3){const _0x53203e=_0x27a195;if(!(_0x18bca3['revision']<=this['_revisionService'][_0x53203e(0x5dd)](this['unitID']))){if(this[_0x53203e(0x273)]){this['_remoteChangesetQueue'][_0x53203e(0x24b)](_0x18bca3);return;}this[_0x53203e(0x1ed)](_0x18bca3);}}['_exhaustRemoteChangesetQueue'](){const _0x3c9cbd=_0x27a195;this[_0x3c9cbd(0x42c)][_0x3c9cbd(0x481)](_0x55c26c=>this['_applyRemoteChangeset'](_0x55c26c)),this[_0x3c9cbd(0x42c)]=[];}[_0x27a195(0x1ed)](_0x1db057){const _0x19528f=_0x27a195,_0x365d29=this[_0x19528f(0x2a1)][_0x19528f(0x5b4)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x19528f(0x5b4)][_0x19528f(0x560)]()[_0x19528f(0x51a)])(_0x1db057[_0x19528f(0x4e1)],null)||_0x1db057[_0x19528f(0x4e1)],_0x816db4={..._0x1db057,'mutations':_0x365d29};this['_lockTransition'](),this[_0x19528f(0x3f8)](this[_0x19528f(0x2b1)][_0x19528f(0x279)](_0x816db4)),this[_0x19528f(0x3d3)]();}['_onRemoteACK'](_0x1469c9){const _0x115cdc=_0x27a195;this[_0x115cdc(0x2d2)](),this[_0x115cdc(0x3f8)](this['_state']['onRemoteAck'](_0x1469c9)),this[_0x115cdc(0x3d3)]();}[_0x27a195(0x487)](_0x71f538){const _0x130382=_0x27a195;this[_0x130382(0x2d2)](),this['_updateState'](this[_0x130382(0x2b1)][_0x130382(0x3d1)](_0x71f538)),this[_0x130382(0x3d3)]();}[_0x27a195(0x57d)](_0x1cf2a8){const _0x1fc35b=_0x27a195;if(!(this['_state']instanceof x))throw new TypeError(_0x1fc35b(0x54f));const _0x3503cf=_0x1cf2a8['map'](_0x2df807=>{const _0x339691=_0x1fc35b,_0x52fd04=this['_compressMutationService'][_0x339691(0x5b4)][_0x339691(0x24d)](this[_0x339691(0x2a1)][_0x339691(0x5b4)][_0x339691(0x560)]()['COMPRESS_MUTATION_APPLY'])(_0x2df807[_0x339691(0x4e1)],null)||_0x2df807[_0x339691(0x4e1)];return{..._0x2df807,'mutations':_0x52fd04};});this[_0x1fc35b(0x2d2)](),this[_0x1fc35b(0x3f8)](this[_0x1fc35b(0x2b1)][_0x1fc35b(0x5b3)](_0x3503cf)),this[_0x1fc35b(0x3d3)]();}[_0x27a195(0x1de)](){const _0x565980=_0x27a195;this[_0x565980(0x2d2)](),this[_0x565980(0x3f8)](this['_state'][_0x565980(0x45e)]()),this[_0x565980(0x3d3)]();}['_toggleOnline'](_0x4280dc=!0x1){const _0x465cb9=_0x27a195;this[_0x465cb9(0x2d2)](),this['_updateState'](this['_state'][_0x465cb9(0x5aa)]()),this[_0x465cb9(0x3d3)]();const _0x58196f=this[_0x465cb9(0x2b1)];_0x4280dc&&_0x58196f instanceof ie&&(this['_lockTransition'](),this[_0x465cb9(0x3f8)](_0x58196f[_0x465cb9(0x411)]()),this[_0x465cb9(0x3d3)]());}async['_createInitialState'](){return new Promise(_0x1b3db8=>{const _0xf98ac7=_0x3f87;this[_0xf98ac7(0x1e3)][_0xf98ac7(0x4c9)][_0xf98ac7(0x3b2)](v[_0xf98ac7(0x2da)](0x1))['subscribe'](async _0x2d2f89=>{_0x1b3db8(await this['_createInitialStateImpl'](_0x2d2f89===H['ONLINE']));});});}['_createHandler'](){const _0x2eb1a8=_0x27a195,_0x168644=this[_0x2eb1a8(0x43c)];return{'onStateChange':(_0x1da3fe,_0x5d5b70)=>{const _0x5f01ac=_0x2eb1a8;if(_0x1da3fe!==this[_0x5f01ac(0x2b1)])throw new Error(_0x5f01ac(0x3b1)+_0x1da3fe[_0x5f01ac(0x30d)]+_0x5f01ac(0x51e)+_0x5d5b70[_0x5f01ac(0x30d)]+'\x0aCurrent:\x20'+this[_0x5f01ac(0x2b1)][_0x5f01ac(0x30d)]);this[_0x5f01ac(0x3f8)](_0x5d5b70);},'onSendChangeset':_0x1f0dcf=>{const _0x47f870=_0x2eb1a8;_0x1f0dcf['sid']||(_0x1f0dcf[_0x47f870(0x2ac)]=this[_0x47f870(0x5cd)],_0x1f0dcf[_0x47f870(0x3f5)]=++this[_0x47f870(0x49c)]);const _0x2c713c={'eventID':_[_0x47f870(0x5f2)][_0x47f870(0x586)],'data':{'unitID':_0x1f0dcf[_0x47f870(0x43c)],'unitType':this[_0x47f870(0x417)],'changeset':_0x1f0dcf,'memberID':this['session']['getMemberID']()}};this[_0x47f870(0x1e3)][_0x47f870(0x2f9)](_0x2c713c,this[_0x47f870(0x43c)]);},'onMissingChangesets':({from:_0x57c9e7,to:_0x237a80})=>{const _0x4b241e=_0x2eb1a8;this[_0x4b241e(0x369)][_0x4b241e(0x5f3)](_0x4b241e(0x3d6),_0x4b241e(0x3f9)+_0x57c9e7+_0x4b241e(0x35e)+_0x237a80);const _0x18219d={'eventID':_[_0x4b241e(0x5f2)]['FETCH_MISSING'],'data':{'unitID':_0x168644,'unitType':this[_0x4b241e(0x417)],'from':_0x57c9e7,'to':_0x237a80}};this[_0x4b241e(0x1e3)]['send'](_0x18219d,this[_0x4b241e(0x43c)]);}};}async['_createInitialStateImpl'](_0x54ac2e){const _0x4897f6=_0x27a195;var _0x5ee3f2,_0x196bb7;const _0x18b718=await this['_localCacheService']['loadOfflineData'](this[_0x4897f6(0x43c)]),_0x5b1a23=(_0x5ee3f2=_0x18b718==null?void 0x0:_0x18b718['mutations'])!=null?_0x5ee3f2:[],_0x4d406b=(_0x196bb7=_0x18b718==null?void 0x0:_0x18b718[_0x4897f6(0x4a9)])!=null?_0x196bb7:null,_0x4da2fc=!!(_0x4d406b!=null&&_0x4d406b[_0x4897f6(0x2ac)])&&!!(_0x4d406b!=null&&_0x4d406b['reqId']);this['_changesetSessionId']=_0x4da2fc?_0x4d406b[_0x4897f6(0x2ac)]:Os(),this[_0x4897f6(0x49c)]=_0x4da2fc?_0x4d406b[_0x4897f6(0x3f5)]:0x0;const _0x527552=this[_0x4897f6(0x43c)];try{this[_0x4897f6(0x23d)](_0x4d406b,_0x5b1a23);}catch(_0xba1c48){this[_0x4897f6(0x369)][_0x4897f6(0x466)](_0xba1c48);}const _0x5a3bdb=this['_createHandler']();if(_0x54ac2e){const _0x38420b=Ut(this[_0x4897f6(0x3cf)],_0x527552,this['_type'],_0x4d406b,_0x5b1a23,_0x5a3bdb);return _0x38420b instanceof k?_0x38420b[_0x4897f6(0x3f1)]():(_0x38420b instanceof B||_0x38420b instanceof W)&&_0x38420b[_0x4897f6(0x5a4)](),_0x38420b;}return this[_0x4897f6(0x3cf)]['createInstance'](G,_0x527552,this[_0x4897f6(0x417)],_0x4d406b,_0x5b1a23,_0x5a3bdb);}[_0x27a195(0x23d)](_0x3327fd,_0x6d6281){const _0x3964c4=_0x27a195;var _0x256911,_0x3e12a6;const _0x332077=this[_0x3964c4(0x2a1)][_0x3964c4(0x5b4)][_0x3964c4(0x24d)](this[_0x3964c4(0x2a1)][_0x3964c4(0x5b4)][_0x3964c4(0x560)]()[_0x3964c4(0x51a)]);(_0x256911=_0x332077((_0x3327fd==null?void 0x0:_0x3327fd[_0x3964c4(0x4e1)])||[],null))==null||_0x256911[_0x3964c4(0x481)](_0x4ebeaf=>this[_0x3964c4(0x39e)][_0x3964c4(0x2bf)](_0x4ebeaf['id'],_0x4ebeaf['params'])),(_0x3e12a6=_0x332077(_0x6d6281||[],null))==null||_0x3e12a6[_0x3964c4(0x481)](_0x5f0b4f=>this[_0x3964c4(0x39e)][_0x3964c4(0x2bf)](_0x5f0b4f['id'],_0x5f0b4f[_0x3964c4(0x4e6)]));}},exports['CollaborationEntity']=ze([I(0x3,a['Inject'](a[_0x27a195(0x4f5)])),I(0x4,a['Inject'](exports[_0x27a195(0x2bc)])),I(0x5,a[_0x27a195(0x4da)](_[_0x27a195(0x493)])),I(0x6,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)])),I(0x7,a[_0x27a195(0x4da)](_['RevisionService'])),I(0x8,a['ILogService']),I(0x9,a[_0x27a195(0x3e2)]),I(0xa,A['IMessageService']),I(0xb,a[_0x27a195(0x260)]),I(0xc,a['Optional'](Re))],exports['CollaborationEntity']),exports[_0x27a195(0x4df)]=class extends exports[_0x27a195(0x1f1)]{constructor(_0x5a4ae6,_0xa47b6b,_0x367f13,_0x1b442f,_0x29ad80,_0x42c3c7,_0x33310e,_0x45e160,_0x37318d,_0x59ebef,_0x5e4a53,_0x15a4b0,_0x4b74be,_0x43ea86,_0x52e921,_0x79f8e5,_0x205c3d){const _0x2547c9=_0x27a195;super(_0x5a4ae6,_0x367f13,_0xa47b6b,_0x1b442f,_0x29ad80,_0x42c3c7,_0x33310e,_0x45e160,_0x4b74be,_0x43ea86,_0x52e921,_0x79f8e5,_0x205c3d),this[_0x2547c9(0x43c)]=_0x5a4ae6,this['type']=_0xa47b6b,this['_docStateChangeManagerService']=_0x37318d,this[_0x2547c9(0x518)]=_0x59ebef,this['_docTransformSelectionsService']=_0x5e4a53,this[_0x2547c9(0x368)]=_0x15a4b0;}[_0x27a195(0x404)](){const _0x3b5453=_0x27a195,_0x4edf3d=super[_0x3b5453(0x404)]();return _0x4edf3d[_0x3b5453(0x489)]=_0x16e88e=>this['_docTransformIMECacheService']['transformIMECache'](_0x16e88e),_0x4edf3d[_0x3b5453(0x4c4)]=_0x54ba0c=>this['_docTransformSelectionsService'][_0x3b5453(0x467)](_0x54ba0c),_0x4edf3d[_0x3b5453(0x50a)]=_0x259be7=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x259be7),_0x4edf3d[_0x3b5453(0x30f)]=_0x429662=>this['_docTransformIMECacheService'][_0x3b5453(0x3bc)](_0x429662),_0x4edf3d;}async[_0x27a195(0x3be)](){const _0x4f18e2=_0x27a195,_0x2d6be9=await super[_0x4f18e2(0x3be)]();return this[_0x4f18e2(0x302)]['docStateChange$']['pipe'](v['takeUntil'](this['dispose$']))[_0x4f18e2(0x262)](_0x54aab5=>{const _0x2d5dcc=_0x4f18e2;if(_0x54aab5==null)return;const {unitId:_0x57f4dc,redoState:_0x5b4f29,commandId:_0x5b3167}=_0x54aab5;if(_0x57f4dc!==this[_0x2d5dcc(0x43c)])return;const _0x59fcf5={'id':_0x5b3167,'type':a[_0x2d5dcc(0x306)][_0x2d5dcc(0x4c1)],'params':{'unitId':_0x57f4dc,'actions':_0x5b4f29[_0x2d5dcc(0x2c3)],'textRanges':null}};this[_0x2d5dcc(0x60c)](_0x59fcf5);}),_0x2d6be9;}},exports['DocCollaborationEntity']=ze([I(0x3,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),I(0x4,a[_0x27a195(0x4da)](exports[_0x27a195(0x2bc)])),I(0x5,a[_0x27a195(0x4da)](_[_0x27a195(0x493)])),I(0x6,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)])),I(0x7,a[_0x27a195(0x4da)](_[_0x27a195(0x59d)])),I(0x8,a[_0x27a195(0x4da)](N[_0x27a195(0x2b0)])),I(0x9,a['Inject'](fe)),I(0xa,a[_0x27a195(0x4da)](pe)),I(0xb,a[_0x27a195(0x4da)](qe)),I(0xc,a[_0x27a195(0x246)]),I(0xd,a[_0x27a195(0x3e2)]),I(0xe,A[_0x27a195(0x367)]),I(0xf,a['IPermissionService']),I(0x10,a[_0x27a195(0x606)](Re))],exports[_0x27a195(0x4df)]),exports['SheetCollaborationEntity']=class extends exports[_0x27a195(0x1f1)]{constructor(_0xc14283,_0x50db09,_0x4e8e94,_0x5bf1b0,_0x114d6d,_0x414e59,_0x3cbd8e,_0x3e4d0e,_0x1eb002,_0x355162,_0x298fb6,_0x14efe1,_0x23790d,_0x500e27){const _0x485bb2=_0x27a195;super(_0xc14283,_0x4e8e94,_0x50db09,_0x5bf1b0,_0x114d6d,_0x414e59,_0x3cbd8e,_0x3e4d0e,_0x355162,_0x298fb6,_0x14efe1,_0x23790d,_0x500e27),this['unitID']=_0xc14283,this['type']=_0x50db09,this[_0x485bb2(0x312)]=_0x1eb002;}[_0x27a195(0x404)](){const _0xe66567=_0x27a195,_0x2eed08=super[_0xe66567(0x404)]();return _0x2eed08[_0xe66567(0x4c4)]=_0x3f16df=>this[_0xe66567(0x312)]['transformSelections'](_0x3f16df),_0x2eed08;}async['_init'](){const _0x47711d=_0x27a195,_0x421741=await super[_0x47711d(0x3be)]();return this[_0x47711d(0x598)](this[_0x47711d(0x39e)][_0x47711d(0x285)]((_0x5cd60e,_0x2ebe4b)=>{const _0x1faacb=_0x47711d;if(_0x5cd60e[_0x1faacb(0x44f)]!==a[_0x1faacb(0x306)][_0x1faacb(0x4c1)]||_0x2ebe4b!=null&&_0x2ebe4b['fromCollab']||_0x2ebe4b!=null&&_0x2ebe4b['onlyLocal'])return;const _0x1d0846=_0x5cd60e[_0x1faacb(0x4e6)];if((_0x1d0846==null?void 0x0:_0x1d0846[_0x1faacb(0x431)])!==this[_0x1faacb(0x43c)])return;const _0x2a410a=_0x5cd60e,_0x1f8da1=this['_compressMutationService']['interceptor'][_0x1faacb(0x24d)](this[_0x1faacb(0x2a1)][_0x1faacb(0x5b4)]['getInterceptPoints']()[_0x1faacb(0x32f)])([_0x2a410a],null)||[_0x2a410a];this[_0x1faacb(0x60c)](_0x1f8da1[0x0]);})),_0x421741;}},exports['SheetCollaborationEntity']=ze([I(0x3,a[_0x27a195(0x4da)](a['Injector'])),I(0x4,a[_0x27a195(0x4da)](exports[_0x27a195(0x2bc)])),I(0x5,a['Inject'](_[_0x27a195(0x493)])),I(0x6,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)])),I(0x7,a[_0x27a195(0x4da)](_['RevisionService'])),I(0x8,a['Inject'](Ie)),I(0x9,a['ILogService']),I(0xa,a[_0x27a195(0x3e2)]),I(0xb,A['IMessageService']),I(0xc,a[_0x27a195(0x260)]),I(0xd,a[_0x27a195(0x606)](Re))],exports['SheetCollaborationEntity']);var qs=Object[_0x27a195(0x410)],zs=Object[_0x27a195(0x219)],Js=(_0x5d07c9,_0x4af968,_0x518a7c,_0x59c2ac)=>{const _0x49b71a=_0x27a195;for(var _0x5972ab=_0x59c2ac>0x1?void 0x0:_0x59c2ac?zs(_0x4af968,_0x518a7c):_0x4af968,_0x4408a3=_0x5d07c9[_0x49b71a(0x540)]-0x1,_0x561b42;_0x4408a3>=0x0;_0x4408a3--)(_0x561b42=_0x5d07c9[_0x4408a3])&&(_0x5972ab=(_0x59c2ac?_0x561b42(_0x4af968,_0x518a7c,_0x5972ab):_0x561b42(_0x5972ab))||_0x5972ab);return _0x59c2ac&&_0x5972ab&&qs(_0x4af968,_0x518a7c,_0x5972ab),_0x5972ab;},Ne=(_0x28d7ba,_0x33c0fe)=>(_0x450279,_0x362a67)=>_0x33c0fe(_0x450279,_0x362a67,_0x28d7ba);exports['CollaborationController']=class extends a[_0x27a195(0x47c)]{constructor(_0x4faa27,_0x248e46,_0x5e2a3f){const _0x24a308=_0x27a195;super(),u(this,'_entities',new Map()),u(this,_0x24a308(0x34c),new v[(_0x24a308(0x529))]()),(this['_injector']=_0x4faa27,this[_0x24a308(0x2cc)]=_0x248e46,this['_univerInstanceService']=_0x5e2a3f,this[_0x24a308(0x3be)]());}[_0x27a195(0x22a)](){const _0x4bc72b=_0x27a195;super['dispose'](),this['_entities'][_0x4bc72b(0x481)](_0x22c857=>_0x22c857['dispose']()),this[_0x4bc72b(0x3c8)][_0x4bc72b(0x22b)]();}[_0x27a195(0x400)](_0x5f2af7){const _0x78fa76=_0x27a195;var _0xc2577f;return(_0xc2577f=this[_0x78fa76(0x3c8)]['get'](_0x5f2af7))!=null?_0xc2577f:null;}[_0x27a195(0x454)](_0x5d8f35){const _0x5f3f34=_0x27a195,_0x533903=this['getCollabEntity'](_0x5d8f35);return _0x533903?v['of'](_0x533903):this[_0x5f3f34(0x34c)][_0x5f3f34(0x3b2)](E[_0x5f3f34(0x564)](_0x540437=>_0x540437[_0x5f3f34(0x43c)]===_0x5d8f35));}[_0x27a195(0x3be)](){const _0x3a70d3=_0x27a195;this[_0x3a70d3(0x4d3)][_0x3a70d3(0x53b)](a[_0x3a70d3(0x562)][_0x3a70d3(0x5d1)])[_0x3a70d3(0x3b2)](v[_0x3a70d3(0x33e)](this[_0x3a70d3(0x497)]),E[_0x3a70d3(0x381)](0x10))[_0x3a70d3(0x262)](async _0x225d38=>{const _0x3ca4da=_0x3a70d3,_0x426c74=_0x225d38[_0x3ca4da(0x2f2)](),_0x1a2779=await this['_startCollaboration'](_0x426c74,$[_0x3ca4da(0x5d1)]);this[_0x3ca4da(0x3c8)]['set'](_0x426c74,_0x1a2779);}),this['_univerInstanceService'][_0x3a70d3(0x53b)](a[_0x3a70d3(0x562)]['UNIVER_DOC'])[_0x3a70d3(0x3b2)](v[_0x3a70d3(0x33e)](this['dispose$']),E['delay'](0x10))[_0x3a70d3(0x3b2)](E[_0x3a70d3(0x564)](_0x38a8c0=>!_0x38a8c0[_0x3a70d3(0x2f2)]()[_0x3a70d3(0x593)]('__')))[_0x3a70d3(0x262)](async _0x1c38ab=>{const _0x284dd8=_0x3a70d3,_0x1ebb57=_0x1c38ab[_0x284dd8(0x2f2)](),_0x1627f3=await this['_startCollaboration'](_0x1ebb57,$[_0x284dd8(0x211)]);this[_0x284dd8(0x3c8)][_0x284dd8(0x36e)](_0x1ebb57,_0x1627f3);}),v[_0x3a70d3(0x30b)](this[_0x3a70d3(0x4d3)][_0x3a70d3(0x38c)](a[_0x3a70d3(0x562)]['UNIVER_SHEET']),this[_0x3a70d3(0x4d3)][_0x3a70d3(0x38c)](a['UniverInstanceType']['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x3a70d3(0x497)]))[_0x3a70d3(0x262)](_0x4ca83b=>{const _0xb4d928=_0x3a70d3,_0x14ddd4=_0x4ca83b[_0xb4d928(0x2f2)](),_0x5980f9=this[_0xb4d928(0x3c8)][_0xb4d928(0x520)](_0x14ddd4);_0x5980f9&&(_0x5980f9[_0xb4d928(0x22a)](),this[_0xb4d928(0x3c8)]['delete'](_0x14ddd4));});}async[_0x27a195(0x39d)](_0x386440,_0x2e307e){const _0x4566a6=_0x27a195,_0x45fae2=await this[_0x4566a6(0x2cc)][_0x4566a6(0x546)](_0x386440),_0x596637=this['_injector'][_0x4566a6(0x2a3)](this[_0x4566a6(0x21f)](_0x2e307e),_0x386440,_0x2e307e,_0x45fae2);return await _0x596637['init'](),this[_0x4566a6(0x34c)][_0x4566a6(0x573)](_0x596637),_0x596637;}['_getCtorByUniverType'](_0x27b33f){const _0x3a15bd=_0x27a195;switch(_0x27b33f){case $['UNIVER_DOC']:return exports[_0x3a15bd(0x4df)];case $['UNIVER_SHEET']:return exports[_0x3a15bd(0x2cd)];default:throw new Error(_0x3a15bd(0x5bb)+_0x27b33f);}}},exports[_0x27a195(0x52c)]=Js([Ne(0x0,a['Inject'](a[_0x27a195(0x4f5)])),Ne(0x1,a[_0x27a195(0x4da)](exports['CollaborationSessionService'])),Ne(0x2,a['IUniverInstanceService'])],exports[_0x27a195(0x52c)]);const ct=[_0x27a195(0x29a),_0x27a195(0x4f2),_0x27a195(0x26b),_0x27a195(0x565),_0x27a195(0x225),_0x27a195(0x51d)];class Je extends a[_0x27a195(0x2cb)]{constructor(){const _0x43a8a2=_0x27a195;super(...arguments),u(this,_0x43a8a2(0x5c1),new Map()),u(this,_0x43a8a2(0x4e4),0x0);}[_0x27a195(0x3e5)](_0x2d90c3){const _0x4c6d4b=_0x27a195;if(this[_0x4c6d4b(0x5c1)][_0x4c6d4b(0x3a8)](_0x2d90c3))return this[_0x4c6d4b(0x5c1)]['get'](_0x2d90c3);const _0x94c795=ct[this[_0x4c6d4b(0x4e4)]];return this[_0x4c6d4b(0x4e4)]=(this[_0x4c6d4b(0x4e4)]+0x1)%ct[_0x4c6d4b(0x540)],this[_0x4c6d4b(0x5c1)]['set'](_0x2d90c3,_0x94c795),_0x94c795;}}var Zs=Object['defineProperty'],Qs=Object['getOwnPropertyDescriptor'],ei=(_0x4e6ff9,_0x24c2bc,_0x4dd641,_0x34fa56)=>{for(var _0x21fb43=_0x34fa56>0x1?void 0x0:_0x34fa56?Qs(_0x24c2bc,_0x4dd641):_0x24c2bc,_0x1a0599=_0x4e6ff9['length']-0x1,_0x549c14;_0x1a0599>=0x0;_0x1a0599--)(_0x549c14=_0x4e6ff9[_0x1a0599])&&(_0x21fb43=(_0x34fa56?_0x549c14(_0x24c2bc,_0x4dd641,_0x21fb43):_0x549c14(_0x21fb43))||_0x21fb43);return _0x34fa56&&_0x21fb43&&Zs(_0x24c2bc,_0x4dd641,_0x21fb43),_0x21fb43;},K=(_0x2ffe18,_0xbf9b67)=>(_0x3b313c,_0x4d486f)=>_0xbf9b67(_0x3b313c,_0x4d486f,_0x2ffe18);const ti=0x12c,si=0x64;function _0x2ddc(){const _0x1dfb8e=['_colorAssignService','COLLAB_WEB_SOCKET_URL_KEY','loginUrlKey','defs','/universer-api/stream/file/upload','parse','_handler','state$','_commentService','next','propertyIsEnumerable','CollaborationStatusDisplay','onSendChangeset','image/png','bottom','column','Rectangle','_heartbeatTimer','ImageSourceType','_onFetchMissResult','extend','resize','getTime','subscribeEvent','UNIVER_UNKNOWN','[SyncedState]:\x20received\x20rejection.','collaboratorID','getCellPositionByOffset','SUBMIT_CHANGESET','/-/object/list','LIVESHARE_FETCH_OPERATIONS','parseProtocolChangeset','runRefRangeMutations','isEditing','_config','_loadSheet','DocIMEInputManagerService','LocaleService','throttleTime','RichTextEditingMutation','onPointerEnter$','startsWith','RegularPolygon','FromArray','univer-online-status-title','originalMeta','disposeWithMe','DependentOn','cmd','off-line-single','_hideTimer','RevisionService','getImage','getSheetObject','_hover','_initRequestHeader','_getCurrentRevision','joinRsp','resend','_awaitingChangeset','WebSocketService','resolve','createElement','_HTTPService','toggleOnline','switchMap','_removeCollabCursors','1em','UNAUTHENTICATED','translate(.97)','onRendered','/unit/','getCurrentSelections','onMissedChangesetFetched','interceptor','XHRHTTPImplementation','reverse','isTransformMutationsWithChangesetFailure','onMissingChangesets','ranges','_rescheduleHeartbeat','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_sessions','defIds','textEncoder','_collaborationSessionService','collabStatus.conflict','_assignedColors','history','_selfUnitIDs','SnapshotService','46011llmJWf','attrs','whenReady','_incrementRevisionNumber','LOGIN_URL_KEY','url(#$1','collabStatus.fetchMiss','getUnhiddenWorksheets','_changesetSessionId','[OfflineState]:\x20received\x20rejection.','state','TOO_MANY_REQUESTS','UNIVER_SHEET','univerjs-icon\x20univerjs-icon-','combineLatest','selections','_onJoinRoomEvent','onTransformChange$','localeService','IImageIoService','LOCAL_CACHE_INTERVAL','ws://127.0.0.1:8000/universer-api/comb/connect','className','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','getCurrentRevOfUnit','_waitCount','_draw','HttpImport','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getCurrentUser','eventID','/object','_cursorInfo$','[CollaborationUndoRedoService]','subUnitId','_getSheetObject','loadOfflineData','off-line-single_clip0_910_343','RETRY_CONNECTING_MAX_COUNT_KEY','collaboration.closeRoom','SetTextSelectionsOperation','_onOffline','_docSkeletonManagerService','removeParam','HttpExport','CollaborationEvent','debug','SnapshotServerOverHTTPService','_startTelemetryCollaborationNewChangeset','updatePermissionObjEvent','RECV','MSG_FOR_ERROR','DEFAULT_FILE_NAME','hasOwnProperty','enableAuthServer','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','IURLService','_instanceService','_decreaseWaiting','auth.needGotoLoginAlert','asObservable','with','split','clearInterval','getUnitStatus$','Optional','activeSheet$','HEARTBEAT_TIMEOUT','save','_roomMembers$','_redoStacks','_onLocalMutation','getMember','110048RArutb','SheetPermissionInitController','_initResize','createSocket','href','_toggleOffline','NOT_COLLAB','_lastPointer','appendMutation','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','session','_stopTelemetryCollaborationNewChangeset','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','action','roomMembers','addImageSourceCache','COLLAB_SUBMIT_CHANGESET_URL','searchParams','getRenderById','[SyncedState]:\x20received\x20acknowledgement.','_applyRemoteChangeset','_collaborationTimeoutTimer','@univerjs/core','_submitChangeset','CollaborationEntity','none','isTransformChangesetsSuccess','0\x200\x2017\x2016','_timeoutTimer','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_render','InsertSheetMutation','b64DecodeUnicode','SYNCED','DocSelectionManagerService','_shapes','roles','PERMISSION_REJ','UPDATE_CURSOR','selection','registerBeforeClose','init','memberID','object','_isPermissionRej','handleInsertCol','LICENSE_DISTRO_REJECTED','CHANGESET_REVISION_CONFILICT','_sendHeartbeat','color','Warning','_messageService','ThresholdInterceptorFactory','random','_themeService','@univerjs-pro/license','UNIVER_DOC','ITransformService','deleteCollaborator','_snapshotService','div','updatePermissionPoint','unit','MoveRangeCommandId','getOwnPropertyDescriptor','[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.','_scene','flatMap','DisposableCollection','ENSURE_SNAPSHOT_EXECUTION','_getCtorByUniverType','debounceTime','getCollabCursors$','[CollaborationState]:\x20apply\x20error!','CONFLICT','Undefined','blue400','Module','name','CollaborationSocketService','_range','dispose','clear','univer-offline','hovered','[CollaborationSession]','&to=','LICENSE_IMPORT_SIZE_EXCEEDED','SetWorksheetActivateCommand','restore','_snapshotServerService','_updateURLWithCurrentState','awaiting_with_pending','requestParams','Tooltip','collabStatus.notCollab','measureText','IDLE','image/jpeg','_throwTelemetryCollaborationNewChangeset','_replayCachedMutations','connection\x20error','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LIVESHARE_OPERATION','updateMember','Shape','rev','colorChannel1','_members','ILogService','collaboration.single-unit.warning','transformMutation','UNKNOWN_CODE','M3.61971\x2011.6499C2.40304\x2011.6499\x200.699707\x2011.1024\x200.699707\x208.9124C0.699707\x206.3574\x203.25471\x205.8099\x203.98471\x205.8099C4.34971\x204.5324\x205.07971\x202.5249\x207.99971\x202.5249C10.5547\x202.5249\x2011.6497\x203.9849\x2012.0147\x205.2624C12.0147\x205.2624\x2015.2997\x205.6274\x2015.2997\x208.7299C15.2997\x2010.9199\x2013.8397\x2011.6499\x2012.3797\x2011.6499M9.82471\x209.82466L6.17471\x2013.4747M6.17471\x209.82466L9.82471\x2013.4747','push','DocSkeletonManagerService','fetchThroughInterceptors','collab-text-range-','closePath','closeSession','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','isTransformMutationFailure','slice','message$','_clearHeartbeatTimer','members','getRangePointData','_disabled','@univerjs/rpc','deserializeRangeWithSheet','objectID','clipPath','_roomMembers','rxjs/operators','ThemeService','IPermissionService','SNAPSHOT_HAS_BEEN_REMOVED','subscribe','_color','batchAllowed','transformIMECache','textRanges','EXCHANGE_SIGN_URL_SERVER_URL_KEY','origin','?url=','UNRECOGNIZED','verdancy600','_unitOnClients','symbol','_updateCollabCursors','_singleActiveUnitService','/universer-api/oidc/authpage','SheetCollabCursorShape','setConfig','_collaborationPaused','_updateStatus','HTTPService','data','image/jpg','getFocusedUnit','onRemoteChangeset','YUUMI_UNABLE_LOAD_URL','/object/','black','font','fetchMissingChangesets','_ensureSubject','urlChange$','INotificationService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','getResourcesRequest','\x20-\x20','onCommandExecuted','@univerjs/sheets','HEARTBEAT_TIMEOUT_KEY','_clearRedo','APPLY_REVISION_CONFILICT','CHANGESET_REJ','SNAPSHOT_INVALID_SNAPSHOT','_status$','_removeClearOtherTimer','onCommentUpdate','_getSendChangesetTimeout','values','_anchor','getUniverSheetInstance','_tryReconnect','_toggleOnline','_onUserJoin','includes','file','skeleton','_event$','purple300','SUCCUSS','post','function','currentTheme$','uni.network.url-service','infoRsp','_compressMutationService','PSEUDO_FETCH_MISSING_RESULT','createInstance','/universer-api/authz','SNAPSHOT_URL_KEY','pushState','ImageUploadStatusType','_onCombEvent','refreshPermission','getValue','INTERNAL_ERROR','sid','getSheetId','map','confirm','DocStateChangeManagerService','_state','displayName','apply','POST','_getMergeRange','/universer-api/snapshot','BuiltInUIPart','addObjects','path','LICENSE_EXPORT_SIZE_EXCEEDED','labelPosition','LocalCacheService','authzUrl','_transformUndoredo','executeCommand','row','_urlService','string','actions','stringify','_socket$','collaboration_new_changeset','then','onStateChange','_pendingMutations','univer-online-status','Disposable','_collabSessionService','SheetCollaborationEntity','_imageSourceCache','IRenderManagerService','_refRangeService','[DataLoaderController]','_lockTransition','downloadEndpointUrl','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','onlineStatusIcon','_onRemoteChangeset','_labelPosition','take','compose','objectActions','target','collaborators','conflict.title','transformStack\x20failed!','1322556RsQbBJ','PERMISSION_DENIED','_eventUnsubscribe','complete','commentUpdate$','location','_textBubble','univer-online','_notificationService','readAsDataURL','PENDING','getRoom','socket\x20open.','8FcsayK','makeDirty','collaboration-client.config','useDependency','getUnitId','_uiPartsService','listRoles','TEXT_RANGE_LAYER_INDEX','deepClone','change$','_transformUndoRedoStack','send','height','INGEST','loadSheet','onPointerMove$','src','_clearTimeoutTimer','UniverCollaborationClientPlugin','shouldCloseConn','_docStateChangeManagerService','_listenToOnlineEvent','entries','FETCH_MISS','CommandType','capture','_handleHover','liveShareOperation','ILocalStorageService','merge','_socket','status','connectInjector','onTransformRemoteChangesetByIMECache','json','_exhaustRemoteChangesetQueue','_sheetTransformSelectionsService','Rect','tag','onRemoteAck','sendChangesetTimeout','socketService','INVALID_ARGUMENT','registerRenderModule','Workbook','evenodd','_socketMessageSubscription','mapTo','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','result','reject','IHTTPImplementation','getVpScrollXYInfoByPosToVp','getCoordByCell','_backgroundColor','isActive','getSheetBySheetId','EmptyMutation','range','ColorKit','collabCursorState$','collabSubmitChangesetUrl','failed\x20to\x20apply\x20missed\x20changesets!','CommentService','/resources','COMPRESS_MUTATION_SEND','pending','sessionStatus','unload','_scheduleHeartbeat','_scheduleClearOtherTimer','@univerjs-pro/collaboration','incrementRevOfUnit','saveChangeset','replaceState','enableLocalCache','sheetID','_userManagerService','YUUMI_URL_COL_OUT_OF_RANGE','SetSelectionsOperation','takeUntil','code','CollaborationSession','find','[FetchMissState]','CollaborationStatus','_getScale','getActiveSheet','permission.content','SheetsSelectionsService','snapshot','_saveCache','IUIPartsService','fillText','_entityInit$','_id','DeleteRangeMoveLeftCommandId','_onConnectionOpen','addEventListener','getSheetBlock','isPermissionRej','DataLoaderController','_onConflict','15651XahEbg','round','headers','toLowerCase','JOINING','_session','_cachedData','getViewport','SHOULD_CLOSE_CONN','\x20to\x20','ERROR_IMAGE_TYPE','getOwnPropertySymbols','7mauHEh','NEW_CHANGESETS','_drawRectRange','indexOf','cursorInfo$','_setupBeforeClosingHandler','IMessageService','_docSyncEditingCollabCursorService','_logService','UNIVER_COLLABORATION_CLIENT_PLUGIN','IUndoRedoService','m2Prime','_getUndoStack','set','_registerDependencies','handleDeleteRangeMoveLeft','getUnitType','692940YVOLeA','rgba(255,\x20255,\x20255,\x200.01)','...','setShapeProps','_retryCount','_beforeCloseService','getCurrent','updateCursorEvent','APPLY_NON_SEQUENTIAL_REVISION','clearTimeout','fillRule','_localeService','online','reduce','_getRedoStack','delay','_state$','_anchorDot','objects','&assign=','copyFileMeta','saveImage','_updateLocalCache','SEND_CHANGESET_TIMEOUT_KEY','session.room-full','LIVESHARE_NEW_HOST','getTypeOfUnitDisposed$','encodeURIComponent','_sheetSkeletonManagerService','RemoveColCommandId','_startDocCollabCursor','_localStorageService','synced','_sessionStatus$','replace','_substituteUndoStack','sequenceExecute','SNAPSHOT_SERVER_URL_KEY','_undoStacks','trim','USERS_ENTER','resourceIDs','_onUserLeave','_startCollaboration','_commandService','session.collaboration-timeout','_onRecvEvent','_sendHeartbeatTimer','@univerjs/engine-render','COMMENT_UPDATE','setAlpha','toRgbString','@univerjs/sheets-ui','{fileID}','has','_getSignURL','YUUMI_SUBSCRIPTION_NOT_FOUND','unit-cache-','SEND_CHANGESET_TIMEOUT','_syncEditingCollabCursor','_memberService','getUnitOnRev','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','pipe','collaboration-client.offline-data-not-saved','awaiting','[CollaborationSessionService]','_drawAnchor','handleIRemoveRow','1110XjzwfB','VIEWPORT_KEY','x-univer-host','offline','transformRemoteChangeset','toString','_init','error$','_transformPreviousActiveRange','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','fillStyle','ISnapshotServerService','HELLO','now','InsertColCommandId','getUndoRedoMutationParamsCache','_entities','assign','Tools','#FFF','rxjs','ImageIoService','children','_injector','LICENSE_MAX_UNITS_EXCEEDED','onRemoteRej','override','_unlockTransition','transformChangesets','getActiveRange','[CollaborationEntity]','setParam','rng','objectType','c1Prime','Plugin','OffLineSingle','_setupSubUnitSync','_transformSelections','shareReplay','UnitEmbedded','from','ICommandService','_saveTaskMap','transformMutationsWithChangeset','assignAColorForMemberID','reconnect','getRelativeToViewportCoord','ONLINE','_scheduleCollaborationTimeoutTimer','startRow','toDisposable','EffectRefRangId','create','useObservable','setActiveRange','APPLY_PERMISSION_DENIED','_schedule','_undoRedoService','_transitionLocked','distinctUntilChanged','reqId','_getAPIPrefixPath','useCallback','_updateState','fetching\x20missing\x20changesets\x20from\x20','concatMap','setUndoRedoMutationParamsCache','transformUndoRedo','conflict','_onRefRangeChange','handleInsertRow','getCollabEntity','unknown','_online','fetch_missing','_createHandler','snapshotServerUrl','userID','\x20in\x20_schedule.','JSONX','onMouseMove','ERROR_EXCEED_SIZE','session.connection-failed','ICollaborationSocketService','_onMessage','visibilityState','_waitForHeartbeatResponse','defineProperty','fetchMiss','catch','routeKey','react','randomUUID','/universer-api/file/{fileID}/sign-url','_type','_clearUndo','_onCursorDelete','currentSkeleton$','_revisionService','_getSaveTimeout','parseChangesetToProtocol','IConfigService','liveShareNewHost','all','NodePositionConvertToRectRange','_loadDoc','HTTPRequest','updateCollaborator','changesets','Univer','setInterval','WorkbookEditablePermission','MessageType','top','_updateLocalCursor','_remoteChangesetQueue','m1Prime','prototype','withCredentials','_onConnectionFailed','unitId','pluginName','LEAVE','_candidateSocket','socket\x20close','unitId\x20is\x20not\x20found','_showConflictNotification','_sendingTimer','_clearLocalCache','getParam','_joinRoom','unitID','_collabCursorController','_getDownloadEndpointURL','ALREADY_EXISTS','BASE64','_transformRemoteChangesetByIMECache','disposeUnit','getLatestCsReqIdBySid','UNDEFINED','CollaborationSessionService','createCollaborator','_cursorShapes','_initEventListeners','_getAPIPrefix','pauseCollaboration','_onRemoteACK','_telemetryInfo','storage','UNIVER_SLIDE','type','registerOnClose','IAuthzIoService','_transformIMECache','getAncestorScale','getCollabEntity$','_socketReady','collabStatus.offline','fromEvent','_acknowledgedAwaitingChangeset','listCollaborators','OFFLINE','InsertRowCommandId','LOCAL_CACHE_INTERVAL_KEY','save\x20fail\x20reason\x20is\x20','toggleOffline','_initStatusListener','_registerRenderDependencies','_ws','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_disableEditing','M0\x200H16V16H0z','#fff','error','transformSelections','@univerjs/ui','forwardRef','setCurrentUser','_scheduleSaving','setTimeout','_getUploadFileURL','onlineStatusTitle','_syncEditingCollabCursorService','number','saveOfflineData','_startSheetCollabCursor','doc.mutation.rich-text-editing','disableLocalCache','SheetSkeletonManagerService','size','status$','_scheduleTimestamp','handleInsertRangeMoveRight','_httpService','_initModules','RxDisposable','isTransformMutationsWithChangesetSuccess','method','USERS_LEAVE','setItem','forEach','collab-text-anchor-','event$','baseRev','NO_OTHER_CLIENTS_EDITING','Vector2','_onRemoteRejected','ERROR_IMAGE','onTransformIME','getMemberID','[CollaborationSessionService]:\x20socket\x20error','IUniverInstanceService','HEARTBEAT','image/bmp','_telemetryService','_drawTextRange','onReady','_http','CompressMutationService','debounce','COLORS','visibilitychange','dispose$','use','toStringTag','_removeRoom','APPLY_DUPLICATED','_changesetReqId','_commentUpdate$','UNKNOWN_CMD','generateRandomId','_queuedRemoteChangesets','delete','_checkMissing','/-/object/-/batch_allowed','_fetchMissChangesets','roomMembers$','_handleLeaveEvent','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_name','awaitingChangeset','every','substring','_send','_permissionService','svg','/collaborator','_collabCursorState$','_unitStatus','[OfflineState]:\x20received\x20acknowledgement.','?size=','getColor','add','url','idSuffix','UniverIcon','_tryEnsureSocket','permissionRejEvent','arc','put','bind','_change$','145000TAWVfe','_initStatusComponent','MUTATION','drawWith','RefRangeService','onTransformSelections','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','IBeforeCloseService','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','append','sessionStatus$','JOIN','UNIVER_PROJECT','text','_socketService','NodePositionConvertToCursor','_cursor','leaveEvent','_localCacheService','UnitSnapshot','_univerInstanceService','createIdentifier','_updateSubUnitFromURLParams','_configService','APPLY_REJECT','UniverCollaborationPlugin','OTHER_CLIENTS_EDITING','Inject','registerHTTPInterceptor','LIVESHARE_REQUEST_HOST','_getLoginPath','key','DocCollaborationEntity','_shouldReportTelemetry','mutations','registerComponent','updateOfflineData','_colorIndex','_unitID','params','AuthzIoHttpService','isArray','getConfig','_substituteRedoStack','contains','BehaviorSubject','hide','DeleteRangeMoveUpCommandId','YUUMI_RATE_OVER_LIMIT','show','open$','jiqing500','LIVESHARE_TERMINATE','[OfflineState]:\x20received\x20changeset.','Injector','conflict.content','@univerjs/docs-ui','0\x200\x2016\x2016','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','xlink:href','uploadFileServerUrl','_retryConnectingTimer','subunit','SetDocZoomRatioOperation','_onCursorUpdate','DesktopCollaborationStatusDisplayController','RETRY_CONNECTING_MAX_COUNT','body','InsertRangeMoveRightCommandId','/block/','univer-pro.collaboration-client.single-active-unit-service','c2Prime','newValue','touchDependencies','getImageSourceCache','onSyncEditingCollabCursor','sheets','_clearScheduledTask','_transformStack','RemoveRowCommandId','_context','_clearOtherTimers','WebURLService','unshift','collab-rect-range-','joinEvent','COMPLETION_FINISHED','fromEventSubject','_getAnchorBounding','_docTransformIMECacheService','UserManagerService','COMPRESS_MUTATION_APPLY','getRandomValues','CONNECTOR_DATA_TOO_LARGE','gold400','\x0aAfter:\x20','IRemoteInstanceService','get','_collaborationController','close','startColumn','_initCommandExecutedListener','removeMember','fill','getAttachHeader','concat','Subject','_initCloseConn','engine','CollaborationController','cursorInfo','469368oFnkRg','addObject','max','univer-pro.collaboration-client-socket-service','getMergeData','[PendingState]:\x20received\x20rejection.','Unknown\x20user','COLLAB_SUBMIT_CHANGESET_URL_KEY','_cursors','_createInitialState','AWAITING','[UniverCollaborationClientPlugin]','exhaustSavingTask','getTypeOfUnitAdded$','startTime','_handleJoinEvent','call','UUID','length','findNodePositionByCharIndex','isInternalEditorID','_executeRemoteChangeset','handleInsertRangeMoveDown','csRejEvent','requireSession','_transformService','HEADER_MENU','_getSnapshotAPIPrefix','lineTo','CHANGESET_ACK','getUnit','_initMergeInterceptor','_hovered','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','revision','_createSocket','getOffsetConfig','TRANSFORM_CHANGE_OBSERVABLE_TYPE','unsubscribe','FAIL','focused$','_refreshCollabCursors','width','_renderManagerService','collabWebSocketUrl','handleMoveRange','saveSheetBlock','FileId','onPointerLeave$','onStarting','getInterceptPoints','mapDocumentTypeToUniverType','UniverInstanceType','_handleHeartbeatEvent','filter','red300','close$','/rev/','on-line-single_clip0_910_349','univer-online-status-icon'];_0x2ddc=function(){return _0x1dfb8e;};return _0x2ddc();}let ke=class extends a[_0x27a195(0x47c)]{constructor(_0x1429b6,_0x50bc49,_0x2ce7bf,_0x3ff0d,_0x73a2cc,_0xba68c0,_0x204e87,_0x10cbcd,_0x43d4a4){const _0x1e04ac=_0x27a195;super(),u(this,_0x1e04ac(0x402),!0x1),u(this,_0x1e04ac(0x3be),!0x1),u(this,'_cursorInfo$',new v[(_0x1e04ac(0x4ec))](new Map())),u(this,_0x1e04ac(0x365),this[_0x1e04ac(0x5e5)][_0x1e04ac(0x601)]()),u(this,_0x1e04ac(0x60a),new v[(_0x1e04ac(0x4ec))]([])),u(this,_0x1e04ac(0x4a5),this[_0x1e04ac(0x60a)]['pipe'](v[_0x1e04ac(0x220)](ti))),u(this,_0x1e04ac(0x42b),a[_0x1e04ac(0x494)](_0xcd162f=>{const _0x540246=_0x1e04ac,_0x53cc5b={'eventID':_['CollaborationEvent'][_0x540246(0x1ff)],'data':{'unitID':this['unitID'],'memberID':this[_0x540246(0x35a)]['getMemberID'](),'selection':yt(_0xcd162f)}};this[_0x540246(0x35a)][_0x540246(0x2f9)](_0x53cc5b,this[_0x540246(0x43c)]);},si)),(this[_0x1e04ac(0x43c)]=_0x1429b6,this[_0x1e04ac(0x35a)]=_0x50bc49,this[_0x1e04ac(0x3cf)]=_0x2ce7bf,this['_colorAssignService']=_0x3ff0d,this[_0x1e04ac(0x3ae)]=_0x73a2cc,this[_0x1e04ac(0x46f)]=_0xba68c0,this[_0x1e04ac(0x547)]=_0x204e87,this['_univerInstanceService']=_0x10cbcd,this[_0x1e04ac(0x39e)]=_0x43d4a4);}get[_0x27a195(0x52d)](){return this['_cursorInfo$']['getValue']();}get[_0x27a195(0x1e7)](){const _0x220be1=_0x27a195;return this[_0x220be1(0x60a)][_0x220be1(0x2aa)]();}['dispose'](){const _0x56a4ee=_0x27a195;super[_0x56a4ee(0x22a)](),this[_0x56a4ee(0x5e5)][_0x56a4ee(0x573)](new Map()),this[_0x56a4ee(0x5e5)][_0x56a4ee(0x2e4)](),this['_roomMembers$'][_0x56a4ee(0x573)]([]),this[_0x56a4ee(0x60a)]['complete']();}[_0x27a195(0x202)](){const _0x228e10=_0x27a195;this[_0x228e10(0x3be)]||(this[_0x228e10(0x3be)]=!0x0,this[_0x228e10(0x35a)][_0x228e10(0x4c9)][_0x228e10(0x3b2)](v[_0x228e10(0x33e)](this[_0x228e10(0x497)]))[_0x228e10(0x262)](_0x47b08c=>{const _0x27c883=_0x228e10;_0x47b08c===H['ONLINE']?this[_0x27c883(0x294)]():this[_0x27c883(0x1de)]();}),this[_0x228e10(0x35a)][_0x228e10(0x483)][_0x228e10(0x3b2)](v[_0x228e10(0x33e)](this[_0x228e10(0x497)]))[_0x228e10(0x262)](_0x55232e=>{const _0x233609=_0x228e10,_0x721a29=_0x55232e[_0x233609(0x5e3)];_0x721a29===_[_0x233609(0x5f2)]['UPDATE_CURSOR']&&this[_0x233609(0x4ff)](_0x55232e),_0x721a29===_[_0x233609(0x5f2)]['USERS_LEAVE']&&this[_0x233609(0x419)](_0x55232e);}),this[_0x228e10(0x598)](this[_0x228e10(0x39e)][_0x228e10(0x285)](_0x306b7b=>{const _0x970768=_0x228e10,_0x2d0ab7=_0x306b7b['params'];_0x2d0ab7!=null&&this[_0x970768(0x402)]&&_0x306b7b['id']===se[_0x970768(0x5ed)]['id']&&_0x2d0ab7[_0x970768(0x431)]===this[_0x970768(0x43c)]&&_0x2d0ab7[_0x970768(0x58b)]===!0x1&&this[_0x970768(0x42b)](_0x2d0ab7[_0x970768(0x5b9)]);})),this[_0x228e10(0x46f)]['collabCursorState$'][_0x228e10(0x3b2)](v[_0x228e10(0x33e)](this['dispose$']))[_0x228e10(0x262)](_0x31efb7=>{const _0x272132=_0x228e10;if((_0x31efb7==null?void 0x0:_0x31efb7[_0x272132(0x43c)])!==this[_0x272132(0x43c)])return;const _0x3cc48e={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x31efb7};this['_onCursorUpdate'](_0x3cc48e);}),this['disposeWithMe'](this['_commandService'][_0x228e10(0x285)](_0x574193=>{const _0x54aba0=_0x228e10;if(_0x574193[_0x54aba0(0x4e6)]==null)return;const _0x39f1e6=_0x574193[_0x54aba0(0x4e6)];if(_0x574193['id']!==se[_0x54aba0(0x591)]['id']||_0x39f1e6[_0x54aba0(0x431)]!==this[_0x54aba0(0x43c)])return;const _0x2b9606={'id':'doc.mutation.rich-text-editing','params':_0x39f1e6},_0x35ba43=this['cursorInfo'];for(const [_0x535569,_0x5bb6b6]of _0x35ba43){const _0x5b1ccc={'id':_0x54aba0(0x473),'params':{'unitId':this[_0x54aba0(0x43c)],'actions':null,'textRanges':_0x5bb6b6[_0x54aba0(0x5b9)]}},_0x3d5560=this[_0x54aba0(0x547)][_0x54aba0(0x248)](_0x2b9606,_0x5b1ccc,!0x1);if(_['isTransformMutationFailure'](_0x3d5560))throw _0x3d5560[_0x54aba0(0x466)];_0x35ba43[_0x54aba0(0x36e)](_0x535569,{..._0x5bb6b6,'ranges':_0x3d5560[_0x54aba0(0x36c)]['params'][_0x54aba0(0x266)]});}queueMicrotask(()=>{const _0x3747cc=_0x54aba0;this[_0x3747cc(0x5e5)][_0x3747cc(0x573)](_0x35ba43);});})));}['_onCursorUpdate'](_0x45a936){const _0x4b4d23=_0x27a195;var _0x59e10d,_0x4b059e;const {memberID:_0x17b2c8,selection:_0x3fc446}=_0x45a936[_0x4b4d23(0x276)],_0x2ed5da=Hs(_0x3fc446),_0x5f73e0=(_0x4b059e=(_0x59e10d=this[_0x4b4d23(0x3ae)]['getMember'](this[_0x4b4d23(0x43c)],_0x17b2c8))==null?void 0x0:_0x59e10d['name'])!=null?_0x4b059e:_0x4b4d23(0x534),_0x427ac4={'color':this[_0x4b4d23(0x56a)][_0x4b4d23(0x3e5)](_0x17b2c8),'name':_0x5f73e0,'ranges':_0x2ed5da},_0x36b3b4=this[_0x4b4d23(0x52d)];_0x36b3b4[_0x4b4d23(0x36e)](_0x17b2c8,_0x427ac4),this[_0x4b4d23(0x5e5)][_0x4b4d23(0x573)](_0x36b3b4);}[_0x27a195(0x419)](_0x31c1c2){const _0x269963=_0x27a195,{memberID:_0x2e3159}=_0x31c1c2[_0x269963(0x276)],_0x1396b4=this[_0x269963(0x52d)];_0x1396b4[_0x269963(0x4a1)](_0x2e3159),this[_0x269963(0x5e5)][_0x269963(0x573)](_0x1396b4);}[_0x27a195(0x294)](){const _0x54fe38=_0x27a195;var _0x599a9c;if(this[_0x54fe38(0x402)]=!0x0,((_0x599a9c=this[_0x54fe38(0x4d3)][_0x54fe38(0x278)]())==null?void 0x0:_0x599a9c[_0x54fe38(0x2f2)]())!==this[_0x54fe38(0x43c)])return;const _0x239866=this['_injector'][_0x54fe38(0x520)](se['DocSelectionManagerService'])['getDocRanges']();Array['isArray'](_0x239866)&&_0x239866[_0x54fe38(0x540)]>0x0&&this['_updateLocalCursor'](_0x239866);}[_0x27a195(0x1de)](){const _0x3acf43=_0x27a195;this[_0x3acf43(0x402)]=!0x1;}};ke=ei([K(0x2,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),K(0x3,a[_0x27a195(0x4da)](Je)),K(0x4,a['Inject'](q)),K(0x5,a[_0x27a195(0x4da)](qe)),K(0x6,_[_0x27a195(0x212)]),K(0x7,a[_0x27a195(0x48c)]),K(0x8,a[_0x27a195(0x3e2)])],ke);var ii=Object['defineProperty'],ni=Object[_0x27a195(0x219)],ri=(_0x3167f5,_0x374749,_0x5e260d,_0x47a137)=>{const _0xdfd7b0=_0x27a195;for(var _0x8c7ab=_0x47a137>0x1?void 0x0:_0x47a137?ni(_0x374749,_0x5e260d):_0x374749,_0x2a30c8=_0x3167f5[_0xdfd7b0(0x540)]-0x1,_0x4cf3bb;_0x2a30c8>=0x0;_0x2a30c8--)(_0x4cf3bb=_0x3167f5[_0x2a30c8])&&(_0x8c7ab=(_0x47a137?_0x4cf3bb(_0x374749,_0x5e260d,_0x8c7ab):_0x4cf3bb(_0x8c7ab))||_0x8c7ab);return _0x47a137&&_0x8c7ab&&ii(_0x374749,_0x5e260d,_0x8c7ab),_0x8c7ab;},Q=(_0x21dc18,_0x4bfee8)=>(_0x584e5e,_0x2087fb)=>_0x4bfee8(_0x584e5e,_0x2087fb,_0x21dc18);const oi=0x12c,ai=0x64,ci=()=>{let _0x22f26e=[],_0x16e4e9=!0x1;return _0x45175f=>{const _0x4765e6=_0x3f87;_0x22f26e[_0x4765e6(0x24b)](_0x45175f),_0x16e4e9||(_0x16e4e9=!0x0,setTimeout(()=>{const _0x30c9f5=_0x4765e6;_0x22f26e[_0x30c9f5(0x481)](_0x598aad=>_0x598aad()),_0x22f26e=[],_0x16e4e9=!0x1;}));};};let Be=class extends a[_0x27a195(0x47c)]{constructor(_0x5b3afe,_0x3030b5,_0x2bcfa8,_0x3032a0,_0x38d086,_0x3c7f83,_0x21be1d,_0x5daa5f){const _0x42bc98=_0x27a195;super(),u(this,_0x42bc98(0x402),!0x1),u(this,'_init',!0x1),u(this,_0x42bc98(0x5e5),new v[(_0x42bc98(0x4ec))](new Map())),u(this,_0x42bc98(0x365),this[_0x42bc98(0x5e5)][_0x42bc98(0x601)]()),u(this,_0x42bc98(0x60a),new v[(_0x42bc98(0x4ec))]([])),u(this,_0x42bc98(0x4a5),this[_0x42bc98(0x60a)]['pipe'](v[_0x42bc98(0x220)](oi))),u(this,_0x42bc98(0x42b),a[_0x42bc98(0x494)]((_0x5d58fd,_0x1105c5)=>{const _0x5d81ab=_0x42bc98,_0x17e328={'eventID':_[_0x5d81ab(0x5f2)][_0x5d81ab(0x1ff)],'data':{'unitID':this[_0x5d81ab(0x43c)],'memberID':this[_0x5d81ab(0x35a)][_0x5d81ab(0x48a)](),'selection':et['serializeRangeWithSheet'](_0x5d58fd,_0x1105c5[_0x5d81ab(0x328)])}};this['_session'][_0x5d81ab(0x2f9)](_0x17e328,this[_0x5d81ab(0x43c)]);},ai)),(this[_0x42bc98(0x43c)]=_0x5b3afe,this['_session']=_0x3030b5,this[_0x42bc98(0x3cf)]=_0x2bcfa8,this[_0x42bc98(0x56a)]=_0x3032a0,this[_0x42bc98(0x3ae)]=_0x38d086,this[_0x42bc98(0x4d3)]=_0x3c7f83,this[_0x42bc98(0x39e)]=_0x21be1d,this[_0x42bc98(0x2d0)]=_0x5daa5f);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get['roomMembers'](){return this['_roomMembers$']['getValue']();}['dispose'](){const _0x37acc4=_0x27a195;super[_0x37acc4(0x22a)](),this['_cursorInfo$']['next'](new Map()),this[_0x37acc4(0x5e5)][_0x37acc4(0x2e4)](),this[_0x37acc4(0x60a)][_0x37acc4(0x573)]([]),this[_0x37acc4(0x60a)][_0x37acc4(0x2e4)]();}[_0x27a195(0x202)](){const _0x45fd52=_0x27a195;this[_0x45fd52(0x3be)]||(this['_init']=!0x0,this[_0x45fd52(0x35a)][_0x45fd52(0x4c9)][_0x45fd52(0x3b2)](v['takeUntil'](this[_0x45fd52(0x497)]))[_0x45fd52(0x262)](_0x5eaf3a=>{const _0x1e3d20=_0x45fd52;_0x5eaf3a===H['ONLINE']?this[_0x1e3d20(0x294)]():this[_0x1e3d20(0x1de)]();}),this[_0x45fd52(0x35a)][_0x45fd52(0x483)][_0x45fd52(0x3b2)](v[_0x45fd52(0x33e)](this['dispose$']))[_0x45fd52(0x262)](_0x4912a7=>{const _0xd1a06f=_0x45fd52,_0x187e6b=_0x4912a7[_0xd1a06f(0x5e3)];_0x187e6b===_['CollaborationEvent'][_0xd1a06f(0x1ff)]&&this[_0xd1a06f(0x4ff)](_0x4912a7),_0x187e6b===_[_0xd1a06f(0x5f2)][_0xd1a06f(0x47f)]&&this['_onCursorDelete'](_0x4912a7);}),this[_0x45fd52(0x3fe)](),this[_0x45fd52(0x598)](this[_0x45fd52(0x39e)][_0x45fd52(0x285)](_0x1e6630=>{const _0x26ef82=_0x45fd52;if(this['_online']&&_0x1e6630['id']===C[_0x26ef82(0x33d)]['id']&&_0x1e6630[_0x26ef82(0x4e6)][_0x26ef82(0x431)]===this[_0x26ef82(0x43c)]){const _0x15cdbd=_0x1e6630[_0x26ef82(0x4e6)];this[_0x26ef82(0x42b)](_0x15cdbd[_0x26ef82(0x5e7)],_0x15cdbd[_0x26ef82(0x5d4)][0x0]);}})));}[_0x27a195(0x4ff)](_0x44519f){const _0x2083f0=_0x27a195;var _0x197691,_0x47cc6e;const {memberID:_0x21f776,selection:_0x4cc51e}=_0x44519f[_0x2083f0(0x276)],{sheetName:_0x353420,range:_0x308f8f}=et[_0x2083f0(0x25a)](_0x4cc51e),_0x695ea4={'name':(_0x47cc6e=(_0x197691=this['_memberService']['getMember'](this[_0x2083f0(0x43c)],_0x21f776))==null?void 0x0:_0x197691['name'])!=null?_0x47cc6e:_0x2083f0(0x534),'range':this[_0x2083f0(0x2b5)](_0x353420,_0x308f8f),'sheetID':_0x353420,'color':this['_colorAssignService'][_0x2083f0(0x3e5)](_0x21f776),'selection':_0x4cc51e},_0x38d7bf=this['cursorInfo'];_0x38d7bf[_0x2083f0(0x36e)](_0x21f776,_0x695ea4),this[_0x2083f0(0x5e5)][_0x2083f0(0x573)](_0x38d7bf);}[_0x27a195(0x419)](_0x4e6542){const _0x4d41c9=_0x27a195,{memberID:_0x19367d}=_0x4e6542['data'],_0x40ae58=this[_0x4d41c9(0x52d)];_0x40ae58[_0x4d41c9(0x4a1)](_0x19367d),this[_0x4d41c9(0x5e5)][_0x4d41c9(0x573)](_0x40ae58);}['_getMergeRange'](_0x7bb31,_0x5861a4){const _0x176389=_0x27a195;var _0xfdfbe0,_0x162030;const _0x5a28a3=(_0x162030=(_0xfdfbe0=this[_0x176389(0x4d3)][_0x176389(0x292)](this[_0x176389(0x43c)]))==null?void 0x0:_0xfdfbe0['getSheetBySheetId'](_0x7bb31))==null?void 0x0:_0x162030[_0x176389(0x532)]();return(_0x5a28a3==null?void 0x0:_0x5a28a3[_0x176389(0x341)](_0x5d57d4=>a[_0x176389(0x57a)][_0x176389(0x4eb)](_0x5d57d4,_0x5861a4)))||_0x5861a4;}[_0x27a195(0x3fe)](){const _0x469767=_0x27a195,_0x358fd6=new a[(_0x469767(0x21d))](),_0x2b6604=ci(),_0x5329a0=()=>{const _0x24261d=_0x469767;_0x358fd6[_0x24261d(0x22a)]();const _0x360a20=(_0x4a60fb,_0x246c76,_0x345ccd,_0x49f552)=>{const _0x128553=_0x24261d;let _0x4a64af=[];switch(_0x4a60fb['id']){case C['EffectRefRangId'][_0x128553(0x34e)]:{_0x4a64af=C[_0x128553(0x370)](_0x4a60fb,_0x49f552);break;}case C[_0x128553(0x3ec)][_0x128553(0x4ee)]:{_0x4a64af=C['handleDeleteRangeMoveUp'](_0x4a60fb,_0x49f552);break;}case C[_0x128553(0x3ec)][_0x128553(0x3c6)]:{_0x4a64af=C[_0x128553(0x206)](_0x4a60fb,_0x49f552);break;}case C[_0x128553(0x3ec)]['InsertRangeMoveDownCommandId']:{_0x4a64af=C[_0x128553(0x544)](_0x4a60fb,_0x49f552);break;}case C[_0x128553(0x3ec)][_0x128553(0x503)]:{_0x4a64af=C[_0x128553(0x479)](_0x4a60fb,_0x49f552);break;}case C['EffectRefRangId'][_0x128553(0x45b)]:{_0x4a64af=C[_0x128553(0x3ff)](_0x4a60fb,_0x49f552);break;}case C['EffectRefRangId'][_0x128553(0x218)]:{_0x4a64af=C[_0x128553(0x55b)](_0x4a60fb,_0x49f552);break;}case C[_0x128553(0x3ec)][_0x128553(0x38f)]:{_0x4a64af=C['handleIRemoveCol'](_0x4a60fb,_0x49f552);break;}case C['EffectRefRangId'][_0x128553(0x50e)]:{_0x4a64af=C[_0x128553(0x3b7)](_0x4a60fb,_0x49f552);break;}}const _0x5b6595=C[_0x128553(0x58a)](_0x4a64af,_0x49f552),_0x331a8d=this[_0x128553(0x52d)][_0x128553(0x520)](_0x246c76);if(_0x331a8d&&_0x5b6595){const _0x111fdc={..._0x331a8d,'range':_0x5b6595};this[_0x128553(0x52d)][_0x128553(0x36e)](_0x246c76,_0x111fdc),_0x2b6604(()=>{const _0x56f189=_0x128553,_0x597c17=this[_0x56f189(0x2d0)]['registerRefRange'](_0x5b6595,_0xc78656=>(_0x597c17[_0x56f189(0x22a)](),_0x360a20(_0xc78656,_0x246c76,_0x345ccd,_0x5b6595)));_0x358fd6[_0x56f189(0x4b5)](_0x597c17);});}return{'redos':[],'undos':[]};};this[_0x24261d(0x52d)][_0x24261d(0x481)]((_0x5612db,_0x1f755e)=>{const _0x1a5fa2=_0x24261d,{range:_0x4b0eb4,sheetID:_0x222340}=_0x5612db,_0x56f42f=this[_0x1a5fa2(0x2d0)]['registerRefRange'](_0x4b0eb4,_0x293540=>(_0x56f42f[_0x1a5fa2(0x22a)](),_0x360a20(_0x293540,_0x1f755e,_0x222340,_0x4b0eb4)));_0x358fd6[_0x1a5fa2(0x4b5)](_0x56f42f);});};this[_0x469767(0x598)](a[_0x469767(0x3eb)](this[_0x469767(0x5e5)][_0x469767(0x262)](()=>{_0x5329a0();})));}['_toggleOnline'](){const _0x3e76e1=_0x27a195;var _0x53da0b,_0x11e9cd;if(this[_0x3e76e1(0x402)]=!0x0,((_0x53da0b=this[_0x3e76e1(0x4d3)][_0x3e76e1(0x278)]())==null?void 0x0:_0x53da0b[_0x3e76e1(0x2f2)]())!==this['unitID'])return;const _0x4ed82f=(_0x11e9cd=this['_injector']['get'](C[_0x3e76e1(0x347)])[_0x3e76e1(0x5b2)]())==null?void 0x0:_0x11e9cd[0x0],_0x53fe78=this[_0x3e76e1(0x4d3)]['getCurrentUnitForType'](a[_0x3e76e1(0x562)]['UNIVER_SHEET'])['getActiveSheet']();_0x4ed82f&&_0x53fe78&&this['_updateLocalCursor'](_0x53fe78['getSheetId'](),_0x4ed82f);}[_0x27a195(0x1de)](){this['_online']=!0x1;}};Be=ri([Q(0x2,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),Q(0x3,a[_0x27a195(0x4da)](Je)),Q(0x4,a['Inject'](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x27a195(0x3e2)]),Q(0x7,a[_0x27a195(0x4da)](C[_0x27a195(0x4c3)]))],Be);var li=Object[_0x27a195(0x410)],hi=Object[_0x27a195(0x219)],_i=(_0x70d610,_0x28c384,_0x35cbf1,_0x5e23e2)=>{const _0x3eff9e=_0x27a195;for(var _0x2283bf=_0x5e23e2>0x1?void 0x0:_0x5e23e2?hi(_0x28c384,_0x35cbf1):_0x28c384,_0x384f6a=_0x70d610[_0x3eff9e(0x540)]-0x1,_0x493ba0;_0x384f6a>=0x0;_0x384f6a--)(_0x493ba0=_0x70d610[_0x384f6a])&&(_0x2283bf=(_0x5e23e2?_0x493ba0(_0x28c384,_0x35cbf1,_0x2283bf):_0x493ba0(_0x2283bf))||_0x2283bf);return _0x5e23e2&&_0x2283bf&&li(_0x28c384,_0x35cbf1,_0x2283bf),_0x2283bf;},Me=(_0x52f0a5,_0x295865)=>(_0xe1a442,_0x2c9860)=>_0x295865(_0xe1a442,_0x2c9860,_0x52f0a5);let ne=class extends a[_0x27a195(0x47c)]{constructor(_0x624259,_0x19a61f,_0x27f648){const _0x5a776a=_0x27a195;super(),u(this,'_entities',new Map()),u(this,'_entityInit$',new v[(_0x5a776a(0x529))]()),(this[_0x5a776a(0x4d3)]=_0x624259,this['_injector']=_0x19a61f,this['_collabSessionService']=_0x27f648,this[_0x5a776a(0x3be)]());}[_0x27a195(0x22a)](){const _0x3fa8bb=_0x27a195;super[_0x3fa8bb(0x22a)](),this[_0x3fa8bb(0x34c)][_0x3fa8bb(0x2e4)](),this[_0x3fa8bb(0x3c8)][_0x3fa8bb(0x481)](_0x57b9d5=>_0x57b9d5[_0x3fa8bb(0x22a)]());}[_0x27a195(0x221)](_0x2f4dcf){const _0x3fb427=_0x27a195;return this[_0x3fb427(0x3c8)][_0x3fb427(0x3a8)](_0x2f4dcf)?this[_0x3fb427(0x3c8)][_0x3fb427(0x520)](_0x2f4dcf)[_0x3fb427(0x365)]:this[_0x3fb427(0x34c)]['pipe'](v[_0x3fb427(0x564)](_0x51050=>_0x51050['unitID']===_0x2f4dcf),v['switchMap'](_0x51c999=>_0x51c999[_0x3fb427(0x365)]));}[_0x27a195(0x3be)](){const _0xf3c79d=_0x27a195;this[_0xf3c79d(0x4d3)][_0xf3c79d(0x53b)](a[_0xf3c79d(0x562)][_0xf3c79d(0x5d1)])[_0xf3c79d(0x3b2)](v[_0xf3c79d(0x33e)](this[_0xf3c79d(0x497)]))[_0xf3c79d(0x262)](async _0x4d2844=>{const _0x2a28f5=_0xf3c79d,_0xd47daf=_0x4d2844['getUnitId'](),_0x589b0e=await this[_0x2a28f5(0x472)](_0xd47daf);this[_0x2a28f5(0x34c)]['next'](_0x589b0e),this['_entities']['set'](_0xd47daf,_0x589b0e);}),this['_univerInstanceService'][_0xf3c79d(0x53b)](a[_0xf3c79d(0x562)][_0xf3c79d(0x211)])[_0xf3c79d(0x3b2)](v['takeUntil'](this[_0xf3c79d(0x497)]))['pipe'](v[_0xf3c79d(0x564)](_0x4d8db0=>!_0x4d8db0[_0xf3c79d(0x2f2)]()[_0xf3c79d(0x593)]('__')))[_0xf3c79d(0x262)](async _0x191ab1=>{const _0x748675=_0xf3c79d,_0x35c437=_0x191ab1[_0x748675(0x2f2)](),_0x318f99=await this['_startDocCollabCursor'](_0x35c437);this[_0x748675(0x34c)][_0x748675(0x573)](_0x318f99),this[_0x748675(0x3c8)][_0x748675(0x36e)](_0x35c437,_0x318f99);}),v[_0xf3c79d(0x30b)](this[_0xf3c79d(0x4d3)][_0xf3c79d(0x38c)](a[_0xf3c79d(0x562)]['UNIVER_DOC']),this[_0xf3c79d(0x4d3)]['getTypeOfUnitDisposed$'](a[_0xf3c79d(0x562)]['UNIVER_SHEET']))[_0xf3c79d(0x3b2)](v[_0xf3c79d(0x33e)](this[_0xf3c79d(0x497)]))['subscribe'](_0x45e148=>{const _0x4082f3=_0xf3c79d,_0x250936=_0x45e148['getUnitId'](),_0x213e45=this[_0x4082f3(0x3c8)][_0x4082f3(0x520)](_0x250936);_0x213e45&&(_0x213e45[_0x4082f3(0x22a)](),this['_entities']['delete'](_0x250936));});}async['_startSheetCollabCursor'](_0xf2a085){const _0x5147c3=_0x27a195,_0x2aec47=await this['_collabSessionService'][_0x5147c3(0x546)](_0xf2a085),_0x68e763=this[_0x5147c3(0x3cf)]['createInstance'](Be,_0xf2a085,_0x2aec47);return _0x68e763[_0x5147c3(0x202)](),_0x68e763;}async[_0x27a195(0x390)](_0x113b17){const _0x116a78=_0x27a195,_0x37de59=await this[_0x116a78(0x2cc)][_0x116a78(0x546)](_0x113b17),_0x8585f0=this[_0x116a78(0x3cf)]['createInstance'](ke,_0x113b17,_0x37de59);return _0x8585f0[_0x116a78(0x202)](),_0x8585f0;}};ne=_i([Me(0x0,a[_0x27a195(0x48c)]),Me(0x1,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),Me(0x2,a[_0x27a195(0x4da)](exports['CollaborationSessionService']))],ne);const de=0x14,lt=0xc8,Ae=0x4,ui=0x5;function di(_0x4fce7e,_0x29377a){const _0xb766c1=_0x27a195;let {radius:_0x425aeb,width:_0x2c7706,height:_0x1993fb}=_0x29377a;_0x425aeb=_0x425aeb!=null?_0x425aeb:0x0,_0x2c7706=_0x2c7706!=null?_0x2c7706:0x1e,_0x1993fb=_0x1993fb!=null?_0x1993fb:0x1e;let _0x643e38=0x0,_0x58121c=0x0,_0x23fa2d=0x0;_0x643e38=_0x58121c=_0x23fa2d=Math['min'](_0x425aeb,_0x2c7706/0x2,_0x1993fb/0x2),_0x4fce7e['beginPath'](),_0x4fce7e['moveTo'](_0x643e38,0x0),_0x4fce7e[_0xb766c1(0x54a)](_0x2c7706-_0x58121c,0x0),_0x4fce7e['arc'](_0x2c7706-_0x58121c,_0x58121c,_0x58121c,Math['PI']*0x3/0x2,0x0,!0x1),_0x4fce7e['lineTo'](_0x2c7706,_0x1993fb-_0x23fa2d),_0x4fce7e[_0xb766c1(0x4bb)](_0x2c7706-_0x23fa2d,_0x1993fb-_0x23fa2d,_0x23fa2d,0x0,Math['PI']/0x2,!0x1),_0x4fce7e[_0xb766c1(0x54a)](0x0,_0x1993fb),_0x4fce7e['lineTo'](0x0,_0x643e38),_0x4fce7e[_0xb766c1(0x4bb)](_0x643e38,_0x643e38,_0x643e38,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x4fce7e[_0xb766c1(0x24f)](),_0x29377a[_0xb766c1(0x526)]&&(_0x4fce7e[_0xb766c1(0x609)](),_0x4fce7e[_0xb766c1(0x3c2)]=_0x29377a[_0xb766c1(0x526)],_0x29377a[_0xb766c1(0x37c)]===_0xb766c1(0x31b)?_0x4fce7e[_0xb766c1(0x526)](_0xb766c1(0x31b)):_0x4fce7e['fill'](),_0x4fce7e[_0xb766c1(0x232)]());}class Oe extends O['Shape']{constructor(_0x4a9cef,_0x12bfb0){const _0x15f26f=_0x27a195;super(_0x4a9cef,_0x12bfb0),u(this,'color'),u(this,_0x15f26f(0x4cc)),(this['color']=_0x12bfb0==null?void 0x0:_0x12bfb0['color'],this[_0x15f26f(0x4cc)]=_0x12bfb0==null?void 0x0:_0x12bfb0[_0x15f26f(0x4cc)]);}static[_0x27a195(0x4c2)](_0x410564,_0xdff98f){const _0x52b699=_0x27a195,{text:_0x17f67b,color:_0x2d4b75}=_0xdff98f;_0x410564['save'](),_0x410564[_0x52b699(0x27d)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x24f912=_0x410564['measureText'](_0x17f67b)['width'],_0x50b84b=Math['min'](_0x24f912+0x2*Ae,lt);di(_0x410564,{'height':de,'radius':0x4,'width':_0x50b84b,'fill':_0x2d4b75,'evented':!0x1}),_0x410564[_0x52b699(0x3c2)]=_0x52b699(0x3cb);const _0x523c14=Ae,_0x4b8055=de-ui,_0x300b63=lt-0x2*Ae;if(_0x24f912>_0x300b63){let _0x231a20='',_0x1e00eb=0x0;for(const _0xa46243 of _0x17f67b){const _0x4d58e0=_0x410564[_0x52b699(0x239)](_0xa46243)[_0x52b699(0x558)];if(_0x1e00eb+_0x4d58e0<=_0x300b63-_0x410564[_0x52b699(0x239)](_0x52b699(0x374))[_0x52b699(0x558)])_0x231a20+=_0xa46243,_0x1e00eb+=_0x4d58e0;else{_0x231a20+=_0x52b699(0x374);break;}}_0x410564[_0x52b699(0x34b)](_0x231a20,_0x523c14,_0x4b8055);}else _0x410564[_0x52b699(0x34b)](_0x17f67b,_0x523c14,_0x4b8055);_0x410564[_0x52b699(0x232)]();}['_draw'](_0x49458b){Oe['drawWith'](_0x49458b,this);}}const Le=_0x27a195(0x482),Si=_0x27a195(0x24e),vi=_0x27a195(0x513),le=0x6,gi=1.5,je=0x4,mi=1.5,fi=_0x27a195(0x373);class ht{constructor(_0x331c29,_0x393344,_0x3df714,_0x30f5ec){const _0x57535a=_0x27a195;u(this,'_shapes',[]),u(this,_0x57535a(0x291),null),u(this,_0x57535a(0x2e7),null),u(this,_0x57535a(0x383),null),u(this,'_hideTimer',null),u(this,_0x57535a(0x2e3),null),(this['_cursor']=_0x331c29,this[_0x57535a(0x21b)]=_0x393344,this['_docSkeleton']=_0x3df714,this['_document']=_0x30f5ec,this[_0x57535a(0x1f7)]());}set[_0x27a195(0x5a0)](_0x27582a){const _0x527766=_0x27a195;_0x27582a?(this['_anchorDot']&&this[_0x527766(0x383)][_0x527766(0x4ed)](),this['_textBubble']&&this[_0x527766(0x2e7)]['show']()):(this[_0x527766(0x383)]&&this[_0x527766(0x383)][_0x527766(0x4f0)](),this[_0x527766(0x2e7)]&&this[_0x527766(0x2e7)][_0x527766(0x4ed)]());}[_0x27a195(0x22a)](){const _0x55bcda=_0x27a195;for(const _0x117817 of this[_0x55bcda(0x1fc)])_0x117817[_0x55bcda(0x22a)]();this[_0x55bcda(0x2e7)]&&this[_0x55bcda(0x2e7)]['dispose'](),this[_0x55bcda(0x383)]&&this[_0x55bcda(0x383)][_0x55bcda(0x22a)](),this[_0x55bcda(0x291)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x55bcda(0x2e3)]();}[_0x27a195(0x1f7)](){const _0x5619ce=_0x27a195;var _0x81a355;const {_docSkeleton:_0x2c18f8,_document:_0x5f2824}=this,{color:_0x46a17c,name:_0x20cece,ranges:_0x5e4432}=this[_0x5619ce(0x4cf)],_0x2c2b8a=_0x5f2824[_0x5619ce(0x552)](),{docsLeft:_0x5ae3b0,docsTop:_0x37f33d}=_0x2c2b8a,_0x4c0c28=new N[(_0x5619ce(0x4ce))](_0x2c2b8a,_0x2c18f8);for(const {startOffset:_0x45ee6d,endOffset:_0x3f89fb,collapsed:_0x58fd28,isActive:_0x44740b}of _0x5e4432){const _0x5c7f52=_0x2c18f8['findNodePositionByCharIndex'](_0x45ee6d),_0x4b1697=_0x2c18f8[_0x5619ce(0x541)](_0x3f89fb);if(_0x44740b){const {contentBoxPointGroup:_0x3a903c}=_0x4c0c28[_0x5619ce(0x257)](_0x4b1697,_0x4b1697);if(_0x3a903c['length']===0x0)continue;this[_0x5619ce(0x3b6)](_0x46a17c,_0x3a903c,_0x5ae3b0,_0x37f33d,_0x20cece),this[_0x5619ce(0x2e3)]=this[_0x5619ce(0x308)]();}if(!_0x58fd28&&_0x5c7f52&&_0x4b1697){if(N['isValidRectRange'](_0x5c7f52,_0x4b1697)){const _0x378f6b=new N[(_0x5619ce(0x421))](_0x2c2b8a,_0x2c18f8),{pointGroup:_0x2a0c1b}=(_0x81a355=_0x378f6b[_0x5619ce(0x257)](_0x5c7f52,_0x4b1697))!=null?_0x81a355:{};if(_0x2a0c1b==null||_0x2a0c1b['length']===0x0)continue;this['_drawRectRange'](_0x46a17c,_0x2a0c1b,_0x5ae3b0,_0x37f33d);}else{const {contentBoxPointGroup:_0x41955b}=_0x4c0c28['getRangePointData'](_0x5c7f52,_0x4b1697);if(_0x41955b[_0x5619ce(0x540)]===0x0)continue;this[_0x5619ce(0x490)](_0x46a17c,_0x41955b,_0x5ae3b0,_0x37f33d);}}}}[_0x27a195(0x3b6)](_0x4c64ae,_0x12c33a,_0xd055bb,_0x3ba68a,_0x337e41){const _0x405bc2=_0x27a195,_0x1cf138=this['_getAnchorBounding'](_0x12c33a),{left:_0x3b1822,top:_0x3b8e34,height:_0x5ef485}=_0x1cf138,_0x21a51b=this[_0x405bc2(0x344)](),_0x253884=mi/_0x21a51b,_0x487010=new O[(_0x405bc2(0x313))](Le+a[_0x405bc2(0x3ca)][_0x405bc2(0x49f)](le),{'left':_0x3b1822+_0xd055bb-_0x253884,'top':_0x3b8e34+_0x3ba68a,'height':_0x5ef485,'width':gi,'fill':_0x4c64ae||O[_0x405bc2(0x4b4)](a[_0x405bc2(0x495)]['black'],0x0),'strokeWidth':_0x253884,'stroke':fi,'evented':!0x0});this[_0x405bc2(0x291)]=_0x487010,this[_0x405bc2(0x21b)]['addObject'](_0x487010,N[_0x405bc2(0x2f5)]);const _0x36b8f9=new O[(_0x405bc2(0x313))](Le+a[_0x405bc2(0x3ca)][_0x405bc2(0x49f)](le),{'left':_0x3b1822+_0xd055bb-_0x253884,'top':_0x3b8e34+_0x3ba68a-je/0x2,'height':je,'width':je,'fill':_0x4c64ae||O[_0x405bc2(0x4b4)](a[_0x405bc2(0x495)][_0x405bc2(0x27c)],0x0),'strokeWidth':0x0,'stroke':_0x4c64ae||O['getColor'](a[_0x405bc2(0x495)][_0x405bc2(0x27c)],0x0),'evented':!0x1});this['_anchorDot']=_0x36b8f9,this[_0x405bc2(0x21b)][_0x405bc2(0x52f)](_0x36b8f9,N[_0x405bc2(0x2f5)]);const _0x4f5b1d=new Oe(Le+a['Tools'][_0x405bc2(0x49f)](le),{'left':_0x3b1822+_0xd055bb-_0x253884,'top':_0x3b8e34+_0x3ba68a-de,'text':_0x337e41,'color':_0x4c64ae});this[_0x405bc2(0x2e7)]=_0x4f5b1d,this[_0x405bc2(0x21b)][_0x405bc2(0x52f)](_0x4f5b1d,N[_0x405bc2(0x2f5)]),this[_0x405bc2(0x5a0)]=!0x1;}[_0x27a195(0x308)](){const _0xf3ff7d=_0x27a195,_0x492e62=this[_0xf3ff7d(0x291)][_0xf3ff7d(0x592)]['subscribeEvent'](()=>{this['_hover']=!0x0;}),_0x5934a6=this[_0xf3ff7d(0x291)]['onPointerLeave$'][_0xf3ff7d(0x581)](()=>{const _0x1bf5ed=_0xf3ff7d;this[_0x1bf5ed(0x59c)]&&clearTimeout(this['_hideTimer']),this[_0x1bf5ed(0x59c)]=setTimeout(()=>{const _0x5eed72=_0x1bf5ed;this[_0x5eed72(0x5a0)]=!0x1;},0x7d0);});return()=>{const _0x251ccc=_0xf3ff7d;_0x492e62[_0x251ccc(0x554)](),_0x5934a6[_0x251ccc(0x554)]();};}[_0x27a195(0x490)](_0x2549d0,_0x408cf3,_0x5a661d,_0x1a7aac){const _0x54ee80=_0x27a195,_0x3d581b=new a[(_0x54ee80(0x329))](_0x2549d0)[_0x54ee80(0x3a4)](0.2)[_0x54ee80(0x3a5)](),_0x477ce1=new O[(_0x54ee80(0x594))](Si+a[_0x54ee80(0x3ca)][_0x54ee80(0x49f)](le),{'pointsGroup':_0x408cf3,'fill':_0x3d581b||O['getColor'](a[_0x54ee80(0x495)][_0x54ee80(0x27c)],0.2),'left':_0x5a661d,'top':_0x1a7aac,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x54ee80(0x1fc)][_0x54ee80(0x24b)](_0x477ce1),this[_0x54ee80(0x21b)][_0x54ee80(0x52f)](_0x477ce1,N[_0x54ee80(0x2f5)]);}[_0x27a195(0x363)](_0xcb7532,_0x84b8e9,_0x50b5f2,_0x447822){const _0x10a9c0=_0x27a195,_0x375461=new a[(_0x10a9c0(0x329))](_0xcb7532)['setAlpha'](0.2)[_0x10a9c0(0x3a5)](),_0x511827=new O[(_0x10a9c0(0x594))](vi+a['Tools'][_0x10a9c0(0x49f)](le),{'pointsGroup':_0x84b8e9,'fill':_0x375461||O[_0x10a9c0(0x4b4)](a[_0x10a9c0(0x495)][_0x10a9c0(0x27c)],0.2),'left':_0x50b5f2,'top':_0x447822,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x10a9c0(0x1fc)][_0x10a9c0(0x24b)](_0x511827),this[_0x10a9c0(0x21b)][_0x10a9c0(0x52f)](_0x511827,N[_0x10a9c0(0x2f5)]);}[_0x27a195(0x517)](_0x47cebf){const _0x42bd2d=_0x47cebf[0x0],_0x4542f9=_0x42bd2d[0x0],_0x31801d=_0x42bd2d[0x2],{x:_0x43029,y:_0x1d6fb6}=_0x4542f9,{x:_0x326c41,y:_0x50dbc8}=_0x31801d;return{'left':_0x43029,'top':_0x1d6fb6,'width':_0x326c41-_0x43029,'height':_0x50dbc8-_0x1d6fb6};}['_getScale'](){const _0x37d8a3=_0x27a195,{scaleX:_0x23ffe0,scaleY:_0xcb0e67}=this[_0x37d8a3(0x21b)][_0x37d8a3(0x453)]();return Math['max'](_0x23ffe0,_0xcb0e67);}}var Ii=Object[_0x27a195(0x410)],pi=Object[_0x27a195(0x219)],Ci=(_0x431237,_0x25975e,_0xbb6ff6,_0x10eae0)=>{const _0x34a997=_0x27a195;for(var _0x2fdef3=_0x10eae0>0x1?void 0x0:_0x10eae0?pi(_0x25975e,_0xbb6ff6):_0x25975e,_0x412f96=_0x431237[_0x34a997(0x540)]-0x1,_0x185487;_0x412f96>=0x0;_0x412f96--)(_0x185487=_0x431237[_0x412f96])&&(_0x2fdef3=(_0x10eae0?_0x185487(_0x25975e,_0xbb6ff6,_0x2fdef3):_0x185487(_0x2fdef3))||_0x2fdef3);return _0x10eae0&&_0x2fdef3&&Ii(_0x25975e,_0xbb6ff6,_0x2fdef3),_0x2fdef3;},ve=(_0x465835,_0x1b05e6)=>(_0x37bd39,_0x4e7468)=>_0x1b05e6(_0x37bd39,_0x4e7468,_0x465835);let Ve=class extends a['RxDisposable']{constructor(_0x2c8b25,_0xdd0766,_0x3cf9d0,_0x2b5882,_0x27de28){const _0x1f5ae5=_0x27a195;super(),u(this,_0x1f5ae5(0x447),[]),u(this,'_cursors',[]),(this[_0x1f5ae5(0x50f)]=_0x2c8b25,this[_0x1f5ae5(0x5ef)]=_0xdd0766,this[_0x1f5ae5(0x43d)]=_0x3cf9d0,this['_commandService']=_0x2b5882,this[_0x1f5ae5(0x20f)]=_0x27de28,this[_0x1f5ae5(0x3be)]());}[_0x27a195(0x3be)](){const _0x44e52d=_0x27a195,_0xa2cc7d=this[_0x44e52d(0x50f)][_0x44e52d(0x431)],_0x1f1ecf=this[_0x44e52d(0x5ef)];this['disposeWithMe'](v[_0x44e52d(0x5d3)]([this[_0x44e52d(0x43d)][_0x44e52d(0x221)](_0xa2cc7d),this[_0x44e52d(0x20f)][_0x44e52d(0x29e)]])[_0x44e52d(0x3b2)](E[_0x44e52d(0x2ae)](([_0x21eae5,_0x5b2b6b])=>({'skeleton':_0x1f1ecf['getSkeleton'](),'cursors':[..._0x21eae5[_0x44e52d(0x290)]()][_0x44e52d(0x21c)](_0x3461d1=>({..._0x3461d1,'color':_0x5b2b6b[_0x3461d1['color']]}))})))['subscribe'](_0x42d084=>{const _0x47a9ee=_0x44e52d;if(this[_0x47a9ee(0x5ac)](),_0x42d084){const {skeleton:_0x790c80,cursors:_0x55ede4}=_0x42d084;this[_0x47a9ee(0x26e)](_0x790c80,_0x55ede4);}})),this[_0x44e52d(0x1db)](),this[_0x44e52d(0x524)]();}[_0x27a195(0x26e)](_0x312c72,_0x5b1591){const _0x1a72ee=_0x27a195,{scene:_0x3d080f,mainComponent:_0x2ea035}=this[_0x1a72ee(0x50f)],_0x282730=_0x5b1591[_0x1a72ee(0x2ae)](_0x4481f0=>new ht(_0x4481f0,_0x3d080f,_0x312c72,_0x2ea035));this['_cursorShapes']=_0x282730,this[_0x1a72ee(0x536)]=_0x5b1591;}['_refreshCollabCursors'](){const _0x589db1=_0x27a195;this[_0x589db1(0x5ac)]();const {scene:_0x58a13e,mainComponent:_0x1c06a4}=this[_0x589db1(0x50f)],_0xc5f71f=this[_0x589db1(0x5ef)]['getSkeleton'](),_0xcd7802=this[_0x589db1(0x536)][_0x589db1(0x2ae)](_0x4ea059=>new ht(_0x4ea059,_0x58a13e,_0xc5f71f,_0x1c06a4));this['_cursorShapes']=_0xcd7802;}[_0x27a195(0x5ac)](){const _0x4eea54=_0x27a195;this[_0x4eea54(0x447)][_0x4eea54(0x481)](_0x33961f=>_0x33961f['dispose']()),this['_cursorShapes']=[];}['_initCommandExecutedListener'](){const _0x978249=_0x27a195,_0x1713c3=[N[_0x978249(0x4fe)]['id']];this[_0x978249(0x598)](this['_commandService'][_0x978249(0x285)](_0xc34f02=>{const _0x3b6060=_0x978249;_0x1713c3[_0x3b6060(0x296)](_0xc34f02['id'])&&_0xc34f02[_0x3b6060(0x4e6)][_0x3b6060(0x431)]===this['_context'][_0x3b6060(0x431)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0xc206d6=_0x27a195;this[_0xc206d6(0x598)](a[_0xc206d6(0x516)](this[_0xc206d6(0x50f)][_0xc206d6(0x52b)][_0xc206d6(0x5d6)])['pipe'](E[_0xc206d6(0x564)](_0x23b27a=>_0x23b27a[_0xc206d6(0x44f)]===O[_0xc206d6(0x553)][_0xc206d6(0x57f)]),E[_0xc206d6(0x590)](0x10))[_0xc206d6(0x262)](()=>{const _0x445c2b=_0xc206d6;this[_0x445c2b(0x557)]();}));}};Ve=Ci([ve(0x1,a['Inject'](se[_0x27a195(0x24c)])),ve(0x2,a[_0x27a195(0x4da)](ne)),ve(0x3,a[_0x27a195(0x3e2)]),ve(0x4,a['Inject'](a[_0x27a195(0x25f)]))],Ve);const Ei=0x1,bi=1.5;class Pt extends O[_0x27a195(0x242)]{constructor(_0x4e0c4b,_0x17aeef){const _0x329d61=_0x27a195;super(_0x4e0c4b,_0x17aeef),u(this,'_color'),u(this,_0x329d61(0x54e),!0x1),u(this,'_range'),u(this,_0x329d61(0x4a8),''),u(this,_0x329d61(0x2d9),_0x329d61(0x42a)),u(this,_0x329d61(0x324)),(_0x17aeef&&this['setShapeProps'](_0x17aeef),this[_0x329d61(0x592)][_0x329d61(0x581)](()=>this[_0x329d61(0x375)]({'hovered':!0x0})),this[_0x329d61(0x55e)][_0x329d61(0x581)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x410712){const _0x378dff=_0x27a195;var _0xa14f65,_0x12dae0,_0x504f8d,_0x31ee56,_0x5794f2,_0x3068ee;this[_0x378dff(0x263)]=(_0xa14f65=_0x410712[_0x378dff(0x20a)])!=null?_0xa14f65:this[_0x378dff(0x263)],this[_0x378dff(0x54e)]=(_0x12dae0=_0x410712[_0x378dff(0x22d)])!=null?_0x12dae0:this[_0x378dff(0x54e)],this[_0x378dff(0x229)]=(_0x504f8d=_0x410712[_0x378dff(0x328)])!=null?_0x504f8d:this['_range'],this['_name']=(_0x31ee56=_0x410712[_0x378dff(0x227)])!=null?_0x31ee56:this[_0x378dff(0x4a8)],this[_0x378dff(0x2d9)]=(_0x5794f2=_0x410712[_0x378dff(0x2bb)])!=null?_0x5794f2:this[_0x378dff(0x2d9)],this[_0x378dff(0x324)]=(_0x3068ee=_0x410712['backgroundColor'])!=null?_0x3068ee:this['_backgroundColor'],this['transformByState']({'width':_0x410712[_0x378dff(0x558)],'height':_0x410712[_0x378dff(0x2fa)]});}[_0x27a195(0x409)](_0x19796a){const _0x538e98=_0x27a195,{row:_0x149dd0,column:_0x4e2102}=_0x19796a;if(_0x149dd0>=this[_0x538e98(0x229)][_0x538e98(0x3ea)]&&_0x149dd0<=this[_0x538e98(0x229)]['endRow']&&_0x4e2102>=this[_0x538e98(0x229)][_0x538e98(0x523)]&&_0x4e2102<=this[_0x538e98(0x229)]['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0x538e98(0x375)]({'hovered':!0x1});}['triggerDblclick'](_0x38ca47){return!0x1;}[_0x27a195(0x5df)](_0x1b2d89){const _0x2bdf41=_0x27a195;O[_0x2bdf41(0x313)][_0x2bdf41(0x4c2)](_0x1b2d89,{'width':this[_0x2bdf41(0x558)],'height':this[_0x2bdf41(0x2fa)],'strokeWidth':bi,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x2bdf41(0x324)]}),this[_0x2bdf41(0x54e)]&&(_0x1b2d89['save'](),_0x1b2d89['transform'](0x1,0x0,0x0,0x1,this[_0x2bdf41(0x558)],this[_0x2bdf41(0x2d9)]===_0x2bdf41(0x578)?0x0:-de),Oe[_0x2bdf41(0x4c2)](_0x1b2d89,{'text':this['_name'],'color':this[_0x2bdf41(0x263)]}),_0x1b2d89[_0x2bdf41(0x232)]());}}var Ti=Object['defineProperty'],Ri=Object[_0x27a195(0x219)],Oi=(_0x42001e,_0xfa7aef,_0x5e1da1,_0x195d23)=>{const _0x370528=_0x27a195;for(var _0x2d611f=_0x195d23>0x1?void 0x0:_0x195d23?Ri(_0xfa7aef,_0x5e1da1):_0xfa7aef,_0xfb3c76=_0x42001e[_0x370528(0x540)]-0x1,_0x3b773b;_0xfb3c76>=0x0;_0xfb3c76--)(_0x3b773b=_0x42001e[_0xfb3c76])&&(_0x2d611f=(_0x195d23?_0x3b773b(_0xfa7aef,_0x5e1da1,_0x2d611f):_0x3b773b(_0x2d611f))||_0x2d611f);return _0x195d23&&_0x2d611f&&Ti(_0xfa7aef,_0x5e1da1,_0x2d611f),_0x2d611f;},$e=(_0x4dccb4,_0x2eb8fe)=>(_0x443a96,_0x3a94ef)=>_0x2eb8fe(_0x443a96,_0x3a94ef,_0x4dccb4);const Di=0x1389;let We=class extends a[_0x27a195(0x47c)]{constructor(_0xb9c9bf,_0x35bb05,_0x4dda35,_0x3b2fcd){const _0x114f1c=_0x27a195;super(),u(this,_0x114f1c(0x536),new Set()),u(this,_0x114f1c(0x1e0),null),(this[_0x114f1c(0x50f)]=_0xb9c9bf,this[_0x114f1c(0x38e)]=_0x35bb05,this[_0x114f1c(0x43d)]=_0x4dda35,this['_themeService']=_0x3b2fcd,this[_0x114f1c(0x3be)]());}[_0x27a195(0x3be)](){const _0x40a72c=_0x27a195;this[_0x40a72c(0x38e)][_0x40a72c(0x41a)][_0x40a72c(0x3b2)](E['takeUntil'](this['dispose$']),E[_0x40a72c(0x5ab)](_0x24f565=>{const _0x17b691=_0x40a72c;if(_0x24f565){const _0x3fc0a9=_0x24f565['sheetId'];return v[_0x17b691(0x5d3)](this[_0x17b691(0x43d)][_0x17b691(0x221)](this[_0x17b691(0x50f)][_0x17b691(0x431)]),this[_0x17b691(0x20f)][_0x17b691(0x29e)])['pipe'](E['map'](([_0x15a0ad,_0x432711])=>{const _0x3d6204=_0x17b691,_0x5a90ea=new Map();return _0x15a0ad[_0x3d6204(0x481)]((_0x587953,_0x2fd70f)=>{const _0x21a29d=_0x3d6204;if(_0x587953[_0x21a29d(0x33a)]===_0x3fc0a9){const _0x171dbb={..._0x587953};_0x171dbb[_0x21a29d(0x20a)]=_0x432711[_0x587953[_0x21a29d(0x20a)]],_0x5a90ea[_0x21a29d(0x36e)](_0x2fd70f,_0x171dbb);}}),{'skeleton':_0x24f565,'cursors':_0x5a90ea};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x40a72c(0x262)](({skeleton:_0x1d4a43,cursors:_0x361bea})=>{const _0x266760=_0x40a72c;this[_0x266760(0x5ac)](),_0x1d4a43&&this[_0x266760(0x26e)](_0x1d4a43,_0x361bea);}),this['_sheetSkeletonManagerService']['currentSkeleton$']['subscribe'](_0x2e1d53=>{const _0x37604e=_0x40a72c;if(_0x2e1d53==null)return;const {skeleton:_0x280957}=_0x2e1d53,{scene:_0x237152}=this[_0x37604e(0x50f)];_0x237152[_0x37604e(0x2fd)][_0x37604e(0x581)](a[_0x37604e(0x494)](_0x3ca1ca=>{const _0x345cd7=_0x37604e;var _0x537116,_0x4f9910;const {offsetX:_0x5e007b,offsetY:_0x382fdb}=_0x3ca1ca,{x:_0x432070,y:_0x1b2b66}=_0x237152[_0x345cd7(0x3e7)](O['Vector2'][_0x345cd7(0x595)]([_0x5e007b,_0x382fdb])),{scaleX:_0x49a653,scaleY:_0x4c1501}=_0x237152['getAncestorScale'](),_0x2845a7=_0x237152[_0x345cd7(0x35c)](te[_0x345cd7(0x3b9)]['VIEW_MAIN']),_0x21f369=_0x237152[_0x345cd7(0x322)](O[_0x345cd7(0x486)][_0x345cd7(0x595)]([_0x432070,_0x1b2b66]),_0x2845a7),_0x1ab195=_0x280957[_0x345cd7(0x585)](_0x5e007b,_0x382fdb,_0x49a653,_0x4c1501,_0x21f369);((_0x537116=this[_0x345cd7(0x1e0)])==null?void 0x0:_0x537116['column'])===_0x1ab195[_0x345cd7(0x579)]&&((_0x4f9910=this[_0x345cd7(0x1e0)])==null?void 0x0:_0x4f9910[_0x345cd7(0x2c0)])===_0x1ab195[_0x345cd7(0x2c0)]||this['_cursors']['forEach'](_0x41d7e9=>{const _0x1f342a=_0x345cd7;_0x41d7e9[_0x1f342a(0x409)](_0x1ab195);});},0x64));});}[_0x27a195(0x26e)](_0x577d7d,_0x4ab04a){const _0x16db1f=_0x27a195;var _0x14bb32;const _0x55e4ac=(_0x14bb32=this[_0x16db1f(0x38e)][_0x16db1f(0x378)]())==null?void 0x0:_0x14bb32[_0x16db1f(0x298)];if(!_0x55e4ac)return;const _0x920f69=this[_0x16db1f(0x5e8)]();if(!_0x920f69)return;this[_0x16db1f(0x536)][_0x16db1f(0x481)](_0x47c0e2=>{const _0x3f885b=_0x16db1f;_0x47c0e2[_0x3f885b(0x2ef)]();});const {scene:_0x1feaec}=_0x920f69,_0x52c904=yi(Array[_0x16db1f(0x3e1)](_0x4ab04a[_0x16db1f(0x290)]()))['map'](_0x5f5940=>{const _0x16caf0=_0x16db1f,{color:_0xcc6b3b,range:_0x5a3b9e,name:_0x5b4917,selection:_0x353879,sheetID:_0x30f4ea}=_0x5f5940,{startColumn:_0x5dad28,startRow:_0x5e95b4,endColumn:_0x35d842,endRow:_0x50d4b5}=_0x5a3b9e,_0x3d5bf0=te[_0x16caf0(0x323)](_0x5e95b4,_0x5dad28,_0x1feaec,_0x55e4ac),_0x4b6032=te[_0x16caf0(0x323)](_0x50d4b5,_0x35d842,_0x1feaec,_0x55e4ac),{columnHeaderHeightAndMarginTop:_0x8b8a34}=_0x55e4ac,{startX:_0x361b2b,startY:_0x47d6b1}=_0x3d5bf0,{endX:_0xe6b97b,endY:_0xa46bbb}=_0x4b6032,_0xd3c336=_0xe6b97b-_0x361b2b,_0x4f1b77=_0xa46bbb-_0x47d6b1,_0x4f28da={'labelPosition':_0x47d6b1-_0x8b8a34>=de?_0x16caf0(0x42a):_0x16caf0(0x578),'sheetID':_0x30f4ea,'range':_0x5a3b9e,'color':_0xcc6b3b,'name':_0x5b4917,'selection':_0x353879,'left':_0x361b2b,'top':_0x47d6b1,'width':_0xd3c336,'height':_0x4f1b77,'evented':!0x1,'zIndex':Di};return new Pt(_0x5b4917,_0x4f28da);});_0x1feaec[_0x16db1f(0x2b8)](_0x52c904,Ei),this[_0x16db1f(0x536)]=new Set(_0x52c904);}['_removeCollabCursors'](){const _0x4b7aa8=_0x27a195;var _0xbc2b6;(_0xbc2b6=this[_0x4b7aa8(0x536)])==null||_0xbc2b6[_0x4b7aa8(0x481)](_0x51a41a=>_0x51a41a[_0x4b7aa8(0x22a)]());}['_getSheetObject'](){const _0x2f7dc1=_0x27a195;return te[_0x2f7dc1(0x59f)](this[_0x2f7dc1(0x50f)][_0x2f7dc1(0x217)],this[_0x2f7dc1(0x50f)]);}};We=Oi([$e(0x1,a[_0x27a195(0x4da)](te[_0x27a195(0x475)])),$e(0x2,a[_0x27a195(0x4da)](ne)),$e(0x3,a[_0x27a195(0x4da)](a[_0x27a195(0x25f)]))],We);function yi(_0x197780){const _0x4eba0b=_0x27a195,_0x2a1f6b=new Map();return _0x197780['forEach'](_0x1a7908=>{const _0x22f945=_0x3f87;if(_0x2a1f6b[_0x22f945(0x3a8)](_0x1a7908['selection'])){const _0x20266c=_0x2a1f6b[_0x22f945(0x520)](_0x1a7908[_0x22f945(0x200)]);_0x20266c['name']+=',\x20'+_0x1a7908['name'];}else _0x2a1f6b['set'](_0x1a7908['selection'],_0x1a7908);}),Array[_0x4eba0b(0x3e1)](_0x2a1f6b[_0x4eba0b(0x290)]());}var M=function(){const _0x56c542=_0x27a195;return M=Object[_0x56c542(0x3c9)]||function(_0x389c73){const _0x1b5b03=_0x56c542;for(var _0x31ee82,_0x46bbdf=0x1,_0x55154b=arguments[_0x1b5b03(0x540)];_0x46bbdf<_0x55154b;_0x46bbdf++){_0x31ee82=arguments[_0x46bbdf];for(var _0x399052 in _0x31ee82)Object[_0x1b5b03(0x42e)][_0x1b5b03(0x5fa)]['call'](_0x31ee82,_0x399052)&&(_0x389c73[_0x399052]=_0x31ee82[_0x399052]);}return _0x389c73;},M[_0x56c542(0x2b3)](this,arguments);},Ui=function(_0x13bf85,_0x259a00){const _0x3f81ec=_0x27a195;var _0x27e181={};for(var _0x27160c in _0x13bf85)Object[_0x3f81ec(0x42e)]['hasOwnProperty'][_0x3f81ec(0x53e)](_0x13bf85,_0x27160c)&&_0x259a00[_0x3f81ec(0x364)](_0x27160c)<0x0&&(_0x27e181[_0x27160c]=_0x13bf85[_0x27160c]);if(_0x13bf85!=null&&typeof Object[_0x3f81ec(0x360)]==_0x3f81ec(0x29d)){for(var _0x259a56=0x0,_0x27160c=Object[_0x3f81ec(0x360)](_0x13bf85);_0x259a56<_0x27160c[_0x3f81ec(0x540)];_0x259a56++)_0x259a00[_0x3f81ec(0x364)](_0x27160c[_0x259a56])<0x0&&Object[_0x3f81ec(0x42e)][_0x3f81ec(0x574)][_0x3f81ec(0x53e)](_0x13bf85,_0x27160c[_0x259a56])&&(_0x27e181[_0x27160c[_0x259a56]]=_0x13bf85[_0x27160c[_0x259a56]]);}return _0x27e181;},Ze=P[_0x27a195(0x469)](function(_0x3674e2,_0x51a1e8){const _0x563c2d=_0x27a195;var _0x345619=_0x3674e2['icon'],_0x2c75db=_0x3674e2['id'],_0x927b89=_0x3674e2[_0x563c2d(0x5db)],_0x6c36e0=_0x3674e2[_0x563c2d(0x57e)],_0x2ca52a=Ui(_0x3674e2,['icon','id',_0x563c2d(0x5db),_0x563c2d(0x57e)]),_0x18a077=_0x563c2d(0x5d2)['concat'](_0x2c75db,'\x20')['concat'](_0x927b89||'')[_0x563c2d(0x399)](),_0x2b6e18=P['useRef']('_'[_0x563c2d(0x528)](Ni()));return wt(_0x345619,''[_0x563c2d(0x528)](_0x2c75db),{'defIds':_0x345619[_0x563c2d(0x5bd)],'idSuffix':_0x2b6e18['current']},M({'ref':_0x51a1e8,'className':_0x18a077},_0x2ca52a),_0x6c36e0);});function wt(_0x3f5e20,_0x45af9b,_0x30ee58,_0x271cbb,_0x335e9e){const _0xdd1ea0=_0x27a195;return P[_0xdd1ea0(0x5a8)](_0x3f5e20[_0xdd1ea0(0x314)],M(M({'key':_0x45af9b},Pi(_0x3f5e20,_0x30ee58,_0x335e9e)),_0x271cbb),(wi(_0x3f5e20,_0x30ee58)[_0xdd1ea0(0x3ce)]||[])[_0xdd1ea0(0x2ae)](function(_0x40093d,_0x212436){const _0x437aa6=_0xdd1ea0;return wt(_0x40093d,''['concat'](_0x45af9b,'-')['concat'](_0x3f5e20[_0x437aa6(0x314)],'-')[_0x437aa6(0x528)](_0x212436),_0x30ee58,void 0x0,_0x335e9e);}));}function Pi(_0x7a71b9,_0x150ed3,_0x1e6d3f){const _0x15cd9b=_0x27a195;var _0x57b460=M({},_0x7a71b9[_0x15cd9b(0x5c6)]);_0x1e6d3f!=null&&_0x1e6d3f[_0x15cd9b(0x244)]&&_0x57b460[_0x15cd9b(0x526)]===_0x15cd9b(0x244)&&(_0x57b460[_0x15cd9b(0x526)]=_0x1e6d3f[_0x15cd9b(0x244)]);var _0x13fe05=_0x150ed3['defIds'];return!_0x13fe05||_0x13fe05[_0x15cd9b(0x540)]===0x0||(_0x7a71b9[_0x15cd9b(0x314)]===_0x15cd9b(0x498)&&_0x57b460[_0x15cd9b(0x4fa)]&&(_0x57b460[_0x15cd9b(0x4fa)]=_0x57b460[_0x15cd9b(0x4fa)]+_0x150ed3[_0x15cd9b(0x4b7)]),Object[_0x15cd9b(0x304)](_0x57b460)[_0x15cd9b(0x481)](function(_0x22b8f5){const _0x3fb1ab=_0x15cd9b;var _0x4dd2e7=_0x22b8f5[0x0],_0x3d8039=_0x22b8f5[0x1];typeof _0x3d8039=='string'&&(_0x57b460[_0x4dd2e7]=_0x3d8039[_0x3fb1ab(0x394)](/url\(#(.*)\)/,_0x3fb1ab(0x5ca)[_0x3fb1ab(0x528)](_0x150ed3[_0x3fb1ab(0x4b7)],')')));})),_0x57b460;}function wi(_0x472168,_0x5b305a){const _0x320560=_0x27a195;var _0x45e865,_0x36db5e=_0x5b305a[_0x320560(0x5bd)];return!_0x36db5e||_0x36db5e[_0x320560(0x540)]===0x0?_0x472168:_0x472168[_0x320560(0x314)]===_0x320560(0x56d)&&(!((_0x45e865=_0x472168[_0x320560(0x3ce)])===null||_0x45e865===void 0x0)&&_0x45e865[_0x320560(0x540)])?M(M({},_0x472168),{'children':_0x472168[_0x320560(0x3ce)][_0x320560(0x2ae)](function(_0x4ced3c){const _0x3291ec=_0x320560;return typeof _0x4ced3c[_0x3291ec(0x5c6)]['id']==_0x3291ec(0x2c2)&&_0x36db5e&&_0x36db5e[_0x3291ec(0x364)](_0x4ced3c[_0x3291ec(0x5c6)]['id'])>-0x1?M(M({},_0x4ced3c),{'attrs':M(M({},_0x4ced3c[_0x3291ec(0x5c6)]),{'id':_0x4ced3c['attrs']['id']+_0x5b305a[_0x3291ec(0x4b7)]})}):_0x4ced3c;})}):_0x472168;}function Ni(){const _0x3fdc0e=_0x27a195;return Math[_0x3fdc0e(0x20e)]()[_0x3fdc0e(0x3bd)](0x24)[_0x3fdc0e(0x4ab)](0x2,0x8);}Ze[_0x27a195(0x2b2)]=_0x27a195(0x4b8);var Mi={'tag':_0x27a195(0x4ae),'attrs':{'fill':'none','viewBox':_0x27a195(0x4f8),'width':_0x27a195(0x5ad),'height':_0x27a195(0x5ad)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x27a195(0x2b9),'attrs':{'stroke':'currentColor','d':_0x27a195(0x24a),'strokeLinecap':'round','strokeLinejoin':_0x27a195(0x356),'strokeWidth':1.2}}]},{'tag':_0x27a195(0x56d),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x27a195(0x5ea)},'children':[{'tag':_0x27a195(0x2b9),'attrs':{'fill':_0x27a195(0x465),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x27a195(0x5ea)]},Nt=P['forwardRef'](function(_0x3c9c8b,_0x4252c4){const _0x413023=_0x27a195;return P[_0x413023(0x5a8)](Ze,Object[_0x413023(0x3c9)]({},_0x3c9c8b,{'id':_0x413023(0x59b),'ref':_0x4252c4,'icon':Mi}));});Nt['displayName']=_0x27a195(0x3dc);var Ai={'tag':_0x27a195(0x4ae),'attrs':{'fill':_0x27a195(0x1f2),'viewBox':_0x27a195(0x1f4),'width':'1em','height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':_0x27a195(0x2b9),'attrs':{'stroke':'currentColor','d':'M4.5865\x2011.6499C3.36983\x2011.6499\x201.6665\x2011.1024\x201.6665\x208.9124C1.6665\x206.3574\x204.2215\x205.8099\x204.9515\x205.8099C5.3165\x204.5324\x206.0465\x202.5249\x208.9665\x202.5249C11.5215\x202.5249\x2012.6165\x203.9849\x2012.9815\x205.2624C12.9815\x205.2624\x2016.2665\x205.6274\x2016.2665\x208.7299C16.2665\x2010.9199\x2014.8065\x2011.6499\x2013.3465\x2011.6499M6.7767\x2011.6497L8.9667\x2013.4747L11.8867\x209.82466','strokeLinecap':'round','strokeLinejoin':_0x27a195(0x356),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x27a195(0x25c),'attrs':{'id':_0x27a195(0x568)},'children':[{'tag':_0x27a195(0x2b9),'attrs':{'fill':_0x27a195(0x465),'d':_0x27a195(0x464),'transform':_0x27a195(0x5af)}}]}]}],'defIds':['on-line-single_clip0_910_349']},Mt=P[_0x27a195(0x469)](function(_0x2f39a8,_0x34a877){const _0x4d2a3f=_0x27a195;return P[_0x4d2a3f(0x5a8)](Ze,Object[_0x4d2a3f(0x3c9)]({},_0x2f39a8,{'id':'on-line-single','ref':_0x34a877,'icon':Ai}));});Mt[_0x27a195(0x2b2)]='OnLineSingle';function At(_0x505853){const _0xd16740=_0x27a195;var _0x339876,_0x1813b4,_0x15763b='';if(typeof _0x505853=='string'||typeof _0x505853==_0xd16740(0x470))_0x15763b+=_0x505853;else{if(typeof _0x505853==_0xd16740(0x204)){if(Array[_0xd16740(0x4e8)](_0x505853)){var _0x1c9bdf=_0x505853[_0xd16740(0x540)];for(_0x339876=0x0;_0x339876<_0x1c9bdf;_0x339876++)_0x505853[_0x339876]&&(_0x1813b4=At(_0x505853[_0x339876]))&&(_0x15763b&&(_0x15763b+='\x20'),_0x15763b+=_0x1813b4);}else{for(_0x1813b4 in _0x505853)_0x505853[_0x1813b4]&&(_0x15763b&&(_0x15763b+='\x20'),_0x15763b+=_0x1813b4);}}}return _0x15763b;}function Li(){const _0x146b4a=_0x27a195;for(var _0x189fe3,_0xea06d0,_0xb64cf1=0x0,_0x47491f='',_0x2538b8=arguments[_0x146b4a(0x540)];_0xb64cf1<_0x2538b8;_0xb64cf1++)(_0x189fe3=arguments[_0xb64cf1])&&(_0xea06d0=At(_0x189fe3))&&(_0x47491f&&(_0x47491f+='\x20'),_0x47491f+=_0xea06d0);return _0x47491f;}const ji=_0x27a195(0x569),$i=_0x27a195(0x596),Hi=_0x27a195(0x2ca),xi=_0x27a195(0x2e8),ki=_0x27a195(0x22c),he={'onlineStatusIcon':ji,'onlineStatusTitle':$i,'onlineStatus':Hi,'online':xi,'offline':ki};function Bi(_0x1a1890){const _0x4d1b6e=_0x27a195;switch(_0x1a1890){case U[_0x4d1b6e(0x45a)]:return _0x4d1b6e(0x456);case U['CONFLICT']:return _0x4d1b6e(0x5c0);case U[_0x4d1b6e(0x305)]:return _0x4d1b6e(0x5cb);case U[_0x4d1b6e(0x1df)]:return _0x4d1b6e(0x238);case U[_0x4d1b6e(0x2eb)]:case U[_0x4d1b6e(0x538)]:case U['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case U[_0x4d1b6e(0x1fa)]:return'collabStatus.synced';}}function Lt(_0x33087c){const _0x1f133f=_0x27a195,{status$:_0x263281}=_0x33087c,_0x1ea5ab=A[_0x1f133f(0x3ee)](_0x263281,U['NOT_COLLAB']),_0x3ce66b=a[_0x1f133f(0x2f1)](a[_0x1f133f(0x58f)]),_0x5bfb72=a[_0x1f133f(0x2f1)](exports[_0x1f133f(0x445)]),_0x3fc929=_0x1ea5ab!==U[_0x1f133f(0x45a)],_0x30043f=_0x3ce66b['t'](Bi(_0x1ea5ab)),_0x5e3849=Li(he['onlineStatus'],{[he[_0x1f133f(0x37e)]]:_0x3fc929,[he['offline']]:!_0x3fc929}),_0x1d0a80=_0x3fc929?P[_0x1f133f(0x5a8)](Mt,null):P[_0x1f133f(0x5a8)](Nt,null),_0x145523=P[_0x1f133f(0x3f7)](()=>{const _0x2278b8=_0x1f133f;_0x3fc929||_0x5bfb72[_0x2278b8(0x3e6)]();},[_0x3fc929,_0x5bfb72]);function _0xac8564(){const _0x35fa45=_0x1f133f;return P[_0x35fa45(0x5a8)](_0x35fa45(0x215),{'className':_0x5e3849,'onClick':_0x145523},P[_0x35fa45(0x5a8)](_0x35fa45(0x215),{'className':he[_0x35fa45(0x2d7)]},_0x1d0a80),P[_0x35fa45(0x5a8)]('div',{'className':he[_0x35fa45(0x46e)]},_0x30043f));}return _0x3fc929?_0xac8564():P['createElement'](X[_0x1f133f(0x237)],{'title':_0x3ce66b['t']('collab-client.tooltip.reconnect')},_0xac8564());}var Vi=Object[_0x27a195(0x410)],Wi=Object[_0x27a195(0x219)],Fi=(_0x166b3b,_0x702491,_0x38b52d,_0x58d5df)=>{const _0x233ca2=_0x27a195;for(var _0x455d41=_0x58d5df>0x1?void 0x0:_0x58d5df?Wi(_0x702491,_0x38b52d):_0x702491,_0x3d8bab=_0x166b3b[_0x233ca2(0x540)]-0x1,_0x1db8d7;_0x3d8bab>=0x0;_0x3d8bab--)(_0x1db8d7=_0x166b3b[_0x3d8bab])&&(_0x455d41=(_0x58d5df?_0x1db8d7(_0x702491,_0x38b52d,_0x455d41):_0x1db8d7(_0x455d41))||_0x455d41);return _0x58d5df&&_0x455d41&&Vi(_0x702491,_0x38b52d,_0x455d41),_0x455d41;},ge=(_0x49684a,_0xf376f1)=>(_0xe842f8,_0x51af00)=>_0xf376f1(_0xe842f8,_0x51af00,_0x49684a);exports[_0x27a195(0x500)]=class extends a['Disposable']{constructor(_0x56b146,_0x7b39af,_0x13ddc9,_0x49143b){const _0x1a9269=_0x27a195;super(),u(this,'_status$',new v[(_0x1a9269(0x4ec))](U[_0x1a9269(0x1df)])),(this[_0x1a9269(0x4d3)]=_0x56b146,this[_0x1a9269(0x2f3)]=_0x7b39af,this[_0x1a9269(0x3cf)]=_0x13ddc9,this['_collaborationController']=_0x49143b,this['_initStatusComponent'](),this[_0x1a9269(0x45f)]());}[_0x27a195(0x45f)](){const _0x2b774d=_0x27a195;this[_0x2b774d(0x598)](this['_univerInstanceService'][_0x2b774d(0x556)][_0x2b774d(0x3b2)](v[_0x2b774d(0x5ab)](()=>{const _0x192497=_0x2b774d,_0x58217f=this['_univerInstanceService'][_0x192497(0x278)]();return _0x58217f?this[_0x192497(0x521)][_0x192497(0x454)](_0x58217f[_0x192497(0x2f2)]()):v['of'](null);}),v[_0x2b774d(0x5ab)](_0x52ff9f=>_0x52ff9f?_0x52ff9f[_0x2b774d(0x477)]:v['of'](U[_0x2b774d(0x1df)])))[_0x2b774d(0x262)](_0x35f5f3=>{const _0x549ffc=_0x2b774d;this[_0x549ffc(0x28c)][_0x549ffc(0x573)](_0x35f5f3);}));}[_0x27a195(0x4c0)](){const _0x2b7479=_0x27a195;this['disposeWithMe'](this[_0x2b7479(0x2f3)][_0x2b7479(0x4e2)](A[_0x2b7479(0x2b7)][_0x2b7479(0x548)],()=>a[_0x2b7479(0x30e)](Gi({'status$':this['_status$'][_0x2b7479(0x601)]()}),this[_0x2b7479(0x3cf)])));}},exports[_0x27a195(0x500)]=Fi([ge(0x0,a[_0x27a195(0x48c)]),ge(0x1,A[_0x27a195(0x34a)]),ge(0x2,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),ge(0x3,a['Inject'](exports[_0x27a195(0x52c)]))],exports['DesktopCollaborationStatusDisplayController']);function Gi(_0xb84a1f){const {status$:_0x14dbdb}=_0xb84a1f;return function(){const _0x24b2d0=_0x3f87;return P[_0x24b2d0(0x5a8)](Lt,{'status$':_0x14dbdb});};}const Qe=a[_0x27a195(0x4d4)](_0x27a195(0x29f));var Yi=Object[_0x27a195(0x410)],Ki=Object[_0x27a195(0x219)],Xi=(_0x3fc7ab,_0x3461ed,_0x296b1d,_0x2d01f8)=>{const _0x4ace09=_0x27a195;for(var _0x4ca6d8=_0x2d01f8>0x1?void 0x0:_0x2d01f8?Ki(_0x3461ed,_0x296b1d):_0x3461ed,_0x511543=_0x3fc7ab[_0x4ace09(0x540)]-0x1,_0x44c4db;_0x511543>=0x0;_0x511543--)(_0x44c4db=_0x3fc7ab[_0x511543])&&(_0x4ca6d8=(_0x2d01f8?_0x44c4db(_0x3461ed,_0x296b1d,_0x4ca6d8):_0x44c4db(_0x4ca6d8))||_0x4ca6d8);return _0x2d01f8&&_0x4ca6d8&&Yi(_0x3461ed,_0x296b1d,_0x4ca6d8),_0x4ca6d8;},ee=(_0x18ef91,_0x242387)=>(_0x4d279d,_0xdf8231)=>_0x242387(_0x4d279d,_0xdf8231,_0x18ef91);exports[_0x27a195(0x353)]=class extends a[_0x27a195(0x47c)]{constructor(_0x243eb3,_0x140aac,_0x19ce14,_0x37a7f2,_0x58db0b,_0x33d507){const _0x2c3a27=_0x27a195;super(),this[_0x2c3a27(0x2c1)]=_0x243eb3,this[_0x2c3a27(0x369)]=_0x140aac,this[_0x2c3a27(0x39e)]=_0x19ce14,this[_0x2c3a27(0x4d1)]=_0x37a7f2,this[_0x2c3a27(0x214)]=_0x58db0b,_0x33d507?_0x33d507==null||_0x33d507[_0x2c3a27(0x5c7)]()[_0x2c3a27(0x2c7)](()=>this[_0x2c3a27(0x3be)]()):(this[_0x2c3a27(0x369)][_0x2c3a27(0x5f3)]('[DataLoaderController]',_0x2c3a27(0x2d5)),this['_init']());}async['_init'](){const _0x55853a=_0x27a195,_0x4bd796=this[_0x55853a(0x2c1)][_0x55853a(0x43a)](_0x55853a(0x217)),_0x4a6557=this[_0x55853a(0x2c1)][_0x55853a(0x43a)](_0x55853a(0x44f));if(!_0x4bd796||!_0x4a6557){this[_0x55853a(0x369)][_0x55853a(0x5f3)](_0x55853a(0x2d1),_0x55853a(0x2d4));return;}switch(Number(_0x4a6557)){case $[_0x55853a(0x5d1)]:{const _0xfb9dea=await this[_0x55853a(0x58d)](_0x4bd796);this[_0x55853a(0x3dd)](_0xfb9dea);break;}case $[_0x55853a(0x211)]:{await this[_0x55853a(0x422)](_0x4bd796);break;}default:{this['_logService']['error'](_0x55853a(0x2d1),_0x55853a(0x1f6));break;}}}async[_0x27a195(0x3dd)](_0x17c388){const _0x2994eb=_0x27a195;await this[_0x2994eb(0x4d5)](_0x17c388),_0x17c388[_0x2994eb(0x607)][_0x2994eb(0x3b2)](v['takeUntil'](this[_0x2994eb(0x497)]))['subscribe'](_0xac5f61=>{const _0x36cdf6=_0x2994eb;_0xac5f61&&this[_0x36cdf6(0x234)](_0xac5f61);}),this[_0x2994eb(0x2c1)]['urlChange$']['pipe'](v[_0x2994eb(0x33e)](this[_0x2994eb(0x497)]))[_0x2994eb(0x262)](()=>this[_0x2994eb(0x4d5)](_0x17c388));}['_updateURLWithCurrentState'](_0x534a59,_0x3ab805=!0x1){const _0x5a2eeb=_0x27a195,_0x4d9d92=this[_0x5a2eeb(0x2c1)][_0x5a2eeb(0x43a)](_0x5a2eeb(0x4fd));_0x534a59[_0x5a2eeb(0x2ad)]()!==_0x4d9d92&&this[_0x5a2eeb(0x2c1)]['setParam'](_0x5a2eeb(0x4fd),_0x534a59['getSheetId'](),_0x3ab805);}async['_updateSubUnitFromURLParams'](_0x572062){const _0x3a559c=_0x27a195;var _0x1a7dd2;const _0x29ec66=this[_0x3a559c(0x2c1)][_0x3a559c(0x43a)]('subunit');if(!_0x29ec66||!_0x572062['getSheetBySheetId'](_0x29ec66)){const _0x5b42fa=_0x572062[_0x3a559c(0x5cc)]()[0x0],_0x137b1b=_0x572062[_0x3a559c(0x326)](_0x5b42fa);if(!_0x137b1b)return;this[_0x3a559c(0x234)](_0x137b1b,!0x0),await this['_commandService']['executeCommand'](C[_0x3a559c(0x231)]['id'],{'unitId':_0x572062[_0x3a559c(0x2f2)](),'subUnitId':_0x5b42fa});return;}((_0x1a7dd2=_0x572062[_0x3a559c(0x345)]())==null?void 0x0:_0x1a7dd2['getSheetId']())!==_0x29ec66&&await this[_0x3a559c(0x39e)][_0x3a559c(0x2bf)](C[_0x3a559c(0x231)]['id'],{'unitId':_0x572062[_0x3a559c(0x2f2)](),'subUnitId':_0x29ec66});}async[_0x27a195(0x58d)](_0x28c164){const _0x17ae9c=_0x27a195;let _0x1a1a8e=0x0;const _0x18ebf5=await this['_localCacheService'][_0x17ae9c(0x5e9)](_0x28c164);return _0x18ebf5&&(_0x18ebf5[_0x17ae9c(0x4a9)]||_0x18ebf5['mutations']['length']!==0x0)&&(_0x1a1a8e=_0x18ebf5['rev']),_0x1a1a8e===0x0&&this[_0x17ae9c(0x369)][_0x17ae9c(0x5f3)](_0x17ae9c(0x2d1),_0x17ae9c(0x462)),this['_snapshotService'][_0x17ae9c(0x2fc)](_0x28c164,_0x1a1a8e);}async[_0x27a195(0x422)](_0x33716b){const _0x53b84f=_0x27a195;let _0x14aacd=0x0;const _0x5b7401=await this[_0x53b84f(0x4d1)]['loadOfflineData'](_0x33716b);return _0x5b7401&&(_0x5b7401[_0x53b84f(0x4a9)]||_0x5b7401[_0x53b84f(0x4e1)][_0x53b84f(0x540)]!==0x0)&&(_0x14aacd=_0x5b7401[_0x53b84f(0x243)]),_0x14aacd===0x0&&this[_0x53b84f(0x369)][_0x53b84f(0x5f3)](_0x53b84f(0x2d1),_0x53b84f(0x462)),this[_0x53b84f(0x214)]['loadDoc'](_0x33716b,_0x14aacd);}},exports[_0x27a195(0x353)]=Xi([ee(0x0,Qe),ee(0x1,a[_0x27a195(0x246)]),ee(0x2,a[_0x27a195(0x3e2)]),ee(0x3,a['Inject'](exports[_0x27a195(0x2bc)])),ee(0x4,a['Inject'](_[_0x27a195(0x5c4)])),ee(0x5,a[_0x27a195(0x606)](Kt[_0x27a195(0x51f)]))],exports[_0x27a195(0x353)]);var qi=Object[_0x27a195(0x410)],zi=Object[_0x27a195(0x219)],Ji=(_0x10a54c,_0x5e9fac,_0x21aea7,_0x451877)=>{const _0x4db9b0=_0x27a195;for(var _0xdbfe12=_0x451877>0x1?void 0x0:_0x451877?zi(_0x5e9fac,_0x21aea7):_0x5e9fac,_0x3fc8f9=_0x10a54c[_0x4db9b0(0x540)]-0x1,_0x2814be;_0x3fc8f9>=0x0;_0x3fc8f9--)(_0x2814be=_0x10a54c[_0x3fc8f9])&&(_0xdbfe12=(_0x451877?_0x2814be(_0x5e9fac,_0x21aea7,_0xdbfe12):_0x2814be(_0xdbfe12))||_0xdbfe12);return _0x451877&&_0xdbfe12&&qi(_0x5e9fac,_0x21aea7,_0xdbfe12),_0xdbfe12;},_t=(_0x4d7fdf,_0x128a69)=>(_0x5bf6cf,_0x48c05e)=>_0x128a69(_0x5bf6cf,_0x48c05e,_0x4d7fdf);const Zi=_0x27a195(0x5f9),Qi=_0x27a195(0x426);let Ce=class extends a[_0x27a195(0x2cb)]{constructor(_0x46eaac,_0x55acc0){const _0x3ec29d=_0x27a195;super(),this['_univerInstanceService']=_0x46eaac,this['_configService']=_0x55acc0,this[_0x3ec29d(0x3be)]();}[_0x27a195(0x3be)](){const _0x5a1635=_0x27a195;this[_0x5a1635(0x598)](this[_0x5a1635(0x4d3)]['focused$'][_0x5a1635(0x262)](()=>{const _0x3edfc7=_0x5a1635;var _0x5d9286;const _0x2ca2c6=this[_0x3edfc7(0x4d3)][_0x3edfc7(0x278)]();let _0x26c52a=(_0x5d9286=this[_0x3edfc7(0x4d6)][_0x3edfc7(0x4e9)](Zi))!=null?_0x5d9286:Qi;_0x2ca2c6 instanceof a[_0x3edfc7(0x31a)]&&(_0x26c52a=_0x2ca2c6[_0x3edfc7(0x227)]),document['title']=_0x26c52a;}));}};Ce=Ji([_t(0x0,a[_0x27a195(0x48c)]),_t(0x1,a['IConfigService'])],Ce);var en=Object[_0x27a195(0x410)],tn=Object[_0x27a195(0x219)],sn=(_0x5121a4,_0x4e9842,_0x9b3bf7,_0x737658)=>{for(var _0x35ad4c=_0x737658>0x1?void 0x0:_0x737658?tn(_0x4e9842,_0x9b3bf7):_0x4e9842,_0x23c54c=_0x5121a4['length']-0x1,_0x4f5345;_0x23c54c>=0x0;_0x23c54c--)(_0x4f5345=_0x5121a4[_0x23c54c])&&(_0x35ad4c=(_0x737658?_0x4f5345(_0x4e9842,_0x9b3bf7,_0x35ad4c):_0x4f5345(_0x35ad4c))||_0x35ad4c);return _0x737658&&_0x35ad4c&&en(_0x4e9842,_0x9b3bf7,_0x35ad4c),_0x35ad4c;},He=(_0x20a609,_0x10f656)=>(_0x53252e,_0x373ac0)=>_0x10f656(_0x53252e,_0x373ac0,_0x20a609);let Ee=class{constructor(_0x3c0d11,_0x201509,_0x59ed2d){const _0x5cb0b3=_0x27a195;this['_configService']=_0x3c0d11,this[_0x5cb0b3(0x47a)]=_0x201509,this[_0x5cb0b3(0x5d7)]=_0x59ed2d,this['init']();}[_0x27a195(0x202)](){const _0x4b4a37=_0x27a195;this['_httpService'][_0x4b4a37(0x4db)]({'priority':0x1,'interceptor':(_0x159898,_0x240460)=>_0x240460(_0x159898)[_0x4b4a37(0x3b2)](v[_0x4b4a37(0x3fa)](async _0x2afaf6=>{const _0x2020e9=_0x4b4a37,_0x485306=_0x2afaf6;if(_0x485306[_0x2020e9(0x30d)]===0x191&&window[_0x2020e9(0x2af)](this[_0x2020e9(0x5d7)]['t'](_0x2020e9(0x600)))){const _0x2463bb=window[_0x2020e9(0x38d)](window[_0x2020e9(0x2e6)][_0x2020e9(0x1dd)]);window['location'][_0x2020e9(0x1dd)]=this[_0x2020e9(0x4dd)]()+_0x2020e9(0x269)+_0x2463bb;}return _0x485306;}))});}['_getLoginPath'](){const _0x49c0df=_0x27a195;var _0x11e6e9,_0x49614c;const _0x543e66=this['_configService']['getConfig'](Et),_0x8821da=this[_0x49c0df(0x4d6)][_0x49c0df(0x4e9)](L);return(_0x49614c=(_0x11e6e9=_0x8821da==null?void 0x0:_0x8821da[_0x49c0df(0x56c)])!=null?_0x11e6e9:_0x543e66)!=null?_0x49614c:ns;}};Ee=sn([He(0x0,a['IConfigService']),He(0x1,a[_0x27a195(0x4da)](w[_0x27a195(0x275)])),He(0x2,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)]))],Ee);var nn=Object['defineProperty'],rn=Object[_0x27a195(0x219)],on=(_0x3b0bea,_0x2031e0,_0xdf9d95,_0x8b2d81)=>{const _0x5b077b=_0x27a195;for(var _0x16dc68=_0x8b2d81>0x1?void 0x0:_0x8b2d81?rn(_0x2031e0,_0xdf9d95):_0x2031e0,_0x499023=_0x3b0bea[_0x5b077b(0x540)]-0x1,_0x264074;_0x499023>=0x0;_0x499023--)(_0x264074=_0x3b0bea[_0x499023])&&(_0x16dc68=(_0x8b2d81?_0x264074(_0x2031e0,_0xdf9d95,_0x16dc68):_0x264074(_0x16dc68))||_0x16dc68);return _0x8b2d81&&_0x16dc68&&nn(_0x2031e0,_0xdf9d95,_0x16dc68),_0x16dc68;},ut=(_0x57a04b,_0x1e01df)=>(_0x3f7ca1,_0x2a9248)=>_0x1e01df(_0x3f7ca1,_0x2a9248,_0x57a04b);const jt='AUTHZ_URL_KEY',an=_0x27a195(0x2a4);exports[_0x27a195(0x4e7)]=class extends a[_0x27a195(0x2cb)]{constructor(_0x20db25,_0x201d5e){const _0x5c3762=_0x27a195;super(),this[_0x5c3762(0x5a9)]=_0x20db25,this[_0x5c3762(0x4d6)]=_0x201d5e,this['_initMergeInterceptor']();}[_0x27a195(0x54d)](){const _0x417b49=_0x27a195,_0x43da6b=this;this['disposeWithMe'](this[_0x417b49(0x5a9)][_0x417b49(0x4db)]({'priority':0x3e7,'interceptor':w['MergeInterceptorFactory']({'isMatch'(_0x4eefc0){const _0x575916=_0x417b49;var _0x34f99a;if(_0x4eefc0[_0x575916(0x47e)]===_0x575916(0x2b4)&&((_0x34f99a=_0x4eefc0[_0x575916(0x236)])!=null&&_0x34f99a[_0x575916(0x502)])){const {objectID:_0x5b4786,objectType:_0x507c90}=_0x4eefc0[_0x575916(0x236)][_0x575916(0x502)]||{};if(!_0x5b4786||_0x507c90===void 0x0)return!0x1;const _0x2b7fb4=_0x43da6b[_0x575916(0x3f6)]()+'/'+_0x507c90+_0x575916(0x27b)+_0x5b4786+'/allowed';if(_0x4eefc0[_0x575916(0x4b6)]===_0x2b7fb4)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2e482e){const _0xb9e4e0=_0x417b49;var _0x5b23f7;return(_0x5b23f7=_0x2e482e[_0xb9e4e0(0x236)])==null?void 0x0:_0x5b23f7[_0xb9e4e0(0x502)];},'mergeParamsToRequest'(_0x211a73,_0x292f61){const _0x1a0f07=_0x417b49,_0x434aa2=_0x43da6b[_0x1a0f07(0x3f6)]()+'/-/object/-/batch_allowed',_0x515344=_0x211a73[_0x1a0f07(0x37f)]((_0xef4218,_0x4412aa)=>{const _0x225ac0=_0x1a0f07,{unitID:_0xf6cfb4,objectID:_0xf1c0cb,objectType:_0x5f584d,actions:_0x1e2a6b}=_0x4412aa;return _0xef4218[_0xf6cfb4]||(_0xef4218[_0xf6cfb4]={}),_0xef4218[_0xf6cfb4][_0xf1c0cb]||(_0xef4218[_0xf6cfb4][_0xf1c0cb]={'objectID':_0xf1c0cb,'objectType':_0x5f584d,'actions':[]}),_0xef4218[_0xf6cfb4][_0xf1c0cb][_0x225ac0(0x2c3)]['push'](..._0x1e2a6b),_0xef4218;},{}),_0x526625=[];for(const _0x3f3c2b in _0x515344)for(const _0x5705f4 in _0x515344[_0x3f3c2b]){const {actions:_0x21d500,objectType:_0x5f2513}=_0x515344[_0x3f3c2b][_0x5705f4],_0x5b511d=[...new Set(_0x21d500)];_0x526625[_0x1a0f07(0x24b)]({'unitID':_0x3f3c2b,'objectID':_0x5705f4,'objectType':_0x5f2513,'actions':_0x5b511d});}return new w[(_0x1a0f07(0x423))](_0x1a0f07(0x2b4),_0x434aa2,{'headers':_0x292f61[_0x1a0f07(0x357)],'withCredentials':_0x292f61[_0x1a0f07(0x42f)],'responseType':_0x292f61['responseType'],'body':{'requests':_0x526625}});}},{'distributeResult'(_0x4a8983,_0x5c31e2){const _0x1ecd78=_0x417b49,{objectActions:_0x53bb14}=_0x4a8983;return _0x5c31e2[_0x1ecd78(0x2ae)](_0x59395c=>{const _0x33f246=_0x1ecd78,{unitID:_0x1abb24,objectID:_0xe4db10,actions:_0x288fd7}=_0x59395c,_0x100d90=_0x53bb14[_0x33f246(0x341)](_0xb2561a=>_0xb2561a['unitID']===_0x1abb24&&_0xb2561a['objectID']===_0xe4db10),_0x337ad8=_0x288fd7[_0x33f246(0x2ae)](_0x323df9=>_0x100d90==null?void 0x0:_0x100d90[_0x33f246(0x2c3)]['find'](_0x16664a=>_0x16664a[_0x33f246(0x1e6)]===_0x323df9))[_0x33f246(0x564)](_0xd9f6ba=>!!_0xd9f6ba);return{'config':_0x59395c,'result':{'actions':_0x337ad8,'error':_0x4a8983[_0x33f246(0x466)]}};});}})}));}['_getAPIPrefixPath'](){const _0x4102a5=_0x27a195;var _0x3a24c7,_0x3827fd;const _0x1c0813=this[_0x4102a5(0x4d6)][_0x4102a5(0x4e9)](jt),_0x13b43b=this[_0x4102a5(0x4d6)][_0x4102a5(0x4e9)](L);return(_0x3827fd=(_0x3a24c7=_0x13b43b==null?void 0x0:_0x13b43b[_0x4102a5(0x2bd)])!=null?_0x3a24c7:_0x1c0813)!=null?_0x3827fd:an;}async[_0x27a195(0x3ed)](_0x442747){const _0xccaff0=_0x27a195,_0x2a9f98=this['_getAPIPrefixPath']()+'/'+_0x442747[_0xccaff0(0x3d9)]+_0xccaff0(0x5e4);return(await this['_HTTPService'][_0xccaff0(0x29c)](_0x2a9f98,{'body':_0x442747}))[_0xccaff0(0x502)][_0xccaff0(0x25b)]||'';}async['list'](_0xd48355){const _0x1dd702=_0x27a195,_0x292dda=this[_0x1dd702(0x3f6)]()+_0x1dd702(0x587);return(await this[_0x1dd702(0x5a9)][_0x1dd702(0x29c)](_0x292dda,{'body':_0xd48355}))['body'][_0x1dd702(0x384)];}async['update'](_0xe71c71){const _0x3e85c2=_0x27a195,_0x142d64=this[_0x3e85c2(0x3f6)]()+'/'+_0xe71c71[_0x3e85c2(0x3d9)]+_0x3e85c2(0x27b)+_0xe71c71[_0x3e85c2(0x25b)];await this['_HTTPService'][_0x3e85c2(0x4bc)](_0x142d64,{'body':_0xe71c71});}async['allowed'](_0x2d6ee8){const _0x4f2910=_0x27a195,_0x3d4af8=this[_0x4f2910(0x3f6)]()+'/'+_0x2d6ee8['objectType']+_0x4f2910(0x27b)+_0x2d6ee8['objectID']+'/allowed';return(await this[_0x4f2910(0x5a9)][_0x4f2910(0x29c)](_0x3d4af8,{'body':_0x2d6ee8}))[_0x4f2910(0x502)][_0x4f2910(0x2c3)];}async[_0x27a195(0x264)](_0x36dd41){const _0xecf0ee=_0x27a195,_0x32e576=this[_0xecf0ee(0x3f6)]()+_0xecf0ee(0x4a3);return(await this[_0xecf0ee(0x5a9)][_0xecf0ee(0x29c)](_0x32e576,{'body':{'requests':_0x36dd41}}))['body'][_0xecf0ee(0x2dc)];}async[_0x27a195(0x2f4)](_0x55b158){const _0x466a98=_0x27a195,_0x7a9c87=this[_0x466a98(0x3f6)]()+'/'+_0x55b158[_0x466a98(0x3d9)]+'/role',_0x5522ed=await this[_0x466a98(0x5a9)][_0x466a98(0x29c)](_0x7a9c87,{'body':_0x55b158});return{'roles':_0x5522ed[_0x466a98(0x502)][_0x466a98(0x1fd)],'actions':_0x5522ed[_0x466a98(0x502)]['actions']};}async[_0x27a195(0x213)](_0x42dc29){const _0x6cff70=_0x27a195,_0x7f44c7=this[_0x6cff70(0x3f6)]()+_0x6cff70(0x4af);await this[_0x6cff70(0x5a9)][_0x6cff70(0x4a1)](_0x7f44c7,{'params':{'collaboratorID':_0x42dc29[_0x6cff70(0x584)],'objectID':_0x42dc29[_0x6cff70(0x25b)],'unitID':_0x42dc29[_0x6cff70(0x43c)]}});}async[_0x27a195(0x424)](_0x2e52c){const _0x2ce3bc=_0x27a195,_0x1a8722=this['_getAPIPrefixPath']()+_0x2ce3bc(0x4af);await this[_0x2ce3bc(0x5a9)]['patch'](_0x1a8722,{'body':_0x2e52c});}async[_0x27a195(0x446)](_0x477c98){const _0x24a3ad=_0x27a195,_0x3c886f=this['_getAPIPrefixPath']()+_0x24a3ad(0x4af);await this[_0x24a3ad(0x5a9)][_0x24a3ad(0x29c)](_0x3c886f,{'body':_0x477c98});}async[_0x27a195(0x459)](_0x5e1d2a){const _0x1c8d48=_0x27a195,_0x2eaf67=this[_0x1c8d48(0x3f6)]()+_0x1c8d48(0x4af);return(await this['_HTTPService'][_0x1c8d48(0x520)](_0x2eaf67,{'params':{'objectID':_0x5e1d2a[_0x1c8d48(0x25b)],'unitID':_0x5e1d2a[_0x1c8d48(0x43c)]}}))[_0x1c8d48(0x502)][_0x1c8d48(0x2de)];}async['putCollaborators'](_0xcb2efa){const _0x5b7352=_0x27a195,_0xb0b87d=this[_0x5b7352(0x3f6)]()+_0x5b7352(0x4af);await this[_0x5b7352(0x5a9)][_0x5b7352(0x4bc)](_0xb0b87d,{'body':_0xcb2efa});}},exports[_0x27a195(0x4e7)]=on([ut(0x0,a['Inject'](w[_0x27a195(0x275)])),ut(0x1,a[_0x27a195(0x4da)](a[_0x27a195(0x41e)]))],exports['AuthzIoHttpService']);var cn=Object[_0x27a195(0x410)],ln=Object[_0x27a195(0x219)],hn=(_0x901668,_0x1f5451,_0x187cbf,_0x5da9ec)=>{const _0x57af57=_0x27a195;for(var _0x1e7afb=_0x5da9ec>0x1?void 0x0:_0x5da9ec?ln(_0x1f5451,_0x187cbf):_0x1f5451,_0x41373d=_0x901668[_0x57af57(0x540)]-0x1,_0x1eb13b;_0x41373d>=0x0;_0x41373d--)(_0x1eb13b=_0x901668[_0x41373d])&&(_0x1e7afb=(_0x5da9ec?_0x1eb13b(_0x1f5451,_0x187cbf,_0x1e7afb):_0x1eb13b(_0x1e7afb))||_0x1e7afb);return _0x5da9ec&&_0x1e7afb&&cn(_0x1f5451,_0x187cbf,_0x1e7afb),_0x1e7afb;},_n=(_0x4fe682,_0x5163dd)=>(_0xe61cc6,_0x170adc)=>_0x5163dd(_0xe61cc6,_0x170adc,_0x4fe682);let be=class{constructor(_0x44d8b0){const _0x5b5817=_0x27a195;this[_0x5b5817(0x47a)]=_0x44d8b0,this['_initRequestHeader']();}[_0x27a195(0x5a1)](){const _0x4a2a30=_0x27a195;this[_0x4a2a30(0x47a)][_0x4a2a30(0x4db)]({'interceptor':(_0x197bae,_0xa042a8)=>{const _0x416831=_0x4a2a30,_0x36e139=_0x197bae[_0x416831(0x357)],_0x495880=Xt[_0x416831(0x527)]();return _0x495880&&_0x36e139['set'](_0x416831(0x3ba),_0x495880),_0xa042a8(_0x197bae);}});}};be=hn([_n(0x0,a[_0x27a195(0x4da)](w[_0x27a195(0x275)]))],be);var un=Object[_0x27a195(0x410)],dn=Object[_0x27a195(0x219)],Sn=(_0xc9c4cc,_0x91c7aa,_0x13a298,_0x51e1c5)=>{const _0x2bc779=_0x27a195;for(var _0x172ae9=_0x51e1c5>0x1?void 0x0:_0x51e1c5?dn(_0x91c7aa,_0x13a298):_0x91c7aa,_0x2c3128=_0xc9c4cc[_0x2bc779(0x540)]-0x1,_0x175720;_0x2c3128>=0x0;_0x2c3128--)(_0x175720=_0xc9c4cc[_0x2c3128])&&(_0x172ae9=(_0x51e1c5?_0x175720(_0x91c7aa,_0x13a298,_0x172ae9):_0x175720(_0x172ae9))||_0x172ae9);return _0x51e1c5&&_0x172ae9&&un(_0x91c7aa,_0x13a298,_0x172ae9),_0x172ae9;},xe=(_0x1bded9,_0x8c9e24)=>(_0x823356,_0x15f1c6)=>_0x8c9e24(_0x823356,_0x15f1c6,_0x1bded9);const vn=[_0x27a195(0x577),_0x27a195(0x23b),_0x27a195(0x277),'image/gif',_0x27a195(0x48e)],gn=0x5*0x400*0x400,mn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',fn=_0x27a195(0x56e),In=_0x27a195(0x267),pn=_0x27a195(0x416);exports[_0x27a195(0x3cd)]=class{constructor(_0x47c42b,_0x5971ed,_0x43ae22){const _0x51aaea=_0x27a195;u(this,_0x51aaea(0x5de),0x0),u(this,'_change$',new v['Subject']()),u(this,_0x51aaea(0x2f7),this[_0x51aaea(0x4be)]),u(this,'_imageSourceCache',new Map()),(this['_httpService']=_0x47c42b,this[_0x51aaea(0x4d6)]=_0x5971ed,this[_0x51aaea(0x4d3)]=_0x43ae22);}['setWaitCount'](_0x4fa084){const _0x55dcd5=_0x27a195;this[_0x55dcd5(0x5de)]=_0x4fa084,this['_change$']['next'](_0x4fa084);}[_0x27a195(0x509)](_0x3cd311,_0x46ae79){const _0x33c0ae=_0x27a195;if(_0x46ae79===j['ImageSourceType'][_0x33c0ae(0x440)]){const _0x289262=new Image();return _0x289262[_0x33c0ae(0x2fe)]=_0x3cd311,_0x289262;}return this[_0x33c0ae(0x2ce)][_0x33c0ae(0x520)](_0x3cd311);}[_0x27a195(0x1e8)](_0x48e423,_0x9106bd,_0x5215ec){const _0x5ae51b=_0x27a195;_0x9106bd===j['ImageSourceType'][_0x5ae51b(0x440)]||_0x5215ec==null||this['_imageSourceCache'][_0x5ae51b(0x36e)](_0x48e423,_0x5215ec);}async[_0x27a195(0x59e)](_0x207777){const _0x1bb6bb=_0x27a195;try{const _0x5054de=this['_replaceFileID'](this[_0x1bb6bb(0x3a9)](),''+_0x207777),_0x89dac3=(await this[_0x1bb6bb(0x47a)][_0x1bb6bb(0x520)](_0x5054de))[_0x1bb6bb(0x502)];if(_0x89dac3[_0x1bb6bb(0x466)]&&_0x89dac3[_0x1bb6bb(0x466)][_0x1bb6bb(0x33f)]===bt['OK']){const _0x28e0c5=new URL(_0x89dac3[_0x1bb6bb(0x4b6)],this[_0x1bb6bb(0x43e)]())['toString']();return Promise[_0x1bb6bb(0x5a7)](_0x28e0c5);}return Promise[_0x1bb6bb(0x320)](_0x89dac3['error']);}catch(_0x1228eb){return Promise[_0x1bb6bb(0x320)](_0x1228eb);}}async[_0x27a195(0x387)](_0xe56056){const _0x162f92=_0x27a195;let _0x8bd0f4='';if(!vn[_0x162f92(0x296)](_0xe56056[_0x162f92(0x44f)]))return this[_0x162f92(0x5ff)](),Promise[_0x162f92(0x320)](new Error(j[_0x162f92(0x2a7)][_0x162f92(0x35f)]));if(_0xe56056[_0x162f92(0x476)]>gn)return this['_decreaseWaiting'](),Promise['reject'](new Error(j[_0x162f92(0x2a7)][_0x162f92(0x40a)]));try{const _0x2b71d1=new FormData();_0x2b71d1[_0x162f92(0x4c8)](_0x162f92(0x297),_0xe56056);const _0x59e25e=this['_univerInstanceService'][_0x162f92(0x278)](),_0x22d7be=_0x59e25e==null?void 0x0:_0x59e25e[_0x162f92(0x2f2)]();if(!_0x22d7be)throw new Error(_0x162f92(0x436));const _0x28810b=this[_0x162f92(0x46d)]()+_0x162f92(0x4b3)+_0xe56056[_0x162f92(0x476)][_0x162f92(0x3bd)]()+'&source='+Tt[_0x162f92(0x3e0)]+_0x162f92(0x385)+encodeURIComponent(_0x22d7be),_0x1bc5bb=await(await fetch(_0x28810b,{'method':_0x162f92(0x2b4),'body':_0x2b71d1}))[_0x162f92(0x310)]();if(typeof _0x1bc5bb[_0x162f92(0x55d)]!=_0x162f92(0x2c2))return this[_0x162f92(0x5ff)](),Promise[_0x162f92(0x320)](new Error(j['ImageUploadStatusType']['ERROR_IMAGE']));_0x8bd0f4=_0x1bc5bb[_0x162f92(0x55d)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(j[_0x162f92(0x2a7)][_0x162f92(0x488)]));}return new Promise((_0x20956c,_0x1936db)=>{const _0x2a0ae5=_0x162f92,_0x18c1e3=new FileReader();_0x18c1e3[_0x2a0ae5(0x2ea)](_0xe56056),_0x18c1e3['onload']=_0x357940=>{const _0x534f90=_0x2a0ae5;var _0x18fa06;const _0x16cd9b=(_0x18fa06=_0x357940[_0x534f90(0x2dd)])==null?void 0x0:_0x18fa06[_0x534f90(0x31f)];if(_0x16cd9b==null){this['_decreaseWaiting'](),_0x1936db(new Error(j[_0x534f90(0x2a7)]['ERROR_IMAGE']));return;}const _0x40ef31=a[_0x534f90(0x3ca)]['generateRandomId'](0x6);_0x20956c({'imageId':_0x40ef31,'imageSourceType':j[_0x534f90(0x57c)][_0x534f90(0x53f)],'source':_0x8bd0f4,'base64Cache':_0x16cd9b,'status':j[_0x534f90(0x2a7)][_0x534f90(0x29b)]}),this[_0x534f90(0x5ff)]();};});}[_0x27a195(0x46d)](){const _0x120dd1=_0x27a195;var _0x3061ec,_0x2da9dc;const _0x4689ed=this[_0x120dd1(0x4d6)][_0x120dd1(0x4e9)](mn),_0x1b3b25=this['_configService']['getConfig'](L);return(_0x2da9dc=(_0x3061ec=_0x1b3b25==null?void 0x0:_0x1b3b25[_0x120dd1(0x4fb)])!=null?_0x3061ec:_0x4689ed)!=null?_0x2da9dc:fn;}[_0x27a195(0x3a9)](){const _0x5e77cb=_0x27a195;var _0x1d9024,_0x14c02f;const _0x4b683b=this[_0x5e77cb(0x4d6)]['getConfig'](In),_0x336ddf=this['_configService'][_0x5e77cb(0x4e9)](L);return(_0x14c02f=(_0x1d9024=_0x336ddf==null?void 0x0:_0x336ddf['signUrlServerUrl'])!=null?_0x1d9024:_0x4b683b)!=null?_0x14c02f:pn;}[_0x27a195(0x43e)](){const _0x45f6cd=_0x27a195;var _0x4cabb6;const _0x433fe6=this[_0x45f6cd(0x4d6)][_0x45f6cd(0x4e9)](L);return(_0x4cabb6=_0x433fe6==null?void 0x0:_0x433fe6[_0x45f6cd(0x2d3)])!=null?_0x4cabb6:location[_0x45f6cd(0x268)];}['_replaceFileID'](_0x2a52c6,_0x2cdb61){const _0x31a093=_0x27a195;return _0x2a52c6['replace'](_0x31a093(0x3a7),_0x2cdb61);}['_decreaseWaiting'](){const _0x3f714f=_0x27a195;this[_0x3f714f(0x5de)]-=0x1,this['_change$']['next'](this['_waitCount']);}},exports[_0x27a195(0x3cd)]=Sn([xe(0x0,a[_0x27a195(0x4da)](w[_0x27a195(0x275)])),xe(0x1,a[_0x27a195(0x41e)]),xe(0x2,a[_0x27a195(0x4da)](a[_0x27a195(0x48c)]))],exports[_0x27a195(0x3cd)]);var Cn=Object[_0x27a195(0x410)],En=Object[_0x27a195(0x219)],bn=(_0x328a6e,_0x73a67f,_0x28b17e,_0x2f969a)=>{const _0x308e8f=_0x27a195;for(var _0x3c6938=_0x2f969a>0x1?void 0x0:_0x2f969a?En(_0x73a67f,_0x28b17e):_0x73a67f,_0x593ae8=_0x328a6e[_0x308e8f(0x540)]-0x1,_0x28a50e;_0x593ae8>=0x0;_0x593ae8--)(_0x28a50e=_0x328a6e[_0x593ae8])&&(_0x3c6938=(_0x2f969a?_0x28a50e(_0x73a67f,_0x28b17e,_0x3c6938):_0x28a50e(_0x3c6938))||_0x3c6938);return _0x2f969a&&_0x3c6938&&Cn(_0x73a67f,_0x28b17e,_0x3c6938),_0x3c6938;},_e=(_0x36fd12,_0x1749df)=>(_0x3e8c2a,_0x417869)=>_0x1749df(_0x3e8c2a,_0x417869,_0x36fd12);let Te=class extends a['RxDisposable']{constructor(_0x5631a2,_0x14f632,_0x398770,_0xc0919a,_0x2dee79){const _0x45b923=_0x27a195;super(),this[_0x45b923(0x3cf)]=_0x5631a2,this[_0x45b923(0x4d3)]=_0x14f632,this[_0x45b923(0x4ad)]=_0x398770,this[_0x45b923(0x5bf)]=_0xc0919a,this[_0x45b923(0x37d)]=_0x2dee79,this['_initUnitPermissionChange'](),this[_0x45b923(0x52a)]();}[_0x27a195(0x52a)](){const _0x5640fb=_0x27a195,_0x316f11=async _0x2cf921=>{const _0x1d15cc=_0x3f87;(await this[_0x1d15cc(0x5bf)][_0x1d15cc(0x546)](_0x2cf921))['event$']['pipe'](E['filter'](_0x5c1765=>_0x5c1765['eventID']===_[_0x1d15cc(0x5f2)]['SHOULD_CLOSE_CONN']),E['takeUntil'](this[_0x1d15cc(0x497)]))[_0x1d15cc(0x262)](_0x46857d=>{const _0x47cfb0=_0x1d15cc,_0x4a7c11=_0x46857d,{reason:_0x57d6ad}=_0x4a7c11[_0x47cfb0(0x276)];this[_0x47cfb0(0x3cf)][_0x47cfb0(0x520)](A[_0x47cfb0(0x367)])['show']({'type':X['MessageType']['Error'],'content':this[_0x47cfb0(0x37d)]['t'](_0x47cfb0(0x5ec))+'('+_0x57d6ad+')'}),this['_permissionService'][_0x47cfb0(0x216)](new C['WorkbookEditablePermission'](_0x2cf921)['id'],!0x1),this[_0x47cfb0(0x5bf)]['closeSession'](_0x2cf921);});};v['merge'](this['_univerInstanceService'][_0x5640fb(0x53b)](a[_0x5640fb(0x562)][_0x5640fb(0x5d1)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x5640fb(0x562)][_0x5640fb(0x211)]))[_0x5640fb(0x3b2)](E[_0x5640fb(0x2ae)](_0x3473eb=>_0x3473eb[_0x5640fb(0x2f2)]()),E[_0x5640fb(0x564)](_0x3c8d61=>!a[_0x5640fb(0x542)](_0x3c8d61)),E['takeUntil'](this['dispose$']))[_0x5640fb(0x262)](_0x28b210=>{_0x316f11(_0x28b210);});}['_initUnitPermissionChange'](){const _0x542c92=_0x27a195,_0x9b5f3=async _0x22bea2=>{const _0x504e11=_0x3f87;(await this['_collaborationSessionService']['requireSession'](_0x22bea2))[_0x504e11(0x483)][_0x504e11(0x3b2)](E['filter'](_0x136024=>_0x136024[_0x504e11(0x5e3)]===_[_0x504e11(0x5f2)]['UPDATE_PERMISSION_OBJ']),E['takeUntil'](this[_0x504e11(0x497)]))[_0x504e11(0x262)](_0x35800b=>{const _0x5b8c15=_0x504e11,_0x1d2cb1=_0x35800b,{objectId:_0x3cf8c2}=_0x1d2cb1['data'],_0x192882=this[_0x5b8c15(0x3cf)][_0x5b8c15(0x520)](te[_0x5b8c15(0x1da)]);_0x3cf8c2===_0x22bea2?_0x192882['initWorkbookPermissionChange'](_0x22bea2):_0x192882[_0x5b8c15(0x2a9)](_0x22bea2,_0x3cf8c2);});};v[_0x542c92(0x30b)](this[_0x542c92(0x4d3)][_0x542c92(0x53b)](a[_0x542c92(0x562)]['UNIVER_SHEET']),this[_0x542c92(0x4d3)][_0x542c92(0x53b)](a[_0x542c92(0x562)][_0x542c92(0x211)]))[_0x542c92(0x3b2)](E[_0x542c92(0x2ae)](_0x2bc4f4=>_0x2bc4f4['getUnitId']()),E['filter'](_0x26a8b8=>!a[_0x542c92(0x542)](_0x26a8b8)),E[_0x542c92(0x33e)](this['dispose$']))[_0x542c92(0x262)](_0x106b92=>{_0x9b5f3(_0x106b92);});}};Te=bn([_e(0x0,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),_e(0x1,a[_0x27a195(0x48c)]),_e(0x2,a[_0x27a195(0x260)]),_e(0x3,a[_0x27a195(0x4da)](exports[_0x27a195(0x445)])),_e(0x4,a[_0x27a195(0x4da)](a[_0x27a195(0x58f)]))],Te);var Tn=Object[_0x27a195(0x410)],Rn=Object[_0x27a195(0x219)],On=(_0x2f9ec5,_0x2d54d7,_0x282c35,_0x4014f9)=>{const _0x51399f=_0x27a195;for(var _0x4e808a=_0x4014f9>0x1?void 0x0:_0x4014f9?Rn(_0x2d54d7,_0x282c35):_0x2d54d7,_0x137f97=_0x2f9ec5[_0x51399f(0x540)]-0x1,_0x3f6f8b;_0x137f97>=0x0;_0x137f97--)(_0x3f6f8b=_0x2f9ec5[_0x137f97])&&(_0x4e808a=(_0x4014f9?_0x3f6f8b(_0x2d54d7,_0x282c35,_0x4e808a):_0x3f6f8b(_0x4e808a))||_0x4e808a);return _0x4014f9&&_0x4e808a&&Tn(_0x2d54d7,_0x282c35,_0x4e808a),_0x4e808a;},dt=(_0x24e0a7,_0x312523)=>(_0x323b48,_0x2afbc2)=>_0x312523(_0x323b48,_0x2afbc2,_0x24e0a7);exports['SnapshotServerOverHTTPService']=class{constructor(_0x583335,_0x5b83c9){const _0x21fb4b=_0x27a195;this['_configService']=_0x583335,this[_0x21fb4b(0x47a)]=_0x5b83c9;}async[_0x27a195(0x3af)](_0x23df69,_0xe23a33){const _0x2f5f20=_0x27a195;var _0x1d74a5;const {unitID:_0x36a429,type:_0x493f17,revision:_0x4a484c=0x0}=_0xe23a33,_0x35b0d1=this[_0x2f5f20(0x549)]()+'/'+_0x493f17+_0x2f5f20(0x5b1)+_0x36a429+_0x2f5f20(0x567)+_0x4a484c,_0x441d27=(await this[_0x2f5f20(0x47a)][_0x2f5f20(0x520)](_0x35b0d1))['body'],_0x483844=(_0x1d74a5=_0x441d27[_0x2f5f20(0x348)])==null?void 0x0:_0x1d74a5['workbook'];if(_0x483844){const _0x21226d=_0x483844==null?void 0x0:_0x483844[_0x2f5f20(0x597)],_0xb6e572=_['textEncoder']['encode'](_[_0x2f5f20(0x1f9)](_0x21226d));_0x483844[_0x2f5f20(0x597)]=_0xb6e572,Object[_0x2f5f20(0x304)](_0x483844[_0x2f5f20(0x50b)])[_0x2f5f20(0x481)](([,_0x29a711])=>{const _0x185d3c=_0x2f5f20,_0x2f4532=_0x29a711[_0x185d3c(0x597)],_0x384132=_[_0x185d3c(0x5be)]['encode'](_[_0x185d3c(0x1f9)](_0x2f4532));_0x29a711['originalMeta']=_0x384132;});}return _0x441d27;}async[_0x27a195(0x351)](_0x15c599,_0x387dbd){const _0x147682=_0x27a195,{unitID:_0x4709fc,type:_0x1d5bdb,blockID:_0x3aebd4}=_0x387dbd,_0x2d34f9=this[_0x147682(0x449)]()+'/'+_0x1d5bdb+_0x147682(0x5b1)+_0x4709fc+_0x147682(0x504)+_0x3aebd4;return(await this[_0x147682(0x47a)][_0x147682(0x520)](_0x2d34f9))[_0x147682(0x502)];}async['getDeserializedSheetBlock'](_0x5c1635,_0x43827c){const _0x565337=_0x27a195,{unitID:_0x33dec6,type:_0x404977,blockID:_0x5be300}=_0x43827c,_0xce5546=this[_0x565337(0x449)]()+_0x565337(0x504)+_0x404977+'/unit/'+_0x33dec6+_0x565337(0x504)+_0x5be300;return(await this['_httpService']['get'](_0xce5546))[_0x565337(0x502)];}async[_0x27a195(0x27e)](_0x5238e8,_0x41bd11){const _0x3d6b84=_0x27a195,{unitID:_0x28d36c,type:_0x72222b,from:_0x21ff04,to:_0x32faa2}=_0x41bd11,_0x5d64b1=this[_0x3d6b84(0x449)]()+'/'+_0x72222b+_0x3d6b84(0x5b1)+_0x28d36c+'/fetchmissing?from='+_0x21ff04+_0x3d6b84(0x22f)+_0x32faa2;return(await this[_0x3d6b84(0x47a)][_0x3d6b84(0x520)](_0x5d64b1))['body'];}[_0x27a195(0x549)](){const _0x69254e=_0x27a195;var _0x5048c7;return(_0x5048c7=this['_configService']['getConfig'](vt))!=null?_0x5048c7:this[_0x69254e(0x449)]();}[_0x27a195(0x449)](){const _0x14b238=_0x27a195;var _0x3f4414,_0xb8ff64;const _0x112c80=this[_0x14b238(0x4d6)][_0x14b238(0x4e9)](St),_0x42acc8=this[_0x14b238(0x4d6)][_0x14b238(0x4e9)](L);return(_0xb8ff64=(_0x3f4414=_0x42acc8==null?void 0x0:_0x42acc8[_0x14b238(0x405)])!=null?_0x3f4414:_0x112c80)!=null?_0xb8ff64:qt;}async[_0x27a195(0x283)](_0x33e579,_0x1499a4){const _0x206b01=_0x27a195,_0x14abbe='/universer-api/snapshot/'+_0x1499a4[_0x206b01(0x44f)]+_0x206b01(0x5b1)+_0x1499a4['unitID']+_0x206b01(0x32e);return(await this[_0x206b01(0x47a)][_0x206b01(0x520)](_0x14abbe,{'params':{'resourceId':JSON[_0x206b01(0x2c4)](_0x1499a4[_0x206b01(0x39b)])}}))[_0x206b01(0x502)];}['saveSnapshot'](){const _0x27e6c5=_0x27a195;throw new Error(_0x27e6c5(0x282));}[_0x27a195(0x55c)](){const _0x2dc113=_0x27a195;throw new Error(_0x2dc113(0x282));}[_0x27a195(0x337)](){const _0x337a65=_0x27a195;throw new Error(_0x337a65(0x282));}[_0x27a195(0x386)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x27a195(0x443)](){const _0x49199d=_0x27a195;throw new Error(_0x49199d(0x282));}},exports[_0x27a195(0x5f4)]=On([dt(0x0,a[_0x27a195(0x41e)]),dt(0x1,a[_0x27a195(0x4da)](w['HTTPService']))],exports[_0x27a195(0x5f4)]);var Dn=Object[_0x27a195(0x410)],yn=Object[_0x27a195(0x219)],Un=(_0x1fb2a8,_0x3e96eb,_0x58144d,_0x1881f0)=>{const _0x26df93=_0x27a195;for(var _0x2c462f=_0x1881f0>0x1?void 0x0:_0x1881f0?yn(_0x3e96eb,_0x58144d):_0x3e96eb,_0x305a88=_0x1fb2a8[_0x26df93(0x540)]-0x1,_0x1d1225;_0x305a88>=0x0;_0x305a88--)(_0x1d1225=_0x1fb2a8[_0x305a88])&&(_0x2c462f=(_0x1881f0?_0x1d1225(_0x3e96eb,_0x58144d,_0x2c462f):_0x1d1225(_0x2c462f))||_0x2c462f);return _0x1881f0&&_0x2c462f&&Dn(_0x3e96eb,_0x58144d,_0x2c462f),_0x2c462f;},ue=(_0x4929e1,_0x282a3b)=>(_0x3dcea8,_0x28f3ca)=>_0x282a3b(_0x3dcea8,_0x28f3ca,_0x4929e1);let Fe=class extends a['LocalUndoRedoService']{constructor(_0x593a50,_0x48b0ea,_0x2d9a6c,_0x2f8e08,_0x118e96){const _0x4bbcaa=_0x27a195;super(_0x593a50,_0x48b0ea,_0x2d9a6c),this[_0x4bbcaa(0x547)]=_0x2f8e08,this[_0x4bbcaa(0x369)]=_0x118e96;}[_0x27a195(0x3fc)](_0x231619,_0x263e5e){const _0x28db2e=_0x27a195,_0x25642e=this['_getUndoStack'](_0x231619);if(_0x25642e)try{const _0x5e2cb4=this['_transformStack'](_0x25642e,_0x263e5e);this[_0x28db2e(0x395)](_0x231619,_0x5e2cb4);}catch(_0x2a4024){this[_0x28db2e(0x369)][_0x28db2e(0x466)](_0x28db2e(0x5e6),_0x2a4024),this[_0x28db2e(0x418)](_0x231619);}const _0x9a3c77=this['_getRedoStack'](_0x231619);if(_0x9a3c77)try{const _0x3037b1=this[_0x28db2e(0x50d)](_0x9a3c77,_0x263e5e);this[_0x28db2e(0x4ea)](_0x231619,_0x3037b1);}catch(_0x3ac274){this['_logService'][_0x28db2e(0x466)](_0x3ac274),this['_clearRedo'](_0x231619);}}[_0x27a195(0x418)](_0x375ba9){const _0x9bf183=_0x27a195,_0xf241b3=this[_0x9bf183(0x36d)](_0x375ba9);_0xf241b3&&(_0xf241b3[_0x9bf183(0x540)]=0x0,this['_updateStatus']());}[_0x27a195(0x288)](_0x3d38c1){const _0x3f1048=_0x27a195,_0x19f9b3=this[_0x3f1048(0x380)](_0x3d38c1);_0x19f9b3&&(_0x19f9b3[_0x3f1048(0x540)]=0x0,this[_0x3f1048(0x274)]());}[_0x27a195(0x395)](_0x47f958,_0x211425){const _0x5e8e0c=_0x27a195;this[_0x5e8e0c(0x398)]['set'](_0x47f958,_0x211425),this[_0x5e8e0c(0x274)]();}[_0x27a195(0x4ea)](_0x2e9300,_0x434f76){const _0x32b6e4=_0x27a195;this[_0x32b6e4(0x60b)]['set'](_0x2e9300,_0x434f76),this[_0x32b6e4(0x274)]();}[_0x27a195(0x50d)](_0x43911b,_0x1b86b9){const _0x3ee8ee=_0x27a195,_0x4a53b6=[];let _0x2c0efb=_0x1b86b9,_0x3eaa7c=_0x1b86b9;for(let _0x4aa85c=_0x43911b[_0x3ee8ee(0x540)]-0x1;_0x4aa85c>=0x0;_0x4aa85c--){const {unitID:_0x4d0079,undoMutations:_0xc9cd42,redoMutations:_0x56d519}=_0x43911b[_0x4aa85c],_0x5a70d7=this[_0x3ee8ee(0x547)][_0x3ee8ee(0x3e4)](_0x2c0efb,_0xc9cd42),_0x2b2661=this[_0x3ee8ee(0x547)][_0x3ee8ee(0x3e4)](_0x3eaa7c,_0x56d519);if(_['isTransformMutationsWithChangesetFailure'](_0x5a70d7)||_[_0x3ee8ee(0x5b7)](_0x2b2661)){this[_0x3ee8ee(0x369)]['error'](_0x3ee8ee(0x5e6),_0x3ee8ee(0x2e0),_0x5a70d7,_0x2b2661);break;}_0x2c0efb=_0x5a70d7['c1Prime'],_0x3eaa7c=_0x2b2661[_0x3ee8ee(0x3da)],_0x4a53b6[_0x3ee8ee(0x24b)]({'unitID':_0x4d0079,'undoMutations':_0x5a70d7['m2Prime'],'redoMutations':_0x2b2661['m2Prime']});}return _0x4a53b6[_0x3ee8ee(0x5b6)]();}};Fe=Un([ue(0x0,a[_0x27a195(0x48c)]),ue(0x1,a[_0x27a195(0x3e2)]),ue(0x2,a['IContextService']),ue(0x3,_[_0x27a195(0x212)]),ue(0x4,a[_0x27a195(0x246)])],Fe);class $t extends a[_0x27a195(0x47c)]{constructor(){const _0x4ee2e5=_0x27a195;super(),u(this,'urlChange$'),this[_0x4ee2e5(0x280)]=v['fromEvent'](window,'popstate')[_0x4ee2e5(0x3b2)](v['takeUntil'](this['dispose$']),v[_0x4ee2e5(0x3df)](0x1),v[_0x4ee2e5(0x31d)](void 0x0));}[_0x27a195(0x3d7)](_0x39f112,_0x3ea170,_0x5128a8=!0x1){const _0x533b8d=_0x27a195,_0x3cd283=new URL(window['location'][_0x533b8d(0x1dd)]);_0x3cd283[_0x533b8d(0x1ea)][_0x533b8d(0x36e)](_0x39f112,_0x3ea170),_0x5128a8?window[_0x533b8d(0x5c2)][_0x533b8d(0x338)]('','',_0x3cd283[_0x533b8d(0x3bd)]()):window[_0x533b8d(0x5c2)][_0x533b8d(0x2a6)]('','',_0x3cd283[_0x533b8d(0x3bd)]());}[_0x27a195(0x5f0)](_0x396933,_0x549aca=!0x1){const _0x484b41=_0x27a195,_0x515964=new URL(window[_0x484b41(0x2e6)][_0x484b41(0x1dd)]);_0x515964[_0x484b41(0x1ea)][_0x484b41(0x4a1)](_0x396933),_0x549aca?window[_0x484b41(0x5c2)][_0x484b41(0x338)]('','',_0x515964[_0x484b41(0x3bd)]()):window[_0x484b41(0x5c2)][_0x484b41(0x2a6)]('','',_0x515964[_0x484b41(0x3bd)]());}[_0x27a195(0x43a)](_0x24af60){const _0x40d265=_0x27a195;var _0x12bd75;return(_0x12bd75=new URL(window[_0x40d265(0x2e6)]['href'])['searchParams'][_0x40d265(0x520)](_0x24af60))!=null?_0x12bd75:void 0x0;}}var Ht=Object['defineProperty'],Pn=Object['getOwnPropertyDescriptor'],wn=(_0x1bc699,_0x5b2aab,_0x188bcd)=>_0x5b2aab in _0x1bc699?Ht(_0x1bc699,_0x5b2aab,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x188bcd}):_0x1bc699[_0x5b2aab]=_0x188bcd,Nn=(_0x121ff8,_0xaa36d4,_0x229dd2,_0x5f47e2)=>{const _0x222126=_0x27a195;for(var _0x26d79f=_0x5f47e2>0x1?void 0x0:_0x5f47e2?Pn(_0xaa36d4,_0x229dd2):_0xaa36d4,_0x347331=_0x121ff8[_0x222126(0x540)]-0x1,_0x5541ce;_0x347331>=0x0;_0x347331--)(_0x5541ce=_0x121ff8[_0x347331])&&(_0x26d79f=(_0x5f47e2?_0x5541ce(_0xaa36d4,_0x229dd2,_0x26d79f):_0x5541ce(_0x26d79f))||_0x26d79f);return _0x5f47e2&&_0x26d79f&&Ht(_0xaa36d4,_0x229dd2,_0x26d79f),_0x26d79f;},me=(_0x254d8b,_0x321591)=>(_0x22c20e,_0x56d5ca)=>_0x321591(_0x22c20e,_0x56d5ca,_0x254d8b),Mn=(_0xdc8738,_0x1bf4df,_0x3f1f82)=>wn(_0xdc8738,_0x1bf4df+'',_0x3f1f82);const An=_0x27a195(0x36a);exports[_0x27a195(0x300)]=class extends a[_0x27a195(0x3db)]{constructor(_0x54f097=rs,_0x51df83,_0x3298b8,_0x2df6dc,_0x2fcdb7){const _0x4fbe28=_0x27a195;super(),this[_0x4fbe28(0x58c)]=_0x54f097,this['_logService']=_0x51df83,this[_0x4fbe28(0x559)]=_0x3298b8,this[_0x4fbe28(0x3cf)]=_0x2df6dc,this[_0x4fbe28(0x4d6)]=_0x2fcdb7;const {..._0x5a2420}=this[_0x4fbe28(0x58c)];this[_0x4fbe28(0x4d6)][_0x4fbe28(0x272)](L,_0x5a2420);}[_0x27a195(0x55f)](){const _0x4cb955=_0x27a195;this[_0x4cb955(0x36f)](),a[_0x4cb955(0x508)](this['_injector'],[[ne],[exports[_0x4cb955(0x353)]],[Te]]);}[_0x27a195(0x491)](){const _0x50c366=_0x27a195;a[_0x50c366(0x508)](this['_injector'],[[Ce]]);}[_0x27a195(0x5b0)](){const _0xbe8f1=_0x27a195;this[_0xbe8f1(0x460)]();}[_0x27a195(0x36f)](){const _0x35f272=_0x27a195;var _0x571214,_0x6d4257,_0x2ccb03,_0x24221b;this[_0x35f272(0x3cf)]['has'](a[_0x35f272(0x36b)])&&this[_0x35f272(0x369)]['error'](_0x35f272(0x539),_0x35f272(0x2d6));let _0x497163=[[a[_0x35f272(0x36b)],{'useClass':Fe}],[exports[_0x35f272(0x445)]],[Je],[w[_0x35f272(0x275)]],[Qe,{'useClass':$t}],[q],[exports[_0x35f272(0x2bc)]],[w['WebSocketService']],[Ie],[pe],[fe],[qe],[Ee],[be],[Xe],[Te],[Ke,{'useClass':(_0x6d4257=(_0x571214=this[_0x35f272(0x58c)])==null?void 0x0:_0x571214[_0x35f272(0x317)])!=null?_0x6d4257:exports['CollaborationSocketService']}],[w[_0x35f272(0x321)],{'useClass':w[_0x35f272(0x5b5)]}],[_[_0x35f272(0x3c3)],{'useClass':exports[_0x35f272(0x5f4)]}],[a[_0x35f272(0x451)],{'useClass':exports[_0x35f272(0x4e7)]}],[j[_0x35f272(0x5d8)],{'useClass':exports[_0x35f272(0x3cd)]}],[exports[_0x35f272(0x52c)]],[exports[_0x35f272(0x353)]],[exports[_0x35f272(0x500)]],[Ce],[ne]];(_0x2ccb03=this[_0x35f272(0x58c)])!=null&&_0x2ccb03['enableSingleActiveInstanceLock']&&_0x497163[_0x35f272(0x24b)]([Re,{'useClass':$s}]),_0x497163=a['mergeOverrideWithDependencies'](_0x497163,(_0x24221b=this['_config'])==null?void 0x0:_0x24221b[_0x35f272(0x3d2)]),_0x497163[_0x35f272(0x481)](_0x25d01b=>this[_0x35f272(0x3cf)][_0x35f272(0x4b5)](_0x25d01b)),this[_0x35f272(0x47b)]();}[_0x27a195(0x460)](){const _0x44a8f9=_0x27a195;this[_0x44a8f9(0x598)](this['_renderManagerService'][_0x44a8f9(0x319)](a['UniverInstanceType']['UNIVER_DOC'],[Ve])),this[_0x44a8f9(0x598)](this[_0x44a8f9(0x559)][_0x44a8f9(0x319)](a[_0x44a8f9(0x562)][_0x44a8f9(0x5d1)],[We]));}['_initModules'](){const _0x7e30b=_0x27a195;var _0xaf93a9,_0x4cf01e;this[_0x7e30b(0x3cf)][_0x7e30b(0x520)](w[_0x7e30b(0x275)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':w[_0x7e30b(0x20d)]({'maxParallel':0x6})}),this[_0x7e30b(0x3cf)]['get'](be),(_0xaf93a9=this[_0x7e30b(0x58c)])!=null&&_0xaf93a9['enableOfflineEditing']||this[_0x7e30b(0x3cf)][_0x7e30b(0x520)](exports[_0x7e30b(0x2bc)])[_0x7e30b(0x474)](),(_0x4cf01e=this['_config'])!=null&&_0x4cf01e[_0x7e30b(0x5fb)]&&this['_injector'][_0x7e30b(0x520)](Ee),this['_injector'][_0x7e30b(0x520)](exports['CollaborationController']),this[_0x7e30b(0x3cf)][_0x7e30b(0x3a8)](exports['DesktopCollaborationStatusDisplayController'])&&this['_injector'][_0x7e30b(0x520)](exports[_0x7e30b(0x500)]);}},Mn(exports['UniverCollaborationClientPlugin'],_0x27a195(0x432),An),exports[_0x27a195(0x300)]=Nn([a[_0x27a195(0x599)](_[_0x27a195(0x4d8)]),me(0x1,a['ILogService']),me(0x2,O[_0x27a195(0x2cf)]),me(0x3,a[_0x27a195(0x4da)](a[_0x27a195(0x4f5)])),me(0x4,a['IConfigService'])],exports[_0x27a195(0x300)]),exports['AUTHZ_URL_KEY']=jt,exports[_0x27a195(0x535)]=Ct,exports[_0x27a195(0x56b)]=gt,exports[_0x27a195(0x343)]=U,exports[_0x27a195(0x575)]=Lt,exports[_0x27a195(0x32d)]=Xe,exports['HEARTBEAT_INTERVAL_KEY']=mt,exports[_0x27a195(0x287)]=Ge,exports[_0x27a195(0x40c)]=Ke,exports[_0x27a195(0x5fd)]=Qe,exports[_0x27a195(0x45c)]=pt,exports[_0x27a195(0x5c9)]=Et,exports[_0x27a195(0x5eb)]=It,exports[_0x27a195(0x389)]=zt,exports[_0x27a195(0x397)]=St,exports[_0x27a195(0x2a5)]=vt,exports['SessionStatus']=H,exports[_0x27a195(0x271)]=Pt,exports[_0x27a195(0x511)]=$t,exports['deserializeToCombResponse']=Rt,exports['serializeCombRequest']=Ot;