@univerjs-pro/collaboration-client 0.4.1-nightly.202410241606 → 0.4.1-nightly.202410261605
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 +1 -1
- package/lib/es/index.js +1 -1
- package/lib/types/index.d.ts +1 -0
- package/lib/types/services/member/member.service.d.ts +39 -0
- package/lib/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x3cc0f6=_0x10ac;(function(_0x4ea655,_0x21108a){const _0x227ef2=_0x10ac,_0x4a3bc9=_0x4ea655();while(!![]){try{const _0xac3d3f=-parseInt(_0x227ef2(0x5df))/0x1+-parseInt(_0x227ef2(0x4c6))/0x2+-parseInt(_0x227ef2(0x222))/0x3*(-parseInt(_0x227ef2(0x41a))/0x4)+parseInt(_0x227ef2(0x53f))/0x5+-parseInt(_0x227ef2(0x205))/0x6*(-parseInt(_0x227ef2(0x5ae))/0x7)+parseInt(_0x227ef2(0x231))/0x8+-parseInt(_0x227ef2(0x4bd))/0x9;if(_0xac3d3f===_0x21108a)break;else _0x4a3bc9['push'](_0x4a3bc9['shift']());}catch(_0x315ba7){_0x4a3bc9['push'](_0x4a3bc9['shift']());}}}(_0x48f6,0x5c5ef));var Yt=Object[_0x3cc0f6(0x1c6)],Kt=(_0x2dc60b,_0x6ca6d6,_0x425e5b)=>_0x6ca6d6 in _0x2dc60b?Yt(_0x2dc60b,_0x6ca6d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425e5b}):_0x2dc60b[_0x6ca6d6]=_0x425e5b,u=(_0x10b12c,_0x161ac2,_0x525c70)=>Kt(_0x10b12c,typeof _0x161ac2!=_0x3cc0f6(0x269)?_0x161ac2+'':_0x161ac2,_0x525c70);Object[_0x3cc0f6(0x1c6)](exports,Symbol[_0x3cc0f6(0x27f)],{'value':_0x3cc0f6(0x2a5)});const a=require(_0x3cc0f6(0x271)),v=require(_0x3cc0f6(0x386)),E=require(_0x3cc0f6(0x2fa)),J=require(_0x3cc0f6(0x2a2)),A=require(_0x3cc0f6(0x334)),U=require(_0x3cc0f6(0x371)),_=require('@univerjs-pro/collaboration'),Xt=require(_0x3cc0f6(0x265)),N=require(_0x3cc0f6(0x59e)),C=require('@univerjs/sheets'),O=require(_0x3cc0f6(0x404)),re=require(_0x3cc0f6(0x1c2)),j=require('@univerjs/drawing'),et=require(_0x3cc0f6(0x461)),ne=require(_0x3cc0f6(0x24b)),y=require(_0x3cc0f6(0x4a8)),qt=require(_0x3cc0f6(0x2e4)),zt=require('@univerjs-pro/license'),St=_0x3cc0f6(0x2c2),Jt='/universer-api/snapshot',vt=_0x3cc0f6(0x327),Zt=_0x3cc0f6(0x475),Qt=0x7d0,mt=_0x3cc0f6(0x4ca),es=_0x3cc0f6(0x2ec),gt='HEARTBEAT_INTERVAL',ts=0x7530,Ge=_0x3cc0f6(0x3d1),ft=0x4e20,ss=0x4e20,It=_0x3cc0f6(0x28d),is=0x3,pt='LOCAL_CACHE_INTERVAL',ns=0x3e8,Ct='COLLAB_SUBMIT_CHANGESET_URL',rs=_0x3cc0f6(0x5a0),Et='LOGIN_URL_KEY',os=_0x3cc0f6(0x37c);var bt=(_0x4a3f09=>(_0x4a3f09[_0x4a3f09['UNDEFINED']=0x0]='UNDEFINED',_0x4a3f09[_0x4a3f09['OK']=0x1]='OK',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x360)]=0x2]=_0x3cc0f6(0x360),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x1f7)]=0x3]=_0x3cc0f6(0x1f7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x5ab)]=0x4]=_0x3cc0f6(0x5ab),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x34e)]=0x5]=_0x3cc0f6(0x34e),_0x4a3f09[_0x4a3f09['ALREADY_EXISTS']=0x6]='ALREADY_EXISTS',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x54b)]=0x7]=_0x3cc0f6(0x54b),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x213)]=0x8]=_0x3cc0f6(0x213),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x1cc)]=0x9]='COMPLETION_FINISHED',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x278)]=0x1389]=_0x3cc0f6(0x278),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x291)]=0x1771]=_0x3cc0f6(0x291),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x558)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x392)]=0x1773]=_0x3cc0f6(0x392),_0x4a3f09[_0x4a3f09['APPLY_REJECT']=0x1b59]=_0x3cc0f6(0x4c7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x441)]=0x1b5a]=_0x3cc0f6(0x441),_0x4a3f09[_0x4a3f09['APPLY_REVISION_CONFILICT']=0x1b5b]='APPLY_REVISION_CONFILICT',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x549)]=0x1b5c]=_0x3cc0f6(0x549),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x30a)]=0x1b5d]=_0x3cc0f6(0x30a),_0x4a3f09[_0x4a3f09['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x3cc0f6(0x22d),_0x4a3f09[_0x4a3f09['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3cc0f6(0x365),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x53d)]=0x232a]=_0x3cc0f6(0x53d),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x2ee)]=0x232b]=_0x3cc0f6(0x2ee),_0x4a3f09[_0x4a3f09['LICENSE_EXPORT_SIZE_EXCEEDED']=0x232c]=_0x3cc0f6(0x453),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x47b)]=0x232d]=_0x3cc0f6(0x47b),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x326)]=0x2711]=_0x3cc0f6(0x326),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x2a7)]=0x2712]=_0x3cc0f6(0x2a7),_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x37f)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x4a3f09[_0x4a3f09['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x4a3f09[_0x4a3f09[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x4a3f09))(bt||{}),H=(_0x560814=>(_0x560814[_0x560814[_0x3cc0f6(0x258)]=0x0]=_0x3cc0f6(0x258),_0x560814[_0x560814[_0x3cc0f6(0x3c6)]=0x1]=_0x3cc0f6(0x3c6),_0x560814[_0x560814[_0x3cc0f6(0x336)]=0x2]=_0x3cc0f6(0x336),_0x560814[_0x560814[_0x3cc0f6(0x477)]=0x3]=_0x3cc0f6(0x477),_0x560814[_0x560814[_0x3cc0f6(0x37e)]=0x4]=_0x3cc0f6(0x37e),_0x560814[_0x560814[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x560814))(H||{}),b=(_0x2da020=>(_0x2da020[_0x2da020[_0x3cc0f6(0x4ce)]=0x0]=_0x3cc0f6(0x4ce),_0x2da020[_0x2da020[_0x3cc0f6(0x491)]=0x1]='HELLO',_0x2da020[_0x2da020[_0x3cc0f6(0x516)]=0x2]=_0x3cc0f6(0x516),_0x2da020[_0x2da020[_0x3cc0f6(0x409)]=0x3]=_0x3cc0f6(0x409),_0x2da020[_0x2da020['INGEST']=0x4]=_0x3cc0f6(0x3ab),_0x2da020[_0x2da020['HEARTBEAT']=0x5]=_0x3cc0f6(0x3e2),_0x2da020[_0x2da020[_0x3cc0f6(0x515)]=0x6]='RECV',_0x2da020[_0x2da020[_0x3cc0f6(0x505)]=-0x1]='UNRECOGNIZED',_0x2da020))(b||{}),Ye=(_0x13f139=>(_0x13f139[_0x13f139['UNKNOWN_CODE']=0x0]=_0x3cc0f6(0x4fb),_0x13f139[_0x13f139['OK']=0x1]='OK',_0x13f139[_0x13f139['FAIL']=0x2]=_0x3cc0f6(0x499),_0x13f139[_0x13f139[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x13f139))(Ye||{}),Tt=(_0x4a68ad=>(_0x4a68ad[_0x4a68ad['Undefined']=0x0]='Undefined',_0x4a68ad[_0x4a68ad['HttpImport']=0x1]='HttpImport',_0x4a68ad[_0x4a68ad[_0x3cc0f6(0x307)]=0x2]='HttpExport',_0x4a68ad[_0x4a68ad['UnitEmbedded']=0x3]=_0x3cc0f6(0x43c),_0x4a68ad[_0x4a68ad['UnitSnapshot']=0x4]=_0x3cc0f6(0x398),_0x4a68ad[_0x4a68ad[_0x3cc0f6(0x505)]=-0x1]=_0x3cc0f6(0x505),_0x4a68ad))(Tt||{});const $=_0x3cc0f6(0x30b),as={};function Rt(_0xac5a74){const _0x53ca49=_0x3cc0f6;var _0x34b95e,_0x219445,_0x170154,_0x360f6a,_0x2583ce;const _0x517040=_0xac5a74[_0x53ca49(0x35a)],_0xd98a66=JSON[_0x53ca49(0x5b4)](_0x517040);switch(_0xd98a66['cmd']){case b[_0x53ca49(0x3e2)]:case b[_0x53ca49(0x491)]:{const _0x7be9ed=_0xd98a66[_0x53ca49(0x5b9)];return{..._0xd98a66,'data':_0x7be9ed,'cmd':_0xd98a66['cmd']};}case b[_0x53ca49(0x516)]:{const _0x3769f3=_0xd98a66['joinRsp'];return{..._0xd98a66,'data':_0x3769f3,'cmd':_0xd98a66[_0x53ca49(0x1e5)]};}case b[_0x53ca49(0x515)]:{const _0x321f53=_0xd98a66[_0x53ca49(0x3a3)];switch(_0x321f53[_0x53ca49(0x21b)]){case _['CollaborationEvent'][_0x53ca49(0x5ac)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x34b95e=_0x321f53[_0x53ca49(0x538)])==null?void 0x0:_0x34b95e['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x29c)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x219445=_0x321f53['csAckEvent'])==null?void 0x0:_0x219445['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x3aa)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x170154=_0x321f53['newCsEvent'])==null?void 0x0:_0x170154['cs']},'cmd':_0xd98a66['cmd']};case _[_0x53ca49(0x400)][_0x53ca49(0x43a)]:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x360f6a=_0x321f53[_0x53ca49(0x594)])==null?void 0x0:_0x360f6a['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['CHANGESET_SHOULD_RETRY']:return{..._0xd98a66,'data':{..._0x321f53,'data':(_0x2583ce=_0x321f53[_0x53ca49(0x3f8)])==null?void 0x0:_0x2583ce['cs']},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent'][_0x53ca49(0x284)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x41f)]},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x3a0)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53['joinEvent']},'cmd':_0xd98a66['cmd']};case _[_0x53ca49(0x400)][_0x53ca49(0x5cf)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x2a1)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent'][_0x53ca49(0x2e3)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x59f)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)][_0x53ca49(0x542)]:case _[_0x53ca49(0x400)][_0x53ca49(0x349)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x22b)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x59f)]},'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['MSG_FOR_ERROR']:return{..._0xd98a66,'data':_0x321f53,'cmd':_0xd98a66[_0x53ca49(0x1e5)]};case _[_0x53ca49(0x400)]['COMMENT_UPDATE']:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x4c1)]},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x1d8)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53['updatePermissionObjEvent']},'cmd':_0xd98a66['cmd']};case _['CollaborationEvent'][_0x53ca49(0x2f5)]:return{..._0xd98a66,'data':{..._0x321f53,'data':_0x321f53[_0x53ca49(0x528)]},'cmd':_0xd98a66['cmd']};default:return _0xd98a66;}}default:return _0xd98a66;}}function Ot(_0x29414b){const _0x18a975=_0x3cc0f6;switch(_0x29414b[_0x18a975(0x1e5)]){case b[_0x18a975(0x3e2)]:case b['HELLO']:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b['cmd'],'routeKey':_0x29414b[_0x18a975(0x242)]});case b['INGEST']:{let _0x7c91d4;switch(_0x29414b['data'][_0x18a975(0x21b)]){case _[_0x18a975(0x400)][_0x18a975(0x284)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)]['UPDATE_CURSOR'],'updateCursorEvent':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)]['USERS_LEAVE']:{_0x7c91d4={'eventID':_['CollaborationEvent'][_0x18a975(0x5cf)],'leaveEvent':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x3a0)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x3a0)],'joinEvent':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)]['LIVESHARE_NEW_HOST']:{_0x7c91d4={'eventID':_[_0x18a975(0x400)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x29414b['data'][_0x18a975(0x35a)]};break;}case _['CollaborationEvent'][_0x18a975(0x349)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x349)],'liveShareOperation':_0x29414b['data'][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x3c9)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x3c9)],'liveShareTerminate':_0x29414b[_0x18a975(0x35a)]['data']};break;}case _[_0x18a975(0x400)][_0x18a975(0x2b6)]:{_0x7c91d4={'eventID':_[_0x18a975(0x400)][_0x18a975(0x2b6)],'liveShareRequestHost':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x35a)]};break;}case _[_0x18a975(0x400)][_0x18a975(0x542)]:{_0x7c91d4={'eventID':_['CollaborationEvent'][_0x18a975(0x542)]};break;}default:_0x7c91d4={'eventID':_0x29414b[_0x18a975(0x35a)][_0x18a975(0x21b)]};}return JSON[_0x18a975(0x492)]({'cmd':_0x29414b['cmd'],'routeKey':_0x29414b['routeKey'],'collaMsg':_0x7c91d4});}case b['JOIN']:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b[_0x18a975(0x1e5)],'routeKey':_0x29414b['routeKey'],'joinReq':_0x29414b[_0x18a975(0x35a)]});case b[_0x18a975(0x409)]:return JSON[_0x18a975(0x492)]({'cmd':_0x29414b[_0x18a975(0x1e5)],'routeKey':_0x29414b[_0x18a975(0x242)],'leaveReq':_0x29414b['data']});default:throw new Error(_0x18a975(0x2cf));}}var cs=Object['defineProperty'],ls=Object['getOwnPropertyDescriptor'],hs=(_0x26a37c,_0x2361e9,_0x166845,_0x2cf996)=>{const _0x21bfdc=_0x3cc0f6;for(var _0x5cfc86=_0x2cf996>0x1?void 0x0:_0x2cf996?ls(_0x2361e9,_0x166845):_0x2361e9,_0x583d36=_0x26a37c[_0x21bfdc(0x411)]-0x1,_0xecfe99;_0x583d36>=0x0;_0x583d36--)(_0xecfe99=_0x26a37c[_0x583d36])&&(_0x5cfc86=(_0x2cf996?_0xecfe99(_0x2361e9,_0x166845,_0x5cfc86):_0xecfe99(_0x5cfc86))||_0x5cfc86);return _0x2cf996&&_0x5cfc86&&cs(_0x2361e9,_0x166845,_0x5cfc86),_0x5cfc86;},ce=(_0x49b76a,_0xd814a8)=>(_0x24b534,_0x1887f9)=>_0xd814a8(_0x24b534,_0x1887f9,_0x49b76a);const Ke=a[_0x3cc0f6(0x292)](_0x3cc0f6(0x36e));function _s(_0x358b98,_0x554245,_0x4fe9d2){const _0x41400d=_0x3cc0f6;return _0x358b98+'/'+_0x554245+_0x41400d(0x3b4)+_0x4fe9d2+'/new_changes';}exports['CollaborationSocketService']=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x58d306,_0x5347d1,_0x7d7a2b,_0x75bbc7,_0x2a05b5){const _0x4bd7d1=_0x3cc0f6;super(),this[_0x4bd7d1(0x440)]=_0x58d306,this[_0x4bd7d1(0x425)]=_0x5347d1,this[_0x4bd7d1(0x5e0)]=_0x7d7a2b,this[_0x4bd7d1(0x518)]=_0x75bbc7,this[_0x4bd7d1(0x32e)]=_0x2a05b5;}[_0x3cc0f6(0x4a5)](_0x5d6fcf){const _0x1a02f2=_0x3cc0f6,_0x22f70a=this[_0x1a02f2(0x425)]['createSocket'](_0x5d6fcf);if(!_0x22f70a)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x13443a=new a[(_0x1a02f2(0x2df))](),_0x1857b5=new v[(_0x1a02f2(0x2c3))]();_0x13443a[_0x1a02f2(0x44c)](_0x22f70a['close$'][_0x1a02f2(0x342)](_0x554ae5=>_0x1857b5['next'](_0x554ae5))),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x1857b5[_0x1a02f2(0x5d2)]()));const _0x402acf=new v[(_0x1a02f2(0x2c3))]();_0x13443a['add'](_0x22f70a[_0x1a02f2(0x4c3)][_0x1a02f2(0x342)](_0x51edad=>_0x402acf[_0x1a02f2(0x517)](_0x51edad))),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x402acf[_0x1a02f2(0x5d2)]()));const _0x4ce34d=new v[(_0x1a02f2(0x2c3))]();_0x13443a[_0x1a02f2(0x44c)](_0x22f70a['message$']['subscribe'](_0x39e64b=>{const _0xa1500c=_0x1a02f2,_0x36b7ef=Rt(_0x39e64b);_0x4ce34d[_0xa1500c(0x517)](_0x36b7ef);})),_0x13443a[_0x1a02f2(0x44c)](a[_0x1a02f2(0x2ba)](()=>_0x4ce34d[_0x1a02f2(0x5d2)]()));let _0x5b69d1;const _0x49cf8e=()=>{const _0x21c9c5=_0x1a02f2;_0x402acf['next'](new Event(_0x21c9c5(0x2c8))),_0x1857b5['next'](new CloseEvent(_0x21c9c5(0x2c8))),_0x5b69d1['close']();};return _0x5b69d1={'memberID':'','close$':_0x1857b5[_0x1a02f2(0x459)](),'error$':_0x402acf['asObservable'](),'open$':_0x22f70a[_0x1a02f2(0x340)],'message$':_0x4ce34d[_0x1a02f2(0x459)](),'send':_0x196a81=>{const _0x277448=_0x1a02f2;if(_0x196a81['cmd']===b[_0x277448(0x3ab)]){if(_0x196a81[_0x277448(0x35a)][_0x277448(0x21b)]===_['CollaborationEvent'][_0x277448(0x23f)]){this[_0x277448(0x55d)](_0x5b69d1,_0x196a81[_0x277448(0x35a)])[_0x277448(0x4fc)](_0x4fcdc0=>{const _0x1987ec=_0x277448;this[_0x1987ec(0x518)][_0x1987ec(0x2c9)](_0x4fcdc0),_0x49cf8e();});return;}if(_0x196a81[_0x277448(0x35a)]['eventID']===_['CollaborationEvent'][_0x277448(0x229)]){const _0x31f0b4=_0x196a81[_0x277448(0x35a)];this[_0x277448(0x598)](_0x31f0b4)['then'](_0x3bf4e4=>{const _0x287a55=_0x277448;_0x4ce34d[_0x287a55(0x517)]({'cmd':b[_0x287a55(0x515)],'code':Ye['OK'],'routeKey':_0x31f0b4[_0x287a55(0x35a)][_0x287a55(0x426)],'routeType':'','data':{'eventID':_['CollaborationEvent'][_0x287a55(0x275)],'data':{'changesets':_0x3bf4e4}}});})[_0x277448(0x4fc)](_0x3e65ba=>{const _0x1d6689=_0x277448;this['_logService'][_0x1d6689(0x2c9)](_0x3e65ba),_0x49cf8e();});return;}}_0x22f70a[_0x277448(0x5d7)](Ot(_0x196a81));},'close':()=>{const _0x55d94a=_0x1a02f2;_0x22f70a['close'](),_0x13443a[_0x55d94a(0x32b)]();}},_0x5b69d1;}async[_0x3cc0f6(0x55d)](_0x244792,_0x6e90a2){const _0x49ec32=_0x3cc0f6;var _0xcc4321,_0x4dbe51;const {unitType:_0x217fa0,unitID:_0x2214be,changeset:_0x33a058}=_0x6e90a2[_0x49ec32(0x35a)],_0x450f53={'unitID':_0x2214be,'memberID':_0x244792[_0x49ec32(0x335)],'type':_0x217fa0,'changeset':_['parseChangesetToProtocol'](_0x33a058)},_0x537f2f=this[_0x49ec32(0x5e0)][_0x49ec32(0x458)](Ct),_0x336af=this['_configService'][_0x49ec32(0x458)]($),_0x152e86=_s((_0x4dbe51=(_0xcc4321=_0x336af==null?void 0x0:_0x336af[_0x49ec32(0x2d1)])!=null?_0xcc4321:_0x537f2f)!=null?_0x4dbe51:rs,_0x217fa0,_0x2214be);try{await this[_0x49ec32(0x440)]['post'](_0x152e86,{'body':_0x450f53});}catch(_0x436680){throw this[_0x49ec32(0x518)][_0x49ec32(0x2c9)]('[CollaborationSession]',_0x49ec32(0x364)),_0x436680;}}async[_0x3cc0f6(0x598)](_0xd9fc92){const _0x14b6e1=_0x3cc0f6,{unitID:_0x34950b,from:_0x176f24,to:_0x450259,unitType:_0x37828a}=_0xd9fc92['data'];return(await this['_snapshotServerService'][_0x14b6e1(0x2c7)]({'metadata':void 0x0},{'unitID':_0x34950b,'type':_0x37828a,'from':_0x176f24,'to':_0x450259}))['changesets'];}},exports[_0x3cc0f6(0x322)]=hs([ce(0x0,a[_0x3cc0f6(0x573)](U[_0x3cc0f6(0x43f)])),ce(0x1,a['Inject'](U[_0x3cc0f6(0x3d2)])),ce(0x2,a[_0x3cc0f6(0x5d3)]),ce(0x3,a[_0x3cc0f6(0x24d)]),ce(0x4,_['ISnapshotServerService'])],exports[_0x3cc0f6(0x322)]);const us='collaboration_new_changeset';function ds(_0x3694df){const _0x707163=_0x3cc0f6;return JSON['stringify'](_0x3694df)[_0x707163(0x411)];}class Xe{constructor(){const _0x1b62a4=_0x3cc0f6;u(this,_0x1b62a4(0x418),new v['Subject']()),u(this,'commentUpdate$',this[_0x1b62a4(0x418)][_0x1b62a4(0x459)]());}[_0x3cc0f6(0x58f)](_0x48ef7d){const _0x35e3bf=_0x3cc0f6;this[_0x35e3bf(0x418)][_0x35e3bf(0x517)](_0x48ef7d);}}var Ss=Object[_0x3cc0f6(0x1c6)],vs=Object[_0x3cc0f6(0x544)],ms=(_0xbf2a80,_0x34828f,_0x29254b,_0x188032)=>{for(var _0x1d8467=_0x188032>0x1?void 0x0:_0x188032?vs(_0x34828f,_0x29254b):_0x34828f,_0x2ccfe3=_0xbf2a80['length']-0x1,_0x5e7eb6;_0x2ccfe3>=0x0;_0x2ccfe3--)(_0x5e7eb6=_0xbf2a80[_0x2ccfe3])&&(_0x1d8467=(_0x188032?_0x5e7eb6(_0x34828f,_0x29254b,_0x1d8467):_0x5e7eb6(_0x1d8467))||_0x1d8467);return _0x188032&&_0x1d8467&&Ss(_0x34828f,_0x29254b,_0x1d8467),_0x1d8467;},tt=(_0x5a8172,_0x477bcc)=>(_0x585df7,_0x331a06)=>_0x477bcc(_0x585df7,_0x331a06,_0x5a8172);let Z=class extends a['Disposable']{constructor(_0x4bc567,_0x1c34c1){const _0x47360d=_0x3cc0f6;super(),u(this,_0x47360d(0x343),new Map()),(this[_0x47360d(0x34b)]=_0x4bc567,this[_0x47360d(0x319)]=_0x1c34c1,this[_0x47360d(0x217)](a['toDisposable'](v[_0x47360d(0x570)](this['_univerInstanceService'][_0x47360d(0x1f9)](a['UniverInstanceType'][_0x47360d(0x336)])[_0x47360d(0x57c)](E['map'](_0x4b323a=>_0x4b323a[_0x47360d(0x527)]())),this[_0x47360d(0x34b)][_0x47360d(0x1f9)](a[_0x47360d(0x31e)][_0x47360d(0x3c6)])['pipe'](E[_0x47360d(0x282)](_0x680870=>_0x680870[_0x47360d(0x527)]())),this[_0x47360d(0x34b)][_0x47360d(0x1f9)](a['UniverInstanceType'][_0x47360d(0x477)])['pipe'](E['map'](_0xc334ec=>_0xc334ec[_0x47360d(0x527)]())))[_0x47360d(0x342)](_0x4e3829=>this[_0x47360d(0x3ce)](_0x4e3829)))));}[_0x3cc0f6(0x3fe)](_0x505085){const _0x329dd4=_0x3cc0f6;this[_0x329dd4(0x319)][_0x329dd4(0x3fe)](_0x505085);}[_0x3cc0f6(0x3c2)](){const _0x4c5727=_0x3cc0f6;return this[_0x4c5727(0x319)][_0x4c5727(0x3c2)]();}[_0x3cc0f6(0x274)](_0x2803b9,_0x41968d){const _0x247b5c=_0x3cc0f6;let _0x474502=this['_roomMembers']['get'](_0x2803b9);_0x474502||(_0x474502=new gs(),this['_roomMembers'][_0x247b5c(0x420)](_0x2803b9,_0x474502)),_0x474502[_0x247b5c(0x274)](_0x41968d);}[_0x3cc0f6(0x401)](_0x2fb5ac,_0x107c13){const _0x2211d8=_0x3cc0f6,_0x44e4e4=this['_roomMembers'][_0x2211d8(0x3de)](_0x2fb5ac);_0x44e4e4&&_0x44e4e4[_0x2211d8(0x401)](_0x107c13);}[_0x3cc0f6(0x4d3)](_0x1a0ea1){const _0x22a747=_0x3cc0f6;return this[_0x22a747(0x343)][_0x22a747(0x3de)](_0x1a0ea1);}[_0x3cc0f6(0x5cc)](_0x110e6,_0x5eb5ca){const _0x178fc9=_0x3cc0f6,_0x2671a1=this[_0x178fc9(0x343)][_0x178fc9(0x3de)](_0x110e6);if(_0x2671a1)return _0x2671a1['getMember'](_0x5eb5ca);}[_0x3cc0f6(0x3ce)](_0x343414){const _0x5ac0d5=_0x3cc0f6,_0x3668b4=this[_0x5ac0d5(0x343)][_0x5ac0d5(0x3de)](_0x343414);_0x3668b4&&(_0x3668b4['dispose'](),this[_0x5ac0d5(0x343)][_0x5ac0d5(0x3c4)](_0x343414));}['dispose'](){const _0x2e6d01=_0x3cc0f6;this[_0x2e6d01(0x343)][_0x2e6d01(0x300)](_0x197a13=>_0x197a13[_0x2e6d01(0x32b)]()),this[_0x2e6d01(0x343)]['clear']();}};Z=ms([tt(0x0,a[_0x3cc0f6(0x2f2)]),tt(0x1,a['Inject'](a['UserManagerService']))],Z);class gs extends a['Disposable']{constructor(){const _0x15afb2=_0x3cc0f6;super(...arguments),u(this,_0x15afb2(0x4eb),new Map());}[_0x3cc0f6(0x32b)](){const _0x3247a0=_0x3cc0f6;this[_0x3247a0(0x4eb)][_0x3247a0(0x48b)]();}[_0x3cc0f6(0x274)](_0x3449c9){const _0x2f5d06=_0x3cc0f6;this[_0x2f5d06(0x4eb)][_0x2f5d06(0x420)](_0x3449c9[_0x2f5d06(0x335)],_0x3449c9);}[_0x3cc0f6(0x401)](_0x3b05d1){const _0x391b84=_0x3cc0f6;this[_0x391b84(0x4eb)][_0x391b84(0x3c4)](_0x3b05d1);}[_0x3cc0f6(0x5cc)](_0x478297){const _0x4cc045=_0x3cc0f6;return this[_0x4cc045(0x4eb)][_0x4cc045(0x3de)](_0x478297);}}var fs=Object[_0x3cc0f6(0x1c6)],Is=Object[_0x3cc0f6(0x544)],ps=(_0x1def16,_0x5ed8b7,_0x27480c,_0x354389)=>{for(var _0x16709d=_0x354389>0x1?void 0x0:_0x354389?Is(_0x5ed8b7,_0x27480c):_0x5ed8b7,_0x5d5bca=_0x1def16['length']-0x1,_0x49858b;_0x5d5bca>=0x0;_0x5d5bca--)(_0x49858b=_0x1def16[_0x5d5bca])&&(_0x16709d=(_0x354389?_0x49858b(_0x5ed8b7,_0x27480c,_0x16709d):_0x49858b(_0x16709d))||_0x16709d);return _0x354389&&_0x16709d&&fs(_0x5ed8b7,_0x27480c,_0x16709d),_0x16709d;},G=(_0x3279d4,_0x5990a9)=>(_0x920dde,_0x111442)=>_0x5990a9(_0x920dde,_0x111442,_0x3279d4),x=(_0x7745c9=>(_0x7745c9[_0x7745c9[_0x3cc0f6(0x1bf)]=0x0]=_0x3cc0f6(0x1bf),_0x7745c9[_0x7745c9[_0x3cc0f6(0x405)]=0x1]=_0x3cc0f6(0x405),_0x7745c9[_0x7745c9['OFFLINE']=0x2]=_0x3cc0f6(0x50c),_0x7745c9[_0x7745c9[_0x3cc0f6(0x478)]=0x3]='ONLINE',_0x7745c9))(x||{});exports[_0x3cc0f6(0x206)]=class extends a['RxDisposable']{constructor(_0x2c56ea,_0x168739,_0x51e824,_0x5f26a9,_0x13e18c,_0x139bba,_0x28317e,_0x2833cd,_0x55cd61,_0x13e4d9){const _0x3b8c51=_0x3cc0f6;super(),u(this,'_sessionStatus$',new v['BehaviorSubject'](0x0)),u(this,_0x3b8c51(0x1eb),this['_sessionStatus$'][_0x3b8c51(0x459)]()),u(this,_0x3b8c51(0x596),new v[(_0x3b8c51(0x2c3))]()),u(this,'event$',this[_0x3b8c51(0x596)][_0x3b8c51(0x459)]()),u(this,_0x3b8c51(0x286)),u(this,_0x3b8c51(0x5e9)),u(this,_0x3b8c51(0x24a)),u(this,_0x3b8c51(0x4e5),!0x1),u(this,_0x3b8c51(0x20e),null),(this['_unitID']=_0x2c56ea,this[_0x3b8c51(0x518)]=_0x51e824,this[_0x3b8c51(0x3a7)]=_0x5f26a9,this[_0x3b8c51(0x1cd)]=_0x13e18c,this['_configService']=_0x139bba,this['_localeService']=_0x28317e,this[_0x3b8c51(0x5a7)]=_0x2833cd,this[_0x3b8c51(0x1c5)]=_0x55cd61,this[_0x3b8c51(0x3b2)]=_0x13e4d9,this[_0x3b8c51(0x4e5)]=!!this[_0x3b8c51(0x3b2)],_0x168739['pipe'](v['takeUntil'](this[_0x3b8c51(0x38b)]))[_0x3b8c51(0x342)](_0x13212e=>{const _0x40e68=_0x3b8c51;var _0x13af71;typeof _0x13212e>'u'||(this[_0x40e68(0x286)]=_0x13212e,_0x13212e?(this[_0x40e68(0x450)](_0x13212e),this['_socketMessageSubscription']=_0x13212e[_0x40e68(0x354)][_0x40e68(0x342)](_0x103bfe=>{const _0x56287e=_0x40e68;_0x103bfe[_0x56287e(0x242)]===this[_0x56287e(0x3db)]&&this[_0x56287e(0x4cb)](_0x103bfe);})):(this[_0x40e68(0x497)](),this[_0x40e68(0x382)][_0x40e68(0x517)](0x2),(_0x13af71=this[_0x40e68(0x5e9)])==null||_0x13af71['unsubscribe'](),this[_0x40e68(0x5e9)]=null));}),this[_0x3b8c51(0x217)](this[_0x3b8c51(0x3a7)][_0x3b8c51(0x2e7)](()=>{const _0x133ae6=_0x3b8c51;var _0x7c2193;(_0x7c2193=this[_0x133ae6(0x286)])==null||_0x7c2193['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x133ae6(0x3db)]}});})));}get[_0x3cc0f6(0x37a)](){const _0x11ff45=_0x3cc0f6;return this['_sessionStatus$'][_0x11ff45(0x535)]();}[_0x3cc0f6(0x1f1)](){const _0x10d373=_0x3cc0f6;var _0x3dd42c,_0x381165;return(_0x381165=(_0x3dd42c=this[_0x10d373(0x286)])==null?void 0x0:_0x3dd42c['memberID'])!=null?_0x381165:null;}[_0x3cc0f6(0x32b)](){const _0x1a7c51=_0x3cc0f6;super[_0x1a7c51(0x32b)](),this[_0x1a7c51(0x38b)][_0x1a7c51(0x517)](),this[_0x1a7c51(0x38b)]['complete']();}[_0x3cc0f6(0x44d)](){const _0x51403f=_0x3cc0f6;var _0x173121,_0x1d042c;this['_throwTelemetryCollaborationNewChangeset'](),(_0x173121=this[_0x51403f(0x286)])==null||_0x173121[_0x51403f(0x5d7)]({'cmd':b[_0x51403f(0x409)],'data':{'roomID':this[_0x51403f(0x3db)]}}),(_0x1d042c=this[_0x51403f(0x286)])==null||_0x1d042c[_0x51403f(0x44d)](),this[_0x51403f(0x596)]['complete'](),this[_0x51403f(0x382)][_0x51403f(0x5d2)](),this[_0x51403f(0x32b)]();}['_onCombEvent'](_0x2791b4){const _0x304112=_0x3cc0f6;_0x2791b4[_0x304112(0x1e5)]===b[_0x304112(0x516)]?this[_0x304112(0x51f)](_0x2791b4):_0x2791b4[_0x304112(0x1e5)]===b[_0x304112(0x515)]&&this[_0x304112(0x2ed)](_0x2791b4);}['_joinRoom'](_0x40e990){const _0x38865b=_0x3cc0f6;this[_0x38865b(0x382)]['next'](0x1),_0x40e990[_0x38865b(0x5d7)]({'cmd':b[_0x38865b(0x516)],'routeKey':this[_0x38865b(0x3db)],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}['_onJoinRoomEvent'](_0x29a9eb){const _0x5223d5=_0x3cc0f6;var _0x5de765;if(_0x29a9eb[_0x5223d5(0x5bf)]===Ye[_0x5223d5(0x499)]){this[_0x5223d5(0x1cd)][_0x5223d5(0x438)]({'type':J[_0x5223d5(0x2ce)]['Warning'],'content':this[_0x5223d5(0x36b)]['t'](_0x5223d5(0x584))}),this[_0x5223d5(0x382)][_0x5223d5(0x517)](0x2);return;}this[_0x5223d5(0x382)]['next'](0x3);const _0x3103f8=(_0x5de765=_0x29a9eb[_0x5223d5(0x35a)]['roomInfos'][this[_0x5223d5(0x3db)]])==null?void 0x0:_0x5de765[_0x5223d5(0x2b3)];_0x3103f8&&_0x3103f8[_0x5223d5(0x300)](_0x59cbde=>this[_0x5223d5(0x5a7)][_0x5223d5(0x274)](this[_0x5223d5(0x3db)],_0x59cbde));}[_0x3cc0f6(0x2ed)](_0x54ae52){const _0x4bb776=_0x3cc0f6;try{const _0x4d0de4=_0x54ae52['data'];switch(_0x4d0de4[_0x4bb776(0x21b)]){case _[_0x4bb776(0x400)]['USERS_ENTER']:this[_0x4bb776(0x435)](_0x4d0de4),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _['CollaborationEvent'][_0x4bb776(0x5cf)]:this[_0x4bb776(0x483)](_0x4d0de4),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _[_0x4bb776(0x400)]['CHANGESET_ACK']:case _['CollaborationEvent'][_0x4bb776(0x5bc)]:this[_0x4bb776(0x575)](),this[_0x4bb776(0x500)](),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;case _['CollaborationEvent'][_0x4bb776(0x3c8)]:this[_0x4bb776(0x518)]['error'](_0x4bb776(0x370)+JSON[_0x4bb776(0x492)](_0x4d0de4)),this['_event$'][_0x4bb776(0x517)](_0x4d0de4);break;case _[_0x4bb776(0x400)][_0x4bb776(0x53c)]:this['_commentService'][_0x4bb776(0x58f)](_0x4d0de4[_0x4bb776(0x35a)]),this[_0x4bb776(0x596)][_0x4bb776(0x517)](_0x4d0de4);break;default:this[_0x4bb776(0x596)]['next'](_0x4d0de4);}}catch(_0x2eb878){this[_0x4bb776(0x518)][_0x4bb776(0x2c9)](_0x2eb878,_0x54ae52);}}[_0x3cc0f6(0x435)](_0x28a15f){const _0x235740=_0x3cc0f6;this[_0x235740(0x5a7)]['updateMember'](this[_0x235740(0x3db)],_0x28a15f[_0x235740(0x35a)]);}['_onUserLeave'](_0xf3f87a){const _0xa43a83=_0x3cc0f6;this['_memberService'][_0xa43a83(0x401)](this[_0xa43a83(0x3db)],_0xf3f87a[_0xa43a83(0x35a)][_0xa43a83(0x335)]);}async[_0x3cc0f6(0x5d7)](_0x361bbf,_0x4d9cae){const _0x2bc2e6=_0x3cc0f6;if(this[_0x2bc2e6(0x37a)]!==0x3||!this[_0x2bc2e6(0x286)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x361bbf[_0x2bc2e6(0x21b)]===_['CollaborationEvent'][_0x2bc2e6(0x23f)]&&(this[_0x2bc2e6(0x503)](),this[_0x2bc2e6(0x1d4)](_0x361bbf)),this['_socket'][_0x2bc2e6(0x5d7)]({'cmd':b[_0x2bc2e6(0x3ab)],'routeKey':_0x4d9cae,'routeType':'','data':_0x361bbf});}catch(_0x5a0565){this['_logService'][_0x2bc2e6(0x2c9)](_0x5a0565);}}[_0x3cc0f6(0x503)](){const _0x2013d5=_0x3cc0f6;var _0x50e889;this[_0x2013d5(0x24a)]=window[_0x2013d5(0x556)](()=>{const _0x51ba12=_0x2013d5;this['_collaborationTimeoutTimer']=null,this[_0x51ba12(0x1cd)][_0x51ba12(0x438)]({'type':J['MessageType']['Error'],'content':this[_0x51ba12(0x36b)]['t'](_0x51ba12(0x3e8))});},(_0x50e889=this[_0x2013d5(0x5e0)][_0x2013d5(0x458)](Ge))!=null?_0x50e889:ft);}[_0x3cc0f6(0x500)](){const _0x3b3f3e=_0x3cc0f6;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x3b3f3e(0x24a)]),this[_0x3b3f3e(0x24a)]=null);}[_0x3cc0f6(0x1d4)](_0x462791){const _0x5142b0=_0x3cc0f6;if(!this[_0x5142b0(0x4e5)])return;const {data:_0x4141df}=_0x462791,{unitID:_0x181af6,changeset:_0x6f07e7}=_0x4141df,{mutations:_0x5c125d,type:_0xedd242}=_0x6f07e7;this[_0x5142b0(0x20e)]={'unitId':_0x181af6,'type':_0xedd242,'startTime':performance[_0x5142b0(0x2fd)](),'stopTime':0x0,'duration':0x0,'size':ds(_0x5c125d)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x309ea7=_0x3cc0f6;if(this[_0x309ea7(0x4e5)]){if(!this[_0x309ea7(0x20e)]){this[_0x309ea7(0x518)][_0x309ea7(0x2c9)](_0x309ea7(0x539),_0x309ea7(0x560));return;}this['_telemetryInfo'][_0x309ea7(0x48f)]=performance['now'](),this[_0x309ea7(0x20e)][_0x309ea7(0x3a2)]=this['_telemetryInfo'][_0x309ea7(0x48f)]-this['_telemetryInfo'][_0x309ea7(0x23b)],this[_0x309ea7(0x3b2)]['capture'](us,this[_0x309ea7(0x20e)]),this[_0x309ea7(0x20e)]=null;}}[_0x3cc0f6(0x497)](){this['_telemetryInfo']=null;}},exports[_0x3cc0f6(0x206)]=ps([G(0x2,a[_0x3cc0f6(0x24d)]),G(0x3,A['IBeforeCloseService']),G(0x4,A['IMessageService']),G(0x5,a[_0x3cc0f6(0x5d3)]),G(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),G(0x7,a[_0x3cc0f6(0x573)](Z)),G(0x8,a[_0x3cc0f6(0x573)](Xe)),G(0x9,a[_0x3cc0f6(0x273)](Xt[_0x3cc0f6(0x32c)]))],exports['CollaborationSession']);var Cs=Object[_0x3cc0f6(0x1c6)],Es=Object['getOwnPropertyDescriptor'],bs=(_0x3866ac,_0x32b78a,_0x57d840,_0x33e884)=>{const _0x4f6756=_0x3cc0f6;for(var _0x55cb0d=_0x33e884>0x1?void 0x0:_0x33e884?Es(_0x32b78a,_0x57d840):_0x32b78a,_0x5dab1c=_0x3866ac[_0x4f6756(0x411)]-0x1,_0x532d47;_0x5dab1c>=0x0;_0x5dab1c--)(_0x532d47=_0x3866ac[_0x5dab1c])&&(_0x55cb0d=(_0x33e884?_0x532d47(_0x32b78a,_0x57d840,_0x55cb0d):_0x532d47(_0x55cb0d))||_0x55cb0d);return _0x33e884&&_0x55cb0d&&Cs(_0x32b78a,_0x57d840,_0x55cb0d),_0x55cb0d;},te=(_0x136d1e,_0x4290ae)=>(_0xda620b,_0x55e204)=>_0x4290ae(_0xda620b,_0x55e204,_0x136d1e);exports[_0x3cc0f6(0x3c0)]=class extends a['Disposable']{constructor(_0x466c6d,_0x1caa24,_0x587178,_0x34b54b,_0x5d46b6,_0x265da2){const _0x12fa0f=_0x3cc0f6;super(),u(this,_0x12fa0f(0x454),new v[(_0x12fa0f(0x3ea))](void 0x0)),u(this,_0x12fa0f(0x504),this['_socket$'][_0x12fa0f(0x459)]()),u(this,_0x12fa0f(0x5e3),null),u(this,'_sessions',new Map()),u(this,_0x12fa0f(0x4a2),new v[(_0x12fa0f(0x3ea))](x[_0x12fa0f(0x1bf)])),u(this,_0x12fa0f(0x40f),this['_status$']['asObservable']()),u(this,_0x12fa0f(0x489),!0x1),u(this,_0x12fa0f(0x45a)),u(this,_0x12fa0f(0x3b0),0x0),u(this,_0x12fa0f(0x543)),u(this,_0x12fa0f(0x230)),(this[_0x12fa0f(0x5ba)]=_0x466c6d,this[_0x12fa0f(0x36b)]=_0x1caa24,this[_0x12fa0f(0x1cd)]=_0x587178,this[_0x12fa0f(0x518)]=_0x34b54b,this[_0x12fa0f(0x5e0)]=_0x5d46b6,this[_0x12fa0f(0x1ca)]=_0x265da2,this[_0x12fa0f(0x27e)]());}get[_0x3cc0f6(0x286)](){const _0x527327=_0x3cc0f6;return this[_0x527327(0x454)]['getValue']();}[_0x3cc0f6(0x27e)](){const _0x1651ae=_0x3cc0f6;this[_0x1651ae(0x3a5)](),this['_listenToOnlineEvent']();}[_0x3cc0f6(0x32b)](){const _0x355d4b=_0x3cc0f6;super[_0x355d4b(0x32b)](),this[_0x355d4b(0x5d1)]['forEach'](_0x332ee5=>_0x332ee5[_0x355d4b(0x32b)]()),this[_0x355d4b(0x5d1)][_0x355d4b(0x48b)](),this['_status$']['complete']();}async['requireSession'](_0x4ef255){const _0x267ae3=_0x3cc0f6;if(this['_sessions'][_0x267ae3(0x2d0)](_0x4ef255))return this[_0x267ae3(0x5d1)][_0x267ae3(0x3de)](_0x4ef255);this[_0x267ae3(0x227)]();const _0x1facac=this[_0x267ae3(0x5ba)][_0x267ae3(0x2e1)](exports['CollaborationSession'],_0x4ef255,this[_0x267ae3(0x454)][_0x267ae3(0x459)]());return this['_sessions'][_0x267ae3(0x420)](_0x4ef255,_0x1facac),_0x1facac;}[_0x3cc0f6(0x362)](_0x4a4f69){const _0x5d9071=_0x3cc0f6;var _0x19f30b;const _0x14839b=this[_0x5d9071(0x5d1)][_0x5d9071(0x3de)](_0x4a4f69);_0x14839b&&(this[_0x5d9071(0x5d1)][_0x5d9071(0x3c4)](_0x4a4f69),_0x14839b[_0x5d9071(0x44d)]()),this[_0x5d9071(0x5d1)][_0x5d9071(0x437)]||(_0x19f30b=this['_socket'])==null||_0x19f30b[_0x5d9071(0x44d)]();}[_0x3cc0f6(0x448)](){const _0x3ad4d9=_0x3cc0f6;this['_retryCount']=0x0,this[_0x3ad4d9(0x45a)]!=null&&(clearTimeout(this[_0x3ad4d9(0x45a)]),this[_0x3ad4d9(0x45a)]=null),this[_0x3ad4d9(0x3f0)]();}['_createSocket'](){const _0x291a76=_0x3cc0f6;var _0x5a0d9c,_0x228a90;const _0x2af94f=this[_0x291a76(0x5e0)]['getConfig'](mt),_0xaa9385=this['_configService'][_0x291a76(0x458)]($),_0x3e2aae=(_0x228a90=(_0x5a0d9c=_0xaa9385==null?void 0x0:_0xaa9385[_0x291a76(0x3fd)])!=null?_0x5a0d9c:_0x2af94f)!=null?_0x228a90:es,_0x50f58f=this[_0x291a76(0x1ca)][_0x291a76(0x4a5)](_0x3e2aae);return this['_candidateSocket']=_0x50f58f,_0x50f58f;}[_0x3cc0f6(0x227)](){const _0x3e1846=_0x3cc0f6;var _0xeb58e0,_0xda28ba;try{const _0x1bcde1=(_0xda28ba=(_0xeb58e0=this[_0x3e1846(0x286)])!=null?_0xeb58e0:this[_0x3e1846(0x5e3)])!=null?_0xda28ba:this['_createSocket']();if(_0x1bcde1){const _0x3091ae=_0x1bcde1[_0x3e1846(0x5d7)];_0x1bcde1[_0x3e1846(0x5d7)]=_0x3f1d0f=>(this[_0x3e1846(0x2fe)](),_0x3091ae[_0x3e1846(0x3f1)](_0x1bcde1,[_0x3f1d0f])),_0x1bcde1[_0x3e1846(0x354)]['subscribe'](_0x332ff0=>this[_0x3e1846(0x4f5)](_0x1bcde1,_0x332ff0)),_0x1bcde1[_0x3e1846(0x4c3)][_0x3e1846(0x57c)](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](_0x470382=>this['_logService'][_0x3e1846(0x2c9)](_0x3e1846(0x1dc),_0x470382)),_0x1bcde1['open$']['pipe'](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](()=>{const _0x3f9390=_0x3e1846;this[_0x3f9390(0x471)](_0x1bcde1);}),_0x1bcde1['close$'][_0x3e1846(0x57c)](E[_0x3e1846(0x4e6)](0x1))[_0x3e1846(0x342)](_0x2d59de=>{const _0x2be50e=_0x3e1846;this[_0x2be50e(0x518)][_0x2be50e(0x2cc)](_0x2be50e(0x33b),_0x2be50e(0x525),_0x2d59de),this[_0x2be50e(0x55e)]();});}}catch(_0x6f45d3){this[_0x3e1846(0x518)][_0x3e1846(0x2c9)](_0x6f45d3),this[_0x3e1846(0x55e)]();}}[_0x3cc0f6(0x471)](_0x1d90b2){const _0x205002=_0x3cc0f6;this[_0x205002(0x518)][_0x205002(0x2cc)](_0x205002(0x33b),'socket\x20open.'),_0x1d90b2[_0x205002(0x5d7)]({'cmd':b[_0x205002(0x491)]}),this[_0x205002(0x2fe)]();}[_0x3cc0f6(0x3a5)](){const _0x569445=_0x3cc0f6;window[_0x569445(0x581)](_0x569445(0x550),()=>this[_0x569445(0x580)]());}[_0x3cc0f6(0x580)](){const _0x2f7481=_0x3cc0f6;this[_0x2f7481(0x489)]=!0x1,this[_0x2f7481(0x5e3)]=null,this[_0x2f7481(0x4a2)][_0x2f7481(0x517)](x[_0x2f7481(0x50c)]),this[_0x2f7481(0x454)]['next'](null),this[_0x2f7481(0x2b7)](),this[_0x2f7481(0x31d)]();}[_0x3cc0f6(0x55e)](){const _0x25bbdf=_0x3cc0f6;var _0x54d63e;this['_onOffline'](),this[_0x25bbdf(0x3b0)]<((_0x54d63e=this[_0x25bbdf(0x5e0)]['getConfig'](It))!=null?_0x54d63e:is)?(this['_messageService'][_0x25bbdf(0x438)]({'key':'collaboration-session-retry','type':J['MessageType'][_0x25bbdf(0x56e)],'content':this[_0x25bbdf(0x36b)]['t'](_0x25bbdf(0x58d))}),this['_tryReconnect']()):this['_messageService'][_0x25bbdf(0x438)]({'key':_0x25bbdf(0x36c),'type':J[_0x25bbdf(0x2ce)][_0x25bbdf(0x5c2)],'content':this[_0x25bbdf(0x36b)]['t'](_0x25bbdf(0x1f3))});}['_listenToOnlineEvent'](){const _0x5bdb4a=_0x3cc0f6,_0x25bcaf=()=>{const _0x583267=_0x10ac;this[_0x583267(0x286)]||this[_0x583267(0x448)]();},_0x6eeeb0=()=>{const _0x15b719=_0x10ac;this[_0x15b719(0x286)]||document[_0x15b719(0x1ed)]===_0x15b719(0x2ef)||this['reconnect']();};window[_0x5bdb4a(0x581)]('online',_0x25bcaf),document[_0x5bdb4a(0x581)](_0x5bdb4a(0x372),_0x6eeeb0);}[_0x3cc0f6(0x3f0)](){const _0x129bcf=_0x3cc0f6;var _0x3f615a;const _0x7e5ff9=this[_0x129bcf(0x3b0)],_0x594c8a=this[_0x129bcf(0x5e0)]['getConfig']($),_0x44f865=_0x7e5ff9===0x0?0x0:((_0x3f615a=_0x594c8a==null?void 0x0:_0x594c8a[_0x129bcf(0x26c)])!=null?_0x3f615a:ss)*0x2**_0x7e5ff9;this[_0x129bcf(0x45a)]=window['setTimeout'](()=>{const _0x40d226=_0x129bcf;clearTimeout(this[_0x40d226(0x45a)]),this[_0x40d226(0x45a)]=null,this[_0x40d226(0x227)]();},_0x44f865),this[_0x129bcf(0x3b0)]+=0x1;}[_0x3cc0f6(0x4f5)](_0x13893c,_0x4ef051){const _0x5fd06=_0x3cc0f6,{cmd:_0x1f0a6e}=_0x4ef051;_0x1f0a6e===b['HELLO']&&!this[_0x5fd06(0x489)]&&(_0x13893c[_0x5fd06(0x335)]=_0x4ef051['data'][_0x5fd06(0x335)],this['_socket$'][_0x5fd06(0x517)](_0x13893c),this[_0x5fd06(0x4a2)]['next'](x[_0x5fd06(0x478)]),this[_0x5fd06(0x489)]=!0x0,this[_0x5fd06(0x5e3)]=null),_0x1f0a6e===b[_0x5fd06(0x3e2)]&&this[_0x5fd06(0x2b7)](),this[_0x5fd06(0x2fe)]();}[_0x3cc0f6(0x2fe)](){const _0x29cfca=_0x3cc0f6;var _0x1b4c55;this[_0x29cfca(0x31d)](),this[_0x29cfca(0x543)]=window[_0x29cfca(0x556)](()=>this[_0x29cfca(0x509)](),(_0x1b4c55=this['_configService']['getConfig'](gt))!=null?_0x1b4c55:ts);}['_sendHeartbeat'](){const _0xa0be75=_0x3cc0f6;this[_0xa0be75(0x286)][_0xa0be75(0x5d7)]({'cmd':b['HEARTBEAT']}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x31595f=_0x3cc0f6;var _0x52b4ef;this['_timeoutTimer']=window[_0x31595f(0x556)](()=>this['_onConnectionFailed'](),(_0x52b4ef=this[_0x31595f(0x5e0)][_0x31595f(0x458)](Ge))!=null?_0x52b4ef:ft);}[_0x3cc0f6(0x31d)](){const _0x4e2457=_0x3cc0f6;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x4e2457(0x543)]),this[_0x4e2457(0x543)]=null);}[_0x3cc0f6(0x2b7)](){const _0x43bb55=_0x3cc0f6;this[_0x43bb55(0x230)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x43bb55(0x230)]=null);}},exports['CollaborationSessionService']=bs([te(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),te(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),te(0x2,A[_0x3cc0f6(0x2af)]),te(0x3,a[_0x3cc0f6(0x24d)]),te(0x4,a['IConfigService']),te(0x5,Ke)],exports['CollaborationSessionService']);var R=[];for(var Ue=0x0;Ue<0x100;++Ue)R[_0x3cc0f6(0x430)]((Ue+0x100)[_0x3cc0f6(0x39c)](0x10)[_0x3cc0f6(0x1c3)](0x1));function Ts(_0xbd59ca,_0x28b02d=0x0){const _0x41f374=_0x3cc0f6;return(R[_0xbd59ca[_0x28b02d+0x0]]+R[_0xbd59ca[_0x28b02d+0x1]]+R[_0xbd59ca[_0x28b02d+0x2]]+R[_0xbd59ca[_0x28b02d+0x3]]+'-'+R[_0xbd59ca[_0x28b02d+0x4]]+R[_0xbd59ca[_0x28b02d+0x5]]+'-'+R[_0xbd59ca[_0x28b02d+0x6]]+R[_0xbd59ca[_0x28b02d+0x7]]+'-'+R[_0xbd59ca[_0x28b02d+0x8]]+R[_0xbd59ca[_0x28b02d+0x9]]+'-'+R[_0xbd59ca[_0x28b02d+0xa]]+R[_0xbd59ca[_0x28b02d+0xb]]+R[_0xbd59ca[_0x28b02d+0xc]]+R[_0xbd59ca[_0x28b02d+0xd]]+R[_0xbd59ca[_0x28b02d+0xe]]+R[_0xbd59ca[_0x28b02d+0xf]])[_0x41f374(0x299)]();}var ve,Rs=new Uint8Array(0x10);function Os(){const _0x27cf9b=_0x3cc0f6;if(!ve&&(ve=typeof crypto<'u'&&crypto[_0x27cf9b(0x1d0)]&&crypto['getRandomValues'][_0x27cf9b(0x4ba)](crypto),!ve))throw new Error(_0x27cf9b(0x4a9));return ve(Rs);}var Ds=typeof crypto<'u'&&crypto[_0x3cc0f6(0x408)]&&crypto['randomUUID']['bind'](crypto);const st={'randomUUID':Ds};function ys(_0x54f4fe,_0x4e160a,_0x20da7f){const _0x59e778=_0x3cc0f6;if(st[_0x59e778(0x408)]&&!_0x4e160a&&!_0x54f4fe)return st['randomUUID']();_0x54f4fe=_0x54f4fe||{};var _0xd9011f=_0x54f4fe[_0x59e778(0x1ef)]||(_0x54f4fe[_0x59e778(0x3a6)]||Os)();return _0xd9011f[0x6]=_0xd9011f[0x6]&0xf|0x40,_0xd9011f[0x8]=_0xd9011f[0x8]&0x3f|0x80,Ts(_0xd9011f);}var Us=Object[_0x3cc0f6(0x1c6)],Ps=Object[_0x3cc0f6(0x544)],ws=(_0x14d761,_0x3c6f7f,_0x1c8f6f,_0x4337db)=>{const _0x3679c5=_0x3cc0f6;for(var _0x75f328=_0x4337db>0x1?void 0x0:_0x4337db?Ps(_0x3c6f7f,_0x1c8f6f):_0x3c6f7f,_0x44106a=_0x14d761[_0x3679c5(0x411)]-0x1,_0xfde4f4;_0x44106a>=0x0;_0x44106a--)(_0xfde4f4=_0x14d761[_0x44106a])&&(_0x75f328=(_0x4337db?_0xfde4f4(_0x3c6f7f,_0x1c8f6f,_0x75f328):_0xfde4f4(_0x75f328))||_0x75f328);return _0x4337db&&_0x75f328&&Us(_0x3c6f7f,_0x1c8f6f,_0x75f328),_0x75f328;},Pe=(_0x5a1f9c,_0xefc73f)=>(_0x581813,_0x4d527a)=>_0xefc73f(_0x581813,_0x4d527a,_0x5a1f9c);let Ie=class{constructor(_0x399b4d,_0xab9c91,_0x59eb58){const _0x13f887=_0x3cc0f6;this[_0x13f887(0x5ba)]=_0x399b4d,this[_0x13f887(0x5c3)]=_0xab9c91,this[_0x13f887(0x1d5)]=_0x59eb58;}[_0x3cc0f6(0x2bb)](_0x185e40){const _0x3f6ffb=_0x3cc0f6;this[_0x3f6ffb(0x3f7)](_0x185e40),this['_transformPreviousActiveRange'](_0x185e40);}[_0x3cc0f6(0x1fc)](_0x317f3c){const _0x1d75f2=_0x3cc0f6,{unitID:_0x5aa1be}=_0x317f3c,_0x3b291c=this['_renderManagerService']['getRenderById'](_0x5aa1be)[_0x1d75f2(0x245)](N[_0x1d75f2(0x4fd)]),{redoCache:_0x66ac57}=_0x3b291c[_0x1d75f2(0x394)]();if(_0x66ac57[_0x1d75f2(0x411)]===0x0)return _0x317f3c;let _0x5388c3=a[_0x1d75f2(0x241)][_0x1d75f2(0x26b)](_0x317f3c['mutations'][0x0]);for(let _0x5d4dd8=0x0;_0x5d4dd8<_0x66ac57[_0x1d75f2(0x411)];_0x5d4dd8++){const _0x504c4d={'id':'doc.mutation.rich-text-editing','params':{..._0x66ac57[_0x5d4dd8]}},_0x4fe566=this['_transformService'][_0x1d75f2(0x3ef)](_0x5388c3,_0x504c4d,!0x1);if(_[_0x1d75f2(0x4dd)](_0x4fe566))throw _0x4fe566[_0x1d75f2(0x2c9)];_0x5388c3=_0x4fe566[_0x1d75f2(0x2b5)];}return{...a[_0x1d75f2(0x241)]['deepClone'](_0x317f3c),'mutations':[_0x5388c3]};}['_transformUndoRedoStack'](_0x4c0da4){const _0x231276=_0x3cc0f6,{unitID:_0xa2f7cb}=_0x4c0da4,_0x373090=this[_0x231276(0x1d5)]['getRenderById'](_0xa2f7cb)[_0x231276(0x245)](N['DocIMEInputManagerService']),{undoCache:_0x3b7c9d,redoCache:_0x2220ea}=_0x373090[_0x231276(0x394)]();if(_0x3b7c9d[_0x231276(0x411)]===0x0||_0x2220ea[_0x231276(0x411)]===0x0)return;const _0x836ddb=[],_0x3b749f=[];let _0xf645f=a['Tools'][_0x231276(0x26b)](_0x4c0da4[_0x231276(0x3fb)][0x0]),_0x1952f1=a[_0x231276(0x241)]['deepClone'](_0x4c0da4[_0x231276(0x3fb)][0x0]);for(let _0x2c2e75=_0x3b7c9d[_0x231276(0x411)]-0x1;_0x2c2e75>=0x0;_0x2c2e75--){const _0x14c2f5={'id':_0x231276(0x2b2),'params':{..._0x3b7c9d[_0x2c2e75]}},_0x32c644={'id':_0x231276(0x2b2),'params':{..._0x2220ea[_0x2c2e75]}},_0x4724ef=this['_transformService'][_0x231276(0x3ef)](_0xf645f,_0x14c2f5,!0x1),_0x26b4db=this[_0x231276(0x5c3)][_0x231276(0x3ef)](_0x1952f1,_0x32c644,!0x1);if(_[_0x231276(0x4dd)](_0x4724ef))throw _0x4724ef[_0x231276(0x2c9)];if(_['isTransformMutationFailure'](_0x26b4db))throw _0x26b4db['error'];_0x836ddb[_0x231276(0x4ec)](_0x4724ef[_0x231276(0x201)][_0x231276(0x3f2)]),_0x3b749f['unshift'](_0x26b4db[_0x231276(0x201)][_0x231276(0x3f2)]),_0xf645f=_0x4724ef[_0x231276(0x2b5)],_0x1952f1=_0x26b4db[_0x231276(0x2b5)];}_0x373090['setUndoRedoMutationParamsCache']({'undoCache':_0x836ddb,'redoCache':_0x3b749f});}[_0x3cc0f6(0x31c)](_0x43f235){const _0x5a49c9=_0x3cc0f6,{unitID:_0x476122}=_0x43f235,_0x543906=this['_renderManagerService'][_0x5a49c9(0x266)](_0x476122)[_0x5a49c9(0x245)](N[_0x5a49c9(0x4fd)]),_0x1d3ba2=_0x543906['getActiveRange']();if(_0x1d3ba2==null)return;const _0x4d1814=[{'id':_0x5a49c9(0x2b2),'params':{'unitId':_0x43f235[_0x5a49c9(0x426)],'actions':null,'textRanges':[_0x1d3ba2]}}],_0x215fbb=this['_transformService'][_0x5a49c9(0x338)](_0x43f235,_0x4d1814);if(!_[_0x5a49c9(0x50f)](_0x215fbb))throw _0x215fbb[_0x5a49c9(0x2c9)];const _0x2eb744=_0x215fbb[_0x5a49c9(0x201)][0x0][_0x5a49c9(0x3f2)][_0x5a49c9(0x3b1)];Array['isArray'](_0x2eb744)&&_0x2eb744[_0x5a49c9(0x411)]&&_0x543906[_0x5a49c9(0x221)](_0x2eb744[0x0]);}};Ie=ws([Pe(0x0,a[_0x3cc0f6(0x573)](a['Injector'])),Pe(0x1,_[_0x3cc0f6(0x3ba)]),Pe(0x2,O[_0x3cc0f6(0x3c1)])],Ie);var Ns=Object['defineProperty'],Ms=Object['getOwnPropertyDescriptor'],As=(_0x42ce37,_0x2a8b50,_0x34dc6d,_0x5e06a6)=>{const _0x1e2c2f=_0x3cc0f6;for(var _0x371146=_0x5e06a6>0x1?void 0x0:_0x5e06a6?Ms(_0x2a8b50,_0x34dc6d):_0x2a8b50,_0x4df831=_0x42ce37[_0x1e2c2f(0x411)]-0x1,_0x950c6c;_0x4df831>=0x0;_0x4df831--)(_0x950c6c=_0x42ce37[_0x4df831])&&(_0x371146=(_0x5e06a6?_0x950c6c(_0x2a8b50,_0x34dc6d,_0x371146):_0x950c6c(_0x371146))||_0x371146);return _0x5e06a6&&_0x371146&&Ns(_0x2a8b50,_0x34dc6d,_0x371146),_0x371146;},le=(_0x23a24a,_0x3e3522)=>(_0x1566cb,_0x59a1a6)=>_0x3e3522(_0x1566cb,_0x59a1a6,_0x23a24a);exports[_0x3cc0f6(0x1f8)]=class extends a['Disposable']{constructor(_0x5ba1d5,_0x48b31b,_0x353921,_0x35db7b,_0x1dac67){const _0x174b59=_0x3cc0f6;super(),u(this,_0x174b59(0x564),new Map()),u(this,_0x174b59(0x389),new Map()),u(this,_0x174b59(0x1ee),!0x1),(this[_0x174b59(0x5e0)]=_0x5ba1d5,this[_0x174b59(0x597)]=_0x48b31b,this[_0x174b59(0x3a7)]=_0x353921,this[_0x174b59(0x36b)]=_0x35db7b,this['_revisionService']=_0x1dac67,this['_setupBeforeClosingHandler']());}['disableLocalCache'](){const _0x1ca53e=_0x3cc0f6;this[_0x1ca53e(0x1ee)]=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x3cc0f6(0x32b)](){const _0xcb4e56=_0x3cc0f6;this[_0xcb4e56(0x1fb)]()['then'](()=>super[_0xcb4e56(0x32b)]());}async['loadOfflineData'](_0x11fdfa){const _0x5f5b61=_0x3cc0f6;return this[_0x5f5b61(0x1ee)]?null:this[_0x5f5b61(0x597)][_0x5f5b61(0x1da)](it(_0x11fdfa));}async[_0x3cc0f6(0x2d5)](_0x480907,_0x4be578){const _0x3fc2ef=_0x3cc0f6;return!!this[_0x3fc2ef(0x597)][_0x3fc2ef(0x250)](_0x480907,_0x4be578);}[_0x3cc0f6(0x5bd)](_0x695c61,_0x5e6b13,_0x19cdbb,_0x409068){const _0x1a902f=_0x3cc0f6,_0x4efeac=this[_0x1a902f(0x449)]['getCurrentRevOfUnit'](_0x695c61);this['_cachedData'][_0x1a902f(0x420)](_0x695c61,{'unitID':_0x695c61,'type':_0x5e6b13,'awaitingChangeset':_0x19cdbb,'mutations':_0x409068,'rev':_0x4efeac}),this[_0x1a902f(0x389)][_0x1a902f(0x2d0)](_0x695c61)||this[_0x1a902f(0x555)](_0x695c61);}['_scheduleSaving'](_0x21e0d5){const _0xc994be=_0x3cc0f6,_0x4dfdf5=this[_0xc994be(0x3dc)]();_0x4dfdf5===0x0?this['_saveCache'](_0x21e0d5):this[_0xc994be(0x389)][_0xc994be(0x420)](_0x21e0d5,setTimeout(()=>this[_0xc994be(0x540)](_0x21e0d5),_0x4dfdf5));}[_0x3cc0f6(0x3dc)](){const _0x11f46b=_0x3cc0f6;var _0x5ac687;return(_0x5ac687=this['_configService'][_0x11f46b(0x458)](pt))!=null?_0x5ac687:ns;}['_saveCache'](_0x55aeae){const _0x1d5ed3=_0x3cc0f6,_0x1b20da=this['_saveTaskMap'][_0x1d5ed3(0x3de)](_0x55aeae);return _0x1b20da!==void 0x0&&window[_0x1d5ed3(0x468)](_0x1b20da),this['_localStorageService'][_0x1d5ed3(0x250)](it(_0x55aeae),this[_0x1d5ed3(0x564)][_0x1d5ed3(0x3de)](_0x55aeae))['then'](()=>this[_0x1d5ed3(0x389)][_0x1d5ed3(0x3c4)](_0x55aeae));}async[_0x3cc0f6(0x1fb)](){const _0x3f32ba=_0x3cc0f6,_0x1ee072=[];this[_0x3f32ba(0x389)][_0x3f32ba(0x300)]((_0x3fcc3a,_0xfe8f06)=>{const _0x483f6a=_0x3f32ba;window[_0x483f6a(0x468)](_0x3fcc3a),_0x1ee072[_0x483f6a(0x430)](this[_0x483f6a(0x540)](_0xfe8f06)[_0x483f6a(0x25f)](()=>{const _0x3bd699=_0x483f6a;this[_0x3bd699(0x389)]['delete'](_0xfe8f06);}));}),await Promise[_0x3f32ba(0x260)](_0x1ee072);}['_setupBeforeClosingHandler'](){const _0xf2ca71=_0x3cc0f6;this[_0xf2ca71(0x217)](this[_0xf2ca71(0x3a7)][_0xf2ca71(0x2f9)](()=>{const _0xd91fec=_0xf2ca71;if(this[_0xd91fec(0x389)]['size'])return this[_0xd91fec(0x36b)]['t'](_0xd91fec(0x4fe));}));}},exports[_0x3cc0f6(0x1f8)]=As([le(0x0,a[_0x3cc0f6(0x5d3)]),le(0x1,a['ILocalStorageService']),le(0x2,A[_0x3cc0f6(0x54e)]),le(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),le(0x4,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)]))],exports[_0x3cc0f6(0x1f8)]);function it(_0x53087b){const _0x3f1c09=_0x3cc0f6;return _0x3f1c09(0x351)+_0x53087b;}var Ls=Object['defineProperty'],$s=Object[_0x3cc0f6(0x544)],js=(_0x57b3d8,_0x205001,_0x272854,_0x1c0a68)=>{const _0x1e6022=_0x3cc0f6;for(var _0x2ce093=_0x1c0a68>0x1?void 0x0:_0x1c0a68?$s(_0x205001,_0x272854):_0x205001,_0x3e3502=_0x57b3d8[_0x1e6022(0x411)]-0x1,_0x583d2a;_0x3e3502>=0x0;_0x3e3502--)(_0x583d2a=_0x57b3d8[_0x3e3502])&&(_0x2ce093=(_0x1c0a68?_0x583d2a(_0x205001,_0x272854,_0x2ce093):_0x583d2a(_0x2ce093))||_0x2ce093);return _0x1c0a68&&_0x2ce093&&Ls(_0x205001,_0x272854,_0x2ce093),_0x2ce093;},we=(_0xf67350,_0x4ad217)=>(_0x5790d8,_0x127afd)=>_0x4ad217(_0x5790d8,_0x127afd,_0xf67350);function Hs(_0xa78d09){const _0x45f418=_0x3cc0f6,{unitID:_0x33c309,mutations:_0x3eac52}=_0xa78d09;return{'unitId':_0x33c309,'subUnitId':_0x3eac52[0x0][_0x45f418(0x3f2)][_0x45f418(0x3b8)]};}let pe=class{constructor(_0x432825,_0x74248c,_0x2c969c){const _0xdc0d7b=_0x3cc0f6;this[_0xdc0d7b(0x5ba)]=_0x432825,this[_0xdc0d7b(0x5c3)]=_0x74248c,this[_0xdc0d7b(0x512)]=_0x2c969c;}[_0x3cc0f6(0x29d)](_0x136b93){const _0x5c19dc=_0x3cc0f6;var _0x4818fb,_0x36a9bf,_0x1ef3e2,_0x3d57a8;const _0x4aceeb=this[_0x5c19dc(0x5ba)][_0x5c19dc(0x3de)](C[_0x5c19dc(0x2fc)]),{unitId:_0x5f2252,subUnitId:_0x52201}=Hs(_0x136b93),_0x43278f=_0x4aceeb[_0x5c19dc(0x281)](_0x5f2252)[_0x5c19dc(0x416)](),_0xcab8d6=(_0x36a9bf=(_0x4818fb=this[_0x5c19dc(0x512)][_0x5c19dc(0x27c)](_0x5f2252))==null?void 0x0:_0x4818fb[_0x5c19dc(0x57f)]())==null?void 0x0:_0x36a9bf[_0x5c19dc(0x255)]();if(_0x43278f[_0x5c19dc(0x411)]===0x0||!_0x5f2252||!_0x52201)return;const _0x1522c2=[{'id':C[_0x5c19dc(0x56f)]['id'],'params':{'unitId':_0x5f2252,'subUnitId':_0xcab8d6,'selections':a[_0x5c19dc(0x241)][_0x5c19dc(0x26b)](_0x43278f)}}],_0x5713a0=this[_0x5c19dc(0x5c3)]['transformMutationsWithChangeset'](_0x136b93,_0x1522c2);if(!_[_0x5c19dc(0x50f)](_0x5713a0))throw _0x5713a0[_0x5c19dc(0x2c9)];const _0x951358=(_0x3d57a8=(_0x1ef3e2=_0x5713a0['m2Prime'][0x0])==null?void 0x0:_0x1ef3e2[_0x5c19dc(0x3f2)])==null?void 0x0:_0x3d57a8[_0x5c19dc(0x1df)];if(Array[_0x5c19dc(0x414)](_0x951358)&&_0x951358[_0x5c19dc(0x411)]){if(_0x951358[_0x5c19dc(0x411)]===_0x1522c2[0x0]['params'][_0x5c19dc(0x1df)][_0x5c19dc(0x411)]&&_0x951358['every']((_0x14fdfb,_0x107950)=>a[_0x5c19dc(0x45c)][_0x5c19dc(0x31f)](_0x14fdfb[_0x5c19dc(0x36a)],_0x1522c2[0x0][_0x5c19dc(0x3f2)][_0x5c19dc(0x1df)][_0x107950][_0x5c19dc(0x36a)])))return;this[_0x5c19dc(0x5ba)]['get'](a['ICommandService'])['executeCommand'](C['SetSelectionsOperation']['id'],{'unitId':_0x5f2252,'subUnitId':_0xcab8d6,'selections':_0x951358});}}};pe=js([we(0x0,a['Inject'](a[_0x3cc0f6(0x5e8)])),we(0x1,_[_0x3cc0f6(0x3ba)]),we(0x2,a[_0x3cc0f6(0x2f2)])],pe);const Oe=a[_0x3cc0f6(0x292)](_0x3cc0f6(0x356));var Dt=(_0x177094=>(_0x177094[_0x177094[_0x3cc0f6(0x2bf)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x177094[_0x177094['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x177094))(Dt||{});const nt=0x7530,rt=_0x3cc0f6(0x45e);class xs extends a[_0x3cc0f6(0x31b)]{constructor(){const _0x15b3a9=_0x3cc0f6;super(),u(this,_0x15b3a9(0x22f),a['Tools'][_0x15b3a9(0x256)]()),u(this,_0x15b3a9(0x521),new Set()),u(this,_0x15b3a9(0x40b),new Map()),u(this,'_heartbeatTimer',null),u(this,_0x15b3a9(0x48d),new Map()),u(this,_0x15b3a9(0x309),new Map()),this[_0x15b3a9(0x53a)]();}[_0x3cc0f6(0x32b)](){const _0x41c62a=_0x3cc0f6;super[_0x41c62a(0x32b)](),this[_0x41c62a(0x48d)][_0x41c62a(0x300)]((_0x1cd9e4,_0x333659)=>this[_0x41c62a(0x314)](_0x333659)),this[_0x41c62a(0x4db)]&&window[_0x41c62a(0x3c3)](this[_0x41c62a(0x4db)]);}['getUnitStatus$'](_0x3273e2){const _0x2b57da=_0x3cc0f6;return this['_ensureSubject'](_0x3273e2)[_0x2b57da(0x57c)](v[_0x2b57da(0x534)]());}[_0x3cc0f6(0x589)](_0x3d8f0c){const _0x2a0387=_0x3cc0f6;this[_0x2a0387(0x521)]['size']===0x0&&this[_0x2a0387(0x599)](),this[_0x2a0387(0x521)][_0x2a0387(0x44c)](_0x3d8f0c),this[_0x2a0387(0x3f4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x3d8f0c],'isForwarded':!0x1});}[_0x3cc0f6(0x3c7)](_0x4cda52){const _0x114530=_0x3cc0f6;this['_selfUnitIDs'][_0x114530(0x3c4)](_0x4cda52),this['_selfUnitIDs'][_0x114530(0x437)]===0x0&&this['_heartbeatTimer']&&window[_0x114530(0x3c3)](this[_0x114530(0x4db)]);}[_0x3cc0f6(0x53a)](){const _0x145b8e=_0x3cc0f6;this[_0x145b8e(0x217)](a[_0x145b8e(0x2ba)](v['fromEvent'](window,_0x145b8e(0x46f))[_0x145b8e(0x342)](_0x4c2c05=>{const _0x21727f=_0x145b8e;if(_0x4c2c05[_0x21727f(0x49f)]!==rt||!_0x4c2c05[_0x21727f(0x37d)])return;const _0x42e5f4=JSON[_0x21727f(0x5b4)](_0x4c2c05['newValue']);this[_0x21727f(0x5a1)](_0x42e5f4);}))),window[_0x145b8e(0x581)](_0x145b8e(0x4ea),()=>this['_send']({'type':0x1,'memberID':this[_0x145b8e(0x22f)],'unitIDs':Array[_0x145b8e(0x5b7)](this[_0x145b8e(0x521)])}));}['_handleEvent'](_0x60367d){const _0x7ad21c=_0x3cc0f6;switch(_0x60367d['type']){case 0x0:this['_handleJoinEvent'](_0x60367d);break;case 0x1:this[_0x7ad21c(0x5c8)](_0x60367d);break;case 0x2:this[_0x7ad21c(0x1cf)](_0x60367d);break;}}['_handleJoinEvent'](_0x525d23){const _0x2c3f82=_0x3cc0f6,{unitIDs:_0x11bbff,memberID:_0x5c02fa,isForwarded:_0x142c72}=_0x525d23;_0x11bbff[_0x2c3f82(0x300)](_0x4d4c4d=>{const _0x116c73=_0x2c3f82;if(!_0x142c72&&this['_unitOnClients']['has'](_0x4d4c4d)&&this[_0x116c73(0x38a)](_0x4d4c4d)['next'](0x1),!this[_0x116c73(0x40b)][_0x116c73(0x2d0)](_0x4d4c4d)||!this[_0x116c73(0x40b)][_0x116c73(0x3de)](_0x4d4c4d)[_0x116c73(0x2d0)](_0x5c02fa)){const _0x5905a0=this[_0x116c73(0x40b)][_0x116c73(0x3de)](_0x4d4c4d)||new Set();_0x5905a0['add'](_0x5c02fa),this[_0x116c73(0x40b)][_0x116c73(0x420)](_0x4d4c4d,_0x5905a0),this[_0x116c73(0x3f3)](_0x5c02fa);}}),_0x142c72||this[_0x2c3f82(0x3f4)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x2c3f82(0x521)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0xc1311d){const _0x40ab83=_0x3cc0f6;this[_0x40ab83(0x314)](_0xc1311d);const _0x44e973=window['setTimeout'](()=>{const _0x387735=_0x40ab83;this[_0x387735(0x40b)][_0x387735(0x300)](_0x2c2603=>{const _0x559185=_0x387735;_0x2c2603[_0x559185(0x3c4)](_0xc1311d);});},nt*0x2);this[_0x40ab83(0x48d)][_0x40ab83(0x420)](_0xc1311d,_0x44e973);}[_0x3cc0f6(0x314)](_0x1a463b){const _0x5e0917=_0x3cc0f6;if(this[_0x5e0917(0x48d)][_0x5e0917(0x2d0)](_0x1a463b)){const _0x1c75bb=this['_clearOtherTimers'][_0x5e0917(0x3de)](_0x1a463b);_0x1c75bb&&window[_0x5e0917(0x468)](_0x1c75bb),this[_0x5e0917(0x48d)][_0x5e0917(0x420)](_0x1a463b,null);}}['_handleLeaveEvent'](_0x36d5cb){const _0x3d89c7=_0x3cc0f6,{memberID:_0x31e861,unitIDs:_0xc73fbe}=_0x36d5cb;_0xc73fbe[_0x3d89c7(0x300)](_0x2e1458=>{const _0x378d43=_0x3d89c7;var _0x510bf1;const _0x4306eb=this[_0x378d43(0x40b)][_0x378d43(0x3de)](_0x2e1458);_0x4306eb&&(_0x4306eb['delete'](_0x31e861),(_0x510bf1=this[_0x378d43(0x38a)](_0x2e1458))==null||_0x510bf1['next'](_0x4306eb[_0x378d43(0x437)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x31e861);}['_handleHeartbeatEvent'](_0x56104e){const _0x46add8=_0x3cc0f6;this['_scheduleClearOtherTimer'](_0x56104e[_0x46add8(0x335)]);}['_send'](_0x499173){localStorage['setItem'](rt,JSON['stringify'](_0x499173));}['_scheduleHeartbeat'](){const _0x373afa=_0x3cc0f6;this[_0x373afa(0x4db)]=window[_0x373afa(0x5a4)](()=>{const _0x79afce=_0x373afa;this['_send']({'type':0x2,'memberID':this[_0x79afce(0x22f)]});},nt);}[_0x3cc0f6(0x38a)](_0x455079){const _0xcc60f1=_0x3cc0f6;return this['_unitStatus'][_0xcc60f1(0x2d0)](_0x455079)||this[_0xcc60f1(0x309)]['set'](_0x455079,new v[(_0xcc60f1(0x3ea))](0x0)),this[_0xcc60f1(0x309)][_0xcc60f1(0x3de)](_0x455079);}}function yt(_0x318e47){const _0x58aacb=_0x3cc0f6;let _0x1dd491='';for(const _0x194173 of _0x318e47){const {startOffset:_0x588b79,endOffset:_0x40c747,isActive:_0x152406,rangeType:_0x2bc699,segmentId:_0x13260b,segmentPage:_0x218fa7}=_0x194173;_0x1dd491[_0x58aacb(0x411)]&&(_0x1dd491+=','),_0x1dd491+=_0x588b79+':'+_0x40c747+':'+(_0x152406?'1':'0')+':'+_0x2bc699+':'+_0x13260b+':'+_0x218fa7;}return _0x1dd491;}function ks(_0x43ca14){const _0x35fa8b=_0x3cc0f6,_0x4385a8=_0x43ca14[_0x35fa8b(0x252)](','),_0x104517=[];for(const _0x357c39 of _0x4385a8){const [_0xf1d5a0,_0x27a432,_0x17fa78,_0x18e088,_0x4fc7ee,_0x293d7f]=_0x357c39[_0x35fa8b(0x252)](':');_0x104517[_0x35fa8b(0x430)]({'startOffset':Number(_0xf1d5a0),'endOffset':Number(_0x27a432),'collapsed':_0xf1d5a0===_0x27a432,'isActive':_0x17fa78==='1','rangeType':_0x18e088===a[_0x35fa8b(0x45f)][_0x35fa8b(0x262)]?a['DOC_RANGE_TYPE']['TEXT']:a[_0x35fa8b(0x45f)][_0x35fa8b(0x51b)],'segmentId':typeof _0x4fc7ee==_0x35fa8b(0x3d4)?String(_0x4fc7ee):'','segmentPage':Number(_0x293d7f!=null?_0x293d7f:-0x1)});}return _0x104517[_0x35fa8b(0x3f5)](_0x3523c3=>_0x3523c3['isActive'])||(_0x104517[0x0][_0x35fa8b(0x5dd)]=!0x0),_0x104517;}class qe extends a['RxDisposable']{constructor(){const _0x367744=_0x3cc0f6;super(...arguments),u(this,_0x367744(0x1e2),new v[(_0x367744(0x3ea))](null)),u(this,_0x367744(0x5a5),this[_0x367744(0x1e2)][_0x367744(0x459)]());}['syncEditingCollabCursor'](_0x399097){const _0x3c0a1f=_0x3cc0f6,{unitID:_0x1509f2,memberID:_0x470d39,textRanges:_0x200e0f}=_0x399097,_0x2850f0=yt(_0x200e0f);if(_0x2850f0==='')return;const _0x295016={'unitID':_0x1509f2,'memberID':_0x470d39,'selection':_0x2850f0};this[_0x3c0a1f(0x1e2)][_0x3c0a1f(0x517)](_0x295016);}}var Bs=Object[_0x3cc0f6(0x1c6)],Vs=Object[_0x3cc0f6(0x544)],Ws=(_0x519c8b,_0x2c11a6,_0x58273e,_0x45f7e8)=>{for(var _0x30fdaa=_0x45f7e8>0x1?void 0x0:_0x45f7e8?Vs(_0x2c11a6,_0x58273e):_0x2c11a6,_0x27a6a9=_0x519c8b['length']-0x1,_0x28cbe6;_0x27a6a9>=0x0;_0x27a6a9--)(_0x28cbe6=_0x519c8b[_0x27a6a9])&&(_0x30fdaa=(_0x45f7e8?_0x28cbe6(_0x2c11a6,_0x58273e,_0x30fdaa):_0x28cbe6(_0x30fdaa))||_0x30fdaa);return _0x45f7e8&&_0x30fdaa&&Bs(_0x2c11a6,_0x58273e,_0x30fdaa),_0x30fdaa;},ot=(_0x1c1696,_0x3bc190)=>(_0x4bd786,_0x225965)=>_0x3bc190(_0x4bd786,_0x225965,_0x1c1696);let Ce=class{constructor(_0xe97a3d,_0x3894c8){const _0x3500a8=_0x3cc0f6;this[_0x3500a8(0x5ba)]=_0xe97a3d,this['_transformService']=_0x3894c8;}[_0x3cc0f6(0x29d)](_0x267134){const _0x2a31ad=_0x3cc0f6;var _0x47c0e6;const _0x1b5d77=this[_0x2a31ad(0x5ba)][_0x2a31ad(0x3de)](re['DocSelectionManagerService']),_0x48b292=(_0x47c0e6=_0x1b5d77['getDocRanges']())!=null?_0x47c0e6:[];if(_0x48b292[_0x2a31ad(0x411)]===0x0)return;const _0x11a79a=[{'id':_0x2a31ad(0x2b2),'params':{'unitId':_0x267134[_0x2a31ad(0x426)],'actions':null,'textRanges':_0x48b292}}],_0x2835a5=this[_0x2a31ad(0x5c3)]['transformMutationsWithChangeset'](_0x267134,_0x11a79a);if(!_[_0x2a31ad(0x50f)](_0x2835a5))throw _0x2835a5[_0x2a31ad(0x2c9)];const _0x48f260=_0x2835a5['m2Prime'][0x0][_0x2a31ad(0x3f2)][_0x2a31ad(0x3b1)];Array[_0x2a31ad(0x414)](_0x48f260)&&_0x48f260[_0x2a31ad(0x411)]&&_0x1b5d77[_0x2a31ad(0x5b6)](_0x48f260,!0x1);}};Ce=Ws([ot(0x0,a['Inject'](a[_0x3cc0f6(0x5e8)])),ot(0x1,_['ITransformService'])],Ce);const Fs=new Set([C[_0x3cc0f6(0x52e)]['id']]);function at(_0x5b214c,_0x37aad8,_0x7069ca,_0xa35687,_0x25071d){const _0x2aea8b=_0x3cc0f6;var _0x57e413,_0x37280a,_0x3c04dd,_0x179430;const _0x5bd75f=[];for(const _0x1dc17c of _0x5b214c)if(Fs[_0x2aea8b(0x2d0)](_0x1dc17c['id'])){if(_0x5bd75f[_0x2aea8b(0x411)]>0x0)break;_0x5bd75f[_0x2aea8b(0x430)](_0x1dc17c);break;}else _0x5bd75f[_0x2aea8b(0x430)](_0x1dc17c);const _0x3276c8=(_0x37280a=(_0x57e413=_0x25071d[_0x2aea8b(0x3c2)]())==null?void 0x0:_0x57e413[_0x2aea8b(0x4b4)])!=null?_0x37280a:_0x2aea8b(0x317),_0x35b8a4=(_0x179430=(_0x3c04dd=_0x25071d[_0x2aea8b(0x3c2)]())==null?void 0x0:_0x3c04dd[_0x2aea8b(0x335)])!=null?_0x179430:_0x2aea8b(0x317);return{'changeset':{'unitID':_0x37aad8,'type':_[_0x2aea8b(0x301)](_0x7069ca[_0x2aea8b(0x220)](_0x37aad8)),'baseRev':_0xa35687[_0x2aea8b(0x3cb)](_0x37aad8),'revision':0x0,'userID':_0x3276c8,'memberID':_0x35b8a4,'mutations':_0x5bd75f},'pendingMutations':_0x5b214c[_0x2aea8b(0x1c3)](_0x5bd75f[_0x2aea8b(0x411)])};}function Gs(_0x2e4640,_0x253b2e,_0x1a4285,_0x34ca73,_0x63b500){const _0x1ea386=_0x3cc0f6;var _0x2cf0f2,_0x495f21,_0x56c012,_0x6b877;const _0x1e00b9=[_0x2e4640['reduce']((_0x448074,_0x114fa6)=>{const _0x39f9ce=_0x10ac;var _0x37e70e;const {id:_0x3a5b8c}=_0x448074,{id:_0x2921ab,type:_0x7b65b7}=_0x114fa6,_0x5ecb4a=(_0x37e70e=_0x448074['params'])!=null?_0x37e70e:{'actions':null},_0x5b5b25=_0x114fa6[_0x39f9ce(0x3f2)];if(_0x3a5b8c&&_0x3a5b8c!==_0x2921ab)throw new Error(_0x39f9ce(0x593)+_0x3a5b8c+'\x20-\x20'+_0x2921ab+'.');return{..._0x448074,'id':_0x2921ab,'type':_0x7b65b7,'params':{'unitId':_0x5b5b25[_0x39f9ce(0x3e7)],'textRanges':_0x5b5b25[_0x39f9ce(0x3b1)],'actions':a[_0x39f9ce(0x211)][_0x39f9ce(0x366)](_0x5ecb4a[_0x39f9ce(0x419)],_0x5b5b25['actions'])}};},{})],_0x55a478=(_0x495f21=(_0x2cf0f2=_0x63b500['getCurrentUser']())==null?void 0x0:_0x2cf0f2[_0x1ea386(0x4b4)])!=null?_0x495f21:_0x1ea386(0x317),_0x76ab0b=(_0x6b877=(_0x56c012=_0x63b500[_0x1ea386(0x3c2)]())==null?void 0x0:_0x56c012['memberID'])!=null?_0x6b877:'unknown';return{'changeset':{'unitID':_0x253b2e,'type':_['mapDocumentTypeToUniverType'](_0x1a4285[_0x1ea386(0x220)](_0x253b2e)),'baseRev':_0x34ca73['getCurrentRevOfUnit'](_0x253b2e),'revision':0x0,'userID':_0x55a478,'memberID':_0x76ab0b,'mutations':_0x1e00b9},'pendingMutations':[]};}function Ut(_0x1832a5,_0x419f66){const _0xff28dc=_0x3cc0f6,_0x4993b6=new v[(_0xff28dc(0x421))](0x1);return setTimeout(()=>_0x4993b6[_0xff28dc(0x517)](_0x419f66),_0x1832a5),_0x4993b6[_0xff28dc(0x459)]()[_0xff28dc(0x57c)](v[_0xff28dc(0x4e6)](0x1));}const Ys={'id':C[_0x3cc0f6(0x31a)]['id'],'type':a['CommandType'][_0x3cc0f6(0x41d)],'params':{}};var Ks=Object[_0x3cc0f6(0x1c6)],Xs=Object[_0x3cc0f6(0x544)],Q=(_0x2701e6,_0x25a111,_0x109d6f,_0x5bb21c)=>{const _0x35deb5=_0x3cc0f6;for(var _0x13f70f=_0x5bb21c>0x1?void 0x0:_0x5bb21c?Xs(_0x25a111,_0x109d6f):_0x25a111,_0x1549ee=_0x2701e6[_0x35deb5(0x411)]-0x1,_0x3d9974;_0x1549ee>=0x0;_0x1549ee--)(_0x3d9974=_0x2701e6[_0x1549ee])&&(_0x13f70f=(_0x5bb21c?_0x3d9974(_0x25a111,_0x109d6f,_0x13f70f):_0x3d9974(_0x13f70f))||_0x13f70f);return _0x5bb21c&&_0x13f70f&&Ks(_0x25a111,_0x109d6f,_0x13f70f),_0x13f70f;},g=(_0x2aab43,_0x510973)=>(_0x1b63d7,_0x19bd40)=>_0x510973(_0x1b63d7,_0x19bd40,_0x2aab43),D=(_0x5e7157=>(_0x5e7157['NOT_COLLAB']=_0x3cc0f6(0x226),_0x5e7157[_0x3cc0f6(0x2d7)]=_0x3cc0f6(0x219),_0x5e7157[_0x3cc0f6(0x3eb)]=_0x3cc0f6(0x1ce),_0x5e7157[_0x3cc0f6(0x59c)]='awaiting',_0x5e7157[_0x3cc0f6(0x4e8)]=_0x3cc0f6(0x552),_0x5e7157[_0x3cc0f6(0x56c)]=_0x3cc0f6(0x2cb),_0x5e7157[_0x3cc0f6(0x2c5)]=_0x3cc0f6(0x5d8),_0x5e7157[_0x3cc0f6(0x50c)]=_0x3cc0f6(0x550),_0x5e7157))(D||{});const Pt=0xea60;class ee{constructor(_0x5e3f3b,_0x4f676e,_0x51e505,_0x450c33,_0x36f78b,_0x28c429,_0x42498b,_0x1d22b3,_0x3735b6){const _0x472c58=_0x3cc0f6;u(this,_0x472c58(0x29a),null),u(this,'_pendingMutations',[]),(this[_0x472c58(0x426)]=_0x5e3f3b,this['type']=_0x4f676e,this[_0x472c58(0x3dd)]=_0x36f78b,this[_0x472c58(0x495)]=_0x28c429,this[_0x472c58(0x4e0)]=_0x42498b,this['_revisionService']=_0x1d22b3,this[_0x472c58(0x1e8)]=_0x3735b6,this[_0x472c58(0x29a)]=_0x51e505,this[_0x472c58(0x359)]=_0x450c33);}[_0x3cc0f6(0x3a4)](_0x417449){const _0x18292c=_0x3cc0f6,_0x27f67a=this['_revisionService'][_0x18292c(0x3cb)](this['unitID']);return _0x417449['revision']>_0x27f67a+0x1?(this[_0x18292c(0x3dd)][_0x18292c(0x48c)]({'from':_0x27f67a,'to':_0x417449[_0x18292c(0x511)]-0x1}),!0x0):!0x1;}[_0x3cc0f6(0x240)](_0x449b50){const _0x4aaae3=_0x3cc0f6;this[_0x4aaae3(0x4e0)][_0x4aaae3(0x46d)](this['unitID'],_0x449b50);}[_0x3cc0f6(0x486)](_0x2e23f6){const _0x21955f=_0x3cc0f6;var _0x52a0d8,_0x29b874;(_0x29b874=(_0x52a0d8=this[_0x21955f(0x3dd)])[_0x21955f(0x42a)])==null||_0x29b874['call'](_0x52a0d8,_0x2e23f6);}[_0x3cc0f6(0x4ee)](_0x591939){const _0x565538=_0x3cc0f6;var _0x33643f,_0x303218;return(_0x303218=(_0x33643f=this[_0x565538(0x3dd)])[_0x565538(0x56d)])==null?void 0x0:_0x303218[_0x565538(0x484)](_0x33643f,_0x591939);}[_0x3cc0f6(0x1e9)](_0x3c3baa){const _0x56f799=_0x3cc0f6;var _0x2c8eaf,_0x4d5f81,_0x384edd;return(_0x384edd=(_0x4d5f81=(_0x2c8eaf=this['_handler'])[_0x56f799(0x320)])==null?void 0x0:_0x4d5f81[_0x56f799(0x484)](_0x2c8eaf,_0x3c3baa))!=null?_0x384edd:_0x3c3baa;}[_0x3cc0f6(0x54d)](_0x641faa){const _0x5df423=_0x3cc0f6;var _0x58bc58,_0x3cf07a;if(this[_0x5df423(0x523)]===H['UNIVER_DOC']){const {unitID:_0x1f981f,mutations:_0x471048,memberID:_0x194f37}=_0x641faa,_0x28da61=_0x471048[0x0][_0x5df423(0x3f2)][_0x5df423(0x3b1)];Array[_0x5df423(0x414)](_0x28da61)&&_0x28da61[_0x5df423(0x411)]>0x0&&((_0x3cf07a=(_0x58bc58=this['_handler'])[_0x5df423(0x5ea)])==null||_0x3cf07a[_0x5df423(0x484)](_0x58bc58,{'unitID':_0x1f981f,'memberID':_0x194f37,'textRanges':_0x28da61}));}}[_0x3cc0f6(0x20d)](){const _0x32f863=_0x3cc0f6;this[_0x32f863(0x1e8)][_0x32f863(0x5bd)](this[_0x32f863(0x426)],this[_0x32f863(0x523)],this[_0x32f863(0x29a)],this[_0x32f863(0x359)]);}[_0x3cc0f6(0x502)](){const _0x2b879b=_0x3cc0f6;return this[_0x2b879b(0x449)][_0x2b879b(0x3cb)](this[_0x2b879b(0x426)]);}[_0x3cc0f6(0x2f4)](){const _0x4a4873=_0x3cc0f6;this[_0x4a4873(0x449)][_0x4a4873(0x2c1)](this[_0x4a4873(0x426)]);}[_0x3cc0f6(0x1e7)](_0x202aee){const _0x2f7f28=_0x3cc0f6;var _0x381824;const _0x4b5819=this[_0x2f7f28(0x1e9)](_0x202aee),_0x1e3d9d=a[_0x2f7f28(0x35f)](_0x4b5819['mutations'],this[_0x2f7f28(0x495)],{'fromCollab':!0x0});if(!_0x1e3d9d['result'])throw _0x1e3d9d[_0x2f7f28(0x2c9)]instanceof Error?_0x1e3d9d[_0x2f7f28(0x2c9)]:new Error((_0x381824=_0x1e3d9d[_0x2f7f28(0x2c9)])!=null?_0x381824:_0x2f7f28(0x58b));this[_0x2f7f28(0x4ee)](_0x4b5819),this[_0x2f7f28(0x240)](_0x202aee),this[_0x2f7f28(0x486)](_0x4b5819),this[_0x2f7f28(0x54d)](_0x4b5819),this[_0x2f7f28(0x2f4)]();}}let oe=class extends ee{constructor(_0x44e8a9,_0x24ed18,_0xa0d232,_0x51bc8a,_0x48fe6e,_0x4786e3,_0x2e6315,_0xd846c0,_0x23a623,_0x139ea7){const _0x25050d=_0x3cc0f6;super(_0x44e8a9,_0x24ed18,null,[],_0xa0d232,_0xd846c0,_0x2e6315,_0x51bc8a,_0x48fe6e),u(this,_0x25050d(0x5d6),_0x25050d(0x219)),(this[_0x25050d(0x5ba)]=_0x4786e3,this['_logService']=_0x23a623,this[_0x25050d(0x5c3)]=_0x139ea7);}[_0x3cc0f6(0x4dc)](_0x1eac69){const _0x9fd722=_0x3cc0f6,_0x174560=this['_injector'][_0x9fd722(0x2e1)](W,this[_0x9fd722(0x426)],this[_0x9fd722(0x523)],[_0x1eac69],this['_handler']);return _0x174560[_0x9fd722(0x1f0)](),_0x174560[_0x9fd722(0x20d)](),_0x174560;}[_0x3cc0f6(0x369)](_0xffb0b8){const _0x39186a=_0x3cc0f6;if(this[_0x39186a(0x3a4)](_0xffb0b8))return this['_injector'][_0x39186a(0x2e1)](k,this['unitID'],this[_0x39186a(0x523)],null,[],null,[_0xffb0b8],this[_0x39186a(0x3dd)]);try{const _0x3a9579=this[_0x39186a(0x5c3)]['transformMutationsWithChangeset'](_0xffb0b8,[Ys]);if(_['isTransformMutationsWithChangesetSuccess'](_0x3a9579)){const {c1Prime:_0x946d21}=_0x3a9579;return this[_0x39186a(0x1e7)](_0x946d21),this;}throw _0x3a9579[_0x39186a(0x2c9)];}catch(_0x367260){return this[_0x39186a(0x518)][_0x39186a(0x2c9)](_0x367260),this[_0x39186a(0x496)](!0x1);}}[_0x3cc0f6(0x496)](_0x373494){const _0x52c0de=_0x3cc0f6;return this[_0x52c0de(0x5ba)][_0x52c0de(0x2e1)](K,this[_0x52c0de(0x426)],this[_0x52c0de(0x523)],null,[],this[_0x52c0de(0x3dd)],_0x373494);}[_0x3cc0f6(0x4d6)](){const _0x26f110=_0x3cc0f6;throw new Error(_0x26f110(0x2d3));}[_0x3cc0f6(0x2e5)](){const _0x54b0e7=_0x3cc0f6;throw new Error(_0x54b0e7(0x402));}[_0x3cc0f6(0x332)](){return this;}['toggleOffline'](){const _0x26171f=_0x3cc0f6;return this[_0x26171f(0x5ba)][_0x26171f(0x2e1)](X,this[_0x26171f(0x426)],this[_0x26171f(0x523)],null,[],this[_0x26171f(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}['resend'](){const _0x450115=_0x3cc0f6;throw new Error(_0x450115(0x49c));}[_0x3cc0f6(0x436)](){const _0x59d401=_0x3cc0f6,_0xc05966=this[_0x59d401(0x449)]['getCurrentRevOfUnit'](this[_0x59d401(0x426)]);return this['_handler']['onMissingChangesets']({'from':_0xc05966,'to':0x0}),this['_injector'][_0x59d401(0x2e1)](k,this['unitID'],this[_0x59d401(0x523)],null,[],null,[],this[_0x59d401(0x3dd)]);}};oe=Q([g(0x3,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x4,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0x5,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x6,a[_0x3cc0f6(0x238)]),g(0x7,a[_0x3cc0f6(0x1d6)]),g(0x8,a['ILogService']),g(0x9,_[_0x3cc0f6(0x3ba)])],oe);let W=class extends ee{constructor(_0x4efd18,_0x13167b,_0x520c76,_0x4642d8,_0x63b76e,_0xf8f5b7,_0x23952e,_0x16aa7f,_0x176615,_0x4ff9f2,_0x485e7a,_0x3e25a2,_0x2edbe2,_0x1fd4d0){const _0x3d37d1=_0x3cc0f6;super(_0x4efd18,_0x13167b,null,_0x520c76,_0x4642d8,_0x4ff9f2,_0x1fd4d0,_0xf8f5b7,_0x23952e),u(this,_0x3d37d1(0x5d6),_0x3d37d1(0x1ce)),u(this,_0x3d37d1(0x388),null),u(this,'_sendingTimer',null),(this[_0x3d37d1(0x5ba)]=_0x63b76e,this[_0x3d37d1(0x5a7)]=_0x16aa7f,this['_logService']=_0x176615,this[_0x3d37d1(0x5e0)]=_0x485e7a,this[_0x3d37d1(0x5c3)]=_0x3e25a2,this[_0x3d37d1(0x34b)]=_0x2edbe2);}[_0x3cc0f6(0x4dc)](_0x5f2fba){const _0xf78549=_0x3cc0f6;return this[_0xf78549(0x359)]['push'](_0x5f2fba),this[_0xf78549(0x20d)](),this;}[_0x3cc0f6(0x369)](_0xef3d72){const _0x3e19c4=_0x3cc0f6;if(this[_0x3e19c4(0x3a4)](_0xef3d72))return this['_clearScheduledTask'](),this[_0x3e19c4(0x5ba)][_0x3e19c4(0x2e1)](k,this['unitID'],this['type'],null,this[_0x3e19c4(0x359)],null,[_0xef3d72],this[_0x3e19c4(0x3dd)]);try{const _0x985903=this[_0x3e19c4(0x5c3)][_0x3e19c4(0x338)](_0xef3d72,this['_pendingMutations']);if(_[_0x3e19c4(0x50f)](_0x985903)){const {c1Prime:_0x36bf7a,m2Prime:_0x383223}=_0x985903;this[_0x3e19c4(0x1e7)](_0x36bf7a);const _0x39461d=this[_0x3e19c4(0x5ba)][_0x3e19c4(0x2e1)](W,this['unitID'],this[_0x3e19c4(0x523)],_0x383223,this[_0x3e19c4(0x3dd)]);return this[_0x3e19c4(0x4d0)](),_0x39461d[_0x3e19c4(0x1f0)](this[_0x3e19c4(0x388)]?Math[_0x3e19c4(0x493)](0x0,new Date()['getTime']()-this['_scheduleTimestamp']):this[_0x3e19c4(0x5c1)]()),_0x39461d;}throw _0x985903[_0x3e19c4(0x2c9)];}catch(_0x4fb0ef){return this['_logService']['error'](_0x4fb0ef),this[_0x3e19c4(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](){const _0xfac648=_0x3cc0f6;throw new Error(_0xfac648(0x5e6));}['onRemoteRej'](){const _0x746908=_0x3cc0f6;throw new Error(_0x746908(0x20a));}[_0x3cc0f6(0x332)](){return this;}[_0x3cc0f6(0x4ef)](){const _0x33c905=_0x3cc0f6;return this[_0x33c905(0x4d0)](),this[_0x33c905(0x5ba)]['createInstance'](X,this[_0x33c905(0x426)],this['type'],null,this[_0x33c905(0x359)],this[_0x33c905(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x1f0)](_0x26293c){const _0x340de8=_0x3cc0f6,_0x164a92=_0x26293c!=null?_0x26293c:this['_getSendChangesetTimeout']();this[_0x340de8(0x388)]=new Date()[_0x340de8(0x3e6)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x4736a9=_0x340de8;this['_clearScheduledTask']();let _0x482cf7=null;switch(this[_0x4736a9(0x523)]){case H['UNIVER_SHEET']:{_0x482cf7=at(this[_0x4736a9(0x359)],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this[_0x4736a9(0x5a7)]);break;}case H['UNIVER_DOC']:{this[_0x4736a9(0x359)][_0x4736a9(0x4e7)](_0x4a0871=>_0x4a0871['id']===re[_0x4736a9(0x4c0)]['id'])?_0x482cf7=Gs(this['_pendingMutations'],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this[_0x4736a9(0x5a7)]):_0x482cf7=at(this[_0x4736a9(0x359)],this[_0x4736a9(0x426)],this[_0x4736a9(0x34b)],this[_0x4736a9(0x449)],this['_memberService']);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x4736a9(0x523)]+_0x4736a9(0x37b));}const {changeset:_0x5ce34d,pendingMutations:_0x4018ac}=_0x482cf7;this[_0x4736a9(0x3dd)][_0x4736a9(0x224)](_0x5ce34d);const _0x292fff=_0x4018ac[_0x4736a9(0x411)]?this[_0x4736a9(0x5ba)]['createInstance'](F,this[_0x4736a9(0x426)],this['type'],_0x5ce34d,_0x4018ac,this['_handler'],void 0x0):this[_0x4736a9(0x5ba)][_0x4736a9(0x2e1)](Y,this['unitID'],this[_0x4736a9(0x523)],_0x5ce34d,this['_handler']);_0x292fff[_0x4736a9(0x20d)](),this[_0x4736a9(0x3dd)]['onStateChange'](this,_0x292fff);},_0x164a92);}[_0x3cc0f6(0x5c1)](){const _0x4d8070=_0x3cc0f6;var _0x17344f;const _0x5f51ac=this[_0x4d8070(0x5e0)][_0x4d8070(0x458)]($);return(_0x17344f=_0x5f51ac==null?void 0x0:_0x5f51ac[_0x4d8070(0x302)])!=null?_0x17344f:Qt;}[_0x3cc0f6(0x259)](){const _0x24f56f=_0x3cc0f6;throw new Error(_0x24f56f(0x487));}[_0x3cc0f6(0x4d0)](){const _0x575199=_0x3cc0f6;this[_0x575199(0x209)]!=null&&(clearTimeout(this[_0x575199(0x209)]),this[_0x575199(0x209)]=null);}[_0x3cc0f6(0x496)](_0x3cf4bf){const _0x137b40=_0x3cc0f6;return this[_0x137b40(0x4d0)](),this['_injector'][_0x137b40(0x2e1)](K,this['unitID'],this['type'],null,this[_0x137b40(0x359)],this[_0x137b40(0x3dd)],_0x3cf4bf);}};W=Q([g(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x6,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0x7,a[_0x3cc0f6(0x573)](Z)),g(0x8,a[_0x3cc0f6(0x24d)]),g(0x9,a[_0x3cc0f6(0x1d6)]),g(0xa,a[_0x3cc0f6(0x5d3)]),g(0xb,_[_0x3cc0f6(0x3ba)]),g(0xc,a[_0x3cc0f6(0x2f2)]),g(0xd,a['IUndoRedoService'])],W);let Y=class extends ee{constructor(_0x104ac0,_0x45ea84,_0x25df49,_0x397265,_0x2d41c5,_0x6757f3,_0x496150,_0x147f8a,_0x14e2c1,_0x2c7960,_0x2af7ea){const _0x48a947=_0x3cc0f6;super(_0x104ac0,_0x45ea84,_0x25df49,[],_0x397265,_0x147f8a,_0x2af7ea,_0x6757f3,_0x496150),u(this,_0x48a947(0x5d6),_0x48a947(0x2d2)),u(this,_0x48a947(0x21e),0x0),u(this,'_resendTimer'),u(this,_0x48a947(0x254)),(this[_0x48a947(0x5ba)]=_0x2d41c5,this[_0x48a947(0x518)]=_0x14e2c1,this[_0x48a947(0x5c3)]=_0x2c7960);}['appendMutation'](_0x2a5c16){const _0x48ae54=_0x3cc0f6;this['_clearScheduledTask']();const _0xde90a8=this[_0x48ae54(0x5ba)]['createInstance'](F,this[_0x48ae54(0x426)],this[_0x48ae54(0x523)],this[_0x48ae54(0x29a)],[_0x2a5c16],this['_handler'],this[_0x48ae54(0x339)]);return _0xde90a8[_0x48ae54(0x20d)](),_0xde90a8;}['onRemoteChangeset'](_0x149527){const _0x1d05dc=_0x3cc0f6;if(this[_0x1d05dc(0x3a4)](_0x149527))return this[_0x1d05dc(0x4d0)](),this[_0x1d05dc(0x5ba)]['createInstance'](k,this[_0x1d05dc(0x426)],this[_0x1d05dc(0x523)],this[_0x1d05dc(0x29a)],[],null,[_0x149527],this[_0x1d05dc(0x3dd)]);try{const _0x4b222e=this[_0x1d05dc(0x5c3)][_0x1d05dc(0x304)]([_0x149527],[this[_0x1d05dc(0x29a)]],!0x1);if(_[_0x1d05dc(0x537)](_0x4b222e)){const {c1Prime:_0x9b4e45,c2Prime:_0x1bf54a}=_0x4b222e;this[_0x1d05dc(0x1e7)](_0x9b4e45[0x0]),_0x1bf54a[0x0][_0x1d05dc(0x4a1)]=this[_0x1d05dc(0x502)](),this[_0x1d05dc(0x4d0)]();const _0x31bf25=this[_0x1d05dc(0x5ba)][_0x1d05dc(0x2e1)](Y,this['unitID'],this[_0x1d05dc(0x523)],_0x1bf54a[0x0],this[_0x1d05dc(0x3dd)]);return _0x31bf25[_0x1d05dc(0x20d)](),_0x31bf25;}return this['_onConflict'](!0x1);}catch(_0x34b2c5){return this[_0x1d05dc(0x518)][_0x1d05dc(0x2c9)](_0x34b2c5),this[_0x1d05dc(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](_0x5aa4f2){const _0x262b0f=_0x3cc0f6;this[_0x262b0f(0x4d0)]();const _0x49a256=this[_0x262b0f(0x449)][_0x262b0f(0x3cb)](this[_0x262b0f(0x426)]);if(_0x5aa4f2[_0x262b0f(0x511)]<_0x49a256-0x1)return this;if(this['_checkMissing'](_0x5aa4f2))return this[_0x262b0f(0x5ba)]['createInstance'](k,this[_0x262b0f(0x426)],this[_0x262b0f(0x523)],null,[],this[_0x262b0f(0x29a)],[],this[_0x262b0f(0x3dd)]);this[_0x262b0f(0x2f4)]();const _0x4e656f=this[_0x262b0f(0x5ba)][_0x262b0f(0x2e1)](oe,this[_0x262b0f(0x426)],this[_0x262b0f(0x523)],this[_0x262b0f(0x3dd)]);return _0x4e656f['_updateLocalCache'](),_0x4e656f;}['onRemoteRej'](_0x1dfa01){const _0x368a19=_0x3cc0f6;return this[_0x368a19(0x496)](!!(_0x1dfa01!=null&&_0x1dfa01['isPermissionRej']));}[_0x3cc0f6(0x332)](_0x1ade24){const _0x529f45=_0x3cc0f6;return this[_0x529f45(0x21e)]>Pt?this[_0x529f45(0x4ef)]():(this[_0x529f45(0x339)]=Ut(this[_0x529f45(0x21e)],{'timeout':this[_0x529f45(0x21e)],'reqId':_0x1ade24['reqId']}),this[_0x529f45(0x254)]=this[_0x529f45(0x339)][_0x529f45(0x342)](({reqId:_0xec0f84,timeout:_0x2293a2})=>{const _0x5b63e0=_0x529f45;this[_0x5b63e0(0x2e2)](_0xec0f84,_0x2293a2);}),this);}['toggleOffline'](){const _0x1e90c5=_0x3cc0f6;return this[_0x1e90c5(0x4d0)](),this['_injector'][_0x1e90c5(0x2e1)](X,this[_0x1e90c5(0x426)],this[_0x1e90c5(0x523)],this[_0x1e90c5(0x29a)],[],this[_0x1e90c5(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x259)](){const _0xe44609=_0x3cc0f6;this[_0xe44609(0x3dd)][_0xe44609(0x224)](this[_0xe44609(0x29a)]);}[_0x3cc0f6(0x496)](_0x4081c1){const _0x4b3f26=_0x3cc0f6;return this[_0x4b3f26(0x4d0)](),this[_0x4b3f26(0x5ba)][_0x4b3f26(0x2e1)](K,this[_0x4b3f26(0x426)],this[_0x4b3f26(0x523)],this[_0x4b3f26(0x29a)],[],this[_0x4b3f26(0x3dd)],_0x4081c1);}['_resendWithTimeout'](_0x83c971,_0x4ff7c6){const _0x5ebef2=_0x3cc0f6;var _0x19dbb7;_0x83c971===((_0x19dbb7=this[_0x5ebef2(0x29a)])==null?void 0x0:_0x19dbb7[_0x5ebef2(0x236)])&&(this[_0x5ebef2(0x259)](),this[_0x5ebef2(0x21e)]=_0x4ff7c6===0x0?0x3e8:_0x4ff7c6*0x2);}['_clearScheduledTask'](){const _0xaa847e=_0x3cc0f6;var _0xdd8008;(_0xdd8008=this[_0xaa847e(0x254)])==null||_0xdd8008['unsubscribe'](),this[_0xaa847e(0x21e)]=0x0;}};Y=Q([g(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x6,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0x7,a['ICommandService']),g(0x8,a[_0x3cc0f6(0x24d)]),g(0x9,_[_0x3cc0f6(0x3ba)]),g(0xa,a[_0x3cc0f6(0x238)])],Y);let F=class extends ee{constructor(_0x2aa704,_0x51f320,_0x576e59,_0x36ab21,_0x328496,_0x5820c8,_0x3b386f,_0x52443c,_0x2bde30,_0x41fb15,_0x49379a,_0x5b7cdb,_0x54022e){const _0x2bb459=_0x3cc0f6;super(_0x2aa704,_0x51f320,_0x576e59,_0x36ab21,_0x328496,_0x41fb15,_0x54022e,_0x52443c,_0x2bde30),u(this,_0x2bb459(0x5d6),_0x2bb459(0x552)),u(this,_0x2bb459(0x21e),0x0),u(this,_0x2bb459(0x339)),u(this,'_sender'),(this[_0x2bb459(0x5ba)]=_0x3b386f,this['_logService']=_0x49379a,this[_0x2bb459(0x5c3)]=_0x5b7cdb,_0x5820c8&&(this[_0x2bb459(0x339)]=_0x5820c8,this['_sender']=this[_0x2bb459(0x339)][_0x2bb459(0x342)](({reqId:_0x510159,timeout:_0x4174e7})=>{const _0x3feb8b=_0x2bb459;this[_0x3feb8b(0x2e2)](_0x510159,_0x4174e7);})));}[_0x3cc0f6(0x4dc)](_0x1d3fc3){const _0x3b3716=_0x3cc0f6;return this[_0x3b3716(0x359)][_0x3b3716(0x430)](_0x1d3fc3),this;}[_0x3cc0f6(0x369)](_0x413ac7){const _0x233a5d=_0x3cc0f6;if(this[_0x233a5d(0x3a4)](_0x413ac7))return this[_0x233a5d(0x4d0)](),this[_0x233a5d(0x5ba)][_0x233a5d(0x2e1)](k,this[_0x233a5d(0x426)],this[_0x233a5d(0x523)],this['_awaitingChangeset'],this[_0x233a5d(0x359)],null,[_0x413ac7],this[_0x233a5d(0x3dd)]);try{const _0x5ee759=this[_0x233a5d(0x5c3)]['transformChangesets']([_0x413ac7],[this[_0x233a5d(0x29a)]],!0x1);if(_[_0x233a5d(0x537)](_0x5ee759)){const {c1Prime:_0x387561,c2Prime:_0x4d89c0}=_0x5ee759,_0x2a1c27=this['_transformService'][_0x233a5d(0x338)](_0x387561[0x0],this[_0x233a5d(0x359)]);if(_[_0x233a5d(0x50f)](_0x2a1c27)){const {c1Prime:_0x2f1be7,m2Prime:_0x5503fc}=_0x2a1c27;return this[_0x233a5d(0x1e7)](_0x2f1be7),_0x4d89c0[0x0][_0x233a5d(0x4a1)]=this['_getCurrentRevision'](),this[_0x233a5d(0x4d0)](),this[_0x233a5d(0x5ba)]['createInstance'](F,this[_0x233a5d(0x426)],this[_0x233a5d(0x523)],_0x4d89c0[0x0],_0x5503fc,this[_0x233a5d(0x3dd)],void 0x0);}throw _0x2a1c27['error'];}throw _0x5ee759['error'];}catch(_0x40402e){return this['_logService'][_0x233a5d(0x2c9)](_0x40402e),this[_0x233a5d(0x496)](!0x1);}}[_0x3cc0f6(0x4d6)](_0x51887f){const _0x30afbd=_0x3cc0f6;if(this['_clearScheduledTask'](),this[_0x30afbd(0x3a4)](_0x51887f))return this[_0x30afbd(0x5ba)]['createInstance'](k,this[_0x30afbd(0x426)],this[_0x30afbd(0x523)],null,this[_0x30afbd(0x359)],this[_0x30afbd(0x29a)],[],this[_0x30afbd(0x3dd)]);this[_0x30afbd(0x2f4)]();const _0x2e7e5a=this['_injector'][_0x30afbd(0x2e1)](W,this['unitID'],this[_0x30afbd(0x523)],this[_0x30afbd(0x359)],this[_0x30afbd(0x3dd)]);return _0x2e7e5a[_0x30afbd(0x1f0)](),_0x2e7e5a[_0x30afbd(0x20d)](),_0x2e7e5a;}['onRemoteRej'](_0x179bd8){const _0x505ab9=_0x3cc0f6;return this[_0x505ab9(0x496)](!!(_0x179bd8!=null&&_0x179bd8[_0x505ab9(0x4c8)]));}[_0x3cc0f6(0x332)](_0x468794){const _0x25dafc=_0x3cc0f6;return this['_resendTimeout']>Pt?this[_0x25dafc(0x4ef)]():(this[_0x25dafc(0x339)]=Ut(this[_0x25dafc(0x21e)],{'timeout':this['_resendTimeout'],'reqId':_0x468794[_0x25dafc(0x236)]}),this['_sender']=this[_0x25dafc(0x339)]['subscribe'](({reqId:_0x3a1fb5,timeout:_0x3211de})=>{const _0x5795d4=_0x25dafc;this[_0x5795d4(0x2e2)](_0x3a1fb5,_0x3211de);}),this);}[_0x3cc0f6(0x4ef)](){const _0x24dc69=_0x3cc0f6;return this[_0x24dc69(0x4d0)](),this[_0x24dc69(0x5ba)][_0x24dc69(0x2e1)](X,this[_0x24dc69(0x426)],this['type'],this['_awaitingChangeset'],this[_0x24dc69(0x359)],this[_0x24dc69(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x259)](){const _0x449e82=_0x3cc0f6;this[_0x449e82(0x3dd)][_0x449e82(0x224)](this[_0x449e82(0x29a)]);}[_0x3cc0f6(0x496)](_0x4ad6d1){const _0x453e4d=_0x3cc0f6;return this[_0x453e4d(0x4d0)](),this[_0x453e4d(0x5ba)][_0x453e4d(0x2e1)](K,this[_0x453e4d(0x426)],this[_0x453e4d(0x523)],null,this[_0x453e4d(0x359)],this[_0x453e4d(0x3dd)],_0x4ad6d1);}[_0x3cc0f6(0x2e2)](_0x448d9b,_0xf98ede){const _0x14f75d=_0x3cc0f6;var _0x348bb3;_0x448d9b===((_0x348bb3=this['_awaitingChangeset'])==null?void 0x0:_0x348bb3[_0x14f75d(0x236)])&&(this[_0x14f75d(0x259)](),this[_0x14f75d(0x21e)]=_0xf98ede===0x0?0x3e8:_0xf98ede*0x2);}[_0x3cc0f6(0x4d0)](){const _0x3716ab=_0x3cc0f6;var _0x502257;(_0x502257=this[_0x3716ab(0x254)])==null||_0x502257[_0x3716ab(0x5ad)](),this[_0x3716ab(0x21e)]=0x0;}};F=Q([g(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x7,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x8,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0x9,a[_0x3cc0f6(0x1d6)]),g(0xa,a[_0x3cc0f6(0x24d)]),g(0xb,_[_0x3cc0f6(0x3ba)]),g(0xc,a[_0x3cc0f6(0x238)])],F);let K=class extends ee{constructor(_0x68bc39,_0x2062e1,_0x3be0f2,_0x1403c7,_0x5f1aa5,_0x179efa=!0x1,_0x2b57aa,_0x1d193f,_0x4cbae0,_0x266300,_0x2994ba,_0x4968d9,_0x29b5a9){const _0x20be8a=_0x3cc0f6;super(_0x68bc39,_0x2062e1,_0x3be0f2,_0x1403c7,_0x5f1aa5,_0x1d193f,_0x4cbae0,_0x2994ba,_0x266300),u(this,_0x20be8a(0x5d6),_0x20be8a(0x5d8)),(this[_0x20be8a(0x561)]=_0x179efa,this[_0x20be8a(0x1dd)]=_0x2b57aa,this[_0x20be8a(0x36b)]=_0x4968d9,this[_0x20be8a(0x5e5)]=_0x29b5a9,this['_showConflictNotification'](),this[_0x20be8a(0x313)](),this['_disableEditing']());}[_0x3cc0f6(0x4dc)](){return this;}[_0x3cc0f6(0x369)](){return this;}[_0x3cc0f6(0x4d6)](){return this;}[_0x3cc0f6(0x2e5)](){return this;}[_0x3cc0f6(0x332)](){return this;}[_0x3cc0f6(0x4ef)](){return this;}[_0x3cc0f6(0x43b)](){return this;}['resend'](){const _0x6bb541=_0x3cc0f6;throw new Error(_0x6bb541(0x547));}[_0x3cc0f6(0x313)](){const _0x28d4f3=_0x3cc0f6;this[_0x28d4f3(0x1e8)][_0x28d4f3(0x5bd)](this[_0x28d4f3(0x426)],this[_0x28d4f3(0x523)],null,[]);}['_showConflictNotification'](){const _0x4d9508=_0x3cc0f6;this[_0x4d9508(0x561)]?this[_0x4d9508(0x5e5)][_0x4d9508(0x438)]({'title':this[_0x4d9508(0x36b)]['t']('permission.title'),'content':this[_0x4d9508(0x36b)]['t'](_0x4d9508(0x268)),'type':_0x4d9508(0x2c9),'duration':0x0}):this[_0x4d9508(0x5e5)][_0x4d9508(0x438)]({'title':this['_localeService']['t'](_0x4d9508(0x4df)),'content':this[_0x4d9508(0x36b)]['t']('conflict.content'),'type':_0x4d9508(0x2c9),'duration':0x0});}[_0x3cc0f6(0x247)](){const _0x2bff2c=_0x3cc0f6;this[_0x2bff2c(0x1dd)]['updatePermissionPoint'](new C[(_0x2bff2c(0x289))](this[_0x2bff2c(0x426)])['id'],!0x1);}};K=Q([g(0x6,a['Inject'](a[_0x3cc0f6(0x27b)])),g(0x7,a[_0x3cc0f6(0x1d6)]),g(0x8,a[_0x3cc0f6(0x238)]),g(0x9,a['Inject'](exports[_0x3cc0f6(0x1f8)])),g(0xa,a['Inject'](_[_0x3cc0f6(0x1c9)])),g(0xb,a['Inject'](a[_0x3cc0f6(0x2b9)])),g(0xc,A['INotificationService'])],K);let X=class extends ee{constructor(_0x5d0080,_0x252d6e,_0x39475a,_0x1f0c69,_0x504e0e,_0x30835a,_0x444a14,_0x22b35a,_0x1d6428,_0x345ec3){const _0x3d0fbd=_0x3cc0f6;super(_0x5d0080,_0x252d6e,_0x39475a,_0x1f0c69,_0x504e0e,_0x1d6428,_0x345ec3,_0x444a14,_0x22b35a),u(this,_0x3d0fbd(0x5d6),'offline'),this[_0x3d0fbd(0x5ba)]=_0x30835a;}[_0x3cc0f6(0x4dc)](_0x57d955){const _0x606307=_0x3cc0f6;return this[_0x606307(0x359)]['push'](_0x57d955),this[_0x606307(0x20d)](),this;}[_0x3cc0f6(0x369)](_0x419465){const _0x1972f2=_0x3cc0f6;throw new Error(_0x1972f2(0x46e));}[_0x3cc0f6(0x4d6)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x3cc0f6(0x2e5)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x3cc0f6(0x4ef)](){return this;}[_0x3cc0f6(0x43b)](){const _0x585cb8=_0x3cc0f6,{_injector:_0x3ec4ea,_pendingMutations:_0x915ccb,_awaitingChangeset:_0x5b6fa4,unitID:_0x4d118a,_handler:_0x15eb20,type:_0x5a6512}=this,_0x1a2a8a=wt(_0x3ec4ea,_0x4d118a,_0x5a6512,_0x5b6fa4,_0x915ccb,_0x15eb20);return _0x1a2a8a instanceof W?_0x1a2a8a[_0x585cb8(0x1f0)]():(_0x1a2a8a instanceof F||_0x1a2a8a instanceof Y)&&_0x1a2a8a['resend'](),_0x1a2a8a;}[_0x3cc0f6(0x259)](){throw new Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};X=Q([g(0x5,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x6,a['Inject'](_[_0x3cc0f6(0x1c9)])),g(0x7,a['Inject'](exports['LocalCacheService'])),g(0x8,a['ICommandService']),g(0x9,a[_0x3cc0f6(0x238)])],X);function _0x48f6(){const _0x3a98ab=['saveSnapshot','_shouldReportTelemetry','take','every','AWAITING_WITH_PENDING','[CollaborationUndoRedoService]','unload','_members','unshift','readAsDataURL','_transformIMECache','toggleOffline','UniverCollaborationPlugin','getInterceptPoints','updatePermissionPoint','_shapes','_backgroundColor','_onMessage','COLLAB_SUBMIT_CHANGESET_URL_KEY','_getMergeRange','find','update','debounceTime','UNKNOWN_CODE','catch','DocIMEInputManagerService','collaboration-client.offline-data-not-saved','_render','_clearCollaborationTimeoutTimer','handleDeleteRangeMoveLeft','_getCurrentRevision','_scheduleCollaborationTimeoutTimer','socket$','UNRECOGNIZED','ImageIoService','black','reduce','_sendHeartbeat','_onCursorUpdate','shareReplay','OFFLINE','debounce','toRgbString','isTransformMutationsWithChangesetSuccess','extend','revision','_instanceService','file','_uiPartsService','RECV','JOIN','next','_logService','color','name','RECT','EXCHANGE_SIGN_URL_SERVER_URL_KEY','DeleteRangeMoveUpCommandId','engine','_onJoinRoomEvent','json','_selfUnitIDs','DocSkeletonManagerService','type','transformStack\x20failed!','socket\x20close','createCollaborator','getUnitId','shouldCloseConn','TRANSFORM_CHANGE_OBSERVABLE_TYPE','flatMap','_initStatusComponent','_context','initWorkbookPermissionChange','InsertSheetMutation','getDocRanges','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','originalMeta','_docSkeleton','InsertRowCommandId','distinctUntilChanged','getValue','registerComponent','isTransformChangesetsSuccess','permissionRejEvent','[CollaborationSession]','_init','M0\x200H16V16H0z','COMMENT_UPDATE','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','round','2498900XKrMOv','_saveCache','getTypeOfUnitAdded$','LIVESHARE_FETCH_OPERATIONS','_sendHeartbeatTimer','getOwnPropertyDescriptor','filter','LOGIN_URL_KEY','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_collaborationSessionService','APPLY_PERMISSION_DENIED','serializeCombRequest','INVALID_ARGUMENT','_singleActiveUnitService','_syncEditingCollabCursor','IBeforeCloseService','session','offline','COLORS','awaiting_with_pending','useRef','list','_scheduleSaving','setTimeout','_updateCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','whenReady','_changesetReqId','_decreaseWaiting','isInternalEditorID','_submitChangeset','_onConnectionFailed','/object/','telemetry\x20info\x20is\x20not\x20initialized','_isPermissionRej','indexOf','currentTheme$','_cachedData','min','CommandType','useObservable','saveChangeset','restore','WebURLService','SheetSkeletonManagerService','FETCH_MISS','onTransformIME','Warning','SetSelectionsOperation','merge','editing\x20status\x20changed\x20to','_drawAnchor','Inject','event$','_stopTelemetryCollaborationNewChangeset','BASE64','reject','_type','getViewport','objectType','requireSession','pipe','0\x200\x2016\x2016','[UniverCollaborationClientPlugin]','getActiveSheet','_onOffline','addEventListener','_loadDoc','AuthzIoHttpService','session.room-full','takeUntil','collabStatus.notCollab','startsWith','_substituteUndoStack','editingUnit','withCredentials','[CollaborationState]:\x20apply\x20error!','IContextService','session.will-retry','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','onCommentUpdate','_waitCount','image/jpg','InsertRangeMoveDownCommandId','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','csRejEvent','_getScale','_event$','_localStorageService','_fetchMissChangesets','_scheduleHeartbeat','Tooltip','objects','AWAITING','cursorInfo$','@univerjs/docs-ui','liveShareNewHost','/universer-api/comb','_handleEvent','textEncoder','_initStatusListener','setInterval','collabCursorState$','Unknown\x20user','_memberService','collab-rect-range-','_exhaustRemoteChangesetQueue','runRefRangeMutations','NOT_FOUND','PERMISSION_REJ','unsubscribe','98UbgTHf','ERROR_EXCEED_SIZE','_undoStacks','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_document','skeleton','parse','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','replaceTextRanges','from','save','infoRsp','_injector','univer-offline','CHANGESET_SHOULD_RETRY','updateOfflineData','target','code','online','_getSendChangesetTimeout','Error','_transformService','univer-online-status-title','c1Prime','action','_textBubble','_handleLeaveEvent','_HTTPService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','throttleTime','getMember','_session','_registerDependencies','USERS_LEAVE','enableAuthServer','_sessions','complete','IConfigService','init','DataLoaderController','status','send','conflict','getParam','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','icon','_removeCollabCursors','isActive','getVpScrollXYInfoByPosToVp','576780HCjpqK','_configService','registerHTTPInterceptor','/universer-api/file/{fileID}/sign-url','_candidateSocket','loginUrlKey','_notificationService','[PendingState]:\x20received\x20acknowledgement.','?url=','Injector','_socketMessageSubscription','onSyncEditingCollabCursor','mapTo','_onRefRangeChange','state$','IDLE','_lastPointer','url','@univerjs/docs','slice','UUID','_commentService','defineProperty','image/jpeg','DeleteRangeMoveLeftCommandId','RevisionService','_socketService','&to=','COMPLETION_FINISHED','_messageService','pending','_handleHeartbeatEvent','getRandomValues','_drawTextRange','contains','_unlockTransition','_startTelemetryCollaborationNewChangeset','_renderManagerService','ICommandService','getRangePointData','UPDATE_PERMISSION_OBJ','&assign=','getItem','SheetCollabCursorShape','[CollaborationSessionService]:\x20socket\x20error','_permissionService','findNodePositionByCharIndex','selections','_replayCachedMutations','_colorAssignService','_collabCursorState$','_updateSubUnitFromURLParams','ERROR_IMAGE_TYPE','cmd','focused$','_executeRemoteChangeset','_localCacheService','_transformRemoteChangesetByIMECache','_scene','sessionStatus$','selection','visibilityState','_disabled','random','_schedule','getMemberID','post','session.connection-failed','jiqing500','_initCloseConn','_assignedColors','PERMISSION_DENIED','LocalCacheService','getTypeOfUnitDisposed$','_httpService','exhaustSavingTask','transformRemoteChangeset','_collabSessionService','univer-online','triggerDblclick','snapshot','m2Prime','mergeOverrideWithDependencies','getSheetBlock','_substituteRedoStack','312582hvTzdm','CollaborationSession','/universer-api/snapshot/','history','_sendingTimer','[PendingState]:\x20received\x20rejection.','_hovered','rev','_updateLocalCache','_telemetryInfo','setParam','hide','JSONX','univerjs-icon\x20univerjs-icon-','TOO_MANY_REQUESTS','_loadSheet','InsertRangeMoveRightCommandId','children','disposeWithMe','_getRedoStack','synced','handleDeleteRangeMoveUp','eventID','FileId','translate(.97)','_resendTimeout','HEARTBEAT_INTERVAL_KEY','getUnitType','setActiveRange','3vMDXuL','_toggleOnline','onSendChangeset','handleIRemoveCol','not_collab','_tryEnsureSocket','_change$','FETCH_MISSING','prototype','liveShareOperation','_clearRedo','CONNECTOR_DATA_TOO_LARGE','tag','_id','_timeoutTimer','2504888gLJjmG','backgroundColor','getUnhiddenWorksheets','colorChannel1','getAncestorScale','reqId','touchDependencies','IUndoRedoService','TEXT_RANGE_LAYER_INDEX','unitId\x20is\x20not\x20found','startTime','collab-client.tooltip.reconnect','getSheetBySheetId','off-line-single_clip0_910_343','SUBMIT_CHANGESET','_transformUndoredo','Tools','routeKey','_initCommandExecutedListener','currentColor','with','red300','_disableEditing','evenodd','onTransformChange$','_collaborationTimeoutTimer','@univerjs/sheets-ui','_getSignURL','ILogService','getDeserializedSheetBlock','COLLAB_WEB_SOCKET_URL_KEY','setItem','/block/','split','_applyRemoteChangeset','_sender','getSheetId','generateRandomId','univer-online-status','UNIVER_UNKNOWN','resend','listRoles','CollaborationStatus','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','concatMap','fillRule','then','all','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','TEXT','getCoordByCell','auth.needGotoLoginAlert','@univerjs/telemetry','getRenderById','body','permission.content','symbol','substring','deepClone','retryConnectingInterval','text','onCommandExecuted','NodePositionConvertToCursor','disableLocalCache','@univerjs/core','makeDirty','Optional','updateMember','PSEUDO_FETCH_MISSING_RESULT','combineLatest','deserializeToCombResponse','CHANGESET_REVISION_CONFILICT','\x0aAfter:\x20','POST','IPermissionService','getUnit','CompressMutationService','_initEventListeners','toStringTag','uni.network.url-service','getWorkbookSelections','map','enableOfflineEditing','UPDATE_CURSOR','popstate','_socket','localeService','interceptor','WorkbookEditablePermission','_updateLocalCursor','docStateChange$','snapshotServerUrl','RETRY_CONNECTING_MAX_COUNT','image/bmp','_imageSourceCache','_refRangeService','SNAPSHOT_INVALID_SNAPSHOT','createIdentifier','url(#on-line-single_clip0_910_349)','_initResize','handleInsertCol','_cursors','requestParams','measureText','toLowerCase','_awaitingChangeset','_collaborationPaused','CHANGESET_ACK','transformSelections','OTHER_CLIENTS_EDITING','_anchorDot','_getSheetObject','leaveEvent','@univerjs/design','addImageSourceCache','_initMergeInterceptor','Module','collaboration.single-unit.warning','YUUMI_URL_COL_OUT_OF_RANGE','_config','getCollabEntity$','assignAColorForMemberID','CollaborationStatusDisplay','_docTransformIMECacheService','none','_startSheetCollabCursor','IMessageService','NOT_COLLAB','includes','doc.mutation.rich-text-editing','members','IHTTPImplementation','m1Prime','LIVESHARE_REQUEST_HOST','_clearTimeoutTimer','_onRemoteRejected','LocaleService','toDisposable','transformIMECache','path','currentSkeleton$','onPointerMove$','NO_OTHER_CLIENTS_EDITING','batchAllowed','incrementRevOfUnit','SNAPSHOT_SERVER_URL_KEY','Subject','concat','CONFLICT','url(#off-line-single_clip0_910_343)','fetchMissingChangesets','connection\x20error','error','href','fetch_missing','debug','_state$','MessageType','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','has','collabSubmitChangesetUrl','awaiting','[SyncedState]:\x20received\x20acknowledgement.','searchParams','saveOfflineData','_roomMembers$','SYNCED','enableSingleActiveInstanceLock','Shape','/object','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','c2Prime','column','DesktopCollaborationStatusDisplayController','DisposableCollection','beginPath','createInstance','_resendWithTimeout','LIVESHARE_NEW_HOST','@univerjs/rpc','onRemoteRej','objectID','registerOnClose','AUTHZ_URL_KEY','1em','setAlpha','IURLService','ws://127.0.0.1:8000/universer-api/comb/connect','_onRecvEvent','LICENSE_IMPORT_SIZE_EXCEEDED','hidden','RxDisposable','drawWith','IUniverInstanceService','_cursorShapes','_incrementRevisionNumber','SHOULD_CLOSE_CONN','values','_getAPIPrefixPath','result','registerBeforeClose','rxjs/operators','connectInjector','SheetsSelectionsService','now','_rescheduleHeartbeat','deserializeRangeWithSheet','forEach','mapDocumentTypeToUniverType','sendChangesetTimeout','handleInsertRow','transformChangesets','_cursorInfo$','collabStatus.synced','HttpExport','pauseCollaboration','_unitStatus','APPLY_DUPLICATED','collaboration-client.config','_anchor','override','_onRemoteRetry','startColumn','collab-text-range-','_acknowledgedAwaitingChangeset','parseProtocolChangeset','_clearLocalCache','_removeClearOtherTimer','_handleHover','endRow','unknown','_entities','_userManagerService','EmptyMutation','Disposable','_transformPreviousActiveRange','_clearHeartbeatTimer','UniverInstanceType','equals','onTransformRemoteChangesetByIMECache','setConfig','CollaborationSocketService','className','useCallback','_state','YUUMI_UNABLE_LOAD_URL','SNAPSHOT_URL_KEY','arc','roomMembers$','addObject','dispose','ITelemetryService','/-/object/-/batch_allowed','_snapshotServerService','function','_startDocCollabCursor','rgba(255,\x20255,\x20255,\x200.01)','onRemoteRetry','Vector2','@univerjs/ui','memberID','UNIVER_SHEET','lineTo','transformMutationsWithChangeset','_resendTimer','[CollaborationEntity]','[CollaborationSessionService]','InsertColCommandId','_entityInit$','_updateURLWithCurrentState','COMPRESS_MUTATION_SEND','open$','_onRemoteACK','subscribe','_roomMembers','_onCursorDelete','hasOwnProperty','_initUnitPermissionChange','resourceIDs','_setupSubUnitSync','LIVESHARE_OPERATION','failed\x20to\x20apply\x20missed\x20changesets!','_univerInstanceService','/universer-api/stream/file/upload','collaboration.closeRoom','UNAUTHENTICATED','getCurrent','sheetId','unit-cache-','_getUploadFileURL','sheetID','message$','_toggleOffline','univer-pro.collaboration-client.single-active-unit-service','_redoStacks','cursorInfo','_pendingMutations','data','attrs','verdancy600','resolve','onRendered','sequenceExecute','INTERNAL_ERROR','activeSheet$','closeSession','collabStatus.fetchMiss','submit\x20changeset\x20error!','LICENSE_MAX_UNITS_EXCEEDED','compose','headers','width','onRemoteChangeset','range','_localeService','collaboration-session-retry','_color','univer-pro.collaboration-client-socket-service','COMPRESS_MUTATION_APPLY','save\x20fail\x20reason\x20is\x20','@univerjs/network','visibilitychange','sid','_lockTransition','_registerRenderDependencies','create','getOwnPropertySymbols','endColumn','purple300','sessionStatus','\x20in\x20_schedule.','/universer-api/oidc/authpage','newValue','UNIVER_PROJECT','YUUMI_RATE_OVER_LIMIT','_getAPIPrefix','IImageIoService','_sessionStatus$','getCollabEntity','Univer','VIEW_MAIN','rxjs','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_scheduleTimestamp','_saveTaskMap','_ensureSubject','dispose$','_drawRectRange','fromCollab','_docSkeletonManagerService','_syncEditingCollabCursorService','/rev/','HEADER_MENU','ENSURE_SNAPSHOT_EXECUTION','saveSheetBlock','getUndoRedoMutationParamsCache','IAuthzIoService','b64DecodeUnicode','_clearUndo','UnitSnapshot','getCellPositionByOffset','_startCollaboration','SetTextSelectionsOperation','toString','_docTransformSelectionsService','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_initModules','USERS_ENTER','ColorKit','duration','collaMsg','_checkMissing','_listenToOfflineEvent','rng','_beforeCloseService','_range','row','NEW_CHANGESETS','INGEST','put','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','getImageSourceCache','closePath','_retryCount','textRanges','_telemetryService','ThemeService','/unit/','_cursor','ThresholdInterceptorFactory','div','subUnitId','replaceState','ITransformService','transform','_getCtorByUniverType','fillStyle','ERROR_IMAGE','pushState','CollaborationSessionService','IRenderManagerService','getCurrentUser','clearInterval','delete','UniverCollaborationClientPlugin','UNIVER_DOC','disposeUnit','MSG_FOR_ERROR','LIVESHARE_TERMINATE','image/gif','getCurrentRevOfUnit','MergeInterceptorFactory','DocCollaborationEntity','_removeRoom','socketService','collabStatus.conflict','HEARTBEAT_TIMEOUT','WebSocketService','OffLineSingle','string','handleInsertRangeMoveDown','_online','idSuffix','on-line-single_clip0_910_349','fillText','origin','_unitID','_getSaveTimeout','_handler','get','SessionStatus','hovered','_refreshCollabCursors','HEARTBEAT','_createInitialStateImpl','fromEvent','getLatestCsReqIdBySid','getTime','unitId','session.collaboration-timeout','Plugin','BehaviorSubject','PENDING','_createInitialState','onlineStatusTitle','_collaborationController','transformMutation','_tryReconnect','apply','params','_scheduleClearOtherTimer','_send','some','LocalUndoRedoService','_transformUndoRedoStack','csShouldRetryEvent','urlChange$','getUniverSheetInstance','mutations','CollaborationController','collabWebSocketUrl','setCurrentUser','ICollaborationSocketService','CollaborationEvent','removeMember','[SyncedState]:\x20received\x20rejection.','assign','@univerjs/engine-render','JOINING','RegularPolygon','EffectRefRangId','randomUUID','LEAVE','title','_unitOnClients','gold400','fetchThroughInterceptors','loadOfflineData','status$','RemoveRowCommandId','length','displayName','getSheetObject','isArray','refreshPermission','getCurrentSelections','defs','_commentUpdate$','actions','2529028TVdsBt','transformByState','_getUndoStack','MUTATION','onlineStatusIcon','updateCursorEvent','set','ReplaySubject','replace','setShapeProps','bottom','_ws','unitID','executeCommand','_updateStatus','#FFF','onTransformSelections','_createHandler','UNIVER_COLLABORATION_CLIENT_PLUGIN','_themeService','NodePositionConvertToRectRange','_replaceFileID','push','CommentService','subscribeEvent','_hideTimer','getFocusedUnit','_onUserJoin','fetchMiss','size','show','registerRenderModule','CHANGESET_REJ','toggleOnline','UnitEmbedded','_onLocalMutation','_onRemoteChangeset','HTTPService','_http','APPLY_NON_SEQUENTIAL_REVISION','state','objectActions','getCollabCursors$','_transformStack','_labelPosition','[DataLoaderController]','reconnect','_revisionService','setWaitCount','_queuedRemoteChangesets','add','close','confirm','VIEWPORT_KEY','_joinRoom','_updateState','_eventUnsubscribe','LICENSE_EXPORT_SIZE_EXCEEDED','_socket$','awaitingChangeset','useDependency','_remoteChangesetQueue','getConfig','asObservable','_retryConnectingTimer','ImageSourceType','Rectangle','reverse','ACTIVE_UNIT_EVENT_CHANNEL','DOC_RANGE_TYPE','FromArray','@univerjs/engine-formula','onPointerLeave$','_compressMutationService','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','encodeURIComponent','syncEditingCollabCursor','_sheetSkeletonManagerService','clearTimeout','_transitionLocked','_onFetchMissResult','location','_hover','transformUndoRedo','[OfflineState]:\x20received\x20changeset.','storage','_snapshotService','_onConnectionOpen','getColor','serializeRangeWithSheet','_colorIndex','SEND_CHANGESET_TIMEOUT','_docSyncEditingCollabCursorService','UNIVER_SLIDE','ONLINE','getResourcesRequest','deleteCollaborator','LICENSE_DISTRO_REJECTED','getImage','handleInsertRangeMoveRight','SnapshotServerOverHTTPService','onStarting','fill','current','createElement','_onUserLeave','call','SetWorksheetActivateCommand','_transformSelections','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_getSnapshotAPIPrefix','_socketReady','xlink:href','clear','onMissingChangesets','_clearOtherTimers','_getLoginPath','stopTime','delay','HELLO','stringify','max','getUnitStatus$','_commandService','_onConflict','_throwTelemetryCollaborationNewChangeset','/role','FAIL','_collabCursorController','onPointerEnter$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[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.','/collaborator','key','CollaborationEntity','baseRev','_status$','getRelativeToViewportCoord','ImageUploadStatusType','createSocket','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','onlineStatus','react','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','append','blue400','subunit','roomMembers','_urlService','#fff','registerRefRange','_name','forwardRef','MoveRangeCommandId','userID','fromEventSubject','_getAnchorBounding','getAttachHeader','/universer-api/authz','clipPath','bind','collabStatus.syncing','onload','10374525WbVNXK','height','DocStateChangeManagerService','RichTextEditingMutation','commentUpdateEvent','top','error$','_docStateChangeManagerService','_changesetSessionId','133300ZyJFDs','APPLY_REJECT','isPermissionRej','defIds','COLLAB_WEB_SOCKET_URL','_onCombEvent','allowed','BuiltInUIPart','UNKNOWN_CMD','getSkeleton','_clearScheduledTask','RETRY_CONNECTING_MAX_COUNT_KEY','ranges','getRoom','switchMap','_sheetTransformSelectionsService','onRemoteAck','downloadEndpointUrl','collabStatus.offline','patch','XHRHTTPImplementation','_heartbeatTimer','appendMutation','isTransformMutationFailure','off-line-single','conflict.title','_undoRedoService','propertyIsEnumerable','SheetCollaborationEntity','encode'];_0x48f6=function(){return _0x3a98ab;};return _0x48f6();}let k=class extends ee{constructor(_0x4fddf9,_0x4c89ff,_0x3a96d8,_0x31cb36,_0x1ccda9,_0x3da330,_0x4eeebd,_0x29ffd6,_0x392844,_0x25d138,_0x3d0170,_0x2a054b,_0x3e5aba,_0x142fff){const _0x5c7bb3=_0x3cc0f6;super(_0x4fddf9,_0x4c89ff,_0x3a96d8,_0x31cb36,_0x4eeebd,_0x2a054b,_0x3e5aba,_0x392844,_0x25d138),u(this,'status',_0x5c7bb3(0x2cb)),(this[_0x5c7bb3(0x311)]=_0x1ccda9,this[_0x5c7bb3(0x44b)]=_0x3da330,this[_0x5c7bb3(0x5ba)]=_0x29ffd6,this[_0x5c7bb3(0x518)]=_0x3d0170,this[_0x5c7bb3(0x5c3)]=_0x142fff);}['onMissedChangesetFetched'](_0x12b015){const _0x4c67fe=_0x3cc0f6;try{const _0x4e73ef=[..._0x12b015,...this[_0x4c67fe(0x44b)]],_0x4789e1=[this[_0x4c67fe(0x29a)]||this[_0x4c67fe(0x311)]][_0x4c67fe(0x545)](_0x240d57=>!!_0x240d57);let _0x1a5abf,_0x276625;if(_0x4789e1['length']){const _0x43bb38=this[_0x4c67fe(0x5c3)]['transformChangesets'](_0x4e73ef,_0x4789e1,!0x1);if(!_['isTransformChangesetsSuccess'](_0x43bb38))throw _0x43bb38[_0x4c67fe(0x2c9)];_0x1a5abf=_0x43bb38['c1Prime'],_0x276625=_0x43bb38[_0x4c67fe(0x2dc)];}else _0x1a5abf=_0x4e73ef,_0x276625=[];let _0x37a9cb=this[_0x4c67fe(0x359)];_0x1a5abf['forEach'](_0x1c5f5b=>{const _0x25cc82=_0x4c67fe;let _0x49baa3;if(_0x37a9cb['length']){const _0x582c94=this[_0x25cc82(0x5c3)][_0x25cc82(0x338)](_0x1c5f5b,_0x37a9cb);if(!_[_0x25cc82(0x50f)](_0x582c94))throw _0x582c94[_0x25cc82(0x2c9)];_0x49baa3=_0x582c94[_0x25cc82(0x5c5)],_0x37a9cb=_0x582c94[_0x25cc82(0x201)];}else _0x49baa3=_0x1c5f5b;this['_executeRemoteChangeset'](_0x49baa3);}),this['_acknowledgedAwaitingChangeset']&&this[_0x4c67fe(0x2f4)](),this['_awaitingChangeset']&&_0x276625[_0x4c67fe(0x411)]&&(_0x276625[0x0][_0x4c67fe(0x4a1)]=this[_0x4c67fe(0x502)]());let _0xe4145a;if(this[_0x4c67fe(0x29a)]&&_0x37a9cb[_0x4c67fe(0x411)]!==0x0)_0xe4145a=this['_injector'][_0x4c67fe(0x2e1)](F,this[_0x4c67fe(0x426)],this[_0x4c67fe(0x523)],_0x276625[0x0],_0x37a9cb,this[_0x4c67fe(0x3dd)],void 0x0);else{if(this[_0x4c67fe(0x29a)]&&_0x37a9cb['length']===0x0)_0x276625[0x0][_0x4c67fe(0x4a1)]=this[_0x4c67fe(0x502)](),_0xe4145a=this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](Y,this[_0x4c67fe(0x426)],this[_0x4c67fe(0x523)],_0x276625[0x0],this[_0x4c67fe(0x3dd)]);else{if(_0x37a9cb['length']!==0x0){const _0x116a7a=this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](W,this['unitID'],this[_0x4c67fe(0x523)],_0x37a9cb,this[_0x4c67fe(0x3dd)]);_0x116a7a[_0x4c67fe(0x1f0)](),_0xe4145a=_0x116a7a;}else _0xe4145a=this[_0x4c67fe(0x5ba)]['createInstance'](oe,this[_0x4c67fe(0x426)],this['type'],this[_0x4c67fe(0x3dd)]);}}return _0xe4145a[_0x4c67fe(0x20d)](),_0xe4145a;}catch(_0x23c7c2){return this[_0x4c67fe(0x518)][_0x4c67fe(0x2c9)]('[FetchMissState]',_0x4c67fe(0x34a),_0x23c7c2),this[_0x4c67fe(0x5ba)][_0x4c67fe(0x2e1)](K,this['unitID'],this[_0x4c67fe(0x523)],this[_0x4c67fe(0x29a)],this[_0x4c67fe(0x359)],this[_0x4c67fe(0x3dd)],!0x1);}}['resend'](){const _0x182906=_0x3cc0f6;throw new Error(_0x182906(0x5b5));}['appendMutation'](_0x3787cf){const _0x3fbe9e=_0x3cc0f6;return this['_pendingMutations'][_0x3fbe9e(0x430)](_0x3787cf),this;}[_0x3cc0f6(0x369)](_0x242a48){const _0x2dfc66=_0x3cc0f6;return this[_0x2dfc66(0x44b)]['push'](_0x242a48),this;}[_0x3cc0f6(0x4d6)](_0x5a794e){const _0x5779fc=_0x3cc0f6;if(this['_awaitingChangeset'])return this[_0x5779fc(0x311)]=this['_awaitingChangeset'],this[_0x5779fc(0x29a)]=null,this;throw new Error(_0x5779fc(0x261));}['onRemoteRej'](_0x4798ad){const _0x1c70e3=_0x3cc0f6;return this[_0x1c70e3(0x496)](!!(_0x4798ad!=null&&_0x4798ad[_0x1c70e3(0x4c8)]));}['onRemoteRetry'](){return this;}[_0x3cc0f6(0x4ef)](){const _0x31e86a=_0x3cc0f6;return this[_0x31e86a(0x5ba)][_0x31e86a(0x2e1)](X,this[_0x31e86a(0x426)],this[_0x31e86a(0x523)],this['_awaitingChangeset'],this[_0x31e86a(0x359)],this[_0x31e86a(0x3dd)]);}[_0x3cc0f6(0x43b)](){return this;}[_0x3cc0f6(0x496)](_0xff4903){const _0x25cfd2=_0x3cc0f6;return this[_0x25cfd2(0x5ba)]['createInstance'](K,this['unitID'],this[_0x25cfd2(0x523)],this[_0x25cfd2(0x29a)],this[_0x25cfd2(0x359)],this[_0x25cfd2(0x3dd)],_0xff4903);}};k=Q([g(0x7,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),g(0x8,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),g(0x9,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),g(0xa,a[_0x3cc0f6(0x24d)]),g(0xb,a[_0x3cc0f6(0x1d6)]),g(0xc,a[_0x3cc0f6(0x238)]),g(0xd,_[_0x3cc0f6(0x3ba)])],k);function wt(_0x1b5e01,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x1f38fb,_0x17da73){const _0x23399f=_0x3cc0f6;return _0xfc83d2&&_0x1f38fb[_0x23399f(0x411)]?_0x1b5e01['createInstance'](F,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x1f38fb,_0x17da73,void 0x0):_0xfc83d2?_0x1b5e01[_0x23399f(0x2e1)](Y,_0x23740b,_0x4ba5c9,_0xfc83d2,_0x17da73):_0x1f38fb[_0x23399f(0x411)]?_0x1b5e01[_0x23399f(0x2e1)](W,_0x23740b,_0x4ba5c9,_0x1f38fb,_0x17da73):_0x1b5e01[_0x23399f(0x2e1)](oe,_0x23740b,_0x4ba5c9,_0x17da73);}var qs=Object[_0x3cc0f6(0x1c6)],zs=Object[_0x3cc0f6(0x544)],ze=(_0x478b0d,_0x33fcf5,_0x4953bf,_0x34067e)=>{const _0x44a6a0=_0x3cc0f6;for(var _0x2fcbd2=_0x34067e>0x1?void 0x0:_0x34067e?zs(_0x33fcf5,_0x4953bf):_0x33fcf5,_0x2cee8b=_0x478b0d[_0x44a6a0(0x411)]-0x1,_0x5c7a04;_0x2cee8b>=0x0;_0x2cee8b--)(_0x5c7a04=_0x478b0d[_0x2cee8b])&&(_0x2fcbd2=(_0x34067e?_0x5c7a04(_0x33fcf5,_0x4953bf,_0x2fcbd2):_0x5c7a04(_0x2fcbd2))||_0x2fcbd2);return _0x34067e&&_0x2fcbd2&&qs(_0x33fcf5,_0x4953bf,_0x2fcbd2),_0x2fcbd2;},p=(_0x478f9f,_0x52925c)=>(_0x284f36,_0x1af6cf)=>_0x52925c(_0x284f36,_0x1af6cf,_0x478f9f);exports[_0x3cc0f6(0x4a0)]=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x22751f,_0x5ad23d,_0x144b9e,_0x10eecd,_0x5035a8,_0x28bffb,_0x3dbeb0,_0x32810b,_0x487509,_0x3ffb0a,_0x1ba163,_0x164205,_0x52f695){const _0x46566d=_0x3cc0f6;super(),u(this,_0x46566d(0x2cd),new v[(_0x46566d(0x3ea))](null)),u(this,_0x46566d(0x1be),this[_0x46566d(0x2cd)][_0x46566d(0x459)]()),u(this,_0x46566d(0x325)),u(this,'_collaborationPaused',!0x1),u(this,_0x46566d(0x4c5),''),u(this,_0x46566d(0x55a),0x0),u(this,_0x46566d(0x40f),this[_0x46566d(0x1be)][_0x46566d(0x57c)](v[_0x46566d(0x282)](_0x5ccddc=>_0x5ccddc?_0x5ccddc[_0x46566d(0x5d6)]:D[_0x46566d(0x50c)]),v[_0x46566d(0x50b)](0x1))),u(this,'_transitionLocked',!0x1),u(this,_0x46566d(0x457),[]),(this['unitID']=_0x22751f,this[_0x46566d(0x54f)]=_0x5ad23d,this[_0x46566d(0x578)]=_0x144b9e,this[_0x46566d(0x5ba)]=_0x10eecd,this['_localCacheService']=_0x5035a8,this[_0x46566d(0x463)]=_0x28bffb,this['_localeService']=_0x3dbeb0,this[_0x46566d(0x449)]=_0x32810b,this[_0x46566d(0x518)]=_0x487509,this[_0x46566d(0x495)]=_0x3ffb0a,this[_0x46566d(0x1cd)]=_0x1ba163,this[_0x46566d(0x1dd)]=_0x164205,this[_0x46566d(0x54c)]=_0x52f695);}get[_0x3cc0f6(0x442)](){return this['_state'];}async[_0x3cc0f6(0x5d4)](){const _0x2bcfcf=_0x3cc0f6;if(this[_0x2bcfcf(0x442)])throw new Error(_0x2bcfcf(0x39e));await this[_0x2bcfcf(0x53a)]();}[_0x3cc0f6(0x308)](){const _0x592c16=_0x3cc0f6;return this[_0x592c16(0x29b)]=!0x0,a[_0x592c16(0x2ba)](()=>{const _0x4e373c=_0x592c16;this[_0x4e373c(0x29b)]=!0x1,this[_0x4e373c(0x5a9)]();});}[_0x3cc0f6(0x451)](_0x596657){const _0x6a96e6=_0x3cc0f6;this['_state']=_0x596657,this[_0x6a96e6(0x2cd)][_0x6a96e6(0x517)](_0x596657);}async[_0x3cc0f6(0x53a)](){const _0x222e03=_0x3cc0f6;var _0x1ca55c;this['_updateState'](await this['_createInitialState']()),this[_0x222e03(0x54c)]&&((_0x1ca55c=this[_0x222e03(0x54c)])==null||_0x1ca55c['editingUnit'](this[_0x222e03(0x426)]),this[_0x222e03(0x217)](this[_0x222e03(0x54c)][_0x222e03(0x494)](this[_0x222e03(0x426)])[_0x222e03(0x342)](_0x2cd656=>{const _0x360dbc=_0x222e03;this[_0x360dbc(0x518)]['debug'](_0x360dbc(0x33a),_0x360dbc(0x571),_0x2cd656),_0x2cd656===Dt[_0x360dbc(0x29e)]?(this[_0x360dbc(0x1cd)]['show']({'content':this[_0x360dbc(0x36b)]['t'](_0x360dbc(0x2a6)),'type':J[_0x360dbc(0x2ce)]['Warning']}),this['_permissionService'][_0x360dbc(0x4f2)](new C[(_0x360dbc(0x289))](this[_0x360dbc(0x426)])['id'],!0x1)):this['_permissionService'][_0x360dbc(0x4f2)](new C[(_0x360dbc(0x289))](this[_0x360dbc(0x426)])['id'],!0x0);})));let _0x5000a5=!0x1;return this[_0x222e03(0x217)](this[_0x222e03(0x54f)][_0x222e03(0x1eb)][_0x222e03(0x342)](_0x2cd711=>{const _0x297d0c=_0x222e03;_0x2cd711===x[_0x297d0c(0x478)]?this[_0x297d0c(0x223)](_0x5000a5):_0x2cd711===x['OFFLINE']&&(_0x5000a5=!0x0,this[_0x297d0c(0x355)]());})),this[_0x222e03(0x217)](this[_0x222e03(0x54f)][_0x222e03(0x574)]['subscribe'](_0x5888df=>{const _0x3f2337=_0x222e03;try{switch(_0x5888df['eventID']){case _[_0x3f2337(0x400)][_0x3f2337(0x3aa)]:{this[_0x3f2337(0x43e)](_[_0x3f2337(0x312)](_0x5888df[_0x3f2337(0x35a)]));break;}case _[_0x3f2337(0x400)][_0x3f2337(0x29c)]:{this[_0x3f2337(0x341)](_0x5888df[_0x3f2337(0x35a)]);break;}case _[_0x3f2337(0x400)][_0x3f2337(0x43a)]:{this['_onRemoteRejected']();break;}case _[_0x3f2337(0x400)][_0x3f2337(0x5bc)]:{this[_0x3f2337(0x30e)](_0x5888df[_0x3f2337(0x35a)]);break;}case _[_0x3f2337(0x400)][_0x3f2337(0x275)]:{this[_0x3f2337(0x46a)](_0x5888df['data']['changesets'][_0x3f2337(0x282)](_0x839f2=>_['parseProtocolChangeset'](_0x839f2)));break;}case _[_0x3f2337(0x400)][_0x3f2337(0x5ac)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x3d6f11){throw console[_0x3f2337(0x2c9)]('Error\x20on\x20receiving\x20event',_0x3d6f11),_0x3d6f11;}})),this[_0x222e03(0x325)];}[_0x3cc0f6(0x1d3)](){const _0x94967b=_0x3cc0f6;this[_0x94967b(0x469)]=!0x1;}[_0x3cc0f6(0x374)](){const _0x572128=_0x3cc0f6;if(this[_0x572128(0x469)])throw new Error(_0x572128(0x49d));this['_transitionLocked']=!0x0;}[_0x3cc0f6(0x43d)](_0x387b7d){const _0x342b8c=_0x3cc0f6;this[_0x342b8c(0x374)](),this[_0x342b8c(0x451)](this[_0x342b8c(0x325)][_0x342b8c(0x4dc)](_0x387b7d)),this[_0x342b8c(0x1d3)]();}['_onRemoteChangeset'](_0x21c73e){const _0x3f86fa=_0x3cc0f6;if(!(_0x21c73e[_0x3f86fa(0x511)]<=this[_0x3f86fa(0x449)]['getCurrentRevOfUnit'](this['unitID']))){if(this[_0x3f86fa(0x29b)]){this['_remoteChangesetQueue'][_0x3f86fa(0x430)](_0x21c73e);return;}this['_applyRemoteChangeset'](_0x21c73e);}}['_exhaustRemoteChangesetQueue'](){const _0x25abd1=_0x3cc0f6;this[_0x25abd1(0x457)][_0x25abd1(0x300)](_0x3bcea9=>this[_0x25abd1(0x253)](_0x3bcea9)),this[_0x25abd1(0x457)]=[];}['_applyRemoteChangeset'](_0x46c664){const _0x25655f=_0x3cc0f6,_0x110bb3=this[_0x25655f(0x463)][_0x25655f(0x288)][_0x25655f(0x40d)](this[_0x25655f(0x463)]['interceptor'][_0x25655f(0x4f1)]()[_0x25655f(0x36f)])(_0x46c664[_0x25655f(0x3fb)],null)||_0x46c664[_0x25655f(0x3fb)],_0x547c3e={..._0x46c664,'mutations':_0x110bb3};this[_0x25655f(0x374)](),this['_updateState'](this[_0x25655f(0x325)][_0x25655f(0x369)](_0x547c3e)),this[_0x25655f(0x1d3)]();}[_0x3cc0f6(0x341)](_0x4296df){const _0x571e35=_0x3cc0f6;this['_lockTransition'](),this['_updateState'](this[_0x571e35(0x325)][_0x571e35(0x4d6)](_0x4296df)),this[_0x571e35(0x1d3)]();}[_0x3cc0f6(0x2b8)](_0x3e6a5d){const _0x1392f4=_0x3cc0f6;this[_0x1392f4(0x374)](),this[_0x1392f4(0x451)](this['_state'][_0x1392f4(0x2e5)](_0x3e6a5d)),this[_0x1392f4(0x1d3)]();}['_onRemoteRetry'](_0x2c06e7){const _0x22d377=_0x3cc0f6;this[_0x22d377(0x374)](),this[_0x22d377(0x451)](this[_0x22d377(0x325)][_0x22d377(0x332)](_0x2c06e7)),this[_0x22d377(0x1d3)]();}[_0x3cc0f6(0x46a)](_0x214b4a){const _0x39984f=_0x3cc0f6;if(!(this[_0x39984f(0x325)]instanceof k))throw new TypeError(_0x39984f(0x4a6));const _0x55b632=_0x214b4a[_0x39984f(0x282)](_0x5923fd=>{const _0x5f5bed=_0x39984f,_0x5054b9=this[_0x5f5bed(0x463)][_0x5f5bed(0x288)][_0x5f5bed(0x40d)](this[_0x5f5bed(0x463)][_0x5f5bed(0x288)][_0x5f5bed(0x4f1)]()[_0x5f5bed(0x36f)])(_0x5923fd[_0x5f5bed(0x3fb)],null)||_0x5923fd[_0x5f5bed(0x3fb)];return{..._0x5923fd,'mutations':_0x5054b9};});this[_0x39984f(0x374)](),this[_0x39984f(0x451)](this['_state']['onMissedChangesetFetched'](_0x55b632)),this[_0x39984f(0x1d3)]();}[_0x3cc0f6(0x355)](){const _0x3d0f93=_0x3cc0f6;this[_0x3d0f93(0x374)](),this['_updateState'](this['_state'][_0x3d0f93(0x4ef)]()),this[_0x3d0f93(0x1d3)]();}['_toggleOnline'](_0x2d6b52=!0x1){const _0x24ae2c=_0x3cc0f6;this[_0x24ae2c(0x374)](),this[_0x24ae2c(0x451)](this[_0x24ae2c(0x325)][_0x24ae2c(0x43b)]()),this[_0x24ae2c(0x1d3)]();const _0x5857ad=this[_0x24ae2c(0x325)];_0x2d6b52&&_0x5857ad instanceof oe&&(this[_0x24ae2c(0x374)](),this[_0x24ae2c(0x451)](_0x5857ad['fetchMiss']()),this[_0x24ae2c(0x1d3)]());}async[_0x3cc0f6(0x3ec)](){return new Promise(_0xcaef0=>{const _0x4e2c71=_0x10ac;this['session'][_0x4e2c71(0x1eb)]['pipe'](v[_0x4e2c71(0x4e6)](0x1))[_0x4e2c71(0x342)](async _0x446c43=>{const _0x5e2674=_0x4e2c71;_0xcaef0(await this[_0x5e2674(0x3e3)](_0x446c43===x[_0x5e2674(0x478)]));});});}['_createHandler'](){const _0x133862=_0x3cc0f6,_0x47808d=this[_0x133862(0x426)];return{'onStateChange':(_0x5c7e36,_0x4ac156)=>{const _0x4f1077=_0x133862;if(_0x5c7e36!==this['_state'])throw new Error(_0x4f1077(0x58e)+_0x5c7e36[_0x4f1077(0x5d6)]+_0x4f1077(0x279)+_0x4ac156[_0x4f1077(0x5d6)]+'\x0aCurrent:\x20'+this[_0x4f1077(0x325)]['status']);this[_0x4f1077(0x451)](_0x4ac156);},'onSendChangeset':_0x5987a5=>{const _0x55c03d=_0x133862;_0x5987a5[_0x55c03d(0x373)]||(_0x5987a5[_0x55c03d(0x373)]=this[_0x55c03d(0x4c5)],_0x5987a5[_0x55c03d(0x236)]=++this[_0x55c03d(0x55a)]);const _0x200218={'eventID':_['CollaborationEvent'][_0x55c03d(0x23f)],'data':{'unitID':_0x5987a5[_0x55c03d(0x426)],'unitType':this['_type'],'changeset':_0x5987a5,'memberID':this['session'][_0x55c03d(0x1f1)]()}};this[_0x55c03d(0x54f)]['send'](_0x200218,this[_0x55c03d(0x426)]);},'onMissingChangesets':({from:_0x5279f1,to:_0x5a3dab})=>{const _0x362095=_0x133862;this[_0x362095(0x518)][_0x362095(0x2cc)](_0x362095(0x33a),'fetching\x20missing\x20changesets\x20from\x20'+_0x5279f1+'\x20to\x20'+_0x5a3dab);const _0x5b93f4={'eventID':_['CollaborationEvent'][_0x362095(0x229)],'data':{'unitID':_0x47808d,'unitType':this['_type'],'from':_0x5279f1,'to':_0x5a3dab}};this[_0x362095(0x54f)]['send'](_0x5b93f4,this[_0x362095(0x426)]);}};}async['_createInitialStateImpl'](_0x44c09a){const _0x5e3786=_0x3cc0f6;var _0x248053,_0x378c79;const _0x16ad71=await this[_0x5e3786(0x1e8)][_0x5e3786(0x40e)](this[_0x5e3786(0x426)]),_0x1481c4=(_0x248053=_0x16ad71==null?void 0x0:_0x16ad71[_0x5e3786(0x3fb)])!=null?_0x248053:[],_0x41b4ac=(_0x378c79=_0x16ad71==null?void 0x0:_0x16ad71[_0x5e3786(0x455)])!=null?_0x378c79:null,_0xccfc74=!!(_0x41b4ac!=null&&_0x41b4ac[_0x5e3786(0x373)])&&!!(_0x41b4ac!=null&&_0x41b4ac[_0x5e3786(0x236)]);this['_changesetSessionId']=_0xccfc74?_0x41b4ac[_0x5e3786(0x373)]:ys(),this['_changesetReqId']=_0xccfc74?_0x41b4ac[_0x5e3786(0x236)]:0x0;const _0x2ec127=this[_0x5e3786(0x426)];try{this[_0x5e3786(0x1e0)](_0x41b4ac,_0x1481c4);}catch(_0x22723b){this['_logService']['error'](_0x22723b);}const _0x22e541=this['_createHandler']();if(_0x44c09a){const _0xfad4b9=wt(this[_0x5e3786(0x5ba)],_0x2ec127,this[_0x5e3786(0x578)],_0x41b4ac,_0x1481c4,_0x22e541);return _0xfad4b9 instanceof W?_0xfad4b9[_0x5e3786(0x1f0)]():(_0xfad4b9 instanceof F||_0xfad4b9 instanceof Y)&&_0xfad4b9[_0x5e3786(0x259)](),_0xfad4b9;}return this['_injector'][_0x5e3786(0x2e1)](X,_0x2ec127,this[_0x5e3786(0x578)],_0x41b4ac,_0x1481c4,_0x22e541);}[_0x3cc0f6(0x1e0)](_0x358233,_0x18e1bd){const _0x53fb19=_0x3cc0f6;var _0x2c0f73,_0x57c9e0;const _0x141ac0=this['_compressMutationService']['interceptor'][_0x53fb19(0x40d)](this['_compressMutationService'][_0x53fb19(0x288)][_0x53fb19(0x4f1)]()[_0x53fb19(0x36f)]);(_0x2c0f73=_0x141ac0((_0x358233==null?void 0x0:_0x358233[_0x53fb19(0x3fb)])||[],null))==null||_0x2c0f73['forEach'](_0x329320=>this[_0x53fb19(0x495)][_0x53fb19(0x427)](_0x329320['id'],_0x329320['params'])),(_0x57c9e0=_0x141ac0(_0x18e1bd||[],null))==null||_0x57c9e0[_0x53fb19(0x300)](_0x3ab627=>this[_0x53fb19(0x495)][_0x53fb19(0x427)](_0x3ab627['id'],_0x3ab627[_0x53fb19(0x3f2)]));}},exports['CollaborationEntity']=ze([p(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a['Inject'](_[_0x3cc0f6(0x27d)])),p(0x6,a['Inject'](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x1c9)])),p(0x8,a['ILogService']),p(0x9,a['ICommandService']),p(0xa,A[_0x3cc0f6(0x2af)]),p(0xb,a[_0x3cc0f6(0x27b)]),p(0xc,a[_0x3cc0f6(0x273)](Oe))],exports[_0x3cc0f6(0x4a0)]),exports[_0x3cc0f6(0x3cd)]=class extends exports['CollaborationEntity']{constructor(_0x480bf2,_0x57ae3b,_0x5670dc,_0x11d79c,_0x11bac8,_0x1b72d7,_0x7c11cf,_0x26a2d4,_0x1df334,_0x46c982,_0x3d81bd,_0x1a14f3,_0x74244a,_0x582c16,_0x16d28b,_0x389409,_0x240b19){const _0x2db8a7=_0x3cc0f6;super(_0x480bf2,_0x5670dc,_0x57ae3b,_0x11d79c,_0x11bac8,_0x1b72d7,_0x7c11cf,_0x26a2d4,_0x74244a,_0x582c16,_0x16d28b,_0x389409,_0x240b19),this[_0x2db8a7(0x426)]=_0x480bf2,this[_0x2db8a7(0x523)]=_0x57ae3b,this[_0x2db8a7(0x4c4)]=_0x1df334,this[_0x2db8a7(0x2ac)]=_0x46c982,this[_0x2db8a7(0x39d)]=_0x3d81bd,this[_0x2db8a7(0x476)]=_0x1a14f3;}['_createHandler'](){const _0x55959d=_0x3cc0f6,_0x48c608=super[_0x55959d(0x42b)]();return _0x48c608[_0x55959d(0x56d)]=_0x1d4e97=>this[_0x55959d(0x2ac)]['transformIMECache'](_0x1d4e97),_0x48c608[_0x55959d(0x42a)]=_0x1e8e1e=>this[_0x55959d(0x39d)][_0x55959d(0x29d)](_0x1e8e1e),_0x48c608['onSyncEditingCollabCursor']=_0x52cb94=>this[_0x55959d(0x476)][_0x55959d(0x466)](_0x52cb94),_0x48c608['onTransformRemoteChangesetByIMECache']=_0x1595de=>this[_0x55959d(0x2ac)][_0x55959d(0x1fc)](_0x1595de),_0x48c608;}async[_0x3cc0f6(0x53a)](){const _0x4c6da1=_0x3cc0f6,_0x2678d3=await super[_0x4c6da1(0x53a)]();return this[_0x4c6da1(0x4c4)][_0x4c6da1(0x28b)]['pipe'](v['takeUntil'](this[_0x4c6da1(0x38b)]))[_0x4c6da1(0x342)](_0x2f82e5=>{const _0x5cb63f=_0x4c6da1;if(_0x2f82e5==null)return;const {unitId:_0x508f78,redoState:_0x5c2fba,commandId:_0x148066}=_0x2f82e5;if(_0x508f78!==this[_0x5cb63f(0x426)])return;const _0x63566={'id':_0x148066,'type':a['CommandType'][_0x5cb63f(0x41d)],'params':{'unitId':_0x508f78,'actions':_0x5c2fba['actions'],'textRanges':null}};this[_0x5cb63f(0x43d)](_0x63566);}),_0x2678d3;}},exports[_0x3cc0f6(0x3cd)]=ze([p(0x3,a[_0x3cc0f6(0x573)](a['Injector'])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a['Inject'](_[_0x3cc0f6(0x27d)])),p(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_['RevisionService'])),p(0x8,a[_0x3cc0f6(0x573)](N[_0x3cc0f6(0x4bf)])),p(0x9,a['Inject'](Ie)),p(0xa,a['Inject'](Ce)),p(0xb,a['Inject'](qe)),p(0xc,a[_0x3cc0f6(0x24d)]),p(0xd,a[_0x3cc0f6(0x1d6)]),p(0xe,A[_0x3cc0f6(0x2af)]),p(0xf,a['IPermissionService']),p(0x10,a['Optional'](Oe))],exports[_0x3cc0f6(0x3cd)]),exports[_0x3cc0f6(0x4e2)]=class extends exports[_0x3cc0f6(0x4a0)]{constructor(_0x3a8108,_0x4017eb,_0x2dce43,_0x506018,_0x128241,_0x560671,_0x29b008,_0x22b5af,_0x1334de,_0x15fc56,_0x380412,_0x2ec9bf,_0x3d7e86,_0x372c0f){const _0x2e06b5=_0x3cc0f6;super(_0x3a8108,_0x2dce43,_0x4017eb,_0x506018,_0x128241,_0x560671,_0x29b008,_0x22b5af,_0x15fc56,_0x380412,_0x2ec9bf,_0x3d7e86,_0x372c0f),this[_0x2e06b5(0x426)]=_0x3a8108,this[_0x2e06b5(0x523)]=_0x4017eb,this[_0x2e06b5(0x4d5)]=_0x1334de;}[_0x3cc0f6(0x42b)](){const _0x133ce0=_0x3cc0f6,_0x3facab=super['_createHandler']();return _0x3facab[_0x133ce0(0x42a)]=_0x50fa0f=>this[_0x133ce0(0x4d5)][_0x133ce0(0x29d)](_0x50fa0f),_0x3facab;}async['_init'](){const _0x4f40d5=_0x3cc0f6,_0xf03377=await super[_0x4f40d5(0x53a)]();return this[_0x4f40d5(0x217)](this[_0x4f40d5(0x495)][_0x4f40d5(0x26e)]((_0x583d56,_0x9a6551)=>{const _0x489b18=_0x4f40d5;if(_0x583d56[_0x489b18(0x523)]!==a[_0x489b18(0x566)][_0x489b18(0x41d)]||_0x9a6551!=null&&_0x9a6551[_0x489b18(0x38d)]||_0x9a6551!=null&&_0x9a6551['onlyLocal'])return;const _0xe9128b=_0x583d56[_0x489b18(0x3f2)];if((_0xe9128b==null?void 0x0:_0xe9128b[_0x489b18(0x3e7)])!==this[_0x489b18(0x426)])return;const _0x9782b5=_0x583d56,_0x43901c=this['_compressMutationService']['interceptor'][_0x489b18(0x40d)](this[_0x489b18(0x463)]['interceptor'][_0x489b18(0x4f1)]()[_0x489b18(0x33f)])([_0x9782b5],null)||[_0x9782b5];this[_0x489b18(0x43d)](_0x43901c[0x0]);})),_0xf03377;}},exports[_0x3cc0f6(0x4e2)]=ze([p(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),p(0x4,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x1f8)])),p(0x5,a[_0x3cc0f6(0x573)](_[_0x3cc0f6(0x27d)])),p(0x6,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2b9)])),p(0x7,a[_0x3cc0f6(0x573)](_['RevisionService'])),p(0x8,a[_0x3cc0f6(0x573)](pe)),p(0x9,a[_0x3cc0f6(0x24d)]),p(0xa,a[_0x3cc0f6(0x1d6)]),p(0xb,A[_0x3cc0f6(0x2af)]),p(0xc,a[_0x3cc0f6(0x27b)]),p(0xd,a[_0x3cc0f6(0x273)](Oe))],exports['SheetCollaborationEntity']);var Js=Object[_0x3cc0f6(0x1c6)],Zs=Object['getOwnPropertyDescriptor'],Qs=(_0x14ded4,_0x56eaf1,_0x2e9c7e,_0x2503e8)=>{const _0x1f493b=_0x3cc0f6;for(var _0x19ad6f=_0x2503e8>0x1?void 0x0:_0x2503e8?Zs(_0x56eaf1,_0x2e9c7e):_0x56eaf1,_0xb6b1b=_0x14ded4[_0x1f493b(0x411)]-0x1,_0x1f0eb4;_0xb6b1b>=0x0;_0xb6b1b--)(_0x1f0eb4=_0x14ded4[_0xb6b1b])&&(_0x19ad6f=(_0x2503e8?_0x1f0eb4(_0x56eaf1,_0x2e9c7e,_0x19ad6f):_0x1f0eb4(_0x19ad6f))||_0x19ad6f);return _0x2503e8&&_0x19ad6f&&Js(_0x56eaf1,_0x2e9c7e,_0x19ad6f),_0x19ad6f;},Ne=(_0x46993a,_0x43b7f3)=>(_0x147e92,_0x571553)=>_0x43b7f3(_0x147e92,_0x571553,_0x46993a);exports[_0x3cc0f6(0x3fc)]=class extends a['RxDisposable']{constructor(_0x58e624,_0x59db86,_0x47cf20){const _0x340b5d=_0x3cc0f6;super(),u(this,_0x340b5d(0x318),new Map()),u(this,_0x340b5d(0x33d),new v[(_0x340b5d(0x2c3))]()),(this[_0x340b5d(0x5ba)]=_0x58e624,this['_collabSessionService']=_0x59db86,this[_0x340b5d(0x34b)]=_0x47cf20,this[_0x340b5d(0x53a)]());}[_0x3cc0f6(0x32b)](){const _0x279792=_0x3cc0f6;super[_0x279792(0x32b)](),this[_0x279792(0x318)][_0x279792(0x300)](_0x1fa1b1=>_0x1fa1b1[_0x279792(0x32b)]()),this['_entities'][_0x279792(0x48b)]();}[_0x3cc0f6(0x383)](_0x3245bc){const _0x6ab9f7=_0x3cc0f6;var _0x1666ba;return(_0x1666ba=this[_0x6ab9f7(0x318)][_0x6ab9f7(0x3de)](_0x3245bc))!=null?_0x1666ba:null;}[_0x3cc0f6(0x2a9)](_0x6e67cb){const _0x1f1ef7=_0x3cc0f6,_0x560073=this[_0x1f1ef7(0x383)](_0x6e67cb);return _0x560073?v['of'](_0x560073):this[_0x1f1ef7(0x33d)][_0x1f1ef7(0x57c)](E[_0x1f1ef7(0x545)](_0x32bd8e=>_0x32bd8e[_0x1f1ef7(0x426)]===_0x6e67cb));}[_0x3cc0f6(0x53a)](){const _0x91c9eb=_0x3cc0f6;this[_0x91c9eb(0x34b)][_0x91c9eb(0x541)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x336)])[_0x91c9eb(0x57c)](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]),E[_0x91c9eb(0x490)](0x10))[_0x91c9eb(0x342)](async _0x5e398a=>{const _0x11cd45=_0x91c9eb,_0x3824c5=_0x5e398a[_0x11cd45(0x527)](),_0x15affc=await this[_0x11cd45(0x39a)](_0x3824c5,H[_0x11cd45(0x336)]);this[_0x11cd45(0x318)][_0x11cd45(0x420)](_0x3824c5,_0x15affc);}),this[_0x91c9eb(0x34b)][_0x91c9eb(0x541)](a[_0x91c9eb(0x31e)]['UNIVER_DOC'])['pipe'](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]),E[_0x91c9eb(0x490)](0x10))[_0x91c9eb(0x57c)](E['filter'](_0x403d1a=>!_0x403d1a[_0x91c9eb(0x527)]()[_0x91c9eb(0x587)]('__')))[_0x91c9eb(0x342)](async _0x848f44=>{const _0x21fea8=_0x91c9eb,_0x7532e9=_0x848f44[_0x21fea8(0x527)](),_0x14d4ab=await this['_startCollaboration'](_0x7532e9,H['UNIVER_DOC']);this['_entities'][_0x21fea8(0x420)](_0x7532e9,_0x14d4ab);}),v[_0x91c9eb(0x570)](this[_0x91c9eb(0x34b)][_0x91c9eb(0x1f9)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x336)]),this[_0x91c9eb(0x34b)][_0x91c9eb(0x1f9)](a[_0x91c9eb(0x31e)][_0x91c9eb(0x3c6)]))[_0x91c9eb(0x57c)](v[_0x91c9eb(0x585)](this[_0x91c9eb(0x38b)]))[_0x91c9eb(0x342)](_0x42d2d1=>{const _0x1ecb2d=_0x91c9eb,_0x456de8=_0x42d2d1[_0x1ecb2d(0x527)](),_0x2ec769=this[_0x1ecb2d(0x318)]['get'](_0x456de8);_0x2ec769&&(_0x2ec769[_0x1ecb2d(0x32b)](),this[_0x1ecb2d(0x318)]['delete'](_0x456de8));});}async[_0x3cc0f6(0x39a)](_0x46b1b7,_0x114bde){const _0x3223c9=_0x3cc0f6,_0x5c1a94=await this[_0x3223c9(0x1fd)][_0x3223c9(0x57b)](_0x46b1b7),_0x6090f6=this[_0x3223c9(0x5ba)]['createInstance'](this[_0x3223c9(0x3bc)](_0x114bde),_0x46b1b7,_0x114bde,_0x5c1a94);return await _0x6090f6[_0x3223c9(0x5d4)](),this[_0x3223c9(0x33d)][_0x3223c9(0x517)](_0x6090f6),_0x6090f6;}[_0x3cc0f6(0x3bc)](_0x977bff){const _0x8ff0eb=_0x3cc0f6;switch(_0x977bff){case H['UNIVER_DOC']:return exports['DocCollaborationEntity'];case H[_0x8ff0eb(0x336)]:return exports['SheetCollaborationEntity'];default:throw new Error(_0x8ff0eb(0x3ad)+_0x977bff);}}},exports[_0x3cc0f6(0x3fc)]=Qs([Ne(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),Ne(0x1,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x3c0)])),Ne(0x2,a[_0x3cc0f6(0x2f2)])],exports[_0x3cc0f6(0x3fc)]);const ct=[_0x3cc0f6(0x379),_0x3cc0f6(0x1f4),_0x3cc0f6(0x35c),_0x3cc0f6(0x246),_0x3cc0f6(0x4ab),_0x3cc0f6(0x40c)];class Je extends a[_0x3cc0f6(0x31b)]{constructor(){const _0x1c3dbb=_0x3cc0f6;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x1c3dbb(0x474),0x0);}[_0x3cc0f6(0x2aa)](_0x4bddd7){const _0x5374b5=_0x3cc0f6;if(this[_0x5374b5(0x1f6)]['has'](_0x4bddd7))return this[_0x5374b5(0x1f6)][_0x5374b5(0x3de)](_0x4bddd7);const _0x3c7622=ct[this[_0x5374b5(0x474)]];return this['_colorIndex']=(this[_0x5374b5(0x474)]+0x1)%ct['length'],this['_assignedColors'][_0x5374b5(0x420)](_0x4bddd7,_0x3c7622),_0x3c7622;}}var ei=Object[_0x3cc0f6(0x1c6)],ti=Object[_0x3cc0f6(0x544)],si=(_0xfe02cb,_0x383a21,_0x10db27,_0x434d10)=>{const _0x31c4f6=_0x3cc0f6;for(var _0x502b36=_0x434d10>0x1?void 0x0:_0x434d10?ti(_0x383a21,_0x10db27):_0x383a21,_0x629759=_0xfe02cb[_0x31c4f6(0x411)]-0x1,_0x1828f8;_0x629759>=0x0;_0x629759--)(_0x1828f8=_0xfe02cb[_0x629759])&&(_0x502b36=(_0x434d10?_0x1828f8(_0x383a21,_0x10db27,_0x502b36):_0x1828f8(_0x502b36))||_0x502b36);return _0x434d10&&_0x502b36&&ei(_0x383a21,_0x10db27,_0x502b36),_0x502b36;},z=(_0x29eb11,_0x252443)=>(_0x122287,_0x4e7cae)=>_0x252443(_0x122287,_0x4e7cae,_0x29eb11);const ii=0x12c,ni=0x64;let ke=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x38e65b,_0x2686e4,_0x43e05e,_0x5a7feb,_0x370b7d,_0x198817,_0x49bdd0,_0xf9e7d,_0x6bb67e){const _0x404f35=_0x3cc0f6;super(),u(this,_0x404f35(0x3d6),!0x1),u(this,'_init',!0x1),u(this,_0x404f35(0x305),new v[(_0x404f35(0x3ea))](new Map())),u(this,_0x404f35(0x59d),this[_0x404f35(0x305)][_0x404f35(0x459)]()),u(this,_0x404f35(0x2d6),new v[(_0x404f35(0x3ea))]([])),u(this,_0x404f35(0x329),this['_roomMembers$']['pipe'](v[_0x404f35(0x4fa)](ii))),u(this,_0x404f35(0x28a),a[_0x404f35(0x50d)](_0x42f1af=>{const _0x41aa35=_0x404f35,_0x26338b={'eventID':_[_0x41aa35(0x400)][_0x41aa35(0x284)],'data':{'unitID':this['unitID'],'memberID':this['_session']['getMemberID'](),'selection':yt(_0x42f1af)}};this[_0x41aa35(0x5cd)][_0x41aa35(0x5d7)](_0x26338b,this[_0x41aa35(0x426)]);},ni)),(this[_0x404f35(0x426)]=_0x38e65b,this[_0x404f35(0x5cd)]=_0x2686e4,this[_0x404f35(0x5ba)]=_0x43e05e,this[_0x404f35(0x1e1)]=_0x5a7feb,this[_0x404f35(0x5a7)]=_0x370b7d,this['_syncEditingCollabCursorService']=_0x198817,this[_0x404f35(0x5c3)]=_0x49bdd0,this[_0x404f35(0x34b)]=_0xf9e7d,this[_0x404f35(0x495)]=_0x6bb67e);}get[_0x3cc0f6(0x358)](){const _0x5cb8df=_0x3cc0f6;return this['_cursorInfo$'][_0x5cb8df(0x535)]();}get[_0x3cc0f6(0x4ad)](){const _0x2fc0fe=_0x3cc0f6;return this['_roomMembers$'][_0x2fc0fe(0x535)]();}['dispose'](){const _0x330f40=_0x3cc0f6;super['dispose'](),this[_0x330f40(0x305)]['next'](new Map()),this[_0x330f40(0x305)]['complete'](),this[_0x330f40(0x2d6)][_0x330f40(0x517)]([]),this[_0x330f40(0x2d6)]['complete']();}[_0x3cc0f6(0x5d4)](){const _0xd2c7e=_0x3cc0f6;this[_0xd2c7e(0x53a)]||(this[_0xd2c7e(0x53a)]=!0x0,this[_0xd2c7e(0x5cd)][_0xd2c7e(0x1eb)][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this['dispose$']))[_0xd2c7e(0x342)](_0x485132=>{const _0x5e1e8b=_0xd2c7e;_0x485132===x[_0x5e1e8b(0x478)]?this[_0x5e1e8b(0x223)]():this[_0x5e1e8b(0x355)]();}),this[_0xd2c7e(0x5cd)]['event$'][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this['dispose$']))[_0xd2c7e(0x342)](_0x535b42=>{const _0x619966=_0xd2c7e,_0x381cf6=_0x535b42[_0x619966(0x21b)];_0x381cf6===_[_0x619966(0x400)][_0x619966(0x284)]&&this[_0x619966(0x50a)](_0x535b42),_0x381cf6===_['CollaborationEvent'][_0x619966(0x5cf)]&&this[_0x619966(0x344)](_0x535b42);}),this[_0xd2c7e(0x217)](this['_commandService']['onCommandExecuted'](_0x55c1d3=>{const _0x11884a=_0xd2c7e,_0x7bf13c=_0x55c1d3[_0x11884a(0x3f2)];_0x7bf13c!=null&&this[_0x11884a(0x3d6)]&&_0x55c1d3['id']===re[_0x11884a(0x39b)]['id']&&_0x7bf13c[_0x11884a(0x3e7)]===this[_0x11884a(0x426)]&&_0x7bf13c['isEditing']===!0x1&&_0x7bf13c[_0x11884a(0x4d2)]['length']>0x0&&this['_updateLocalCursor'](_0x7bf13c[_0x11884a(0x4d2)]);})),this[_0xd2c7e(0x38f)][_0xd2c7e(0x5a5)][_0xd2c7e(0x57c)](v[_0xd2c7e(0x585)](this[_0xd2c7e(0x38b)]))[_0xd2c7e(0x342)](_0x3d4638=>{const _0x5102ee=_0xd2c7e;if((_0x3d4638==null?void 0x0:_0x3d4638['unitID'])!==this[_0x5102ee(0x426)])return;const _0x4bd2fe={'eventID':_[_0x5102ee(0x400)][_0x5102ee(0x284)],'data':_0x3d4638};this[_0x5102ee(0x50a)](_0x4bd2fe);}),this[_0xd2c7e(0x217)](this['_commandService'][_0xd2c7e(0x26e)](_0x4974e1=>{const _0x2b1183=_0xd2c7e;if(_0x4974e1[_0x2b1183(0x3f2)]==null)return;const _0x4fe4a7=_0x4974e1['params'];if(_0x4974e1['id']!==re[_0x2b1183(0x4c0)]['id']||_0x4fe4a7[_0x2b1183(0x3e7)]!==this[_0x2b1183(0x426)])return;const _0xac72c9={'id':_0x2b1183(0x2b2),'params':_0x4fe4a7},_0x32f72a=this[_0x2b1183(0x358)];for(const [_0x44a03a,_0x5971f4]of _0x32f72a){const _0x18bdd8={'id':_0x2b1183(0x2b2),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5971f4[_0x2b1183(0x4d2)]}},_0x7d048e=this['_transformService'][_0x2b1183(0x3ef)](_0xac72c9,_0x18bdd8,!0x1);if(_[_0x2b1183(0x4dd)](_0x7d048e))throw _0x7d048e[_0x2b1183(0x2c9)];_0x32f72a[_0x2b1183(0x420)](_0x44a03a,{..._0x5971f4,'ranges':_0x7d048e[_0x2b1183(0x201)][_0x2b1183(0x3f2)][_0x2b1183(0x3b1)]});}queueMicrotask(()=>{const _0x4d17f2=_0x2b1183;this[_0x4d17f2(0x305)]['next'](_0x32f72a);});})));}[_0x3cc0f6(0x50a)](_0x29dece){const _0x186c60=_0x3cc0f6;var _0x91b626,_0x5b9754;const {memberID:_0x21612d,selection:_0x4e89a7}=_0x29dece[_0x186c60(0x35a)],_0x1fade2=ks(_0x4e89a7),_0x3633b4=(_0x5b9754=(_0x91b626=this[_0x186c60(0x5a7)][_0x186c60(0x5cc)](this[_0x186c60(0x426)],_0x21612d))==null?void 0x0:_0x91b626['name'])!=null?_0x5b9754:_0x186c60(0x5a6),_0x1e098a={'color':this[_0x186c60(0x1e1)]['assignAColorForMemberID'](_0x21612d),'name':_0x3633b4,'ranges':_0x1fade2},_0x52c57c=this[_0x186c60(0x358)];_0x52c57c[_0x186c60(0x420)](_0x21612d,_0x1e098a),this[_0x186c60(0x305)][_0x186c60(0x517)](_0x52c57c);}[_0x3cc0f6(0x344)](_0x4fc827){const _0x582b81=_0x3cc0f6,{memberID:_0x580cea}=_0x4fc827[_0x582b81(0x35a)],_0x48aae1=this[_0x582b81(0x358)];_0x48aae1[_0x582b81(0x3c4)](_0x580cea),this['_cursorInfo$'][_0x582b81(0x517)](_0x48aae1);}[_0x3cc0f6(0x223)](){const _0x513fbe=_0x3cc0f6;var _0x249b82;if(this[_0x513fbe(0x3d6)]=!0x0,((_0x249b82=this[_0x513fbe(0x34b)]['getFocusedUnit']())==null?void 0x0:_0x249b82[_0x513fbe(0x527)]())!==this[_0x513fbe(0x426)])return;const _0x237e29=this[_0x513fbe(0x5ba)][_0x513fbe(0x3de)](re['DocSelectionManagerService'])[_0x513fbe(0x52f)]();Array['isArray'](_0x237e29)&&_0x237e29['length']>0x0&&this[_0x513fbe(0x28a)](_0x237e29);}['_toggleOffline'](){this['_online']=!0x1;}};ke=si([z(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),z(0x3,a[_0x3cc0f6(0x573)](Je)),z(0x4,a[_0x3cc0f6(0x573)](Z)),z(0x5,a['Inject'](qe)),z(0x6,_['ITransformService']),z(0x7,a[_0x3cc0f6(0x2f2)]),z(0x8,a[_0x3cc0f6(0x1d6)])],ke);var ri=Object[_0x3cc0f6(0x1c6)],oi=Object['getOwnPropertyDescriptor'],ai=(_0x25fbf5,_0x43ecf8,_0xb2ac5c,_0x107059)=>{const _0x8d0e6d=_0x3cc0f6;for(var _0x5851b6=_0x107059>0x1?void 0x0:_0x107059?oi(_0x43ecf8,_0xb2ac5c):_0x43ecf8,_0x161df0=_0x25fbf5[_0x8d0e6d(0x411)]-0x1,_0x5e6a04;_0x161df0>=0x0;_0x161df0--)(_0x5e6a04=_0x25fbf5[_0x161df0])&&(_0x5851b6=(_0x107059?_0x5e6a04(_0x43ecf8,_0xb2ac5c,_0x5851b6):_0x5e6a04(_0x5851b6))||_0x5851b6);return _0x107059&&_0x5851b6&&ri(_0x43ecf8,_0xb2ac5c,_0x5851b6),_0x5851b6;},se=(_0x220822,_0x5a991b)=>(_0x5f5964,_0x8f4ef8)=>_0x5a991b(_0x5f5964,_0x8f4ef8,_0x220822);const ci=0x12c,li=0x64,hi=()=>{let _0x2580ff=[],_0x424dc5=!0x1;return _0x2f25c3=>{const _0x495adc=_0x10ac;_0x2580ff[_0x495adc(0x430)](_0x2f25c3),_0x424dc5||(_0x424dc5=!0x0,setTimeout(()=>{const _0x179cb7=_0x495adc;_0x2580ff[_0x179cb7(0x300)](_0x4142f9=>_0x4142f9()),_0x2580ff=[],_0x424dc5=!0x1;}));};};let Be=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x2f37cb,_0x4c9b23,_0x549b3b,_0x5dc37f,_0x438603,_0x52eee5,_0x155b1d,_0x2fa33){const _0x12cc98=_0x3cc0f6;super(),u(this,'_online',!0x1),u(this,_0x12cc98(0x53a),!0x1),u(this,_0x12cc98(0x305),new v['BehaviorSubject'](new Map())),u(this,_0x12cc98(0x59d),this[_0x12cc98(0x305)]['asObservable']()),u(this,_0x12cc98(0x2d6),new v[(_0x12cc98(0x3ea))]([])),u(this,_0x12cc98(0x329),this['_roomMembers$'][_0x12cc98(0x57c)](v[_0x12cc98(0x4fa)](ci))),u(this,_0x12cc98(0x28a),a[_0x12cc98(0x50d)]((_0x49f5db,_0x17b196)=>{const _0x552679=_0x12cc98,_0x4ea7b8={'eventID':_['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x552679(0x426)],'memberID':this[_0x552679(0x5cd)][_0x552679(0x1f1)](),'selection':et[_0x552679(0x473)](_0x49f5db,_0x17b196[_0x552679(0x36a)])}};this['_session'][_0x552679(0x5d7)](_0x4ea7b8,this[_0x552679(0x426)]);},li)),(this[_0x12cc98(0x426)]=_0x2f37cb,this[_0x12cc98(0x5cd)]=_0x4c9b23,this[_0x12cc98(0x5ba)]=_0x549b3b,this[_0x12cc98(0x1e1)]=_0x5dc37f,this[_0x12cc98(0x5a7)]=_0x438603,this[_0x12cc98(0x34b)]=_0x52eee5,this[_0x12cc98(0x495)]=_0x155b1d,this['_refRangeService']=_0x2fa33);}get['cursorInfo'](){const _0x113a15=_0x3cc0f6;return this[_0x113a15(0x305)]['getValue']();}get['roomMembers'](){const _0x381a31=_0x3cc0f6;return this[_0x381a31(0x2d6)][_0x381a31(0x535)]();}[_0x3cc0f6(0x32b)](){const _0x5c416e=_0x3cc0f6;super['dispose'](),this[_0x5c416e(0x305)][_0x5c416e(0x517)](new Map()),this[_0x5c416e(0x305)][_0x5c416e(0x5d2)](),this[_0x5c416e(0x2d6)]['next']([]),this['_roomMembers$']['complete']();}[_0x3cc0f6(0x5d4)](){const _0x2d63a8=_0x3cc0f6;this[_0x2d63a8(0x53a)]||(this[_0x2d63a8(0x53a)]=!0x0,this[_0x2d63a8(0x5cd)][_0x2d63a8(0x1eb)][_0x2d63a8(0x57c)](v['takeUntil'](this[_0x2d63a8(0x38b)]))[_0x2d63a8(0x342)](_0x59a997=>{const _0x5cdff4=_0x2d63a8;_0x59a997===x[_0x5cdff4(0x478)]?this[_0x5cdff4(0x223)]():this['_toggleOffline']();}),this[_0x2d63a8(0x5cd)][_0x2d63a8(0x574)]['pipe'](v[_0x2d63a8(0x585)](this[_0x2d63a8(0x38b)]))[_0x2d63a8(0x342)](_0x22f436=>{const _0x515e11=_0x2d63a8,_0xcdda08=_0x22f436[_0x515e11(0x21b)];_0xcdda08===_[_0x515e11(0x400)]['UPDATE_CURSOR']&&this[_0x515e11(0x50a)](_0x22f436),_0xcdda08===_[_0x515e11(0x400)][_0x515e11(0x5cf)]&&this[_0x515e11(0x344)](_0x22f436);}),this[_0x2d63a8(0x1bd)](),this[_0x2d63a8(0x217)](this[_0x2d63a8(0x495)]['onCommandExecuted'](_0x57bf1a=>{const _0x10045b=_0x2d63a8;if(this[_0x10045b(0x3d6)]&&_0x57bf1a['id']===C['SetSelectionsOperation']['id']&&_0x57bf1a['params'][_0x10045b(0x3e7)]===this[_0x10045b(0x426)]){const _0x4e8a12=_0x57bf1a[_0x10045b(0x3f2)];this[_0x10045b(0x28a)](_0x4e8a12[_0x10045b(0x3b8)],_0x4e8a12[_0x10045b(0x1df)][0x0]);}})));}[_0x3cc0f6(0x50a)](_0x2eefe9){const _0x1bdee7=_0x3cc0f6;var _0x3a9b15,_0x2ba6ea;const {memberID:_0x5323e5,selection:_0x2650ea}=_0x2eefe9[_0x1bdee7(0x35a)],{sheetName:_0x46696f,range:_0x2e7bc8}=et[_0x1bdee7(0x2ff)](_0x2650ea),_0x5f20d6={'name':(_0x2ba6ea=(_0x3a9b15=this[_0x1bdee7(0x5a7)][_0x1bdee7(0x5cc)](this[_0x1bdee7(0x426)],_0x5323e5))==null?void 0x0:_0x3a9b15[_0x1bdee7(0x51a)])!=null?_0x2ba6ea:_0x1bdee7(0x5a6),'range':this[_0x1bdee7(0x4f7)](_0x46696f,_0x2e7bc8),'sheetID':_0x46696f,'color':this[_0x1bdee7(0x1e1)][_0x1bdee7(0x2aa)](_0x5323e5),'selection':_0x2650ea},_0x33e35b=this['cursorInfo'];_0x33e35b[_0x1bdee7(0x420)](_0x5323e5,_0x5f20d6),this[_0x1bdee7(0x305)][_0x1bdee7(0x517)](_0x33e35b);}['_onCursorDelete'](_0x597af9){const _0x473611=_0x3cc0f6,{memberID:_0x140ae5}=_0x597af9[_0x473611(0x35a)],_0xa6c063=this['cursorInfo'];_0xa6c063[_0x473611(0x3c4)](_0x140ae5),this[_0x473611(0x305)][_0x473611(0x517)](_0xa6c063);}['_getMergeRange'](_0x121171,_0x288bd5){const _0x51fd0b=_0x3cc0f6;var _0x2fd1ed,_0x8e5af3;const _0x4971f4=(_0x8e5af3=(_0x2fd1ed=this[_0x51fd0b(0x34b)][_0x51fd0b(0x3fa)](this[_0x51fd0b(0x426)]))==null?void 0x0:_0x2fd1ed[_0x51fd0b(0x23d)](_0x121171))==null?void 0x0:_0x8e5af3['getMergeData']();return(_0x4971f4==null?void 0x0:_0x4971f4['find'](_0x3e8634=>a[_0x51fd0b(0x45c)][_0x51fd0b(0x1d2)](_0x3e8634,_0x288bd5)))||_0x288bd5;}[_0x3cc0f6(0x1bd)](){const _0x2a3fd4=_0x3cc0f6,_0x47d001=new a['DisposableCollection'](),_0x5c8b00=hi(),_0x1e058c=()=>{const _0x71ae42=_0x10ac;_0x47d001['dispose']();const _0x1343f6=(_0x4cfd10,_0x3afa25,_0x4ab9bf,_0x18d9cc)=>{const _0x33a18f=_0x10ac;let _0x5c985f=[];switch(_0x4cfd10['id']){case C[_0x33a18f(0x407)][_0x33a18f(0x1c8)]:{_0x5c985f=C[_0x33a18f(0x501)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x51d)]:{_0x5c985f=C[_0x33a18f(0x21a)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x33c)]:{_0x5c985f=C[_0x33a18f(0x295)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x592)]:{_0x5c985f=C[_0x33a18f(0x3d5)](_0x4cfd10,_0x18d9cc);break;}case C['EffectRefRangId'][_0x33a18f(0x215)]:{_0x5c985f=C[_0x33a18f(0x47d)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x533)]:{_0x5c985f=C[_0x33a18f(0x303)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x4b3)]:{_0x5c985f=C['handleMoveRange'](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)]['RemoveColCommandId']:{_0x5c985f=C[_0x33a18f(0x225)](_0x4cfd10,_0x18d9cc);break;}case C[_0x33a18f(0x407)][_0x33a18f(0x410)]:{_0x5c985f=C['handleIRemoveRow'](_0x4cfd10,_0x18d9cc);break;}}const _0x22c9ab=C[_0x33a18f(0x5aa)](_0x5c985f,_0x18d9cc),_0x13e1ff=this[_0x33a18f(0x358)][_0x33a18f(0x3de)](_0x3afa25);if(_0x13e1ff&&_0x22c9ab){const _0x13334f={..._0x13e1ff,'range':_0x22c9ab};this['cursorInfo'][_0x33a18f(0x420)](_0x3afa25,_0x13334f),_0x5c8b00(()=>{const _0x1ffcba=_0x33a18f,_0x9dc470=this[_0x1ffcba(0x290)]['registerRefRange'](_0x22c9ab,_0x1f2113=>(_0x9dc470[_0x1ffcba(0x32b)](),_0x1343f6(_0x1f2113,_0x3afa25,_0x4ab9bf,_0x22c9ab)));_0x47d001[_0x1ffcba(0x44c)](_0x9dc470);});}return{'redos':[],'undos':[]};};this[_0x71ae42(0x358)][_0x71ae42(0x300)]((_0x36ad20,_0xb3afa0)=>{const _0x66afe=_0x71ae42,{range:_0x1788ae,sheetID:_0x18fa81}=_0x36ad20,_0x3a6714=this[_0x66afe(0x290)][_0x66afe(0x4b0)](_0x1788ae,_0x54613a=>(_0x3a6714['dispose'](),_0x1343f6(_0x54613a,_0xb3afa0,_0x18fa81,_0x1788ae)));_0x47d001[_0x66afe(0x44c)](_0x3a6714);});};this[_0x2a3fd4(0x217)](a[_0x2a3fd4(0x2ba)](this[_0x2a3fd4(0x305)][_0x2a3fd4(0x342)](()=>{_0x1e058c();})));}[_0x3cc0f6(0x223)](){const _0x2be51f=_0x3cc0f6;var _0x337cbb,_0x145d5d;if(this[_0x2be51f(0x3d6)]=!0x0,((_0x337cbb=this[_0x2be51f(0x34b)][_0x2be51f(0x434)]())==null?void 0x0:_0x337cbb[_0x2be51f(0x527)]())!==this[_0x2be51f(0x426)])return;const _0x39ddfe=(_0x145d5d=this['_injector'][_0x2be51f(0x3de)](C[_0x2be51f(0x2fc)])[_0x2be51f(0x416)]())==null?void 0x0:_0x145d5d[0x0],_0xd5ff2e=this[_0x2be51f(0x34b)]['getCurrentUnitForType'](a[_0x2be51f(0x31e)][_0x2be51f(0x336)])['getActiveSheet']();_0x39ddfe&&_0xd5ff2e&&this['_updateLocalCursor'](_0xd5ff2e[_0x2be51f(0x255)](),_0x39ddfe);}[_0x3cc0f6(0x355)](){const _0x1c26b2=_0x3cc0f6;this[_0x1c26b2(0x3d6)]=!0x1;}};Be=ai([se(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),se(0x3,a[_0x3cc0f6(0x573)](Je)),se(0x4,a[_0x3cc0f6(0x573)](Z)),se(0x5,a['IUniverInstanceService']),se(0x6,a[_0x3cc0f6(0x1d6)]),se(0x7,a[_0x3cc0f6(0x573)](C['RefRangeService']))],Be);var _i=Object['defineProperty'],ui=Object[_0x3cc0f6(0x544)],di=(_0x1bc572,_0x416a4b,_0x556f53,_0x3dcb86)=>{const _0x4f1d58=_0x3cc0f6;for(var _0x35aa8b=_0x3dcb86>0x1?void 0x0:_0x3dcb86?ui(_0x416a4b,_0x556f53):_0x416a4b,_0x31ae1a=_0x1bc572[_0x4f1d58(0x411)]-0x1,_0x5297c3;_0x31ae1a>=0x0;_0x31ae1a--)(_0x5297c3=_0x1bc572[_0x31ae1a])&&(_0x35aa8b=(_0x3dcb86?_0x5297c3(_0x416a4b,_0x556f53,_0x35aa8b):_0x5297c3(_0x35aa8b))||_0x35aa8b);return _0x3dcb86&&_0x35aa8b&&_i(_0x416a4b,_0x556f53,_0x35aa8b),_0x35aa8b;},Me=(_0x5eee9e,_0x58b1cf)=>(_0x33f918,_0x14270b)=>_0x58b1cf(_0x33f918,_0x14270b,_0x5eee9e);let ae=class extends a['RxDisposable']{constructor(_0x1faa0a,_0x3fd880,_0x53a6a8){const _0x1af8a2=_0x3cc0f6;super(),u(this,_0x1af8a2(0x318),new Map()),u(this,'_entityInit$',new v[(_0x1af8a2(0x2c3))]()),(this[_0x1af8a2(0x34b)]=_0x1faa0a,this[_0x1af8a2(0x5ba)]=_0x3fd880,this['_collabSessionService']=_0x53a6a8,this['_init']());}['dispose'](){const _0x32f21e=_0x3cc0f6;super[_0x32f21e(0x32b)](),this[_0x32f21e(0x33d)][_0x32f21e(0x5d2)](),this[_0x32f21e(0x318)][_0x32f21e(0x300)](_0x5694bb=>_0x5694bb['dispose']());}['getCollabCursors$'](_0x476a76){const _0x9420cf=_0x3cc0f6;return this['_entities'][_0x9420cf(0x2d0)](_0x476a76)?this['_entities']['get'](_0x476a76)['cursorInfo$']:this[_0x9420cf(0x33d)][_0x9420cf(0x57c)](v['filter'](_0x330489=>_0x330489[_0x9420cf(0x426)]===_0x476a76),v[_0x9420cf(0x4d4)](_0x123e1c=>_0x123e1c['cursorInfo$']));}[_0x3cc0f6(0x53a)](){const _0x45be90=_0x3cc0f6;this['_univerInstanceService'][_0x45be90(0x541)](a['UniverInstanceType'][_0x45be90(0x336)])[_0x45be90(0x57c)](v[_0x45be90(0x585)](this[_0x45be90(0x38b)]))[_0x45be90(0x342)](async _0x5a295e=>{const _0x31330b=_0x45be90,_0x4de5bc=_0x5a295e[_0x31330b(0x527)](),_0xec287c=await this[_0x31330b(0x2ae)](_0x4de5bc);this[_0x31330b(0x33d)][_0x31330b(0x517)](_0xec287c),this[_0x31330b(0x318)][_0x31330b(0x420)](_0x4de5bc,_0xec287c);}),this[_0x45be90(0x34b)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x45be90(0x3c6)])['pipe'](v[_0x45be90(0x585)](this[_0x45be90(0x38b)]))[_0x45be90(0x57c)](v[_0x45be90(0x545)](_0x42e7bf=>!_0x42e7bf[_0x45be90(0x527)]()['startsWith']('__')))['subscribe'](async _0x79f812=>{const _0x15b6e8=_0x45be90,_0x44a4c8=_0x79f812[_0x15b6e8(0x527)](),_0x384c85=await this[_0x15b6e8(0x330)](_0x44a4c8);this[_0x15b6e8(0x33d)][_0x15b6e8(0x517)](_0x384c85),this[_0x15b6e8(0x318)]['set'](_0x44a4c8,_0x384c85);}),v[_0x45be90(0x570)](this[_0x45be90(0x34b)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x45be90(0x3c6)]),this[_0x45be90(0x34b)][_0x45be90(0x1f9)](a[_0x45be90(0x31e)]['UNIVER_SHEET']))[_0x45be90(0x57c)](v[_0x45be90(0x585)](this['dispose$']))[_0x45be90(0x342)](_0x509def=>{const _0x373cc4=_0x45be90,_0x1ef80b=_0x509def['getUnitId'](),_0x4c7555=this[_0x373cc4(0x318)][_0x373cc4(0x3de)](_0x1ef80b);_0x4c7555&&(_0x4c7555[_0x373cc4(0x32b)](),this[_0x373cc4(0x318)][_0x373cc4(0x3c4)](_0x1ef80b));});}async[_0x3cc0f6(0x2ae)](_0x1a43ab){const _0x1a9125=_0x3cc0f6,_0x1cc169=await this[_0x1a9125(0x1fd)][_0x1a9125(0x57b)](_0x1a43ab),_0x110f2c=this['_injector']['createInstance'](Be,_0x1a43ab,_0x1cc169);return _0x110f2c[_0x1a9125(0x5d4)](),_0x110f2c;}async['_startDocCollabCursor'](_0x360e17){const _0x51da6a=_0x3cc0f6,_0x4518d4=await this[_0x51da6a(0x1fd)][_0x51da6a(0x57b)](_0x360e17),_0x1b8cd0=this['_injector']['createInstance'](ke,_0x360e17,_0x4518d4);return _0x1b8cd0[_0x51da6a(0x5d4)](),_0x1b8cd0;}};ae=di([Me(0x0,a[_0x3cc0f6(0x2f2)]),Me(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),Me(0x2,a['Inject'](exports[_0x3cc0f6(0x3c0)]))],ae);const Se=0x14,lt=0xc8,Ae=0x4,Si=0x5;function vi(_0xdd897d,_0x3a84c1){const _0x7988cb=_0x3cc0f6;let {radius:_0x2c3716,width:_0x5388b8,height:_0x1b3f8b}=_0x3a84c1;_0x2c3716=_0x2c3716!=null?_0x2c3716:0x0,_0x5388b8=_0x5388b8!=null?_0x5388b8:0x1e,_0x1b3f8b=_0x1b3f8b!=null?_0x1b3f8b:0x1e;let _0x374aa4=0x0,_0x354b04=0x0,_0x3a54c7=0x0;_0x374aa4=_0x354b04=_0x3a54c7=Math['min'](_0x2c3716,_0x5388b8/0x2,_0x1b3f8b/0x2),_0xdd897d[_0x7988cb(0x2e0)](),_0xdd897d['moveTo'](_0x374aa4,0x0),_0xdd897d[_0x7988cb(0x337)](_0x5388b8-_0x354b04,0x0),_0xdd897d['arc'](_0x5388b8-_0x354b04,_0x354b04,_0x354b04,Math['PI']*0x3/0x2,0x0,!0x1),_0xdd897d[_0x7988cb(0x337)](_0x5388b8,_0x1b3f8b-_0x3a54c7),_0xdd897d['arc'](_0x5388b8-_0x3a54c7,_0x1b3f8b-_0x3a54c7,_0x3a54c7,0x0,Math['PI']/0x2,!0x1),_0xdd897d['lineTo'](0x0,_0x1b3f8b),_0xdd897d[_0x7988cb(0x337)](0x0,_0x374aa4),_0xdd897d[_0x7988cb(0x328)](_0x374aa4,_0x374aa4,_0x374aa4,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0xdd897d[_0x7988cb(0x3af)](),_0x3a84c1[_0x7988cb(0x480)]&&(_0xdd897d[_0x7988cb(0x5b8)](),_0xdd897d[_0x7988cb(0x3bd)]=_0x3a84c1[_0x7988cb(0x480)],_0x3a84c1[_0x7988cb(0x25e)]===_0x7988cb(0x248)?_0xdd897d[_0x7988cb(0x480)](_0x7988cb(0x248)):_0xdd897d[_0x7988cb(0x480)](),_0xdd897d[_0x7988cb(0x569)]());}class De extends O['Shape']{constructor(_0x2ca18e,_0x1df52b){const _0x174269=_0x3cc0f6;super(_0x2ca18e,_0x1df52b),u(this,_0x174269(0x519)),u(this,_0x174269(0x26d)),(this[_0x174269(0x519)]=_0x1df52b==null?void 0x0:_0x1df52b[_0x174269(0x519)],this[_0x174269(0x26d)]=_0x1df52b==null?void 0x0:_0x1df52b[_0x174269(0x26d)]);}static[_0x3cc0f6(0x2f1)](_0xbca734,_0x11a682){const _0x441991=_0x3cc0f6,{text:_0x3d60bc,color:_0x50ade1}=_0x11a682;_0xbca734[_0x441991(0x5b8)](),_0xbca734['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x50c2cb=_0xbca734[_0x441991(0x298)](_0x3d60bc)['width'],_0x2bcd6b=Math[_0x441991(0x565)](_0x50c2cb+0x2*Ae,lt);vi(_0xbca734,{'height':Se,'radius':0x4,'width':_0x2bcd6b,'fill':_0x50ade1,'evented':!0x1}),_0xbca734[_0x441991(0x3bd)]=_0x441991(0x429);const _0x1619f0=Ae,_0xab15db=Se-Si,_0x43c13a=lt-0x2*Ae;if(_0x50c2cb>_0x43c13a){let _0x15468f='',_0x27d801=0x0;for(const _0x14d03c of _0x3d60bc){const _0x2f75f4=_0xbca734['measureText'](_0x14d03c)[_0x441991(0x368)];if(_0x27d801+_0x2f75f4<=_0x43c13a-_0xbca734[_0x441991(0x298)]('...')[_0x441991(0x368)])_0x15468f+=_0x14d03c,_0x27d801+=_0x2f75f4;else{_0x15468f+='...';break;}}_0xbca734['fillText'](_0x15468f,_0x1619f0,_0xab15db);}else _0xbca734[_0x441991(0x3d9)](_0x3d60bc,_0x1619f0,_0xab15db);_0xbca734['restore']();}['_draw'](_0x42a3fb){De['drawWith'](_0x42a3fb,this);}}const Le='collab-text-anchor-',mi=_0x3cc0f6(0x310),gi=_0x3cc0f6(0x5a8),he=0x6,fi=1.5,$e=0x4,Ii=1.5,pi=_0x3cc0f6(0x331);class ht{constructor(_0x9cc904,_0x4902c0,_0x8179d0,_0x2a2a53){const _0xe9f7a5=_0x3cc0f6;u(this,_0xe9f7a5(0x4f3),[]),u(this,'_anchor',null),u(this,'_textBubble',null),u(this,_0xe9f7a5(0x29f),null),u(this,'_hideTimer',null),u(this,_0xe9f7a5(0x452),null),(this[_0xe9f7a5(0x3b5)]=_0x9cc904,this[_0xe9f7a5(0x1ea)]=_0x4902c0,this[_0xe9f7a5(0x532)]=_0x8179d0,this[_0xe9f7a5(0x5b2)]=_0x2a2a53,this[_0xe9f7a5(0x4ff)]());}set[_0x3cc0f6(0x46c)](_0x4abdab){const _0x3dce5c=_0x3cc0f6;_0x4abdab?(this['_anchorDot']&&this[_0x3dce5c(0x29f)][_0x3dce5c(0x210)](),this[_0x3dce5c(0x5c7)]&&this['_textBubble'][_0x3dce5c(0x438)]()):(this[_0x3dce5c(0x29f)]&&this['_anchorDot'][_0x3dce5c(0x438)](),this[_0x3dce5c(0x5c7)]&&this[_0x3dce5c(0x5c7)]['hide']());}[_0x3cc0f6(0x32b)](){const _0x19c032=_0x3cc0f6;for(const _0x1d3e88 of this[_0x19c032(0x4f3)])_0x1d3e88[_0x19c032(0x32b)]();this['_textBubble']&&this[_0x19c032(0x5c7)][_0x19c032(0x32b)](),this[_0x19c032(0x29f)]&&this['_anchorDot'][_0x19c032(0x32b)](),this['_anchor']&&this[_0x19c032(0x30c)]['dispose'](),this[_0x19c032(0x452)]&&this[_0x19c032(0x452)]();}[_0x3cc0f6(0x4ff)](){const _0x37ae1c=_0x3cc0f6;var _0x3fbbb1;const {_docSkeleton:_0x109f47,_document:_0xac3abc}=this,{color:_0x6dffe6,name:_0x4f1d56,ranges:_0x20825a}=this[_0x37ae1c(0x3b5)],_0x2f124c=_0xac3abc['getOffsetConfig'](),{docsLeft:_0x30806b,docsTop:_0x335477}=_0x2f124c,_0x5319e4=new N[(_0x37ae1c(0x26f))](_0x2f124c,_0x109f47);for(const {startOffset:_0x2e4eef,endOffset:_0x283816,rangeType:_0x2e8b4c,segmentId:_0x492485,segmentPage:_0x3cf6d3,collapsed:_0x84172f,isActive:_0x7f9afd}of _0x20825a){const _0x3e8a59=_0x109f47['findNodePositionByCharIndex'](_0x2e4eef,!0x0,_0x492485,_0x3cf6d3);let _0x90431f=_0x109f47[_0x37ae1c(0x1de)](_0x283816,!0x0,_0x492485,_0x3cf6d3);if(_0x90431f==null&&(_0x90431f=_0x109f47['findNodePositionByCharIndex'](_0x283816-0x1,!0x1,_0x492485,_0x3cf6d3)),_0x7f9afd){const {contentBoxPointGroup:_0x33853e}=_0x5319e4[_0x37ae1c(0x1d7)](_0x90431f,_0x90431f);if(_0x33853e[_0x37ae1c(0x411)]===0x0)continue;this[_0x37ae1c(0x572)](_0x6dffe6,_0x33853e,_0x30806b,_0x335477,_0x4f1d56),this[_0x37ae1c(0x452)]=this[_0x37ae1c(0x315)]();}if(!_0x84172f&&_0x3e8a59&&_0x90431f){if(_0x2e8b4c===a[_0x37ae1c(0x45f)][_0x37ae1c(0x51b)]){const _0xf2c1ee=new N[(_0x37ae1c(0x42e))](_0x2f124c,_0x109f47),{pointGroup:_0x1505d6}=(_0x3fbbb1=_0xf2c1ee['getRangePointData'](_0x3e8a59,_0x90431f))!=null?_0x3fbbb1:{};if(_0x1505d6==null||_0x1505d6[_0x37ae1c(0x411)]===0x0)continue;this['_drawRectRange'](_0x6dffe6,_0x1505d6,_0x30806b,_0x335477);}else{const {borderBoxPointGroup:_0x35b62c}=_0x5319e4[_0x37ae1c(0x1d7)](_0x3e8a59,_0x90431f);if(_0x35b62c[_0x37ae1c(0x411)]===0x0)continue;this[_0x37ae1c(0x1d1)](_0x6dffe6,_0x35b62c,_0x30806b,_0x335477);}}}}[_0x3cc0f6(0x572)](_0xac8f89,_0x9433dc,_0x52fb0e,_0x30eb2b,_0x221b87){const _0x470503=_0x3cc0f6,_0x1b4ef2=this[_0x470503(0x4b6)](_0x9433dc),{left:_0x1f9d1b,top:_0x2b31d5,height:_0x27bb25}=_0x1b4ef2,_0x164f65=this[_0x470503(0x595)](),_0x195141=Ii/_0x164f65,_0x3ae930=new O['Rect'](Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b,'height':_0x27bb25,'width':fi,'fill':_0xac8f89||O[_0x470503(0x472)](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'strokeWidth':_0x195141,'stroke':pi,'evented':!0x0});this['_anchor']=_0x3ae930,this[_0x470503(0x1ea)][_0x470503(0x32a)](_0x3ae930,N[_0x470503(0x239)]);const _0x4eaef8=new O['Rect'](Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b-$e/0x2,'height':$e,'width':$e,'fill':_0xac8f89||O[_0x470503(0x472)](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'strokeWidth':0x0,'stroke':_0xac8f89||O['getColor'](a[_0x470503(0x551)][_0x470503(0x507)],0x0),'evented':!0x1});this[_0x470503(0x29f)]=_0x4eaef8,this[_0x470503(0x1ea)][_0x470503(0x32a)](_0x4eaef8,N['TEXT_RANGE_LAYER_INDEX']);const _0x320434=new De(Le+a[_0x470503(0x241)][_0x470503(0x256)](he),{'left':_0x1f9d1b+_0x52fb0e-_0x195141,'top':_0x2b31d5+_0x30eb2b-Se,'text':_0x221b87,'color':_0xac8f89});this[_0x470503(0x5c7)]=_0x320434,this['_scene']['addObject'](_0x320434,N[_0x470503(0x239)]),this[_0x470503(0x46c)]=!0x1;}[_0x3cc0f6(0x315)](){const _0x6a9c2b=_0x3cc0f6,_0x449043=this[_0x6a9c2b(0x30c)]['onPointerEnter$'][_0x6a9c2b(0x432)](()=>{const _0x4ea04c=_0x6a9c2b;this[_0x4ea04c(0x46c)]=!0x0;}),_0x2f2b8d=this[_0x6a9c2b(0x30c)][_0x6a9c2b(0x462)][_0x6a9c2b(0x432)](()=>{const _0x4ddb6f=_0x6a9c2b;this[_0x4ddb6f(0x433)]&&clearTimeout(this[_0x4ddb6f(0x433)]),this[_0x4ddb6f(0x433)]=setTimeout(()=>{const _0x529526=_0x4ddb6f;this[_0x529526(0x46c)]=!0x1;},0x7d0);});return()=>{const _0x48193f=_0x6a9c2b;_0x449043['unsubscribe'](),_0x2f2b8d[_0x48193f(0x5ad)]();};}['_drawTextRange'](_0x5ea4b1,_0x2f657b,_0xae3496,_0x24c053){const _0x4268d4=_0x3cc0f6,_0x1c4c18=new a[(_0x4268d4(0x3a1))](_0x5ea4b1)[_0x4268d4(0x2ea)](0.2)['toRgbString'](),_0x52e129=new O['RegularPolygon'](mi+a[_0x4268d4(0x241)][_0x4268d4(0x256)](he),{'pointsGroup':_0x2f657b,'fill':_0x1c4c18||O[_0x4268d4(0x472)](a[_0x4268d4(0x551)]['black'],0.2),'left':_0xae3496,'top':_0x24c053,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x4268d4(0x430)](_0x52e129),this[_0x4268d4(0x1ea)][_0x4268d4(0x32a)](_0x52e129,N[_0x4268d4(0x239)]);}[_0x3cc0f6(0x38c)](_0x544064,_0x195eb9,_0x47b8cc,_0x46bb6d){const _0x43685a=_0x3cc0f6,_0x5d7c77=new a[(_0x43685a(0x3a1))](_0x544064)['setAlpha'](0.2)[_0x43685a(0x50e)](),_0x39b872=new O[(_0x43685a(0x406))](gi+a[_0x43685a(0x241)][_0x43685a(0x256)](he),{'pointsGroup':_0x195eb9,'fill':_0x5d7c77||O[_0x43685a(0x472)](a['COLORS'][_0x43685a(0x507)],0.2),'left':_0x47b8cc,'top':_0x46bb6d,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x43685a(0x4f3)]['push'](_0x39b872),this['_scene'][_0x43685a(0x32a)](_0x39b872,N[_0x43685a(0x239)]);}[_0x3cc0f6(0x4b6)](_0x5dc569){const _0x1cfc07=_0x5dc569[0x0],_0x526c5f=_0x1cfc07[0x0],_0x21b48f=_0x1cfc07[0x2],{x:_0x23f0cc,y:_0x4d136d}=_0x526c5f,{x:_0x1a3e67,y:_0x659046}=_0x21b48f;return{'left':_0x23f0cc,'top':_0x4d136d,'width':_0x1a3e67-_0x23f0cc,'height':_0x659046-_0x4d136d};}['_getScale'](){const _0x43267d=_0x3cc0f6,{scaleX:_0x3d900c,scaleY:_0x1e6c12}=this[_0x43267d(0x1ea)][_0x43267d(0x235)]();return Math['max'](_0x3d900c,_0x1e6c12);}}var Ci=Object['defineProperty'],Ei=Object['getOwnPropertyDescriptor'],bi=(_0x429003,_0x9ec3af,_0x5e55b9,_0x48f0c4)=>{const _0x5506af=_0x3cc0f6;for(var _0x40d2ae=_0x48f0c4>0x1?void 0x0:_0x48f0c4?Ei(_0x9ec3af,_0x5e55b9):_0x9ec3af,_0x321a7f=_0x429003[_0x5506af(0x411)]-0x1,_0x5bbe47;_0x321a7f>=0x0;_0x321a7f--)(_0x5bbe47=_0x429003[_0x321a7f])&&(_0x40d2ae=(_0x48f0c4?_0x5bbe47(_0x9ec3af,_0x5e55b9,_0x40d2ae):_0x5bbe47(_0x40d2ae))||_0x40d2ae);return _0x48f0c4&&_0x40d2ae&&Ci(_0x9ec3af,_0x5e55b9,_0x40d2ae),_0x40d2ae;},me=(_0x43d424,_0x34c12b)=>(_0x1c695f,_0x5c99b7)=>_0x34c12b(_0x1c695f,_0x5c99b7,_0x43d424);let Ve=class extends a['RxDisposable']{constructor(_0x5bccd6,_0x57e61,_0x1487aa,_0x19f7b0,_0x40279a){const _0x31199a=_0x3cc0f6;super(),u(this,_0x31199a(0x2f3),[]),u(this,_0x31199a(0x296),[]),(this[_0x31199a(0x52c)]=_0x5bccd6,this[_0x31199a(0x38e)]=_0x57e61,this[_0x31199a(0x49a)]=_0x1487aa,this[_0x31199a(0x495)]=_0x19f7b0,this[_0x31199a(0x42d)]=_0x40279a,this[_0x31199a(0x53a)]());}['_init'](){const _0xdb44d5=_0x3cc0f6,_0x27d040=this[_0xdb44d5(0x52c)][_0xdb44d5(0x3e7)],_0x28e801=this[_0xdb44d5(0x38e)];this[_0xdb44d5(0x217)](v[_0xdb44d5(0x276)]([this['_collabCursorController'][_0xdb44d5(0x444)](_0x27d040),this[_0xdb44d5(0x42d)][_0xdb44d5(0x563)]])[_0xdb44d5(0x57c)](E[_0xdb44d5(0x282)](([_0x9b9e6b,_0x548678])=>({'skeleton':_0x28e801['getSkeleton'](),'cursors':[..._0x9b9e6b[_0xdb44d5(0x2f6)]()][_0xdb44d5(0x52a)](_0x103f5d=>({..._0x103f5d,'color':_0x548678[_0x103f5d[_0xdb44d5(0x519)]]}))})))[_0xdb44d5(0x342)](_0x15c7ce=>{const _0x148d69=_0xdb44d5;if(this[_0x148d69(0x5dc)](),_0x15c7ce){const {skeleton:_0x2a4f8e,cursors:_0x114063}=_0x15c7ce;this[_0x148d69(0x557)](_0x2a4f8e,_0x114063);}})),this[_0xdb44d5(0x294)](),this[_0xdb44d5(0x243)]();}[_0x3cc0f6(0x557)](_0x1699a8,_0x5bd30f){const _0x598ee4=_0x3cc0f6,{scene:_0x13c3e2,mainComponent:_0x1e2ea7}=this[_0x598ee4(0x52c)],_0x468788=_0x5bd30f[_0x598ee4(0x282)](_0xe5b532=>new ht(_0xe5b532,_0x13c3e2,_0x1699a8,_0x1e2ea7));this[_0x598ee4(0x2f3)]=_0x468788,this[_0x598ee4(0x296)]=_0x5bd30f;}[_0x3cc0f6(0x3e1)](){const _0xc679f4=_0x3cc0f6;this['_removeCollabCursors']();const {scene:_0x4c242b,mainComponent:_0x3e039f}=this[_0xc679f4(0x52c)],_0x2472ae=this[_0xc679f4(0x38e)][_0xc679f4(0x4cf)](),_0x3a43aa=this[_0xc679f4(0x296)][_0xc679f4(0x282)](_0x103bf8=>new ht(_0x103bf8,_0x4c242b,_0x2472ae,_0x3e039f));this[_0xc679f4(0x2f3)]=_0x3a43aa;}[_0x3cc0f6(0x5dc)](){const _0x4c1ca6=_0x3cc0f6;this[_0x4c1ca6(0x2f3)]['forEach'](_0x476584=>_0x476584[_0x4c1ca6(0x32b)]()),this[_0x4c1ca6(0x2f3)]=[];}['_initCommandExecutedListener'](){const _0x2208a7=_0x3cc0f6,_0x3ad792=[N['SetDocZoomRatioOperation']['id']];this[_0x2208a7(0x217)](this[_0x2208a7(0x495)][_0x2208a7(0x26e)](_0x1cb1d8=>{const _0x18a2dc=_0x2208a7;_0x3ad792[_0x18a2dc(0x2b1)](_0x1cb1d8['id'])&&_0x1cb1d8[_0x18a2dc(0x3f2)]['unitId']===this['_context']['unitId']&&this[_0x18a2dc(0x3e1)]();}));}[_0x3cc0f6(0x294)](){const _0x495789=_0x3cc0f6;this[_0x495789(0x217)](a[_0x495789(0x4b5)](this[_0x495789(0x52c)][_0x495789(0x51e)][_0x495789(0x249)])['pipe'](E[_0x495789(0x545)](_0x57a43c=>_0x57a43c[_0x495789(0x523)]===O[_0x495789(0x529)]['resize']),E[_0x495789(0x5cb)](0x10))[_0x495789(0x342)](()=>{const _0x125352=_0x495789;this[_0x125352(0x3e1)]();}));}};Ve=bi([me(0x1,a[_0x3cc0f6(0x573)](re[_0x3cc0f6(0x522)])),me(0x2,a['Inject'](ae)),me(0x3,a['ICommandService']),me(0x4,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x3b3)]))],Ve);const Ti=0x1,Ri=1.5;class Nt extends O[_0x3cc0f6(0x2d9)]{constructor(_0x585f96,_0x3d4df3){const _0x50a57e=_0x3cc0f6;super(_0x585f96,_0x3d4df3),u(this,_0x50a57e(0x36d)),u(this,'_hovered',!0x1),u(this,'_range'),u(this,_0x50a57e(0x4b1),''),u(this,_0x50a57e(0x446),_0x50a57e(0x4c2)),u(this,'_backgroundColor'),(_0x3d4df3&&this[_0x50a57e(0x423)](_0x3d4df3),this[_0x50a57e(0x49b)][_0x50a57e(0x432)](()=>this[_0x50a57e(0x423)]({'hovered':!0x0})),this['onPointerLeave$'][_0x50a57e(0x432)](()=>this[_0x50a57e(0x423)]({'hovered':!0x1})));}['setShapeProps'](_0x175475){const _0x1f1636=_0x3cc0f6;var _0xad83fb,_0x167b44,_0x43fc1c,_0x399552,_0x13ed17,_0x11c7e0;this[_0x1f1636(0x36d)]=(_0xad83fb=_0x175475[_0x1f1636(0x519)])!=null?_0xad83fb:this[_0x1f1636(0x36d)],this[_0x1f1636(0x20b)]=(_0x167b44=_0x175475[_0x1f1636(0x3e0)])!=null?_0x167b44:this[_0x1f1636(0x20b)],this[_0x1f1636(0x3a8)]=(_0x43fc1c=_0x175475['range'])!=null?_0x43fc1c:this[_0x1f1636(0x3a8)],this[_0x1f1636(0x4b1)]=(_0x399552=_0x175475[_0x1f1636(0x51a)])!=null?_0x399552:this[_0x1f1636(0x4b1)],this[_0x1f1636(0x446)]=(_0x13ed17=_0x175475['labelPosition'])!=null?_0x13ed17:this['_labelPosition'],this[_0x1f1636(0x4f4)]=(_0x11c7e0=_0x175475[_0x1f1636(0x232)])!=null?_0x11c7e0:this[_0x1f1636(0x4f4)],this[_0x1f1636(0x41b)]({'width':_0x175475[_0x1f1636(0x368)],'height':_0x175475[_0x1f1636(0x4be)]});}['onMouseMove'](_0x162130){const _0x4a3ba2=_0x3cc0f6,{row:_0x49f578,column:_0x40fdb4}=_0x162130;if(_0x49f578>=this['_range']['startRow']&&_0x49f578<=this['_range'][_0x4a3ba2(0x316)]&&_0x40fdb4>=this[_0x4a3ba2(0x3a8)][_0x4a3ba2(0x30f)]&&_0x40fdb4<=this[_0x4a3ba2(0x3a8)][_0x4a3ba2(0x378)]){this[_0x4a3ba2(0x423)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x3cc0f6(0x1ff)](_0xfccdf){return!0x1;}['_draw'](_0xaf3856){const _0x547af7=_0x3cc0f6;O['Rect'][_0x547af7(0x2f1)](_0xaf3856,{'width':this['width'],'height':this[_0x547af7(0x4be)],'strokeWidth':Ri,'stroke':this[_0x547af7(0x36d)],'evented':!0x1,'fill':this[_0x547af7(0x4f4)]}),this['_hovered']&&(_0xaf3856[_0x547af7(0x5b8)](),_0xaf3856[_0x547af7(0x3bb)](0x1,0x0,0x0,0x1,this[_0x547af7(0x368)],this[_0x547af7(0x446)]==='bottom'?0x0:-Se),De[_0x547af7(0x2f1)](_0xaf3856,{'text':this[_0x547af7(0x4b1)],'color':this[_0x547af7(0x36d)]}),_0xaf3856['restore']());}}var Oi=Object[_0x3cc0f6(0x1c6)],Di=Object[_0x3cc0f6(0x544)],yi=(_0x3ad8cd,_0x284f1a,_0x153e0a,_0x575110)=>{for(var _0x37fc20=_0x575110>0x1?void 0x0:_0x575110?Di(_0x284f1a,_0x153e0a):_0x284f1a,_0x1c30c9=_0x3ad8cd['length']-0x1,_0x490a37;_0x1c30c9>=0x0;_0x1c30c9--)(_0x490a37=_0x3ad8cd[_0x1c30c9])&&(_0x37fc20=(_0x575110?_0x490a37(_0x284f1a,_0x153e0a,_0x37fc20):_0x490a37(_0x37fc20))||_0x37fc20);return _0x575110&&_0x37fc20&&Oi(_0x284f1a,_0x153e0a,_0x37fc20),_0x37fc20;},je=(_0x4c735e,_0x58481e)=>(_0x551a28,_0xa2f941)=>_0x58481e(_0x551a28,_0xa2f941,_0x4c735e);const Ui=0x1389;let We=class extends a['RxDisposable']{constructor(_0x40ce9a,_0x54900a,_0x144b30,_0x2e8627){const _0xe2da81=_0x3cc0f6;super(),u(this,'_cursors',new Set()),u(this,_0xe2da81(0x1c0),null),(this[_0xe2da81(0x52c)]=_0x40ce9a,this[_0xe2da81(0x467)]=_0x54900a,this[_0xe2da81(0x49a)]=_0x144b30,this[_0xe2da81(0x42d)]=_0x2e8627,this[_0xe2da81(0x53a)]());}['_init'](){const _0x3a5e58=_0x3cc0f6;this['_sheetSkeletonManagerService'][_0x3a5e58(0x2bd)]['pipe'](E[_0x3a5e58(0x585)](this['dispose$']),E['switchMap'](_0x416f21=>{const _0x1055e6=_0x3a5e58;if(_0x416f21){const _0x1d2c94=_0x416f21[_0x1055e6(0x350)];return v[_0x1055e6(0x276)](this[_0x1055e6(0x49a)][_0x1055e6(0x444)](this['_context']['unitId']),this['_themeService'][_0x1055e6(0x563)])[_0x1055e6(0x57c)](E[_0x1055e6(0x282)](([_0x322270,_0x5b0ae2])=>{const _0xd28d66=_0x1055e6,_0x5a4cb1=new Map();return _0x322270[_0xd28d66(0x300)]((_0x64d7a8,_0x58c241)=>{const _0x46aa59=_0xd28d66;if(_0x64d7a8[_0x46aa59(0x353)]===_0x1d2c94){const _0x5c28d3={..._0x64d7a8};_0x5c28d3[_0x46aa59(0x519)]=_0x5b0ae2[_0x64d7a8['color']],_0x5a4cb1[_0x46aa59(0x420)](_0x58c241,_0x5c28d3);}}),{'skeleton':_0x416f21,'cursors':_0x5a4cb1};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x3694cd,cursors:_0x5ea0f0})=>{this['_removeCollabCursors'](),_0x3694cd&&this['_updateCollabCursors'](_0x3694cd,_0x5ea0f0);}),this[_0x3a5e58(0x467)]['currentSkeleton$'][_0x3a5e58(0x342)](_0x524f05=>{const _0xf78435=_0x3a5e58;if(_0x524f05==null)return;const {skeleton:_0x3600c0}=_0x524f05,{scene:_0x5785bb}=this[_0xf78435(0x52c)];_0x5785bb[_0xf78435(0x2be)][_0xf78435(0x432)](a[_0xf78435(0x50d)](_0x2cb4f1=>{const _0x2be90d=_0xf78435;var _0x6160f8,_0x43beae;const {offsetX:_0x2cb32d,offsetY:_0x4c6b08}=_0x2cb4f1,{x:_0x327f05,y:_0x3cb88a}=_0x5785bb[_0x2be90d(0x4a3)](O[_0x2be90d(0x333)]['FromArray']([_0x2cb32d,_0x4c6b08])),{scaleX:_0x37d02d,scaleY:_0x493a68}=_0x5785bb['getAncestorScale'](),_0x135dca=_0x5785bb[_0x2be90d(0x579)](ne[_0x2be90d(0x44f)][_0x2be90d(0x385)]),_0x12d656=_0x5785bb[_0x2be90d(0x5de)](O[_0x2be90d(0x333)][_0x2be90d(0x460)]([_0x327f05,_0x3cb88a]),_0x135dca),_0x11401a=_0x3600c0[_0x2be90d(0x399)](_0x2cb32d,_0x4c6b08,_0x37d02d,_0x493a68,_0x12d656);((_0x6160f8=this[_0x2be90d(0x1c0)])==null?void 0x0:_0x6160f8[_0x2be90d(0x2dd)])===_0x11401a[_0x2be90d(0x2dd)]&&((_0x43beae=this[_0x2be90d(0x1c0)])==null?void 0x0:_0x43beae[_0x2be90d(0x3a9)])===_0x11401a['row']||this[_0x2be90d(0x296)][_0x2be90d(0x300)](_0x1eadad=>{_0x1eadad['onMouseMove'](_0x11401a);});},0x64));});}['_updateCollabCursors'](_0x4cb192,_0xb98fd8){const _0x1539c0=_0x3cc0f6;var _0x473dbc;const _0x44f41e=(_0x473dbc=this[_0x1539c0(0x467)][_0x1539c0(0x34f)]())==null?void 0x0:_0x473dbc[_0x1539c0(0x5b3)];if(!_0x44f41e)return;const _0x3b95d1=this[_0x1539c0(0x2a0)]();if(!_0x3b95d1)return;this['_cursors'][_0x1539c0(0x300)](_0x11e603=>{const _0x327484=_0x1539c0;_0x11e603[_0x327484(0x272)]();});const {scene:_0x1685a1}=_0x3b95d1,_0x25c9ed=Pi(Array[_0x1539c0(0x5b7)](_0xb98fd8['values']()))['map'](_0xaf595f=>{const _0x705d04=_0x1539c0,{color:_0x4a0188,range:_0x3b192b,name:_0x1ead50,selection:_0x4d13b2,sheetID:_0x1b370f}=_0xaf595f,{startColumn:_0xe05685,startRow:_0x482dd0,endColumn:_0x35da34,endRow:_0x32ab68}=_0x3b192b,_0x27cde6=ne['getCoordByCell'](_0x482dd0,_0xe05685,_0x1685a1,_0x44f41e),_0x54b79c=ne[_0x705d04(0x263)](_0x32ab68,_0x35da34,_0x1685a1,_0x44f41e),{columnHeaderHeightAndMarginTop:_0x3c4be9}=_0x44f41e,{startX:_0x1ce933,startY:_0x32ae05}=_0x27cde6,{endX:_0x9c71a0,endY:_0x5d39a9}=_0x54b79c,_0x45b2e0=_0x9c71a0-_0x1ce933,_0x4e1e12=_0x5d39a9-_0x32ae05,_0x65d143={'labelPosition':_0x32ae05-_0x3c4be9>=Se?_0x705d04(0x4c2):_0x705d04(0x424),'sheetID':_0x1b370f,'range':_0x3b192b,'color':_0x4a0188,'name':_0x1ead50,'selection':_0x4d13b2,'left':_0x1ce933,'top':_0x32ae05,'width':_0x45b2e0,'height':_0x4e1e12,'evented':!0x1,'zIndex':Ui};return new Nt(_0x1ead50,_0x65d143);});_0x1685a1['addObjects'](_0x25c9ed,Ti),this[_0x1539c0(0x296)]=new Set(_0x25c9ed);}[_0x3cc0f6(0x5dc)](){const _0x429ae2=_0x3cc0f6;var _0x276e44;(_0x276e44=this[_0x429ae2(0x296)])==null||_0x276e44[_0x429ae2(0x300)](_0xeb249e=>_0xeb249e[_0x429ae2(0x32b)]());}[_0x3cc0f6(0x2a0)](){const _0x4c207b=_0x3cc0f6;return ne[_0x4c207b(0x413)](this[_0x4c207b(0x52c)]['unit'],this[_0x4c207b(0x52c)]);}};We=yi([je(0x1,a[_0x3cc0f6(0x573)](ne[_0x3cc0f6(0x56b)])),je(0x2,a[_0x3cc0f6(0x573)](ae)),je(0x3,a['Inject'](a[_0x3cc0f6(0x3b3)]))],We);function Pi(_0x583184){const _0x5fff16=_0x3cc0f6,_0x14a8ca=new Map();return _0x583184[_0x5fff16(0x300)](_0x3ce69b=>{const _0x5eb20f=_0x5fff16;if(_0x14a8ca[_0x5eb20f(0x2d0)](_0x3ce69b[_0x5eb20f(0x1ec)])){const _0x5b6ef9=_0x14a8ca[_0x5eb20f(0x3de)](_0x3ce69b[_0x5eb20f(0x1ec)]);_0x5b6ef9[_0x5eb20f(0x51a)]+=',\x20'+_0x3ce69b[_0x5eb20f(0x51a)];}else _0x14a8ca['set'](_0x3ce69b[_0x5eb20f(0x1ec)],_0x3ce69b);}),Array[_0x5fff16(0x5b7)](_0x14a8ca[_0x5fff16(0x2f6)]());}var M=function(){const _0x2f2229=_0x3cc0f6;return M=Object[_0x2f2229(0x403)]||function(_0xb2116f){const _0x3e12c4=_0x2f2229;for(var _0x1e24bb,_0x2ce950=0x1,_0x55942c=arguments[_0x3e12c4(0x411)];_0x2ce950<_0x55942c;_0x2ce950++){_0x1e24bb=arguments[_0x2ce950];for(var _0x4e18d8 in _0x1e24bb)Object[_0x3e12c4(0x22a)][_0x3e12c4(0x345)][_0x3e12c4(0x484)](_0x1e24bb,_0x4e18d8)&&(_0xb2116f[_0x4e18d8]=_0x1e24bb[_0x4e18d8]);}return _0xb2116f;},M['apply'](this,arguments);},wi=function(_0x412f19,_0xe05100){const _0x4d1465=_0x3cc0f6;var _0x2c4178={};for(var _0x1c36c6 in _0x412f19)Object[_0x4d1465(0x22a)]['hasOwnProperty'][_0x4d1465(0x484)](_0x412f19,_0x1c36c6)&&_0xe05100['indexOf'](_0x1c36c6)<0x0&&(_0x2c4178[_0x1c36c6]=_0x412f19[_0x1c36c6]);if(_0x412f19!=null&&typeof Object[_0x4d1465(0x377)]==_0x4d1465(0x32f)){for(var _0x517231=0x0,_0x1c36c6=Object[_0x4d1465(0x377)](_0x412f19);_0x517231<_0x1c36c6['length'];_0x517231++)_0xe05100[_0x4d1465(0x562)](_0x1c36c6[_0x517231])<0x0&&Object[_0x4d1465(0x22a)][_0x4d1465(0x4e1)][_0x4d1465(0x484)](_0x412f19,_0x1c36c6[_0x517231])&&(_0x2c4178[_0x1c36c6[_0x517231]]=_0x412f19[_0x1c36c6[_0x517231]]);}return _0x2c4178;},Ze=y[_0x3cc0f6(0x4b2)](function(_0x1aaf61,_0x30097e){const _0x2f936e=_0x3cc0f6;var _0x1ccfcf=_0x1aaf61[_0x2f936e(0x5db)],_0x3d3954=_0x1aaf61['id'],_0xfd452b=_0x1aaf61[_0x2f936e(0x323)],_0x15ca61=_0x1aaf61[_0x2f936e(0x510)],_0x4bc28b=wi(_0x1aaf61,['icon','id',_0x2f936e(0x323),_0x2f936e(0x510)]),_0x1c9537=_0x2f936e(0x212)[_0x2f936e(0x2c4)](_0x3d3954,'\x20')[_0x2f936e(0x2c4)](_0xfd452b||'')['trim'](),_0x49ba6c=y[_0x2f936e(0x553)]('_'['concat'](Ai()));return Mt(_0x1ccfcf,''[_0x2f936e(0x2c4)](_0x3d3954),{'defIds':_0x1ccfcf['defIds'],'idSuffix':_0x49ba6c[_0x2f936e(0x481)]},M({'ref':_0x30097e,'className':_0x1c9537},_0x4bc28b),_0x15ca61);});function Mt(_0x230df5,_0x21cf48,_0x11159b,_0xb68b26,_0x24cdd0){const _0x40c28f=_0x3cc0f6;return y[_0x40c28f(0x482)](_0x230df5['tag'],M(M({'key':_0x21cf48},Ni(_0x230df5,_0x11159b,_0x24cdd0)),_0xb68b26),(Mi(_0x230df5,_0x11159b)[_0x40c28f(0x216)]||[])[_0x40c28f(0x282)](function(_0xf6032,_0x5382d6){const _0xf6bc45=_0x40c28f;return Mt(_0xf6032,''[_0xf6bc45(0x2c4)](_0x21cf48,'-')[_0xf6bc45(0x2c4)](_0x230df5['tag'],'-')[_0xf6bc45(0x2c4)](_0x5382d6),_0x11159b,void 0x0,_0x24cdd0);}));}function Ni(_0x4863a2,_0x28630d,_0xd71eaa){const _0x36b454=_0x3cc0f6;var _0x448a18=M({},_0x4863a2[_0x36b454(0x35b)]);_0xd71eaa!=null&&_0xd71eaa['colorChannel1']&&_0x448a18[_0x36b454(0x480)]===_0x36b454(0x234)&&(_0x448a18['fill']=_0xd71eaa[_0x36b454(0x234)]);var _0xffea87=_0x28630d[_0x36b454(0x4c9)];return!_0xffea87||_0xffea87[_0x36b454(0x411)]===0x0||(_0x4863a2[_0x36b454(0x22e)]==='use'&&_0x448a18['xlink:href']&&(_0x448a18[_0x36b454(0x48a)]=_0x448a18[_0x36b454(0x48a)]+_0x28630d[_0x36b454(0x3d7)]),Object['entries'](_0x448a18)[_0x36b454(0x300)](function(_0x451597){const _0x5d0ab9=_0x36b454;var _0x156ea7=_0x451597[0x0],_0x4dcbf1=_0x451597[0x1];typeof _0x4dcbf1==_0x5d0ab9(0x3d4)&&(_0x448a18[_0x156ea7]=_0x4dcbf1['replace'](/url\(#(.*)\)/,'url(#$1'[_0x5d0ab9(0x2c4)](_0x28630d['idSuffix'],')')));})),_0x448a18;}function Mi(_0xfc9545,_0x3b4e87){const _0x5e5e4e=_0x3cc0f6;var _0x1f1609,_0x41ea8a=_0x3b4e87['defIds'];return!_0x41ea8a||_0x41ea8a['length']===0x0?_0xfc9545:_0xfc9545['tag']===_0x5e5e4e(0x417)&&(!((_0x1f1609=_0xfc9545[_0x5e5e4e(0x216)])===null||_0x1f1609===void 0x0)&&_0x1f1609[_0x5e5e4e(0x411)])?M(M({},_0xfc9545),{'children':_0xfc9545[_0x5e5e4e(0x216)][_0x5e5e4e(0x282)](function(_0x2028ba){const _0x55e2f4=_0x5e5e4e;return typeof _0x2028ba[_0x55e2f4(0x35b)]['id']=='string'&&_0x41ea8a&&_0x41ea8a[_0x55e2f4(0x562)](_0x2028ba['attrs']['id'])>-0x1?M(M({},_0x2028ba),{'attrs':M(M({},_0x2028ba[_0x55e2f4(0x35b)]),{'id':_0x2028ba[_0x55e2f4(0x35b)]['id']+_0x3b4e87[_0x55e2f4(0x3d7)]})}):_0x2028ba;})}):_0xfc9545;}function Ai(){const _0x5ade05=_0x3cc0f6;return Math['random']()[_0x5ade05(0x39c)](0x24)[_0x5ade05(0x26a)](0x2,0x8);}Ze[_0x3cc0f6(0x412)]='UniverIcon';var Li={'tag':'svg','attrs':{'fill':'none','viewBox':_0x3cc0f6(0x57d),'width':_0x3cc0f6(0x2e9),'height':_0x3cc0f6(0x2e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x3cc0f6(0x2c6)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'stroke':_0x3cc0f6(0x244),'d':_0x3cc0f6(0x5da),'strokeLinecap':_0x3cc0f6(0x53e),'strokeLinejoin':_0x3cc0f6(0x53e),'strokeWidth':1.2}}]},{'tag':_0x3cc0f6(0x417),'attrs':{},'children':[{'tag':_0x3cc0f6(0x4b9),'attrs':{'id':_0x3cc0f6(0x23e)},'children':[{'tag':'path','attrs':{'fill':'#fff','d':_0x3cc0f6(0x53b)}}]}]}],'defIds':['off-line-single_clip0_910_343']},At=y[_0x3cc0f6(0x4b2)](function(_0x458397,_0x4e46af){const _0xf5169e=_0x3cc0f6;return y[_0xf5169e(0x482)](Ze,Object[_0xf5169e(0x403)]({},_0x458397,{'id':_0xf5169e(0x4de),'ref':_0x4e46af,'icon':Li}));});At[_0x3cc0f6(0x412)]=_0x3cc0f6(0x3d3);var $i={'tag':'svg','attrs':{'fill':_0x3cc0f6(0x2ad),'viewBox':'0\x200\x2017\x2016','width':_0x3cc0f6(0x2e9),'height':_0x3cc0f6(0x2e9)},'children':[{'tag':'g','attrs':{'clipPath':_0x3cc0f6(0x293)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'stroke':'currentColor','d':_0x3cc0f6(0x2db),'strokeLinecap':'round','strokeLinejoin':_0x3cc0f6(0x53e),'strokeWidth':1.2}}]},{'tag':_0x3cc0f6(0x417),'attrs':{},'children':[{'tag':_0x3cc0f6(0x4b9),'attrs':{'id':_0x3cc0f6(0x3d8)},'children':[{'tag':_0x3cc0f6(0x2bc),'attrs':{'fill':_0x3cc0f6(0x4af),'d':_0x3cc0f6(0x53b),'transform':_0x3cc0f6(0x21d)}}]}]}],'defIds':[_0x3cc0f6(0x3d8)]},Lt=y['forwardRef'](function(_0x4b5179,_0x2c0d7e){const _0x4604be=_0x3cc0f6;return y[_0x4604be(0x482)](Ze,Object['assign']({},_0x4b5179,{'id':'on-line-single','ref':_0x2c0d7e,'icon':$i}));});Lt['displayName']='OnLineSingle';function $t(_0x5adbbc){const _0x36979c=_0x3cc0f6;var _0x3733c3,_0x34c25a,_0x3bde64='';if(typeof _0x5adbbc=='string'||typeof _0x5adbbc=='number')_0x3bde64+=_0x5adbbc;else{if(typeof _0x5adbbc=='object'){if(Array[_0x36979c(0x414)](_0x5adbbc)){var _0x2cb46e=_0x5adbbc['length'];for(_0x3733c3=0x0;_0x3733c3<_0x2cb46e;_0x3733c3++)_0x5adbbc[_0x3733c3]&&(_0x34c25a=$t(_0x5adbbc[_0x3733c3]))&&(_0x3bde64&&(_0x3bde64+='\x20'),_0x3bde64+=_0x34c25a);}else{for(_0x34c25a in _0x5adbbc)_0x5adbbc[_0x34c25a]&&(_0x3bde64&&(_0x3bde64+='\x20'),_0x3bde64+=_0x34c25a);}}}return _0x3bde64;}function ji(){const _0x2f0866=_0x3cc0f6;for(var _0x3563ed,_0x4e5083,_0x1d7e68=0x0,_0x3c57f4='',_0x7f1f50=arguments[_0x2f0866(0x411)];_0x1d7e68<_0x7f1f50;_0x1d7e68++)(_0x3563ed=arguments[_0x1d7e68])&&(_0x4e5083=$t(_0x3563ed))&&(_0x3c57f4&&(_0x3c57f4+='\x20'),_0x3c57f4+=_0x4e5083);return _0x3c57f4;}const Hi='univer-online-status-icon',xi=_0x3cc0f6(0x5c4),ki=_0x3cc0f6(0x257),Bi=_0x3cc0f6(0x1fe),Vi=_0x3cc0f6(0x5bb),_e={'onlineStatusIcon':Hi,'onlineStatusTitle':xi,'onlineStatus':ki,'online':Bi,'offline':Vi};function Wi(_0xc38c91){const _0x7a2e5d=_0x3cc0f6;switch(_0xc38c91){case D[_0x7a2e5d(0x50c)]:return _0x7a2e5d(0x4d8);case D[_0x7a2e5d(0x2c5)]:return _0x7a2e5d(0x3d0);case D['FETCH_MISS']:return _0x7a2e5d(0x363);case D[_0x7a2e5d(0x2b0)]:return _0x7a2e5d(0x586);case D[_0x7a2e5d(0x59c)]:case D[_0x7a2e5d(0x4e8)]:return _0x7a2e5d(0x4bb);case D[_0x7a2e5d(0x2d7)]:case D[_0x7a2e5d(0x3eb)]:return _0x7a2e5d(0x306);}}function jt(_0x58fa65){const _0x55c3c6=_0x3cc0f6,{status$:_0x49125b}=_0x58fa65,_0x3c84e6=A[_0x55c3c6(0x567)](_0x49125b,D['NOT_COLLAB']),_0x34a248=a['useDependency'](a[_0x55c3c6(0x2b9)]),_0x5cc26a=a[_0x55c3c6(0x456)](exports[_0x55c3c6(0x3c0)]),_0x94c77c=_0x3c84e6!==D[_0x55c3c6(0x50c)],_0x43a379=_0x34a248['t'](Wi(_0x3c84e6)),_0x212593=ji(_e[_0x55c3c6(0x4a7)],{[_e[_0x55c3c6(0x5c0)]]:_0x94c77c,[_e[_0x55c3c6(0x550)]]:!_0x94c77c}),_0x384346=_0x94c77c?y['createElement'](Lt,null):y[_0x55c3c6(0x482)](At,null),_0x4c97ac=y[_0x55c3c6(0x324)](()=>{const _0x587617=_0x55c3c6;_0x94c77c||_0x5cc26a[_0x587617(0x448)]();},[_0x94c77c,_0x5cc26a]);function _0x188123(){const _0xc379ac=_0x55c3c6;return y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_0x212593,'onClick':_0x4c97ac},y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_e[_0xc379ac(0x41e)]},_0x384346),y[_0xc379ac(0x482)](_0xc379ac(0x3b7),{'className':_e[_0xc379ac(0x3ed)]},_0x43a379));}return _0x94c77c?_0x188123():y[_0x55c3c6(0x482)](J[_0x55c3c6(0x59a)],{'title':_0x34a248['t'](_0x55c3c6(0x23c))},_0x188123());}var Fi=Object[_0x3cc0f6(0x1c6)],Gi=Object['getOwnPropertyDescriptor'],Yi=(_0x528d21,_0x3129c2,_0x5160db,_0x425df4)=>{const _0x1cfea6=_0x3cc0f6;for(var _0x42fd18=_0x425df4>0x1?void 0x0:_0x425df4?Gi(_0x3129c2,_0x5160db):_0x3129c2,_0x4e497a=_0x528d21[_0x1cfea6(0x411)]-0x1,_0x47ecac;_0x4e497a>=0x0;_0x4e497a--)(_0x47ecac=_0x528d21[_0x4e497a])&&(_0x42fd18=(_0x425df4?_0x47ecac(_0x3129c2,_0x5160db,_0x42fd18):_0x47ecac(_0x42fd18))||_0x42fd18);return _0x425df4&&_0x42fd18&&Fi(_0x3129c2,_0x5160db,_0x42fd18),_0x42fd18;},ge=(_0x3fbc08,_0x3b7f5f)=>(_0x1763a5,_0x421ca6)=>_0x3b7f5f(_0x1763a5,_0x421ca6,_0x3fbc08);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x3c518b,_0x30d8e2,_0x544cc2,_0x1488c2){const _0x1b8b19=_0x3cc0f6;super(),u(this,_0x1b8b19(0x4a2),new v['BehaviorSubject'](D['NOT_COLLAB'])),(this['_univerInstanceService']=_0x3c518b,this[_0x1b8b19(0x514)]=_0x30d8e2,this[_0x1b8b19(0x5ba)]=_0x544cc2,this[_0x1b8b19(0x3ee)]=_0x1488c2,this['_initStatusComponent'](),this[_0x1b8b19(0x5a3)]());}[_0x3cc0f6(0x5a3)](){const _0x2454f5=_0x3cc0f6;this['disposeWithMe'](this[_0x2454f5(0x34b)][_0x2454f5(0x1e6)]['pipe'](v[_0x2454f5(0x4d4)](()=>{const _0x957419=_0x2454f5,_0x57ff29=this['_univerInstanceService']['getFocusedUnit']();return _0x57ff29?this[_0x957419(0x3ee)][_0x957419(0x2a9)](_0x57ff29[_0x957419(0x527)]()):v['of'](null);}),v[_0x2454f5(0x4d4)](_0x7c9480=>_0x7c9480?_0x7c9480[_0x2454f5(0x40f)]:v['of'](D[_0x2454f5(0x2b0)])))[_0x2454f5(0x342)](_0x5e27f6=>{const _0x4640ae=_0x2454f5;this['_status$'][_0x4640ae(0x517)](_0x5e27f6);}));}[_0x3cc0f6(0x52b)](){const _0x4a6130=_0x3cc0f6;this[_0x4a6130(0x217)](this[_0x4a6130(0x514)][_0x4a6130(0x536)](A[_0x4a6130(0x4cd)][_0x4a6130(0x391)],()=>a[_0x4a6130(0x2fb)](Ki({'status$':this[_0x4a6130(0x4a2)][_0x4a6130(0x459)]()}),this[_0x4a6130(0x5ba)])));}},exports['DesktopCollaborationStatusDisplayController']=Yi([ge(0x0,a[_0x3cc0f6(0x2f2)]),ge(0x1,A['IUIPartsService']),ge(0x2,a[_0x3cc0f6(0x573)](a['Injector'])),ge(0x3,a[_0x3cc0f6(0x573)](exports[_0x3cc0f6(0x3fc)]))],exports[_0x3cc0f6(0x2de)]);function Ki(_0x1c298e){const {status$:_0x4cb8c8}=_0x1c298e;return function(){const _0x43fcc5=_0x10ac;return y[_0x43fcc5(0x482)](jt,{'status$':_0x4cb8c8});};}const Qe=a['createIdentifier'](_0x3cc0f6(0x280));var Xi=Object[_0x3cc0f6(0x1c6)],qi=Object[_0x3cc0f6(0x544)],zi=(_0x3c5659,_0x26b706,_0x324d0a,_0x5e30d8)=>{const _0x3df1ed=_0x3cc0f6;for(var _0x185fc7=_0x5e30d8>0x1?void 0x0:_0x5e30d8?qi(_0x26b706,_0x324d0a):_0x26b706,_0x269bcc=_0x3c5659[_0x3df1ed(0x411)]-0x1,_0x35fd4d;_0x269bcc>=0x0;_0x269bcc--)(_0x35fd4d=_0x3c5659[_0x269bcc])&&(_0x185fc7=(_0x5e30d8?_0x35fd4d(_0x26b706,_0x324d0a,_0x185fc7):_0x35fd4d(_0x185fc7))||_0x185fc7);return _0x5e30d8&&_0x185fc7&&Xi(_0x26b706,_0x324d0a,_0x185fc7),_0x185fc7;},ie=(_0x4d27e6,_0x3682a2)=>(_0x276f32,_0x1bddca)=>_0x3682a2(_0x276f32,_0x1bddca,_0x4d27e6);exports[_0x3cc0f6(0x5d5)]=class extends a[_0x3cc0f6(0x2f0)]{constructor(_0x403d8a,_0x186a64,_0x5f15a3,_0x59ce14,_0x2f3199,_0x5da009){const _0x1bcb30=_0x3cc0f6;super(),this['_urlService']=_0x403d8a,this[_0x1bcb30(0x518)]=_0x186a64,this[_0x1bcb30(0x495)]=_0x5f15a3,this[_0x1bcb30(0x1e8)]=_0x59ce14,this[_0x1bcb30(0x470)]=_0x2f3199,_0x5da009?_0x5da009==null||_0x5da009[_0x1bcb30(0x559)]()[_0x1bcb30(0x25f)](()=>this[_0x1bcb30(0x53a)]()):(this[_0x1bcb30(0x518)][_0x1bcb30(0x2cc)](_0x1bcb30(0x447),_0x1bcb30(0x25c)),this[_0x1bcb30(0x53a)]());}async['_init'](){const _0xf6bf61=_0x3cc0f6,_0x3a879a=this[_0xf6bf61(0x4ae)]['getParam']('unit'),_0x510e7f=this[_0xf6bf61(0x4ae)][_0xf6bf61(0x5d9)]('type');if(!_0x3a879a||!_0x510e7f){this[_0xf6bf61(0x518)][_0xf6bf61(0x2cc)](_0xf6bf61(0x447),_0xf6bf61(0x5ca));return;}switch(Number(_0x510e7f)){case H[_0xf6bf61(0x336)]:{const _0x55b87b=await this['_loadSheet'](_0x3a879a);this['_setupSubUnitSync'](_0x55b87b);break;}case H['UNIVER_DOC']:{await this[_0xf6bf61(0x582)](_0x3a879a);break;}default:{this[_0xf6bf61(0x518)][_0xf6bf61(0x2c9)](_0xf6bf61(0x447),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x3cc0f6(0x348)](_0xebee5f){const _0xea3410=_0x3cc0f6;await this['_updateSubUnitFromURLParams'](_0xebee5f),_0xebee5f[_0xea3410(0x361)]['pipe'](v[_0xea3410(0x585)](this['dispose$']))[_0xea3410(0x342)](_0x52c2b7=>{_0x52c2b7&&this['_updateURLWithCurrentState'](_0x52c2b7);}),this[_0xea3410(0x4ae)]['urlChange$']['pipe'](v['takeUntil'](this['dispose$']))['subscribe'](()=>this[_0xea3410(0x1e3)](_0xebee5f));}[_0x3cc0f6(0x33e)](_0x5e3508,_0x18c0e8=!0x1){const _0x503fe2=_0x3cc0f6,_0xd0158c=this['_urlService'][_0x503fe2(0x5d9)](_0x503fe2(0x4ac));_0x5e3508[_0x503fe2(0x255)]()!==_0xd0158c&&this[_0x503fe2(0x4ae)][_0x503fe2(0x20f)](_0x503fe2(0x4ac),_0x5e3508[_0x503fe2(0x255)](),_0x18c0e8);}async[_0x3cc0f6(0x1e3)](_0x372386){const _0xc2e552=_0x3cc0f6;var _0x427a8b;const _0x27dda4=this['_urlService'][_0xc2e552(0x5d9)](_0xc2e552(0x4ac));if(!_0x27dda4||!_0x372386[_0xc2e552(0x23d)](_0x27dda4)){const _0x5ddba9=_0x372386[_0xc2e552(0x233)]()[0x0],_0x1884b4=_0x372386[_0xc2e552(0x23d)](_0x5ddba9);if(!_0x1884b4)return;this[_0xc2e552(0x33e)](_0x1884b4,!0x0),await this[_0xc2e552(0x495)][_0xc2e552(0x427)](C[_0xc2e552(0x485)]['id'],{'unitId':_0x372386[_0xc2e552(0x527)](),'subUnitId':_0x5ddba9});return;}((_0x427a8b=_0x372386[_0xc2e552(0x57f)]())==null?void 0x0:_0x427a8b['getSheetId']())!==_0x27dda4&&await this['_commandService']['executeCommand'](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x372386[_0xc2e552(0x527)](),'subUnitId':_0x27dda4});}async[_0x3cc0f6(0x214)](_0x4f8008){const _0x37fb87=_0x3cc0f6;let _0x181e0e=0x0;const _0x2126bc=await this[_0x37fb87(0x1e8)]['loadOfflineData'](_0x4f8008);return _0x2126bc&&(_0x2126bc[_0x37fb87(0x455)]||_0x2126bc['mutations'][_0x37fb87(0x411)]!==0x0)&&(_0x181e0e=_0x2126bc[_0x37fb87(0x20c)]),_0x181e0e===0x0&&this['_logService'][_0x37fb87(0x2cc)](_0x37fb87(0x447),_0x37fb87(0x5b1)),this[_0x37fb87(0x470)]['loadSheet'](_0x4f8008,_0x181e0e);}async[_0x3cc0f6(0x582)](_0x29b73a){const _0xca3ebb=_0x3cc0f6;let _0x2d9138=0x0;const _0x45502a=await this[_0xca3ebb(0x1e8)][_0xca3ebb(0x40e)](_0x29b73a);return _0x45502a&&(_0x45502a[_0xca3ebb(0x455)]||_0x45502a['mutations'][_0xca3ebb(0x411)]!==0x0)&&(_0x2d9138=_0x45502a['rev']),_0x2d9138===0x0&&this[_0xca3ebb(0x518)]['debug']('[DataLoaderController]',_0xca3ebb(0x5b1)),this[_0xca3ebb(0x470)]['loadDoc'](_0x29b73a,_0x2d9138);}},exports[_0x3cc0f6(0x5d5)]=zi([ie(0x0,Qe),ie(0x1,a['ILogService']),ie(0x2,a['ICommandService']),ie(0x3,a['Inject'](exports[_0x3cc0f6(0x1f8)])),ie(0x4,a[_0x3cc0f6(0x573)](_['SnapshotService'])),ie(0x5,a[_0x3cc0f6(0x273)](qt['IRemoteInstanceService']))],exports[_0x3cc0f6(0x5d5)]);var Ji=Object[_0x3cc0f6(0x1c6)],Zi=Object[_0x3cc0f6(0x544)],Qi=(_0x10efc1,_0x583309,_0x5b566a,_0x4d2f80)=>{const _0x35895c=_0x3cc0f6;for(var _0x31750a=_0x4d2f80>0x1?void 0x0:_0x4d2f80?Zi(_0x583309,_0x5b566a):_0x583309,_0x58df5c=_0x10efc1[_0x35895c(0x411)]-0x1,_0xd6ac70;_0x58df5c>=0x0;_0x58df5c--)(_0xd6ac70=_0x10efc1[_0x58df5c])&&(_0x31750a=(_0x4d2f80?_0xd6ac70(_0x583309,_0x5b566a,_0x31750a):_0xd6ac70(_0x31750a))||_0x31750a);return _0x4d2f80&&_0x31750a&&Ji(_0x583309,_0x5b566a,_0x31750a),_0x31750a;},_t=(_0x4d412f,_0x268000)=>(_0x43c1b8,_0x3aec76)=>_0x268000(_0x43c1b8,_0x3aec76,_0x4d412f);const en='DEFAULT_FILE_NAME',tn=_0x3cc0f6(0x384);let Ee=class extends a['Disposable']{constructor(_0x4cab24,_0x3414ca){const _0x565384=_0x3cc0f6;super(),this[_0x565384(0x34b)]=_0x4cab24,this[_0x565384(0x5e0)]=_0x3414ca,this[_0x565384(0x53a)]();}['_init'](){const _0x2d7aa2=_0x3cc0f6;this[_0x2d7aa2(0x217)](this['_univerInstanceService'][_0x2d7aa2(0x1e6)][_0x2d7aa2(0x342)](()=>{const _0x41dd76=_0x2d7aa2;var _0x53bb7b;const _0x5f3b4a=this[_0x41dd76(0x34b)]['getFocusedUnit']();let _0x56e3ab=(_0x53bb7b=this['_configService'][_0x41dd76(0x458)](en))!=null?_0x53bb7b:tn;_0x5f3b4a instanceof a['Workbook']&&(_0x56e3ab=_0x5f3b4a[_0x41dd76(0x51a)]),document[_0x41dd76(0x40a)]=_0x56e3ab;}));}};Ee=Qi([_t(0x0,a[_0x3cc0f6(0x2f2)]),_t(0x1,a[_0x3cc0f6(0x5d3)])],Ee);var sn=Object[_0x3cc0f6(0x1c6)],nn=Object['getOwnPropertyDescriptor'],rn=(_0xdb53fc,_0x24f92b,_0xd30fb,_0x17e1a6)=>{const _0x251798=_0x3cc0f6;for(var _0x2df00e=_0x17e1a6>0x1?void 0x0:_0x17e1a6?nn(_0x24f92b,_0xd30fb):_0x24f92b,_0x56dfe4=_0xdb53fc[_0x251798(0x411)]-0x1,_0x5aafab;_0x56dfe4>=0x0;_0x56dfe4--)(_0x5aafab=_0xdb53fc[_0x56dfe4])&&(_0x2df00e=(_0x17e1a6?_0x5aafab(_0x24f92b,_0xd30fb,_0x2df00e):_0x5aafab(_0x2df00e))||_0x2df00e);return _0x17e1a6&&_0x2df00e&&sn(_0x24f92b,_0xd30fb,_0x2df00e),_0x2df00e;},He=(_0x2ff74b,_0x5a6e2f)=>(_0x2884b6,_0x4c8501)=>_0x5a6e2f(_0x2884b6,_0x4c8501,_0x2ff74b);let be=class{constructor(_0x16099f,_0x1dbfce,_0x11b69d){const _0x4e59c2=_0x3cc0f6;this[_0x4e59c2(0x5e0)]=_0x16099f,this['_httpService']=_0x1dbfce,this['localeService']=_0x11b69d,this['init']();}[_0x3cc0f6(0x5d4)](){const _0x29343a=_0x3cc0f6;this[_0x29343a(0x1fa)][_0x29343a(0x5e1)]({'priority':0x1,'interceptor':(_0x45f799,_0x5e9754)=>_0x5e9754(_0x45f799)[_0x29343a(0x57c)](v[_0x29343a(0x25d)](async _0x2fbc64=>{const _0x58ce6f=_0x29343a,_0x19b6ad=_0x2fbc64;if(_0x19b6ad['status']===0x191&&window[_0x58ce6f(0x44e)](this[_0x58ce6f(0x287)]['t'](_0x58ce6f(0x264)))){const _0x120411=window[_0x58ce6f(0x465)](window[_0x58ce6f(0x46b)][_0x58ce6f(0x2ca)]);window[_0x58ce6f(0x46b)][_0x58ce6f(0x2ca)]=this[_0x58ce6f(0x48e)]()+_0x58ce6f(0x5e7)+_0x120411;}return _0x19b6ad;}))});}[_0x3cc0f6(0x48e)](){const _0x4fcdd1=_0x3cc0f6;var _0x16578c,_0x539897;const _0x5a6a7a=this[_0x4fcdd1(0x5e0)][_0x4fcdd1(0x458)](Et),_0x559f22=this[_0x4fcdd1(0x5e0)][_0x4fcdd1(0x458)]($);return(_0x539897=(_0x16578c=_0x559f22==null?void 0x0:_0x559f22[_0x4fcdd1(0x5e4)])!=null?_0x16578c:_0x5a6a7a)!=null?_0x539897:os;}};be=rn([He(0x0,a[_0x3cc0f6(0x5d3)]),He(0x1,a[_0x3cc0f6(0x573)](U[_0x3cc0f6(0x43f)])),He(0x2,a['Inject'](a[_0x3cc0f6(0x2b9)]))],be);var on=Object[_0x3cc0f6(0x1c6)],an=Object[_0x3cc0f6(0x544)],cn=(_0x786a20,_0x44b833,_0xb9a837,_0x4a2676)=>{const _0x5bd7c4=_0x3cc0f6;for(var _0xd19bc8=_0x4a2676>0x1?void 0x0:_0x4a2676?an(_0x44b833,_0xb9a837):_0x44b833,_0x30913f=_0x786a20[_0x5bd7c4(0x411)]-0x1,_0x5c8be4;_0x30913f>=0x0;_0x30913f--)(_0x5c8be4=_0x786a20[_0x30913f])&&(_0xd19bc8=(_0x4a2676?_0x5c8be4(_0x44b833,_0xb9a837,_0xd19bc8):_0x5c8be4(_0xd19bc8))||_0xd19bc8);return _0x4a2676&&_0xd19bc8&&on(_0x44b833,_0xb9a837,_0xd19bc8),_0xd19bc8;},ut=(_0x2b0df0,_0x3be348)=>(_0x4368e6,_0xcda43a)=>_0x3be348(_0x4368e6,_0xcda43a,_0x2b0df0);function _0x10ac(_0x58514f,_0x46c815){const _0x48f69f=_0x48f6();return _0x10ac=function(_0x10acb7,_0x520dff){_0x10acb7=_0x10acb7-0x1bc;let _0x108654=_0x48f69f[_0x10acb7];return _0x108654;},_0x10ac(_0x58514f,_0x46c815);}const Ht=_0x3cc0f6(0x2e8),ln=_0x3cc0f6(0x4b8);exports[_0x3cc0f6(0x583)]=class extends a[_0x3cc0f6(0x31b)]{constructor(_0x187923,_0x137e3f){const _0x44e667=_0x3cc0f6;super(),this[_0x44e667(0x5c9)]=_0x187923,this['_configService']=_0x137e3f,this[_0x44e667(0x2a4)]();}['_initMergeInterceptor'](){const _0x2b4572=_0x3cc0f6,_0x4bf7fc=this;this[_0x2b4572(0x217)](this[_0x2b4572(0x5c9)][_0x2b4572(0x5e1)]({'priority':0x3e7,'interceptor':U[_0x2b4572(0x3cc)]({'isMatch'(_0x21f8e0){const _0x51ed07=_0x2b4572;var _0x8bda15;if(_0x21f8e0['method']===_0x51ed07(0x27a)&&((_0x8bda15=_0x21f8e0[_0x51ed07(0x297)])!=null&&_0x8bda15[_0x51ed07(0x267)])){const {objectID:_0x5bfe2f,objectType:_0x5d92ac}=_0x21f8e0[_0x51ed07(0x297)][_0x51ed07(0x267)]||{};if(!_0x5bfe2f||_0x5d92ac===void 0x0)return!0x1;const _0x3f738e=_0x4bf7fc[_0x51ed07(0x2f7)]()+'/'+_0x5d92ac+_0x51ed07(0x55f)+_0x5bfe2f+'/allowed';if(_0x21f8e0[_0x51ed07(0x1c1)]===_0x3f738e)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x546ee1){const _0x37145f=_0x2b4572;var _0x4c8087;return(_0x4c8087=_0x546ee1['requestParams'])==null?void 0x0:_0x4c8087[_0x37145f(0x267)];},'mergeParamsToRequest'(_0x56b946,_0x596fef){const _0x51452f=_0x2b4572,_0xb9e06a=_0x4bf7fc[_0x51452f(0x2f7)]()+_0x51452f(0x32d),_0x3ea4f2=_0x56b946[_0x51452f(0x508)]((_0x1984e6,_0x4248f7)=>{const _0x3c93a5=_0x51452f,{unitID:_0x1df3a7,objectID:_0xff8a9c,objectType:_0xef599,actions:_0x36f569}=_0x4248f7;return _0x1984e6[_0x1df3a7]||(_0x1984e6[_0x1df3a7]={}),_0x1984e6[_0x1df3a7][_0xff8a9c]||(_0x1984e6[_0x1df3a7][_0xff8a9c]={'objectID':_0xff8a9c,'objectType':_0xef599,'actions':[]}),_0x1984e6[_0x1df3a7][_0xff8a9c][_0x3c93a5(0x419)][_0x3c93a5(0x430)](..._0x36f569),_0x1984e6;},{}),_0x2985ef=[];for(const _0x43a61a in _0x3ea4f2)for(const _0x471817 in _0x3ea4f2[_0x43a61a]){const {actions:_0x33cf7a,objectType:_0x59e808}=_0x3ea4f2[_0x43a61a][_0x471817],_0x3b114b=[...new Set(_0x33cf7a)];_0x2985ef[_0x51452f(0x430)]({'unitID':_0x43a61a,'objectID':_0x471817,'objectType':_0x59e808,'actions':_0x3b114b});}return new U['HTTPRequest'](_0x51452f(0x27a),_0xb9e06a,{'headers':_0x596fef[_0x51452f(0x367)],'withCredentials':_0x596fef[_0x51452f(0x58a)],'responseType':_0x596fef['responseType'],'body':{'requests':_0x2985ef}});}},{'distributeResult'(_0x52d7e2,_0x3c3b27){const _0x27ed42=_0x2b4572,{objectActions:_0x27ace2}=_0x52d7e2;return _0x3c3b27[_0x27ed42(0x282)](_0x2a096c=>{const _0x53d224=_0x27ed42,{unitID:_0x3391e2,objectID:_0x31204b,actions:_0x4cd2b7}=_0x2a096c,_0x149f9c=_0x27ace2['find'](_0x107f75=>_0x107f75[_0x53d224(0x426)]===_0x3391e2&&_0x107f75['objectID']===_0x31204b),_0x511ed3=_0x4cd2b7[_0x53d224(0x282)](_0x1285ec=>_0x149f9c==null?void 0x0:_0x149f9c['actions'][_0x53d224(0x4f8)](_0x182af5=>_0x182af5[_0x53d224(0x5c6)]===_0x1285ec))['filter'](_0x489674=>!!_0x489674);return{'config':_0x2a096c,'result':{'actions':_0x511ed3,'error':_0x52d7e2[_0x53d224(0x2c9)]}};});}})}));}[_0x3cc0f6(0x2f7)](){const _0x136063=_0x3cc0f6;var _0x441f6b,_0x4ed96e;const _0x183fee=this[_0x136063(0x5e0)][_0x136063(0x458)](Ht),_0x3e343e=this[_0x136063(0x5e0)][_0x136063(0x458)]($);return(_0x4ed96e=(_0x441f6b=_0x3e343e==null?void 0x0:_0x3e343e['authzUrl'])!=null?_0x441f6b:_0x183fee)!=null?_0x4ed96e:ln;}async[_0x3cc0f6(0x376)](_0x61b6b1){const _0x27fef8=_0x3cc0f6,_0x47f1f6=this[_0x27fef8(0x2f7)]()+'/'+_0x61b6b1[_0x27fef8(0x57a)]+_0x27fef8(0x2da);return(await this[_0x27fef8(0x5c9)]['post'](_0x47f1f6,{'body':_0x61b6b1}))['body'][_0x27fef8(0x2e6)]||'';}async[_0x3cc0f6(0x554)](_0x1b0293){const _0x5f16ac=_0x3cc0f6,_0xc2c433=this[_0x5f16ac(0x2f7)]()+'/-/object/list';return(await this[_0x5f16ac(0x5c9)][_0x5f16ac(0x1f2)](_0xc2c433,{'body':_0x1b0293}))[_0x5f16ac(0x267)][_0x5f16ac(0x59b)];}async[_0x3cc0f6(0x4f9)](_0x1b2921){const _0x37d236=_0x3cc0f6,_0x5e3e16=this['_getAPIPrefixPath']()+'/'+_0x1b2921[_0x37d236(0x57a)]+_0x37d236(0x55f)+_0x1b2921[_0x37d236(0x2e6)];await this['_HTTPService'][_0x37d236(0x3ac)](_0x5e3e16,{'body':_0x1b2921});}async[_0x3cc0f6(0x4cc)](_0x29eba1){const _0x25f24a=_0x3cc0f6,_0x3027fd=this['_getAPIPrefixPath']()+'/'+_0x29eba1['objectType']+_0x25f24a(0x55f)+_0x29eba1[_0x25f24a(0x2e6)]+'/allowed';return(await this['_HTTPService'][_0x25f24a(0x1f2)](_0x3027fd,{'body':_0x29eba1}))[_0x25f24a(0x267)][_0x25f24a(0x419)];}async[_0x3cc0f6(0x2c0)](_0x49fbeb){const _0x31b058=_0x3cc0f6,_0x5e232b=this[_0x31b058(0x2f7)]()+_0x31b058(0x32d);return(await this[_0x31b058(0x5c9)][_0x31b058(0x1f2)](_0x5e232b,{'body':{'requests':_0x49fbeb}}))[_0x31b058(0x267)][_0x31b058(0x443)];}async[_0x3cc0f6(0x25a)](_0x25783f){const _0x391177=_0x3cc0f6,_0x2b4492=this[_0x391177(0x2f7)]()+'/'+_0x25783f[_0x391177(0x57a)]+_0x391177(0x498),_0x3d5266=await this[_0x391177(0x5c9)][_0x391177(0x1f2)](_0x2b4492,{'body':_0x25783f});return{'roles':_0x3d5266['body']['roles'],'actions':_0x3d5266['body'][_0x391177(0x419)]};}async[_0x3cc0f6(0x47a)](_0x3ced35){const _0x5e224f=_0x3cc0f6,_0x411468=this[_0x5e224f(0x2f7)]()+_0x5e224f(0x49e);await this['_HTTPService'][_0x5e224f(0x3c4)](_0x411468,{'params':{'collaboratorID':_0x3ced35['collaboratorID'],'objectID':_0x3ced35['objectID'],'unitID':_0x3ced35[_0x5e224f(0x426)]}});}async['updateCollaborator'](_0x50f381){const _0x1ec1f3=_0x3cc0f6,_0x34abd3=this[_0x1ec1f3(0x2f7)]()+_0x1ec1f3(0x49e);await this['_HTTPService'][_0x1ec1f3(0x4d9)](_0x34abd3,{'body':_0x50f381});}async[_0x3cc0f6(0x526)](_0x42e392){const _0xacaee9=_0x3cc0f6,_0x151f1f=this[_0xacaee9(0x2f7)]()+_0xacaee9(0x49e);await this[_0xacaee9(0x5c9)][_0xacaee9(0x1f2)](_0x151f1f,{'body':_0x42e392});}async['listCollaborators'](_0x40a46c){const _0x5937b3=_0x3cc0f6,_0x2635e9=this[_0x5937b3(0x2f7)]()+_0x5937b3(0x49e);return(await this[_0x5937b3(0x5c9)][_0x5937b3(0x3de)](_0x2635e9,{'params':{'objectID':_0x40a46c[_0x5937b3(0x2e6)],'unitID':_0x40a46c['unitID']}}))[_0x5937b3(0x267)]['collaborators'];}async['putCollaborators'](_0x36a0ee){const _0x45a0e4=_0x3cc0f6,_0x183094=this[_0x45a0e4(0x2f7)]()+_0x45a0e4(0x49e);await this[_0x45a0e4(0x5c9)][_0x45a0e4(0x3ac)](_0x183094,{'body':_0x36a0ee});}},exports['AuthzIoHttpService']=cn([ut(0x0,a['Inject'](U[_0x3cc0f6(0x43f)])),ut(0x1,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5d3)]))],exports[_0x3cc0f6(0x583)]);var hn=Object[_0x3cc0f6(0x1c6)],_n=Object[_0x3cc0f6(0x544)],un=(_0x43171c,_0x536ce7,_0x3d2dd2,_0x196221)=>{const _0x299bba=_0x3cc0f6;for(var _0x403cb0=_0x196221>0x1?void 0x0:_0x196221?_n(_0x536ce7,_0x3d2dd2):_0x536ce7,_0x3fe88c=_0x43171c[_0x299bba(0x411)]-0x1,_0x114707;_0x3fe88c>=0x0;_0x3fe88c--)(_0x114707=_0x43171c[_0x3fe88c])&&(_0x403cb0=(_0x196221?_0x114707(_0x536ce7,_0x3d2dd2,_0x403cb0):_0x114707(_0x403cb0))||_0x403cb0);return _0x196221&&_0x403cb0&&hn(_0x536ce7,_0x3d2dd2,_0x403cb0),_0x403cb0;},dn=(_0x4e3a3e,_0x1ba931)=>(_0x273e9c,_0xe81dc1)=>_0x1ba931(_0x273e9c,_0xe81dc1,_0x4e3a3e);let Te=class{constructor(_0x1f1f72){const _0x7891ac=_0x3cc0f6;this[_0x7891ac(0x1fa)]=_0x1f1f72,this['_initRequestHeader']();}['_initRequestHeader'](){const _0x52d32c=_0x3cc0f6;this[_0x52d32c(0x1fa)][_0x52d32c(0x5e1)]({'interceptor':(_0xd50168,_0x155300)=>{const _0x3737bb=_0x52d32c,_0x1ec651=_0xd50168[_0x3737bb(0x367)],_0x10d5fb=zt[_0x3737bb(0x4b7)]();return _0x10d5fb&&_0x1ec651[_0x3737bb(0x420)]('x-univer-host',_0x10d5fb),_0x155300(_0xd50168);}});}};Te=un([dn(0x0,a['Inject'](U[_0x3cc0f6(0x43f)]))],Te);var Sn=Object[_0x3cc0f6(0x1c6)],vn=Object[_0x3cc0f6(0x544)],mn=(_0x4aa689,_0x1ed2ec,_0x15dd62,_0x557e6a)=>{const _0x5c58d8=_0x3cc0f6;for(var _0x53f52a=_0x557e6a>0x1?void 0x0:_0x557e6a?vn(_0x1ed2ec,_0x15dd62):_0x1ed2ec,_0x20d7e0=_0x4aa689[_0x5c58d8(0x411)]-0x1,_0xefd53;_0x20d7e0>=0x0;_0x20d7e0--)(_0xefd53=_0x4aa689[_0x20d7e0])&&(_0x53f52a=(_0x557e6a?_0xefd53(_0x1ed2ec,_0x15dd62,_0x53f52a):_0xefd53(_0x53f52a))||_0x53f52a);return _0x557e6a&&_0x53f52a&&Sn(_0x1ed2ec,_0x15dd62,_0x53f52a),_0x53f52a;},xe=(_0x3d0259,_0x578b01)=>(_0x1ea691,_0x29629c)=>_0x578b01(_0x1ea691,_0x29629c,_0x3d0259);const gn=['image/png',_0x3cc0f6(0x1c7),_0x3cc0f6(0x591),_0x3cc0f6(0x3ca),_0x3cc0f6(0x28e)],fn=0x5*0x400*0x400,In=_0x3cc0f6(0x387),pn=_0x3cc0f6(0x34c),Cn=_0x3cc0f6(0x51c),En=_0x3cc0f6(0x5e2);exports['ImageIoService']=class{constructor(_0x414dd7,_0x169a07,_0x4b6d53){const _0x545492=_0x3cc0f6;u(this,'_waitCount',0x0),u(this,_0x545492(0x228),new v[(_0x545492(0x2c3))]()),u(this,'change$',this[_0x545492(0x228)]),u(this,'_imageSourceCache',new Map()),(this[_0x545492(0x1fa)]=_0x414dd7,this['_configService']=_0x169a07,this[_0x545492(0x34b)]=_0x4b6d53);}[_0x3cc0f6(0x44a)](_0x972b47){const _0x2ef89c=_0x3cc0f6;this[_0x2ef89c(0x590)]=_0x972b47,this[_0x2ef89c(0x228)][_0x2ef89c(0x517)](_0x972b47);}[_0x3cc0f6(0x3ae)](_0x2595a9,_0x53f538){const _0x33ad5c=_0x3cc0f6;if(_0x53f538===j[_0x33ad5c(0x45b)]['BASE64']){const _0x29d8d9=new Image();return _0x29d8d9['src']=_0x2595a9,_0x29d8d9;}return this['_imageSourceCache'][_0x33ad5c(0x3de)](_0x2595a9);}[_0x3cc0f6(0x2a3)](_0x34c504,_0x4c6571,_0x3f041b){const _0x4cf813=_0x3cc0f6;_0x4c6571===j[_0x4cf813(0x45b)][_0x4cf813(0x576)]||_0x3f041b==null||this[_0x4cf813(0x28f)][_0x4cf813(0x420)](_0x34c504,_0x3f041b);}async[_0x3cc0f6(0x47c)](_0x130b2c){const _0x364956=_0x3cc0f6;try{const _0x25462a=this[_0x364956(0x42f)](this[_0x364956(0x24c)](),''+_0x130b2c),_0x4f1ecc=(await this[_0x364956(0x1fa)]['get'](_0x25462a))[_0x364956(0x267)];if(_0x4f1ecc[_0x364956(0x2c9)]&&_0x4f1ecc[_0x364956(0x2c9)][_0x364956(0x5bf)]===bt['OK']){const _0x295bd4=new URL(_0x4f1ecc['url'],this['_getDownloadEndpointURL']())['toString']();return Promise[_0x364956(0x35d)](_0x295bd4);}return Promise[_0x364956(0x577)](_0x4f1ecc['error']);}catch(_0x1ab66f){return Promise[_0x364956(0x577)](_0x1ab66f);}}async['saveImage'](_0x23e91d){const _0x39ef10=_0x3cc0f6;let _0x7a6542='';if(!gn[_0x39ef10(0x2b1)](_0x23e91d['type']))return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x1e4)]));if(_0x23e91d[_0x39ef10(0x437)]>fn)return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x5af)]));try{const _0x22740e=new FormData();_0x22740e[_0x39ef10(0x4aa)](_0x39ef10(0x513),_0x23e91d);const _0x18c7b3=this[_0x39ef10(0x34b)][_0x39ef10(0x434)](),_0x47bd8f=_0x18c7b3==null?void 0x0:_0x18c7b3[_0x39ef10(0x527)]();if(!_0x47bd8f)throw new Error(_0x39ef10(0x23a));const _0x4da987=this[_0x39ef10(0x352)]()+'?size='+_0x23e91d[_0x39ef10(0x437)][_0x39ef10(0x39c)]()+'&source='+Tt[_0x39ef10(0x43c)]+_0x39ef10(0x1d9)+encodeURIComponent(_0x47bd8f),_0x3efcdb=await(await fetch(_0x4da987,{'method':'POST','body':_0x22740e}))[_0x39ef10(0x520)]();if(typeof _0x3efcdb[_0x39ef10(0x21c)]!=_0x39ef10(0x3d4))return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x3be)]));_0x7a6542=_0x3efcdb[_0x39ef10(0x21c)];}catch{return this[_0x39ef10(0x55b)](),Promise[_0x39ef10(0x577)](new Error(j[_0x39ef10(0x4a4)][_0x39ef10(0x3be)]));}return new Promise((_0x1a6550,_0x1644b1)=>{const _0x38cd9b=_0x39ef10,_0x36ccf8=new FileReader();_0x36ccf8[_0x38cd9b(0x4ed)](_0x23e91d),_0x36ccf8[_0x38cd9b(0x4bc)]=_0xd32086=>{const _0x219378=_0x38cd9b;var _0x28d095;const _0x4c57c2=(_0x28d095=_0xd32086[_0x219378(0x5be)])==null?void 0x0:_0x28d095[_0x219378(0x2f8)];if(_0x4c57c2==null){this[_0x219378(0x55b)](),_0x1644b1(new Error(j[_0x219378(0x4a4)][_0x219378(0x3be)]));return;}const _0x4b53e7=a['Tools']['generateRandomId'](0x6);_0x1a6550({'imageId':_0x4b53e7,'imageSourceType':j['ImageSourceType'][_0x219378(0x1c4)],'source':_0x7a6542,'base64Cache':_0x4c57c2,'status':j[_0x219378(0x4a4)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x3cc0f6(0x352)](){const _0x21fbfb=_0x3cc0f6;var _0x10b7ea,_0x268902;const _0x4a193a=this[_0x21fbfb(0x5e0)][_0x21fbfb(0x458)](In),_0x349776=this['_configService'][_0x21fbfb(0x458)]($);return(_0x268902=(_0x10b7ea=_0x349776==null?void 0x0:_0x349776['uploadFileServerUrl'])!=null?_0x10b7ea:_0x4a193a)!=null?_0x268902:pn;}[_0x3cc0f6(0x24c)](){const _0x2e3ecc=_0x3cc0f6;var _0x4222ec,_0x2f39f5;const _0x4e7cfc=this[_0x2e3ecc(0x5e0)][_0x2e3ecc(0x458)](Cn),_0x47763c=this[_0x2e3ecc(0x5e0)]['getConfig']($);return(_0x2f39f5=(_0x4222ec=_0x47763c==null?void 0x0:_0x47763c['signUrlServerUrl'])!=null?_0x4222ec:_0x4e7cfc)!=null?_0x2f39f5:En;}['_getDownloadEndpointURL'](){const _0x57d969=_0x3cc0f6;var _0x250252;const _0x587394=this[_0x57d969(0x5e0)][_0x57d969(0x458)]($);return(_0x250252=_0x587394==null?void 0x0:_0x587394[_0x57d969(0x4d7)])!=null?_0x250252:location[_0x57d969(0x3da)];}[_0x3cc0f6(0x42f)](_0x36ae10,_0x5e8eeb){const _0x28e98a=_0x3cc0f6;return _0x36ae10[_0x28e98a(0x422)]('{fileID}',_0x5e8eeb);}[_0x3cc0f6(0x55b)](){const _0xa8f344=_0x3cc0f6;this[_0xa8f344(0x590)]-=0x1,this[_0xa8f344(0x228)]['next'](this['_waitCount']);}},exports[_0x3cc0f6(0x506)]=mn([xe(0x0,a['Inject'](U[_0x3cc0f6(0x43f)])),xe(0x1,a[_0x3cc0f6(0x5d3)]),xe(0x2,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x2f2)]))],exports[_0x3cc0f6(0x506)]);var bn=Object[_0x3cc0f6(0x1c6)],Tn=Object[_0x3cc0f6(0x544)],Rn=(_0x8af7d4,_0x395bd4,_0xa7d9f5,_0xfcce42)=>{const _0x15bee8=_0x3cc0f6;for(var _0x2e488e=_0xfcce42>0x1?void 0x0:_0xfcce42?Tn(_0x395bd4,_0xa7d9f5):_0x395bd4,_0x2978f2=_0x8af7d4[_0x15bee8(0x411)]-0x1,_0x4a38bb;_0x2978f2>=0x0;_0x2978f2--)(_0x4a38bb=_0x8af7d4[_0x2978f2])&&(_0x2e488e=(_0xfcce42?_0x4a38bb(_0x395bd4,_0xa7d9f5,_0x2e488e):_0x4a38bb(_0x2e488e))||_0x2e488e);return _0xfcce42&&_0x2e488e&&bn(_0x395bd4,_0xa7d9f5,_0x2e488e),_0x2e488e;},ue=(_0x4332dd,_0x540730)=>(_0x3346f,_0x211a76)=>_0x540730(_0x3346f,_0x211a76,_0x4332dd);let Re=class extends a['RxDisposable']{constructor(_0x27a129,_0x3eca74,_0x558474,_0x2dec7e,_0x130005){const _0x5ddb1d=_0x3cc0f6;super(),this[_0x5ddb1d(0x5ba)]=_0x27a129,this[_0x5ddb1d(0x34b)]=_0x3eca74,this['_permissionService']=_0x558474,this['_collaborationSessionService']=_0x2dec7e,this['_localeService']=_0x130005,this[_0x5ddb1d(0x346)](),this[_0x5ddb1d(0x1f5)]();}[_0x3cc0f6(0x1f5)](){const _0x1c21fa=_0x3cc0f6,_0xbbdd40=async _0x3c601f=>{const _0x2bf0e2=_0x10ac;(await this[_0x2bf0e2(0x548)][_0x2bf0e2(0x57b)](_0x3c601f))[_0x2bf0e2(0x574)]['pipe'](E['filter'](_0x2b3bad=>_0x2b3bad[_0x2bf0e2(0x21b)]===_[_0x2bf0e2(0x400)][_0x2bf0e2(0x2f5)]),E[_0x2bf0e2(0x585)](this[_0x2bf0e2(0x38b)]))[_0x2bf0e2(0x342)](_0x34add6=>{const _0xb89eec=_0x2bf0e2,_0x5cc33b=_0x34add6,{reason:_0x15fe91}=_0x5cc33b[_0xb89eec(0x35a)];this[_0xb89eec(0x5ba)]['get'](A[_0xb89eec(0x2af)])['show']({'type':J[_0xb89eec(0x2ce)]['Error'],'content':this[_0xb89eec(0x36b)]['t'](_0xb89eec(0x34d))+'('+_0x15fe91+')'}),this[_0xb89eec(0x1dd)][_0xb89eec(0x4f2)](new C[(_0xb89eec(0x289))](_0x3c601f)['id'],!0x1),this[_0xb89eec(0x548)][_0xb89eec(0x362)](_0x3c601f);});};v[_0x1c21fa(0x570)](this['_univerInstanceService']['getTypeOfUnitAdded$'](a[_0x1c21fa(0x31e)][_0x1c21fa(0x336)]),this[_0x1c21fa(0x34b)][_0x1c21fa(0x541)](a[_0x1c21fa(0x31e)][_0x1c21fa(0x3c6)]))[_0x1c21fa(0x57c)](E['map'](_0x366541=>_0x366541[_0x1c21fa(0x527)]()),E[_0x1c21fa(0x545)](_0x3839ff=>!a[_0x1c21fa(0x55c)](_0x3839ff)),E['takeUntil'](this[_0x1c21fa(0x38b)]))['subscribe'](_0x3a779b=>{_0xbbdd40(_0x3a779b);});}[_0x3cc0f6(0x346)](){const _0x5b515d=_0x3cc0f6,_0x5edff7=async _0x1fd620=>{const _0x4e4737=_0x10ac;(await this[_0x4e4737(0x548)][_0x4e4737(0x57b)](_0x1fd620))['event$']['pipe'](E['filter'](_0x5eae22=>_0x5eae22['eventID']===_[_0x4e4737(0x400)][_0x4e4737(0x1d8)]),E[_0x4e4737(0x585)](this[_0x4e4737(0x38b)]))['subscribe'](_0x4d7131=>{const _0x3619ff=_0x4e4737,_0x4c4866=_0x4d7131,{objectId:_0x180e15}=_0x4c4866[_0x3619ff(0x35a)],_0x177f7e=this[_0x3619ff(0x5ba)]['get'](ne['SheetPermissionInitController']);_0x180e15===_0x1fd620?_0x177f7e[_0x3619ff(0x52d)](_0x1fd620):_0x177f7e[_0x3619ff(0x415)](_0x1fd620,_0x180e15);});};v[_0x5b515d(0x570)](this[_0x5b515d(0x34b)][_0x5b515d(0x541)](a[_0x5b515d(0x31e)]['UNIVER_SHEET']),this[_0x5b515d(0x34b)]['getTypeOfUnitAdded$'](a[_0x5b515d(0x31e)][_0x5b515d(0x3c6)]))[_0x5b515d(0x57c)](E['map'](_0x59c23d=>_0x59c23d[_0x5b515d(0x527)]()),E[_0x5b515d(0x545)](_0x101446=>!a[_0x5b515d(0x55c)](_0x101446)),E['takeUntil'](this[_0x5b515d(0x38b)]))[_0x5b515d(0x342)](_0x3ee82e=>{_0x5edff7(_0x3ee82e);});}};Re=Rn([ue(0x0,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),ue(0x1,a['IUniverInstanceService']),ue(0x2,a[_0x3cc0f6(0x27b)]),ue(0x3,a['Inject'](exports[_0x3cc0f6(0x3c0)])),ue(0x4,a['Inject'](a[_0x3cc0f6(0x2b9)]))],Re);var On=Object[_0x3cc0f6(0x1c6)],Dn=Object[_0x3cc0f6(0x544)],yn=(_0x1de764,_0x56501a,_0x156ff9,_0xec17c8)=>{for(var _0x10b675=_0xec17c8>0x1?void 0x0:_0xec17c8?Dn(_0x56501a,_0x156ff9):_0x56501a,_0xd8e642=_0x1de764['length']-0x1,_0x4fd8d0;_0xd8e642>=0x0;_0xd8e642--)(_0x4fd8d0=_0x1de764[_0xd8e642])&&(_0x10b675=(_0xec17c8?_0x4fd8d0(_0x56501a,_0x156ff9,_0x10b675):_0x4fd8d0(_0x10b675))||_0x10b675);return _0xec17c8&&_0x10b675&&On(_0x56501a,_0x156ff9,_0x10b675),_0x10b675;},dt=(_0x4f4dcc,_0x19b851)=>(_0x25eba2,_0x1f5fe3)=>_0x19b851(_0x25eba2,_0x1f5fe3,_0x4f4dcc);exports[_0x3cc0f6(0x47e)]=class{constructor(_0x49fba5,_0x52547f){const _0x4569c5=_0x3cc0f6;this['_configService']=_0x49fba5,this[_0x4569c5(0x1fa)]=_0x52547f;}async['getUnitOnRev'](_0x2713e8,_0x4150dd){const _0x5516e1=_0x3cc0f6;var _0x1e4d9c;const {unitID:_0x3b34db,type:_0x41477e,revision:_0x38a9dc=0x0}=_0x4150dd,_0x5a579f=this['_getSnapshotAPIPrefix']()+'/'+_0x41477e+_0x5516e1(0x3b4)+_0x3b34db+_0x5516e1(0x390)+_0x38a9dc,_0x37d951=(await this['_httpService']['get'](_0x5a579f))[_0x5516e1(0x267)],_0x192552=(_0x1e4d9c=_0x37d951[_0x5516e1(0x200)])==null?void 0x0:_0x1e4d9c['workbook'];if(_0x192552){const _0x5bc3f7=_0x192552==null?void 0x0:_0x192552[_0x5516e1(0x531)],_0x236c17=_[_0x5516e1(0x5a2)][_0x5516e1(0x4e3)](_[_0x5516e1(0x396)](_0x5bc3f7));_0x192552['originalMeta']=_0x236c17,Object['entries'](_0x192552['sheets'])[_0x5516e1(0x300)](([,_0x43c3ac])=>{const _0x1de87f=_0x5516e1,_0x40c8ce=_0x43c3ac[_0x1de87f(0x531)],_0x971f72=_[_0x1de87f(0x5a2)]['encode'](_[_0x1de87f(0x396)](_0x40c8ce));_0x43c3ac[_0x1de87f(0x531)]=_0x971f72;});}return _0x37d951;}async[_0x3cc0f6(0x203)](_0x1c4fe0,_0x31727e){const _0x5cc4e3=_0x3cc0f6,{unitID:_0x370ba4,type:_0x3f9459,blockID:_0x223c2c}=_0x31727e,_0x2983b7=this[_0x5cc4e3(0x380)]()+'/'+_0x3f9459+'/unit/'+_0x370ba4+_0x5cc4e3(0x251)+_0x223c2c;return(await this[_0x5cc4e3(0x1fa)]['get'](_0x2983b7))[_0x5cc4e3(0x267)];}async[_0x3cc0f6(0x24e)](_0x21b6c2,_0x21c21a){const _0x2ad39d=_0x3cc0f6,{unitID:_0xad0784,type:_0x10d533,blockID:_0x5e766c}=_0x21c21a,_0x41eb8b=this[_0x2ad39d(0x380)]()+_0x2ad39d(0x251)+_0x10d533+_0x2ad39d(0x3b4)+_0xad0784+_0x2ad39d(0x251)+_0x5e766c;return(await this[_0x2ad39d(0x1fa)][_0x2ad39d(0x3de)](_0x41eb8b))[_0x2ad39d(0x267)];}async['fetchMissingChangesets'](_0x263785,_0x2314e9){const _0x2ef4cb=_0x3cc0f6,{unitID:_0x1d9e51,type:_0x103422,from:_0x473edd,to:_0x53db36}=_0x2314e9,_0x172f1c=this[_0x2ef4cb(0x380)]()+'/'+_0x103422+'/unit/'+_0x1d9e51+'/fetchmissing?from='+_0x473edd+_0x2ef4cb(0x1cb)+_0x53db36;return(await this[_0x2ef4cb(0x1fa)][_0x2ef4cb(0x3de)](_0x172f1c))[_0x2ef4cb(0x267)];}[_0x3cc0f6(0x488)](){const _0x25f527=_0x3cc0f6;var _0x4e59b0;return(_0x4e59b0=this[_0x25f527(0x5e0)][_0x25f527(0x458)](vt))!=null?_0x4e59b0:this[_0x25f527(0x380)]();}[_0x3cc0f6(0x380)](){const _0x30b974=_0x3cc0f6;var _0x375101,_0x314f04;const _0x5db247=this[_0x30b974(0x5e0)][_0x30b974(0x458)](St),_0x324dbf=this[_0x30b974(0x5e0)]['getConfig']($);return(_0x314f04=(_0x375101=_0x324dbf==null?void 0x0:_0x324dbf[_0x30b974(0x28c)])!=null?_0x375101:_0x5db247)!=null?_0x314f04:Jt;}async[_0x3cc0f6(0x479)](_0xd6a43f,_0x3e6d2c){const _0x6f7935=_0x3cc0f6,_0xa3c973=_0x6f7935(0x207)+_0x3e6d2c[_0x6f7935(0x523)]+_0x6f7935(0x3b4)+_0x3e6d2c['unitID']+'/resources';return(await this[_0x6f7935(0x1fa)]['get'](_0xa3c973,{'params':{'resourceId':JSON[_0x6f7935(0x492)](_0x3e6d2c[_0x6f7935(0x347)])}}))[_0x6f7935(0x267)];}[_0x3cc0f6(0x4e4)](){const _0x594000=_0x3cc0f6;throw new Error(_0x594000(0x464));}[_0x3cc0f6(0x393)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3cc0f6(0x568)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['copyFileMeta'](){const _0x594b29=_0x3cc0f6;throw new Error(_0x594b29(0x464));}[_0x3cc0f6(0x3e5)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},exports[_0x3cc0f6(0x47e)]=yn([dt(0x0,a[_0x3cc0f6(0x5d3)]),dt(0x1,a['Inject'](U[_0x3cc0f6(0x43f)]))],exports['SnapshotServerOverHTTPService']);var Un=Object[_0x3cc0f6(0x1c6)],Pn=Object[_0x3cc0f6(0x544)],wn=(_0x295ee1,_0x33d5f5,_0x148300,_0x28f3ed)=>{const _0x54c601=_0x3cc0f6;for(var _0x38a33f=_0x28f3ed>0x1?void 0x0:_0x28f3ed?Pn(_0x33d5f5,_0x148300):_0x33d5f5,_0x4499ec=_0x295ee1[_0x54c601(0x411)]-0x1,_0x328931;_0x4499ec>=0x0;_0x4499ec--)(_0x328931=_0x295ee1[_0x4499ec])&&(_0x38a33f=(_0x28f3ed?_0x328931(_0x33d5f5,_0x148300,_0x38a33f):_0x328931(_0x38a33f))||_0x38a33f);return _0x28f3ed&&_0x38a33f&&Un(_0x33d5f5,_0x148300,_0x38a33f),_0x38a33f;},de=(_0x43878a,_0x3b1b93)=>(_0x16aa45,_0xe61f62)=>_0x3b1b93(_0x16aa45,_0xe61f62,_0x43878a);let Fe=class extends a[_0x3cc0f6(0x3f6)]{constructor(_0xe90148,_0x57bc1d,_0x54ead8,_0x55a8f6,_0xda7cf8){const _0x2316be=_0x3cc0f6;super(_0xe90148,_0x57bc1d,_0x54ead8),this[_0x2316be(0x5c3)]=_0x55a8f6,this[_0x2316be(0x518)]=_0xda7cf8;}['transformUndoRedo'](_0x52e41e,_0x2d347c){const _0x2629ac=_0x3cc0f6,_0x3951ef=this[_0x2629ac(0x41c)](_0x52e41e);if(_0x3951ef)try{const _0x1a7f24=this['_transformStack'](_0x3951ef,_0x2d347c);this[_0x2629ac(0x588)](_0x52e41e,_0x1a7f24);}catch(_0x15f947){this[_0x2629ac(0x518)][_0x2629ac(0x2c9)](_0x2629ac(0x4e9),_0x15f947),this[_0x2629ac(0x397)](_0x52e41e);}const _0x350bc8=this[_0x2629ac(0x218)](_0x52e41e);if(_0x350bc8)try{const _0x56c13f=this[_0x2629ac(0x445)](_0x350bc8,_0x2d347c);this['_substituteRedoStack'](_0x52e41e,_0x56c13f);}catch(_0x4128d2){this[_0x2629ac(0x518)]['error'](_0x4128d2),this[_0x2629ac(0x22c)](_0x52e41e);}}[_0x3cc0f6(0x397)](_0xb2a112){const _0x4bac4f=_0x3cc0f6,_0x53b8cb=this[_0x4bac4f(0x41c)](_0xb2a112);_0x53b8cb&&(_0x53b8cb[_0x4bac4f(0x411)]=0x0,this[_0x4bac4f(0x428)]());}[_0x3cc0f6(0x22c)](_0x572ffb){const _0x5c5892=_0x3cc0f6,_0x1f2f72=this[_0x5c5892(0x218)](_0x572ffb);_0x1f2f72&&(_0x1f2f72['length']=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0x26c280,_0x24d78d){const _0x5ae3d9=_0x3cc0f6;this[_0x5ae3d9(0x5b0)][_0x5ae3d9(0x420)](_0x26c280,_0x24d78d),this[_0x5ae3d9(0x428)]();}[_0x3cc0f6(0x204)](_0x4015bc,_0x3ffac9){const _0x22629d=_0x3cc0f6;this[_0x22629d(0x357)][_0x22629d(0x420)](_0x4015bc,_0x3ffac9),this['_updateStatus']();}[_0x3cc0f6(0x445)](_0x19dbe0,_0x1ce28e){const _0x76d277=_0x3cc0f6,_0x1ee0fb=[];let _0x23116b=_0x1ce28e,_0x46d0a8=_0x1ce28e;for(let _0x182af7=_0x19dbe0['length']-0x1;_0x182af7>=0x0;_0x182af7--){const {unitID:_0x4d659f,undoMutations:_0x2af8a0,redoMutations:_0x259f9b}=_0x19dbe0[_0x182af7],_0x371f8d=this[_0x76d277(0x5c3)][_0x76d277(0x338)](_0x23116b,_0x2af8a0),_0xc6025b=this[_0x76d277(0x5c3)]['transformMutationsWithChangeset'](_0x46d0a8,_0x259f9b);if(_['isTransformMutationsWithChangesetFailure'](_0x371f8d)||_['isTransformMutationsWithChangesetFailure'](_0xc6025b)){this[_0x76d277(0x518)][_0x76d277(0x2c9)](_0x76d277(0x4e9),_0x76d277(0x524),_0x371f8d,_0xc6025b);break;}_0x23116b=_0x371f8d[_0x76d277(0x5c5)],_0x46d0a8=_0xc6025b[_0x76d277(0x5c5)],_0x1ee0fb[_0x76d277(0x430)]({'unitID':_0x4d659f,'undoMutations':_0x371f8d[_0x76d277(0x201)],'redoMutations':_0xc6025b[_0x76d277(0x201)]});}return _0x1ee0fb[_0x76d277(0x45d)]();}};Fe=wn([de(0x0,a[_0x3cc0f6(0x2f2)]),de(0x1,a[_0x3cc0f6(0x1d6)]),de(0x2,a[_0x3cc0f6(0x58c)]),de(0x3,_[_0x3cc0f6(0x3ba)]),de(0x4,a[_0x3cc0f6(0x24d)])],Fe);class xt extends a[_0x3cc0f6(0x2f0)]{constructor(){const _0x19973e=_0x3cc0f6;super(),u(this,_0x19973e(0x3f9)),this[_0x19973e(0x3f9)]=v[_0x19973e(0x3e4)](window,_0x19973e(0x285))[_0x19973e(0x57c)](v[_0x19973e(0x585)](this[_0x19973e(0x38b)]),v[_0x19973e(0x50b)](0x1),v[_0x19973e(0x1bc)](void 0x0));}[_0x3cc0f6(0x20f)](_0x233140,_0x574d8f,_0x2021e3=!0x1){const _0x14822a=_0x3cc0f6,_0x344591=new URL(window[_0x14822a(0x46b)]['href']);_0x344591['searchParams'][_0x14822a(0x420)](_0x233140,_0x574d8f),_0x2021e3?window[_0x14822a(0x208)][_0x14822a(0x3b9)]('','',_0x344591[_0x14822a(0x39c)]()):window[_0x14822a(0x208)][_0x14822a(0x3bf)]('','',_0x344591[_0x14822a(0x39c)]());}['removeParam'](_0x19ad2e,_0x102f55=!0x1){const _0x4584c9=_0x3cc0f6,_0x523ee4=new URL(window['location'][_0x4584c9(0x2ca)]);_0x523ee4[_0x4584c9(0x2d4)]['delete'](_0x19ad2e),_0x102f55?window[_0x4584c9(0x208)]['replaceState']('','',_0x523ee4['toString']()):window[_0x4584c9(0x208)]['pushState']('','',_0x523ee4[_0x4584c9(0x39c)]());}['getParam'](_0x509102){const _0x1879da=_0x3cc0f6;var _0x46fea7;return(_0x46fea7=new URL(window[_0x1879da(0x46b)][_0x1879da(0x2ca)])[_0x1879da(0x2d4)]['get'](_0x509102))!=null?_0x46fea7:void 0x0;}}var kt=Object['defineProperty'],Nn=Object[_0x3cc0f6(0x544)],Mn=(_0x2731f8,_0xf57c1d,_0x1ad88b)=>_0xf57c1d in _0x2731f8?kt(_0x2731f8,_0xf57c1d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad88b}):_0x2731f8[_0xf57c1d]=_0x1ad88b,An=(_0x15a6f0,_0x4f69b3,_0x2d2a6f,_0x48e898)=>{const _0x4cca84=_0x3cc0f6;for(var _0x1fe013=_0x48e898>0x1?void 0x0:_0x48e898?Nn(_0x4f69b3,_0x2d2a6f):_0x4f69b3,_0x3792a1=_0x15a6f0[_0x4cca84(0x411)]-0x1,_0x38508c;_0x3792a1>=0x0;_0x3792a1--)(_0x38508c=_0x15a6f0[_0x3792a1])&&(_0x1fe013=(_0x48e898?_0x38508c(_0x4f69b3,_0x2d2a6f,_0x1fe013):_0x38508c(_0x1fe013))||_0x1fe013);return _0x48e898&&_0x1fe013&&kt(_0x4f69b3,_0x2d2a6f,_0x1fe013),_0x1fe013;},fe=(_0x59e5fe,_0x52ebc7)=>(_0x2c2bdd,_0x10455c)=>_0x52ebc7(_0x2c2bdd,_0x10455c,_0x59e5fe),Ln=(_0x7944a8,_0x2b49c2,_0x7f74e2)=>Mn(_0x7944a8,_0x2b49c2+'',_0x7f74e2);const $n=_0x3cc0f6(0x42c);exports[_0x3cc0f6(0x3c5)]=class extends a[_0x3cc0f6(0x3e9)]{constructor(_0x34aefd=as,_0x26eca2,_0x8768a4,_0x2acfb8,_0x4d51de){const _0x336746=_0x3cc0f6;super(),this[_0x336746(0x2a8)]=_0x34aefd,this[_0x336746(0x518)]=_0x26eca2,this['_renderManagerService']=_0x8768a4,this[_0x336746(0x5ba)]=_0x2acfb8,this[_0x336746(0x5e0)]=_0x4d51de;const {..._0xf1c74f}=this[_0x336746(0x2a8)];this[_0x336746(0x5e0)][_0x336746(0x321)]($,_0xf1c74f);}[_0x3cc0f6(0x47f)](){const _0x4d8e0f=_0x3cc0f6;this[_0x4d8e0f(0x5ce)](),a[_0x4d8e0f(0x237)](this[_0x4d8e0f(0x5ba)],[[ae],[exports['DataLoaderController']],[Re]]);}['onReady'](){const _0x3f8d4a=_0x3cc0f6;a[_0x3f8d4a(0x237)](this['_injector'],[[Ee]]);}[_0x3cc0f6(0x35e)](){const _0x138b99=_0x3cc0f6;this[_0x138b99(0x375)]();}[_0x3cc0f6(0x5ce)](){const _0x1d80ef=_0x3cc0f6;var _0x887d42,_0x171afb,_0x38574b,_0x4c3842;this[_0x1d80ef(0x5ba)][_0x1d80ef(0x2d0)](a[_0x1d80ef(0x238)])&&this[_0x1d80ef(0x518)][_0x1d80ef(0x2c9)](_0x1d80ef(0x57e),_0x1d80ef(0x530));let _0x453b65=[[a[_0x1d80ef(0x238)],{'useClass':Fe}],[exports[_0x1d80ef(0x3c0)]],[Je],[U[_0x1d80ef(0x43f)]],[Qe,{'useClass':xt}],[Z],[exports[_0x1d80ef(0x1f8)]],[U[_0x1d80ef(0x3d2)]],[pe],[Ce],[Ie],[qe],[be],[Te],[Xe],[Re],[Ke,{'useClass':(_0x171afb=(_0x887d42=this['_config'])==null?void 0x0:_0x887d42[_0x1d80ef(0x3cf)])!=null?_0x171afb:exports[_0x1d80ef(0x322)]}],[U[_0x1d80ef(0x2b4)],{'useClass':U[_0x1d80ef(0x4da)]}],[_['ISnapshotServerService'],{'useClass':exports[_0x1d80ef(0x47e)]}],[a[_0x1d80ef(0x395)],{'useClass':exports['AuthzIoHttpService']}],[j[_0x1d80ef(0x381)],{'useClass':exports[_0x1d80ef(0x506)]}],[exports[_0x1d80ef(0x3fc)]],[exports[_0x1d80ef(0x5d5)]],[exports['DesktopCollaborationStatusDisplayController']],[Ee],[ae]];(_0x38574b=this[_0x1d80ef(0x2a8)])!=null&&_0x38574b[_0x1d80ef(0x2d8)]&&_0x453b65['push']([Oe,{'useClass':xs}]),_0x453b65=a[_0x1d80ef(0x202)](_0x453b65,(_0x4c3842=this[_0x1d80ef(0x2a8)])==null?void 0x0:_0x4c3842[_0x1d80ef(0x30d)]),_0x453b65[_0x1d80ef(0x300)](_0x16376a=>this[_0x1d80ef(0x5ba)][_0x1d80ef(0x44c)](_0x16376a)),this['_initModules']();}[_0x3cc0f6(0x375)](){const _0x16e9e7=_0x3cc0f6;this[_0x16e9e7(0x217)](this[_0x16e9e7(0x1d5)][_0x16e9e7(0x439)](a[_0x16e9e7(0x31e)][_0x16e9e7(0x3c6)],[Ve])),this[_0x16e9e7(0x217)](this[_0x16e9e7(0x1d5)][_0x16e9e7(0x439)](a[_0x16e9e7(0x31e)][_0x16e9e7(0x336)],[We]));}[_0x3cc0f6(0x39f)](){const _0x596fca=_0x3cc0f6;var _0x340927,_0x3aa14b;this[_0x596fca(0x5ba)][_0x596fca(0x3de)](U[_0x596fca(0x43f)])[_0x596fca(0x5e1)]({'priority':0x14,'interceptor':U[_0x596fca(0x3b6)]({'maxParallel':0x6})}),this[_0x596fca(0x5ba)][_0x596fca(0x3de)](Te),(_0x340927=this['_config'])!=null&&_0x340927[_0x596fca(0x283)]||this[_0x596fca(0x5ba)][_0x596fca(0x3de)](exports[_0x596fca(0x1f8)])[_0x596fca(0x270)](),(_0x3aa14b=this[_0x596fca(0x2a8)])!=null&&_0x3aa14b[_0x596fca(0x5d0)]&&this[_0x596fca(0x5ba)][_0x596fca(0x3de)](be),this[_0x596fca(0x5ba)][_0x596fca(0x3de)](exports[_0x596fca(0x3fc)]),this['_injector'][_0x596fca(0x2d0)](exports[_0x596fca(0x2de)])&&this['_injector'][_0x596fca(0x3de)](exports['DesktopCollaborationStatusDisplayController']);}},Ln(exports[_0x3cc0f6(0x3c5)],'pluginName',$n),exports[_0x3cc0f6(0x3c5)]=An([a['DependentOn'](_[_0x3cc0f6(0x4f0)]),fe(0x1,a[_0x3cc0f6(0x24d)]),fe(0x2,O[_0x3cc0f6(0x3c1)]),fe(0x3,a[_0x3cc0f6(0x573)](a[_0x3cc0f6(0x5e8)])),fe(0x4,a[_0x3cc0f6(0x5d3)])],exports['UniverCollaborationClientPlugin']),exports[_0x3cc0f6(0x2e8)]=Ht,exports[_0x3cc0f6(0x4f6)]=Ct,exports[_0x3cc0f6(0x24f)]=mt,exports[_0x3cc0f6(0x25b)]=D,exports[_0x3cc0f6(0x2ab)]=jt,exports[_0x3cc0f6(0x431)]=Xe,exports[_0x3cc0f6(0x21f)]=gt,exports['HEARTBEAT_TIMEOUT_KEY']=Ge,exports[_0x3cc0f6(0x3ff)]=Ke,exports[_0x3cc0f6(0x2eb)]=Qe,exports['LOCAL_CACHE_INTERVAL_KEY']=pt,exports[_0x3cc0f6(0x546)]=Et,exports[_0x3cc0f6(0x4d1)]=It,exports['SEND_CHANGESET_TIMEOUT_KEY']=Zt,exports[_0x3cc0f6(0x2c2)]=St,exports[_0x3cc0f6(0x327)]=vt,exports[_0x3cc0f6(0x3df)]=x,exports[_0x3cc0f6(0x1db)]=Nt,exports[_0x3cc0f6(0x56a)]=xt,exports[_0x3cc0f6(0x277)]=Rt,exports[_0x3cc0f6(0x54a)]=Ot;
|
1
|
+
'use strict';const _0x58ee4a=_0x5d3e;(function(_0x437112,_0x468cac){const _0x58aa65=_0x5d3e,_0x2018f8=_0x437112();while(!![]){try{const _0x48da92=parseInt(_0x58aa65(0x26e))/0x1+-parseInt(_0x58aa65(0xfa))/0x2*(-parseInt(_0x58aa65(0x36b))/0x3)+-parseInt(_0x58aa65(0xd3))/0x4*(parseInt(_0x58aa65(0xe2))/0x5)+parseInt(_0x58aa65(0x124))/0x6*(-parseInt(_0x58aa65(0x4e4))/0x7)+-parseInt(_0x58aa65(0x3c9))/0x8*(-parseInt(_0x58aa65(0x25f))/0x9)+parseInt(_0x58aa65(0x3bf))/0xa+-parseInt(_0x58aa65(0x4f3))/0xb*(-parseInt(_0x58aa65(0x2a0))/0xc);if(_0x48da92===_0x468cac)break;else _0x2018f8['push'](_0x2018f8['shift']());}catch(_0x4edcc9){_0x2018f8['push'](_0x2018f8['shift']());}}}(_0x218e,0x8a3f5));var Gt=Object[_0x58ee4a(0x185)],Yt=(_0x45445b,_0x54dd08,_0x26d127)=>_0x54dd08 in _0x45445b?Gt(_0x45445b,_0x54dd08,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x26d127}):_0x45445b[_0x54dd08]=_0x26d127,u=(_0x363d61,_0x19d50f,_0xbedca3)=>Yt(_0x363d61,typeof _0x19d50f!=_0x58ee4a(0x309)?_0x19d50f+'':_0x19d50f,_0xbedca3);Object[_0x58ee4a(0x185)](exports,Symbol['toStringTag'],{'value':_0x58ee4a(0x198)});const a=require(_0x58ee4a(0x179)),v=require(_0x58ee4a(0x457)),E=require(_0x58ee4a(0x3d9)),J=require('@univerjs/design'),A=require('@univerjs/ui'),U=require(_0x58ee4a(0x49f)),_=require('@univerjs-pro/collaboration'),Kt=require('@univerjs/telemetry'),N=require('@univerjs/docs-ui'),C=require(_0x58ee4a(0x1a9)),O=require(_0x58ee4a(0x45f)),ne=require('@univerjs/docs'),j=require('@univerjs/drawing'),Qe=require(_0x58ee4a(0xdd)),ie=require(_0x58ee4a(0x434)),y=require(_0x58ee4a(0x291)),Xt=require(_0x58ee4a(0x26c)),qt=require(_0x58ee4a(0x334)),dt=_0x58ee4a(0x2b8),zt=_0x58ee4a(0x12f),St=_0x58ee4a(0xeb),Jt='SEND_CHANGESET_TIMEOUT',Zt=0x7d0,vt=_0x58ee4a(0x177),Qt='ws://127.0.0.1:8000/universer-api/comb/connect',mt=_0x58ee4a(0x422),es=0x7530,Fe=_0x58ee4a(0x264),gt=0x4e20,ts=0x4e20,ft=_0x58ee4a(0x44f),ss=0x3,It=_0x58ee4a(0x110),is=0x3e8,pt=_0x58ee4a(0x138),ns='/universer-api/comb',Ct=_0x58ee4a(0x272),rs=_0x58ee4a(0x278);var Et=(_0x11cf80=>(_0x11cf80[_0x11cf80[_0x58ee4a(0x160)]=0x0]='UNDEFINED',_0x11cf80[_0x11cf80['OK']=0x1]='OK',_0x11cf80[_0x11cf80[_0x58ee4a(0x382)]=0x2]=_0x58ee4a(0x382),_0x11cf80[_0x11cf80[_0x58ee4a(0x493)]=0x3]=_0x58ee4a(0x493),_0x11cf80[_0x11cf80[_0x58ee4a(0xe6)]=0x4]='NOT_FOUND',_0x11cf80[_0x11cf80[_0x58ee4a(0x2ec)]=0x5]='UNAUTHENTICATED',_0x11cf80[_0x11cf80[_0x58ee4a(0x452)]=0x6]=_0x58ee4a(0x452),_0x11cf80[_0x11cf80['INVALID_ARGUMENT']=0x7]=_0x58ee4a(0x19f),_0x11cf80[_0x11cf80[_0x58ee4a(0x1a5)]=0x8]=_0x58ee4a(0x1a5),_0x11cf80[_0x11cf80[_0x58ee4a(0x22a)]=0x9]=_0x58ee4a(0x22a),_0x11cf80[_0x11cf80[_0x58ee4a(0x211)]=0x1389]=_0x58ee4a(0x211),_0x11cf80[_0x11cf80[_0x58ee4a(0x191)]=0x1771]=_0x58ee4a(0x191),_0x11cf80[_0x11cf80[_0x58ee4a(0x398)]=0x1772]=_0x58ee4a(0x398),_0x11cf80[_0x11cf80[_0x58ee4a(0x252)]=0x1773]=_0x58ee4a(0x252),_0x11cf80[_0x11cf80[_0x58ee4a(0x409)]=0x1b59]='APPLY_REJECT',_0x11cf80[_0x11cf80[_0x58ee4a(0x183)]=0x1b5a]=_0x58ee4a(0x183),_0x11cf80[_0x11cf80['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x58ee4a(0x312),_0x11cf80[_0x11cf80[_0x58ee4a(0x2b9)]=0x1b5c]=_0x58ee4a(0x2b9),_0x11cf80[_0x11cf80[_0x58ee4a(0x4ef)]=0x1b5d]='APPLY_DUPLICATED',_0x11cf80[_0x11cf80['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x11cf80[_0x11cf80['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x11cf80[_0x11cf80[_0x58ee4a(0x13c)]=0x232a]=_0x58ee4a(0x13c),_0x11cf80[_0x11cf80[_0x58ee4a(0xd0)]=0x232b]=_0x58ee4a(0xd0),_0x11cf80[_0x11cf80[_0x58ee4a(0x24d)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x11cf80[_0x11cf80[_0x58ee4a(0x335)]=0x232d]=_0x58ee4a(0x335),_0x11cf80[_0x11cf80['YUUMI_UNABLE_LOAD_URL']=0x2711]=_0x58ee4a(0x1c4),_0x11cf80[_0x11cf80[_0x58ee4a(0x133)]=0x2712]=_0x58ee4a(0x133),_0x11cf80[_0x11cf80[_0x58ee4a(0x227)]=0x2713]=_0x58ee4a(0x227),_0x11cf80[_0x11cf80['YUUMI_SUBSCRIPTION_NOT_FOUND']=0x2714]=_0x58ee4a(0x125),_0x11cf80[_0x11cf80[_0x58ee4a(0x372)]=-0x1]='UNRECOGNIZED',_0x11cf80))(Et||{}),H=(_0x3705eb=>(_0x3705eb[_0x3705eb[_0x58ee4a(0x2e0)]=0x0]=_0x58ee4a(0x2e0),_0x3705eb[_0x3705eb[_0x58ee4a(0x437)]=0x1]=_0x58ee4a(0x437),_0x3705eb[_0x3705eb[_0x58ee4a(0x44a)]=0x2]=_0x58ee4a(0x44a),_0x3705eb[_0x3705eb[_0x58ee4a(0x390)]=0x3]='UNIVER_SLIDE',_0x3705eb[_0x3705eb['UNIVER_PROJECT']=0x4]=_0x58ee4a(0x17e),_0x3705eb[_0x3705eb[_0x58ee4a(0x372)]=-0x1]='UNRECOGNIZED',_0x3705eb))(H||{}),b=(_0x537cb6=>(_0x537cb6[_0x537cb6[_0x58ee4a(0x13b)]=0x0]=_0x58ee4a(0x13b),_0x537cb6[_0x537cb6[_0x58ee4a(0x1bd)]=0x1]=_0x58ee4a(0x1bd),_0x537cb6[_0x537cb6[_0x58ee4a(0x417)]=0x2]=_0x58ee4a(0x417),_0x537cb6[_0x537cb6[_0x58ee4a(0x3a1)]=0x3]=_0x58ee4a(0x3a1),_0x537cb6[_0x537cb6['INGEST']=0x4]=_0x58ee4a(0x479),_0x537cb6[_0x537cb6['HEARTBEAT']=0x5]=_0x58ee4a(0x4d8),_0x537cb6[_0x537cb6[_0x58ee4a(0x284)]=0x6]=_0x58ee4a(0x284),_0x537cb6[_0x537cb6[_0x58ee4a(0x372)]=-0x1]=_0x58ee4a(0x372),_0x537cb6))(b||{}),Ge=(_0x4a1ec4=>(_0x4a1ec4[_0x4a1ec4[_0x58ee4a(0x32c)]=0x0]='UNKNOWN_CODE',_0x4a1ec4[_0x4a1ec4['OK']=0x1]='OK',_0x4a1ec4[_0x4a1ec4[_0x58ee4a(0x3da)]=0x2]='FAIL',_0x4a1ec4[_0x4a1ec4[_0x58ee4a(0x372)]=-0x1]=_0x58ee4a(0x372),_0x4a1ec4))(Ge||{}),bt=(_0x2e7d74=>(_0x2e7d74[_0x2e7d74[_0x58ee4a(0x3e9)]=0x0]=_0x58ee4a(0x3e9),_0x2e7d74[_0x2e7d74[_0x58ee4a(0xcc)]=0x1]=_0x58ee4a(0xcc),_0x2e7d74[_0x2e7d74[_0x58ee4a(0x29f)]=0x2]=_0x58ee4a(0x29f),_0x2e7d74[_0x2e7d74['UnitEmbedded']=0x3]='UnitEmbedded',_0x2e7d74[_0x2e7d74['UnitSnapshot']=0x4]='UnitSnapshot',_0x2e7d74[_0x2e7d74[_0x58ee4a(0x372)]=-0x1]='UNRECOGNIZED',_0x2e7d74))(bt||{});const $=_0x58ee4a(0x464),os={};function Tt(_0x45e7d8){const _0x3c8140=_0x58ee4a;var _0x562239,_0x5f2cda,_0x48fc4b,_0x4d8e7e,_0x2c3c66;const _0x8b2f01=_0x45e7d8[_0x3c8140(0x40f)],_0x230269=JSON[_0x3c8140(0x438)](_0x8b2f01);switch(_0x230269['cmd']){case b[_0x3c8140(0x4d8)]:case b[_0x3c8140(0x1bd)]:{const _0x4a9bba=_0x230269['infoRsp'];return{..._0x230269,'data':_0x4a9bba,'cmd':_0x230269[_0x3c8140(0x273)]};}case b[_0x3c8140(0x417)]:{const _0x35f905=_0x230269['joinRsp'];return{..._0x230269,'data':_0x35f905,'cmd':_0x230269['cmd']};}case b['RECV']:{const _0x26ea6b=_0x230269['collaMsg'];switch(_0x26ea6b[_0x3c8140(0x342)]){case _[_0x3c8140(0x2af)][_0x3c8140(0x244)]:return{..._0x230269,'data':{..._0x26ea6b,'data':(_0x562239=_0x26ea6b[_0x3c8140(0x39e)])==null?void 0x0:_0x562239['cs']},'cmd':_0x230269['cmd']};case _[_0x3c8140(0x2af)]['CHANGESET_ACK']:return{..._0x230269,'data':{..._0x26ea6b,'data':(_0x5f2cda=_0x26ea6b[_0x3c8140(0x248)])==null?void 0x0:_0x5f2cda['cs']},'cmd':_0x230269[_0x3c8140(0x273)]};case _['CollaborationEvent'][_0x3c8140(0x20a)]:return{..._0x230269,'data':{..._0x26ea6b,'data':(_0x48fc4b=_0x26ea6b[_0x3c8140(0x283)])==null?void 0x0:_0x48fc4b['cs']},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)][_0x3c8140(0xd1)]:return{..._0x230269,'data':{..._0x26ea6b,'data':(_0x4d8e7e=_0x26ea6b[_0x3c8140(0x277)])==null?void 0x0:_0x4d8e7e['cs']},'cmd':_0x230269['cmd']};case _[_0x3c8140(0x2af)][_0x3c8140(0x34f)]:return{..._0x230269,'data':{..._0x26ea6b,'data':(_0x2c3c66=_0x26ea6b['csShouldRetryEvent'])==null?void 0x0:_0x2c3c66['cs']},'cmd':_0x230269['cmd']};case _['CollaborationEvent']['UPDATE_CURSOR']:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x3fe)]},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)][_0x3c8140(0x322)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x3b3)]},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)][_0x3c8140(0x3f4)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b['leaveEvent']},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)][_0x3c8140(0x359)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x268)]},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)][_0x3c8140(0x41b)]:case _[_0x3c8140(0x2af)][_0x3c8140(0x348)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x167)]},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)][_0x3c8140(0x483)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x268)]},'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)]['MSG_FOR_ERROR']:return{..._0x230269,'data':_0x26ea6b,'cmd':_0x230269[_0x3c8140(0x273)]};case _[_0x3c8140(0x2af)]['COMMENT_UPDATE']:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x2ad)]},'cmd':_0x230269['cmd']};case _[_0x3c8140(0x2af)][_0x3c8140(0x25e)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x186)]},'cmd':_0x230269['cmd']};case _['CollaborationEvent'][_0x3c8140(0x402)]:return{..._0x230269,'data':{..._0x26ea6b,'data':_0x26ea6b[_0x3c8140(0x134)]},'cmd':_0x230269[_0x3c8140(0x273)]};default:return _0x230269;}}default:return _0x230269;}}function Rt(_0x30c62b){const _0x4a0f1a=_0x58ee4a;switch(_0x30c62b[_0x4a0f1a(0x273)]){case b[_0x4a0f1a(0x4d8)]:case b[_0x4a0f1a(0x1bd)]:return JSON[_0x4a0f1a(0x120)]({'cmd':_0x30c62b[_0x4a0f1a(0x273)],'routeKey':_0x30c62b[_0x4a0f1a(0x4a2)]});case b[_0x4a0f1a(0x479)]:{let _0x4642b0;switch(_0x30c62b['data']['eventID']){case _[_0x4a0f1a(0x2af)]['UPDATE_CURSOR']:{_0x4642b0={'eventID':_[_0x4a0f1a(0x2af)]['UPDATE_CURSOR'],'updateCursorEvent':_0x30c62b[_0x4a0f1a(0x40f)][_0x4a0f1a(0x40f)]};break;}case _[_0x4a0f1a(0x2af)][_0x4a0f1a(0x3f4)]:{_0x4642b0={'eventID':_['CollaborationEvent']['USERS_LEAVE'],'leaveEvent':_0x30c62b[_0x4a0f1a(0x40f)][_0x4a0f1a(0x40f)]};break;}case _['CollaborationEvent'][_0x4a0f1a(0x322)]:{_0x4642b0={'eventID':_[_0x4a0f1a(0x2af)][_0x4a0f1a(0x322)],'joinEvent':_0x30c62b[_0x4a0f1a(0x40f)][_0x4a0f1a(0x40f)]};break;}case _[_0x4a0f1a(0x2af)][_0x4a0f1a(0x359)]:{_0x4642b0={'eventID':_['CollaborationEvent'][_0x4a0f1a(0x359)],'liveShareNewHost':_0x30c62b[_0x4a0f1a(0x40f)][_0x4a0f1a(0x40f)]};break;}case _['CollaborationEvent'][_0x4a0f1a(0x348)]:{_0x4642b0={'eventID':_[_0x4a0f1a(0x2af)][_0x4a0f1a(0x348)],'liveShareOperation':_0x30c62b['data'][_0x4a0f1a(0x40f)]};break;}case _[_0x4a0f1a(0x2af)]['LIVESHARE_TERMINATE']:{_0x4642b0={'eventID':_[_0x4a0f1a(0x2af)][_0x4a0f1a(0x483)],'liveShareTerminate':_0x30c62b[_0x4a0f1a(0x40f)][_0x4a0f1a(0x40f)]};break;}case _[_0x4a0f1a(0x2af)][_0x4a0f1a(0x1d4)]:{_0x4642b0={'eventID':_[_0x4a0f1a(0x2af)][_0x4a0f1a(0x1d4)],'liveShareRequestHost':_0x30c62b[_0x4a0f1a(0x40f)]['data']};break;}case _['CollaborationEvent'][_0x4a0f1a(0x41b)]:{_0x4642b0={'eventID':_[_0x4a0f1a(0x2af)][_0x4a0f1a(0x41b)]};break;}default:_0x4642b0={'eventID':_0x30c62b[_0x4a0f1a(0x40f)][_0x4a0f1a(0x342)]};}return JSON[_0x4a0f1a(0x120)]({'cmd':_0x30c62b[_0x4a0f1a(0x273)],'routeKey':_0x30c62b[_0x4a0f1a(0x4a2)],'collaMsg':_0x4642b0});}case b[_0x4a0f1a(0x417)]:return JSON['stringify']({'cmd':_0x30c62b[_0x4a0f1a(0x273)],'routeKey':_0x30c62b[_0x4a0f1a(0x4a2)],'joinReq':_0x30c62b[_0x4a0f1a(0x40f)]});case b['LEAVE']:return JSON['stringify']({'cmd':_0x30c62b['cmd'],'routeKey':_0x30c62b['routeKey'],'leaveReq':_0x30c62b[_0x4a0f1a(0x40f)]});default:throw new Error(_0x4a0f1a(0x27a));}}var as=Object['defineProperty'],cs=Object['getOwnPropertyDescriptor'],ls=(_0x53b5bc,_0x5862a8,_0x5f4446,_0x1c8a99)=>{const _0x398e6e=_0x58ee4a;for(var _0x2c75ae=_0x1c8a99>0x1?void 0x0:_0x1c8a99?cs(_0x5862a8,_0x5f4446):_0x5862a8,_0x4394bd=_0x53b5bc[_0x398e6e(0x4bb)]-0x1,_0x12a2f5;_0x4394bd>=0x0;_0x4394bd--)(_0x12a2f5=_0x53b5bc[_0x4394bd])&&(_0x2c75ae=(_0x1c8a99?_0x12a2f5(_0x5862a8,_0x5f4446,_0x2c75ae):_0x12a2f5(_0x2c75ae))||_0x2c75ae);return _0x1c8a99&&_0x2c75ae&&as(_0x5862a8,_0x5f4446,_0x2c75ae),_0x2c75ae;},ae=(_0x44cdc8,_0x33eb7b)=>(_0x57eb06,_0x1d7b21)=>_0x33eb7b(_0x57eb06,_0x1d7b21,_0x44cdc8);const Ye=a[_0x58ee4a(0x236)]('univer-pro.collaboration-client-socket-service');function hs(_0x20bd2c,_0x408a15,_0x194849){const _0x3556b2=_0x58ee4a;return _0x20bd2c+'/'+_0x408a15+_0x3556b2(0x1b3)+_0x194849+_0x3556b2(0x3f7);}exports[_0x58ee4a(0x4a8)]=class extends a['Disposable']{constructor(_0x5ca154,_0x11981e,_0x3bc348,_0x5e4723,_0x492e61){const _0x1a1e0=_0x58ee4a;super(),this[_0x1a1e0(0x500)]=_0x5ca154,this[_0x1a1e0(0x42d)]=_0x11981e,this['_configService']=_0x3bc348,this[_0x1a1e0(0x2bd)]=_0x5e4723,this[_0x1a1e0(0x373)]=_0x492e61;}[_0x58ee4a(0x2f3)](_0x1cbef1){const _0x4eeafa=_0x58ee4a,_0x550e2d=this[_0x4eeafa(0x42d)]['createSocket'](_0x1cbef1);if(!_0x550e2d)throw new Error(_0x4eeafa(0x488));const _0xff2681=new a['DisposableCollection'](),_0x310729=new v[(_0x4eeafa(0x3ba))]();_0xff2681[_0x4eeafa(0x331)](_0x550e2d[_0x4eeafa(0x3b2)][_0x4eeafa(0x3fa)](_0x522adf=>_0x310729[_0x4eeafa(0x28b)](_0x522adf))),_0xff2681[_0x4eeafa(0x331)](a['toDisposable'](()=>_0x310729[_0x4eeafa(0x2ba)]()));const _0x3d319e=new v[(_0x4eeafa(0x3ba))]();_0xff2681['add'](_0x550e2d[_0x4eeafa(0x489)][_0x4eeafa(0x3fa)](_0x44cc57=>_0x3d319e[_0x4eeafa(0x28b)](_0x44cc57))),_0xff2681[_0x4eeafa(0x331)](a[_0x4eeafa(0x4fa)](()=>_0x3d319e[_0x4eeafa(0x2ba)]()));const _0x186de1=new v[(_0x4eeafa(0x3ba))]();_0xff2681[_0x4eeafa(0x331)](_0x550e2d[_0x4eeafa(0x3c8)][_0x4eeafa(0x3fa)](_0x482665=>{const _0x41377e=_0x4eeafa,_0x39e57d=Tt(_0x482665);_0x186de1[_0x41377e(0x28b)](_0x39e57d);})),_0xff2681[_0x4eeafa(0x331)](a['toDisposable'](()=>_0x186de1[_0x4eeafa(0x2ba)]()));let _0x4470fc;const _0x8276f4=()=>{const _0x5ae225=_0x4eeafa;_0x3d319e[_0x5ae225(0x28b)](new Event(_0x5ae225(0x1f8))),_0x310729[_0x5ae225(0x28b)](new CloseEvent(_0x5ae225(0x1f8))),_0x4470fc[_0x5ae225(0x1ad)]();};return _0x4470fc={'memberID':'','close$':_0x310729[_0x4eeafa(0x396)](),'error$':_0x3d319e[_0x4eeafa(0x396)](),'open$':_0x550e2d['open$'],'message$':_0x186de1[_0x4eeafa(0x396)](),'send':_0x30e73c=>{const _0x8a1897=_0x4eeafa;if(_0x30e73c[_0x8a1897(0x273)]===b['INGEST']){if(_0x30e73c['data'][_0x8a1897(0x342)]===_['CollaborationEvent'][_0x8a1897(0x224)]){this[_0x8a1897(0x2e6)](_0x4470fc,_0x30e73c[_0x8a1897(0x40f)])[_0x8a1897(0x1d0)](_0x1ebf18=>{const _0x3c99c1=_0x8a1897;this[_0x3c99c1(0x2bd)][_0x3c99c1(0x427)](_0x1ebf18),_0x8276f4();});return;}if(_0x30e73c[_0x8a1897(0x40f)][_0x8a1897(0x342)]===_[_0x8a1897(0x2af)][_0x8a1897(0x250)]){const _0xbe1292=_0x30e73c[_0x8a1897(0x40f)];this[_0x8a1897(0x2f0)](_0xbe1292)[_0x8a1897(0x13a)](_0x27a3be=>{const _0x11229a=_0x8a1897;_0x186de1[_0x11229a(0x28b)]({'cmd':b['RECV'],'code':Ge['OK'],'routeKey':_0xbe1292[_0x11229a(0x40f)][_0x11229a(0x4a1)],'routeType':'','data':{'eventID':_[_0x11229a(0x2af)][_0x11229a(0x3c5)],'data':{'changesets':_0x27a3be}}});})[_0x8a1897(0x1d0)](_0x370d4f=>{const _0x45afea=_0x8a1897;this[_0x45afea(0x2bd)][_0x45afea(0x427)](_0x370d4f),_0x8276f4();});return;}}_0x550e2d[_0x8a1897(0x3ce)](Rt(_0x30e73c));},'close':()=>{const _0x112ac0=_0x4eeafa;_0x550e2d[_0x112ac0(0x1ad)](),_0xff2681['dispose']();}},_0x4470fc;}async[_0x58ee4a(0x2e6)](_0x153fec,_0x4108ab){const _0x386212=_0x58ee4a;var _0x2b485b,_0x589a8c;const {unitType:_0x532098,unitID:_0x2422a0,changeset:_0x515891}=_0x4108ab['data'],_0x3ee452={'unitID':_0x2422a0,'memberID':_0x153fec['memberID'],'type':_0x532098,'changeset':_[_0x386212(0x18c)](_0x515891)},_0xcc6213=this[_0x386212(0x324)][_0x386212(0xc6)](pt),_0x5e327c=this[_0x386212(0x324)][_0x386212(0xc6)]($),_0x2eb584=hs((_0x589a8c=(_0x2b485b=_0x5e327c==null?void 0x0:_0x5e327c[_0x386212(0x1fe)])!=null?_0x2b485b:_0xcc6213)!=null?_0x589a8c:ns,_0x532098,_0x2422a0);try{await this[_0x386212(0x500)][_0x386212(0x451)](_0x2eb584,{'body':_0x3ee452});}catch(_0x3ea8de){throw this[_0x386212(0x2bd)]['error'](_0x386212(0x303),_0x386212(0x287)),_0x3ea8de;}}async['_fetchMissChangesets'](_0x39ee4d){const _0x2372d8=_0x58ee4a,{unitID:_0x3a32f9,from:_0x5b394b,to:_0x4694a4,unitType:_0x58bc7a}=_0x39ee4d[_0x2372d8(0x40f)];return(await this[_0x2372d8(0x373)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x3a32f9,'type':_0x58bc7a,'from':_0x5b394b,'to':_0x4694a4}))[_0x2372d8(0x29b)];}},exports[_0x58ee4a(0x4a8)]=ls([ae(0x0,a[_0x58ee4a(0x2ee)](U[_0x58ee4a(0x408)])),ae(0x1,a[_0x58ee4a(0x2ee)](U[_0x58ee4a(0x27e)])),ae(0x2,a['IConfigService']),ae(0x3,a['ILogService']),ae(0x4,_[_0x58ee4a(0x33b)])],exports[_0x58ee4a(0x4a8)]);const _s=_0x58ee4a(0x29a);function us(_0x424d1c){const _0x29dd00=_0x58ee4a;return JSON[_0x29dd00(0x120)](_0x424d1c)['length'];}class Ke{constructor(){const _0x2518e3=_0x58ee4a;u(this,_0x2518e3(0x207),new v['Subject']()),u(this,_0x2518e3(0x2a9),this[_0x2518e3(0x207)][_0x2518e3(0x396)]());}[_0x58ee4a(0x341)](_0x156c0b){const _0x130177=_0x58ee4a;this[_0x130177(0x207)][_0x130177(0x28b)](_0x156c0b);}}var ds=Object[_0x58ee4a(0x185)],Ss=Object[_0x58ee4a(0x3f5)],vs=(_0x36051a,_0x4581e4,_0x30a733,_0x2e2c5d)=>{const _0x3863bc=_0x58ee4a;for(var _0x51ef82=_0x2e2c5d>0x1?void 0x0:_0x2e2c5d?Ss(_0x4581e4,_0x30a733):_0x4581e4,_0x56aea5=_0x36051a[_0x3863bc(0x4bb)]-0x1,_0x51268a;_0x56aea5>=0x0;_0x56aea5--)(_0x51268a=_0x36051a[_0x56aea5])&&(_0x51ef82=(_0x2e2c5d?_0x51268a(_0x4581e4,_0x30a733,_0x51ef82):_0x51268a(_0x51ef82))||_0x51ef82);return _0x2e2c5d&&_0x51ef82&&ds(_0x4581e4,_0x30a733,_0x51ef82),_0x51ef82;},et=(_0x2a147a,_0x21ca42)=>(_0x2ecbfa,_0x564569)=>_0x21ca42(_0x2ecbfa,_0x564569,_0x2a147a);exports[_0x58ee4a(0x234)]=class extends a['Disposable']{constructor(_0x3eb8dc,_0x28f9ee){const _0x56da18=_0x58ee4a;super(),u(this,'_roomMembers',new Map()),(this[_0x56da18(0x135)]=_0x3eb8dc,this[_0x56da18(0xea)]=_0x28f9ee,this[_0x56da18(0x281)](a[_0x56da18(0x4fa)](v[_0x56da18(0x14d)](this[_0x56da18(0x135)][_0x56da18(0x484)](a[_0x56da18(0x1fa)][_0x56da18(0x44a)])[_0x56da18(0xd9)](E[_0x56da18(0x34c)](_0x3b82f2=>_0x3b82f2['getUnitId']())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x56da18(0x1fa)][_0x56da18(0x437)])[_0x56da18(0xd9)](E[_0x56da18(0x34c)](_0x455c33=>_0x455c33[_0x56da18(0x33f)]())),this[_0x56da18(0x135)]['getTypeOfUnitDisposed$'](a['UniverInstanceType'][_0x56da18(0x390)])['pipe'](E['map'](_0x4806f9=>_0x4806f9[_0x56da18(0x33f)]())))[_0x56da18(0x3fa)](_0xa35a95=>this[_0x56da18(0x3a6)](_0xa35a95)))));}[_0x58ee4a(0xf7)](_0x1e4d87){const _0x297fe7=_0x58ee4a;this[_0x297fe7(0xea)][_0x297fe7(0xf7)](_0x1e4d87);}[_0x58ee4a(0x476)](){const _0x3e6391=_0x58ee4a;return this[_0x3e6391(0xea)][_0x3e6391(0x476)]();}[_0x58ee4a(0x3cd)](_0x2acc79,_0x5e45e0){const _0x1e8a89=_0x58ee4a;let _0x25cccb=this[_0x1e8a89(0x42c)][_0x1e8a89(0x129)](_0x2acc79);_0x25cccb||(_0x25cccb=new ms(),this[_0x1e8a89(0x42c)]['set'](_0x2acc79,_0x25cccb)),_0x25cccb[_0x1e8a89(0x3cd)](_0x5e45e0);}[_0x58ee4a(0x35d)](_0x5e0878,_0x4c6ea6){const _0x19d908=_0x58ee4a,_0x3f12db=this[_0x19d908(0x42c)][_0x19d908(0x129)](_0x5e0878);_0x3f12db&&_0x3f12db[_0x19d908(0x35d)](_0x4c6ea6);}['getRoom'](_0x231a81){const _0x398f3d=_0x58ee4a;return this['_roomMembers'][_0x398f3d(0x129)](_0x231a81);}['getMember'](_0x28010f,_0x42ebcb){const _0x49910f=_0x58ee4a,_0x2d6378=this[_0x49910f(0x42c)][_0x49910f(0x129)](_0x28010f);if(_0x2d6378)return _0x2d6378['getMember'](_0x42ebcb);}[_0x58ee4a(0x3a6)](_0x2f9bb3){const _0x33b201=_0x58ee4a,_0x2cab34=this['_roomMembers'][_0x33b201(0x129)](_0x2f9bb3);_0x2cab34&&(_0x2cab34[_0x33b201(0x123)](),this[_0x33b201(0x42c)][_0x33b201(0x1d5)](_0x2f9bb3));}[_0x58ee4a(0x123)](){const _0x3c3f30=_0x58ee4a;this[_0x3c3f30(0x42c)][_0x3c3f30(0x4c2)](_0x2caa7a=>_0x2caa7a[_0x3c3f30(0x123)]()),this[_0x3c3f30(0x42c)]['clear']();}},exports['MemberService']=vs([et(0x0,a[_0x58ee4a(0x200)]),et(0x1,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x164)]))],exports[_0x58ee4a(0x234)]);class ms extends a[_0x58ee4a(0x2dd)]{constructor(){const _0x362d25=_0x58ee4a;super(...arguments),u(this,_0x362d25(0x306),new Map());}[_0x58ee4a(0x123)](){const _0x2aade9=_0x58ee4a;this['_members'][_0x2aade9(0x3dd)]();}[_0x58ee4a(0x3cd)](_0x2e8571){const _0x1b405d=_0x58ee4a;this[_0x1b405d(0x306)][_0x1b405d(0x1e3)](_0x2e8571[_0x1b405d(0x102)],_0x2e8571);}['removeMember'](_0x14da7){const _0x3cbced=_0x58ee4a;this['_members'][_0x3cbced(0x1d5)](_0x14da7);}[_0x58ee4a(0x1a6)](_0x106b73){const _0x27c892=_0x58ee4a;return this[_0x27c892(0x306)][_0x27c892(0x129)](_0x106b73);}[_0x58ee4a(0xc2)](){const _0x530f3e=_0x58ee4a;return Array[_0x530f3e(0x35b)](this[_0x530f3e(0x306)][_0x530f3e(0x132)]());}}var gs=Object[_0x58ee4a(0x185)],fs=Object[_0x58ee4a(0x3f5)],Is=(_0x3e3ff0,_0xd11ad6,_0x5e6529,_0x481c3e)=>{const _0x266606=_0x58ee4a;for(var _0x2687fa=_0x481c3e>0x1?void 0x0:_0x481c3e?fs(_0xd11ad6,_0x5e6529):_0xd11ad6,_0x187fc1=_0x3e3ff0[_0x266606(0x4bb)]-0x1,_0x15f579;_0x187fc1>=0x0;_0x187fc1--)(_0x15f579=_0x3e3ff0[_0x187fc1])&&(_0x2687fa=(_0x481c3e?_0x15f579(_0xd11ad6,_0x5e6529,_0x2687fa):_0x15f579(_0x2687fa))||_0x2687fa);return _0x481c3e&&_0x2687fa&&gs(_0xd11ad6,_0x5e6529,_0x2687fa),_0x2687fa;},G=(_0xbb9a16,_0x1f0970)=>(_0x23bf95,_0x323daf)=>_0x1f0970(_0x23bf95,_0x323daf,_0xbb9a16),x=(_0x3e2634=>(_0x3e2634[_0x3e2634['IDLE']=0x0]='IDLE',_0x3e2634[_0x3e2634[_0x58ee4a(0x4c6)]=0x1]=_0x58ee4a(0x4c6),_0x3e2634[_0x3e2634[_0x58ee4a(0x4fb)]=0x2]=_0x58ee4a(0x4fb),_0x3e2634[_0x3e2634[_0x58ee4a(0x267)]=0x3]=_0x58ee4a(0x267),_0x3e2634))(x||{});exports[_0x58ee4a(0x2d3)]=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x124fae,_0x5e0a2f,_0x86a377,_0x5f2407,_0x1c32ee,_0x3946b2,_0x44f301,_0x51d719,_0x1158a4,_0x2830d3){const _0x18c9be=_0x58ee4a;super(),u(this,_0x18c9be(0x1d1),new v['BehaviorSubject'](0x0)),u(this,_0x18c9be(0x40d),this[_0x18c9be(0x1d1)][_0x18c9be(0x396)]()),u(this,_0x18c9be(0x1f9),new v[(_0x18c9be(0x3ba))]()),u(this,_0x18c9be(0x1c7),this[_0x18c9be(0x1f9)][_0x18c9be(0x396)]()),u(this,_0x18c9be(0xc5)),u(this,'_socketMessageSubscription'),u(this,'_collaborationTimeoutTimer'),u(this,_0x18c9be(0x332),!0x1),u(this,'_telemetryInfo',null),(this[_0x18c9be(0x49a)]=_0x124fae,this[_0x18c9be(0x2bd)]=_0x86a377,this['_beforeCloseService']=_0x5f2407,this[_0x18c9be(0x171)]=_0x1c32ee,this['_configService']=_0x3946b2,this['_localeService']=_0x44f301,this[_0x18c9be(0x30b)]=_0x51d719,this[_0x18c9be(0x22f)]=_0x1158a4,this[_0x18c9be(0x2cf)]=_0x2830d3,this[_0x18c9be(0x332)]=!!this[_0x18c9be(0x2cf)],_0x5e0a2f['pipe'](v[_0x18c9be(0x435)](this[_0x18c9be(0x1e4)]))[_0x18c9be(0x3fa)](_0xe510f=>{const _0x282e6a=_0x18c9be;var _0x3d2290;typeof _0xe510f>'u'||(this[_0x282e6a(0xc5)]=_0xe510f,_0xe510f?(this[_0x282e6a(0x3ff)](_0xe510f),this['_socketMessageSubscription']=_0xe510f['message$']['subscribe'](_0x24fb0f=>{const _0xbb82ec=_0x282e6a;_0x24fb0f[_0xbb82ec(0x4a2)]===this['_unitID']&&this[_0xbb82ec(0x3ea)](_0x24fb0f);})):(this[_0x282e6a(0x443)](),this[_0x282e6a(0x1d1)]['next'](0x2),(_0x3d2290=this[_0x282e6a(0x1b0)])==null||_0x3d2290[_0x282e6a(0x3af)](),this[_0x282e6a(0x1b0)]=null));}),this[_0x18c9be(0x281)](this[_0x18c9be(0x261)][_0x18c9be(0x4e0)](()=>{const _0x4cddac=_0x18c9be;var _0x3676b9;(_0x3676b9=this[_0x4cddac(0xc5)])==null||_0x3676b9[_0x4cddac(0x3ce)]({'cmd':b[_0x4cddac(0x3a1)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x16c746=_0x58ee4a;return this['_sessionStatus$'][_0x16c746(0x4e3)]();}[_0x58ee4a(0x16f)](){const _0x166784=_0x58ee4a;var _0x2eaf6d,_0x2cf243;return(_0x2cf243=(_0x2eaf6d=this[_0x166784(0xc5)])==null?void 0x0:_0x2eaf6d[_0x166784(0x102)])!=null?_0x2cf243:null;}[_0x58ee4a(0x123)](){const _0x896060=_0x58ee4a;super[_0x896060(0x123)](),this['dispose$'][_0x896060(0x28b)](),this[_0x896060(0x1e4)][_0x896060(0x2ba)]();}[_0x58ee4a(0x1ad)](){const _0x1e0222=_0x58ee4a;var _0xedf3a2,_0x104159;this[_0x1e0222(0x443)](),(_0xedf3a2=this[_0x1e0222(0xc5)])==null||_0xedf3a2[_0x1e0222(0x3ce)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x1e0222(0x49a)]}}),(_0x104159=this[_0x1e0222(0xc5)])==null||_0x104159[_0x1e0222(0x1ad)](),this['_event$'][_0x1e0222(0x2ba)](),this[_0x1e0222(0x1d1)]['complete'](),this['dispose']();}[_0x58ee4a(0x3ea)](_0x41a938){const _0x3b4712=_0x58ee4a;_0x41a938['cmd']===b['JOIN']?this[_0x3b4712(0x154)](_0x41a938):_0x41a938[_0x3b4712(0x273)]===b['RECV']&&this[_0x3b4712(0x491)](_0x41a938);}['_joinRoom'](_0x506563){const _0x4c52ed=_0x58ee4a;this[_0x4c52ed(0x1d1)][_0x4c52ed(0x28b)](0x1),_0x506563[_0x4c52ed(0x3ce)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x4c52ed(0x49a)]}]}});}[_0x58ee4a(0x154)](_0x47fbbf){const _0x5c32af=_0x58ee4a;var _0x3fcb74;if(_0x47fbbf[_0x5c32af(0x37c)]===Ge[_0x5c32af(0x3da)]){this[_0x5c32af(0x171)]['show']({'type':J[_0x5c32af(0x228)][_0x5c32af(0x3ab)],'content':this[_0x5c32af(0x32e)]['t'](_0x5c32af(0x368))}),this['_sessionStatus$'][_0x5c32af(0x28b)](0x2);return;}this[_0x5c32af(0x1d1)]['next'](0x3);const _0xb45cba=(_0x3fcb74=_0x47fbbf['data'][_0x5c32af(0x43c)][this[_0x5c32af(0x49a)]])==null?void 0x0:_0x3fcb74[_0x5c32af(0x363)];_0xb45cba&&_0xb45cba[_0x5c32af(0x4c2)](_0xde7b6e=>this['_memberService'][_0x5c32af(0x3cd)](this[_0x5c32af(0x49a)],_0xde7b6e));}[_0x58ee4a(0x491)](_0x367f6f){const _0x4d7462=_0x58ee4a;try{const _0x5ae258=_0x367f6f[_0x4d7462(0x40f)];switch(_0x5ae258[_0x4d7462(0x342)]){case _[_0x4d7462(0x2af)][_0x4d7462(0x322)]:this['_onUserJoin'](_0x5ae258),this[_0x4d7462(0x1f9)][_0x4d7462(0x28b)](_0x5ae258);break;case _[_0x4d7462(0x2af)]['USERS_LEAVE']:this[_0x4d7462(0x400)](_0x5ae258),this[_0x4d7462(0x1f9)]['next'](_0x5ae258);break;case _[_0x4d7462(0x2af)][_0x4d7462(0x1c8)]:case _[_0x4d7462(0x2af)][_0x4d7462(0x34f)]:this['_stopTelemetryCollaborationNewChangeset'](),this['_clearCollaborationTimeoutTimer'](),this[_0x4d7462(0x1f9)][_0x4d7462(0x28b)](_0x5ae258);break;case _[_0x4d7462(0x2af)][_0x4d7462(0x109)]:this[_0x4d7462(0x2bd)][_0x4d7462(0x427)](_0x4d7462(0x144)+JSON[_0x4d7462(0x120)](_0x5ae258)),this['_event$'][_0x4d7462(0x28b)](_0x5ae258);break;case _['CollaborationEvent'][_0x4d7462(0x3ed)]:this[_0x4d7462(0x22f)][_0x4d7462(0x341)](_0x5ae258[_0x4d7462(0x40f)]),this[_0x4d7462(0x1f9)][_0x4d7462(0x28b)](_0x5ae258);break;default:this[_0x4d7462(0x1f9)][_0x4d7462(0x28b)](_0x5ae258);}}catch(_0x43d34e){this[_0x4d7462(0x2bd)][_0x4d7462(0x427)](_0x43d34e,_0x367f6f);}}[_0x58ee4a(0x10f)](_0x7cba3b){const _0x3e48a2=_0x58ee4a;this['_memberService'][_0x3e48a2(0x3cd)](this['_unitID'],_0x7cba3b[_0x3e48a2(0x40f)]);}[_0x58ee4a(0x400)](_0x26188c){const _0x5beee2=_0x58ee4a;this['_memberService'][_0x5beee2(0x35d)](this[_0x5beee2(0x49a)],_0x26188c['data'][_0x5beee2(0x102)]);}async[_0x58ee4a(0x3ce)](_0x5033fb,_0xd27f7e){const _0x4b9ac2=_0x58ee4a;if(this[_0x4b9ac2(0x3f2)]!==0x3||!this['_socket'])throw new Error(_0x4b9ac2(0x271));try{_0x5033fb[_0x4b9ac2(0x342)]===_[_0x4b9ac2(0x2af)][_0x4b9ac2(0x224)]&&(this['_scheduleCollaborationTimeoutTimer'](),this[_0x4b9ac2(0x465)](_0x5033fb)),this['_socket'][_0x4b9ac2(0x3ce)]({'cmd':b[_0x4b9ac2(0x479)],'routeKey':_0xd27f7e,'routeType':'','data':_0x5033fb});}catch(_0x4107af){this[_0x4b9ac2(0x2bd)][_0x4b9ac2(0x427)](_0x4107af);}}[_0x58ee4a(0x1b7)](){const _0x3b73d5=_0x58ee4a;var _0x2c53bd;this[_0x3b73d5(0x221)]=window['setTimeout'](()=>{const _0x358233=_0x3b73d5;this[_0x358233(0x221)]=null,this[_0x358233(0x171)]['show']({'type':J['MessageType'][_0x358233(0x41d)],'content':this['_localeService']['t'](_0x358233(0x2da))});},(_0x2c53bd=this[_0x3b73d5(0x324)][_0x3b73d5(0xc6)](Fe))!=null?_0x2c53bd:gt);}['_clearCollaborationTimeoutTimer'](){const _0x25ec7a=_0x58ee4a;this[_0x25ec7a(0x221)]&&(clearTimeout(this[_0x25ec7a(0x221)]),this[_0x25ec7a(0x221)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x206ee8){const _0x3635e9=_0x58ee4a;if(!this['_shouldReportTelemetry'])return;const {data:_0x19f2e6}=_0x206ee8,{unitID:_0x15a2f1,changeset:_0x4b09f2}=_0x19f2e6,{mutations:_0x3cfba3,type:_0x5635b9}=_0x4b09f2;this[_0x3635e9(0x33c)]={'unitId':_0x15a2f1,'type':_0x5635b9,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':us(_0x3cfba3)};}[_0x58ee4a(0x128)](){const _0x45369f=_0x58ee4a;if(this[_0x45369f(0x332)]){if(!this[_0x45369f(0x33c)]){this[_0x45369f(0x2bd)]['error'](_0x45369f(0x303),_0x45369f(0x212));return;}this['_telemetryInfo'][_0x45369f(0x12a)]=performance[_0x45369f(0x16a)](),this[_0x45369f(0x33c)][_0x45369f(0x2aa)]=this[_0x45369f(0x33c)][_0x45369f(0x12a)]-this[_0x45369f(0x33c)]['startTime'],this['_telemetryService'][_0x45369f(0x3f8)](_s,this[_0x45369f(0x33c)]),this[_0x45369f(0x33c)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x34debd=_0x58ee4a;this[_0x34debd(0x33c)]=null;}},exports[_0x58ee4a(0x2d3)]=Is([G(0x2,a[_0x58ee4a(0x220)]),G(0x3,A[_0x58ee4a(0x455)]),G(0x4,A['IMessageService']),G(0x5,a[_0x58ee4a(0x3ac)]),G(0x6,a['Inject'](a[_0x58ee4a(0x32b)])),G(0x7,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x234)])),G(0x8,a['Inject'](Ke)),G(0x9,a[_0x58ee4a(0x293)](Kt[_0x58ee4a(0x460)]))],exports[_0x58ee4a(0x2d3)]);var ps=Object[_0x58ee4a(0x185)],Cs=Object[_0x58ee4a(0x3f5)],Es=(_0x996156,_0x4b8e15,_0x5f414e,_0x57249c)=>{const _0x3ffc00=_0x58ee4a;for(var _0x458f81=_0x57249c>0x1?void 0x0:_0x57249c?Cs(_0x4b8e15,_0x5f414e):_0x4b8e15,_0x2f57aa=_0x996156[_0x3ffc00(0x4bb)]-0x1,_0x5b00a6;_0x2f57aa>=0x0;_0x2f57aa--)(_0x5b00a6=_0x996156[_0x2f57aa])&&(_0x458f81=(_0x57249c?_0x5b00a6(_0x4b8e15,_0x5f414e,_0x458f81):_0x5b00a6(_0x458f81))||_0x458f81);return _0x57249c&&_0x458f81&&ps(_0x4b8e15,_0x5f414e,_0x458f81),_0x458f81;},ee=(_0x171391,_0x22fee3)=>(_0x3849b8,_0x3bc12a)=>_0x22fee3(_0x3849b8,_0x3bc12a,_0x171391);exports[_0x58ee4a(0xf9)]=class extends a[_0x58ee4a(0x2dd)]{constructor(_0x2272a2,_0x54af48,_0x4b378d,_0x24dab5,_0x2bfd5d,_0x265a15){const _0x5825df=_0x58ee4a;super(),u(this,'_socket$',new v[(_0x5825df(0x297))](void 0x0)),u(this,_0x5825df(0x310),this[_0x5825df(0x2ca)]['asObservable']()),u(this,_0x5825df(0x1b1),null),u(this,'_sessions',new Map()),u(this,_0x5825df(0x447),new v[(_0x5825df(0x297))](x[_0x5825df(0x4ea)])),u(this,'status$',this[_0x5825df(0x447)][_0x5825df(0x396)]()),u(this,_0x5825df(0x26d),!0x1),u(this,_0x5825df(0x203)),u(this,_0x5825df(0x34d),0x0),u(this,_0x5825df(0x37e)),u(this,'_timeoutTimer'),(this['_injector']=_0x2272a2,this['_localeService']=_0x54af48,this[_0x5825df(0x171)]=_0x4b378d,this[_0x5825df(0x2bd)]=_0x24dab5,this['_configService']=_0x2bfd5d,this['_socketService']=_0x265a15,this[_0x5825df(0x275)]());}get['_socket'](){const _0x345fd6=_0x58ee4a;return this[_0x345fd6(0x2ca)][_0x345fd6(0x4e3)]();}[_0x58ee4a(0x275)](){const _0x4d756d=_0x58ee4a;this[_0x4d756d(0x404)](),this[_0x4d756d(0x462)]();}['dispose'](){const _0x5af4fb=_0x58ee4a;super[_0x5af4fb(0x123)](),this[_0x5af4fb(0x33a)]['forEach'](_0x469902=>_0x469902[_0x5af4fb(0x123)]()),this[_0x5af4fb(0x33a)][_0x5af4fb(0x3dd)](),this[_0x5af4fb(0x447)][_0x5af4fb(0x2ba)]();}async[_0x58ee4a(0xf3)](_0x2a28d3){const _0x1d3d08=_0x58ee4a;if(this[_0x1d3d08(0x33a)][_0x1d3d08(0x11d)](_0x2a28d3))return this['_sessions'][_0x1d3d08(0x129)](_0x2a28d3);this[_0x1d3d08(0x458)]();const _0x3714bb=this[_0x1d3d08(0x43a)][_0x1d3d08(0x370)](exports['CollaborationSession'],_0x2a28d3,this[_0x1d3d08(0x2ca)][_0x1d3d08(0x396)]());return this['_sessions'][_0x1d3d08(0x1e3)](_0x2a28d3,_0x3714bb),_0x3714bb;}[_0x58ee4a(0x18f)](_0x2d82a8){const _0x429a73=_0x58ee4a;var _0x200b1f;const _0x4f6669=this['_sessions']['get'](_0x2d82a8);_0x4f6669&&(this[_0x429a73(0x33a)][_0x429a73(0x1d5)](_0x2d82a8),_0x4f6669['close']()),this['_sessions'][_0x429a73(0x486)]||(_0x200b1f=this[_0x429a73(0xc5)])==null||_0x200b1f[_0x429a73(0x1ad)]();}[_0x58ee4a(0x14c)](){const _0xb9a710=_0x58ee4a;this[_0xb9a710(0x34d)]=0x0,this[_0xb9a710(0x203)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0xb9a710(0x203)]=null),this['_tryReconnect']();}[_0x58ee4a(0x43b)](){const _0x1d9e88=_0x58ee4a;var _0x3ca33f,_0x58bfb1;const _0x10093b=this['_configService'][_0x1d9e88(0xc6)](vt),_0x53a1e3=this[_0x1d9e88(0x324)][_0x1d9e88(0xc6)]($),_0x379578=(_0x58bfb1=(_0x3ca33f=_0x53a1e3==null?void 0x0:_0x53a1e3['collabWebSocketUrl'])!=null?_0x3ca33f:_0x10093b)!=null?_0x58bfb1:Qt,_0x527f07=this[_0x1d9e88(0x29c)][_0x1d9e88(0x2f3)](_0x379578);return this[_0x1d9e88(0x1b1)]=_0x527f07,_0x527f07;}[_0x58ee4a(0x458)](){const _0x12ba6c=_0x58ee4a;var _0x21e6f6,_0x22886e;try{const _0x5861e8=(_0x22886e=(_0x21e6f6=this[_0x12ba6c(0xc5)])!=null?_0x21e6f6:this[_0x12ba6c(0x1b1)])!=null?_0x22886e:this[_0x12ba6c(0x43b)]();if(_0x5861e8){const _0x33297d=_0x5861e8[_0x12ba6c(0x3ce)];_0x5861e8[_0x12ba6c(0x3ce)]=_0x4631a2=>(this[_0x12ba6c(0x1a4)](),_0x33297d[_0x12ba6c(0x338)](_0x5861e8,[_0x4631a2])),_0x5861e8[_0x12ba6c(0x3c8)]['subscribe'](_0x2d46dc=>this['_onMessage'](_0x5861e8,_0x2d46dc)),_0x5861e8[_0x12ba6c(0x489)][_0x12ba6c(0xd9)](E[_0x12ba6c(0x36d)](0x1))[_0x12ba6c(0x3fa)](_0x3b98e2=>this[_0x12ba6c(0x2bd)][_0x12ba6c(0x427)](_0x12ba6c(0x42e),_0x3b98e2)),_0x5861e8['open$'][_0x12ba6c(0xd9)](E['take'](0x1))[_0x12ba6c(0x3fa)](()=>{this['_onConnectionOpen'](_0x5861e8);}),_0x5861e8[_0x12ba6c(0x3b2)]['pipe'](E[_0x12ba6c(0x36d)](0x1))[_0x12ba6c(0x3fa)](_0x19050c=>{const _0x1b21e9=_0x12ba6c;this[_0x1b21e9(0x2bd)][_0x1b21e9(0x254)](_0x1b21e9(0x3e6),_0x1b21e9(0x3d1),_0x19050c),this[_0x1b21e9(0x2c7)]();});}}catch(_0x453e29){this[_0x12ba6c(0x2bd)][_0x12ba6c(0x427)](_0x453e29),this[_0x12ba6c(0x2c7)]();}}[_0x58ee4a(0x2f6)](_0x44081f){const _0x3261f2=_0x58ee4a;this[_0x3261f2(0x2bd)][_0x3261f2(0x254)](_0x3261f2(0x3e6),_0x3261f2(0x106)),_0x44081f[_0x3261f2(0x3ce)]({'cmd':b[_0x3261f2(0x1bd)]}),this['_rescheduleHeartbeat']();}[_0x58ee4a(0x404)](){const _0x362806=_0x58ee4a;window[_0x362806(0x1b9)](_0x362806(0x1b2),()=>this[_0x362806(0x307)]());}[_0x58ee4a(0x307)](){const _0x548279=_0x58ee4a;this[_0x548279(0x26d)]=!0x1,this[_0x548279(0x1b1)]=null,this[_0x548279(0x447)][_0x548279(0x28b)](x[_0x548279(0x4fb)]),this['_socket$'][_0x548279(0x28b)](null),this[_0x548279(0x2be)](),this[_0x548279(0x1bf)]();}['_onConnectionFailed'](){const _0x31c040=_0x58ee4a;var _0x581989;this['_onOffline'](),this['_retryCount']<((_0x581989=this[_0x31c040(0x324)]['getConfig'](ft))!=null?_0x581989:ss)?(this['_messageService'][_0x31c040(0x208)]({'key':_0x31c040(0x168),'type':J[_0x31c040(0x228)]['Warning'],'content':this['_localeService']['t'](_0x31c040(0x412))}),this[_0x31c040(0x40b)]()):this['_messageService'][_0x31c040(0x208)]({'key':'collaboration-session-retry','type':J[_0x31c040(0x228)][_0x31c040(0x41d)],'content':this['_localeService']['t'](_0x31c040(0x4b7))});}[_0x58ee4a(0x462)](){const _0xe518f5=_0x58ee4a,_0x1490fd=()=>{const _0xcbb602=_0x5d3e;this[_0xcbb602(0xc5)]||this[_0xcbb602(0x14c)]();},_0x22e42c=()=>{const _0x50f1f4=_0x5d3e;this[_0x50f1f4(0xc5)]||document[_0x50f1f4(0x3f6)]===_0x50f1f4(0x118)||this[_0x50f1f4(0x14c)]();};window[_0xe518f5(0x1b9)](_0xe518f5(0x3c7),_0x1490fd),document[_0xe518f5(0x1b9)](_0xe518f5(0x116),_0x22e42c);}[_0x58ee4a(0x40b)](){const _0x638f99=_0x58ee4a;var _0x1d00e3;const _0x331c48=this[_0x638f99(0x34d)],_0x450524=this[_0x638f99(0x324)][_0x638f99(0xc6)]($),_0x5e5ae7=_0x331c48===0x0?0x0:((_0x1d00e3=_0x450524==null?void 0x0:_0x450524[_0x638f99(0x23b)])!=null?_0x1d00e3:ts)*0x2**_0x331c48;this[_0x638f99(0x203)]=window['setTimeout'](()=>{const _0x7ac1f3=_0x638f99;clearTimeout(this[_0x7ac1f3(0x203)]),this[_0x7ac1f3(0x203)]=null,this[_0x7ac1f3(0x458)]();},_0x5e5ae7),this['_retryCount']+=0x1;}['_onMessage'](_0x4acb63,_0x1c6bad){const _0x266b51=_0x58ee4a,{cmd:_0x12a08c}=_0x1c6bad;_0x12a08c===b[_0x266b51(0x1bd)]&&!this['_socketReady']&&(_0x4acb63['memberID']=_0x1c6bad[_0x266b51(0x40f)]['memberID'],this['_socket$']['next'](_0x4acb63),this[_0x266b51(0x447)]['next'](x[_0x266b51(0x267)]),this[_0x266b51(0x26d)]=!0x0,this['_candidateSocket']=null),_0x12a08c===b[_0x266b51(0x4d8)]&&this[_0x266b51(0x2be)](),this[_0x266b51(0x1a4)]();}[_0x58ee4a(0x1a4)](){const _0x167afb=_0x58ee4a;var _0x2be372;this[_0x167afb(0x1bf)](),this[_0x167afb(0x37e)]=window[_0x167afb(0x263)](()=>this[_0x167afb(0x206)](),(_0x2be372=this[_0x167afb(0x324)]['getConfig'](mt))!=null?_0x2be372:es);}[_0x58ee4a(0x206)](){const _0x5d5fa0=_0x58ee4a;this[_0x5d5fa0(0xc5)][_0x5d5fa0(0x3ce)]({'cmd':b[_0x5d5fa0(0x4d8)]}),this['_waitForHeartbeatResponse']();}[_0x58ee4a(0x3e0)](){const _0x137a99=_0x58ee4a;var _0x29b21a;this['_timeoutTimer']=window[_0x137a99(0x263)](()=>this['_onConnectionFailed'](),(_0x29b21a=this[_0x137a99(0x324)][_0x137a99(0xc6)](Fe))!=null?_0x29b21a:gt);}['_clearHeartbeatTimer'](){const _0x13e391=_0x58ee4a;this[_0x13e391(0x37e)]!=null&&(clearTimeout(this[_0x13e391(0x37e)]),this[_0x13e391(0x37e)]=null);}['_clearTimeoutTimer'](){const _0x2bb432=_0x58ee4a;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x2bb432(0x17b)]),this['_timeoutTimer']=null);}},exports[_0x58ee4a(0xf9)]=Es([ee(0x0,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),ee(0x1,a['Inject'](a[_0x58ee4a(0x32b)])),ee(0x2,A[_0x58ee4a(0x499)]),ee(0x3,a['ILogService']),ee(0x4,a[_0x58ee4a(0x3ac)]),ee(0x5,Ye)],exports['CollaborationSessionService']);var R=[];for(var ye=0x0;ye<0x100;++ye)R[_0x58ee4a(0x10b)]((ye+0x100)['toString'](0x10)[_0x58ee4a(0x15a)](0x1));function bs(_0xec7fd0,_0x52eaa4=0x0){const _0x5ea0d0=_0x58ee4a;return(R[_0xec7fd0[_0x52eaa4+0x0]]+R[_0xec7fd0[_0x52eaa4+0x1]]+R[_0xec7fd0[_0x52eaa4+0x2]]+R[_0xec7fd0[_0x52eaa4+0x3]]+'-'+R[_0xec7fd0[_0x52eaa4+0x4]]+R[_0xec7fd0[_0x52eaa4+0x5]]+'-'+R[_0xec7fd0[_0x52eaa4+0x6]]+R[_0xec7fd0[_0x52eaa4+0x7]]+'-'+R[_0xec7fd0[_0x52eaa4+0x8]]+R[_0xec7fd0[_0x52eaa4+0x9]]+'-'+R[_0xec7fd0[_0x52eaa4+0xa]]+R[_0xec7fd0[_0x52eaa4+0xb]]+R[_0xec7fd0[_0x52eaa4+0xc]]+R[_0xec7fd0[_0x52eaa4+0xd]]+R[_0xec7fd0[_0x52eaa4+0xe]]+R[_0xec7fd0[_0x52eaa4+0xf]])[_0x5ea0d0(0x487)]();}var Se,Ts=new Uint8Array(0x10);function Rs(){const _0x5cd563=_0x58ee4a;if(!Se&&(Se=typeof crypto<'u'&&crypto[_0x5cd563(0x4a4)]&&crypto[_0x5cd563(0x4a4)][_0x5cd563(0x317)](crypto),!Se))throw new Error(_0x5cd563(0x475));return Se(Ts);}var Os=typeof crypto<'u'&&crypto[_0x58ee4a(0x318)]&&crypto[_0x58ee4a(0x318)][_0x58ee4a(0x317)](crypto);const tt={'randomUUID':Os};function Ds(_0x59d46e,_0x448818,_0x5b2131){const _0x41e226=_0x58ee4a;if(tt[_0x41e226(0x318)]&&!_0x448818&&!_0x59d46e)return tt['randomUUID']();_0x59d46e=_0x59d46e||{};var _0x40735f=_0x59d46e['random']||(_0x59d46e[_0x41e226(0x2cb)]||Rs)();return _0x40735f[0x6]=_0x40735f[0x6]&0xf|0x40,_0x40735f[0x8]=_0x40735f[0x8]&0x3f|0x80,bs(_0x40735f);}var ys=Object[_0x58ee4a(0x185)],Us=Object['getOwnPropertyDescriptor'],Ps=(_0x3aead2,_0x1a9177,_0x464b09,_0x2f7e55)=>{const _0x14cea6=_0x58ee4a;for(var _0x4e4b52=_0x2f7e55>0x1?void 0x0:_0x2f7e55?Us(_0x1a9177,_0x464b09):_0x1a9177,_0x43dd8a=_0x3aead2[_0x14cea6(0x4bb)]-0x1,_0x557a92;_0x43dd8a>=0x0;_0x43dd8a--)(_0x557a92=_0x3aead2[_0x43dd8a])&&(_0x4e4b52=(_0x2f7e55?_0x557a92(_0x1a9177,_0x464b09,_0x4e4b52):_0x557a92(_0x4e4b52))||_0x4e4b52);return _0x2f7e55&&_0x4e4b52&&ys(_0x1a9177,_0x464b09,_0x4e4b52),_0x4e4b52;},Ue=(_0x197137,_0x301318)=>(_0x516b9e,_0x1b2f13)=>_0x301318(_0x516b9e,_0x1b2f13,_0x197137);let fe=class{constructor(_0xf389fa,_0x646371,_0x5b768a){const _0x1af258=_0x58ee4a;this[_0x1af258(0x43a)]=_0xf389fa,this[_0x1af258(0x39a)]=_0x646371,this['_renderManagerService']=_0x5b768a;}[_0x58ee4a(0x4e6)](_0x4f913a){const _0x1ce489=_0x58ee4a;this[_0x1ce489(0x419)](_0x4f913a),this[_0x1ce489(0x2ea)](_0x4f913a);}[_0x58ee4a(0x22c)](_0x3eb811){const _0x20679a=_0x58ee4a,{unitID:_0x110f52}=_0x3eb811,_0x2c0298=this['_renderManagerService']['getRenderById'](_0x110f52)[_0x20679a(0x2ae)](N['DocIMEInputManagerService']),{redoCache:_0x31ed24}=_0x2c0298[_0x20679a(0x276)]();if(_0x31ed24[_0x20679a(0x4bb)]===0x0)return _0x3eb811;let _0x5dc05c=a[_0x20679a(0x423)][_0x20679a(0x4f8)](_0x3eb811['mutations'][0x0]);for(let _0x5ecf42=0x0;_0x5ecf42<_0x31ed24[_0x20679a(0x4bb)];_0x5ecf42++){const _0x4390a6={'id':_0x20679a(0x3b7),'params':{..._0x31ed24[_0x5ecf42]}},_0x1851f8=this['_transformService'][_0x20679a(0x1fc)](_0x5dc05c,_0x4390a6,!0x1);if(_[_0x20679a(0x2b5)](_0x1851f8))throw _0x1851f8['error'];_0x5dc05c=_0x1851f8[_0x20679a(0x137)];}return{...a['Tools'][_0x20679a(0x4f8)](_0x3eb811),'mutations':[_0x5dc05c]};}[_0x58ee4a(0x419)](_0x3153a2){const _0x865f9c=_0x58ee4a,{unitID:_0x5a7cd9}=_0x3153a2,_0x520063=this[_0x865f9c(0x2b6)][_0x865f9c(0x353)](_0x5a7cd9)[_0x865f9c(0x2ae)](N[_0x865f9c(0x4e1)]),{undoCache:_0x2d4b2f,redoCache:_0x2e8883}=_0x520063['getUndoRedoMutationParamsCache']();if(_0x2d4b2f[_0x865f9c(0x4bb)]===0x0||_0x2e8883[_0x865f9c(0x4bb)]===0x0)return;const _0x4d45b2=[],_0x4c51ca=[];let _0x106d81=a[_0x865f9c(0x423)]['deepClone'](_0x3153a2[_0x865f9c(0x3f1)][0x0]),_0x4d11af=a[_0x865f9c(0x423)]['deepClone'](_0x3153a2[_0x865f9c(0x3f1)][0x0]);for(let _0x4f472d=_0x2d4b2f[_0x865f9c(0x4bb)]-0x1;_0x4f472d>=0x0;_0x4f472d--){const _0x313603={'id':'doc.mutation.rich-text-editing','params':{..._0x2d4b2f[_0x4f472d]}},_0x310611={'id':_0x865f9c(0x3b7),'params':{..._0x2e8883[_0x4f472d]}},_0x263a58=this[_0x865f9c(0x39a)][_0x865f9c(0x1fc)](_0x106d81,_0x313603,!0x1),_0x22a529=this[_0x865f9c(0x39a)]['transformMutation'](_0x4d11af,_0x310611,!0x1);if(_[_0x865f9c(0x2b5)](_0x263a58))throw _0x263a58[_0x865f9c(0x427)];if(_[_0x865f9c(0x2b5)](_0x22a529))throw _0x22a529[_0x865f9c(0x427)];_0x4d45b2['unshift'](_0x263a58['m2Prime'][_0x865f9c(0x19e)]),_0x4c51ca['unshift'](_0x22a529[_0x865f9c(0x2e8)][_0x865f9c(0x19e)]),_0x106d81=_0x263a58[_0x865f9c(0x137)],_0x4d11af=_0x22a529[_0x865f9c(0x137)];}_0x520063[_0x865f9c(0x243)]({'undoCache':_0x4d45b2,'redoCache':_0x4c51ca});}[_0x58ee4a(0x2ea)](_0x268685){const _0x3bb6d6=_0x58ee4a,{unitID:_0x51a071}=_0x268685,_0x3ded7b=this[_0x3bb6d6(0x2b6)][_0x3bb6d6(0x353)](_0x51a071)[_0x3bb6d6(0x2ae)](N['DocIMEInputManagerService']),_0x124f0a=_0x3ded7b[_0x3bb6d6(0xda)]();if(_0x124f0a==null)return;const _0x55d8=[{'id':_0x3bb6d6(0x3b7),'params':{'unitId':_0x268685['unitID'],'actions':null,'textRanges':[_0x124f0a]}}],_0x34f023=this[_0x3bb6d6(0x39a)][_0x3bb6d6(0x15d)](_0x268685,_0x55d8);if(!_[_0x3bb6d6(0x226)](_0x34f023))throw _0x34f023[_0x3bb6d6(0x427)];const _0x129bd7=_0x34f023[_0x3bb6d6(0x2e8)][0x0]['params'][_0x3bb6d6(0x21c)];Array[_0x3bb6d6(0x1f7)](_0x129bd7)&&_0x129bd7['length']&&_0x3ded7b[_0x3bb6d6(0x439)](_0x129bd7[0x0]);}};fe=Ps([Ue(0x0,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),Ue(0x1,_[_0x58ee4a(0x3ee)]),Ue(0x2,O[_0x58ee4a(0x40a)])],fe);var ws=Object['defineProperty'],Ns=Object[_0x58ee4a(0x3f5)],Ms=(_0x5b9ca7,_0x8a1813,_0x4360ff,_0x3298e9)=>{const _0x41649f=_0x58ee4a;for(var _0x3f55e9=_0x3298e9>0x1?void 0x0:_0x3298e9?Ns(_0x8a1813,_0x4360ff):_0x8a1813,_0x513789=_0x5b9ca7[_0x41649f(0x4bb)]-0x1,_0x118785;_0x513789>=0x0;_0x513789--)(_0x118785=_0x5b9ca7[_0x513789])&&(_0x3f55e9=(_0x3298e9?_0x118785(_0x8a1813,_0x4360ff,_0x3f55e9):_0x118785(_0x3f55e9))||_0x3f55e9);return _0x3298e9&&_0x3f55e9&&ws(_0x8a1813,_0x4360ff,_0x3f55e9),_0x3f55e9;},ce=(_0xc9097c,_0x5ec5a4)=>(_0xd09a7e,_0x3e2641)=>_0x5ec5a4(_0xd09a7e,_0x3e2641,_0xc9097c);exports[_0x58ee4a(0x498)]=class extends a[_0x58ee4a(0x2dd)]{constructor(_0x3774d2,_0x3e2334,_0x3be0d4,_0x287627,_0x5f286b){const _0x528cb1=_0x58ee4a;super(),u(this,_0x528cb1(0x3ae),new Map()),u(this,_0x528cb1(0x44e),new Map()),u(this,_0x528cb1(0xd2),!0x1),(this[_0x528cb1(0x324)]=_0x3774d2,this[_0x528cb1(0x192)]=_0x3e2334,this[_0x528cb1(0x261)]=_0x3be0d4,this[_0x528cb1(0x32e)]=_0x287627,this[_0x528cb1(0x1bb)]=_0x5f286b,this['_setupBeforeClosingHandler']());}[_0x58ee4a(0x4ca)](){this['_disabled']=!0x0;}['enableLocalCache'](){const _0x235089=_0x58ee4a;this[_0x235089(0xd2)]=!0x1;}['dispose'](){const _0x5d32fb=_0x58ee4a;this[_0x5d32fb(0x259)]()[_0x5d32fb(0x13a)](()=>super[_0x5d32fb(0x123)]());}async[_0x58ee4a(0x4d5)](_0x9ca96b){const _0xc74e89=_0x58ee4a;return this['_disabled']?null:this[_0xc74e89(0x192)][_0xc74e89(0x4e8)](st(_0x9ca96b));}async[_0x58ee4a(0x2a8)](_0x287a4e,_0x10319a){const _0x4ab6d5=_0x58ee4a;return!!this[_0x4ab6d5(0x192)][_0x4ab6d5(0x3db)](_0x287a4e,_0x10319a);}[_0x58ee4a(0x414)](_0x37576d,_0x147c16,_0x2970ff,_0x36e664){const _0x400a69=_0x58ee4a,_0x41e726=this[_0x400a69(0x1bb)][_0x400a69(0x4da)](_0x37576d);this[_0x400a69(0x3ae)][_0x400a69(0x1e3)](_0x37576d,{'unitID':_0x37576d,'type':_0x147c16,'awaitingChangeset':_0x2970ff,'mutations':_0x36e664,'rev':_0x41e726}),this[_0x400a69(0x44e)]['has'](_0x37576d)||this[_0x400a69(0x395)](_0x37576d);}[_0x58ee4a(0x395)](_0xae8e97){const _0x322ee9=_0x58ee4a,_0x36335e=this['_getSaveTimeout']();_0x36335e===0x0?this[_0x322ee9(0x2df)](_0xae8e97):this[_0x322ee9(0x44e)]['set'](_0xae8e97,setTimeout(()=>this[_0x322ee9(0x2df)](_0xae8e97),_0x36335e));}[_0x58ee4a(0x2d2)](){const _0x529593=_0x58ee4a;var _0x4c547b;return(_0x4c547b=this[_0x529593(0x324)]['getConfig'](It))!=null?_0x4c547b:is;}[_0x58ee4a(0x2df)](_0x182b3c){const _0x4fa20f=_0x58ee4a,_0x20ea4e=this[_0x4fa20f(0x44e)][_0x4fa20f(0x129)](_0x182b3c);return _0x20ea4e!==void 0x0&&window['clearTimeout'](_0x20ea4e),this[_0x4fa20f(0x192)][_0x4fa20f(0x3db)](st(_0x182b3c),this[_0x4fa20f(0x3ae)][_0x4fa20f(0x129)](_0x182b3c))['then'](()=>this[_0x4fa20f(0x44e)][_0x4fa20f(0x1d5)](_0x182b3c));}async[_0x58ee4a(0x259)](){const _0xa9e8a7=_0x58ee4a,_0xaf4065=[];this['_saveTaskMap'][_0xa9e8a7(0x4c2)]((_0x2a1624,_0xb821f9)=>{const _0x2c6245=_0xa9e8a7;window[_0x2c6245(0x3b6)](_0x2a1624),_0xaf4065['push'](this[_0x2c6245(0x2df)](_0xb821f9)[_0x2c6245(0x13a)](()=>{this['_saveTaskMap']['delete'](_0xb821f9);}));}),await Promise[_0xa9e8a7(0x122)](_0xaf4065);}['_setupBeforeClosingHandler'](){const _0x298d01=_0x58ee4a;this[_0x298d01(0x281)](this[_0x298d01(0x261)][_0x298d01(0xc8)](()=>{const _0x502012=_0x298d01;if(this[_0x502012(0x44e)][_0x502012(0x486)])return this['_localeService']['t'](_0x502012(0x1cd));}));}},exports[_0x58ee4a(0x498)]=Ms([ce(0x0,a['IConfigService']),ce(0x1,a[_0x58ee4a(0x4ee)]),ce(0x2,A[_0x58ee4a(0x455)]),ce(0x3,a['Inject'](a[_0x58ee4a(0x32b)])),ce(0x4,a['Inject'](_['RevisionService']))],exports['LocalCacheService']);function st(_0x3dff7b){const _0x25b45e=_0x58ee4a;return _0x25b45e(0x2c5)+_0x3dff7b;}var As=Object[_0x58ee4a(0x185)],Ls=Object[_0x58ee4a(0x3f5)],$s=(_0x50e71b,_0x2f7a6b,_0x39925d,_0x34227e)=>{const _0x65b4b0=_0x58ee4a;for(var _0x201a8a=_0x34227e>0x1?void 0x0:_0x34227e?Ls(_0x2f7a6b,_0x39925d):_0x2f7a6b,_0x286ae0=_0x50e71b[_0x65b4b0(0x4bb)]-0x1,_0x5d1f00;_0x286ae0>=0x0;_0x286ae0--)(_0x5d1f00=_0x50e71b[_0x286ae0])&&(_0x201a8a=(_0x34227e?_0x5d1f00(_0x2f7a6b,_0x39925d,_0x201a8a):_0x5d1f00(_0x201a8a))||_0x201a8a);return _0x34227e&&_0x201a8a&&As(_0x2f7a6b,_0x39925d,_0x201a8a),_0x201a8a;},Pe=(_0x49f90b,_0x1e0898)=>(_0x1f3e10,_0x41fb99)=>_0x1e0898(_0x1f3e10,_0x41fb99,_0x49f90b);function js(_0x23a78a){const _0x1cf652=_0x58ee4a,{unitID:_0x492386,mutations:_0x5106c1}=_0x23a78a;return{'unitId':_0x492386,'subUnitId':_0x5106c1[0x0][_0x1cf652(0x19e)]['subUnitId']};}let Ie=class{constructor(_0x3531fd,_0x58da76,_0x47a0b9){const _0xcfc2a3=_0x58ee4a;this[_0xcfc2a3(0x43a)]=_0x3531fd,this['_transformService']=_0x58da76,this[_0xcfc2a3(0x4d2)]=_0x47a0b9;}[_0x58ee4a(0x202)](_0x1f926f){const _0xb2321a=_0x58ee4a;var _0x4e8545,_0x3b4560,_0x4bbc71,_0x56e733;const _0x1b3ee4=this[_0xb2321a(0x43a)][_0xb2321a(0x129)](C[_0xb2321a(0x262)]),{unitId:_0x293ae3,subUnitId:_0x4009e6}=js(_0x1f926f),_0x4c6af2=_0x1b3ee4[_0xb2321a(0x378)](_0x293ae3)[_0xb2321a(0x385)](),_0x3b7a9a=(_0x3b4560=(_0x4e8545=this[_0xb2321a(0x4d2)][_0xb2321a(0x49b)](_0x293ae3))==null?void 0x0:_0x4e8545[_0xb2321a(0xfd)]())==null?void 0x0:_0x3b4560[_0xb2321a(0x393)]();if(_0x4c6af2['length']===0x0||!_0x293ae3||!_0x4009e6)return;const _0x4a3a59=[{'id':C[_0xb2321a(0x28a)]['id'],'params':{'unitId':_0x293ae3,'subUnitId':_0x3b7a9a,'selections':a[_0xb2321a(0x423)][_0xb2321a(0x4f8)](_0x4c6af2)}}],_0x5aae4f=this['_transformService'][_0xb2321a(0x15d)](_0x1f926f,_0x4a3a59);if(!_[_0xb2321a(0x226)](_0x5aae4f))throw _0x5aae4f[_0xb2321a(0x427)];const _0x4ae142=(_0x56e733=(_0x4bbc71=_0x5aae4f[_0xb2321a(0x2e8)][0x0])==null?void 0x0:_0x4bbc71[_0xb2321a(0x19e)])==null?void 0x0:_0x56e733['selections'];if(Array[_0xb2321a(0x1f7)](_0x4ae142)&&_0x4ae142['length']){if(_0x4ae142[_0xb2321a(0x4bb)]===_0x4a3a59[0x0][_0xb2321a(0x19e)][_0xb2321a(0x42a)][_0xb2321a(0x4bb)]&&_0x4ae142['every']((_0x1047f4,_0x424833)=>a['Rectangle'][_0xb2321a(0x20c)](_0x1047f4['range'],_0x4a3a59[0x0]['params']['selections'][_0x424833][_0xb2321a(0xd8)])))return;this[_0xb2321a(0x43a)][_0xb2321a(0x129)](a[_0xb2321a(0x21b)])[_0xb2321a(0x245)](C[_0xb2321a(0x28a)]['id'],{'unitId':_0x293ae3,'subUnitId':_0x3b7a9a,'selections':_0x4ae142});}}};Ie=$s([Pe(0x0,a['Inject'](a[_0x58ee4a(0x31d)])),Pe(0x1,_['ITransformService']),Pe(0x2,a[_0x58ee4a(0x200)])],Ie);const Re=a['createIdentifier']('univer-pro.collaboration-client.single-active-unit-service');var Ot=(_0x40c998=>(_0x40c998[_0x40c998[_0x58ee4a(0x3d4)]=0x0]=_0x58ee4a(0x3d4),_0x40c998[_0x40c998['OTHER_CLIENTS_EDITING']=0x1]=_0x58ee4a(0x367),_0x40c998))(Ot||{});const it=0x7530,nt=_0x58ee4a(0x249);class Hs extends a[_0x58ee4a(0x2dd)]{constructor(){const _0x43aca0=_0x58ee4a;super(),u(this,_0x43aca0(0x145),a[_0x43aca0(0x423)][_0x43aca0(0x11c)]()),u(this,_0x43aca0(0x358),new Set()),u(this,_0x43aca0(0x339),new Map()),u(this,_0x43aca0(0x375),null),u(this,_0x43aca0(0x253),new Map()),u(this,_0x43aca0(0x1c9),new Map()),this[_0x43aca0(0x34a)]();}[_0x58ee4a(0x123)](){const _0x3e6c07=_0x58ee4a;super[_0x3e6c07(0x123)](),this[_0x3e6c07(0x253)][_0x3e6c07(0x4c2)]((_0x329a72,_0x1fc602)=>this[_0x3e6c07(0x3bb)](_0x1fc602)),this['_heartbeatTimer']&&window[_0x3e6c07(0x49c)](this[_0x3e6c07(0x375)]);}[_0x58ee4a(0x304)](_0x37ccb0){const _0x4d052c=_0x58ee4a;return this[_0x4d052c(0x30a)](_0x37ccb0)['pipe'](v[_0x4d052c(0x21d)]());}[_0x58ee4a(0x2fb)](_0x4a2043){const _0x559138=_0x58ee4a;this['_selfUnitIDs'][_0x559138(0x486)]===0x0&&this['_scheduleHeartbeat'](),this[_0x559138(0x358)][_0x559138(0x331)](_0x4a2043),this['_send']({'type':0x0,'memberID':this[_0x559138(0x145)],'unitIDs':[_0x4a2043],'isForwarded':!0x1});}[_0x58ee4a(0x410)](_0x5294c7){const _0x4c2356=_0x58ee4a;this[_0x4c2356(0x358)]['delete'](_0x5294c7),this[_0x4c2356(0x358)][_0x4c2356(0x486)]===0x0&&this[_0x4c2356(0x375)]&&window[_0x4c2356(0x49c)](this[_0x4c2356(0x375)]);}[_0x58ee4a(0x34a)](){const _0x15d7c5=_0x58ee4a;this[_0x15d7c5(0x281)](a[_0x15d7c5(0x4fa)](v[_0x15d7c5(0x405)](window,'storage')[_0x15d7c5(0x3fa)](_0x54faf1=>{const _0x444970=_0x15d7c5;if(_0x54faf1[_0x444970(0x391)]!==nt||!_0x54faf1[_0x444970(0x4b6)])return;const _0x3d3a17=JSON['parse'](_0x54faf1[_0x444970(0x4b6)]);this['_handleEvent'](_0x3d3a17);}))),window[_0x15d7c5(0x1b9)]('unload',()=>this['_send']({'type':0x1,'memberID':this[_0x15d7c5(0x145)],'unitIDs':Array['from'](this[_0x15d7c5(0x358)])}));}[_0x58ee4a(0x46e)](_0x100be1){const _0x2bd02b=_0x58ee4a;switch(_0x100be1[_0x2bd02b(0x1f0)]){case 0x0:this['_handleJoinEvent'](_0x100be1);break;case 0x1:this[_0x2bd02b(0xf1)](_0x100be1);break;case 0x2:this['_handleHeartbeatEvent'](_0x100be1);break;}}[_0x58ee4a(0xde)](_0x577fa9){const _0x2073bc=_0x58ee4a,{unitIDs:_0x4f1c05,memberID:_0x30c354,isForwarded:_0x449c41}=_0x577fa9;_0x4f1c05[_0x2073bc(0x4c2)](_0x1bba05=>{const _0x2bda6d=_0x2073bc;if(!_0x449c41&&this[_0x2bda6d(0x339)][_0x2bda6d(0x11d)](_0x1bba05)&&this[_0x2bda6d(0x30a)](_0x1bba05)[_0x2bda6d(0x28b)](0x1),!this['_unitOnClients'][_0x2bda6d(0x11d)](_0x1bba05)||!this[_0x2bda6d(0x339)]['get'](_0x1bba05)[_0x2bda6d(0x11d)](_0x30c354)){const _0x3a2e05=this[_0x2bda6d(0x339)][_0x2bda6d(0x129)](_0x1bba05)||new Set();_0x3a2e05[_0x2bda6d(0x331)](_0x30c354),this[_0x2bda6d(0x339)][_0x2bda6d(0x1e3)](_0x1bba05,_0x3a2e05),this['_scheduleClearOtherTimer'](_0x30c354);}}),_0x449c41||this[_0x2073bc(0x199)]({'type':0x0,'memberID':this[_0x2073bc(0x145)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c0a0a){const _0x4156d3=_0x58ee4a;this['_removeClearOtherTimer'](_0x5c0a0a);const _0x506040=window[_0x4156d3(0x263)](()=>{const _0x32a146=_0x4156d3;this[_0x32a146(0x339)][_0x32a146(0x4c2)](_0x158c5a=>{const _0x289c0a=_0x32a146;_0x158c5a[_0x289c0a(0x1d5)](_0x5c0a0a);});},it*0x2);this[_0x4156d3(0x253)][_0x4156d3(0x1e3)](_0x5c0a0a,_0x506040);}[_0x58ee4a(0x3bb)](_0x15b543){const _0x351322=_0x58ee4a;if(this['_clearOtherTimers']['has'](_0x15b543)){const _0x1f69e6=this[_0x351322(0x253)][_0x351322(0x129)](_0x15b543);_0x1f69e6&&window['clearTimeout'](_0x1f69e6),this['_clearOtherTimers']['set'](_0x15b543,null);}}[_0x58ee4a(0xf1)](_0x187be0){const _0x117f95=_0x58ee4a,{memberID:_0x1a19af,unitIDs:_0x42656e}=_0x187be0;_0x42656e[_0x117f95(0x4c2)](_0x3fbd60=>{const _0x3036ae=_0x117f95;var _0x483709;const _0x48824a=this['_unitOnClients'][_0x3036ae(0x129)](_0x3fbd60);_0x48824a&&(_0x48824a[_0x3036ae(0x1d5)](_0x1a19af),(_0x483709=this['_ensureSubject'](_0x3fbd60))==null||_0x483709[_0x3036ae(0x28b)](_0x48824a[_0x3036ae(0x486)]===0x0?0x0:0x1));}),this[_0x117f95(0x3bb)](_0x1a19af);}[_0x58ee4a(0xe3)](_0x348da1){const _0x1bfc4f=_0x58ee4a;this[_0x1bfc4f(0x1d7)](_0x348da1[_0x1bfc4f(0x102)]);}[_0x58ee4a(0x199)](_0x3c872f){const _0x448945=_0x58ee4a;localStorage[_0x448945(0x3db)](nt,JSON['stringify'](_0x3c872f));}[_0x58ee4a(0x360)](){const _0x2b204c=_0x58ee4a;this[_0x2b204c(0x375)]=window['setInterval'](()=>{const _0xb72982=_0x2b204c;this[_0xb72982(0x199)]({'type':0x2,'memberID':this[_0xb72982(0x145)]});},it);}['_ensureSubject'](_0xe20882){const _0x1e3eba=_0x58ee4a;return this['_unitStatus']['has'](_0xe20882)||this[_0x1e3eba(0x1c9)][_0x1e3eba(0x1e3)](_0xe20882,new v[(_0x1e3eba(0x297))](0x0)),this[_0x1e3eba(0x1c9)][_0x1e3eba(0x129)](_0xe20882);}}function Dt(_0x17bbbb){let _0x3367bf='';for(const _0x547b1a of _0x17bbbb){const {startOffset:_0x8c2fe3,endOffset:_0x5546dd,isActive:_0x22f645,rangeType:_0x3422dc,segmentId:_0x7ee3d,segmentPage:_0x5be6bf}=_0x547b1a;_0x3367bf['length']&&(_0x3367bf+=','),_0x3367bf+=_0x8c2fe3+':'+_0x5546dd+':'+(_0x22f645?'1':'0')+':'+_0x3422dc+':'+_0x7ee3d+':'+_0x5be6bf;}return _0x3367bf;}function xs(_0x40c703){const _0x25ac63=_0x58ee4a,_0x2ae7cf=_0x40c703[_0x25ac63(0x42f)](','),_0xc8a961=[];for(const _0x3ab051 of _0x2ae7cf){const [_0x30bb5f,_0x32ebf6,_0x17f9fe,_0x1cbcef,_0x2c3b42,_0x2a7f02]=_0x3ab051[_0x25ac63(0x42f)](':');_0xc8a961[_0x25ac63(0x10b)]({'startOffset':Number(_0x30bb5f),'endOffset':Number(_0x32ebf6),'collapsed':_0x30bb5f===_0x32ebf6,'isActive':_0x17f9fe==='1','rangeType':_0x1cbcef===a[_0x25ac63(0x302)][_0x25ac63(0x3a4)]?a['DOC_RANGE_TYPE'][_0x25ac63(0x3a4)]:a[_0x25ac63(0x302)][_0x25ac63(0x1ea)],'segmentId':typeof _0x2c3b42=='string'?String(_0x2c3b42):'','segmentPage':Number(_0x2a7f02!=null?_0x2a7f02:-0x1)});}return _0xc8a961['some'](_0x489137=>_0x489137[_0x25ac63(0x4a5)])||(_0xc8a961[0x0][_0x25ac63(0x4a5)]=!0x0),_0xc8a961;}class Xe extends a['RxDisposable']{constructor(){const _0x54cb4e=_0x58ee4a;super(...arguments),u(this,'_collabCursorState$',new v[(_0x54cb4e(0x297))](null)),u(this,_0x54cb4e(0x36a),this[_0x54cb4e(0x274)][_0x54cb4e(0x396)]());}[_0x58ee4a(0x4d1)](_0x40e8a6){const _0x586385=_0x58ee4a,{unitID:_0x45faef,memberID:_0x521b58,textRanges:_0x3305fc}=_0x40e8a6,_0x28ab59=Dt(_0x3305fc);if(_0x28ab59==='')return;const _0x609936={'unitID':_0x45faef,'memberID':_0x521b58,'selection':_0x28ab59};this[_0x586385(0x274)][_0x586385(0x28b)](_0x609936);}}var ks=Object[_0x58ee4a(0x185)],Bs=Object[_0x58ee4a(0x3f5)],Vs=(_0x3c4217,_0x677274,_0x15bff5,_0x3cb374)=>{const _0x31bb2f=_0x58ee4a;for(var _0x1a033c=_0x3cb374>0x1?void 0x0:_0x3cb374?Bs(_0x677274,_0x15bff5):_0x677274,_0x36e891=_0x3c4217[_0x31bb2f(0x4bb)]-0x1,_0x287973;_0x36e891>=0x0;_0x36e891--)(_0x287973=_0x3c4217[_0x36e891])&&(_0x1a033c=(_0x3cb374?_0x287973(_0x677274,_0x15bff5,_0x1a033c):_0x287973(_0x1a033c))||_0x1a033c);return _0x3cb374&&_0x1a033c&&ks(_0x677274,_0x15bff5,_0x1a033c),_0x1a033c;},rt=(_0x55935e,_0x3fd8d0)=>(_0x381ef5,_0x2be87b)=>_0x3fd8d0(_0x381ef5,_0x2be87b,_0x55935e);let pe=class{constructor(_0x4e7afe,_0x868d98){const _0xbd1ed4=_0x58ee4a;this['_injector']=_0x4e7afe,this[_0xbd1ed4(0x39a)]=_0x868d98;}[_0x58ee4a(0x202)](_0x1893e0){const _0x450d29=_0x58ee4a;var _0x546e8e;const _0x46a2eb=this[_0x450d29(0x43a)][_0x450d29(0x129)](ne[_0x450d29(0x3dc)]),_0x47693c=(_0x546e8e=_0x46a2eb[_0x450d29(0x2a4)]())!=null?_0x546e8e:[];if(_0x47693c[_0x450d29(0x4bb)]===0x0)return;const _0x268947=[{'id':_0x450d29(0x3b7),'params':{'unitId':_0x1893e0[_0x450d29(0x4a1)],'actions':null,'textRanges':_0x47693c}}],_0xb2ad64=this[_0x450d29(0x39a)][_0x450d29(0x15d)](_0x1893e0,_0x268947);if(!_[_0x450d29(0x226)](_0xb2ad64))throw _0xb2ad64[_0x450d29(0x427)];const _0x5dafba=_0xb2ad64[_0x450d29(0x2e8)][0x0][_0x450d29(0x19e)][_0x450d29(0x21c)];Array[_0x450d29(0x1f7)](_0x5dafba)&&_0x5dafba['length']&&_0x46a2eb[_0x450d29(0x14f)](_0x5dafba,!0x1);}};pe=Vs([rt(0x0,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),rt(0x1,_['ITransformService'])],pe);const Ws=new Set([C[_0x58ee4a(0x4c0)]['id']]);function ot(_0x1d3f14,_0x580f05,_0x3f2ac3,_0x38969e,_0xfc96ee){const _0x370e2b=_0x58ee4a;var _0x58bec8,_0x895c9e,_0x21fb07,_0x5adbe9;const _0x378f3f=[];for(const _0x1608ce of _0x1d3f14)if(Ws['has'](_0x1608ce['id'])){if(_0x378f3f[_0x370e2b(0x4bb)]>0x0)break;_0x378f3f[_0x370e2b(0x10b)](_0x1608ce);break;}else _0x378f3f['push'](_0x1608ce);const _0x717676=(_0x895c9e=(_0x58bec8=_0xfc96ee[_0x370e2b(0x476)]())==null?void 0x0:_0x58bec8['userID'])!=null?_0x895c9e:'unknown',_0x443991=(_0x5adbe9=(_0x21fb07=_0xfc96ee['getCurrentUser']())==null?void 0x0:_0x21fb07[_0x370e2b(0x102)])!=null?_0x5adbe9:_0x370e2b(0x482);return{'changeset':{'unitID':_0x580f05,'type':_[_0x370e2b(0xf8)](_0x3f2ac3['getUnitType'](_0x580f05)),'baseRev':_0x38969e['getCurrentRevOfUnit'](_0x580f05),'revision':0x0,'userID':_0x717676,'memberID':_0x443991,'mutations':_0x378f3f},'pendingMutations':_0x1d3f14['slice'](_0x378f3f[_0x370e2b(0x4bb)])};}function Fs(_0xe91593,_0x112b11,_0x1a66ca,_0x30a17f,_0x33cd39){const _0x3a4d00=_0x58ee4a;var _0x56dc7c,_0x59f5d4,_0x353577,_0x587eaa;const _0x36602a=[_0xe91593[_0x3a4d00(0x3ec)]((_0x5ab2b5,_0x6179e3)=>{const _0x5d8eeb=_0x3a4d00;var _0x12cb2;const {id:_0x41032e}=_0x5ab2b5,{id:_0x246a53,type:_0x46fe63}=_0x6179e3,_0x53710e=(_0x12cb2=_0x5ab2b5['params'])!=null?_0x12cb2:{'actions':null},_0x3b21e4=_0x6179e3[_0x5d8eeb(0x19e)];if(_0x41032e&&_0x41032e!==_0x246a53)throw new Error(_0x5d8eeb(0x481)+_0x41032e+_0x5d8eeb(0x446)+_0x246a53+'.');return{..._0x5ab2b5,'id':_0x246a53,'type':_0x46fe63,'params':{'unitId':_0x3b21e4[_0x5d8eeb(0x14a)],'textRanges':_0x3b21e4[_0x5d8eeb(0x21c)],'actions':a[_0x5d8eeb(0x2d4)]['compose'](_0x53710e[_0x5d8eeb(0x4d4)],_0x3b21e4[_0x5d8eeb(0x4d4)])}};},{})],_0x357306=(_0x59f5d4=(_0x56dc7c=_0x33cd39[_0x3a4d00(0x476)]())==null?void 0x0:_0x56dc7c[_0x3a4d00(0x3e2)])!=null?_0x59f5d4:_0x3a4d00(0x482),_0x3800be=(_0x587eaa=(_0x353577=_0x33cd39[_0x3a4d00(0x476)]())==null?void 0x0:_0x353577[_0x3a4d00(0x102)])!=null?_0x587eaa:_0x3a4d00(0x482);return{'changeset':{'unitID':_0x112b11,'type':_[_0x3a4d00(0xf8)](_0x1a66ca[_0x3a4d00(0x495)](_0x112b11)),'baseRev':_0x30a17f['getCurrentRevOfUnit'](_0x112b11),'revision':0x0,'userID':_0x357306,'memberID':_0x3800be,'mutations':_0x36602a},'pendingMutations':[]};}function yt(_0x22bca0,_0x4c9b57){const _0xe5dd0c=_0x58ee4a,_0x395202=new v[(_0xe5dd0c(0x48a))](0x1);return setTimeout(()=>_0x395202[_0xe5dd0c(0x28b)](_0x4c9b57),_0x22bca0),_0x395202['asObservable']()[_0xe5dd0c(0xd9)](v[_0xe5dd0c(0x36d)](0x1));}const Gs={'id':C[_0x58ee4a(0x4ac)]['id'],'type':a[_0x58ee4a(0x12c)][_0x58ee4a(0x47a)],'params':{}};var Ys=Object[_0x58ee4a(0x185)],Ks=Object[_0x58ee4a(0x3f5)],Z=(_0x8c9299,_0x3d3e3a,_0x4578aa,_0x52d939)=>{const _0x389673=_0x58ee4a;for(var _0x59481e=_0x52d939>0x1?void 0x0:_0x52d939?Ks(_0x3d3e3a,_0x4578aa):_0x3d3e3a,_0x2a590e=_0x8c9299[_0x389673(0x4bb)]-0x1,_0x5f492b;_0x2a590e>=0x0;_0x2a590e--)(_0x5f492b=_0x8c9299[_0x2a590e])&&(_0x59481e=(_0x52d939?_0x5f492b(_0x3d3e3a,_0x4578aa,_0x59481e):_0x5f492b(_0x59481e))||_0x59481e);return _0x52d939&&_0x59481e&&Ys(_0x3d3e3a,_0x4578aa,_0x59481e),_0x59481e;},g=(_0x3d2c6b,_0x33d1c9)=>(_0x196d52,_0x1f1db9)=>_0x33d1c9(_0x196d52,_0x1f1db9,_0x3d2c6b),D=(_0x158607=>(_0x158607[_0x58ee4a(0x42b)]=_0x58ee4a(0x45a),_0x158607['SYNCED']='synced',_0x158607[_0x58ee4a(0x1a1)]=_0x58ee4a(0x17d),_0x158607[_0x58ee4a(0x466)]=_0x58ee4a(0x1ae),_0x158607[_0x58ee4a(0x24f)]=_0x58ee4a(0x39d),_0x158607[_0x58ee4a(0x1f6)]='fetch_missing',_0x158607[_0x58ee4a(0x11a)]=_0x58ee4a(0x4e7),_0x158607[_0x58ee4a(0x4fb)]='offline',_0x158607))(D||{});const Ut=0xea60;class Q{constructor(_0x76387f,_0x570c44,_0x19ef77,_0x41984a,_0xdc8b60,_0x592435,_0xdb95de,_0x59533e,_0x59ca22){const _0x545532=_0x58ee4a;u(this,'_awaitingChangeset',null),u(this,_0x545532(0x1fd),[]),(this['unitID']=_0x76387f,this[_0x545532(0x1f0)]=_0x570c44,this[_0x545532(0x11b)]=_0xdc8b60,this[_0x545532(0x325)]=_0x592435,this[_0x545532(0x327)]=_0xdb95de,this['_revisionService']=_0x59533e,this[_0x545532(0x147)]=_0x59ca22,this[_0x545532(0x441)]=_0x19ef77,this['_pendingMutations']=_0x41984a);}[_0x58ee4a(0x33d)](_0x5515d9){const _0x30e78d=_0x58ee4a,_0x2ce915=this[_0x30e78d(0x1bb)][_0x30e78d(0x4da)](this[_0x30e78d(0x4a1)]);return _0x5515d9[_0x30e78d(0x328)]>_0x2ce915+0x1?(this[_0x30e78d(0x11b)][_0x30e78d(0x344)]({'from':_0x2ce915,'to':_0x5515d9[_0x30e78d(0x328)]-0x1}),!0x0):!0x1;}[_0x58ee4a(0x1ba)](_0x963a09){const _0x4aa93f=_0x58ee4a;this[_0x4aa93f(0x327)][_0x4aa93f(0x425)](this[_0x4aa93f(0x4a1)],_0x963a09);}[_0x58ee4a(0x38a)](_0x30d15c){const _0x256440=_0x58ee4a;var _0x3b8a6a,_0x4680f4;(_0x4680f4=(_0x3b8a6a=this[_0x256440(0x11b)])[_0x256440(0x2ef)])==null||_0x4680f4[_0x256440(0x4cf)](_0x3b8a6a,_0x30d15c);}[_0x58ee4a(0x316)](_0x353e69){const _0x559ea4=_0x58ee4a;var _0x18bd71,_0x19fa47;return(_0x19fa47=(_0x18bd71=this[_0x559ea4(0x11b)])[_0x559ea4(0x355)])==null?void 0x0:_0x19fa47[_0x559ea4(0x4cf)](_0x18bd71,_0x353e69);}[_0x58ee4a(0x3cf)](_0x2c969e){const _0x15f8b6=_0x58ee4a;var _0x1bf0b3,_0x58ff20,_0xc2f50;return(_0xc2f50=(_0x58ff20=(_0x1bf0b3=this[_0x15f8b6(0x11b)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x58ff20[_0x15f8b6(0x4cf)](_0x1bf0b3,_0x2c969e))!=null?_0xc2f50:_0x2c969e;}[_0x58ee4a(0x173)](_0x26222f){const _0x46e6d5=_0x58ee4a;var _0x347c00,_0x395a11;if(this[_0x46e6d5(0x1f0)]===H[_0x46e6d5(0x437)]){const {unitID:_0x185494,mutations:_0x5e0c96,memberID:_0x44fd8e}=_0x26222f,_0x2caf23=_0x5e0c96[0x0]['params'][_0x46e6d5(0x21c)];Array[_0x46e6d5(0x1f7)](_0x2caf23)&&_0x2caf23['length']>0x0&&((_0x395a11=(_0x347c00=this[_0x46e6d5(0x11b)])[_0x46e6d5(0x4db)])==null||_0x395a11[_0x46e6d5(0x4cf)](_0x347c00,{'unitID':_0x185494,'memberID':_0x44fd8e,'textRanges':_0x2caf23}));}}[_0x58ee4a(0x37a)](){const _0x2ba07d=_0x58ee4a;this[_0x2ba07d(0x147)]['updateOfflineData'](this[_0x2ba07d(0x4a1)],this[_0x2ba07d(0x1f0)],this[_0x2ba07d(0x441)],this[_0x2ba07d(0x1fd)]);}[_0x58ee4a(0x4dd)](){const _0x531489=_0x58ee4a;return this[_0x531489(0x1bb)][_0x531489(0x4da)](this[_0x531489(0x4a1)]);}[_0x58ee4a(0x1e7)](){const _0x22b0da=_0x58ee4a;this['_revisionService'][_0x22b0da(0x3e7)](this['unitID']);}[_0x58ee4a(0x407)](_0x13b053){const _0x31f4e5=_0x58ee4a;var _0x4d4941;const _0x20000b=this[_0x31f4e5(0x3cf)](_0x13b053),_0x6f2572=a[_0x31f4e5(0x35e)](_0x20000b[_0x31f4e5(0x3f1)],this['_commandService'],{'fromCollab':!0x0});if(!_0x6f2572['result'])throw _0x6f2572[_0x31f4e5(0x427)]instanceof Error?_0x6f2572['error']:new Error((_0x4d4941=_0x6f2572[_0x31f4e5(0x427)])!=null?_0x4d4941:_0x31f4e5(0x47b));this[_0x31f4e5(0x316)](_0x20000b),this[_0x31f4e5(0x1ba)](_0x13b053),this[_0x31f4e5(0x38a)](_0x20000b),this[_0x31f4e5(0x173)](_0x20000b),this['_incrementRevisionNumber']();}}let re=class extends Q{constructor(_0x9dde96,_0x2d3932,_0x306eb9,_0xa9237a,_0x5be583,_0x4ef8fd,_0x5408ee,_0x218d27,_0x414774,_0xf53cb9){const _0x17f92d=_0x58ee4a;super(_0x9dde96,_0x2d3932,null,[],_0x306eb9,_0x218d27,_0x5408ee,_0xa9237a,_0x5be583),u(this,_0x17f92d(0x369),_0x17f92d(0x3fd)),(this[_0x17f92d(0x43a)]=_0x4ef8fd,this[_0x17f92d(0x2bd)]=_0x414774,this[_0x17f92d(0x39a)]=_0xf53cb9);}[_0x58ee4a(0xf2)](_0x2fe5cf){const _0x35cf77=_0x58ee4a,_0x1084af=this[_0x35cf77(0x43a)][_0x35cf77(0x370)](W,this['unitID'],this[_0x35cf77(0x1f0)],[_0x2fe5cf],this[_0x35cf77(0x11b)]);return _0x1084af['_schedule'](),_0x1084af[_0x35cf77(0x37a)](),_0x1084af;}[_0x58ee4a(0x16e)](_0x3b455e){const _0x1ce46a=_0x58ee4a;if(this['_checkMissing'](_0x3b455e))return this[_0x1ce46a(0x43a)][_0x1ce46a(0x370)](k,this['unitID'],this[_0x1ce46a(0x1f0)],null,[],null,[_0x3b455e],this[_0x1ce46a(0x11b)]);try{const _0x2854d9=this[_0x1ce46a(0x39a)]['transformMutationsWithChangeset'](_0x3b455e,[Gs]);if(_[_0x1ce46a(0x226)](_0x2854d9)){const {c1Prime:_0x67f3a6}=_0x2854d9;return this[_0x1ce46a(0x407)](_0x67f3a6),this;}throw _0x2854d9[_0x1ce46a(0x427)];}catch(_0x1948c2){return this[_0x1ce46a(0x2bd)][_0x1ce46a(0x427)](_0x1948c2),this['_onConflict'](!0x1);}}[_0x58ee4a(0x2d9)](_0x5a6df8){const _0xbfc572=_0x58ee4a;return this[_0xbfc572(0x43a)][_0xbfc572(0x370)](K,this[_0xbfc572(0x4a1)],this[_0xbfc572(0x1f0)],null,[],this[_0xbfc572(0x11b)],_0x5a6df8);}['onRemoteAck'](){const _0x4a2a07=_0x58ee4a;throw new Error(_0x4a2a07(0x43e));}[_0x58ee4a(0x1d2)](){const _0x3fc218=_0x58ee4a;throw new Error(_0x3fc218(0x4aa));}[_0x58ee4a(0x13d)](){return this;}[_0x58ee4a(0x240)](){const _0x567bf=_0x58ee4a;return this[_0x567bf(0x43a)][_0x567bf(0x370)](X,this[_0x567bf(0x4a1)],this[_0x567bf(0x1f0)],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x58ee4a(0x10a)](){const _0x452e4d=_0x58ee4a;throw new Error(_0x452e4d(0x4bd));}[_0x58ee4a(0x194)](){const _0x16b8d9=_0x58ee4a,_0x47936c=this[_0x16b8d9(0x1bb)][_0x16b8d9(0x4da)](this[_0x16b8d9(0x4a1)]);return this[_0x16b8d9(0x11b)][_0x16b8d9(0x344)]({'from':_0x47936c,'to':0x0}),this['_injector'][_0x16b8d9(0x370)](k,this['unitID'],this[_0x16b8d9(0x1f0)],null,[],null,[],this[_0x16b8d9(0x11b)]);}};re=Z([g(0x3,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x2f7)])),g(0x4,a[_0x58ee4a(0x2ee)](exports['LocalCacheService'])),g(0x5,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),g(0x6,a[_0x58ee4a(0x222)]),g(0x7,a[_0x58ee4a(0x21b)]),g(0x8,a[_0x58ee4a(0x220)]),g(0x9,_[_0x58ee4a(0x3ee)])],re);let W=class extends Q{constructor(_0x3692c9,_0x27db0e,_0x13fabd,_0x40376e,_0x4de47a,_0x391562,_0x571f37,_0x2bfa34,_0x49c30c,_0x50d3dd,_0x154e7e,_0x1acfb9,_0x470cd8,_0x4640dc){const _0x5ac898=_0x58ee4a;super(_0x3692c9,_0x27db0e,null,_0x13fabd,_0x40376e,_0x50d3dd,_0x4640dc,_0x391562,_0x571f37),u(this,_0x5ac898(0x369),'pending'),u(this,'_scheduleTimestamp',null),u(this,'_sendingTimer',null),(this[_0x5ac898(0x43a)]=_0x4de47a,this[_0x5ac898(0x30b)]=_0x2bfa34,this[_0x5ac898(0x2bd)]=_0x49c30c,this[_0x5ac898(0x324)]=_0x154e7e,this['_transformService']=_0x1acfb9,this['_univerInstanceService']=_0x470cd8);}['appendMutation'](_0x39c8ea){const _0x25ed67=_0x58ee4a;return this[_0x25ed67(0x1fd)]['push'](_0x39c8ea),this[_0x25ed67(0x37a)](),this;}[_0x58ee4a(0x16e)](_0x2ce00a){const _0x56fe5b=_0x58ee4a;if(this[_0x56fe5b(0x33d)](_0x2ce00a))return this[_0x56fe5b(0x16d)](),this[_0x56fe5b(0x43a)][_0x56fe5b(0x370)](k,this[_0x56fe5b(0x4a1)],this[_0x56fe5b(0x1f0)],null,this[_0x56fe5b(0x1fd)],null,[_0x2ce00a],this[_0x56fe5b(0x11b)]);try{const _0xec065d=this[_0x56fe5b(0x39a)][_0x56fe5b(0x15d)](_0x2ce00a,this['_pendingMutations']);if(_[_0x56fe5b(0x226)](_0xec065d)){const {c1Prime:_0x5d8066,m2Prime:_0x993d02}=_0xec065d;this[_0x56fe5b(0x407)](_0x5d8066);const _0x237fcc=this['_injector'][_0x56fe5b(0x370)](W,this['unitID'],this[_0x56fe5b(0x1f0)],_0x993d02,this[_0x56fe5b(0x11b)]);return this['_clearScheduledTask'](),_0x237fcc[_0x56fe5b(0x30f)](this['_scheduleTimestamp']?Math[_0x56fe5b(0x3ca)](0x0,new Date()[_0x56fe5b(0x111)]()-this[_0x56fe5b(0x4f0)]):this[_0x56fe5b(0x23d)]()),_0x237fcc;}throw _0xec065d['error'];}catch(_0x2f355c){return this[_0x56fe5b(0x2bd)][_0x56fe5b(0x427)](_0x2f355c),this[_0x56fe5b(0x2d9)](!0x1);}}[_0x58ee4a(0x323)](){const _0x37fcbe=_0x58ee4a;throw new Error(_0x37fcbe(0x305));}[_0x58ee4a(0x1d2)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x58ee4a(0x13d)](){return this;}[_0x58ee4a(0x240)](){const _0x115f63=_0x58ee4a;return this['_clearScheduledTask'](),this[_0x115f63(0x43a)]['createInstance'](X,this[_0x115f63(0x4a1)],this[_0x115f63(0x1f0)],null,this['_pendingMutations'],this[_0x115f63(0x11b)]);}[_0x58ee4a(0x19d)](){return this;}['_schedule'](_0x627796){const _0xcecf66=_0x58ee4a,_0x98e35f=_0x627796!=null?_0x627796:this[_0xcecf66(0x23d)]();this['_scheduleTimestamp']=new Date()['getTime'](),this['_sendingTimer']=window[_0xcecf66(0x263)](()=>{const _0x3a08e3=_0xcecf66;this['_clearScheduledTask']();let _0x42faea=null;switch(this[_0x3a08e3(0x1f0)]){case H['UNIVER_SHEET']:{_0x42faea=ot(this['_pendingMutations'],this[_0x3a08e3(0x4a1)],this[_0x3a08e3(0x135)],this[_0x3a08e3(0x1bb)],this['_memberService']);break;}case H[_0x3a08e3(0x437)]:{this[_0x3a08e3(0x1fd)][_0x3a08e3(0x4a9)](_0x33e4ce=>_0x33e4ce['id']===ne[_0x3a08e3(0x2f9)]['id'])?_0x42faea=Fs(this['_pendingMutations'],this[_0x3a08e3(0x4a1)],this[_0x3a08e3(0x135)],this[_0x3a08e3(0x1bb)],this['_memberService']):_0x42faea=ot(this[_0x3a08e3(0x1fd)],this['unitID'],this['_univerInstanceService'],this['_revisionService'],this[_0x3a08e3(0x30b)]);break;}default:throw new Error(_0x3a08e3(0x3b9)+this[_0x3a08e3(0x1f0)]+_0x3a08e3(0x115));}const {changeset:_0x5e7b53,pendingMutations:_0x3686ce}=_0x42faea;this[_0x3a08e3(0x11b)]['onSendChangeset'](_0x5e7b53);const _0x43bf50=_0x3686ce['length']?this[_0x3a08e3(0x43a)][_0x3a08e3(0x370)](F,this['unitID'],this[_0x3a08e3(0x1f0)],_0x5e7b53,_0x3686ce,this[_0x3a08e3(0x11b)],void 0x0):this['_injector'][_0x3a08e3(0x370)](Y,this[_0x3a08e3(0x4a1)],this[_0x3a08e3(0x1f0)],_0x5e7b53,this[_0x3a08e3(0x11b)]);_0x43bf50[_0x3a08e3(0x37a)](),this['_handler'][_0x3a08e3(0x1c1)](this,_0x43bf50);},_0x98e35f);}['_getSendChangesetTimeout'](){const _0x317588=_0x58ee4a;var _0x4d54e3;const _0x2e64a0=this[_0x317588(0x324)][_0x317588(0xc6)]($);return(_0x4d54e3=_0x2e64a0==null?void 0x0:_0x2e64a0[_0x317588(0x1af)])!=null?_0x4d54e3:Zt;}[_0x58ee4a(0x10a)](){const _0x18a869=_0x58ee4a;throw new Error(_0x18a869(0x40e));}[_0x58ee4a(0x16d)](){const _0x186531=_0x58ee4a;this[_0x186531(0x4f4)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}['_onConflict'](_0x3b5597){const _0x634720=_0x58ee4a;return this[_0x634720(0x16d)](),this[_0x634720(0x43a)][_0x634720(0x370)](K,this[_0x634720(0x4a1)],this[_0x634720(0x1f0)],null,this[_0x634720(0x1fd)],this['_handler'],_0x3b5597);}};W=Z([g(0x4,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),g(0x5,a['Inject'](_[_0x58ee4a(0x2f7)])),g(0x6,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x498)])),g(0x7,a['Inject'](exports[_0x58ee4a(0x234)])),g(0x8,a[_0x58ee4a(0x220)]),g(0x9,a[_0x58ee4a(0x21b)]),g(0xa,a[_0x58ee4a(0x3ac)]),g(0xb,_[_0x58ee4a(0x3ee)]),g(0xc,a[_0x58ee4a(0x200)]),g(0xd,a[_0x58ee4a(0x222)])],W);let Y=class extends Q{constructor(_0x2040ca,_0x4982ec,_0x2da394,_0x45f07c,_0x3bc06a,_0x3ac8b3,_0x33ebb2,_0x21cc0d,_0x40f721,_0x3476cf,_0x4164f9){const _0x5c9e67=_0x58ee4a;super(_0x2040ca,_0x4982ec,_0x2da394,[],_0x45f07c,_0x21cc0d,_0x4164f9,_0x3ac8b3,_0x33ebb2),u(this,_0x5c9e67(0x369),'awaiting'),u(this,_0x5c9e67(0x31f),0x0),u(this,_0x5c9e67(0x401)),u(this,_0x5c9e67(0x127)),(this['_injector']=_0x3bc06a,this['_logService']=_0x40f721,this[_0x5c9e67(0x39a)]=_0x3476cf);}[_0x58ee4a(0xf2)](_0x2370e2){const _0x2057f2=_0x58ee4a;this[_0x2057f2(0x16d)]();const _0x2450b5=this[_0x2057f2(0x43a)][_0x2057f2(0x370)](F,this['unitID'],this[_0x2057f2(0x1f0)],this[_0x2057f2(0x441)],[_0x2370e2],this[_0x2057f2(0x11b)],this['_resendTimer']);return _0x2450b5[_0x2057f2(0x37a)](),_0x2450b5;}[_0x58ee4a(0x16e)](_0x303cbc){const _0xc68c=_0x58ee4a;if(this[_0xc68c(0x33d)](_0x303cbc))return this[_0xc68c(0x16d)](),this[_0xc68c(0x43a)][_0xc68c(0x370)](k,this[_0xc68c(0x4a1)],this[_0xc68c(0x1f0)],this[_0xc68c(0x441)],[],null,[_0x303cbc],this[_0xc68c(0x11b)]);try{const _0x48322d=this['_transformService']['transformChangesets']([_0x303cbc],[this[_0xc68c(0x441)]],!0x1);if(_[_0xc68c(0x239)](_0x48322d)){const {c1Prime:_0x13561f,c2Prime:_0x205246}=_0x48322d;this['_executeRemoteChangeset'](_0x13561f[0x0]),_0x205246[0x0][_0xc68c(0x1df)]=this[_0xc68c(0x4dd)](),this[_0xc68c(0x16d)]();const _0x5f5517=this[_0xc68c(0x43a)][_0xc68c(0x370)](Y,this[_0xc68c(0x4a1)],this[_0xc68c(0x1f0)],_0x205246[0x0],this[_0xc68c(0x11b)]);return _0x5f5517[_0xc68c(0x37a)](),_0x5f5517;}return this[_0xc68c(0x2d9)](!0x1);}catch(_0x125e3c){return this['_logService'][_0xc68c(0x427)](_0x125e3c),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x524323){const _0x4f047d=_0x58ee4a;this[_0x4f047d(0x16d)]();const _0x2b944f=this[_0x4f047d(0x1bb)][_0x4f047d(0x4da)](this[_0x4f047d(0x4a1)]);if(_0x524323[_0x4f047d(0x328)]<_0x2b944f-0x1)return this;if(this['_checkMissing'](_0x524323))return this[_0x4f047d(0x43a)][_0x4f047d(0x370)](k,this[_0x4f047d(0x4a1)],this[_0x4f047d(0x1f0)],null,[],this[_0x4f047d(0x441)],[],this[_0x4f047d(0x11b)]);this[_0x4f047d(0x1e7)]();const _0x19d9d5=this[_0x4f047d(0x43a)][_0x4f047d(0x370)](re,this[_0x4f047d(0x4a1)],this[_0x4f047d(0x1f0)],this['_handler']);return _0x19d9d5[_0x4f047d(0x37a)](),_0x19d9d5;}[_0x58ee4a(0x1d2)](_0x5c0059){const _0x1fc8a8=_0x58ee4a;return this[_0x1fc8a8(0x2d9)](!!(_0x5c0059!=null&&_0x5c0059['isPermissionRej']));}[_0x58ee4a(0x13d)](_0x135401){const _0x415db7=_0x58ee4a;return this[_0x415db7(0x31f)]>Ut?this[_0x415db7(0x240)]():(this[_0x415db7(0x401)]=yt(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x135401[_0x415db7(0x2c6)]}),this[_0x415db7(0x127)]=this[_0x415db7(0x401)][_0x415db7(0x3fa)](({reqId:_0x2d274f,timeout:_0x5cad32})=>{const _0x55e9a5=_0x415db7;this[_0x55e9a5(0x1ec)](_0x2d274f,_0x5cad32);}),this);}[_0x58ee4a(0x240)](){const _0x53cd2d=_0x58ee4a;return this[_0x53cd2d(0x16d)](),this[_0x53cd2d(0x43a)][_0x53cd2d(0x370)](X,this[_0x53cd2d(0x4a1)],this[_0x53cd2d(0x1f0)],this[_0x53cd2d(0x441)],[],this[_0x53cd2d(0x11b)]);}['toggleOnline'](){return this;}['resend'](){const _0xb075b3=_0x58ee4a;this[_0xb075b3(0x11b)][_0xb075b3(0x2a1)](this['_awaitingChangeset']);}[_0x58ee4a(0x2d9)](_0x422574){const _0x371aec=_0x58ee4a;return this['_clearScheduledTask'](),this[_0x371aec(0x43a)]['createInstance'](K,this[_0x371aec(0x4a1)],this[_0x371aec(0x1f0)],this[_0x371aec(0x441)],[],this[_0x371aec(0x11b)],_0x422574);}[_0x58ee4a(0x1ec)](_0x2488cd,_0x26d6db){const _0x15404c=_0x58ee4a;var _0x2839c1;_0x2488cd===((_0x2839c1=this[_0x15404c(0x441)])==null?void 0x0:_0x2839c1['reqId'])&&(this[_0x15404c(0x10a)](),this[_0x15404c(0x31f)]=_0x26d6db===0x0?0x3e8:_0x26d6db*0x2);}[_0x58ee4a(0x16d)](){const _0x20ab50=_0x58ee4a;var _0x2ac3bb;(_0x2ac3bb=this[_0x20ab50(0x127)])==null||_0x2ac3bb[_0x20ab50(0x3af)](),this[_0x20ab50(0x31f)]=0x0;}};Y=Z([g(0x4,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),g(0x5,a['Inject'](_[_0x58ee4a(0x2f7)])),g(0x6,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x498)])),g(0x7,a['ICommandService']),g(0x8,a[_0x58ee4a(0x220)]),g(0x9,_['ITransformService']),g(0xa,a['IUndoRedoService'])],Y);let F=class extends Q{constructor(_0x4c0fc7,_0x351986,_0x248cb6,_0x144e26,_0x11bf27,_0x5c0c76,_0x48c5dc,_0x562624,_0x39b358,_0x595860,_0x1acfa9,_0x40f652,_0x4a2415){const _0x39151c=_0x58ee4a;super(_0x4c0fc7,_0x351986,_0x248cb6,_0x144e26,_0x11bf27,_0x595860,_0x4a2415,_0x562624,_0x39b358),u(this,_0x39151c(0x369),_0x39151c(0x39d)),u(this,_0x39151c(0x31f),0x0),u(this,_0x39151c(0x401)),u(this,'_sender'),(this[_0x39151c(0x43a)]=_0x48c5dc,this['_logService']=_0x1acfa9,this[_0x39151c(0x39a)]=_0x40f652,_0x5c0c76&&(this['_resendTimer']=_0x5c0c76,this['_sender']=this[_0x39151c(0x401)]['subscribe'](({reqId:_0x550bf6,timeout:_0x39efcc})=>{const _0x109731=_0x39151c;this[_0x109731(0x1ec)](_0x550bf6,_0x39efcc);})));}[_0x58ee4a(0xf2)](_0x1a74ba){const _0x6bf066=_0x58ee4a;return this[_0x6bf066(0x1fd)][_0x6bf066(0x10b)](_0x1a74ba),this;}[_0x58ee4a(0x16e)](_0x534ddd){const _0x31e646=_0x58ee4a;if(this['_checkMissing'](_0x534ddd))return this[_0x31e646(0x16d)](),this['_injector']['createInstance'](k,this['unitID'],this[_0x31e646(0x1f0)],this[_0x31e646(0x441)],this[_0x31e646(0x1fd)],null,[_0x534ddd],this[_0x31e646(0x11b)]);try{const _0x5ce991=this[_0x31e646(0x39a)][_0x31e646(0x2cd)]([_0x534ddd],[this[_0x31e646(0x441)]],!0x1);if(_[_0x31e646(0x239)](_0x5ce991)){const {c1Prime:_0xdeec76,c2Prime:_0xba4ae6}=_0x5ce991,_0x7dafe0=this['_transformService']['transformMutationsWithChangeset'](_0xdeec76[0x0],this[_0x31e646(0x1fd)]);if(_[_0x31e646(0x226)](_0x7dafe0)){const {c1Prime:_0x16ebf1,m2Prime:_0x489640}=_0x7dafe0;return this['_executeRemoteChangeset'](_0x16ebf1),_0xba4ae6[0x0][_0x31e646(0x1df)]=this[_0x31e646(0x4dd)](),this[_0x31e646(0x16d)](),this[_0x31e646(0x43a)][_0x31e646(0x370)](F,this[_0x31e646(0x4a1)],this['type'],_0xba4ae6[0x0],_0x489640,this[_0x31e646(0x11b)],void 0x0);}throw _0x7dafe0['error'];}throw _0x5ce991[_0x31e646(0x427)];}catch(_0x2af2b1){return this[_0x31e646(0x2bd)][_0x31e646(0x427)](_0x2af2b1),this[_0x31e646(0x2d9)](!0x1);}}[_0x58ee4a(0x323)](_0x1b821e){const _0x456117=_0x58ee4a;if(this[_0x456117(0x16d)](),this[_0x456117(0x33d)](_0x1b821e))return this[_0x456117(0x43a)][_0x456117(0x370)](k,this['unitID'],this['type'],null,this[_0x456117(0x1fd)],this[_0x456117(0x441)],[],this[_0x456117(0x11b)]);this['_incrementRevisionNumber']();const _0x380afb=this['_injector']['createInstance'](W,this[_0x456117(0x4a1)],this[_0x456117(0x1f0)],this[_0x456117(0x1fd)],this[_0x456117(0x11b)]);return _0x380afb[_0x456117(0x30f)](),_0x380afb[_0x456117(0x37a)](),_0x380afb;}[_0x58ee4a(0x1d2)](_0xf9d8cd){const _0x1ff45f=_0x58ee4a;return this[_0x1ff45f(0x2d9)](!!(_0xf9d8cd!=null&&_0xf9d8cd['isPermissionRej']));}['onRemoteRetry'](_0x16be82){const _0x27a796=_0x58ee4a;return this['_resendTimeout']>Ut?this['toggleOffline']():(this[_0x27a796(0x401)]=yt(this[_0x27a796(0x31f)],{'timeout':this[_0x27a796(0x31f)],'reqId':_0x16be82[_0x27a796(0x2c6)]}),this[_0x27a796(0x127)]=this[_0x27a796(0x401)][_0x27a796(0x3fa)](({reqId:_0x375e45,timeout:_0x17191f})=>{this['_resendWithTimeout'](_0x375e45,_0x17191f);}),this);}[_0x58ee4a(0x240)](){const _0x14b78c=_0x58ee4a;return this[_0x14b78c(0x16d)](),this[_0x14b78c(0x43a)][_0x14b78c(0x370)](X,this[_0x14b78c(0x4a1)],this[_0x14b78c(0x1f0)],this[_0x14b78c(0x441)],this['_pendingMutations'],this['_handler']);}['toggleOnline'](){return this;}['resend'](){const _0x38f8c4=_0x58ee4a;this['_handler'][_0x38f8c4(0x2a1)](this[_0x38f8c4(0x441)]);}['_onConflict'](_0x826e57){const _0x281c1e=_0x58ee4a;return this['_clearScheduledTask'](),this[_0x281c1e(0x43a)][_0x281c1e(0x370)](K,this['unitID'],this['type'],null,this[_0x281c1e(0x1fd)],this[_0x281c1e(0x11b)],_0x826e57);}['_resendWithTimeout'](_0x5e9eb7,_0x1fbc3c){const _0x495d7b=_0x58ee4a;var _0x15ef8b;_0x5e9eb7===((_0x15ef8b=this[_0x495d7b(0x441)])==null?void 0x0:_0x15ef8b[_0x495d7b(0x2c6)])&&(this[_0x495d7b(0x10a)](),this[_0x495d7b(0x31f)]=_0x1fbc3c===0x0?0x3e8:_0x1fbc3c*0x2);}[_0x58ee4a(0x16d)](){const _0x482cee=_0x58ee4a;var _0x2ac916;(_0x2ac916=this[_0x482cee(0x127)])==null||_0x2ac916['unsubscribe'](),this[_0x482cee(0x31f)]=0x0;}};F=Z([g(0x6,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),g(0x7,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x2f7)])),g(0x8,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x498)])),g(0x9,a[_0x58ee4a(0x21b)]),g(0xa,a[_0x58ee4a(0x220)]),g(0xb,_[_0x58ee4a(0x3ee)]),g(0xc,a[_0x58ee4a(0x222)])],F);let K=class extends Q{constructor(_0x469324,_0x5bdce7,_0x5d6d57,_0x1736ed,_0x31680e,_0x2e8e52=!0x1,_0x1adf41,_0x320cc7,_0x3ed230,_0x4cbc19,_0x110ec4,_0x413cb3,_0x3eb514){const _0x8a5072=_0x58ee4a;super(_0x469324,_0x5bdce7,_0x5d6d57,_0x1736ed,_0x31680e,_0x320cc7,_0x3ed230,_0x110ec4,_0x4cbc19),u(this,'status','conflict'),(this[_0x8a5072(0x3a7)]=_0x2e8e52,this[_0x8a5072(0x1c3)]=_0x1adf41,this[_0x8a5072(0x32e)]=_0x413cb3,this['_notificationService']=_0x3eb514,this[_0x8a5072(0x3a9)](),this[_0x8a5072(0x383)](),this[_0x8a5072(0x16c)]());}[_0x58ee4a(0xf2)](){return this;}[_0x58ee4a(0x16e)](){return this;}['onRemoteAck'](){return this;}[_0x58ee4a(0x1d2)](){return this;}['onRemoteRetry'](){return this;}[_0x58ee4a(0x240)](){return this;}[_0x58ee4a(0x19d)](){return this;}[_0x58ee4a(0x10a)](){const _0x27a2bf=_0x58ee4a;throw new Error(_0x27a2bf(0x2c1));}['_clearLocalCache'](){const _0x3e26b6=_0x58ee4a;this[_0x3e26b6(0x147)][_0x3e26b6(0x414)](this[_0x3e26b6(0x4a1)],this[_0x3e26b6(0x1f0)],null,[]);}[_0x58ee4a(0x3a9)](){const _0x3bd398=_0x58ee4a;this['_isPermissionRej']?this['_notificationService'][_0x3bd398(0x208)]({'title':this['_localeService']['t']('permission.title'),'content':this[_0x3bd398(0x32e)]['t']('permission.content'),'type':_0x3bd398(0x427),'duration':0x0}):this[_0x3bd398(0x33e)][_0x3bd398(0x208)]({'title':this[_0x3bd398(0x32e)]['t'](_0x3bd398(0x218)),'content':this[_0x3bd398(0x32e)]['t'](_0x3bd398(0x1dd)),'type':_0x3bd398(0x427),'duration':0x0});}['_disableEditing'](){const _0x552a40=_0x58ee4a;this[_0x552a40(0x1c3)]['updatePermissionPoint'](new C[(_0x552a40(0x3e5))](this[_0x552a40(0x4a1)])['id'],!0x1);}};K=Z([g(0x6,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x161)])),g(0x7,a[_0x58ee4a(0x21b)]),g(0x8,a[_0x58ee4a(0x222)]),g(0x9,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x498)])),g(0xa,a[_0x58ee4a(0x2ee)](_['RevisionService'])),g(0xb,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x32b)])),g(0xc,A[_0x58ee4a(0x184)])],K);let X=class extends Q{constructor(_0x15dc28,_0x2be9bf,_0x34adbb,_0x1a4f61,_0x2b68cf,_0x955da4,_0x18162f,_0x3d1426,_0x28395b,_0x216312){const _0x4a1482=_0x58ee4a;super(_0x15dc28,_0x2be9bf,_0x34adbb,_0x1a4f61,_0x2b68cf,_0x28395b,_0x216312,_0x18162f,_0x3d1426),u(this,_0x4a1482(0x369),_0x4a1482(0x1b2)),this['_injector']=_0x955da4;}['appendMutation'](_0x29ed89){const _0x16242f=_0x58ee4a;return this['_pendingMutations'][_0x16242f(0x10b)](_0x29ed89),this[_0x16242f(0x37a)](),this;}[_0x58ee4a(0x16e)](_0x702aa1){const _0x4ef587=_0x58ee4a;throw new Error(_0x4ef587(0x288));}[_0x58ee4a(0x323)](){const _0x1ecf2f=_0x58ee4a;throw new Error(_0x1ecf2f(0x176));}[_0x58ee4a(0x1d2)](){const _0x27700d=_0x58ee4a;throw new Error(_0x27700d(0xe8));}[_0x58ee4a(0x13d)](){return this;}[_0x58ee4a(0x240)](){return this;}[_0x58ee4a(0x19d)](){const {_injector:_0x54e205,_pendingMutations:_0x566409,_awaitingChangeset:_0x5243d6,unitID:_0x186dce,_handler:_0xc565e2,type:_0x4d1984}=this,_0x14de34=Pt(_0x54e205,_0x186dce,_0x4d1984,_0x5243d6,_0x566409,_0xc565e2);return _0x14de34 instanceof W?_0x14de34['_schedule']():(_0x14de34 instanceof F||_0x14de34 instanceof Y)&&_0x14de34['resend'](),_0x14de34;}['resend'](){const _0x20f562=_0x58ee4a;throw new Error(_0x20f562(0x1fb));}};X=Z([g(0x5,a[_0x58ee4a(0x2ee)](a['Injector'])),g(0x6,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x2f7)])),g(0x7,a[_0x58ee4a(0x2ee)](exports['LocalCacheService'])),g(0x8,a[_0x58ee4a(0x21b)]),g(0x9,a['IUndoRedoService'])],X);let k=class extends Q{constructor(_0x395fec,_0x1887dd,_0x10735d,_0x89016e,_0x266ce0,_0x5516f7,_0xde9a0f,_0x28eb25,_0x310a0d,_0x143e34,_0x3bd0e0,_0x645e84,_0x5dbe2b,_0x514446){const _0x52b42c=_0x58ee4a;super(_0x395fec,_0x1887dd,_0x10735d,_0x89016e,_0xde9a0f,_0x645e84,_0x5dbe2b,_0x310a0d,_0x143e34),u(this,_0x52b42c(0x369),_0x52b42c(0xdb)),(this[_0x52b42c(0x29e)]=_0x266ce0,this[_0x52b42c(0x416)]=_0x5516f7,this[_0x52b42c(0x43a)]=_0x28eb25,this[_0x52b42c(0x2bd)]=_0x3bd0e0,this[_0x52b42c(0x39a)]=_0x514446);}[_0x58ee4a(0x195)](_0x1c95e1){const _0xda32e2=_0x58ee4a;try{const _0x340518=[..._0x1c95e1,...this[_0xda32e2(0x416)]],_0x380219=[this[_0xda32e2(0x441)]||this['_acknowledgedAwaitingChangeset']]['filter'](_0x29d523=>!!_0x29d523);let _0x186b4d,_0x1c3233;if(_0x380219[_0xda32e2(0x4bb)]){const _0x4885f7=this[_0xda32e2(0x39a)]['transformChangesets'](_0x340518,_0x380219,!0x1);if(!_[_0xda32e2(0x239)](_0x4885f7))throw _0x4885f7['error'];_0x186b4d=_0x4885f7[_0xda32e2(0x376)],_0x1c3233=_0x4885f7[_0xda32e2(0x47c)];}else _0x186b4d=_0x340518,_0x1c3233=[];let _0x2a1093=this['_pendingMutations'];_0x186b4d[_0xda32e2(0x4c2)](_0xd1e3f5=>{const _0x5f37f5=_0xda32e2;let _0x120399;if(_0x2a1093[_0x5f37f5(0x4bb)]){const _0x180747=this[_0x5f37f5(0x39a)][_0x5f37f5(0x15d)](_0xd1e3f5,_0x2a1093);if(!_[_0x5f37f5(0x226)](_0x180747))throw _0x180747[_0x5f37f5(0x427)];_0x120399=_0x180747[_0x5f37f5(0x376)],_0x2a1093=_0x180747[_0x5f37f5(0x2e8)];}else _0x120399=_0xd1e3f5;this[_0x5f37f5(0x407)](_0x120399);}),this[_0xda32e2(0x29e)]&&this[_0xda32e2(0x1e7)](),this[_0xda32e2(0x441)]&&_0x1c3233[_0xda32e2(0x4bb)]&&(_0x1c3233[0x0][_0xda32e2(0x1df)]=this[_0xda32e2(0x4dd)]());let _0x3516fd;if(this[_0xda32e2(0x441)]&&_0x2a1093[_0xda32e2(0x4bb)]!==0x0)_0x3516fd=this[_0xda32e2(0x43a)][_0xda32e2(0x370)](F,this[_0xda32e2(0x4a1)],this[_0xda32e2(0x1f0)],_0x1c3233[0x0],_0x2a1093,this['_handler'],void 0x0);else{if(this[_0xda32e2(0x441)]&&_0x2a1093[_0xda32e2(0x4bb)]===0x0)_0x1c3233[0x0][_0xda32e2(0x1df)]=this['_getCurrentRevision'](),_0x3516fd=this[_0xda32e2(0x43a)][_0xda32e2(0x370)](Y,this[_0xda32e2(0x4a1)],this[_0xda32e2(0x1f0)],_0x1c3233[0x0],this[_0xda32e2(0x11b)]);else{if(_0x2a1093['length']!==0x0){const _0x48a609=this[_0xda32e2(0x43a)][_0xda32e2(0x370)](W,this[_0xda32e2(0x4a1)],this['type'],_0x2a1093,this[_0xda32e2(0x11b)]);_0x48a609[_0xda32e2(0x30f)](),_0x3516fd=_0x48a609;}else _0x3516fd=this[_0xda32e2(0x43a)]['createInstance'](re,this['unitID'],this[_0xda32e2(0x1f0)],this['_handler']);}}return _0x3516fd[_0xda32e2(0x37a)](),_0x3516fd;}catch(_0x2dfc06){return this[_0xda32e2(0x2bd)][_0xda32e2(0x427)]('[FetchMissState]',_0xda32e2(0x21f),_0x2dfc06),this[_0xda32e2(0x43a)][_0xda32e2(0x370)](K,this[_0xda32e2(0x4a1)],this[_0xda32e2(0x1f0)],this[_0xda32e2(0x441)],this['_pendingMutations'],this['_handler'],!0x1);}}[_0x58ee4a(0x10a)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x58ee4a(0xf2)](_0x7c6a83){const _0x216728=_0x58ee4a;return this['_pendingMutations'][_0x216728(0x10b)](_0x7c6a83),this;}[_0x58ee4a(0x16e)](_0x124ba6){return this['_queuedRemoteChangesets']['push'](_0x124ba6),this;}[_0x58ee4a(0x323)](_0x27f3f2){const _0x4020a2=_0x58ee4a;if(this['_awaitingChangeset'])return this[_0x4020a2(0x29e)]=this[_0x4020a2(0x441)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x58ee4a(0x1d2)](_0x52a031){const _0x32e1c0=_0x58ee4a;return this[_0x32e1c0(0x2d9)](!!(_0x52a031!=null&&_0x52a031[_0x32e1c0(0x448)]));}[_0x58ee4a(0x13d)](){return this;}['toggleOffline'](){const _0x5ea9ef=_0x58ee4a;return this[_0x5ea9ef(0x43a)]['createInstance'](X,this['unitID'],this[_0x5ea9ef(0x1f0)],this[_0x5ea9ef(0x441)],this['_pendingMutations'],this[_0x5ea9ef(0x11b)]);}[_0x58ee4a(0x19d)](){return this;}[_0x58ee4a(0x2d9)](_0x20b993){const _0x593e5c=_0x58ee4a;return this[_0x593e5c(0x43a)][_0x593e5c(0x370)](K,this[_0x593e5c(0x4a1)],this[_0x593e5c(0x1f0)],this[_0x593e5c(0x441)],this[_0x593e5c(0x1fd)],this['_handler'],_0x20b993);}};k=Z([g(0x7,a['Inject'](a['Injector'])),g(0x8,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x2f7)])),g(0x9,a['Inject'](exports['LocalCacheService'])),g(0xa,a['ILogService']),g(0xb,a[_0x58ee4a(0x21b)]),g(0xc,a[_0x58ee4a(0x222)]),g(0xd,_[_0x58ee4a(0x3ee)])],k);function Pt(_0x33c575,_0x2d968a,_0x4180c8,_0x42a5e4,_0x28f513,_0x2a51aa){const _0x380b8a=_0x58ee4a;return _0x42a5e4&&_0x28f513[_0x380b8a(0x4bb)]?_0x33c575[_0x380b8a(0x370)](F,_0x2d968a,_0x4180c8,_0x42a5e4,_0x28f513,_0x2a51aa,void 0x0):_0x42a5e4?_0x33c575[_0x380b8a(0x370)](Y,_0x2d968a,_0x4180c8,_0x42a5e4,_0x2a51aa):_0x28f513[_0x380b8a(0x4bb)]?_0x33c575[_0x380b8a(0x370)](W,_0x2d968a,_0x4180c8,_0x28f513,_0x2a51aa):_0x33c575['createInstance'](re,_0x2d968a,_0x4180c8,_0x2a51aa);}var Xs=Object['defineProperty'],qs=Object[_0x58ee4a(0x3f5)],qe=(_0xe6e904,_0x3b217f,_0x13cf63,_0x46e5bc)=>{const _0x24949a=_0x58ee4a;for(var _0x11954d=_0x46e5bc>0x1?void 0x0:_0x46e5bc?qs(_0x3b217f,_0x13cf63):_0x3b217f,_0x2bca2d=_0xe6e904[_0x24949a(0x4bb)]-0x1,_0x32ca37;_0x2bca2d>=0x0;_0x2bca2d--)(_0x32ca37=_0xe6e904[_0x2bca2d])&&(_0x11954d=(_0x46e5bc?_0x32ca37(_0x3b217f,_0x13cf63,_0x11954d):_0x32ca37(_0x11954d))||_0x11954d);return _0x46e5bc&&_0x11954d&&Xs(_0x3b217f,_0x13cf63,_0x11954d),_0x11954d;},p=(_0x3de7de,_0x2f6c6b)=>(_0x2367cd,_0x54d793)=>_0x2f6c6b(_0x2367cd,_0x54d793,_0x3de7de);exports[_0x58ee4a(0x2dc)]=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x4bde3c,_0x28c23d,_0x313e82,_0x46bec8,_0x501240,_0x54c369,_0x4b4cae,_0x2761f3,_0x5947e0,_0x1a715c,_0x40e3f6,_0x5c8aeb,_0x155235){const _0x4231e0=_0x58ee4a;super(),u(this,_0x4231e0(0x158),new v[(_0x4231e0(0x297))](null)),u(this,_0x4231e0(0x188),this['_state$'][_0x4231e0(0x396)]()),u(this,_0x4231e0(0x403)),u(this,'_collaborationPaused',!0x1),u(this,_0x4231e0(0x4ff),''),u(this,_0x4231e0(0x15e),0x0),u(this,_0x4231e0(0xca),this[_0x4231e0(0x188)][_0x4231e0(0xd9)](v['map'](_0x1a3fa7=>_0x1a3fa7?_0x1a3fa7[_0x4231e0(0x369)]:D['OFFLINE']),v[_0x4231e0(0x23a)](0x1))),u(this,_0x4231e0(0x2d7),!0x1),u(this,_0x4231e0(0x1a2),[]),(this[_0x4231e0(0x4a1)]=_0x4bde3c,this[_0x4231e0(0x1cc)]=_0x28c23d,this['_type']=_0x313e82,this['_injector']=_0x46bec8,this['_localCacheService']=_0x501240,this[_0x4231e0(0x48d)]=_0x54c369,this['_localeService']=_0x4b4cae,this[_0x4231e0(0x1bb)]=_0x2761f3,this[_0x4231e0(0x2bd)]=_0x5947e0,this[_0x4231e0(0x325)]=_0x1a715c,this[_0x4231e0(0x171)]=_0x40e3f6,this['_permissionService']=_0x5c8aeb,this[_0x4231e0(0x140)]=_0x155235);}get[_0x58ee4a(0x4c3)](){const _0x5f58b1=_0x58ee4a;return this[_0x5f58b1(0x403)];}async[_0x58ee4a(0x217)](){const _0x45bdb6=_0x58ee4a;if(this['state'])throw new Error(_0x45bdb6(0xf6));await this[_0x45bdb6(0x34a)]();}[_0x58ee4a(0x1ed)](){const _0x451941=_0x58ee4a;return this[_0x451941(0x4b3)]=!0x0,a[_0x451941(0x4fa)](()=>{const _0x9db09e=_0x451941;this[_0x9db09e(0x4b3)]=!0x1,this[_0x9db09e(0x2b4)]();});}[_0x58ee4a(0x3eb)](_0x5efbb9){const _0x1248d7=_0x58ee4a;this[_0x1248d7(0x403)]=_0x5efbb9,this['_state$']['next'](_0x5efbb9);}async['_init'](){const _0x13071d=_0x58ee4a;var _0x33584e;this['_updateState'](await this[_0x13071d(0x4bc)]()),this[_0x13071d(0x140)]&&((_0x33584e=this[_0x13071d(0x140)])==null||_0x33584e['editingUnit'](this[_0x13071d(0x4a1)]),this['disposeWithMe'](this[_0x13071d(0x140)][_0x13071d(0x304)](this[_0x13071d(0x4a1)])[_0x13071d(0x3fa)](_0x3bc744=>{const _0x3f9bb4=_0x13071d;this['_logService'][_0x3f9bb4(0x254)]('[CollaborationEntity]',_0x3f9bb4(0x45d),_0x3bc744),_0x3bc744===Ot[_0x3f9bb4(0x367)]?(this['_messageService'][_0x3f9bb4(0x208)]({'content':this[_0x3f9bb4(0x32e)]['t'](_0x3f9bb4(0x2cc)),'type':J[_0x3f9bb4(0x228)][_0x3f9bb4(0x3ab)]}),this[_0x3f9bb4(0x1c3)][_0x3f9bb4(0x389)](new C[(_0x3f9bb4(0x3e5))](this[_0x3f9bb4(0x4a1)])['id'],!0x1),this[_0x3f9bb4(0x1c3)]['setShowComponents'](!0x1)):(this[_0x3f9bb4(0x1c3)]['updatePermissionPoint'](new C['WorkbookEditablePermission'](this[_0x3f9bb4(0x4a1)])['id'],!0x0),this[_0x3f9bb4(0x1c3)][_0x3f9bb4(0x380)](!0x0));})));let _0xf12133=!0x1;return this[_0x13071d(0x281)](this[_0x13071d(0x1cc)]['sessionStatus$'][_0x13071d(0x3fa)](_0x17a120=>{const _0x10881f=_0x13071d;_0x17a120===x[_0x10881f(0x267)]?this['_toggleOnline'](_0xf12133):_0x17a120===x[_0x10881f(0x4fb)]&&(_0xf12133=!0x0,this['_toggleOffline']());})),this['disposeWithMe'](this['session'][_0x13071d(0x1c7)]['subscribe'](_0x3f784e=>{const _0x515609=_0x13071d;try{switch(_0x3f784e[_0x515609(0x342)]){case _[_0x515609(0x2af)][_0x515609(0x20a)]:{this[_0x515609(0x12e)](_['parseProtocolChangeset'](_0x3f784e[_0x515609(0x40f)]));break;}case _['CollaborationEvent'][_0x515609(0x1c8)]:{this['_onRemoteACK'](_0x3f784e[_0x515609(0x40f)]);break;}case _['CollaborationEvent'][_0x515609(0xd1)]:{this[_0x515609(0x4c1)]();break;}case _[_0x515609(0x2af)][_0x515609(0x34f)]:{this[_0x515609(0x365)](_0x3f784e[_0x515609(0x40f)]);break;}case _[_0x515609(0x2af)]['PSEUDO_FETCH_MISSING_RESULT']:{this[_0x515609(0x4e2)](_0x3f784e[_0x515609(0x40f)]['changesets'][_0x515609(0x34c)](_0x4ef1d4=>_[_0x515609(0x180)](_0x4ef1d4)));break;}case _[_0x515609(0x2af)]['PERMISSION_REJ']:this[_0x515609(0x4c1)]({'isPermissionRej':!0x0});}}catch(_0x374b57){throw console['error'](_0x515609(0x4cb),_0x374b57),_0x374b57;}})),this['_state'];}[_0x58ee4a(0x361)](){this['_transitionLocked']=!0x1;}['_lockTransition'](){const _0x4801b4=_0x58ee4a;if(this['_transitionLocked'])throw new Error(_0x4801b4(0x2c0));this[_0x4801b4(0x2d7)]=!0x0;}[_0x58ee4a(0x38e)](_0x4cd6b2){const _0x18258a=_0x58ee4a;this[_0x18258a(0x1d3)](),this['_updateState'](this[_0x18258a(0x403)][_0x18258a(0xf2)](_0x4cd6b2)),this[_0x18258a(0x361)]();}[_0x58ee4a(0x12e)](_0x5e8450){const _0x33862f=_0x58ee4a;if(!(_0x5e8450[_0x33862f(0x328)]<=this['_revisionService'][_0x33862f(0x4da)](this[_0x33862f(0x4a1)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x33862f(0x10b)](_0x5e8450);return;}this[_0x33862f(0x2d5)](_0x5e8450);}}[_0x58ee4a(0x2b4)](){const _0x1e0748=_0x58ee4a;this[_0x1e0748(0x1a2)][_0x1e0748(0x4c2)](_0x5996c0=>this[_0x1e0748(0x2d5)](_0x5996c0)),this[_0x1e0748(0x1a2)]=[];}['_applyRemoteChangeset'](_0xc98a0a){const _0x4bcb00=_0x58ee4a,_0x8dfc25=this[_0x4bcb00(0x48d)][_0x4bcb00(0x209)][_0x4bcb00(0x2fa)](this['_compressMutationService'][_0x4bcb00(0x209)]['getInterceptPoints']()[_0x4bcb00(0x3d3)])(_0xc98a0a[_0x4bcb00(0x3f1)],null)||_0xc98a0a['mutations'],_0x568aca={..._0xc98a0a,'mutations':_0x8dfc25};this['_lockTransition'](),this[_0x4bcb00(0x3eb)](this[_0x4bcb00(0x403)][_0x4bcb00(0x16e)](_0x568aca)),this[_0x4bcb00(0x361)]();}[_0x58ee4a(0x1e6)](_0x726c8c){const _0x50cb26=_0x58ee4a;this[_0x50cb26(0x1d3)](),this['_updateState'](this[_0x50cb26(0x403)][_0x50cb26(0x323)](_0x726c8c)),this[_0x50cb26(0x361)]();}[_0x58ee4a(0x4c1)](_0x157db4){const _0x47dd4d=_0x58ee4a;this['_lockTransition'](),this[_0x47dd4d(0x3eb)](this['_state'][_0x47dd4d(0x1d2)](_0x157db4)),this[_0x47dd4d(0x361)]();}['_onRemoteRetry'](_0x256ffe){const _0x5f2103=_0x58ee4a;this[_0x5f2103(0x1d3)](),this['_updateState'](this[_0x5f2103(0x403)]['onRemoteRetry'](_0x256ffe)),this[_0x5f2103(0x361)]();}[_0x58ee4a(0x4e2)](_0x260df5){const _0x3ca12f=_0x58ee4a;if(!(this['_state']instanceof k))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x4759e1=_0x260df5[_0x3ca12f(0x34c)](_0x3ae301=>{const _0x26e13d=_0x3ca12f,_0x512c03=this['_compressMutationService']['interceptor'][_0x26e13d(0x2fa)](this[_0x26e13d(0x48d)]['interceptor'][_0x26e13d(0xed)]()['COMPRESS_MUTATION_APPLY'])(_0x3ae301[_0x26e13d(0x3f1)],null)||_0x3ae301['mutations'];return{..._0x3ae301,'mutations':_0x512c03};});this['_lockTransition'](),this[_0x3ca12f(0x3eb)](this[_0x3ca12f(0x403)][_0x3ca12f(0x195)](_0x4759e1)),this[_0x3ca12f(0x361)]();}[_0x58ee4a(0x205)](){const _0x5b311e=_0x58ee4a;this['_lockTransition'](),this[_0x5b311e(0x3eb)](this['_state'][_0x5b311e(0x240)]()),this[_0x5b311e(0x361)]();}[_0x58ee4a(0x4b4)](_0x27aa90=!0x1){const _0x5ebe2c=_0x58ee4a;this['_lockTransition'](),this['_updateState'](this[_0x5ebe2c(0x403)][_0x5ebe2c(0x19d)]()),this[_0x5ebe2c(0x361)]();const _0x474e7c=this[_0x5ebe2c(0x403)];_0x27aa90&&_0x474e7c instanceof re&&(this[_0x5ebe2c(0x1d3)](),this[_0x5ebe2c(0x3eb)](_0x474e7c[_0x5ebe2c(0x194)]()),this[_0x5ebe2c(0x361)]());}async[_0x58ee4a(0x4bc)](){return new Promise(_0xfb1302=>{const _0xb99d2a=_0x5d3e;this['session'][_0xb99d2a(0x40d)]['pipe'](v['take'](0x1))[_0xb99d2a(0x3fa)](async _0x7e653c=>{const _0x2d46d3=_0xb99d2a;_0xfb1302(await this[_0x2d46d3(0x247)](_0x7e653c===x[_0x2d46d3(0x267)]));});});}[_0x58ee4a(0xfe)](){const _0x680e1d=_0x58ee4a,_0x2cd13e=this[_0x680e1d(0x4a1)];return{'onStateChange':(_0x171b34,_0x430734)=>{const _0x47f28e=_0x680e1d;if(_0x171b34!==this[_0x47f28e(0x403)])throw new Error(_0x47f28e(0x2f2)+_0x171b34[_0x47f28e(0x369)]+_0x47f28e(0x41e)+_0x430734[_0x47f28e(0x369)]+_0x47f28e(0x2c8)+this['_state'][_0x47f28e(0x369)]);this[_0x47f28e(0x3eb)](_0x430734);},'onSendChangeset':_0x2de3de=>{const _0x226a53=_0x680e1d;_0x2de3de[_0x226a53(0x1b8)]||(_0x2de3de[_0x226a53(0x1b8)]=this[_0x226a53(0x4ff)],_0x2de3de['reqId']=++this[_0x226a53(0x15e)]);const _0x207f13={'eventID':_[_0x226a53(0x2af)][_0x226a53(0x224)],'data':{'unitID':_0x2de3de[_0x226a53(0x4a1)],'unitType':this[_0x226a53(0x3de)],'changeset':_0x2de3de,'memberID':this[_0x226a53(0x1cc)][_0x226a53(0x16f)]()}};this[_0x226a53(0x1cc)][_0x226a53(0x3ce)](_0x207f13,this[_0x226a53(0x4a1)]);},'onMissingChangesets':({from:_0x2a8047,to:_0x5ce1ca})=>{const _0x2584ee=_0x680e1d;this['_logService'][_0x2584ee(0x254)](_0x2584ee(0x2bf),'fetching\x20missing\x20changesets\x20from\x20'+_0x2a8047+'\x20to\x20'+_0x5ce1ca);const _0x301c6f={'eventID':_[_0x2584ee(0x2af)][_0x2584ee(0x250)],'data':{'unitID':_0x2cd13e,'unitType':this[_0x2584ee(0x3de)],'from':_0x2a8047,'to':_0x5ce1ca}};this[_0x2584ee(0x1cc)][_0x2584ee(0x3ce)](_0x301c6f,this[_0x2584ee(0x4a1)]);}};}async[_0x58ee4a(0x247)](_0x4de5b8){const _0x4ea18c=_0x58ee4a;var _0x5e4978,_0x2291b8;const _0x24ce75=await this['_localCacheService'][_0x4ea18c(0x4d5)](this[_0x4ea18c(0x4a1)]),_0xf31c81=(_0x5e4978=_0x24ce75==null?void 0x0:_0x24ce75[_0x4ea18c(0x3f1)])!=null?_0x5e4978:[],_0x3decac=(_0x2291b8=_0x24ce75==null?void 0x0:_0x24ce75[_0x4ea18c(0x340)])!=null?_0x2291b8:null,_0x191500=!!(_0x3decac!=null&&_0x3decac[_0x4ea18c(0x1b8)])&&!!(_0x3decac!=null&&_0x3decac['reqId']);this[_0x4ea18c(0x4ff)]=_0x191500?_0x3decac['sid']:Ds(),this['_changesetReqId']=_0x191500?_0x3decac[_0x4ea18c(0x2c6)]:0x0;const _0x343ea7=this[_0x4ea18c(0x4a1)];try{this[_0x4ea18c(0x384)](_0x3decac,_0xf31c81);}catch(_0x476649){this[_0x4ea18c(0x2bd)][_0x4ea18c(0x427)](_0x476649);}const _0x2bae5c=this[_0x4ea18c(0xfe)]();if(_0x4de5b8){const _0x5a7a87=Pt(this[_0x4ea18c(0x43a)],_0x343ea7,this[_0x4ea18c(0x3de)],_0x3decac,_0xf31c81,_0x2bae5c);return _0x5a7a87 instanceof W?_0x5a7a87[_0x4ea18c(0x30f)]():(_0x5a7a87 instanceof F||_0x5a7a87 instanceof Y)&&_0x5a7a87[_0x4ea18c(0x10a)](),_0x5a7a87;}return this[_0x4ea18c(0x43a)]['createInstance'](X,_0x343ea7,this[_0x4ea18c(0x3de)],_0x3decac,_0xf31c81,_0x2bae5c);}[_0x58ee4a(0x384)](_0x5d183d,_0x4d4279){const _0x1134e1=_0x58ee4a;var _0x2b287d,_0xfafb5b;const _0x3c9031=this['_compressMutationService'][_0x1134e1(0x209)]['fetchThroughInterceptors'](this[_0x1134e1(0x48d)][_0x1134e1(0x209)][_0x1134e1(0xed)]()[_0x1134e1(0x3d3)]);(_0x2b287d=_0x3c9031((_0x5d183d==null?void 0x0:_0x5d183d[_0x1134e1(0x3f1)])||[],null))==null||_0x2b287d[_0x1134e1(0x4c2)](_0xa0bd51=>this[_0x1134e1(0x325)][_0x1134e1(0x245)](_0xa0bd51['id'],_0xa0bd51[_0x1134e1(0x19e)])),(_0xfafb5b=_0x3c9031(_0x4d4279||[],null))==null||_0xfafb5b[_0x1134e1(0x4c2)](_0x489fd0=>this[_0x1134e1(0x325)]['executeCommand'](_0x489fd0['id'],_0x489fd0[_0x1134e1(0x19e)]));}},exports['CollaborationEntity']=qe([p(0x3,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),p(0x4,a[_0x58ee4a(0x2ee)](exports['LocalCacheService'])),p(0x5,a[_0x58ee4a(0x2ee)](_['CompressMutationService'])),p(0x6,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x32b)])),p(0x7,a['Inject'](_[_0x58ee4a(0x2f7)])),p(0x8,a['ILogService']),p(0x9,a[_0x58ee4a(0x21b)]),p(0xa,A[_0x58ee4a(0x499)]),p(0xb,a[_0x58ee4a(0x161)]),p(0xc,a['Optional'](Re))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0x36151b,_0x1b94ca,_0x316c4c,_0x32d132,_0x23c7a8,_0x51ec81,_0x49618a,_0x5a6c35,_0x2d56d1,_0x421123,_0x1c4361,_0x222529,_0x52e779,_0x5eaf3e,_0x1d8c94,_0x19efdd,_0x36757b){const _0x36c6ef=_0x58ee4a;super(_0x36151b,_0x316c4c,_0x1b94ca,_0x32d132,_0x23c7a8,_0x51ec81,_0x49618a,_0x5a6c35,_0x52e779,_0x5eaf3e,_0x1d8c94,_0x19efdd,_0x36757b),this[_0x36c6ef(0x4a1)]=_0x36151b,this[_0x36c6ef(0x1f0)]=_0x1b94ca,this[_0x36c6ef(0x193)]=_0x2d56d1,this['_docTransformIMECacheService']=_0x421123,this[_0x36c6ef(0x4ed)]=_0x1c4361,this[_0x36c6ef(0x189)]=_0x222529;}[_0x58ee4a(0xfe)](){const _0x2f624a=_0x58ee4a,_0x4d8450=super[_0x2f624a(0xfe)]();return _0x4d8450[_0x2f624a(0x355)]=_0x356b53=>this[_0x2f624a(0x27b)][_0x2f624a(0x4e6)](_0x356b53),_0x4d8450[_0x2f624a(0x2ef)]=_0x561b52=>this[_0x2f624a(0x4ed)][_0x2f624a(0x202)](_0x561b52),_0x4d8450['onSyncEditingCollabCursor']=_0x2006a1=>this['_docSyncEditingCollabCursorService'][_0x2f624a(0x4d1)](_0x2006a1),_0x4d8450['onTransformRemoteChangesetByIMECache']=_0x423953=>this[_0x2f624a(0x27b)]['transformRemoteChangeset'](_0x423953),_0x4d8450;}async[_0x58ee4a(0x34a)](){const _0x122b89=_0x58ee4a,_0x238c76=await super[_0x122b89(0x34a)]();return this[_0x122b89(0x193)][_0x122b89(0xc9)]['pipe'](v[_0x122b89(0x435)](this[_0x122b89(0x1e4)]))[_0x122b89(0x3fa)](_0x1a24d8=>{const _0x35eee4=_0x122b89;if(_0x1a24d8==null)return;const {unitId:_0x369b50,redoState:_0x24477c,commandId:_0x17fad4}=_0x1a24d8;if(_0x369b50!==this['unitID'])return;const _0x29b4a7={'id':_0x17fad4,'type':a[_0x35eee4(0x12c)]['MUTATION'],'params':{'unitId':_0x369b50,'actions':_0x24477c[_0x35eee4(0x4d4)],'textRanges':null}};this[_0x35eee4(0x38e)](_0x29b4a7);}),_0x238c76;}},exports[_0x58ee4a(0x47f)]=qe([p(0x3,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x31d)])),p(0x4,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x498)])),p(0x5,a['Inject'](_[_0x58ee4a(0x10d)])),p(0x6,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x32b)])),p(0x7,a['Inject'](_[_0x58ee4a(0x2f7)])),p(0x8,a['Inject'](N['DocStateChangeManagerService'])),p(0x9,a[_0x58ee4a(0x2ee)](fe)),p(0xa,a[_0x58ee4a(0x2ee)](pe)),p(0xb,a[_0x58ee4a(0x2ee)](Xe)),p(0xc,a[_0x58ee4a(0x220)]),p(0xd,a['ICommandService']),p(0xe,A['IMessageService']),p(0xf,a['IPermissionService']),p(0x10,a[_0x58ee4a(0x293)](Re))],exports[_0x58ee4a(0x47f)]),exports['SheetCollaborationEntity']=class extends exports[_0x58ee4a(0x2dc)]{constructor(_0x295eb5,_0x3d0cd6,_0x16ec21,_0x5b65d9,_0x20f75f,_0x245528,_0xd7ad3f,_0x50576f,_0x17fa16,_0x4e73f1,_0x217a3f,_0x3586ee,_0x43a464,_0x1a48de){const _0x1b94d5=_0x58ee4a;super(_0x295eb5,_0x16ec21,_0x3d0cd6,_0x5b65d9,_0x20f75f,_0x245528,_0xd7ad3f,_0x50576f,_0x4e73f1,_0x217a3f,_0x3586ee,_0x43a464,_0x1a48de),this[_0x1b94d5(0x4a1)]=_0x295eb5,this[_0x1b94d5(0x1f0)]=_0x3d0cd6,this[_0x1b94d5(0x44d)]=_0x17fa16;}[_0x58ee4a(0xfe)](){const _0x4d7830=_0x58ee4a,_0x94aa54=super['_createHandler']();return _0x94aa54['onTransformSelections']=_0x1c0e72=>this[_0x4d7830(0x44d)]['transformSelections'](_0x1c0e72),_0x94aa54;}async['_init'](){const _0x126adb=_0x58ee4a,_0x3b942a=await super[_0x126adb(0x34a)]();return this['disposeWithMe'](this[_0x126adb(0x325)][_0x126adb(0x23c)]((_0x465bce,_0x50c52f)=>{const _0x9d0cbb=_0x126adb;if(_0x465bce['type']!==a[_0x9d0cbb(0x12c)][_0x9d0cbb(0x47a)]||_0x50c52f!=null&&_0x50c52f[_0x9d0cbb(0x469)]||_0x50c52f!=null&&_0x50c52f[_0x9d0cbb(0x2d8)])return;const _0x338ab5=_0x465bce['params'];if((_0x338ab5==null?void 0x0:_0x338ab5[_0x9d0cbb(0x14a)])!==this[_0x9d0cbb(0x4a1)])return;const _0x2d9b7a=_0x465bce,_0x50299c=this[_0x9d0cbb(0x48d)][_0x9d0cbb(0x209)][_0x9d0cbb(0x2fa)](this[_0x9d0cbb(0x48d)]['interceptor'][_0x9d0cbb(0xed)]()[_0x9d0cbb(0x2f1)])([_0x2d9b7a],null)||[_0x2d9b7a];this[_0x9d0cbb(0x38e)](_0x50299c[0x0]);})),_0x3b942a;}},exports[_0x58ee4a(0x216)]=qe([p(0x3,a['Inject'](a[_0x58ee4a(0x31d)])),p(0x4,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0x498)])),p(0x5,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x10d)])),p(0x6,a[_0x58ee4a(0x2ee)](a['LocaleService'])),p(0x7,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x2f7)])),p(0x8,a['Inject'](Ie)),p(0x9,a[_0x58ee4a(0x220)]),p(0xa,a[_0x58ee4a(0x21b)]),p(0xb,A['IMessageService']),p(0xc,a[_0x58ee4a(0x161)]),p(0xd,a[_0x58ee4a(0x293)](Re))],exports[_0x58ee4a(0x216)]);function _0x5d3e(_0x6b1eea,_0x37c497){const _0x218ea8=_0x218e();return _0x5d3e=function(_0x5d3e43,_0x15134d){_0x5d3e43=_0x5d3e43-0xbf;let _0x2351fa=_0x218ea8[_0x5d3e43];return _0x2351fa;},_0x5d3e(_0x6b1eea,_0x37c497);}var zs=Object[_0x58ee4a(0x185)],Js=Object[_0x58ee4a(0x3f5)],Zs=(_0x1a2708,_0x3da448,_0x54c164,_0xa6deda)=>{const _0x46e207=_0x58ee4a;for(var _0x27e89f=_0xa6deda>0x1?void 0x0:_0xa6deda?Js(_0x3da448,_0x54c164):_0x3da448,_0x509421=_0x1a2708[_0x46e207(0x4bb)]-0x1,_0x111826;_0x509421>=0x0;_0x509421--)(_0x111826=_0x1a2708[_0x509421])&&(_0x27e89f=(_0xa6deda?_0x111826(_0x3da448,_0x54c164,_0x27e89f):_0x111826(_0x27e89f))||_0x27e89f);return _0xa6deda&&_0x27e89f&&zs(_0x3da448,_0x54c164,_0x27e89f),_0x27e89f;},we=(_0x45838b,_0x3d8cff)=>(_0x544d73,_0x2b157b)=>_0x3d8cff(_0x544d73,_0x2b157b,_0x45838b);exports[_0x58ee4a(0x3e3)]=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x57cbb9,_0x41e5cc,_0x41bce2){const _0x5a7ff0=_0x58ee4a;super(),u(this,_0x5a7ff0(0x24b),new Map()),u(this,_0x5a7ff0(0x2b7),new v['Subject']()),(this[_0x5a7ff0(0x43a)]=_0x57cbb9,this['_collabSessionService']=_0x41e5cc,this[_0x5a7ff0(0x135)]=_0x41bce2,this[_0x5a7ff0(0x34a)]());}[_0x58ee4a(0x123)](){const _0x10f9ef=_0x58ee4a;super[_0x10f9ef(0x123)](),this['_entities'][_0x10f9ef(0x4c2)](_0x25887d=>_0x25887d[_0x10f9ef(0x123)]()),this[_0x10f9ef(0x24b)][_0x10f9ef(0x3dd)]();}[_0x58ee4a(0x11f)](_0x3af515){const _0xc460b1=_0x58ee4a;var _0x43d4a2;return(_0x43d4a2=this[_0xc460b1(0x24b)][_0xc460b1(0x129)](_0x3af515))!=null?_0x43d4a2:null;}[_0x58ee4a(0x286)](_0x15a152){const _0x38ca88=_0x58ee4a,_0x3620b9=this[_0x38ca88(0x11f)](_0x15a152);return _0x3620b9?v['of'](_0x3620b9):this[_0x38ca88(0x2b7)][_0x38ca88(0xd9)](E['filter'](_0x251892=>_0x251892[_0x38ca88(0x4a1)]===_0x15a152));}[_0x58ee4a(0x34a)](){const _0x33faa1=_0x58ee4a;this[_0x33faa1(0x135)][_0x33faa1(0x1ef)](a['UniverInstanceType'][_0x33faa1(0x44a)])['pipe'](v[_0x33faa1(0x435)](this[_0x33faa1(0x1e4)]),E[_0x33faa1(0x2fd)](0x10))[_0x33faa1(0x3fa)](async _0x23c71d=>{const _0x1194cf=_0x33faa1,_0x1361f1=_0x23c71d[_0x1194cf(0x33f)](),_0xf15ab3=await this[_0x1194cf(0x1dc)](_0x1361f1,H[_0x1194cf(0x44a)]);this[_0x1194cf(0x24b)][_0x1194cf(0x1e3)](_0x1361f1,_0xf15ab3);}),this[_0x33faa1(0x135)][_0x33faa1(0x1ef)](a[_0x33faa1(0x1fa)]['UNIVER_DOC'])['pipe'](v['takeUntil'](this[_0x33faa1(0x1e4)]),E['delay'](0x10))[_0x33faa1(0xd9)](E['filter'](_0x146ee8=>!_0x146ee8[_0x33faa1(0x33f)]()[_0x33faa1(0x4f5)]('__')))[_0x33faa1(0x3fa)](async _0x54bf98=>{const _0x223200=_0x33faa1,_0xc525df=_0x54bf98[_0x223200(0x33f)](),_0x42a37d=await this[_0x223200(0x1dc)](_0xc525df,H[_0x223200(0x437)]);this[_0x223200(0x24b)][_0x223200(0x1e3)](_0xc525df,_0x42a37d);}),v['merge'](this[_0x33faa1(0x135)][_0x33faa1(0x484)](a['UniverInstanceType'][_0x33faa1(0x44a)]),this[_0x33faa1(0x135)][_0x33faa1(0x484)](a[_0x33faa1(0x1fa)][_0x33faa1(0x437)]))[_0x33faa1(0xd9)](v[_0x33faa1(0x435)](this[_0x33faa1(0x1e4)]))[_0x33faa1(0x3fa)](_0x4edc1d=>{const _0x48dfe9=_0x33faa1,_0x42a6e6=_0x4edc1d[_0x48dfe9(0x33f)](),_0x3821cf=this['_entities'][_0x48dfe9(0x129)](_0x42a6e6);_0x3821cf&&(_0x3821cf[_0x48dfe9(0x123)](),this['_entities'][_0x48dfe9(0x1d5)](_0x42a6e6));});}async[_0x58ee4a(0x1dc)](_0x107015,_0x3e3125){const _0x150fa9=_0x58ee4a,_0x1180ec=await this[_0x150fa9(0x38c)][_0x150fa9(0xf3)](_0x107015),_0x544e89=this[_0x150fa9(0x43a)]['createInstance'](this['_getCtorByUniverType'](_0x3e3125),_0x107015,_0x3e3125,_0x1180ec);return await _0x544e89['init'](),this[_0x150fa9(0x2b7)][_0x150fa9(0x28b)](_0x544e89),_0x544e89;}[_0x58ee4a(0x351)](_0x5eebc4){const _0x16341b=_0x58ee4a;switch(_0x5eebc4){case H[_0x16341b(0x437)]:return exports['DocCollaborationEntity'];case H['UNIVER_SHEET']:return exports['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x5eebc4);}}},exports[_0x58ee4a(0x3e3)]=Zs([we(0x0,a[_0x58ee4a(0x2ee)](a['Injector'])),we(0x1,a[_0x58ee4a(0x2ee)](exports[_0x58ee4a(0xf9)])),we(0x2,a[_0x58ee4a(0x200)])],exports['CollaborationController']);const at=[_0x58ee4a(0x233),_0x58ee4a(0x388),_0x58ee4a(0x1c2),_0x58ee4a(0x28f),_0x58ee4a(0xc3),_0x58ee4a(0x37d)];class ze extends a['Disposable']{constructor(){const _0x110a18=_0x58ee4a;super(...arguments),u(this,'_assignedColors',new Map()),u(this,_0x110a18(0x43f),0x0);}[_0x58ee4a(0x497)](_0x3b80d2){const _0x2052fa=_0x58ee4a;if(this[_0x2052fa(0x3c2)][_0x2052fa(0x11d)](_0x3b80d2))return this[_0x2052fa(0x3c2)]['get'](_0x3b80d2);const _0x5e6e29=at[this[_0x2052fa(0x43f)]];return this[_0x2052fa(0x43f)]=(this[_0x2052fa(0x43f)]+0x1)%at['length'],this['_assignedColors'][_0x2052fa(0x1e3)](_0x3b80d2,_0x5e6e29),_0x5e6e29;}}var Qs=Object[_0x58ee4a(0x185)],ei=Object[_0x58ee4a(0x3f5)],ti=(_0x3a5fbd,_0x18c1d0,_0x56bdbe,_0x4f37f2)=>{const _0x120216=_0x58ee4a;for(var _0x36496e=_0x4f37f2>0x1?void 0x0:_0x4f37f2?ei(_0x18c1d0,_0x56bdbe):_0x18c1d0,_0x9d4014=_0x3a5fbd[_0x120216(0x4bb)]-0x1,_0x2de981;_0x9d4014>=0x0;_0x9d4014--)(_0x2de981=_0x3a5fbd[_0x9d4014])&&(_0x36496e=(_0x4f37f2?_0x2de981(_0x18c1d0,_0x56bdbe,_0x36496e):_0x2de981(_0x36496e))||_0x36496e);return _0x4f37f2&&_0x36496e&&Qs(_0x18c1d0,_0x56bdbe,_0x36496e),_0x36496e;},z=(_0x4f9e9d,_0x5078f4)=>(_0x2c3468,_0x1f4e27)=>_0x5078f4(_0x2c3468,_0x1f4e27,_0x4f9e9d);const si=0x12c,ii=0x64;let xe=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x1d558f,_0x4229cf,_0x33310e,_0x74ea37,_0x155930,_0x3a1af2,_0xdc404b,_0x205231,_0x16a28e){const _0x4fd6c2=_0x58ee4a;super(),u(this,_0x4fd6c2(0x1a8),!0x1),u(this,_0x4fd6c2(0x34a),!0x1),u(this,_0x4fd6c2(0x1c5),new v[(_0x4fd6c2(0x297))](new Map())),u(this,_0x4fd6c2(0x2e7),this[_0x4fd6c2(0x1c5)][_0x4fd6c2(0x396)]()),u(this,_0x4fd6c2(0x12b),new v[(_0x4fd6c2(0x297))]([])),u(this,_0x4fd6c2(0x436),this['_roomMembers$'][_0x4fd6c2(0xd9)](v['debounceTime'](si))),u(this,'_updateLocalCursor',a[_0x4fd6c2(0x37f)](_0x69d0dd=>{const _0x5ad2cd=_0x4fd6c2,_0x2e6db9={'eventID':_['CollaborationEvent'][_0x5ad2cd(0x4ba)],'data':{'unitID':this[_0x5ad2cd(0x4a1)],'memberID':this['_session'][_0x5ad2cd(0x16f)](),'selection':Dt(_0x69d0dd)}};this[_0x5ad2cd(0x399)][_0x5ad2cd(0x3ce)](_0x2e6db9,this[_0x5ad2cd(0x4a1)]);},ii)),(this[_0x4fd6c2(0x4a1)]=_0x1d558f,this[_0x4fd6c2(0x399)]=_0x4229cf,this['_injector']=_0x33310e,this[_0x4fd6c2(0x2ac)]=_0x74ea37,this[_0x4fd6c2(0x30b)]=_0x155930,this[_0x4fd6c2(0x26f)]=_0x3a1af2,this[_0x4fd6c2(0x39a)]=_0xdc404b,this[_0x4fd6c2(0x135)]=_0x205231,this[_0x4fd6c2(0x325)]=_0x16a28e);}get[_0x58ee4a(0x471)](){const _0x5936e4=_0x58ee4a;return this[_0x5936e4(0x1c5)][_0x5936e4(0x4e3)]();}get[_0x58ee4a(0x2b0)](){const _0x31147e=_0x58ee4a;return this[_0x31147e(0x12b)][_0x31147e(0x4e3)]();}[_0x58ee4a(0x123)](){const _0x409676=_0x58ee4a;super[_0x409676(0x123)](),this[_0x409676(0x1c5)][_0x409676(0x28b)](new Map()),this[_0x409676(0x1c5)][_0x409676(0x2ba)](),this['_roomMembers$'][_0x409676(0x28b)]([]),this[_0x409676(0x12b)][_0x409676(0x2ba)]();}[_0x58ee4a(0x217)](){const _0x56b325=_0x58ee4a;this[_0x56b325(0x34a)]||(this['_init']=!0x0,this[_0x56b325(0x399)][_0x56b325(0x40d)][_0x56b325(0xd9)](v[_0x56b325(0x435)](this[_0x56b325(0x1e4)]))['subscribe'](_0x2b4194=>{const _0x46a397=_0x56b325;_0x2b4194===x[_0x46a397(0x267)]?this['_toggleOnline']():this[_0x46a397(0x205)]();}),this[_0x56b325(0x399)][_0x56b325(0x1c7)]['pipe'](v[_0x56b325(0x435)](this['dispose$']))[_0x56b325(0x3fa)](_0x1ecf88=>{const _0x2dfdbc=_0x56b325,_0x39888f=_0x1ecf88[_0x2dfdbc(0x342)];_0x39888f===_[_0x2dfdbc(0x2af)][_0x2dfdbc(0x4ba)]&&this['_onCursorUpdate'](_0x1ecf88),_0x39888f===_[_0x2dfdbc(0x2af)][_0x2dfdbc(0x3f4)]&&this['_onCursorDelete'](_0x1ecf88);}),this[_0x56b325(0x281)](this[_0x56b325(0x325)][_0x56b325(0x23c)](_0x44419c=>{const _0x542e54=_0x56b325,_0x3aa964=_0x44419c[_0x542e54(0x19e)];_0x3aa964!=null&&this[_0x542e54(0x1a8)]&&_0x44419c['id']===ne[_0x542e54(0x223)]['id']&&_0x3aa964['unitId']===this[_0x542e54(0x4a1)]&&_0x3aa964[_0x542e54(0x4fd)]===!0x1&&_0x3aa964[_0x542e54(0x43d)][_0x542e54(0x4bb)]>0x0&&this[_0x542e54(0x1db)](_0x3aa964[_0x542e54(0x43d)]);})),this[_0x56b325(0x26f)][_0x56b325(0x36a)][_0x56b325(0xd9)](v[_0x56b325(0x435)](this[_0x56b325(0x1e4)]))[_0x56b325(0x3fa)](_0x3473eb=>{const _0x579e14=_0x56b325;if((_0x3473eb==null?void 0x0:_0x3473eb[_0x579e14(0x4a1)])!==this['unitID'])return;const _0x2e2476={'eventID':_[_0x579e14(0x2af)][_0x579e14(0x4ba)],'data':_0x3473eb};this[_0x579e14(0x356)](_0x2e2476);}),this[_0x56b325(0x281)](this[_0x56b325(0x325)]['onCommandExecuted'](_0xd3b9a7=>{const _0x3ad509=_0x56b325;if(_0xd3b9a7[_0x3ad509(0x19e)]==null)return;const _0x2d45cb=_0xd3b9a7[_0x3ad509(0x19e)];if(_0xd3b9a7['id']!==ne[_0x3ad509(0x2f9)]['id']||_0x2d45cb[_0x3ad509(0x14a)]!==this[_0x3ad509(0x4a1)])return;const _0x2b07b8={'id':_0x3ad509(0x3b7),'params':_0x2d45cb},_0x4832de=this[_0x3ad509(0x471)];for(const [_0x46e549,_0x34cbe8]of _0x4832de){const _0x692401={'id':'doc.mutation.rich-text-editing','params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x34cbe8['ranges']}},_0x45d579=this['_transformService']['transformMutation'](_0x2b07b8,_0x692401,!0x1);if(_[_0x3ad509(0x2b5)](_0x45d579))throw _0x45d579[_0x3ad509(0x427)];_0x4832de[_0x3ad509(0x1e3)](_0x46e549,{..._0x34cbe8,'ranges':_0x45d579[_0x3ad509(0x2e8)][_0x3ad509(0x19e)][_0x3ad509(0x21c)]});}queueMicrotask(()=>{const _0x22cc0b=_0x3ad509;this[_0x22cc0b(0x1c5)]['next'](_0x4832de);});})));}[_0x58ee4a(0x356)](_0x4ae00a){const _0x354a0a=_0x58ee4a;var _0x23965c,_0x33d6ee;const {memberID:_0x33494f,selection:_0x894d6f}=_0x4ae00a[_0x354a0a(0x40f)],_0x14bfa2=xs(_0x894d6f),_0x434102=(_0x33d6ee=(_0x23965c=this[_0x354a0a(0x30b)][_0x354a0a(0x1a6)](this['unitID'],_0x33494f))==null?void 0x0:_0x23965c[_0x354a0a(0xd6)])!=null?_0x33d6ee:_0x354a0a(0x104),_0x3f049b={'color':this[_0x354a0a(0x2ac)][_0x354a0a(0x497)](_0x33494f),'name':_0x434102,'ranges':_0x14bfa2},_0x17034c=this[_0x354a0a(0x471)];_0x17034c[_0x354a0a(0x1e3)](_0x33494f,_0x3f049b),this[_0x354a0a(0x1c5)][_0x354a0a(0x28b)](_0x17034c);}[_0x58ee4a(0x4f1)](_0x2a108f){const _0x3ba729=_0x58ee4a,{memberID:_0x61fbb9}=_0x2a108f['data'],_0x3ccdc9=this[_0x3ba729(0x471)];_0x3ccdc9[_0x3ba729(0x1d5)](_0x61fbb9),this[_0x3ba729(0x1c5)][_0x3ba729(0x28b)](_0x3ccdc9);}['_toggleOnline'](){const _0x271bae=_0x58ee4a;var _0x427463;if(this[_0x271bae(0x1a8)]=!0x0,((_0x427463=this[_0x271bae(0x135)]['getFocusedUnit']())==null?void 0x0:_0x427463[_0x271bae(0x33f)]())!==this[_0x271bae(0x4a1)])return;const _0x3be2d9=this['_injector'][_0x271bae(0x129)](ne[_0x271bae(0x3dc)])[_0x271bae(0x2a4)]();Array[_0x271bae(0x1f7)](_0x3be2d9)&&_0x3be2d9[_0x271bae(0x4bb)]>0x0&&this[_0x271bae(0x1db)](_0x3be2d9);}[_0x58ee4a(0x205)](){const _0x550ebc=_0x58ee4a;this[_0x550ebc(0x1a8)]=!0x1;}};xe=ti([z(0x2,a['Inject'](a['Injector'])),z(0x3,a['Inject'](ze)),z(0x4,a['Inject'](exports[_0x58ee4a(0x234)])),z(0x5,a[_0x58ee4a(0x2ee)](Xe)),z(0x6,_['ITransformService']),z(0x7,a[_0x58ee4a(0x200)]),z(0x8,a[_0x58ee4a(0x21b)])],xe);var ni=Object[_0x58ee4a(0x185)],ri=Object[_0x58ee4a(0x3f5)],oi=(_0x1d0b86,_0x5f36a8,_0xe74d47,_0x4b98e8)=>{for(var _0x44eaa8=_0x4b98e8>0x1?void 0x0:_0x4b98e8?ri(_0x5f36a8,_0xe74d47):_0x5f36a8,_0x23e854=_0x1d0b86['length']-0x1,_0x42895f;_0x23e854>=0x0;_0x23e854--)(_0x42895f=_0x1d0b86[_0x23e854])&&(_0x44eaa8=(_0x4b98e8?_0x42895f(_0x5f36a8,_0xe74d47,_0x44eaa8):_0x42895f(_0x44eaa8))||_0x44eaa8);return _0x4b98e8&&_0x44eaa8&&ni(_0x5f36a8,_0xe74d47,_0x44eaa8),_0x44eaa8;},te=(_0x41e90a,_0x2ab368)=>(_0x17c101,_0x465102)=>_0x2ab368(_0x17c101,_0x465102,_0x41e90a);const ai=0x12c,ci=0x64,li=()=>{let _0x2c5e6f=[],_0x26e9b0=!0x1;return _0x55b4ed=>{const _0x308cc0=_0x5d3e;_0x2c5e6f[_0x308cc0(0x10b)](_0x55b4ed),_0x26e9b0||(_0x26e9b0=!0x0,setTimeout(()=>{const _0x54306d=_0x308cc0;_0x2c5e6f[_0x54306d(0x4c2)](_0x31802c=>_0x31802c()),_0x2c5e6f=[],_0x26e9b0=!0x1;}));};};let ke=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x3f565e,_0x12ed30,_0x3bf73c,_0xa369a0,_0x4ee7b5,_0x301009,_0x477b40,_0x34eb2e){const _0x13c39e=_0x58ee4a;super(),u(this,_0x13c39e(0x1a8),!0x1),u(this,_0x13c39e(0x34a),!0x1),u(this,_0x13c39e(0x1c5),new v['BehaviorSubject'](new Map())),u(this,_0x13c39e(0x2e7),this[_0x13c39e(0x1c5)][_0x13c39e(0x396)]()),u(this,_0x13c39e(0x12b),new v[(_0x13c39e(0x297))]([])),u(this,_0x13c39e(0x436),this[_0x13c39e(0x12b)][_0x13c39e(0xd9)](v[_0x13c39e(0x119)](ai))),u(this,_0x13c39e(0x1db),a['debounce']((_0x4abebc,_0x2e9700)=>{const _0x45749f=_0x13c39e,_0x4bc40f={'eventID':_[_0x45749f(0x2af)][_0x45749f(0x4ba)],'data':{'unitID':this[_0x45749f(0x4a1)],'memberID':this[_0x45749f(0x399)][_0x45749f(0x16f)](),'selection':Qe[_0x45749f(0x1f1)](_0x4abebc,_0x2e9700[_0x45749f(0xd8)])}};this[_0x45749f(0x399)][_0x45749f(0x3ce)](_0x4bc40f,this[_0x45749f(0x4a1)]);},ci)),(this[_0x13c39e(0x4a1)]=_0x3f565e,this[_0x13c39e(0x399)]=_0x12ed30,this[_0x13c39e(0x43a)]=_0x3bf73c,this[_0x13c39e(0x2ac)]=_0xa369a0,this[_0x13c39e(0x30b)]=_0x4ee7b5,this['_univerInstanceService']=_0x301009,this[_0x13c39e(0x325)]=_0x477b40,this[_0x13c39e(0x22d)]=_0x34eb2e);}get[_0x58ee4a(0x471)](){const _0x5a9727=_0x58ee4a;return this[_0x5a9727(0x1c5)]['getValue']();}get[_0x58ee4a(0x2b0)](){const _0x14b835=_0x58ee4a;return this[_0x14b835(0x12b)][_0x14b835(0x4e3)]();}['dispose'](){const _0x3b387b=_0x58ee4a;super[_0x3b387b(0x123)](),this[_0x3b387b(0x1c5)][_0x3b387b(0x28b)](new Map()),this[_0x3b387b(0x1c5)][_0x3b387b(0x2ba)](),this[_0x3b387b(0x12b)]['next']([]),this[_0x3b387b(0x12b)]['complete']();}['init'](){const _0x216670=_0x58ee4a;this[_0x216670(0x34a)]||(this[_0x216670(0x34a)]=!0x0,this['_session'][_0x216670(0x40d)][_0x216670(0xd9)](v[_0x216670(0x435)](this['dispose$']))[_0x216670(0x3fa)](_0x4156d7=>{const _0x71494a=_0x216670;_0x4156d7===x[_0x71494a(0x267)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x216670(0x399)][_0x216670(0x1c7)]['pipe'](v[_0x216670(0x435)](this[_0x216670(0x1e4)]))[_0x216670(0x3fa)](_0xc2de9e=>{const _0x276981=_0x216670,_0x2ee344=_0xc2de9e[_0x276981(0x342)];_0x2ee344===_[_0x276981(0x2af)][_0x276981(0x4ba)]&&this[_0x276981(0x356)](_0xc2de9e),_0x2ee344===_['CollaborationEvent'][_0x276981(0x3f4)]&&this[_0x276981(0x4f1)](_0xc2de9e);}),this[_0x216670(0x4f6)](),this['disposeWithMe'](this['_commandService'][_0x216670(0x23c)](_0x3ef5b=>{const _0x43a01f=_0x216670;if(this['_online']&&_0x3ef5b['id']===C[_0x43a01f(0x28a)]['id']&&_0x3ef5b[_0x43a01f(0x19e)][_0x43a01f(0x14a)]===this[_0x43a01f(0x4a1)]){const _0x3933a5=_0x3ef5b[_0x43a01f(0x19e)];this[_0x43a01f(0x1db)](_0x3933a5[_0x43a01f(0x46c)],_0x3933a5[_0x43a01f(0x42a)][0x0]);}})));}['_onCursorUpdate'](_0xfbd18f){const _0x5bd470=_0x58ee4a;var _0x23d231,_0x5d1492;const {memberID:_0x1df434,selection:_0x4a008d}=_0xfbd18f[_0x5bd470(0x40f)],{sheetName:_0x475bef,range:_0x34091b}=Qe['deserializeRangeWithSheet'](_0x4a008d),_0x1c3a4e={'name':(_0x5d1492=(_0x23d231=this[_0x5bd470(0x30b)][_0x5bd470(0x1a6)](this[_0x5bd470(0x4a1)],_0x1df434))==null?void 0x0:_0x23d231[_0x5bd470(0xd6)])!=null?_0x5d1492:_0x5bd470(0x104),'range':this[_0x5bd470(0x432)](_0x475bef,_0x34091b),'sheetID':_0x475bef,'color':this[_0x5bd470(0x2ac)]['assignAColorForMemberID'](_0x1df434),'selection':_0x4a008d},_0x953c30=this[_0x5bd470(0x471)];_0x953c30[_0x5bd470(0x1e3)](_0x1df434,_0x1c3a4e),this[_0x5bd470(0x1c5)][_0x5bd470(0x28b)](_0x953c30);}[_0x58ee4a(0x4f1)](_0x4e3874){const _0x2babff=_0x58ee4a,{memberID:_0x2c00c1}=_0x4e3874['data'],_0x10efcf=this['cursorInfo'];_0x10efcf[_0x2babff(0x1d5)](_0x2c00c1),this[_0x2babff(0x1c5)][_0x2babff(0x28b)](_0x10efcf);}[_0x58ee4a(0x432)](_0x19efda,_0x30e923){const _0x522733=_0x58ee4a;var _0x62ec9b,_0x34dce9;const _0x112fef=(_0x34dce9=(_0x62ec9b=this['_univerInstanceService'][_0x522733(0x31e)](this[_0x522733(0x4a1)]))==null?void 0x0:_0x62ec9b[_0x522733(0xcf)](_0x19efda))==null?void 0x0:_0x34dce9['getMergeData']();return(_0x112fef==null?void 0x0:_0x112fef[_0x522733(0x449)](_0x25a7ec=>a['Rectangle'][_0x522733(0x4a6)](_0x25a7ec,_0x30e923)))||_0x30e923;}[_0x58ee4a(0x4f6)](){const _0x1f3671=_0x58ee4a,_0x1f9a93=new a[(_0x1f3671(0x19c))](),_0x3d7931=li(),_0x2c86d4=()=>{const _0x10b906=_0x1f3671;_0x1f9a93['dispose']();const _0x1994e9=(_0x109788,_0xd250ea,_0x5cb029,_0xff0fb2)=>{const _0x3a72fb=_0x5d3e;let _0x328926=[];switch(_0x109788['id']){case C[_0x3a72fb(0x255)][_0x3a72fb(0x4d3)]:{_0x328926=C[_0x3a72fb(0x474)](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)][_0x3a72fb(0xef)]:{_0x328926=C[_0x3a72fb(0x4fc)](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)]['InsertColCommandId']:{_0x328926=C[_0x3a72fb(0xff)](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)][_0x3a72fb(0x27d)]:{_0x328926=C[_0x3a72fb(0x330)](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)][_0x3a72fb(0x105)]:{_0x328926=C['handleInsertRangeMoveRight'](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)]['InsertRowCommandId']:{_0x328926=C['handleInsertRow'](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)][_0x3a72fb(0x159)]:{_0x328926=C[_0x3a72fb(0xe7)](_0x109788,_0xff0fb2);break;}case C[_0x3a72fb(0x255)]['RemoveColCommandId']:{_0x328926=C[_0x3a72fb(0x3d6)](_0x109788,_0xff0fb2);break;}case C['EffectRefRangId'][_0x3a72fb(0x418)]:{_0x328926=C[_0x3a72fb(0x46d)](_0x109788,_0xff0fb2);break;}}const _0x4528a4=C[_0x3a72fb(0x210)](_0x328926,_0xff0fb2),_0x4496df=this['cursorInfo']['get'](_0xd250ea);if(_0x4496df&&_0x4528a4){const _0x1e2266={..._0x4496df,'range':_0x4528a4};this[_0x3a72fb(0x471)]['set'](_0xd250ea,_0x1e2266),_0x3d7931(()=>{const _0x13dd77=_0x3a72fb,_0x7fc02e=this[_0x13dd77(0x22d)][_0x13dd77(0x162)](_0x4528a4,_0x4e8aa9=>(_0x7fc02e[_0x13dd77(0x123)](),_0x1994e9(_0x4e8aa9,_0xd250ea,_0x5cb029,_0x4528a4)));_0x1f9a93[_0x13dd77(0x331)](_0x7fc02e);});}return{'redos':[],'undos':[]};};this[_0x10b906(0x471)]['forEach']((_0x1e1a3b,_0x8d8549)=>{const _0x3e79e8=_0x10b906,{range:_0x314c2a,sheetID:_0x2c0616}=_0x1e1a3b,_0xdcd220=this['_refRangeService']['registerRefRange'](_0x314c2a,_0xf8bd6b=>(_0xdcd220[_0x3e79e8(0x123)](),_0x1994e9(_0xf8bd6b,_0x8d8549,_0x2c0616,_0x314c2a)));_0x1f9a93['add'](_0xdcd220);});};this[_0x1f3671(0x281)](a[_0x1f3671(0x4fa)](this[_0x1f3671(0x1c5)][_0x1f3671(0x3fa)](()=>{_0x2c86d4();})));}[_0x58ee4a(0x4b4)](){const _0x3714ab=_0x58ee4a;var _0x8aaf9,_0x3a0778;if(this[_0x3714ab(0x1a8)]=!0x0,((_0x8aaf9=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x8aaf9[_0x3714ab(0x33f)]())!==this[_0x3714ab(0x4a1)])return;const _0x381245=(_0x3a0778=this[_0x3714ab(0x43a)][_0x3714ab(0x129)](C[_0x3714ab(0x262)])[_0x3714ab(0x385)]())==null?void 0x0:_0x3a0778[0x0],_0x4f9f74=this[_0x3714ab(0x135)][_0x3714ab(0x392)](a[_0x3714ab(0x1fa)][_0x3714ab(0x44a)])[_0x3714ab(0xfd)]();_0x381245&&_0x4f9f74&&this[_0x3714ab(0x1db)](_0x4f9f74[_0x3714ab(0x393)](),_0x381245);}['_toggleOffline'](){this['_online']=!0x1;}};ke=oi([te(0x2,a['Inject'](a[_0x58ee4a(0x31d)])),te(0x3,a['Inject'](ze)),te(0x4,a['Inject'](exports[_0x58ee4a(0x234)])),te(0x5,a[_0x58ee4a(0x200)]),te(0x6,a[_0x58ee4a(0x21b)]),te(0x7,a[_0x58ee4a(0x2ee)](C[_0x58ee4a(0x246)]))],ke);var hi=Object[_0x58ee4a(0x185)],_i=Object[_0x58ee4a(0x3f5)],ui=(_0x1f119c,_0x3cadcd,_0x3f4b56,_0x5ed49f)=>{const _0x20acec=_0x58ee4a;for(var _0x504f98=_0x5ed49f>0x1?void 0x0:_0x5ed49f?_i(_0x3cadcd,_0x3f4b56):_0x3cadcd,_0x5521d9=_0x1f119c[_0x20acec(0x4bb)]-0x1,_0x5f2b0c;_0x5521d9>=0x0;_0x5521d9--)(_0x5f2b0c=_0x1f119c[_0x5521d9])&&(_0x504f98=(_0x5ed49f?_0x5f2b0c(_0x3cadcd,_0x3f4b56,_0x504f98):_0x5f2b0c(_0x504f98))||_0x504f98);return _0x5ed49f&&_0x504f98&&hi(_0x3cadcd,_0x3f4b56,_0x504f98),_0x504f98;},Ne=(_0x4b8759,_0x3f1e35)=>(_0x43ac89,_0x5e3133)=>_0x3f1e35(_0x43ac89,_0x5e3133,_0x4b8759);let oe=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x6933e8,_0x2da418,_0x5c4fc3){const _0x184eed=_0x58ee4a;super(),u(this,_0x184eed(0x24b),new Map()),u(this,_0x184eed(0x2b7),new v[(_0x184eed(0x3ba))]()),(this[_0x184eed(0x135)]=_0x6933e8,this[_0x184eed(0x43a)]=_0x2da418,this['_collabSessionService']=_0x5c4fc3,this[_0x184eed(0x34a)]());}[_0x58ee4a(0x123)](){const _0x50b0ff=_0x58ee4a;super[_0x50b0ff(0x123)](),this[_0x50b0ff(0x2b7)][_0x50b0ff(0x2ba)](),this['_entities'][_0x50b0ff(0x4c2)](_0x38a821=>_0x38a821[_0x50b0ff(0x123)]());}[_0x58ee4a(0x3a3)](_0x928558){const _0x3918ac=_0x58ee4a;return this[_0x3918ac(0x24b)]['has'](_0x928558)?this[_0x3918ac(0x24b)][_0x3918ac(0x129)](_0x928558)[_0x3918ac(0x2e7)]:this[_0x3918ac(0x2b7)][_0x3918ac(0xd9)](v[_0x3918ac(0x2de)](_0x1ea76c=>_0x1ea76c[_0x3918ac(0x4a1)]===_0x928558),v[_0x3918ac(0x166)](_0x14edb5=>_0x14edb5[_0x3918ac(0x2e7)]));}['_init'](){const _0x17f210=_0x58ee4a;this['_univerInstanceService'][_0x17f210(0x1ef)](a[_0x17f210(0x1fa)][_0x17f210(0x44a)])[_0x17f210(0xd9)](v[_0x17f210(0x435)](this[_0x17f210(0x1e4)]))[_0x17f210(0x3fa)](async _0x1ece26=>{const _0x31ca4e=_0x17f210,_0x4c5a1b=_0x1ece26[_0x31ca4e(0x33f)](),_0x244fcd=await this['_startSheetCollabCursor'](_0x4c5a1b);this[_0x31ca4e(0x2b7)][_0x31ca4e(0x28b)](_0x244fcd),this[_0x31ca4e(0x24b)][_0x31ca4e(0x1e3)](_0x4c5a1b,_0x244fcd);}),this[_0x17f210(0x135)][_0x17f210(0x1ef)](a[_0x17f210(0x1fa)][_0x17f210(0x437)])['pipe'](v[_0x17f210(0x435)](this[_0x17f210(0x1e4)]))[_0x17f210(0xd9)](v[_0x17f210(0x2de)](_0x3ed3f3=>!_0x3ed3f3[_0x17f210(0x33f)]()[_0x17f210(0x4f5)]('__')))[_0x17f210(0x3fa)](async _0x2b4b07=>{const _0x4ba517=_0x17f210,_0x9076ac=_0x2b4b07['getUnitId'](),_0x9c543e=await this[_0x4ba517(0x1ab)](_0x9076ac);this[_0x4ba517(0x2b7)]['next'](_0x9c543e),this[_0x4ba517(0x24b)][_0x4ba517(0x1e3)](_0x9076ac,_0x9c543e);}),v['merge'](this['_univerInstanceService'][_0x17f210(0x484)](a['UniverInstanceType'][_0x17f210(0x437)]),this[_0x17f210(0x135)][_0x17f210(0x484)](a[_0x17f210(0x1fa)][_0x17f210(0x44a)]))['pipe'](v[_0x17f210(0x435)](this[_0x17f210(0x1e4)]))['subscribe'](_0x123925=>{const _0x57b2a9=_0x17f210,_0x16bcb4=_0x123925[_0x57b2a9(0x33f)](),_0x1f7dfe=this[_0x57b2a9(0x24b)]['get'](_0x16bcb4);_0x1f7dfe&&(_0x1f7dfe[_0x57b2a9(0x123)](),this[_0x57b2a9(0x24b)][_0x57b2a9(0x1d5)](_0x16bcb4));});}async['_startSheetCollabCursor'](_0x49422c){const _0x3d0cda=_0x58ee4a,_0x2dabe4=await this[_0x3d0cda(0x38c)][_0x3d0cda(0xf3)](_0x49422c),_0x4b5d2f=this[_0x3d0cda(0x43a)]['createInstance'](ke,_0x49422c,_0x2dabe4);return _0x4b5d2f['init'](),_0x4b5d2f;}async[_0x58ee4a(0x1ab)](_0x49207d){const _0x92e4e3=_0x58ee4a,_0x4197a7=await this[_0x92e4e3(0x38c)]['requireSession'](_0x49207d),_0x4d2d4d=this['_injector'][_0x92e4e3(0x370)](xe,_0x49207d,_0x4197a7);return _0x4d2d4d[_0x92e4e3(0x217)](),_0x4d2d4d;}};oe=ui([Ne(0x0,a[_0x58ee4a(0x200)]),Ne(0x1,a['Inject'](a[_0x58ee4a(0x31d)])),Ne(0x2,a['Inject'](exports['CollaborationSessionService']))],oe);const de=0x14,ct=0xc8,Me=0x4,di=0x5;function Si(_0x107e9e,_0x58fdfa){const _0x2756d8=_0x58ee4a;let {radius:_0x1a4f47,width:_0x1b18cd,height:_0x42272d}=_0x58fdfa;_0x1a4f47=_0x1a4f47!=null?_0x1a4f47:0x0,_0x1b18cd=_0x1b18cd!=null?_0x1b18cd:0x1e,_0x42272d=_0x42272d!=null?_0x42272d:0x1e;let _0x4c6394=0x0,_0x3511e2=0x0,_0x186be3=0x0;_0x4c6394=_0x3511e2=_0x186be3=Math['min'](_0x1a4f47,_0x1b18cd/0x2,_0x42272d/0x2),_0x107e9e[_0x2756d8(0x364)](),_0x107e9e[_0x2756d8(0x3cc)](_0x4c6394,0x0),_0x107e9e[_0x2756d8(0x314)](_0x1b18cd-_0x3511e2,0x0),_0x107e9e[_0x2756d8(0x219)](_0x1b18cd-_0x3511e2,_0x3511e2,_0x3511e2,Math['PI']*0x3/0x2,0x0,!0x1),_0x107e9e[_0x2756d8(0x314)](_0x1b18cd,_0x42272d-_0x186be3),_0x107e9e['arc'](_0x1b18cd-_0x186be3,_0x42272d-_0x186be3,_0x186be3,0x0,Math['PI']/0x2,!0x1),_0x107e9e[_0x2756d8(0x314)](0x0,_0x42272d),_0x107e9e[_0x2756d8(0x314)](0x0,_0x4c6394),_0x107e9e[_0x2756d8(0x219)](_0x4c6394,_0x4c6394,_0x4c6394,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x107e9e[_0x2756d8(0x2a7)](),_0x58fdfa['fill']&&(_0x107e9e[_0x2756d8(0x2f4)](),_0x107e9e[_0x2756d8(0x478)]=_0x58fdfa[_0x2756d8(0xe5)],_0x58fdfa[_0x2756d8(0x450)]===_0x2756d8(0x3c0)?_0x107e9e[_0x2756d8(0xe5)]('evenodd'):_0x107e9e[_0x2756d8(0xe5)](),_0x107e9e[_0x2756d8(0xdf)]());}class Oe extends O[_0x58ee4a(0x480)]{constructor(_0x5d742d,_0x336f0e){const _0x51e918=_0x58ee4a;super(_0x5d742d,_0x336f0e),u(this,_0x51e918(0x313)),u(this,_0x51e918(0x315)),(this[_0x51e918(0x313)]=_0x336f0e==null?void 0x0:_0x336f0e[_0x51e918(0x313)],this[_0x51e918(0x315)]=_0x336f0e==null?void 0x0:_0x336f0e[_0x51e918(0x315)]);}static['drawWith'](_0x1dda02,_0x16c057){const _0x308dee=_0x58ee4a,{text:_0x1e3a3a,color:_0x149475}=_0x16c057;_0x1dda02[_0x308dee(0x2f4)](),_0x1dda02['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x528ee2=_0x1dda02[_0x308dee(0x3bc)](_0x1e3a3a)[_0x308dee(0x36c)],_0x5aa6ec=Math[_0x308dee(0x101)](_0x528ee2+0x2*Me,ct);Si(_0x1dda02,{'height':de,'radius':0x4,'width':_0x5aa6ec,'fill':_0x149475,'evented':!0x1}),_0x1dda02[_0x308dee(0x478)]='#FFF';const _0x159024=Me,_0x587995=de-di,_0x47b667=ct-0x2*Me;if(_0x528ee2>_0x47b667){let _0x38f7d4='',_0x39150c=0x0;for(const _0x49c12d of _0x1e3a3a){const _0x1107eb=_0x1dda02['measureText'](_0x49c12d)[_0x308dee(0x36c)];if(_0x39150c+_0x1107eb<=_0x47b667-_0x1dda02[_0x308dee(0x3bc)]('...')[_0x308dee(0x36c)])_0x38f7d4+=_0x49c12d,_0x39150c+=_0x1107eb;else{_0x38f7d4+='...';break;}}_0x1dda02[_0x308dee(0x103)](_0x38f7d4,_0x159024,_0x587995);}else _0x1dda02[_0x308dee(0x103)](_0x1e3a3a,_0x159024,_0x587995);_0x1dda02[_0x308dee(0xdf)]();}[_0x58ee4a(0x49e)](_0x5ae7af){const _0x715441=_0x58ee4a;Oe[_0x715441(0x430)](_0x5ae7af,this);}}const Ae=_0x58ee4a(0x3d5),vi=_0x58ee4a(0x428),mi='collab-rect-range-',le=0x6,gi=1.5,Le=0x4,fi=1.5,Ii='rgba(255,\x20255,\x20255,\x200.01)';class lt{constructor(_0x4f523a,_0x4f8469,_0x5e6f98,_0x3e8f7c){const _0x1a2b64=_0x58ee4a;u(this,_0x1a2b64(0x3cb),[]),u(this,_0x1a2b64(0x308),null),u(this,'_textBubble',null),u(this,_0x1a2b64(0x4e9),null),u(this,'_hideTimer',null),u(this,_0x1a2b64(0x2e2),null),(this[_0x1a2b64(0x485)]=_0x4f523a,this[_0x1a2b64(0x15c)]=_0x4f8469,this[_0x1a2b64(0x4f2)]=_0x5e6f98,this['_document']=_0x3e8f7c,this['_render']());}set['_hover'](_0x1696d8){const _0x570b52=_0x58ee4a;_0x1696d8?(this[_0x570b52(0x4e9)]&&this['_anchorDot'][_0x570b52(0x470)](),this[_0x570b52(0x3a2)]&&this[_0x570b52(0x3a2)][_0x570b52(0x208)]()):(this[_0x570b52(0x4e9)]&&this[_0x570b52(0x4e9)][_0x570b52(0x208)](),this[_0x570b52(0x3a2)]&&this[_0x570b52(0x3a2)][_0x570b52(0x470)]());}[_0x58ee4a(0x123)](){const _0x26780f=_0x58ee4a;for(const _0x532111 of this[_0x26780f(0x3cb)])_0x532111[_0x26780f(0x123)]();this[_0x26780f(0x3a2)]&&this[_0x26780f(0x3a2)][_0x26780f(0x123)](),this[_0x26780f(0x4e9)]&&this['_anchorDot'][_0x26780f(0x123)](),this[_0x26780f(0x308)]&&this[_0x26780f(0x308)]['dispose'](),this['_eventUnsubscribe']&&this[_0x26780f(0x2e2)]();}[_0x58ee4a(0x320)](){const _0x2a0af7=_0x58ee4a;var _0x4886ae;const {_docSkeleton:_0x230626,_document:_0x3e34cd}=this,{color:_0x353516,name:_0x15b02d,ranges:_0x5e1684}=this[_0x2a0af7(0x485)],_0x204d1d=_0x3e34cd[_0x2a0af7(0x496)](),{docsLeft:_0x5e93d5,docsTop:_0x1bc2b4}=_0x204d1d,_0x606b88=new N['NodePositionConvertToCursor'](_0x204d1d,_0x230626);for(const {startOffset:_0xffc3ed,endOffset:_0xa239cf,rangeType:_0xcb9593,segmentId:_0x4ff919,segmentPage:_0x10db5d,collapsed:_0x2d001d,isActive:_0x2c482a}of _0x5e1684){const _0x141c9c=_0x230626['findNodePositionByCharIndex'](_0xffc3ed,!0x0,_0x4ff919,_0x10db5d);let _0x1fd92f=_0x230626[_0x2a0af7(0x256)](_0xa239cf,!0x0,_0x4ff919,_0x10db5d);if(_0x1fd92f==null&&(_0x1fd92f=_0x230626[_0x2a0af7(0x256)](_0xa239cf-0x1,!0x1,_0x4ff919,_0x10db5d)),_0x2c482a){const {contentBoxPointGroup:_0x56d83f}=_0x606b88['getRangePointData'](_0x1fd92f,_0x1fd92f);if(_0x56d83f[_0x2a0af7(0x4bb)]===0x0)continue;this[_0x2a0af7(0x445)](_0x353516,_0x56d83f,_0x5e93d5,_0x1bc2b4,_0x15b02d),this[_0x2a0af7(0x2e2)]=this[_0x2a0af7(0x174)]();}if(!_0x2d001d&&_0x141c9c&&_0x1fd92f){if(_0xcb9593===a[_0x2a0af7(0x302)][_0x2a0af7(0x1ea)]){const _0x1ac194=new N['NodePositionConvertToRectRange'](_0x204d1d,_0x230626),{pointGroup:_0x4f16dd}=(_0x4886ae=_0x1ac194[_0x2a0af7(0x4be)](_0x141c9c,_0x1fd92f))!=null?_0x4886ae:{};if(_0x4f16dd==null||_0x4f16dd[_0x2a0af7(0x4bb)]===0x0)continue;this[_0x2a0af7(0x14b)](_0x353516,_0x4f16dd,_0x5e93d5,_0x1bc2b4);}else{const {borderBoxPointGroup:_0x6cfce}=_0x606b88[_0x2a0af7(0x4be)](_0x141c9c,_0x1fd92f);if(_0x6cfce['length']===0x0)continue;this[_0x2a0af7(0xe1)](_0x353516,_0x6cfce,_0x5e93d5,_0x1bc2b4);}}}}[_0x58ee4a(0x445)](_0x129227,_0x41c270,_0x3c562a,_0x326c91,_0xcf10f9){const _0x169aa7=_0x58ee4a,_0x4ec7a0=this[_0x169aa7(0x4fe)](_0x41c270),{left:_0x4db432,top:_0x4079cb,height:_0x44b615}=_0x4ec7a0,_0x14c4bc=this[_0x169aa7(0x2b2)](),_0x1bbc0a=fi/_0x14c4bc,_0x5d8939=new O['Rect'](Ae+a[_0x169aa7(0x423)][_0x169aa7(0x11c)](le),{'left':_0x4db432+_0x3c562a-_0x1bbc0a,'top':_0x4079cb+_0x326c91,'height':_0x44b615,'width':gi,'fill':_0x129227||O[_0x169aa7(0x10e)](a[_0x169aa7(0x157)][_0x169aa7(0x4d6)],0x0),'strokeWidth':_0x1bbc0a,'stroke':Ii,'evented':!0x0});this[_0x169aa7(0x308)]=_0x5d8939,this[_0x169aa7(0x15c)]['addObject'](_0x5d8939,N[_0x169aa7(0x2eb)]);const _0x18beed=new O['Rect'](Ae+a[_0x169aa7(0x423)]['generateRandomId'](le),{'left':_0x4db432+_0x3c562a-_0x1bbc0a,'top':_0x4079cb+_0x326c91-Le/0x2,'height':Le,'width':Le,'fill':_0x129227||O[_0x169aa7(0x10e)](a['COLORS'][_0x169aa7(0x4d6)],0x0),'strokeWidth':0x0,'stroke':_0x129227||O['getColor'](a[_0x169aa7(0x157)]['black'],0x0),'evented':!0x1});this[_0x169aa7(0x4e9)]=_0x18beed,this[_0x169aa7(0x15c)][_0x169aa7(0x426)](_0x18beed,N[_0x169aa7(0x2eb)]);const _0x48b082=new Oe(Ae+a['Tools'][_0x169aa7(0x11c)](le),{'left':_0x4db432+_0x3c562a-_0x1bbc0a,'top':_0x4079cb+_0x326c91-de,'text':_0xcf10f9,'color':_0x129227});this['_textBubble']=_0x48b082,this[_0x169aa7(0x15c)]['addObject'](_0x48b082,N[_0x169aa7(0x2eb)]),this[_0x169aa7(0x139)]=!0x1;}['_handleHover'](){const _0x36b904=_0x58ee4a,_0x5a8aa9=this['_anchor'][_0x36b904(0x2fc)][_0x36b904(0x47d)](()=>{this['_hover']=!0x0;}),_0x3bccda=this[_0x36b904(0x308)][_0x36b904(0x289)]['subscribeEvent'](()=>{const _0x2e5ef1=_0x36b904;this[_0x2e5ef1(0x131)]&&clearTimeout(this[_0x2e5ef1(0x131)]),this[_0x2e5ef1(0x131)]=setTimeout(()=>{const _0x5c4e24=_0x2e5ef1;this[_0x5c4e24(0x139)]=!0x1;},0x7d0);});return()=>{const _0x265ef6=_0x36b904;_0x5a8aa9[_0x265ef6(0x3af)](),_0x3bccda[_0x265ef6(0x3af)]();};}[_0x58ee4a(0xe1)](_0x6815f5,_0x2bc029,_0x495acb,_0x43e9cd){const _0x448c25=_0x58ee4a,_0x2aad1c=new a[(_0x448c25(0x187))](_0x6815f5)['setAlpha'](0.2)[_0x448c25(0x2a5)](),_0x5877b1=new O[(_0x448c25(0x16b))](vi+a[_0x448c25(0x423)][_0x448c25(0x11c)](le),{'pointsGroup':_0x2bc029,'fill':_0x2aad1c||O[_0x448c25(0x10e)](a['COLORS'][_0x448c25(0x4d6)],0.2),'left':_0x495acb,'top':_0x43e9cd,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x448c25(0x3cb)][_0x448c25(0x10b)](_0x5877b1),this[_0x448c25(0x15c)][_0x448c25(0x426)](_0x5877b1,N[_0x448c25(0x2eb)]);}[_0x58ee4a(0x14b)](_0x5edea2,_0x120c95,_0x3bb5be,_0x390751){const _0x3ac2af=_0x58ee4a,_0x3fdcb1=new a[(_0x3ac2af(0x187))](_0x5edea2)[_0x3ac2af(0x2ff)](0.2)[_0x3ac2af(0x2a5)](),_0x498837=new O[(_0x3ac2af(0x16b))](mi+a[_0x3ac2af(0x423)]['generateRandomId'](le),{'pointsGroup':_0x120c95,'fill':_0x3fdcb1||O[_0x3ac2af(0x10e)](a[_0x3ac2af(0x157)]['black'],0.2),'left':_0x3bb5be,'top':_0x390751,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x3ac2af(0x10b)](_0x498837),this[_0x3ac2af(0x15c)][_0x3ac2af(0x426)](_0x498837,N[_0x3ac2af(0x2eb)]);}[_0x58ee4a(0x4fe)](_0xad77ca){const _0x507b19=_0xad77ca[0x0],_0x1942f6=_0x507b19[0x0],_0x2e6f70=_0x507b19[0x2],{x:_0x3d0286,y:_0x3ec110}=_0x1942f6,{x:_0x2c0329,y:_0x57c11f}=_0x2e6f70;return{'left':_0x3d0286,'top':_0x3ec110,'width':_0x2c0329-_0x3d0286,'height':_0x57c11f-_0x3ec110};}[_0x58ee4a(0x2b2)](){const _0xc1e926=_0x58ee4a,{scaleX:_0x8579bd,scaleY:_0x317144}=this[_0xc1e926(0x15c)]['getAncestorScale']();return Math[_0xc1e926(0x3ca)](_0x8579bd,_0x317144);}}var pi=Object[_0x58ee4a(0x185)],Ci=Object['getOwnPropertyDescriptor'],Ei=(_0x128694,_0x50f07b,_0x40baa6,_0x33dec2)=>{for(var _0x3c2916=_0x33dec2>0x1?void 0x0:_0x33dec2?Ci(_0x50f07b,_0x40baa6):_0x50f07b,_0x19e547=_0x128694['length']-0x1,_0x22bb43;_0x19e547>=0x0;_0x19e547--)(_0x22bb43=_0x128694[_0x19e547])&&(_0x3c2916=(_0x33dec2?_0x22bb43(_0x50f07b,_0x40baa6,_0x3c2916):_0x22bb43(_0x3c2916))||_0x3c2916);return _0x33dec2&&_0x3c2916&&pi(_0x50f07b,_0x40baa6,_0x3c2916),_0x3c2916;},ve=(_0x26128a,_0x541af7)=>(_0x42e656,_0x3f99bb)=>_0x541af7(_0x42e656,_0x3f99bb,_0x26128a);let Be=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x2d4e8b,_0xc47c72,_0x1b4bf1,_0x23f6a7,_0x77e937){const _0x3bd1c5=_0x58ee4a;super(),u(this,_0x3bd1c5(0x29d),[]),u(this,_0x3bd1c5(0x130),[]),(this[_0x3bd1c5(0x34b)]=_0x2d4e8b,this[_0x3bd1c5(0x490)]=_0xc47c72,this[_0x3bd1c5(0x3c3)]=_0x1b4bf1,this[_0x3bd1c5(0x325)]=_0x23f6a7,this['_themeService']=_0x77e937,this[_0x3bd1c5(0x34a)]());}['_init'](){const _0x1850a6=_0x58ee4a,_0xc6d7d3=this[_0x1850a6(0x34b)][_0x1850a6(0x14a)],_0x1483d2=this[_0x1850a6(0x490)];this[_0x1850a6(0x281)](v[_0x1850a6(0x415)]([this[_0x1850a6(0x3c3)][_0x1850a6(0x3a3)](_0xc6d7d3),this[_0x1850a6(0x326)][_0x1850a6(0x269)]])[_0x1850a6(0xd9)](E[_0x1850a6(0x34c)](([_0x387b56,_0x512b01])=>({'skeleton':_0x1483d2['getSkeleton'](),'cursors':[..._0x387b56['values']()]['flatMap'](_0x463bfb=>({..._0x463bfb,'color':_0x512b01[_0x463bfb[_0x1850a6(0x313)]]}))})))[_0x1850a6(0x3fa)](_0x15a4d4=>{const _0x4c490a=_0x1850a6;if(this[_0x4c490a(0x282)](),_0x15a4d4){const {skeleton:_0x3102eb,cursors:_0x49519b}=_0x15a4d4;this[_0x4c490a(0x4dc)](_0x3102eb,_0x49519b);}})),this['_initResize'](),this[_0x1850a6(0x1f3)]();}[_0x58ee4a(0x4dc)](_0xf9067,_0x492256){const _0x1c710d=_0x58ee4a,{scene:_0x14d5ef,mainComponent:_0x581259}=this['_context'],_0x1e40ff=_0x492256['map'](_0x461502=>new lt(_0x461502,_0x14d5ef,_0xf9067,_0x581259));this[_0x1c710d(0x29d)]=_0x1e40ff,this['_cursors']=_0x492256;}['_refreshCollabCursors'](){const _0x43b11a=_0x58ee4a;this[_0x43b11a(0x282)]();const {scene:_0xb57d0e,mainComponent:_0x3ca510}=this['_context'],_0x1f5d14=this[_0x43b11a(0x490)][_0x43b11a(0xe4)](),_0x3f56b9=this[_0x43b11a(0x130)]['map'](_0x15cfa3=>new lt(_0x15cfa3,_0xb57d0e,_0x1f5d14,_0x3ca510));this[_0x43b11a(0x29d)]=_0x3f56b9;}[_0x58ee4a(0x282)](){const _0x9bf017=_0x58ee4a;this[_0x9bf017(0x29d)][_0x9bf017(0x4c2)](_0x7daec0=>_0x7daec0[_0x9bf017(0x123)]()),this[_0x9bf017(0x29d)]=[];}['_initCommandExecutedListener'](){const _0x380c8e=_0x58ee4a,_0x2fa990=[N[_0x380c8e(0x18e)]['id']];this[_0x380c8e(0x281)](this[_0x380c8e(0x325)][_0x380c8e(0x23c)](_0x44311a=>{const _0x2554bb=_0x380c8e;_0x2fa990['includes'](_0x44311a['id'])&&_0x44311a['params'][_0x2554bb(0x14a)]===this[_0x2554bb(0x34b)][_0x2554bb(0x14a)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0xb8509d=_0x58ee4a;this[_0xb8509d(0x281)](a[_0xb8509d(0x4c4)](this['_context'][_0xb8509d(0x3a8)][_0xb8509d(0x296)])[_0xb8509d(0xd9)](E[_0xb8509d(0x2de)](_0x4d2a53=>_0x4d2a53['type']===O[_0xb8509d(0x2e3)][_0xb8509d(0x4de)]),E[_0xb8509d(0x345)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};Be=Ei([ve(0x1,a[_0x58ee4a(0x2ee)](ne[_0x58ee4a(0x32d)])),ve(0x2,a[_0x58ee4a(0x2ee)](oe)),ve(0x3,a[_0x58ee4a(0x21b)]),ve(0x4,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x3b4)]))],Be);const bi=0x1,Ti=1.5;class wt extends O[_0x58ee4a(0x480)]{constructor(_0x25bda2,_0x2bcc57){const _0xcf2627=_0x58ee4a;super(_0x25bda2,_0x2bcc57),u(this,_0xcf2627(0xf4)),u(this,_0xcf2627(0x48e),!0x1),u(this,_0xcf2627(0x2e4)),u(this,_0xcf2627(0xe0),''),u(this,_0xcf2627(0x300),_0xcf2627(0x163)),u(this,_0xcf2627(0xd7)),(_0x2bcc57&&this[_0xcf2627(0x4b0)](_0x2bcc57),this[_0xcf2627(0x2fc)][_0xcf2627(0x47d)](()=>this[_0xcf2627(0x4b0)]({'hovered':!0x0})),this[_0xcf2627(0x289)][_0xcf2627(0x47d)](()=>this[_0xcf2627(0x4b0)]({'hovered':!0x1})));}[_0x58ee4a(0x4b0)](_0x21c9bc){const _0x327528=_0x58ee4a;var _0x2efff1,_0x196880,_0x13bafd,_0xe38ce3,_0x5ea2df,_0x2d4e29;this[_0x327528(0xf4)]=(_0x2efff1=_0x21c9bc[_0x327528(0x313)])!=null?_0x2efff1:this[_0x327528(0xf4)],this[_0x327528(0x48e)]=(_0x196880=_0x21c9bc[_0x327528(0x1b6)])!=null?_0x196880:this[_0x327528(0x48e)],this[_0x327528(0x2e4)]=(_0x13bafd=_0x21c9bc['range'])!=null?_0x13bafd:this[_0x327528(0x2e4)],this[_0x327528(0xe0)]=(_0xe38ce3=_0x21c9bc[_0x327528(0xd6)])!=null?_0xe38ce3:this['_name'],this[_0x327528(0x300)]=(_0x5ea2df=_0x21c9bc[_0x327528(0x148)])!=null?_0x5ea2df:this['_labelPosition'],this[_0x327528(0xd7)]=(_0x2d4e29=_0x21c9bc[_0x327528(0x2b3)])!=null?_0x2d4e29:this[_0x327528(0xd7)],this[_0x327528(0x1cf)]({'width':_0x21c9bc[_0x327528(0x36c)],'height':_0x21c9bc[_0x327528(0xec)]});}['onMouseMove'](_0x39047a){const _0x2b95f9=_0x58ee4a,{row:_0x557c16,column:_0x3fa4fe}=_0x39047a;if(_0x557c16>=this['_range'][_0x2b95f9(0x494)]&&_0x557c16<=this[_0x2b95f9(0x2e4)][_0x2b95f9(0x4e5)]&&_0x3fa4fe>=this[_0x2b95f9(0x2e4)][_0x2b95f9(0x4ae)]&&_0x3fa4fe<=this[_0x2b95f9(0x2e4)]['endColumn']){this[_0x2b95f9(0x4b0)]({'hovered':!0x0});return;}this[_0x2b95f9(0x4b0)]({'hovered':!0x1});}[_0x58ee4a(0x39b)](_0x104960){return!0x1;}['_draw'](_0x572227){const _0x389bca=_0x58ee4a;O[_0x389bca(0x48b)]['drawWith'](_0x572227,{'width':this[_0x389bca(0x36c)],'height':this[_0x389bca(0xec)],'strokeWidth':Ti,'stroke':this[_0x389bca(0xf4)],'evented':!0x1,'fill':this[_0x389bca(0xd7)]}),this['_hovered']&&(_0x572227[_0x389bca(0x2f4)](),_0x572227[_0x389bca(0x31c)](0x1,0x0,0x0,0x1,this[_0x389bca(0x36c)],this['_labelPosition']===_0x389bca(0x301)?0x0:-de),Oe[_0x389bca(0x430)](_0x572227,{'text':this[_0x389bca(0xe0)],'color':this['_color']}),_0x572227[_0x389bca(0xdf)]());}}var Ri=Object[_0x58ee4a(0x185)],Oi=Object[_0x58ee4a(0x3f5)],Di=(_0x4a7b4c,_0x3b806a,_0x4a72ec,_0x57b865)=>{const _0xb5a6f=_0x58ee4a;for(var _0x2dacaf=_0x57b865>0x1?void 0x0:_0x57b865?Oi(_0x3b806a,_0x4a72ec):_0x3b806a,_0x2790b2=_0x4a7b4c[_0xb5a6f(0x4bb)]-0x1,_0x3433da;_0x2790b2>=0x0;_0x2790b2--)(_0x3433da=_0x4a7b4c[_0x2790b2])&&(_0x2dacaf=(_0x57b865?_0x3433da(_0x3b806a,_0x4a72ec,_0x2dacaf):_0x3433da(_0x2dacaf))||_0x2dacaf);return _0x57b865&&_0x2dacaf&&Ri(_0x3b806a,_0x4a72ec,_0x2dacaf),_0x2dacaf;},$e=(_0x4532e2,_0xe250a1)=>(_0x16e718,_0x491e6c)=>_0xe250a1(_0x16e718,_0x491e6c,_0x4532e2);const yi=0x1389;let Ve=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x5dfb8d,_0x10bdbe,_0x484321,_0x5bff51){const _0x502576=_0x58ee4a;super(),u(this,_0x502576(0x130),new Set()),u(this,_0x502576(0x4d0),null),(this[_0x502576(0x34b)]=_0x5dfb8d,this[_0x502576(0x1aa)]=_0x10bdbe,this[_0x502576(0x3c3)]=_0x484321,this['_themeService']=_0x5bff51,this[_0x502576(0x34a)]());}[_0x58ee4a(0x34a)](){const _0xce687a=_0x58ee4a;this[_0xce687a(0x1aa)]['currentSkeleton$']['pipe'](E['takeUntil'](this[_0xce687a(0x1e4)]),E[_0xce687a(0x166)](_0x15820c=>{const _0x134ea0=_0xce687a;if(_0x15820c){const _0x195e65=_0x15820c[_0x134ea0(0x241)];return v['combineLatest'](this[_0x134ea0(0x3c3)][_0x134ea0(0x3a3)](this[_0x134ea0(0x34b)][_0x134ea0(0x14a)]),this[_0x134ea0(0x326)][_0x134ea0(0x269)])[_0x134ea0(0xd9)](E['map'](([_0x3487b0,_0x519f61])=>{const _0x310960=_0x134ea0,_0x473d8b=new Map();return _0x3487b0[_0x310960(0x4c2)]((_0x183cd3,_0x4c8307)=>{const _0x10695e=_0x310960;if(_0x183cd3[_0x10695e(0x126)]===_0x195e65){const _0x3d3278={..._0x183cd3};_0x3d3278['color']=_0x519f61[_0x183cd3[_0x10695e(0x313)]],_0x473d8b[_0x10695e(0x1e3)](_0x4c8307,_0x3d3278);}}),{'skeleton':_0x15820c,'cursors':_0x473d8b};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0xce687a(0x3fa)](({skeleton:_0x1eae62,cursors:_0x3d8b0e})=>{const _0x10e12d=_0xce687a;this[_0x10e12d(0x282)](),_0x1eae62&&this[_0x10e12d(0x4dc)](_0x1eae62,_0x3d8b0e);}),this['_sheetSkeletonManagerService'][_0xce687a(0x196)][_0xce687a(0x3fa)](_0x43040e=>{const _0x11997d=_0xce687a;if(_0x43040e==null)return;const {skeleton:_0x394d15}=_0x43040e,{scene:_0x239de6}=this[_0x11997d(0x34b)];_0x239de6[_0x11997d(0x4d7)][_0x11997d(0x47d)](a['debounce'](_0x6de7b5=>{const _0xba48f6=_0x11997d;var _0x33a6e7,_0x17009b;const {offsetX:_0x11b704,offsetY:_0x14cd26}=_0x6de7b5,{x:_0x1b74e2,y:_0x586751}=_0x239de6[_0xba48f6(0xe9)](O['Vector2'][_0xba48f6(0x294)]([_0x11b704,_0x14cd26])),{scaleX:_0xf9a1c6,scaleY:_0x1fc141}=_0x239de6[_0xba48f6(0x19b)](),_0x3fea22=_0x239de6[_0xba48f6(0x150)](ie[_0xba48f6(0x2db)][_0xba48f6(0x48c)]),_0x54145e=_0x239de6[_0xba48f6(0x17c)](O['Vector2'][_0xba48f6(0x294)]([_0x1b74e2,_0x586751]),_0x3fea22),_0x2aa663=_0x394d15[_0xba48f6(0xd4)](_0x11b704,_0x14cd26,_0xf9a1c6,_0x1fc141,_0x54145e);((_0x33a6e7=this[_0xba48f6(0x4d0)])==null?void 0x0:_0x33a6e7[_0xba48f6(0x18b)])===_0x2aa663[_0xba48f6(0x18b)]&&((_0x17009b=this[_0xba48f6(0x4d0)])==null?void 0x0:_0x17009b[_0xba48f6(0x4ce)])===_0x2aa663[_0xba48f6(0x4ce)]||this[_0xba48f6(0x130)][_0xba48f6(0x4c2)](_0x306f07=>{const _0x140074=_0xba48f6;_0x306f07[_0x140074(0x3fb)](_0x2aa663);});},0x64));});}[_0x58ee4a(0x4dc)](_0x459825,_0x2e04c0){const _0x225963=_0x58ee4a;var _0x1aeab5;const _0x426481=(_0x1aeab5=this[_0x225963(0x1aa)][_0x225963(0x386)]())==null?void 0x0:_0x1aeab5[_0x225963(0x350)];if(!_0x426481)return;const _0x46e7eb=this['_getSheetObject']();if(!_0x46e7eb)return;this['_cursors'][_0x225963(0x4c2)](_0x51b2ec=>{_0x51b2ec['makeDirty']();});const {scene:_0x34f738}=_0x46e7eb,_0x83926e=Ui(Array[_0x225963(0x35b)](_0x2e04c0['values']()))['map'](_0x11d214=>{const _0x4671e8=_0x225963,{color:_0x18539d,range:_0x8c656b,name:_0xef8ff8,selection:_0x3ccbb8,sheetID:_0xf839d5}=_0x11d214,{startColumn:_0x46b26f,startRow:_0x1a8b98,endColumn:_0x284363,endRow:_0x4b61b2}=_0x8c656b,_0xadb11c=ie[_0x4671e8(0x26a)](_0x1a8b98,_0x46b26f,_0x34f738,_0x426481),_0x9349e5=ie[_0x4671e8(0x26a)](_0x4b61b2,_0x284363,_0x34f738,_0x426481),{columnHeaderHeightAndMarginTop:_0x13e432}=_0x426481,{startX:_0x52fb77,startY:_0x2e47de}=_0xadb11c,{endX:_0x24df82,endY:_0x37850d}=_0x9349e5,_0x2b1007=_0x24df82-_0x52fb77,_0x33374f=_0x37850d-_0x2e47de,_0x25ed9e={'labelPosition':_0x2e47de-_0x13e432>=de?_0x4671e8(0x163):'bottom','sheetID':_0xf839d5,'range':_0x8c656b,'color':_0x18539d,'name':_0xef8ff8,'selection':_0x3ccbb8,'left':_0x52fb77,'top':_0x2e47de,'width':_0x2b1007,'height':_0x33374f,'evented':!0x1,'zIndex':yi};return new wt(_0xef8ff8,_0x25ed9e);});_0x34f738[_0x225963(0x44c)](_0x83926e,bi),this[_0x225963(0x130)]=new Set(_0x83926e);}[_0x58ee4a(0x282)](){const _0x3ba51a=_0x58ee4a;var _0x5db8d2;(_0x5db8d2=this[_0x3ba51a(0x130)])==null||_0x5db8d2[_0x3ba51a(0x4c2)](_0x301295=>_0x301295['dispose']());}[_0x58ee4a(0x1d8)](){const _0x345ac0=_0x58ee4a;return ie['getSheetObject'](this['_context']['unit'],this[_0x345ac0(0x34b)]);}};Ve=Di([$e(0x1,a['Inject'](ie[_0x58ee4a(0x155)])),$e(0x2,a[_0x58ee4a(0x2ee)](oe)),$e(0x3,a['Inject'](a[_0x58ee4a(0x3b4)]))],Ve);function Ui(_0x5bab6c){const _0x115238=_0x58ee4a,_0x4c525c=new Map();return _0x5bab6c[_0x115238(0x4c2)](_0x511233=>{const _0x374545=_0x115238;if(_0x4c525c['has'](_0x511233[_0x374545(0x3ad)])){const _0x38340e=_0x4c525c[_0x374545(0x129)](_0x511233[_0x374545(0x3ad)]);_0x38340e[_0x374545(0xd6)]+=',\x20'+_0x511233[_0x374545(0xd6)];}else _0x4c525c[_0x374545(0x1e3)](_0x511233['selection'],_0x511233);}),Array['from'](_0x4c525c[_0x115238(0x132)]());}var M=function(){const _0x3280d5=_0x58ee4a;return M=Object[_0x3280d5(0x28d)]||function(_0x3b8672){const _0xbf4fa4=_0x3280d5;for(var _0x50fd95,_0x2e751f=0x1,_0x274819=arguments[_0xbf4fa4(0x4bb)];_0x2e751f<_0x274819;_0x2e751f++){_0x50fd95=arguments[_0x2e751f];for(var _0xe522f4 in _0x50fd95)Object[_0xbf4fa4(0x1c6)]['hasOwnProperty']['call'](_0x50fd95,_0xe522f4)&&(_0x3b8672[_0xe522f4]=_0x50fd95[_0xe522f4]);}return _0x3b8672;},M[_0x3280d5(0x338)](this,arguments);},Pi=function(_0x2a9545,_0x543030){const _0x4e898f=_0x58ee4a;var _0x55ea1c={};for(var _0x2215e6 in _0x2a9545)Object[_0x4e898f(0x1c6)][_0x4e898f(0xcb)][_0x4e898f(0x4cf)](_0x2a9545,_0x2215e6)&&_0x543030[_0x4e898f(0x3d0)](_0x2215e6)<0x0&&(_0x55ea1c[_0x2215e6]=_0x2a9545[_0x2215e6]);if(_0x2a9545!=null&&typeof Object[_0x4e898f(0x4b9)]=='function'){for(var _0x127894=0x0,_0x2215e6=Object[_0x4e898f(0x4b9)](_0x2a9545);_0x127894<_0x2215e6[_0x4e898f(0x4bb)];_0x127894++)_0x543030[_0x4e898f(0x3d0)](_0x2215e6[_0x127894])<0x0&&Object[_0x4e898f(0x1c6)][_0x4e898f(0x1e0)][_0x4e898f(0x4cf)](_0x2a9545,_0x2215e6[_0x127894])&&(_0x55ea1c[_0x2215e6[_0x127894]]=_0x2a9545[_0x2215e6[_0x127894]]);}return _0x55ea1c;},Je=y[_0x58ee4a(0x433)](function(_0x233329,_0x22d016){const _0x1800cd=_0x58ee4a;var _0x10b04f=_0x233329[_0x1800cd(0x354)],_0x349b78=_0x233329['id'],_0x35d87c=_0x233329[_0x1800cd(0x28c)],_0x2d9769=_0x233329['extend'],_0x43d57a=Pi(_0x233329,[_0x1800cd(0x354),'id',_0x1800cd(0x28c),'extend']),_0x1d1c27=_0x1800cd(0x3d7)[_0x1800cd(0x4c8)](_0x349b78,'\x20')['concat'](_0x35d87c||'')[_0x1800cd(0x31b)](),_0x2235a5=y[_0x1800cd(0x3a0)]('_'['concat'](Mi()));return Nt(_0x10b04f,''[_0x1800cd(0x4c8)](_0x349b78),{'defIds':_0x10b04f[_0x1800cd(0x1e9)],'idSuffix':_0x2235a5[_0x1800cd(0x49d)]},M({'ref':_0x22d016,'className':_0x1d1c27},_0x43d57a),_0x2d9769);});function Nt(_0x2101b0,_0x2890aa,_0x5a9fd0,_0x577ee6,_0x20d935){const _0x2ee660=_0x58ee4a;return y['createElement'](_0x2101b0[_0x2ee660(0x343)],M(M({'key':_0x2890aa},wi(_0x2101b0,_0x5a9fd0,_0x20d935)),_0x577ee6),(Ni(_0x2101b0,_0x5a9fd0)['children']||[])['map'](function(_0x2f9282,_0x3564c0){const _0x1a0f1b=_0x2ee660;return Nt(_0x2f9282,''[_0x1a0f1b(0x4c8)](_0x2890aa,'-')[_0x1a0f1b(0x4c8)](_0x2101b0[_0x1a0f1b(0x343)],'-')[_0x1a0f1b(0x4c8)](_0x3564c0),_0x5a9fd0,void 0x0,_0x20d935);}));}function wi(_0x286192,_0x5932b9,_0x20fd67){const _0x2fbd71=_0x58ee4a;var _0x39487d=M({},_0x286192[_0x2fbd71(0x190)]);_0x20fd67!=null&&_0x20fd67['colorChannel1']&&_0x39487d['fill']==='colorChannel1'&&(_0x39487d['fill']=_0x20fd67[_0x2fbd71(0x1be)]);var _0x3f18c5=_0x5932b9[_0x2fbd71(0x1e9)];return!_0x3f18c5||_0x3f18c5[_0x2fbd71(0x4bb)]===0x0||(_0x286192[_0x2fbd71(0x343)]===_0x2fbd71(0x3c1)&&_0x39487d[_0x2fbd71(0x146)]&&(_0x39487d[_0x2fbd71(0x146)]=_0x39487d[_0x2fbd71(0x146)]+_0x5932b9['idSuffix']),Object[_0x2fbd71(0x406)](_0x39487d)[_0x2fbd71(0x4c2)](function(_0x3176eb){const _0x4d64be=_0x2fbd71;var _0x1794ac=_0x3176eb[0x0],_0xfca6ae=_0x3176eb[0x1];typeof _0xfca6ae==_0x4d64be(0x21e)&&(_0x39487d[_0x1794ac]=_0xfca6ae[_0x4d64be(0x40c)](/url\(#(.*)\)/,'url(#$1'[_0x4d64be(0x4c8)](_0x5932b9[_0x4d64be(0x1e5)],')')));})),_0x39487d;}function Ni(_0x1ed9bc,_0x2e8bc1){const _0x478f3d=_0x58ee4a;var _0x5103c0,_0x59d57e=_0x2e8bc1[_0x478f3d(0x1e9)];return!_0x59d57e||_0x59d57e['length']===0x0?_0x1ed9bc:_0x1ed9bc[_0x478f3d(0x343)]==='defs'&&(!((_0x5103c0=_0x1ed9bc[_0x478f3d(0x453)])===null||_0x5103c0===void 0x0)&&_0x5103c0[_0x478f3d(0x4bb)])?M(M({},_0x1ed9bc),{'children':_0x1ed9bc[_0x478f3d(0x453)][_0x478f3d(0x34c)](function(_0x4d15a0){const _0x1646a2=_0x478f3d;return typeof _0x4d15a0['attrs']['id']==_0x1646a2(0x21e)&&_0x59d57e&&_0x59d57e['indexOf'](_0x4d15a0[_0x1646a2(0x190)]['id'])>-0x1?M(M({},_0x4d15a0),{'attrs':M(M({},_0x4d15a0['attrs']),{'id':_0x4d15a0[_0x1646a2(0x190)]['id']+_0x2e8bc1[_0x1646a2(0x1e5)]})}):_0x4d15a0;})}):_0x1ed9bc;}function Mi(){const _0x38506c=_0x58ee4a;return Math[_0x38506c(0x366)]()['toString'](0x24)[_0x38506c(0x46f)](0x2,0x8);}Je[_0x58ee4a(0x46b)]=_0x58ee4a(0x3f3);var Ai={'tag':'svg','attrs':{'fill':'none','viewBox':_0x58ee4a(0x420),'width':_0x58ee4a(0x461),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x58ee4a(0x1a7)},'children':[{'tag':_0x58ee4a(0x2d0),'attrs':{'stroke':_0x58ee4a(0x181),'d':'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','strokeLinecap':_0x58ee4a(0x4f9),'strokeLinejoin':_0x58ee4a(0x4f9),'strokeWidth':1.2}}]},{'tag':_0x58ee4a(0x215),'attrs':{},'children':[{'tag':_0x58ee4a(0x1f4),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':_0x58ee4a(0x2d0),'attrs':{'fill':_0x58ee4a(0x20e),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x58ee4a(0x1a0)]},Mt=y[_0x58ee4a(0x433)](function(_0x484e85,_0x50936c){const _0x53eb44=_0x58ee4a;return y['createElement'](Je,Object['assign']({},_0x484e85,{'id':_0x53eb44(0x2d6),'ref':_0x50936c,'icon':Ai}));});Mt[_0x58ee4a(0x46b)]='OffLineSingle';var Li={'tag':_0x58ee4a(0x23f),'attrs':{'fill':_0x58ee4a(0x311),'viewBox':_0x58ee4a(0x4cc),'width':_0x58ee4a(0x461),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x58ee4a(0x231)},'children':[{'tag':_0x58ee4a(0x2d0),'attrs':{'stroke':_0x58ee4a(0x181),'d':_0x58ee4a(0x3bd),'strokeLinecap':_0x58ee4a(0x4f9),'strokeLinejoin':_0x58ee4a(0x4f9),'strokeWidth':1.2}}]},{'tag':_0x58ee4a(0x215),'attrs':{},'children':[{'tag':_0x58ee4a(0x1f4),'attrs':{'id':_0x58ee4a(0x2a6)},'children':[{'tag':_0x58ee4a(0x2d0),'attrs':{'fill':_0x58ee4a(0x20e),'d':'M0\x200H16V16H0z','transform':_0x58ee4a(0x169)}}]}]}],'defIds':['on-line-single_clip0_910_349']},At=y[_0x58ee4a(0x433)](function(_0x2700e1,_0x3a44c2){const _0x19b482=_0x58ee4a;return y[_0x19b482(0x3b1)](Je,Object[_0x19b482(0x28d)]({},_0x2700e1,{'id':'on-line-single','ref':_0x3a44c2,'icon':Li}));});At[_0x58ee4a(0x46b)]=_0x58ee4a(0x4c5);function Lt(_0x4629e2){const _0x179cd2=_0x58ee4a;var _0x370986,_0x309314,_0xdbfe65='';if(typeof _0x4629e2==_0x179cd2(0x21e)||typeof _0x4629e2==_0x179cd2(0x346))_0xdbfe65+=_0x4629e2;else{if(typeof _0x4629e2==_0x179cd2(0x172)){if(Array[_0x179cd2(0x1f7)](_0x4629e2)){var _0x1abb49=_0x4629e2['length'];for(_0x370986=0x0;_0x370986<_0x1abb49;_0x370986++)_0x4629e2[_0x370986]&&(_0x309314=Lt(_0x4629e2[_0x370986]))&&(_0xdbfe65&&(_0xdbfe65+='\x20'),_0xdbfe65+=_0x309314);}else{for(_0x309314 in _0x4629e2)_0x4629e2[_0x309314]&&(_0xdbfe65&&(_0xdbfe65+='\x20'),_0xdbfe65+=_0x309314);}}}return _0xdbfe65;}function $i(){const _0x3adacb=_0x58ee4a;for(var _0x55b6a8,_0x35b752,_0x2de122=0x0,_0x19476e='',_0x5c5a03=arguments[_0x3adacb(0x4bb)];_0x2de122<_0x5c5a03;_0x2de122++)(_0x55b6a8=arguments[_0x2de122])&&(_0x35b752=Lt(_0x55b6a8))&&(_0x19476e&&(_0x19476e+='\x20'),_0x19476e+=_0x35b752);return _0x19476e;}const ji=_0x58ee4a(0x10c),Hi=_0x58ee4a(0x182),xi='univer-online-status',ki=_0x58ee4a(0x3f0),Bi=_0x58ee4a(0x39c),he={'onlineStatusIcon':ji,'onlineStatusTitle':Hi,'onlineStatus':xi,'online':ki,'offline':Bi};function Vi(_0x3a6b15){const _0x8bb01d=_0x58ee4a;switch(_0x3a6b15){case D[_0x8bb01d(0x4fb)]:return _0x8bb01d(0x41a);case D['CONFLICT']:return'collabStatus.conflict';case D['FETCH_MISS']:return _0x8bb01d(0x1eb);case D[_0x8bb01d(0x42b)]:return'collabStatus.notCollab';case D[_0x8bb01d(0x466)]:case D[_0x8bb01d(0x24f)]:return _0x8bb01d(0x3c4);case D[_0x8bb01d(0x442)]:case D[_0x8bb01d(0x1a1)]:return _0x8bb01d(0x26b);}}function $t(_0xcffc24){const _0x49588c=_0x58ee4a,{status$:_0x382df6}=_0xcffc24,_0x2b4e58=A[_0x49588c(0x1bc)](_0x382df6,D[_0x49588c(0x42b)]),_0x59dcd=a['useDependency'](a[_0x49588c(0x32b)]),_0xe35bea=a[_0x49588c(0x362)](exports[_0x49588c(0xf9)]),_0x1d77b8=_0x2b4e58!==D[_0x49588c(0x4fb)],_0x555718=_0x59dcd['t'](Vi(_0x2b4e58)),_0x1e52e1=$i(he[_0x49588c(0x374)],{[he[_0x49588c(0x3c7)]]:_0x1d77b8,[he[_0x49588c(0x1b2)]]:!_0x1d77b8}),_0x1286db=_0x1d77b8?y[_0x49588c(0x3b1)](At,null):y['createElement'](Mt,null),_0xc4326=y[_0x49588c(0x3d8)](()=>{const _0x1757cb=_0x49588c;_0x1d77b8||_0xe35bea[_0x1757cb(0x14c)]();},[_0x1d77b8,_0xe35bea]);function _0xa9eb84(){const _0x572f6b=_0x49588c;return y[_0x572f6b(0x3b1)](_0x572f6b(0x142),{'className':_0x1e52e1,'onClick':_0xc4326},y[_0x572f6b(0x3b1)](_0x572f6b(0x142),{'className':he['onlineStatusIcon']},_0x1286db),y[_0x572f6b(0x3b1)](_0x572f6b(0x142),{'className':he[_0x572f6b(0x3a5)]},_0x555718));}return _0x1d77b8?_0xa9eb84():y['createElement'](J[_0x49588c(0x24c)],{'title':_0x59dcd['t'](_0x49588c(0x2bc))},_0xa9eb84());}var Wi=Object['defineProperty'],Fi=Object['getOwnPropertyDescriptor'],Gi=(_0xa4e7d2,_0x3f1112,_0x318a93,_0x915493)=>{const _0x428b72=_0x58ee4a;for(var _0x45e46b=_0x915493>0x1?void 0x0:_0x915493?Fi(_0x3f1112,_0x318a93):_0x3f1112,_0x3e3a3c=_0xa4e7d2[_0x428b72(0x4bb)]-0x1,_0x3ee66a;_0x3e3a3c>=0x0;_0x3e3a3c--)(_0x3ee66a=_0xa4e7d2[_0x3e3a3c])&&(_0x45e46b=(_0x915493?_0x3ee66a(_0x3f1112,_0x318a93,_0x45e46b):_0x3ee66a(_0x45e46b))||_0x45e46b);return _0x915493&&_0x45e46b&&Wi(_0x3f1112,_0x318a93,_0x45e46b),_0x45e46b;},me=(_0x496fce,_0x656890)=>(_0x26b421,_0x21c6a2)=>_0x656890(_0x26b421,_0x21c6a2,_0x496fce);exports['DesktopCollaborationStatusDisplayController']=class extends a[_0x58ee4a(0x2dd)]{constructor(_0x1c515e,_0x597d7d,_0x3f9c8e,_0x521ca3){const _0x223b94=_0x58ee4a;super(),u(this,_0x223b94(0x447),new v[(_0x223b94(0x297))](D[_0x223b94(0x42b)])),(this[_0x223b94(0x135)]=_0x1c515e,this[_0x223b94(0x201)]=_0x597d7d,this[_0x223b94(0x43a)]=_0x3f9c8e,this[_0x223b94(0x321)]=_0x521ca3,this[_0x223b94(0x3fc)](),this[_0x223b94(0x214)]());}[_0x58ee4a(0x214)](){const _0x536583=_0x58ee4a;this[_0x536583(0x281)](this['_univerInstanceService'][_0x536583(0x108)]['pipe'](v[_0x536583(0x166)](()=>{const _0x1e5fb4=_0x536583,_0x423e41=this['_univerInstanceService'][_0x1e5fb4(0x175)]();return _0x423e41?this[_0x1e5fb4(0x321)][_0x1e5fb4(0x286)](_0x423e41['getUnitId']()):v['of'](null);}),v[_0x536583(0x166)](_0x5b72c2=>_0x5b72c2?_0x5b72c2[_0x536583(0xca)]:v['of'](D[_0x536583(0x42b)])))[_0x536583(0x3fa)](_0xbe8574=>{const _0xa5175d=_0x536583;this[_0xa5175d(0x447)][_0xa5175d(0x28b)](_0xbe8574);}));}[_0x58ee4a(0x3fc)](){const _0x4946b0=_0x58ee4a;this[_0x4946b0(0x281)](this[_0x4946b0(0x201)]['registerComponent'](A[_0x4946b0(0x1ee)][_0x4946b0(0x3e1)],()=>a[_0x4946b0(0x13f)](Yi({'status$':this['_status$'][_0x4946b0(0x396)]()}),this[_0x4946b0(0x43a)])));}},exports[_0x58ee4a(0x477)]=Gi([me(0x0,a['IUniverInstanceService']),me(0x1,A['IUIPartsService']),me(0x2,a['Inject'](a[_0x58ee4a(0x31d)])),me(0x3,a[_0x58ee4a(0x2ee)](exports['CollaborationController']))],exports[_0x58ee4a(0x477)]);function Yi(_0x55a131){const {status$:_0x4a1441}=_0x55a131;return function(){const _0x514ea4=_0x5d3e;return y[_0x514ea4(0x3b1)]($t,{'status$':_0x4a1441});};}const Ze=a[_0x58ee4a(0x236)](_0x58ee4a(0x1e2));var Ki=Object[_0x58ee4a(0x185)],Xi=Object[_0x58ee4a(0x3f5)],qi=(_0x350280,_0x12cca5,_0x99feeb,_0x30e7bf)=>{const _0x4a570d=_0x58ee4a;for(var _0x2e9617=_0x30e7bf>0x1?void 0x0:_0x30e7bf?Xi(_0x12cca5,_0x99feeb):_0x12cca5,_0x3b93fe=_0x350280[_0x4a570d(0x4bb)]-0x1,_0x13c03e;_0x3b93fe>=0x0;_0x3b93fe--)(_0x13c03e=_0x350280[_0x3b93fe])&&(_0x2e9617=(_0x30e7bf?_0x13c03e(_0x12cca5,_0x99feeb,_0x2e9617):_0x13c03e(_0x2e9617))||_0x2e9617);return _0x30e7bf&&_0x2e9617&&Ki(_0x12cca5,_0x99feeb,_0x2e9617),_0x2e9617;},se=(_0x52a4ee,_0x29261c)=>(_0x5b8c21,_0x10d9a3)=>_0x29261c(_0x5b8c21,_0x10d9a3,_0x52a4ee);exports['DataLoaderController']=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x585af7,_0x30d269,_0x3c4ffb,_0x343c03,_0x5b0404,_0x14525f){const _0x3b8ec0=_0x58ee4a;super(),this[_0x3b8ec0(0x3b0)]=_0x585af7,this[_0x3b8ec0(0x2bd)]=_0x30d269,this[_0x3b8ec0(0x325)]=_0x3c4ffb,this['_localCacheService']=_0x343c03,this['_snapshotService']=_0x5b0404,_0x14525f?_0x14525f==null||_0x14525f['whenReady']()[_0x3b8ec0(0x13a)](()=>this['_init']()):(this['_logService'][_0x3b8ec0(0x254)](_0x3b8ec0(0x156),_0x3b8ec0(0x41c)),this['_init']());}async[_0x58ee4a(0x34a)](){const _0x1027a6=_0x58ee4a,_0x507e9f=this[_0x1027a6(0x3b0)]['getParam'](_0x1027a6(0x34e)),_0x598b65=this[_0x1027a6(0x3b0)][_0x1027a6(0x337)](_0x1027a6(0x1f0));if(!_0x507e9f||!_0x598b65){this[_0x1027a6(0x2bd)][_0x1027a6(0x254)](_0x1027a6(0x156),_0x1027a6(0x492));return;}switch(Number(_0x598b65)){case H[_0x1027a6(0x44a)]:{const _0x33eca3=await this[_0x1027a6(0x37b)](_0x507e9f);this['_setupSubUnitSync'](_0x33eca3);break;}case H[_0x1027a6(0x437)]:{await this['_loadDoc'](_0x507e9f);break;}default:{this[_0x1027a6(0x2bd)][_0x1027a6(0x427)]('[DataLoaderController]',_0x1027a6(0x4b5));break;}}}async['_setupSubUnitSync'](_0xbe680b){const _0x339d10=_0x58ee4a;await this[_0x339d10(0x238)](_0xbe680b),_0xbe680b['activeSheet$'][_0x339d10(0xd9)](v[_0x339d10(0x435)](this[_0x339d10(0x1e4)]))[_0x339d10(0x3fa)](_0x4a4de0=>{const _0xeae137=_0x339d10;_0x4a4de0&&this[_0xeae137(0x3df)](_0x4a4de0);}),this[_0x339d10(0x3b0)]['urlChange$'][_0x339d10(0xd9)](v['takeUntil'](this[_0x339d10(0x1e4)]))['subscribe'](()=>this['_updateSubUnitFromURLParams'](_0xbe680b));}[_0x58ee4a(0x3df)](_0x2bf23f,_0x3d1c59=!0x1){const _0x26f865=_0x58ee4a,_0x54bb5a=this[_0x26f865(0x3b0)][_0x26f865(0x337)](_0x26f865(0x2f8));_0x2bf23f[_0x26f865(0x393)]()!==_0x54bb5a&&this[_0x26f865(0x3b0)][_0x26f865(0x2a2)](_0x26f865(0x2f8),_0x2bf23f[_0x26f865(0x393)](),_0x3d1c59);}async[_0x58ee4a(0x238)](_0x54f502){const _0x324fbf=_0x58ee4a;var _0x77afb;const _0x4d6321=this['_urlService']['getParam'](_0x324fbf(0x2f8));if(!_0x4d6321||!_0x54f502[_0x324fbf(0xcf)](_0x4d6321)){const _0x19056b=_0x54f502[_0x324fbf(0x2ce)]()[0x0],_0x235445=_0x54f502[_0x324fbf(0xcf)](_0x19056b);if(!_0x235445)return;this[_0x324fbf(0x3df)](_0x235445,!0x0),await this[_0x324fbf(0x325)][_0x324fbf(0x245)](C[_0x324fbf(0x2b1)]['id'],{'unitId':_0x54f502[_0x324fbf(0x33f)](),'subUnitId':_0x19056b});return;}((_0x77afb=_0x54f502[_0x324fbf(0xfd)]())==null?void 0x0:_0x77afb['getSheetId']())!==_0x4d6321&&await this[_0x324fbf(0x325)][_0x324fbf(0x245)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x54f502[_0x324fbf(0x33f)](),'subUnitId':_0x4d6321});}async[_0x58ee4a(0x37b)](_0x69d59f){const _0x308d24=_0x58ee4a;let _0x4a97c1=0x0;const _0x555815=await this[_0x308d24(0x147)][_0x308d24(0x4d5)](_0x69d59f);return _0x555815&&(_0x555815['awaitingChangeset']||_0x555815[_0x308d24(0x3f1)][_0x308d24(0x4bb)]!==0x0)&&(_0x4a97c1=_0x555815[_0x308d24(0x472)]),_0x4a97c1===0x0&&this[_0x308d24(0x2bd)][_0x308d24(0x254)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x308d24(0x463)][_0x308d24(0x25a)](_0x69d59f,_0x4a97c1);}async[_0x58ee4a(0x424)](_0x519a8b){const _0x48f575=_0x58ee4a;let _0x1958b0=0x0;const _0xda1e21=await this[_0x48f575(0x147)][_0x48f575(0x4d5)](_0x519a8b);return _0xda1e21&&(_0xda1e21[_0x48f575(0x340)]||_0xda1e21['mutations']['length']!==0x0)&&(_0x1958b0=_0xda1e21[_0x48f575(0x472)]),_0x1958b0===0x0&&this[_0x48f575(0x2bd)][_0x48f575(0x254)]('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x48f575(0x463)]['loadDoc'](_0x519a8b,_0x1958b0);}},exports[_0x58ee4a(0x1d9)]=qi([se(0x0,Ze),se(0x1,a[_0x58ee4a(0x220)]),se(0x2,a['ICommandService']),se(0x3,a['Inject'](exports[_0x58ee4a(0x498)])),se(0x4,a[_0x58ee4a(0x2ee)](_[_0x58ee4a(0x266)])),se(0x5,a[_0x58ee4a(0x293)](Xt[_0x58ee4a(0x299)]))],exports[_0x58ee4a(0x1d9)]);var zi=Object[_0x58ee4a(0x185)],Ji=Object[_0x58ee4a(0x3f5)],Zi=(_0x40ef2e,_0x4118a3,_0xb957c3,_0x441ddb)=>{for(var _0x561e8c=_0x441ddb>0x1?void 0x0:_0x441ddb?Ji(_0x4118a3,_0xb957c3):_0x4118a3,_0x4e5884=_0x40ef2e['length']-0x1,_0x21feac;_0x4e5884>=0x0;_0x4e5884--)(_0x21feac=_0x40ef2e[_0x4e5884])&&(_0x561e8c=(_0x441ddb?_0x21feac(_0x4118a3,_0xb957c3,_0x561e8c):_0x21feac(_0x561e8c))||_0x561e8c);return _0x441ddb&&_0x561e8c&&zi(_0x4118a3,_0xb957c3,_0x561e8c),_0x561e8c;},ht=(_0x3698ec,_0x30f6ce)=>(_0x2d4bb6,_0x4b9ce2)=>_0x30f6ce(_0x2d4bb6,_0x4b9ce2,_0x3698ec);const Qi=_0x58ee4a(0x4eb),en=_0x58ee4a(0x18d);let Ce=class extends a[_0x58ee4a(0x2dd)]{constructor(_0x4834e2,_0x146913){const _0x50388d=_0x58ee4a;super(),this[_0x50388d(0x135)]=_0x4834e2,this[_0x50388d(0x324)]=_0x146913,this['_init']();}[_0x58ee4a(0x34a)](){const _0x2baa29=_0x58ee4a;this['disposeWithMe'](this[_0x2baa29(0x135)][_0x2baa29(0x108)]['subscribe'](()=>{const _0x3152ba=_0x2baa29;var _0x2815af;const _0x26c772=this[_0x3152ba(0x135)]['getFocusedUnit']();let _0x406200=(_0x2815af=this[_0x3152ba(0x324)][_0x3152ba(0xc6)](Qi))!=null?_0x2815af:en;_0x26c772 instanceof a[_0x3152ba(0x20b)]&&(_0x406200=_0x26c772[_0x3152ba(0xd6)]),document[_0x3152ba(0xc4)]=_0x406200;}));}};Ce=Zi([ht(0x0,a[_0x58ee4a(0x200)]),ht(0x1,a[_0x58ee4a(0x3ac)])],Ce);var tn=Object[_0x58ee4a(0x185)],sn=Object[_0x58ee4a(0x3f5)],nn=(_0x1a25b8,_0x49c91a,_0xe98d94,_0x5b8931)=>{for(var _0x2e6cb1=_0x5b8931>0x1?void 0x0:_0x5b8931?sn(_0x49c91a,_0xe98d94):_0x49c91a,_0x293beb=_0x1a25b8['length']-0x1,_0x1ae7d5;_0x293beb>=0x0;_0x293beb--)(_0x1ae7d5=_0x1a25b8[_0x293beb])&&(_0x2e6cb1=(_0x5b8931?_0x1ae7d5(_0x49c91a,_0xe98d94,_0x2e6cb1):_0x1ae7d5(_0x2e6cb1))||_0x2e6cb1);return _0x5b8931&&_0x2e6cb1&&tn(_0x49c91a,_0xe98d94,_0x2e6cb1),_0x2e6cb1;},je=(_0xf87bfd,_0xc32bea)=>(_0x324e8f,_0x1fd6f8)=>_0xc32bea(_0x324e8f,_0x1fd6f8,_0xf87bfd);let Ee=class{constructor(_0x2f9b35,_0x24308b,_0x2e2ac9){const _0x50a845=_0x58ee4a;this['_configService']=_0x2f9b35,this[_0x50a845(0x3b5)]=_0x24308b,this[_0x50a845(0x25c)]=_0x2e2ac9,this[_0x50a845(0x217)]();}[_0x58ee4a(0x217)](){const _0x845ad0=_0x58ee4a;this[_0x845ad0(0x3b5)][_0x845ad0(0x38b)]({'priority':0x1,'interceptor':(_0x5c4476,_0x4893f9)=>_0x4893f9(_0x5c4476)[_0x845ad0(0xd9)](v['concatMap'](async _0x167b6b=>{const _0x2a51de=_0x845ad0,_0xbad559=_0x167b6b;if(_0xbad559[_0x2a51de(0x369)]===0x191&&window[_0x2a51de(0x4df)](this[_0x2a51de(0x25c)]['t']('auth.needGotoLoginAlert'))){const _0x38b7dd=window[_0x2a51de(0x112)](window[_0x2a51de(0x2c9)][_0x2a51de(0x260)]);window['location']['href']=this[_0x2a51de(0x27c)]()+_0x2a51de(0x371)+_0x38b7dd;}return _0xbad559;}))});}['_getLoginPath'](){const _0x428762=_0x58ee4a;var _0x1e9d22,_0x50d42b;const _0x596ddc=this[_0x428762(0x324)]['getConfig'](Ct),_0xd169c0=this[_0x428762(0x324)][_0x428762(0xc6)]($);return(_0x50d42b=(_0x1e9d22=_0xd169c0==null?void 0x0:_0xd169c0[_0x428762(0x18a)])!=null?_0x1e9d22:_0x596ddc)!=null?_0x50d42b:rs;}};Ee=nn([je(0x0,a[_0x58ee4a(0x3ac)]),je(0x1,a[_0x58ee4a(0x2ee)](U[_0x58ee4a(0x408)])),je(0x2,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x32b)]))],Ee);var rn=Object[_0x58ee4a(0x185)],on=Object[_0x58ee4a(0x3f5)],an=(_0x181cc6,_0x1c4f34,_0x2bdace,_0x285f81)=>{const _0x3d9e56=_0x58ee4a;for(var _0xb77049=_0x285f81>0x1?void 0x0:_0x285f81?on(_0x1c4f34,_0x2bdace):_0x1c4f34,_0xa5309d=_0x181cc6[_0x3d9e56(0x4bb)]-0x1,_0x27e9f9;_0xa5309d>=0x0;_0xa5309d--)(_0x27e9f9=_0x181cc6[_0xa5309d])&&(_0xb77049=(_0x285f81?_0x27e9f9(_0x1c4f34,_0x2bdace,_0xb77049):_0x27e9f9(_0xb77049))||_0xb77049);return _0x285f81&&_0xb77049&&rn(_0x1c4f34,_0x2bdace,_0xb77049),_0xb77049;},_t=(_0x56d1d,_0x972da2)=>(_0x1a6764,_0x1293b6)=>_0x972da2(_0x1a6764,_0x1293b6,_0x56d1d);const jt=_0x58ee4a(0x4f7),cn=_0x58ee4a(0x20f);exports[_0x58ee4a(0x411)]=class extends a[_0x58ee4a(0x2dd)]{constructor(_0x2a61d8,_0x452e78){const _0x4a55e8=_0x58ee4a;super(),this['_HTTPService']=_0x2a61d8,this[_0x4a55e8(0x324)]=_0x452e78,this['_initMergeInterceptor']();}[_0x58ee4a(0x347)](){const _0x1f0d7f=_0x58ee4a,_0x5699e0=this;this[_0x1f0d7f(0x281)](this[_0x1f0d7f(0x4a3)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':U[_0x1f0d7f(0x4cd)]({'isMatch'(_0x42e0ea){const _0x57c139=_0x1f0d7f;var _0x2eabfb;if(_0x42e0ea[_0x57c139(0x143)]===_0x57c139(0x257)&&((_0x2eabfb=_0x42e0ea[_0x57c139(0x35c)])!=null&&_0x2eabfb[_0x57c139(0x2ed)])){const {objectID:_0x2e168a,objectType:_0x886936}=_0x42e0ea[_0x57c139(0x35c)][_0x57c139(0x2ed)]||{};if(!_0x2e168a||_0x886936===void 0x0)return!0x1;const _0x39ec5d=_0x5699e0[_0x57c139(0x1ce)]()+'/'+_0x886936+_0x57c139(0x336)+_0x2e168a+_0x57c139(0x107);if(_0x42e0ea[_0x57c139(0x251)]===_0x39ec5d)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x70f2ed){const _0x75a010=_0x1f0d7f;var _0x318939;return(_0x318939=_0x70f2ed[_0x75a010(0x35c)])==null?void 0x0:_0x318939[_0x75a010(0x2ed)];},'mergeParamsToRequest'(_0x2d35d,_0x5308ad){const _0x53d717=_0x1f0d7f,_0xb4b9b8=_0x5699e0['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x523781=_0x2d35d[_0x53d717(0x3ec)]((_0x2d99b0,_0x520234)=>{const _0x5c7e87=_0x53d717,{unitID:_0x2b57fb,objectID:_0x17a14f,objectType:_0xb95494,actions:_0x645cf7}=_0x520234;return _0x2d99b0[_0x2b57fb]||(_0x2d99b0[_0x2b57fb]={}),_0x2d99b0[_0x2b57fb][_0x17a14f]||(_0x2d99b0[_0x2b57fb][_0x17a14f]={'objectID':_0x17a14f,'objectType':_0xb95494,'actions':[]}),_0x2d99b0[_0x2b57fb][_0x17a14f][_0x5c7e87(0x4d4)][_0x5c7e87(0x10b)](..._0x645cf7),_0x2d99b0;},{}),_0x2254f3=[];for(const _0xa5de98 in _0x523781)for(const _0x2ff5b9 in _0x523781[_0xa5de98]){const {actions:_0x4cc04f,objectType:_0x92d22e}=_0x523781[_0xa5de98][_0x2ff5b9],_0x4d5c23=[...new Set(_0x4cc04f)];_0x2254f3[_0x53d717(0x10b)]({'unitID':_0xa5de98,'objectID':_0x2ff5b9,'objectType':_0x92d22e,'actions':_0x4d5c23});}return new U[(_0x53d717(0x197))]('POST',_0xb4b9b8,{'headers':_0x5308ad[_0x53d717(0x3ef)],'withCredentials':_0x5308ad[_0x53d717(0x1f2)],'responseType':_0x5308ad['responseType'],'body':{'requests':_0x2254f3}});}},{'distributeResult'(_0x243bf1,_0xc60594){const _0x12d00c=_0x1f0d7f,{objectActions:_0x56b3ec}=_0x243bf1;return _0xc60594[_0x12d00c(0x34c)](_0x2a1f0b=>{const _0x59970a=_0x12d00c,{unitID:_0x2bc127,objectID:_0x4e9d6c,actions:_0x967094}=_0x2a1f0b,_0x559c84=_0x56b3ec[_0x59970a(0x449)](_0x3fafa6=>_0x3fafa6[_0x59970a(0x4a1)]===_0x2bc127&&_0x3fafa6[_0x59970a(0x1ff)]===_0x4e9d6c),_0x46888b=_0x967094[_0x59970a(0x34c)](_0x21563c=>_0x559c84==null?void 0x0:_0x559c84[_0x59970a(0x4d4)][_0x59970a(0x449)](_0x3ec6ae=>_0x3ec6ae['action']===_0x21563c))[_0x59970a(0x2de)](_0xfcfef2=>!!_0xfcfef2);return{'config':_0x2a1f0b,'result':{'actions':_0x46888b,'error':_0x243bf1[_0x59970a(0x427)]}};});}})}));}[_0x58ee4a(0x1ce)](){const _0x3a5f7e=_0x58ee4a;var _0x26668d,_0x5d3445;const _0x24ddc1=this[_0x3a5f7e(0x324)][_0x3a5f7e(0xc6)](jt),_0x24e7dd=this[_0x3a5f7e(0x324)][_0x3a5f7e(0xc6)]($);return(_0x5d3445=(_0x26668d=_0x24e7dd==null?void 0x0:_0x24e7dd[_0x3a5f7e(0x473)])!=null?_0x26668d:_0x24ddc1)!=null?_0x5d3445:cn;}async[_0x58ee4a(0x377)](_0x24cab6){const _0x443f33=_0x58ee4a,_0x414aa7=this[_0x443f33(0x1ce)]()+'/'+_0x24cab6[_0x443f33(0x15b)]+_0x443f33(0x19a);return(await this['_HTTPService'][_0x443f33(0x451)](_0x414aa7,{'body':_0x24cab6}))[_0x443f33(0x2ed)][_0x443f33(0x1ff)]||'';}async[_0x58ee4a(0x467)](_0x21d850){const _0xbd19c6=_0x58ee4a,_0x158c9f=this[_0xbd19c6(0x1ce)]()+_0xbd19c6(0x3e4);return(await this['_HTTPService'][_0xbd19c6(0x451)](_0x158c9f,{'body':_0x21d850}))[_0xbd19c6(0x2ed)][_0xbd19c6(0xbf)];}async[_0x58ee4a(0x170)](_0xa7a85a){const _0x1b9c1c=_0x58ee4a,_0x38966b=this['_getAPIPrefixPath']()+'/'+_0xa7a85a['objectType']+'/object/'+_0xa7a85a[_0x1b9c1c(0x1ff)];await this[_0x1b9c1c(0x4a3)][_0x1b9c1c(0x2fe)](_0x38966b,{'body':_0xa7a85a});}async[_0x58ee4a(0x13e)](_0x1d9d48){const _0x12a6f7=_0x58ee4a,_0x557394=this[_0x12a6f7(0x1ce)]()+'/'+_0x1d9d48[_0x12a6f7(0x15b)]+_0x12a6f7(0x336)+_0x1d9d48[_0x12a6f7(0x1ff)]+_0x12a6f7(0x107);return(await this[_0x12a6f7(0x4a3)][_0x12a6f7(0x451)](_0x557394,{'body':_0x1d9d48}))[_0x12a6f7(0x2ed)][_0x12a6f7(0x4d4)];}async[_0x58ee4a(0x230)](_0x1c385c){const _0x34cbb8=_0x58ee4a,_0x3c2edc=this[_0x34cbb8(0x1ce)]()+_0x34cbb8(0x225);return(await this[_0x34cbb8(0x4a3)][_0x34cbb8(0x451)](_0x3c2edc,{'body':{'requests':_0x1c385c}}))[_0x34cbb8(0x2ed)][_0x34cbb8(0x151)];}async['listRoles'](_0x3016d6){const _0xb62344=_0x58ee4a,_0x4754bd=this['_getAPIPrefixPath']()+'/'+_0x3016d6['objectType']+_0xb62344(0x117),_0x29d62f=await this[_0xb62344(0x4a3)][_0xb62344(0x451)](_0x4754bd,{'body':_0x3016d6});return{'roles':_0x29d62f[_0xb62344(0x2ed)][_0xb62344(0x136)],'actions':_0x29d62f[_0xb62344(0x2ed)]['actions']};}async[_0x58ee4a(0x444)](_0x22f2ba){const _0x4b44e5=_0x58ee4a,_0x3bdc9c=this[_0x4b44e5(0x1ce)]()+_0x4b44e5(0x454);await this[_0x4b44e5(0x4a3)][_0x4b44e5(0x1d5)](_0x3bdc9c,{'params':{'collaboratorID':_0x22f2ba[_0x4b44e5(0x114)],'objectID':_0x22f2ba[_0x4b44e5(0x1ff)],'unitID':_0x22f2ba[_0x4b44e5(0x4a1)]}});}async['updateCollaborator'](_0x56b820){const _0x37e9b6=_0x58ee4a,_0x3287d0=this[_0x37e9b6(0x1ce)]()+'/collaborator';await this[_0x37e9b6(0x4a3)][_0x37e9b6(0x14e)](_0x3287d0,{'body':_0x56b820});}async[_0x58ee4a(0x2d1)](_0x38fe16){const _0x5045d8=_0x58ee4a,_0x146318=this[_0x5045d8(0x1ce)]()+'/collaborator';await this[_0x5045d8(0x4a3)][_0x5045d8(0x451)](_0x146318,{'body':_0x38fe16});}async[_0x58ee4a(0x149)](_0x5da8e7){const _0x4b4f29=_0x58ee4a,_0x560ad5=this[_0x4b4f29(0x1ce)]()+_0x4b4f29(0x454);return(await this[_0x4b4f29(0x4a3)][_0x4b4f29(0x129)](_0x560ad5,{'params':{'objectID':_0x5da8e7[_0x4b4f29(0x1ff)],'unitID':_0x5da8e7[_0x4b4f29(0x4a1)]}}))[_0x4b4f29(0x2ed)]['collaborators'];}async[_0x58ee4a(0x38d)](_0x30ba2c){const _0x814739=_0x58ee4a,_0x39d435=this[_0x814739(0x1ce)]()+'/collaborator';await this[_0x814739(0x4a3)][_0x814739(0x2fe)](_0x39d435,{'body':_0x30ba2c});}},exports[_0x58ee4a(0x411)]=an([_t(0x0,a[_0x58ee4a(0x2ee)](U['HTTPService'])),_t(0x1,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x3ac)]))],exports[_0x58ee4a(0x411)]);var ln=Object[_0x58ee4a(0x185)],hn=Object[_0x58ee4a(0x3f5)],_n=(_0x16de58,_0x526f7b,_0x2b64e2,_0x4d2e3b)=>{const _0x5e1eca=_0x58ee4a;for(var _0x2340d6=_0x4d2e3b>0x1?void 0x0:_0x4d2e3b?hn(_0x526f7b,_0x2b64e2):_0x526f7b,_0xfc1ea1=_0x16de58[_0x5e1eca(0x4bb)]-0x1,_0x5af814;_0xfc1ea1>=0x0;_0xfc1ea1--)(_0x5af814=_0x16de58[_0xfc1ea1])&&(_0x2340d6=(_0x4d2e3b?_0x5af814(_0x526f7b,_0x2b64e2,_0x2340d6):_0x5af814(_0x2340d6))||_0x2340d6);return _0x4d2e3b&&_0x2340d6&&ln(_0x526f7b,_0x2b64e2,_0x2340d6),_0x2340d6;},un=(_0x4a644d,_0x230cea)=>(_0x2537dc,_0x1815eb)=>_0x230cea(_0x2537dc,_0x1815eb,_0x4a644d);let be=class{constructor(_0x387bdd){const _0x3dba57=_0x58ee4a;this[_0x3dba57(0x3b5)]=_0x387bdd,this[_0x3dba57(0x152)]();}['_initRequestHeader'](){const _0x5b5747=_0x58ee4a;this[_0x5b5747(0x3b5)][_0x5b5747(0x38b)]({'interceptor':(_0xd09d85,_0x51c5ea)=>{const _0x22de19=_0x5b5747,_0x13d535=_0xd09d85[_0x22de19(0x3ef)],_0x16f451=qt['getAttachHeader']();return _0x16f451&&_0x13d535['set']('x-univer-host',_0x16f451),_0x51c5ea(_0xd09d85);}});}};be=_n([un(0x0,a[_0x58ee4a(0x2ee)](U[_0x58ee4a(0x408)]))],be);var dn=Object[_0x58ee4a(0x185)],Sn=Object[_0x58ee4a(0x3f5)],vn=(_0x3730d6,_0x16cfdd,_0x108d7d,_0xba02f8)=>{const _0x55e799=_0x58ee4a;for(var _0x713e22=_0xba02f8>0x1?void 0x0:_0xba02f8?Sn(_0x16cfdd,_0x108d7d):_0x16cfdd,_0x4945f8=_0x3730d6[_0x55e799(0x4bb)]-0x1,_0x36e185;_0x4945f8>=0x0;_0x4945f8--)(_0x36e185=_0x3730d6[_0x4945f8])&&(_0x713e22=(_0xba02f8?_0x36e185(_0x16cfdd,_0x108d7d,_0x713e22):_0x36e185(_0x713e22))||_0x713e22);return _0xba02f8&&_0x713e22&&dn(_0x16cfdd,_0x108d7d,_0x713e22),_0x713e22;},He=(_0xfdbd71,_0x8d0d62)=>(_0x2786a5,_0xb02993)=>_0x8d0d62(_0x2786a5,_0xb02993,_0xfdbd71);const mn=[_0x58ee4a(0x113),_0x58ee4a(0x213),_0x58ee4a(0x2ab),_0x58ee4a(0x235),_0x58ee4a(0x468)],gn=0x5*0x400*0x400,fn=_0x58ee4a(0x24e),In=_0x58ee4a(0x4c7),pn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',Cn=_0x58ee4a(0x2e9);exports['ImageIoService']=class{constructor(_0x3d3442,_0x5dc3d7,_0x3caab0){const _0x51a57c=_0x58ee4a;u(this,'_waitCount',0x0),u(this,'_change$',new v[(_0x51a57c(0x3ba))]()),u(this,_0x51a57c(0x21a),this['_change$']),u(this,_0x51a57c(0x121),new Map()),(this[_0x51a57c(0x3b5)]=_0x3d3442,this[_0x51a57c(0x324)]=_0x5dc3d7,this[_0x51a57c(0x135)]=_0x3caab0);}['setWaitCount'](_0x51ae81){const _0x59df6e=_0x58ee4a;this[_0x59df6e(0x3aa)]=_0x51ae81,this[_0x59df6e(0x27f)]['next'](_0x51ae81);}[_0x58ee4a(0x1f5)](_0x8fde32,_0x863817){const _0x57d43=_0x58ee4a;if(_0x863817===j['ImageSourceType'][_0x57d43(0x2e5)]){const _0x573fca=new Image();return _0x573fca[_0x57d43(0x30d)]=_0x8fde32,_0x573fca;}return this['_imageSourceCache'][_0x57d43(0x129)](_0x8fde32);}['addImageSourceCache'](_0x517701,_0xc6e755,_0x2cf167){const _0x360525=_0x58ee4a;_0xc6e755===j['ImageSourceType'][_0x360525(0x2e5)]||_0x2cf167==null||this[_0x360525(0x121)][_0x360525(0x1e3)](_0x517701,_0x2cf167);}async['getImage'](_0x569a73){const _0x9dcb5e=_0x58ee4a;try{const _0x22b376=this['_replaceFileID'](this[_0x9dcb5e(0x45c)](),''+_0x569a73),_0x40b61d=(await this[_0x9dcb5e(0x3b5)][_0x9dcb5e(0x129)](_0x22b376))[_0x9dcb5e(0x2ed)];if(_0x40b61d[_0x9dcb5e(0x427)]&&_0x40b61d[_0x9dcb5e(0x427)][_0x9dcb5e(0x37c)]===Et['OK']){const _0x53c7f9=new URL(_0x40b61d[_0x9dcb5e(0x251)],this[_0x9dcb5e(0x2e1)]())[_0x9dcb5e(0xdc)]();return Promise[_0x9dcb5e(0x285)](_0x53c7f9);}return Promise[_0x9dcb5e(0x456)](_0x40b61d[_0x9dcb5e(0x427)]);}catch(_0x288565){return Promise[_0x9dcb5e(0x456)](_0x288565);}}async[_0x58ee4a(0x2c3)](_0xc87bcf){const _0x28c312=_0x58ee4a;let _0x1779bf='';if(!mn['includes'](_0xc87bcf['type']))return this[_0x28c312(0x319)](),Promise[_0x28c312(0x456)](new Error(j[_0x28c312(0x295)][_0x28c312(0x440)]));if(_0xc87bcf[_0x28c312(0x486)]>gn)return this['_decreaseWaiting'](),Promise[_0x28c312(0x456)](new Error(j['ImageUploadStatusType'][_0x28c312(0x1e1)]));try{const _0x1ec153=new FormData();_0x1ec153[_0x28c312(0x11e)]('file',_0xc87bcf);const _0x5a8e99=this[_0x28c312(0x135)][_0x28c312(0x175)](),_0x45923a=_0x5a8e99==null?void 0x0:_0x5a8e99[_0x28c312(0x33f)]();if(!_0x45923a)throw new Error(_0x28c312(0xcd));const _0x5be79e=this[_0x28c312(0x232)]()+_0x28c312(0x2f5)+_0xc87bcf[_0x28c312(0x486)][_0x28c312(0xdc)]()+_0x28c312(0x1d6)+bt[_0x28c312(0x4af)]+_0x28c312(0x22e)+encodeURIComponent(_0x45923a),_0x53afce=await(await fetch(_0x5be79e,{'method':_0x28c312(0x257),'body':_0x1ec153}))[_0x28c312(0x1a3)]();if(typeof _0x53afce[_0x28c312(0x23e)]!='string')return this[_0x28c312(0x319)](),Promise[_0x28c312(0x456)](new Error(j['ImageUploadStatusType'][_0x28c312(0x22b)]));_0x1779bf=_0x53afce[_0x28c312(0x23e)];}catch{return this[_0x28c312(0x319)](),Promise['reject'](new Error(j[_0x28c312(0x295)]['ERROR_IMAGE']));}return new Promise((_0x3ba62f,_0xdc87d3)=>{const _0x1feed3=_0x28c312,_0x4b2744=new FileReader();_0x4b2744['readAsDataURL'](_0xc87bcf),_0x4b2744[_0x1feed3(0x4c9)]=_0x3067e8=>{const _0x4b4b1d=_0x1feed3;var _0x437570;const _0x11ba5b=(_0x437570=_0x3067e8[_0x4b4b1d(0x3c6)])==null?void 0x0:_0x437570[_0x4b4b1d(0xf5)];if(_0x11ba5b==null){this[_0x4b4b1d(0x319)](),_0xdc87d3(new Error(j['ImageUploadStatusType'][_0x4b4b1d(0x22b)]));return;}const _0x357980=a[_0x4b4b1d(0x423)]['generateRandomId'](0x6);_0x3ba62f({'imageId':_0x357980,'imageSourceType':j[_0x4b4b1d(0x35a)][_0x4b4b1d(0x237)],'source':_0x1779bf,'base64Cache':_0x11ba5b,'status':j[_0x4b4b1d(0x295)]['SUCCUSS']}),this['_decreaseWaiting']();};});}[_0x58ee4a(0x232)](){const _0x41cc9e=_0x58ee4a;var _0x1da919,_0x5c7bd3;const _0x2824ef=this[_0x41cc9e(0x324)][_0x41cc9e(0xc6)](fn),_0x1733f3=this[_0x41cc9e(0x324)][_0x41cc9e(0xc6)]($);return(_0x5c7bd3=(_0x1da919=_0x1733f3==null?void 0x0:_0x1733f3['uploadFileServerUrl'])!=null?_0x1da919:_0x2824ef)!=null?_0x5c7bd3:In;}[_0x58ee4a(0x45c)](){const _0x4bfa0f=_0x58ee4a;var _0x362d82,_0x4bae1e;const _0x45d5d0=this[_0x4bfa0f(0x324)][_0x4bfa0f(0xc6)](pn),_0x59780f=this[_0x4bfa0f(0x324)][_0x4bfa0f(0xc6)]($);return(_0x4bae1e=(_0x362d82=_0x59780f==null?void 0x0:_0x59780f[_0x4bfa0f(0x459)])!=null?_0x362d82:_0x45d5d0)!=null?_0x4bae1e:Cn;}[_0x58ee4a(0x2e1)](){const _0x10d7cf=_0x58ee4a;var _0x5c8fdc;const _0x512351=this[_0x10d7cf(0x324)][_0x10d7cf(0xc6)]($);return(_0x5c8fdc=_0x512351==null?void 0x0:_0x512351['downloadEndpointUrl'])!=null?_0x5c8fdc:location[_0x10d7cf(0x4b2)];}[_0x58ee4a(0x30c)](_0x117942,_0xe9dba7){const _0x12dfd4=_0x58ee4a;return _0x117942[_0x12dfd4(0x40c)](_0x12dfd4(0xce),_0xe9dba7);}[_0x58ee4a(0x319)](){const _0x1e011a=_0x58ee4a;this[_0x1e011a(0x3aa)]-=0x1,this[_0x1e011a(0x27f)]['next'](this['_waitCount']);}},exports[_0x58ee4a(0x279)]=vn([He(0x0,a[_0x58ee4a(0x2ee)](U[_0x58ee4a(0x408)])),He(0x1,a[_0x58ee4a(0x3ac)]),He(0x2,a['Inject'](a[_0x58ee4a(0x200)]))],exports['ImageIoService']);var En=Object['defineProperty'],bn=Object['getOwnPropertyDescriptor'],Tn=(_0x2c7a7e,_0x4b75ef,_0x28b7fd,_0x3d7ec9)=>{const _0x5d53d2=_0x58ee4a;for(var _0x16d74c=_0x3d7ec9>0x1?void 0x0:_0x3d7ec9?bn(_0x4b75ef,_0x28b7fd):_0x4b75ef,_0x594568=_0x2c7a7e[_0x5d53d2(0x4bb)]-0x1,_0x82476b;_0x594568>=0x0;_0x594568--)(_0x82476b=_0x2c7a7e[_0x594568])&&(_0x16d74c=(_0x3d7ec9?_0x82476b(_0x4b75ef,_0x28b7fd,_0x16d74c):_0x82476b(_0x16d74c))||_0x16d74c);return _0x3d7ec9&&_0x16d74c&&En(_0x4b75ef,_0x28b7fd,_0x16d74c),_0x16d74c;},_e=(_0x573981,_0x276606)=>(_0x5e0fea,_0x250aa8)=>_0x276606(_0x5e0fea,_0x250aa8,_0x573981);let Te=class extends a[_0x58ee4a(0x3d2)]{constructor(_0x374cb3,_0x213536,_0x34ccdd,_0x3a6a57,_0x3a0577){const _0x101842=_0x58ee4a;super(),this['_injector']=_0x374cb3,this[_0x101842(0x135)]=_0x213536,this[_0x101842(0x1c3)]=_0x34ccdd,this['_collaborationSessionService']=_0x3a6a57,this[_0x101842(0x32e)]=_0x3a0577,this[_0x101842(0x258)](),this[_0x101842(0x12d)]();}[_0x58ee4a(0x12d)](){const _0x1346cc=_0x58ee4a,_0x141a7d=async _0x51137a=>{const _0x482d42=_0x5d3e;(await this[_0x482d42(0x397)]['requireSession'](_0x51137a))['event$'][_0x482d42(0xd9)](E[_0x482d42(0x2de)](_0x3302aa=>_0x3302aa[_0x482d42(0x342)]===_[_0x482d42(0x2af)][_0x482d42(0x402)]),E[_0x482d42(0x435)](this[_0x482d42(0x1e4)]))[_0x482d42(0x3fa)](_0x2d0d42=>{const _0x7ca721=_0x482d42,_0x57f715=_0x2d0d42,{reason:_0x34afde}=_0x57f715[_0x7ca721(0x40f)];this[_0x7ca721(0x43a)]['get'](A['IMessageService'])['show']({'type':J[_0x7ca721(0x228)][_0x7ca721(0x41d)],'content':this[_0x7ca721(0x32e)]['t'](_0x7ca721(0xc1))+'('+_0x34afde+')'}),this['_permissionService'][_0x7ca721(0x389)](new C[(_0x7ca721(0x3e5))](_0x51137a)['id'],!0x1),this[_0x7ca721(0x397)]['closeSession'](_0x51137a);});};v['merge'](this[_0x1346cc(0x135)][_0x1346cc(0x1ef)](a[_0x1346cc(0x1fa)]['UNIVER_SHEET']),this[_0x1346cc(0x135)][_0x1346cc(0x1ef)](a[_0x1346cc(0x1fa)][_0x1346cc(0x437)]))[_0x1346cc(0xd9)](E[_0x1346cc(0x34c)](_0x4cc69f=>_0x4cc69f[_0x1346cc(0x33f)]()),E['filter'](_0x5cdb8c=>!a[_0x1346cc(0x413)](_0x5cdb8c)),E[_0x1346cc(0x435)](this['dispose$']))[_0x1346cc(0x3fa)](_0xa64ebe=>{_0x141a7d(_0xa64ebe);});}[_0x58ee4a(0x258)](){const _0x4a8137=_0x58ee4a,_0x381565=async _0x5cef26=>{const _0x459527=_0x5d3e;(await this[_0x459527(0x397)][_0x459527(0xf3)](_0x5cef26))[_0x459527(0x1c7)][_0x459527(0xd9)](E['filter'](_0x59df62=>_0x59df62[_0x459527(0x342)]===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x459527(0x435)](this[_0x459527(0x1e4)]))[_0x459527(0x3fa)](_0x227474=>{const _0x375dbf=_0x459527,_0x542e1a=_0x227474,{objectId:_0x3d7094}=_0x542e1a[_0x375dbf(0x40f)],_0x329d6c=this[_0x375dbf(0x43a)][_0x375dbf(0x129)](ie[_0x375dbf(0x48f)]);_0x3d7094===_0x5cef26?_0x329d6c[_0x375dbf(0x4bf)](_0x5cef26):_0x329d6c['refreshPermission'](_0x5cef26,_0x3d7094);});};v[_0x4a8137(0x14d)](this[_0x4a8137(0x135)][_0x4a8137(0x1ef)](a[_0x4a8137(0x1fa)][_0x4a8137(0x44a)]),this[_0x4a8137(0x135)][_0x4a8137(0x1ef)](a['UniverInstanceType'][_0x4a8137(0x437)]))['pipe'](E['map'](_0x2569fe=>_0x2569fe[_0x4a8137(0x33f)]()),E[_0x4a8137(0x2de)](_0x55434f=>!a[_0x4a8137(0x413)](_0x55434f)),E[_0x4a8137(0x435)](this[_0x4a8137(0x1e4)]))[_0x4a8137(0x3fa)](_0x42a5df=>{_0x381565(_0x42a5df);});}};function _0x218e(){const _0x2c60b1=['_telemetryInfo','_checkMissing','_notificationService','getUnitId','awaitingChangeset','onCommentUpdate','eventID','tag','onMissingChangesets','throttleTime','number','_initMergeInterceptor','LIVESHARE_OPERATION','encode','_init','_context','map','_retryCount','unit','CHANGESET_SHOULD_RETRY','skeleton','_getCtorByUniverType','_updateStatus','getRenderById','icon','onTransformIME','_onCursorUpdate','[CollaborationUndoRedoService]','_selfUnitIDs','LIVESHARE_NEW_HOST','ImageSourceType','from','requestParams','removeMember','sequenceExecute','SessionStatus','_scheduleHeartbeat','_unlockTransition','useDependency','members','beginPath','_onRemoteRetry','random','OTHER_CLIENTS_EDITING','session.room-full','status','collabCursorState$','96mBbBtG','width','take','workbook','HEARTBEAT_TIMEOUT_KEY','createInstance','?url=','UNRECOGNIZED','_snapshotServerService','onlineStatus','_heartbeatTimer','c1Prime','create','getWorkbookSelections','ICollaborationSocketService','_updateLocalCache','_loadSheet','code','gold400','_sendHeartbeatTimer','debounce','setShowComponents','urlChange$','INTERNAL_ERROR','_clearLocalCache','_replayCachedMutations','getCurrentSelections','getCurrent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','jiqing500','updatePermissionPoint','_transformSelections','registerHTTPInterceptor','_collabSessionService','putCollaborators','_onLocalMutation','_transformStack','UNIVER_SLIDE','key','getCurrentUnitForType','getSheetId','onStarting','_scheduleSaving','asObservable','_collaborationSessionService','SNAPSHOT_HAS_BEEN_REMOVED','_session','_transformService','triggerDblclick','univer-offline','awaiting_with_pending','permissionRejEvent','COLLAB_WEB_SOCKET_URL_KEY','useRef','LEAVE','_textBubble','getCollabCursors$','TEXT','onlineStatusTitle','_removeRoom','_isPermissionRej','engine','_showConflictNotification','_waitCount','Warning','IConfigService','selection','_cachedData','unsubscribe','_urlService','createElement','close$','joinEvent','ThemeService','_httpService','clearTimeout','doc.mutation.rich-text-editing','touchDependencies','[PendingState]:\x20unhandled\x20univer\x20type:\x20','Subject','_removeClearOtherTimer','measureText','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','enableSingleActiveInstanceLock','3176210qaluSF','evenodd','use','_assignedColors','_collabCursorController','collabStatus.syncing','PSEUDO_FETCH_MISSING_RESULT','target','online','message$','34792bUoxmo','max','_shapes','moveTo','updateMember','send','_transformRemoteChangesetByIMECache','indexOf','socket\x20close','RxDisposable','COMPRESS_MUTATION_APPLY','NO_OTHER_CLIENTS_EDITING','collab-text-anchor-','handleIRemoveCol','univerjs-icon\x20univerjs-icon-','useCallback','rxjs/operators','FAIL','setItem','DocSelectionManagerService','clear','_type','_updateURLWithCurrentState','_waitForHeartbeatResponse','HEADER_MENU','userID','CollaborationController','/-/object/list','WorkbookEditablePermission','[CollaborationSessionService]','incrementRevOfUnit','COLLAB_SUBMIT_CHANGESET_URL_KEY','Undefined','_onCombEvent','_updateState','reduce','COMMENT_UPDATE','ITransformService','headers','univer-online','mutations','sessionStatus','UniverIcon','USERS_LEAVE','getOwnPropertyDescriptor','visibilityState','/new_changes','capture','history','subscribe','onMouseMove','_initStatusComponent','synced','updateCursorEvent','_joinRoom','_onUserLeave','_resendTimer','SHOULD_CLOSE_CONN','_state','_listenToOfflineEvent','fromEvent','entries','_executeRemoteChangeset','HTTPService','APPLY_REJECT','IRenderManagerService','_tryReconnect','replace','sessionStatus$','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','data','disposeUnit','AuthzIoHttpService','session.will-retry','isInternalEditorID','updateOfflineData','combineLatest','_queuedRemoteChangesets','JOIN','RemoveRowCommandId','_transformUndoRedoStack','collabStatus.offline','LIVESHARE_FETCH_OPERATIONS','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','Error','\x0aAfter:\x20','reverse','0\x200\x2016\x2016','_substituteRedoStack','HEARTBEAT_INTERVAL','Tools','_loadDoc','transformUndoRedo','addObject','error','collab-text-range-','/resources','selections','NOT_COLLAB','_roomMembers','_ws','[CollaborationSessionService]:\x20socket\x20error','split','drawWith','saveSnapshot','_getMergeRange','forwardRef','@univerjs/sheets-ui','takeUntil','roomMembers$','UNIVER_DOC','parse','setActiveRange','_injector','_createSocket','roomInfos','ranges','[SyncedState]:\x20received\x20acknowledgement.','_colorIndex','ERROR_IMAGE_TYPE','_awaitingChangeset','SYNCED','_throwTelemetryCollaborationNewChangeset','deleteCollaborator','_drawAnchor','\x20-\x20','_status$','isPermissionRej','find','UNIVER_SHEET','Plugin','addObjects','_sheetTransformSelectionsService','_saveTaskMap','RETRY_CONNECTING_MAX_COUNT','fillRule','post','ALREADY_EXISTS','children','/collaborator','IBeforeCloseService','reject','rxjs','_tryEnsureSocket','signUrlServerUrl','not_collab','popstate','_getSignURL','editing\x20status\x20changed\x20to','fetchMissingChangesets','@univerjs/engine-render','ITelemetryService','1em','_listenToOnlineEvent','_snapshotService','collaboration-client.config','_startTelemetryCollaborationNewChangeset','AWAITING','list','image/bmp','fromCollab','IAuthzIoService','displayName','subUnitId','handleIRemoveRow','_handleEvent','substring','hide','cursorInfo','rev','authzUrl','handleDeleteRangeMoveLeft','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','getCurrentUser','DesktopCollaborationStatusDisplayController','fillStyle','INGEST','MUTATION','[CollaborationState]:\x20apply\x20error!','c2Prime','subscribeEvent','getLatestCsReqIdBySid','DocCollaborationEntity','Shape','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','unknown','LIVESHARE_TERMINATE','getTypeOfUnitDisposed$','_cursor','size','toLowerCase','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','error$','ReplaySubject','Rect','VIEW_MAIN','_compressMutationService','_hovered','SheetPermissionInitController','_docSkeletonManagerService','_onRecvEvent','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','PERMISSION_DENIED','startRow','getUnitType','getOffsetConfig','assignAColorForMemberID','LocalCacheService','IMessageService','_unitID','getUnit','clearInterval','current','_draw','@univerjs/network','setConfig','unitID','routeKey','_HTTPService','getRandomValues','isActive','contains','UniverCollaborationPlugin','CollaborationSocketService','every','[SyncedState]:\x20received\x20rejection.','_getRedoStack','EmptyMutation','[UniverCollaborationClientPlugin]','startColumn','UnitEmbedded','setShapeProps','saveChangeset','origin','_collaborationPaused','_toggleOnline','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','newValue','session.connection-failed','/rev/','getOwnPropertySymbols','UPDATE_CURSOR','length','_createInitialState','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','getRangePointData','initWorkbookPermissionChange','InsertSheetMutation','_onRemoteRejected','forEach','state','fromEventSubject','OnLineSingle','JOINING','/universer-api/stream/file/upload','concat','onload','disableLocalCache','Error\x20on\x20receiving\x20event','0\x200\x2017\x2016','MergeInterceptorFactory','row','call','_lastPointer','syncEditingCollabCursor','_instanceService','DeleteRangeMoveLeftCommandId','actions','loadOfflineData','black','onPointerMove$','HEARTBEAT','saveSheetBlock','getCurrentRevOfUnit','onSyncEditingCollabCursor','_updateCollabCursors','_getCurrentRevision','resize','confirm','registerOnClose','DocIMEInputManagerService','_onFetchMissResult','getValue','7zxOXRD','endRow','transformIMECache','conflict','getItem','_anchorDot','IDLE','DEFAULT_FILE_NAME','LOCAL_CACHE_INTERVAL_KEY','_docTransformSelectionsService','ILocalStorageService','APPLY_DUPLICATED','_scheduleTimestamp','_onCursorDelete','_docSkeleton','246994QksXpy','_sendingTimer','startsWith','_onRefRangeChange','AUTHZ_URL_KEY','deepClone','round','toDisposable','OFFLINE','handleDeleteRangeMoveUp','isEditing','_getAnchorBounding','_changesetSessionId','_http','objects','&to=','collaboration.closeRoom','getAllMembers','blue400','title','_socket','getConfig','IURLService','registerBeforeClose','docStateChange$','status$','hasOwnProperty','HttpImport','unitId\x20is\x20not\x20found','{fileID}','getSheetBySheetId','LICENSE_IMPORT_SIZE_EXCEEDED','CHANGESET_REJ','_disabled','40ZBBCuR','getCellPositionByOffset','_getAPIPrefix','name','_backgroundColor','range','pipe','getActiveRange','fetch_missing','toString','@univerjs/engine-formula','_handleJoinEvent','restore','_name','_drawTextRange','392890Ixijmg','_handleHeartbeatEvent','getSkeleton','fill','NOT_FOUND','handleMoveRange','[OfflineState]:\x20received\x20rejection.','getRelativeToViewportCoord','_userManagerService','SNAPSHOT_URL_KEY','height','getInterceptPoints','IHTTPImplementation','DeleteRangeMoveUpCommandId','_initModules','_handleLeaveEvent','appendMutation','requireSession','_color','result','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','setCurrentUser','mapDocumentTypeToUniverType','CollaborationSessionService','15874DcBQWC','/universer-api/snapshot/','/fetchmissing?from=','getActiveSheet','_createHandler','handleInsertCol','deserializeToCombResponse','min','memberID','fillText','Unknown\x20user','InsertRangeMoveRightCommandId','socket\x20open.','/allowed','focused$','MSG_FOR_ERROR','resend','push','univer-online-status-icon','CompressMutationService','getColor','_onUserJoin','LOCAL_CACHE_INTERVAL','getTime','encodeURIComponent','image/png','collaboratorID','\x20in\x20_schedule.','visibilitychange','/role','hidden','debounceTime','CONFLICT','_handler','generateRandomId','has','append','getCollabEntity','stringify','_imageSourceCache','all','dispose','2201646YGNqPq','YUUMI_SUBSCRIPTION_NOT_FOUND','sheetID','_sender','_stopTelemetryCollaborationNewChangeset','get','stopTime','_roomMembers$','CommandType','_initCloseConn','_onRemoteChangeset','/universer-api/snapshot','_cursors','_hideTimer','values','YUUMI_URL_COL_OUT_OF_RANGE','shouldCloseConn','_univerInstanceService','roles','m1Prime','COLLAB_SUBMIT_CHANGESET_URL','_hover','then','UNKNOWN_CMD','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onRemoteRetry','allowed','connectInjector','_singleActiveUnitService','DependentOn','div','method','save\x20fail\x20reason\x20is\x20','_id','xlink:href','_localCacheService','labelPosition','listCollaborators','unitId','_drawRectRange','reconnect','merge','patch','replaceTextRanges','getViewport','objectActions','_initRequestHeader','_getUndoStack','_onJoinRoomEvent','SheetSkeletonManagerService','[DataLoaderController]','COLORS','_state$','MoveRangeCommandId','slice','objectType','_scene','transformMutationsWithChangeset','_changesetReqId','isTransformMutationsWithChangesetFailure','UNDEFINED','IPermissionService','registerRefRange','top','UserManagerService','socketService','switchMap','liveShareOperation','collaboration-session-retry','translate(.97)','now','RegularPolygon','_disableEditing','_clearScheduledTask','onRemoteChangeset','getMemberID','update','_messageService','object','_syncEditingCollabCursor','_handleHover','getFocusedUnit','[OfflineState]:\x20received\x20acknowledgement.','COLLAB_WEB_SOCKET_URL','CollaborationStatus','@univerjs/core','snapshot','_timeoutTimer','getVpScrollXYInfoByPosToVp','pending','UNIVER_PROJECT','copyFileMeta','parseProtocolChangeset','currentColor','univer-online-status-title','APPLY_NON_SEQUENTIAL_REVISION','INotificationService','defineProperty','updatePermissionObjEvent','ColorKit','state$','_docSyncEditingCollabCursorService','loginUrlKey','column','parseChangesetToProtocol','Univer','SetDocZoomRatioOperation','closeSession','attrs','SNAPSHOT_INVALID_SNAPSHOT','_localStorageService','_docStateChangeManagerService','fetchMiss','onMissedChangesetFetched','currentSkeleton$','HTTPRequest','Module','_send','/object','getAncestorScale','DisposableCollection','toggleOnline','params','INVALID_ARGUMENT','off-line-single_clip0_910_343','PENDING','_remoteChangesetQueue','json','_rescheduleHeartbeat','TOO_MANY_REQUESTS','getMember','url(#off-line-single_clip0_910_343)','_online','@univerjs/sheets','_sheetSkeletonManagerService','_startDocCollabCursor','CommentService','close','awaiting','sendChangesetTimeout','_socketMessageSubscription','_candidateSocket','offline','/unit/','enableOfflineEditing','RETRY_CONNECTING_MAX_COUNT_KEY','hovered','_scheduleCollaborationTimeoutTimer','sid','addEventListener','_transformUndoredo','_revisionService','useObservable','HELLO','colorChannel1','_clearHeartbeatTimer','sheets','onStateChange','verdancy600','_permissionService','YUUMI_UNABLE_LOAD_URL','_cursorInfo$','prototype','event$','CHANGESET_ACK','_unitStatus','b64DecodeUnicode','ThresholdInterceptorFactory','session','collaboration-client.offline-data-not-saved','_getAPIPrefixPath','transformByState','catch','_sessionStatus$','onRemoteRej','_lockTransition','LIVESHARE_REQUEST_HOST','delete','&source=','_scheduleClearOtherTimer','_getSheetObject','DataLoaderController','override','_updateLocalCursor','_startCollaboration','conflict.content','_registerRenderDependencies','baseRev','propertyIsEnumerable','ERROR_EXCEED_SIZE','uni.network.url-service','set','dispose$','idSuffix','_onRemoteACK','_incrementRevisionNumber','_config','defIds','RECT','collabStatus.fetchMiss','_resendWithTimeout','pauseCollaboration','BuiltInUIPart','getTypeOfUnitAdded$','type','serializeRangeWithSheet','withCredentials','_initCommandExecutedListener','clipPath','getImageSourceCache','FETCH_MISS','isArray','connection\x20error','_event$','UniverInstanceType','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','transformMutation','_pendingMutations','collabSubmitChangesetUrl','objectID','IUniverInstanceService','_uiPartsService','transformSelections','_retryConnectingTimer','SnapshotServerOverHTTPService','_toggleOffline','_sendHeartbeat','_commentUpdate$','show','interceptor','NEW_CHANGESETS','Workbook','equals','UniverCollaborationClientPlugin','#fff','/universer-api/authz','runRefRangeMutations','CHANGESET_REVISION_CONFILICT','telemetry\x20info\x20is\x20not\x20initialized','image/jpeg','_initStatusListener','defs','SheetCollaborationEntity','init','conflict.title','arc','change$','ICommandService','textRanges','distinctUntilChanged','string','failed\x20to\x20apply\x20missed\x20changesets!','ILogService','_collaborationTimeoutTimer','IUndoRedoService','SetTextSelectionsOperation','SUBMIT_CHANGESET','/-/object/-/batch_allowed','isTransformMutationsWithChangesetSuccess','YUUMI_RATE_OVER_LIMIT','MessageType','_getSnapshotAPIPrefix','COMPLETION_FINISHED','ERROR_IMAGE','transformRemoteChangeset','_refRangeService','&assign=','_commentService','batchAllowed','url(#on-line-single_clip0_910_349)','_getUploadFileURL','purple300','MemberService','image/gif','createIdentifier','UUID','_updateSubUnitFromURLParams','isTransformChangesetsSuccess','shareReplay','retryConnectingInterval','onCommandExecuted','_getSendChangesetTimeout','FileId','svg','toggleOffline','sheetId','pushState','setUndoRedoMutationParamsCache','PERMISSION_REJ','executeCommand','RefRangeService','_createInitialStateImpl','csAckEvent','ACTIVE_UNIT_EVENT_CHANNEL','IContextService','_entities','Tooltip','LICENSE_EXPORT_SIZE_EXCEEDED','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','AWAITING_WITH_PENDING','FETCH_MISSING','url','ENSURE_SNAPSHOT_EXECUTION','_clearOtherTimers','debug','EffectRefRangId','findNodePositionByCharIndex','POST','_initUnitPermissionChange','exhaustSavingTask','loadSheet','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','localeService','serializeCombRequest','UPDATE_PERMISSION_OBJ','1260WPmAFr','href','_beforeCloseService','SheetsSelectionsService','setTimeout','HEARTBEAT_TIMEOUT','_substituteUndoStack','SnapshotService','ONLINE','liveShareNewHost','currentTheme$','getCoordByCell','collabStatus.synced','@univerjs/rpc','_socketReady','358885dHHTip','_syncEditingCollabCursorService','HEARTBEAT_INTERVAL_KEY','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LOGIN_URL_KEY','cmd','_collabCursorState$','_initEventListeners','getUndoRedoMutationParamsCache','csRejEvent','/universer-api/oidc/authpage','ImageIoService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_docTransformIMECacheService','_getLoginPath','InsertRangeMoveDownCommandId','WebSocketService','_change$','registerRenderModule','disposeWithMe','_removeCollabCursors','newCsEvent','RECV','resolve','getCollabEntity$','submit\x20changeset\x20error!','[OfflineState]:\x20received\x20changeset.','onPointerLeave$','SetSelectionsOperation','next','className','assign','onReady','red300','LocalUndoRedoService','react','textEncoder','Optional','FromArray','ImageUploadStatusType','onTransformChange$','BehaviorSubject','_registerDependencies','IRemoteInstanceService','collaboration_new_changeset','changesets','_socketService','_cursorShapes','_acknowledgedAwaitingChangeset','HttpExport','96tcSXFG','onSendChangeset','setParam','UNIVER_COLLABORATION_CLIENT_PLUGIN','getDocRanges','toRgbString','on-line-single_clip0_910_349','closePath','saveOfflineData','commentUpdate$','duration','image/jpg','_colorAssignService','commentUpdateEvent','with','CollaborationEvent','roomMembers','SetWorksheetActivateCommand','_getScale','backgroundColor','_exhaustRemoteChangesetQueue','isTransformMutationFailure','_renderManagerService','_entityInit$','SNAPSHOT_SERVER_URL_KEY','APPLY_PERMISSION_DENIED','complete','/block/','collab-client.tooltip.reconnect','_logService','_clearTimeoutTimer','[CollaborationEntity]','[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.','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','originalMeta','saveImage','SEND_CHANGESET_TIMEOUT_KEY','unit-cache-','reqId','_onConnectionFailed','\x0aCurrent:\x20','location','_socket$','rng','collaboration.single-unit.warning','transformChangesets','getUnhiddenWorksheets','_telemetryService','path','createCollaborator','_getSaveTimeout','CollaborationSession','JSONX','_applyRemoteChangeset','off-line-single','_transitionLocked','onlyLocal','_onConflict','session.collaboration-timeout','VIEWPORT_KEY','CollaborationEntity','Disposable','filter','_saveCache','UNIVER_UNKNOWN','_getDownloadEndpointURL','_eventUnsubscribe','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_range','BASE64','_submitChangeset','cursorInfo$','m2Prime','/universer-api/file/{fileID}/sign-url','_transformPreviousActiveRange','TEXT_RANGE_LAYER_INDEX','UNAUTHENTICATED','body','Inject','onTransformSelections','_fetchMissChangesets','COMPRESS_MUTATION_SEND','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','createSocket','save','?size=','_onConnectionOpen','RevisionService','subunit','RichTextEditingMutation','fetchThroughInterceptors','editingUnit','onPointerEnter$','delay','put','setAlpha','_labelPosition','bottom','DOC_RANGE_TYPE','[CollaborationSession]','getUnitStatus$','[PendingState]:\x20received\x20acknowledgement.','_members','_onOffline','_anchor','symbol','_ensureSubject','_memberService','_replaceFileID','src','snapshotServerUrl','_schedule','socket$','none','APPLY_REVISION_CONFILICT','color','lineTo','text','_transformIMECache','bind','randomUUID','_decreaseWaiting','_clearUndo','trim','transform','Injector','getUniverSheetInstance','_resendTimeout','_render','_collaborationController','USERS_ENTER','onRemoteAck','_configService','_commandService','_themeService','_undoRedoService','revision','_redoStacks','IImageIoService','LocaleService','UNKNOWN_CODE','DocSkeletonManagerService','_localeService','searchParams','handleInsertRangeMoveDown','add','_shouldReportTelemetry','pluginName','@univerjs-pro/license','LICENSE_DISTRO_REJECTED','/object/','getParam','apply','_unitOnClients','_sessions','ISnapshotServerService'];_0x218e=function(){return _0x2c60b1;};return _0x218e();}Te=Tn([_e(0x0,a['Inject'](a[_0x58ee4a(0x31d)])),_e(0x1,a[_0x58ee4a(0x200)]),_e(0x2,a['IPermissionService']),_e(0x3,a['Inject'](exports[_0x58ee4a(0xf9)])),_e(0x4,a[_0x58ee4a(0x2ee)](a[_0x58ee4a(0x32b)]))],Te);var Rn=Object['defineProperty'],On=Object['getOwnPropertyDescriptor'],Dn=(_0x1be6be,_0x466556,_0x1db166,_0x49ce6e)=>{for(var _0x1f4ad3=_0x49ce6e>0x1?void 0x0:_0x49ce6e?On(_0x466556,_0x1db166):_0x466556,_0x584b6b=_0x1be6be['length']-0x1,_0x41b449;_0x584b6b>=0x0;_0x584b6b--)(_0x41b449=_0x1be6be[_0x584b6b])&&(_0x1f4ad3=(_0x49ce6e?_0x41b449(_0x466556,_0x1db166,_0x1f4ad3):_0x41b449(_0x1f4ad3))||_0x1f4ad3);return _0x49ce6e&&_0x1f4ad3&&Rn(_0x466556,_0x1db166,_0x1f4ad3),_0x1f4ad3;},ut=(_0x995ed8,_0x465eaf)=>(_0x5525d7,_0x38f3a9)=>_0x465eaf(_0x5525d7,_0x38f3a9,_0x995ed8);exports[_0x58ee4a(0x204)]=class{constructor(_0x5e77f0,_0x15bfa0){const _0x3b228c=_0x58ee4a;this[_0x3b228c(0x324)]=_0x5e77f0,this[_0x3b228c(0x3b5)]=_0x15bfa0;}async['getUnitOnRev'](_0x59aaf0,_0x3bba45){const _0x56fd48=_0x58ee4a;var _0xd9dcb9;const {unitID:_0x53d6da,type:_0x5da0af,revision:_0x2b40e6=0x0}=_0x3bba45,_0x5a9835=this[_0x56fd48(0x229)]()+'/'+_0x5da0af+'/unit/'+_0x53d6da+_0x56fd48(0x4b8)+_0x2b40e6,_0x2ffe62=(await this[_0x56fd48(0x3b5)]['get'](_0x5a9835))['body'],_0x10aa95=(_0xd9dcb9=_0x2ffe62[_0x56fd48(0x17a)])==null?void 0x0:_0xd9dcb9[_0x56fd48(0x36e)];if(_0x10aa95){const _0x56dc1f=_0x10aa95==null?void 0x0:_0x10aa95['originalMeta'],_0x29364e=_['textEncoder'][_0x56fd48(0x349)](_[_0x56fd48(0x1ca)](_0x56dc1f));_0x10aa95[_0x56fd48(0x2c2)]=_0x29364e,Object[_0x56fd48(0x406)](_0x10aa95[_0x56fd48(0x1c0)])[_0x56fd48(0x4c2)](([,_0x2be238])=>{const _0x3bcfd2=_0x56fd48,_0x3f13c7=_0x2be238[_0x3bcfd2(0x2c2)],_0x4fd32a=_[_0x3bcfd2(0x292)][_0x3bcfd2(0x349)](_[_0x3bcfd2(0x1ca)](_0x3f13c7));_0x2be238[_0x3bcfd2(0x2c2)]=_0x4fd32a;});}return _0x2ffe62;}async['getSheetBlock'](_0x513684,_0x29d7b7){const _0x4e1cbb=_0x58ee4a,{unitID:_0x174684,type:_0x4820f0,blockID:_0x4e180a}=_0x29d7b7,_0x25ab23=this[_0x4e1cbb(0xd5)]()+'/'+_0x4820f0+_0x4e1cbb(0x1b3)+_0x174684+_0x4e1cbb(0x2bb)+_0x4e180a;return(await this[_0x4e1cbb(0x3b5)][_0x4e1cbb(0x129)](_0x25ab23))[_0x4e1cbb(0x2ed)];}async['getDeserializedSheetBlock'](_0x25cd8b,_0x3d6f9d){const _0xac107b=_0x58ee4a,{unitID:_0x28b548,type:_0x27c0a8,blockID:_0x7d3550}=_0x3d6f9d,_0x26ceec=this[_0xac107b(0xd5)]()+_0xac107b(0x2bb)+_0x27c0a8+'/unit/'+_0x28b548+_0xac107b(0x2bb)+_0x7d3550;return(await this['_httpService']['get'](_0x26ceec))['body'];}async[_0x58ee4a(0x45e)](_0x576430,_0x2d7c14){const _0x595bce=_0x58ee4a,{unitID:_0x36943a,type:_0x3ec5d5,from:_0x1bbcf8,to:_0x5796ab}=_0x2d7c14,_0xdd60f6=this[_0x595bce(0xd5)]()+'/'+_0x3ec5d5+_0x595bce(0x1b3)+_0x36943a+_0x595bce(0xfc)+_0x1bbcf8+_0x595bce(0xc0)+_0x5796ab;return(await this[_0x595bce(0x3b5)][_0x595bce(0x129)](_0xdd60f6))[_0x595bce(0x2ed)];}[_0x58ee4a(0x229)](){const _0x3cc2cd=_0x58ee4a;var _0x3f817e;return(_0x3f817e=this[_0x3cc2cd(0x324)][_0x3cc2cd(0xc6)](St))!=null?_0x3f817e:this[_0x3cc2cd(0xd5)]();}['_getAPIPrefix'](){const _0x1ff775=_0x58ee4a;var _0x2461b3,_0x4ddc77;const _0x25c3ee=this[_0x1ff775(0x324)][_0x1ff775(0xc6)](dt),_0x4e585b=this[_0x1ff775(0x324)][_0x1ff775(0xc6)]($);return(_0x4ddc77=(_0x2461b3=_0x4e585b==null?void 0x0:_0x4e585b[_0x1ff775(0x30e)])!=null?_0x2461b3:_0x25c3ee)!=null?_0x4ddc77:zt;}async['getResourcesRequest'](_0x15df28,_0x30969a){const _0x2e43d2=_0x58ee4a,_0x12012c=_0x2e43d2(0xfb)+_0x30969a[_0x2e43d2(0x1f0)]+_0x2e43d2(0x1b3)+_0x30969a['unitID']+_0x2e43d2(0x429);return(await this[_0x2e43d2(0x3b5)]['get'](_0x12012c,{'params':{'resourceId':JSON[_0x2e43d2(0x120)](_0x30969a['resourceIDs'])}}))[_0x2e43d2(0x2ed)];}[_0x58ee4a(0x431)](){const _0x1a8795=_0x58ee4a;throw new Error(_0x1a8795(0x387));}[_0x58ee4a(0x4d9)](){const _0x3d6859=_0x58ee4a;throw new Error(_0x3d6859(0x387));}[_0x58ee4a(0x4b1)](){const _0x45962b=_0x58ee4a;throw new Error(_0x45962b(0x387));}[_0x58ee4a(0x17f)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x58ee4a(0x47e)](){const _0x30cd9f=_0x58ee4a;throw new Error(_0x30cd9f(0x387));}},exports['SnapshotServerOverHTTPService']=Dn([ut(0x0,a['IConfigService']),ut(0x1,a[_0x58ee4a(0x2ee)](U[_0x58ee4a(0x408)]))],exports[_0x58ee4a(0x204)]);var yn=Object['defineProperty'],Un=Object[_0x58ee4a(0x3f5)],Pn=(_0x33bd06,_0x34e95e,_0x5b5caf,_0x2f6bdb)=>{const _0x31a25d=_0x58ee4a;for(var _0x15b29d=_0x2f6bdb>0x1?void 0x0:_0x2f6bdb?Un(_0x34e95e,_0x5b5caf):_0x34e95e,_0x4cfdef=_0x33bd06[_0x31a25d(0x4bb)]-0x1,_0x1cd805;_0x4cfdef>=0x0;_0x4cfdef--)(_0x1cd805=_0x33bd06[_0x4cfdef])&&(_0x15b29d=(_0x2f6bdb?_0x1cd805(_0x34e95e,_0x5b5caf,_0x15b29d):_0x1cd805(_0x15b29d))||_0x15b29d);return _0x2f6bdb&&_0x15b29d&&yn(_0x34e95e,_0x5b5caf,_0x15b29d),_0x15b29d;},ue=(_0x20e8a6,_0x179919)=>(_0x36b354,_0x57b46b)=>_0x179919(_0x36b354,_0x57b46b,_0x20e8a6);let We=class extends a[_0x58ee4a(0x290)]{constructor(_0x5431f5,_0x9f5304,_0x1ad964,_0x4a2398,_0x3846ac){const _0x38d945=_0x58ee4a;super(_0x5431f5,_0x9f5304,_0x1ad964),this[_0x38d945(0x39a)]=_0x4a2398,this[_0x38d945(0x2bd)]=_0x3846ac;}[_0x58ee4a(0x425)](_0x3fcb31,_0x111047){const _0x3dabd1=_0x58ee4a,_0x25661c=this[_0x3dabd1(0x153)](_0x3fcb31);if(_0x25661c)try{const _0x36b2d7=this['_transformStack'](_0x25661c,_0x111047);this[_0x3dabd1(0x265)](_0x3fcb31,_0x36b2d7);}catch(_0x12e537){this[_0x3dabd1(0x2bd)]['error'](_0x3dabd1(0x357),_0x12e537),this[_0x3dabd1(0x31a)](_0x3fcb31);}const _0x2c347e=this['_getRedoStack'](_0x3fcb31);if(_0x2c347e)try{const _0xba4c0=this[_0x3dabd1(0x38f)](_0x2c347e,_0x111047);this[_0x3dabd1(0x421)](_0x3fcb31,_0xba4c0);}catch(_0xcee5e8){this[_0x3dabd1(0x2bd)][_0x3dabd1(0x427)](_0xcee5e8),this['_clearRedo'](_0x3fcb31);}}[_0x58ee4a(0x31a)](_0x2953fd){const _0x10109d=_0x58ee4a,_0x4f2f54=this[_0x10109d(0x153)](_0x2953fd);_0x4f2f54&&(_0x4f2f54[_0x10109d(0x4bb)]=0x0,this[_0x10109d(0x352)]());}['_clearRedo'](_0x206b5b){const _0x436afe=_0x58ee4a,_0x3be05b=this[_0x436afe(0x4ab)](_0x206b5b);_0x3be05b&&(_0x3be05b['length']=0x0,this['_updateStatus']());}[_0x58ee4a(0x265)](_0x4f41c6,_0x1928ef){const _0x58cbb4=_0x58ee4a;this['_undoStacks'][_0x58cbb4(0x1e3)](_0x4f41c6,_0x1928ef),this[_0x58cbb4(0x352)]();}['_substituteRedoStack'](_0x3af377,_0x9b50b){const _0x2d52c6=_0x58ee4a;this[_0x2d52c6(0x329)]['set'](_0x3af377,_0x9b50b),this[_0x2d52c6(0x352)]();}[_0x58ee4a(0x38f)](_0x4581a0,_0x4d28d3){const _0x2f769d=_0x58ee4a,_0x3c56de=[];let _0x20aa65=_0x4d28d3,_0x4354e4=_0x4d28d3;for(let _0x3354fd=_0x4581a0[_0x2f769d(0x4bb)]-0x1;_0x3354fd>=0x0;_0x3354fd--){const {unitID:_0x489801,undoMutations:_0x316c1f,redoMutations:_0x2e4aa6}=_0x4581a0[_0x3354fd],_0x237db4=this[_0x2f769d(0x39a)][_0x2f769d(0x15d)](_0x20aa65,_0x316c1f),_0x185717=this['_transformService'][_0x2f769d(0x15d)](_0x4354e4,_0x2e4aa6);if(_[_0x2f769d(0x15f)](_0x237db4)||_[_0x2f769d(0x15f)](_0x185717)){this[_0x2f769d(0x2bd)]['error'](_0x2f769d(0x357),'transformStack\x20failed!',_0x237db4,_0x185717);break;}_0x20aa65=_0x237db4[_0x2f769d(0x376)],_0x4354e4=_0x185717[_0x2f769d(0x376)],_0x3c56de[_0x2f769d(0x10b)]({'unitID':_0x489801,'undoMutations':_0x237db4[_0x2f769d(0x2e8)],'redoMutations':_0x185717[_0x2f769d(0x2e8)]});}return _0x3c56de[_0x2f769d(0x41f)]();}};We=Pn([ue(0x0,a[_0x58ee4a(0x200)]),ue(0x1,a[_0x58ee4a(0x21b)]),ue(0x2,a[_0x58ee4a(0x24a)]),ue(0x3,_[_0x58ee4a(0x3ee)]),ue(0x4,a[_0x58ee4a(0x220)])],We);class Ht extends a['RxDisposable']{constructor(){const _0x5879c6=_0x58ee4a;super(),u(this,_0x5879c6(0x381)),this[_0x5879c6(0x381)]=v[_0x5879c6(0x405)](window,_0x5879c6(0x45b))['pipe'](v['takeUntil'](this[_0x5879c6(0x1e4)]),v[_0x5879c6(0x23a)](0x1),v['mapTo'](void 0x0));}[_0x58ee4a(0x2a2)](_0x52d862,_0xa04da4,_0x299c53=!0x1){const _0x161541=_0x58ee4a,_0x3cd4b7=new URL(window[_0x161541(0x2c9)][_0x161541(0x260)]);_0x3cd4b7[_0x161541(0x32f)][_0x161541(0x1e3)](_0x52d862,_0xa04da4),_0x299c53?window[_0x161541(0x3f9)]['replaceState']('','',_0x3cd4b7['toString']()):window[_0x161541(0x3f9)][_0x161541(0x242)]('','',_0x3cd4b7[_0x161541(0xdc)]());}['removeParam'](_0x5d29ee,_0x371b1f=!0x1){const _0x5106d5=_0x58ee4a,_0x4cced6=new URL(window[_0x5106d5(0x2c9)][_0x5106d5(0x260)]);_0x4cced6[_0x5106d5(0x32f)]['delete'](_0x5d29ee),_0x371b1f?window['history']['replaceState']('','',_0x4cced6[_0x5106d5(0xdc)]()):window[_0x5106d5(0x3f9)][_0x5106d5(0x242)]('','',_0x4cced6[_0x5106d5(0xdc)]());}[_0x58ee4a(0x337)](_0x5c7e08){const _0x451310=_0x58ee4a;var _0x1a9c5f;return(_0x1a9c5f=new URL(window[_0x451310(0x2c9)]['href'])['searchParams'][_0x451310(0x129)](_0x5c7e08))!=null?_0x1a9c5f:void 0x0;}}var xt=Object[_0x58ee4a(0x185)],wn=Object[_0x58ee4a(0x3f5)],Nn=(_0x54626d,_0xe5037b,_0x18ecff)=>_0xe5037b in _0x54626d?xt(_0x54626d,_0xe5037b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18ecff}):_0x54626d[_0xe5037b]=_0x18ecff,Mn=(_0x47244c,_0x469146,_0x15d27d,_0x6d7617)=>{const _0x50e12e=_0x58ee4a;for(var _0xa0dc9a=_0x6d7617>0x1?void 0x0:_0x6d7617?wn(_0x469146,_0x15d27d):_0x469146,_0x3802e0=_0x47244c[_0x50e12e(0x4bb)]-0x1,_0x111542;_0x3802e0>=0x0;_0x3802e0--)(_0x111542=_0x47244c[_0x3802e0])&&(_0xa0dc9a=(_0x6d7617?_0x111542(_0x469146,_0x15d27d,_0xa0dc9a):_0x111542(_0xa0dc9a))||_0xa0dc9a);return _0x6d7617&&_0xa0dc9a&&xt(_0x469146,_0x15d27d,_0xa0dc9a),_0xa0dc9a;},ge=(_0x3340d5,_0xfa0e9e)=>(_0x44773d,_0xff93b2)=>_0xfa0e9e(_0x44773d,_0xff93b2,_0x3340d5),An=(_0x4cdb79,_0x440dac,_0x27b681)=>Nn(_0x4cdb79,_0x440dac+'',_0x27b681);const Ln=_0x58ee4a(0x2a3);exports['UniverCollaborationClientPlugin']=class extends a[_0x58ee4a(0x44b)]{constructor(_0x338521=os,_0x19d55e,_0x3a4e05,_0x269a02,_0x4a72ae){const _0x21ef08=_0x58ee4a;super(),this[_0x21ef08(0x1e8)]=_0x338521,this[_0x21ef08(0x2bd)]=_0x19d55e,this[_0x21ef08(0x2b6)]=_0x3a4e05,this[_0x21ef08(0x43a)]=_0x269a02,this['_configService']=_0x4a72ae;const {..._0x167922}=this[_0x21ef08(0x1e8)];this[_0x21ef08(0x324)][_0x21ef08(0x4a0)]($,_0x167922);}[_0x58ee4a(0x394)](){const _0x24f504=_0x58ee4a;this['_registerDependencies'](),a['touchDependencies'](this['_injector'],[[oe],[exports[_0x24f504(0x1d9)]],[Te]]);}[_0x58ee4a(0x28e)](){const _0x160f49=_0x58ee4a;a[_0x160f49(0x3b8)](this['_injector'],[[Ce]]);}['onRendered'](){const _0x5344a1=_0x58ee4a;this[_0x5344a1(0x1de)]();}[_0x58ee4a(0x298)](){const _0x38245c=_0x58ee4a;var _0x52b7ea,_0x1e61de,_0x4c65da,_0x3e0d2c;this['_injector'][_0x38245c(0x11d)](a[_0x38245c(0x222)])&&this[_0x38245c(0x2bd)][_0x38245c(0x427)](_0x38245c(0x4ad),_0x38245c(0x25b));let _0x3f9fd1=[[a[_0x38245c(0x222)],{'useClass':We}],[exports[_0x38245c(0xf9)]],[ze],[U[_0x38245c(0x408)]],[Ze,{'useClass':Ht}],[exports[_0x38245c(0x234)]],[exports[_0x38245c(0x498)]],[U[_0x38245c(0x27e)]],[Ie],[pe],[fe],[Xe],[Ee],[be],[Ke],[Te],[Ye,{'useClass':(_0x1e61de=(_0x52b7ea=this[_0x38245c(0x1e8)])==null?void 0x0:_0x52b7ea[_0x38245c(0x165)])!=null?_0x1e61de:exports[_0x38245c(0x4a8)]}],[U[_0x38245c(0xee)],{'useClass':U['XHRHTTPImplementation']}],[_[_0x38245c(0x33b)],{'useClass':exports[_0x38245c(0x204)]}],[a[_0x38245c(0x46a)],{'useClass':exports[_0x38245c(0x411)]}],[j[_0x38245c(0x32a)],{'useClass':exports[_0x38245c(0x279)]}],[exports[_0x38245c(0x3e3)]],[exports['DataLoaderController']],[exports[_0x38245c(0x477)]],[Ce],[oe]];(_0x4c65da=this[_0x38245c(0x1e8)])!=null&&_0x4c65da[_0x38245c(0x3be)]&&_0x3f9fd1['push']([Re,{'useClass':Hs}]),_0x3f9fd1=a['mergeOverrideWithDependencies'](_0x3f9fd1,(_0x3e0d2c=this['_config'])==null?void 0x0:_0x3e0d2c[_0x38245c(0x1da)]),_0x3f9fd1[_0x38245c(0x4c2)](_0x5396e0=>this[_0x38245c(0x43a)][_0x38245c(0x331)](_0x5396e0)),this[_0x38245c(0xf0)]();}[_0x58ee4a(0x1de)](){const _0x30fc58=_0x58ee4a;this[_0x30fc58(0x281)](this[_0x30fc58(0x2b6)][_0x30fc58(0x280)](a['UniverInstanceType'][_0x30fc58(0x437)],[Be])),this[_0x30fc58(0x281)](this['_renderManagerService']['registerRenderModule'](a[_0x30fc58(0x1fa)][_0x30fc58(0x44a)],[Ve]));}[_0x58ee4a(0xf0)](){const _0x51eaa6=_0x58ee4a;var _0x3496f7,_0x2325b2;this[_0x51eaa6(0x43a)]['get'](U[_0x51eaa6(0x408)])[_0x51eaa6(0x38b)]({'priority':0x14,'interceptor':U[_0x51eaa6(0x1cb)]({'maxParallel':0x6})}),this['_injector'][_0x51eaa6(0x129)](be),(_0x3496f7=this['_config'])!=null&&_0x3496f7[_0x51eaa6(0x1b4)]||this[_0x51eaa6(0x43a)][_0x51eaa6(0x129)](exports['LocalCacheService'])[_0x51eaa6(0x4ca)](),(_0x2325b2=this['_config'])!=null&&_0x2325b2['enableAuthServer']&&this[_0x51eaa6(0x43a)][_0x51eaa6(0x129)](Ee),this[_0x51eaa6(0x43a)][_0x51eaa6(0x129)](exports[_0x51eaa6(0x3e3)]),this[_0x51eaa6(0x43a)]['has'](exports[_0x51eaa6(0x477)])&&this[_0x51eaa6(0x43a)]['get'](exports[_0x51eaa6(0x477)]);}},An(exports[_0x58ee4a(0x20d)],_0x58ee4a(0x333),Ln),exports[_0x58ee4a(0x20d)]=Mn([a[_0x58ee4a(0x141)](_[_0x58ee4a(0x4a7)]),ge(0x1,a[_0x58ee4a(0x220)]),ge(0x2,O[_0x58ee4a(0x40a)]),ge(0x3,a['Inject'](a['Injector'])),ge(0x4,a[_0x58ee4a(0x3ac)])],exports[_0x58ee4a(0x20d)]),exports['AUTHZ_URL_KEY']=jt,exports[_0x58ee4a(0x3e8)]=pt,exports[_0x58ee4a(0x39f)]=vt,exports[_0x58ee4a(0x178)]=D,exports['CollaborationStatusDisplay']=$t,exports[_0x58ee4a(0x1ac)]=Ke,exports[_0x58ee4a(0x270)]=mt,exports[_0x58ee4a(0x36f)]=Fe,exports[_0x58ee4a(0x379)]=Ye,exports[_0x58ee4a(0xc7)]=Ze,exports[_0x58ee4a(0x4ec)]=It,exports[_0x58ee4a(0x272)]=Ct,exports[_0x58ee4a(0x1b5)]=ft,exports[_0x58ee4a(0x2c4)]=Jt,exports[_0x58ee4a(0x2b8)]=dt,exports[_0x58ee4a(0xeb)]=St,exports[_0x58ee4a(0x35f)]=x,exports['SheetCollabCursorShape']=wt,exports['WebURLService']=Ht,exports[_0x58ee4a(0x100)]=Tt,exports[_0x58ee4a(0x25d)]=Rt;
|