@univerjs-pro/collaboration-client 0.4.0-nightly.202410141110 → 0.4.0-nightly.202410141606
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/umd/index.js +1 -1
- package/package.json +16 -16
package/lib/cjs/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
'use strict';const _0x3b22f=_0x2c53;(function(_0x542c55,_0x381953){const _0x2f8498=_0x2c53,_0x21ef96=_0x542c55();while(!![]){try{const _0x4a1877=parseInt(_0x2f8498(0x5bb))/0x1+-parseInt(_0x2f8498(0x493))/0x2+-parseInt(_0x2f8498(0x24d))/0x3+parseInt(_0x2f8498(0x500))/0x4+parseInt(_0x2f8498(0x454))/0x5+parseInt(_0x2f8498(0x485))/0x6*(-parseInt(_0x2f8498(0x393))/0x7)+parseInt(_0x2f8498(0x2c7))/0x8*(parseInt(_0x2f8498(0x596))/0x9);if(_0x4a1877===_0x381953)break;else _0x21ef96['push'](_0x21ef96['shift']());}catch(_0x3655a1){_0x21ef96['push'](_0x21ef96['shift']());}}}(_0x1d05,0xb9f87));var kt=Object[_0x3b22f(0x1ff)],Bt=(_0x24d878,_0x5b5829,_0x24ba3c)=>_0x5b5829 in _0x24d878?kt(_0x24d878,_0x5b5829,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x24ba3c}):_0x24d878[_0x5b5829]=_0x24ba3c,d=(_0x5dbfcf,_0x48ff5d,_0x4320a9)=>Bt(_0x5dbfcf,typeof _0x48ff5d!='symbol'?_0x48ff5d+'':_0x48ff5d,_0x4320a9);Object[_0x3b22f(0x1ff)](exports,Symbol[_0x3b22f(0x545)],{'value':_0x3b22f(0x2a7)});const a=require(_0x3b22f(0x3f8)),v=require(_0x3b22f(0x25b)),E=require(_0x3b22f(0x4af)),X=require(_0x3b22f(0x1ec)),N=require('@univerjs/ui'),P=require(_0x3b22f(0x384)),_=require(_0x3b22f(0x23a)),Vt=require(_0x3b22f(0x49c)),V=require(_0x3b22f(0x1f9)),w=require(_0x3b22f(0x591)),C=require(_0x3b22f(0x473)),R=require(_0x3b22f(0x3cf)),L=require(_0x3b22f(0x3ed)),Je=require('@univerjs/engine-formula'),te=require('@univerjs/sheets-ui'),U=require(_0x3b22f(0x4e5)),Wt=require(_0x3b22f(0x2e0)),Ft=require(_0x3b22f(0x251)),ht=_0x3b22f(0x227),Gt=_0x3b22f(0x452),_t=_0x3b22f(0x367),Yt='SEND_CHANGESET_TIMEOUT',Kt=0x7d0,ut=_0x3b22f(0x2da),Xt=_0x3b22f(0x32f),dt=_0x3b22f(0x488),qt=0x7530,Ve=_0x3b22f(0x4b7),St=0x4e20,zt=0x4e20,vt=_0x3b22f(0x56a),Jt=0x3,ft=_0x3b22f(0x296),Zt=0x3e8,gt=_0x3b22f(0x4a8),Qt=_0x3b22f(0x39b),mt='LOGIN_URL_KEY',es=_0x3b22f(0x365);var It=(_0x3b0409=>(_0x3b0409[_0x3b0409[_0x3b22f(0x517)]=0x0]='UNDEFINED',_0x3b0409[_0x3b0409['OK']=0x1]='OK',_0x3b0409[_0x3b0409[_0x3b22f(0x512)]=0x2]=_0x3b22f(0x512),_0x3b0409[_0x3b0409[_0x3b22f(0x3a7)]=0x3]='PERMISSION_DENIED',_0x3b0409[_0x3b0409[_0x3b22f(0x402)]=0x4]=_0x3b22f(0x402),_0x3b0409[_0x3b0409['UNAUTHENTICATED']=0x5]=_0x3b22f(0x380),_0x3b0409[_0x3b0409[_0x3b22f(0x4e3)]=0x6]=_0x3b22f(0x4e3),_0x3b0409[_0x3b0409[_0x3b22f(0x201)]=0x7]=_0x3b22f(0x201),_0x3b0409[_0x3b0409[_0x3b22f(0x1fe)]=0x8]='TOO_MANY_REQUESTS',_0x3b0409[_0x3b0409[_0x3b22f(0x204)]=0x9]=_0x3b22f(0x204),_0x3b0409[_0x3b0409[_0x3b22f(0x275)]=0x1389]=_0x3b22f(0x275),_0x3b0409[_0x3b0409['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]=_0x3b22f(0x232),_0x3b0409[_0x3b0409[_0x3b22f(0x433)]=0x1772]=_0x3b22f(0x433),_0x3b0409[_0x3b0409['APPLY_REJECT']=0x1b59]=_0x3b22f(0x2eb),_0x3b0409[_0x3b0409[_0x3b22f(0x470)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x3b0409[_0x3b0409[_0x3b22f(0x4f9)]=0x1b5b]=_0x3b22f(0x4f9),_0x3b0409[_0x3b0409['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x3b22f(0x430),_0x3b0409[_0x3b0409[_0x3b22f(0x56f)]=0x1f41]=_0x3b22f(0x56f),_0x3b0409[_0x3b0409['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x3b22f(0x44d),_0x3b0409[_0x3b0409[_0x3b22f(0x587)]=0x232a]=_0x3b22f(0x587),_0x3b0409[_0x3b0409[_0x3b22f(0x2e4)]=0x232b]=_0x3b22f(0x2e4),_0x3b0409[_0x3b0409[_0x3b22f(0x2ae)]=0x232c]=_0x3b22f(0x2ae),_0x3b0409[_0x3b0409[_0x3b22f(0x5cc)]=0x232d]=_0x3b22f(0x5cc),_0x3b0409[_0x3b0409[_0x3b22f(0x54d)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x3b0409[_0x3b0409['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x3b0409[_0x3b0409[_0x3b22f(0x3c7)]=0x2713]=_0x3b22f(0x3c7),_0x3b0409[_0x3b0409[_0x3b22f(0x3a3)]=0x2714]=_0x3b22f(0x3a3),_0x3b0409[_0x3b0409['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x3b0409))(It||{}),j=(_0x5461ba=>(_0x5461ba[_0x5461ba[_0x3b22f(0x5c9)]=0x0]='UNIVER_UNKNOWN',_0x5461ba[_0x5461ba['UNIVER_DOC']=0x1]=_0x3b22f(0x332),_0x5461ba[_0x5461ba[_0x3b22f(0x3c0)]=0x2]=_0x3b22f(0x3c0),_0x5461ba[_0x5461ba[_0x3b22f(0x575)]=0x3]='UNIVER_SLIDE',_0x5461ba[_0x5461ba['UNIVER_PROJECT']=0x4]=_0x3b22f(0x5cf),_0x5461ba[_0x5461ba[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0x5461ba))(j||{}),b=(_0x25bb8e=>(_0x25bb8e[_0x25bb8e[_0x3b22f(0x362)]=0x0]=_0x3b22f(0x362),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2bd)]=0x1]=_0x3b22f(0x2bd),_0x25bb8e[_0x25bb8e['JOIN']=0x2]=_0x3b22f(0x23b),_0x25bb8e[_0x25bb8e[_0x3b22f(0x2e6)]=0x3]=_0x3b22f(0x2e6),_0x25bb8e[_0x25bb8e['INGEST']=0x4]=_0x3b22f(0x4ef),_0x25bb8e[_0x25bb8e[_0x3b22f(0x233)]=0x5]='HEARTBEAT',_0x25bb8e[_0x25bb8e['RECV']=0x6]='RECV',_0x25bb8e[_0x25bb8e[_0x3b22f(0x23f)]=-0x1]=_0x3b22f(0x23f),_0x25bb8e))(b||{}),We=(_0xa48f7c=>(_0xa48f7c[_0xa48f7c['UNKNOWN_CODE']=0x0]=_0x3b22f(0x2a8),_0xa48f7c[_0xa48f7c['OK']=0x1]='OK',_0xa48f7c[_0xa48f7c[_0x3b22f(0x438)]=0x2]=_0x3b22f(0x438),_0xa48f7c[_0xa48f7c[_0x3b22f(0x23f)]=-0x1]='UNRECOGNIZED',_0xa48f7c))(We||{}),pt=(_0x2795c6=>(_0x2795c6[_0x2795c6['Undefined']=0x0]=_0x3b22f(0x317),_0x2795c6[_0x2795c6[_0x3b22f(0x4bf)]=0x1]=_0x3b22f(0x4bf),_0x2795c6[_0x2795c6['HttpExport']=0x2]='HttpExport',_0x2795c6[_0x2795c6[_0x3b22f(0x4bd)]=0x3]=_0x3b22f(0x4bd),_0x2795c6[_0x2795c6[_0x3b22f(0x4ba)]=0x4]=_0x3b22f(0x4ba),_0x2795c6[_0x2795c6['UNRECOGNIZED']=-0x1]=_0x3b22f(0x23f),_0x2795c6))(pt||{});const A='collaboration-client.config',ts={};function Ct(_0x3bf457){const _0x39daaf=_0x3b22f;var _0x2a2901,_0x1219a8,_0x123bab,_0x735a22;const _0x51b696=_0x3bf457[_0x39daaf(0x45b)],_0xe9cb32=JSON[_0x39daaf(0x4f1)](_0x51b696);switch(_0xe9cb32[_0x39daaf(0x4d4)]){case b[_0x39daaf(0x233)]:case b[_0x39daaf(0x2bd)]:{const _0x3ce738=_0xe9cb32[_0x39daaf(0x37e)];return{..._0xe9cb32,'data':_0x3ce738,'cmd':_0xe9cb32['cmd']};}case b[_0x39daaf(0x23b)]:{const _0x155ec7=_0xe9cb32[_0x39daaf(0x387)];return{..._0xe9cb32,'data':_0x155ec7,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};}case b[_0x39daaf(0x2f0)]:{const _0x5ac54d=_0xe9cb32[_0x39daaf(0x2d7)];switch(_0x5ac54d[_0x39daaf(0x3cc)]){case _[_0x39daaf(0x44c)][_0x39daaf(0x4a2)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x2a2901=_0x5ac54d[_0x39daaf(0x5aa)])==null?void 0x0:_0x2a2901['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x428)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x1219a8=_0x5ac54d['csAckEvent'])==null?void 0x0:_0x1219a8['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['NEW_CHANGESETS']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x123bab=_0x5ac54d[_0x39daaf(0x27e)])==null?void 0x0:_0x123bab['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x36e)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':(_0x735a22=_0x5ac54d[_0x39daaf(0x408)])==null?void 0x0:_0x735a22['cs']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b6)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x306)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['USERS_ENTER']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x436)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x51c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x24e)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x5b7)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5e6)]},'cmd':_0xe9cb32['cmd']};case _['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:case _[_0x39daaf(0x44c)]['LIVESHARE_OPERATION']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x2e9)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x47b)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['liveShareNewHost']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['MSG_FOR_ERROR']:return{..._0xe9cb32,'data':_0x5ac54d,'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _['CollaborationEvent'][_0x39daaf(0x431)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d[_0x39daaf(0x5b0)]},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)]['UPDATE_PERMISSION_OBJ']:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['updatePermissionObjEvent']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};case _[_0x39daaf(0x44c)][_0x39daaf(0x50c)]:return{..._0xe9cb32,'data':{..._0x5ac54d,'data':_0x5ac54d['shouldCloseConn']},'cmd':_0xe9cb32[_0x39daaf(0x4d4)]};default:return _0xe9cb32;}}default:return _0xe9cb32;}}function Et(_0x427781){const _0x4755b4=_0x3b22f;switch(_0x427781[_0x4755b4(0x4d4)]){case b['HEARTBEAT']:case b[_0x4755b4(0x2bd)]:return JSON['stringify']({'cmd':_0x427781['cmd'],'routeKey':_0x427781[_0x4755b4(0x32a)]});case b[_0x4755b4(0x4ef)]:{let _0x4f6ece;switch(_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x3cc)]){case _['CollaborationEvent'][_0x4755b4(0x5b6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b6)],'updateCursorEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x51c)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x51c)],'leaveEvent':_0x427781[_0x4755b4(0x45b)]['data']};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x3a6)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['USERS_ENTER'],'joinEvent':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _['CollaborationEvent'][_0x4755b4(0x5b7)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5b7)],'liveShareNewHost':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)]['LIVESHARE_OPERATION']:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x427781['data']['data']};break;}case _['CollaborationEvent'][_0x4755b4(0x47b)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x47b)],'liveShareTerminate':_0x427781['data'][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x432)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x432)],'liveShareRequestHost':_0x427781[_0x4755b4(0x45b)][_0x4755b4(0x45b)]};break;}case _[_0x4755b4(0x44c)][_0x4755b4(0x5db)]:{_0x4f6ece={'eventID':_[_0x4755b4(0x44c)][_0x4755b4(0x5db)]};break;}default:_0x4f6ece={'eventID':_0x427781[_0x4755b4(0x45b)]['eventID']};}return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'collaMsg':_0x4f6ece});}case b[_0x4755b4(0x23b)]:return JSON[_0x4755b4(0x56d)]({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781['routeKey'],'joinReq':_0x427781[_0x4755b4(0x45b)]});case b[_0x4755b4(0x2e6)]:return JSON['stringify']({'cmd':_0x427781[_0x4755b4(0x4d4)],'routeKey':_0x427781[_0x4755b4(0x32a)],'leaveReq':_0x427781[_0x4755b4(0x45b)]});default:throw new Error(_0x4755b4(0x4c7));}}var ss=Object[_0x3b22f(0x1ff)],is=Object[_0x3b22f(0x246)],ns=(_0x11a2ed,_0x2ae0c8,_0x596a5a,_0x8ded37)=>{const _0x506c3f=_0x3b22f;for(var _0x38a5c1=_0x8ded37>0x1?void 0x0:_0x8ded37?is(_0x2ae0c8,_0x596a5a):_0x2ae0c8,_0xd6724f=_0x11a2ed[_0x506c3f(0x291)]-0x1,_0x3aa1c6;_0xd6724f>=0x0;_0xd6724f--)(_0x3aa1c6=_0x11a2ed[_0xd6724f])&&(_0x38a5c1=(_0x8ded37?_0x3aa1c6(_0x2ae0c8,_0x596a5a,_0x38a5c1):_0x3aa1c6(_0x38a5c1))||_0x38a5c1);return _0x8ded37&&_0x38a5c1&&ss(_0x2ae0c8,_0x596a5a,_0x38a5c1),_0x38a5c1;},oe=(_0x3c0691,_0x46f825)=>(_0x12f522,_0x481c88)=>_0x46f825(_0x12f522,_0x481c88,_0x3c0691);const Fe=a[_0x3b22f(0x3cd)](_0x3b22f(0x2f8));function rs(_0x2dfe66,_0x1f63d9,_0x5a012e){const _0x2b4446=_0x3b22f;return _0x2dfe66+'/'+_0x1f63d9+_0x2b4446(0x37a)+_0x5a012e+_0x2b4446(0x33e);}exports[_0x3b22f(0x272)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x4e339c,_0x501391,_0x58a1d6,_0x39fa80,_0x1f65d6){const _0x3dbd5f=_0x3b22f;super(),this[_0x3dbd5f(0x220)]=_0x4e339c,this[_0x3dbd5f(0x2b3)]=_0x501391,this[_0x3dbd5f(0x266)]=_0x58a1d6,this[_0x3dbd5f(0x445)]=_0x39fa80,this[_0x3dbd5f(0x214)]=_0x1f65d6;}[_0x3b22f(0x3a1)](_0x4785a9){const _0xf5e52e=_0x3b22f,_0x3d7734=this[_0xf5e52e(0x2b3)][_0xf5e52e(0x3a1)](_0x4785a9);if(!_0x3d7734)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x3c1e55=new a['DisposableCollection'](),_0x1318e1=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x324)]['subscribe'](_0x5ed026=>_0x1318e1[_0xf5e52e(0x52d)](_0x5ed026))),_0x3c1e55['add'](a['toDisposable'](()=>_0x1318e1[_0xf5e52e(0x2ec)]()));const _0x5f2ca0=new v['Subject']();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x505)][_0xf5e52e(0x42c)](_0x84bbd0=>_0x5f2ca0[_0xf5e52e(0x52d)](_0x84bbd0))),_0x3c1e55['add'](a['toDisposable'](()=>_0x5f2ca0[_0xf5e52e(0x2ec)]()));const _0x1b6752=new v[(_0xf5e52e(0x25f))]();_0x3c1e55[_0xf5e52e(0x405)](_0x3d7734[_0xf5e52e(0x1fa)]['subscribe'](_0x1b6071=>{const _0x1049d6=_0xf5e52e,_0x429724=Ct(_0x1b6071);_0x1b6752[_0x1049d6(0x52d)](_0x429724);})),_0x3c1e55[_0xf5e52e(0x405)](a['toDisposable'](()=>_0x1b6752[_0xf5e52e(0x2ec)]()));let _0x22e797;const _0x5874d3=()=>{const _0x11f8d=_0xf5e52e;_0x5f2ca0[_0x11f8d(0x52d)](new Event(_0x11f8d(0x5c4))),_0x1318e1['next'](new CloseEvent(_0x11f8d(0x5c4))),_0x22e797[_0x11f8d(0x3ec)]();};return _0x22e797={'memberID':'','close$':_0x1318e1[_0xf5e52e(0x56e)](),'error$':_0x5f2ca0[_0xf5e52e(0x56e)](),'open$':_0x3d7734[_0xf5e52e(0x486)],'message$':_0x1b6752[_0xf5e52e(0x56e)](),'send':_0x4a73e2=>{const _0x8cd0f7=_0xf5e52e;if(_0x4a73e2[_0x8cd0f7(0x4d4)]===b[_0x8cd0f7(0x4ef)]){if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_[_0x8cd0f7(0x44c)][_0x8cd0f7(0x5ac)]){this['_submitChangeset'](_0x22e797,_0x4a73e2[_0x8cd0f7(0x45b)])['catch'](_0x1b171f=>{const _0x5e942e=_0x8cd0f7;this[_0x5e942e(0x445)][_0x5e942e(0x49d)](_0x1b171f),_0x5874d3();});return;}if(_0x4a73e2['data'][_0x8cd0f7(0x3cc)]===_['CollaborationEvent'][_0x8cd0f7(0x2c1)]){const _0x5be338=_0x4a73e2[_0x8cd0f7(0x45b)];this[_0x8cd0f7(0x269)](_0x5be338)[_0x8cd0f7(0x395)](_0x3aa016=>{const _0x235ac=_0x8cd0f7;_0x1b6752[_0x235ac(0x52d)]({'cmd':b[_0x235ac(0x2f0)],'code':We['OK'],'routeKey':_0x5be338[_0x235ac(0x45b)][_0x235ac(0x40e)],'routeType':'','data':{'eventID':_[_0x235ac(0x44c)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x3aa016}}});})[_0x8cd0f7(0x3c9)](_0xa2bc4c=>{const _0x4ccfb2=_0x8cd0f7;this[_0x4ccfb2(0x445)]['error'](_0xa2bc4c),_0x5874d3();});return;}}_0x3d7734[_0x8cd0f7(0x3c5)](Et(_0x4a73e2));},'close':()=>{const _0x23c50c=_0xf5e52e;_0x3d7734[_0x23c50c(0x3ec)](),_0x3c1e55[_0x23c50c(0x4f2)]();}},_0x22e797;}async[_0x3b22f(0x43c)](_0x512d74,_0x543f42){const _0x106995=_0x3b22f;var _0x8b63e3,_0x21ab0e;const {unitType:_0x359b89,unitID:_0x2b6504,changeset:_0x2dc7e3}=_0x543f42['data'],_0x32b0a7={'unitID':_0x2b6504,'memberID':_0x512d74[_0x106995(0x598)],'type':_0x359b89,'changeset':_[_0x106995(0x5e3)](_0x2dc7e3)},_0x503400=this[_0x106995(0x266)][_0x106995(0x504)](gt),_0x2bdac7=this['_configService'][_0x106995(0x504)](A),_0x20428e=rs((_0x21ab0e=(_0x8b63e3=_0x2bdac7==null?void 0x0:_0x2bdac7[_0x106995(0x4e4)])!=null?_0x8b63e3:_0x503400)!=null?_0x21ab0e:Qt,_0x359b89,_0x2b6504);try{await this['_http'][_0x106995(0x221)](_0x20428e,{'body':_0x32b0a7});}catch(_0x16310a){throw this[_0x106995(0x445)]['error'](_0x106995(0x3e7),_0x106995(0x5b5)),_0x16310a;}}async[_0x3b22f(0x269)](_0xf9977d){const _0x18686b=_0x3b22f,{unitID:_0x268aaa,from:_0x5e0560,to:_0x5b50ee,unitType:_0x5c3842}=_0xf9977d[_0x18686b(0x45b)];return(await this[_0x18686b(0x214)][_0x18686b(0x5c2)]({'metadata':void 0x0},{'unitID':_0x268aaa,'type':_0x5c3842,'from':_0x5e0560,'to':_0x5b50ee}))[_0x18686b(0x528)];}},exports['CollaborationSocketService']=ns([oe(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),oe(0x1,a[_0x3b22f(0x492)](P['WebSocketService'])),oe(0x2,a[_0x3b22f(0x5ad)]),oe(0x3,a['ILogService']),oe(0x4,_[_0x3b22f(0x2ce)])],exports[_0x3b22f(0x272)]);const os=_0x3b22f(0x50d);function as(_0x50bc8c){const _0x16272e=_0x3b22f;return JSON[_0x16272e(0x56d)](_0x50bc8c)['length'];}class Ge{constructor(){const _0x17da58=_0x3b22f;d(this,'_commentUpdate$',new v[(_0x17da58(0x25f))]()),d(this,_0x17da58(0x5df),this['_commentUpdate$'][_0x17da58(0x56e)]());}[_0x3b22f(0x3f6)](_0x5ed6b8){const _0x4fc529=_0x3b22f;this[_0x4fc529(0x1ee)][_0x4fc529(0x52d)](_0x5ed6b8);}}var cs=Object[_0x3b22f(0x1ff)],ls=Object['getOwnPropertyDescriptor'],hs=(_0x200362,_0x309f93,_0x59004b,_0x39614b)=>{const _0x229d40=_0x3b22f;for(var _0x2bd977=_0x39614b>0x1?void 0x0:_0x39614b?ls(_0x309f93,_0x59004b):_0x309f93,_0x3e7add=_0x200362[_0x229d40(0x291)]-0x1,_0x30975f;_0x3e7add>=0x0;_0x3e7add--)(_0x30975f=_0x200362[_0x3e7add])&&(_0x2bd977=(_0x39614b?_0x30975f(_0x309f93,_0x59004b,_0x2bd977):_0x30975f(_0x2bd977))||_0x2bd977);return _0x39614b&&_0x2bd977&&cs(_0x309f93,_0x59004b,_0x2bd977),_0x2bd977;},Ze=(_0x428da7,_0x385df1)=>(_0x1f8fc3,_0x257734)=>_0x385df1(_0x1f8fc3,_0x257734,_0x428da7);let q=class extends a[_0x3b22f(0x4b0)]{constructor(_0x536e12,_0x45edb2){const _0x36155f=_0x3b22f;super(),d(this,_0x36155f(0x469),new Map()),(this[_0x36155f(0x340)]=_0x536e12,this[_0x36155f(0x437)]=_0x45edb2,this[_0x36155f(0x283)](a[_0x36155f(0x526)](v[_0x36155f(0x2c4)](this['_univerInstanceService'][_0x36155f(0x24f)](a[_0x36155f(0x38e)]['UNIVER_SHEET'])['pipe'](E['map'](_0x397def=>_0x397def[_0x36155f(0x52b)]())),this[_0x36155f(0x340)][_0x36155f(0x24f)](a[_0x36155f(0x38e)][_0x36155f(0x332)])[_0x36155f(0x3de)](E[_0x36155f(0x57b)](_0x5a6a04=>_0x5a6a04['getUnitId']())),this[_0x36155f(0x340)]['getTypeOfUnitDisposed$'](a['UniverInstanceType']['UNIVER_SLIDE'])[_0x36155f(0x3de)](E['map'](_0x1cc48d=>_0x1cc48d[_0x36155f(0x52b)]())))[_0x36155f(0x42c)](_0x3fb67c=>this[_0x36155f(0x577)](_0x3fb67c)))));}[_0x3b22f(0x474)](_0x2de3c9){const _0x3ad99d=_0x3b22f;this[_0x3ad99d(0x437)]['setCurrentUser'](_0x2de3c9);}['getCurrentUser'](){const _0x361e07=_0x3b22f;return this[_0x361e07(0x437)]['getCurrentUser']();}[_0x3b22f(0x349)](_0x4719b1,_0x4a00c7){const _0x51ef9b=_0x3b22f;let _0xee3cd5=this['_roomMembers'][_0x51ef9b(0x34d)](_0x4719b1);_0xee3cd5||(_0xee3cd5=new _s(),this[_0x51ef9b(0x469)]['set'](_0x4719b1,_0xee3cd5)),_0xee3cd5[_0x51ef9b(0x349)](_0x4a00c7);}['removeMember'](_0xb0541c,_0x2644ae){const _0x1c69fd=_0x3b22f,_0x641818=this[_0x1c69fd(0x469)]['get'](_0xb0541c);_0x641818&&_0x641818[_0x1c69fd(0x345)](_0x2644ae);}[_0x3b22f(0x3a5)](_0x26ae54){const _0x5ad93b=_0x3b22f;return this[_0x5ad93b(0x469)][_0x5ad93b(0x34d)](_0x26ae54);}[_0x3b22f(0x303)](_0x4b2bd2,_0x31d0e2){const _0x58e84f=_0x3b22f,_0xd00d03=this[_0x58e84f(0x469)]['get'](_0x4b2bd2);if(_0xd00d03)return _0xd00d03[_0x58e84f(0x303)](_0x31d0e2);}[_0x3b22f(0x577)](_0x375d1c){const _0x55212c=_0x3b22f,_0x3ee3ff=this[_0x55212c(0x469)][_0x55212c(0x34d)](_0x375d1c);_0x3ee3ff&&(_0x3ee3ff[_0x55212c(0x4f2)](),this[_0x55212c(0x469)][_0x55212c(0x2cc)](_0x375d1c));}[_0x3b22f(0x4f2)](){const _0x13745a=_0x3b22f;this[_0x13745a(0x469)][_0x13745a(0x339)](_0x3821cb=>_0x3821cb[_0x13745a(0x4f2)]()),this[_0x13745a(0x469)][_0x13745a(0x249)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x564)]))],q);class _s extends a[_0x3b22f(0x4b0)]{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x3b22f(0x4f2)](){const _0x468a62=_0x3b22f;this[_0x468a62(0x311)][_0x468a62(0x249)]();}[_0x3b22f(0x349)](_0x13a000){const _0x502bc5=_0x3b22f;this[_0x502bc5(0x311)][_0x502bc5(0x305)](_0x13a000[_0x502bc5(0x598)],_0x13a000);}['removeMember'](_0x3fdb0b){const _0x5a9273=_0x3b22f;this[_0x5a9273(0x311)][_0x5a9273(0x2cc)](_0x3fdb0b);}['getMember'](_0x59394b){const _0x21926f=_0x3b22f;return this[_0x21926f(0x311)][_0x21926f(0x34d)](_0x59394b);}}var us=Object['defineProperty'],ds=Object[_0x3b22f(0x246)],Ss=(_0x405f15,_0x43379c,_0x110ca3,_0x4aee20)=>{const _0xc53a3e=_0x3b22f;for(var _0x2cd119=_0x4aee20>0x1?void 0x0:_0x4aee20?ds(_0x43379c,_0x110ca3):_0x43379c,_0x2cbca2=_0x405f15[_0xc53a3e(0x291)]-0x1,_0x26e6c0;_0x2cbca2>=0x0;_0x2cbca2--)(_0x26e6c0=_0x405f15[_0x2cbca2])&&(_0x2cd119=(_0x4aee20?_0x26e6c0(_0x43379c,_0x110ca3,_0x2cd119):_0x26e6c0(_0x2cd119))||_0x2cd119);return _0x4aee20&&_0x2cd119&&us(_0x43379c,_0x110ca3,_0x2cd119),_0x2cd119;},B=(_0x3034cf,_0x2dd923)=>(_0xab550a,_0x2bb3d4)=>_0x2dd923(_0xab550a,_0x2bb3d4,_0x3034cf),$=(_0x56472d=>(_0x56472d[_0x56472d[_0x3b22f(0x2d3)]=0x0]=_0x3b22f(0x2d3),_0x56472d[_0x56472d['JOINING']=0x1]=_0x3b22f(0x4f5),_0x56472d[_0x56472d[_0x3b22f(0x3ea)]=0x2]='OFFLINE',_0x56472d[_0x56472d[_0x3b22f(0x22f)]=0x3]=_0x3b22f(0x22f),_0x56472d))($||{});exports['CollaborationSession']=class extends a[_0x3b22f(0x398)]{constructor(_0x446a69,_0x1c3b81,_0x539b68,_0x20d871,_0x282e6f,_0x3fff74,_0x4cb2ed,_0xb03532,_0x332836,_0x5aa327){const _0x3f0e2a=_0x3b22f;super(),d(this,'_sessionStatus$',new v[(_0x3f0e2a(0x502))](0x0)),d(this,'sessionStatus$',this[_0x3f0e2a(0x400)][_0x3f0e2a(0x56e)]()),d(this,_0x3f0e2a(0x4ca),new v[(_0x3f0e2a(0x25f))]()),d(this,_0x3f0e2a(0x3b5),this[_0x3f0e2a(0x4ca)][_0x3f0e2a(0x56e)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,_0x3f0e2a(0x228)),d(this,_0x3f0e2a(0x47c),!0x1),d(this,'_telemetryInfo',null),(this['_unitID']=_0x446a69,this[_0x3f0e2a(0x445)]=_0x539b68,this[_0x3f0e2a(0x4e0)]=_0x20d871,this['_messageService']=_0x282e6f,this[_0x3f0e2a(0x266)]=_0x3fff74,this['_localeService']=_0x4cb2ed,this['_memberService']=_0xb03532,this[_0x3f0e2a(0x546)]=_0x332836,this[_0x3f0e2a(0x59a)]=_0x5aa327,this['_shouldReportTelemetry']=!!this[_0x3f0e2a(0x59a)],_0x1c3b81['pipe'](v['takeUntil'](this[_0x3f0e2a(0x2e1)]))[_0x3f0e2a(0x42c)](_0x356333=>{const _0x268640=_0x3f0e2a;var _0x3164d0;typeof _0x356333>'u'||(this[_0x268640(0x218)]=_0x356333,_0x356333?(this[_0x268640(0x59b)](_0x356333),this[_0x268640(0x3fa)]=_0x356333[_0x268640(0x1fa)][_0x268640(0x42c)](_0x2fd5fc=>{const _0x5db11e=_0x268640;_0x2fd5fc['routeKey']===this[_0x5db11e(0x2f9)]&&this['_onCombEvent'](_0x2fd5fc);})):(this[_0x268640(0x46f)](),this[_0x268640(0x400)][_0x268640(0x52d)](0x2),(_0x3164d0=this[_0x268640(0x3fa)])==null||_0x3164d0[_0x268640(0x3d4)](),this[_0x268640(0x3fa)]=null));}),this[_0x3f0e2a(0x283)](this[_0x3f0e2a(0x4e0)][_0x3f0e2a(0x4c4)](()=>{const _0x2c143a=_0x3f0e2a;var _0x27d0a7;(_0x27d0a7=this[_0x2c143a(0x218)])==null||_0x27d0a7['send']({'cmd':b['LEAVE'],'data':{'roomID':this[_0x2c143a(0x2f9)]}});})));}get[_0x3b22f(0x55a)](){const _0x4f2907=_0x3b22f;return this['_sessionStatus$'][_0x4f2907(0x2a9)]();}[_0x3b22f(0x597)](){const _0x32b3da=_0x3b22f;var _0x731e24,_0x22ffe2;return(_0x22ffe2=(_0x731e24=this[_0x32b3da(0x218)])==null?void 0x0:_0x731e24[_0x32b3da(0x598)])!=null?_0x22ffe2:null;}[_0x3b22f(0x4f2)](){const _0x548d5d=_0x3b22f;super[_0x548d5d(0x4f2)](),this[_0x548d5d(0x2e1)]['next'](),this['dispose$']['complete']();}[_0x3b22f(0x3ec)](){const _0xe2321c=_0x3b22f;var _0x5b8650,_0x12a237;this[_0xe2321c(0x46f)](),(_0x5b8650=this[_0xe2321c(0x218)])==null||_0x5b8650['send']({'cmd':b[_0xe2321c(0x2e6)],'data':{'roomID':this[_0xe2321c(0x2f9)]}}),(_0x12a237=this['_socket'])==null||_0x12a237[_0xe2321c(0x3ec)](),this['_event$'][_0xe2321c(0x2ec)](),this[_0xe2321c(0x400)][_0xe2321c(0x2ec)](),this[_0xe2321c(0x4f2)]();}[_0x3b22f(0x276)](_0x1490c9){const _0x48e5b2=_0x3b22f;_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x23b)]?this[_0x48e5b2(0x53c)](_0x1490c9):_0x1490c9[_0x48e5b2(0x4d4)]===b[_0x48e5b2(0x2f0)]&&this[_0x48e5b2(0x2cf)](_0x1490c9);}[_0x3b22f(0x59b)](_0x19d757){const _0x3b6434=_0x3b22f;this['_sessionStatus$'][_0x3b6434(0x52d)](0x1),_0x19d757[_0x3b6434(0x3c5)]({'cmd':b[_0x3b6434(0x23b)],'routeKey':this[_0x3b6434(0x2f9)],'routeType':'','data':{'rooms':[{'roomID':this[_0x3b6434(0x2f9)]}]}});}['_onJoinRoomEvent'](_0x53b1c2){const _0x280934=_0x3b22f;var _0x2b1386;if(_0x53b1c2['code']===We[_0x280934(0x438)]){this['_messageService']['show']({'type':X['MessageType'][_0x280934(0x3b7)],'content':this['_localeService']['t']('session.room-full')}),this[_0x280934(0x400)][_0x280934(0x52d)](0x2);return;}this[_0x280934(0x400)]['next'](0x3);const _0x256cc8=(_0x2b1386=_0x53b1c2[_0x280934(0x45b)][_0x280934(0x411)][this[_0x280934(0x2f9)]])==null?void 0x0:_0x2b1386[_0x280934(0x212)];_0x256cc8&&_0x256cc8[_0x280934(0x339)](_0x4e7841=>this[_0x280934(0x4ec)][_0x280934(0x349)](this['_unitID'],_0x4e7841));}['_onRecvEvent'](_0x51e2a2){const _0x1d951b=_0x3b22f;try{const _0x1b621c=_0x51e2a2[_0x1d951b(0x45b)];switch(_0x1b621c[_0x1d951b(0x3cc)]){case _[_0x1d951b(0x44c)][_0x1d951b(0x3a6)]:this['_onUserJoin'](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x51c)]:this[_0x1d951b(0x423)](_0x1b621c),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _[_0x1d951b(0x44c)][_0x1d951b(0x428)]:this[_0x1d951b(0x3b0)](),this[_0x1d951b(0x516)](),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x290)]:this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x1d951b(0x268)+JSON[_0x1d951b(0x56d)](_0x1b621c)),this['_event$'][_0x1d951b(0x52d)](_0x1b621c);break;case _['CollaborationEvent'][_0x1d951b(0x431)]:this['_commentService'][_0x1d951b(0x3f6)](_0x1b621c[_0x1d951b(0x45b)]),this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);break;default:this[_0x1d951b(0x4ca)][_0x1d951b(0x52d)](_0x1b621c);}}catch(_0x4b1e27){this[_0x1d951b(0x445)][_0x1d951b(0x49d)](_0x4b1e27,_0x51e2a2);}}[_0x3b22f(0x368)](_0x14e18c){const _0x32c3e1=_0x3b22f;this[_0x32c3e1(0x4ec)][_0x32c3e1(0x349)](this[_0x32c3e1(0x2f9)],_0x14e18c['data']);}['_onUserLeave'](_0x2d51a4){const _0x5ae512=_0x3b22f;this['_memberService']['removeMember'](this[_0x5ae512(0x2f9)],_0x2d51a4[_0x5ae512(0x45b)][_0x5ae512(0x598)]);}async[_0x3b22f(0x3c5)](_0x8d37e3,_0x3352dd){const _0xb92a1d=_0x3b22f;if(this[_0xb92a1d(0x55a)]!==0x3||!this[_0xb92a1d(0x218)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x8d37e3[_0xb92a1d(0x3cc)]===_[_0xb92a1d(0x44c)]['SUBMIT_CHANGESET']&&(this[_0xb92a1d(0x538)](),this['_startTelemetryCollaborationNewChangeset'](_0x8d37e3)),this['_socket'][_0xb92a1d(0x3c5)]({'cmd':b[_0xb92a1d(0x4ef)],'routeKey':_0x3352dd,'routeType':'','data':_0x8d37e3});}catch(_0x2b1335){this[_0xb92a1d(0x445)][_0xb92a1d(0x49d)](_0x2b1335);}}[_0x3b22f(0x538)](){const _0xe73dcd=_0x3b22f;var _0x48934e;this['_collaborationTimeoutTimer']=window[_0xe73dcd(0x576)](()=>{const _0x305a7b=_0xe73dcd;this[_0x305a7b(0x228)]=null,this[_0x305a7b(0x31d)][_0x305a7b(0x224)]({'type':X['MessageType'][_0x305a7b(0x460)],'content':this[_0x305a7b(0x316)]['t']('session.collaboration-timeout')});},(_0x48934e=this['_configService'][_0xe73dcd(0x504)](Ve))!=null?_0x48934e:St);}[_0x3b22f(0x516)](){const _0x5dc8af=_0x3b22f;this[_0x5dc8af(0x228)]&&(clearTimeout(this[_0x5dc8af(0x228)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x192c22){const _0x4dfd5f=_0x3b22f;if(!this[_0x4dfd5f(0x47c)])return;const {data:_0x471c3c}=_0x192c22,{unitID:_0x1e1f74,changeset:_0x12f911}=_0x471c3c,{mutations:_0x56e6ab,type:_0x1a1e96}=_0x12f911;this[_0x4dfd5f(0x3f3)]={'unitId':_0x1e1f74,'type':_0x1a1e96,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':as(_0x56e6ab)};}[_0x3b22f(0x3b0)](){const _0x147156=_0x3b22f;if(this[_0x147156(0x47c)]){if(!this[_0x147156(0x3f3)]){this[_0x147156(0x445)][_0x147156(0x49d)]('[CollaborationSession]',_0x147156(0x3bf));return;}this['_telemetryInfo'][_0x147156(0x567)]=performance['now'](),this[_0x147156(0x3f3)]['duration']=this[_0x147156(0x3f3)][_0x147156(0x567)]-this[_0x147156(0x3f3)]['startTime'],this[_0x147156(0x59a)]['capture'](os,this['_telemetryInfo']),this[_0x147156(0x3f3)]=null;}}[_0x3b22f(0x46f)](){this['_telemetryInfo']=null;}},exports[_0x3b22f(0x572)]=Ss([B(0x2,a[_0x3b22f(0x308)]),B(0x3,N['IBeforeCloseService']),B(0x4,N[_0x3b22f(0x2e3)]),B(0x5,a['IConfigService']),B(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),B(0x7,a['Inject'](q)),B(0x8,a[_0x3b22f(0x492)](Ge)),B(0x9,a['Optional'](Vt[_0x3b22f(0x467)]))],exports['CollaborationSession']);var vs=Object['defineProperty'],fs=Object[_0x3b22f(0x246)],gs=(_0xae273c,_0x4641a3,_0x534fb6,_0x8951c6)=>{const _0xcc463e=_0x3b22f;for(var _0x9cd485=_0x8951c6>0x1?void 0x0:_0x8951c6?fs(_0x4641a3,_0x534fb6):_0x4641a3,_0x52dbbb=_0xae273c[_0xcc463e(0x291)]-0x1,_0xe3b069;_0x52dbbb>=0x0;_0x52dbbb--)(_0xe3b069=_0xae273c[_0x52dbbb])&&(_0x9cd485=(_0x8951c6?_0xe3b069(_0x4641a3,_0x534fb6,_0x9cd485):_0xe3b069(_0x9cd485))||_0x9cd485);return _0x8951c6&&_0x9cd485&&vs(_0x4641a3,_0x534fb6,_0x9cd485),_0x9cd485;},Z=(_0xf76452,_0x108d1a)=>(_0x578b46,_0x25e6de)=>_0x108d1a(_0x578b46,_0x25e6de,_0xf76452);exports[_0x3b22f(0x298)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x114d39,_0x169a7f,_0x5a4f9d,_0x19f23c,_0x32fd69,_0xf6fe67){const _0x28eac2=_0x3b22f;super(),d(this,_0x28eac2(0x50e),new v[(_0x28eac2(0x502))](void 0x0)),d(this,_0x28eac2(0x2c8),this[_0x28eac2(0x50e)]['asObservable']()),d(this,_0x28eac2(0x392),null),d(this,'_sessions',new Map()),d(this,'_status$',new v[(_0x28eac2(0x502))]($[_0x28eac2(0x2d3)])),d(this,_0x28eac2(0x386),this[_0x28eac2(0x4d5)][_0x28eac2(0x56e)]()),d(this,'_socketReady',!0x1),d(this,_0x28eac2(0x440)),d(this,_0x28eac2(0x34b),0x0),d(this,_0x28eac2(0x463)),d(this,_0x28eac2(0x1fb)),(this[_0x28eac2(0x397)]=_0x114d39,this[_0x28eac2(0x316)]=_0x169a7f,this[_0x28eac2(0x31d)]=_0x5a4f9d,this[_0x28eac2(0x445)]=_0x19f23c,this[_0x28eac2(0x266)]=_0x32fd69,this['_socketService']=_0xf6fe67,this[_0x28eac2(0x370)]());}get[_0x3b22f(0x218)](){const _0x1fafcd=_0x3b22f;return this[_0x1fafcd(0x50e)][_0x1fafcd(0x2a9)]();}[_0x3b22f(0x370)](){const _0x46f807=_0x3b22f;this[_0x46f807(0x2a0)](),this[_0x46f807(0x39a)]();}[_0x3b22f(0x4f2)](){const _0x5029b8=_0x3b22f;super[_0x5029b8(0x4f2)](),this[_0x5029b8(0x2f4)][_0x5029b8(0x339)](_0x295a7d=>_0x295a7d[_0x5029b8(0x4f2)]()),this['_sessions']['clear'](),this[_0x5029b8(0x4d5)][_0x5029b8(0x2ec)]();}async['requireSession'](_0x2aeb52){const _0xa0d345=_0x3b22f;if(this[_0xa0d345(0x2f4)][_0xa0d345(0x3e5)](_0x2aeb52))return this[_0xa0d345(0x2f4)][_0xa0d345(0x34d)](_0x2aeb52);this[_0xa0d345(0x40f)]();const _0x3a1e28=this[_0xa0d345(0x397)]['createInstance'](exports[_0xa0d345(0x572)],_0x2aeb52,this['_socket$']['asObservable']());return this[_0xa0d345(0x2f4)][_0xa0d345(0x305)](_0x2aeb52,_0x3a1e28),_0x3a1e28;}[_0x3b22f(0x3c6)](_0x575174){const _0x4cbfb6=_0x3b22f;var _0x24bd41;const _0x39b85a=this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x34d)](_0x575174);_0x39b85a&&(this[_0x4cbfb6(0x2f4)][_0x4cbfb6(0x2cc)](_0x575174),_0x39b85a[_0x4cbfb6(0x3ec)]()),this['_sessions'][_0x4cbfb6(0x45a)]||(_0x24bd41=this[_0x4cbfb6(0x218)])==null||_0x24bd41[_0x4cbfb6(0x3ec)]();}[_0x3b22f(0x359)](){const _0x152675=_0x3b22f;this[_0x152675(0x34b)]=0x0,this[_0x152675(0x440)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x152675(0x440)]=null),this[_0x152675(0x39c)]();}[_0x3b22f(0x539)](){const _0xddaf46=_0x3b22f;var _0x1b1849,_0x1392bd;const _0x439601=this[_0xddaf46(0x266)][_0xddaf46(0x504)](ut),_0xa12ea0=this[_0xddaf46(0x266)]['getConfig'](A),_0x481525=(_0x1392bd=(_0x1b1849=_0xa12ea0==null?void 0x0:_0xa12ea0[_0xddaf46(0x33b)])!=null?_0x1b1849:_0x439601)!=null?_0x1392bd:Xt,_0x26ee56=this['_socketService'][_0xddaf46(0x3a1)](_0x481525);return this[_0xddaf46(0x392)]=_0x26ee56,_0x26ee56;}['_tryEnsureSocket'](){const _0x474edf=_0x3b22f;var _0x589294,_0x47f152;try{const _0x15baae=(_0x47f152=(_0x589294=this[_0x474edf(0x218)])!=null?_0x589294:this[_0x474edf(0x392)])!=null?_0x47f152:this[_0x474edf(0x539)]();if(_0x15baae){const _0x2e2c22=_0x15baae['send'];_0x15baae[_0x474edf(0x3c5)]=_0x4d839e=>(this[_0x474edf(0x285)](),_0x2e2c22['apply'](_0x15baae,[_0x4d839e])),_0x15baae[_0x474edf(0x1fa)][_0x474edf(0x42c)](_0x4ac291=>this[_0x474edf(0x5bd)](_0x15baae,_0x4ac291)),_0x15baae[_0x474edf(0x505)][_0x474edf(0x3de)](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x4441bb=>this['_logService'][_0x474edf(0x49d)](_0x474edf(0x5d0),_0x4441bb)),_0x15baae[_0x474edf(0x486)][_0x474edf(0x3de)](E['take'](0x1))[_0x474edf(0x42c)](()=>{const _0x1517ca=_0x474edf;this[_0x1517ca(0x2c6)](_0x15baae);}),_0x15baae[_0x474edf(0x324)]['pipe'](E[_0x474edf(0x5b9)](0x1))[_0x474edf(0x42c)](_0x3bc474=>{const _0x1d0fab=_0x474edf;this[_0x1d0fab(0x445)][_0x1d0fab(0x320)](_0x1d0fab(0x557),_0x1d0fab(0x336),_0x3bc474),this[_0x1d0fab(0x5ed)]();});}}catch(_0x16f00a){this['_logService'][_0x474edf(0x49d)](_0x16f00a),this[_0x474edf(0x5ed)]();}}[_0x3b22f(0x2c6)](_0x481fbe){const _0x40b0ed=_0x3b22f;this[_0x40b0ed(0x445)][_0x40b0ed(0x320)](_0x40b0ed(0x557),_0x40b0ed(0x3b2)),_0x481fbe[_0x40b0ed(0x3c5)]({'cmd':b[_0x40b0ed(0x2bd)]}),this['_rescheduleHeartbeat']();}[_0x3b22f(0x2a0)](){const _0x5c4f2b=_0x3b22f;window[_0x5c4f2b(0x4e8)](_0x5c4f2b(0x45f),()=>this['_onOffline']());}['_onOffline'](){const _0x47a947=_0x3b22f;this[_0x47a947(0x394)]=!0x1,this['_candidateSocket']=null,this['_status$'][_0x47a947(0x52d)]($['OFFLINE']),this[_0x47a947(0x50e)][_0x47a947(0x52d)](null),this[_0x47a947(0x3cb)](),this[_0x47a947(0x34e)]();}[_0x3b22f(0x5ed)](){const _0x772c52=_0x3b22f;var _0x50d9a1;this['_onOffline'](),this[_0x772c52(0x34b)]<((_0x50d9a1=this['_configService'][_0x772c52(0x504)](vt))!=null?_0x50d9a1:Jt)?(this['_messageService']['show']({'key':'collaboration-session-retry','type':X['MessageType'][_0x772c52(0x3b7)],'content':this[_0x772c52(0x316)]['t'](_0x772c52(0x435))}),this['_tryReconnect']()):this[_0x772c52(0x31d)][_0x772c52(0x224)]({'key':_0x772c52(0x1f8),'type':X[_0x772c52(0x5b4)][_0x772c52(0x460)],'content':this['_localeService']['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x5124fb=_0x3b22f,_0xb7b9a=()=>{const _0x153335=_0x2c53;this[_0x153335(0x218)]||this[_0x153335(0x359)]();},_0x31ea94=()=>{const _0x22b314=_0x2c53;this[_0x22b314(0x218)]||document['visibilityState']==='hidden'||this[_0x22b314(0x359)]();};window['addEventListener'](_0x5124fb(0x5d1),_0xb7b9a),document['addEventListener'](_0x5124fb(0x315),_0x31ea94);}[_0x3b22f(0x39c)](){const _0x42938c=_0x3b22f;var _0x43f0e8;const _0x2229c7=this['_retryCount'],_0x100b33=this[_0x42938c(0x266)][_0x42938c(0x504)](A),_0x1f00e4=_0x2229c7===0x0?0x0:((_0x43f0e8=_0x100b33==null?void 0x0:_0x100b33[_0x42938c(0x1f7)])!=null?_0x43f0e8:zt)*0x2**_0x2229c7;this[_0x42938c(0x440)]=window['setTimeout'](()=>{const _0x61e493=_0x42938c;clearTimeout(this[_0x61e493(0x440)]),this['_retryConnectingTimer']=null,this['_tryEnsureSocket']();},_0x1f00e4),this[_0x42938c(0x34b)]+=0x1;}[_0x3b22f(0x5bd)](_0x1b9187,_0x4b6639){const _0x371ae7=_0x3b22f,{cmd:_0x15f02f}=_0x4b6639;_0x15f02f===b[_0x371ae7(0x2bd)]&&!this[_0x371ae7(0x394)]&&(_0x1b9187[_0x371ae7(0x598)]=_0x4b6639[_0x371ae7(0x45b)][_0x371ae7(0x598)],this[_0x371ae7(0x50e)]['next'](_0x1b9187),this[_0x371ae7(0x4d5)]['next']($[_0x371ae7(0x22f)]),this[_0x371ae7(0x394)]=!0x0,this[_0x371ae7(0x392)]=null),_0x15f02f===b[_0x371ae7(0x233)]&&this[_0x371ae7(0x3cb)](),this['_rescheduleHeartbeat']();}[_0x3b22f(0x285)](){const _0x5b37f1=_0x3b22f;var _0x44c210;this[_0x5b37f1(0x34e)](),this[_0x5b37f1(0x463)]=window[_0x5b37f1(0x576)](()=>this[_0x5b37f1(0x240)](),(_0x44c210=this[_0x5b37f1(0x266)][_0x5b37f1(0x504)](dt))!=null?_0x44c210:qt);}[_0x3b22f(0x240)](){const _0x2905ca=_0x3b22f;this[_0x2905ca(0x218)][_0x2905ca(0x3c5)]({'cmd':b[_0x2905ca(0x233)]}),this['_waitForHeartbeatResponse']();}[_0x3b22f(0x3d7)](){const _0x28f817=_0x3b22f;var _0x6a762f;this[_0x28f817(0x1fb)]=window[_0x28f817(0x576)](()=>this[_0x28f817(0x5ed)](),(_0x6a762f=this[_0x28f817(0x266)]['getConfig'](Ve))!=null?_0x6a762f:St);}['_clearHeartbeatTimer'](){const _0x158353=_0x3b22f;this[_0x158353(0x463)]!=null&&(clearTimeout(this[_0x158353(0x463)]),this[_0x158353(0x463)]=null);}['_clearTimeoutTimer'](){const _0x599711=_0x3b22f;this[_0x599711(0x1fb)]!=null&&(clearTimeout(this[_0x599711(0x1fb)]),this[_0x599711(0x1fb)]=null);}},exports[_0x3b22f(0x298)]=gs([Z(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Z(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),Z(0x2,N['IMessageService']),Z(0x3,a[_0x3b22f(0x308)]),Z(0x4,a['IConfigService']),Z(0x5,Fe)],exports['CollaborationSessionService']);var ms=Object['defineProperty'],Is=Object['getOwnPropertyDescriptor'],ps=(_0x377f1b,_0x217785,_0x13661e,_0x2c937)=>{const _0x21a7b9=_0x3b22f;for(var _0x25e65e=_0x2c937>0x1?void 0x0:_0x2c937?Is(_0x217785,_0x13661e):_0x217785,_0x534194=_0x377f1b[_0x21a7b9(0x291)]-0x1,_0x36c6ff;_0x534194>=0x0;_0x534194--)(_0x36c6ff=_0x377f1b[_0x534194])&&(_0x25e65e=(_0x2c937?_0x36c6ff(_0x217785,_0x13661e,_0x25e65e):_0x36c6ff(_0x25e65e))||_0x25e65e);return _0x2c937&&_0x25e65e&&ms(_0x217785,_0x13661e,_0x25e65e),_0x25e65e;},De=(_0x3d3983,_0x3378d9)=>(_0x1a54ac,_0x443272)=>_0x3378d9(_0x1a54ac,_0x443272,_0x3d3983);let fe=class{constructor(_0x691281,_0x14ad1f,_0x485e12){const _0x4e01ee=_0x3b22f;this['_injector']=_0x691281,this[_0x4e01ee(0x294)]=_0x14ad1f,this[_0x4e01ee(0x376)]=_0x485e12;}['transformIMECache'](_0x4debe5){const _0x489f30=_0x3b22f;this[_0x489f30(0x352)](_0x4debe5),this[_0x489f30(0x593)](_0x4debe5);}[_0x3b22f(0x471)](_0x419aa3){const _0x19f635=_0x3b22f,{unitID:_0x45fdeb}=_0x419aa3,_0x4de5de=this[_0x19f635(0x376)][_0x19f635(0x360)](_0x45fdeb)[_0x19f635(0x3d0)](w[_0x19f635(0x52a)]),{redoCache:_0x4e2033}=_0x4de5de[_0x19f635(0x536)]();if(_0x4e2033[_0x19f635(0x291)]===0x0)return _0x419aa3;let _0x5d0d3e=a[_0x19f635(0x27d)]['deepClone'](_0x419aa3[_0x19f635(0x3a2)][0x0]);for(let _0x6f7b74=0x0;_0x6f7b74<_0x4e2033[_0x19f635(0x291)];_0x6f7b74++){const _0x21ff3e={'id':_0x19f635(0x29f),'params':{..._0x4e2033[_0x6f7b74]}},_0x1e51cd=this[_0x19f635(0x294)]['transformMutation'](_0x5d0d3e,_0x21ff3e,!0x1);if(_['isTransformMutationFailure'](_0x1e51cd))throw _0x1e51cd['error'];_0x5d0d3e=_0x1e51cd[_0x19f635(0x5ce)];}return{...a['Tools'][_0x19f635(0x343)](_0x419aa3),'mutations':[_0x5d0d3e]};}['_transformUndoRedoStack'](_0x2fa535){const _0x3128eb=_0x3b22f,{unitID:_0xec4b56}=_0x2fa535,_0x2d7ed9=this[_0x3128eb(0x376)][_0x3128eb(0x360)](_0xec4b56)[_0x3128eb(0x3d0)](w[_0x3128eb(0x52a)]),{undoCache:_0x40a102,redoCache:_0x5d8221}=_0x2d7ed9['getUndoRedoMutationParamsCache']();if(_0x40a102[_0x3128eb(0x291)]===0x0||_0x5d8221[_0x3128eb(0x291)]===0x0)return;const _0x26d994=[],_0x39b4c3=[];let _0x39d238=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]),_0x1a45d8=a[_0x3128eb(0x27d)][_0x3128eb(0x343)](_0x2fa535[_0x3128eb(0x3a2)][0x0]);for(let _0x33c417=_0x40a102['length']-0x1;_0x33c417>=0x0;_0x33c417--){const _0x10d94d={'id':'doc.mutation.rich-text-editing','params':{..._0x40a102[_0x33c417]}},_0x2bec7e={'id':_0x3128eb(0x29f),'params':{..._0x5d8221[_0x33c417]}},_0x14dc7b=this['_transformService'][_0x3128eb(0x2c5)](_0x39d238,_0x10d94d,!0x1),_0x4d0c6a=this[_0x3128eb(0x294)]['transformMutation'](_0x1a45d8,_0x2bec7e,!0x1);if(_[_0x3128eb(0x5cb)](_0x14dc7b))throw _0x14dc7b['error'];if(_[_0x3128eb(0x5cb)](_0x4d0c6a))throw _0x4d0c6a[_0x3128eb(0x49d)];_0x26d994['unshift'](_0x14dc7b['m2Prime'][_0x3128eb(0x3b6)]),_0x39b4c3[_0x3128eb(0x20f)](_0x4d0c6a[_0x3128eb(0x2e8)][_0x3128eb(0x3b6)]),_0x39d238=_0x14dc7b['m1Prime'],_0x1a45d8=_0x4d0c6a[_0x3128eb(0x5ce)];}_0x2d7ed9['setUndoRedoMutationParamsCache']({'undoCache':_0x26d994,'redoCache':_0x39b4c3});}[_0x3b22f(0x593)](_0x40fe24){const _0x5aa454=_0x3b22f,{unitID:_0x491599}=_0x40fe24,_0x2ce10a=this[_0x5aa454(0x376)][_0x5aa454(0x360)](_0x491599)[_0x5aa454(0x3d0)](w[_0x5aa454(0x52a)]),_0x227bdd=_0x2ce10a[_0x5aa454(0x47e)]();if(_0x227bdd==null)return;const _0x50079c=[{'id':_0x5aa454(0x29f),'params':{'unitId':_0x40fe24[_0x5aa454(0x40e)],'actions':null,'textRanges':[_0x227bdd]}}],_0x3709dd=this[_0x5aa454(0x294)][_0x5aa454(0x261)](_0x40fe24,_0x50079c);if(!_[_0x5aa454(0x3db)](_0x3709dd))throw _0x3709dd[_0x5aa454(0x49d)];const _0x53a7a2=_0x3709dd['m2Prime'][0x0][_0x5aa454(0x3b6)][_0x5aa454(0x4a4)];Array[_0x5aa454(0x33f)](_0x53a7a2)&&_0x53a7a2[_0x5aa454(0x291)]&&_0x2ce10a['setActiveRange'](_0x53a7a2[0x0]);}};fe=ps([De(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),De(0x1,_[_0x3b22f(0x378)]),De(0x2,R[_0x3b22f(0x2be)])],fe);var Cs=Object[_0x3b22f(0x1ff)],Es=Object[_0x3b22f(0x246)],bs=(_0x59f009,_0x3d5d34,_0x1799b5,_0x2d17c7)=>{for(var _0x49229f=_0x2d17c7>0x1?void 0x0:_0x2d17c7?Es(_0x3d5d34,_0x1799b5):_0x3d5d34,_0x782dfc=_0x59f009['length']-0x1,_0x18fd67;_0x782dfc>=0x0;_0x782dfc--)(_0x18fd67=_0x59f009[_0x782dfc])&&(_0x49229f=(_0x2d17c7?_0x18fd67(_0x3d5d34,_0x1799b5,_0x49229f):_0x18fd67(_0x49229f))||_0x49229f);return _0x2d17c7&&_0x49229f&&Cs(_0x3d5d34,_0x1799b5,_0x49229f),_0x49229f;},ae=(_0x468f0d,_0x543ff9)=>(_0x3c6dc9,_0x55edf7)=>_0x543ff9(_0x3c6dc9,_0x55edf7,_0x468f0d);exports[_0x3b22f(0x462)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0x267a58,_0x2eece6,_0x40e311,_0x18bfe6,_0x5d042f){const _0x5881c7=_0x3b22f;super(),d(this,_0x5881c7(0x21d),new Map()),d(this,_0x5881c7(0x3af),new Map()),d(this,_0x5881c7(0x5ea),!0x1),(this[_0x5881c7(0x266)]=_0x267a58,this[_0x5881c7(0x54a)]=_0x2eece6,this[_0x5881c7(0x4e0)]=_0x40e311,this[_0x5881c7(0x316)]=_0x18bfe6,this[_0x5881c7(0x2d5)]=_0x5d042f,this['_setupBeforeClosingHandler']());}[_0x3b22f(0x333)](){const _0x2359ed=_0x3b22f;this[_0x2359ed(0x5ea)]=!0x0;}[_0x3b22f(0x54e)](){const _0x577e6c=_0x3b22f;this[_0x577e6c(0x5ea)]=!0x1;}[_0x3b22f(0x4f2)](){const _0x39e9fd=_0x3b22f;this[_0x39e9fd(0x328)]()['then'](()=>super[_0x39e9fd(0x4f2)]());}async['loadOfflineData'](_0x10f864){const _0x4db2be=_0x3b22f;return this[_0x4db2be(0x5ea)]?null:this[_0x4db2be(0x54a)][_0x4db2be(0x5b3)](Qe(_0x10f864));}async[_0x3b22f(0x2d2)](_0x9d28d0,_0x37ce1f){const _0x51e598=_0x3b22f;return!!this[_0x51e598(0x54a)][_0x51e598(0x307)](_0x9d28d0,_0x37ce1f);}[_0x3b22f(0x371)](_0x4ce66e,_0x5a9bd1,_0x3d36f5,_0x3933a5){const _0xf161e=_0x3b22f,_0x1a697c=this[_0xf161e(0x2d5)][_0xf161e(0x42d)](_0x4ce66e);this[_0xf161e(0x21d)][_0xf161e(0x305)](_0x4ce66e,{'unitID':_0x4ce66e,'type':_0x5a9bd1,'awaitingChangeset':_0x3d36f5,'mutations':_0x3933a5,'rev':_0x1a697c}),this[_0xf161e(0x3af)]['has'](_0x4ce66e)||this[_0xf161e(0x1e1)](_0x4ce66e);}[_0x3b22f(0x1e1)](_0x734f58){const _0x1c1c08=_0x3b22f,_0x2d8c07=this[_0x1c1c08(0x5a3)]();_0x2d8c07===0x0?this[_0x1c1c08(0x51b)](_0x734f58):this[_0x1c1c08(0x3af)][_0x1c1c08(0x305)](_0x734f58,setTimeout(()=>this[_0x1c1c08(0x51b)](_0x734f58),_0x2d8c07));}[_0x3b22f(0x5a3)](){const _0x5aa33e=_0x3b22f;var _0x51de74;return(_0x51de74=this[_0x5aa33e(0x266)][_0x5aa33e(0x504)](ft))!=null?_0x51de74:Zt;}[_0x3b22f(0x51b)](_0xad4568){const _0x43fa6a=_0x3b22f,_0x2bc5bb=this[_0x43fa6a(0x3af)][_0x43fa6a(0x34d)](_0xad4568);return _0x2bc5bb!==void 0x0&&window[_0x43fa6a(0x475)](_0x2bc5bb),this['_localStorageService'][_0x43fa6a(0x307)](Qe(_0xad4568),this[_0x43fa6a(0x21d)]['get'](_0xad4568))[_0x43fa6a(0x395)](()=>this[_0x43fa6a(0x3af)][_0x43fa6a(0x2cc)](_0xad4568));}async[_0x3b22f(0x328)](){const _0x1e9a40=_0x3b22f,_0x2eadbe=[];this['_saveTaskMap'][_0x1e9a40(0x339)]((_0x17473c,_0x200383)=>{const _0x592550=_0x1e9a40;window[_0x592550(0x475)](_0x17473c),_0x2eadbe[_0x592550(0x1ed)](this[_0x592550(0x51b)](_0x200383)[_0x592550(0x395)](()=>{const _0x2f89ee=_0x592550;this[_0x2f89ee(0x3af)][_0x2f89ee(0x2cc)](_0x200383);}));}),await Promise['all'](_0x2eadbe);}[_0x3b22f(0x23e)](){const _0x4731a0=_0x3b22f;this[_0x4731a0(0x283)](this[_0x4731a0(0x4e0)][_0x4731a0(0x361)](()=>{const _0x3d0bee=_0x4731a0;if(this[_0x3d0bee(0x3af)]['size'])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},exports[_0x3b22f(0x462)]=bs([ae(0x0,a[_0x3b22f(0x5ad)]),ae(0x1,a['ILocalStorageService']),ae(0x2,N[_0x3b22f(0x279)]),ae(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),ae(0x4,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)]))],exports[_0x3b22f(0x462)]);function Qe(_0x4e02f9){const _0x517f88=_0x3b22f;return _0x517f88(0x4fd)+_0x4e02f9;}var Ts=Object[_0x3b22f(0x1ff)],Rs=Object['getOwnPropertyDescriptor'],Os=(_0x58d968,_0x8f3eb5,_0xaa560d,_0x378c20)=>{const _0x4bbdf3=_0x3b22f;for(var _0x35a25b=_0x378c20>0x1?void 0x0:_0x378c20?Rs(_0x8f3eb5,_0xaa560d):_0x8f3eb5,_0x2f1d67=_0x58d968[_0x4bbdf3(0x291)]-0x1,_0x2f8761;_0x2f1d67>=0x0;_0x2f1d67--)(_0x2f8761=_0x58d968[_0x2f1d67])&&(_0x35a25b=(_0x378c20?_0x2f8761(_0x8f3eb5,_0xaa560d,_0x35a25b):_0x2f8761(_0x35a25b))||_0x35a25b);return _0x378c20&&_0x35a25b&&Ts(_0x8f3eb5,_0xaa560d,_0x35a25b),_0x35a25b;},ye=(_0x528de3,_0x187ff0)=>(_0x266bd6,_0x8fe75d)=>_0x187ff0(_0x266bd6,_0x8fe75d,_0x528de3);function Ds(_0x3f5cee){const {unitID:_0x3eea22,mutations:_0x7a92fc}=_0x3f5cee;return{'unitId':_0x3eea22,'subUnitId':_0x7a92fc[0x0]['params']['subUnitId']};}let ge=class{constructor(_0x2e5ab4,_0x16a58a,_0x30b373){const _0x3df8aa=_0x3b22f;this[_0x3df8aa(0x397)]=_0x2e5ab4,this[_0x3df8aa(0x294)]=_0x16a58a,this[_0x3df8aa(0x4f8)]=_0x30b373;}[_0x3b22f(0x4fb)](_0x181223){const _0xdcc4fb=_0x3b22f;var _0xb5b0c3,_0x32ee7a,_0x84b48c,_0x11ba06;const _0x6bbe52=this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](C[_0xdcc4fb(0x264)]),{unitId:_0x36673c,subUnitId:_0x16eeb6}=Ds(_0x181223),_0x59e164=_0x6bbe52['getWorkbookSelections'](_0x36673c)[_0xdcc4fb(0x3f4)](),_0x1a41be=(_0x32ee7a=(_0xb5b0c3=this[_0xdcc4fb(0x4f8)][_0xdcc4fb(0x1f4)](_0x36673c))==null?void 0x0:_0xb5b0c3[_0xdcc4fb(0x242)]())==null?void 0x0:_0x32ee7a[_0xdcc4fb(0x3b3)]();if(_0x59e164[_0xdcc4fb(0x291)]===0x0||!_0x36673c||!_0x16eeb6)return;const _0x3a502b=[{'id':C[_0xdcc4fb(0x33c)]['id'],'params':{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':a[_0xdcc4fb(0x27d)][_0xdcc4fb(0x343)](_0x59e164)}}],_0xde81ad=this[_0xdcc4fb(0x294)][_0xdcc4fb(0x261)](_0x181223,_0x3a502b);if(!_[_0xdcc4fb(0x3db)](_0xde81ad))throw _0xde81ad[_0xdcc4fb(0x49d)];const _0x2a7783=(_0x11ba06=(_0x84b48c=_0xde81ad[_0xdcc4fb(0x2e8)][0x0])==null?void 0x0:_0x84b48c[_0xdcc4fb(0x3b6)])==null?void 0x0:_0x11ba06[_0xdcc4fb(0x3c4)];Array[_0xdcc4fb(0x33f)](_0x2a7783)&&_0x2a7783[_0xdcc4fb(0x291)]&&this[_0xdcc4fb(0x397)][_0xdcc4fb(0x34d)](a[_0xdcc4fb(0x323)])['executeCommand'](C[_0xdcc4fb(0x33c)]['id'],{'unitId':_0x36673c,'subUnitId':_0x1a41be,'selections':_0x2a7783});}};ge=Os([ye(0x0,a[_0x3b22f(0x492)](a['Injector'])),ye(0x1,_[_0x3b22f(0x378)]),ye(0x2,a[_0x3b22f(0x26b)])],ge);const be=a['createIdentifier'](_0x3b22f(0x30e));var bt=(_0x12c884=>(_0x12c884[_0x12c884['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x3b22f(0x356),_0x12c884[_0x12c884[_0x3b22f(0x2b0)]=0x1]=_0x3b22f(0x2b0),_0x12c884))(bt||{});const et=0x7530,tt='ACTIVE_UNIT_EVENT_CHANNEL';class ys extends a[_0x3b22f(0x4b0)]{constructor(){const _0x54f077=_0x3b22f;super(),d(this,_0x54f077(0x206),a[_0x54f077(0x27d)][_0x54f077(0x409)]()),d(this,_0x54f077(0x2c2),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x54f077(0x566),null),d(this,_0x54f077(0x389),new Map()),d(this,_0x54f077(0x419),new Map()),this['_init']();}['dispose'](){const _0x4b0430=_0x3b22f;super['dispose'](),this['_clearOtherTimers'][_0x4b0430(0x339)]((_0x56f02f,_0x51cfdb)=>this[_0x4b0430(0x4a0)](_0x51cfdb)),this[_0x4b0430(0x566)]&&window['clearInterval'](this[_0x4b0430(0x566)]);}[_0x3b22f(0x568)](_0x5c5825){const _0x2fa287=_0x3b22f;return this['_ensureSubject'](_0x5c5825)[_0x2fa287(0x3de)](v[_0x2fa287(0x5a4)]());}['editingUnit'](_0x273d0d){const _0x5d018a=_0x3b22f;this['_selfUnitIDs'][_0x5d018a(0x45a)]===0x0&&this[_0x5d018a(0x484)](),this['_selfUnitIDs'][_0x5d018a(0x405)](_0x273d0d),this[_0x5d018a(0x267)]({'type':0x0,'memberID':this[_0x5d018a(0x206)],'unitIDs':[_0x273d0d],'isForwarded':!0x1});}['disposeUnit'](_0x2288ab){const _0x47aafc=_0x3b22f;this[_0x47aafc(0x2c2)][_0x47aafc(0x2cc)](_0x2288ab),this['_selfUnitIDs']['size']===0x0&&this[_0x47aafc(0x566)]&&window[_0x47aafc(0x28f)](this[_0x47aafc(0x566)]);}[_0x3b22f(0x341)](){const _0x2578d9=_0x3b22f;this[_0x2578d9(0x283)](a[_0x2578d9(0x526)](v[_0x2578d9(0x2b9)](window,_0x2578d9(0x4c8))[_0x2578d9(0x42c)](_0x1af7d4=>{const _0x11687a=_0x2578d9;if(_0x1af7d4['key']!==tt||!_0x1af7d4[_0x11687a(0x3bc)])return;const _0x221c36=JSON[_0x11687a(0x4f1)](_0x1af7d4[_0x11687a(0x3bc)]);this[_0x11687a(0x1f6)](_0x221c36);}))),window[_0x2578d9(0x4e8)]('unload',()=>this[_0x2578d9(0x267)]({'type':0x1,'memberID':this[_0x2578d9(0x206)],'unitIDs':Array[_0x2578d9(0x1e8)](this[_0x2578d9(0x2c2)])}));}[_0x3b22f(0x1f6)](_0x121a09){const _0x36a55b=_0x3b22f;switch(_0x121a09[_0x36a55b(0x331)]){case 0x0:this[_0x36a55b(0x2c9)](_0x121a09);break;case 0x1:this['_handleLeaveEvent'](_0x121a09);break;case 0x2:this[_0x36a55b(0x390)](_0x121a09);break;}}[_0x3b22f(0x2c9)](_0x230686){const _0x3d718c=_0x3b22f,{unitIDs:_0x562680,memberID:_0x439466,isForwarded:_0x1c868b}=_0x230686;_0x562680[_0x3d718c(0x339)](_0x3dc276=>{const _0x454968=_0x3d718c;if(!_0x1c868b&&this[_0x454968(0x22d)]['has'](_0x3dc276)&&this['_ensureSubject'](_0x3dc276)['next'](0x1),!this[_0x454968(0x22d)]['has'](_0x3dc276)||!this[_0x454968(0x22d)]['get'](_0x3dc276)[_0x454968(0x3e5)](_0x439466)){const _0x1ea330=this[_0x454968(0x22d)]['get'](_0x3dc276)||new Set();_0x1ea330[_0x454968(0x405)](_0x439466),this[_0x454968(0x22d)]['set'](_0x3dc276,_0x1ea330),this[_0x454968(0x47f)](_0x439466);}}),_0x1c868b||this[_0x3d718c(0x267)]({'type':0x0,'memberID':this[_0x3d718c(0x206)],'unitIDs':[...this[_0x3d718c(0x2c2)]],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x5c17bc){const _0x42552b=_0x3b22f;this[_0x42552b(0x4a0)](_0x5c17bc);const _0x356b65=window[_0x42552b(0x576)](()=>{const _0x2996b1=_0x42552b;this['_unitOnClients'][_0x2996b1(0x339)](_0x2cd193=>{const _0x42cd89=_0x2996b1;_0x2cd193[_0x42cd89(0x2cc)](_0x5c17bc);});},et*0x2);this[_0x42552b(0x389)]['set'](_0x5c17bc,_0x356b65);}[_0x3b22f(0x4a0)](_0x57083f){const _0x5f15e0=_0x3b22f;if(this[_0x5f15e0(0x389)]['has'](_0x57083f)){const _0x3c49c6=this[_0x5f15e0(0x389)]['get'](_0x57083f);_0x3c49c6&&window[_0x5f15e0(0x475)](_0x3c49c6),this[_0x5f15e0(0x389)]['set'](_0x57083f,null);}}[_0x3b22f(0x4b1)](_0x1876da){const _0x5b568e=_0x3b22f,{memberID:_0x33ca7f,unitIDs:_0x15c036}=_0x1876da;_0x15c036[_0x5b568e(0x339)](_0x162322=>{const _0x4c5277=_0x5b568e;var _0x37e004;const _0xce3d33=this['_unitOnClients'][_0x4c5277(0x34d)](_0x162322);_0xce3d33&&(_0xce3d33[_0x4c5277(0x2cc)](_0x33ca7f),(_0x37e004=this['_ensureSubject'](_0x162322))==null||_0x37e004[_0x4c5277(0x52d)](_0xce3d33['size']===0x0?0x0:0x1));}),this[_0x5b568e(0x4a0)](_0x33ca7f);}[_0x3b22f(0x390)](_0x3e7dca){this['_scheduleClearOtherTimer'](_0x3e7dca['memberID']);}['_send'](_0x3ba1ee){const _0x5bf9df=_0x3b22f;localStorage[_0x5bf9df(0x307)](tt,JSON[_0x5bf9df(0x56d)](_0x3ba1ee));}[_0x3b22f(0x484)](){const _0x280008=_0x3b22f;this[_0x280008(0x566)]=window[_0x280008(0x507)](()=>{const _0x10f7f4=_0x280008;this[_0x10f7f4(0x267)]({'type':0x2,'memberID':this[_0x10f7f4(0x206)]});},et);}[_0x3b22f(0x26e)](_0x3c0c6f){const _0x466285=_0x3b22f;return this[_0x466285(0x419)][_0x466285(0x3e5)](_0x3c0c6f)||this['_unitStatus'][_0x466285(0x305)](_0x3c0c6f,new v[(_0x466285(0x502))](0x0)),this[_0x466285(0x419)][_0x466285(0x34d)](_0x3c0c6f);}}function Tt(_0x4a20a1){const _0x4850c7=_0x3b22f;let _0x4622f0='';for(const _0x1a189d of _0x4a20a1){const {startOffset:_0x3fdea7,endOffset:_0xec157b,isActive:_0x3af91b}=_0x1a189d;_0x4622f0[_0x4850c7(0x291)]&&(_0x4622f0+=','),_0x4622f0+=_0x3fdea7+':'+_0xec157b+':'+(_0x3af91b?'1':'0');}return _0x4622f0;}function Us(_0x4c095e){const _0x577fa6=_0x3b22f,_0x33c5c2=_0x4c095e[_0x577fa6(0x4d7)](','),_0x52d33f=[];for(const _0x389ab5 of _0x33c5c2){const [_0x510e0b,_0x47aa66,_0x39391d]=_0x389ab5[_0x577fa6(0x4d7)](':');_0x52d33f[_0x577fa6(0x1ed)]({'startOffset':Number(_0x510e0b),'endOffset':Number(_0x47aa66),'collapsed':_0x510e0b===_0x47aa66,'isActive':_0x39391d==='1'});}return _0x52d33f[_0x577fa6(0x301)](_0x29f209=>_0x29f209[_0x577fa6(0x48b)])||(_0x52d33f[0x0][_0x577fa6(0x48b)]=!0x0),_0x52d33f;}class Ye extends a[_0x3b22f(0x398)]{constructor(){const _0x3f396c=_0x3b22f;super(...arguments),d(this,_0x3f396c(0x3fb),new v['BehaviorSubject'](null)),d(this,_0x3f396c(0x45e),this[_0x3f396c(0x3fb)][_0x3f396c(0x56e)]());}['syncEditingCollabCursor'](_0x4a42b6){const _0x364fee=_0x3b22f,{unitID:_0x396427,memberID:_0x3f3417,textRanges:_0x328baa}=_0x4a42b6,_0x225384=Tt(_0x328baa),_0x4489eb={'unitID':_0x396427,'memberID':_0x3f3417,'selection':_0x225384};this[_0x364fee(0x3fb)][_0x364fee(0x52d)](_0x4489eb);}}var Ps=Object[_0x3b22f(0x1ff)],ws=Object[_0x3b22f(0x246)],Ms=(_0x4664e3,_0x2e0164,_0x2a1c1d,_0x1af101)=>{for(var _0x188859=_0x1af101>0x1?void 0x0:_0x1af101?ws(_0x2e0164,_0x2a1c1d):_0x2e0164,_0x57f2db=_0x4664e3['length']-0x1,_0x1b9ee0;_0x57f2db>=0x0;_0x57f2db--)(_0x1b9ee0=_0x4664e3[_0x57f2db])&&(_0x188859=(_0x1af101?_0x1b9ee0(_0x2e0164,_0x2a1c1d,_0x188859):_0x1b9ee0(_0x188859))||_0x188859);return _0x1af101&&_0x188859&&Ps(_0x2e0164,_0x2a1c1d,_0x188859),_0x188859;},st=(_0x8a15c3,_0x24ca50)=>(_0xf22e6a,_0xc56421)=>_0x24ca50(_0xf22e6a,_0xc56421,_0x8a15c3);let me=class{constructor(_0x5615cd,_0x4294f0){const _0x322686=_0x3b22f;this[_0x322686(0x397)]=_0x5615cd,this[_0x322686(0x294)]=_0x4294f0;}[_0x3b22f(0x4fb)](_0x24b640){const _0x6435e6=_0x3b22f;var _0x588f17;const _0x20263e=this[_0x6435e6(0x397)]['get'](V['DocSelectionManagerService']),_0x1a6054=(_0x588f17=_0x20263e[_0x6435e6(0x37b)]())!=null?_0x588f17:[];if(_0x1a6054[_0x6435e6(0x291)]===0x0)return;const _0x5241c1=[{'id':_0x6435e6(0x29f),'params':{'unitId':_0x24b640[_0x6435e6(0x40e)],'actions':null,'textRanges':_0x1a6054}}],_0x2b6893=this[_0x6435e6(0x294)][_0x6435e6(0x261)](_0x24b640,_0x5241c1);if(!_[_0x6435e6(0x3db)](_0x2b6893))throw _0x2b6893[_0x6435e6(0x49d)];const _0x454877=_0x2b6893['m2Prime'][0x0][_0x6435e6(0x3b6)]['textRanges'];Array[_0x6435e6(0x33f)](_0x454877)&&_0x454877['length']&&_0x20263e[_0x6435e6(0x4b8)](_0x454877,!0x1);}};function _0x1d05(){const _0x5ec935=['loadOfflineData','_entities','transformIMECache','_beforeCloseService','_collaborationPaused','toString','ALREADY_EXISTS','collabSubmitChangesetUrl','react','getCurrentUnitForType','history','addEventListener','[PendingState]:\x20received\x20rejection.','AWAITING_WITH_PENDING','NOT_COLLAB','_memberService','touchDependencies','assignAColorForMemberID','INGEST','_initStatusListener','parse','dispose','_registerDependencies','getCollabCursors$','JOINING','Tooltip','DataLoaderController','_instanceService','APPLY_REVISION_CONFILICT','ERROR_EXCEED_SIZE','transformSelections','/collaborator','unit-cache-','useObservable','action','867116ItzxUp','/universer-api/snapshot/','BehaviorSubject','_imageSourceCache','getConfig','error$','[OfflineState]:\x20received\x20rejection.','setInterval','SessionStatus','result','reduce','evenodd','SHOULD_CLOSE_CONN','collaboration_new_changeset','_socket$','defs','IContextService','put','INTERNAL_ERROR','Error\x20on\x20receiving\x20event','_initModules','_executeRemoteChangeset','_clearCollaborationTimeoutTimer','UNDEFINED','isTransformChangesetsSuccess','IUndoRedoService','_handler','_saveCache','USERS_LEAVE','SEND_CHANGESET_TIMEOUT_KEY','onPointerMove$','_labelPosition','_drawTextRange','saveSnapshot','_localCacheService','handleInsertRangeMoveRight','getUnitOnRev','_sendingTimer','toDisposable','debounce','changesets','object','DocIMEInputManagerService','getUnitId','sheetID','next','DependentOn','DesktopCollaborationStatusDisplayController','/block/','_getSnapshotAPIPrefix','toRgbString','concat','getTime','_onRemoteACK','getUndoRedoMutationParamsCache','getSheetBlock','_scheduleCollaborationTimeoutTimer','_createSocket','/-/object/-/batch_allowed','SetWorksheetActivateCommand','_onJoinRoomEvent','resolve','univer-online-status','hasOwnProperty','findNodePositionByCharIndex','COLORS','interceptor','parseProtocolChangeset','pending','toStringTag','_commentService','div','_onRemoteChangeset','_updateURLWithCurrentState','_localStorageService','originalMeta','UniverCollaborationClientPlugin','YUUMI_UNABLE_LOAD_URL','enableLocalCache','entries','url(#on-line-single_clip0_910_349)','_initMergeInterceptor','0\x200\x2017\x2016','_toggleOnline','function','unitId\x20is\x20not\x20found','_getSheetObject','[CollaborationSessionService]','editingUnit','Vector2','sessionStatus','XHRHTTPImplementation','_transformStack','onSendChangeset','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','SnapshotServerOverHTTPService','_updateCollabCursors','startsWith','getCoordByCell','propertyIsEnumerable','UserManagerService','includes','_heartbeatTimer','stopTime','getUnitStatus$','_transformUndoredo','RETRY_CONNECTING_MAX_COUNT','_assignedColors','concatMap','stringify','asObservable','CONNECTOR_DATA_TOO_LARGE','synced','_startCollaboration','CollaborationSession','_scene','SetTextSelectionsOperation','UNIVER_SLIDE','setTimeout','_removeRoom','requireSession','rgba(255,\x20255,\x20255,\x200.01)','roles','map','_anchorDot','ImageUploadStatusType','moveTo','setParam','COMPRESS_MUTATION_APPLY','_cursor','_onRemoteRejected','LocaleService','_loadDoc','saveChangeset','onload','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','mergeOverrideWithDependencies','/-/object/list','registerRefRange','_type','enableOfflineEditing','NodePositionConvertToCursor','_getCtorByUniverType','clipPath','_notificationService','@univerjs/docs-ui','setShapeProps','_transformPreviousActiveRange','_colorAssignService','startColumn','3757869ONEMxK','getMemberID','memberID','_singleActiveUnitService','_telemetryService','_joinRoom','VIEW_MAIN','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','conflict.content','unit','TEXT_RANGE_LAYER_INDEX','ImageSourceType','0\x200\x2016\x2016','_getSaveTimeout','distinctUntilChanged','handleInsertRow','InsertColCommandId','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_render','encodeURIComponent','permissionRejEvent','url','SUBMIT_CHANGESET','IConfigService','HTTPService','_getMergeRange','commentUpdateEvent','_remoteChangesetQueue','MergeInterceptorFactory','getItem','MessageType','submit\x20changeset\x20error!','UPDATE_CURSOR','LIVESHARE_NEW_HOST','forwardRef','take','measureText','612743RJtBQn','univer-online-status-icon','_onMessage','onTransformChange$','roomMembers$','_cursorShapes','_getSendChangesetTimeout','fetchMissingChangesets','?url=','connection\x20error','OffLineSingle','Optional','flatMap','jiqing500','UNIVER_UNKNOWN','image/jpg','isTransformMutationFailure','LICENSE_DISTRO_REJECTED','getImageSourceCache','m1Prime','UNIVER_PROJECT','[CollaborationSessionService]:\x20socket\x20error','online','WorkbookEditablePermission','attrs','c1Prime','getUnitType','_state','column','/role','red300','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','find','drawWith','min','commentUpdate$','off-line-single_clip0_910_343','defIds','#fff','parseChangesetToProtocol','createInstance','_substituteRedoStack','liveShareNewHost','LOCAL_CACHE_INTERVAL_KEY','getTypeOfUnitAdded$','ERROR_IMAGE','_disabled','awaitingChangeset','_initCloseConn','_onConnectionFailed','DEFAULT_FILE_NAME','SheetCollaborationEntity','COMPRESS_MUTATION_SEND','_scheduleSaving','image/bmp','_isPermissionRej','_redoStacks','reverse','listRoles','on-line-single','from','color','append','title','@univerjs/design','push','_commentUpdate$','_collaborationSessionService','height','sessionStatus$','/universer-api/authz','syncEditingCollabCursor','getUnit','save','_handleEvent','retryConnectingInterval','collaboration-session-retry','@univerjs/docs','message$','_timeoutTimer','_drawRectRange','_refRangeService','TOO_MANY_REQUESTS','defineProperty','_updateStatus','INVALID_ARGUMENT','[PendingState]:\x20received\x20acknowledgement.','withCredentials','COMPLETION_FINISHED','objectID','_id','_hovered','/rev/','requestParams','_registerRenderDependencies','colorChannel1','getDeserializedSheetBlock','slice','responseType','unshift','_getRedoStack','AUTHZ_URL_KEY','members','LocalUndoRedoService','_snapshotServerService','_sheetTransformSelectionsService','initWorkbookPermissionChange','WebURLService','_socket','url(#off-line-single_clip0_910_343)','SheetSkeletonManagerService','method','encode','_cachedData','UPDATE_PERMISSION_OBJ','collaboration.closeRoom','_http','post','M0\x200H16V16H0z','_schedule','show','enableSingleActiveInstanceLock','onMissedChangesetFetched','SNAPSHOT_SERVER_URL_KEY','_collaborationTimeoutTimer','getSkeleton','workbook','collabStatus.notCollab','fetchMiss','_unitOnClients','onRemoteAck','ONLINE','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','throttleTime','SNAPSHOT_INVALID_SNAPSHOT','HEARTBEAT','connectInjector','_checkMissing','setAlpha','_incrementRevisionNumber','indexOf','\x20to\x20','@univerjs-pro/collaboration','JOIN','reject','_onConflict','_setupBeforeClosingHandler','UNRECOGNIZED','_sendHeartbeat','[OfflineState]:\x20received\x20changeset.','getActiveSheet','loadSheet','_initUnitPermissionChange','createCollaborator','getOwnPropertyDescriptor','onPointerLeave$','_eventUnsubscribe','clear','onTransformSelections','updateCollaborator','_getScale','2221419nSJKjM','leaveEvent','getTypeOfUnitDisposed$','Unknown\x20user','@univerjs-pro/license','Injector','...','create','getFocusedUnit','_clearRedo','ThresholdInterceptorFactory','handleMoveRange','assign','registerComponent','rxjs','_docTransformSelectionsService','_urlService','range','Subject','_compressMutationService','transformMutationsWithChangeset','replace','_collaborationController','SheetsSelectionsService','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_configService','_send','save\x20fail\x20reason\x20is\x20','_fetchMissChangesets','_name','IUniverInstanceService','SheetPermissionInitController','triggerDblclick','_ensureSubject','transformByState','_httpService','conflict.title','CollaborationSocketService','setWaitCount','b64DecodeUnicode','CHANGESET_REVISION_CONFILICT','_onCombEvent','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','\x20in\x20_schedule.','IBeforeCloseService','onPointerEnter$','popstate','_collabSessionService','Tools','newCsEvent','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','ICollaborationSocketService','_startDocCollabCursor','NodePositionConvertToRectRange','disposeWithMe','fetchThroughInterceptors','_rescheduleHeartbeat','_handleHover','getSheetObject','_roomMembers$','focused$','saveImage','_transformIMECache','isValidRectRange','CommentService','Shape','clearInterval','MSG_FOR_ERROR','length','delay','_config','_transformService','fillText','LOCAL_CACHE_INTERVAL','removeParam','CollaborationSessionService','Rect','_clearScheduledTask','transformChangesets','_getLoginPath','getViewport','[SyncedState]:\x20received\x20rejection.','doc.mutation.rich-text-editing','_listenToOfflineEvent','_onCursorDelete','file','getCurrentUser','textEncoder','socketService','PENDING','Module','UNKNOWN_CODE','getValue','InsertRangeMoveDownCommandId','_color','getUniverSheetInstance','collabStatus.fetchMiss','LICENSE_EXPORT_SIZE_EXCEEDED','onRemoteChangeset','OTHER_CLIENTS_EDITING','HEARTBEAT_INTERVAL_KEY','actions','_ws','subUnitId','EffectRefRangId','resend','translate(.97)','ranges','fromEvent','hide','collaborators','serializeCombRequest','HELLO','IRenderManagerService','session','none','FETCH_MISSING','_selfUnitIDs','objectType','merge','transformMutation','_onConnectionOpen','8ZOkjun','socket$','_handleJoinEvent','_unlockTransition','CollaborationEntity','delete','_clearLocalCache','ISnapshotServerService','_onRecvEvent','userID','OnLineSingle','saveOfflineData','IDLE','ERROR_IMAGE_TYPE','_revisionService','resourceIDs','collaMsg','_context','_snapshotService','COLLAB_WEB_SOCKET_URL','_getDownloadEndpointURL','_removeCollabCursors','onCommandExecuted','COLLAB_SUBMIT_CHANGESET_URL_KEY','_exhaustRemoteChangesetQueue','@univerjs/rpc','dispose$','_decreaseWaiting','IMessageService','LICENSE_IMPORT_SIZE_EXCEEDED','INotificationService','LEAVE','_disableEditing','m2Prime','liveShareOperation','toggleOffline','APPLY_REJECT','complete','incrementRevOfUnit','origin','uploadFileServerUrl','RECV','getSheetBySheetId','fill','transformUndoRedo','_sessions','on-line-single_clip0_910_349','awaiting_with_pending','_getUndoStack','univer-pro.collaboration-client-socket-service','_unitID','getCollabEntity','_transitionLocked','executeCommand','getRelativeToViewportCoord','RemoveRowCommandId','addObject','IPermissionService','some','_createHandler','getMember','_cursors','set','updateCursorEvent','setItem','ILogService','unknown','body','onlineStatus','CONFLICT','getCollabEntity$','univer-pro.collaboration-client.single-active-unit-service','getRangePointData','/object/','_members','mapDocumentTypeToUniverType','FromArray','InsertRangeMoveRightCommandId','visibilitychange','_localeService','Undefined','_pendingMutations','_lockTransition','_initCommandExecutedListener','compose','engine','_messageService','max','/universer-api/stream/file/upload','debug','path','CollaborationController','ICommandService','close$','[OfflineState]:\x20received\x20acknowledgement.','x-univer-host','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','exhaustSavingTask','NEW_CHANGESETS','routeKey','SetDocZoomRatioOperation','useDependency','confirm','current','ws://127.0.0.1:8000/universer-api/comb/connect','_sheetSkeletonManagerService','type','UNIVER_DOC','disableLocalCache','_updateState','_docSyncEditingCollabCursorService','socket\x20close','Rectangle','_session','forEach','_getSignURL','collabWebSocketUrl','SetSelectionsOperation','FileId','/new_changes','isArray','_univerInstanceService','_init','lineTo','deepClone','[CollaborationState]:\x20apply\x20error!','removeMember','every','WebSocketService','/resources','updateMember','getImage','_retryCount','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','get','_clearHeartbeatTimer','AWAITING','currentSkeleton$','_lastPointer','_transformUndoRedoStack','location','pushState','off-line-single','NO_OTHER_CLIENTS_EDITING','onTransformRemoteChangesetByIMECache','init','reconnect','ColorKit','DisposableCollection','_colorIndex','substring','fromCollab','{fileID}','getRenderById','registerBeforeClose','UNKNOWN_CMD','univer-online','json','/universer-api/oidc/authpage','name','SNAPSHOT_URL_KEY','_onUserJoin','_backgroundColor','_setupSubUnitSync','copyFileMeta','update','_uiPartsService','CHANGESET_REJ','conflict','_initEventListeners','updateOfflineData','restore','onSyncEditingCollabCursor','state','endColumn','_renderManagerService','onRemoteRej','ITransformService','gold400','/unit/','getDocRanges','takeUntil','_updateLocalCursor','infoRsp','_toggleOffline','UNAUTHENTICATED','src','backgroundColor','permission.content','@univerjs/network','useRef','status$','joinRsp','BuiltInUIPart','_clearOtherTimers','_onRefRangeChange','AuthzIoHttpService','_applyRemoteChangeset','DeleteRangeMoveLeftCommandId','UniverInstanceType','fillStyle','_handleHeartbeatEvent','useCallback','_candidateSocket','941395XkwyOm','_socketReady','then','handleInsertRangeMoveDown','_injector','RxDisposable','IURLService','_listenToOnlineEvent','/universer-api/comb','_tryReconnect','_scheduleTimestamp','1em','_hideTimer','_initStatusComponent','createSocket','mutations','YUUMI_SUBSCRIPTION_NOT_FOUND','isInternalEditorID','getRoom','USERS_ENTER','PERMISSION_DENIED','rev','_HTTPService','sendChangesetTimeout','hovered','_range','subunit','collabStatus.offline','_saveTaskMap','_stopTelemetryCollaborationNewChangeset','arc','socket\x20open.','getSheetId','\x20-\x20','event$','params','Warning','CommandType','onMouseMove','HTTPRequest','appendMutation','newValue','bottom','subscribeEvent','telemetry\x20info\x20is\x20not\x20initialized','UNIVER_SHEET','icon','_waitCount','handleIRemoveCol','selections','send','closeSession','YUUMI_RATE_OVER_LIMIT','_showConflictNotification','catch','[DataLoaderController]','_clearTimeoutTimer','eventID','createIdentifier','state$','@univerjs/engine-render','with','xlink:href','status','_getAnchorBounding','unsubscribe','SheetCollabCursorShape','POST','_waitForHeartbeatResponse','fetch_missing','_themeService','collaboratorID','isTransformMutationsWithChangesetSuccess','/universer-api/file/{fileID}/sign-url','_startSheetCollabCursor','pipe','unitId','batchAllowed','RegularPolygon','EmptyMutation','addImageSourceCache','currentTheme$','has','round','[CollaborationSession]','onMissingChangesets','serializeRangeWithSheet','OFFLINE','LOGIN_URL_KEY','close','@univerjs/drawing','CollaborationStatus','registerHTTPInterceptor','number','purple300','DeleteRangeMoveUpCommandId','_telemetryInfo','getCurrentSelections','list','onCommentUpdate','url(#$1','@univerjs/core','filter','_socketMessageSubscription','_collabCursorState$','trim','_entityInit$','switchMap','toggleOnline','_sessionStatus$','fromEventSubject','NOT_FOUND','DocCollaborationEntity','_cursorInfo$','add','_replaceFileID','values','csRejEvent','generateRandomId','string','getInterceptPoints','isEditing','revision','unitID','_tryEnsureSocket','_onFetchMissResult','roomInfos','href','_getAPIPrefixPath','isPermissionRej','_transformSelections','FETCH_MISS','combineLatest','signUrlServerUrl','_unitStatus','localeService','_drawAnchor','collab-text-range-','MUTATION','text','setConfig','/allowed','_syncEditingCollabCursorService','getParam','_onUserLeave','RETRY_CONNECTING_MAX_COUNT_KEY','enableAuthServer','_onCursorUpdate','getColor','CHANGESET_ACK','/object','fetching\x20missing\x20changesets\x20from\x20','CollaborationStatusDisplay','subscribe','getCurrentRevOfUnit','shareReplay','debounceTime','APPLY_PERMISSION_DENIED','COMMENT_UPDATE','LIVESHARE_REQUEST_HOST','SNAPSHOT_HAS_BEEN_REMOVED','SYNCED','session.will-retry','joinEvent','_userManagerService','FAIL','c2Prime','collabStatus.syncing','_createInitialState','_submitChangeset','tag','_awaitingChangeset','BASE64','_retryConnectingTimer','_refreshCollabCursors','_updateSubUnitFromURLParams','univerjs-icon\x20univerjs-icon-','_permissionService','_logService','_acknowledgedAwaitingChangeset','_initResize','svg','updatePermissionPoint','Univer','RefRangeService','CollaborationEvent','LICENSE_MAX_UNITS_EXCEEDED','children','collaboration.single-unit.warning','RevisionService','_getAPIPrefix','/universer-api/snapshot','sheetId','4417510qZoeCW','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','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','_shapes','TRANSFORM_CHANGE_OBSERVABLE_TYPE','_docTransformIMECacheService','size','data','_collabCursorController','HEARTBEAT_TIMEOUT_KEY','collabCursorState$','offline','Error','CompressMutationService','LocalCacheService','_sendHeartbeatTimer','_docSkeletonManagerService','pauseCollaboration','_online','ITelemetryService','_hover','_roomMembers','_anchor','_clearUndo','_substituteUndoStack','_textBubble','onStateChange','_throwTelemetryCollaborationNewChangeset','APPLY_NON_SEQUENTIAL_REVISION','transformRemoteChangeset','startRow','@univerjs/sheets','setCurrentUser','clearTimeout','selection','_onLocalMutation','currentColor','runRefRangeMutations','deserializeToCombResponse','LIVESHARE_TERMINATE','_shouldReportTelemetry','failed\x20to\x20apply\x20missed\x20changesets!','getActiveRange','_scheduleClearOtherTimer','univer-online-status-title','width','random','permission.title','_scheduleHeartbeat','24qkdJuj','open$','whenReady','HEARTBEAT_INTERVAL','HEADER_MENU','_change$','isActive','readAsDataURL','RichTextEditingMutation','makeDirty','InsertRowCommandId','_getCurrentRevision','\x0aCurrent:\x20','Inject','180834HJcsna','createElement','DocSkeletonManagerService','awaiting','MoveRangeCommandId','searchParams','displayName','cursorInfo','InsertSheetMutation','@univerjs/telemetry','error','onStarting','code','_removeClearOtherTimer','getAncestorScale','PERMISSION_REJ','ImageIoService','textRanges','onlineStatusTitle','&assign=','DocSelectionManagerService','COLLAB_SUBMIT_CHANGESET_URL','addObjects','cursorInfo$','ThemeService','collab-client.tooltip.reconnect','_updateLocalCache','_syncEditingCollabCursor','rxjs/operators','Disposable','_handleLeaveEvent','IRemoteInstanceService','black','_replayCachedMutations','registerRenderModule','_undoRedoService','HEARTBEAT_TIMEOUT','replaceTextRanges','_commandService','UnitSnapshot','isTransformMutationsWithChangesetFailure','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','UnitEmbedded','roomMembers','HttpImport','/fetchmissing?from=','baseRev','JSONX','pluginName','registerOnClose','row','IUIPartsService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','storage','collab-text-anchor-','_event$','urlChange$','_draw','apply','_getUploadFileURL','prototype','call','allowed','_initRequestHeader','onReady','cmd','_status$','_state$','split','getMergeData','top','_queuedRemoteChangesets','idSuffix','sheets'];_0x1d05=function(){return _0x5ec935;};return _0x1d05();}me=Ms([st(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),st(0x1,_[_0x3b22f(0x378)])],me);const Ns=new Set([C[_0x3b22f(0x49b)]['id']]);function it(_0x25696a,_0x595084,_0x434828,_0x3836e6,_0x49bc5c){const _0x4b8579=_0x3b22f;var _0x5aab71,_0x5bfbc6,_0x40a952,_0xe5719;const _0x3cb025=[];for(const _0x15a786 of _0x25696a)if(Ns[_0x4b8579(0x3e5)](_0x15a786['id'])){if(_0x3cb025[_0x4b8579(0x291)]>0x0)break;_0x3cb025[_0x4b8579(0x1ed)](_0x15a786);break;}else _0x3cb025[_0x4b8579(0x1ed)](_0x15a786);const _0x303fe7=(_0x5bfbc6=(_0x5aab71=_0x49bc5c['getCurrentUser']())==null?void 0x0:_0x5aab71[_0x4b8579(0x2d0)])!=null?_0x5bfbc6:_0x4b8579(0x309),_0x427a5c=(_0xe5719=(_0x40a952=_0x49bc5c[_0x4b8579(0x2a3)]())==null?void 0x0:_0x40a952[_0x4b8579(0x598)])!=null?_0xe5719:_0x4b8579(0x309);return{'changeset':{'unitID':_0x595084,'type':_[_0x4b8579(0x312)](_0x434828[_0x4b8579(0x5d5)](_0x595084)),'baseRev':_0x3836e6[_0x4b8579(0x42d)](_0x595084),'revision':0x0,'userID':_0x303fe7,'memberID':_0x427a5c,'mutations':_0x3cb025},'pendingMutations':_0x25696a[_0x4b8579(0x20d)](_0x3cb025['length'])};}function As(_0x57ca4d,_0x4417eb,_0xdea9b4,_0x4f540d,_0x4647e6){const _0x29ddfe=_0x3b22f;var _0x4c6275,_0x32a64a,_0x461819,_0x4f00e2;const _0x5676a6=[_0x57ca4d[_0x29ddfe(0x50a)]((_0x2f6609,_0x24fd71)=>{const _0x557a04=_0x29ddfe;var _0x3cfe69;const {id:_0x4eb605}=_0x2f6609,{id:_0x2c478e,type:_0x17e491}=_0x24fd71,_0x14d5ea=(_0x3cfe69=_0x2f6609['params'])!=null?_0x3cfe69:{'actions':null},_0x27f32c=_0x24fd71['params'];if(_0x4eb605&&_0x4eb605!==_0x2c478e)throw new Error(_0x557a04(0x455)+_0x4eb605+_0x557a04(0x3b4)+_0x2c478e+'.');return{..._0x2f6609,'id':_0x2c478e,'type':_0x17e491,'params':{'unitId':_0x27f32c[_0x557a04(0x3df)],'textRanges':_0x27f32c[_0x557a04(0x4a4)],'actions':a[_0x557a04(0x4c2)][_0x557a04(0x31b)](_0x14d5ea['actions'],_0x27f32c['actions'])}};},{})],_0x475966=(_0x32a64a=(_0x4c6275=_0x4647e6['getCurrentUser']())==null?void 0x0:_0x4c6275['userID'])!=null?_0x32a64a:_0x29ddfe(0x309),_0x1b4036=(_0x4f00e2=(_0x461819=_0x4647e6[_0x29ddfe(0x2a3)]())==null?void 0x0:_0x461819[_0x29ddfe(0x598)])!=null?_0x4f00e2:_0x29ddfe(0x309);return{'changeset':{'unitID':_0x4417eb,'type':_[_0x29ddfe(0x312)](_0xdea9b4[_0x29ddfe(0x5d5)](_0x4417eb)),'baseRev':_0x4f540d[_0x29ddfe(0x42d)](_0x4417eb),'revision':0x0,'userID':_0x475966,'memberID':_0x1b4036,'mutations':_0x5676a6},'pendingMutations':[]};}const Ls={'id':C[_0x3b22f(0x3e2)]['id'],'type':a[_0x3b22f(0x3b8)][_0x3b22f(0x41d)],'params':{}};var js=Object['defineProperty'],$s=Object['getOwnPropertyDescriptor'],z=(_0xd3d7d8,_0x5a4267,_0xf6b739,_0x27ffdc)=>{const _0x2d74ff=_0x3b22f;for(var _0x3f98b4=_0x27ffdc>0x1?void 0x0:_0x27ffdc?$s(_0x5a4267,_0xf6b739):_0x5a4267,_0x17fd46=_0xd3d7d8[_0x2d74ff(0x291)]-0x1,_0x73812;_0x17fd46>=0x0;_0x17fd46--)(_0x73812=_0xd3d7d8[_0x17fd46])&&(_0x3f98b4=(_0x27ffdc?_0x73812(_0x5a4267,_0xf6b739,_0x3f98b4):_0x73812(_0x3f98b4))||_0x3f98b4);return _0x27ffdc&&_0x3f98b4&&js(_0x5a4267,_0xf6b739,_0x3f98b4),_0x3f98b4;},g=(_0x166fce,_0x139423)=>(_0x24e020,_0x37a106)=>_0x139423(_0x24e020,_0x37a106,_0x166fce),y=(_0xd344dc=>(_0xd344dc['NOT_COLLAB']='not_collab',_0xd344dc['SYNCED']=_0x3b22f(0x570),_0xd344dc['PENDING']='pending',_0xd344dc['AWAITING']=_0x3b22f(0x496),_0xd344dc[_0x3b22f(0x4ea)]=_0x3b22f(0x2f6),_0xd344dc[_0x3b22f(0x416)]=_0x3b22f(0x3d8),_0xd344dc[_0x3b22f(0x30c)]=_0x3b22f(0x36f),_0xd344dc[_0x3b22f(0x3ea)]='offline',_0xd344dc))(y||{});class J{constructor(_0x13c117,_0x5991a6,_0x4767e4,_0x11be97,_0x20981b,_0x466441,_0x58c5f4,_0x395477,_0x347aee){const _0x1b1722=_0x3b22f;d(this,_0x1b1722(0x43e),null),d(this,'_pendingMutations',[]),(this[_0x1b1722(0x40e)]=_0x13c117,this[_0x1b1722(0x331)]=_0x5991a6,this[_0x1b1722(0x51a)]=_0x20981b,this['_commandService']=_0x466441,this[_0x1b1722(0x4b6)]=_0x58c5f4,this[_0x1b1722(0x2d5)]=_0x395477,this[_0x1b1722(0x522)]=_0x347aee,this[_0x1b1722(0x43e)]=_0x4767e4,this[_0x1b1722(0x318)]=_0x11be97);}['_checkMissing'](_0x476e48){const _0x47e19f=_0x3b22f,_0x55fc4d=this['_revisionService'][_0x47e19f(0x42d)](this[_0x47e19f(0x40e)]);return _0x476e48['revision']>_0x55fc4d+0x1?(this[_0x47e19f(0x51a)]['onMissingChangesets']({'from':_0x55fc4d,'to':_0x476e48[_0x47e19f(0x40d)]-0x1}),!0x0):!0x1;}[_0x3b22f(0x569)](_0x144fa8){const _0x3a7d36=_0x3b22f;this['_undoRedoService'][_0x3a7d36(0x2f3)](this[_0x3a7d36(0x40e)],_0x144fa8);}[_0x3b22f(0x415)](_0x55ada7){const _0xdbdc3b=_0x3b22f;var _0x363c87,_0x5393db;(_0x5393db=(_0x363c87=this['_handler'])[_0xdbdc3b(0x24a)])==null||_0x5393db[_0xdbdc3b(0x4d0)](_0x363c87,_0x55ada7);}[_0x3b22f(0x28b)](_0x6308dc){var _0x15206b,_0x10b8d6;return(_0x10b8d6=(_0x15206b=this['_handler'])['onTransformIME'])==null?void 0x0:_0x10b8d6['call'](_0x15206b,_0x6308dc);}['_transformRemoteChangesetByIMECache'](_0x490e36){const _0x4cfc0d=_0x3b22f;var _0x19139d,_0x229305,_0x3b1f9f;return(_0x3b1f9f=(_0x229305=(_0x19139d=this[_0x4cfc0d(0x51a)])[_0x4cfc0d(0x357)])==null?void 0x0:_0x229305[_0x4cfc0d(0x4d0)](_0x19139d,_0x490e36))!=null?_0x3b1f9f:_0x490e36;}[_0x3b22f(0x4ae)](_0x1cea3d){const _0x18635d=_0x3b22f;var _0x263b3e,_0x60ad9b;if(this[_0x18635d(0x331)]===j['UNIVER_DOC']){const {unitID:_0x832911,mutations:_0x6f515b,memberID:_0x15d86f}=_0x1cea3d,_0x204c0a=_0x6f515b[0x0]['params'][_0x18635d(0x4a4)];Array[_0x18635d(0x33f)](_0x204c0a)&&_0x204c0a['length']>0x0&&((_0x60ad9b=(_0x263b3e=this[_0x18635d(0x51a)])['onSyncEditingCollabCursor'])==null||_0x60ad9b['call'](_0x263b3e,{'unitID':_0x832911,'memberID':_0x15d86f,'textRanges':_0x204c0a}));}}[_0x3b22f(0x4ad)](){const _0x2d131e=_0x3b22f;this['_localCacheService'][_0x2d131e(0x371)](this['unitID'],this[_0x2d131e(0x331)],this['_awaitingChangeset'],this[_0x2d131e(0x318)]);}['_getCurrentRevision'](){const _0x2def71=_0x3b22f;return this[_0x2def71(0x2d5)][_0x2def71(0x42d)](this['unitID']);}[_0x3b22f(0x237)](){const _0x138ecc=_0x3b22f;this[_0x138ecc(0x2d5)][_0x138ecc(0x2ed)](this[_0x138ecc(0x40e)]);}[_0x3b22f(0x515)](_0x3ca554){const _0x3e49a3=_0x3b22f;var _0x1b4f1f;const _0x464a26=this['_transformRemoteChangesetByIMECache'](_0x3ca554),_0x462edb=a['sequenceExecute'](_0x464a26[_0x3e49a3(0x3a2)],this[_0x3e49a3(0x4b9)],{'fromCollab':!0x0});if(!_0x462edb[_0x3e49a3(0x509)])throw _0x462edb[_0x3e49a3(0x49d)]instanceof Error?_0x462edb['error']:new Error((_0x1b4f1f=_0x462edb[_0x3e49a3(0x49d)])!=null?_0x1b4f1f:_0x3e49a3(0x344));this[_0x3e49a3(0x28b)](_0x464a26),this['_transformUndoredo'](_0x3ca554),this[_0x3e49a3(0x415)](_0x464a26),this['_syncEditingCollabCursor'](_0x464a26),this[_0x3e49a3(0x237)]();}}let se=class extends J{constructor(_0x2d9ca7,_0x120dc5,_0xdffedc,_0x29b7aa,_0x35a4f1,_0x52f2e8,_0x15817d,_0x55be91,_0x5b34da,_0x530c1e){const _0x47de9=_0x3b22f;super(_0x2d9ca7,_0x120dc5,null,[],_0xdffedc,_0x55be91,_0x15817d,_0x29b7aa,_0x35a4f1),d(this,_0x47de9(0x3d2),_0x47de9(0x570)),(this['_injector']=_0x52f2e8,this[_0x47de9(0x445)]=_0x5b34da,this['_transformService']=_0x530c1e);}[_0x3b22f(0x3bb)](_0x1a6594){const _0x45adfb=_0x3b22f,_0xf97f2c=this[_0x45adfb(0x397)][_0x45adfb(0x5e4)](x,this[_0x45adfb(0x40e)],this['type'],[_0x1a6594],this[_0x45adfb(0x51a)]);return _0xf97f2c[_0x45adfb(0x223)](),_0xf97f2c[_0x45adfb(0x4ad)](),_0xf97f2c;}[_0x3b22f(0x2af)](_0x3725ce){const _0xd5e7fa=_0x3b22f;if(this[_0xd5e7fa(0x235)](_0x3725ce))return this[_0xd5e7fa(0x397)][_0xd5e7fa(0x5e4)](H,this[_0xd5e7fa(0x40e)],this[_0xd5e7fa(0x331)],null,[],null,[_0x3725ce],this[_0xd5e7fa(0x51a)]);try{const _0x2ee259=this['_transformService'][_0xd5e7fa(0x261)](_0x3725ce,[Ls]);if(_[_0xd5e7fa(0x3db)](_0x2ee259)){const {c1Prime:_0x279504}=_0x2ee259;return this['_executeRemoteChangeset'](_0x279504),this;}throw _0x2ee259[_0xd5e7fa(0x49d)];}catch(_0x469d52){return this['_logService'][_0xd5e7fa(0x49d)](_0x469d52),this[_0xd5e7fa(0x23d)](!0x1);}}[_0x3b22f(0x23d)](_0x290d22){const _0x46f18e=_0x3b22f;return this['_injector'][_0x46f18e(0x5e4)](F,this[_0x46f18e(0x40e)],this['type'],null,[],this[_0x46f18e(0x51a)],_0x290d22);}[_0x3b22f(0x22e)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3b22f(0x377)](){const _0x3dec29=_0x3b22f;throw new Error(_0x3dec29(0x29e));}[_0x3b22f(0x2ea)](){const _0x2b6617=_0x3b22f;return this[_0x2b6617(0x397)]['createInstance'](G,this[_0x2b6617(0x40e)],this[_0x2b6617(0x331)],null,[],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x3da45c=_0x3b22f;throw new Error(_0x3da45c(0x327));}[_0x3b22f(0x22c)](){const _0x3da272=_0x3b22f,_0x270951=this[_0x3da272(0x2d5)][_0x3da272(0x42d)](this[_0x3da272(0x40e)]);return this[_0x3da272(0x51a)][_0x3da272(0x3e8)]({'from':_0x270951,'to':0x0}),this[_0x3da272(0x397)][_0x3da272(0x5e4)](H,this[_0x3da272(0x40e)],this[_0x3da272(0x331)],null,[],null,[],this[_0x3da272(0x51a)]);}};se=z([g(0x3,a['Inject'](_[_0x3b22f(0x450)])),g(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x519)]),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a['ILogService']),g(0x9,_['ITransformService'])],se);let x=class extends J{constructor(_0x43b37d,_0x5e3230,_0x1e9bd4,_0x42a490,_0x51afa1,_0xb01cfc,_0x49c0b6,_0x15bf12,_0x8aa958,_0x4cca81,_0x8d6bb,_0x51917c,_0x39bf13,_0x4314a6){const _0x1dd224=_0x3b22f;super(_0x43b37d,_0x5e3230,null,_0x1e9bd4,_0x42a490,_0x4cca81,_0x4314a6,_0xb01cfc,_0x49c0b6),d(this,'status',_0x1dd224(0x544)),d(this,_0x1dd224(0x39d),null),d(this,'_sendingTimer',null),(this['_injector']=_0x51afa1,this['_memberService']=_0x15bf12,this['_logService']=_0x8aa958,this['_configService']=_0x8d6bb,this['_transformService']=_0x51917c,this[_0x1dd224(0x340)]=_0x39bf13);}[_0x3b22f(0x3bb)](_0x27e10a){const _0xa1b5b4=_0x3b22f;return this[_0xa1b5b4(0x318)]['push'](_0x27e10a),this[_0xa1b5b4(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x556e93){const _0x19517b=_0x3b22f;if(this[_0x19517b(0x235)](_0x556e93))return this['_clearScheduledTask'](),this[_0x19517b(0x397)][_0x19517b(0x5e4)](H,this['unitID'],this[_0x19517b(0x331)],null,this[_0x19517b(0x318)],null,[_0x556e93],this['_handler']);try{const _0x1b5be7=this[_0x19517b(0x294)]['transformMutationsWithChangeset'](_0x556e93,this[_0x19517b(0x318)]);if(_[_0x19517b(0x3db)](_0x1b5be7)){const {c1Prime:_0x3ce0a1,m2Prime:_0x1d409b}=_0x1b5be7;this['_executeRemoteChangeset'](_0x3ce0a1);const _0x3cc821=this[_0x19517b(0x397)][_0x19517b(0x5e4)](x,this['unitID'],this[_0x19517b(0x331)],_0x1d409b,this[_0x19517b(0x51a)]);return this[_0x19517b(0x29a)](),_0x3cc821['_schedule'](this[_0x19517b(0x39d)]?Math[_0x19517b(0x31e)](0x0,new Date()['getTime']()-this[_0x19517b(0x39d)]):this[_0x19517b(0x5c1)]()),_0x3cc821;}throw _0x1b5be7[_0x19517b(0x49d)];}catch(_0x186e81){return this[_0x19517b(0x445)]['error'](_0x186e81),this[_0x19517b(0x23d)](!0x1);}}[_0x3b22f(0x22e)](){const _0x40b0e7=_0x3b22f;throw new Error(_0x40b0e7(0x202));}['onRemoteRej'](){const _0x321ffb=_0x3b22f;throw new Error(_0x321ffb(0x4e9));}[_0x3b22f(0x2ea)](){const _0x2cbf8c=_0x3b22f;return this['_clearScheduledTask'](),this[_0x2cbf8c(0x397)][_0x2cbf8c(0x5e4)](G,this['unitID'],this[_0x2cbf8c(0x331)],null,this[_0x2cbf8c(0x318)],this[_0x2cbf8c(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x223)](_0x5c075f){const _0x28c955=_0x3b22f,_0x4b56e6=_0x5c075f!=null?_0x5c075f:this[_0x28c955(0x5c1)]();this[_0x28c955(0x39d)]=new Date()[_0x28c955(0x534)](),this[_0x28c955(0x525)]=window[_0x28c955(0x576)](()=>{const _0x53af03=_0x28c955;this['_clearScheduledTask']();let _0x27ebdd=null;switch(this[_0x53af03(0x331)]){case j[_0x53af03(0x3c0)]:{_0x27ebdd=it(this[_0x53af03(0x318)],this['unitID'],this['_univerInstanceService'],this[_0x53af03(0x2d5)],this['_memberService']);break;}case j['UNIVER_DOC']:{this['_pendingMutations'][_0x53af03(0x346)](_0x2c9219=>_0x2c9219['id']===V['RichTextEditingMutation']['id'])?_0x27ebdd=As(this['_pendingMutations'],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]):_0x27ebdd=it(this[_0x53af03(0x318)],this[_0x53af03(0x40e)],this[_0x53af03(0x340)],this[_0x53af03(0x2d5)],this[_0x53af03(0x4ec)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x53af03(0x331)]+_0x53af03(0x278));}const {changeset:_0x247111,pendingMutations:_0x4a2163}=_0x27ebdd;this[_0x53af03(0x51a)]['onSendChangeset'](_0x247111);const _0x15a48e=_0x4a2163['length']?this[_0x53af03(0x397)]['createInstance'](k,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,_0x4a2163,this[_0x53af03(0x51a)]):this[_0x53af03(0x397)]['createInstance'](W,this[_0x53af03(0x40e)],this[_0x53af03(0x331)],_0x247111,this[_0x53af03(0x51a)]);_0x15a48e[_0x53af03(0x4ad)](),this[_0x53af03(0x51a)][_0x53af03(0x46e)](this,_0x15a48e);},_0x4b56e6);}['_getSendChangesetTimeout'](){const _0x5018ed=_0x3b22f;var _0x431666;const _0x3e3ba4=this[_0x5018ed(0x266)][_0x5018ed(0x504)](A);return(_0x431666=_0x3e3ba4==null?void 0x0:_0x3e3ba4[_0x5018ed(0x3aa)])!=null?_0x431666:Kt;}['resend'](){throw new Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x5b78f6=_0x3b22f;this[_0x5b78f6(0x525)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x3b22f(0x23d)](_0x79f4cd){const _0x222335=_0x3b22f;return this[_0x222335(0x29a)](),this[_0x222335(0x397)][_0x222335(0x5e4)](F,this[_0x222335(0x40e)],this['type'],null,this[_0x222335(0x318)],this[_0x222335(0x51a)],_0x79f4cd);}};x=z([g(0x4,a['Inject'](a[_0x3b22f(0x252)])),g(0x5,a['Inject'](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports['LocalCacheService'])),g(0x7,a[_0x3b22f(0x492)](q)),g(0x8,a[_0x3b22f(0x308)]),g(0x9,a[_0x3b22f(0x323)]),g(0xa,a[_0x3b22f(0x5ad)]),g(0xb,_['ITransformService']),g(0xc,a[_0x3b22f(0x26b)]),g(0xd,a[_0x3b22f(0x519)])],x);let W=class extends J{constructor(_0x17c108,_0x3438d4,_0x288115,_0x245dd3,_0x37c6df,_0x382836,_0x4f469b,_0x2466d3,_0x33066c,_0x4f1a23,_0x5be437){const _0xe75393=_0x3b22f;super(_0x17c108,_0x3438d4,_0x288115,[],_0x245dd3,_0x2466d3,_0x5be437,_0x382836,_0x4f469b),d(this,_0xe75393(0x3d2),_0xe75393(0x496)),(this[_0xe75393(0x397)]=_0x37c6df,this['_logService']=_0x33066c,this['_transformService']=_0x4f1a23);}['appendMutation'](_0x5d7270){const _0x4d0a65=_0x3b22f,_0x10918e=this[_0x4d0a65(0x397)][_0x4d0a65(0x5e4)](k,this['unitID'],this['type'],this[_0x4d0a65(0x43e)],[_0x5d7270],this[_0x4d0a65(0x51a)]);return _0x10918e['_updateLocalCache'](),_0x10918e;}['onRemoteChangeset'](_0xe3426f){const _0x1fb06c=_0x3b22f;if(this['_checkMissing'](_0xe3426f))return this[_0x1fb06c(0x397)][_0x1fb06c(0x5e4)](H,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],this[_0x1fb06c(0x43e)],[],null,[_0xe3426f],this[_0x1fb06c(0x51a)]);try{const _0xecb6e9=this[_0x1fb06c(0x294)][_0x1fb06c(0x29b)]([_0xe3426f],[this[_0x1fb06c(0x43e)]],!0x1);if(_[_0x1fb06c(0x518)](_0xecb6e9)){const {c1Prime:_0x3634cd,c2Prime:_0x421ce7}=_0xecb6e9;this[_0x1fb06c(0x515)](_0x3634cd[0x0]),_0x421ce7[0x0][_0x1fb06c(0x4c1)]=this[_0x1fb06c(0x490)]();const _0x46556c=this['_injector']['createInstance'](W,this[_0x1fb06c(0x40e)],this[_0x1fb06c(0x331)],_0x421ce7[0x0],this[_0x1fb06c(0x51a)]);return _0x46556c[_0x1fb06c(0x4ad)](),_0x46556c;}return this[_0x1fb06c(0x23d)](!0x1);}catch(_0x38101b){return this[_0x1fb06c(0x445)][_0x1fb06c(0x49d)](_0x38101b),this[_0x1fb06c(0x23d)](!0x1);}}['onRemoteAck'](_0x259296){const _0x519d1c=_0x3b22f,_0x46d085=this[_0x519d1c(0x2d5)]['getCurrentRevOfUnit'](this[_0x519d1c(0x40e)]);if(_0x259296[_0x519d1c(0x40d)]<_0x46d085-0x1)return this;if(this[_0x519d1c(0x235)](_0x259296))return this['_injector'][_0x519d1c(0x5e4)](H,this['unitID'],this[_0x519d1c(0x331)],null,[],this[_0x519d1c(0x43e)],[],this[_0x519d1c(0x51a)]);this[_0x519d1c(0x237)]();const _0x1a11ce=this['_injector'][_0x519d1c(0x5e4)](se,this['unitID'],this['type'],this[_0x519d1c(0x51a)]);return _0x1a11ce[_0x519d1c(0x4ad)](),_0x1a11ce;}['onRemoteRej'](_0x5b711a){const _0x2ec05e=_0x3b22f;return this[_0x2ec05e(0x23d)](!!(_0x5b711a!=null&&_0x5b711a['isPermissionRej']));}['toggleOffline'](){const _0x526254=_0x3b22f;return this[_0x526254(0x397)][_0x526254(0x5e4)](G,this[_0x526254(0x40e)],this[_0x526254(0x331)],this[_0x526254(0x43e)],[],this[_0x526254(0x51a)]);}[_0x3b22f(0x3ff)](){return this;}['resend'](){const _0x30d5ed=_0x3b22f;this['_handler'][_0x30d5ed(0x55d)](this[_0x30d5ed(0x43e)]);}['_onConflict'](_0x5b100f){const _0x526352=_0x3b22f;return this['_injector'][_0x526352(0x5e4)](F,this['unitID'],this['type'],this[_0x526352(0x43e)],[],this[_0x526352(0x51a)],_0x5b100f);}};W=z([g(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x5,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x6,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x308)]),g(0x9,_[_0x3b22f(0x378)]),g(0xa,a[_0x3b22f(0x519)])],W);let k=class extends J{constructor(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x499f13,_0x3059f4,_0x1fcb43,_0x45e0ac,_0x2913c1,_0xa04f29,_0x172417){const _0x134223=_0x3b22f;super(_0x2a525f,_0x5a0d4a,_0x2ecec6,_0x421402,_0xa0f3f6,_0x45e0ac,_0x172417,_0x3059f4,_0x1fcb43),d(this,_0x134223(0x3d2),_0x134223(0x2f6)),(this[_0x134223(0x397)]=_0x499f13,this['_logService']=_0x2913c1,this[_0x134223(0x294)]=_0xa04f29);}['appendMutation'](_0x2f60e3){const _0x368216=_0x3b22f;return this['_pendingMutations'][_0x368216(0x1ed)](_0x2f60e3),this;}[_0x3b22f(0x2af)](_0x531480){const _0x481f18=_0x3b22f;if(this[_0x481f18(0x235)](_0x531480))return this[_0x481f18(0x397)]['createInstance'](H,this[_0x481f18(0x40e)],this['type'],this[_0x481f18(0x43e)],this[_0x481f18(0x318)],null,[_0x531480],this[_0x481f18(0x51a)]);try{const _0x4b13ea=this[_0x481f18(0x294)][_0x481f18(0x29b)]([_0x531480],[this[_0x481f18(0x43e)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x4b13ea)){const {c1Prime:_0x5178da,c2Prime:_0x157aa2}=_0x4b13ea,_0x4f63c6=this[_0x481f18(0x294)][_0x481f18(0x261)](_0x5178da[0x0],this['_pendingMutations']);if(_[_0x481f18(0x3db)](_0x4f63c6)){const {c1Prime:_0xe4f1fd,m2Prime:_0x10dc68}=_0x4f63c6;return this['_executeRemoteChangeset'](_0xe4f1fd),_0x157aa2[0x0][_0x481f18(0x4c1)]=this[_0x481f18(0x490)](),this['_injector']['createInstance'](k,this[_0x481f18(0x40e)],this['type'],_0x157aa2[0x0],_0x10dc68,this['_handler']);}throw _0x4f63c6[_0x481f18(0x49d)];}throw _0x4b13ea[_0x481f18(0x49d)];}catch(_0x515589){return this[_0x481f18(0x445)][_0x481f18(0x49d)](_0x515589),this[_0x481f18(0x23d)](!0x1);}}[_0x3b22f(0x22e)](_0x39188b){const _0x3d719=_0x3b22f;if(this[_0x3d719(0x235)](_0x39188b))return this[_0x3d719(0x397)][_0x3d719(0x5e4)](H,this[_0x3d719(0x40e)],this['type'],null,this[_0x3d719(0x318)],this[_0x3d719(0x43e)],[],this[_0x3d719(0x51a)]);this[_0x3d719(0x237)]();const _0xf9ed1=this[_0x3d719(0x397)][_0x3d719(0x5e4)](x,this[_0x3d719(0x40e)],this['type'],this[_0x3d719(0x318)],this[_0x3d719(0x51a)]);return _0xf9ed1['_schedule'](),_0xf9ed1[_0x3d719(0x4ad)](),_0xf9ed1;}['onRemoteRej'](_0x425b42){const _0x40165b=_0x3b22f;return this[_0x40165b(0x23d)](!!(_0x425b42!=null&&_0x425b42['isPermissionRej']));}[_0x3b22f(0x2ea)](){const _0x57dc10=_0x3b22f;return this['_injector']['createInstance'](G,this[_0x57dc10(0x40e)],this[_0x57dc10(0x331)],this[_0x57dc10(0x43e)],this[_0x57dc10(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}[_0x3b22f(0x2b6)](){const _0x552a80=_0x3b22f;this[_0x552a80(0x51a)][_0x552a80(0x55d)](this[_0x552a80(0x43e)]);}[_0x3b22f(0x23d)](_0x2f419d){const _0x52494c=_0x3b22f;return this[_0x52494c(0x397)][_0x52494c(0x5e4)](F,this[_0x52494c(0x40e)],this['type'],null,this[_0x52494c(0x318)],this[_0x52494c(0x51a)],_0x2f419d);}};k=z([g(0x5,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x308)]),g(0xa,_[_0x3b22f(0x378)]),g(0xb,a[_0x3b22f(0x519)])],k);let F=class extends J{constructor(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x3bcc04=!0x1,_0x311f1a,_0x277556,_0x350fa5,_0x50273f,_0x2924e3,_0x1b511a,_0x1f9a5b){const _0xe18a4b=_0x3b22f;super(_0xb28f6a,_0x2247aa,_0x36cdb6,_0x299f6d,_0xd9bfe5,_0x277556,_0x350fa5,_0x2924e3,_0x50273f),d(this,_0xe18a4b(0x3d2),_0xe18a4b(0x36f)),(this[_0xe18a4b(0x1e3)]=_0x3bcc04,this[_0xe18a4b(0x444)]=_0x311f1a,this[_0xe18a4b(0x316)]=_0x1b511a,this[_0xe18a4b(0x590)]=_0x1f9a5b,this[_0xe18a4b(0x3c8)](),this['_clearLocalCache'](),this['_disableEditing']());}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x3b22f(0x22e)](){return this;}[_0x3b22f(0x377)](){return this;}[_0x3b22f(0x2ea)](){return this;}['toggleOnline'](){return this;}[_0x3b22f(0x2b6)](){const _0x18e8a6=_0x3b22f;throw new Error(_0x18e8a6(0x277));}[_0x3b22f(0x2cd)](){const _0x4d4a23=_0x3b22f;this['_localCacheService'][_0x4d4a23(0x371)](this['unitID'],this[_0x4d4a23(0x331)],null,[]);}[_0x3b22f(0x3c8)](){const _0x4ee0c6=_0x3b22f;this[_0x4ee0c6(0x1e3)]?this[_0x4ee0c6(0x590)][_0x4ee0c6(0x224)]({'title':this['_localeService']['t'](_0x4ee0c6(0x483)),'content':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x383)),'type':'error','duration':0x0}):this['_notificationService']['show']({'title':this[_0x4ee0c6(0x316)]['t'](_0x4ee0c6(0x271)),'content':this['_localeService']['t'](_0x4ee0c6(0x59e)),'type':_0x4ee0c6(0x49d),'duration':0x0});}[_0x3b22f(0x2e7)](){const _0x12c4e7=_0x3b22f;this['_permissionService'][_0x12c4e7(0x449)](new C[(_0x12c4e7(0x5d2))](this[_0x12c4e7(0x40e)])['id'],!0x1);}};F=z([g(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x300)])),g(0x7,a[_0x3b22f(0x323)]),g(0x8,a[_0x3b22f(0x519)]),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0xb,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),g(0xc,N[_0x3b22f(0x2e5)])],F);let G=class extends J{constructor(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x1cc8e8,_0x192cb0,_0xa1f126,_0x3f97fc,_0x531033){const _0x3d6138=_0x3b22f;super(_0x17e8fe,_0x5e720b,_0x206b4c,_0x19b8ce,_0x278137,_0x3f97fc,_0x531033,_0x192cb0,_0xa1f126),d(this,_0x3d6138(0x3d2),_0x3d6138(0x45f)),this[_0x3d6138(0x397)]=_0x1cc8e8;}[_0x3b22f(0x3bb)](_0x226807){const _0x2c3411=_0x3b22f;return this['_pendingMutations'][_0x2c3411(0x1ed)](_0x226807),this[_0x2c3411(0x4ad)](),this;}[_0x3b22f(0x2af)](_0x3bd28d){const _0x19dcb1=_0x3b22f;throw new Error(_0x19dcb1(0x241));}[_0x3b22f(0x22e)](){const _0x4e9009=_0x3b22f;throw new Error(_0x4e9009(0x325));}[_0x3b22f(0x377)](){const _0x4ed715=_0x3b22f;throw new Error(_0x4ed715(0x506));}['toggleOffline'](){return this;}[_0x3b22f(0x3ff)](){const _0x5f0faa=_0x3b22f,{_injector:_0x5902e4,_pendingMutations:_0x295786,_awaitingChangeset:_0xf5a5ce,unitID:_0x4b2638,_handler:_0x75b81b,type:_0x3fa9d0}=this,_0x1c4b23=Rt(_0x5902e4,_0x4b2638,_0x3fa9d0,_0xf5a5ce,_0x295786,_0x75b81b);return _0x1c4b23 instanceof x?_0x1c4b23['_schedule']():(_0x1c4b23 instanceof k||_0x1c4b23 instanceof W)&&_0x1c4b23[_0x5f0faa(0x2b6)](),_0x1c4b23;}['resend'](){const _0x7189f5=_0x3b22f;throw new Error(_0x7189f5(0x4bc));}};G=z([g(0x5,a[_0x3b22f(0x492)](a['Injector'])),g(0x6,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),g(0x7,a['Inject'](exports[_0x3b22f(0x462)])),g(0x8,a[_0x3b22f(0x323)]),g(0x9,a[_0x3b22f(0x519)])],G);let H=class extends J{constructor(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x4909ac,_0x5537b4,_0x3426e2,_0x4e43c0,_0x2eec28,_0x360c35,_0x4c8330,_0x2029c1,_0x2122c9,_0x2d2827){const _0x42b86b=_0x3b22f;super(_0x186884,_0x5733e7,_0x469dfd,_0x1caff2,_0x3426e2,_0x2029c1,_0x2122c9,_0x2eec28,_0x360c35),d(this,_0x42b86b(0x3d2),_0x42b86b(0x3d8)),(this['_acknowledgedAwaitingChangeset']=_0x4909ac,this['_queuedRemoteChangesets']=_0x5537b4,this['_injector']=_0x4e43c0,this[_0x42b86b(0x445)]=_0x4c8330,this[_0x42b86b(0x294)]=_0x2d2827);}[_0x3b22f(0x226)](_0x74d4a9){const _0x5df137=_0x3b22f;try{const _0x145cb2=[..._0x74d4a9,...this[_0x5df137(0x4da)]],_0x202f2e=[this[_0x5df137(0x43e)]||this['_acknowledgedAwaitingChangeset']][_0x5df137(0x3f9)](_0x338476=>!!_0x338476);let _0x66311c,_0xdd8f41;if(_0x202f2e[_0x5df137(0x291)]){const _0x3780da=this[_0x5df137(0x294)][_0x5df137(0x29b)](_0x145cb2,_0x202f2e,!0x1);if(!_[_0x5df137(0x518)](_0x3780da))throw _0x3780da[_0x5df137(0x49d)];_0x66311c=_0x3780da[_0x5df137(0x5d4)],_0xdd8f41=_0x3780da[_0x5df137(0x439)];}else _0x66311c=_0x145cb2,_0xdd8f41=[];let _0x3c0939=this['_pendingMutations'];_0x66311c[_0x5df137(0x339)](_0x416e03=>{const _0x34e6c3=_0x5df137;let _0x57d081;if(_0x3c0939[_0x34e6c3(0x291)]){const _0x84af52=this['_transformService']['transformMutationsWithChangeset'](_0x416e03,_0x3c0939);if(!_[_0x34e6c3(0x3db)](_0x84af52))throw _0x84af52['error'];_0x57d081=_0x84af52[_0x34e6c3(0x5d4)],_0x3c0939=_0x84af52[_0x34e6c3(0x2e8)];}else _0x57d081=_0x416e03;this['_executeRemoteChangeset'](_0x57d081);}),this[_0x5df137(0x446)]&&this[_0x5df137(0x237)](),this['_awaitingChangeset']&&_0xdd8f41['length']&&(_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision']());let _0x1f5e8c;if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]!==0x0)_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](k,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],_0x3c0939,this[_0x5df137(0x51a)]);else{if(this['_awaitingChangeset']&&_0x3c0939[_0x5df137(0x291)]===0x0)_0xdd8f41[0x0][_0x5df137(0x4c1)]=this['_getCurrentRevision'](),_0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](W,this['unitID'],this[_0x5df137(0x331)],_0xdd8f41[0x0],this[_0x5df137(0x51a)]);else{if(_0x3c0939[_0x5df137(0x291)]!==0x0){const _0x4e28c7=this[_0x5df137(0x397)][_0x5df137(0x5e4)](x,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],_0x3c0939,this[_0x5df137(0x51a)]);_0x4e28c7[_0x5df137(0x223)](),_0x1f5e8c=_0x4e28c7;}else _0x1f5e8c=this[_0x5df137(0x397)][_0x5df137(0x5e4)](se,this[_0x5df137(0x40e)],this['type'],this[_0x5df137(0x51a)]);}}return _0x1f5e8c[_0x5df137(0x4ad)](),_0x1f5e8c;}catch(_0x914e92){return this[_0x5df137(0x445)][_0x5df137(0x49d)]('[FetchMissState]',_0x5df137(0x47d),_0x914e92),this[_0x5df137(0x397)][_0x5df137(0x5e4)](F,this[_0x5df137(0x40e)],this[_0x5df137(0x331)],this['_awaitingChangeset'],this[_0x5df137(0x318)],this[_0x5df137(0x51a)],!0x1);}}[_0x3b22f(0x2b6)](){throw new Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3b22f(0x3bb)](_0x1be356){const _0x3b7bc3=_0x3b22f;return this[_0x3b7bc3(0x318)][_0x3b7bc3(0x1ed)](_0x1be356),this;}['onRemoteChangeset'](_0x538ccf){const _0x1e5685=_0x3b22f;return this[_0x1e5685(0x4da)][_0x1e5685(0x1ed)](_0x538ccf),this;}['onRemoteAck'](_0x1f1a63){const _0x17a352=_0x3b22f;if(this[_0x17a352(0x43e)])return this[_0x17a352(0x446)]=this[_0x17a352(0x43e)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x3b22f(0x377)](_0x381f48){const _0x446f74=_0x3b22f;return this[_0x446f74(0x23d)](!!(_0x381f48!=null&&_0x381f48[_0x446f74(0x414)]));}[_0x3b22f(0x2ea)](){const _0x1a8ffe=_0x3b22f;return this[_0x1a8ffe(0x397)][_0x1a8ffe(0x5e4)](G,this[_0x1a8ffe(0x40e)],this[_0x1a8ffe(0x331)],this[_0x1a8ffe(0x43e)],this[_0x1a8ffe(0x318)],this['_handler']);}[_0x3b22f(0x3ff)](){return this;}['_onConflict'](_0x4f38c3){const _0x4ca130=_0x3b22f;return this[_0x4ca130(0x397)][_0x4ca130(0x5e4)](F,this[_0x4ca130(0x40e)],this[_0x4ca130(0x331)],this[_0x4ca130(0x43e)],this['_pendingMutations'],this['_handler'],_0x4f38c3);}};H=z([g(0x7,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),g(0x8,a[_0x3b22f(0x492)](_['RevisionService'])),g(0x9,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),g(0xa,a[_0x3b22f(0x308)]),g(0xb,a[_0x3b22f(0x323)]),g(0xc,a[_0x3b22f(0x519)]),g(0xd,_[_0x3b22f(0x378)])],H);function Rt(_0x3ef584,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6){const _0x4c9515=_0x3b22f;return _0x4617c1&&_0x3398ed[_0x4c9515(0x291)]?_0x3ef584[_0x4c9515(0x5e4)](k,_0x5ac996,_0x2d70ef,_0x4617c1,_0x3398ed,_0x5ecee6):_0x4617c1?_0x3ef584[_0x4c9515(0x5e4)](W,_0x5ac996,_0x2d70ef,_0x4617c1,_0x5ecee6):_0x3398ed[_0x4c9515(0x291)]?_0x3ef584['createInstance'](x,_0x5ac996,_0x2d70ef,_0x3398ed,_0x5ecee6):_0x3ef584['createInstance'](se,_0x5ac996,_0x2d70ef,_0x5ecee6);}var Hs=Object[_0x3b22f(0x1ff)],xs=Object[_0x3b22f(0x246)],Ke=(_0x160de5,_0xfd1bc0,_0x2ebcac,_0x58d4f8)=>{const _0x2da4df=_0x3b22f;for(var _0xb2c9f5=_0x58d4f8>0x1?void 0x0:_0x58d4f8?xs(_0xfd1bc0,_0x2ebcac):_0xfd1bc0,_0x536d4d=_0x160de5[_0x2da4df(0x291)]-0x1,_0xd4da79;_0x536d4d>=0x0;_0x536d4d--)(_0xd4da79=_0x160de5[_0x536d4d])&&(_0xb2c9f5=(_0x58d4f8?_0xd4da79(_0xfd1bc0,_0x2ebcac,_0xb2c9f5):_0xd4da79(_0xb2c9f5))||_0xb2c9f5);return _0x58d4f8&&_0xb2c9f5&&Hs(_0xfd1bc0,_0x2ebcac,_0xb2c9f5),_0xb2c9f5;},I=(_0x403704,_0x14f853)=>(_0x48265e,_0x5bf123)=>_0x14f853(_0x48265e,_0x5bf123,_0x403704);exports[_0x3b22f(0x2cb)]=class extends a[_0x3b22f(0x398)]{constructor(_0x48580e,_0x532a8f,_0x14e226,_0x422fc3,_0x3ae266,_0x565fa5,_0x49ed9a,_0x3491e0,_0x5992d3,_0x13eb14,_0xf4cf7c,_0x57887e,_0x2aa255){const _0x54dfef=_0x3b22f;super(),d(this,_0x54dfef(0x4d6),new v[(_0x54dfef(0x502))](null)),d(this,_0x54dfef(0x3ce),this[_0x54dfef(0x4d6)][_0x54dfef(0x56e)]()),d(this,_0x54dfef(0x5d6)),d(this,_0x54dfef(0x4e1),!0x1),d(this,_0x54dfef(0x386),this[_0x54dfef(0x3ce)][_0x54dfef(0x3de)](v[_0x54dfef(0x57b)](_0x3d1917=>_0x3d1917?_0x3d1917[_0x54dfef(0x3d2)]:y[_0x54dfef(0x3ea)]),v[_0x54dfef(0x42e)](0x1))),d(this,_0x54dfef(0x2fb),!0x1),d(this,_0x54dfef(0x5b1),[]),(this['unitID']=_0x48580e,this[_0x54dfef(0x2bf)]=_0x532a8f,this[_0x54dfef(0x58b)]=_0x14e226,this['_injector']=_0x422fc3,this[_0x54dfef(0x522)]=_0x3ae266,this[_0x54dfef(0x260)]=_0x565fa5,this[_0x54dfef(0x316)]=_0x49ed9a,this[_0x54dfef(0x2d5)]=_0x3491e0,this[_0x54dfef(0x445)]=_0x5992d3,this[_0x54dfef(0x4b9)]=_0x13eb14,this[_0x54dfef(0x31d)]=_0xf4cf7c,this[_0x54dfef(0x444)]=_0x57887e,this[_0x54dfef(0x599)]=_0x2aa255);}get[_0x3b22f(0x374)](){const _0x4166e6=_0x3b22f;return this[_0x4166e6(0x5d6)];}async['init'](){const _0x5319f8=_0x3b22f;if(this[_0x5319f8(0x374)])throw new Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x5319f8(0x341)]();}[_0x3b22f(0x465)](){const _0x4671fa=_0x3b22f;return this[_0x4671fa(0x4e1)]=!0x0,a[_0x4671fa(0x526)](()=>{const _0x55db6b=_0x4671fa;this['_collaborationPaused']=!0x1,this[_0x55db6b(0x2df)]();});}[_0x3b22f(0x334)](_0x564dad){const _0x2f2f1f=_0x3b22f;this[_0x2f2f1f(0x5d6)]=_0x564dad,this[_0x2f2f1f(0x4d6)][_0x2f2f1f(0x52d)](_0x564dad);}async[_0x3b22f(0x341)](){const _0x31c6df=_0x3b22f;var _0x10642f;this[_0x31c6df(0x334)](await this[_0x31c6df(0x43b)]()),this[_0x31c6df(0x599)]&&((_0x10642f=this['_singleActiveUnitService'])==null||_0x10642f[_0x31c6df(0x558)](this[_0x31c6df(0x40e)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x31c6df(0x568)](this[_0x31c6df(0x40e)])['subscribe'](_0x40ca4e=>{const _0x3c805f=_0x31c6df;this[_0x3c805f(0x445)][_0x3c805f(0x320)]('[CollaborationEntity]','editing\x20status\x20changed\x20to',_0x40ca4e),_0x40ca4e===bt[_0x3c805f(0x2b0)]?(this[_0x3c805f(0x31d)]['show']({'content':this[_0x3c805f(0x316)]['t'](_0x3c805f(0x44f)),'type':X['MessageType'][_0x3c805f(0x3b7)]}),this[_0x3c805f(0x444)][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this['unitID'])['id'],!0x1)):this['_permissionService'][_0x3c805f(0x449)](new C[(_0x3c805f(0x5d2))](this[_0x3c805f(0x40e)])['id'],!0x0);})));let _0x383cbb=!0x1;return this['disposeWithMe'](this[_0x31c6df(0x2bf)][_0x31c6df(0x1f1)][_0x31c6df(0x42c)](_0x20810e=>{const _0x1cc7f1=_0x31c6df;_0x20810e===$[_0x1cc7f1(0x22f)]?this[_0x1cc7f1(0x553)](_0x383cbb):_0x20810e===$['OFFLINE']&&(_0x383cbb=!0x0,this[_0x1cc7f1(0x37f)]());})),this[_0x31c6df(0x283)](this[_0x31c6df(0x2bf)][_0x31c6df(0x3b5)]['subscribe'](_0x285246=>{const _0x3b9096=_0x31c6df;try{switch(_0x285246[_0x3b9096(0x3cc)]){case _[_0x3b9096(0x44c)][_0x3b9096(0x329)]:{this[_0x3b9096(0x548)](_[_0x3b9096(0x543)](_0x285246[_0x3b9096(0x45b)]));break;}case _[_0x3b9096(0x44c)]['CHANGESET_ACK']:{this[_0x3b9096(0x535)](_0x285246['data']);break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x36e)]:{this[_0x3b9096(0x582)]();break;}case _[_0x3b9096(0x44c)]['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x285246[_0x3b9096(0x45b)][_0x3b9096(0x528)][_0x3b9096(0x57b)](_0x2ba293=>_[_0x3b9096(0x543)](_0x2ba293)));break;}case _[_0x3b9096(0x44c)][_0x3b9096(0x4a2)]:this[_0x3b9096(0x582)]({'isPermissionRej':!0x0});}}catch(_0x392294){throw console[_0x3b9096(0x49d)](_0x3b9096(0x513),_0x392294),_0x392294;}})),this[_0x31c6df(0x5d6)];}['_unlockTransition'](){const _0xd3b062=_0x3b22f;this[_0xd3b062(0x2fb)]=!0x1;}['_lockTransition'](){if(this['_transitionLocked'])throw new Error('[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.');this['_transitionLocked']=!0x0;}[_0x3b22f(0x477)](_0x77989e){const _0x1ed8de=_0x3b22f;this[_0x1ed8de(0x319)](),this[_0x1ed8de(0x334)](this[_0x1ed8de(0x5d6)][_0x1ed8de(0x3bb)](_0x77989e)),this[_0x1ed8de(0x2ca)]();}['_onRemoteChangeset'](_0x4af0dc){const _0x48716e=_0x3b22f;if(!(_0x4af0dc['revision']<=this[_0x48716e(0x2d5)][_0x48716e(0x42d)](this[_0x48716e(0x40e)]))){if(this[_0x48716e(0x4e1)]){this['_remoteChangesetQueue'][_0x48716e(0x1ed)](_0x4af0dc);return;}this['_applyRemoteChangeset'](_0x4af0dc);}}[_0x3b22f(0x2df)](){const _0x78af4e=_0x3b22f;this['_remoteChangesetQueue'][_0x78af4e(0x339)](_0x5620b2=>this[_0x78af4e(0x38c)](_0x5620b2)),this[_0x78af4e(0x5b1)]=[];}[_0x3b22f(0x38c)](_0x2f424b){const _0xf15ca3=_0x3b22f,_0x49fc85=this[_0xf15ca3(0x260)]['interceptor'][_0xf15ca3(0x284)](this[_0xf15ca3(0x260)][_0xf15ca3(0x542)][_0xf15ca3(0x40b)]()[_0xf15ca3(0x580)])(_0x2f424b[_0xf15ca3(0x3a2)],null)||_0x2f424b['mutations'],_0x7c8381={..._0x2f424b,'mutations':_0x49fc85};this['_lockTransition'](),this[_0xf15ca3(0x334)](this[_0xf15ca3(0x5d6)][_0xf15ca3(0x2af)](_0x7c8381)),this[_0xf15ca3(0x2ca)]();}[_0x3b22f(0x535)](_0x3c226a){const _0x31c2e8=_0x3b22f;this[_0x31c2e8(0x319)](),this['_updateState'](this[_0x31c2e8(0x5d6)][_0x31c2e8(0x22e)](_0x3c226a)),this[_0x31c2e8(0x2ca)]();}[_0x3b22f(0x582)](_0x41e1e6){const _0x29e309=_0x3b22f;this[_0x29e309(0x319)](),this[_0x29e309(0x334)](this['_state'][_0x29e309(0x377)](_0x41e1e6)),this['_unlockTransition']();}[_0x3b22f(0x410)](_0x1f895f){const _0x24fa9a=_0x3b22f;if(!(this[_0x24fa9a(0x5d6)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x58e2db=_0x1f895f['map'](_0x59d6b2=>{const _0x5c5afc=_0x24fa9a,_0x655a8c=this[_0x5c5afc(0x260)]['interceptor'][_0x5c5afc(0x284)](this[_0x5c5afc(0x260)][_0x5c5afc(0x542)][_0x5c5afc(0x40b)]()[_0x5c5afc(0x580)])(_0x59d6b2[_0x5c5afc(0x3a2)],null)||_0x59d6b2[_0x5c5afc(0x3a2)];return{..._0x59d6b2,'mutations':_0x655a8c};});this['_lockTransition'](),this[_0x24fa9a(0x334)](this[_0x24fa9a(0x5d6)]['onMissedChangesetFetched'](_0x58e2db)),this['_unlockTransition']();}[_0x3b22f(0x37f)](){const _0x360964=_0x3b22f;this['_lockTransition'](),this['_updateState'](this['_state'][_0x360964(0x2ea)]()),this[_0x360964(0x2ca)]();}['_toggleOnline'](_0x5d10bc=!0x1){const _0x4537d5=_0x3b22f;this[_0x4537d5(0x319)](),this[_0x4537d5(0x334)](this[_0x4537d5(0x5d6)][_0x4537d5(0x3ff)]()),this['_unlockTransition']();const _0x20894f=this['_state'];_0x5d10bc&&_0x20894f instanceof se&&(this['_lockTransition'](),this[_0x4537d5(0x334)](_0x20894f[_0x4537d5(0x22c)]()),this['_unlockTransition']());}async[_0x3b22f(0x43b)](){return new Promise(_0x41372b=>{const _0x4b7d8b=_0x2c53;this[_0x4b7d8b(0x2bf)][_0x4b7d8b(0x1f1)][_0x4b7d8b(0x3de)](v['take'](0x1))['subscribe'](async _0x55a680=>{const _0x434186=_0x4b7d8b;_0x41372b(await this['_createInitialStateImpl'](_0x55a680===$[_0x434186(0x22f)]));});});}['_createHandler'](){const _0x1de144=_0x3b22f,_0x2b0b49=this[_0x1de144(0x40e)];return{'onStateChange':(_0x115799,_0x1f839f)=>{const _0x46f159=_0x1de144;if(_0x115799!==this[_0x46f159(0x5d6)])throw new Error(_0x46f159(0x265)+_0x115799['status']+'\x0aAfter:\x20'+_0x1f839f[_0x46f159(0x3d2)]+_0x46f159(0x491)+this[_0x46f159(0x5d6)][_0x46f159(0x3d2)]);this[_0x46f159(0x334)](_0x1f839f);},'onSendChangeset':_0x114f7b=>{const _0x442177=_0x1de144,_0x4a598a={'eventID':_[_0x442177(0x44c)][_0x442177(0x5ac)],'data':{'unitID':_0x114f7b[_0x442177(0x40e)],'unitType':this[_0x442177(0x58b)],'changeset':_0x114f7b,'memberID':this['session']['getMemberID']()}};this[_0x442177(0x2bf)][_0x442177(0x3c5)](_0x4a598a,this[_0x442177(0x40e)]);},'onMissingChangesets':({from:_0x1382ec,to:_0x5b4eb6})=>{const _0x4018a4=_0x1de144;this['_logService'][_0x4018a4(0x320)]('[CollaborationEntity]',_0x4018a4(0x42a)+_0x1382ec+_0x4018a4(0x239)+_0x5b4eb6);const _0x1af9c6={'eventID':_[_0x4018a4(0x44c)]['FETCH_MISSING'],'data':{'unitID':_0x2b0b49,'unitType':this[_0x4018a4(0x58b)],'from':_0x1382ec,'to':_0x5b4eb6}};this[_0x4018a4(0x2bf)][_0x4018a4(0x3c5)](_0x1af9c6,this[_0x4018a4(0x40e)]);}};}async['_createInitialStateImpl'](_0x41b1ac){const _0x276bc3=_0x3b22f;var _0xf7cc9d,_0x50f3c4;const _0x63dd6d=await this[_0x276bc3(0x522)][_0x276bc3(0x4dd)](this[_0x276bc3(0x40e)]),_0x249941=(_0xf7cc9d=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x3a2)])!=null?_0xf7cc9d:[],_0x34b982=(_0x50f3c4=_0x63dd6d==null?void 0x0:_0x63dd6d[_0x276bc3(0x5eb)])!=null?_0x50f3c4:null,_0x2fa82f=this[_0x276bc3(0x40e)];try{this[_0x276bc3(0x4b4)](_0x34b982,_0x249941);}catch(_0x579cfa){this[_0x276bc3(0x445)][_0x276bc3(0x49d)](_0x579cfa);}const _0x48f18e=this['_createHandler']();if(_0x41b1ac){const _0x644fe4=Rt(this[_0x276bc3(0x397)],_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);return _0x644fe4 instanceof x?_0x644fe4[_0x276bc3(0x223)]():(_0x644fe4 instanceof k||_0x644fe4 instanceof W)&&_0x644fe4[_0x276bc3(0x2b6)](),_0x644fe4;}return this['_injector'][_0x276bc3(0x5e4)](G,_0x2fa82f,this[_0x276bc3(0x58b)],_0x34b982,_0x249941,_0x48f18e);}[_0x3b22f(0x4b4)](_0x5c3cd2,_0x55560b){const _0x40514d=_0x3b22f;var _0x2ec1bb,_0x56c5fd;const _0x583add=this[_0x40514d(0x260)][_0x40514d(0x542)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x40514d(0x40b)]()['COMPRESS_MUTATION_APPLY']);(_0x2ec1bb=_0x583add((_0x5c3cd2==null?void 0x0:_0x5c3cd2[_0x40514d(0x3a2)])||[],null))==null||_0x2ec1bb[_0x40514d(0x339)](_0x51410=>this[_0x40514d(0x4b9)]['executeCommand'](_0x51410['id'],_0x51410[_0x40514d(0x3b6)])),(_0x56c5fd=_0x583add(_0x55560b||[],null))==null||_0x56c5fd[_0x40514d(0x339)](_0x507e63=>this[_0x40514d(0x4b9)][_0x40514d(0x2fc)](_0x507e63['id'],_0x507e63[_0x40514d(0x3b6)]));}},exports['CollaborationEntity']=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a['Inject'](exports['LocalCacheService'])),I(0x5,a['Inject'](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x308)]),I(0x9,a[_0x3b22f(0x323)]),I(0xa,N[_0x3b22f(0x2e3)]),I(0xb,a[_0x3b22f(0x300)]),I(0xc,a[_0x3b22f(0x5c6)](be))],exports['CollaborationEntity']),exports['DocCollaborationEntity']=class extends exports['CollaborationEntity']{constructor(_0xcc370e,_0x5d1ef5,_0x547cfb,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x6a105,_0x2b28d7,_0x2aa0f2,_0x1f1957,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da){const _0xeec46f=_0x3b22f;super(_0xcc370e,_0x547cfb,_0x5d1ef5,_0xe04cec,_0x4a889e,_0x1ca0aa,_0x1ee2cf,_0x9d3a51,_0x17f4bc,_0x13821c,_0x48850f,_0x326065,_0x5405da),this['unitID']=_0xcc370e,this['type']=_0x5d1ef5,this['_docStateChangeManagerService']=_0x6a105,this[_0xeec46f(0x459)]=_0x2b28d7,this['_docTransformSelectionsService']=_0x2aa0f2,this[_0xeec46f(0x335)]=_0x1f1957;}[_0x3b22f(0x302)](){const _0x56d0d1=_0x3b22f,_0x5a9a39=super['_createHandler']();return _0x5a9a39['onTransformIME']=_0xb18ea3=>this['_docTransformIMECacheService'][_0x56d0d1(0x4df)](_0xb18ea3),_0x5a9a39[_0x56d0d1(0x24a)]=_0x301c0f=>this[_0x56d0d1(0x25c)][_0x56d0d1(0x4fb)](_0x301c0f),_0x5a9a39[_0x56d0d1(0x373)]=_0x49cdb1=>this['_docSyncEditingCollabCursorService'][_0x56d0d1(0x1f3)](_0x49cdb1),_0x5a9a39[_0x56d0d1(0x357)]=_0x540ee1=>this[_0x56d0d1(0x459)][_0x56d0d1(0x471)](_0x540ee1),_0x5a9a39;}async[_0x3b22f(0x341)](){const _0x462fcb=_0x3b22f,_0x239f7b=await super[_0x462fcb(0x341)]();return this['disposeWithMe'](this['_commandService'][_0x462fcb(0x2dd)]((_0x40ddb3,_0x75dab1)=>{const _0x55ec0f=_0x462fcb;if(_0x40ddb3[_0x55ec0f(0x331)]!==a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)]||_0x75dab1!=null&&_0x75dab1[_0x55ec0f(0x35e)]||_0x75dab1!=null&&_0x75dab1['onlyLocal'])return;const _0x114a41=_0x40ddb3[_0x55ec0f(0x3b6)];if((_0x114a41==null?void 0x0:_0x114a41[_0x55ec0f(0x3df)])!==this[_0x55ec0f(0x40e)])return;let _0x489b59=_0x40ddb3;if(_0x489b59['id']===V['RichTextEditingMutation']['id']){const _0x30add9=_0x489b59[_0x55ec0f(0x3b6)];_0x489b59={'id':V['RichTextEditingMutation']['id'],'type':a[_0x55ec0f(0x3b8)][_0x55ec0f(0x41d)],'params':{'unitId':_0x30add9['unitId'],'actions':_0x30add9[_0x55ec0f(0x2b2)],'textRanges':null}};}const _0xa85dc8=this['_compressMutationService'][_0x55ec0f(0x542)][_0x55ec0f(0x284)](this[_0x55ec0f(0x260)][_0x55ec0f(0x542)][_0x55ec0f(0x40b)]()[_0x55ec0f(0x5f0)])([_0x489b59],null)||[_0x489b59];this[_0x55ec0f(0x477)](_0xa85dc8[0x0]);})),_0x239f7b;}},exports[_0x3b22f(0x403)]=Ke([I(0x3,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports['LocalCacheService'])),I(0x5,a[_0x3b22f(0x492)](_[_0x3b22f(0x461)])),I(0x6,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](w['DocStateChangeManagerService'])),I(0x9,a['Inject'](fe)),I(0xa,a['Inject'](me)),I(0xb,a['Inject'](Ye)),I(0xc,a['ILogService']),I(0xd,a[_0x3b22f(0x323)]),I(0xe,N['IMessageService']),I(0xf,a[_0x3b22f(0x300)]),I(0x10,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x403)]),exports[_0x3b22f(0x5ef)]=class extends exports[_0x3b22f(0x2cb)]{constructor(_0x142e7f,_0x48a416,_0x277ecd,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0x31b5ff,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc){const _0x4e1f7c=_0x3b22f;super(_0x142e7f,_0x277ecd,_0x48a416,_0x200ccc,_0x46af11,_0x5abfb2,_0x5f092f,_0x478996,_0xa66414,_0x2d08e7,_0x345459,_0x515fe8,_0x58aedc),this['unitID']=_0x142e7f,this[_0x4e1f7c(0x331)]=_0x48a416,this[_0x4e1f7c(0x215)]=_0x31b5ff;}[_0x3b22f(0x302)](){const _0x5e1304=_0x3b22f,_0x3af271=super[_0x5e1304(0x302)]();return _0x3af271[_0x5e1304(0x24a)]=_0xd8c40a=>this[_0x5e1304(0x215)][_0x5e1304(0x4fb)](_0xd8c40a),_0x3af271;}async[_0x3b22f(0x341)](){const _0x3e771e=_0x3b22f,_0x198363=await super['_init']();return this[_0x3e771e(0x283)](this[_0x3e771e(0x4b9)]['onCommandExecuted']((_0x26c8e4,_0x410b74)=>{const _0x578496=_0x3e771e;if(_0x26c8e4[_0x578496(0x331)]!==a[_0x578496(0x3b8)]['MUTATION']||_0x410b74!=null&&_0x410b74[_0x578496(0x35e)]||_0x410b74!=null&&_0x410b74['onlyLocal'])return;const _0x29ad82=_0x26c8e4[_0x578496(0x3b6)];if((_0x29ad82==null?void 0x0:_0x29ad82[_0x578496(0x3df)])!==this['unitID'])return;const _0x298b25=_0x26c8e4,_0x49c54=this[_0x578496(0x260)]['interceptor'][_0x578496(0x284)](this[_0x578496(0x260)]['interceptor']['getInterceptPoints']()[_0x578496(0x5f0)])([_0x298b25],null)||[_0x298b25];this[_0x578496(0x477)](_0x49c54[0x0]);})),_0x198363;}},exports[_0x3b22f(0x5ef)]=Ke([I(0x3,a['Inject'](a[_0x3b22f(0x252)])),I(0x4,a[_0x3b22f(0x492)](exports[_0x3b22f(0x462)])),I(0x5,a[_0x3b22f(0x492)](_['CompressMutationService'])),I(0x6,a[_0x3b22f(0x492)](a['LocaleService'])),I(0x7,a[_0x3b22f(0x492)](_[_0x3b22f(0x450)])),I(0x8,a[_0x3b22f(0x492)](ge)),I(0x9,a[_0x3b22f(0x308)]),I(0xa,a['ICommandService']),I(0xb,N[_0x3b22f(0x2e3)]),I(0xc,a[_0x3b22f(0x300)]),I(0xd,a[_0x3b22f(0x5c6)](be))],exports[_0x3b22f(0x5ef)]);var ks=Object[_0x3b22f(0x1ff)],Bs=Object[_0x3b22f(0x246)],Vs=(_0x558bfa,_0x22f976,_0x18e73b,_0x34ab58)=>{const _0x20a365=_0x3b22f;for(var _0x5522a8=_0x34ab58>0x1?void 0x0:_0x34ab58?Bs(_0x22f976,_0x18e73b):_0x22f976,_0x28597b=_0x558bfa[_0x20a365(0x291)]-0x1,_0x345db6;_0x28597b>=0x0;_0x28597b--)(_0x345db6=_0x558bfa[_0x28597b])&&(_0x5522a8=(_0x34ab58?_0x345db6(_0x22f976,_0x18e73b,_0x5522a8):_0x345db6(_0x5522a8))||_0x5522a8);return _0x34ab58&&_0x5522a8&&ks(_0x22f976,_0x18e73b,_0x5522a8),_0x5522a8;},Ue=(_0x3adbfe,_0x3bef86)=>(_0x13c532,_0x138c08)=>_0x3bef86(_0x13c532,_0x138c08,_0x3adbfe);exports[_0x3b22f(0x322)]=class extends a['RxDisposable']{constructor(_0x206825,_0x408b5e,_0x2c84ad){const _0x53983d=_0x3b22f;super(),d(this,_0x53983d(0x4de),new Map()),d(this,_0x53983d(0x3fd),new v['Subject']()),(this['_injector']=_0x206825,this[_0x53983d(0x27c)]=_0x408b5e,this[_0x53983d(0x340)]=_0x2c84ad,this[_0x53983d(0x341)]());}[_0x3b22f(0x4f2)](){const _0x5112bc=_0x3b22f;super[_0x5112bc(0x4f2)](),this['_entities']['forEach'](_0x44cf82=>_0x44cf82[_0x5112bc(0x4f2)]()),this[_0x5112bc(0x4de)][_0x5112bc(0x249)]();}[_0x3b22f(0x2fa)](_0x3493e9){const _0x357302=_0x3b22f;var _0x436337;return(_0x436337=this[_0x357302(0x4de)][_0x357302(0x34d)](_0x3493e9))!=null?_0x436337:null;}[_0x3b22f(0x30d)](_0x2e238b){const _0x1025c5=_0x3b22f,_0x50c41d=this[_0x1025c5(0x2fa)](_0x2e238b);return _0x50c41d?v['of'](_0x50c41d):this[_0x1025c5(0x3fd)][_0x1025c5(0x3de)](E[_0x1025c5(0x3f9)](_0x48278b=>_0x48278b[_0x1025c5(0x40e)]===_0x2e238b));}[_0x3b22f(0x341)](){const _0x356467=_0x3b22f;this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)]['UNIVER_SHEET'])[_0x356467(0x3de)](v[_0x356467(0x37c)](this['dispose$']),E[_0x356467(0x292)](0x10))[_0x356467(0x42c)](async _0x3a30e6=>{const _0xf82571=_0x356467,_0x56e659=_0x3a30e6[_0xf82571(0x52b)](),_0x51c6ac=await this[_0xf82571(0x571)](_0x56e659,j[_0xf82571(0x3c0)]);this['_entities'][_0xf82571(0x305)](_0x56e659,_0x51c6ac);}),this['_univerInstanceService'][_0x356467(0x5e8)](a[_0x356467(0x38e)][_0x356467(0x332)])['pipe'](v[_0x356467(0x37c)](this['dispose$']),E['delay'](0x10))[_0x356467(0x3de)](E[_0x356467(0x3f9)](_0x213bb1=>!_0x213bb1[_0x356467(0x52b)]()[_0x356467(0x561)]('__')))[_0x356467(0x42c)](async _0x39a2b5=>{const _0x34828e=_0x356467,_0x30a74b=_0x39a2b5[_0x34828e(0x52b)](),_0x16702f=await this[_0x34828e(0x571)](_0x30a74b,j[_0x34828e(0x332)]);this['_entities'][_0x34828e(0x305)](_0x30a74b,_0x16702f);}),v[_0x356467(0x2c4)](this[_0x356467(0x340)][_0x356467(0x24f)](a['UniverInstanceType'][_0x356467(0x3c0)]),this[_0x356467(0x340)]['getTypeOfUnitDisposed$'](a[_0x356467(0x38e)]['UNIVER_DOC']))['pipe'](v['takeUntil'](this[_0x356467(0x2e1)]))[_0x356467(0x42c)](_0x5c68b9=>{const _0x22b09a=_0x356467,_0x3abd33=_0x5c68b9[_0x22b09a(0x52b)](),_0x521cb8=this[_0x22b09a(0x4de)][_0x22b09a(0x34d)](_0x3abd33);_0x521cb8&&(_0x521cb8[_0x22b09a(0x4f2)](),this[_0x22b09a(0x4de)][_0x22b09a(0x2cc)](_0x3abd33));});}async[_0x3b22f(0x571)](_0x304e52,_0x26684b){const _0x17d99c=_0x3b22f,_0xfe4467=await this[_0x17d99c(0x27c)][_0x17d99c(0x578)](_0x304e52),_0x4e66b6=this[_0x17d99c(0x397)][_0x17d99c(0x5e4)](this[_0x17d99c(0x58e)](_0x26684b),_0x304e52,_0x26684b,_0xfe4467);return await _0x4e66b6[_0x17d99c(0x358)](),this[_0x17d99c(0x3fd)][_0x17d99c(0x52d)](_0x4e66b6),_0x4e66b6;}[_0x3b22f(0x58e)](_0x112bf6){const _0x90de61=_0x3b22f;switch(_0x112bf6){case j[_0x90de61(0x332)]:return exports[_0x90de61(0x403)];case j[_0x90de61(0x3c0)]:return exports[_0x90de61(0x5ef)];default:throw new Error(_0x90de61(0x59d)+_0x112bf6);}}},exports[_0x3b22f(0x322)]=Vs([Ue(0x0,a['Inject'](a[_0x3b22f(0x252)])),Ue(0x1,a['Inject'](exports[_0x3b22f(0x298)])),Ue(0x2,a[_0x3b22f(0x26b)])],exports[_0x3b22f(0x322)]);const nt=[_0x3b22f(0x3f1),_0x3b22f(0x5c8),'verdancy600',_0x3b22f(0x5d9),'blue400',_0x3b22f(0x379)];class Xe extends a[_0x3b22f(0x4b0)]{constructor(){const _0x2eb2e3=_0x3b22f;super(...arguments),d(this,'_assignedColors',new Map()),d(this,_0x2eb2e3(0x35c),0x0);}[_0x3b22f(0x4ee)](_0x5923d){const _0xb403a5=_0x3b22f;if(this[_0xb403a5(0x56b)][_0xb403a5(0x3e5)](_0x5923d))return this[_0xb403a5(0x56b)]['get'](_0x5923d);const _0x410f45=nt[this[_0xb403a5(0x35c)]];return this[_0xb403a5(0x35c)]=(this[_0xb403a5(0x35c)]+0x1)%nt[_0xb403a5(0x291)],this[_0xb403a5(0x56b)][_0xb403a5(0x305)](_0x5923d,_0x410f45),_0x410f45;}}var Ws=Object[_0x3b22f(0x1ff)],Fs=Object['getOwnPropertyDescriptor'],Gs=(_0x4f6fc6,_0xa24e62,_0x3259ff,_0x4d9bab)=>{for(var _0x4e77b1=_0x4d9bab>0x1?void 0x0:_0x4d9bab?Fs(_0xa24e62,_0x3259ff):_0xa24e62,_0x55ae4a=_0x4f6fc6['length']-0x1,_0x2f7092;_0x55ae4a>=0x0;_0x55ae4a--)(_0x2f7092=_0x4f6fc6[_0x55ae4a])&&(_0x4e77b1=(_0x4d9bab?_0x2f7092(_0xa24e62,_0x3259ff,_0x4e77b1):_0x2f7092(_0x4e77b1))||_0x4e77b1);return _0x4d9bab&&_0x4e77b1&&Ws(_0xa24e62,_0x3259ff,_0x4e77b1),_0x4e77b1;},K=(_0x160b83,_0x36908f)=>(_0x9f4c98,_0x440cb1)=>_0x36908f(_0x9f4c98,_0x440cb1,_0x160b83);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x3b22f(0x398)]{constructor(_0x3cb284,_0x2c5102,_0x3b550b,_0x45abfa,_0x4ba55b,_0x44a5c,_0x4c58f2,_0x1aacba,_0x20a6cd){const _0x51c73f=_0x3b22f;super(),d(this,_0x51c73f(0x466),!0x1),d(this,'_init',!0x1),d(this,_0x51c73f(0x404),new v[(_0x51c73f(0x502))](new Map())),d(this,_0x51c73f(0x4aa),this[_0x51c73f(0x404)][_0x51c73f(0x56e)]()),d(this,_0x51c73f(0x288),new v['BehaviorSubject']([])),d(this,_0x51c73f(0x5bf),this[_0x51c73f(0x288)][_0x51c73f(0x3de)](v['debounceTime'](Ys))),d(this,_0x51c73f(0x37d),a[_0x51c73f(0x527)](_0x5cc1c5=>{const _0x1a1057=_0x51c73f,_0x531918={'eventID':_[_0x1a1057(0x44c)][_0x1a1057(0x5b6)],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x1a1057(0x597)](),'selection':Tt(_0x5cc1c5)}};this[_0x1a1057(0x338)][_0x1a1057(0x3c5)](_0x531918,this[_0x1a1057(0x40e)]);},Ks)),(this[_0x51c73f(0x40e)]=_0x3cb284,this[_0x51c73f(0x338)]=_0x2c5102,this[_0x51c73f(0x397)]=_0x3b550b,this[_0x51c73f(0x594)]=_0x45abfa,this[_0x51c73f(0x4ec)]=_0x4ba55b,this['_syncEditingCollabCursorService']=_0x44a5c,this[_0x51c73f(0x294)]=_0x4c58f2,this[_0x51c73f(0x340)]=_0x1aacba,this[_0x51c73f(0x4b9)]=_0x20a6cd);}get[_0x3b22f(0x49a)](){const _0x186f6f=_0x3b22f;return this[_0x186f6f(0x404)][_0x186f6f(0x2a9)]();}get['roomMembers'](){const _0x59f09a=_0x3b22f;return this['_roomMembers$'][_0x59f09a(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x5ca9ba=_0x3b22f;super['dispose'](),this['_cursorInfo$'][_0x5ca9ba(0x52d)](new Map()),this['_cursorInfo$'][_0x5ca9ba(0x2ec)](),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x52d)]([]),this[_0x5ca9ba(0x288)][_0x5ca9ba(0x2ec)]();}['init'](){const _0x313705=_0x3b22f;this['_init']||(this['_init']=!0x0,this['_session']['sessionStatus$']['pipe'](v[_0x313705(0x37c)](this['dispose$']))[_0x313705(0x42c)](_0x399fab=>{const _0x156b89=_0x313705;_0x399fab===$[_0x156b89(0x22f)]?this[_0x156b89(0x553)]():this['_toggleOffline']();}),this[_0x313705(0x338)][_0x313705(0x3b5)][_0x313705(0x3de)](v[_0x313705(0x37c)](this[_0x313705(0x2e1)]))[_0x313705(0x42c)](_0x492298=>{const _0x19bf29=_0x313705,_0x197da1=_0x492298[_0x19bf29(0x3cc)];_0x197da1===_['CollaborationEvent'][_0x19bf29(0x5b6)]&&this[_0x19bf29(0x426)](_0x492298),_0x197da1===_[_0x19bf29(0x44c)][_0x19bf29(0x51c)]&&this[_0x19bf29(0x2a1)](_0x492298);}),this[_0x313705(0x283)](this[_0x313705(0x4b9)]['onCommandExecuted'](_0x11f1e1=>{const _0x3189c1=_0x313705,_0xc7263c=_0x11f1e1[_0x3189c1(0x3b6)];_0xc7263c!=null&&this[_0x3189c1(0x466)]&&_0x11f1e1['id']===V[_0x3189c1(0x574)]['id']&&_0xc7263c[_0x3189c1(0x3df)]===this[_0x3189c1(0x40e)]&&_0xc7263c[_0x3189c1(0x40c)]===!0x1&&this[_0x3189c1(0x37d)](_0xc7263c[_0x3189c1(0x2b8)]);})),this[_0x313705(0x421)][_0x313705(0x45e)][_0x313705(0x3de)](v['takeUntil'](this['dispose$']))[_0x313705(0x42c)](_0x301da6=>{const _0x3c19ec=_0x313705;if((_0x301da6==null?void 0x0:_0x301da6[_0x3c19ec(0x40e)])!==this[_0x3c19ec(0x40e)])return;const _0x18360d={'eventID':_[_0x3c19ec(0x44c)][_0x3c19ec(0x5b6)],'data':_0x301da6};this[_0x3c19ec(0x426)](_0x18360d);}),this[_0x313705(0x283)](this['_commandService'][_0x313705(0x2dd)](_0xa4a618=>{const _0x475dce=_0x313705;if(_0xa4a618[_0x475dce(0x3b6)]==null)return;const _0x338bc1=_0xa4a618[_0x475dce(0x3b6)];if(_0xa4a618['id']!==V[_0x475dce(0x48d)]['id']||_0x338bc1[_0x475dce(0x3df)]!==this[_0x475dce(0x40e)])return;const _0x613e94={'id':_0x475dce(0x29f),'params':_0x338bc1},_0x1f4448=this[_0x475dce(0x49a)];for(const [_0xc75a64,_0x5cb49d]of _0x1f4448){const _0x3099a1={'id':_0x475dce(0x29f),'params':{'unitId':this[_0x475dce(0x40e)],'actions':null,'textRanges':_0x5cb49d[_0x475dce(0x2b8)]}},_0x123e43=this[_0x475dce(0x294)][_0x475dce(0x2c5)](_0x613e94,_0x3099a1,!0x1);if(_[_0x475dce(0x5cb)](_0x123e43))throw _0x123e43[_0x475dce(0x49d)];_0x1f4448[_0x475dce(0x305)](_0xc75a64,{..._0x5cb49d,'ranges':_0x123e43[_0x475dce(0x2e8)]['params'][_0x475dce(0x4a4)]});}queueMicrotask(()=>{const _0x442e43=_0x475dce;this[_0x442e43(0x404)][_0x442e43(0x52d)](_0x1f4448);});})));}['_onCursorUpdate'](_0x8cb4c4){const _0x4f155d=_0x3b22f;var _0x203a57,_0x19ab8e;const {memberID:_0x36da3f,selection:_0x27f51b}=_0x8cb4c4['data'],_0x26cf0e=Us(_0x27f51b),_0x5c829a=(_0x19ab8e=(_0x203a57=this[_0x4f155d(0x4ec)][_0x4f155d(0x303)](this[_0x4f155d(0x40e)],_0x36da3f))==null?void 0x0:_0x203a57['name'])!=null?_0x19ab8e:'Unknown\x20user',_0x1e8500={'color':this[_0x4f155d(0x594)][_0x4f155d(0x4ee)](_0x36da3f),'name':_0x5c829a,'ranges':_0x26cf0e},_0x2af4db=this[_0x4f155d(0x49a)];_0x2af4db['set'](_0x36da3f,_0x1e8500),this[_0x4f155d(0x404)][_0x4f155d(0x52d)](_0x2af4db);}[_0x3b22f(0x2a1)](_0x4247ca){const _0xb871b1=_0x3b22f,{memberID:_0x837a43}=_0x4247ca[_0xb871b1(0x45b)],_0x19c3ec=this[_0xb871b1(0x49a)];_0x19c3ec[_0xb871b1(0x2cc)](_0x837a43),this[_0xb871b1(0x404)][_0xb871b1(0x52d)](_0x19c3ec);}[_0x3b22f(0x553)](){const _0x2ccd45=_0x3b22f;var _0x403a08;if(this['_online']=!0x0,((_0x403a08=this['_univerInstanceService'][_0x2ccd45(0x255)]())==null?void 0x0:_0x403a08[_0x2ccd45(0x52b)]())!==this[_0x2ccd45(0x40e)])return;const _0x1dff6a=this[_0x2ccd45(0x397)][_0x2ccd45(0x34d)](V[_0x2ccd45(0x4a7)])['getDocRanges']();Array[_0x2ccd45(0x33f)](_0x1dff6a)&&_0x1dff6a[_0x2ccd45(0x291)]>0x0&&this['_updateLocalCursor'](_0x1dff6a);}[_0x3b22f(0x37f)](){const _0x297cde=_0x3b22f;this[_0x297cde(0x466)]=!0x1;}};$e=Gs([K(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),K(0x3,a[_0x3b22f(0x492)](Xe)),K(0x4,a[_0x3b22f(0x492)](q)),K(0x5,a['Inject'](Ye)),K(0x6,_[_0x3b22f(0x378)]),K(0x7,a['IUniverInstanceService']),K(0x8,a['ICommandService'])],$e);var Xs=Object['defineProperty'],qs=Object[_0x3b22f(0x246)],zs=(_0x1ffa44,_0x428231,_0x531baa,_0x12ca06)=>{for(var _0x495128=_0x12ca06>0x1?void 0x0:_0x12ca06?qs(_0x428231,_0x531baa):_0x428231,_0x4473a4=_0x1ffa44['length']-0x1,_0x242509;_0x4473a4>=0x0;_0x4473a4--)(_0x242509=_0x1ffa44[_0x4473a4])&&(_0x495128=(_0x12ca06?_0x242509(_0x428231,_0x531baa,_0x495128):_0x242509(_0x495128))||_0x495128);return _0x12ca06&&_0x495128&&Xs(_0x428231,_0x531baa,_0x495128),_0x495128;},Q=(_0x2077e0,_0x27fb54)=>(_0xa934ff,_0x1b669a)=>_0x27fb54(_0xa934ff,_0x1b669a,_0x2077e0);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x15a14d=[],_0x1bd2e8=!0x1;return _0x27d5b1=>{const _0x42054=_0x2c53;_0x15a14d[_0x42054(0x1ed)](_0x27d5b1),_0x1bd2e8||(_0x1bd2e8=!0x0,setTimeout(()=>{const _0x10e457=_0x42054;_0x15a14d[_0x10e457(0x339)](_0x5101c1=>_0x5101c1()),_0x15a14d=[],_0x1bd2e8=!0x1;}));};};let He=class extends a['RxDisposable']{constructor(_0x172152,_0x3ea4e7,_0x27acc6,_0x26af3e,_0x495579,_0x5245e9,_0x202d78,_0x3ee5b9){const _0x284fad=_0x3b22f;super(),d(this,_0x284fad(0x466),!0x1),d(this,_0x284fad(0x341),!0x1),d(this,_0x284fad(0x404),new v[(_0x284fad(0x502))](new Map())),d(this,'cursorInfo$',this[_0x284fad(0x404)][_0x284fad(0x56e)]()),d(this,_0x284fad(0x288),new v[(_0x284fad(0x502))]([])),d(this,'roomMembers$',this[_0x284fad(0x288)]['pipe'](v[_0x284fad(0x42f)](Js))),d(this,_0x284fad(0x37d),a['debounce']((_0xf7495d,_0x9df48f)=>{const _0x45d052=_0x284fad,_0x1db732={'eventID':_[_0x45d052(0x44c)][_0x45d052(0x5b6)],'data':{'unitID':this[_0x45d052(0x40e)],'memberID':this[_0x45d052(0x338)]['getMemberID'](),'selection':Je[_0x45d052(0x3e9)](_0xf7495d,_0x9df48f[_0x45d052(0x25e)])}};this['_session'][_0x45d052(0x3c5)](_0x1db732,this[_0x45d052(0x40e)]);},Zs)),(this[_0x284fad(0x40e)]=_0x172152,this[_0x284fad(0x338)]=_0x3ea4e7,this[_0x284fad(0x397)]=_0x27acc6,this[_0x284fad(0x594)]=_0x26af3e,this[_0x284fad(0x4ec)]=_0x495579,this[_0x284fad(0x340)]=_0x5245e9,this[_0x284fad(0x4b9)]=_0x202d78,this[_0x284fad(0x1fd)]=_0x3ee5b9);}get['cursorInfo'](){return this['_cursorInfo$']['getValue']();}get[_0x3b22f(0x4be)](){const _0x41b15c=_0x3b22f;return this[_0x41b15c(0x288)][_0x41b15c(0x2a9)]();}[_0x3b22f(0x4f2)](){const _0x433e81=_0x3b22f;super[_0x433e81(0x4f2)](),this['_cursorInfo$'][_0x433e81(0x52d)](new Map()),this['_cursorInfo$'][_0x433e81(0x2ec)](),this[_0x433e81(0x288)][_0x433e81(0x52d)]([]),this[_0x433e81(0x288)][_0x433e81(0x2ec)]();}[_0x3b22f(0x358)](){const _0x3ae396=_0x3b22f;this[_0x3ae396(0x341)]||(this[_0x3ae396(0x341)]=!0x0,this[_0x3ae396(0x338)][_0x3ae396(0x1f1)]['pipe'](v[_0x3ae396(0x37c)](this[_0x3ae396(0x2e1)]))[_0x3ae396(0x42c)](_0x49d375=>{const _0x23903a=_0x3ae396;_0x49d375===$[_0x23903a(0x22f)]?this[_0x23903a(0x553)]():this[_0x23903a(0x37f)]();}),this[_0x3ae396(0x338)]['event$']['pipe'](v['takeUntil'](this[_0x3ae396(0x2e1)]))['subscribe'](_0x152e13=>{const _0x48f413=_0x3ae396,_0x5dec91=_0x152e13[_0x48f413(0x3cc)];_0x5dec91===_[_0x48f413(0x44c)][_0x48f413(0x5b6)]&&this[_0x48f413(0x426)](_0x152e13),_0x5dec91===_[_0x48f413(0x44c)]['USERS_LEAVE']&&this[_0x48f413(0x2a1)](_0x152e13);}),this[_0x3ae396(0x38a)](),this[_0x3ae396(0x283)](this[_0x3ae396(0x4b9)]['onCommandExecuted'](_0x182058=>{const _0x528576=_0x3ae396;if(this[_0x528576(0x466)]&&_0x182058['id']===C['SetSelectionsOperation']['id']&&_0x182058[_0x528576(0x3b6)][_0x528576(0x3df)]===this['unitID']){const _0x168db3=_0x182058[_0x528576(0x3b6)];this['_updateLocalCursor'](_0x168db3[_0x528576(0x2b4)],_0x168db3[_0x528576(0x3c4)][0x0]);}})));}[_0x3b22f(0x426)](_0x2ab470){const _0x423408=_0x3b22f;var _0x59a792,_0x2298b4;const {memberID:_0x14ee3d,selection:_0x27a88e}=_0x2ab470['data'],{sheetName:_0x26c0d9,range:_0x44933a}=Je['deserializeRangeWithSheet'](_0x27a88e),_0x53b09e={'name':(_0x2298b4=(_0x59a792=this[_0x423408(0x4ec)][_0x423408(0x303)](this[_0x423408(0x40e)],_0x14ee3d))==null?void 0x0:_0x59a792[_0x423408(0x366)])!=null?_0x2298b4:_0x423408(0x250),'range':this[_0x423408(0x5af)](_0x26c0d9,_0x44933a),'sheetID':_0x26c0d9,'color':this[_0x423408(0x594)][_0x423408(0x4ee)](_0x14ee3d),'selection':_0x27a88e},_0x136ade=this['cursorInfo'];_0x136ade['set'](_0x14ee3d,_0x53b09e),this[_0x423408(0x404)][_0x423408(0x52d)](_0x136ade);}[_0x3b22f(0x2a1)](_0x2c8d79){const _0x43b51d=_0x3b22f,{memberID:_0x5d8b24}=_0x2c8d79[_0x43b51d(0x45b)],_0x1e54fe=this['cursorInfo'];_0x1e54fe[_0x43b51d(0x2cc)](_0x5d8b24),this[_0x43b51d(0x404)][_0x43b51d(0x52d)](_0x1e54fe);}['_getMergeRange'](_0x52a7c8,_0x54c487){const _0x1b0e79=_0x3b22f;var _0x283da9,_0x119618;const _0x285baa=(_0x119618=(_0x283da9=this['_univerInstanceService'][_0x1b0e79(0x2ac)](this[_0x1b0e79(0x40e)]))==null?void 0x0:_0x283da9[_0x1b0e79(0x2f1)](_0x52a7c8))==null?void 0x0:_0x119618[_0x1b0e79(0x4d8)]();return(_0x285baa==null?void 0x0:_0x285baa[_0x1b0e79(0x5dc)](_0xddfd87=>a[_0x1b0e79(0x337)]['contains'](_0xddfd87,_0x54c487)))||_0x54c487;}[_0x3b22f(0x38a)](){const _0x2cbaa9=_0x3b22f,_0x1214e5=new a[(_0x2cbaa9(0x35b))](),_0x2ea889=Qs(),_0x100e4c=()=>{const _0x2b75ec=_0x2cbaa9;_0x1214e5[_0x2b75ec(0x4f2)]();const _0x3e0c90=(_0x5b03ed,_0x23eeae,_0x1efddb,_0x436f26)=>{const _0x5498ad=_0x2b75ec;let _0x3f519a=[];switch(_0x5b03ed['id']){case C[_0x5498ad(0x2b5)][_0x5498ad(0x38d)]:{_0x3f519a=C['handleDeleteRangeMoveLeft'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x3f2)]:{_0x3f519a=C['handleDeleteRangeMoveUp'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x5a6)]:{_0x3f519a=C['handleInsertCol'](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x2aa)]:{_0x3f519a=C[_0x5498ad(0x396)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x314)]:{_0x3f519a=C[_0x5498ad(0x523)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x48f)]:{_0x3f519a=C[_0x5498ad(0x5a5)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)][_0x5498ad(0x497)]:{_0x3f519a=C[_0x5498ad(0x258)](_0x5b03ed,_0x436f26);break;}case C[_0x5498ad(0x2b5)]['RemoveColCommandId']:{_0x3f519a=C[_0x5498ad(0x3c3)](_0x5b03ed,_0x436f26);break;}case C['EffectRefRangId'][_0x5498ad(0x2fe)]:{_0x3f519a=C['handleIRemoveRow'](_0x5b03ed,_0x436f26);break;}}const _0x3acc04=C[_0x5498ad(0x479)](_0x3f519a,_0x436f26),_0x54c530=this['cursorInfo'][_0x5498ad(0x34d)](_0x23eeae);if(_0x54c530&&_0x3acc04){const _0x104b14={..._0x54c530,'range':_0x3acc04};this[_0x5498ad(0x49a)][_0x5498ad(0x305)](_0x23eeae,_0x104b14),_0x2ea889(()=>{const _0x4edc55=_0x5498ad,_0x7a1eb7=this['_refRangeService'][_0x4edc55(0x58a)](_0x3acc04,_0xe8f3b9=>(_0x7a1eb7['dispose'](),_0x3e0c90(_0xe8f3b9,_0x23eeae,_0x1efddb,_0x3acc04)));_0x1214e5[_0x4edc55(0x405)](_0x7a1eb7);});}return{'redos':[],'undos':[]};};this[_0x2b75ec(0x49a)][_0x2b75ec(0x339)]((_0x4a84cf,_0x38b2f8)=>{const _0x1e3607=_0x2b75ec,{range:_0x10bca9,sheetID:_0x3d70c8}=_0x4a84cf,_0x4cc52f=this['_refRangeService'][_0x1e3607(0x58a)](_0x10bca9,_0x2c8db4=>(_0x4cc52f[_0x1e3607(0x4f2)](),_0x3e0c90(_0x2c8db4,_0x38b2f8,_0x3d70c8,_0x10bca9)));_0x1214e5[_0x1e3607(0x405)](_0x4cc52f);});};this['disposeWithMe'](a[_0x2cbaa9(0x526)](this[_0x2cbaa9(0x404)]['subscribe'](()=>{_0x100e4c();})));}[_0x3b22f(0x553)](){const _0x51f462=_0x3b22f;var _0x98aea9,_0x462724;if(this[_0x51f462(0x466)]=!0x0,((_0x98aea9=this[_0x51f462(0x340)][_0x51f462(0x255)]())==null?void 0x0:_0x98aea9[_0x51f462(0x52b)]())!==this[_0x51f462(0x40e)])return;const _0x4fad4a=(_0x462724=this[_0x51f462(0x397)][_0x51f462(0x34d)](C[_0x51f462(0x264)])[_0x51f462(0x3f4)]())==null?void 0x0:_0x462724[0x0],_0x38f4fe=this['_univerInstanceService'][_0x51f462(0x4e6)](a[_0x51f462(0x38e)][_0x51f462(0x3c0)])[_0x51f462(0x242)]();_0x4fad4a&&_0x38f4fe&&this[_0x51f462(0x37d)](_0x38f4fe['getSheetId'](),_0x4fad4a);}['_toggleOffline'](){const _0x8e385f=_0x3b22f;this[_0x8e385f(0x466)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a[_0x3b22f(0x252)])),Q(0x3,a['Inject'](Xe)),Q(0x4,a['Inject'](q)),Q(0x5,a[_0x3b22f(0x26b)]),Q(0x6,a[_0x3b22f(0x323)]),Q(0x7,a[_0x3b22f(0x492)](C[_0x3b22f(0x44b)]))],He);var ei=Object[_0x3b22f(0x1ff)],ti=Object[_0x3b22f(0x246)],si=(_0x2253f8,_0x5ae97f,_0xde16c2,_0x2e8c02)=>{const _0x410075=_0x3b22f;for(var _0x3e14b3=_0x2e8c02>0x1?void 0x0:_0x2e8c02?ti(_0x5ae97f,_0xde16c2):_0x5ae97f,_0x1c68bf=_0x2253f8[_0x410075(0x291)]-0x1,_0x2b53f3;_0x1c68bf>=0x0;_0x1c68bf--)(_0x2b53f3=_0x2253f8[_0x1c68bf])&&(_0x3e14b3=(_0x2e8c02?_0x2b53f3(_0x5ae97f,_0xde16c2,_0x3e14b3):_0x2b53f3(_0x3e14b3))||_0x3e14b3);return _0x2e8c02&&_0x3e14b3&&ei(_0x5ae97f,_0xde16c2,_0x3e14b3),_0x3e14b3;},Pe=(_0x25ccac,_0x345f4c)=>(_0x3df078,_0x5593b4)=>_0x345f4c(_0x3df078,_0x5593b4,_0x25ccac);let ie=class extends a[_0x3b22f(0x398)]{constructor(_0x231ee1,_0x57d257,_0x2b613c){const _0xe83739=_0x3b22f;super(),d(this,_0xe83739(0x4de),new Map()),d(this,_0xe83739(0x3fd),new v[(_0xe83739(0x25f))]()),(this['_univerInstanceService']=_0x231ee1,this['_injector']=_0x57d257,this[_0xe83739(0x27c)]=_0x2b613c,this[_0xe83739(0x341)]());}[_0x3b22f(0x4f2)](){const _0x3321a6=_0x3b22f;super[_0x3321a6(0x4f2)](),this[_0x3321a6(0x3fd)][_0x3321a6(0x2ec)](),this[_0x3321a6(0x4de)][_0x3321a6(0x339)](_0x40c9c0=>_0x40c9c0[_0x3321a6(0x4f2)]());}[_0x3b22f(0x4f4)](_0x4017d2){const _0x49d94c=_0x3b22f;return this[_0x49d94c(0x4de)][_0x49d94c(0x3e5)](_0x4017d2)?this[_0x49d94c(0x4de)]['get'](_0x4017d2)[_0x49d94c(0x4aa)]:this[_0x49d94c(0x3fd)][_0x49d94c(0x3de)](v[_0x49d94c(0x3f9)](_0x9f6f51=>_0x9f6f51[_0x49d94c(0x40e)]===_0x4017d2),v[_0x49d94c(0x3fe)](_0x334b3c=>_0x334b3c['cursorInfo$']));}[_0x3b22f(0x341)](){const _0x25df68=_0x3b22f;this[_0x25df68(0x340)][_0x25df68(0x5e8)](a['UniverInstanceType'][_0x25df68(0x3c0)])[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](async _0x4d97c0=>{const _0x531a02=_0x25df68,_0x4494bc=_0x4d97c0[_0x531a02(0x52b)](),_0x185d52=await this[_0x531a02(0x3dd)](_0x4494bc);this[_0x531a02(0x3fd)][_0x531a02(0x52d)](_0x185d52),this[_0x531a02(0x4de)]['set'](_0x4494bc,_0x185d52);}),this[_0x25df68(0x340)]['getTypeOfUnitAdded$'](a['UniverInstanceType'][_0x25df68(0x332)])[_0x25df68(0x3de)](v['takeUntil'](this['dispose$']))[_0x25df68(0x3de)](v[_0x25df68(0x3f9)](_0x188499=>!_0x188499['getUnitId']()[_0x25df68(0x561)]('__')))[_0x25df68(0x42c)](async _0x16d219=>{const _0x2ab719=_0x25df68,_0x1cadb0=_0x16d219[_0x2ab719(0x52b)](),_0x4811c2=await this[_0x2ab719(0x281)](_0x1cadb0);this[_0x2ab719(0x3fd)][_0x2ab719(0x52d)](_0x4811c2),this['_entities']['set'](_0x1cadb0,_0x4811c2);}),v['merge'](this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x332)]),this[_0x25df68(0x340)][_0x25df68(0x24f)](a[_0x25df68(0x38e)][_0x25df68(0x3c0)]))[_0x25df68(0x3de)](v[_0x25df68(0x37c)](this[_0x25df68(0x2e1)]))[_0x25df68(0x42c)](_0x2ed698=>{const _0x48390f=_0x25df68,_0x39329b=_0x2ed698[_0x48390f(0x52b)](),_0x4ce304=this[_0x48390f(0x4de)]['get'](_0x39329b);_0x4ce304&&(_0x4ce304['dispose'](),this[_0x48390f(0x4de)][_0x48390f(0x2cc)](_0x39329b));});}async[_0x3b22f(0x3dd)](_0x64a107){const _0x292ecd=_0x3b22f,_0x3ddf3b=await this[_0x292ecd(0x27c)][_0x292ecd(0x578)](_0x64a107),_0x23df5e=this['_injector'][_0x292ecd(0x5e4)](He,_0x64a107,_0x3ddf3b);return _0x23df5e[_0x292ecd(0x358)](),_0x23df5e;}async[_0x3b22f(0x281)](_0x2fe84a){const _0x22e3ab=_0x3b22f,_0x172bc8=await this['_collabSessionService'][_0x22e3ab(0x578)](_0x2fe84a),_0x3af732=this[_0x22e3ab(0x397)]['createInstance']($e,_0x2fe84a,_0x172bc8);return _0x3af732[_0x22e3ab(0x358)](),_0x3af732;}};ie=si([Pe(0x0,a[_0x3b22f(0x26b)]),Pe(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Pe(0x2,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x3de569,_0x249b26){const _0x1f8afa=_0x3b22f;let {radius:_0x4764d6,width:_0x4038fb,height:_0xc37411}=_0x249b26;_0x4764d6=_0x4764d6!=null?_0x4764d6:0x0,_0x4038fb=_0x4038fb!=null?_0x4038fb:0x1e,_0xc37411=_0xc37411!=null?_0xc37411:0x1e;let _0x244882=0x0,_0x31c797=0x0,_0x262140=0x0;_0x244882=_0x31c797=_0x262140=Math[_0x1f8afa(0x5de)](_0x4764d6,_0x4038fb/0x2,_0xc37411/0x2),_0x3de569['beginPath'](),_0x3de569[_0x1f8afa(0x57e)](_0x244882,0x0),_0x3de569[_0x1f8afa(0x342)](_0x4038fb-_0x31c797,0x0),_0x3de569[_0x1f8afa(0x3b1)](_0x4038fb-_0x31c797,_0x31c797,_0x31c797,Math['PI']*0x3/0x2,0x0,!0x1),_0x3de569['lineTo'](_0x4038fb,_0xc37411-_0x262140),_0x3de569['arc'](_0x4038fb-_0x262140,_0xc37411-_0x262140,_0x262140,0x0,Math['PI']/0x2,!0x1),_0x3de569[_0x1f8afa(0x342)](0x0,_0xc37411),_0x3de569[_0x1f8afa(0x342)](0x0,_0x244882),_0x3de569[_0x1f8afa(0x3b1)](_0x244882,_0x244882,_0x244882,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3de569['closePath'](),_0x249b26['fill']&&(_0x3de569[_0x1f8afa(0x1f5)](),_0x3de569[_0x1f8afa(0x38f)]=_0x249b26[_0x1f8afa(0x2f2)],_0x249b26['fillRule']===_0x1f8afa(0x50b)?_0x3de569['fill'](_0x1f8afa(0x50b)):_0x3de569['fill'](),_0x3de569[_0x1f8afa(0x372)]());}class Te extends R[_0x3b22f(0x28e)]{constructor(_0x2bf1f6,_0xd9ee83){const _0x189588=_0x3b22f;super(_0x2bf1f6,_0xd9ee83),d(this,'color'),d(this,_0x189588(0x41e)),(this['color']=_0xd9ee83==null?void 0x0:_0xd9ee83[_0x189588(0x1e9)],this[_0x189588(0x41e)]=_0xd9ee83==null?void 0x0:_0xd9ee83['text']);}static[_0x3b22f(0x5dd)](_0x3c04ed,_0x14dfaf){const _0x1e575b=_0x3b22f,{text:_0x33787b,color:_0x314a03}=_0x14dfaf;_0x3c04ed[_0x1e575b(0x1f5)](),_0x3c04ed['font']='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x41ad12=_0x3c04ed[_0x1e575b(0x5ba)](_0x33787b)[_0x1e575b(0x481)],_0x457a51=Math[_0x1e575b(0x5de)](_0x41ad12+0x2*we,rt);ni(_0x3c04ed,{'height':ue,'radius':0x4,'width':_0x457a51,'fill':_0x314a03,'evented':!0x1}),_0x3c04ed[_0x1e575b(0x38f)]='#FFF';const _0xc0d7aa=we,_0x512864=ue-ii,_0x3ca160=rt-0x2*we;if(_0x41ad12>_0x3ca160){let _0x3085aa='',_0x20d62b=0x0;for(const _0x5e2947 of _0x33787b){const _0x105e0b=_0x3c04ed[_0x1e575b(0x5ba)](_0x5e2947)[_0x1e575b(0x481)];if(_0x20d62b+_0x105e0b<=_0x3ca160-_0x3c04ed[_0x1e575b(0x5ba)](_0x1e575b(0x253))[_0x1e575b(0x481)])_0x3085aa+=_0x5e2947,_0x20d62b+=_0x105e0b;else{_0x3085aa+=_0x1e575b(0x253);break;}}_0x3c04ed[_0x1e575b(0x295)](_0x3085aa,_0xc0d7aa,_0x512864);}else _0x3c04ed[_0x1e575b(0x295)](_0x33787b,_0xc0d7aa,_0x512864);_0x3c04ed[_0x1e575b(0x372)]();}[_0x3b22f(0x4cc)](_0x480ef1){const _0x4fc489=_0x3b22f;Te[_0x4fc489(0x5dd)](_0x480ef1,this);}}const Me=_0x3b22f(0x4c9),ri=_0x3b22f(0x41c),oi='collab-rect-range-',ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x3b22f(0x579);function _0x2c53(_0x3be5e2,_0x117f23){const _0x1d05c6=_0x1d05();return _0x2c53=function(_0x2c539a,_0x1cbb06){_0x2c539a=_0x2c539a-0x1e1;let _0x510421=_0x1d05c6[_0x2c539a];return _0x510421;},_0x2c53(_0x3be5e2,_0x117f23);}class ot{constructor(_0x50eac7,_0x2aa3c7,_0x123588,_0x32312d){const _0x261ec7=_0x3b22f;d(this,_0x261ec7(0x457),[]),d(this,_0x261ec7(0x46a),null),d(this,_0x261ec7(0x46d),null),d(this,_0x261ec7(0x57c),null),d(this,_0x261ec7(0x39f),null),d(this,'_eventUnsubscribe',null),(this[_0x261ec7(0x581)]=_0x50eac7,this[_0x261ec7(0x573)]=_0x2aa3c7,this['_docSkeleton']=_0x123588,this['_document']=_0x32312d,this[_0x261ec7(0x5a8)]());}set['_hover'](_0x5690e4){const _0x5d9edb=_0x3b22f;_0x5690e4?(this['_anchorDot']&&this[_0x5d9edb(0x57c)][_0x5d9edb(0x2ba)](),this[_0x5d9edb(0x46d)]&&this[_0x5d9edb(0x46d)][_0x5d9edb(0x224)]()):(this[_0x5d9edb(0x57c)]&&this['_anchorDot'][_0x5d9edb(0x224)](),this['_textBubble']&&this['_textBubble'][_0x5d9edb(0x2ba)]());}['dispose'](){const _0x4215c2=_0x3b22f;for(const _0x52fba3 of this[_0x4215c2(0x457)])_0x52fba3[_0x4215c2(0x4f2)]();this[_0x4215c2(0x46d)]&&this[_0x4215c2(0x46d)]['dispose'](),this[_0x4215c2(0x57c)]&&this[_0x4215c2(0x57c)][_0x4215c2(0x4f2)](),this[_0x4215c2(0x46a)]&&this[_0x4215c2(0x46a)]['dispose'](),this[_0x4215c2(0x248)]&&this['_eventUnsubscribe']();}['_render'](){const _0x593cfd=_0x3b22f;var _0x501c9f;const {_docSkeleton:_0x20e755,_document:_0x819570}=this,{color:_0x2ab924,name:_0x55abb7,ranges:_0xef9f8d}=this['_cursor'],_0x933742=_0x819570['getOffsetConfig'](),{docsLeft:_0x68fcb5,docsTop:_0xad7b62}=_0x933742,_0x273820=new w[(_0x593cfd(0x58d))](_0x933742,_0x20e755);for(const {startOffset:_0x3b787b,endOffset:_0x2931a9,collapsed:_0x41a7dd,isActive:_0x1425dc}of _0xef9f8d){const _0xd115ed=_0x20e755['findNodePositionByCharIndex'](_0x3b787b),_0x40b812=_0x20e755[_0x593cfd(0x540)](_0x2931a9);if(_0x1425dc){const {contentBoxPointGroup:_0x22acb0}=_0x273820[_0x593cfd(0x30f)](_0x40b812,_0x40b812);if(_0x22acb0[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x41b)](_0x2ab924,_0x22acb0,_0x68fcb5,_0xad7b62,_0x55abb7),this[_0x593cfd(0x248)]=this[_0x593cfd(0x286)]();}if(!_0x41a7dd&&_0xd115ed&&_0x40b812){if(w[_0x593cfd(0x28c)](_0xd115ed,_0x40b812)){const _0x2bd01b=new w[(_0x593cfd(0x282))](_0x933742,_0x20e755),{pointGroup:_0x38c0d1}=(_0x501c9f=_0x2bd01b[_0x593cfd(0x30f)](_0xd115ed,_0x40b812))!=null?_0x501c9f:{};if(_0x38c0d1==null||_0x38c0d1[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x1fc)](_0x2ab924,_0x38c0d1,_0x68fcb5,_0xad7b62);}else{const {contentBoxPointGroup:_0x41f668}=_0x273820[_0x593cfd(0x30f)](_0xd115ed,_0x40b812);if(_0x41f668[_0x593cfd(0x291)]===0x0)continue;this[_0x593cfd(0x520)](_0x2ab924,_0x41f668,_0x68fcb5,_0xad7b62);}}}}[_0x3b22f(0x41b)](_0x59f3c5,_0x20e5e7,_0x157193,_0x4bb5de,_0x559fd0){const _0x2e8769=_0x3b22f,_0x246896=this[_0x2e8769(0x3d3)](_0x20e5e7),{left:_0x51a1d0,top:_0x5a1d3d,height:_0x40a047}=_0x246896,_0x13b53d=this['_getScale'](),_0x1bba98=ci/_0x13b53d,_0x1bfe24=new R['Rect'](Me+a['Tools'][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de,'height':_0x40a047,'width':ai,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':_0x1bba98,'stroke':li,'evented':!0x0});this['_anchor']=_0x1bfe24,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x1bfe24,w[_0x2e8769(0x5a0)]);const _0x21f2de=new R['Rect'](Me+a[_0x2e8769(0x27d)]['generateRandomId'](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x59f3c5||R['getColor'](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'strokeWidth':0x0,'stroke':_0x59f3c5||R[_0x2e8769(0x427)](a[_0x2e8769(0x541)][_0x2e8769(0x4b3)],0x0),'evented':!0x1});this[_0x2e8769(0x57c)]=_0x21f2de,this[_0x2e8769(0x573)][_0x2e8769(0x2ff)](_0x21f2de,w[_0x2e8769(0x5a0)]);const _0x401a3a=new Te(Me+a[_0x2e8769(0x27d)][_0x2e8769(0x409)](ce),{'left':_0x51a1d0+_0x157193-_0x1bba98,'top':_0x5a1d3d+_0x4bb5de-ue,'text':_0x559fd0,'color':_0x59f3c5});this[_0x2e8769(0x46d)]=_0x401a3a,this['_scene'][_0x2e8769(0x2ff)](_0x401a3a,w[_0x2e8769(0x5a0)]),this[_0x2e8769(0x468)]=!0x1;}[_0x3b22f(0x286)](){const _0x59e1f3=_0x3b22f,_0x4527e2=this['_anchor'][_0x59e1f3(0x27a)][_0x59e1f3(0x3be)](()=>{const _0x398f6f=_0x59e1f3;this[_0x398f6f(0x468)]=!0x0;}),_0x55490b=this[_0x59e1f3(0x46a)]['onPointerLeave$'][_0x59e1f3(0x3be)](()=>{const _0x52193e=_0x59e1f3;this['_hideTimer']&&clearTimeout(this[_0x52193e(0x39f)]),this[_0x52193e(0x39f)]=setTimeout(()=>{const _0x586c4c=_0x52193e;this[_0x586c4c(0x468)]=!0x1;},0x7d0);});return()=>{const _0x2c9d62=_0x59e1f3;_0x4527e2['unsubscribe'](),_0x55490b[_0x2c9d62(0x3d4)]();};}[_0x3b22f(0x520)](_0x268032,_0x400ab3,_0x244da5,_0x256e2a){const _0x333598=_0x3b22f,_0x47c078=new a[(_0x333598(0x35a))](_0x268032)[_0x333598(0x236)](0.2)[_0x333598(0x532)](),_0x43f15c=new R[(_0x333598(0x3e1))](ri+a[_0x333598(0x27d)][_0x333598(0x409)](ce),{'pointsGroup':_0x400ab3,'fill':_0x47c078||R['getColor'](a[_0x333598(0x541)][_0x333598(0x4b3)],0.2),'left':_0x244da5,'top':_0x256e2a,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x333598(0x1ed)](_0x43f15c),this['_scene']['addObject'](_0x43f15c,w[_0x333598(0x5a0)]);}[_0x3b22f(0x1fc)](_0x1d3bd0,_0x307bb7,_0x539e4d,_0x231f52){const _0x41c927=_0x3b22f,_0x1b7b1b=new a[(_0x41c927(0x35a))](_0x1d3bd0)[_0x41c927(0x236)](0.2)[_0x41c927(0x532)](),_0x2b9429=new R[(_0x41c927(0x3e1))](oi+a[_0x41c927(0x27d)][_0x41c927(0x409)](ce),{'pointsGroup':_0x307bb7,'fill':_0x1b7b1b||R['getColor'](a[_0x41c927(0x541)]['black'],0.2),'left':_0x539e4d,'top':_0x231f52,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x41c927(0x1ed)](_0x2b9429),this[_0x41c927(0x573)][_0x41c927(0x2ff)](_0x2b9429,w[_0x41c927(0x5a0)]);}[_0x3b22f(0x3d3)](_0x49d193){const _0xfd6647=_0x49d193[0x0],_0x524ca3=_0xfd6647[0x0],_0x45e720=_0xfd6647[0x2],{x:_0x48ac2b,y:_0x44c32d}=_0x524ca3,{x:_0x25df25,y:_0x389c1a}=_0x45e720;return{'left':_0x48ac2b,'top':_0x44c32d,'width':_0x25df25-_0x48ac2b,'height':_0x389c1a-_0x44c32d};}[_0x3b22f(0x24c)](){const _0x2a9200=_0x3b22f,{scaleX:_0x57d8f3,scaleY:_0x36063d}=this[_0x2a9200(0x573)][_0x2a9200(0x4a1)]();return Math[_0x2a9200(0x31e)](_0x57d8f3,_0x36063d);}}var hi=Object['defineProperty'],_i=Object[_0x3b22f(0x246)],ui=(_0xfadf41,_0x2b7ab9,_0x111a35,_0x1eb655)=>{const _0x44533e=_0x3b22f;for(var _0xd18abb=_0x1eb655>0x1?void 0x0:_0x1eb655?_i(_0x2b7ab9,_0x111a35):_0x2b7ab9,_0x4cd94b=_0xfadf41[_0x44533e(0x291)]-0x1,_0x5e6014;_0x4cd94b>=0x0;_0x4cd94b--)(_0x5e6014=_0xfadf41[_0x4cd94b])&&(_0xd18abb=(_0x1eb655?_0x5e6014(_0x2b7ab9,_0x111a35,_0xd18abb):_0x5e6014(_0xd18abb))||_0xd18abb);return _0x1eb655&&_0xd18abb&&hi(_0x2b7ab9,_0x111a35,_0xd18abb),_0xd18abb;},de=(_0x87f741,_0x38aa3b)=>(_0x30b7be,_0x44c04e)=>_0x38aa3b(_0x30b7be,_0x44c04e,_0x87f741);let xe=class extends a['RxDisposable']{constructor(_0x5f43eb,_0x28de74,_0x48a793,_0x2c5cac,_0x3b094c){const _0x11f209=_0x3b22f;super(),d(this,_0x11f209(0x5c0),[]),d(this,'_cursors',[]),(this[_0x11f209(0x2d8)]=_0x5f43eb,this[_0x11f209(0x464)]=_0x28de74,this[_0x11f209(0x45c)]=_0x48a793,this['_commandService']=_0x2c5cac,this[_0x11f209(0x3d9)]=_0x3b094c,this[_0x11f209(0x341)]());}[_0x3b22f(0x341)](){const _0x830ca6=_0x3b22f,_0xf05871=this['_context'][_0x830ca6(0x3df)],_0x413ef3=this[_0x830ca6(0x464)];this[_0x830ca6(0x283)](v[_0x830ca6(0x417)]([this[_0x830ca6(0x45c)][_0x830ca6(0x4f4)](_0xf05871),this[_0x830ca6(0x3d9)][_0x830ca6(0x3e4)]])[_0x830ca6(0x3de)](E[_0x830ca6(0x57b)](([_0x468008,_0x52d44b])=>({'skeleton':_0x413ef3['getSkeleton'](),'cursors':[..._0x468008[_0x830ca6(0x407)]()][_0x830ca6(0x5c7)](_0x367939=>({..._0x367939,'color':_0x52d44b[_0x367939[_0x830ca6(0x1e9)]]}))})))[_0x830ca6(0x42c)](_0x68dc15=>{const _0x19b43d=_0x830ca6;if(this[_0x19b43d(0x2dc)](),_0x68dc15){const {skeleton:_0x46090d,cursors:_0x43f752}=_0x68dc15;this[_0x19b43d(0x560)](_0x46090d,_0x43f752);}})),this[_0x830ca6(0x447)](),this[_0x830ca6(0x31a)]();}['_updateCollabCursors'](_0x5894fc,_0x2ac514){const _0x32fee=_0x3b22f,{scene:_0x4523d3,mainComponent:_0x50b5b}=this[_0x32fee(0x2d8)],_0x18eb3a=_0x2ac514[_0x32fee(0x57b)](_0x48258c=>new ot(_0x48258c,_0x4523d3,_0x5894fc,_0x50b5b));this['_cursorShapes']=_0x18eb3a,this[_0x32fee(0x304)]=_0x2ac514;}[_0x3b22f(0x441)](){const _0x5aa550=_0x3b22f;this[_0x5aa550(0x2dc)]();const {scene:_0x5927db,mainComponent:_0x48afa1}=this[_0x5aa550(0x2d8)],_0x2d0e9e=this[_0x5aa550(0x464)][_0x5aa550(0x229)](),_0x4b762a=this['_cursors'][_0x5aa550(0x57b)](_0x1c3839=>new ot(_0x1c3839,_0x5927db,_0x2d0e9e,_0x48afa1));this[_0x5aa550(0x5c0)]=_0x4b762a;}['_removeCollabCursors'](){const _0x5127ee=_0x3b22f;this[_0x5127ee(0x5c0)]['forEach'](_0x2d6545=>_0x2d6545['dispose']()),this[_0x5127ee(0x5c0)]=[];}[_0x3b22f(0x31a)](){const _0x322feb=_0x3b22f,_0x31582f=[w[_0x322feb(0x32b)]['id']];this['disposeWithMe'](this[_0x322feb(0x4b9)][_0x322feb(0x2dd)](_0x1496e1=>{const _0x31d215=_0x322feb;_0x31582f[_0x31d215(0x565)](_0x1496e1['id'])&&_0x1496e1[_0x31d215(0x3b6)][_0x31d215(0x3df)]===this[_0x31d215(0x2d8)]['unitId']&&this[_0x31d215(0x441)]();}));}[_0x3b22f(0x447)](){const _0x20487b=_0x3b22f;this['disposeWithMe'](a[_0x20487b(0x401)](this[_0x20487b(0x2d8)][_0x20487b(0x31c)][_0x20487b(0x5be)])[_0x20487b(0x3de)](E[_0x20487b(0x3f9)](_0x4ff955=>_0x4ff955['type']===R[_0x20487b(0x458)]['resize']),E[_0x20487b(0x231)](0x10))[_0x20487b(0x42c)](()=>{const _0x3963c8=_0x20487b;this[_0x3963c8(0x441)]();}));}};xe=ui([de(0x1,a['Inject'](V[_0x3b22f(0x495)])),de(0x2,a[_0x3b22f(0x492)](ie)),de(0x3,a[_0x3b22f(0x323)]),de(0x4,a[_0x3b22f(0x492)](a[_0x3b22f(0x4ab)]))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x3b22f(0x28e)]{constructor(_0x3046af,_0x35f64e){const _0x5a5949=_0x3b22f;super(_0x3046af,_0x35f64e),d(this,_0x5a5949(0x2ab)),d(this,_0x5a5949(0x207),!0x1),d(this,_0x5a5949(0x3ac)),d(this,_0x5a5949(0x26a),''),d(this,_0x5a5949(0x51f),_0x5a5949(0x4d9)),d(this,_0x5a5949(0x369)),(_0x35f64e&&this[_0x5a5949(0x592)](_0x35f64e),this['onPointerEnter$']['subscribeEvent'](()=>this[_0x5a5949(0x592)]({'hovered':!0x0})),this[_0x5a5949(0x247)][_0x5a5949(0x3be)](()=>this['setShapeProps']({'hovered':!0x1})));}[_0x3b22f(0x592)](_0x429d1e){const _0x371e78=_0x3b22f;var _0x471993,_0x11c66f,_0x2a24d5,_0x19dc6e,_0x2a7e0d,_0x47ccff;this[_0x371e78(0x2ab)]=(_0x471993=_0x429d1e['color'])!=null?_0x471993:this[_0x371e78(0x2ab)],this['_hovered']=(_0x11c66f=_0x429d1e[_0x371e78(0x3ab)])!=null?_0x11c66f:this[_0x371e78(0x207)],this[_0x371e78(0x3ac)]=(_0x2a24d5=_0x429d1e['range'])!=null?_0x2a24d5:this['_range'],this['_name']=(_0x19dc6e=_0x429d1e[_0x371e78(0x366)])!=null?_0x19dc6e:this[_0x371e78(0x26a)],this[_0x371e78(0x51f)]=(_0x2a7e0d=_0x429d1e['labelPosition'])!=null?_0x2a7e0d:this[_0x371e78(0x51f)],this[_0x371e78(0x369)]=(_0x47ccff=_0x429d1e[_0x371e78(0x382)])!=null?_0x47ccff:this[_0x371e78(0x369)],this[_0x371e78(0x26f)]({'width':_0x429d1e[_0x371e78(0x481)],'height':_0x429d1e[_0x371e78(0x1f0)]});}[_0x3b22f(0x3b9)](_0x16e32b){const _0x99d0f1=_0x3b22f,{row:_0x1f9cd9,column:_0x48a038}=_0x16e32b;if(_0x1f9cd9>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x472)]&&_0x1f9cd9<=this[_0x99d0f1(0x3ac)]['endRow']&&_0x48a038>=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x595)]&&_0x48a038<=this[_0x99d0f1(0x3ac)][_0x99d0f1(0x375)]){this[_0x99d0f1(0x592)]({'hovered':!0x0});return;}this[_0x99d0f1(0x592)]({'hovered':!0x1});}[_0x3b22f(0x26d)](_0x3a871f){return!0x1;}[_0x3b22f(0x4cc)](_0x202747){const _0xe4eb5a=_0x3b22f;R[_0xe4eb5a(0x299)]['drawWith'](_0x202747,{'width':this[_0xe4eb5a(0x481)],'height':this[_0xe4eb5a(0x1f0)],'strokeWidth':Si,'stroke':this[_0xe4eb5a(0x2ab)],'evented':!0x1,'fill':this[_0xe4eb5a(0x369)]}),this['_hovered']&&(_0x202747[_0xe4eb5a(0x1f5)](),_0x202747['transform'](0x1,0x0,0x0,0x1,this[_0xe4eb5a(0x481)],this['_labelPosition']===_0xe4eb5a(0x3bd)?0x0:-ue),Te[_0xe4eb5a(0x5dd)](_0x202747,{'text':this['_name'],'color':this['_color']}),_0x202747[_0xe4eb5a(0x372)]());}}var vi=Object[_0x3b22f(0x1ff)],fi=Object[_0x3b22f(0x246)],gi=(_0x4a1bcb,_0x2fe850,_0x7204d9,_0x1c60d9)=>{const _0x4c5f5a=_0x3b22f;for(var _0x475012=_0x1c60d9>0x1?void 0x0:_0x1c60d9?fi(_0x2fe850,_0x7204d9):_0x2fe850,_0x3b31a4=_0x4a1bcb[_0x4c5f5a(0x291)]-0x1,_0x42c6f9;_0x3b31a4>=0x0;_0x3b31a4--)(_0x42c6f9=_0x4a1bcb[_0x3b31a4])&&(_0x475012=(_0x1c60d9?_0x42c6f9(_0x2fe850,_0x7204d9,_0x475012):_0x42c6f9(_0x475012))||_0x475012);return _0x1c60d9&&_0x475012&&vi(_0x2fe850,_0x7204d9,_0x475012),_0x475012;},Ae=(_0x14427a,_0x354eb2)=>(_0x297ce,_0x58e85e)=>_0x354eb2(_0x297ce,_0x58e85e,_0x14427a);const mi=0x1389;let ke=class extends a[_0x3b22f(0x398)]{constructor(_0x4671ae,_0x134d1f,_0xe3c33b,_0xce97ca){const _0x5f16c5=_0x3b22f;super(),d(this,_0x5f16c5(0x304),new Set()),d(this,_0x5f16c5(0x351),null),(this['_context']=_0x4671ae,this[_0x5f16c5(0x330)]=_0x134d1f,this[_0x5f16c5(0x45c)]=_0xe3c33b,this[_0x5f16c5(0x3d9)]=_0xce97ca,this[_0x5f16c5(0x341)]());}[_0x3b22f(0x341)](){const _0x46b214=_0x3b22f;this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x3de)](E[_0x46b214(0x37c)](this[_0x46b214(0x2e1)]),E[_0x46b214(0x3fe)](_0x36798e=>{const _0x30ad38=_0x46b214;if(_0x36798e){const _0x4b198e=_0x36798e[_0x30ad38(0x453)];return v[_0x30ad38(0x417)](this['_collabCursorController']['getCollabCursors$'](this[_0x30ad38(0x2d8)][_0x30ad38(0x3df)]),this[_0x30ad38(0x3d9)][_0x30ad38(0x3e4)])[_0x30ad38(0x3de)](E[_0x30ad38(0x57b)](([_0x565e87,_0x157614])=>{const _0x37d621=_0x30ad38,_0x5d3382=new Map();return _0x565e87[_0x37d621(0x339)]((_0x24f436,_0xa78849)=>{const _0x154853=_0x37d621;if(_0x24f436[_0x154853(0x52c)]===_0x4b198e){const _0x45cd01={..._0x24f436};_0x45cd01[_0x154853(0x1e9)]=_0x157614[_0x24f436[_0x154853(0x1e9)]],_0x5d3382['set'](_0xa78849,_0x45cd01);}}),{'skeleton':_0x36798e,'cursors':_0x5d3382};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x46b214(0x42c)](({skeleton:_0x10f994,cursors:_0x417dd5})=>{const _0x1e3b39=_0x46b214;this[_0x1e3b39(0x2dc)](),_0x10f994&&this[_0x1e3b39(0x560)](_0x10f994,_0x417dd5);}),this[_0x46b214(0x330)][_0x46b214(0x350)][_0x46b214(0x42c)](_0x5a8e0b=>{const _0x39fe68=_0x46b214;if(_0x5a8e0b==null)return;const {skeleton:_0x411564}=_0x5a8e0b,{scene:_0x9f5268}=this[_0x39fe68(0x2d8)];_0x9f5268[_0x39fe68(0x51e)][_0x39fe68(0x3be)](a['debounce'](_0x115ea2=>{const _0x5e0248=_0x39fe68;var _0x4c8516,_0x27661a;const {offsetX:_0x2c9223,offsetY:_0x33c2ef}=_0x115ea2,{x:_0x1f2c5a,y:_0x37ccff}=_0x9f5268[_0x5e0248(0x2fd)](R[_0x5e0248(0x559)]['FromArray']([_0x2c9223,_0x33c2ef])),{scaleX:_0x281d56,scaleY:_0x5ac98c}=_0x9f5268['getAncestorScale'](),_0x5b3715=_0x9f5268[_0x5e0248(0x29d)](te['VIEWPORT_KEY'][_0x5e0248(0x59c)]),_0x5ec5f3=_0x9f5268['getVpScrollXYInfoByPosToVp'](R['Vector2'][_0x5e0248(0x313)]([_0x1f2c5a,_0x37ccff]),_0x5b3715),_0x3b00b9=_0x411564['getCellPositionByOffset'](_0x2c9223,_0x33c2ef,_0x281d56,_0x5ac98c,_0x5ec5f3);((_0x4c8516=this[_0x5e0248(0x351)])==null?void 0x0:_0x4c8516['column'])===_0x3b00b9[_0x5e0248(0x5d7)]&&((_0x27661a=this['_lastPointer'])==null?void 0x0:_0x27661a['row'])===_0x3b00b9[_0x5e0248(0x4c5)]||this[_0x5e0248(0x304)]['forEach'](_0xcdaf7e=>{const _0xfccfed=_0x5e0248;_0xcdaf7e[_0xfccfed(0x3b9)](_0x3b00b9);});},0x64));});}[_0x3b22f(0x560)](_0x387538,_0x2d8912){const _0x19d216=_0x3b22f;var _0x3931e4;const _0x219a89=(_0x3931e4=this[_0x19d216(0x330)]['getCurrent']())==null?void 0x0:_0x3931e4['skeleton'];if(!_0x219a89)return;const _0x10616e=this[_0x19d216(0x556)]();if(!_0x10616e)return;this[_0x19d216(0x304)][_0x19d216(0x339)](_0x367948=>{const _0x41630e=_0x19d216;_0x367948[_0x41630e(0x48e)]();});const {scene:_0x40566b}=_0x10616e,_0x22f49a=Ii(Array['from'](_0x2d8912[_0x19d216(0x407)]()))[_0x19d216(0x57b)](_0x3b646b=>{const _0x1c5677=_0x19d216,{color:_0x184522,range:_0x381b22,name:_0x2330fe,selection:_0x4e8ca6,sheetID:_0xf34080}=_0x3b646b,{startColumn:_0x493009,startRow:_0x4b9cff,endColumn:_0x3a58cd,endRow:_0x470f79}=_0x381b22,_0x448fdc=te[_0x1c5677(0x562)](_0x4b9cff,_0x493009,_0x40566b,_0x219a89),_0x1ef8c8=te[_0x1c5677(0x562)](_0x470f79,_0x3a58cd,_0x40566b,_0x219a89),{columnHeaderHeightAndMarginTop:_0x2d5c20}=_0x219a89,{startX:_0x125264,startY:_0xb99fe7}=_0x448fdc,{endX:_0x329c49,endY:_0x1bf0cd}=_0x1ef8c8,_0x141345=_0x329c49-_0x125264,_0x309566=_0x1bf0cd-_0xb99fe7,_0x5ac3c1={'labelPosition':_0xb99fe7-_0x2d5c20>=ue?_0x1c5677(0x4d9):'bottom','sheetID':_0xf34080,'range':_0x381b22,'color':_0x184522,'name':_0x2330fe,'selection':_0x4e8ca6,'left':_0x125264,'top':_0xb99fe7,'width':_0x141345,'height':_0x309566,'evented':!0x1,'zIndex':mi};return new Ot(_0x2330fe,_0x5ac3c1);});_0x40566b[_0x19d216(0x4a9)](_0x22f49a,di),this[_0x19d216(0x304)]=new Set(_0x22f49a);}[_0x3b22f(0x2dc)](){const _0x18e6f5=_0x3b22f;var _0x42c1e0;(_0x42c1e0=this[_0x18e6f5(0x304)])==null||_0x42c1e0[_0x18e6f5(0x339)](_0x232f6e=>_0x232f6e[_0x18e6f5(0x4f2)]());}[_0x3b22f(0x556)](){const _0x2fa5e6=_0x3b22f;return te[_0x2fa5e6(0x287)](this[_0x2fa5e6(0x2d8)][_0x2fa5e6(0x59f)],this[_0x2fa5e6(0x2d8)]);}};ke=gi([Ae(0x1,a[_0x3b22f(0x492)](te[_0x3b22f(0x21a)])),Ae(0x2,a[_0x3b22f(0x492)](ie)),Ae(0x3,a['Inject'](a[_0x3b22f(0x4ab)]))],ke);function Ii(_0x51a7a2){const _0x25738d=_0x3b22f,_0x37d589=new Map();return _0x51a7a2[_0x25738d(0x339)](_0x2dba96=>{const _0x3728f8=_0x25738d;if(_0x37d589[_0x3728f8(0x3e5)](_0x2dba96['selection'])){const _0x5e8aaf=_0x37d589[_0x3728f8(0x34d)](_0x2dba96[_0x3728f8(0x476)]);_0x5e8aaf[_0x3728f8(0x366)]+=',\x20'+_0x2dba96[_0x3728f8(0x366)];}else _0x37d589[_0x3728f8(0x305)](_0x2dba96[_0x3728f8(0x476)],_0x2dba96);}),Array[_0x25738d(0x1e8)](_0x37d589[_0x25738d(0x407)]());}var M=function(){const _0x16e31a=_0x3b22f;return M=Object[_0x16e31a(0x259)]||function(_0x4eee2d){const _0x5c684=_0x16e31a;for(var _0x18806c,_0x3d0aa4=0x1,_0x292f9c=arguments[_0x5c684(0x291)];_0x3d0aa4<_0x292f9c;_0x3d0aa4++){_0x18806c=arguments[_0x3d0aa4];for(var _0x3b796d in _0x18806c)Object[_0x5c684(0x4cf)]['hasOwnProperty'][_0x5c684(0x4d0)](_0x18806c,_0x3b796d)&&(_0x4eee2d[_0x3b796d]=_0x18806c[_0x3b796d]);}return _0x4eee2d;},M[_0x16e31a(0x4cd)](this,arguments);},pi=function(_0x1e0d0e,_0x12c5cb){const _0x3c763d=_0x3b22f;var _0x191ec8={};for(var _0xf3104f in _0x1e0d0e)Object['prototype'][_0x3c763d(0x53f)][_0x3c763d(0x4d0)](_0x1e0d0e,_0xf3104f)&&_0x12c5cb[_0x3c763d(0x238)](_0xf3104f)<0x0&&(_0x191ec8[_0xf3104f]=_0x1e0d0e[_0xf3104f]);if(_0x1e0d0e!=null&&typeof Object[_0x3c763d(0x5da)]==_0x3c763d(0x554)){for(var _0x14bed1=0x0,_0xf3104f=Object[_0x3c763d(0x5da)](_0x1e0d0e);_0x14bed1<_0xf3104f[_0x3c763d(0x291)];_0x14bed1++)_0x12c5cb['indexOf'](_0xf3104f[_0x14bed1])<0x0&&Object[_0x3c763d(0x4cf)][_0x3c763d(0x563)]['call'](_0x1e0d0e,_0xf3104f[_0x14bed1])&&(_0x191ec8[_0xf3104f[_0x14bed1]]=_0x1e0d0e[_0xf3104f[_0x14bed1]]);}return _0x191ec8;},qe=U[_0x3b22f(0x5b8)](function(_0x584ce1,_0x319f75){const _0x15d226=_0x3b22f;var _0x5f5282=_0x584ce1[_0x15d226(0x3c1)],_0x407e4a=_0x584ce1['id'],_0x14b22b=_0x584ce1['className'],_0x345b4b=_0x584ce1['extend'],_0x9dc4e8=pi(_0x584ce1,[_0x15d226(0x3c1),'id','className','extend']),_0x360506=_0x15d226(0x443)[_0x15d226(0x533)](_0x407e4a,'\x20')[_0x15d226(0x533)](_0x14b22b||'')[_0x15d226(0x3fc)](),_0x306198=U[_0x15d226(0x385)]('_'[_0x15d226(0x533)](bi()));return Dt(_0x5f5282,''['concat'](_0x407e4a),{'defIds':_0x5f5282[_0x15d226(0x5e1)],'idSuffix':_0x306198[_0x15d226(0x32e)]},M({'ref':_0x319f75,'className':_0x360506},_0x9dc4e8),_0x345b4b);});function Dt(_0x157d61,_0x3eb8e6,_0x2e08c4,_0x49a5f5,_0x34f3eb){const _0x5a308a=_0x3b22f;return U[_0x5a308a(0x494)](_0x157d61['tag'],M(M({'key':_0x3eb8e6},Ci(_0x157d61,_0x2e08c4,_0x34f3eb)),_0x49a5f5),(Ei(_0x157d61,_0x2e08c4)[_0x5a308a(0x44e)]||[])[_0x5a308a(0x57b)](function(_0x319ddc,_0x45a123){const _0x4a97fa=_0x5a308a;return Dt(_0x319ddc,''[_0x4a97fa(0x533)](_0x3eb8e6,'-')[_0x4a97fa(0x533)](_0x157d61[_0x4a97fa(0x43d)],'-')['concat'](_0x45a123),_0x2e08c4,void 0x0,_0x34f3eb);}));}function Ci(_0x5c9eee,_0x1c5e18,_0x700f90){const _0x15c40d=_0x3b22f;var _0x217ef6=M({},_0x5c9eee[_0x15c40d(0x5d3)]);_0x700f90!=null&&_0x700f90[_0x15c40d(0x20b)]&&_0x217ef6[_0x15c40d(0x2f2)]==='colorChannel1'&&(_0x217ef6[_0x15c40d(0x2f2)]=_0x700f90[_0x15c40d(0x20b)]);var _0x51088a=_0x1c5e18[_0x15c40d(0x5e1)];return!_0x51088a||_0x51088a['length']===0x0||(_0x5c9eee[_0x15c40d(0x43d)]==='use'&&_0x217ef6[_0x15c40d(0x3d1)]&&(_0x217ef6[_0x15c40d(0x3d1)]=_0x217ef6[_0x15c40d(0x3d1)]+_0x1c5e18[_0x15c40d(0x4db)]),Object['entries'](_0x217ef6)[_0x15c40d(0x339)](function(_0x8d3765){const _0x1a7fab=_0x15c40d;var _0x26f651=_0x8d3765[0x0],_0x54c482=_0x8d3765[0x1];typeof _0x54c482=='string'&&(_0x217ef6[_0x26f651]=_0x54c482[_0x1a7fab(0x262)](/url\(#(.*)\)/,_0x1a7fab(0x3f7)[_0x1a7fab(0x533)](_0x1c5e18[_0x1a7fab(0x4db)],')')));})),_0x217ef6;}function Ei(_0xe08c60,_0x164eca){const _0x226177=_0x3b22f;var _0x38605f,_0xe3318a=_0x164eca[_0x226177(0x5e1)];return!_0xe3318a||_0xe3318a[_0x226177(0x291)]===0x0?_0xe08c60:_0xe08c60[_0x226177(0x43d)]===_0x226177(0x50f)&&(!((_0x38605f=_0xe08c60['children'])===null||_0x38605f===void 0x0)&&_0x38605f[_0x226177(0x291)])?M(M({},_0xe08c60),{'children':_0xe08c60[_0x226177(0x44e)][_0x226177(0x57b)](function(_0x84ecb3){const _0x44647b=_0x226177;return typeof _0x84ecb3[_0x44647b(0x5d3)]['id']=='string'&&_0xe3318a&&_0xe3318a['indexOf'](_0x84ecb3['attrs']['id'])>-0x1?M(M({},_0x84ecb3),{'attrs':M(M({},_0x84ecb3['attrs']),{'id':_0x84ecb3[_0x44647b(0x5d3)]['id']+_0x164eca[_0x44647b(0x4db)]})}):_0x84ecb3;})}):_0xe08c60;}function bi(){const _0x265476=_0x3b22f;return Math[_0x265476(0x482)]()[_0x265476(0x4e2)](0x24)[_0x265476(0x35d)](0x2,0x8);}qe[_0x3b22f(0x499)]='UniverIcon';var Ti={'tag':_0x3b22f(0x448),'attrs':{'fill':'none','viewBox':_0x3b22f(0x5a2),'width':_0x3b22f(0x39e),'height':_0x3b22f(0x39e)},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x219)},'children':[{'tag':_0x3b22f(0x321),'attrs':{'stroke':_0x3b22f(0x478),'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':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'off-line-single_clip0_910_343'},'children':[{'tag':'path','attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222)}}]}]}],'defIds':[_0x3b22f(0x5e0)]},yt=U['forwardRef'](function(_0x476043,_0x87e49e){const _0x770cdd=_0x3b22f;return U[_0x770cdd(0x494)](qe,Object[_0x770cdd(0x259)]({},_0x476043,{'id':_0x770cdd(0x355),'ref':_0x87e49e,'icon':Ti}));});yt[_0x3b22f(0x499)]=_0x3b22f(0x5c5);var Ri={'tag':'svg','attrs':{'fill':_0x3b22f(0x2c0),'viewBox':_0x3b22f(0x552),'width':_0x3b22f(0x39e),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x3b22f(0x550)},'children':[{'tag':'path','attrs':{'stroke':_0x3b22f(0x478),'d':_0x3b22f(0x456),'strokeLinecap':_0x3b22f(0x3e6),'strokeLinejoin':_0x3b22f(0x3e6),'strokeWidth':1.2}}]},{'tag':_0x3b22f(0x50f),'attrs':{},'children':[{'tag':_0x3b22f(0x58f),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x3b22f(0x321),'attrs':{'fill':_0x3b22f(0x5e2),'d':_0x3b22f(0x222),'transform':_0x3b22f(0x2b7)}}]}]}],'defIds':[_0x3b22f(0x2f5)]},Ut=U[_0x3b22f(0x5b8)](function(_0x567135,_0x426d4e){const _0x608fdd=_0x3b22f;return U['createElement'](qe,Object[_0x608fdd(0x259)]({},_0x567135,{'id':_0x608fdd(0x1e7),'ref':_0x426d4e,'icon':Ri}));});Ut[_0x3b22f(0x499)]=_0x3b22f(0x2d1);function Pt(_0x4abb31){const _0x17fdac=_0x3b22f;var _0x3a2b3b,_0x23ff24,_0x5580bb='';if(typeof _0x4abb31==_0x17fdac(0x40a)||typeof _0x4abb31==_0x17fdac(0x3f0))_0x5580bb+=_0x4abb31;else{if(typeof _0x4abb31==_0x17fdac(0x529)){if(Array[_0x17fdac(0x33f)](_0x4abb31)){var _0x3bf54a=_0x4abb31[_0x17fdac(0x291)];for(_0x3a2b3b=0x0;_0x3a2b3b<_0x3bf54a;_0x3a2b3b++)_0x4abb31[_0x3a2b3b]&&(_0x23ff24=Pt(_0x4abb31[_0x3a2b3b]))&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}else{for(_0x23ff24 in _0x4abb31)_0x4abb31[_0x23ff24]&&(_0x5580bb&&(_0x5580bb+='\x20'),_0x5580bb+=_0x23ff24);}}}return _0x5580bb;}function Oi(){const _0x1a39d6=_0x3b22f;for(var _0x57a9c5,_0x3e8149,_0x4e3bfe=0x0,_0xf99454='',_0xac0a6f=arguments[_0x1a39d6(0x291)];_0x4e3bfe<_0xac0a6f;_0x4e3bfe++)(_0x57a9c5=arguments[_0x4e3bfe])&&(_0x3e8149=Pt(_0x57a9c5))&&(_0xf99454&&(_0xf99454+='\x20'),_0xf99454+=_0x3e8149);return _0xf99454;}const Di=_0x3b22f(0x5bc),yi=_0x3b22f(0x480),Ui=_0x3b22f(0x53e),Pi=_0x3b22f(0x363),wi='univer-offline',le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x2ec702){const _0x5bc0b9=_0x3b22f;switch(_0x2ec702){case y['OFFLINE']:return _0x5bc0b9(0x3ae);case y[_0x5bc0b9(0x30c)]:return'collabStatus.conflict';case y[_0x5bc0b9(0x416)]:return _0x5bc0b9(0x2ad);case y[_0x5bc0b9(0x4eb)]:return _0x5bc0b9(0x22b);case y[_0x5bc0b9(0x2a6)]:case y[_0x5bc0b9(0x34f)]:case y[_0x5bc0b9(0x4ea)]:return _0x5bc0b9(0x43a);case y[_0x5bc0b9(0x434)]:return'collabStatus.synced';}}function wt(_0x469b64){const _0x17cd9e=_0x3b22f,{status$:_0x18dda2}=_0x469b64,_0x2df0d4=N[_0x17cd9e(0x4fe)](_0x18dda2,y[_0x17cd9e(0x4eb)]),_0x489bc7=a[_0x17cd9e(0x32c)](a[_0x17cd9e(0x583)]),_0x2ca222=a['useDependency'](exports[_0x17cd9e(0x298)]),_0x25c798=_0x2df0d4!==y[_0x17cd9e(0x3ea)],_0x4e54e1=_0x489bc7['t'](Mi(_0x2df0d4)),_0x1702d9=Oi(le[_0x17cd9e(0x30b)],{[le[_0x17cd9e(0x5d1)]]:_0x25c798,[le[_0x17cd9e(0x45f)]]:!_0x25c798}),_0xdf07e6=_0x25c798?U[_0x17cd9e(0x494)](Ut,null):U[_0x17cd9e(0x494)](yt,null),_0x3ee3e4=U[_0x17cd9e(0x391)](()=>{const _0x2a21d4=_0x17cd9e;_0x25c798||_0x2ca222[_0x2a21d4(0x359)]();},[_0x25c798,_0x2ca222]);function _0x3289df(){const _0x128d91=_0x17cd9e;return U[_0x128d91(0x494)](_0x128d91(0x547),{'className':_0x1702d9,'onClick':_0x3ee3e4},U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le['onlineStatusIcon']},_0xdf07e6),U[_0x128d91(0x494)](_0x128d91(0x547),{'className':le[_0x128d91(0x4a5)]},_0x4e54e1));}return _0x25c798?_0x3289df():U[_0x17cd9e(0x494)](X[_0x17cd9e(0x4f6)],{'title':_0x489bc7['t'](_0x17cd9e(0x4ac))},_0x3289df());}var Ni=Object[_0x3b22f(0x1ff)],Ai=Object['getOwnPropertyDescriptor'],Li=(_0x59ea5d,_0x624443,_0x3cef67,_0xeabd1e)=>{const _0x58dfad=_0x3b22f;for(var _0x3c8ba6=_0xeabd1e>0x1?void 0x0:_0xeabd1e?Ai(_0x624443,_0x3cef67):_0x624443,_0x1a520b=_0x59ea5d[_0x58dfad(0x291)]-0x1,_0x14e22a;_0x1a520b>=0x0;_0x1a520b--)(_0x14e22a=_0x59ea5d[_0x1a520b])&&(_0x3c8ba6=(_0xeabd1e?_0x14e22a(_0x624443,_0x3cef67,_0x3c8ba6):_0x14e22a(_0x3c8ba6))||_0x3c8ba6);return _0xeabd1e&&_0x3c8ba6&&Ni(_0x624443,_0x3cef67,_0x3c8ba6),_0x3c8ba6;},Se=(_0x22be0b,_0x38a26e)=>(_0x2db1c9,_0x5b0bba)=>_0x38a26e(_0x2db1c9,_0x5b0bba,_0x22be0b);exports[_0x3b22f(0x52f)]=class extends a['Disposable']{constructor(_0x569987,_0x1fb11e,_0x35d0a3,_0x26b0b1){const _0x4a807e=_0x3b22f;super(),d(this,_0x4a807e(0x4d5),new v[(_0x4a807e(0x502))](y['NOT_COLLAB'])),(this[_0x4a807e(0x340)]=_0x569987,this[_0x4a807e(0x36d)]=_0x1fb11e,this[_0x4a807e(0x397)]=_0x35d0a3,this[_0x4a807e(0x263)]=_0x26b0b1,this[_0x4a807e(0x3a0)](),this['_initStatusListener']());}[_0x3b22f(0x4f0)](){const _0x44f7ea=_0x3b22f;this['disposeWithMe'](this[_0x44f7ea(0x340)][_0x44f7ea(0x289)][_0x44f7ea(0x3de)](v[_0x44f7ea(0x3fe)](()=>{const _0x2139df=_0x44f7ea,_0x17ff28=this[_0x2139df(0x340)]['getFocusedUnit']();return _0x17ff28?this[_0x2139df(0x263)]['getCollabEntity$'](_0x17ff28['getUnitId']()):v['of'](null);}),v[_0x44f7ea(0x3fe)](_0x1e4e4f=>_0x1e4e4f?_0x1e4e4f['status$']:v['of'](y[_0x44f7ea(0x4eb)])))[_0x44f7ea(0x42c)](_0xd1d126=>{const _0x2c7033=_0x44f7ea;this[_0x2c7033(0x4d5)][_0x2c7033(0x52d)](_0xd1d126);}));}[_0x3b22f(0x3a0)](){const _0xff0234=_0x3b22f;this[_0xff0234(0x283)](this[_0xff0234(0x36d)][_0xff0234(0x25a)](N[_0xff0234(0x388)][_0xff0234(0x489)],()=>a[_0xff0234(0x234)](ji({'status$':this[_0xff0234(0x4d5)][_0xff0234(0x56e)]()}),this[_0xff0234(0x397)])));}},exports['DesktopCollaborationStatusDisplayController']=Li([Se(0x0,a[_0x3b22f(0x26b)]),Se(0x1,N[_0x3b22f(0x4c6)]),Se(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),Se(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x322)]))],exports[_0x3b22f(0x52f)]);function ji(_0x4a3287){const {status$:_0x268bbb}=_0x4a3287;return function(){return U['createElement'](wt,{'status$':_0x268bbb});};}const ze=a[_0x3b22f(0x3cd)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x3b22f(0x246)],xi=(_0x1d02f9,_0x3e17f6,_0x38ab8e,_0x546875)=>{const _0x33913c=_0x3b22f;for(var _0x27ddad=_0x546875>0x1?void 0x0:_0x546875?Hi(_0x3e17f6,_0x38ab8e):_0x3e17f6,_0x525591=_0x1d02f9[_0x33913c(0x291)]-0x1,_0x41f358;_0x525591>=0x0;_0x525591--)(_0x41f358=_0x1d02f9[_0x525591])&&(_0x27ddad=(_0x546875?_0x41f358(_0x3e17f6,_0x38ab8e,_0x27ddad):_0x41f358(_0x27ddad))||_0x27ddad);return _0x546875&&_0x27ddad&&$i(_0x3e17f6,_0x38ab8e,_0x27ddad),_0x27ddad;},ee=(_0x4181d8,_0x3b989d)=>(_0x2763da,_0x11286e)=>_0x3b989d(_0x2763da,_0x11286e,_0x4181d8);exports[_0x3b22f(0x4f7)]=class extends a[_0x3b22f(0x398)]{constructor(_0x2be409,_0x40ed7e,_0x43aa6e,_0x2fe4a4,_0x278714,_0x18fc27){const _0x164883=_0x3b22f;super(),this[_0x164883(0x25d)]=_0x2be409,this['_logService']=_0x40ed7e,this[_0x164883(0x4b9)]=_0x43aa6e,this[_0x164883(0x522)]=_0x2fe4a4,this[_0x164883(0x2d9)]=_0x278714,_0x18fc27?_0x18fc27==null||_0x18fc27[_0x164883(0x487)]()['then'](()=>this[_0x164883(0x341)]()):(this[_0x164883(0x445)][_0x164883(0x320)](_0x164883(0x3ca),_0x164883(0x230)),this['_init']());}async[_0x3b22f(0x341)](){const _0x26c3fa=_0x3b22f,_0x451100=this['_urlService'][_0x26c3fa(0x422)](_0x26c3fa(0x59f)),_0x24d3e5=this[_0x26c3fa(0x25d)][_0x26c3fa(0x422)](_0x26c3fa(0x331));if(!_0x451100||!_0x24d3e5){this[_0x26c3fa(0x445)][_0x26c3fa(0x320)](_0x26c3fa(0x3ca),_0x26c3fa(0x34c));return;}switch(Number(_0x24d3e5)){case j['UNIVER_SHEET']:{const _0x240c0b=await this['_loadSheet'](_0x451100);this[_0x26c3fa(0x36a)](_0x240c0b);break;}case j[_0x26c3fa(0x332)]:{await this[_0x26c3fa(0x584)](_0x451100);break;}default:{this['_logService'][_0x26c3fa(0x49d)](_0x26c3fa(0x3ca),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async['_setupSubUnitSync'](_0x10fa00){const _0x5c6e12=_0x3b22f;await this[_0x5c6e12(0x442)](_0x10fa00),_0x10fa00['activeSheet$'][_0x5c6e12(0x3de)](v['takeUntil'](this[_0x5c6e12(0x2e1)]))[_0x5c6e12(0x42c)](_0x2b559f=>{const _0x1f0374=_0x5c6e12;_0x2b559f&&this[_0x1f0374(0x549)](_0x2b559f);}),this[_0x5c6e12(0x25d)][_0x5c6e12(0x4cb)][_0x5c6e12(0x3de)](v[_0x5c6e12(0x37c)](this[_0x5c6e12(0x2e1)]))['subscribe'](()=>this[_0x5c6e12(0x442)](_0x10fa00));}[_0x3b22f(0x549)](_0x204dcf,_0x31daac=!0x1){const _0x4249d7=_0x3b22f,_0x47effc=this[_0x4249d7(0x25d)]['getParam'](_0x4249d7(0x3ad));_0x204dcf[_0x4249d7(0x3b3)]()!==_0x47effc&&this[_0x4249d7(0x25d)][_0x4249d7(0x57f)]('subunit',_0x204dcf['getSheetId'](),_0x31daac);}async[_0x3b22f(0x442)](_0x2d9e02){const _0x512ca1=_0x3b22f;var _0x345365;const _0x1c3b2c=this[_0x512ca1(0x25d)][_0x512ca1(0x422)](_0x512ca1(0x3ad));if(!_0x1c3b2c||!_0x2d9e02[_0x512ca1(0x2f1)](_0x1c3b2c)){const _0x2d576f=_0x2d9e02['getUnhiddenWorksheets']()[0x0],_0x142243=_0x2d9e02[_0x512ca1(0x2f1)](_0x2d576f);if(!_0x142243)return;this[_0x512ca1(0x549)](_0x142243,!0x0),await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02[_0x512ca1(0x52b)](),'subUnitId':_0x2d576f});return;}((_0x345365=_0x2d9e02['getActiveSheet']())==null?void 0x0:_0x345365[_0x512ca1(0x3b3)]())!==_0x1c3b2c&&await this[_0x512ca1(0x4b9)][_0x512ca1(0x2fc)](C[_0x512ca1(0x53b)]['id'],{'unitId':_0x2d9e02['getUnitId'](),'subUnitId':_0x1c3b2c});}async['_loadSheet'](_0x4d4b80){const _0x4c738b=_0x3b22f;let _0x571fd8=0x0;const _0x3f2f46=await this[_0x4c738b(0x522)][_0x4c738b(0x4dd)](_0x4d4b80);return _0x3f2f46&&(_0x3f2f46[_0x4c738b(0x5eb)]||_0x3f2f46[_0x4c738b(0x3a2)][_0x4c738b(0x291)]!==0x0)&&(_0x571fd8=_0x3f2f46[_0x4c738b(0x3a8)]),_0x571fd8===0x0&&this[_0x4c738b(0x445)][_0x4c738b(0x320)](_0x4c738b(0x3ca),_0x4c738b(0x5a7)),this['_snapshotService'][_0x4c738b(0x243)](_0x4d4b80,_0x571fd8);}async['_loadDoc'](_0x968f7a){const _0x3fc017=_0x3b22f;let _0x3ff59f=0x0;const _0x502afe=await this['_localCacheService']['loadOfflineData'](_0x968f7a);return _0x502afe&&(_0x502afe[_0x3fc017(0x5eb)]||_0x502afe[_0x3fc017(0x3a2)][_0x3fc017(0x291)]!==0x0)&&(_0x3ff59f=_0x502afe['rev']),_0x3ff59f===0x0&&this[_0x3fc017(0x445)][_0x3fc017(0x320)](_0x3fc017(0x3ca),_0x3fc017(0x5a7)),this[_0x3fc017(0x2d9)]['loadDoc'](_0x968f7a,_0x3ff59f);}},exports[_0x3b22f(0x4f7)]=xi([ee(0x0,ze),ee(0x1,a[_0x3b22f(0x308)]),ee(0x2,a['ICommandService']),ee(0x3,a['Inject'](exports['LocalCacheService'])),ee(0x4,a['Inject'](_['SnapshotService'])),ee(0x5,a[_0x3b22f(0x5c6)](Wt[_0x3b22f(0x4b2)]))],exports['DataLoaderController']);var ki=Object[_0x3b22f(0x1ff)],Bi=Object[_0x3b22f(0x246)],Vi=(_0x547bdd,_0xe8de67,_0x4b39f0,_0x50c939)=>{const _0x48d6a6=_0x3b22f;for(var _0x24dc93=_0x50c939>0x1?void 0x0:_0x50c939?Bi(_0xe8de67,_0x4b39f0):_0xe8de67,_0x58c631=_0x547bdd[_0x48d6a6(0x291)]-0x1,_0x382dd9;_0x58c631>=0x0;_0x58c631--)(_0x382dd9=_0x547bdd[_0x58c631])&&(_0x24dc93=(_0x50c939?_0x382dd9(_0xe8de67,_0x4b39f0,_0x24dc93):_0x382dd9(_0x24dc93))||_0x24dc93);return _0x50c939&&_0x24dc93&&ki(_0xe8de67,_0x4b39f0,_0x24dc93),_0x24dc93;},at=(_0x40b4ef,_0x106097)=>(_0x2fbecc,_0x3f4ebb)=>_0x106097(_0x2fbecc,_0x3f4ebb,_0x40b4ef);const Wi=_0x3b22f(0x5ee),Fi=_0x3b22f(0x44a);let Ie=class extends a[_0x3b22f(0x4b0)]{constructor(_0x1ca05f,_0x298f35){const _0x4a3f69=_0x3b22f;super(),this[_0x4a3f69(0x340)]=_0x1ca05f,this[_0x4a3f69(0x266)]=_0x298f35,this[_0x4a3f69(0x341)]();}['_init'](){const _0x3ee5db=_0x3b22f;this['disposeWithMe'](this[_0x3ee5db(0x340)]['focused$'][_0x3ee5db(0x42c)](()=>{const _0x311a65=_0x3ee5db;var _0x5ccb6c;const _0x3eae23=this[_0x311a65(0x340)][_0x311a65(0x255)]();let _0x1bac01=(_0x5ccb6c=this[_0x311a65(0x266)][_0x311a65(0x504)](Wi))!=null?_0x5ccb6c:Fi;_0x3eae23 instanceof a['Workbook']&&(_0x1bac01=_0x3eae23[_0x311a65(0x366)]),document[_0x311a65(0x1eb)]=_0x1bac01;}));}};Ie=Vi([at(0x0,a[_0x3b22f(0x26b)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x3b22f(0x1ff)],Yi=Object[_0x3b22f(0x246)],Ki=(_0xf6c05e,_0x18f5e0,_0x466d8b,_0x415f20)=>{const _0x3f50af=_0x3b22f;for(var _0x270380=_0x415f20>0x1?void 0x0:_0x415f20?Yi(_0x18f5e0,_0x466d8b):_0x18f5e0,_0x1f43ed=_0xf6c05e[_0x3f50af(0x291)]-0x1,_0x5d2179;_0x1f43ed>=0x0;_0x1f43ed--)(_0x5d2179=_0xf6c05e[_0x1f43ed])&&(_0x270380=(_0x415f20?_0x5d2179(_0x18f5e0,_0x466d8b,_0x270380):_0x5d2179(_0x270380))||_0x270380);return _0x415f20&&_0x270380&&Gi(_0x18f5e0,_0x466d8b,_0x270380),_0x270380;},Le=(_0xefe9da,_0x24ddc3)=>(_0x182af4,_0x3cee86)=>_0x24ddc3(_0x182af4,_0x3cee86,_0xefe9da);let pe=class{constructor(_0x63eb80,_0x4626ef,_0x364540){const _0xdf8888=_0x3b22f;this['_configService']=_0x63eb80,this['_httpService']=_0x4626ef,this[_0xdf8888(0x41a)]=_0x364540,this['init']();}['init'](){const _0x8025a6=_0x3b22f;this['_httpService'][_0x8025a6(0x3ef)]({'priority':0x1,'interceptor':(_0x2a9e63,_0xf70e3e)=>_0xf70e3e(_0x2a9e63)['pipe'](v[_0x8025a6(0x56c)](async _0x3009bd=>{const _0x4b3252=_0x8025a6,_0x5981fd=_0x3009bd;if(_0x5981fd[_0x4b3252(0x3d2)]===0x191&&window[_0x4b3252(0x32d)](this[_0x4b3252(0x41a)]['t']('auth.needGotoLoginAlert'))){const _0x33bc44=window[_0x4b3252(0x5a9)](window[_0x4b3252(0x353)][_0x4b3252(0x412)]);window['location'][_0x4b3252(0x412)]=this[_0x4b3252(0x29c)]()+_0x4b3252(0x5c3)+_0x33bc44;}return _0x5981fd;}))});}[_0x3b22f(0x29c)](){const _0x1a93f6=_0x3b22f;var _0x5d2f3a,_0x35957f;const _0x45c509=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](mt),_0x2f534a=this[_0x1a93f6(0x266)][_0x1a93f6(0x504)](A);return(_0x35957f=(_0x5d2f3a=_0x2f534a==null?void 0x0:_0x2f534a['loginUrlKey'])!=null?_0x5d2f3a:_0x45c509)!=null?_0x35957f:es;}};pe=Ki([Le(0x0,a[_0x3b22f(0x5ad)]),Le(0x1,a['Inject'](P['HTTPService'])),Le(0x2,a[_0x3b22f(0x492)](a[_0x3b22f(0x583)]))],pe);var Xi=Object[_0x3b22f(0x1ff)],qi=Object[_0x3b22f(0x246)],zi=(_0x34ff20,_0x432a77,_0x33ecff,_0x2709b4)=>{for(var _0xca2fdb=_0x2709b4>0x1?void 0x0:_0x2709b4?qi(_0x432a77,_0x33ecff):_0x432a77,_0x22ddb8=_0x34ff20['length']-0x1,_0x5df3d4;_0x22ddb8>=0x0;_0x22ddb8--)(_0x5df3d4=_0x34ff20[_0x22ddb8])&&(_0xca2fdb=(_0x2709b4?_0x5df3d4(_0x432a77,_0x33ecff,_0xca2fdb):_0x5df3d4(_0xca2fdb))||_0xca2fdb);return _0x2709b4&&_0xca2fdb&&Xi(_0x432a77,_0x33ecff,_0xca2fdb),_0xca2fdb;},ct=(_0x5bd9fb,_0x233ab8)=>(_0x53fa5b,_0x3df850)=>_0x233ab8(_0x53fa5b,_0x3df850,_0x5bd9fb);const Mt=_0x3b22f(0x211),Ji=_0x3b22f(0x1f2);exports[_0x3b22f(0x38b)]=class extends a[_0x3b22f(0x4b0)]{constructor(_0xc80b97,_0x5bd7f7){const _0x133148=_0x3b22f;super(),this[_0x133148(0x3a9)]=_0xc80b97,this[_0x133148(0x266)]=_0x5bd7f7,this[_0x133148(0x551)]();}['_initMergeInterceptor'](){const _0x3bef95=_0x3b22f,_0x3d9ba5=this;this[_0x3bef95(0x283)](this[_0x3bef95(0x3a9)][_0x3bef95(0x3ef)]({'priority':0x3e7,'interceptor':P[_0x3bef95(0x5b2)]({'isMatch'(_0x3c780f){const _0x3e6c97=_0x3bef95;var _0x597ad9;if(_0x3c780f[_0x3e6c97(0x21b)]===_0x3e6c97(0x3d6)&&((_0x597ad9=_0x3c780f[_0x3e6c97(0x209)])!=null&&_0x597ad9[_0x3e6c97(0x30a)])){const {objectID:_0xd8b2a1,objectType:_0x344e27}=_0x3c780f[_0x3e6c97(0x209)][_0x3e6c97(0x30a)]||{};if(!_0xd8b2a1||_0x344e27===void 0x0)return!0x1;const _0x42df27=_0x3d9ba5[_0x3e6c97(0x413)]()+'/'+_0x344e27+_0x3e6c97(0x310)+_0xd8b2a1+_0x3e6c97(0x420);if(_0x3c780f[_0x3e6c97(0x5ab)]===_0x42df27)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x19176d){const _0xd36113=_0x3bef95;var _0x1cd948;return(_0x1cd948=_0x19176d[_0xd36113(0x209)])==null?void 0x0:_0x1cd948[_0xd36113(0x30a)];},'mergeParamsToRequest'(_0x27e6ea,_0x93fc6e){const _0x519106=_0x3bef95,_0x2abffd=_0x3d9ba5[_0x519106(0x413)]()+_0x519106(0x53a),_0x250488=_0x27e6ea['reduce']((_0x5dccf1,_0x1114aa)=>{const _0x5c3cf8=_0x519106,{unitID:_0x51891a,objectID:_0x3f593e,objectType:_0x3e4c03,actions:_0x13a720}=_0x1114aa;return _0x5dccf1[_0x51891a]||(_0x5dccf1[_0x51891a]={}),_0x5dccf1[_0x51891a][_0x3f593e]||(_0x5dccf1[_0x51891a][_0x3f593e]={'objectID':_0x3f593e,'objectType':_0x3e4c03,'actions':[]}),_0x5dccf1[_0x51891a][_0x3f593e][_0x5c3cf8(0x2b2)][_0x5c3cf8(0x1ed)](..._0x13a720),_0x5dccf1;},{}),_0x43083b=[];for(const _0x283fed in _0x250488)for(const _0x9b6352 in _0x250488[_0x283fed]){const {actions:_0x51ec5e,objectType:_0x138ce0}=_0x250488[_0x283fed][_0x9b6352],_0x5c2b3e=[...new Set(_0x51ec5e)];_0x43083b[_0x519106(0x1ed)]({'unitID':_0x283fed,'objectID':_0x9b6352,'objectType':_0x138ce0,'actions':_0x5c2b3e});}return new P[(_0x519106(0x3ba))](_0x519106(0x3d6),_0x2abffd,{'headers':_0x93fc6e['headers'],'withCredentials':_0x93fc6e[_0x519106(0x203)],'responseType':_0x93fc6e[_0x519106(0x20e)],'body':{'requests':_0x43083b}});}},{'distributeResult'(_0x2c2376,_0x180ebe){const _0x34babb=_0x3bef95,{objectActions:_0x484a83}=_0x2c2376;return _0x180ebe[_0x34babb(0x57b)](_0x4efdad=>{const _0x3b4446=_0x34babb,{unitID:_0x4a6de7,objectID:_0x3cd83b,actions:_0x28f13e}=_0x4efdad,_0x6611f4=_0x484a83[_0x3b4446(0x5dc)](_0x39eada=>_0x39eada[_0x3b4446(0x40e)]===_0x4a6de7&&_0x39eada[_0x3b4446(0x205)]===_0x3cd83b),_0x31e5f2=_0x28f13e['map'](_0x43fbc4=>_0x6611f4==null?void 0x0:_0x6611f4[_0x3b4446(0x2b2)][_0x3b4446(0x5dc)](_0x375dc3=>_0x375dc3[_0x3b4446(0x4ff)]===_0x43fbc4))[_0x3b4446(0x3f9)](_0x316cce=>!!_0x316cce);return{'config':_0x4efdad,'result':{'actions':_0x31e5f2,'error':_0x2c2376[_0x3b4446(0x49d)]}};});}})}));}[_0x3b22f(0x413)](){const _0x324bc2=_0x3b22f;var _0x10af99,_0x269adc;const _0x219375=this['_configService'][_0x324bc2(0x504)](Mt),_0x5b046f=this[_0x324bc2(0x266)][_0x324bc2(0x504)](A);return(_0x269adc=(_0x10af99=_0x5b046f==null?void 0x0:_0x5b046f['authzUrl'])!=null?_0x10af99:_0x219375)!=null?_0x269adc:Ji;}async[_0x3b22f(0x254)](_0x3e0d05){const _0x31813c=_0x3b22f,_0x13b754=this[_0x31813c(0x413)]()+'/'+_0x3e0d05[_0x31813c(0x2c3)]+_0x31813c(0x429);return(await this[_0x31813c(0x3a9)][_0x31813c(0x221)](_0x13b754,{'body':_0x3e0d05}))['body'][_0x31813c(0x205)]||'';}async[_0x3b22f(0x3f5)](_0x17bc6f){const _0x482af1=_0x3b22f,_0x8f3ecc=this[_0x482af1(0x413)]()+_0x482af1(0x589);return(await this[_0x482af1(0x3a9)]['post'](_0x8f3ecc,{'body':_0x17bc6f}))[_0x482af1(0x30a)]['objects'];}async[_0x3b22f(0x36c)](_0x49dc67){const _0x601fc1=_0x3b22f,_0x167c19=this[_0x601fc1(0x413)]()+'/'+_0x49dc67['objectType']+_0x601fc1(0x310)+_0x49dc67[_0x601fc1(0x205)];await this[_0x601fc1(0x3a9)][_0x601fc1(0x511)](_0x167c19,{'body':_0x49dc67});}async[_0x3b22f(0x4d1)](_0x40ba96){const _0xea5957=_0x3b22f,_0x5d475a=this[_0xea5957(0x413)]()+'/'+_0x40ba96['objectType']+_0xea5957(0x310)+_0x40ba96[_0xea5957(0x205)]+_0xea5957(0x420);return(await this[_0xea5957(0x3a9)][_0xea5957(0x221)](_0x5d475a,{'body':_0x40ba96}))['body'][_0xea5957(0x2b2)];}async[_0x3b22f(0x3e0)](_0x163f37){const _0xe42f33=_0x3b22f,_0x48b494=this[_0xe42f33(0x413)]()+_0xe42f33(0x53a);return(await this['_HTTPService'][_0xe42f33(0x221)](_0x48b494,{'body':{'requests':_0x163f37}}))[_0xe42f33(0x30a)]['objectActions'];}async[_0x3b22f(0x1e6)](_0x3fe5c3){const _0x39ffe2=_0x3b22f,_0x32d447=this[_0x39ffe2(0x413)]()+'/'+_0x3fe5c3[_0x39ffe2(0x2c3)]+_0x39ffe2(0x5d8),_0xb41e5f=await this[_0x39ffe2(0x3a9)][_0x39ffe2(0x221)](_0x32d447,{'body':_0x3fe5c3});return{'roles':_0xb41e5f['body'][_0x39ffe2(0x57a)],'actions':_0xb41e5f[_0x39ffe2(0x30a)][_0x39ffe2(0x2b2)]};}async['deleteCollaborator'](_0x464ca6){const _0x5510cc=_0x3b22f,_0x14a3f6=this['_getAPIPrefixPath']()+_0x5510cc(0x4fc);await this[_0x5510cc(0x3a9)][_0x5510cc(0x2cc)](_0x14a3f6,{'params':{'collaboratorID':_0x464ca6[_0x5510cc(0x3da)],'objectID':_0x464ca6[_0x5510cc(0x205)],'unitID':_0x464ca6['unitID']}});}async[_0x3b22f(0x24b)](_0x41549c){const _0x4c7af2=_0x3b22f,_0x3849bc=this['_getAPIPrefixPath']()+_0x4c7af2(0x4fc);await this['_HTTPService']['patch'](_0x3849bc,{'body':_0x41549c});}async[_0x3b22f(0x245)](_0x107054){const _0x26cea6=_0x3b22f,_0x36d6c8=this[_0x26cea6(0x413)]()+_0x26cea6(0x4fc);await this['_HTTPService'][_0x26cea6(0x221)](_0x36d6c8,{'body':_0x107054});}async['listCollaborators'](_0x3f5ff2){const _0x1c2e4a=_0x3b22f,_0x5e220d=this[_0x1c2e4a(0x413)]()+_0x1c2e4a(0x4fc);return(await this['_HTTPService'][_0x1c2e4a(0x34d)](_0x5e220d,{'params':{'objectID':_0x3f5ff2[_0x1c2e4a(0x205)],'unitID':_0x3f5ff2[_0x1c2e4a(0x40e)]}}))[_0x1c2e4a(0x30a)][_0x1c2e4a(0x2bb)];}async['putCollaborators'](_0x278dae){const _0x1a4b02=_0x3b22f,_0x21ba64=this['_getAPIPrefixPath']()+_0x1a4b02(0x4fc);await this[_0x1a4b02(0x3a9)][_0x1a4b02(0x511)](_0x21ba64,{'body':_0x278dae});}},exports[_0x3b22f(0x38b)]=zi([ct(0x0,a[_0x3b22f(0x492)](P[_0x3b22f(0x5ae)])),ct(0x1,a[_0x3b22f(0x492)](a[_0x3b22f(0x5ad)]))],exports['AuthzIoHttpService']);var Zi=Object[_0x3b22f(0x1ff)],Qi=Object['getOwnPropertyDescriptor'],en=(_0x22a0ef,_0x284697,_0x54a718,_0x5a2dce)=>{const _0x5329f5=_0x3b22f;for(var _0x2e14f5=_0x5a2dce>0x1?void 0x0:_0x5a2dce?Qi(_0x284697,_0x54a718):_0x284697,_0x132233=_0x22a0ef[_0x5329f5(0x291)]-0x1,_0xcc3847;_0x132233>=0x0;_0x132233--)(_0xcc3847=_0x22a0ef[_0x132233])&&(_0x2e14f5=(_0x5a2dce?_0xcc3847(_0x284697,_0x54a718,_0x2e14f5):_0xcc3847(_0x2e14f5))||_0x2e14f5);return _0x5a2dce&&_0x2e14f5&&Zi(_0x284697,_0x54a718,_0x2e14f5),_0x2e14f5;},tn=(_0x16d48e,_0x327252)=>(_0xc3829e,_0x4c3c05)=>_0x327252(_0xc3829e,_0x4c3c05,_0x16d48e);let Ce=class{constructor(_0x2caa81){const _0x499d40=_0x3b22f;this[_0x499d40(0x270)]=_0x2caa81,this['_initRequestHeader']();}[_0x3b22f(0x4d2)](){const _0x59c2bb=_0x3b22f;this[_0x59c2bb(0x270)][_0x59c2bb(0x3ef)]({'interceptor':(_0x1035c5,_0x6819a7)=>{const _0x525a5e=_0x59c2bb,_0x1f4488=_0x1035c5['headers'],_0x795cf1=Ft['getAttachHeader']();return _0x795cf1&&_0x1f4488[_0x525a5e(0x305)](_0x525a5e(0x326),_0x795cf1),_0x6819a7(_0x1035c5);}});}};Ce=en([tn(0x0,a[_0x3b22f(0x492)](P['HTTPService']))],Ce);var sn=Object['defineProperty'],nn=Object['getOwnPropertyDescriptor'],rn=(_0x330bb7,_0x49de4e,_0x29a0d2,_0x31fcc3)=>{for(var _0x1861cf=_0x31fcc3>0x1?void 0x0:_0x31fcc3?nn(_0x49de4e,_0x29a0d2):_0x49de4e,_0x4a2bd6=_0x330bb7['length']-0x1,_0x4720be;_0x4a2bd6>=0x0;_0x4a2bd6--)(_0x4720be=_0x330bb7[_0x4a2bd6])&&(_0x1861cf=(_0x31fcc3?_0x4720be(_0x49de4e,_0x29a0d2,_0x1861cf):_0x4720be(_0x1861cf))||_0x1861cf);return _0x31fcc3&&_0x1861cf&&sn(_0x49de4e,_0x29a0d2,_0x1861cf),_0x1861cf;},je=(_0x2793f5,_0x251ca5)=>(_0x460939,_0xeef283)=>_0x251ca5(_0x460939,_0xeef283,_0x2793f5);const on=['image/png','image/jpeg',_0x3b22f(0x5ca),'image/gif',_0x3b22f(0x1e2)],an=0x5*0x400*0x400,cn='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',ln=_0x3b22f(0x31f),hn='EXCHANGE_SIGN_URL_SERVER_URL_KEY',_n=_0x3b22f(0x3dc);exports[_0x3b22f(0x4a3)]=class{constructor(_0x4b858e,_0x32429e,_0x3e2541){const _0x2ea17e=_0x3b22f;d(this,_0x2ea17e(0x3c2),0x0),d(this,'_change$',new v['Subject']()),d(this,'change$',this['_change$']),d(this,_0x2ea17e(0x503),new Map()),(this[_0x2ea17e(0x270)]=_0x4b858e,this['_configService']=_0x32429e,this[_0x2ea17e(0x340)]=_0x3e2541);}[_0x3b22f(0x273)](_0x21d25a){const _0x4c9643=_0x3b22f;this[_0x4c9643(0x3c2)]=_0x21d25a,this[_0x4c9643(0x48a)]['next'](_0x21d25a);}[_0x3b22f(0x5cd)](_0x5ce8f3,_0xfe80e6){const _0x4b7f4a=_0x3b22f;if(_0xfe80e6===L[_0x4b7f4a(0x5a1)]['BASE64']){const _0x92f031=new Image();return _0x92f031[_0x4b7f4a(0x381)]=_0x5ce8f3,_0x92f031;}return this[_0x4b7f4a(0x503)][_0x4b7f4a(0x34d)](_0x5ce8f3);}[_0x3b22f(0x3e3)](_0x2dc026,_0x3ab81d,_0x3bb5a7){const _0x4034c6=_0x3b22f;_0x3ab81d===L[_0x4034c6(0x5a1)][_0x4034c6(0x43f)]||_0x3bb5a7==null||this[_0x4034c6(0x503)][_0x4034c6(0x305)](_0x2dc026,_0x3bb5a7);}async[_0x3b22f(0x34a)](_0x30fc7e){const _0x31d148=_0x3b22f;try{const _0x469ac0=this[_0x31d148(0x406)](this[_0x31d148(0x33a)](),''+_0x30fc7e),_0x40a9fc=(await this[_0x31d148(0x270)]['get'](_0x469ac0))[_0x31d148(0x30a)];if(_0x40a9fc['error']&&_0x40a9fc[_0x31d148(0x49d)][_0x31d148(0x49f)]===It['OK']){const _0x1a2be4=new URL(_0x40a9fc['url'],this[_0x31d148(0x2db)]())[_0x31d148(0x4e2)]();return Promise[_0x31d148(0x53d)](_0x1a2be4);}return Promise['reject'](_0x40a9fc[_0x31d148(0x49d)]);}catch(_0x372f75){return Promise[_0x31d148(0x23c)](_0x372f75);}}async[_0x3b22f(0x28a)](_0x1497fc){const _0x5ee6fb=_0x3b22f;let _0x3aa8ae='';if(!on[_0x5ee6fb(0x565)](_0x1497fc[_0x5ee6fb(0x331)]))return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x2d4)]));if(_0x1497fc[_0x5ee6fb(0x45a)]>an)return this[_0x5ee6fb(0x2e2)](),Promise[_0x5ee6fb(0x23c)](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x4fa)]));try{const _0x397941=new FormData();_0x397941[_0x5ee6fb(0x1ea)](_0x5ee6fb(0x2a2),_0x1497fc);const _0xb73cf7=this[_0x5ee6fb(0x340)]['getFocusedUnit'](),_0x19d3a3=_0xb73cf7==null?void 0x0:_0xb73cf7[_0x5ee6fb(0x52b)]();if(!_0x19d3a3)throw new Error(_0x5ee6fb(0x555));const _0x47cb6f=this[_0x5ee6fb(0x4ce)]()+'?size='+_0x1497fc[_0x5ee6fb(0x45a)][_0x5ee6fb(0x4e2)]()+'&source='+pt[_0x5ee6fb(0x4bd)]+_0x5ee6fb(0x4a6)+encodeURIComponent(_0x19d3a3),_0x5c0540=await(await fetch(_0x47cb6f,{'method':_0x5ee6fb(0x3d6),'body':_0x397941}))[_0x5ee6fb(0x364)]();if(typeof _0x5c0540[_0x5ee6fb(0x33d)]!=_0x5ee6fb(0x40a))return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));_0x3aa8ae=_0x5c0540[_0x5ee6fb(0x33d)];}catch{return this['_decreaseWaiting'](),Promise['reject'](new Error(L[_0x5ee6fb(0x57d)][_0x5ee6fb(0x5e9)]));}return new Promise((_0x23aaaf,_0x48577c)=>{const _0x33c446=_0x5ee6fb,_0x1a0447=new FileReader();_0x1a0447[_0x33c446(0x48c)](_0x1497fc),_0x1a0447[_0x33c446(0x586)]=_0x4d18e8=>{const _0x3bd7f7=_0x33c446;var _0x4dd9f0;const _0x14b964=(_0x4dd9f0=_0x4d18e8['target'])==null?void 0x0:_0x4dd9f0['result'];if(_0x14b964==null){this[_0x3bd7f7(0x2e2)](),_0x48577c(new Error(L[_0x3bd7f7(0x57d)][_0x3bd7f7(0x5e9)]));return;}const _0x99265=a[_0x3bd7f7(0x27d)]['generateRandomId'](0x6);_0x23aaaf({'imageId':_0x99265,'imageSourceType':L[_0x3bd7f7(0x5a1)]['UUID'],'source':_0x3aa8ae,'base64Cache':_0x14b964,'status':L['ImageUploadStatusType']['SUCCUSS']}),this[_0x3bd7f7(0x2e2)]();};});}[_0x3b22f(0x4ce)](){const _0x357c87=_0x3b22f;var _0x4a1fba,_0x1fd33f;const _0x17e8b9=this[_0x357c87(0x266)]['getConfig'](cn),_0x2fe597=this[_0x357c87(0x266)][_0x357c87(0x504)](A);return(_0x1fd33f=(_0x4a1fba=_0x2fe597==null?void 0x0:_0x2fe597[_0x357c87(0x2ef)])!=null?_0x4a1fba:_0x17e8b9)!=null?_0x1fd33f:ln;}[_0x3b22f(0x33a)](){const _0x170805=_0x3b22f;var _0x5311b1,_0x27af7c;const _0x48c619=this[_0x170805(0x266)][_0x170805(0x504)](hn),_0x514c21=this[_0x170805(0x266)][_0x170805(0x504)](A);return(_0x27af7c=(_0x5311b1=_0x514c21==null?void 0x0:_0x514c21[_0x170805(0x418)])!=null?_0x5311b1:_0x48c619)!=null?_0x27af7c:_n;}[_0x3b22f(0x2db)](){const _0x3d0d13=_0x3b22f;var _0x3908d9;const _0x2a5782=this[_0x3d0d13(0x266)][_0x3d0d13(0x504)](A);return(_0x3908d9=_0x2a5782==null?void 0x0:_0x2a5782['downloadEndpointUrl'])!=null?_0x3908d9:location[_0x3d0d13(0x2ee)];}[_0x3b22f(0x406)](_0x3e934c,_0x4cea30){const _0xcf549=_0x3b22f;return _0x3e934c['replace'](_0xcf549(0x35f),_0x4cea30);}[_0x3b22f(0x2e2)](){const _0x3959f7=_0x3b22f;this[_0x3959f7(0x3c2)]-=0x1,this[_0x3959f7(0x48a)][_0x3959f7(0x52d)](this[_0x3959f7(0x3c2)]);}},exports[_0x3b22f(0x4a3)]=rn([je(0x0,a['Inject'](P[_0x3b22f(0x5ae)])),je(0x1,a['IConfigService']),je(0x2,a[_0x3b22f(0x492)](a['IUniverInstanceService']))],exports[_0x3b22f(0x4a3)]);var un=Object[_0x3b22f(0x1ff)],dn=Object['getOwnPropertyDescriptor'],Sn=(_0x463d24,_0x3b3c83,_0x1e2269,_0x2d691e)=>{const _0x4c3133=_0x3b22f;for(var _0x49b87a=_0x2d691e>0x1?void 0x0:_0x2d691e?dn(_0x3b3c83,_0x1e2269):_0x3b3c83,_0x57c7e6=_0x463d24[_0x4c3133(0x291)]-0x1,_0x1c1659;_0x57c7e6>=0x0;_0x57c7e6--)(_0x1c1659=_0x463d24[_0x57c7e6])&&(_0x49b87a=(_0x2d691e?_0x1c1659(_0x3b3c83,_0x1e2269,_0x49b87a):_0x1c1659(_0x49b87a))||_0x49b87a);return _0x2d691e&&_0x49b87a&&un(_0x3b3c83,_0x1e2269,_0x49b87a),_0x49b87a;},he=(_0x2dac19,_0x2f705e)=>(_0x1adeed,_0x5905ec)=>_0x2f705e(_0x1adeed,_0x5905ec,_0x2dac19);let Ee=class extends a[_0x3b22f(0x398)]{constructor(_0x5707de,_0x4251e3,_0x28c484,_0x57026b,_0x5afd59){const _0x462a70=_0x3b22f;super(),this['_injector']=_0x5707de,this['_univerInstanceService']=_0x4251e3,this[_0x462a70(0x444)]=_0x28c484,this[_0x462a70(0x1ef)]=_0x57026b,this[_0x462a70(0x316)]=_0x5afd59,this['_initUnitPermissionChange'](),this['_initCloseConn']();}[_0x3b22f(0x5ec)](){const _0x48a042=_0x3b22f,_0x320335=async _0x348988=>{const _0xc20541=_0x2c53;(await this[_0xc20541(0x1ef)][_0xc20541(0x578)](_0x348988))[_0xc20541(0x3b5)][_0xc20541(0x3de)](E['filter'](_0x378db6=>_0x378db6[_0xc20541(0x3cc)]===_[_0xc20541(0x44c)]['SHOULD_CLOSE_CONN']),E[_0xc20541(0x37c)](this[_0xc20541(0x2e1)]))[_0xc20541(0x42c)](_0x27631c=>{const _0x18c2a3=_0xc20541,_0x547b7d=_0x27631c,{reason:_0x3e8662}=_0x547b7d[_0x18c2a3(0x45b)];this[_0x18c2a3(0x397)][_0x18c2a3(0x34d)](N[_0x18c2a3(0x2e3)])[_0x18c2a3(0x224)]({'type':X[_0x18c2a3(0x5b4)][_0x18c2a3(0x460)],'content':this[_0x18c2a3(0x316)]['t'](_0x18c2a3(0x21f))+'('+_0x3e8662+')'}),this[_0x18c2a3(0x444)]['updatePermissionPoint'](new C[(_0x18c2a3(0x5d2))](_0x348988)['id'],!0x1),this[_0x18c2a3(0x1ef)][_0x18c2a3(0x3c6)](_0x348988);});};v[_0x48a042(0x2c4)](this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x3c0)]),this[_0x48a042(0x340)][_0x48a042(0x5e8)](a['UniverInstanceType'][_0x48a042(0x332)]))[_0x48a042(0x3de)](E[_0x48a042(0x57b)](_0x3015d4=>_0x3015d4[_0x48a042(0x52b)]()),E['filter'](_0xe3f8bd=>!a[_0x48a042(0x3a4)](_0xe3f8bd)),E[_0x48a042(0x37c)](this[_0x48a042(0x2e1)]))[_0x48a042(0x42c)](_0xd498ff=>{_0x320335(_0xd498ff);});}[_0x3b22f(0x244)](){const _0x47b57c=_0x3b22f,_0x18d24d=async _0x3b9da9=>{const _0x465926=_0x2c53;(await this[_0x465926(0x1ef)]['requireSession'](_0x3b9da9))[_0x465926(0x3b5)][_0x465926(0x3de)](E[_0x465926(0x3f9)](_0x249a72=>_0x249a72[_0x465926(0x3cc)]===_[_0x465926(0x44c)][_0x465926(0x21e)]),E[_0x465926(0x37c)](this[_0x465926(0x2e1)]))['subscribe'](_0x2439ef=>{const _0x5cb680=_0x465926,_0x3d1697=_0x2439ef,{objectId:_0x33c6ca}=_0x3d1697[_0x5cb680(0x45b)],_0x3ed512=this['_injector']['get'](te[_0x5cb680(0x26c)]);_0x33c6ca===_0x3b9da9?_0x3ed512[_0x5cb680(0x216)](_0x3b9da9):_0x3ed512['refreshPermission'](_0x3b9da9,_0x33c6ca);});};v[_0x47b57c(0x2c4)](this[_0x47b57c(0x340)][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x3c0)]),this['_univerInstanceService'][_0x47b57c(0x5e8)](a[_0x47b57c(0x38e)][_0x47b57c(0x332)]))[_0x47b57c(0x3de)](E[_0x47b57c(0x57b)](_0x2f34e7=>_0x2f34e7[_0x47b57c(0x52b)]()),E['filter'](_0x14ec5c=>!a[_0x47b57c(0x3a4)](_0x14ec5c)),E[_0x47b57c(0x37c)](this['dispose$']))[_0x47b57c(0x42c)](_0xf2bf68=>{_0x18d24d(_0xf2bf68);});}};Ee=Sn([he(0x0,a[_0x3b22f(0x492)](a[_0x3b22f(0x252)])),he(0x1,a[_0x3b22f(0x26b)]),he(0x2,a[_0x3b22f(0x300)]),he(0x3,a[_0x3b22f(0x492)](exports[_0x3b22f(0x298)])),he(0x4,a[_0x3b22f(0x492)](a['LocaleService']))],Ee);var vn=Object[_0x3b22f(0x1ff)],fn=Object[_0x3b22f(0x246)],gn=(_0x5e2741,_0x6fa5f9,_0x1b1822,_0x4e7107)=>{for(var _0xd2eb7c=_0x4e7107>0x1?void 0x0:_0x4e7107?fn(_0x6fa5f9,_0x1b1822):_0x6fa5f9,_0x12b3fc=_0x5e2741['length']-0x1,_0x3c8bcc;_0x12b3fc>=0x0;_0x12b3fc--)(_0x3c8bcc=_0x5e2741[_0x12b3fc])&&(_0xd2eb7c=(_0x4e7107?_0x3c8bcc(_0x6fa5f9,_0x1b1822,_0xd2eb7c):_0x3c8bcc(_0xd2eb7c))||_0xd2eb7c);return _0x4e7107&&_0xd2eb7c&&vn(_0x6fa5f9,_0x1b1822,_0xd2eb7c),_0xd2eb7c;},lt=(_0xf6aee6,_0x2b3991)=>(_0x80df5,_0x1b2b73)=>_0x2b3991(_0x80df5,_0x1b2b73,_0xf6aee6);exports[_0x3b22f(0x55f)]=class{constructor(_0x54975b,_0x282a0a){const _0x4e38e4=_0x3b22f;this[_0x4e38e4(0x266)]=_0x54975b,this[_0x4e38e4(0x270)]=_0x282a0a;}async[_0x3b22f(0x524)](_0x18b78a,_0x4d72e1){const _0x162694=_0x3b22f;var _0x2c333b;const {unitID:_0x475c4e,type:_0x515a4a,revision:_0x2cf1d7=0x0}=_0x4d72e1,_0x46d1da=this[_0x162694(0x531)]()+'/'+_0x515a4a+_0x162694(0x37a)+_0x475c4e+_0x162694(0x208)+_0x2cf1d7,_0x5a3d43=(await this[_0x162694(0x270)][_0x162694(0x34d)](_0x46d1da))[_0x162694(0x30a)],_0x39ebba=(_0x2c333b=_0x5a3d43['snapshot'])==null?void 0x0:_0x2c333b[_0x162694(0x22a)];if(_0x39ebba){const _0x4ee1e3=_0x39ebba==null?void 0x0:_0x39ebba['originalMeta'],_0x572cb1=_['textEncoder']['encode'](_['b64DecodeUnicode'](_0x4ee1e3));_0x39ebba[_0x162694(0x54b)]=_0x572cb1,Object[_0x162694(0x54f)](_0x39ebba[_0x162694(0x4dc)])[_0x162694(0x339)](([,_0x4a1a07])=>{const _0xf8c526=_0x162694,_0x11ad4f=_0x4a1a07[_0xf8c526(0x54b)],_0x106d18=_[_0xf8c526(0x2a4)][_0xf8c526(0x21c)](_[_0xf8c526(0x274)](_0x11ad4f));_0x4a1a07[_0xf8c526(0x54b)]=_0x106d18;});}return _0x5a3d43;}async[_0x3b22f(0x537)](_0x100664,_0x5d7b69){const _0x56c01e=_0x3b22f,{unitID:_0x2f5256,type:_0x4cea0b,blockID:_0x38c0e6}=_0x5d7b69,_0x945b77=this[_0x56c01e(0x451)]()+'/'+_0x4cea0b+_0x56c01e(0x37a)+_0x2f5256+_0x56c01e(0x530)+_0x38c0e6;return(await this[_0x56c01e(0x270)][_0x56c01e(0x34d)](_0x945b77))[_0x56c01e(0x30a)];}async[_0x3b22f(0x20c)](_0x1784e3,_0x3c949f){const _0x1a6bf3=_0x3b22f,{unitID:_0xc7ecd6,type:_0x5547cd,blockID:_0x18ccc7}=_0x3c949f,_0x29d934=this[_0x1a6bf3(0x451)]()+_0x1a6bf3(0x530)+_0x5547cd+'/unit/'+_0xc7ecd6+_0x1a6bf3(0x530)+_0x18ccc7;return(await this[_0x1a6bf3(0x270)][_0x1a6bf3(0x34d)](_0x29d934))[_0x1a6bf3(0x30a)];}async[_0x3b22f(0x5c2)](_0x4022f3,_0x5c316e){const _0x516623=_0x3b22f,{unitID:_0x4b8248,type:_0x1dba33,from:_0x529d11,to:_0x3f033c}=_0x5c316e,_0x3eb510=this[_0x516623(0x451)]()+'/'+_0x1dba33+'/unit/'+_0x4b8248+_0x516623(0x4c0)+_0x529d11+'&to='+_0x3f033c;return(await this['_httpService'][_0x516623(0x34d)](_0x3eb510))[_0x516623(0x30a)];}[_0x3b22f(0x531)](){const _0x24e0d7=_0x3b22f;var _0x159de9;return(_0x159de9=this[_0x24e0d7(0x266)][_0x24e0d7(0x504)](_t))!=null?_0x159de9:this[_0x24e0d7(0x451)]();}[_0x3b22f(0x451)](){const _0x4daa0a=_0x3b22f;var _0x3762d5,_0x3f139a;const _0x15b4a1=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](ht),_0x5793ce=this[_0x4daa0a(0x266)][_0x4daa0a(0x504)](A);return(_0x3f139a=(_0x3762d5=_0x5793ce==null?void 0x0:_0x5793ce['snapshotServerUrl'])!=null?_0x3762d5:_0x15b4a1)!=null?_0x3f139a:Gt;}async['getResourcesRequest'](_0x510288,_0x5ccc1a){const _0x1f5f61=_0x3b22f,_0x1d301c=_0x1f5f61(0x501)+_0x5ccc1a[_0x1f5f61(0x331)]+_0x1f5f61(0x37a)+_0x5ccc1a['unitID']+_0x1f5f61(0x348);return(await this[_0x1f5f61(0x270)]['get'](_0x1d301c,{'params':{'resourceId':JSON[_0x1f5f61(0x56d)](_0x5ccc1a[_0x1f5f61(0x2d6)])}}))[_0x1f5f61(0x30a)];}[_0x3b22f(0x521)](){const _0x142806=_0x3b22f;throw new Error(_0x142806(0x27f));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3b22f(0x585)](){const _0x5b75d5=_0x3b22f;throw new Error(_0x5b75d5(0x27f));}[_0x3b22f(0x36b)](){const _0x50de2c=_0x3b22f;throw new Error(_0x50de2c(0x27f));}},exports[_0x3b22f(0x55f)]=gn([lt(0x0,a[_0x3b22f(0x5ad)]),lt(0x1,a['Inject'](P[_0x3b22f(0x5ae)]))],exports['SnapshotServerOverHTTPService']);var mn=Object[_0x3b22f(0x1ff)],In=Object['getOwnPropertyDescriptor'],pn=(_0x5aaa96,_0x46e492,_0x85ef45,_0x3ae3f5)=>{const _0x3d34ae=_0x3b22f;for(var _0x454548=_0x3ae3f5>0x1?void 0x0:_0x3ae3f5?In(_0x46e492,_0x85ef45):_0x46e492,_0x3a9c53=_0x5aaa96[_0x3d34ae(0x291)]-0x1,_0x370e12;_0x3a9c53>=0x0;_0x3a9c53--)(_0x370e12=_0x5aaa96[_0x3a9c53])&&(_0x454548=(_0x3ae3f5?_0x370e12(_0x46e492,_0x85ef45,_0x454548):_0x370e12(_0x454548))||_0x454548);return _0x3ae3f5&&_0x454548&&mn(_0x46e492,_0x85ef45,_0x454548),_0x454548;},_e=(_0x5cc016,_0x2bcba2)=>(_0x36cd5c,_0x179b2f)=>_0x2bcba2(_0x36cd5c,_0x179b2f,_0x5cc016);let Be=class extends a[_0x3b22f(0x213)]{constructor(_0x3a8daa,_0x20198b,_0x2d784d,_0x3f4208,_0xf0e6bd){super(_0x3a8daa,_0x20198b,_0x2d784d),this['_transformService']=_0x3f4208,this['_logService']=_0xf0e6bd;}[_0x3b22f(0x2f3)](_0x3bb3ac,_0x1905c1){const _0x3b91a1=_0x3b22f,_0xfa06a2=this[_0x3b91a1(0x2f7)](_0x3bb3ac);if(_0xfa06a2)try{const _0x295f63=this[_0x3b91a1(0x55c)](_0xfa06a2,_0x1905c1);this[_0x3b91a1(0x46c)](_0x3bb3ac,_0x295f63);}catch(_0x3b3865){this['_logService']['error']('[CollaborationUndoRedoService]',_0x3b3865),this[_0x3b91a1(0x46b)](_0x3bb3ac);}const _0x2d6d77=this[_0x3b91a1(0x210)](_0x3bb3ac);if(_0x2d6d77)try{const _0x155c03=this[_0x3b91a1(0x55c)](_0x2d6d77,_0x1905c1);this[_0x3b91a1(0x5e5)](_0x3bb3ac,_0x155c03);}catch(_0xae406){this[_0x3b91a1(0x445)]['error'](_0xae406),this[_0x3b91a1(0x256)](_0x3bb3ac);}}['_clearUndo'](_0x161c70){const _0xa84b19=_0x3b22f,_0x247985=this[_0xa84b19(0x2f7)](_0x161c70);_0x247985&&(_0x247985[_0xa84b19(0x291)]=0x0,this[_0xa84b19(0x200)]());}[_0x3b22f(0x256)](_0x5e807f){const _0x15679b=_0x3b22f,_0x3e1141=this[_0x15679b(0x210)](_0x5e807f);_0x3e1141&&(_0x3e1141[_0x15679b(0x291)]=0x0,this[_0x15679b(0x200)]());}[_0x3b22f(0x46c)](_0x2bdf43,_0x4aabac){const _0x180e1d=_0x3b22f;this['_undoStacks']['set'](_0x2bdf43,_0x4aabac),this[_0x180e1d(0x200)]();}[_0x3b22f(0x5e5)](_0x3fbfeb,_0x5a4dd2){const _0x15455b=_0x3b22f;this[_0x15455b(0x1e4)][_0x15455b(0x305)](_0x3fbfeb,_0x5a4dd2),this[_0x15455b(0x200)]();}['_transformStack'](_0x4ed192,_0x2b2ea2){const _0xc14208=_0x3b22f,_0x7ddaa3=[];let _0xe9845a=_0x2b2ea2,_0x3e9a2e=_0x2b2ea2;for(let _0x5edace=_0x4ed192[_0xc14208(0x291)]-0x1;_0x5edace>=0x0;_0x5edace--){const {unitID:_0x249778,undoMutations:_0x27e285,redoMutations:_0x5d1adf}=_0x4ed192[_0x5edace],_0x2e814b=this[_0xc14208(0x294)][_0xc14208(0x261)](_0xe9845a,_0x27e285),_0x40c08d=this['_transformService'][_0xc14208(0x261)](_0x3e9a2e,_0x5d1adf);if(_[_0xc14208(0x4bb)](_0x2e814b)||_[_0xc14208(0x4bb)](_0x40c08d)){this[_0xc14208(0x445)]['error']('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2e814b,_0x40c08d);break;}_0xe9845a=_0x2e814b['c1Prime'],_0x3e9a2e=_0x40c08d[_0xc14208(0x5d4)],_0x7ddaa3[_0xc14208(0x1ed)]({'unitID':_0x249778,'undoMutations':_0x2e814b[_0xc14208(0x2e8)],'redoMutations':_0x40c08d[_0xc14208(0x2e8)]});}return _0x7ddaa3[_0xc14208(0x1e5)]();}};Be=pn([_e(0x0,a[_0x3b22f(0x26b)]),_e(0x1,a['ICommandService']),_e(0x2,a[_0x3b22f(0x510)]),_e(0x3,_[_0x3b22f(0x378)]),_e(0x4,a[_0x3b22f(0x308)])],Be);class Nt extends a[_0x3b22f(0x398)]{constructor(){const _0x39b33c=_0x3b22f;super(),d(this,_0x39b33c(0x4cb)),this['urlChange$']=v[_0x39b33c(0x2b9)](window,_0x39b33c(0x27b))['pipe'](v[_0x39b33c(0x37c)](this[_0x39b33c(0x2e1)]),v['shareReplay'](0x1),v['mapTo'](void 0x0));}[_0x3b22f(0x57f)](_0x328d38,_0x511fae,_0x254684=!0x1){const _0x26da11=_0x3b22f,_0x10a5d9=new URL(window[_0x26da11(0x353)]['href']);_0x10a5d9[_0x26da11(0x498)][_0x26da11(0x305)](_0x328d38,_0x511fae),_0x254684?window[_0x26da11(0x4e7)]['replaceState']('','',_0x10a5d9[_0x26da11(0x4e2)]()):window[_0x26da11(0x4e7)][_0x26da11(0x354)]('','',_0x10a5d9[_0x26da11(0x4e2)]());}[_0x3b22f(0x297)](_0x491e9e,_0x5a74e7=!0x1){const _0x1dd205=_0x3b22f,_0x46d3d7=new URL(window[_0x1dd205(0x353)][_0x1dd205(0x412)]);_0x46d3d7[_0x1dd205(0x498)][_0x1dd205(0x2cc)](_0x491e9e),_0x5a74e7?window[_0x1dd205(0x4e7)]['replaceState']('','',_0x46d3d7[_0x1dd205(0x4e2)]()):window['history'][_0x1dd205(0x354)]('','',_0x46d3d7[_0x1dd205(0x4e2)]());}[_0x3b22f(0x422)](_0x4435c1){const _0x922b4f=_0x3b22f;var _0x2f7033;return(_0x2f7033=new URL(window[_0x922b4f(0x353)][_0x922b4f(0x412)])[_0x922b4f(0x498)]['get'](_0x4435c1))!=null?_0x2f7033:void 0x0;}}var At=Object[_0x3b22f(0x1ff)],Cn=Object[_0x3b22f(0x246)],En=(_0x202534,_0x16e8f7,_0x57d077)=>_0x16e8f7 in _0x202534?At(_0x202534,_0x16e8f7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57d077}):_0x202534[_0x16e8f7]=_0x57d077,bn=(_0x3b4d89,_0x198f3b,_0x4745a7,_0x97812f)=>{for(var _0x5acd03=_0x97812f>0x1?void 0x0:_0x97812f?Cn(_0x198f3b,_0x4745a7):_0x198f3b,_0xe2ff66=_0x3b4d89['length']-0x1,_0x59d6c0;_0xe2ff66>=0x0;_0xe2ff66--)(_0x59d6c0=_0x3b4d89[_0xe2ff66])&&(_0x5acd03=(_0x97812f?_0x59d6c0(_0x198f3b,_0x4745a7,_0x5acd03):_0x59d6c0(_0x5acd03))||_0x5acd03);return _0x97812f&&_0x5acd03&&At(_0x198f3b,_0x4745a7,_0x5acd03),_0x5acd03;},ve=(_0x4efbeb,_0xefecb6)=>(_0x514fd2,_0x2936fa)=>_0xefecb6(_0x514fd2,_0x2936fa,_0x4efbeb),Tn=(_0x49b416,_0x268150,_0x1ae4f7)=>En(_0x49b416,_0x268150+'',_0x1ae4f7);const Rn='UNIVER_COLLABORATION_CLIENT_PLUGIN';exports[_0x3b22f(0x54c)]=class extends a['Plugin']{constructor(_0x2b7c2f=ts,_0x241d51,_0x16a2ac,_0x90128,_0x395b1c){const _0x19b695=_0x3b22f;super(),this[_0x19b695(0x293)]=_0x2b7c2f,this[_0x19b695(0x445)]=_0x241d51,this['_renderManagerService']=_0x16a2ac,this['_injector']=_0x90128,this['_configService']=_0x395b1c;const {..._0x1e968e}=this[_0x19b695(0x293)];this[_0x19b695(0x266)][_0x19b695(0x41f)](A,_0x1e968e);}[_0x3b22f(0x49e)](){const _0x577a6d=_0x3b22f;this['_registerDependencies'](),a[_0x577a6d(0x4ed)](this[_0x577a6d(0x397)],[[ie],[exports[_0x577a6d(0x4f7)]],[Ee]]);}[_0x3b22f(0x4d3)](){const _0x4748fa=_0x3b22f;a['touchDependencies'](this[_0x4748fa(0x397)],[[Ie]]);}['onRendered'](){const _0x6c8a25=_0x3b22f;this[_0x6c8a25(0x20a)]();}[_0x3b22f(0x4f3)](){const _0x3118cf=_0x3b22f;var _0x5e8f99,_0x793f4c,_0x556c97,_0x835de4;this[_0x3118cf(0x397)][_0x3118cf(0x3e5)](a[_0x3118cf(0x519)])&&this['_logService'][_0x3118cf(0x49d)]('[UniverCollaborationClientPlugin]',_0x3118cf(0x55e));let _0x53b982=[[a[_0x3118cf(0x519)],{'useClass':Be}],[exports[_0x3118cf(0x298)]],[Xe],[P[_0x3118cf(0x5ae)]],[ze,{'useClass':Nt}],[q],[exports[_0x3118cf(0x462)]],[P[_0x3118cf(0x347)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x793f4c=(_0x5e8f99=this[_0x3118cf(0x293)])==null?void 0x0:_0x5e8f99[_0x3118cf(0x2a5)])!=null?_0x793f4c:exports[_0x3118cf(0x272)]}],[P['IHTTPImplementation'],{'useClass':P[_0x3118cf(0x55b)]}],[_[_0x3118cf(0x2ce)],{'useClass':exports['SnapshotServerOverHTTPService']}],[a['IAuthzIoService'],{'useClass':exports[_0x3118cf(0x38b)]}],[L['IImageIoService'],{'useClass':exports[_0x3118cf(0x4a3)]}],[exports[_0x3118cf(0x322)]],[exports[_0x3118cf(0x4f7)]],[exports[_0x3118cf(0x52f)]],[Ie],[ie]];(_0x556c97=this[_0x3118cf(0x293)])!=null&&_0x556c97[_0x3118cf(0x225)]&&_0x53b982['push']([be,{'useClass':ys}]),_0x53b982=a[_0x3118cf(0x588)](_0x53b982,(_0x835de4=this[_0x3118cf(0x293)])==null?void 0x0:_0x835de4['override']),_0x53b982[_0x3118cf(0x339)](_0x4b147e=>this['_injector'][_0x3118cf(0x405)](_0x4b147e)),this[_0x3118cf(0x514)]();}[_0x3b22f(0x20a)](){const _0x20d3a8=_0x3b22f;this['disposeWithMe'](this[_0x20d3a8(0x376)][_0x20d3a8(0x4b5)](a[_0x20d3a8(0x38e)][_0x20d3a8(0x332)],[xe])),this['disposeWithMe'](this[_0x20d3a8(0x376)]['registerRenderModule'](a['UniverInstanceType']['UNIVER_SHEET'],[ke]));}[_0x3b22f(0x514)](){const _0x2717a0=_0x3b22f;var _0x20032d,_0x2fa160;this[_0x2717a0(0x397)][_0x2717a0(0x34d)](P[_0x2717a0(0x5ae)])[_0x2717a0(0x3ef)]({'priority':0x14,'interceptor':P[_0x2717a0(0x257)]({'maxParallel':0x6})}),this[_0x2717a0(0x397)]['get'](Ce),(_0x20032d=this[_0x2717a0(0x293)])!=null&&_0x20032d[_0x2717a0(0x58c)]||this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x462)])['disableLocalCache'](),(_0x2fa160=this[_0x2717a0(0x293)])!=null&&_0x2fa160[_0x2717a0(0x425)]&&this[_0x2717a0(0x397)]['get'](pe),this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports['CollaborationController']),this[_0x2717a0(0x397)][_0x2717a0(0x3e5)](exports[_0x2717a0(0x52f)])&&this[_0x2717a0(0x397)][_0x2717a0(0x34d)](exports[_0x2717a0(0x52f)]);}},Tn(exports[_0x3b22f(0x54c)],_0x3b22f(0x4c3),Rn),exports[_0x3b22f(0x54c)]=bn([a[_0x3b22f(0x52e)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x3b22f(0x308)]),ve(0x2,R['IRenderManagerService']),ve(0x3,a[_0x3b22f(0x492)](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x3b22f(0x54c)]),exports[_0x3b22f(0x211)]=Mt,exports[_0x3b22f(0x2de)]=gt,exports['COLLAB_WEB_SOCKET_URL_KEY']=ut,exports[_0x3b22f(0x3ee)]=y,exports[_0x3b22f(0x42b)]=wt,exports[_0x3b22f(0x28d)]=Ge,exports[_0x3b22f(0x2b1)]=dt,exports[_0x3b22f(0x45d)]=Ve,exports[_0x3b22f(0x280)]=Fe,exports[_0x3b22f(0x399)]=ze,exports[_0x3b22f(0x5e7)]=ft,exports[_0x3b22f(0x3eb)]=mt,exports[_0x3b22f(0x424)]=vt,exports[_0x3b22f(0x51d)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x3b22f(0x367)]=_t,exports[_0x3b22f(0x508)]=$,exports[_0x3b22f(0x3d5)]=Ot,exports[_0x3b22f(0x217)]=Nt,exports[_0x3b22f(0x47a)]=Ct,exports[_0x3b22f(0x2bc)]=Et;
|
1
|
+
'use strict';const _0x2f1425=_0x4554;(function(_0xb12dcf,_0x4fc039){const _0x4d2d8a=_0x4554,_0x1e756b=_0xb12dcf();while(!![]){try{const _0x19aa96=-parseInt(_0x4d2d8a(0x3ff))/0x1*(parseInt(_0x4d2d8a(0x1c1))/0x2)+parseInt(_0x4d2d8a(0x4d6))/0x3+parseInt(_0x4d2d8a(0x249))/0x4*(parseInt(_0x4d2d8a(0x24a))/0x5)+parseInt(_0x4d2d8a(0x443))/0x6*(-parseInt(_0x4d2d8a(0x47b))/0x7)+parseInt(_0x4d2d8a(0x3db))/0x8+parseInt(_0x4d2d8a(0x478))/0x9+-parseInt(_0x4d2d8a(0x37f))/0xa*(parseInt(_0x4d2d8a(0x54d))/0xb);if(_0x19aa96===_0x4fc039)break;else _0x1e756b['push'](_0x1e756b['shift']());}catch(_0x421662){_0x1e756b['push'](_0x1e756b['shift']());}}}(_0x995d,0x34def));var kt=Object[_0x2f1425(0x1cf)],Bt=(_0x33c644,_0x1921b8,_0xd4e34c)=>_0x1921b8 in _0x33c644?kt(_0x33c644,_0x1921b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xd4e34c}):_0x33c644[_0x1921b8]=_0xd4e34c,d=(_0x371f3a,_0x3fa37e,_0x19905)=>Bt(_0x371f3a,typeof _0x3fa37e!=_0x2f1425(0x519)?_0x3fa37e+'':_0x3fa37e,_0x19905);function _0x995d(){const _0x45e97c=['univerjs-icon\x20univerjs-icon-','parseProtocolChangeset','_snapshotService','CollaborationController','SheetCollaborationEntity','onMissingChangesets','getCellPositionByOffset','_initEventListeners','width','/allowed','event$','_listenToOnlineEvent','_injector','editing\x20status\x20changed\x20to','_onJoinRoomEvent','Rectangle','rev','getRangePointData','next','Warning','onCommentUpdate','collaboration-client.config','univer-online-status','...','handleInsertRangeMoveDown','roomInfos','/fetchmissing?from=','LocalCacheService','_id','b64DecodeUnicode','Vector2','_event$','Workbook','/new_changes','DocIMEInputManagerService','_syncEditingCollabCursorService','_onCursorUpdate','_createInitialStateImpl','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','findNodePositionByCharIndex','_undoStacks','toggleOnline','_transitionLocked','symbol','COLORS','min','toString','_uiPartsService','getActiveSheet','signUrlServerUrl','saveSnapshot','SheetCollabCursorShape','_setupSubUnitSync','entries','transformChangesets','Undefined','_createInitialState','saveImage','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','icon','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','[CollaborationEntity]','getVpScrollXYInfoByPosToVp','push','routeKey','ThemeService','1em','_permissionService','refreshPermission','close','loadDoc','debounce','_collaborationController','includes','RemoveRowCommandId','registerRefRange','getViewport','deepClone','useObservable','pipe','indexOf','x-univer-host','closeSession','CommentService','_onMessage','joinEvent','_onCursorDelete','_color','_commentUpdate$','_lockTransition','purple300','SUBMIT_CHANGESET','_removeRoom','getRoom','UNIVER_COLLABORATION_CLIENT_PLUGIN','22PGYZUJ','_assignedColors','UNRECOGNIZED','stopTime','copyFileMeta','DocSkeletonManagerService','_initCloseConn','SheetSkeletonManagerService','has','isPermissionRej','replace','unshift','LICENSE_IMPORT_SIZE_EXCEEDED','AWAITING','DesktopCollaborationStatusDisplayController','RevisionService','transformMutationsWithChangeset','visibilitychange','call','roomMembers','useRef','_logService','permissionRejEvent','requestParams','CollaborationEvent','disableLocalCache','awaiting_with_pending','currentColor','mutations','objectID','_initStatusComponent','localeService','status$','_tryEnsureSocket','toRgbString','_textBubble','off-line-single_clip0_910_343','TRANSFORM_CHANGE_OBSERVABLE_TYPE','DocStateChangeManagerService','method','BASE64','_timeoutTimer','_getSendChangesetTimeout','getAncestorScale','ImageIoService','unload','UNAUTHENTICATED','_onRemoteChangeset','number','RichTextEditingMutation','top','defIds','getUnhiddenWorksheets','_roomMembers$','_initUnitPermissionChange','univer-online','_commentService','JOIN','objectType','updateMember','InsertColCommandId','editingUnit','_updateSubUnitFromURLParams','_updateState','with','forwardRef','INotificationService','_config','collab-text-range-','SetSelectionsOperation','collaboration-session-retry','generateRandomId','RECV','getCurrentUser','eventID','_notificationService','merge','url(#on-line-single_clip0_910_349)','getSkeleton','_hideTimer','IPermissionService','serializeRangeWithSheet','combineLatest','@univerjs-pro/collaboration','registerBeforeClose','url(#$1','_imageSourceCache','children','unitId\x20is\x20not\x20found','HEARTBEAT','off-line-single','getFocusedUnit','NodePositionConvertToRectRange','CollaborationSocketService','ERROR_EXCEED_SIZE','toStringTag','clearInterval','startsWith','put','_sessions','textEncoder','onPointerMove$','_getAnchorBounding','univer-pro.collaboration-client-socket-service','requireSession','_scene','_drawTextRange','rgba(255,\x20255,\x20255,\x200.01)','#FFF','onlyLocal','listCollaborators','transformUndoRedo','_labelPosition','workbook','patch','Error','pending','append','updateCursorEvent','status','getCurrentUnitForType','_replaceFileID','TEXT_RANGE_LAYER_INDEX','show','change$','resize','_startCollaboration','_transformUndoRedoStack','getSheetId','UNIVER_SHEET','_heartbeatTimer','2566wdwORd','whenReady','_configService','image/jpeg','_incrementRevisionNumber','univer-pro.collaboration-client.single-active-unit-service','COLLAB_SUBMIT_CHANGESET_URL','getUndoRedoMutationParamsCache','map','onlineStatusTitle','_exhaustRemoteChangesetQueue','_pendingMutations','ONLINE','BuiltInUIPart','defineProperty','DEFAULT_FILE_NAME','_scheduleHeartbeat','onTransformSelections','getCurrent','CollaborationSessionService','stringify','_sendHeartbeatTimer','distinctUntilChanged','downloadEndpointUrl','submit\x20changeset\x20error!','_selfUnitIDs','startColumn','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_getSheetObject','getWorkbookSelections','UNIVER_SLIDE','session','sheetID','_messageService','collaboration-client.offline-data-not-saved','_executeRemoteChangeset','socketService','_getAPIPrefixPath','moveTo','IRemoteInstanceService','_themeService','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','connectInjector','close$','_type','_getDownloadEndpointURL','cursorInfo','{fileID}','url','_initModules','fillStyle','_colorAssignService','_socketReady','CONNECTOR_DATA_TOO_LARGE','_online','CollaborationStatusDisplay','_refreshCollabCursors','getUnitId','_queuedRemoteChangesets','backgroundColor','add','fetchMissingChangesets','UserManagerService','baseRev','_http','updateOfflineData','fill','confirm','_backgroundColor','engine','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','AUTHZ_URL_KEY','onSendChangeset','_anchorDot','handleIRemoveRow','UPDATE_CURSOR','_scheduleTimestamp','EXCHANGE_SIGN_URL_SERVER_URL_KEY','[DataLoaderController]','_shouldReportTelemetry','/rev/','saveChangeset','_startTelemetryCollaborationNewChangeset','getParam','IHTTPImplementation','getCollabEntity','addImageSourceCache','@univerjs/core','commentUpdateEvent','addEventListener','apply','currentSkeleton$','BehaviorSubject','triggerDblclick','/universer-api/stream/file/upload','PERMISSION_REJ','interceptor','isTransformChangesetsSuccess','@univerjs/drawing','WorkbookEditablePermission','unsubscribe','_context','onStateChange','_cursors','_docSkeleton','svg','_syncEditingCollabCursor','collab-text-anchor-','allowed','title','createElement','_userManagerService','Univer','createIdentifier','_transformIMECache','hide','dispose','href','random','/collaborator','tag','_updateStatus','_getSnapshotAPIPrefix','withCredentials','serializeCombRequest','_onConnectionFailed','key','concat','column','_unitID','univer-online-status-icon','connection\x20error','SEND_CHANGESET_TIMEOUT_KEY','HttpExport','color','jiqing500','65740vvwIMx','120ZYkEnZ','colorChannel1','setUndoRedoMutationParamsCache','idSuffix','endRow','removeMember','popstate','_socketMessageSubscription','FAIL','SNAPSHOT_INVALID_SNAPSHOT','Plugin','_removeCollabCursors','setCurrentUser','DeleteRangeMoveLeftCommandId','getRenderById','onlineStatusIcon','_handleHeartbeatEvent','RxDisposable','_transformPreviousActiveRange','LICENSE_EXPORT_SIZE_EXCEEDED','MoveRangeCommandId','USERS_ENTER','getTypeOfUnitDisposed$','SUCCUSS','selections','rxjs/operators','getItem','_clearUndo','WebSocketService','getValue','clipPath','SEND_CHANGESET_TIMEOUT','isEditing','registerRenderModule','restore','onMouseMove','_getAPIPrefix','ITelemetryService','_getRedoStack','NO_OTHER_CLIENTS_EDITING','SetWorksheetActivateCommand','YUUMI_RATE_OVER_LIMIT','SNAPSHOT_URL_KEY','takeUntil','COLLAB_WEB_SOCKET_URL','LEAVE','_getMergeRange','IDLE','getOwnPropertySymbols','evenodd','collaboration.single-unit.warning','_drawAnchor','debug','image/png','getMemberID','_waitForHeartbeatResponse','YUUMI_URL_COL_OUT_OF_RANGE','replaceState','csRejEvent','sessionStatus','MergeInterceptorFactory','headers','catch','updateCollaborator','_localCacheService','LIVESHARE_FETCH_OPERATIONS','responseType','@univerjs/engine-formula','forEach','delete','setWaitCount','UNIVER_PROJECT','UPDATE_PERMISSION_OBJ','concatMap','Rect','_docSyncEditingCollabCursorService','_beforeCloseService','_docTransformIMECacheService','ITransformService','conflict','INGEST','[UniverCollaborationClientPlugin]','_acknowledgedAwaitingChangeset','deserializeRangeWithSheet','setParam','max','_sendHeartbeat','session.collaboration-timeout','enableAuthServer','_localStorageService','_cachedData','data','verdancy600','getUnitOnRev','useDependency','&source=','putCollaborators','getOwnPropertyDescriptor','clearTimeout','getColor','slice','getSheetBySheetId','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','/universer-api/snapshot','_disabled','commentUpdate$','dispose$','onMissedChangesetFetched','collaborators','filter','urlChange$','Error\x20on\x20receiving\x20event','JOINING','save\x20fail\x20reason\x20is\x20','getUnitType','addObject','setAlpha','?size=','_clearLocalCache','_onRecvEvent','setShapeProps','lineTo','UUID','appendMutation','_initResize','#fff','revision','collab-rect-range-','Unknown\x20user','collabStatus.offline','@univerjs/design','IUIPartsService','assign','className','HTTPRequest','isTransformMutationFailure','body','syncEditingCollabCursor','_clearScheduledTask','none','useCallback','LocaleService','DataLoaderController','location','_sheetSkeletonManagerService','sequenceExecute','actions','_httpService','PSEUDO_FETCH_MISSING_RESULT','toDisposable','values','transform','DeleteRangeMoveUpCommandId','ILogService','_onOffline','subUnitId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','RETRY_CONNECTING_MAX_COUNT','fromEventSubject','take','xlink:href','_disableEditing','/-/object/-/batch_allowed','pauseCollaboration','_clearRedo','defs','[CollaborationUndoRedoService]','EmptyMutation','startTime','failed\x20to\x20apply\x20missed\x20changesets!','_handleLeaveEvent','_name','_refRangeService','_stopTelemetryCollaborationNewChangeset','displayName','UniverCollaborationClientPlugin','_snapshotServerService','_registerRenderDependencies','init','asObservable','mapTo','unknown','EffectRefRangId','online','Module','_initStatusListener','transformRemoteChangeset','_createSocket','exhaustSavingTask','_isPermissionRej','?url=','DisposableCollection','_telemetryInfo','_lastPointer','awaitingChangeset','subunit','_send','IURLService','_collaborationTimeoutTimer','resolve','_checkMissing','then','_cursorShapes','_telemetryService','toggleOffline','handleDeleteRangeMoveLeft','disposeUnit','\x20in\x20_schedule.','_sheetTransformSelectionsService','_socket$','isValidRectRange','post','now','snapshotServerUrl','debounceTime','AuthzIoHttpService','path','_instanceService','SYNCED','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','FromArray','ACTIVE_UNIT_EVENT_CHANNEL','isTransformMutationsWithChangesetFailure','_saveTaskMap','getUnitStatus$','CollaborationEntity','_status$','snapshot','reconnect','_getCtorByUniverType','isActive','COLLAB_SUBMIT_CHANGESET_URL_KEY','@univerjs/sheets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','fetch_missing','drawWith','round','_updateURLWithCurrentState','getCollabCursors$','resend','[OfflineState]:\x20received\x20acknowledgement.','onload','[FetchMissState]','_range','getUnit','_shapes','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_revisionService','complete','HELLO','ranges','_setupBeforeClosingHandler','react','OnLineSingle','error','registerOnClose','_scheduleClearOtherTimer','_updateLocalCursor','isTransformMutationsWithChangesetSuccess','APPLY_NON_SEQUENTIAL_REVISION','split','_init','_ws','deleteCollaborator','endColumn','_unlockTransition','_startSheetCollabCursor','FETCH_MISSING','_retryConnectingTimer','_updateCollabCursors','DocCollaborationEntity','_HTTPService','NOT_COLLAB','result','APPLY_REVISION_CONFILICT','IAuthzIoService','COLLAB_WEB_SOCKET_URL_KEY','UniverInstanceType','POST','_registerDependencies','size','cursorInfo$','[SyncedState]:\x20received\x20acknowledgement.','_tryReconnect','_transformRemoteChangesetByIMECache','collabStatus.notCollab','Subject','cmd','collabCursorState$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','@univerjs/docs','_getUploadFileURL','set','update','_transformStack','getInterceptPoints','_clearHeartbeatTimer','executeCommand','_clearOtherTimers','reduce','_showConflictNotification','_renderManagerService','_state$','onPointerEnter$','_startDocCollabCursor','_onCombEvent','_scheduleCollaborationTimeoutTimer','save','selection','2171050FWbquZ','ThresholdInterceptorFactory','ColorKit','handleMoveRange','onReady','getCollabEntity$','ILocalStorageService','NodePositionConvertToCursor','Disposable','permission.title','onRemoteChangeset','/unit/','memberID','loadSheet','length','telemetry\x20info\x20is\x20not\x20initialized','_collabCursorState$','_onFetchMissResult','AWAITING_WITH_PENDING','_socket','onPointerLeave$','IBeforeCloseService','_hover','LIVESHARE_OPERATION','roles','getMember','setTimeout','every','_getSignURL','listRoles','delay','UNIVER_UNKNOWN','compose','HTTPService','OFFLINE','file','_getCurrentRevision','&to=','SNAPSHOT_SERVER_URL_KEY','_hovered','sessionStatus$','labelPosition','initWorkbookPermissionChange','m1Prime','/role','flatMap','collaMsg','_candidateSocket','/resources','all','currentTheme$','_docStateChangeManagerService','_clearCollaborationTimeoutTimer','UNKNOWN_CODE','getDeserializedSheetBlock','DocSelectionManagerService','collabStatus.conflict','height','_schedule','_retryCount','@univerjs-pro/license','c1Prime','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_onRefRangeChange','CommandType','_toggleOffline','FileId','MUTATION','offline','collab-client.tooltip.reconnect','type','state','RETRY_CONNECTING_MAX_COUNT_KEY','trim','OTHER_CLIENTS_EDITING','subscribe','_sessionStatus$','_onUserLeave','0\x200\x2016\x2016','PERMISSION_DENIED','handleInsertRangeMoveRight','_transformSelections','_eventUnsubscribe','YUUMI_UNABLE_LOAD_URL','/universer-api/authz','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','params','handleInsertRow','switchMap','_undoRedoService','RefRangeService','_collabCursorController','988320abuhHU','VIEWPORT_KEY','IImageIoService','_members','UNIVER_DOC','removeParam','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','image/bmp','_docTransformSelectionsService','objectActions','_initRequestHeader','_getScale','ALREADY_EXISTS','_collaborationSessionService','setItem','runRefRangeMutations','_unitStatus','_localeService','CONFLICT','_ensureSubject','getRelativeToViewportCoord','MSG_FOR_ERROR','CompressMutationService','string','transformIMECache','_loadDoc','LICENSE_MAX_UNITS_EXCEEDED','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','getCurrentRevOfUnit','@univerjs/ui','ws://127.0.0.1:8000/universer-api/comb/connect','attrs','_collaborationPaused','sendChangesetTimeout','_transformService','LocalUndoRedoService','299bSQAqu','PENDING','ImageSourceType','_docSkeletonManagerService','&assign=','open$','LICENSE_DISTRO_REJECTED','unitId','on-line-single_clip0_910_349','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','m2Prime','liveShareNewHost','onCommandExecuted','_unitOnClients','arc','reject','text','uploadFileServerUrl','HEARTBEAT_TIMEOUT','CHANGESET_ACK','originalMeta','extend','_onConflict','_change$','onRemoteAck','COMPLETION_FINISHED','getActiveRange','collabStatus.fetchMiss','get','RegularPolygon','subscribeEvent','APPLY_PERMISSION_DENIED','collaboratorID','fromCollab','deserializeToCombResponse','_anchor','collabWebSocketUrl','createSocket','disposeWithMe','_onRemoteACK','message$','error$','prototype','_getUndoStack','Optional','_awaitingChangeset','NOT_FOUND','ImageUploadStatusType','state$','conflict.content','roomMembers$','transformByState','awaiting','_decreaseWaiting','createCollaborator','_throwTelemetryCollaborationNewChangeset','unitID','_socketService','YUUMI_SUBSCRIPTION_NOT_FOUND','authzUrl','onRendered','retryConnectingInterval','_updateLocalCache','enableOfflineEditing','_memberService','collaboration.closeRoom','clear','/block/','827592cZKjXh','changesets','assignAColorForMemberID','SheetsSelectionsService','_onConnectionOpen','UnitSnapshot','COMPRESS_MUTATION_APPLY','action','_rescheduleHeartbeat','measureText','APPLY_REJECT','incrementRevOfUnit','function','Injector','[CollaborationSession]','SheetPermissionInitController','getCoordByCell','pluginName','univer-offline','IRenderManagerService','members','_univerInstanceService','makeDirty','SnapshotServerOverHTTPService','IUndoRedoService','skeleton','_sendingTimer','find','_render','_handleJoinEvent','_compressMutationService','_toggleOnline','blue400','TOO_MANY_REQUESTS','collabSubmitChangesetUrl','capture','fillText','IUniverInstanceService','parseChangesetToProtocol','name','[CollaborationSessionService]','\x20to\x20','[CollaborationState]:\x20apply\x20error!','synced','_entityInit$','_handleEvent','onRemoteRej','_session','_state','target','pushState','isArray','ICommandService','3025251khOign','UNKNOWN_CMD','readAsDataURL','7ZqTJit','_removeClearOtherTimer','IConfigService','_draw','touchDependencies','getConfig','shouldCloseConn','HttpImport','sheets','LIVESHARE_NEW_HOST','_createHandler','_roomMembers','_waitCount','_joinRoom','fetchMiss','DependentOn','_drawRectRange','IMessageService','textRanges','_urlService','/universer-api/file/{fileID}/sign-url','getDocRanges','socket$','LOGIN_URL_KEY','registerHTTPInterceptor','Tools','HEARTBEAT_INTERVAL_KEY','setConfig','[OfflineState]:\x20received\x20rejection.','JSONX','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','0\x200\x2017\x2016','SessionStatus','createInstance','saveOfflineData','UNDEFINED','_saveCache','_remoteChangesetQueue','isInternalEditorID','UnitEmbedded','handleDeleteRangeMoveUp','\x0aAfter:\x20','getSheetObject','range','history','fetchThroughInterceptors','src','_redoStacks','_clearTimeoutTimer','newCsEvent','black','json','USERS_LEAVE','_substituteRedoStack','setActiveRange','_commandService','unit','object','loadOfflineData','send','div','M0\x200H16V16H0z','_fetchMissChangesets','\x20-\x20','_getLoginPath','red300','shareReplay','joinRsp','FETCH_MISS','/object/','_colorIndex','_loadSheet','_handler','_getSaveTimeout','batchAllowed','Shape','univer-online-status-title','encode','MessageType','SHOULD_CLOSE_CONN','CollaborationSession','updatePermissionPoint','_applyRemoteChangeset','sheetId','activeSheet$','CHANGESET_REVISION_CONFILICT','Inject','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','ERROR_IMAGE_TYPE','focused$','_entities','954597xemJTI','_singleActiveUnitService','transformMutation','VIEW_MAIN','searchParams','SnapshotService','InsertRangeMoveDownCommandId','CHANGESET_REJ','parse','transformSelections','_cursorInfo$','_scheduleSaving','mapDocumentTypeToUniverType','substring','getTypeOfUnitAdded$','doc.mutation.rich-text-editing','reverse','on-line-single','_collabSessionService','c2Prime','_onRemoteRejected','from','collaboration_new_changeset','hasOwnProperty'];_0x995d=function(){return _0x45e97c;};return _0x995d();}Object[_0x2f1425(0x1cf)](exports,Symbol[_0x2f1425(0x19d)],{'value':_0x2f1425(0x302)});const a=require(_0x2f1425(0x218)),v=require('rxjs'),E=require(_0x2f1425(0x263)),X=require(_0x2f1425(0x2cc)),N=require(_0x2f1425(0x3f8)),P=require('@univerjs/network'),_=require(_0x2f1425(0x191)),Vt=require('@univerjs/telemetry'),V=require(_0x2f1425(0x36c)),w=require('@univerjs/docs-ui'),C=require(_0x2f1425(0x332)),R=require('@univerjs/engine-render'),L=require(_0x2f1425(0x223)),Je=require(_0x2f1425(0x28d)),te=require('@univerjs/sheets-ui'),U=require(_0x2f1425(0x346)),Wt=require('@univerjs/rpc'),Ft=require(_0x2f1425(0x3bb)),ht=_0x2f1425(0x3a5),Gt=_0x2f1425(0x2b1),_t=_0x2f1425(0x274),Yt=_0x2f1425(0x269),Kt=0x7d0,ut=_0x2f1425(0x276),Xt=_0x2f1425(0x3f9),dt='HEARTBEAT_INTERVAL',qt=0x7530,Ve=_0x2f1425(0x411),St=0x4e20,zt=0x4e20,vt=_0x2f1425(0x2e7),Jt=0x3,ft='LOCAL_CACHE_INTERVAL',Zt=0x3e8,gt=_0x2f1425(0x1c7),Qt='/universer-api/comb',mt=_0x2f1425(0x492),es='/universer-api/oidc/authpage';var It=(_0x7bf35=>(_0x7bf35[_0x7bf35[_0x2f1425(0x49e)]=0x0]=_0x2f1425(0x49e),_0x7bf35[_0x7bf35['OK']=0x1]='OK',_0x7bf35[_0x7bf35['INTERNAL_ERROR']=0x2]='INTERNAL_ERROR',_0x7bf35[_0x7bf35[_0x2f1425(0x3ce)]=0x3]=_0x2f1425(0x3ce),_0x7bf35[_0x7bf35[_0x2f1425(0x42d)]=0x4]=_0x2f1425(0x42d),_0x7bf35[_0x7bf35[_0x2f1425(0x57b)]=0x5]='UNAUTHENTICATED',_0x7bf35[_0x7bf35[_0x2f1425(0x3e7)]=0x6]=_0x2f1425(0x3e7),_0x7bf35[_0x7bf35['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x7bf35[_0x7bf35['TOO_MANY_REQUESTS']=0x8]=_0x2f1425(0x464),_0x7bf35[_0x7bf35[_0x2f1425(0x418)]=0x9]=_0x2f1425(0x418),_0x7bf35[_0x7bf35[_0x2f1425(0x4d0)]=0x1389]=_0x2f1425(0x4d0),_0x7bf35[_0x7bf35[_0x2f1425(0x253)]=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x7bf35[_0x7bf35['SNAPSHOT_HAS_BEEN_REMOVED']=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x7bf35[_0x7bf35[_0x2f1425(0x44d)]=0x1b59]=_0x2f1425(0x44d),_0x7bf35[_0x7bf35[_0x2f1425(0x34d)]=0x1b5a]=_0x2f1425(0x34d),_0x7bf35[_0x7bf35[_0x2f1425(0x35c)]=0x1b5b]=_0x2f1425(0x35c),_0x7bf35[_0x7bf35[_0x2f1425(0x41e)]=0x1b5c]=_0x2f1425(0x41e),_0x7bf35[_0x7bf35[_0x2f1425(0x1f6)]=0x1f41]=_0x2f1425(0x1f6),_0x7bf35[_0x7bf35[_0x2f1425(0x3f5)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x528)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x559)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x25d)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x7bf35[_0x7bf35[_0x2f1425(0x405)]=0x232d]=_0x2f1425(0x405),_0x7bf35[_0x7bf35[_0x2f1425(0x3d2)]=0x2711]=_0x2f1425(0x3d2),_0x7bf35[_0x7bf35[_0x2f1425(0x282)]=0x2712]=_0x2f1425(0x282),_0x7bf35[_0x7bf35['YUUMI_RATE_OVER_LIMIT']=0x2713]=_0x2f1425(0x273),_0x7bf35[_0x7bf35[_0x2f1425(0x439)]=0x2714]=_0x2f1425(0x439),_0x7bf35[_0x7bf35[_0x2f1425(0x54f)]=-0x1]='UNRECOGNIZED',_0x7bf35))(It||{}),j=(_0x5f4dab=>(_0x5f4dab[_0x5f4dab['UNIVER_UNKNOWN']=0x0]=_0x2f1425(0x39e),_0x5f4dab[_0x5f4dab['UNIVER_DOC']=0x1]='UNIVER_DOC',_0x5f4dab[_0x5f4dab[_0x2f1425(0x1bf)]=0x2]='UNIVER_SHEET',_0x5f4dab[_0x5f4dab[_0x2f1425(0x1df)]=0x3]=_0x2f1425(0x1df),_0x5f4dab[_0x5f4dab[_0x2f1425(0x291)]=0x4]=_0x2f1425(0x291),_0x5f4dab[_0x5f4dab[_0x2f1425(0x54f)]=-0x1]=_0x2f1425(0x54f),_0x5f4dab))(j||{}),b=(_0x28fcad=>(_0x28fcad[_0x28fcad[_0x2f1425(0x479)]=0x0]='UNKNOWN_CMD',_0x28fcad[_0x28fcad[_0x2f1425(0x343)]=0x1]='HELLO',_0x28fcad[_0x28fcad['JOIN']=0x2]=_0x2f1425(0x177),_0x28fcad[_0x28fcad[_0x2f1425(0x277)]=0x3]=_0x2f1425(0x277),_0x28fcad[_0x28fcad['INGEST']=0x4]='INGEST',_0x28fcad[_0x28fcad[_0x2f1425(0x197)]=0x5]=_0x2f1425(0x197),_0x28fcad[_0x28fcad[_0x2f1425(0x186)]=0x6]=_0x2f1425(0x186),_0x28fcad[_0x28fcad['UNRECOGNIZED']=-0x1]='UNRECOGNIZED',_0x28fcad))(b||{}),We=(_0x4cbdcf=>(_0x4cbdcf[_0x4cbdcf['UNKNOWN_CODE']=0x0]=_0x2f1425(0x3b4),_0x4cbdcf[_0x4cbdcf['OK']=0x1]='OK',_0x4cbdcf[_0x4cbdcf[_0x2f1425(0x252)]=0x2]=_0x2f1425(0x252),_0x4cbdcf[_0x4cbdcf['UNRECOGNIZED']=-0x1]=_0x2f1425(0x54f),_0x4cbdcf))(We||{}),pt=(_0x1763c9=>(_0x1763c9[_0x1763c9[_0x2f1425(0x525)]=0x0]=_0x2f1425(0x525),_0x1763c9[_0x1763c9[_0x2f1425(0x482)]=0x1]=_0x2f1425(0x482),_0x1763c9[_0x1763c9[_0x2f1425(0x246)]=0x2]=_0x2f1425(0x246),_0x1763c9[_0x1763c9[_0x2f1425(0x4a2)]=0x3]=_0x2f1425(0x4a2),_0x1763c9[_0x1763c9[_0x2f1425(0x448)]=0x4]=_0x2f1425(0x448),_0x1763c9[_0x1763c9[_0x2f1425(0x54f)]=-0x1]=_0x2f1425(0x54f),_0x1763c9))(pt||{});const A=_0x2f1425(0x503),ts={};function Ct(_0x394bab){const _0x3c6562=_0x2f1425;var _0x736ae2,_0x2d7081,_0x227efc,_0x38b94f;const _0x5e186f=_0x394bab[_0x3c6562(0x2a5)],_0x2031cd=JSON['parse'](_0x5e186f);switch(_0x2031cd[_0x3c6562(0x369)]){case b['HEARTBEAT']:case b[_0x3c6562(0x343)]:{const _0xcfa1ed=_0x2031cd['infoRsp'];return{..._0x2031cd,'data':_0xcfa1ed,'cmd':_0x2031cd[_0x3c6562(0x369)]};}case b[_0x3c6562(0x177)]:{const _0x5c7bf9=_0x2031cd[_0x3c6562(0x4be)];return{..._0x2031cd,'data':_0x5c7bf9,'cmd':_0x2031cd[_0x3c6562(0x369)]};}case b['RECV']:{const _0x109889=_0x2031cd[_0x3c6562(0x3ad)];switch(_0x109889[_0x3c6562(0x188)]){case _['CollaborationEvent'][_0x3c6562(0x220)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x736ae2=_0x109889[_0x3c6562(0x563)])==null?void 0x0:_0x736ae2['cs']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x412)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x2d7081=_0x109889['csAckEvent'])==null?void 0x0:_0x2d7081['cs']},'cmd':_0x2031cd['cmd']};case _['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x227efc=_0x109889[_0x3c6562(0x4ac)])==null?void 0x0:_0x227efc['cs']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x4dd)]:return{..._0x2031cd,'data':{..._0x109889,'data':(_0x38b94f=_0x109889[_0x3c6562(0x284)])==null?void 0x0:_0x38b94f['cs']},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x20c)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x1b4)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _['CollaborationEvent'][_0x3c6562(0x25f)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x543)]},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x4af)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['leaveEvent']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['LIVESHARE_NEW_HOST']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['liveShareNewHost']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)][_0x3c6562(0x28b)]:case _['CollaborationEvent'][_0x3c6562(0x396)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['liveShareOperation']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['LIVESHARE_TERMINATE']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x40a)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0x2031cd,'data':_0x109889,'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)]['COMMENT_UPDATE']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x219)]},'cmd':_0x2031cd['cmd']};case _[_0x3c6562(0x565)][_0x3c6562(0x292)]:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889['updatePermissionObjEvent']},'cmd':_0x2031cd[_0x3c6562(0x369)]};case _[_0x3c6562(0x565)]['SHOULD_CLOSE_CONN']:return{..._0x2031cd,'data':{..._0x109889,'data':_0x109889[_0x3c6562(0x481)]},'cmd':_0x2031cd[_0x3c6562(0x369)]};default:return _0x2031cd;}}default:return _0x2031cd;}}function Et(_0x1d6e91){const _0x344def=_0x2f1425;switch(_0x1d6e91[_0x344def(0x369)]){case b[_0x344def(0x197)]:case b[_0x344def(0x343)]:return JSON['stringify']({'cmd':_0x1d6e91['cmd'],'routeKey':_0x1d6e91[_0x344def(0x52e)]});case b[_0x344def(0x29a)]:{let _0x30b4fc;switch(_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x188)]){case _[_0x344def(0x565)][_0x344def(0x20c)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x20c)],'updateCursorEvent':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x4af)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)]['USERS_LEAVE'],'leaveEvent':_0x1d6e91['data'][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x25f)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x25f)],'joinEvent':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x484)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x484)],'liveShareNewHost':_0x1d6e91['data'][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)][_0x344def(0x396)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x396)],'liveShareOperation':_0x1d6e91[_0x344def(0x2a5)][_0x344def(0x2a5)]};break;}case _[_0x344def(0x565)]['LIVESHARE_TERMINATE']:{_0x30b4fc={'eventID':_[_0x344def(0x565)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1d6e91['data']['data']};break;}case _['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x30b4fc={'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x1d6e91[_0x344def(0x2a5)]['data']};break;}case _[_0x344def(0x565)][_0x344def(0x28b)]:{_0x30b4fc={'eventID':_[_0x344def(0x565)][_0x344def(0x28b)]};break;}default:_0x30b4fc={'eventID':_0x1d6e91['data'][_0x344def(0x188)]};}return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91['cmd'],'routeKey':_0x1d6e91['routeKey'],'collaMsg':_0x30b4fc});}case b['JOIN']:return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91[_0x344def(0x369)],'routeKey':_0x1d6e91['routeKey'],'joinReq':_0x1d6e91[_0x344def(0x2a5)]});case b['LEAVE']:return JSON[_0x344def(0x1d5)]({'cmd':_0x1d6e91[_0x344def(0x369)],'routeKey':_0x1d6e91[_0x344def(0x52e)],'leaveReq':_0x1d6e91[_0x344def(0x2a5)]});default:throw new Error(_0x344def(0x36b));}}var ss=Object[_0x2f1425(0x1cf)],is=Object[_0x2f1425(0x2ab)],ns=(_0x153e86,_0x46b654,_0x1d7511,_0x2dcb50)=>{for(var _0x263578=_0x2dcb50>0x1?void 0x0:_0x2dcb50?is(_0x46b654,_0x1d7511):_0x46b654,_0x27fe71=_0x153e86['length']-0x1,_0x33ba63;_0x27fe71>=0x0;_0x27fe71--)(_0x33ba63=_0x153e86[_0x27fe71])&&(_0x263578=(_0x2dcb50?_0x33ba63(_0x46b654,_0x1d7511,_0x263578):_0x33ba63(_0x263578))||_0x263578);return _0x2dcb50&&_0x263578&&ss(_0x46b654,_0x1d7511,_0x263578),_0x263578;},oe=(_0x1ae20d,_0x52df62)=>(_0x2a25cc,_0x1da1ce)=>_0x52df62(_0x2a25cc,_0x1da1ce,_0x1ae20d);const Fe=a[_0x2f1425(0x232)](_0x2f1425(0x1a5));function rs(_0x1837c4,_0x2e36aa,_0x1158a4){const _0x421be9=_0x2f1425;return _0x1837c4+'/'+_0x2e36aa+_0x421be9(0x38a)+_0x1158a4+_0x421be9(0x50f);}exports[_0x2f1425(0x19b)]=class extends a[_0x2f1425(0x387)]{constructor(_0x16caa9,_0x14b2fd,_0x13b67e,_0x233d49,_0x5917b4){const _0x245426=_0x2f1425;super(),this['_http']=_0x16caa9,this[_0x245426(0x350)]=_0x14b2fd,this[_0x245426(0x1c3)]=_0x13b67e,this[_0x245426(0x562)]=_0x233d49,this[_0x245426(0x2fa)]=_0x5917b4;}[_0x2f1425(0x424)](_0x40ed34){const _0x4af499=_0x2f1425,_0x1e7206=this[_0x4af499(0x350)]['createSocket'](_0x40ed34);if(!_0x1e7206)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x534443=new a[(_0x4af499(0x309))](),_0x3b2be5=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x1ec)][_0x4af499(0x3ca)](_0x1472e2=>_0x3b2be5[_0x4af499(0x500)](_0x1472e2))),_0x534443['add'](a[_0x4af499(0x2df)](()=>_0x3b2be5[_0x4af499(0x342)]()));const _0x4f364e=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x428)]['subscribe'](_0x34e18b=>_0x4f364e[_0x4af499(0x500)](_0x34e18b))),_0x534443[_0x4af499(0x1fd)](a[_0x4af499(0x2df)](()=>_0x4f364e[_0x4af499(0x342)]()));const _0x55b9a5=new v[(_0x4af499(0x368))]();_0x534443[_0x4af499(0x1fd)](_0x1e7206[_0x4af499(0x427)][_0x4af499(0x3ca)](_0x3d5420=>{const _0x41c217=_0x4af499,_0x433106=Ct(_0x3d5420);_0x55b9a5[_0x41c217(0x500)](_0x433106);})),_0x534443['add'](a['toDisposable'](()=>_0x55b9a5[_0x4af499(0x342)]()));let _0x656385;const _0x299656=()=>{const _0x52bf38=_0x4af499;_0x4f364e[_0x52bf38(0x500)](new Event(_0x52bf38(0x244))),_0x3b2be5['next'](new CloseEvent(_0x52bf38(0x244))),_0x656385[_0x52bf38(0x533)]();};return _0x656385={'memberID':'','close$':_0x3b2be5[_0x4af499(0x2fd)](),'error$':_0x4f364e[_0x4af499(0x2fd)](),'open$':_0x1e7206[_0x4af499(0x404)],'message$':_0x55b9a5[_0x4af499(0x2fd)](),'send':_0x2c726a=>{const _0x1598a1=_0x4af499;if(_0x2c726a[_0x1598a1(0x369)]===b[_0x1598a1(0x29a)]){if(_0x2c726a[_0x1598a1(0x2a5)][_0x1598a1(0x188)]===_[_0x1598a1(0x565)]['SUBMIT_CHANGESET']){this['_submitChangeset'](_0x656385,_0x2c726a['data'])[_0x1598a1(0x288)](_0x31c340=>{const _0x57582f=_0x1598a1;this[_0x57582f(0x562)][_0x57582f(0x348)](_0x31c340),_0x299656();});return;}if(_0x2c726a[_0x1598a1(0x2a5)][_0x1598a1(0x188)]===_[_0x1598a1(0x565)][_0x1598a1(0x355)]){const _0x4d48c5=_0x2c726a[_0x1598a1(0x2a5)];this[_0x1598a1(0x4b9)](_0x4d48c5)['then'](_0x3a7a9a=>{const _0x2f957c=_0x1598a1;_0x55b9a5['next']({'cmd':b[_0x2f957c(0x186)],'code':We['OK'],'routeKey':_0x4d48c5[_0x2f957c(0x2a5)][_0x2f957c(0x437)],'routeType':'','data':{'eventID':_[_0x2f957c(0x565)][_0x2f957c(0x2de)],'data':{'changesets':_0x3a7a9a}}});})['catch'](_0x3cf383=>{this['_logService']['error'](_0x3cf383),_0x299656();});return;}}_0x1e7206[_0x1598a1(0x4b6)](Et(_0x2c726a));},'close':()=>{const _0x38755e=_0x4af499;_0x1e7206['close'](),_0x534443[_0x38755e(0x235)]();}},_0x656385;}async['_submitChangeset'](_0x49f290,_0x56a844){const _0x36497d=_0x2f1425;var _0xdf0df3,_0xf0d4b6;const {unitType:_0x23b3e8,unitID:_0x128bfa,changeset:_0x7210d0}=_0x56a844[_0x36497d(0x2a5)],_0x565860={'unitID':_0x128bfa,'memberID':_0x49f290['memberID'],'type':_0x23b3e8,'changeset':_[_0x36497d(0x469)](_0x7210d0)},_0x4167fd=this['_configService'][_0x36497d(0x480)](gt),_0xa4cb98=this[_0x36497d(0x1c3)][_0x36497d(0x480)](A),_0x29f031=rs((_0xf0d4b6=(_0xdf0df3=_0xa4cb98==null?void 0x0:_0xa4cb98[_0x36497d(0x465)])!=null?_0xdf0df3:_0x4167fd)!=null?_0xf0d4b6:Qt,_0x23b3e8,_0x128bfa);try{await this[_0x36497d(0x201)][_0x36497d(0x31d)](_0x29f031,{'body':_0x565860});}catch(_0x52b8c0){throw this['_logService'][_0x36497d(0x348)](_0x36497d(0x451),_0x36497d(0x1d9)),_0x52b8c0;}}async[_0x2f1425(0x4b9)](_0x167b49){const _0x541644=_0x2f1425,{unitID:_0xde33af,from:_0x31c729,to:_0xb77176,unitType:_0x5b01c8}=_0x167b49[_0x541644(0x2a5)];return(await this[_0x541644(0x2fa)][_0x541644(0x1fe)]({'metadata':void 0x0},{'unitID':_0xde33af,'type':_0x5b01c8,'from':_0x31c729,'to':_0xb77176}))['changesets'];}},exports[_0x2f1425(0x19b)]=ns([oe(0x0,a['Inject'](P[_0x2f1425(0x3a0)])),oe(0x1,a['Inject'](P[_0x2f1425(0x266)])),oe(0x2,a[_0x2f1425(0x47d)]),oe(0x3,a[_0x2f1425(0x2e3)]),oe(0x4,_['ISnapshotServerService'])],exports[_0x2f1425(0x19b)]);const os=_0x2f1425(0x4ec);function as(_0x397ece){const _0x4226f3=_0x2f1425;return JSON[_0x4226f3(0x1d5)](_0x397ece)[_0x4226f3(0x38d)];}class Ge{constructor(){const _0x1e6199=_0x2f1425;d(this,_0x1e6199(0x546),new v[(_0x1e6199(0x368))]()),d(this,_0x1e6199(0x2b3),this[_0x1e6199(0x546)][_0x1e6199(0x2fd)]());}[_0x2f1425(0x502)](_0x2856f2){const _0x1a6f52=_0x2f1425;this[_0x1a6f52(0x546)][_0x1a6f52(0x500)](_0x2856f2);}}var cs=Object['defineProperty'],ls=Object[_0x2f1425(0x2ab)],hs=(_0x225c15,_0x28d82b,_0x125e8b,_0x3ced1c)=>{const _0x460a35=_0x2f1425;for(var _0x817b3=_0x3ced1c>0x1?void 0x0:_0x3ced1c?ls(_0x28d82b,_0x125e8b):_0x28d82b,_0x349914=_0x225c15[_0x460a35(0x38d)]-0x1,_0x329820;_0x349914>=0x0;_0x349914--)(_0x329820=_0x225c15[_0x349914])&&(_0x817b3=(_0x3ced1c?_0x329820(_0x28d82b,_0x125e8b,_0x817b3):_0x329820(_0x817b3))||_0x817b3);return _0x3ced1c&&_0x817b3&&cs(_0x28d82b,_0x125e8b,_0x817b3),_0x817b3;},Ze=(_0x569619,_0x4b11c6)=>(_0x7c4248,_0x31b2da)=>_0x4b11c6(_0x7c4248,_0x31b2da,_0x569619);let q=class extends a[_0x2f1425(0x387)]{constructor(_0x396234,_0x4460dd){const _0x38ebcf=_0x2f1425;super(),d(this,_0x38ebcf(0x486),new Map()),(this[_0x38ebcf(0x458)]=_0x396234,this[_0x38ebcf(0x230)]=_0x4460dd,this[_0x38ebcf(0x425)](a['toDisposable'](v[_0x38ebcf(0x18a)](this['_univerInstanceService'][_0x38ebcf(0x260)](a['UniverInstanceType'][_0x38ebcf(0x1bf)])['pipe'](E[_0x38ebcf(0x1c9)](_0x107d9c=>_0x107d9c['getUnitId']())),this[_0x38ebcf(0x458)][_0x38ebcf(0x260)](a['UniverInstanceType']['UNIVER_DOC'])[_0x38ebcf(0x53d)](E[_0x38ebcf(0x1c9)](_0x3f83df=>_0x3f83df[_0x38ebcf(0x1fa)]())),this[_0x38ebcf(0x458)]['getTypeOfUnitDisposed$'](a[_0x38ebcf(0x35f)][_0x38ebcf(0x1df)])[_0x38ebcf(0x53d)](E[_0x38ebcf(0x1c9)](_0xc4c7a6=>_0xc4c7a6[_0x38ebcf(0x1fa)]())))[_0x38ebcf(0x3ca)](_0x3501ba=>this['_removeRoom'](_0x3501ba)))));}[_0x2f1425(0x256)](_0x3b01c9){const _0xa30072=_0x2f1425;this[_0xa30072(0x230)][_0xa30072(0x256)](_0x3b01c9);}[_0x2f1425(0x187)](){const _0x5493b9=_0x2f1425;return this[_0x5493b9(0x230)]['getCurrentUser']();}[_0x2f1425(0x179)](_0x2a53d3,_0x251d2a){const _0x1c0cda=_0x2f1425;let _0x23975d=this['_roomMembers']['get'](_0x2a53d3);_0x23975d||(_0x23975d=new _s(),this[_0x1c0cda(0x486)][_0x1c0cda(0x36e)](_0x2a53d3,_0x23975d)),_0x23975d[_0x1c0cda(0x179)](_0x251d2a);}[_0x2f1425(0x24f)](_0x3ed5ec,_0x226323){const _0x364dd4=_0x2f1425,_0x522bbd=this[_0x364dd4(0x486)]['get'](_0x3ed5ec);_0x522bbd&&_0x522bbd[_0x364dd4(0x24f)](_0x226323);}[_0x2f1425(0x54b)](_0x86936c){return this['_roomMembers']['get'](_0x86936c);}[_0x2f1425(0x398)](_0x14e09e,_0x30af88){const _0x170f58=_0x2f1425,_0x1bc06f=this['_roomMembers'][_0x170f58(0x41b)](_0x14e09e);if(_0x1bc06f)return _0x1bc06f[_0x170f58(0x398)](_0x30af88);}[_0x2f1425(0x54a)](_0x9b76fc){const _0x4ebe2d=_0x2f1425,_0x46c568=this[_0x4ebe2d(0x486)][_0x4ebe2d(0x41b)](_0x9b76fc);_0x46c568&&(_0x46c568[_0x4ebe2d(0x235)](),this[_0x4ebe2d(0x486)][_0x4ebe2d(0x28f)](_0x9b76fc));}[_0x2f1425(0x235)](){const _0x4b5659=_0x2f1425;this[_0x4b5659(0x486)][_0x4b5659(0x28e)](_0x2925c2=>_0x2925c2[_0x4b5659(0x235)]()),this[_0x4b5659(0x486)][_0x4b5659(0x441)]();}};q=hs([Ze(0x0,a['IUniverInstanceService']),Ze(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x1ff)]))],q);class _s extends a['Disposable']{constructor(){super(...arguments),d(this,'_members',new Map());}[_0x2f1425(0x235)](){const _0xcb2e8=_0x2f1425;this['_members'][_0xcb2e8(0x441)]();}[_0x2f1425(0x179)](_0x11c0b7){const _0x3539f9=_0x2f1425;this['_members'][_0x3539f9(0x36e)](_0x11c0b7[_0x3539f9(0x38b)],_0x11c0b7);}[_0x2f1425(0x24f)](_0x44aeb1){const _0x4b66c7=_0x2f1425;this[_0x4b66c7(0x3de)][_0x4b66c7(0x28f)](_0x44aeb1);}[_0x2f1425(0x398)](_0x5b70c0){const _0x39ef5c=_0x2f1425;return this[_0x39ef5c(0x3de)][_0x39ef5c(0x41b)](_0x5b70c0);}}var us=Object[_0x2f1425(0x1cf)],ds=Object[_0x2f1425(0x2ab)],Ss=(_0x5f4e78,_0x4b8218,_0x619fa2,_0x9c8508)=>{for(var _0x22f3ce=_0x9c8508>0x1?void 0x0:_0x9c8508?ds(_0x4b8218,_0x619fa2):_0x4b8218,_0x4094c0=_0x5f4e78['length']-0x1,_0xb19bb9;_0x4094c0>=0x0;_0x4094c0--)(_0xb19bb9=_0x5f4e78[_0x4094c0])&&(_0x22f3ce=(_0x9c8508?_0xb19bb9(_0x4b8218,_0x619fa2,_0x22f3ce):_0xb19bb9(_0x22f3ce))||_0x22f3ce);return _0x9c8508&&_0x22f3ce&&us(_0x4b8218,_0x619fa2,_0x22f3ce),_0x22f3ce;},B=(_0x540230,_0x2909fa)=>(_0x4b1a52,_0x47e8ec)=>_0x2909fa(_0x4b1a52,_0x47e8ec,_0x540230),$=(_0x13ea19=>(_0x13ea19[_0x13ea19[_0x2f1425(0x279)]=0x0]=_0x2f1425(0x279),_0x13ea19[_0x13ea19[_0x2f1425(0x2ba)]=0x1]='JOINING',_0x13ea19[_0x13ea19[_0x2f1425(0x3a1)]=0x2]='OFFLINE',_0x13ea19[_0x13ea19[_0x2f1425(0x1cd)]=0x3]=_0x2f1425(0x1cd),_0x13ea19))($||{});exports[_0x2f1425(0x4cb)]=class extends a[_0x2f1425(0x25b)]{constructor(_0x36b7fd,_0x3006c8,_0x3c5064,_0x278f39,_0x5d328c,_0x43860c,_0xd25b4a,_0x54d663,_0x50b3ca,_0x2ed8b0){const _0x1df250=_0x2f1425;super(),d(this,_0x1df250(0x3cb),new v[(_0x1df250(0x21d))](0x0)),d(this,_0x1df250(0x3a7),this['_sessionStatus$'][_0x1df250(0x2fd)]()),d(this,_0x1df250(0x50d),new v['Subject']()),d(this,_0x1df250(0x4f8),this[_0x1df250(0x50d)][_0x1df250(0x2fd)]()),d(this,'_socket'),d(this,'_socketMessageSubscription'),d(this,'_collaborationTimeoutTimer'),d(this,_0x1df250(0x210),!0x1),d(this,_0x1df250(0x30a),null),(this[_0x1df250(0x242)]=_0x36b7fd,this[_0x1df250(0x562)]=_0x3c5064,this[_0x1df250(0x296)]=_0x278f39,this[_0x1df250(0x1e2)]=_0x5d328c,this[_0x1df250(0x1c3)]=_0x43860c,this[_0x1df250(0x3ec)]=_0xd25b4a,this[_0x1df250(0x43f)]=_0x54d663,this[_0x1df250(0x176)]=_0x50b3ca,this[_0x1df250(0x315)]=_0x2ed8b0,this['_shouldReportTelemetry']=!!this[_0x1df250(0x315)],_0x3006c8[_0x1df250(0x53d)](v[_0x1df250(0x275)](this['dispose$']))[_0x1df250(0x3ca)](_0x2a7279=>{const _0x29428c=_0x1df250;var _0x38ee86;typeof _0x2a7279>'u'||(this[_0x29428c(0x392)]=_0x2a7279,_0x2a7279?(this[_0x29428c(0x488)](_0x2a7279),this[_0x29428c(0x251)]=_0x2a7279['message$'][_0x29428c(0x3ca)](_0x44ba57=>{const _0x221c06=_0x29428c;_0x44ba57[_0x221c06(0x52e)]===this[_0x221c06(0x242)]&&this['_onCombEvent'](_0x44ba57);})):(this[_0x29428c(0x436)](),this[_0x29428c(0x3cb)][_0x29428c(0x500)](0x2),(_0x38ee86=this['_socketMessageSubscription'])==null||_0x38ee86[_0x29428c(0x225)](),this[_0x29428c(0x251)]=null));}),this[_0x1df250(0x425)](this[_0x1df250(0x296)][_0x1df250(0x349)](()=>{const _0x244617=_0x1df250;var _0x426a08;(_0x426a08=this[_0x244617(0x392)])==null||_0x426a08[_0x244617(0x4b6)]({'cmd':b['LEAVE'],'data':{'roomID':this[_0x244617(0x242)]}});})));}get[_0x2f1425(0x285)](){const _0x5bcd1c=_0x2f1425;return this[_0x5bcd1c(0x3cb)][_0x5bcd1c(0x267)]();}[_0x2f1425(0x280)](){const _0x5a2145=_0x2f1425;var _0x31c2cc,_0xcabd34;return(_0xcabd34=(_0x31c2cc=this[_0x5a2145(0x392)])==null?void 0x0:_0x31c2cc['memberID'])!=null?_0xcabd34:null;}['dispose'](){const _0x66a80b=_0x2f1425;super['dispose'](),this[_0x66a80b(0x2b4)][_0x66a80b(0x500)](),this[_0x66a80b(0x2b4)][_0x66a80b(0x342)]();}[_0x2f1425(0x533)](){const _0x1049c2=_0x2f1425;var _0x31f567,_0x4eb6cc;this[_0x1049c2(0x436)](),(_0x31f567=this[_0x1049c2(0x392)])==null||_0x31f567[_0x1049c2(0x4b6)]({'cmd':b[_0x1049c2(0x277)],'data':{'roomID':this[_0x1049c2(0x242)]}}),(_0x4eb6cc=this[_0x1049c2(0x392)])==null||_0x4eb6cc[_0x1049c2(0x533)](),this[_0x1049c2(0x50d)]['complete'](),this['_sessionStatus$'][_0x1049c2(0x342)](),this['dispose']();}[_0x2f1425(0x37b)](_0x39e7c9){const _0x96a2b0=_0x2f1425;_0x39e7c9['cmd']===b['JOIN']?this[_0x96a2b0(0x4fc)](_0x39e7c9):_0x39e7c9[_0x96a2b0(0x369)]===b[_0x96a2b0(0x186)]&&this[_0x96a2b0(0x2c1)](_0x39e7c9);}['_joinRoom'](_0x468455){const _0x27debd=_0x2f1425;this['_sessionStatus$'][_0x27debd(0x500)](0x1),_0x468455[_0x27debd(0x4b6)]({'cmd':b['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x27debd(0x242)]}]}});}['_onJoinRoomEvent'](_0xbc9fb){const _0x4d8350=_0x2f1425;var _0xd53e87;if(_0xbc9fb['code']===We['FAIL']){this[_0x4d8350(0x1e2)][_0x4d8350(0x1b9)]({'type':X[_0x4d8350(0x4c9)][_0x4d8350(0x501)],'content':this[_0x4d8350(0x3ec)]['t']('session.room-full')}),this[_0x4d8350(0x3cb)][_0x4d8350(0x500)](0x2);return;}this[_0x4d8350(0x3cb)]['next'](0x3);const _0x401642=(_0xd53e87=_0xbc9fb[_0x4d8350(0x2a5)][_0x4d8350(0x507)][this[_0x4d8350(0x242)]])==null?void 0x0:_0xd53e87[_0x4d8350(0x457)];_0x401642&&_0x401642[_0x4d8350(0x28e)](_0x390acc=>this[_0x4d8350(0x43f)][_0x4d8350(0x179)](this[_0x4d8350(0x242)],_0x390acc));}[_0x2f1425(0x2c1)](_0x3f0f27){const _0x5ba541=_0x2f1425;try{const _0x4707dd=_0x3f0f27[_0x5ba541(0x2a5)];switch(_0x4707dd[_0x5ba541(0x188)]){case _['CollaborationEvent'][_0x5ba541(0x25f)]:this['_onUserJoin'](_0x4707dd),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _['CollaborationEvent'][_0x5ba541(0x4af)]:this[_0x5ba541(0x3cc)](_0x4707dd),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)][_0x5ba541(0x412)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x5ba541(0x3b3)](),this['_event$'][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)][_0x5ba541(0x3f0)]:this[_0x5ba541(0x562)][_0x5ba541(0x348)](_0x5ba541(0x2bb)+JSON[_0x5ba541(0x1d5)](_0x4707dd)),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;case _[_0x5ba541(0x565)]['COMMENT_UPDATE']:this[_0x5ba541(0x176)][_0x5ba541(0x502)](_0x4707dd['data']),this[_0x5ba541(0x50d)][_0x5ba541(0x500)](_0x4707dd);break;default:this['_event$'][_0x5ba541(0x500)](_0x4707dd);}}catch(_0x174cc7){this[_0x5ba541(0x562)][_0x5ba541(0x348)](_0x174cc7,_0x3f0f27);}}['_onUserJoin'](_0x48a934){const _0xa38883=_0x2f1425;this[_0xa38883(0x43f)]['updateMember'](this[_0xa38883(0x242)],_0x48a934['data']);}['_onUserLeave'](_0x5d798a){const _0x19a55f=_0x2f1425;this['_memberService'][_0x19a55f(0x24f)](this['_unitID'],_0x5d798a[_0x19a55f(0x2a5)][_0x19a55f(0x38b)]);}async[_0x2f1425(0x4b6)](_0x5ece4a,_0x15a930){const _0x32ea71=_0x2f1425;if(this[_0x32ea71(0x285)]!==0x3||!this[_0x32ea71(0x392)])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x5ece4a['eventID']===_[_0x32ea71(0x565)][_0x32ea71(0x549)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x5ece4a)),this['_socket'][_0x32ea71(0x4b6)]({'cmd':b[_0x32ea71(0x29a)],'routeKey':_0x15a930,'routeType':'','data':_0x5ece4a});}catch(_0x2d4e37){this[_0x32ea71(0x562)][_0x32ea71(0x348)](_0x2d4e37);}}[_0x2f1425(0x37c)](){const _0x341d26=_0x2f1425;var _0x28e4de;this['_collaborationTimeoutTimer']=window[_0x341d26(0x399)](()=>{const _0x192186=_0x341d26;this[_0x192186(0x310)]=null,this[_0x192186(0x1e2)][_0x192186(0x1b9)]({'type':X[_0x192186(0x4c9)][_0x192186(0x1b1)],'content':this['_localeService']['t'](_0x192186(0x2a1))});},(_0x28e4de=this[_0x341d26(0x1c3)]['getConfig'](Ve))!=null?_0x28e4de:St);}[_0x2f1425(0x3b3)](){const _0x41cec9=_0x2f1425;this[_0x41cec9(0x310)]&&(clearTimeout(this[_0x41cec9(0x310)]),this[_0x41cec9(0x310)]=null);}[_0x2f1425(0x213)](_0x4355aa){const _0x14de40=_0x2f1425;if(!this[_0x14de40(0x210)])return;const {data:_0x25ba91}=_0x4355aa,{unitID:_0x17830a,changeset:_0x4abb46}=_0x25ba91,{mutations:_0x361355,type:_0xf94e5e}=_0x4abb46;this['_telemetryInfo']={'unitId':_0x17830a,'type':_0xf94e5e,'startTime':performance[_0x14de40(0x31e)](),'stopTime':0x0,'duration':0x0,'size':as(_0x361355)};}[_0x2f1425(0x2f7)](){const _0x28d6e6=_0x2f1425;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x28d6e6(0x562)]['error'](_0x28d6e6(0x451),_0x28d6e6(0x38e));return;}this[_0x28d6e6(0x30a)][_0x28d6e6(0x550)]=performance[_0x28d6e6(0x31e)](),this['_telemetryInfo']['duration']=this[_0x28d6e6(0x30a)][_0x28d6e6(0x550)]-this[_0x28d6e6(0x30a)][_0x28d6e6(0x2f2)],this[_0x28d6e6(0x315)][_0x28d6e6(0x466)](os,this[_0x28d6e6(0x30a)]),this[_0x28d6e6(0x30a)]=null;}}[_0x2f1425(0x436)](){this['_telemetryInfo']=null;}},exports[_0x2f1425(0x4cb)]=Ss([B(0x2,a['ILogService']),B(0x3,N[_0x2f1425(0x394)]),B(0x4,N[_0x2f1425(0x48c)]),B(0x5,a[_0x2f1425(0x47d)]),B(0x6,a['Inject'](a[_0x2f1425(0x2d7)])),B(0x7,a[_0x2f1425(0x4d1)](q)),B(0x8,a[_0x2f1425(0x4d1)](Ge)),B(0x9,a[_0x2f1425(0x42b)](Vt[_0x2f1425(0x26f)]))],exports['CollaborationSession']);var vs=Object[_0x2f1425(0x1cf)],fs=Object[_0x2f1425(0x2ab)],gs=(_0x21c2dd,_0x534547,_0x53104c,_0x5ea21e)=>{for(var _0x5082ee=_0x5ea21e>0x1?void 0x0:_0x5ea21e?fs(_0x534547,_0x53104c):_0x534547,_0x576cc1=_0x21c2dd['length']-0x1,_0x480e9b;_0x576cc1>=0x0;_0x576cc1--)(_0x480e9b=_0x21c2dd[_0x576cc1])&&(_0x5082ee=(_0x5ea21e?_0x480e9b(_0x534547,_0x53104c,_0x5082ee):_0x480e9b(_0x5082ee))||_0x5082ee);return _0x5ea21e&&_0x5082ee&&vs(_0x534547,_0x53104c,_0x5082ee),_0x5082ee;},Z=(_0x2b72cd,_0x40d89c)=>(_0x169ff4,_0x512163)=>_0x40d89c(_0x169ff4,_0x512163,_0x2b72cd);exports[_0x2f1425(0x1d4)]=class extends a[_0x2f1425(0x387)]{constructor(_0x42cefb,_0x1ad053,_0x56b8b1,_0x250d6e,_0xeccfd8,_0x272b77){const _0x4a46f4=_0x2f1425;super(),d(this,_0x4a46f4(0x31b),new v[(_0x4a46f4(0x21d))](void 0x0)),d(this,_0x4a46f4(0x491),this[_0x4a46f4(0x31b)][_0x4a46f4(0x2fd)]()),d(this,_0x4a46f4(0x3ae),null),d(this,_0x4a46f4(0x1a1),new Map()),d(this,_0x4a46f4(0x32c),new v[(_0x4a46f4(0x21d))]($['IDLE'])),d(this,_0x4a46f4(0x56d),this[_0x4a46f4(0x32c)][_0x4a46f4(0x2fd)]()),d(this,_0x4a46f4(0x1f5),!0x1),d(this,'_retryConnectingTimer'),d(this,_0x4a46f4(0x3ba),0x0),d(this,'_sendHeartbeatTimer'),d(this,'_timeoutTimer'),(this['_injector']=_0x42cefb,this['_localeService']=_0x1ad053,this[_0x4a46f4(0x1e2)]=_0x56b8b1,this[_0x4a46f4(0x562)]=_0x250d6e,this['_configService']=_0xeccfd8,this[_0x4a46f4(0x438)]=_0x272b77,this['_initEventListeners']());}get[_0x2f1425(0x392)](){const _0x585720=_0x2f1425;return this[_0x585720(0x31b)][_0x585720(0x267)]();}[_0x2f1425(0x4f5)](){const _0x395310=_0x2f1425;this['_listenToOfflineEvent'](),this[_0x395310(0x4f9)]();}[_0x2f1425(0x235)](){const _0xba836c=_0x2f1425;super[_0xba836c(0x235)](),this[_0xba836c(0x1a1)][_0xba836c(0x28e)](_0x267ba4=>_0x267ba4['dispose']()),this[_0xba836c(0x1a1)][_0xba836c(0x441)](),this['_status$'][_0xba836c(0x342)]();}async[_0x2f1425(0x1a6)](_0x5df5e4){const _0x151c77=_0x2f1425;if(this[_0x151c77(0x1a1)][_0x151c77(0x555)](_0x5df5e4))return this[_0x151c77(0x1a1)]['get'](_0x5df5e4);this[_0x151c77(0x56e)]();const _0x122a46=this[_0x151c77(0x4fa)][_0x151c77(0x49c)](exports[_0x151c77(0x4cb)],_0x5df5e4,this['_socket$'][_0x151c77(0x2fd)]());return this[_0x151c77(0x1a1)][_0x151c77(0x36e)](_0x5df5e4,_0x122a46),_0x122a46;}['closeSession'](_0x131b19){const _0x16b647=_0x2f1425;var _0x191396;const _0x5a1799=this['_sessions'][_0x16b647(0x41b)](_0x131b19);_0x5a1799&&(this[_0x16b647(0x1a1)][_0x16b647(0x28f)](_0x131b19),_0x5a1799['close']()),this['_sessions']['size']||(_0x191396=this[_0x16b647(0x392)])==null||_0x191396[_0x16b647(0x533)]();}[_0x2f1425(0x32e)](){const _0x498b98=_0x2f1425;this['_retryCount']=0x0,this[_0x498b98(0x356)]!=null&&(clearTimeout(this['_retryConnectingTimer']),this[_0x498b98(0x356)]=null),this[_0x498b98(0x365)]();}[_0x2f1425(0x305)](){const _0x5a23c8=_0x2f1425;var _0x2d91be,_0x3db62a;const _0x1c2156=this['_configService']['getConfig'](ut),_0x82cee4=this[_0x5a23c8(0x1c3)][_0x5a23c8(0x480)](A),_0x366f9d=(_0x3db62a=(_0x2d91be=_0x82cee4==null?void 0x0:_0x82cee4[_0x5a23c8(0x423)])!=null?_0x2d91be:_0x1c2156)!=null?_0x3db62a:Xt,_0xb4d91=this[_0x5a23c8(0x438)][_0x5a23c8(0x424)](_0x366f9d);return this[_0x5a23c8(0x3ae)]=_0xb4d91,_0xb4d91;}['_tryEnsureSocket'](){const _0x80667f=_0x2f1425;var _0x570112,_0x835ef8;try{const _0x1bf728=(_0x835ef8=(_0x570112=this['_socket'])!=null?_0x570112:this[_0x80667f(0x3ae)])!=null?_0x835ef8:this['_createSocket']();if(_0x1bf728){const _0x2db1c2=_0x1bf728[_0x80667f(0x4b6)];_0x1bf728[_0x80667f(0x4b6)]=_0xc92b1b=>(this[_0x80667f(0x44b)](),_0x2db1c2[_0x80667f(0x21b)](_0x1bf728,[_0xc92b1b])),_0x1bf728[_0x80667f(0x427)][_0x80667f(0x3ca)](_0x4c6bd4=>this[_0x80667f(0x542)](_0x1bf728,_0x4c6bd4)),_0x1bf728[_0x80667f(0x428)][_0x80667f(0x53d)](E['take'](0x1))[_0x80667f(0x3ca)](_0x48633a=>this[_0x80667f(0x562)][_0x80667f(0x348)]('[CollaborationSessionService]:\x20socket\x20error',_0x48633a)),_0x1bf728['open$'][_0x80667f(0x53d)](E['take'](0x1))[_0x80667f(0x3ca)](()=>{const _0x5cc7d=_0x80667f;this[_0x5cc7d(0x447)](_0x1bf728);}),_0x1bf728[_0x80667f(0x1ec)][_0x80667f(0x53d)](E[_0x80667f(0x2e9)](0x1))[_0x80667f(0x3ca)](_0x534c76=>{const _0x447666=_0x80667f;this['_logService'][_0x447666(0x27e)](_0x447666(0x46b),'socket\x20close',_0x534c76),this[_0x447666(0x23e)]();});}}catch(_0x4f42dc){this[_0x80667f(0x562)][_0x80667f(0x348)](_0x4f42dc),this[_0x80667f(0x23e)]();}}[_0x2f1425(0x447)](_0x41a271){const _0x5f5572=_0x2f1425;this[_0x5f5572(0x562)]['debug'](_0x5f5572(0x46b),'socket\x20open.'),_0x41a271[_0x5f5572(0x4b6)]({'cmd':b['HELLO']}),this[_0x5f5572(0x44b)]();}['_listenToOfflineEvent'](){const _0x25eb2b=_0x2f1425;window[_0x25eb2b(0x21a)](_0x25eb2b(0x3c3),()=>this[_0x25eb2b(0x2e4)]());}[_0x2f1425(0x2e4)](){const _0x446d59=_0x2f1425;this['_socketReady']=!0x1,this['_candidateSocket']=null,this['_status$'][_0x446d59(0x500)]($[_0x446d59(0x3a1)]),this['_socket$'][_0x446d59(0x500)](null),this[_0x446d59(0x4ab)](),this[_0x446d59(0x372)]();}[_0x2f1425(0x23e)](){const _0x29af91=_0x2f1425;var _0x14b83f;this[_0x29af91(0x2e4)](),this[_0x29af91(0x3ba)]<((_0x14b83f=this[_0x29af91(0x1c3)]['getConfig'](vt))!=null?_0x14b83f:Jt)?(this[_0x29af91(0x1e2)][_0x29af91(0x1b9)]({'key':_0x29af91(0x184),'type':X[_0x29af91(0x4c9)][_0x29af91(0x501)],'content':this[_0x29af91(0x3ec)]['t']('session.will-retry')}),this[_0x29af91(0x365)]()):this['_messageService'][_0x29af91(0x1b9)]({'key':_0x29af91(0x184),'type':X[_0x29af91(0x4c9)][_0x29af91(0x1b1)],'content':this[_0x29af91(0x3ec)]['t']('session.connection-failed')});}['_listenToOnlineEvent'](){const _0x526082=_0x2f1425,_0x1102ab=()=>{const _0x2eb832=_0x4554;this[_0x2eb832(0x392)]||this[_0x2eb832(0x32e)]();},_0x50b81d=()=>{const _0x112301=_0x4554;this[_0x112301(0x392)]||document['visibilityState']==='hidden'||this[_0x112301(0x32e)]();};window[_0x526082(0x21a)](_0x526082(0x301),_0x1102ab),document['addEventListener'](_0x526082(0x55e),_0x50b81d);}[_0x2f1425(0x365)](){const _0x26ad96=_0x2f1425;var _0x2d101f;const _0x230cf0=this[_0x26ad96(0x3ba)],_0x2973f1=this[_0x26ad96(0x1c3)][_0x26ad96(0x480)](A),_0x378f12=_0x230cf0===0x0?0x0:((_0x2d101f=_0x2973f1==null?void 0x0:_0x2973f1[_0x26ad96(0x43c)])!=null?_0x2d101f:zt)*0x2**_0x230cf0;this[_0x26ad96(0x356)]=window[_0x26ad96(0x399)](()=>{const _0x2604aa=_0x26ad96;clearTimeout(this[_0x2604aa(0x356)]),this[_0x2604aa(0x356)]=null,this[_0x2604aa(0x56e)]();},_0x378f12),this[_0x26ad96(0x3ba)]+=0x1;}['_onMessage'](_0x1d962f,_0x2b8a5a){const _0x2595c2=_0x2f1425,{cmd:_0x2260b8}=_0x2b8a5a;_0x2260b8===b[_0x2595c2(0x343)]&&!this['_socketReady']&&(_0x1d962f[_0x2595c2(0x38b)]=_0x2b8a5a[_0x2595c2(0x2a5)][_0x2595c2(0x38b)],this[_0x2595c2(0x31b)][_0x2595c2(0x500)](_0x1d962f),this[_0x2595c2(0x32c)][_0x2595c2(0x500)]($[_0x2595c2(0x1cd)]),this[_0x2595c2(0x1f5)]=!0x0,this[_0x2595c2(0x3ae)]=null),_0x2260b8===b[_0x2595c2(0x197)]&&this[_0x2595c2(0x4ab)](),this[_0x2595c2(0x44b)]();}['_rescheduleHeartbeat'](){const _0xb2a405=_0x2f1425;var _0x4327fb;this[_0xb2a405(0x372)](),this[_0xb2a405(0x1d6)]=window[_0xb2a405(0x399)](()=>this[_0xb2a405(0x2a0)](),(_0x4327fb=this['_configService'][_0xb2a405(0x480)](dt))!=null?_0x4327fb:qt);}['_sendHeartbeat'](){const _0x3af2d2=_0x2f1425;this[_0x3af2d2(0x392)][_0x3af2d2(0x4b6)]({'cmd':b[_0x3af2d2(0x197)]}),this[_0x3af2d2(0x281)]();}['_waitForHeartbeatResponse'](){const _0x563120=_0x2f1425;var _0xb3c006;this[_0x563120(0x576)]=window[_0x563120(0x399)](()=>this[_0x563120(0x23e)](),(_0xb3c006=this['_configService']['getConfig'](Ve))!=null?_0xb3c006:St);}[_0x2f1425(0x372)](){const _0x5e2a58=_0x2f1425;this[_0x5e2a58(0x1d6)]!=null&&(clearTimeout(this[_0x5e2a58(0x1d6)]),this[_0x5e2a58(0x1d6)]=null);}[_0x2f1425(0x4ab)](){const _0x20155a=_0x2f1425;this['_timeoutTimer']!=null&&(clearTimeout(this[_0x20155a(0x576)]),this[_0x20155a(0x576)]=null);}},exports[_0x2f1425(0x1d4)]=gs([Z(0x0,a['Inject'](a[_0x2f1425(0x450)])),Z(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),Z(0x2,N['IMessageService']),Z(0x3,a['ILogService']),Z(0x4,a[_0x2f1425(0x47d)]),Z(0x5,Fe)],exports[_0x2f1425(0x1d4)]);var ms=Object['defineProperty'],Is=Object[_0x2f1425(0x2ab)],ps=(_0xd4e5c4,_0x5d6bc2,_0xa756e2,_0x2cc511)=>{const _0x671483=_0x2f1425;for(var _0x3cf77c=_0x2cc511>0x1?void 0x0:_0x2cc511?Is(_0x5d6bc2,_0xa756e2):_0x5d6bc2,_0x42f138=_0xd4e5c4[_0x671483(0x38d)]-0x1,_0x4c226d;_0x42f138>=0x0;_0x42f138--)(_0x4c226d=_0xd4e5c4[_0x42f138])&&(_0x3cf77c=(_0x2cc511?_0x4c226d(_0x5d6bc2,_0xa756e2,_0x3cf77c):_0x4c226d(_0x3cf77c))||_0x3cf77c);return _0x2cc511&&_0x3cf77c&&ms(_0x5d6bc2,_0xa756e2,_0x3cf77c),_0x3cf77c;},De=(_0x16f3e0,_0x1c773f)=>(_0x2cfc05,_0xb4ce9b)=>_0x1c773f(_0x2cfc05,_0xb4ce9b,_0x16f3e0);let fe=class{constructor(_0x2ca568,_0x206d65,_0x2f3771){const _0x1e4104=_0x2f1425;this[_0x1e4104(0x4fa)]=_0x2ca568,this[_0x1e4104(0x3fd)]=_0x206d65,this[_0x1e4104(0x377)]=_0x2f3771;}[_0x2f1425(0x3f3)](_0x1c522d){const _0x1a8884=_0x2f1425;this[_0x1a8884(0x1bd)](_0x1c522d),this[_0x1a8884(0x25c)](_0x1c522d);}[_0x2f1425(0x304)](_0x7f1e85){const _0x2693d8=_0x2f1425,{unitID:_0x35df98}=_0x7f1e85,_0x57150c=this[_0x2693d8(0x377)]['getRenderById'](_0x35df98)[_0x2693d8(0x17e)](w['DocIMEInputManagerService']),{redoCache:_0x11043d}=_0x57150c['getUndoRedoMutationParamsCache']();if(_0x11043d[_0x2693d8(0x38d)]===0x0)return _0x7f1e85;let _0x15709c=a[_0x2693d8(0x494)]['deepClone'](_0x7f1e85[_0x2693d8(0x569)][0x0]);for(let _0x3eac60=0x0;_0x3eac60<_0x11043d[_0x2693d8(0x38d)];_0x3eac60++){const _0xbbe0ac={'id':_0x2693d8(0x4e5),'params':{..._0x11043d[_0x3eac60]}},_0x5790db=this[_0x2693d8(0x3fd)][_0x2693d8(0x4d8)](_0x15709c,_0xbbe0ac,!0x1);if(_[_0x2693d8(0x2d1)](_0x5790db))throw _0x5790db[_0x2693d8(0x348)];_0x15709c=_0x5790db['m1Prime'];}return{...a[_0x2693d8(0x494)][_0x2693d8(0x53b)](_0x7f1e85),'mutations':[_0x15709c]};}['_transformUndoRedoStack'](_0x1b7ae4){const _0x2312dd=_0x2f1425,{unitID:_0x128e5b}=_0x1b7ae4,_0x171222=this[_0x2312dd(0x377)][_0x2312dd(0x258)](_0x128e5b)[_0x2312dd(0x17e)](w[_0x2312dd(0x510)]),{undoCache:_0x115d4d,redoCache:_0x1d24d5}=_0x171222[_0x2312dd(0x1c8)]();if(_0x115d4d['length']===0x0||_0x1d24d5['length']===0x0)return;const _0x422568=[],_0x30d6a4=[];let _0x491a0c=a[_0x2312dd(0x494)][_0x2312dd(0x53b)](_0x1b7ae4[_0x2312dd(0x569)][0x0]),_0x210d85=a[_0x2312dd(0x494)][_0x2312dd(0x53b)](_0x1b7ae4[_0x2312dd(0x569)][0x0]);for(let _0xa350c9=_0x115d4d[_0x2312dd(0x38d)]-0x1;_0xa350c9>=0x0;_0xa350c9--){const _0x687436={'id':_0x2312dd(0x4e5),'params':{..._0x115d4d[_0xa350c9]}},_0x1af853={'id':_0x2312dd(0x4e5),'params':{..._0x1d24d5[_0xa350c9]}},_0x400e0a=this[_0x2312dd(0x3fd)][_0x2312dd(0x4d8)](_0x491a0c,_0x687436,!0x1),_0x4ab242=this[_0x2312dd(0x3fd)][_0x2312dd(0x4d8)](_0x210d85,_0x1af853,!0x1);if(_[_0x2312dd(0x2d1)](_0x400e0a))throw _0x400e0a[_0x2312dd(0x348)];if(_[_0x2312dd(0x2d1)](_0x4ab242))throw _0x4ab242[_0x2312dd(0x348)];_0x422568[_0x2312dd(0x558)](_0x400e0a[_0x2312dd(0x409)]['params']),_0x30d6a4[_0x2312dd(0x558)](_0x4ab242[_0x2312dd(0x409)][_0x2312dd(0x3d5)]),_0x491a0c=_0x400e0a['m1Prime'],_0x210d85=_0x4ab242[_0x2312dd(0x3aa)];}_0x171222[_0x2312dd(0x24c)]({'undoCache':_0x422568,'redoCache':_0x30d6a4});}['_transformPreviousActiveRange'](_0x4dbc1e){const _0x4d7cdb=_0x2f1425,{unitID:_0x4623ef}=_0x4dbc1e,_0x95fb2b=this[_0x4d7cdb(0x377)]['getRenderById'](_0x4623ef)['with'](w[_0x4d7cdb(0x510)]),_0x17500f=_0x95fb2b[_0x4d7cdb(0x419)]();if(_0x17500f==null)return;const _0x4a3c96=[{'id':_0x4d7cdb(0x4e5),'params':{'unitId':_0x4dbc1e['unitID'],'actions':null,'textRanges':[_0x17500f]}}],_0x3b41e4=this[_0x4d7cdb(0x3fd)][_0x4d7cdb(0x55d)](_0x4dbc1e,_0x4a3c96);if(!_[_0x4d7cdb(0x34c)](_0x3b41e4))throw _0x3b41e4[_0x4d7cdb(0x348)];const _0x561f8f=_0x3b41e4[_0x4d7cdb(0x409)][0x0][_0x4d7cdb(0x3d5)][_0x4d7cdb(0x48d)];Array[_0x4d7cdb(0x476)](_0x561f8f)&&_0x561f8f[_0x4d7cdb(0x38d)]&&_0x95fb2b[_0x4d7cdb(0x4b1)](_0x561f8f[0x0]);}};fe=ps([De(0x0,a['Inject'](a[_0x2f1425(0x450)])),De(0x1,_[_0x2f1425(0x298)]),De(0x2,R[_0x2f1425(0x456)])],fe);var Cs=Object[_0x2f1425(0x1cf)],Es=Object[_0x2f1425(0x2ab)],bs=(_0x432694,_0x5095af,_0x5a4bf6,_0x51f231)=>{const _0x39de15=_0x2f1425;for(var _0x8e40d6=_0x51f231>0x1?void 0x0:_0x51f231?Es(_0x5095af,_0x5a4bf6):_0x5095af,_0x362316=_0x432694[_0x39de15(0x38d)]-0x1,_0x5e38db;_0x362316>=0x0;_0x362316--)(_0x5e38db=_0x432694[_0x362316])&&(_0x8e40d6=(_0x51f231?_0x5e38db(_0x5095af,_0x5a4bf6,_0x8e40d6):_0x5e38db(_0x8e40d6))||_0x8e40d6);return _0x51f231&&_0x8e40d6&&Cs(_0x5095af,_0x5a4bf6,_0x8e40d6),_0x8e40d6;},ae=(_0xc3a8af,_0xf20cd4)=>(_0x294a07,_0x15ff4f)=>_0xf20cd4(_0x294a07,_0x15ff4f,_0xc3a8af);exports['LocalCacheService']=class extends a[_0x2f1425(0x387)]{constructor(_0x6ad988,_0x53940a,_0x1a4390,_0x372167,_0x5775df){const _0x2ccd5e=_0x2f1425;super(),d(this,_0x2ccd5e(0x2a4),new Map()),d(this,_0x2ccd5e(0x329),new Map()),d(this,'_disabled',!0x1),(this[_0x2ccd5e(0x1c3)]=_0x6ad988,this[_0x2ccd5e(0x2a3)]=_0x53940a,this[_0x2ccd5e(0x296)]=_0x1a4390,this[_0x2ccd5e(0x3ec)]=_0x372167,this[_0x2ccd5e(0x341)]=_0x5775df,this[_0x2ccd5e(0x345)]());}['disableLocalCache'](){const _0x212ab9=_0x2f1425;this[_0x212ab9(0x2b2)]=!0x0;}['enableLocalCache'](){const _0x549188=_0x2f1425;this[_0x549188(0x2b2)]=!0x1;}[_0x2f1425(0x235)](){const _0xbbef18=_0x2f1425;this['exhaustSavingTask']()[_0xbbef18(0x313)](()=>super[_0xbbef18(0x235)]());}async[_0x2f1425(0x4b5)](_0x1722a1){const _0xa4602e=_0x2f1425;return this[_0xa4602e(0x2b2)]?null:this['_localStorageService'][_0xa4602e(0x264)](Qe(_0x1722a1));}async[_0x2f1425(0x49d)](_0x2d1ae1,_0x2835d4){const _0x2ace98=_0x2f1425;return!!this[_0x2ace98(0x2a3)][_0x2ace98(0x3e9)](_0x2d1ae1,_0x2835d4);}['updateOfflineData'](_0x1cc174,_0x1d0694,_0xf61798,_0x4fd0d2){const _0x26eedc=_0x2f1425,_0x12d943=this[_0x26eedc(0x341)][_0x26eedc(0x3f7)](_0x1cc174);this[_0x26eedc(0x2a4)][_0x26eedc(0x36e)](_0x1cc174,{'unitID':_0x1cc174,'type':_0x1d0694,'awaitingChangeset':_0xf61798,'mutations':_0x4fd0d2,'rev':_0x12d943}),this[_0x26eedc(0x329)][_0x26eedc(0x555)](_0x1cc174)||this[_0x26eedc(0x4e1)](_0x1cc174);}[_0x2f1425(0x4e1)](_0x1fef65){const _0x4ec11d=_0x2f1425,_0x2d3218=this[_0x4ec11d(0x4c4)]();_0x2d3218===0x0?this[_0x4ec11d(0x49f)](_0x1fef65):this['_saveTaskMap'][_0x4ec11d(0x36e)](_0x1fef65,setTimeout(()=>this[_0x4ec11d(0x49f)](_0x1fef65),_0x2d3218));}[_0x2f1425(0x4c4)](){const _0x72b59b=_0x2f1425;var _0x49baa6;return(_0x49baa6=this[_0x72b59b(0x1c3)][_0x72b59b(0x480)](ft))!=null?_0x49baa6:Zt;}['_saveCache'](_0x42dfa5){const _0x1fc27f=_0x2f1425,_0x11226f=this[_0x1fc27f(0x329)][_0x1fc27f(0x41b)](_0x42dfa5);return _0x11226f!==void 0x0&&window['clearTimeout'](_0x11226f),this[_0x1fc27f(0x2a3)][_0x1fc27f(0x3e9)](Qe(_0x42dfa5),this['_cachedData'][_0x1fc27f(0x41b)](_0x42dfa5))['then'](()=>this['_saveTaskMap'][_0x1fc27f(0x28f)](_0x42dfa5));}async[_0x2f1425(0x306)](){const _0x3eb574=_0x2f1425,_0x5b7ea0=[];this['_saveTaskMap'][_0x3eb574(0x28e)]((_0x57615f,_0x519f46)=>{const _0x2c8b40=_0x3eb574;window[_0x2c8b40(0x2ac)](_0x57615f),_0x5b7ea0['push'](this[_0x2c8b40(0x49f)](_0x519f46)[_0x2c8b40(0x313)](()=>{const _0x29afa6=_0x2c8b40;this[_0x29afa6(0x329)][_0x29afa6(0x28f)](_0x519f46);}));}),await Promise[_0x3eb574(0x3b0)](_0x5b7ea0);}[_0x2f1425(0x345)](){const _0x415389=_0x2f1425;this[_0x415389(0x425)](this[_0x415389(0x296)][_0x415389(0x192)](()=>{const _0x2bfc23=_0x415389;if(this[_0x2bfc23(0x329)][_0x2bfc23(0x362)])return this['_localeService']['t'](_0x2bfc23(0x1e3));}));}},exports['LocalCacheService']=bs([ae(0x0,a['IConfigService']),ae(0x1,a[_0x2f1425(0x385)]),ae(0x2,N[_0x2f1425(0x394)]),ae(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),ae(0x4,a['Inject'](_[_0x2f1425(0x55c)]))],exports['LocalCacheService']);function Qe(_0x58f270){return'unit-cache-'+_0x58f270;}var Ts=Object['defineProperty'],Rs=Object[_0x2f1425(0x2ab)],Os=(_0x44be6a,_0x2899bc,_0x395dc3,_0x28f4b6)=>{const _0x1f0b04=_0x2f1425;for(var _0x5c094b=_0x28f4b6>0x1?void 0x0:_0x28f4b6?Rs(_0x2899bc,_0x395dc3):_0x2899bc,_0x28d61c=_0x44be6a[_0x1f0b04(0x38d)]-0x1,_0x20e852;_0x28d61c>=0x0;_0x28d61c--)(_0x20e852=_0x44be6a[_0x28d61c])&&(_0x5c094b=(_0x28f4b6?_0x20e852(_0x2899bc,_0x395dc3,_0x5c094b):_0x20e852(_0x5c094b))||_0x5c094b);return _0x28f4b6&&_0x5c094b&&Ts(_0x2899bc,_0x395dc3,_0x5c094b),_0x5c094b;},ye=(_0x5c1beb,_0x43c45f)=>(_0xdc9d5a,_0x46484e)=>_0x43c45f(_0xdc9d5a,_0x46484e,_0x5c1beb);function Ds(_0x580a01){const _0x3c728b=_0x2f1425,{unitID:_0x5d92f2,mutations:_0x534352}=_0x580a01;return{'unitId':_0x5d92f2,'subUnitId':_0x534352[0x0]['params'][_0x3c728b(0x2e5)]};}let ge=class{constructor(_0x25f170,_0x357d58,_0x20c914){const _0x475018=_0x2f1425;this['_injector']=_0x25f170,this[_0x475018(0x3fd)]=_0x357d58,this[_0x475018(0x323)]=_0x20c914;}['transformSelections'](_0x663ad8){const _0x4c795c=_0x2f1425;var _0x317857,_0x4754f2,_0x31a857,_0x55d78c;const _0x2740a3=this['_injector']['get'](C['SheetsSelectionsService']),{unitId:_0x5c4f3d,subUnitId:_0xaad532}=Ds(_0x663ad8),_0x35082c=_0x2740a3[_0x4c795c(0x1de)](_0x5c4f3d)['getCurrentSelections'](),_0x240d40=(_0x4754f2=(_0x317857=this['_instanceService'][_0x4c795c(0x33e)](_0x5c4f3d))==null?void 0x0:_0x317857[_0x4c795c(0x51e)]())==null?void 0x0:_0x4754f2[_0x4c795c(0x1be)]();if(_0x35082c[_0x4c795c(0x38d)]===0x0||!_0x5c4f3d||!_0xaad532)return;const _0x639dbb=[{'id':C[_0x4c795c(0x183)]['id'],'params':{'unitId':_0x5c4f3d,'subUnitId':_0x240d40,'selections':a[_0x4c795c(0x494)][_0x4c795c(0x53b)](_0x35082c)}}],_0x3895eb=this[_0x4c795c(0x3fd)][_0x4c795c(0x55d)](_0x663ad8,_0x639dbb);if(!_[_0x4c795c(0x34c)](_0x3895eb))throw _0x3895eb[_0x4c795c(0x348)];const _0x416272=(_0x55d78c=(_0x31a857=_0x3895eb[_0x4c795c(0x409)][0x0])==null?void 0x0:_0x31a857['params'])==null?void 0x0:_0x55d78c[_0x4c795c(0x262)];Array[_0x4c795c(0x476)](_0x416272)&&_0x416272[_0x4c795c(0x38d)]&&this[_0x4c795c(0x4fa)][_0x4c795c(0x41b)](a[_0x4c795c(0x477)])[_0x4c795c(0x373)](C[_0x4c795c(0x183)]['id'],{'unitId':_0x5c4f3d,'subUnitId':_0x240d40,'selections':_0x416272});}};ge=Os([ye(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),ye(0x1,_[_0x2f1425(0x298)]),ye(0x2,a['IUniverInstanceService'])],ge);const be=a[_0x2f1425(0x232)](_0x2f1425(0x1c6));var bt=(_0x15f5f3=>(_0x15f5f3[_0x15f5f3[_0x2f1425(0x271)]=0x0]=_0x2f1425(0x271),_0x15f5f3[_0x15f5f3[_0x2f1425(0x3c9)]=0x1]=_0x2f1425(0x3c9),_0x15f5f3))(bt||{});const et=0x7530,tt=_0x2f1425(0x327);class ys extends a[_0x2f1425(0x387)]{constructor(){const _0x22b724=_0x2f1425;super(),d(this,_0x22b724(0x50a),a[_0x22b724(0x494)]['generateRandomId']()),d(this,_0x22b724(0x1da),new Set()),d(this,'_unitOnClients',new Map()),d(this,_0x22b724(0x1c0),null),d(this,_0x22b724(0x374),new Map()),d(this,_0x22b724(0x3eb),new Map()),this[_0x22b724(0x34f)]();}[_0x2f1425(0x235)](){const _0x1d8af4=_0x2f1425;super['dispose'](),this[_0x1d8af4(0x374)][_0x1d8af4(0x28e)]((_0x543464,_0x3fd41e)=>this[_0x1d8af4(0x47c)](_0x3fd41e)),this['_heartbeatTimer']&&window[_0x1d8af4(0x19e)](this[_0x1d8af4(0x1c0)]);}[_0x2f1425(0x32a)](_0x17ee4e){const _0x10eede=_0x2f1425;return this[_0x10eede(0x3ee)](_0x17ee4e)[_0x10eede(0x53d)](v[_0x10eede(0x1d7)]());}[_0x2f1425(0x17b)](_0x385e58){const _0x246c51=_0x2f1425;this['_selfUnitIDs']['size']===0x0&&this[_0x246c51(0x1d1)](),this[_0x246c51(0x1da)][_0x246c51(0x1fd)](_0x385e58),this[_0x246c51(0x30e)]({'type':0x0,'memberID':this[_0x246c51(0x50a)],'unitIDs':[_0x385e58],'isForwarded':!0x1});}[_0x2f1425(0x318)](_0x5ecddb){const _0x2a01d3=_0x2f1425;this[_0x2a01d3(0x1da)]['delete'](_0x5ecddb),this[_0x2a01d3(0x1da)]['size']===0x0&&this[_0x2a01d3(0x1c0)]&&window[_0x2a01d3(0x19e)](this[_0x2a01d3(0x1c0)]);}[_0x2f1425(0x34f)](){const _0x4b8f21=_0x2f1425;this['disposeWithMe'](a[_0x4b8f21(0x2df)](v['fromEvent'](window,'storage')[_0x4b8f21(0x3ca)](_0x39373c=>{const _0x5ddfc2=_0x4b8f21;if(_0x39373c[_0x5ddfc2(0x23f)]!==tt||!_0x39373c['newValue'])return;const _0x5ade85=JSON[_0x5ddfc2(0x4de)](_0x39373c['newValue']);this['_handleEvent'](_0x5ade85);}))),window[_0x4b8f21(0x21a)](_0x4b8f21(0x57a),()=>this[_0x4b8f21(0x30e)]({'type':0x1,'memberID':this[_0x4b8f21(0x50a)],'unitIDs':Array['from'](this[_0x4b8f21(0x1da)])}));}[_0x2f1425(0x470)](_0x3818ea){const _0x266095=_0x2f1425;switch(_0x3818ea[_0x266095(0x3c5)]){case 0x0:this[_0x266095(0x460)](_0x3818ea);break;case 0x1:this[_0x266095(0x2f4)](_0x3818ea);break;case 0x2:this['_handleHeartbeatEvent'](_0x3818ea);break;}}[_0x2f1425(0x460)](_0x593df0){const _0x14aa9b=_0x2f1425,{unitIDs:_0x2a5451,memberID:_0x4b9e2a,isForwarded:_0x2f140c}=_0x593df0;_0x2a5451[_0x14aa9b(0x28e)](_0x1022d5=>{const _0x39736b=_0x14aa9b;if(!_0x2f140c&&this[_0x39736b(0x40c)][_0x39736b(0x555)](_0x1022d5)&&this[_0x39736b(0x3ee)](_0x1022d5)[_0x39736b(0x500)](0x1),!this[_0x39736b(0x40c)][_0x39736b(0x555)](_0x1022d5)||!this[_0x39736b(0x40c)][_0x39736b(0x41b)](_0x1022d5)['has'](_0x4b9e2a)){const _0x36ef42=this['_unitOnClients'][_0x39736b(0x41b)](_0x1022d5)||new Set();_0x36ef42[_0x39736b(0x1fd)](_0x4b9e2a),this[_0x39736b(0x40c)][_0x39736b(0x36e)](_0x1022d5,_0x36ef42),this[_0x39736b(0x34a)](_0x4b9e2a);}}),_0x2f140c||this['_send']({'type':0x0,'memberID':this[_0x14aa9b(0x50a)],'unitIDs':[...this[_0x14aa9b(0x1da)]],'isForwarded':!0x0});}[_0x2f1425(0x34a)](_0x57828a){const _0x42cd4a=_0x2f1425;this[_0x42cd4a(0x47c)](_0x57828a);const _0x2e71c5=window[_0x42cd4a(0x399)](()=>{const _0x4ff9f8=_0x42cd4a;this[_0x4ff9f8(0x40c)][_0x4ff9f8(0x28e)](_0x29f363=>{const _0x451d25=_0x4ff9f8;_0x29f363[_0x451d25(0x28f)](_0x57828a);});},et*0x2);this[_0x42cd4a(0x374)][_0x42cd4a(0x36e)](_0x57828a,_0x2e71c5);}[_0x2f1425(0x47c)](_0x5493d8){const _0x238c8c=_0x2f1425;if(this[_0x238c8c(0x374)]['has'](_0x5493d8)){const _0x213c11=this[_0x238c8c(0x374)]['get'](_0x5493d8);_0x213c11&&window[_0x238c8c(0x2ac)](_0x213c11),this[_0x238c8c(0x374)][_0x238c8c(0x36e)](_0x5493d8,null);}}[_0x2f1425(0x2f4)](_0x14646d){const {memberID:_0x5c576a,unitIDs:_0x193dd2}=_0x14646d;_0x193dd2['forEach'](_0x508cc4=>{const _0x557bc2=_0x4554;var _0xeb148d;const _0x4a7918=this[_0x557bc2(0x40c)][_0x557bc2(0x41b)](_0x508cc4);_0x4a7918&&(_0x4a7918[_0x557bc2(0x28f)](_0x5c576a),(_0xeb148d=this['_ensureSubject'](_0x508cc4))==null||_0xeb148d[_0x557bc2(0x500)](_0x4a7918[_0x557bc2(0x362)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x5c576a);}[_0x2f1425(0x25a)](_0x369765){const _0x40db55=_0x2f1425;this[_0x40db55(0x34a)](_0x369765[_0x40db55(0x38b)]);}['_send'](_0x35d9b6){const _0x44066d=_0x2f1425;localStorage[_0x44066d(0x3e9)](tt,JSON['stringify'](_0x35d9b6));}[_0x2f1425(0x1d1)](){const _0x21badd=_0x2f1425;this[_0x21badd(0x1c0)]=window['setInterval'](()=>{const _0x18b222=_0x21badd;this[_0x18b222(0x30e)]({'type':0x2,'memberID':this['_id']});},et);}[_0x2f1425(0x3ee)](_0x1e796b){const _0x5b15d4=_0x2f1425;return this[_0x5b15d4(0x3eb)][_0x5b15d4(0x555)](_0x1e796b)||this[_0x5b15d4(0x3eb)][_0x5b15d4(0x36e)](_0x1e796b,new v[(_0x5b15d4(0x21d))](0x0)),this[_0x5b15d4(0x3eb)]['get'](_0x1e796b);}}function Tt(_0x2244f4){let _0x439e3d='';for(const _0x3b0a76 of _0x2244f4){const {startOffset:_0x53faf9,endOffset:_0x2ed3c6,isActive:_0x310a0b}=_0x3b0a76;_0x439e3d['length']&&(_0x439e3d+=','),_0x439e3d+=_0x53faf9+':'+_0x2ed3c6+':'+(_0x310a0b?'1':'0');}return _0x439e3d;}function _0x4554(_0x1ac0f8,_0xc0121b){const _0x995da7=_0x995d();return _0x4554=function(_0x45546c,_0x38470e){_0x45546c=_0x45546c-0x170;let _0x4a2f92=_0x995da7[_0x45546c];return _0x4a2f92;},_0x4554(_0x1ac0f8,_0xc0121b);}function Us(_0x198a41){const _0x504915=_0x2f1425,_0x1baa5a=_0x198a41['split'](','),_0x5196be=[];for(const _0x44959f of _0x1baa5a){const [_0x30ecf5,_0x95ec77,_0x332718]=_0x44959f[_0x504915(0x34e)](':');_0x5196be[_0x504915(0x52d)]({'startOffset':Number(_0x30ecf5),'endOffset':Number(_0x95ec77),'collapsed':_0x30ecf5===_0x95ec77,'isActive':_0x332718==='1'});}return _0x5196be['some'](_0x571512=>_0x571512['isActive'])||(_0x5196be[0x0][_0x504915(0x330)]=!0x0),_0x5196be;}class Ye extends a[_0x2f1425(0x25b)]{constructor(){const _0x2c7b1d=_0x2f1425;super(...arguments),d(this,_0x2c7b1d(0x38f),new v[(_0x2c7b1d(0x21d))](null)),d(this,'collabCursorState$',this[_0x2c7b1d(0x38f)][_0x2c7b1d(0x2fd)]());}[_0x2f1425(0x2d3)](_0x12d37b){const _0x112652=_0x2f1425,{unitID:_0x15d4ae,memberID:_0x12fe2e,textRanges:_0x37b073}=_0x12d37b,_0x3440a1=Tt(_0x37b073),_0x15bc79={'unitID':_0x15d4ae,'memberID':_0x12fe2e,'selection':_0x3440a1};this['_collabCursorState$'][_0x112652(0x500)](_0x15bc79);}}var Ps=Object['defineProperty'],ws=Object[_0x2f1425(0x2ab)],Ms=(_0x3f962e,_0x141360,_0x648057,_0x3b0d59)=>{const _0x523836=_0x2f1425;for(var _0x60e03=_0x3b0d59>0x1?void 0x0:_0x3b0d59?ws(_0x141360,_0x648057):_0x141360,_0x246711=_0x3f962e[_0x523836(0x38d)]-0x1,_0x46f46d;_0x246711>=0x0;_0x246711--)(_0x46f46d=_0x3f962e[_0x246711])&&(_0x60e03=(_0x3b0d59?_0x46f46d(_0x141360,_0x648057,_0x60e03):_0x46f46d(_0x60e03))||_0x60e03);return _0x3b0d59&&_0x60e03&&Ps(_0x141360,_0x648057,_0x60e03),_0x60e03;},st=(_0x169974,_0x8bf37)=>(_0x3116b9,_0x1cdb40)=>_0x8bf37(_0x3116b9,_0x1cdb40,_0x169974);let me=class{constructor(_0x28b06c,_0x5bc902){const _0x3b0cdc=_0x2f1425;this[_0x3b0cdc(0x4fa)]=_0x28b06c,this['_transformService']=_0x5bc902;}['transformSelections'](_0x4c4714){const _0x1363de=_0x2f1425;var _0x2ecbca;const _0xfde62e=this[_0x1363de(0x4fa)][_0x1363de(0x41b)](V['DocSelectionManagerService']),_0x508138=(_0x2ecbca=_0xfde62e[_0x1363de(0x490)]())!=null?_0x2ecbca:[];if(_0x508138[_0x1363de(0x38d)]===0x0)return;const _0x1ebb28=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4c4714[_0x1363de(0x437)],'actions':null,'textRanges':_0x508138}}],_0x210b7e=this[_0x1363de(0x3fd)][_0x1363de(0x55d)](_0x4c4714,_0x1ebb28);if(!_[_0x1363de(0x34c)](_0x210b7e))throw _0x210b7e[_0x1363de(0x348)];const _0x5d771a=_0x210b7e[_0x1363de(0x409)][0x0][_0x1363de(0x3d5)]['textRanges'];Array[_0x1363de(0x476)](_0x5d771a)&&_0x5d771a['length']&&_0xfde62e['replaceTextRanges'](_0x5d771a,!0x1);}};me=Ms([st(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),st(0x1,_[_0x2f1425(0x298)])],me);const Ns=new Set([C['InsertSheetMutation']['id']]);function it(_0x363257,_0x29c297,_0xa9ecd6,_0x3f10f5,_0x594dc0){const _0xfe705a=_0x2f1425;var _0x49bd33,_0x2ec130,_0x108d0e,_0x980529;const _0x10ad09=[];for(const _0x2a36cd of _0x363257)if(Ns['has'](_0x2a36cd['id'])){if(_0x10ad09[_0xfe705a(0x38d)]>0x0)break;_0x10ad09[_0xfe705a(0x52d)](_0x2a36cd);break;}else _0x10ad09[_0xfe705a(0x52d)](_0x2a36cd);const _0x4a0963=(_0x2ec130=(_0x49bd33=_0x594dc0[_0xfe705a(0x187)]())==null?void 0x0:_0x49bd33['userID'])!=null?_0x2ec130:_0xfe705a(0x2ff),_0x105dd3=(_0x980529=(_0x108d0e=_0x594dc0[_0xfe705a(0x187)]())==null?void 0x0:_0x108d0e['memberID'])!=null?_0x980529:_0xfe705a(0x2ff);return{'changeset':{'unitID':_0x29c297,'type':_[_0xfe705a(0x4e2)](_0xa9ecd6[_0xfe705a(0x2bc)](_0x29c297)),'baseRev':_0x3f10f5[_0xfe705a(0x3f7)](_0x29c297),'revision':0x0,'userID':_0x4a0963,'memberID':_0x105dd3,'mutations':_0x10ad09},'pendingMutations':_0x363257[_0xfe705a(0x2ae)](_0x10ad09['length'])};}function As(_0x170fc0,_0x5e188b,_0x2488d9,_0x3be32b,_0x52940d){const _0x520384=_0x2f1425;var _0xd031ba,_0x45b1c1,_0x4e8a7a,_0x5f331f;const _0x5ac82f=[_0x170fc0['reduce']((_0x5e013a,_0xae0439)=>{const _0x240927=_0x4554;var _0x342c71;const {id:_0x51fabb}=_0x5e013a,{id:_0x2043e2,type:_0x4b2f56}=_0xae0439,_0x1ba7ca=(_0x342c71=_0x5e013a[_0x240927(0x3d5)])!=null?_0x342c71:{'actions':null},_0x37b835=_0xae0439['params'];if(_0x51fabb&&_0x51fabb!==_0x2043e2)throw new Error(_0x240927(0x3e1)+_0x51fabb+_0x240927(0x4ba)+_0x2043e2+'.');return{..._0x5e013a,'id':_0x2043e2,'type':_0x4b2f56,'params':{'unitId':_0x37b835[_0x240927(0x406)],'textRanges':_0x37b835[_0x240927(0x48d)],'actions':a[_0x240927(0x498)][_0x240927(0x39f)](_0x1ba7ca[_0x240927(0x2dc)],_0x37b835[_0x240927(0x2dc)])}};},{})],_0x89db3b=(_0x45b1c1=(_0xd031ba=_0x52940d[_0x520384(0x187)]())==null?void 0x0:_0xd031ba['userID'])!=null?_0x45b1c1:_0x520384(0x2ff),_0x412f62=(_0x5f331f=(_0x4e8a7a=_0x52940d['getCurrentUser']())==null?void 0x0:_0x4e8a7a[_0x520384(0x38b)])!=null?_0x5f331f:_0x520384(0x2ff);return{'changeset':{'unitID':_0x5e188b,'type':_[_0x520384(0x4e2)](_0x2488d9[_0x520384(0x2bc)](_0x5e188b)),'baseRev':_0x3be32b['getCurrentRevOfUnit'](_0x5e188b),'revision':0x0,'userID':_0x89db3b,'memberID':_0x412f62,'mutations':_0x5ac82f},'pendingMutations':[]};}const Ls={'id':C[_0x2f1425(0x2f1)]['id'],'type':a[_0x2f1425(0x3bf)]['MUTATION'],'params':{}};var js=Object[_0x2f1425(0x1cf)],$s=Object['getOwnPropertyDescriptor'],z=(_0x710e2e,_0x51edce,_0x2c34bc,_0x9aa5ff)=>{const _0x366292=_0x2f1425;for(var _0x1297ab=_0x9aa5ff>0x1?void 0x0:_0x9aa5ff?$s(_0x51edce,_0x2c34bc):_0x51edce,_0x3dbd8c=_0x710e2e[_0x366292(0x38d)]-0x1,_0x256a2d;_0x3dbd8c>=0x0;_0x3dbd8c--)(_0x256a2d=_0x710e2e[_0x3dbd8c])&&(_0x1297ab=(_0x9aa5ff?_0x256a2d(_0x51edce,_0x2c34bc,_0x1297ab):_0x256a2d(_0x1297ab))||_0x1297ab);return _0x9aa5ff&&_0x1297ab&&js(_0x51edce,_0x2c34bc,_0x1297ab),_0x1297ab;},g=(_0x37bc63,_0x149882)=>(_0x4cbcf2,_0x4ad1ea)=>_0x149882(_0x4cbcf2,_0x4ad1ea,_0x37bc63),y=(_0x1b3834=>(_0x1b3834[_0x2f1425(0x35a)]='not_collab',_0x1b3834[_0x2f1425(0x324)]=_0x2f1425(0x46e),_0x1b3834[_0x2f1425(0x400)]=_0x2f1425(0x1b2),_0x1b3834['AWAITING']='awaiting',_0x1b3834[_0x2f1425(0x391)]=_0x2f1425(0x567),_0x1b3834['FETCH_MISS']=_0x2f1425(0x334),_0x1b3834['CONFLICT']=_0x2f1425(0x299),_0x1b3834[_0x2f1425(0x3a1)]=_0x2f1425(0x3c3),_0x1b3834))(y||{});class J{constructor(_0x179a26,_0x72378a,_0x575cbc,_0x4d4e05,_0x3de0b7,_0x3f8122,_0x39e0c8,_0x4569a2,_0x37501d){const _0x3fbd26=_0x2f1425;d(this,_0x3fbd26(0x42c),null),d(this,_0x3fbd26(0x1cc),[]),(this[_0x3fbd26(0x437)]=_0x179a26,this[_0x3fbd26(0x3c5)]=_0x72378a,this[_0x3fbd26(0x4c3)]=_0x3de0b7,this['_commandService']=_0x3f8122,this[_0x3fbd26(0x3d8)]=_0x39e0c8,this[_0x3fbd26(0x341)]=_0x4569a2,this['_localCacheService']=_0x37501d,this['_awaitingChangeset']=_0x575cbc,this['_pendingMutations']=_0x4d4e05);}[_0x2f1425(0x312)](_0x301115){const _0x7ae08b=_0x2f1425,_0xc9312e=this[_0x7ae08b(0x341)][_0x7ae08b(0x3f7)](this['unitID']);return _0x301115['revision']>_0xc9312e+0x1?(this[_0x7ae08b(0x4c3)][_0x7ae08b(0x4f3)]({'from':_0xc9312e,'to':_0x301115[_0x7ae08b(0x2c8)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x380efd){const _0x3a9496=_0x2f1425;this['_undoRedoService']['transformUndoRedo'](this[_0x3a9496(0x437)],_0x380efd);}[_0x2f1425(0x3d0)](_0x4fab80){const _0x2b2cd2=_0x2f1425;var _0x44ab67,_0x32e042;(_0x32e042=(_0x44ab67=this['_handler'])[_0x2b2cd2(0x1d2)])==null||_0x32e042[_0x2b2cd2(0x55f)](_0x44ab67,_0x4fab80);}['_transformIMECache'](_0xea0a25){const _0x31f1cd=_0x2f1425;var _0x5523d9,_0x4bbe39;return(_0x4bbe39=(_0x5523d9=this['_handler'])['onTransformIME'])==null?void 0x0:_0x4bbe39[_0x31f1cd(0x55f)](_0x5523d9,_0xea0a25);}[_0x2f1425(0x366)](_0x595426){const _0x40f6fd=_0x2f1425;var _0xb97d4a,_0x4a97e6,_0x5d4372;return(_0x5d4372=(_0x4a97e6=(_0xb97d4a=this[_0x40f6fd(0x4c3)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x4a97e6[_0x40f6fd(0x55f)](_0xb97d4a,_0x595426))!=null?_0x5d4372:_0x595426;}[_0x2f1425(0x22b)](_0x52395a){const _0x322c67=_0x2f1425;var _0x24b018,_0x1e4b25;if(this[_0x322c67(0x3c5)]===j[_0x322c67(0x3df)]){const {unitID:_0x873335,mutations:_0x4c939e,memberID:_0x4d037b}=_0x52395a,_0x38761c=_0x4c939e[0x0][_0x322c67(0x3d5)][_0x322c67(0x48d)];Array[_0x322c67(0x476)](_0x38761c)&&_0x38761c[_0x322c67(0x38d)]>0x0&&((_0x1e4b25=(_0x24b018=this[_0x322c67(0x4c3)])['onSyncEditingCollabCursor'])==null||_0x1e4b25[_0x322c67(0x55f)](_0x24b018,{'unitID':_0x873335,'memberID':_0x4d037b,'textRanges':_0x38761c}));}}['_updateLocalCache'](){const _0x46591c=_0x2f1425;this[_0x46591c(0x28a)][_0x46591c(0x202)](this['unitID'],this[_0x46591c(0x3c5)],this[_0x46591c(0x42c)],this[_0x46591c(0x1cc)]);}['_getCurrentRevision'](){const _0x373f61=_0x2f1425;return this[_0x373f61(0x341)][_0x373f61(0x3f7)](this[_0x373f61(0x437)]);}[_0x2f1425(0x1c5)](){const _0x4e85d2=_0x2f1425;this[_0x4e85d2(0x341)][_0x4e85d2(0x44e)](this['unitID']);}[_0x2f1425(0x1e4)](_0x352623){const _0x188df1=_0x2f1425;var _0x5cd7f7;const _0x5dce26=this[_0x188df1(0x366)](_0x352623),_0x2a4378=a[_0x188df1(0x2db)](_0x5dce26[_0x188df1(0x569)],this[_0x188df1(0x4b2)],{'fromCollab':!0x0});if(!_0x2a4378['result'])throw _0x2a4378[_0x188df1(0x348)]instanceof Error?_0x2a4378[_0x188df1(0x348)]:new Error((_0x5cd7f7=_0x2a4378[_0x188df1(0x348)])!=null?_0x5cd7f7:_0x188df1(0x46d));this[_0x188df1(0x233)](_0x5dce26),this['_transformUndoredo'](_0x352623),this[_0x188df1(0x3d0)](_0x5dce26),this[_0x188df1(0x22b)](_0x5dce26),this['_incrementRevisionNumber']();}}let se=class extends J{constructor(_0x3c9020,_0x494e94,_0x109adf,_0x2575dd,_0x55553f,_0x2381fa,_0x7e8b1b,_0x4c4182,_0xda63cf,_0x5e9a20){const _0x16b3d2=_0x2f1425;super(_0x3c9020,_0x494e94,null,[],_0x109adf,_0x4c4182,_0x7e8b1b,_0x2575dd,_0x55553f),d(this,_0x16b3d2(0x1b5),'synced'),(this['_injector']=_0x2381fa,this[_0x16b3d2(0x562)]=_0xda63cf,this[_0x16b3d2(0x3fd)]=_0x5e9a20);}['appendMutation'](_0x3889f1){const _0x1f900d=_0x2f1425,_0x2e0a7e=this['_injector'][_0x1f900d(0x49c)](x,this[_0x1f900d(0x437)],this[_0x1f900d(0x3c5)],[_0x3889f1],this[_0x1f900d(0x4c3)]);return _0x2e0a7e[_0x1f900d(0x3b9)](),_0x2e0a7e[_0x1f900d(0x43d)](),_0x2e0a7e;}['onRemoteChangeset'](_0x2b9151){const _0x1bd98b=_0x2f1425;if(this[_0x1bd98b(0x312)](_0x2b9151))return this['_injector'][_0x1bd98b(0x49c)](H,this[_0x1bd98b(0x437)],this[_0x1bd98b(0x3c5)],null,[],null,[_0x2b9151],this[_0x1bd98b(0x4c3)]);try{const _0x3befad=this[_0x1bd98b(0x3fd)][_0x1bd98b(0x55d)](_0x2b9151,[Ls]);if(_[_0x1bd98b(0x34c)](_0x3befad)){const {c1Prime:_0xfca89a}=_0x3befad;return this[_0x1bd98b(0x1e4)](_0xfca89a),this;}throw _0x3befad[_0x1bd98b(0x348)];}catch(_0x527297){return this[_0x1bd98b(0x562)][_0x1bd98b(0x348)](_0x527297),this[_0x1bd98b(0x415)](!0x1);}}['_onConflict'](_0x17f19c){const _0x2722bc=_0x2f1425;return this[_0x2722bc(0x4fa)][_0x2722bc(0x49c)](F,this[_0x2722bc(0x437)],this['type'],null,[],this['_handler'],_0x17f19c);}[_0x2f1425(0x417)](){const _0x15a088=_0x2f1425;throw new Error(_0x15a088(0x364));}[_0x2f1425(0x471)](){throw new Error('[SyncedState]:\x20received\x20rejection.');}[_0x2f1425(0x316)](){const _0x2c1021=_0x2f1425;return this['_injector'][_0x2c1021(0x49c)](G,this[_0x2c1021(0x437)],this[_0x2c1021(0x3c5)],null,[],this[_0x2c1021(0x4c3)]);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x339)](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x2f1425(0x489)](){const _0x36291c=_0x2f1425,_0x1d046d=this[_0x36291c(0x341)][_0x36291c(0x3f7)](this[_0x36291c(0x437)]);return this[_0x36291c(0x4c3)]['onMissingChangesets']({'from':_0x1d046d,'to':0x0}),this[_0x36291c(0x4fa)][_0x36291c(0x49c)](H,this['unitID'],this[_0x36291c(0x3c5)],null,[],null,[],this['_handler']);}};se=z([g(0x3,a['Inject'](_[_0x2f1425(0x55c)])),g(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x45b)]),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x2e3)]),g(0x9,_[_0x2f1425(0x298)])],se);let x=class extends J{constructor(_0x600a93,_0x165da7,_0x4443e8,_0x3abe64,_0x4d9bc0,_0x52c8aa,_0x5183ea,_0x59ef02,_0x426165,_0x3b8dc4,_0x1cb02b,_0x1bf44a,_0x1303cb,_0x4d24a1){const _0x3048d9=_0x2f1425;super(_0x600a93,_0x165da7,null,_0x4443e8,_0x3abe64,_0x3b8dc4,_0x4d24a1,_0x52c8aa,_0x5183ea),d(this,_0x3048d9(0x1b5),'pending'),d(this,_0x3048d9(0x20d),null),d(this,'_sendingTimer',null),(this[_0x3048d9(0x4fa)]=_0x4d9bc0,this[_0x3048d9(0x43f)]=_0x59ef02,this[_0x3048d9(0x562)]=_0x426165,this[_0x3048d9(0x1c3)]=_0x1cb02b,this[_0x3048d9(0x3fd)]=_0x1bf44a,this[_0x3048d9(0x458)]=_0x1303cb);}[_0x2f1425(0x2c5)](_0x3cab67){const _0xf4b03f=_0x2f1425;return this[_0xf4b03f(0x1cc)]['push'](_0x3cab67),this[_0xf4b03f(0x43d)](),this;}[_0x2f1425(0x389)](_0x1c36a5){const _0x342dfb=_0x2f1425;if(this[_0x342dfb(0x312)](_0x1c36a5))return this[_0x342dfb(0x2d4)](),this[_0x342dfb(0x4fa)][_0x342dfb(0x49c)](H,this[_0x342dfb(0x437)],this[_0x342dfb(0x3c5)],null,this['_pendingMutations'],null,[_0x1c36a5],this[_0x342dfb(0x4c3)]);try{const _0x5baea3=this[_0x342dfb(0x3fd)]['transformMutationsWithChangeset'](_0x1c36a5,this[_0x342dfb(0x1cc)]);if(_[_0x342dfb(0x34c)](_0x5baea3)){const {c1Prime:_0xf64e4b,m2Prime:_0x3c7f1f}=_0x5baea3;this[_0x342dfb(0x1e4)](_0xf64e4b);const _0x5a6825=this[_0x342dfb(0x4fa)][_0x342dfb(0x49c)](x,this[_0x342dfb(0x437)],this[_0x342dfb(0x3c5)],_0x3c7f1f,this[_0x342dfb(0x4c3)]);return this['_clearScheduledTask'](),_0x5a6825[_0x342dfb(0x3b9)](this[_0x342dfb(0x20d)]?Math['max'](0x0,new Date()['getTime']()-this[_0x342dfb(0x20d)]):this[_0x342dfb(0x577)]()),_0x5a6825;}throw _0x5baea3['error'];}catch(_0x5dadc2){return this[_0x342dfb(0x562)]['error'](_0x5dadc2),this['_onConflict'](!0x1);}}[_0x2f1425(0x417)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x2f1425(0x471)](){throw new Error('[PendingState]:\x20received\x20rejection.');}[_0x2f1425(0x316)](){const _0x362bff=_0x2f1425;return this['_clearScheduledTask'](),this['_injector']['createInstance'](G,this[_0x362bff(0x437)],this[_0x362bff(0x3c5)],null,this[_0x362bff(0x1cc)],this[_0x362bff(0x4c3)]);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x3b9)](_0x1fe868){const _0x810148=_0x2f1425,_0x14bf1c=_0x1fe868!=null?_0x1fe868:this[_0x810148(0x577)]();this[_0x810148(0x20d)]=new Date()['getTime'](),this[_0x810148(0x45d)]=window[_0x810148(0x399)](()=>{const _0x596212=_0x810148;this[_0x596212(0x2d4)]();let _0x4c7c93=null;switch(this[_0x596212(0x3c5)]){case j[_0x596212(0x1bf)]:{_0x4c7c93=it(this[_0x596212(0x1cc)],this[_0x596212(0x437)],this[_0x596212(0x458)],this[_0x596212(0x341)],this['_memberService']);break;}case j[_0x596212(0x3df)]:{this['_pendingMutations'][_0x596212(0x39a)](_0x4c4b2f=>_0x4c4b2f['id']===V['RichTextEditingMutation']['id'])?_0x4c7c93=As(this[_0x596212(0x1cc)],this['unitID'],this[_0x596212(0x458)],this['_revisionService'],this[_0x596212(0x43f)]):_0x4c7c93=it(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x596212(0x341)],this[_0x596212(0x43f)]);break;}default:throw new Error(_0x596212(0x333)+this['type']+_0x596212(0x319));}const {changeset:_0x530070,pendingMutations:_0x1775d0}=_0x4c7c93;this[_0x596212(0x4c3)][_0x596212(0x209)](_0x530070);const _0x5d3d6f=_0x1775d0[_0x596212(0x38d)]?this[_0x596212(0x4fa)][_0x596212(0x49c)](k,this['unitID'],this[_0x596212(0x3c5)],_0x530070,_0x1775d0,this[_0x596212(0x4c3)]):this[_0x596212(0x4fa)][_0x596212(0x49c)](W,this[_0x596212(0x437)],this[_0x596212(0x3c5)],_0x530070,this[_0x596212(0x4c3)]);_0x5d3d6f[_0x596212(0x43d)](),this[_0x596212(0x4c3)][_0x596212(0x227)](this,_0x5d3d6f);},_0x14bf1c);}[_0x2f1425(0x577)](){const _0x1ea743=_0x2f1425;var _0x297b95;const _0x1486f3=this[_0x1ea743(0x1c3)]['getConfig'](A);return(_0x297b95=_0x1486f3==null?void 0x0:_0x1486f3[_0x1ea743(0x3fc)])!=null?_0x297b95:Kt;}[_0x2f1425(0x339)](){const _0x58c93a=_0x2f1425;throw new Error(_0x58c93a(0x3bd));}['_clearScheduledTask'](){const _0x37287c=_0x2f1425;this[_0x37287c(0x45d)]!=null&&(clearTimeout(this[_0x37287c(0x45d)]),this['_sendingTimer']=null);}[_0x2f1425(0x415)](_0xf9d5a1){const _0x5e3dd6=_0x2f1425;return this['_clearScheduledTask'](),this['_injector'][_0x5e3dd6(0x49c)](F,this['unitID'],this['type'],null,this[_0x5e3dd6(0x1cc)],this[_0x5e3dd6(0x4c3)],_0xf9d5a1);}};x=z([g(0x4,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),g(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x6,a['Inject'](exports['LocalCacheService'])),g(0x7,a[_0x2f1425(0x4d1)](q)),g(0x8,a['ILogService']),g(0x9,a['ICommandService']),g(0xa,a['IConfigService']),g(0xb,_[_0x2f1425(0x298)]),g(0xc,a['IUniverInstanceService']),g(0xd,a[_0x2f1425(0x45b)])],x);let W=class extends J{constructor(_0x1997f6,_0x50b973,_0x547dde,_0x6d66a,_0x277121,_0x53d634,_0x167ff2,_0x26aba0,_0x3bea44,_0x5290f7,_0x4828d6){const _0x475f27=_0x2f1425;super(_0x1997f6,_0x50b973,_0x547dde,[],_0x6d66a,_0x26aba0,_0x4828d6,_0x53d634,_0x167ff2),d(this,_0x475f27(0x1b5),_0x475f27(0x433)),(this[_0x475f27(0x4fa)]=_0x277121,this['_logService']=_0x3bea44,this[_0x475f27(0x3fd)]=_0x5290f7);}['appendMutation'](_0x307ea4){const _0x114655=_0x2f1425,_0xf948a7=this['_injector'][_0x114655(0x49c)](k,this[_0x114655(0x437)],this[_0x114655(0x3c5)],this[_0x114655(0x42c)],[_0x307ea4],this[_0x114655(0x4c3)]);return _0xf948a7[_0x114655(0x43d)](),_0xf948a7;}['onRemoteChangeset'](_0x3e46ea){const _0x2cf9e6=_0x2f1425;if(this[_0x2cf9e6(0x312)](_0x3e46ea))return this[_0x2cf9e6(0x4fa)]['createInstance'](H,this[_0x2cf9e6(0x437)],this[_0x2cf9e6(0x3c5)],this[_0x2cf9e6(0x42c)],[],null,[_0x3e46ea],this[_0x2cf9e6(0x4c3)]);try{const _0x3d472b=this[_0x2cf9e6(0x3fd)][_0x2cf9e6(0x524)]([_0x3e46ea],[this['_awaitingChangeset']],!0x1);if(_[_0x2cf9e6(0x222)](_0x3d472b)){const {c1Prime:_0x28531c,c2Prime:_0x1ef763}=_0x3d472b;this[_0x2cf9e6(0x1e4)](_0x28531c[0x0]),_0x1ef763[0x0][_0x2cf9e6(0x200)]=this[_0x2cf9e6(0x3a3)]();const _0x369f03=this[_0x2cf9e6(0x4fa)][_0x2cf9e6(0x49c)](W,this[_0x2cf9e6(0x437)],this[_0x2cf9e6(0x3c5)],_0x1ef763[0x0],this[_0x2cf9e6(0x4c3)]);return _0x369f03[_0x2cf9e6(0x43d)](),_0x369f03;}return this[_0x2cf9e6(0x415)](!0x1);}catch(_0x31e300){return this[_0x2cf9e6(0x562)]['error'](_0x31e300),this[_0x2cf9e6(0x415)](!0x1);}}[_0x2f1425(0x417)](_0x22768d){const _0x3730d1=_0x2f1425,_0x4af8b6=this[_0x3730d1(0x341)]['getCurrentRevOfUnit'](this[_0x3730d1(0x437)]);if(_0x22768d[_0x3730d1(0x2c8)]<_0x4af8b6-0x1)return this;if(this[_0x3730d1(0x312)](_0x22768d))return this[_0x3730d1(0x4fa)][_0x3730d1(0x49c)](H,this['unitID'],this[_0x3730d1(0x3c5)],null,[],this[_0x3730d1(0x42c)],[],this[_0x3730d1(0x4c3)]);this[_0x3730d1(0x1c5)]();const _0x1dd66e=this[_0x3730d1(0x4fa)]['createInstance'](se,this[_0x3730d1(0x437)],this['type'],this[_0x3730d1(0x4c3)]);return _0x1dd66e[_0x3730d1(0x43d)](),_0x1dd66e;}[_0x2f1425(0x471)](_0x173ee5){const _0x242bf6=_0x2f1425;return this[_0x242bf6(0x415)](!!(_0x173ee5!=null&&_0x173ee5[_0x242bf6(0x556)]));}['toggleOffline'](){const _0x304d58=_0x2f1425;return this[_0x304d58(0x4fa)][_0x304d58(0x49c)](G,this[_0x304d58(0x437)],this[_0x304d58(0x3c5)],this[_0x304d58(0x42c)],[],this['_handler']);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x339)](){const _0x206a71=_0x2f1425;this[_0x206a71(0x4c3)][_0x206a71(0x209)](this[_0x206a71(0x42c)]);}[_0x2f1425(0x415)](_0x4da787){const _0xc6d420=_0x2f1425;return this[_0xc6d420(0x4fa)][_0xc6d420(0x49c)](F,this[_0xc6d420(0x437)],this[_0xc6d420(0x3c5)],this[_0xc6d420(0x42c)],[],this['_handler'],_0x4da787);}};W=z([g(0x4,a['Inject'](a['Injector'])),g(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x6,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x2e3)]),g(0x9,_[_0x2f1425(0x298)]),g(0xa,a[_0x2f1425(0x45b)])],W);let k=class extends J{constructor(_0x8a6e89,_0x254e53,_0x2a2ddb,_0x11c7f5,_0x34f246,_0x45926a,_0x4a40df,_0x23c4cd,_0x18c302,_0x4bedfe,_0x3187db,_0x3b970a){const _0x1fc86e=_0x2f1425;super(_0x8a6e89,_0x254e53,_0x2a2ddb,_0x11c7f5,_0x34f246,_0x18c302,_0x3b970a,_0x4a40df,_0x23c4cd),d(this,_0x1fc86e(0x1b5),_0x1fc86e(0x567)),(this[_0x1fc86e(0x4fa)]=_0x45926a,this[_0x1fc86e(0x562)]=_0x4bedfe,this[_0x1fc86e(0x3fd)]=_0x3187db);}[_0x2f1425(0x2c5)](_0x3cec90){const _0x18fc79=_0x2f1425;return this[_0x18fc79(0x1cc)][_0x18fc79(0x52d)](_0x3cec90),this;}[_0x2f1425(0x389)](_0x269b9b){const _0x500630=_0x2f1425;if(this[_0x500630(0x312)](_0x269b9b))return this[_0x500630(0x4fa)][_0x500630(0x49c)](H,this[_0x500630(0x437)],this[_0x500630(0x3c5)],this[_0x500630(0x42c)],this[_0x500630(0x1cc)],null,[_0x269b9b],this[_0x500630(0x4c3)]);try{const _0x5e72fc=this[_0x500630(0x3fd)][_0x500630(0x524)]([_0x269b9b],[this[_0x500630(0x42c)]],!0x1);if(_['isTransformChangesetsSuccess'](_0x5e72fc)){const {c1Prime:_0x56b092,c2Prime:_0x100500}=_0x5e72fc,_0x30b41d=this[_0x500630(0x3fd)][_0x500630(0x55d)](_0x56b092[0x0],this['_pendingMutations']);if(_[_0x500630(0x34c)](_0x30b41d)){const {c1Prime:_0x3e21e8,m2Prime:_0x233f79}=_0x30b41d;return this[_0x500630(0x1e4)](_0x3e21e8),_0x100500[0x0][_0x500630(0x200)]=this['_getCurrentRevision'](),this[_0x500630(0x4fa)][_0x500630(0x49c)](k,this['unitID'],this[_0x500630(0x3c5)],_0x100500[0x0],_0x233f79,this[_0x500630(0x4c3)]);}throw _0x30b41d[_0x500630(0x348)];}throw _0x5e72fc['error'];}catch(_0x2b380b){return this[_0x500630(0x562)][_0x500630(0x348)](_0x2b380b),this[_0x500630(0x415)](!0x1);}}[_0x2f1425(0x417)](_0xa60c53){const _0x2b914b=_0x2f1425;if(this['_checkMissing'](_0xa60c53))return this[_0x2b914b(0x4fa)][_0x2b914b(0x49c)](H,this[_0x2b914b(0x437)],this[_0x2b914b(0x3c5)],null,this[_0x2b914b(0x1cc)],this[_0x2b914b(0x42c)],[],this[_0x2b914b(0x4c3)]);this[_0x2b914b(0x1c5)]();const _0x4ffaab=this[_0x2b914b(0x4fa)][_0x2b914b(0x49c)](x,this[_0x2b914b(0x437)],this[_0x2b914b(0x3c5)],this['_pendingMutations'],this['_handler']);return _0x4ffaab[_0x2b914b(0x3b9)](),_0x4ffaab[_0x2b914b(0x43d)](),_0x4ffaab;}[_0x2f1425(0x471)](_0x38c10c){const _0xfc6c01=_0x2f1425;return this[_0xfc6c01(0x415)](!!(_0x38c10c!=null&&_0x38c10c['isPermissionRej']));}[_0x2f1425(0x316)](){const _0x8e4cbe=_0x2f1425;return this[_0x8e4cbe(0x4fa)][_0x8e4cbe(0x49c)](G,this['unitID'],this[_0x8e4cbe(0x3c5)],this[_0x8e4cbe(0x42c)],this[_0x8e4cbe(0x1cc)],this[_0x8e4cbe(0x4c3)]);}[_0x2f1425(0x517)](){return this;}['resend'](){const _0x5da6dd=_0x2f1425;this[_0x5da6dd(0x4c3)]['onSendChangeset'](this['_awaitingChangeset']);}[_0x2f1425(0x415)](_0x6547a1){const _0x56057d=_0x2f1425;return this[_0x56057d(0x4fa)][_0x56057d(0x49c)](F,this[_0x56057d(0x437)],this[_0x56057d(0x3c5)],null,this[_0x56057d(0x1cc)],this['_handler'],_0x6547a1);}};k=z([g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x4d1)](_['RevisionService'])),g(0x7,a['Inject'](exports[_0x2f1425(0x509)])),g(0x8,a['ICommandService']),g(0x9,a[_0x2f1425(0x2e3)]),g(0xa,_[_0x2f1425(0x298)]),g(0xb,a['IUndoRedoService'])],k);let F=class extends J{constructor(_0x589cdc,_0x29e9ba,_0xb30cf5,_0x443c2c,_0x253626,_0x49fdbc=!0x1,_0xb08fcf,_0x17ec47,_0x7c7137,_0x2b6d71,_0x56cb79,_0x2b937b,_0xbfc6c){const _0x3267ee=_0x2f1425;super(_0x589cdc,_0x29e9ba,_0xb30cf5,_0x443c2c,_0x253626,_0x17ec47,_0x7c7137,_0x56cb79,_0x2b6d71),d(this,_0x3267ee(0x1b5),_0x3267ee(0x299)),(this[_0x3267ee(0x307)]=_0x49fdbc,this[_0x3267ee(0x531)]=_0xb08fcf,this['_localeService']=_0x2b937b,this[_0x3267ee(0x189)]=_0xbfc6c,this[_0x3267ee(0x376)](),this[_0x3267ee(0x2c0)](),this[_0x3267ee(0x2eb)]());}['appendMutation'](){return this;}[_0x2f1425(0x389)](){return this;}[_0x2f1425(0x417)](){return this;}[_0x2f1425(0x471)](){return this;}[_0x2f1425(0x316)](){return this;}[_0x2f1425(0x517)](){return this;}['resend'](){const _0x2ef2c2=_0x2f1425;throw new Error(_0x2ef2c2(0x3d4));}[_0x2f1425(0x2c0)](){const _0x1a8c22=_0x2f1425;this[_0x1a8c22(0x28a)][_0x1a8c22(0x202)](this[_0x1a8c22(0x437)],this['type'],null,[]);}['_showConflictNotification'](){const _0x5df5b0=_0x2f1425;this[_0x5df5b0(0x307)]?this[_0x5df5b0(0x189)]['show']({'title':this['_localeService']['t'](_0x5df5b0(0x388)),'content':this[_0x5df5b0(0x3ec)]['t']('permission.content'),'type':_0x5df5b0(0x348),'duration':0x0}):this[_0x5df5b0(0x189)][_0x5df5b0(0x1b9)]({'title':this[_0x5df5b0(0x3ec)]['t']('conflict.title'),'content':this[_0x5df5b0(0x3ec)]['t'](_0x5df5b0(0x430)),'type':_0x5df5b0(0x348),'duration':0x0});}[_0x2f1425(0x2eb)](){const _0x13d985=_0x2f1425;this[_0x13d985(0x531)]['updatePermissionPoint'](new C[(_0x13d985(0x224))](this[_0x13d985(0x437)])['id'],!0x1);}};F=z([g(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x18e)])),g(0x7,a[_0x2f1425(0x477)]),g(0x8,a[_0x2f1425(0x45b)]),g(0x9,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0xa,a['Inject'](_[_0x2f1425(0x55c)])),g(0xb,a['Inject'](a['LocaleService'])),g(0xc,N[_0x2f1425(0x180)])],F);let G=class extends J{constructor(_0x4eba6b,_0x3a7cf9,_0x1e3a41,_0x149dc1,_0x5d69fe,_0x3ad265,_0x158ea5,_0x2df668,_0x20d6c7,_0x3dc86b){const _0x49d53d=_0x2f1425;super(_0x4eba6b,_0x3a7cf9,_0x1e3a41,_0x149dc1,_0x5d69fe,_0x20d6c7,_0x3dc86b,_0x158ea5,_0x2df668),d(this,_0x49d53d(0x1b5),_0x49d53d(0x3c3)),this['_injector']=_0x3ad265;}[_0x2f1425(0x2c5)](_0x113ddc){const _0x13d1f0=_0x2f1425;return this['_pendingMutations'][_0x13d1f0(0x52d)](_0x113ddc),this[_0x13d1f0(0x43d)](),this;}[_0x2f1425(0x389)](_0x2ead0e){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x4da33=_0x2f1425;throw new Error(_0x4da33(0x33a));}['onRemoteRej'](){const _0x4e486e=_0x2f1425;throw new Error(_0x4e486e(0x497));}[_0x2f1425(0x316)](){return this;}[_0x2f1425(0x517)](){const _0x36f99b=_0x2f1425,{_injector:_0x2847e6,_pendingMutations:_0x59b764,_awaitingChangeset:_0x537db1,unitID:_0x5d40b7,_handler:_0x536e30,type:_0x38f9e2}=this,_0x32ad00=Rt(_0x2847e6,_0x5d40b7,_0x38f9e2,_0x537db1,_0x59b764,_0x536e30);return _0x32ad00 instanceof x?_0x32ad00[_0x36f99b(0x3b9)]():(_0x32ad00 instanceof k||_0x32ad00 instanceof W)&&_0x32ad00[_0x36f99b(0x339)](),_0x32ad00;}[_0x2f1425(0x339)](){const _0x418eae=_0x2f1425;throw new Error(_0x418eae(0x340));}};G=z([g(0x5,a['Inject'](a[_0x2f1425(0x450)])),g(0x6,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),g(0x7,a[_0x2f1425(0x4d1)](exports['LocalCacheService'])),g(0x8,a[_0x2f1425(0x477)]),g(0x9,a[_0x2f1425(0x45b)])],G);let H=class extends J{constructor(_0x11416d,_0x335194,_0x29fb73,_0x1946c6,_0x20e6a6,_0x3765cb,_0x3d5e6b,_0xb4d9fc,_0x14063b,_0x39c75f,_0x2e29fe,_0xfd4bfb,_0x3a1971,_0x296e83){const _0x3d1b77=_0x2f1425;super(_0x11416d,_0x335194,_0x29fb73,_0x1946c6,_0x3d5e6b,_0xfd4bfb,_0x3a1971,_0x14063b,_0x39c75f),d(this,_0x3d1b77(0x1b5),_0x3d1b77(0x334)),(this[_0x3d1b77(0x29c)]=_0x20e6a6,this['_queuedRemoteChangesets']=_0x3765cb,this[_0x3d1b77(0x4fa)]=_0xb4d9fc,this['_logService']=_0x2e29fe,this[_0x3d1b77(0x3fd)]=_0x296e83);}['onMissedChangesetFetched'](_0x46eee2){const _0x57eccb=_0x2f1425;try{const _0x42b095=[..._0x46eee2,...this[_0x57eccb(0x1fb)]],_0x3ae50c=[this[_0x57eccb(0x42c)]||this[_0x57eccb(0x29c)]][_0x57eccb(0x2b7)](_0x4e44cd=>!!_0x4e44cd);let _0x3e3982,_0x1096a3;if(_0x3ae50c[_0x57eccb(0x38d)]){const _0x18de46=this[_0x57eccb(0x3fd)][_0x57eccb(0x524)](_0x42b095,_0x3ae50c,!0x1);if(!_['isTransformChangesetsSuccess'](_0x18de46))throw _0x18de46[_0x57eccb(0x348)];_0x3e3982=_0x18de46[_0x57eccb(0x3bc)],_0x1096a3=_0x18de46[_0x57eccb(0x4e9)];}else _0x3e3982=_0x42b095,_0x1096a3=[];let _0x1186ce=this['_pendingMutations'];_0x3e3982[_0x57eccb(0x28e)](_0x31f50a=>{const _0x33962d=_0x57eccb;let _0x53414e;if(_0x1186ce[_0x33962d(0x38d)]){const _0xf61dd1=this[_0x33962d(0x3fd)][_0x33962d(0x55d)](_0x31f50a,_0x1186ce);if(!_[_0x33962d(0x34c)](_0xf61dd1))throw _0xf61dd1[_0x33962d(0x348)];_0x53414e=_0xf61dd1[_0x33962d(0x3bc)],_0x1186ce=_0xf61dd1[_0x33962d(0x409)];}else _0x53414e=_0x31f50a;this['_executeRemoteChangeset'](_0x53414e);}),this[_0x57eccb(0x29c)]&&this[_0x57eccb(0x1c5)](),this['_awaitingChangeset']&&_0x1096a3[_0x57eccb(0x38d)]&&(_0x1096a3[0x0][_0x57eccb(0x200)]=this['_getCurrentRevision']());let _0x25e14a;if(this[_0x57eccb(0x42c)]&&_0x1186ce[_0x57eccb(0x38d)]!==0x0)_0x25e14a=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](k,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1096a3[0x0],_0x1186ce,this[_0x57eccb(0x4c3)]);else{if(this['_awaitingChangeset']&&_0x1186ce[_0x57eccb(0x38d)]===0x0)_0x1096a3[0x0][_0x57eccb(0x200)]=this[_0x57eccb(0x3a3)](),_0x25e14a=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](W,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1096a3[0x0],this[_0x57eccb(0x4c3)]);else{if(_0x1186ce[_0x57eccb(0x38d)]!==0x0){const _0x37e07f=this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](x,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],_0x1186ce,this[_0x57eccb(0x4c3)]);_0x37e07f[_0x57eccb(0x3b9)](),_0x25e14a=_0x37e07f;}else _0x25e14a=this['_injector']['createInstance'](se,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],this['_handler']);}}return _0x25e14a[_0x57eccb(0x43d)](),_0x25e14a;}catch(_0xa38ad3){return this[_0x57eccb(0x562)][_0x57eccb(0x348)](_0x57eccb(0x33c),_0x57eccb(0x2f3),_0xa38ad3),this[_0x57eccb(0x4fa)][_0x57eccb(0x49c)](F,this[_0x57eccb(0x437)],this[_0x57eccb(0x3c5)],this[_0x57eccb(0x42c)],this[_0x57eccb(0x1cc)],this['_handler'],!0x1);}}['resend'](){const _0x26f7e5=_0x2f1425;throw new Error(_0x26f7e5(0x499));}[_0x2f1425(0x2c5)](_0x5d79e2){const _0x255151=_0x2f1425;return this[_0x255151(0x1cc)][_0x255151(0x52d)](_0x5d79e2),this;}[_0x2f1425(0x389)](_0x2eeb77){const _0x315d8e=_0x2f1425;return this[_0x315d8e(0x1fb)][_0x315d8e(0x52d)](_0x2eeb77),this;}['onRemoteAck'](_0x5b43a6){const _0x2631ca=_0x2f1425;if(this[_0x2631ca(0x42c)])return this[_0x2631ca(0x29c)]=this[_0x2631ca(0x42c)],this['_awaitingChangeset']=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x198c8e){const _0xc04cbf=_0x2f1425;return this[_0xc04cbf(0x415)](!!(_0x198c8e!=null&&_0x198c8e['isPermissionRej']));}[_0x2f1425(0x316)](){const _0x44a97c=_0x2f1425;return this[_0x44a97c(0x4fa)]['createInstance'](G,this[_0x44a97c(0x437)],this[_0x44a97c(0x3c5)],this[_0x44a97c(0x42c)],this[_0x44a97c(0x1cc)],this['_handler']);}[_0x2f1425(0x517)](){return this;}[_0x2f1425(0x415)](_0x214f28){const _0x45bbe0=_0x2f1425;return this[_0x45bbe0(0x4fa)][_0x45bbe0(0x49c)](F,this[_0x45bbe0(0x437)],this[_0x45bbe0(0x3c5)],this[_0x45bbe0(0x42c)],this[_0x45bbe0(0x1cc)],this[_0x45bbe0(0x4c3)],_0x214f28);}};H=z([g(0x7,a[_0x2f1425(0x4d1)](a['Injector'])),g(0x8,a['Inject'](_['RevisionService'])),g(0x9,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),g(0xa,a[_0x2f1425(0x2e3)]),g(0xb,a[_0x2f1425(0x477)]),g(0xc,a[_0x2f1425(0x45b)]),g(0xd,_[_0x2f1425(0x298)])],H);function Rt(_0x214789,_0xc0ca50,_0x132778,_0x2c7ae8,_0x3bde43,_0x31a53d){const _0x55525e=_0x2f1425;return _0x2c7ae8&&_0x3bde43[_0x55525e(0x38d)]?_0x214789['createInstance'](k,_0xc0ca50,_0x132778,_0x2c7ae8,_0x3bde43,_0x31a53d):_0x2c7ae8?_0x214789['createInstance'](W,_0xc0ca50,_0x132778,_0x2c7ae8,_0x31a53d):_0x3bde43['length']?_0x214789[_0x55525e(0x49c)](x,_0xc0ca50,_0x132778,_0x3bde43,_0x31a53d):_0x214789[_0x55525e(0x49c)](se,_0xc0ca50,_0x132778,_0x31a53d);}var Hs=Object[_0x2f1425(0x1cf)],xs=Object[_0x2f1425(0x2ab)],Ke=(_0x26985c,_0x2166cc,_0x132a8d,_0xe56a18)=>{const _0x3b6394=_0x2f1425;for(var _0x5e9a70=_0xe56a18>0x1?void 0x0:_0xe56a18?xs(_0x2166cc,_0x132a8d):_0x2166cc,_0x4ba9f6=_0x26985c[_0x3b6394(0x38d)]-0x1,_0x49c538;_0x4ba9f6>=0x0;_0x4ba9f6--)(_0x49c538=_0x26985c[_0x4ba9f6])&&(_0x5e9a70=(_0xe56a18?_0x49c538(_0x2166cc,_0x132a8d,_0x5e9a70):_0x49c538(_0x5e9a70))||_0x5e9a70);return _0xe56a18&&_0x5e9a70&&Hs(_0x2166cc,_0x132a8d,_0x5e9a70),_0x5e9a70;},I=(_0x1e54f7,_0x438e02)=>(_0x2e2285,_0x4b7243)=>_0x438e02(_0x2e2285,_0x4b7243,_0x1e54f7);exports['CollaborationEntity']=class extends a[_0x2f1425(0x25b)]{constructor(_0x5ab65a,_0x128e24,_0x3eebe3,_0x3fcc95,_0x2df746,_0x3fca9b,_0x4b1890,_0x399df8,_0x2f7708,_0x59443d,_0x33e707,_0x14f1ac,_0x599134){const _0x3b398a=_0x2f1425;super(),d(this,_0x3b398a(0x378),new v[(_0x3b398a(0x21d))](null)),d(this,_0x3b398a(0x42f),this[_0x3b398a(0x378)][_0x3b398a(0x2fd)]()),d(this,'_state'),d(this,_0x3b398a(0x3fb),!0x1),d(this,_0x3b398a(0x56d),this[_0x3b398a(0x42f)][_0x3b398a(0x53d)](v['map'](_0x518dc9=>_0x518dc9?_0x518dc9['status']:y[_0x3b398a(0x3a1)]),v[_0x3b398a(0x4bd)](0x1))),d(this,_0x3b398a(0x518),!0x1),d(this,_0x3b398a(0x4a0),[]),(this[_0x3b398a(0x437)]=_0x5ab65a,this[_0x3b398a(0x1e0)]=_0x128e24,this[_0x3b398a(0x1ed)]=_0x3eebe3,this[_0x3b398a(0x4fa)]=_0x3fcc95,this[_0x3b398a(0x28a)]=_0x2df746,this[_0x3b398a(0x461)]=_0x3fca9b,this[_0x3b398a(0x3ec)]=_0x4b1890,this['_revisionService']=_0x399df8,this[_0x3b398a(0x562)]=_0x2f7708,this['_commandService']=_0x59443d,this[_0x3b398a(0x1e2)]=_0x33e707,this[_0x3b398a(0x531)]=_0x14f1ac,this['_singleActiveUnitService']=_0x599134);}get[_0x2f1425(0x3c6)](){const _0x34839c=_0x2f1425;return this[_0x34839c(0x473)];}async[_0x2f1425(0x2fc)](){const _0x1c44ea=_0x2f1425;if(this[_0x1c44ea(0x3c6)])throw new Error(_0x1c44ea(0x2e6));await this[_0x1c44ea(0x34f)]();}[_0x2f1425(0x2ed)](){const _0x3d33d9=_0x2f1425;return this[_0x3d33d9(0x3fb)]=!0x0,a[_0x3d33d9(0x2df)](()=>{const _0x4c7f96=_0x3d33d9;this[_0x4c7f96(0x3fb)]=!0x1,this[_0x4c7f96(0x1cb)]();});}[_0x2f1425(0x17d)](_0x14e761){const _0x1c3825=_0x2f1425;this[_0x1c3825(0x473)]=_0x14e761,this[_0x1c3825(0x378)][_0x1c3825(0x500)](_0x14e761);}async['_init'](){const _0x2f9577=_0x2f1425;var _0x39cfa1;this['_updateState'](await this[_0x2f9577(0x526)]()),this[_0x2f9577(0x4d7)]&&((_0x39cfa1=this[_0x2f9577(0x4d7)])==null||_0x39cfa1[_0x2f9577(0x17b)](this[_0x2f9577(0x437)]),this[_0x2f9577(0x425)](this[_0x2f9577(0x4d7)][_0x2f9577(0x32a)](this[_0x2f9577(0x437)])['subscribe'](_0x29dd7e=>{const _0x43337c=_0x2f9577;this[_0x43337c(0x562)][_0x43337c(0x27e)]('[CollaborationEntity]',_0x43337c(0x4fb),_0x29dd7e),_0x29dd7e===bt[_0x43337c(0x3c9)]?(this[_0x43337c(0x1e2)][_0x43337c(0x1b9)]({'content':this[_0x43337c(0x3ec)]['t'](_0x43337c(0x27c)),'type':X[_0x43337c(0x4c9)][_0x43337c(0x501)]}),this[_0x43337c(0x531)][_0x43337c(0x4cc)](new C['WorkbookEditablePermission'](this['unitID'])['id'],!0x1)):this[_0x43337c(0x531)][_0x43337c(0x4cc)](new C[(_0x43337c(0x224))](this[_0x43337c(0x437)])['id'],!0x0);})));let _0x136278=!0x1;return this[_0x2f9577(0x425)](this[_0x2f9577(0x1e0)]['sessionStatus$'][_0x2f9577(0x3ca)](_0x209562=>{const _0x286c02=_0x2f9577;_0x209562===$['ONLINE']?this[_0x286c02(0x462)](_0x136278):_0x209562===$[_0x286c02(0x3a1)]&&(_0x136278=!0x0,this['_toggleOffline']());})),this[_0x2f9577(0x425)](this[_0x2f9577(0x1e0)]['event$'][_0x2f9577(0x3ca)](_0x1db739=>{const _0x34decb=_0x2f9577;try{switch(_0x1db739[_0x34decb(0x188)]){case _[_0x34decb(0x565)]['NEW_CHANGESETS']:{this['_onRemoteChangeset'](_[_0x34decb(0x4ef)](_0x1db739[_0x34decb(0x2a5)]));break;}case _[_0x34decb(0x565)][_0x34decb(0x412)]:{this[_0x34decb(0x426)](_0x1db739[_0x34decb(0x2a5)]);break;}case _[_0x34decb(0x565)]['CHANGESET_REJ']:{this[_0x34decb(0x4ea)]();break;}case _[_0x34decb(0x565)][_0x34decb(0x2de)]:{this[_0x34decb(0x390)](_0x1db739[_0x34decb(0x2a5)][_0x34decb(0x444)]['map'](_0x1f0246=>_['parseProtocolChangeset'](_0x1f0246)));break;}case _['CollaborationEvent'][_0x34decb(0x220)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0xd7aee7){throw console[_0x34decb(0x348)](_0x34decb(0x2b9),_0xd7aee7),_0xd7aee7;}})),this[_0x2f9577(0x473)];}[_0x2f1425(0x353)](){const _0x4810b4=_0x2f1425;this[_0x4810b4(0x518)]=!0x1;}[_0x2f1425(0x547)](){const _0x30acd7=_0x2f1425;if(this[_0x30acd7(0x518)])throw new Error('[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.');this[_0x30acd7(0x518)]=!0x0;}['_onLocalMutation'](_0x2e31b5){const _0xb8d29d=_0x2f1425;this['_lockTransition'](),this['_updateState'](this[_0xb8d29d(0x473)]['appendMutation'](_0x2e31b5)),this[_0xb8d29d(0x353)]();}[_0x2f1425(0x57c)](_0x5fabf3){const _0x2e7205=_0x2f1425;if(!(_0x5fabf3[_0x2e7205(0x2c8)]<=this[_0x2e7205(0x341)]['getCurrentRevOfUnit'](this[_0x2e7205(0x437)]))){if(this[_0x2e7205(0x3fb)]){this[_0x2e7205(0x4a0)][_0x2e7205(0x52d)](_0x5fabf3);return;}this['_applyRemoteChangeset'](_0x5fabf3);}}[_0x2f1425(0x1cb)](){const _0x18e1d9=_0x2f1425;this['_remoteChangesetQueue'][_0x18e1d9(0x28e)](_0x531792=>this[_0x18e1d9(0x4cd)](_0x531792)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0xfec99c){const _0x424186=_0x2f1425,_0xba35a7=this[_0x424186(0x461)]['interceptor'][_0x424186(0x4a8)](this['_compressMutationService'][_0x424186(0x221)][_0x424186(0x371)]()[_0x424186(0x449)])(_0xfec99c[_0x424186(0x569)],null)||_0xfec99c[_0x424186(0x569)],_0x2b23aa={..._0xfec99c,'mutations':_0xba35a7};this['_lockTransition'](),this[_0x424186(0x17d)](this[_0x424186(0x473)][_0x424186(0x389)](_0x2b23aa)),this[_0x424186(0x353)]();}[_0x2f1425(0x426)](_0x539489){const _0xc58ff6=_0x2f1425;this['_lockTransition'](),this[_0xc58ff6(0x17d)](this['_state'][_0xc58ff6(0x417)](_0x539489)),this[_0xc58ff6(0x353)]();}[_0x2f1425(0x4ea)](_0x2d5bf8){const _0x592058=_0x2f1425;this[_0x592058(0x547)](),this[_0x592058(0x17d)](this[_0x592058(0x473)][_0x592058(0x471)](_0x2d5bf8)),this['_unlockTransition']();}['_onFetchMissResult'](_0x47c26d){const _0x23bf1f=_0x2f1425;if(!(this[_0x23bf1f(0x473)]instanceof H))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x43d346=_0x47c26d[_0x23bf1f(0x1c9)](_0x5c2806=>{const _0x5c6a02=_0x23bf1f,_0x3265b6=this[_0x5c6a02(0x461)][_0x5c6a02(0x221)][_0x5c6a02(0x4a8)](this['_compressMutationService'][_0x5c6a02(0x221)][_0x5c6a02(0x371)]()[_0x5c6a02(0x449)])(_0x5c2806[_0x5c6a02(0x569)],null)||_0x5c2806[_0x5c6a02(0x569)];return{..._0x5c2806,'mutations':_0x3265b6};});this[_0x23bf1f(0x547)](),this[_0x23bf1f(0x17d)](this[_0x23bf1f(0x473)][_0x23bf1f(0x2b5)](_0x43d346)),this[_0x23bf1f(0x353)]();}[_0x2f1425(0x3c0)](){const _0x26c74d=_0x2f1425;this[_0x26c74d(0x547)](),this[_0x26c74d(0x17d)](this[_0x26c74d(0x473)][_0x26c74d(0x316)]()),this[_0x26c74d(0x353)]();}[_0x2f1425(0x462)](_0xc4fa89=!0x1){const _0xb5f2e3=_0x2f1425;this[_0xb5f2e3(0x547)](),this[_0xb5f2e3(0x17d)](this[_0xb5f2e3(0x473)][_0xb5f2e3(0x517)]()),this[_0xb5f2e3(0x353)]();const _0x2f3a38=this[_0xb5f2e3(0x473)];_0xc4fa89&&_0x2f3a38 instanceof se&&(this[_0xb5f2e3(0x547)](),this['_updateState'](_0x2f3a38[_0xb5f2e3(0x489)]()),this['_unlockTransition']());}async[_0x2f1425(0x526)](){return new Promise(_0x2fe3c0=>{const _0x3d0d2e=_0x4554;this[_0x3d0d2e(0x1e0)][_0x3d0d2e(0x3a7)][_0x3d0d2e(0x53d)](v[_0x3d0d2e(0x2e9)](0x1))[_0x3d0d2e(0x3ca)](async _0x2d5514=>{const _0x22fbb3=_0x3d0d2e;_0x2fe3c0(await this[_0x22fbb3(0x513)](_0x2d5514===$[_0x22fbb3(0x1cd)]));});});}[_0x2f1425(0x485)](){const _0x4db1ad=_0x2f1425,_0x259fa7=this[_0x4db1ad(0x437)];return{'onStateChange':(_0x5aae35,_0x47dc6a)=>{const _0x151ae5=_0x4db1ad;if(_0x5aae35!==this[_0x151ae5(0x473)])throw new Error(_0x151ae5(0x2b0)+_0x5aae35[_0x151ae5(0x1b5)]+_0x151ae5(0x4a4)+_0x47dc6a[_0x151ae5(0x1b5)]+'\x0aCurrent:\x20'+this[_0x151ae5(0x473)]['status']);this[_0x151ae5(0x17d)](_0x47dc6a);},'onSendChangeset':_0xbc7de5=>{const _0x20bdac=_0x4db1ad,_0x3a5b41={'eventID':_[_0x20bdac(0x565)][_0x20bdac(0x549)],'data':{'unitID':_0xbc7de5[_0x20bdac(0x437)],'unitType':this[_0x20bdac(0x1ed)],'changeset':_0xbc7de5,'memberID':this[_0x20bdac(0x1e0)][_0x20bdac(0x280)]()}};this['session'][_0x20bdac(0x4b6)](_0x3a5b41,this[_0x20bdac(0x437)]);},'onMissingChangesets':({from:_0x197e91,to:_0x16bdf4})=>{const _0x5ed17c=_0x4db1ad;this[_0x5ed17c(0x562)][_0x5ed17c(0x27e)](_0x5ed17c(0x52b),'fetching\x20missing\x20changesets\x20from\x20'+_0x197e91+_0x5ed17c(0x46c)+_0x16bdf4);const _0x170f21={'eventID':_[_0x5ed17c(0x565)]['FETCH_MISSING'],'data':{'unitID':_0x259fa7,'unitType':this[_0x5ed17c(0x1ed)],'from':_0x197e91,'to':_0x16bdf4}};this['session'][_0x5ed17c(0x4b6)](_0x170f21,this[_0x5ed17c(0x437)]);}};}async[_0x2f1425(0x513)](_0x5639f4){const _0xbfe939=_0x2f1425;var _0x58de4d,_0x2fdf2f;const _0x57d47f=await this['_localCacheService'][_0xbfe939(0x4b5)](this[_0xbfe939(0x437)]),_0x212e96=(_0x58de4d=_0x57d47f==null?void 0x0:_0x57d47f['mutations'])!=null?_0x58de4d:[],_0x180b46=(_0x2fdf2f=_0x57d47f==null?void 0x0:_0x57d47f[_0xbfe939(0x30c)])!=null?_0x2fdf2f:null,_0x3c34b1=this[_0xbfe939(0x437)];try{this['_replayCachedMutations'](_0x180b46,_0x212e96);}catch(_0x497577){this['_logService'][_0xbfe939(0x348)](_0x497577);}const _0x30d8a9=this[_0xbfe939(0x485)]();if(_0x5639f4){const _0x2e68e6=Rt(this['_injector'],_0x3c34b1,this[_0xbfe939(0x1ed)],_0x180b46,_0x212e96,_0x30d8a9);return _0x2e68e6 instanceof x?_0x2e68e6[_0xbfe939(0x3b9)]():(_0x2e68e6 instanceof k||_0x2e68e6 instanceof W)&&_0x2e68e6[_0xbfe939(0x339)](),_0x2e68e6;}return this[_0xbfe939(0x4fa)][_0xbfe939(0x49c)](G,_0x3c34b1,this[_0xbfe939(0x1ed)],_0x180b46,_0x212e96,_0x30d8a9);}['_replayCachedMutations'](_0x559849,_0x443123){const _0x4f1502=_0x2f1425;var _0x3ef3f0,_0x492272;const _0x513da5=this[_0x4f1502(0x461)][_0x4f1502(0x221)][_0x4f1502(0x4a8)](this[_0x4f1502(0x461)]['interceptor'][_0x4f1502(0x371)]()[_0x4f1502(0x449)]);(_0x3ef3f0=_0x513da5((_0x559849==null?void 0x0:_0x559849[_0x4f1502(0x569)])||[],null))==null||_0x3ef3f0['forEach'](_0x4ad2cb=>this[_0x4f1502(0x4b2)][_0x4f1502(0x373)](_0x4ad2cb['id'],_0x4ad2cb['params'])),(_0x492272=_0x513da5(_0x443123||[],null))==null||_0x492272[_0x4f1502(0x28e)](_0x2be1b6=>this[_0x4f1502(0x4b2)][_0x4f1502(0x373)](_0x2be1b6['id'],_0x2be1b6[_0x4f1502(0x3d5)]));}},exports[_0x2f1425(0x32b)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a['Injector'])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a['LocaleService'])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x2e3)]),I(0x9,a['ICommandService']),I(0xa,N[_0x2f1425(0x48c)]),I(0xb,a[_0x2f1425(0x18e)]),I(0xc,a[_0x2f1425(0x42b)](be))],exports['CollaborationEntity']),exports[_0x2f1425(0x358)]=class extends exports[_0x2f1425(0x32b)]{constructor(_0x4b35ee,_0x5c4d72,_0x440cce,_0x425be0,_0x816b44,_0x4bfeb5,_0x164fb6,_0x13843e,_0x189b5e,_0x153a67,_0x5472c0,_0x112b2d,_0x1b5747,_0x3aedfe,_0x291929,_0x26bef2,_0x39e914){const _0x16b36e=_0x2f1425;super(_0x4b35ee,_0x440cce,_0x5c4d72,_0x425be0,_0x816b44,_0x4bfeb5,_0x164fb6,_0x13843e,_0x1b5747,_0x3aedfe,_0x291929,_0x26bef2,_0x39e914),this[_0x16b36e(0x437)]=_0x4b35ee,this[_0x16b36e(0x3c5)]=_0x5c4d72,this[_0x16b36e(0x3b2)]=_0x189b5e,this['_docTransformIMECacheService']=_0x153a67,this[_0x16b36e(0x3e3)]=_0x5472c0,this[_0x16b36e(0x295)]=_0x112b2d;}['_createHandler'](){const _0x4543e9=_0x2f1425,_0xc203cf=super[_0x4543e9(0x485)]();return _0xc203cf['onTransformIME']=_0x3ee2e9=>this['_docTransformIMECacheService'][_0x4543e9(0x3f3)](_0x3ee2e9),_0xc203cf[_0x4543e9(0x1d2)]=_0x579ecb=>this[_0x4543e9(0x3e3)][_0x4543e9(0x4df)](_0x579ecb),_0xc203cf['onSyncEditingCollabCursor']=_0x231f56=>this['_docSyncEditingCollabCursorService'][_0x4543e9(0x2d3)](_0x231f56),_0xc203cf['onTransformRemoteChangesetByIMECache']=_0x47d2a3=>this[_0x4543e9(0x297)]['transformRemoteChangeset'](_0x47d2a3),_0xc203cf;}async[_0x2f1425(0x34f)](){const _0x1d4d3b=_0x2f1425,_0x2222a1=await super[_0x1d4d3b(0x34f)]();return this[_0x1d4d3b(0x425)](this[_0x1d4d3b(0x4b2)][_0x1d4d3b(0x40b)]((_0x40fb5c,_0x3e9b0d)=>{const _0x14951a=_0x1d4d3b;if(_0x40fb5c[_0x14951a(0x3c5)]!==a['CommandType']['MUTATION']||_0x3e9b0d!=null&&_0x3e9b0d[_0x14951a(0x420)]||_0x3e9b0d!=null&&_0x3e9b0d['onlyLocal'])return;const _0x4b7eae=_0x40fb5c[_0x14951a(0x3d5)];if((_0x4b7eae==null?void 0x0:_0x4b7eae['unitId'])!==this[_0x14951a(0x437)])return;let _0x835d14=_0x40fb5c;if(_0x835d14['id']===V['RichTextEditingMutation']['id']){const _0xfbcae5=_0x835d14['params'];_0x835d14={'id':V[_0x14951a(0x57e)]['id'],'type':a[_0x14951a(0x3bf)][_0x14951a(0x3c2)],'params':{'unitId':_0xfbcae5[_0x14951a(0x406)],'actions':_0xfbcae5[_0x14951a(0x2dc)],'textRanges':null}};}const _0x24c36d=this[_0x14951a(0x461)][_0x14951a(0x221)][_0x14951a(0x4a8)](this[_0x14951a(0x461)][_0x14951a(0x221)][_0x14951a(0x371)]()['COMPRESS_MUTATION_SEND'])([_0x835d14],null)||[_0x835d14];this['_onLocalMutation'](_0x24c36d[0x0]);})),_0x2222a1;}},exports[_0x2f1425(0x358)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a['Inject'](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x4d1)](w[_0x2f1425(0x573)])),I(0x9,a[_0x2f1425(0x4d1)](fe)),I(0xa,a[_0x2f1425(0x4d1)](me)),I(0xb,a[_0x2f1425(0x4d1)](Ye)),I(0xc,a[_0x2f1425(0x2e3)]),I(0xd,a[_0x2f1425(0x477)]),I(0xe,N[_0x2f1425(0x48c)]),I(0xf,a['IPermissionService']),I(0x10,a['Optional'](be))],exports[_0x2f1425(0x358)]),exports['SheetCollaborationEntity']=class extends exports[_0x2f1425(0x32b)]{constructor(_0x25dfe8,_0x56f161,_0x139c34,_0x1c4c31,_0x4e9e42,_0x306263,_0x5df584,_0x510161,_0x375051,_0x54786b,_0x2b900a,_0x4006fb,_0x1e3b11,_0x548014){const _0x18c41e=_0x2f1425;super(_0x25dfe8,_0x139c34,_0x56f161,_0x1c4c31,_0x4e9e42,_0x306263,_0x5df584,_0x510161,_0x54786b,_0x2b900a,_0x4006fb,_0x1e3b11,_0x548014),this[_0x18c41e(0x437)]=_0x25dfe8,this[_0x18c41e(0x3c5)]=_0x56f161,this[_0x18c41e(0x31a)]=_0x375051;}[_0x2f1425(0x485)](){const _0x1bfeda=_0x2f1425,_0x1fca90=super[_0x1bfeda(0x485)]();return _0x1fca90[_0x1bfeda(0x1d2)]=_0x421165=>this['_sheetTransformSelectionsService']['transformSelections'](_0x421165),_0x1fca90;}async[_0x2f1425(0x34f)](){const _0x4a2821=_0x2f1425,_0x54ab1f=await super[_0x4a2821(0x34f)]();return this[_0x4a2821(0x425)](this[_0x4a2821(0x4b2)][_0x4a2821(0x40b)]((_0x52f20b,_0x219f3f)=>{const _0x45e4d3=_0x4a2821;if(_0x52f20b[_0x45e4d3(0x3c5)]!==a['CommandType'][_0x45e4d3(0x3c2)]||_0x219f3f!=null&&_0x219f3f[_0x45e4d3(0x420)]||_0x219f3f!=null&&_0x219f3f[_0x45e4d3(0x1ab)])return;const _0x80388e=_0x52f20b[_0x45e4d3(0x3d5)];if((_0x80388e==null?void 0x0:_0x80388e[_0x45e4d3(0x406)])!==this['unitID'])return;const _0x1659b0=_0x52f20b,_0x5338c5=this['_compressMutationService'][_0x45e4d3(0x221)][_0x45e4d3(0x4a8)](this[_0x45e4d3(0x461)][_0x45e4d3(0x221)][_0x45e4d3(0x371)]()['COMPRESS_MUTATION_SEND'])([_0x1659b0],null)||[_0x1659b0];this['_onLocalMutation'](_0x5338c5[0x0]);})),_0x54ab1f;}},exports[_0x2f1425(0x4f2)]=Ke([I(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),I(0x4,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),I(0x5,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x3f1)])),I(0x6,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)])),I(0x7,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x55c)])),I(0x8,a[_0x2f1425(0x4d1)](ge)),I(0x9,a['ILogService']),I(0xa,a[_0x2f1425(0x477)]),I(0xb,N['IMessageService']),I(0xc,a[_0x2f1425(0x18e)]),I(0xd,a[_0x2f1425(0x42b)](be))],exports[_0x2f1425(0x4f2)]);var ks=Object[_0x2f1425(0x1cf)],Bs=Object[_0x2f1425(0x2ab)],Vs=(_0x128dcf,_0x540e70,_0x4b2713,_0x29fbd6)=>{const _0x44bf34=_0x2f1425;for(var _0x4e8b22=_0x29fbd6>0x1?void 0x0:_0x29fbd6?Bs(_0x540e70,_0x4b2713):_0x540e70,_0x79d4aa=_0x128dcf[_0x44bf34(0x38d)]-0x1,_0x15689d;_0x79d4aa>=0x0;_0x79d4aa--)(_0x15689d=_0x128dcf[_0x79d4aa])&&(_0x4e8b22=(_0x29fbd6?_0x15689d(_0x540e70,_0x4b2713,_0x4e8b22):_0x15689d(_0x4e8b22))||_0x4e8b22);return _0x29fbd6&&_0x4e8b22&&ks(_0x540e70,_0x4b2713,_0x4e8b22),_0x4e8b22;},Ue=(_0x2e3cd9,_0x163095)=>(_0x13a90f,_0x107413)=>_0x163095(_0x13a90f,_0x107413,_0x2e3cd9);exports[_0x2f1425(0x4f1)]=class extends a[_0x2f1425(0x25b)]{constructor(_0x527c9a,_0x1cda5d,_0x2f82c5){const _0xff55f9=_0x2f1425;super(),d(this,_0xff55f9(0x4d5),new Map()),d(this,_0xff55f9(0x46f),new v[(_0xff55f9(0x368))]()),(this['_injector']=_0x527c9a,this['_collabSessionService']=_0x1cda5d,this[_0xff55f9(0x458)]=_0x2f82c5,this['_init']());}[_0x2f1425(0x235)](){const _0x5f234f=_0x2f1425;super[_0x5f234f(0x235)](),this['_entities'][_0x5f234f(0x28e)](_0x2baf81=>_0x2baf81[_0x5f234f(0x235)]()),this['_entities'][_0x5f234f(0x441)]();}[_0x2f1425(0x216)](_0x44d6f0){const _0x4577f1=_0x2f1425;var _0x81b9e9;return(_0x81b9e9=this['_entities'][_0x4577f1(0x41b)](_0x44d6f0))!=null?_0x81b9e9:null;}[_0x2f1425(0x384)](_0xd5bc6c){const _0x10ed17=_0x2f1425,_0x4d2df9=this[_0x10ed17(0x216)](_0xd5bc6c);return _0x4d2df9?v['of'](_0x4d2df9):this[_0x10ed17(0x46f)]['pipe'](E[_0x10ed17(0x2b7)](_0x3b66e5=>_0x3b66e5[_0x10ed17(0x437)]===_0xd5bc6c));}[_0x2f1425(0x34f)](){const _0x31ac0e=_0x2f1425;this[_0x31ac0e(0x458)][_0x31ac0e(0x4e4)](a[_0x31ac0e(0x35f)]['UNIVER_SHEET'])[_0x31ac0e(0x53d)](v['takeUntil'](this[_0x31ac0e(0x2b4)]),E[_0x31ac0e(0x39d)](0x10))[_0x31ac0e(0x3ca)](async _0x470b46=>{const _0x13a5a1=_0x31ac0e,_0x10eee4=_0x470b46['getUnitId'](),_0xa1eb4d=await this['_startCollaboration'](_0x10eee4,j[_0x13a5a1(0x1bf)]);this[_0x13a5a1(0x4d5)][_0x13a5a1(0x36e)](_0x10eee4,_0xa1eb4d);}),this[_0x31ac0e(0x458)][_0x31ac0e(0x4e4)](a[_0x31ac0e(0x35f)][_0x31ac0e(0x3df)])['pipe'](v[_0x31ac0e(0x275)](this[_0x31ac0e(0x2b4)]),E[_0x31ac0e(0x39d)](0x10))[_0x31ac0e(0x53d)](E[_0x31ac0e(0x2b7)](_0x194816=>!_0x194816['getUnitId']()[_0x31ac0e(0x19f)]('__')))['subscribe'](async _0xa376d5=>{const _0x45eeb0=_0x31ac0e,_0x3f2452=_0xa376d5[_0x45eeb0(0x1fa)](),_0x5a7b7d=await this[_0x45eeb0(0x1bc)](_0x3f2452,j[_0x45eeb0(0x3df)]);this['_entities']['set'](_0x3f2452,_0x5a7b7d);}),v['merge'](this[_0x31ac0e(0x458)][_0x31ac0e(0x260)](a['UniverInstanceType']['UNIVER_SHEET']),this['_univerInstanceService'][_0x31ac0e(0x260)](a[_0x31ac0e(0x35f)][_0x31ac0e(0x3df)]))[_0x31ac0e(0x53d)](v[_0x31ac0e(0x275)](this[_0x31ac0e(0x2b4)]))['subscribe'](_0x575794=>{const _0x17ec66=_0x31ac0e,_0x2ebe88=_0x575794[_0x17ec66(0x1fa)](),_0x3459be=this['_entities'][_0x17ec66(0x41b)](_0x2ebe88);_0x3459be&&(_0x3459be[_0x17ec66(0x235)](),this[_0x17ec66(0x4d5)]['delete'](_0x2ebe88));});}async[_0x2f1425(0x1bc)](_0x5d3410,_0x215a3b){const _0x4eaf6d=_0x2f1425,_0x3cfdaf=await this[_0x4eaf6d(0x4e8)][_0x4eaf6d(0x1a6)](_0x5d3410),_0x3e7c99=this[_0x4eaf6d(0x4fa)][_0x4eaf6d(0x49c)](this[_0x4eaf6d(0x32f)](_0x215a3b),_0x5d3410,_0x215a3b,_0x3cfdaf);return await _0x3e7c99['init'](),this[_0x4eaf6d(0x46f)][_0x4eaf6d(0x500)](_0x3e7c99),_0x3e7c99;}[_0x2f1425(0x32f)](_0x3e6273){const _0x527183=_0x2f1425;switch(_0x3e6273){case j['UNIVER_DOC']:return exports[_0x527183(0x358)];case j[_0x527183(0x1bf)]:return exports[_0x527183(0x4f2)];default:throw new Error(_0x527183(0x1dc)+_0x3e6273);}}},exports[_0x2f1425(0x4f1)]=Vs([Ue(0x0,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),Ue(0x1,a['Inject'](exports[_0x2f1425(0x1d4)])),Ue(0x2,a[_0x2f1425(0x468)])],exports['CollaborationController']);const nt=[_0x2f1425(0x548),_0x2f1425(0x248),_0x2f1425(0x2a6),_0x2f1425(0x4bc),_0x2f1425(0x463),'gold400'];class Xe extends a[_0x2f1425(0x387)]{constructor(){const _0x203c79=_0x2f1425;super(...arguments),d(this,_0x203c79(0x54e),new Map()),d(this,_0x203c79(0x4c1),0x0);}[_0x2f1425(0x445)](_0x3f3b93){const _0x19b6dc=_0x2f1425;if(this[_0x19b6dc(0x54e)]['has'](_0x3f3b93))return this[_0x19b6dc(0x54e)][_0x19b6dc(0x41b)](_0x3f3b93);const _0x35e9b0=nt[this[_0x19b6dc(0x4c1)]];return this[_0x19b6dc(0x4c1)]=(this['_colorIndex']+0x1)%nt[_0x19b6dc(0x38d)],this[_0x19b6dc(0x54e)]['set'](_0x3f3b93,_0x35e9b0),_0x35e9b0;}}var Ws=Object[_0x2f1425(0x1cf)],Fs=Object[_0x2f1425(0x2ab)],Gs=(_0x2c567d,_0x44e998,_0x327f11,_0x30a6d9)=>{const _0x532f46=_0x2f1425;for(var _0x36084e=_0x30a6d9>0x1?void 0x0:_0x30a6d9?Fs(_0x44e998,_0x327f11):_0x44e998,_0x29e674=_0x2c567d[_0x532f46(0x38d)]-0x1,_0xd9151;_0x29e674>=0x0;_0x29e674--)(_0xd9151=_0x2c567d[_0x29e674])&&(_0x36084e=(_0x30a6d9?_0xd9151(_0x44e998,_0x327f11,_0x36084e):_0xd9151(_0x36084e))||_0x36084e);return _0x30a6d9&&_0x36084e&&Ws(_0x44e998,_0x327f11,_0x36084e),_0x36084e;},K=(_0x551f8b,_0x53f519)=>(_0xbaece3,_0xb412e1)=>_0x53f519(_0xbaece3,_0xb412e1,_0x551f8b);const Ys=0x12c,Ks=0x64;let $e=class extends a[_0x2f1425(0x25b)]{constructor(_0x42b182,_0x1cb03c,_0xbe73ab,_0x1cf1a1,_0xf2a3ea,_0x4b265e,_0x48d558,_0x406d57,_0x397690){const _0x301ae2=_0x2f1425;super(),d(this,_0x301ae2(0x1f7),!0x1),d(this,_0x301ae2(0x34f),!0x1),d(this,_0x301ae2(0x4e0),new v['BehaviorSubject'](new Map())),d(this,_0x301ae2(0x363),this[_0x301ae2(0x4e0)][_0x301ae2(0x2fd)]()),d(this,_0x301ae2(0x173),new v[(_0x301ae2(0x21d))]([])),d(this,'roomMembers$',this[_0x301ae2(0x173)][_0x301ae2(0x53d)](v[_0x301ae2(0x320)](Ys))),d(this,_0x301ae2(0x34b),a[_0x301ae2(0x535)](_0x3ea263=>{const _0xa5ae83=_0x301ae2,_0x204388={'eventID':_[_0xa5ae83(0x565)][_0xa5ae83(0x20c)],'data':{'unitID':this['unitID'],'memberID':this[_0xa5ae83(0x472)][_0xa5ae83(0x280)](),'selection':Tt(_0x3ea263)}};this[_0xa5ae83(0x472)][_0xa5ae83(0x4b6)](_0x204388,this[_0xa5ae83(0x437)]);},Ks)),(this[_0x301ae2(0x437)]=_0x42b182,this[_0x301ae2(0x472)]=_0x1cb03c,this[_0x301ae2(0x4fa)]=_0xbe73ab,this[_0x301ae2(0x1f4)]=_0x1cf1a1,this[_0x301ae2(0x43f)]=_0xf2a3ea,this['_syncEditingCollabCursorService']=_0x4b265e,this[_0x301ae2(0x3fd)]=_0x48d558,this['_univerInstanceService']=_0x406d57,this[_0x301ae2(0x4b2)]=_0x397690);}get[_0x2f1425(0x1ef)](){const _0x410883=_0x2f1425;return this[_0x410883(0x4e0)][_0x410883(0x267)]();}get[_0x2f1425(0x560)](){const _0x2dfadd=_0x2f1425;return this[_0x2dfadd(0x173)][_0x2dfadd(0x267)]();}[_0x2f1425(0x235)](){const _0x2172b4=_0x2f1425;super[_0x2172b4(0x235)](),this[_0x2172b4(0x4e0)][_0x2172b4(0x500)](new Map()),this['_cursorInfo$'][_0x2172b4(0x342)](),this[_0x2172b4(0x173)][_0x2172b4(0x500)]([]),this[_0x2172b4(0x173)]['complete']();}[_0x2f1425(0x2fc)](){const _0x256218=_0x2f1425;this['_init']||(this['_init']=!0x0,this['_session'][_0x256218(0x3a7)]['pipe'](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))['subscribe'](_0x23afed=>{const _0x5b2443=_0x256218;_0x23afed===$['ONLINE']?this[_0x5b2443(0x462)]():this['_toggleOffline']();}),this[_0x256218(0x472)][_0x256218(0x4f8)][_0x256218(0x53d)](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))[_0x256218(0x3ca)](_0xf3b9b6=>{const _0x4882a2=_0x256218,_0x5347a8=_0xf3b9b6['eventID'];_0x5347a8===_[_0x4882a2(0x565)][_0x4882a2(0x20c)]&&this[_0x4882a2(0x512)](_0xf3b9b6),_0x5347a8===_[_0x4882a2(0x565)][_0x4882a2(0x4af)]&&this[_0x4882a2(0x544)](_0xf3b9b6);}),this['disposeWithMe'](this[_0x256218(0x4b2)][_0x256218(0x40b)](_0x2e83af=>{const _0x51e85c=_0x256218,_0x7976fe=_0x2e83af[_0x51e85c(0x3d5)];_0x7976fe!=null&&this[_0x51e85c(0x1f7)]&&_0x2e83af['id']===V['SetTextSelectionsOperation']['id']&&_0x7976fe['unitId']===this[_0x51e85c(0x437)]&&_0x7976fe[_0x51e85c(0x26a)]===!0x1&&this[_0x51e85c(0x34b)](_0x7976fe[_0x51e85c(0x344)]);})),this[_0x256218(0x511)][_0x256218(0x36a)][_0x256218(0x53d)](v[_0x256218(0x275)](this[_0x256218(0x2b4)]))[_0x256218(0x3ca)](_0x3be22d=>{const _0x245577=_0x256218;if((_0x3be22d==null?void 0x0:_0x3be22d[_0x245577(0x437)])!==this[_0x245577(0x437)])return;const _0x1fb512={'eventID':_[_0x245577(0x565)][_0x245577(0x20c)],'data':_0x3be22d};this[_0x245577(0x512)](_0x1fb512);}),this[_0x256218(0x425)](this[_0x256218(0x4b2)][_0x256218(0x40b)](_0x433800=>{const _0x186041=_0x256218;if(_0x433800[_0x186041(0x3d5)]==null)return;const _0x67ad78=_0x433800[_0x186041(0x3d5)];if(_0x433800['id']!==V[_0x186041(0x57e)]['id']||_0x67ad78[_0x186041(0x406)]!==this[_0x186041(0x437)])return;const _0x743079={'id':'doc.mutation.rich-text-editing','params':_0x67ad78},_0x51323b=this[_0x186041(0x1ef)];for(const [_0x4e2894,_0x223692]of _0x51323b){const _0x272b32={'id':_0x186041(0x4e5),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x223692[_0x186041(0x344)]}},_0x4a4169=this['_transformService']['transformMutation'](_0x743079,_0x272b32,!0x1);if(_['isTransformMutationFailure'](_0x4a4169))throw _0x4a4169['error'];_0x51323b[_0x186041(0x36e)](_0x4e2894,{..._0x223692,'ranges':_0x4a4169['m2Prime'][_0x186041(0x3d5)][_0x186041(0x48d)]});}queueMicrotask(()=>{const _0x13b4fc=_0x186041;this[_0x13b4fc(0x4e0)][_0x13b4fc(0x500)](_0x51323b);});})));}[_0x2f1425(0x512)](_0x695a79){const _0x5cf1fe=_0x2f1425;var _0x1bf6f7,_0x2e4cfc;const {memberID:_0x5e3fb0,selection:_0x171251}=_0x695a79['data'],_0x516e91=Us(_0x171251),_0x1193b9=(_0x2e4cfc=(_0x1bf6f7=this[_0x5cf1fe(0x43f)][_0x5cf1fe(0x398)](this[_0x5cf1fe(0x437)],_0x5e3fb0))==null?void 0x0:_0x1bf6f7[_0x5cf1fe(0x46a)])!=null?_0x2e4cfc:_0x5cf1fe(0x2ca),_0x22029a={'color':this[_0x5cf1fe(0x1f4)][_0x5cf1fe(0x445)](_0x5e3fb0),'name':_0x1193b9,'ranges':_0x516e91},_0x10f579=this['cursorInfo'];_0x10f579[_0x5cf1fe(0x36e)](_0x5e3fb0,_0x22029a),this[_0x5cf1fe(0x4e0)]['next'](_0x10f579);}[_0x2f1425(0x544)](_0x37b0e4){const _0x319efc=_0x2f1425,{memberID:_0x3d6571}=_0x37b0e4[_0x319efc(0x2a5)],_0x32da9f=this['cursorInfo'];_0x32da9f[_0x319efc(0x28f)](_0x3d6571),this['_cursorInfo$']['next'](_0x32da9f);}[_0x2f1425(0x462)](){const _0x3d84a7=_0x2f1425;var _0x3aea30;if(this[_0x3d84a7(0x1f7)]=!0x0,((_0x3aea30=this['_univerInstanceService']['getFocusedUnit']())==null?void 0x0:_0x3aea30[_0x3d84a7(0x1fa)]())!==this[_0x3d84a7(0x437)])return;const _0x3180fa=this['_injector'][_0x3d84a7(0x41b)](V[_0x3d84a7(0x3b6)])['getDocRanges']();Array[_0x3d84a7(0x476)](_0x3180fa)&&_0x3180fa[_0x3d84a7(0x38d)]>0x0&&this['_updateLocalCursor'](_0x3180fa);}[_0x2f1425(0x3c0)](){const _0x22f96e=_0x2f1425;this[_0x22f96e(0x1f7)]=!0x1;}};$e=Gs([K(0x2,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),K(0x3,a[_0x2f1425(0x4d1)](Xe)),K(0x4,a[_0x2f1425(0x4d1)](q)),K(0x5,a[_0x2f1425(0x4d1)](Ye)),K(0x6,_[_0x2f1425(0x298)]),K(0x7,a[_0x2f1425(0x468)]),K(0x8,a[_0x2f1425(0x477)])],$e);var Xs=Object['defineProperty'],qs=Object[_0x2f1425(0x2ab)],zs=(_0x5699dd,_0x213f9d,_0x5a57ae,_0x5216bb)=>{for(var _0x25cbb2=_0x5216bb>0x1?void 0x0:_0x5216bb?qs(_0x213f9d,_0x5a57ae):_0x213f9d,_0x4850d0=_0x5699dd['length']-0x1,_0x341db1;_0x4850d0>=0x0;_0x4850d0--)(_0x341db1=_0x5699dd[_0x4850d0])&&(_0x25cbb2=(_0x5216bb?_0x341db1(_0x213f9d,_0x5a57ae,_0x25cbb2):_0x341db1(_0x25cbb2))||_0x25cbb2);return _0x5216bb&&_0x25cbb2&&Xs(_0x213f9d,_0x5a57ae,_0x25cbb2),_0x25cbb2;},Q=(_0x8b3d0c,_0x546f3a)=>(_0x1c4d6b,_0x3a83e6)=>_0x546f3a(_0x1c4d6b,_0x3a83e6,_0x8b3d0c);const Js=0x12c,Zs=0x64,Qs=()=>{let _0x540dca=[],_0xaded45=!0x1;return _0x484d40=>{const _0x36d972=_0x4554;_0x540dca[_0x36d972(0x52d)](_0x484d40),_0xaded45||(_0xaded45=!0x0,setTimeout(()=>{const _0x4d67f4=_0x36d972;_0x540dca[_0x4d67f4(0x28e)](_0x271a22=>_0x271a22()),_0x540dca=[],_0xaded45=!0x1;}));};};let He=class extends a[_0x2f1425(0x25b)]{constructor(_0x516fe9,_0x244ecf,_0x40ba53,_0x4a1d3f,_0x184433,_0x167edd,_0x2c0add,_0x1e68a0){const _0x70189e=_0x2f1425;super(),d(this,_0x70189e(0x1f7),!0x1),d(this,_0x70189e(0x34f),!0x1),d(this,_0x70189e(0x4e0),new v['BehaviorSubject'](new Map())),d(this,_0x70189e(0x363),this[_0x70189e(0x4e0)][_0x70189e(0x2fd)]()),d(this,_0x70189e(0x173),new v['BehaviorSubject']([])),d(this,_0x70189e(0x431),this[_0x70189e(0x173)][_0x70189e(0x53d)](v['debounceTime'](Js))),d(this,_0x70189e(0x34b),a[_0x70189e(0x535)]((_0xad820d,_0x359319)=>{const _0x129f9b=_0x70189e,_0x5d871e={'eventID':_[_0x129f9b(0x565)][_0x129f9b(0x20c)],'data':{'unitID':this[_0x129f9b(0x437)],'memberID':this['_session']['getMemberID'](),'selection':Je[_0x129f9b(0x18f)](_0xad820d,_0x359319[_0x129f9b(0x4a6)])}};this[_0x129f9b(0x472)][_0x129f9b(0x4b6)](_0x5d871e,this[_0x129f9b(0x437)]);},Zs)),(this['unitID']=_0x516fe9,this[_0x70189e(0x472)]=_0x244ecf,this[_0x70189e(0x4fa)]=_0x40ba53,this[_0x70189e(0x1f4)]=_0x4a1d3f,this[_0x70189e(0x43f)]=_0x184433,this['_univerInstanceService']=_0x167edd,this[_0x70189e(0x4b2)]=_0x2c0add,this[_0x70189e(0x2f6)]=_0x1e68a0);}get[_0x2f1425(0x1ef)](){const _0xb86f32=_0x2f1425;return this[_0xb86f32(0x4e0)][_0xb86f32(0x267)]();}get[_0x2f1425(0x560)](){const _0x242cfc=_0x2f1425;return this[_0x242cfc(0x173)]['getValue']();}[_0x2f1425(0x235)](){const _0x1a3790=_0x2f1425;super['dispose'](),this[_0x1a3790(0x4e0)]['next'](new Map()),this[_0x1a3790(0x4e0)]['complete'](),this[_0x1a3790(0x173)][_0x1a3790(0x500)]([]),this['_roomMembers$']['complete']();}[_0x2f1425(0x2fc)](){const _0x5873af=_0x2f1425;this[_0x5873af(0x34f)]||(this[_0x5873af(0x34f)]=!0x0,this[_0x5873af(0x472)][_0x5873af(0x3a7)][_0x5873af(0x53d)](v['takeUntil'](this['dispose$']))[_0x5873af(0x3ca)](_0x21dfff=>{const _0xa123e8=_0x5873af;_0x21dfff===$['ONLINE']?this['_toggleOnline']():this[_0xa123e8(0x3c0)]();}),this['_session']['event$'][_0x5873af(0x53d)](v[_0x5873af(0x275)](this[_0x5873af(0x2b4)]))[_0x5873af(0x3ca)](_0x173e3f=>{const _0x152658=_0x5873af,_0x17ab7d=_0x173e3f[_0x152658(0x188)];_0x17ab7d===_['CollaborationEvent'][_0x152658(0x20c)]&&this[_0x152658(0x512)](_0x173e3f),_0x17ab7d===_['CollaborationEvent']['USERS_LEAVE']&&this[_0x152658(0x544)](_0x173e3f);}),this[_0x5873af(0x3be)](),this[_0x5873af(0x425)](this[_0x5873af(0x4b2)]['onCommandExecuted'](_0x86eb2e=>{const _0x3f0521=_0x5873af;if(this[_0x3f0521(0x1f7)]&&_0x86eb2e['id']===C[_0x3f0521(0x183)]['id']&&_0x86eb2e[_0x3f0521(0x3d5)]['unitId']===this[_0x3f0521(0x437)]){const _0x5ccf8d=_0x86eb2e[_0x3f0521(0x3d5)];this[_0x3f0521(0x34b)](_0x5ccf8d['subUnitId'],_0x5ccf8d[_0x3f0521(0x262)][0x0]);}})));}[_0x2f1425(0x512)](_0x4cc120){const _0x1cef4e=_0x2f1425;var _0x1e9bb5,_0x1435c7;const {memberID:_0x2c9ad5,selection:_0x24240f}=_0x4cc120['data'],{sheetName:_0x4e835f,range:_0x470e7c}=Je[_0x1cef4e(0x29d)](_0x24240f),_0x5b3629={'name':(_0x1435c7=(_0x1e9bb5=this[_0x1cef4e(0x43f)][_0x1cef4e(0x398)](this['unitID'],_0x2c9ad5))==null?void 0x0:_0x1e9bb5[_0x1cef4e(0x46a)])!=null?_0x1435c7:'Unknown\x20user','range':this[_0x1cef4e(0x278)](_0x4e835f,_0x470e7c),'sheetID':_0x4e835f,'color':this[_0x1cef4e(0x1f4)][_0x1cef4e(0x445)](_0x2c9ad5),'selection':_0x24240f},_0x39fa56=this[_0x1cef4e(0x1ef)];_0x39fa56[_0x1cef4e(0x36e)](_0x2c9ad5,_0x5b3629),this['_cursorInfo$'][_0x1cef4e(0x500)](_0x39fa56);}[_0x2f1425(0x544)](_0x1f2bb1){const _0x20c550=_0x2f1425,{memberID:_0x5aa84e}=_0x1f2bb1['data'],_0x97acb=this[_0x20c550(0x1ef)];_0x97acb[_0x20c550(0x28f)](_0x5aa84e),this['_cursorInfo$'][_0x20c550(0x500)](_0x97acb);}[_0x2f1425(0x278)](_0x7fe6f4,_0x443d5e){const _0x397521=_0x2f1425;var _0x290a99,_0x168571;const _0x19da5e=(_0x168571=(_0x290a99=this[_0x397521(0x458)]['getUniverSheetInstance'](this[_0x397521(0x437)]))==null?void 0x0:_0x290a99[_0x397521(0x2af)](_0x7fe6f4))==null?void 0x0:_0x168571['getMergeData']();return(_0x19da5e==null?void 0x0:_0x19da5e['find'](_0x5535ac=>a[_0x397521(0x4fd)]['contains'](_0x5535ac,_0x443d5e)))||_0x443d5e;}['_onRefRangeChange'](){const _0x3fe57d=_0x2f1425,_0xd15ada=new a['DisposableCollection'](),_0x2088a2=Qs(),_0x5eb9ae=()=>{const _0x1254e3=_0x4554;_0xd15ada[_0x1254e3(0x235)]();const _0x1021d8=(_0x17345b,_0x2880e5,_0x351776,_0x42e4c3)=>{const _0x28841a=_0x1254e3;let _0x3b21ab=[];switch(_0x17345b['id']){case C['EffectRefRangId'][_0x28841a(0x257)]:{_0x3b21ab=C[_0x28841a(0x317)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x2e2)]:{_0x3b21ab=C[_0x28841a(0x4a3)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x17a)]:{_0x3b21ab=C['handleInsertCol'](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x4dc)]:{_0x3b21ab=C[_0x28841a(0x506)](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId']['InsertRangeMoveRightCommandId']:{_0x3b21ab=C[_0x28841a(0x3cf)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)]['InsertRowCommandId']:{_0x3b21ab=C[_0x28841a(0x3d6)](_0x17345b,_0x42e4c3);break;}case C[_0x28841a(0x300)][_0x28841a(0x25e)]:{_0x3b21ab=C[_0x28841a(0x382)](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId']['RemoveColCommandId']:{_0x3b21ab=C['handleIRemoveCol'](_0x17345b,_0x42e4c3);break;}case C['EffectRefRangId'][_0x28841a(0x538)]:{_0x3b21ab=C[_0x28841a(0x20b)](_0x17345b,_0x42e4c3);break;}}const _0x32fe9d=C[_0x28841a(0x3ea)](_0x3b21ab,_0x42e4c3),_0x9304f4=this[_0x28841a(0x1ef)][_0x28841a(0x41b)](_0x2880e5);if(_0x9304f4&&_0x32fe9d){const _0x4b3334={..._0x9304f4,'range':_0x32fe9d};this[_0x28841a(0x1ef)][_0x28841a(0x36e)](_0x2880e5,_0x4b3334),_0x2088a2(()=>{const _0x170b0a=_0x28841a,_0xcf4b06=this[_0x170b0a(0x2f6)][_0x170b0a(0x539)](_0x32fe9d,_0x1d9aef=>(_0xcf4b06['dispose'](),_0x1021d8(_0x1d9aef,_0x2880e5,_0x351776,_0x32fe9d)));_0xd15ada[_0x170b0a(0x1fd)](_0xcf4b06);});}return{'redos':[],'undos':[]};};this[_0x1254e3(0x1ef)][_0x1254e3(0x28e)]((_0x18ac48,_0x512f53)=>{const _0x1eb993=_0x1254e3,{range:_0x38f146,sheetID:_0xaa7b89}=_0x18ac48,_0x18a67d=this[_0x1eb993(0x2f6)][_0x1eb993(0x539)](_0x38f146,_0x1f0de5=>(_0x18a67d['dispose'](),_0x1021d8(_0x1f0de5,_0x512f53,_0xaa7b89,_0x38f146)));_0xd15ada[_0x1eb993(0x1fd)](_0x18a67d);});};this[_0x3fe57d(0x425)](a[_0x3fe57d(0x2df)](this['_cursorInfo$'][_0x3fe57d(0x3ca)](()=>{_0x5eb9ae();})));}[_0x2f1425(0x462)](){const _0x557626=_0x2f1425;var _0x29e9e0,_0x291edd;if(this[_0x557626(0x1f7)]=!0x0,((_0x29e9e0=this[_0x557626(0x458)][_0x557626(0x199)]())==null?void 0x0:_0x29e9e0[_0x557626(0x1fa)]())!==this[_0x557626(0x437)])return;const _0x400f04=(_0x291edd=this[_0x557626(0x4fa)][_0x557626(0x41b)](C[_0x557626(0x446)])['getCurrentSelections']())==null?void 0x0:_0x291edd[0x0],_0x50ba52=this[_0x557626(0x458)][_0x557626(0x1b6)](a[_0x557626(0x35f)][_0x557626(0x1bf)])[_0x557626(0x51e)]();_0x400f04&&_0x50ba52&&this[_0x557626(0x34b)](_0x50ba52[_0x557626(0x1be)](),_0x400f04);}['_toggleOffline'](){const _0x218867=_0x2f1425;this[_0x218867(0x1f7)]=!0x1;}};He=zs([Q(0x2,a['Inject'](a['Injector'])),Q(0x3,a['Inject'](Xe)),Q(0x4,a[_0x2f1425(0x4d1)](q)),Q(0x5,a['IUniverInstanceService']),Q(0x6,a[_0x2f1425(0x477)]),Q(0x7,a[_0x2f1425(0x4d1)](C[_0x2f1425(0x3d9)]))],He);var ei=Object['defineProperty'],ti=Object[_0x2f1425(0x2ab)],si=(_0x473372,_0x55b299,_0xbb50d5,_0x1d6354)=>{const _0x12b0bf=_0x2f1425;for(var _0x146d29=_0x1d6354>0x1?void 0x0:_0x1d6354?ti(_0x55b299,_0xbb50d5):_0x55b299,_0x764dbe=_0x473372[_0x12b0bf(0x38d)]-0x1,_0x229c3f;_0x764dbe>=0x0;_0x764dbe--)(_0x229c3f=_0x473372[_0x764dbe])&&(_0x146d29=(_0x1d6354?_0x229c3f(_0x55b299,_0xbb50d5,_0x146d29):_0x229c3f(_0x146d29))||_0x146d29);return _0x1d6354&&_0x146d29&&ei(_0x55b299,_0xbb50d5,_0x146d29),_0x146d29;},Pe=(_0x2725ec,_0x26f32c)=>(_0x217b1a,_0x289c74)=>_0x26f32c(_0x217b1a,_0x289c74,_0x2725ec);let ie=class extends a['RxDisposable']{constructor(_0x255c08,_0x5dfae9,_0x108366){const _0x5184ce=_0x2f1425;super(),d(this,_0x5184ce(0x4d5),new Map()),d(this,_0x5184ce(0x46f),new v['Subject']()),(this[_0x5184ce(0x458)]=_0x255c08,this[_0x5184ce(0x4fa)]=_0x5dfae9,this[_0x5184ce(0x4e8)]=_0x108366,this[_0x5184ce(0x34f)]());}[_0x2f1425(0x235)](){const _0x2a338c=_0x2f1425;super[_0x2a338c(0x235)](),this[_0x2a338c(0x46f)][_0x2a338c(0x342)](),this[_0x2a338c(0x4d5)]['forEach'](_0x10074e=>_0x10074e[_0x2a338c(0x235)]());}['getCollabCursors$'](_0x1b8c24){const _0x37786e=_0x2f1425;return this['_entities'][_0x37786e(0x555)](_0x1b8c24)?this[_0x37786e(0x4d5)][_0x37786e(0x41b)](_0x1b8c24)[_0x37786e(0x363)]:this[_0x37786e(0x46f)][_0x37786e(0x53d)](v[_0x37786e(0x2b7)](_0x6bd5de=>_0x6bd5de['unitID']===_0x1b8c24),v[_0x37786e(0x3d7)](_0x483d6b=>_0x483d6b[_0x37786e(0x363)]));}[_0x2f1425(0x34f)](){const _0x3ae56d=_0x2f1425;this[_0x3ae56d(0x458)]['getTypeOfUnitAdded$'](a[_0x3ae56d(0x35f)][_0x3ae56d(0x1bf)])['pipe'](v[_0x3ae56d(0x275)](this['dispose$']))[_0x3ae56d(0x3ca)](async _0x48e4c7=>{const _0x495898=_0x3ae56d,_0x2b246b=_0x48e4c7[_0x495898(0x1fa)](),_0x421490=await this[_0x495898(0x354)](_0x2b246b);this[_0x495898(0x46f)][_0x495898(0x500)](_0x421490),this['_entities']['set'](_0x2b246b,_0x421490);}),this[_0x3ae56d(0x458)]['getTypeOfUnitAdded$'](a['UniverInstanceType']['UNIVER_DOC'])['pipe'](v['takeUntil'](this[_0x3ae56d(0x2b4)]))[_0x3ae56d(0x53d)](v[_0x3ae56d(0x2b7)](_0x115e22=>!_0x115e22[_0x3ae56d(0x1fa)]()['startsWith']('__')))['subscribe'](async _0x170a72=>{const _0x17bbb4=_0x3ae56d,_0x569ef5=_0x170a72[_0x17bbb4(0x1fa)](),_0x1dcd93=await this[_0x17bbb4(0x37a)](_0x569ef5);this[_0x17bbb4(0x46f)][_0x17bbb4(0x500)](_0x1dcd93),this[_0x17bbb4(0x4d5)][_0x17bbb4(0x36e)](_0x569ef5,_0x1dcd93);}),v[_0x3ae56d(0x18a)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](a[_0x3ae56d(0x35f)][_0x3ae56d(0x3df)]),this[_0x3ae56d(0x458)][_0x3ae56d(0x260)](a[_0x3ae56d(0x35f)][_0x3ae56d(0x1bf)]))['pipe'](v['takeUntil'](this[_0x3ae56d(0x2b4)]))[_0x3ae56d(0x3ca)](_0x586933=>{const _0x27c63b=_0x3ae56d,_0x1e83cc=_0x586933['getUnitId'](),_0x4a104b=this[_0x27c63b(0x4d5)][_0x27c63b(0x41b)](_0x1e83cc);_0x4a104b&&(_0x4a104b[_0x27c63b(0x235)](),this[_0x27c63b(0x4d5)][_0x27c63b(0x28f)](_0x1e83cc));});}async['_startSheetCollabCursor'](_0x38bbbe){const _0x11b0d5=_0x2f1425,_0x129c22=await this['_collabSessionService'][_0x11b0d5(0x1a6)](_0x38bbbe),_0x4b30c7=this[_0x11b0d5(0x4fa)][_0x11b0d5(0x49c)](He,_0x38bbbe,_0x129c22);return _0x4b30c7[_0x11b0d5(0x2fc)](),_0x4b30c7;}async[_0x2f1425(0x37a)](_0x1ffb35){const _0x23e330=_0x2f1425,_0xecd04e=await this[_0x23e330(0x4e8)][_0x23e330(0x1a6)](_0x1ffb35),_0x2a16df=this[_0x23e330(0x4fa)]['createInstance']($e,_0x1ffb35,_0xecd04e);return _0x2a16df[_0x23e330(0x2fc)](),_0x2a16df;}};ie=si([Pe(0x0,a['IUniverInstanceService']),Pe(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x450)])),Pe(0x2,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x1d4)]))],ie);const ue=0x14,rt=0xc8,we=0x4,ii=0x5;function ni(_0x49a342,_0x23adb4){const _0x68c15a=_0x2f1425;let {radius:_0x4dd0ee,width:_0x497a52,height:_0x5b9c89}=_0x23adb4;_0x4dd0ee=_0x4dd0ee!=null?_0x4dd0ee:0x0,_0x497a52=_0x497a52!=null?_0x497a52:0x1e,_0x5b9c89=_0x5b9c89!=null?_0x5b9c89:0x1e;let _0x177483=0x0,_0x43d1e4=0x0,_0x173bf7=0x0;_0x177483=_0x43d1e4=_0x173bf7=Math[_0x68c15a(0x51b)](_0x4dd0ee,_0x497a52/0x2,_0x5b9c89/0x2),_0x49a342['beginPath'](),_0x49a342[_0x68c15a(0x1e7)](_0x177483,0x0),_0x49a342[_0x68c15a(0x2c3)](_0x497a52-_0x43d1e4,0x0),_0x49a342[_0x68c15a(0x40d)](_0x497a52-_0x43d1e4,_0x43d1e4,_0x43d1e4,Math['PI']*0x3/0x2,0x0,!0x1),_0x49a342[_0x68c15a(0x2c3)](_0x497a52,_0x5b9c89-_0x173bf7),_0x49a342['arc'](_0x497a52-_0x173bf7,_0x5b9c89-_0x173bf7,_0x173bf7,0x0,Math['PI']/0x2,!0x1),_0x49a342['lineTo'](0x0,_0x5b9c89),_0x49a342[_0x68c15a(0x2c3)](0x0,_0x177483),_0x49a342[_0x68c15a(0x40d)](_0x177483,_0x177483,_0x177483,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x49a342['closePath'](),_0x23adb4[_0x68c15a(0x203)]&&(_0x49a342[_0x68c15a(0x37d)](),_0x49a342[_0x68c15a(0x1f3)]=_0x23adb4['fill'],_0x23adb4['fillRule']===_0x68c15a(0x27b)?_0x49a342[_0x68c15a(0x203)](_0x68c15a(0x27b)):_0x49a342[_0x68c15a(0x203)](),_0x49a342['restore']());}class Te extends R[_0x2f1425(0x4c6)]{constructor(_0x5c278f,_0x2c6582){const _0x3d4b2e=_0x2f1425;super(_0x5c278f,_0x2c6582),d(this,_0x3d4b2e(0x247)),d(this,_0x3d4b2e(0x40f)),(this[_0x3d4b2e(0x247)]=_0x2c6582==null?void 0x0:_0x2c6582[_0x3d4b2e(0x247)],this[_0x3d4b2e(0x40f)]=_0x2c6582==null?void 0x0:_0x2c6582['text']);}static['drawWith'](_0x797d79,_0x5305a2){const _0x3e91b6=_0x2f1425,{text:_0x522e78,color:_0x5d316a}=_0x5305a2;_0x797d79[_0x3e91b6(0x37d)](),_0x797d79['font']=_0x3e91b6(0x1ea);const _0x27a191=_0x797d79[_0x3e91b6(0x44c)](_0x522e78)['width'],_0x49e1d3=Math[_0x3e91b6(0x51b)](_0x27a191+0x2*we,rt);ni(_0x797d79,{'height':ue,'radius':0x4,'width':_0x49e1d3,'fill':_0x5d316a,'evented':!0x1}),_0x797d79[_0x3e91b6(0x1f3)]=_0x3e91b6(0x1aa);const _0x35d0ed=we,_0x58662a=ue-ii,_0xb166e9=rt-0x2*we;if(_0x27a191>_0xb166e9){let _0x4c3209='',_0x26e9d5=0x0;for(const _0x3fc692 of _0x522e78){const _0x38a49e=_0x797d79[_0x3e91b6(0x44c)](_0x3fc692)[_0x3e91b6(0x4f6)];if(_0x26e9d5+_0x38a49e<=_0xb166e9-_0x797d79['measureText'](_0x3e91b6(0x505))[_0x3e91b6(0x4f6)])_0x4c3209+=_0x3fc692,_0x26e9d5+=_0x38a49e;else{_0x4c3209+=_0x3e91b6(0x505);break;}}_0x797d79['fillText'](_0x4c3209,_0x35d0ed,_0x58662a);}else _0x797d79[_0x3e91b6(0x467)](_0x522e78,_0x35d0ed,_0x58662a);_0x797d79['restore']();}[_0x2f1425(0x47e)](_0x2a459e){const _0x2a8e7e=_0x2f1425;Te[_0x2a8e7e(0x335)](_0x2a459e,this);}}const Me=_0x2f1425(0x22c),ri=_0x2f1425(0x182),oi=_0x2f1425(0x2c9),ce=0x6,ai=1.5,Ne=0x4,ci=1.5,li=_0x2f1425(0x1a9);class ot{constructor(_0x2c6877,_0x5f15d4,_0x5a1312,_0x2f561d){const _0xf89621=_0x2f1425;d(this,_0xf89621(0x33f),[]),d(this,'_anchor',null),d(this,_0xf89621(0x570),null),d(this,_0xf89621(0x20a),null),d(this,_0xf89621(0x18d),null),d(this,_0xf89621(0x3d1),null),(this['_cursor']=_0x2c6877,this[_0xf89621(0x1a7)]=_0x5f15d4,this[_0xf89621(0x229)]=_0x5a1312,this['_document']=_0x2f561d,this[_0xf89621(0x45f)]());}set[_0x2f1425(0x395)](_0xe3840f){const _0x3db049=_0x2f1425;_0xe3840f?(this[_0x3db049(0x20a)]&&this['_anchorDot'][_0x3db049(0x234)](),this[_0x3db049(0x570)]&&this[_0x3db049(0x570)][_0x3db049(0x1b9)]()):(this[_0x3db049(0x20a)]&&this['_anchorDot'][_0x3db049(0x1b9)](),this[_0x3db049(0x570)]&&this[_0x3db049(0x570)]['hide']());}['dispose'](){const _0x384e2d=_0x2f1425;for(const _0x500185 of this[_0x384e2d(0x33f)])_0x500185[_0x384e2d(0x235)]();this['_textBubble']&&this['_textBubble'][_0x384e2d(0x235)](),this[_0x384e2d(0x20a)]&&this[_0x384e2d(0x20a)][_0x384e2d(0x235)](),this['_anchor']&&this[_0x384e2d(0x422)][_0x384e2d(0x235)](),this['_eventUnsubscribe']&&this[_0x384e2d(0x3d1)]();}[_0x2f1425(0x45f)](){const _0x3b7109=_0x2f1425;var _0x6d0175;const {_docSkeleton:_0x194335,_document:_0x389b4e}=this,{color:_0x36a2b1,name:_0x456489,ranges:_0xda1bf8}=this['_cursor'],_0x400cb6=_0x389b4e['getOffsetConfig'](),{docsLeft:_0x1107de,docsTop:_0x40b6c0}=_0x400cb6,_0x506dfb=new w[(_0x3b7109(0x386))](_0x400cb6,_0x194335);for(const {startOffset:_0x199e50,endOffset:_0x489bc2,collapsed:_0x5e622f,isActive:_0x2551ff}of _0xda1bf8){const _0x4b4a70=_0x194335[_0x3b7109(0x515)](_0x199e50),_0x540a35=_0x194335[_0x3b7109(0x515)](_0x489bc2);if(_0x2551ff){const {contentBoxPointGroup:_0x8f6bd6}=_0x506dfb[_0x3b7109(0x4ff)](_0x540a35,_0x540a35);if(_0x8f6bd6['length']===0x0)continue;this[_0x3b7109(0x27d)](_0x36a2b1,_0x8f6bd6,_0x1107de,_0x40b6c0,_0x456489),this[_0x3b7109(0x3d1)]=this['_handleHover']();}if(!_0x5e622f&&_0x4b4a70&&_0x540a35){if(w[_0x3b7109(0x31c)](_0x4b4a70,_0x540a35)){const _0x1803ff=new w[(_0x3b7109(0x19a))](_0x400cb6,_0x194335),{pointGroup:_0x49b2a9}=(_0x6d0175=_0x1803ff['getRangePointData'](_0x4b4a70,_0x540a35))!=null?_0x6d0175:{};if(_0x49b2a9==null||_0x49b2a9[_0x3b7109(0x38d)]===0x0)continue;this[_0x3b7109(0x48b)](_0x36a2b1,_0x49b2a9,_0x1107de,_0x40b6c0);}else{const {contentBoxPointGroup:_0x5279bf}=_0x506dfb[_0x3b7109(0x4ff)](_0x4b4a70,_0x540a35);if(_0x5279bf[_0x3b7109(0x38d)]===0x0)continue;this[_0x3b7109(0x1a8)](_0x36a2b1,_0x5279bf,_0x1107de,_0x40b6c0);}}}}[_0x2f1425(0x27d)](_0x3faf81,_0x464b39,_0x1d6b8b,_0x525c59,_0x38a5f0){const _0x4d1efd=_0x2f1425,_0x1200dc=this['_getAnchorBounding'](_0x464b39),{left:_0x49ed1c,top:_0x26e550,height:_0x213d6b}=_0x1200dc,_0x594eb5=this[_0x4d1efd(0x3e6)](),_0x4556cb=ci/_0x594eb5,_0xe32581=new R[(_0x4d1efd(0x294))](Me+a['Tools']['generateRandomId'](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59,'height':_0x213d6b,'width':ai,'fill':_0x3faf81||R[_0x4d1efd(0x2ad)](a['COLORS'][_0x4d1efd(0x4ad)],0x0),'strokeWidth':_0x4556cb,'stroke':li,'evented':!0x0});this[_0x4d1efd(0x422)]=_0xe32581,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0xe32581,w[_0x4d1efd(0x1b8)]);const _0x5d16d9=new R[(_0x4d1efd(0x294))](Me+a['Tools'][_0x4d1efd(0x185)](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59-Ne/0x2,'height':Ne,'width':Ne,'fill':_0x3faf81||R[_0x4d1efd(0x2ad)](a['COLORS']['black'],0x0),'strokeWidth':0x0,'stroke':_0x3faf81||R[_0x4d1efd(0x2ad)](a[_0x4d1efd(0x51a)]['black'],0x0),'evented':!0x1});this[_0x4d1efd(0x20a)]=_0x5d16d9,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0x5d16d9,w[_0x4d1efd(0x1b8)]);const _0xa48081=new Te(Me+a['Tools'][_0x4d1efd(0x185)](ce),{'left':_0x49ed1c+_0x1d6b8b-_0x4556cb,'top':_0x26e550+_0x525c59-ue,'text':_0x38a5f0,'color':_0x3faf81});this['_textBubble']=_0xa48081,this[_0x4d1efd(0x1a7)][_0x4d1efd(0x2bd)](_0xa48081,w[_0x4d1efd(0x1b8)]),this[_0x4d1efd(0x395)]=!0x1;}['_handleHover'](){const _0x3f6099=_0x2f1425,_0x14becc=this[_0x3f6099(0x422)][_0x3f6099(0x379)]['subscribeEvent'](()=>{const _0x31f91b=_0x3f6099;this[_0x31f91b(0x395)]=!0x0;}),_0x1ea3ce=this[_0x3f6099(0x422)][_0x3f6099(0x393)][_0x3f6099(0x41d)](()=>{const _0x5f0a38=_0x3f6099;this[_0x5f0a38(0x18d)]&&clearTimeout(this[_0x5f0a38(0x18d)]),this[_0x5f0a38(0x18d)]=setTimeout(()=>{const _0xf94dcd=_0x5f0a38;this[_0xf94dcd(0x395)]=!0x1;},0x7d0);});return()=>{const _0x27ba63=_0x3f6099;_0x14becc['unsubscribe'](),_0x1ea3ce[_0x27ba63(0x225)]();};}['_drawTextRange'](_0x145f06,_0x1b0d7c,_0x9e0734,_0x1e83f1){const _0x2d336d=_0x2f1425,_0x30e539=new a[(_0x2d336d(0x381))](_0x145f06)[_0x2d336d(0x2be)](0.2)[_0x2d336d(0x56f)](),_0xfc45ae=new R['RegularPolygon'](ri+a[_0x2d336d(0x494)][_0x2d336d(0x185)](ce),{'pointsGroup':_0x1b0d7c,'fill':_0x30e539||R['getColor'](a[_0x2d336d(0x51a)][_0x2d336d(0x4ad)],0.2),'left':_0x9e0734,'top':_0x1e83f1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2d336d(0x33f)][_0x2d336d(0x52d)](_0xfc45ae),this[_0x2d336d(0x1a7)][_0x2d336d(0x2bd)](_0xfc45ae,w['TEXT_RANGE_LAYER_INDEX']);}[_0x2f1425(0x48b)](_0x593a62,_0x1fe388,_0x5a07ec,_0x28f1ec){const _0x38f998=_0x2f1425,_0x53b552=new a['ColorKit'](_0x593a62)[_0x38f998(0x2be)](0.2)[_0x38f998(0x56f)](),_0xf74bd7=new R[(_0x38f998(0x41c))](oi+a[_0x38f998(0x494)][_0x38f998(0x185)](ce),{'pointsGroup':_0x1fe388,'fill':_0x53b552||R['getColor'](a[_0x38f998(0x51a)]['black'],0.2),'left':_0x5a07ec,'top':_0x28f1ec,'evented':!0x1,'debounceParentDirty':!0x1});this['_shapes'][_0x38f998(0x52d)](_0xf74bd7),this['_scene'][_0x38f998(0x2bd)](_0xf74bd7,w[_0x38f998(0x1b8)]);}[_0x2f1425(0x1a4)](_0x46db2f){const _0x399860=_0x46db2f[0x0],_0x16e6e2=_0x399860[0x0],_0x4d1014=_0x399860[0x2],{x:_0x29ba25,y:_0xe22f3}=_0x16e6e2,{x:_0xa95e0,y:_0x52fdc3}=_0x4d1014;return{'left':_0x29ba25,'top':_0xe22f3,'width':_0xa95e0-_0x29ba25,'height':_0x52fdc3-_0xe22f3};}[_0x2f1425(0x3e6)](){const _0x5d8106=_0x2f1425,{scaleX:_0x4e7f2b,scaleY:_0x297bf6}=this[_0x5d8106(0x1a7)][_0x5d8106(0x578)]();return Math[_0x5d8106(0x29f)](_0x4e7f2b,_0x297bf6);}}var hi=Object[_0x2f1425(0x1cf)],_i=Object[_0x2f1425(0x2ab)],ui=(_0xcdb3a3,_0x57d895,_0x25b500,_0x5c818f)=>{for(var _0x19dafd=_0x5c818f>0x1?void 0x0:_0x5c818f?_i(_0x57d895,_0x25b500):_0x57d895,_0x5f3bf=_0xcdb3a3['length']-0x1,_0x4edb1e;_0x5f3bf>=0x0;_0x5f3bf--)(_0x4edb1e=_0xcdb3a3[_0x5f3bf])&&(_0x19dafd=(_0x5c818f?_0x4edb1e(_0x57d895,_0x25b500,_0x19dafd):_0x4edb1e(_0x19dafd))||_0x19dafd);return _0x5c818f&&_0x19dafd&&hi(_0x57d895,_0x25b500,_0x19dafd),_0x19dafd;},de=(_0x3e8591,_0x3084c3)=>(_0x52994b,_0x79ff7a)=>_0x3084c3(_0x52994b,_0x79ff7a,_0x3e8591);let xe=class extends a[_0x2f1425(0x25b)]{constructor(_0x4eae6f,_0x42f9b7,_0x11ad58,_0x4cb361,_0x4590d6){const _0x3b91b9=_0x2f1425;super(),d(this,_0x3b91b9(0x314),[]),d(this,_0x3b91b9(0x228),[]),(this[_0x3b91b9(0x226)]=_0x4eae6f,this[_0x3b91b9(0x402)]=_0x42f9b7,this['_collabCursorController']=_0x11ad58,this[_0x3b91b9(0x4b2)]=_0x4cb361,this[_0x3b91b9(0x1e9)]=_0x4590d6,this['_init']());}[_0x2f1425(0x34f)](){const _0x3c9314=_0x2f1425,_0x206b34=this['_context'][_0x3c9314(0x406)],_0x6eb2ac=this['_docSkeletonManagerService'];this['disposeWithMe'](v[_0x3c9314(0x190)]([this[_0x3c9314(0x3da)][_0x3c9314(0x338)](_0x206b34),this['_themeService'][_0x3c9314(0x3b1)]])[_0x3c9314(0x53d)](E[_0x3c9314(0x1c9)](([_0x228ae0,_0x10639d])=>({'skeleton':_0x6eb2ac[_0x3c9314(0x18c)](),'cursors':[..._0x228ae0[_0x3c9314(0x2e0)]()][_0x3c9314(0x3ac)](_0x3f4073=>({..._0x3f4073,'color':_0x10639d[_0x3f4073[_0x3c9314(0x247)]]}))})))[_0x3c9314(0x3ca)](_0x50df42=>{const _0x2f2bb1=_0x3c9314;if(this[_0x2f2bb1(0x255)](),_0x50df42){const {skeleton:_0x8b27eb,cursors:_0x346d6b}=_0x50df42;this['_updateCollabCursors'](_0x8b27eb,_0x346d6b);}})),this['_initResize'](),this['_initCommandExecutedListener']();}[_0x2f1425(0x357)](_0x523022,_0x35d695){const _0x338727=_0x2f1425,{scene:_0x1f1517,mainComponent:_0x5346ed}=this[_0x338727(0x226)],_0x3e6533=_0x35d695[_0x338727(0x1c9)](_0x1b5bca=>new ot(_0x1b5bca,_0x1f1517,_0x523022,_0x5346ed));this[_0x338727(0x314)]=_0x3e6533,this['_cursors']=_0x35d695;}[_0x2f1425(0x1f9)](){const _0x562ed9=_0x2f1425;this[_0x562ed9(0x255)]();const {scene:_0x10fa7b,mainComponent:_0x56fac5}=this[_0x562ed9(0x226)],_0x469b79=this[_0x562ed9(0x402)][_0x562ed9(0x18c)](),_0x1cd12f=this[_0x562ed9(0x228)]['map'](_0x45b6fc=>new ot(_0x45b6fc,_0x10fa7b,_0x469b79,_0x56fac5));this[_0x562ed9(0x314)]=_0x1cd12f;}['_removeCollabCursors'](){const _0x163196=_0x2f1425;this[_0x163196(0x314)][_0x163196(0x28e)](_0xd85cb6=>_0xd85cb6['dispose']()),this[_0x163196(0x314)]=[];}['_initCommandExecutedListener'](){const _0x495668=_0x2f1425,_0x3c3d97=[w['SetDocZoomRatioOperation']['id']];this['disposeWithMe'](this['_commandService'][_0x495668(0x40b)](_0x2260b6=>{const _0x52fe34=_0x495668;_0x3c3d97[_0x52fe34(0x537)](_0x2260b6['id'])&&_0x2260b6[_0x52fe34(0x3d5)]['unitId']===this[_0x52fe34(0x226)]['unitId']&&this[_0x52fe34(0x1f9)]();}));}[_0x2f1425(0x2c6)](){const _0x2d88b4=_0x2f1425;this[_0x2d88b4(0x425)](a[_0x2d88b4(0x2e8)](this[_0x2d88b4(0x226)][_0x2d88b4(0x206)]['onTransformChange$'])['pipe'](E['filter'](_0x3130b3=>_0x3130b3[_0x2d88b4(0x3c5)]===R[_0x2d88b4(0x572)][_0x2d88b4(0x1bb)]),E['throttleTime'](0x10))[_0x2d88b4(0x3ca)](()=>{this['_refreshCollabCursors']();}));}};xe=ui([de(0x1,a[_0x2f1425(0x4d1)](V[_0x2f1425(0x552)])),de(0x2,a['Inject'](ie)),de(0x3,a[_0x2f1425(0x477)]),de(0x4,a[_0x2f1425(0x4d1)](a['ThemeService']))],xe);const di=0x1,Si=1.5;class Ot extends R[_0x2f1425(0x4c6)]{constructor(_0x5e8c2c,_0x3fa78d){const _0x2f9aa9=_0x2f1425;super(_0x5e8c2c,_0x3fa78d),d(this,_0x2f9aa9(0x545)),d(this,_0x2f9aa9(0x3a6),!0x1),d(this,_0x2f9aa9(0x33d)),d(this,'_name',''),d(this,_0x2f9aa9(0x1ae),_0x2f9aa9(0x170)),d(this,'_backgroundColor'),(_0x3fa78d&&this[_0x2f9aa9(0x2c2)](_0x3fa78d),this[_0x2f9aa9(0x379)][_0x2f9aa9(0x41d)](()=>this[_0x2f9aa9(0x2c2)]({'hovered':!0x0})),this[_0x2f9aa9(0x393)][_0x2f9aa9(0x41d)](()=>this[_0x2f9aa9(0x2c2)]({'hovered':!0x1})));}[_0x2f1425(0x2c2)](_0x1fe2a2){const _0x24bce9=_0x2f1425;var _0x1638aa,_0xd1afe4,_0x13ed40,_0xe2c571,_0x3285ae,_0x2408ef;this[_0x24bce9(0x545)]=(_0x1638aa=_0x1fe2a2[_0x24bce9(0x247)])!=null?_0x1638aa:this['_color'],this['_hovered']=(_0xd1afe4=_0x1fe2a2['hovered'])!=null?_0xd1afe4:this[_0x24bce9(0x3a6)],this['_range']=(_0x13ed40=_0x1fe2a2[_0x24bce9(0x4a6)])!=null?_0x13ed40:this['_range'],this[_0x24bce9(0x2f5)]=(_0xe2c571=_0x1fe2a2['name'])!=null?_0xe2c571:this[_0x24bce9(0x2f5)],this[_0x24bce9(0x1ae)]=(_0x3285ae=_0x1fe2a2[_0x24bce9(0x3a8)])!=null?_0x3285ae:this[_0x24bce9(0x1ae)],this[_0x24bce9(0x205)]=(_0x2408ef=_0x1fe2a2[_0x24bce9(0x1fc)])!=null?_0x2408ef:this[_0x24bce9(0x205)],this[_0x24bce9(0x432)]({'width':_0x1fe2a2[_0x24bce9(0x4f6)],'height':_0x1fe2a2['height']});}['onMouseMove'](_0x1e71d1){const _0x54e405=_0x2f1425,{row:_0x1419d5,column:_0x5979ec}=_0x1e71d1;if(_0x1419d5>=this['_range']['startRow']&&_0x1419d5<=this[_0x54e405(0x33d)][_0x54e405(0x24e)]&&_0x5979ec>=this[_0x54e405(0x33d)][_0x54e405(0x1db)]&&_0x5979ec<=this['_range'][_0x54e405(0x352)]){this['setShapeProps']({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2f1425(0x21e)](_0x435ed8){return!0x1;}['_draw'](_0x2c2012){const _0x26a4b5=_0x2f1425;R[_0x26a4b5(0x294)][_0x26a4b5(0x335)](_0x2c2012,{'width':this[_0x26a4b5(0x4f6)],'height':this[_0x26a4b5(0x3b8)],'strokeWidth':Si,'stroke':this[_0x26a4b5(0x545)],'evented':!0x1,'fill':this[_0x26a4b5(0x205)]}),this[_0x26a4b5(0x3a6)]&&(_0x2c2012[_0x26a4b5(0x37d)](),_0x2c2012[_0x26a4b5(0x2e1)](0x1,0x0,0x0,0x1,this[_0x26a4b5(0x4f6)],this['_labelPosition']==='bottom'?0x0:-ue),Te[_0x26a4b5(0x335)](_0x2c2012,{'text':this['_name'],'color':this['_color']}),_0x2c2012[_0x26a4b5(0x26c)]());}}var vi=Object[_0x2f1425(0x1cf)],fi=Object['getOwnPropertyDescriptor'],gi=(_0xd348b3,_0x3cdd43,_0x3a184e,_0x3855d3)=>{const _0x31e85a=_0x2f1425;for(var _0x377b99=_0x3855d3>0x1?void 0x0:_0x3855d3?fi(_0x3cdd43,_0x3a184e):_0x3cdd43,_0x2108cd=_0xd348b3[_0x31e85a(0x38d)]-0x1,_0x30391c;_0x2108cd>=0x0;_0x2108cd--)(_0x30391c=_0xd348b3[_0x2108cd])&&(_0x377b99=(_0x3855d3?_0x30391c(_0x3cdd43,_0x3a184e,_0x377b99):_0x30391c(_0x377b99))||_0x377b99);return _0x3855d3&&_0x377b99&&vi(_0x3cdd43,_0x3a184e,_0x377b99),_0x377b99;},Ae=(_0x5a959b,_0x5b17ce)=>(_0x37b0b0,_0x541424)=>_0x5b17ce(_0x37b0b0,_0x541424,_0x5a959b);const mi=0x1389;let ke=class extends a[_0x2f1425(0x25b)]{constructor(_0x8950e8,_0x14d107,_0xc65966,_0x3a18c5){const _0x2e9af4=_0x2f1425;super(),d(this,'_cursors',new Set()),d(this,'_lastPointer',null),(this[_0x2e9af4(0x226)]=_0x8950e8,this[_0x2e9af4(0x2da)]=_0x14d107,this[_0x2e9af4(0x3da)]=_0xc65966,this[_0x2e9af4(0x1e9)]=_0x3a18c5,this[_0x2e9af4(0x34f)]());}['_init'](){const _0x322f65=_0x2f1425;this[_0x322f65(0x2da)][_0x322f65(0x21c)][_0x322f65(0x53d)](E[_0x322f65(0x275)](this['dispose$']),E[_0x322f65(0x3d7)](_0x5d0449=>{const _0x570d96=_0x322f65;if(_0x5d0449){const _0x193aa6=_0x5d0449[_0x570d96(0x4ce)];return v['combineLatest'](this[_0x570d96(0x3da)]['getCollabCursors$'](this[_0x570d96(0x226)][_0x570d96(0x406)]),this['_themeService'][_0x570d96(0x3b1)])[_0x570d96(0x53d)](E[_0x570d96(0x1c9)](([_0x4e315e,_0x2e39a4])=>{const _0x502736=_0x570d96,_0x1d8957=new Map();return _0x4e315e[_0x502736(0x28e)]((_0x5b8e8f,_0xcb9336)=>{const _0x488425=_0x502736;if(_0x5b8e8f[_0x488425(0x1e1)]===_0x193aa6){const _0x502cec={..._0x5b8e8f};_0x502cec['color']=_0x2e39a4[_0x5b8e8f[_0x488425(0x247)]],_0x1d8957[_0x488425(0x36e)](_0xcb9336,_0x502cec);}}),{'skeleton':_0x5d0449,'cursors':_0x1d8957};}));}return v['of']({'skeleton':null,'cursors':new Map()});}))[_0x322f65(0x3ca)](({skeleton:_0x17ca46,cursors:_0x4ce490})=>{const _0x485624=_0x322f65;this['_removeCollabCursors'](),_0x17ca46&&this[_0x485624(0x357)](_0x17ca46,_0x4ce490);}),this[_0x322f65(0x2da)][_0x322f65(0x21c)][_0x322f65(0x3ca)](_0x11f09f=>{const _0x507b62=_0x322f65;if(_0x11f09f==null)return;const {skeleton:_0x47176d}=_0x11f09f,{scene:_0x178473}=this[_0x507b62(0x226)];_0x178473[_0x507b62(0x1a3)]['subscribeEvent'](a[_0x507b62(0x535)](_0x2dcd07=>{const _0x4ed79a=_0x507b62;var _0x4ff087,_0x5ce05c;const {offsetX:_0x2d42ac,offsetY:_0x2e3fe9}=_0x2dcd07,{x:_0x5a62fe,y:_0xe61711}=_0x178473[_0x4ed79a(0x3ef)](R[_0x4ed79a(0x50c)][_0x4ed79a(0x326)]([_0x2d42ac,_0x2e3fe9])),{scaleX:_0x3e2972,scaleY:_0xd707eb}=_0x178473[_0x4ed79a(0x578)](),_0x46e967=_0x178473[_0x4ed79a(0x53a)](te[_0x4ed79a(0x3dc)][_0x4ed79a(0x4d9)]),_0x42b174=_0x178473[_0x4ed79a(0x52c)](R[_0x4ed79a(0x50c)][_0x4ed79a(0x326)]([_0x5a62fe,_0xe61711]),_0x46e967),_0x318857=_0x47176d[_0x4ed79a(0x4f4)](_0x2d42ac,_0x2e3fe9,_0x3e2972,_0xd707eb,_0x42b174);((_0x4ff087=this[_0x4ed79a(0x30b)])==null?void 0x0:_0x4ff087[_0x4ed79a(0x241)])===_0x318857[_0x4ed79a(0x241)]&&((_0x5ce05c=this['_lastPointer'])==null?void 0x0:_0x5ce05c['row'])===_0x318857['row']||this[_0x4ed79a(0x228)]['forEach'](_0x3f8d64=>{const _0x57bd9d=_0x4ed79a;_0x3f8d64[_0x57bd9d(0x26d)](_0x318857);});},0x64));});}[_0x2f1425(0x357)](_0x8ef150,_0xabab35){const _0x3ecbb6=_0x2f1425;var _0x31f200;const _0x6a688b=(_0x31f200=this[_0x3ecbb6(0x2da)][_0x3ecbb6(0x1d3)]())==null?void 0x0:_0x31f200[_0x3ecbb6(0x45c)];if(!_0x6a688b)return;const _0x1af582=this['_getSheetObject']();if(!_0x1af582)return;this[_0x3ecbb6(0x228)]['forEach'](_0x516ce6=>{const _0x3cbf5f=_0x3ecbb6;_0x516ce6[_0x3cbf5f(0x459)]();});const {scene:_0x968e7d}=_0x1af582,_0x57b09b=Ii(Array[_0x3ecbb6(0x4eb)](_0xabab35[_0x3ecbb6(0x2e0)]()))[_0x3ecbb6(0x1c9)](_0x1e8a4c=>{const _0x54a3f2=_0x3ecbb6,{color:_0x2bc3ed,range:_0xa343f0,name:_0x10b687,selection:_0x14a1b1,sheetID:_0x597b5a}=_0x1e8a4c,{startColumn:_0x5c955c,startRow:_0x48e3d0,endColumn:_0x1e9c44,endRow:_0x41fe1d}=_0xa343f0,_0x2f97da=te[_0x54a3f2(0x453)](_0x48e3d0,_0x5c955c,_0x968e7d,_0x6a688b),_0xe41c02=te['getCoordByCell'](_0x41fe1d,_0x1e9c44,_0x968e7d,_0x6a688b),{columnHeaderHeightAndMarginTop:_0x3e501e}=_0x6a688b,{startX:_0x147cc3,startY:_0x4ebe6a}=_0x2f97da,{endX:_0x4bd7f2,endY:_0x45f3d2}=_0xe41c02,_0x63c7be=_0x4bd7f2-_0x147cc3,_0x57e961=_0x45f3d2-_0x4ebe6a,_0x5f2588={'labelPosition':_0x4ebe6a-_0x3e501e>=ue?'top':'bottom','sheetID':_0x597b5a,'range':_0xa343f0,'color':_0x2bc3ed,'name':_0x10b687,'selection':_0x14a1b1,'left':_0x147cc3,'top':_0x4ebe6a,'width':_0x63c7be,'height':_0x57e961,'evented':!0x1,'zIndex':mi};return new Ot(_0x10b687,_0x5f2588);});_0x968e7d['addObjects'](_0x57b09b,di),this['_cursors']=new Set(_0x57b09b);}[_0x2f1425(0x255)](){const _0x16500b=_0x2f1425;var _0x23136f;(_0x23136f=this[_0x16500b(0x228)])==null||_0x23136f[_0x16500b(0x28e)](_0x55e052=>_0x55e052[_0x16500b(0x235)]());}[_0x2f1425(0x1dd)](){const _0x3dffb4=_0x2f1425;return te[_0x3dffb4(0x4a5)](this['_context']['unit'],this[_0x3dffb4(0x226)]);}};ke=gi([Ae(0x1,a['Inject'](te[_0x2f1425(0x554)])),Ae(0x2,a[_0x2f1425(0x4d1)](ie)),Ae(0x3,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x52f)]))],ke);function Ii(_0x28883e){const _0x53ccfd=_0x2f1425,_0x43c3a9=new Map();return _0x28883e[_0x53ccfd(0x28e)](_0x8dc8a9=>{const _0x159402=_0x53ccfd;if(_0x43c3a9[_0x159402(0x555)](_0x8dc8a9['selection'])){const _0x59b97f=_0x43c3a9[_0x159402(0x41b)](_0x8dc8a9['selection']);_0x59b97f[_0x159402(0x46a)]+=',\x20'+_0x8dc8a9[_0x159402(0x46a)];}else _0x43c3a9[_0x159402(0x36e)](_0x8dc8a9[_0x159402(0x37e)],_0x8dc8a9);}),Array[_0x53ccfd(0x4eb)](_0x43c3a9[_0x53ccfd(0x2e0)]());}var M=function(){const _0x4c7e68=_0x2f1425;return M=Object[_0x4c7e68(0x2ce)]||function(_0x5f2d58){const _0x4ce086=_0x4c7e68;for(var _0xd36a82,_0x41b15d=0x1,_0x3eb0bd=arguments['length'];_0x41b15d<_0x3eb0bd;_0x41b15d++){_0xd36a82=arguments[_0x41b15d];for(var _0x145812 in _0xd36a82)Object[_0x4ce086(0x429)]['hasOwnProperty'][_0x4ce086(0x55f)](_0xd36a82,_0x145812)&&(_0x5f2d58[_0x145812]=_0xd36a82[_0x145812]);}return _0x5f2d58;},M['apply'](this,arguments);},pi=function(_0x4d5393,_0x202fa2){const _0x5e8546=_0x2f1425;var _0x292d22={};for(var _0x3680c1 in _0x4d5393)Object[_0x5e8546(0x429)][_0x5e8546(0x4ed)][_0x5e8546(0x55f)](_0x4d5393,_0x3680c1)&&_0x202fa2[_0x5e8546(0x53e)](_0x3680c1)<0x0&&(_0x292d22[_0x3680c1]=_0x4d5393[_0x3680c1]);if(_0x4d5393!=null&&typeof Object[_0x5e8546(0x27a)]==_0x5e8546(0x44f)){for(var _0x1c6b36=0x0,_0x3680c1=Object['getOwnPropertySymbols'](_0x4d5393);_0x1c6b36<_0x3680c1[_0x5e8546(0x38d)];_0x1c6b36++)_0x202fa2[_0x5e8546(0x53e)](_0x3680c1[_0x1c6b36])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4d5393,_0x3680c1[_0x1c6b36])&&(_0x292d22[_0x3680c1[_0x1c6b36]]=_0x4d5393[_0x3680c1[_0x1c6b36]]);}return _0x292d22;},qe=U['forwardRef'](function(_0x586adb,_0x59ca65){const _0xa94ae5=_0x2f1425;var _0x545b96=_0x586adb[_0xa94ae5(0x529)],_0x41acad=_0x586adb['id'],_0x48d322=_0x586adb[_0xa94ae5(0x2cf)],_0x4f9520=_0x586adb[_0xa94ae5(0x414)],_0xde3a2e=pi(_0x586adb,[_0xa94ae5(0x529),'id',_0xa94ae5(0x2cf),_0xa94ae5(0x414)]),_0x75e6d9=_0xa94ae5(0x4ee)[_0xa94ae5(0x240)](_0x41acad,'\x20')[_0xa94ae5(0x240)](_0x48d322||'')[_0xa94ae5(0x3c8)](),_0x346455=U[_0xa94ae5(0x561)]('_'[_0xa94ae5(0x240)](bi()));return Dt(_0x545b96,''[_0xa94ae5(0x240)](_0x41acad),{'defIds':_0x545b96[_0xa94ae5(0x171)],'idSuffix':_0x346455['current']},M({'ref':_0x59ca65,'className':_0x75e6d9},_0xde3a2e),_0x4f9520);});function Dt(_0x5c2691,_0x4ef224,_0x41b329,_0x5bf43d,_0x56e57c){const _0x585159=_0x2f1425;return U[_0x585159(0x22f)](_0x5c2691[_0x585159(0x239)],M(M({'key':_0x4ef224},Ci(_0x5c2691,_0x41b329,_0x56e57c)),_0x5bf43d),(Ei(_0x5c2691,_0x41b329)[_0x585159(0x195)]||[])['map'](function(_0x43db84,_0x2f4ba7){const _0x2c9b9a=_0x585159;return Dt(_0x43db84,''[_0x2c9b9a(0x240)](_0x4ef224,'-')[_0x2c9b9a(0x240)](_0x5c2691['tag'],'-')[_0x2c9b9a(0x240)](_0x2f4ba7),_0x41b329,void 0x0,_0x56e57c);}));}function Ci(_0x58c58a,_0xc09bcd,_0x494125){const _0x2ebdcc=_0x2f1425;var _0x2ad729=M({},_0x58c58a[_0x2ebdcc(0x3fa)]);_0x494125!=null&&_0x494125['colorChannel1']&&_0x2ad729[_0x2ebdcc(0x203)]===_0x2ebdcc(0x24b)&&(_0x2ad729[_0x2ebdcc(0x203)]=_0x494125[_0x2ebdcc(0x24b)]);var _0x9224ae=_0xc09bcd['defIds'];return!_0x9224ae||_0x9224ae[_0x2ebdcc(0x38d)]===0x0||(_0x58c58a[_0x2ebdcc(0x239)]==='use'&&_0x2ad729[_0x2ebdcc(0x2ea)]&&(_0x2ad729[_0x2ebdcc(0x2ea)]=_0x2ad729['xlink:href']+_0xc09bcd[_0x2ebdcc(0x24d)]),Object[_0x2ebdcc(0x523)](_0x2ad729)[_0x2ebdcc(0x28e)](function(_0x3421f9){const _0x396d6f=_0x2ebdcc;var _0x5dccc4=_0x3421f9[0x0],_0x454cdc=_0x3421f9[0x1];typeof _0x454cdc==_0x396d6f(0x3f2)&&(_0x2ad729[_0x5dccc4]=_0x454cdc[_0x396d6f(0x557)](/url\(#(.*)\)/,_0x396d6f(0x193)[_0x396d6f(0x240)](_0xc09bcd['idSuffix'],')')));})),_0x2ad729;}function Ei(_0x58b67b,_0x5d1191){const _0x5ddfec=_0x2f1425;var _0x544935,_0x11d18e=_0x5d1191[_0x5ddfec(0x171)];return!_0x11d18e||_0x11d18e[_0x5ddfec(0x38d)]===0x0?_0x58b67b:_0x58b67b['tag']==='defs'&&(!((_0x544935=_0x58b67b[_0x5ddfec(0x195)])===null||_0x544935===void 0x0)&&_0x544935['length'])?M(M({},_0x58b67b),{'children':_0x58b67b[_0x5ddfec(0x195)][_0x5ddfec(0x1c9)](function(_0x4166db){const _0x6c6eaa=_0x5ddfec;return typeof _0x4166db[_0x6c6eaa(0x3fa)]['id']==_0x6c6eaa(0x3f2)&&_0x11d18e&&_0x11d18e[_0x6c6eaa(0x53e)](_0x4166db[_0x6c6eaa(0x3fa)]['id'])>-0x1?M(M({},_0x4166db),{'attrs':M(M({},_0x4166db[_0x6c6eaa(0x3fa)]),{'id':_0x4166db['attrs']['id']+_0x5d1191[_0x6c6eaa(0x24d)]})}):_0x4166db;})}):_0x58b67b;}function bi(){const _0x2c4937=_0x2f1425;return Math[_0x2c4937(0x237)]()[_0x2c4937(0x51c)](0x24)[_0x2c4937(0x4e3)](0x2,0x8);}qe[_0x2f1425(0x2f8)]='UniverIcon';var Ti={'tag':'svg','attrs':{'fill':_0x2f1425(0x2d5),'viewBox':_0x2f1425(0x3cd),'width':_0x2f1425(0x530),'height':_0x2f1425(0x530)},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x2f1425(0x322),'attrs':{'stroke':_0x2f1425(0x568),'d':_0x2f1425(0x4d2),'strokeLinecap':'round','strokeLinejoin':_0x2f1425(0x336),'strokeWidth':1.2}}]},{'tag':_0x2f1425(0x2ef),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x2f1425(0x571)},'children':[{'tag':'path','attrs':{'fill':_0x2f1425(0x2c7),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},yt=U[_0x2f1425(0x17f)](function(_0x5b9e45,_0x4bf472){const _0x18139c=_0x2f1425;return U['createElement'](qe,Object[_0x18139c(0x2ce)]({},_0x5b9e45,{'id':_0x18139c(0x198),'ref':_0x4bf472,'icon':Ti}));});yt['displayName']='OffLineSingle';var Ri={'tag':_0x2f1425(0x22a),'attrs':{'fill':_0x2f1425(0x2d5),'viewBox':_0x2f1425(0x49a),'width':_0x2f1425(0x530),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':_0x2f1425(0x18b)},'children':[{'tag':_0x2f1425(0x322),'attrs':{'stroke':_0x2f1425(0x568),'d':_0x2f1425(0x3f6),'strokeLinecap':_0x2f1425(0x336),'strokeLinejoin':_0x2f1425(0x336),'strokeWidth':1.2}}]},{'tag':_0x2f1425(0x2ef),'attrs':{},'children':[{'tag':_0x2f1425(0x268),'attrs':{'id':_0x2f1425(0x407)},'children':[{'tag':'path','attrs':{'fill':_0x2f1425(0x2c7),'d':_0x2f1425(0x4b8),'transform':'translate(.97)'}}]}]}],'defIds':[_0x2f1425(0x407)]},Ut=U[_0x2f1425(0x17f)](function(_0x393629,_0xd4e095){const _0x591d56=_0x2f1425;return U['createElement'](qe,Object[_0x591d56(0x2ce)]({},_0x393629,{'id':_0x591d56(0x4e7),'ref':_0xd4e095,'icon':Ri}));});Ut[_0x2f1425(0x2f8)]=_0x2f1425(0x347);function Pt(_0xeabbe7){const _0x4e1c1d=_0x2f1425;var _0x1af100,_0x2a4f77,_0x1b27ca='';if(typeof _0xeabbe7=='string'||typeof _0xeabbe7==_0x4e1c1d(0x57d))_0x1b27ca+=_0xeabbe7;else{if(typeof _0xeabbe7==_0x4e1c1d(0x4b4)){if(Array[_0x4e1c1d(0x476)](_0xeabbe7)){var _0x542af4=_0xeabbe7[_0x4e1c1d(0x38d)];for(_0x1af100=0x0;_0x1af100<_0x542af4;_0x1af100++)_0xeabbe7[_0x1af100]&&(_0x2a4f77=Pt(_0xeabbe7[_0x1af100]))&&(_0x1b27ca&&(_0x1b27ca+='\x20'),_0x1b27ca+=_0x2a4f77);}else{for(_0x2a4f77 in _0xeabbe7)_0xeabbe7[_0x2a4f77]&&(_0x1b27ca&&(_0x1b27ca+='\x20'),_0x1b27ca+=_0x2a4f77);}}}return _0x1b27ca;}function Oi(){const _0x97a56a=_0x2f1425;for(var _0x5c56ae,_0xc484db,_0x2e7ef8=0x0,_0x3a4595='',_0x1689fb=arguments[_0x97a56a(0x38d)];_0x2e7ef8<_0x1689fb;_0x2e7ef8++)(_0x5c56ae=arguments[_0x2e7ef8])&&(_0xc484db=Pt(_0x5c56ae))&&(_0x3a4595&&(_0x3a4595+='\x20'),_0x3a4595+=_0xc484db);return _0x3a4595;}const Di=_0x2f1425(0x243),yi=_0x2f1425(0x4c7),Ui=_0x2f1425(0x504),Pi=_0x2f1425(0x175),wi=_0x2f1425(0x455),le={'onlineStatusIcon':Di,'onlineStatusTitle':yi,'onlineStatus':Ui,'online':Pi,'offline':wi};function Mi(_0x445bfe){const _0x1420de=_0x2f1425;switch(_0x445bfe){case y[_0x1420de(0x3a1)]:return _0x1420de(0x2cb);case y[_0x1420de(0x3ed)]:return _0x1420de(0x3b7);case y[_0x1420de(0x4bf)]:return _0x1420de(0x41a);case y[_0x1420de(0x35a)]:return _0x1420de(0x367);case y[_0x1420de(0x400)]:case y[_0x1420de(0x55a)]:case y['AWAITING_WITH_PENDING']:return'collabStatus.syncing';case y['SYNCED']:return'collabStatus.synced';}}function wt(_0x578c7c){const _0x25e8e1=_0x2f1425,{status$:_0x939e5e}=_0x578c7c,_0x8f4044=N[_0x25e8e1(0x53c)](_0x939e5e,y[_0x25e8e1(0x35a)]),_0x598d23=a[_0x25e8e1(0x2a8)](a[_0x25e8e1(0x2d7)]),_0x5490b7=a[_0x25e8e1(0x2a8)](exports[_0x25e8e1(0x1d4)]),_0x188a1f=_0x8f4044!==y[_0x25e8e1(0x3a1)],_0x183ec4=_0x598d23['t'](Mi(_0x8f4044)),_0x50972e=Oi(le['onlineStatus'],{[le['online']]:_0x188a1f,[le['offline']]:!_0x188a1f}),_0x52b2a9=_0x188a1f?U[_0x25e8e1(0x22f)](Ut,null):U['createElement'](yt,null),_0x3f9077=U[_0x25e8e1(0x2d6)](()=>{const _0x5b7692=_0x25e8e1;_0x188a1f||_0x5490b7[_0x5b7692(0x32e)]();},[_0x188a1f,_0x5490b7]);function _0x4b3b58(){const _0x53ae88=_0x25e8e1;return U['createElement'](_0x53ae88(0x4b7),{'className':_0x50972e,'onClick':_0x3f9077},U[_0x53ae88(0x22f)]('div',{'className':le[_0x53ae88(0x259)]},_0x52b2a9),U[_0x53ae88(0x22f)](_0x53ae88(0x4b7),{'className':le[_0x53ae88(0x1ca)]},_0x183ec4));}return _0x188a1f?_0x4b3b58():U[_0x25e8e1(0x22f)](X['Tooltip'],{'title':_0x598d23['t'](_0x25e8e1(0x3c4))},_0x4b3b58());}var Ni=Object[_0x2f1425(0x1cf)],Ai=Object[_0x2f1425(0x2ab)],Li=(_0x42e66a,_0xb2db3e,_0x537a26,_0x209a43)=>{const _0xc5625d=_0x2f1425;for(var _0x280a30=_0x209a43>0x1?void 0x0:_0x209a43?Ai(_0xb2db3e,_0x537a26):_0xb2db3e,_0x567a14=_0x42e66a[_0xc5625d(0x38d)]-0x1,_0x37ee3e;_0x567a14>=0x0;_0x567a14--)(_0x37ee3e=_0x42e66a[_0x567a14])&&(_0x280a30=(_0x209a43?_0x37ee3e(_0xb2db3e,_0x537a26,_0x280a30):_0x37ee3e(_0x280a30))||_0x280a30);return _0x209a43&&_0x280a30&&Ni(_0xb2db3e,_0x537a26,_0x280a30),_0x280a30;},Se=(_0x48f5bd,_0x16ce1f)=>(_0x370b75,_0x5aed51)=>_0x16ce1f(_0x370b75,_0x5aed51,_0x48f5bd);exports[_0x2f1425(0x55b)]=class extends a[_0x2f1425(0x387)]{constructor(_0x202e03,_0x1cea02,_0x2dfecb,_0x593e2e){const _0x2459f0=_0x2f1425;super(),d(this,_0x2459f0(0x32c),new v[(_0x2459f0(0x21d))](y[_0x2459f0(0x35a)])),(this[_0x2459f0(0x458)]=_0x202e03,this[_0x2459f0(0x51d)]=_0x1cea02,this[_0x2459f0(0x4fa)]=_0x2dfecb,this['_collaborationController']=_0x593e2e,this[_0x2459f0(0x56b)](),this['_initStatusListener']());}[_0x2f1425(0x303)](){const _0x44d946=_0x2f1425;this[_0x44d946(0x425)](this[_0x44d946(0x458)][_0x44d946(0x4d4)][_0x44d946(0x53d)](v[_0x44d946(0x3d7)](()=>{const _0x3774fe=_0x44d946,_0x5c3ded=this[_0x3774fe(0x458)]['getFocusedUnit']();return _0x5c3ded?this[_0x3774fe(0x536)][_0x3774fe(0x384)](_0x5c3ded[_0x3774fe(0x1fa)]()):v['of'](null);}),v[_0x44d946(0x3d7)](_0x2cc406=>_0x2cc406?_0x2cc406[_0x44d946(0x56d)]:v['of'](y['NOT_COLLAB'])))['subscribe'](_0x2867b2=>{const _0x32c2d1=_0x44d946;this[_0x32c2d1(0x32c)][_0x32c2d1(0x500)](_0x2867b2);}));}[_0x2f1425(0x56b)](){const _0x30283d=_0x2f1425;this[_0x30283d(0x425)](this['_uiPartsService']['registerComponent'](N[_0x30283d(0x1ce)]['HEADER_MENU'],()=>a[_0x30283d(0x1eb)](ji({'status$':this[_0x30283d(0x32c)]['asObservable']()}),this['_injector'])));}},exports[_0x2f1425(0x55b)]=Li([Se(0x0,a['IUniverInstanceService']),Se(0x1,N[_0x2f1425(0x2cd)]),Se(0x2,a['Inject'](a[_0x2f1425(0x450)])),Se(0x3,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x4f1)]))],exports[_0x2f1425(0x55b)]);function ji(_0x2ec872){const {status$:_0x180edd}=_0x2ec872;return function(){const _0x201777=_0x4554;return U[_0x201777(0x22f)](wt,{'status$':_0x180edd});};}const ze=a[_0x2f1425(0x232)]('uni.network.url-service');var $i=Object['defineProperty'],Hi=Object[_0x2f1425(0x2ab)],xi=(_0x12dbf8,_0x14fadb,_0x4559d7,_0x29761d)=>{const _0x4446e1=_0x2f1425;for(var _0x1d7d9e=_0x29761d>0x1?void 0x0:_0x29761d?Hi(_0x14fadb,_0x4559d7):_0x14fadb,_0x59802f=_0x12dbf8[_0x4446e1(0x38d)]-0x1,_0x75c960;_0x59802f>=0x0;_0x59802f--)(_0x75c960=_0x12dbf8[_0x59802f])&&(_0x1d7d9e=(_0x29761d?_0x75c960(_0x14fadb,_0x4559d7,_0x1d7d9e):_0x75c960(_0x1d7d9e))||_0x1d7d9e);return _0x29761d&&_0x1d7d9e&&$i(_0x14fadb,_0x4559d7,_0x1d7d9e),_0x1d7d9e;},ee=(_0x246902,_0x461c96)=>(_0x581448,_0x5a467a)=>_0x461c96(_0x581448,_0x5a467a,_0x246902);exports[_0x2f1425(0x2d8)]=class extends a[_0x2f1425(0x25b)]{constructor(_0xc4b5fc,_0x2cba14,_0x2288ba,_0x53abe2,_0x39ef04,_0x12686f){const _0xf465f9=_0x2f1425;super(),this[_0xf465f9(0x48e)]=_0xc4b5fc,this[_0xf465f9(0x562)]=_0x2cba14,this['_commandService']=_0x2288ba,this[_0xf465f9(0x28a)]=_0x53abe2,this[_0xf465f9(0x4f0)]=_0x39ef04,_0x12686f?_0x12686f==null||_0x12686f[_0xf465f9(0x1c2)]()[_0xf465f9(0x313)](()=>this[_0xf465f9(0x34f)]()):(this[_0xf465f9(0x562)][_0xf465f9(0x27e)]('[DataLoaderController]',_0xf465f9(0x207)),this['_init']());}async[_0x2f1425(0x34f)](){const _0x5324d7=_0x2f1425,_0x477f43=this[_0x5324d7(0x48e)]['getParam'](_0x5324d7(0x4b3)),_0x82d31d=this[_0x5324d7(0x48e)]['getParam'](_0x5324d7(0x3c5));if(!_0x477f43||!_0x82d31d){this[_0x5324d7(0x562)][_0x5324d7(0x27e)](_0x5324d7(0x20f),_0x5324d7(0x325));return;}switch(Number(_0x82d31d)){case j[_0x5324d7(0x1bf)]:{const _0x23188b=await this[_0x5324d7(0x4c2)](_0x477f43);this[_0x5324d7(0x522)](_0x23188b);break;}case j['UNIVER_DOC']:{await this['_loadDoc'](_0x477f43);break;}default:{this[_0x5324d7(0x562)][_0x5324d7(0x348)](_0x5324d7(0x20f),'Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}}}async[_0x2f1425(0x522)](_0x2346f3){const _0x3235a8=_0x2f1425;await this[_0x3235a8(0x17c)](_0x2346f3),_0x2346f3[_0x3235a8(0x4cf)][_0x3235a8(0x53d)](v[_0x3235a8(0x275)](this[_0x3235a8(0x2b4)]))[_0x3235a8(0x3ca)](_0x489741=>{const _0x51faa8=_0x3235a8;_0x489741&&this[_0x51faa8(0x337)](_0x489741);}),this[_0x3235a8(0x48e)][_0x3235a8(0x2b8)][_0x3235a8(0x53d)](v[_0x3235a8(0x275)](this[_0x3235a8(0x2b4)]))[_0x3235a8(0x3ca)](()=>this[_0x3235a8(0x17c)](_0x2346f3));}[_0x2f1425(0x337)](_0x560b09,_0x6472dd=!0x1){const _0x591c5f=_0x2f1425,_0x190ca3=this[_0x591c5f(0x48e)][_0x591c5f(0x214)](_0x591c5f(0x30d));_0x560b09[_0x591c5f(0x1be)]()!==_0x190ca3&&this[_0x591c5f(0x48e)][_0x591c5f(0x29e)](_0x591c5f(0x30d),_0x560b09[_0x591c5f(0x1be)](),_0x6472dd);}async[_0x2f1425(0x17c)](_0x1abc64){const _0x20f7ce=_0x2f1425;var _0x12b1c0;const _0x399c44=this['_urlService'][_0x20f7ce(0x214)](_0x20f7ce(0x30d));if(!_0x399c44||!_0x1abc64[_0x20f7ce(0x2af)](_0x399c44)){const _0x239fd8=_0x1abc64[_0x20f7ce(0x172)]()[0x0],_0x9f11b4=_0x1abc64['getSheetBySheetId'](_0x239fd8);if(!_0x9f11b4)return;this[_0x20f7ce(0x337)](_0x9f11b4,!0x0),await this[_0x20f7ce(0x4b2)][_0x20f7ce(0x373)](C[_0x20f7ce(0x272)]['id'],{'unitId':_0x1abc64[_0x20f7ce(0x1fa)](),'subUnitId':_0x239fd8});return;}((_0x12b1c0=_0x1abc64['getActiveSheet']())==null?void 0x0:_0x12b1c0[_0x20f7ce(0x1be)]())!==_0x399c44&&await this[_0x20f7ce(0x4b2)][_0x20f7ce(0x373)](C['SetWorksheetActivateCommand']['id'],{'unitId':_0x1abc64[_0x20f7ce(0x1fa)](),'subUnitId':_0x399c44});}async[_0x2f1425(0x4c2)](_0x34e59c){const _0x3e76c7=_0x2f1425;let _0x16a8b8=0x0;const _0x5efdde=await this['_localCacheService'][_0x3e76c7(0x4b5)](_0x34e59c);return _0x5efdde&&(_0x5efdde[_0x3e76c7(0x30c)]||_0x5efdde[_0x3e76c7(0x569)]['length']!==0x0)&&(_0x16a8b8=_0x5efdde[_0x3e76c7(0x4fe)]),_0x16a8b8===0x0&&this['_logService']['debug'](_0x3e76c7(0x20f),_0x3e76c7(0x514)),this[_0x3e76c7(0x4f0)][_0x3e76c7(0x38c)](_0x34e59c,_0x16a8b8);}async[_0x2f1425(0x3f4)](_0xb616c1){const _0xb90b98=_0x2f1425;let _0x3633f5=0x0;const _0x1b681d=await this[_0xb90b98(0x28a)][_0xb90b98(0x4b5)](_0xb616c1);return _0x1b681d&&(_0x1b681d[_0xb90b98(0x30c)]||_0x1b681d[_0xb90b98(0x569)]['length']!==0x0)&&(_0x3633f5=_0x1b681d['rev']),_0x3633f5===0x0&&this[_0xb90b98(0x562)]['debug']('[DataLoaderController]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0xb90b98(0x4f0)][_0xb90b98(0x534)](_0xb616c1,_0x3633f5);}},exports[_0x2f1425(0x2d8)]=xi([ee(0x0,ze),ee(0x1,a[_0x2f1425(0x2e3)]),ee(0x2,a[_0x2f1425(0x477)]),ee(0x3,a[_0x2f1425(0x4d1)](exports[_0x2f1425(0x509)])),ee(0x4,a[_0x2f1425(0x4d1)](_[_0x2f1425(0x4db)])),ee(0x5,a[_0x2f1425(0x42b)](Wt[_0x2f1425(0x1e8)]))],exports['DataLoaderController']);var ki=Object[_0x2f1425(0x1cf)],Bi=Object[_0x2f1425(0x2ab)],Vi=(_0x4f9539,_0xe135f8,_0x2f9f09,_0x21f987)=>{const _0x2f955d=_0x2f1425;for(var _0x370040=_0x21f987>0x1?void 0x0:_0x21f987?Bi(_0xe135f8,_0x2f9f09):_0xe135f8,_0x5a37e1=_0x4f9539[_0x2f955d(0x38d)]-0x1,_0x6e4ab5;_0x5a37e1>=0x0;_0x5a37e1--)(_0x6e4ab5=_0x4f9539[_0x5a37e1])&&(_0x370040=(_0x21f987?_0x6e4ab5(_0xe135f8,_0x2f9f09,_0x370040):_0x6e4ab5(_0x370040))||_0x370040);return _0x21f987&&_0x370040&&ki(_0xe135f8,_0x2f9f09,_0x370040),_0x370040;},at=(_0x5c9d1a,_0x47c9fa)=>(_0x3b5990,_0x3d4ee9)=>_0x47c9fa(_0x3b5990,_0x3d4ee9,_0x5c9d1a);const Wi=_0x2f1425(0x1d0),Fi=_0x2f1425(0x231);let Ie=class extends a[_0x2f1425(0x387)]{constructor(_0x4b82a0,_0xaf6d77){const _0xc589f0=_0x2f1425;super(),this[_0xc589f0(0x458)]=_0x4b82a0,this[_0xc589f0(0x1c3)]=_0xaf6d77,this[_0xc589f0(0x34f)]();}['_init'](){const _0x2a3862=_0x2f1425;this[_0x2a3862(0x425)](this[_0x2a3862(0x458)]['focused$']['subscribe'](()=>{const _0x5b5500=_0x2a3862;var _0x539526;const _0x414972=this[_0x5b5500(0x458)][_0x5b5500(0x199)]();let _0x3084c4=(_0x539526=this[_0x5b5500(0x1c3)]['getConfig'](Wi))!=null?_0x539526:Fi;_0x414972 instanceof a[_0x5b5500(0x50e)]&&(_0x3084c4=_0x414972['name']),document[_0x5b5500(0x22e)]=_0x3084c4;}));}};Ie=Vi([at(0x0,a[_0x2f1425(0x468)]),at(0x1,a['IConfigService'])],Ie);var Gi=Object[_0x2f1425(0x1cf)],Yi=Object[_0x2f1425(0x2ab)],Ki=(_0x594428,_0x4e69f5,_0x5abf47,_0x249fab)=>{const _0x53d69f=_0x2f1425;for(var _0x29b783=_0x249fab>0x1?void 0x0:_0x249fab?Yi(_0x4e69f5,_0x5abf47):_0x4e69f5,_0x5bb6af=_0x594428[_0x53d69f(0x38d)]-0x1,_0x31f7f9;_0x5bb6af>=0x0;_0x5bb6af--)(_0x31f7f9=_0x594428[_0x5bb6af])&&(_0x29b783=(_0x249fab?_0x31f7f9(_0x4e69f5,_0x5abf47,_0x29b783):_0x31f7f9(_0x29b783))||_0x29b783);return _0x249fab&&_0x29b783&&Gi(_0x4e69f5,_0x5abf47,_0x29b783),_0x29b783;},Le=(_0x2814bc,_0x34721a)=>(_0x352b36,_0x36f1dd)=>_0x34721a(_0x352b36,_0x36f1dd,_0x2814bc);let pe=class{constructor(_0x239ac9,_0x122910,_0x29a29e){const _0x56256d=_0x2f1425;this[_0x56256d(0x1c3)]=_0x239ac9,this[_0x56256d(0x2dd)]=_0x122910,this[_0x56256d(0x56c)]=_0x29a29e,this['init']();}[_0x2f1425(0x2fc)](){const _0x39b26b=_0x2f1425;this[_0x39b26b(0x2dd)][_0x39b26b(0x493)]({'priority':0x1,'interceptor':(_0xaaa9f6,_0x206142)=>_0x206142(_0xaaa9f6)[_0x39b26b(0x53d)](v[_0x39b26b(0x293)](async _0x192b59=>{const _0x120f51=_0x39b26b,_0x3beb6b=_0x192b59;if(_0x3beb6b['status']===0x191&&window[_0x120f51(0x204)](this['localeService']['t']('auth.needGotoLoginAlert'))){const _0x158619=window['encodeURIComponent'](window[_0x120f51(0x2d9)][_0x120f51(0x236)]);window[_0x120f51(0x2d9)][_0x120f51(0x236)]=this[_0x120f51(0x4bb)]()+_0x120f51(0x308)+_0x158619;}return _0x3beb6b;}))});}[_0x2f1425(0x4bb)](){const _0x39d09e=_0x2f1425;var _0x27de68,_0x276a6c;const _0x159193=this[_0x39d09e(0x1c3)]['getConfig'](mt),_0x539475=this[_0x39d09e(0x1c3)][_0x39d09e(0x480)](A);return(_0x276a6c=(_0x27de68=_0x539475==null?void 0x0:_0x539475['loginUrlKey'])!=null?_0x27de68:_0x159193)!=null?_0x276a6c:es;}};pe=Ki([Le(0x0,a[_0x2f1425(0x47d)]),Le(0x1,a[_0x2f1425(0x4d1)](P['HTTPService'])),Le(0x2,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)]))],pe);var Xi=Object['defineProperty'],qi=Object[_0x2f1425(0x2ab)],zi=(_0x442041,_0x5a60a5,_0x4c2fd7,_0x48e010)=>{const _0x577d32=_0x2f1425;for(var _0x1478c8=_0x48e010>0x1?void 0x0:_0x48e010?qi(_0x5a60a5,_0x4c2fd7):_0x5a60a5,_0x2ab06a=_0x442041[_0x577d32(0x38d)]-0x1,_0x232742;_0x2ab06a>=0x0;_0x2ab06a--)(_0x232742=_0x442041[_0x2ab06a])&&(_0x1478c8=(_0x48e010?_0x232742(_0x5a60a5,_0x4c2fd7,_0x1478c8):_0x232742(_0x1478c8))||_0x1478c8);return _0x48e010&&_0x1478c8&&Xi(_0x5a60a5,_0x4c2fd7,_0x1478c8),_0x1478c8;},ct=(_0x17fe44,_0x589803)=>(_0x44e962,_0x3047fc)=>_0x589803(_0x44e962,_0x3047fc,_0x17fe44);const Mt=_0x2f1425(0x208),Ji=_0x2f1425(0x3d3);exports[_0x2f1425(0x321)]=class extends a[_0x2f1425(0x387)]{constructor(_0x7b334b,_0x1500a9){const _0x3e4e85=_0x2f1425;super(),this[_0x3e4e85(0x359)]=_0x7b334b,this[_0x3e4e85(0x1c3)]=_0x1500a9,this['_initMergeInterceptor']();}['_initMergeInterceptor'](){const _0x46d8ba=_0x2f1425,_0x446ff4=this;this[_0x46d8ba(0x425)](this[_0x46d8ba(0x359)][_0x46d8ba(0x493)]({'priority':0x3e7,'interceptor':P[_0x46d8ba(0x286)]({'isMatch'(_0x38ff3f){const _0x179b76=_0x46d8ba;var _0x1d54b4;if(_0x38ff3f[_0x179b76(0x574)]===_0x179b76(0x360)&&((_0x1d54b4=_0x38ff3f['requestParams'])!=null&&_0x1d54b4[_0x179b76(0x2d2)])){const {objectID:_0x35a535,objectType:_0x45c5dc}=_0x38ff3f[_0x179b76(0x564)][_0x179b76(0x2d2)]||{};if(!_0x35a535||_0x45c5dc===void 0x0)return!0x1;const _0x4e618c=_0x446ff4[_0x179b76(0x1e6)]()+'/'+_0x45c5dc+'/object/'+_0x35a535+_0x179b76(0x4f7);if(_0x38ff3f[_0x179b76(0x1f1)]===_0x4e618c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x15288e){const _0x445a23=_0x46d8ba;var _0x10569c;return(_0x10569c=_0x15288e[_0x445a23(0x564)])==null?void 0x0:_0x10569c[_0x445a23(0x2d2)];},'mergeParamsToRequest'(_0x180c49,_0x30a345){const _0x2c5edf=_0x46d8ba,_0x14a27a=_0x446ff4[_0x2c5edf(0x1e6)]()+_0x2c5edf(0x2ec),_0x2fd5d7=_0x180c49[_0x2c5edf(0x375)]((_0x129e75,_0x426d0d)=>{const _0x12fe27=_0x2c5edf,{unitID:_0x18bdf1,objectID:_0x7a154e,objectType:_0x303458,actions:_0x333472}=_0x426d0d;return _0x129e75[_0x18bdf1]||(_0x129e75[_0x18bdf1]={}),_0x129e75[_0x18bdf1][_0x7a154e]||(_0x129e75[_0x18bdf1][_0x7a154e]={'objectID':_0x7a154e,'objectType':_0x303458,'actions':[]}),_0x129e75[_0x18bdf1][_0x7a154e]['actions'][_0x12fe27(0x52d)](..._0x333472),_0x129e75;},{}),_0xf27427=[];for(const _0x518ab5 in _0x2fd5d7)for(const _0x51d593 in _0x2fd5d7[_0x518ab5]){const {actions:_0x2e8a3a,objectType:_0xc0f17f}=_0x2fd5d7[_0x518ab5][_0x51d593],_0x43c85f=[...new Set(_0x2e8a3a)];_0xf27427[_0x2c5edf(0x52d)]({'unitID':_0x518ab5,'objectID':_0x51d593,'objectType':_0xc0f17f,'actions':_0x43c85f});}return new P[(_0x2c5edf(0x2d0))](_0x2c5edf(0x360),_0x14a27a,{'headers':_0x30a345['headers'],'withCredentials':_0x30a345[_0x2c5edf(0x23c)],'responseType':_0x30a345[_0x2c5edf(0x28c)],'body':{'requests':_0xf27427}});}},{'distributeResult'(_0x573540,_0x39a20f){const _0x9f5f4b=_0x46d8ba,{objectActions:_0x24cb30}=_0x573540;return _0x39a20f[_0x9f5f4b(0x1c9)](_0x59f6fa=>{const _0x1cf7fd=_0x9f5f4b,{unitID:_0x38df3d,objectID:_0x444fb3,actions:_0x1081eb}=_0x59f6fa,_0x5c8b29=_0x24cb30[_0x1cf7fd(0x45e)](_0x3a9e82=>_0x3a9e82[_0x1cf7fd(0x437)]===_0x38df3d&&_0x3a9e82[_0x1cf7fd(0x56a)]===_0x444fb3),_0x36dfbf=_0x1081eb[_0x1cf7fd(0x1c9)](_0x3d4ed1=>_0x5c8b29==null?void 0x0:_0x5c8b29[_0x1cf7fd(0x2dc)][_0x1cf7fd(0x45e)](_0x4d2872=>_0x4d2872[_0x1cf7fd(0x44a)]===_0x3d4ed1))[_0x1cf7fd(0x2b7)](_0x5e6279=>!!_0x5e6279);return{'config':_0x59f6fa,'result':{'actions':_0x36dfbf,'error':_0x573540['error']}};});}})}));}[_0x2f1425(0x1e6)](){const _0x1a8307=_0x2f1425;var _0x2e7a18,_0x36bd39;const _0x2625fa=this[_0x1a8307(0x1c3)][_0x1a8307(0x480)](Mt),_0x174613=this[_0x1a8307(0x1c3)]['getConfig'](A);return(_0x36bd39=(_0x2e7a18=_0x174613==null?void 0x0:_0x174613[_0x1a8307(0x43a)])!=null?_0x2e7a18:_0x2625fa)!=null?_0x36bd39:Ji;}async['create'](_0x497a81){const _0x1b2ecb=_0x2f1425,_0x23ec46=this[_0x1b2ecb(0x1e6)]()+'/'+_0x497a81['objectType']+'/object';return(await this[_0x1b2ecb(0x359)]['post'](_0x23ec46,{'body':_0x497a81}))[_0x1b2ecb(0x2d2)]['objectID']||'';}async['list'](_0x805e5e){const _0x5c6697=_0x2f1425,_0xe325ef=this[_0x5c6697(0x1e6)]()+'/-/object/list';return(await this[_0x5c6697(0x359)][_0x5c6697(0x31d)](_0xe325ef,{'body':_0x805e5e}))['body']['objects'];}async[_0x2f1425(0x36f)](_0x334c17){const _0xbfa009=_0x2f1425,_0x55457c=this[_0xbfa009(0x1e6)]()+'/'+_0x334c17[_0xbfa009(0x178)]+_0xbfa009(0x4c0)+_0x334c17['objectID'];await this[_0xbfa009(0x359)][_0xbfa009(0x1a0)](_0x55457c,{'body':_0x334c17});}async[_0x2f1425(0x22d)](_0x518214){const _0x1726e8=_0x2f1425,_0x3166ec=this['_getAPIPrefixPath']()+'/'+_0x518214[_0x1726e8(0x178)]+_0x1726e8(0x4c0)+_0x518214[_0x1726e8(0x56a)]+_0x1726e8(0x4f7);return(await this[_0x1726e8(0x359)][_0x1726e8(0x31d)](_0x3166ec,{'body':_0x518214}))['body'][_0x1726e8(0x2dc)];}async[_0x2f1425(0x4c5)](_0x413e66){const _0x27dd20=_0x2f1425,_0x222f9d=this['_getAPIPrefixPath']()+_0x27dd20(0x2ec);return(await this[_0x27dd20(0x359)][_0x27dd20(0x31d)](_0x222f9d,{'body':{'requests':_0x413e66}}))[_0x27dd20(0x2d2)][_0x27dd20(0x3e4)];}async[_0x2f1425(0x39c)](_0x25cf7b){const _0x28c15d=_0x2f1425,_0x58ea64=this[_0x28c15d(0x1e6)]()+'/'+_0x25cf7b['objectType']+_0x28c15d(0x3ab),_0x2ec551=await this['_HTTPService'][_0x28c15d(0x31d)](_0x58ea64,{'body':_0x25cf7b});return{'roles':_0x2ec551[_0x28c15d(0x2d2)][_0x28c15d(0x397)],'actions':_0x2ec551[_0x28c15d(0x2d2)][_0x28c15d(0x2dc)]};}async[_0x2f1425(0x351)](_0x2c1cbe){const _0x1ea9c8=_0x2f1425,_0x4a4bd8=this[_0x1ea9c8(0x1e6)]()+_0x1ea9c8(0x238);await this[_0x1ea9c8(0x359)][_0x1ea9c8(0x28f)](_0x4a4bd8,{'params':{'collaboratorID':_0x2c1cbe[_0x1ea9c8(0x41f)],'objectID':_0x2c1cbe[_0x1ea9c8(0x56a)],'unitID':_0x2c1cbe[_0x1ea9c8(0x437)]}});}async[_0x2f1425(0x289)](_0x44156a){const _0x3ac83a=_0x2f1425,_0x108eaa=this[_0x3ac83a(0x1e6)]()+_0x3ac83a(0x238);await this[_0x3ac83a(0x359)][_0x3ac83a(0x1b0)](_0x108eaa,{'body':_0x44156a});}async[_0x2f1425(0x435)](_0x50a116){const _0xa5b123=_0x2f1425,_0xf08be3=this[_0xa5b123(0x1e6)]()+_0xa5b123(0x238);await this[_0xa5b123(0x359)][_0xa5b123(0x31d)](_0xf08be3,{'body':_0x50a116});}async[_0x2f1425(0x1ac)](_0xa3bced){const _0x2dd3d5=_0x2f1425,_0x2f1503=this[_0x2dd3d5(0x1e6)]()+_0x2dd3d5(0x238);return(await this[_0x2dd3d5(0x359)][_0x2dd3d5(0x41b)](_0x2f1503,{'params':{'objectID':_0xa3bced[_0x2dd3d5(0x56a)],'unitID':_0xa3bced[_0x2dd3d5(0x437)]}}))[_0x2dd3d5(0x2d2)][_0x2dd3d5(0x2b6)];}async[_0x2f1425(0x2aa)](_0x22a203){const _0x568576=_0x2f1425,_0x3dfb75=this[_0x568576(0x1e6)]()+_0x568576(0x238);await this['_HTTPService'][_0x568576(0x1a0)](_0x3dfb75,{'body':_0x22a203});}},exports[_0x2f1425(0x321)]=zi([ct(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)])),ct(0x1,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x47d)]))],exports[_0x2f1425(0x321)]);var Zi=Object[_0x2f1425(0x1cf)],Qi=Object[_0x2f1425(0x2ab)],en=(_0x115a29,_0x331582,_0x2c3288,_0x2f0417)=>{const _0x452cdd=_0x2f1425;for(var _0x4b77e4=_0x2f0417>0x1?void 0x0:_0x2f0417?Qi(_0x331582,_0x2c3288):_0x331582,_0x14cab8=_0x115a29[_0x452cdd(0x38d)]-0x1,_0x448981;_0x14cab8>=0x0;_0x14cab8--)(_0x448981=_0x115a29[_0x14cab8])&&(_0x4b77e4=(_0x2f0417?_0x448981(_0x331582,_0x2c3288,_0x4b77e4):_0x448981(_0x4b77e4))||_0x4b77e4);return _0x2f0417&&_0x4b77e4&&Zi(_0x331582,_0x2c3288,_0x4b77e4),_0x4b77e4;},tn=(_0x52c46f,_0x50bfe7)=>(_0xb6f626,_0x27819f)=>_0x50bfe7(_0xb6f626,_0x27819f,_0x52c46f);let Ce=class{constructor(_0x9a604b){const _0xb1bfc7=_0x2f1425;this[_0xb1bfc7(0x2dd)]=_0x9a604b,this[_0xb1bfc7(0x3e5)]();}[_0x2f1425(0x3e5)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x268109,_0x16c2f4)=>{const _0x53a7cd=_0x4554,_0x4177f4=_0x268109[_0x53a7cd(0x287)],_0x26a70e=Ft['getAttachHeader']();return _0x26a70e&&_0x4177f4['set'](_0x53a7cd(0x53f),_0x26a70e),_0x16c2f4(_0x268109);}});}};Ce=en([tn(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)]))],Ce);var sn=Object[_0x2f1425(0x1cf)],nn=Object[_0x2f1425(0x2ab)],rn=(_0x427695,_0xf17048,_0x76278e,_0x451c24)=>{for(var _0x97b8ce=_0x451c24>0x1?void 0x0:_0x451c24?nn(_0xf17048,_0x76278e):_0xf17048,_0x36026e=_0x427695['length']-0x1,_0x575e55;_0x36026e>=0x0;_0x36026e--)(_0x575e55=_0x427695[_0x36026e])&&(_0x97b8ce=(_0x451c24?_0x575e55(_0xf17048,_0x76278e,_0x97b8ce):_0x575e55(_0x97b8ce))||_0x97b8ce);return _0x451c24&&_0x97b8ce&&sn(_0xf17048,_0x76278e,_0x97b8ce),_0x97b8ce;},je=(_0x320831,_0x2a24c5)=>(_0x59018b,_0x293eb9)=>_0x2a24c5(_0x59018b,_0x293eb9,_0x320831);const on=[_0x2f1425(0x27f),_0x2f1425(0x1c4),'image/jpg','image/gif',_0x2f1425(0x3e2)],an=0x5*0x400*0x400,cn=_0x2f1425(0x52a),ln=_0x2f1425(0x21f),hn=_0x2f1425(0x20e),_n=_0x2f1425(0x48f);exports[_0x2f1425(0x579)]=class{constructor(_0x22384f,_0x37ae13,_0x3acbf9){const _0x14b9c7=_0x2f1425;d(this,_0x14b9c7(0x487),0x0),d(this,_0x14b9c7(0x416),new v[(_0x14b9c7(0x368))]()),d(this,_0x14b9c7(0x1ba),this['_change$']),d(this,'_imageSourceCache',new Map()),(this[_0x14b9c7(0x2dd)]=_0x22384f,this[_0x14b9c7(0x1c3)]=_0x37ae13,this[_0x14b9c7(0x458)]=_0x3acbf9);}[_0x2f1425(0x290)](_0x5cb602){const _0x420258=_0x2f1425;this[_0x420258(0x487)]=_0x5cb602,this[_0x420258(0x416)][_0x420258(0x500)](_0x5cb602);}['getImageSourceCache'](_0x2acc68,_0x4e9578){const _0x474fdd=_0x2f1425;if(_0x4e9578===L[_0x474fdd(0x401)][_0x474fdd(0x575)]){const _0x204be0=new Image();return _0x204be0[_0x474fdd(0x4a9)]=_0x2acc68,_0x204be0;}return this[_0x474fdd(0x194)][_0x474fdd(0x41b)](_0x2acc68);}[_0x2f1425(0x217)](_0x495b7e,_0x9b2554,_0x365856){const _0x2a8f00=_0x2f1425;_0x9b2554===L[_0x2a8f00(0x401)][_0x2a8f00(0x575)]||_0x365856==null||this[_0x2a8f00(0x194)][_0x2a8f00(0x36e)](_0x495b7e,_0x365856);}async['getImage'](_0x31b4d1){const _0x366420=_0x2f1425;try{const _0x5bc616=this[_0x366420(0x1b7)](this[_0x366420(0x39b)](),''+_0x31b4d1),_0x6fad0b=(await this[_0x366420(0x2dd)][_0x366420(0x41b)](_0x5bc616))[_0x366420(0x2d2)];if(_0x6fad0b[_0x366420(0x348)]&&_0x6fad0b[_0x366420(0x348)]['code']===It['OK']){const _0x5927b1=new URL(_0x6fad0b[_0x366420(0x1f1)],this[_0x366420(0x1ee)]())[_0x366420(0x51c)]();return Promise[_0x366420(0x311)](_0x5927b1);}return Promise['reject'](_0x6fad0b[_0x366420(0x348)]);}catch(_0x396055){return Promise[_0x366420(0x40e)](_0x396055);}}async[_0x2f1425(0x527)](_0x2c8aba){const _0x591229=_0x2f1425;let _0x20c111='';if(!on[_0x591229(0x537)](_0x2c8aba[_0x591229(0x3c5)]))return this['_decreaseWaiting'](),Promise[_0x591229(0x40e)](new Error(L[_0x591229(0x42e)][_0x591229(0x4d3)]));if(_0x2c8aba[_0x591229(0x362)]>an)return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L['ImageUploadStatusType'][_0x591229(0x19c)]));try{const _0xda8a0e=new FormData();_0xda8a0e[_0x591229(0x1b3)](_0x591229(0x3a2),_0x2c8aba);const _0x2e6e4c=this[_0x591229(0x458)]['getFocusedUnit'](),_0x450ea6=_0x2e6e4c==null?void 0x0:_0x2e6e4c[_0x591229(0x1fa)]();if(!_0x450ea6)throw new Error(_0x591229(0x196));const _0x5c670e=this[_0x591229(0x36d)]()+_0x591229(0x2bf)+_0x2c8aba[_0x591229(0x362)]['toString']()+_0x591229(0x2a9)+pt[_0x591229(0x4a2)]+_0x591229(0x403)+encodeURIComponent(_0x450ea6),_0x5b9a53=await(await fetch(_0x5c670e,{'method':_0x591229(0x360),'body':_0xda8a0e}))[_0x591229(0x4ae)]();if(typeof _0x5b9a53[_0x591229(0x3c1)]!=_0x591229(0x3f2))return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L['ImageUploadStatusType']['ERROR_IMAGE']));_0x20c111=_0x5b9a53[_0x591229(0x3c1)];}catch{return this[_0x591229(0x434)](),Promise[_0x591229(0x40e)](new Error(L[_0x591229(0x42e)]['ERROR_IMAGE']));}return new Promise((_0x4af1e7,_0x15f046)=>{const _0x464cd3=_0x591229,_0xf57af2=new FileReader();_0xf57af2[_0x464cd3(0x47a)](_0x2c8aba),_0xf57af2[_0x464cd3(0x33b)]=_0x1d429a=>{const _0x5f589a=_0x464cd3;var _0x1337e6;const _0x4f1d8d=(_0x1337e6=_0x1d429a[_0x5f589a(0x474)])==null?void 0x0:_0x1337e6[_0x5f589a(0x35b)];if(_0x4f1d8d==null){this[_0x5f589a(0x434)](),_0x15f046(new Error(L[_0x5f589a(0x42e)]['ERROR_IMAGE']));return;}const _0x120385=a['Tools'][_0x5f589a(0x185)](0x6);_0x4af1e7({'imageId':_0x120385,'imageSourceType':L[_0x5f589a(0x401)][_0x5f589a(0x2c4)],'source':_0x20c111,'base64Cache':_0x4f1d8d,'status':L[_0x5f589a(0x42e)][_0x5f589a(0x261)]}),this['_decreaseWaiting']();};});}[_0x2f1425(0x36d)](){const _0x58c4ad=_0x2f1425;var _0x40b76a,_0x285486;const _0x36eea0=this['_configService'][_0x58c4ad(0x480)](cn),_0x4a6540=this[_0x58c4ad(0x1c3)][_0x58c4ad(0x480)](A);return(_0x285486=(_0x40b76a=_0x4a6540==null?void 0x0:_0x4a6540[_0x58c4ad(0x410)])!=null?_0x40b76a:_0x36eea0)!=null?_0x285486:ln;}[_0x2f1425(0x39b)](){const _0x567f14=_0x2f1425;var _0x40027e,_0x48a329;const _0x560055=this['_configService'][_0x567f14(0x480)](hn),_0x31d513=this[_0x567f14(0x1c3)][_0x567f14(0x480)](A);return(_0x48a329=(_0x40027e=_0x31d513==null?void 0x0:_0x31d513[_0x567f14(0x51f)])!=null?_0x40027e:_0x560055)!=null?_0x48a329:_n;}[_0x2f1425(0x1ee)](){const _0x20ed91=_0x2f1425;var _0x37e7e8;const _0x111fce=this['_configService'][_0x20ed91(0x480)](A);return(_0x37e7e8=_0x111fce==null?void 0x0:_0x111fce[_0x20ed91(0x1d8)])!=null?_0x37e7e8:location['origin'];}[_0x2f1425(0x1b7)](_0x3970e9,_0x7f7f23){const _0x566d7b=_0x2f1425;return _0x3970e9[_0x566d7b(0x557)](_0x566d7b(0x1f0),_0x7f7f23);}['_decreaseWaiting'](){const _0x31d61b=_0x2f1425;this[_0x31d61b(0x487)]-=0x1,this['_change$']['next'](this[_0x31d61b(0x487)]);}},exports[_0x2f1425(0x579)]=rn([je(0x0,a[_0x2f1425(0x4d1)](P[_0x2f1425(0x3a0)])),je(0x1,a[_0x2f1425(0x47d)]),je(0x2,a['Inject'](a[_0x2f1425(0x468)]))],exports[_0x2f1425(0x579)]);var un=Object['defineProperty'],dn=Object['getOwnPropertyDescriptor'],Sn=(_0xfd789a,_0x16bf6b,_0x2a942d,_0x4c40bc)=>{for(var _0x5c1cc5=_0x4c40bc>0x1?void 0x0:_0x4c40bc?dn(_0x16bf6b,_0x2a942d):_0x16bf6b,_0x952f90=_0xfd789a['length']-0x1,_0x38b527;_0x952f90>=0x0;_0x952f90--)(_0x38b527=_0xfd789a[_0x952f90])&&(_0x5c1cc5=(_0x4c40bc?_0x38b527(_0x16bf6b,_0x2a942d,_0x5c1cc5):_0x38b527(_0x5c1cc5))||_0x5c1cc5);return _0x4c40bc&&_0x5c1cc5&&un(_0x16bf6b,_0x2a942d,_0x5c1cc5),_0x5c1cc5;},he=(_0xbda483,_0x51b3bf)=>(_0x5ecfbc,_0x25b70c)=>_0x51b3bf(_0x5ecfbc,_0x25b70c,_0xbda483);let Ee=class extends a[_0x2f1425(0x25b)]{constructor(_0x170070,_0x1f65d8,_0x4a602d,_0x22de6c,_0x25ae70){const _0x2b721d=_0x2f1425;super(),this[_0x2b721d(0x4fa)]=_0x170070,this[_0x2b721d(0x458)]=_0x1f65d8,this[_0x2b721d(0x531)]=_0x4a602d,this[_0x2b721d(0x3e8)]=_0x22de6c,this[_0x2b721d(0x3ec)]=_0x25ae70,this[_0x2b721d(0x174)](),this[_0x2b721d(0x553)]();}['_initCloseConn'](){const _0x575ce5=_0x2f1425,_0xf1e272=async _0x527e35=>{const _0x3adc71=_0x4554;(await this['_collaborationSessionService'][_0x3adc71(0x1a6)](_0x527e35))[_0x3adc71(0x4f8)][_0x3adc71(0x53d)](E[_0x3adc71(0x2b7)](_0x4d9ca0=>_0x4d9ca0[_0x3adc71(0x188)]===_[_0x3adc71(0x565)][_0x3adc71(0x4ca)]),E[_0x3adc71(0x275)](this[_0x3adc71(0x2b4)]))[_0x3adc71(0x3ca)](_0x5f183f=>{const _0x379c83=_0x3adc71,_0x3db21a=_0x5f183f,{reason:_0x47b376}=_0x3db21a[_0x379c83(0x2a5)];this[_0x379c83(0x4fa)][_0x379c83(0x41b)](N[_0x379c83(0x48c)])[_0x379c83(0x1b9)]({'type':X['MessageType']['Error'],'content':this[_0x379c83(0x3ec)]['t'](_0x379c83(0x440))+'('+_0x47b376+')'}),this[_0x379c83(0x531)][_0x379c83(0x4cc)](new C[(_0x379c83(0x224))](_0x527e35)['id'],!0x1),this[_0x379c83(0x3e8)][_0x379c83(0x540)](_0x527e35);});};v['merge'](this['_univerInstanceService'][_0x575ce5(0x4e4)](a[_0x575ce5(0x35f)]['UNIVER_SHEET']),this[_0x575ce5(0x458)][_0x575ce5(0x4e4)](a[_0x575ce5(0x35f)][_0x575ce5(0x3df)]))['pipe'](E[_0x575ce5(0x1c9)](_0x214b86=>_0x214b86[_0x575ce5(0x1fa)]()),E[_0x575ce5(0x2b7)](_0x50fd83=>!a[_0x575ce5(0x4a1)](_0x50fd83)),E[_0x575ce5(0x275)](this[_0x575ce5(0x2b4)]))[_0x575ce5(0x3ca)](_0x299f2a=>{_0xf1e272(_0x299f2a);});}[_0x2f1425(0x174)](){const _0x20cffb=_0x2f1425,_0x33ac6c=async _0x5bd45a=>{const _0x42a637=_0x4554;(await this[_0x42a637(0x3e8)][_0x42a637(0x1a6)](_0x5bd45a))['event$'][_0x42a637(0x53d)](E[_0x42a637(0x2b7)](_0x4526b2=>_0x4526b2['eventID']===_['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),E[_0x42a637(0x275)](this[_0x42a637(0x2b4)]))['subscribe'](_0x4935d9=>{const _0x3e41c3=_0x42a637,_0x3a4590=_0x4935d9,{objectId:_0x2017fd}=_0x3a4590['data'],_0x45d03a=this[_0x3e41c3(0x4fa)][_0x3e41c3(0x41b)](te[_0x3e41c3(0x452)]);_0x2017fd===_0x5bd45a?_0x45d03a[_0x3e41c3(0x3a9)](_0x5bd45a):_0x45d03a[_0x3e41c3(0x532)](_0x5bd45a,_0x2017fd);});};v[_0x20cffb(0x18a)](this['_univerInstanceService'][_0x20cffb(0x4e4)](a[_0x20cffb(0x35f)]['UNIVER_SHEET']),this['_univerInstanceService'][_0x20cffb(0x4e4)](a[_0x20cffb(0x35f)][_0x20cffb(0x3df)]))[_0x20cffb(0x53d)](E[_0x20cffb(0x1c9)](_0x39ed53=>_0x39ed53[_0x20cffb(0x1fa)]()),E[_0x20cffb(0x2b7)](_0x2a3122=>!a[_0x20cffb(0x4a1)](_0x2a3122)),E[_0x20cffb(0x275)](this[_0x20cffb(0x2b4)]))[_0x20cffb(0x3ca)](_0x3d10bd=>{_0x33ac6c(_0x3d10bd);});}};Ee=Sn([he(0x0,a[_0x2f1425(0x4d1)](a['Injector'])),he(0x1,a['IUniverInstanceService']),he(0x2,a[_0x2f1425(0x18e)]),he(0x3,a[_0x2f1425(0x4d1)](exports['CollaborationSessionService'])),he(0x4,a[_0x2f1425(0x4d1)](a[_0x2f1425(0x2d7)]))],Ee);var vn=Object['defineProperty'],fn=Object[_0x2f1425(0x2ab)],gn=(_0x2d24a8,_0x4c53b4,_0x225d4e,_0x21a288)=>{const _0x425d12=_0x2f1425;for(var _0x813ef7=_0x21a288>0x1?void 0x0:_0x21a288?fn(_0x4c53b4,_0x225d4e):_0x4c53b4,_0x5a1d33=_0x2d24a8[_0x425d12(0x38d)]-0x1,_0x1e27eb;_0x5a1d33>=0x0;_0x5a1d33--)(_0x1e27eb=_0x2d24a8[_0x5a1d33])&&(_0x813ef7=(_0x21a288?_0x1e27eb(_0x4c53b4,_0x225d4e,_0x813ef7):_0x1e27eb(_0x813ef7))||_0x813ef7);return _0x21a288&&_0x813ef7&&vn(_0x4c53b4,_0x225d4e,_0x813ef7),_0x813ef7;},lt=(_0x59ce46,_0x16967b)=>(_0x1f22e7,_0x2604a1)=>_0x16967b(_0x1f22e7,_0x2604a1,_0x59ce46);exports[_0x2f1425(0x45a)]=class{constructor(_0x5a89b1,_0x5e6691){this['_configService']=_0x5a89b1,this['_httpService']=_0x5e6691;}async[_0x2f1425(0x2a7)](_0x5aecaf,_0x3f3895){const _0x44e7f9=_0x2f1425;var _0x103c10;const {unitID:_0x1e0ca0,type:_0x5a13ee,revision:_0x567405=0x0}=_0x3f3895,_0x56dc3a=this['_getSnapshotAPIPrefix']()+'/'+_0x5a13ee+'/unit/'+_0x1e0ca0+_0x44e7f9(0x211)+_0x567405,_0x4c2421=(await this[_0x44e7f9(0x2dd)][_0x44e7f9(0x41b)](_0x56dc3a))[_0x44e7f9(0x2d2)],_0x54d2ee=(_0x103c10=_0x4c2421[_0x44e7f9(0x32d)])==null?void 0x0:_0x103c10[_0x44e7f9(0x1af)];if(_0x54d2ee){const _0x2a0d36=_0x54d2ee==null?void 0x0:_0x54d2ee[_0x44e7f9(0x413)],_0x5bbe42=_[_0x44e7f9(0x1a2)][_0x44e7f9(0x4c8)](_[_0x44e7f9(0x50b)](_0x2a0d36));_0x54d2ee[_0x44e7f9(0x413)]=_0x5bbe42,Object[_0x44e7f9(0x523)](_0x54d2ee[_0x44e7f9(0x483)])[_0x44e7f9(0x28e)](([,_0x1b38a0])=>{const _0x599e03=_0x44e7f9,_0x41f1b6=_0x1b38a0['originalMeta'],_0x52d466=_[_0x599e03(0x1a2)][_0x599e03(0x4c8)](_[_0x599e03(0x50b)](_0x41f1b6));_0x1b38a0[_0x599e03(0x413)]=_0x52d466;});}return _0x4c2421;}async['getSheetBlock'](_0x6ec7a2,_0x260328){const _0x28c217=_0x2f1425,{unitID:_0x4f86aa,type:_0x35265b,blockID:_0x1ae558}=_0x260328,_0x561b27=this['_getAPIPrefix']()+'/'+_0x35265b+_0x28c217(0x38a)+_0x4f86aa+_0x28c217(0x442)+_0x1ae558;return(await this[_0x28c217(0x2dd)]['get'](_0x561b27))['body'];}async[_0x2f1425(0x3b5)](_0x5ed952,_0x161fb7){const _0x552439=_0x2f1425,{unitID:_0x4d350d,type:_0xbc857,blockID:_0xf3c6d0}=_0x161fb7,_0x1ab7ca=this[_0x552439(0x26e)]()+_0x552439(0x442)+_0xbc857+_0x552439(0x38a)+_0x4d350d+'/block/'+_0xf3c6d0;return(await this[_0x552439(0x2dd)]['get'](_0x1ab7ca))[_0x552439(0x2d2)];}async[_0x2f1425(0x1fe)](_0xc4ec4f,_0x5017d5){const _0x522738=_0x2f1425,{unitID:_0x3f49ae,type:_0x54a871,from:_0x4f33fd,to:_0x3ae313}=_0x5017d5,_0xddbc=this[_0x522738(0x26e)]()+'/'+_0x54a871+'/unit/'+_0x3f49ae+_0x522738(0x508)+_0x4f33fd+_0x522738(0x3a4)+_0x3ae313;return(await this[_0x522738(0x2dd)][_0x522738(0x41b)](_0xddbc))[_0x522738(0x2d2)];}[_0x2f1425(0x23b)](){const _0x86bbb3=_0x2f1425;var _0x303d15;return(_0x303d15=this[_0x86bbb3(0x1c3)][_0x86bbb3(0x480)](_t))!=null?_0x303d15:this['_getAPIPrefix']();}[_0x2f1425(0x26e)](){const _0x520ce8=_0x2f1425;var _0x54e1cf,_0x42f5b9;const _0x2fbbc9=this[_0x520ce8(0x1c3)][_0x520ce8(0x480)](ht),_0x2b1dd0=this[_0x520ce8(0x1c3)][_0x520ce8(0x480)](A);return(_0x42f5b9=(_0x54e1cf=_0x2b1dd0==null?void 0x0:_0x2b1dd0[_0x520ce8(0x31f)])!=null?_0x54e1cf:_0x2fbbc9)!=null?_0x42f5b9:Gt;}async['getResourcesRequest'](_0x47ee22,_0x41daa6){const _0x11150c=_0x2f1425,_0x2b9277='/universer-api/snapshot/'+_0x41daa6[_0x11150c(0x3c5)]+_0x11150c(0x38a)+_0x41daa6[_0x11150c(0x437)]+_0x11150c(0x3af);return(await this[_0x11150c(0x2dd)]['get'](_0x2b9277,{'params':{'resourceId':JSON[_0x11150c(0x1d5)](_0x41daa6['resourceIDs'])}}))[_0x11150c(0x2d2)];}[_0x2f1425(0x520)](){const _0x4c0eb6=_0x2f1425;throw new Error(_0x4c0eb6(0x408));}['saveSheetBlock'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x2f1425(0x212)](){const _0x586d97=_0x2f1425;throw new Error(_0x586d97(0x408));}[_0x2f1425(0x551)](){const _0x199f29=_0x2f1425;throw new Error(_0x199f29(0x408));}},exports['SnapshotServerOverHTTPService']=gn([lt(0x0,a['IConfigService']),lt(0x1,a[_0x2f1425(0x4d1)](P['HTTPService']))],exports['SnapshotServerOverHTTPService']);var mn=Object['defineProperty'],In=Object['getOwnPropertyDescriptor'],pn=(_0x50530a,_0x537825,_0x1d14da,_0x1175f1)=>{const _0x3a63d9=_0x2f1425;for(var _0x24c563=_0x1175f1>0x1?void 0x0:_0x1175f1?In(_0x537825,_0x1d14da):_0x537825,_0x342bd7=_0x50530a[_0x3a63d9(0x38d)]-0x1,_0x491535;_0x342bd7>=0x0;_0x342bd7--)(_0x491535=_0x50530a[_0x342bd7])&&(_0x24c563=(_0x1175f1?_0x491535(_0x537825,_0x1d14da,_0x24c563):_0x491535(_0x24c563))||_0x24c563);return _0x1175f1&&_0x24c563&&mn(_0x537825,_0x1d14da,_0x24c563),_0x24c563;},_e=(_0x27f042,_0x3b9fda)=>(_0x4caafa,_0x554aa3)=>_0x3b9fda(_0x4caafa,_0x554aa3,_0x27f042);let Be=class extends a[_0x2f1425(0x3fe)]{constructor(_0x105884,_0x17b4b6,_0x2ba7f3,_0x35f547,_0x50e74c){const _0x54e3fd=_0x2f1425;super(_0x105884,_0x17b4b6,_0x2ba7f3),this[_0x54e3fd(0x3fd)]=_0x35f547,this[_0x54e3fd(0x562)]=_0x50e74c;}[_0x2f1425(0x1ad)](_0x60e32e,_0x7cce5d){const _0x35c867=_0x2f1425,_0x4ff455=this[_0x35c867(0x42a)](_0x60e32e);if(_0x4ff455)try{const _0x5cdee2=this[_0x35c867(0x370)](_0x4ff455,_0x7cce5d);this['_substituteUndoStack'](_0x60e32e,_0x5cdee2);}catch(_0x4dd025){this[_0x35c867(0x562)]['error'](_0x35c867(0x2f0),_0x4dd025),this['_clearUndo'](_0x60e32e);}const _0x4d231f=this[_0x35c867(0x270)](_0x60e32e);if(_0x4d231f)try{const _0x145270=this[_0x35c867(0x370)](_0x4d231f,_0x7cce5d);this[_0x35c867(0x4b0)](_0x60e32e,_0x145270);}catch(_0x221e20){this[_0x35c867(0x562)][_0x35c867(0x348)](_0x221e20),this[_0x35c867(0x2ee)](_0x60e32e);}}[_0x2f1425(0x265)](_0x23617b){const _0x57a3bf=_0x2f1425,_0x19f2b3=this[_0x57a3bf(0x42a)](_0x23617b);_0x19f2b3&&(_0x19f2b3['length']=0x0,this[_0x57a3bf(0x23a)]());}[_0x2f1425(0x2ee)](_0x545fa0){const _0x55b4b4=_0x2f1425,_0x3f71ea=this[_0x55b4b4(0x270)](_0x545fa0);_0x3f71ea&&(_0x3f71ea[_0x55b4b4(0x38d)]=0x0,this[_0x55b4b4(0x23a)]());}['_substituteUndoStack'](_0x5603b9,_0x1a643c){const _0x140078=_0x2f1425;this[_0x140078(0x516)][_0x140078(0x36e)](_0x5603b9,_0x1a643c),this[_0x140078(0x23a)]();}[_0x2f1425(0x4b0)](_0x542086,_0x5459f5){const _0x2a3929=_0x2f1425;this[_0x2a3929(0x4aa)][_0x2a3929(0x36e)](_0x542086,_0x5459f5),this[_0x2a3929(0x23a)]();}[_0x2f1425(0x370)](_0x53cb67,_0x507bea){const _0x2a787c=_0x2f1425,_0x4c669a=[];let _0x390e0b=_0x507bea,_0x82e598=_0x507bea;for(let _0x4e5389=_0x53cb67['length']-0x1;_0x4e5389>=0x0;_0x4e5389--){const {unitID:_0x2c07ef,undoMutations:_0x19219a,redoMutations:_0x523e3d}=_0x53cb67[_0x4e5389],_0x28bb41=this[_0x2a787c(0x3fd)][_0x2a787c(0x55d)](_0x390e0b,_0x19219a),_0x31097a=this['_transformService']['transformMutationsWithChangeset'](_0x82e598,_0x523e3d);if(_[_0x2a787c(0x328)](_0x28bb41)||_[_0x2a787c(0x328)](_0x31097a)){this[_0x2a787c(0x562)][_0x2a787c(0x348)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x28bb41,_0x31097a);break;}_0x390e0b=_0x28bb41[_0x2a787c(0x3bc)],_0x82e598=_0x31097a[_0x2a787c(0x3bc)],_0x4c669a[_0x2a787c(0x52d)]({'unitID':_0x2c07ef,'undoMutations':_0x28bb41[_0x2a787c(0x409)],'redoMutations':_0x31097a['m2Prime']});}return _0x4c669a[_0x2a787c(0x4e6)]();}};Be=pn([_e(0x0,a[_0x2f1425(0x468)]),_e(0x1,a[_0x2f1425(0x477)]),_e(0x2,a['IContextService']),_e(0x3,_['ITransformService']),_e(0x4,a['ILogService'])],Be);class Nt extends a[_0x2f1425(0x25b)]{constructor(){const _0x5802bc=_0x2f1425;super(),d(this,_0x5802bc(0x2b8)),this[_0x5802bc(0x2b8)]=v['fromEvent'](window,_0x5802bc(0x250))[_0x5802bc(0x53d)](v['takeUntil'](this[_0x5802bc(0x2b4)]),v[_0x5802bc(0x4bd)](0x1),v[_0x5802bc(0x2fe)](void 0x0));}['setParam'](_0x149d20,_0x5cafa1,_0x30af97=!0x1){const _0x5e85cc=_0x2f1425,_0x3eddfd=new URL(window[_0x5e85cc(0x2d9)]['href']);_0x3eddfd['searchParams'][_0x5e85cc(0x36e)](_0x149d20,_0x5cafa1),_0x30af97?window[_0x5e85cc(0x4a7)]['replaceState']('','',_0x3eddfd[_0x5e85cc(0x51c)]()):window[_0x5e85cc(0x4a7)]['pushState']('','',_0x3eddfd[_0x5e85cc(0x51c)]());}[_0x2f1425(0x3e0)](_0x39651e,_0xc2b130=!0x1){const _0x41ca70=_0x2f1425,_0x1100b4=new URL(window[_0x41ca70(0x2d9)][_0x41ca70(0x236)]);_0x1100b4[_0x41ca70(0x4da)][_0x41ca70(0x28f)](_0x39651e),_0xc2b130?window[_0x41ca70(0x4a7)][_0x41ca70(0x283)]('','',_0x1100b4['toString']()):window[_0x41ca70(0x4a7)][_0x41ca70(0x475)]('','',_0x1100b4[_0x41ca70(0x51c)]());}['getParam'](_0x3cee3d){const _0x2aea60=_0x2f1425;var _0x56182c;return(_0x56182c=new URL(window[_0x2aea60(0x2d9)][_0x2aea60(0x236)])[_0x2aea60(0x4da)][_0x2aea60(0x41b)](_0x3cee3d))!=null?_0x56182c:void 0x0;}}var At=Object['defineProperty'],Cn=Object[_0x2f1425(0x2ab)],En=(_0x5c0783,_0x3b1142,_0x515532)=>_0x3b1142 in _0x5c0783?At(_0x5c0783,_0x3b1142,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x515532}):_0x5c0783[_0x3b1142]=_0x515532,bn=(_0x3e9a1c,_0x46afbd,_0x435981,_0x2d7408)=>{const _0x8bfac8=_0x2f1425;for(var _0x13ecc3=_0x2d7408>0x1?void 0x0:_0x2d7408?Cn(_0x46afbd,_0x435981):_0x46afbd,_0x284051=_0x3e9a1c[_0x8bfac8(0x38d)]-0x1,_0x42fa3f;_0x284051>=0x0;_0x284051--)(_0x42fa3f=_0x3e9a1c[_0x284051])&&(_0x13ecc3=(_0x2d7408?_0x42fa3f(_0x46afbd,_0x435981,_0x13ecc3):_0x42fa3f(_0x13ecc3))||_0x13ecc3);return _0x2d7408&&_0x13ecc3&&At(_0x46afbd,_0x435981,_0x13ecc3),_0x13ecc3;},ve=(_0x1f9277,_0x55c40d)=>(_0x17a76e,_0xa3b777)=>_0x55c40d(_0x17a76e,_0xa3b777,_0x1f9277),Tn=(_0x5cc21a,_0x35b90e,_0x59f478)=>En(_0x5cc21a,_0x35b90e+'',_0x59f478);const Rn=_0x2f1425(0x54c);exports['UniverCollaborationClientPlugin']=class extends a[_0x2f1425(0x254)]{constructor(_0x5e119b=ts,_0xdd431b,_0x40dbe1,_0x433469,_0x3ec64b){const _0xcbc47a=_0x2f1425;super(),this[_0xcbc47a(0x181)]=_0x5e119b,this[_0xcbc47a(0x562)]=_0xdd431b,this['_renderManagerService']=_0x40dbe1,this['_injector']=_0x433469,this[_0xcbc47a(0x1c3)]=_0x3ec64b;const {..._0x19aa78}=this[_0xcbc47a(0x181)];this['_configService'][_0xcbc47a(0x496)](A,_0x19aa78);}['onStarting'](){const _0xcfe657=_0x2f1425;this['_registerDependencies'](),a[_0xcfe657(0x47f)](this[_0xcfe657(0x4fa)],[[ie],[exports[_0xcfe657(0x2d8)]],[Ee]]);}[_0x2f1425(0x383)](){const _0x503bd8=_0x2f1425;a[_0x503bd8(0x47f)](this['_injector'],[[Ie]]);}[_0x2f1425(0x43b)](){this['_registerRenderDependencies']();}[_0x2f1425(0x361)](){const _0x2f5842=_0x2f1425;var _0x3bc037,_0x27f814,_0x56e29b,_0x23ecbc;this[_0x2f5842(0x4fa)][_0x2f5842(0x555)](a['IUndoRedoService'])&&this[_0x2f5842(0x562)][_0x2f5842(0x348)](_0x2f5842(0x29b),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x7adb49=[[a[_0x2f5842(0x45b)],{'useClass':Be}],[exports[_0x2f5842(0x1d4)]],[Xe],[P[_0x2f5842(0x3a0)]],[ze,{'useClass':Nt}],[q],[exports['LocalCacheService']],[P[_0x2f5842(0x266)]],[ge],[me],[fe],[Ye],[pe],[Ce],[Ge],[Ee],[Fe,{'useClass':(_0x27f814=(_0x3bc037=this[_0x2f5842(0x181)])==null?void 0x0:_0x3bc037[_0x2f5842(0x1e5)])!=null?_0x27f814:exports[_0x2f5842(0x19b)]}],[P[_0x2f5842(0x215)],{'useClass':P['XHRHTTPImplementation']}],[_['ISnapshotServerService'],{'useClass':exports[_0x2f5842(0x45a)]}],[a[_0x2f5842(0x35d)],{'useClass':exports[_0x2f5842(0x321)]}],[L[_0x2f5842(0x3dd)],{'useClass':exports['ImageIoService']}],[exports[_0x2f5842(0x4f1)]],[exports[_0x2f5842(0x2d8)]],[exports[_0x2f5842(0x55b)]],[Ie],[ie]];(_0x56e29b=this[_0x2f5842(0x181)])!=null&&_0x56e29b['enableSingleActiveInstanceLock']&&_0x7adb49[_0x2f5842(0x52d)]([be,{'useClass':ys}]),_0x7adb49=a['mergeOverrideWithDependencies'](_0x7adb49,(_0x23ecbc=this[_0x2f5842(0x181)])==null?void 0x0:_0x23ecbc['override']),_0x7adb49[_0x2f5842(0x28e)](_0xe38c8=>this[_0x2f5842(0x4fa)][_0x2f5842(0x1fd)](_0xe38c8)),this[_0x2f5842(0x1f2)]();}[_0x2f1425(0x2fb)](){const _0x4da121=_0x2f1425;this[_0x4da121(0x425)](this[_0x4da121(0x377)][_0x4da121(0x26b)](a['UniverInstanceType'][_0x4da121(0x3df)],[xe])),this[_0x4da121(0x425)](this['_renderManagerService'][_0x4da121(0x26b)](a['UniverInstanceType'][_0x4da121(0x1bf)],[ke]));}[_0x2f1425(0x1f2)](){const _0x16a01a=_0x2f1425;var _0x45e14b,_0x5f2185;this['_injector'][_0x16a01a(0x41b)](P[_0x16a01a(0x3a0)])[_0x16a01a(0x493)]({'priority':0x14,'interceptor':P[_0x16a01a(0x380)]({'maxParallel':0x6})}),this[_0x16a01a(0x4fa)]['get'](Ce),(_0x45e14b=this[_0x16a01a(0x181)])!=null&&_0x45e14b[_0x16a01a(0x43e)]||this[_0x16a01a(0x4fa)]['get'](exports[_0x16a01a(0x509)])[_0x16a01a(0x566)](),(_0x5f2185=this[_0x16a01a(0x181)])!=null&&_0x5f2185[_0x16a01a(0x2a2)]&&this[_0x16a01a(0x4fa)][_0x16a01a(0x41b)](pe),this['_injector'][_0x16a01a(0x41b)](exports[_0x16a01a(0x4f1)]),this[_0x16a01a(0x4fa)]['has'](exports['DesktopCollaborationStatusDisplayController'])&&this[_0x16a01a(0x4fa)]['get'](exports[_0x16a01a(0x55b)]);}},Tn(exports[_0x2f1425(0x2f9)],_0x2f1425(0x454),Rn),exports[_0x2f1425(0x2f9)]=bn([a[_0x2f1425(0x48a)](_['UniverCollaborationPlugin']),ve(0x1,a[_0x2f1425(0x2e3)]),ve(0x2,R[_0x2f1425(0x456)]),ve(0x3,a['Inject'](a['Injector'])),ve(0x4,a['IConfigService'])],exports[_0x2f1425(0x2f9)]),exports[_0x2f1425(0x208)]=Mt,exports[_0x2f1425(0x331)]=gt,exports[_0x2f1425(0x35e)]=ut,exports['CollaborationStatus']=y,exports[_0x2f1425(0x1f8)]=wt,exports[_0x2f1425(0x541)]=Ge,exports[_0x2f1425(0x495)]=dt,exports['HEARTBEAT_TIMEOUT_KEY']=Ve,exports['ICollaborationSocketService']=Fe,exports[_0x2f1425(0x30f)]=ze,exports['LOCAL_CACHE_INTERVAL_KEY']=ft,exports['LOGIN_URL_KEY']=mt,exports[_0x2f1425(0x3c7)]=vt,exports[_0x2f1425(0x245)]=Yt,exports['SNAPSHOT_SERVER_URL_KEY']=ht,exports[_0x2f1425(0x274)]=_t,exports[_0x2f1425(0x49b)]=$,exports[_0x2f1425(0x521)]=Ot,exports['WebURLService']=Nt,exports[_0x2f1425(0x421)]=Ct,exports[_0x2f1425(0x23d)]=Et;
|