@univerjs-pro/collaboration-client 0.4.1-experimental.20241022-507567a → 0.4.1-experimental.20241024-0ebc6ee
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/umd/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
(function(_0x4195ec,_0x5ed902){const _0x5c94c0=_0x4fdf,_0x5f521e=_0x4195ec();while(!![]){try{const _0x40d002=-parseInt(_0x5c94c0(0x2dd))/0x1*(parseInt(_0x5c94c0(0x3b7))/0x2)+-parseInt(_0x5c94c0(0x245))/0x3+-parseInt(_0x5c94c0(0x23b))/0x4*(-parseInt(_0x5c94c0(0x3c8))/0x5)+-parseInt(_0x5c94c0(0x3f1))/0x6*(parseInt(_0x5c94c0(0x441))/0x7)+parseInt(_0x5c94c0(0x409))/0x8+parseInt(_0x5c94c0(0x2c5))/0x9+parseInt(_0x5c94c0(0x2cf))/0xa;if(_0x40d002===_0x5ed902)break;else _0x5f521e['push'](_0x5f521e['shift']());}catch(_0x220242){_0x5f521e['push'](_0x5f521e['shift']());}}}(_0x47ec,0xaccb4),function(_0x339c86,_0x8d8e65){const _0x2a966b=_0x4fdf;typeof exports==_0x2a966b(0x491)&&typeof module<'u'?_0x8d8e65(exports,require('@univerjs/core'),require(_0x2a966b(0x275)),require(_0x2a966b(0x2f7)),require(_0x2a966b(0x354)),require(_0x2a966b(0x459)),require(_0x2a966b(0x3a7)),require(_0x2a966b(0x32b)),require('@univerjs/telemetry'),require('@univerjs/docs-ui'),require(_0x2a966b(0x49c)),require(_0x2a966b(0x2fe)),require(_0x2a966b(0x582)),require(_0x2a966b(0x4bd)),require(_0x2a966b(0x270)),require('@univerjs/sheets-ui'),require(_0x2a966b(0x1bc)),require(_0x2a966b(0x372)),require('@univerjs-pro/license')):typeof define==_0x2a966b(0x38c)&&define[_0x2a966b(0x42e)]?define([_0x2a966b(0x3bb),'@univerjs/core',_0x2a966b(0x275),_0x2a966b(0x2f7),_0x2a966b(0x354),_0x2a966b(0x459),'@univerjs/network','@univerjs-pro/collaboration','@univerjs/telemetry',_0x2a966b(0x478),_0x2a966b(0x49c),_0x2a966b(0x2fe),_0x2a966b(0x582),'@univerjs/drawing',_0x2a966b(0x270),'@univerjs/sheets-ui','react',_0x2a966b(0x372),_0x2a966b(0x361)],_0x8d8e65):(_0x339c86=typeof globalThis<'u'?globalThis:_0x339c86||self,_0x8d8e65(_0x339c86[_0x2a966b(0x35b)]={},_0x339c86[_0x2a966b(0x423)],_0x339c86[_0x2a966b(0x275)],_0x339c86[_0x2a966b(0x275)][_0x2a966b(0x4e1)],_0x339c86[_0x2a966b(0x5a8)],_0x339c86[_0x2a966b(0x3fb)],_0x339c86[_0x2a966b(0x218)],_0x339c86[_0x2a966b(0x276)],_0x339c86[_0x2a966b(0x17d)],_0x339c86['UniverDocsUi'],_0x339c86[_0x2a966b(0x3f8)],_0x339c86[_0x2a966b(0x307)],_0x339c86[_0x2a966b(0x3b4)],_0x339c86[_0x2a966b(0x304)],_0x339c86['UniverEngineFormula'],_0x339c86['UniverSheetsUi'],_0x339c86[_0x2a966b(0x473)],_0x339c86['UniverRpc'],_0x339c86[_0x2a966b(0x50c)]));}(this,function(_0x3ba5f7,_0x123ccf,_0x4f561c,_0x3262ca,_0x5b06bc,_0x4986bd,_0x195077,_0x44c0c5,_0x30d2a5,_0x5a2573,_0x4560f7,_0x38daca,_0x4f69d6,_0x412f86,_0x36dd11,_0x4570cf,_0x40f67f,_0x20b834,_0x212111){'use strict';const _0x30a57b=_0x4fdf;var _0x1e995c=Object[_0x30a57b(0x26e)],_0x44c4d6=(_0x534e25,_0x19f4dd,_0x712bbd)=>_0x19f4dd in _0x534e25?_0x1e995c(_0x534e25,_0x19f4dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x712bbd}):_0x534e25[_0x19f4dd]=_0x712bbd,_0x141732=(_0x3424b5,_0x3ed95a,_0x18f14a)=>_0x44c4d6(_0x3424b5,typeof _0x3ed95a!=_0x30a57b(0x20a)?_0x3ed95a+'':_0x3ed95a,_0x18f14a);const _0x116803='SNAPSHOT_SERVER_URL_KEY',_0x145d0b=_0x30a57b(0x551),_0x1ac3d9=_0x30a57b(0x24b),_0x5c67ca=_0x30a57b(0x268),_0x2260c2=_0x30a57b(0x263),_0x41d1e7=_0x30a57b(0x306),_0x2c1165=_0x30a57b(0x262),_0x44e782=_0x30a57b(0x22b),_0x44d08c=_0x30a57b(0x54c),_0x36abb0=_0x30a57b(0x4b2),_0x23d3b2=_0x30a57b(0x1d8),_0x3af071=_0x30a57b(0x43c),_0x53fe19=_0x30a57b(0x1ab),_0xeae1f9=_0x30a57b(0x54a);var _0xa6f3bb=(_0x25498a=>(_0x25498a[_0x25498a[_0x30a57b(0x537)]=0x0]='UNDEFINED',_0x25498a[_0x25498a['OK']=0x1]='OK',_0x25498a[_0x25498a[_0x30a57b(0x584)]=0x2]='INTERNAL_ERROR',_0x25498a[_0x25498a[_0x30a57b(0x4b6)]=0x3]=_0x30a57b(0x4b6),_0x25498a[_0x25498a['NOT_FOUND']=0x4]=_0x30a57b(0x1a8),_0x25498a[_0x25498a[_0x30a57b(0x2d5)]=0x5]=_0x30a57b(0x2d5),_0x25498a[_0x25498a[_0x30a57b(0x553)]=0x6]=_0x30a57b(0x553),_0x25498a[_0x25498a[_0x30a57b(0x55e)]=0x7]=_0x30a57b(0x55e),_0x25498a[_0x25498a[_0x30a57b(0x191)]=0x8]='TOO_MANY_REQUESTS',_0x25498a[_0x25498a['COMPLETION_FINISHED']=0x9]='COMPLETION_FINISHED',_0x25498a[_0x25498a[_0x30a57b(0x57c)]=0x1389]=_0x30a57b(0x57c),_0x25498a[_0x25498a[_0x30a57b(0x5a2)]=0x1771]=_0x30a57b(0x5a2),_0x25498a[_0x25498a[_0x30a57b(0x31c)]=0x1772]='SNAPSHOT_HAS_BEEN_REMOVED',_0x25498a[_0x25498a[_0x30a57b(0x572)]=0x1773]=_0x30a57b(0x572),_0x25498a[_0x25498a[_0x30a57b(0x27d)]=0x1b59]=_0x30a57b(0x27d),_0x25498a[_0x25498a[_0x30a57b(0x2e7)]=0x1b5a]='APPLY_NON_SEQUENTIAL_REVISION',_0x25498a[_0x25498a['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x30a57b(0x414),_0x25498a[_0x25498a[_0x30a57b(0x4d4)]=0x1b5c]=_0x30a57b(0x4d4),_0x25498a[_0x25498a[_0x30a57b(0x3bf)]=0x1b5d]=_0x30a57b(0x3bf),_0x25498a[_0x25498a['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x25498a[_0x25498a[_0x30a57b(0x55a)]=0x2329]=_0x30a57b(0x55a),_0x25498a[_0x25498a[_0x30a57b(0x3b6)]=0x232a]=_0x30a57b(0x3b6),_0x25498a[_0x25498a['LICENSE_IMPORT_SIZE_EXCEEDED']=0x232b]=_0x30a57b(0x2ee),_0x25498a[_0x25498a[_0x30a57b(0x1e8)]=0x232c]=_0x30a57b(0x1e8),_0x25498a[_0x25498a[_0x30a57b(0x538)]=0x232d]=_0x30a57b(0x538),_0x25498a[_0x25498a[_0x30a57b(0x54b)]=0x2711]=_0x30a57b(0x54b),_0x25498a[_0x25498a['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x30a57b(0x472),_0x25498a[_0x25498a[_0x30a57b(0x42b)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x25498a[_0x25498a[_0x30a57b(0x3dc)]=0x2714]=_0x30a57b(0x3dc),_0x25498a[_0x25498a[_0x30a57b(0x321)]=-0x1]='UNRECOGNIZED',_0x25498a))(_0xa6f3bb||{}),_0x15cd83=(_0x2d63a1=>(_0x2d63a1[_0x2d63a1['UNIVER_UNKNOWN']=0x0]=_0x30a57b(0x3f9),_0x2d63a1[_0x2d63a1[_0x30a57b(0x34c)]=0x1]=_0x30a57b(0x34c),_0x2d63a1[_0x2d63a1[_0x30a57b(0x356)]=0x2]=_0x30a57b(0x356),_0x2d63a1[_0x2d63a1['UNIVER_SLIDE']=0x3]=_0x30a57b(0x4ec),_0x2d63a1[_0x2d63a1[_0x30a57b(0x1e6)]=0x4]='UNIVER_PROJECT',_0x2d63a1[_0x2d63a1[_0x30a57b(0x321)]=-0x1]=_0x30a57b(0x321),_0x2d63a1))(_0x15cd83||{}),_0x2aae64=(_0x2371d1=>(_0x2371d1[_0x2371d1['UNKNOWN_CMD']=0x0]='UNKNOWN_CMD',_0x2371d1[_0x2371d1[_0x30a57b(0x207)]=0x1]=_0x30a57b(0x207),_0x2371d1[_0x2371d1[_0x30a57b(0x5a4)]=0x2]=_0x30a57b(0x5a4),_0x2371d1[_0x2371d1[_0x30a57b(0x205)]=0x3]='LEAVE',_0x2371d1[_0x2371d1[_0x30a57b(0x4fe)]=0x4]=_0x30a57b(0x4fe),_0x2371d1[_0x2371d1[_0x30a57b(0x326)]=0x5]=_0x30a57b(0x326),_0x2371d1[_0x2371d1[_0x30a57b(0x536)]=0x6]='RECV',_0x2371d1[_0x2371d1[_0x30a57b(0x321)]=-0x1]=_0x30a57b(0x321),_0x2371d1))(_0x2aae64||{}),_0x22c472=(_0x41e8b7=>(_0x41e8b7[_0x41e8b7[_0x30a57b(0x4ce)]=0x0]=_0x30a57b(0x4ce),_0x41e8b7[_0x41e8b7['OK']=0x1]='OK',_0x41e8b7[_0x41e8b7['FAIL']=0x2]=_0x30a57b(0x3de),_0x41e8b7[_0x41e8b7[_0x30a57b(0x321)]=-0x1]=_0x30a57b(0x321),_0x41e8b7))(_0x22c472||{}),_0x58c045=(_0x4b9b82=>(_0x4b9b82[_0x4b9b82['Undefined']=0x0]=_0x30a57b(0x45e),_0x4b9b82[_0x4b9b82[_0x30a57b(0x481)]=0x1]=_0x30a57b(0x481),_0x4b9b82[_0x4b9b82[_0x30a57b(0x56a)]=0x2]=_0x30a57b(0x56a),_0x4b9b82[_0x4b9b82[_0x30a57b(0x2b5)]=0x3]=_0x30a57b(0x2b5),_0x4b9b82[_0x4b9b82[_0x30a57b(0x244)]=0x4]='UnitSnapshot',_0x4b9b82[_0x4b9b82['UNRECOGNIZED']=-0x1]=_0x30a57b(0x321),_0x4b9b82))(_0x58c045||{});const _0x1d8c7c='collaboration-client.config',_0x432a1e={};function _0x38029f(_0xb58f66){const _0x5beffd=_0x30a57b;var _0x35c1ac,_0x2922d7,_0x469a56,_0x1a5a6e,_0x310fc4;const _0x38b12d=_0xb58f66['data'],_0x3e7792=JSON[_0x5beffd(0x56e)](_0x38b12d);switch(_0x3e7792[_0x5beffd(0x21b)]){case _0x2aae64['HEARTBEAT']:case _0x2aae64[_0x5beffd(0x207)]:{const _0x48343a=_0x3e7792[_0x5beffd(0x3e8)];return{..._0x3e7792,'data':_0x48343a,'cmd':_0x3e7792[_0x5beffd(0x21b)]};}case _0x2aae64[_0x5beffd(0x5a4)]:{const _0x32a6f4=_0x3e7792[_0x5beffd(0x512)];return{..._0x3e7792,'data':_0x32a6f4,'cmd':_0x3e7792[_0x5beffd(0x21b)]};}case _0x2aae64['RECV']:{const _0x3a41df=_0x3e7792[_0x5beffd(0x20d)];switch(_0x3a41df['eventID']){case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x337)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':(_0x35c1ac=_0x3a41df[_0x5beffd(0x485)])==null?void 0x0:_0x35c1ac['cs']},'cmd':_0x3e7792['cmd']};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x28b)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':(_0x2922d7=_0x3a41df[_0x5beffd(0x21a)])==null?void 0x0:_0x2922d7['cs']},'cmd':_0x3e7792['cmd']};case _0x44c0c5['CollaborationEvent']['NEW_CHANGESETS']:return{..._0x3e7792,'data':{..._0x3a41df,'data':(_0x469a56=_0x3a41df[_0x5beffd(0x57f)])==null?void 0x0:_0x469a56['cs']},'cmd':_0x3e7792['cmd']};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x209)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':(_0x1a5a6e=_0x3a41df['csRejEvent'])==null?void 0x0:_0x1a5a6e['cs']},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x54e)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':(_0x310fc4=_0x3a41df[_0x5beffd(0x3e7)])==null?void 0x0:_0x310fc4['cs']},'cmd':_0x3e7792['cmd']};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x508)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df['updateCursorEvent']},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x4b0)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x3ea)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5['CollaborationEvent'][_0x5beffd(0x1f4)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x3b3)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x291)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x289)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)]['LIVESHARE_FETCH_OPERATIONS']:case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x30b)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df['liveShareOperation']},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)]['LIVESHARE_TERMINATE']:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x289)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)]['MSG_FOR_ERROR']:return{..._0x3e7792,'data':_0x3a41df,'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5[_0x5beffd(0x22e)][_0x5beffd(0x5a1)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x32f)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5['CollaborationEvent']['UPDATE_PERMISSION_OBJ']:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x567)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};case _0x44c0c5['CollaborationEvent'][_0x5beffd(0x2c7)]:return{..._0x3e7792,'data':{..._0x3a41df,'data':_0x3a41df[_0x5beffd(0x248)]},'cmd':_0x3e7792[_0x5beffd(0x21b)]};default:return _0x3e7792;}}default:return _0x3e7792;}}function _0x3099b9(_0x5e4041){const _0x36d2b1=_0x30a57b;switch(_0x5e4041[_0x36d2b1(0x21b)]){case _0x2aae64[_0x36d2b1(0x326)]:case _0x2aae64['HELLO']:return JSON[_0x36d2b1(0x599)]({'cmd':_0x5e4041['cmd'],'routeKey':_0x5e4041[_0x36d2b1(0x33d)]});case _0x2aae64[_0x36d2b1(0x4fe)]:{let _0x54bf70;switch(_0x5e4041[_0x36d2b1(0x5a6)][_0x36d2b1(0x543)]){case _0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x508)]:{_0x54bf70={'eventID':_0x44c0c5['CollaborationEvent'][_0x36d2b1(0x508)],'updateCursorEvent':_0x5e4041['data'][_0x36d2b1(0x5a6)]};break;}case _0x44c0c5['CollaborationEvent'][_0x36d2b1(0x1f4)]:{_0x54bf70={'eventID':_0x44c0c5['CollaborationEvent'][_0x36d2b1(0x1f4)],'leaveEvent':_0x5e4041[_0x36d2b1(0x5a6)][_0x36d2b1(0x5a6)]};break;}case _0x44c0c5['CollaborationEvent'][_0x36d2b1(0x4b0)]:{_0x54bf70={'eventID':_0x44c0c5['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x5e4041['data']['data']};break;}case _0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x291)]:{_0x54bf70={'eventID':_0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x291)],'liveShareNewHost':_0x5e4041['data'][_0x36d2b1(0x5a6)]};break;}case _0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x30b)]:{_0x54bf70={'eventID':_0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x30b)],'liveShareOperation':_0x5e4041[_0x36d2b1(0x5a6)][_0x36d2b1(0x5a6)]};break;}case _0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x489)]:{_0x54bf70={'eventID':_0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x489)],'liveShareTerminate':_0x5e4041[_0x36d2b1(0x5a6)][_0x36d2b1(0x5a6)]};break;}case _0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x440)]:{_0x54bf70={'eventID':_0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x440)],'liveShareRequestHost':_0x5e4041[_0x36d2b1(0x5a6)][_0x36d2b1(0x5a6)]};break;}case _0x44c0c5[_0x36d2b1(0x22e)]['LIVESHARE_FETCH_OPERATIONS']:{_0x54bf70={'eventID':_0x44c0c5[_0x36d2b1(0x22e)][_0x36d2b1(0x28f)]};break;}default:_0x54bf70={'eventID':_0x5e4041[_0x36d2b1(0x5a6)]['eventID']};}return JSON[_0x36d2b1(0x599)]({'cmd':_0x5e4041['cmd'],'routeKey':_0x5e4041[_0x36d2b1(0x33d)],'collaMsg':_0x54bf70});}case _0x2aae64[_0x36d2b1(0x5a4)]:return JSON['stringify']({'cmd':_0x5e4041[_0x36d2b1(0x21b)],'routeKey':_0x5e4041[_0x36d2b1(0x33d)],'joinReq':_0x5e4041['data']});case _0x2aae64[_0x36d2b1(0x205)]:return JSON[_0x36d2b1(0x599)]({'cmd':_0x5e4041['cmd'],'routeKey':_0x5e4041[_0x36d2b1(0x33d)],'leaveReq':_0x5e4041['data']});default:throw new Error(_0x36d2b1(0x35d));}}var _0x2565c1=Object[_0x30a57b(0x26e)],_0x2ec167=Object['getOwnPropertyDescriptor'],_0x5745ad=(_0x1853f3,_0x315e14,_0x5b5be8,_0x598775)=>{const _0x2173ce=_0x30a57b;for(var _0x5c916d=_0x598775>0x1?void 0x0:_0x598775?_0x2ec167(_0x315e14,_0x5b5be8):_0x315e14,_0x3e424e=_0x1853f3[_0x2173ce(0x226)]-0x1,_0x3acd98;_0x3e424e>=0x0;_0x3e424e--)(_0x3acd98=_0x1853f3[_0x3e424e])&&(_0x5c916d=(_0x598775?_0x3acd98(_0x315e14,_0x5b5be8,_0x5c916d):_0x3acd98(_0x5c916d))||_0x5c916d);return _0x598775&&_0x5c916d&&_0x2565c1(_0x315e14,_0x5b5be8,_0x5c916d),_0x5c916d;},_0x34085a=(_0x1bde09,_0x234e0c)=>(_0x1c0490,_0x4e2499)=>_0x234e0c(_0x1c0490,_0x4e2499,_0x1bde09);const _0x52ebdb=_0x123ccf['createIdentifier'](_0x30a57b(0x4a3));function _0x1f8d55(_0x3c02b6,_0x241b49,_0x1325e4){const _0x5a8db8=_0x30a57b;return _0x3c02b6+'/'+_0x241b49+_0x5a8db8(0x298)+_0x1325e4+_0x5a8db8(0x4ff);}_0x3ba5f7[_0x30a57b(0x38f)]=class extends _0x123ccf[_0x30a57b(0x353)]{constructor(_0x558260,_0x4fa3d9,_0x299cb2,_0x236100,_0x4aad3b){const _0x1286bb=_0x30a57b;super(),this[_0x1286bb(0x250)]=_0x558260,this['_ws']=_0x4fa3d9,this[_0x1286bb(0x345)]=_0x299cb2,this[_0x1286bb(0x1d5)]=_0x236100,this['_snapshotServerService']=_0x4aad3b;}[_0x30a57b(0x385)](_0x3cc328){const _0x2cc733=_0x30a57b,_0x37ce10=this[_0x2cc733(0x559)][_0x2cc733(0x385)](_0x3cc328);if(!_0x37ce10)throw new Error(_0x2cc733(0x379));const _0x508530=new _0x123ccf['DisposableCollection'](),_0x1acfd6=new _0x4f561c[(_0x2cc733(0x288))]();_0x508530[_0x2cc733(0x225)](_0x37ce10[_0x2cc733(0x260)]['subscribe'](_0x40af6d=>_0x1acfd6[_0x2cc733(0x595)](_0x40af6d))),_0x508530[_0x2cc733(0x225)](_0x123ccf[_0x2cc733(0x388)](()=>_0x1acfd6[_0x2cc733(0x395)]()));const _0x57b626=new _0x4f561c['Subject']();_0x508530[_0x2cc733(0x225)](_0x37ce10[_0x2cc733(0x35c)][_0x2cc733(0x383)](_0x1de0f5=>_0x57b626['next'](_0x1de0f5))),_0x508530['add'](_0x123ccf[_0x2cc733(0x388)](()=>_0x57b626[_0x2cc733(0x395)]()));const _0x45ad04=new _0x4f561c[(_0x2cc733(0x288))]();_0x508530[_0x2cc733(0x225)](_0x37ce10[_0x2cc733(0x18e)][_0x2cc733(0x383)](_0x98b28f=>{const _0x38b36d=_0x2cc733,_0x1e0893=_0x38029f(_0x98b28f);_0x45ad04[_0x38b36d(0x595)](_0x1e0893);})),_0x508530['add'](_0x123ccf['toDisposable'](()=>_0x45ad04[_0x2cc733(0x395)]()));let _0x264600;const _0x57c618=()=>{const _0x4f7302=_0x2cc733;_0x57b626[_0x4f7302(0x595)](new Event(_0x4f7302(0x213))),_0x1acfd6['next'](new CloseEvent(_0x4f7302(0x213))),_0x264600[_0x4f7302(0x464)]();};return _0x264600={'memberID':'','close$':_0x1acfd6[_0x2cc733(0x29e)](),'error$':_0x57b626[_0x2cc733(0x29e)](),'open$':_0x37ce10[_0x2cc733(0x336)],'message$':_0x45ad04['asObservable'](),'send':_0x5e8189=>{const _0x78ec5b=_0x2cc733;if(_0x5e8189['cmd']===_0x2aae64[_0x78ec5b(0x4fe)]){if(_0x5e8189[_0x78ec5b(0x5a6)]['eventID']===_0x44c0c5[_0x78ec5b(0x22e)]['SUBMIT_CHANGESET']){this[_0x78ec5b(0x30e)](_0x264600,_0x5e8189['data'])[_0x78ec5b(0x1d9)](_0x3d7ac7=>{const _0x580139=_0x78ec5b;this[_0x580139(0x1d5)][_0x580139(0x422)](_0x3d7ac7),_0x57c618();});return;}if(_0x5e8189[_0x78ec5b(0x5a6)][_0x78ec5b(0x543)]===_0x44c0c5[_0x78ec5b(0x22e)][_0x78ec5b(0x49a)]){const _0x4730af=_0x5e8189[_0x78ec5b(0x5a6)];this[_0x78ec5b(0x2b9)](_0x4730af)[_0x78ec5b(0x4f7)](_0x186766=>{const _0x494768=_0x78ec5b;_0x45ad04[_0x494768(0x595)]({'cmd':_0x2aae64[_0x494768(0x536)],'code':_0x22c472['OK'],'routeKey':_0x4730af['data']['unitID'],'routeType':'','data':{'eventID':_0x44c0c5['CollaborationEvent'][_0x494768(0x1f3)],'data':{'changesets':_0x186766}}});})['catch'](_0x3e2a80=>{const _0x10ba1b=_0x78ec5b;this['_logService'][_0x10ba1b(0x422)](_0x3e2a80),_0x57c618();});return;}}_0x37ce10[_0x78ec5b(0x1ed)](_0x3099b9(_0x5e8189));},'close':()=>{const _0x58987e=_0x2cc733;_0x37ce10[_0x58987e(0x464)](),_0x508530[_0x58987e(0x33e)]();}},_0x264600;}async[_0x30a57b(0x30e)](_0x35afa8,_0x43d2b3){const _0x3fc9e6=_0x30a57b;var _0x168b45,_0x9f7788;const {unitType:_0x1faadb,unitID:_0x3b2b45,changeset:_0x19a528}=_0x43d2b3[_0x3fc9e6(0x5a6)],_0x216837={'unitID':_0x3b2b45,'memberID':_0x35afa8[_0x3fc9e6(0x591)],'type':_0x1faadb,'changeset':_0x44c0c5[_0x3fc9e6(0x59b)](_0x19a528)},_0x5044ec=this[_0x3fc9e6(0x345)][_0x3fc9e6(0x569)](_0x23d3b2),_0x236dea=this[_0x3fc9e6(0x345)][_0x3fc9e6(0x569)](_0x1d8c7c),_0x5bea05=_0x1f8d55((_0x9f7788=(_0x168b45=_0x236dea==null?void 0x0:_0x236dea['collabSubmitChangesetUrl'])!=null?_0x168b45:_0x5044ec)!=null?_0x9f7788:_0x3af071,_0x1faadb,_0x3b2b45);try{await this[_0x3fc9e6(0x250)][_0x3fc9e6(0x594)](_0x5bea05,{'body':_0x216837});}catch(_0x406fa6){throw this[_0x3fc9e6(0x1d5)][_0x3fc9e6(0x422)]('[CollaborationSession]',_0x3fc9e6(0x212)),_0x406fa6;}}async[_0x30a57b(0x2b9)](_0x2e92c0){const _0x2de8ff=_0x30a57b,{unitID:_0xe44afd,from:_0x460479,to:_0x57af04,unitType:_0x2de7c1}=_0x2e92c0[_0x2de8ff(0x5a6)];return(await this['_snapshotServerService'][_0x2de8ff(0x384)]({'metadata':void 0x0},{'unitID':_0xe44afd,'type':_0x2de7c1,'from':_0x460479,'to':_0x57af04}))['changesets'];}},_0x3ba5f7[_0x30a57b(0x38f)]=_0x5745ad([_0x34085a(0x0,_0x123ccf[_0x30a57b(0x398)](_0x195077[_0x30a57b(0x28c)])),_0x34085a(0x1,_0x123ccf[_0x30a57b(0x398)](_0x195077[_0x30a57b(0x202)])),_0x34085a(0x2,_0x123ccf['IConfigService']),_0x34085a(0x3,_0x123ccf[_0x30a57b(0x58c)]),_0x34085a(0x4,_0x44c0c5[_0x30a57b(0x558)])],_0x3ba5f7[_0x30a57b(0x38f)]);const _0x461d26=_0x30a57b(0x2bb);function _0xeae8ea(_0x22f05a){const _0xe0e45e=_0x30a57b;return JSON[_0xe0e45e(0x599)](_0x22f05a)[_0xe0e45e(0x226)];}class _0x40c993{constructor(){const _0xdae83=_0x30a57b;_0x141732(this,_0xdae83(0x2f9),new _0x4f561c[(_0xdae83(0x288))]()),_0x141732(this,_0xdae83(0x552),this[_0xdae83(0x2f9)][_0xdae83(0x29e)]());}[_0x30a57b(0x498)](_0x267d11){const _0x57e3ac=_0x30a57b;this['_commentUpdate$'][_0x57e3ac(0x595)](_0x267d11);}}var _0x163346=Object[_0x30a57b(0x26e)],_0x434db5=Object[_0x30a57b(0x5ab)],_0x33d9d6=(_0x12578e,_0x4bbb94,_0x50e42,_0x56d47b)=>{for(var _0x88f7c9=_0x56d47b>0x1?void 0x0:_0x56d47b?_0x434db5(_0x4bbb94,_0x50e42):_0x4bbb94,_0x2b69bf=_0x12578e['length']-0x1,_0x1dcab2;_0x2b69bf>=0x0;_0x2b69bf--)(_0x1dcab2=_0x12578e[_0x2b69bf])&&(_0x88f7c9=(_0x56d47b?_0x1dcab2(_0x4bbb94,_0x50e42,_0x88f7c9):_0x1dcab2(_0x88f7c9))||_0x88f7c9);return _0x56d47b&&_0x88f7c9&&_0x163346(_0x4bbb94,_0x50e42,_0x88f7c9),_0x88f7c9;},_0x5d6b44=(_0x123d1d,_0x63f1bb)=>(_0x5154ff,_0x386728)=>_0x63f1bb(_0x5154ff,_0x386728,_0x123d1d);let _0x202674=class extends _0x123ccf['Disposable']{constructor(_0x394501,_0x3a3274){const _0x47b6ae=_0x30a57b;super(),_0x141732(this,'_roomMembers',new Map()),(this[_0x47b6ae(0x1de)]=_0x394501,this[_0x47b6ae(0x265)]=_0x3a3274,this[_0x47b6ae(0x285)](_0x123ccf[_0x47b6ae(0x388)](_0x4f561c['merge'](this[_0x47b6ae(0x1de)][_0x47b6ae(0x29b)](_0x123ccf['UniverInstanceType'][_0x47b6ae(0x356)])[_0x47b6ae(0x243)](_0x3262ca[_0x47b6ae(0x450)](_0x4cc78b=>_0x4cc78b[_0x47b6ae(0x281)]())),this[_0x47b6ae(0x1de)]['getTypeOfUnitDisposed$'](_0x123ccf[_0x47b6ae(0x3ab)][_0x47b6ae(0x34c)])[_0x47b6ae(0x243)](_0x3262ca['map'](_0x1f8d4a=>_0x1f8d4a['getUnitId']())),this[_0x47b6ae(0x1de)][_0x47b6ae(0x29b)](_0x123ccf[_0x47b6ae(0x3ab)][_0x47b6ae(0x4ec)])['pipe'](_0x3262ca[_0x47b6ae(0x450)](_0xfa302d=>_0xfa302d[_0x47b6ae(0x281)]())))[_0x47b6ae(0x383)](_0x4edb4a=>this[_0x47b6ae(0x52d)](_0x4edb4a)))));}[_0x30a57b(0x484)](_0x2221e2){const _0x788986=_0x30a57b;this[_0x788986(0x265)][_0x788986(0x484)](_0x2221e2);}[_0x30a57b(0x1af)](){const _0x3addc4=_0x30a57b;return this['_userManagerService'][_0x3addc4(0x1af)]();}[_0x30a57b(0x401)](_0x2fb446,_0x32abda){const _0x495129=_0x30a57b;let _0x337080=this[_0x495129(0x27e)][_0x495129(0x3c0)](_0x2fb446);_0x337080||(_0x337080=new _0x5e948b(),this[_0x495129(0x27e)]['set'](_0x2fb446,_0x337080)),_0x337080[_0x495129(0x401)](_0x32abda);}[_0x30a57b(0x314)](_0x2e3f82,_0xd3b009){const _0x349b21=_0x30a57b,_0x3b63b1=this['_roomMembers']['get'](_0x2e3f82);_0x3b63b1&&_0x3b63b1[_0x349b21(0x314)](_0xd3b009);}[_0x30a57b(0x557)](_0x19ed7c){const _0x521e65=_0x30a57b;return this[_0x521e65(0x27e)]['get'](_0x19ed7c);}[_0x30a57b(0x2ba)](_0x308c4c,_0x492364){const _0xc891d=_0x30a57b,_0x407fd7=this['_roomMembers'][_0xc891d(0x3c0)](_0x308c4c);if(_0x407fd7)return _0x407fd7['getMember'](_0x492364);}[_0x30a57b(0x52d)](_0x5ce89a){const _0x5c9408=_0x30a57b,_0x3507dc=this['_roomMembers']['get'](_0x5ce89a);_0x3507dc&&(_0x3507dc['dispose'](),this[_0x5c9408(0x27e)][_0x5c9408(0x55c)](_0x5ce89a));}[_0x30a57b(0x33e)](){const _0x2a6e3a=_0x30a57b;this[_0x2a6e3a(0x27e)]['forEach'](_0x827a8f=>_0x827a8f[_0x2a6e3a(0x33e)]()),this['_roomMembers'][_0x2a6e3a(0x308)]();}};_0x202674=_0x33d9d6([_0x5d6b44(0x0,_0x123ccf[_0x30a57b(0x4c8)]),_0x5d6b44(0x1,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x254)]))],_0x202674);class _0x5e948b extends _0x123ccf['Disposable']{constructor(){const _0x5f1c04=_0x30a57b;super(...arguments),_0x141732(this,_0x5f1c04(0x324),new Map());}[_0x30a57b(0x33e)](){const _0x27de1e=_0x30a57b;this[_0x27de1e(0x324)][_0x27de1e(0x308)]();}[_0x30a57b(0x401)](_0xf31ab9){const _0x3730cd=_0x30a57b;this['_members'][_0x3730cd(0x3be)](_0xf31ab9['memberID'],_0xf31ab9);}[_0x30a57b(0x314)](_0x11aa4a){const _0x3cc6e2=_0x30a57b;this[_0x3cc6e2(0x324)]['delete'](_0x11aa4a);}[_0x30a57b(0x2ba)](_0xbf53ea){const _0x124093=_0x30a57b;return this[_0x124093(0x324)][_0x124093(0x3c0)](_0xbf53ea);}}var _0x3f2280=Object[_0x30a57b(0x26e)],_0x115454=Object[_0x30a57b(0x5ab)],_0x4609be=(_0x3c8e6f,_0x319708,_0x2c25e7,_0x32a303)=>{const _0x558382=_0x30a57b;for(var _0x5afacf=_0x32a303>0x1?void 0x0:_0x32a303?_0x115454(_0x319708,_0x2c25e7):_0x319708,_0x558bd7=_0x3c8e6f[_0x558382(0x226)]-0x1,_0x4801b7;_0x558bd7>=0x0;_0x558bd7--)(_0x4801b7=_0x3c8e6f[_0x558bd7])&&(_0x5afacf=(_0x32a303?_0x4801b7(_0x319708,_0x2c25e7,_0x5afacf):_0x4801b7(_0x5afacf))||_0x5afacf);return _0x32a303&&_0x5afacf&&_0x3f2280(_0x319708,_0x2c25e7,_0x5afacf),_0x5afacf;},_0x59078b=(_0x45dfd9,_0x1adddc)=>(_0xec0dc3,_0x2d1f6f)=>_0x1adddc(_0xec0dc3,_0x2d1f6f,_0x45dfd9),_0x1f9fa8=(_0x2389b6=>(_0x2389b6[_0x2389b6[_0x30a57b(0x313)]=0x0]=_0x30a57b(0x313),_0x2389b6[_0x2389b6[_0x30a57b(0x468)]=0x1]=_0x30a57b(0x468),_0x2389b6[_0x2389b6[_0x30a57b(0x311)]=0x2]='OFFLINE',_0x2389b6[_0x2389b6[_0x30a57b(0x2cd)]=0x3]=_0x30a57b(0x2cd),_0x2389b6))(_0x1f9fa8||{});_0x3ba5f7[_0x30a57b(0x53c)]=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x6193bf,_0x4c3d3f,_0x4cc464,_0x3c88fe,_0x4df902,_0x1378ba,_0x4af399,_0xef6826,_0x1b350d,_0x478b29){const _0x330eb4=_0x30a57b;super(),_0x141732(this,_0x330eb4(0x297),new _0x4f561c['BehaviorSubject'](0x0)),_0x141732(this,_0x330eb4(0x31d),this['_sessionStatus$'][_0x330eb4(0x29e)]()),_0x141732(this,_0x330eb4(0x47f),new _0x4f561c[(_0x330eb4(0x288))]()),_0x141732(this,_0x330eb4(0x44b),this[_0x330eb4(0x47f)][_0x330eb4(0x29e)]()),_0x141732(this,_0x330eb4(0x42d)),_0x141732(this,_0x330eb4(0x1f6)),_0x141732(this,_0x330eb4(0x52b)),_0x141732(this,'_shouldReportTelemetry',!0x1),_0x141732(this,_0x330eb4(0x420),null),(this['_unitID']=_0x6193bf,this[_0x330eb4(0x1d5)]=_0x4cc464,this[_0x330eb4(0x3c9)]=_0x3c88fe,this[_0x330eb4(0x235)]=_0x4df902,this[_0x330eb4(0x345)]=_0x1378ba,this[_0x330eb4(0x355)]=_0x4af399,this[_0x330eb4(0x515)]=_0xef6826,this['_commentService']=_0x1b350d,this[_0x330eb4(0x4ca)]=_0x478b29,this['_shouldReportTelemetry']=!!this[_0x330eb4(0x4ca)],_0x4c3d3f['pipe'](_0x4f561c[_0x330eb4(0x36d)](this[_0x330eb4(0x39a)]))[_0x330eb4(0x383)](_0xeb835d=>{const _0x3ace79=_0x330eb4;var _0x3f9f78;typeof _0xeb835d>'u'||(this[_0x3ace79(0x42d)]=_0xeb835d,_0xeb835d?(this['_joinRoom'](_0xeb835d),this['_socketMessageSubscription']=_0xeb835d[_0x3ace79(0x18e)][_0x3ace79(0x383)](_0x23defc=>{const _0x3c56e9=_0x3ace79;_0x23defc[_0x3c56e9(0x33d)]===this[_0x3c56e9(0x40b)]&&this['_onCombEvent'](_0x23defc);})):(this['_throwTelemetryCollaborationNewChangeset'](),this[_0x3ace79(0x297)][_0x3ace79(0x595)](0x2),(_0x3f9f78=this[_0x3ace79(0x1f6)])==null||_0x3f9f78[_0x3ace79(0x3b9)](),this['_socketMessageSubscription']=null));}),this[_0x330eb4(0x285)](this['_beforeCloseService'][_0x330eb4(0x3c2)](()=>{const _0x38fa08=_0x330eb4;var _0x25c437;(_0x25c437=this[_0x38fa08(0x42d)])==null||_0x25c437[_0x38fa08(0x1ed)]({'cmd':_0x2aae64[_0x38fa08(0x205)],'data':{'roomID':this[_0x38fa08(0x40b)]}});})));}get[_0x30a57b(0x467)](){const _0x470493=_0x30a57b;return this[_0x470493(0x297)][_0x470493(0x417)]();}['getMemberID'](){const _0x537ef=_0x30a57b;var _0x31528f,_0x194ee8;return(_0x194ee8=(_0x31528f=this['_socket'])==null?void 0x0:_0x31528f[_0x537ef(0x591)])!=null?_0x194ee8:null;}[_0x30a57b(0x33e)](){const _0x1cf54f=_0x30a57b;super[_0x1cf54f(0x33e)](),this['dispose$'][_0x1cf54f(0x595)](),this['dispose$'][_0x1cf54f(0x395)]();}[_0x30a57b(0x464)](){const _0x5d5f61=_0x30a57b;var _0x34f2f9,_0x1f7e2e;this['_throwTelemetryCollaborationNewChangeset'](),(_0x34f2f9=this[_0x5d5f61(0x42d)])==null||_0x34f2f9['send']({'cmd':_0x2aae64[_0x5d5f61(0x205)],'data':{'roomID':this[_0x5d5f61(0x40b)]}}),(_0x1f7e2e=this['_socket'])==null||_0x1f7e2e[_0x5d5f61(0x464)](),this[_0x5d5f61(0x47f)][_0x5d5f61(0x395)](),this[_0x5d5f61(0x297)][_0x5d5f61(0x395)](),this[_0x5d5f61(0x33e)]();}[_0x30a57b(0x2c4)](_0x2bb212){const _0x3a2522=_0x30a57b;_0x2bb212[_0x3a2522(0x21b)]===_0x2aae64[_0x3a2522(0x5a4)]?this['_onJoinRoomEvent'](_0x2bb212):_0x2bb212[_0x3a2522(0x21b)]===_0x2aae64[_0x3a2522(0x536)]&&this['_onRecvEvent'](_0x2bb212);}[_0x30a57b(0x446)](_0x8124ca){const _0x421c7c=_0x30a57b;this[_0x421c7c(0x297)]['next'](0x1),_0x8124ca['send']({'cmd':_0x2aae64['JOIN'],'routeKey':this[_0x421c7c(0x40b)],'routeType':'','data':{'rooms':[{'roomID':this[_0x421c7c(0x40b)]}]}});}[_0x30a57b(0x38e)](_0x34c1e8){const _0x4973ae=_0x30a57b;var _0x51d404;if(_0x34c1e8[_0x4973ae(0x23c)]===_0x22c472[_0x4973ae(0x3de)]){this['_messageService'][_0x4973ae(0x362)]({'type':_0x5b06bc[_0x4973ae(0x399)][_0x4973ae(0x4f4)],'content':this[_0x4973ae(0x355)]['t'](_0x4973ae(0x596))}),this[_0x4973ae(0x297)][_0x4973ae(0x595)](0x2);return;}this['_sessionStatus$'][_0x4973ae(0x595)](0x3);const _0x27ed29=(_0x51d404=_0x34c1e8[_0x4973ae(0x5a6)][_0x4973ae(0x497)][this[_0x4973ae(0x40b)]])==null?void 0x0:_0x51d404[_0x4973ae(0x530)];_0x27ed29&&_0x27ed29['forEach'](_0x25103a=>this['_memberService'][_0x4973ae(0x401)](this[_0x4973ae(0x40b)],_0x25103a));}[_0x30a57b(0x1ec)](_0x1e315d){const _0x59cae2=_0x30a57b;try{const _0x6bfcdc=_0x1e315d['data'];switch(_0x6bfcdc[_0x59cae2(0x543)]){case _0x44c0c5[_0x59cae2(0x22e)]['USERS_ENTER']:this['_onUserJoin'](_0x6bfcdc),this[_0x59cae2(0x47f)]['next'](_0x6bfcdc);break;case _0x44c0c5[_0x59cae2(0x22e)][_0x59cae2(0x1f4)]:this[_0x59cae2(0x581)](_0x6bfcdc),this[_0x59cae2(0x47f)][_0x59cae2(0x595)](_0x6bfcdc);break;case _0x44c0c5[_0x59cae2(0x22e)][_0x59cae2(0x28b)]:case _0x44c0c5[_0x59cae2(0x22e)]['CHANGESET_SHOULD_RETRY']:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x59cae2(0x4ee)](),this[_0x59cae2(0x47f)][_0x59cae2(0x595)](_0x6bfcdc);break;case _0x44c0c5[_0x59cae2(0x22e)]['MSG_FOR_ERROR']:this['_logService'][_0x59cae2(0x422)](_0x59cae2(0x564)+JSON[_0x59cae2(0x599)](_0x6bfcdc)),this[_0x59cae2(0x47f)][_0x59cae2(0x595)](_0x6bfcdc);break;case _0x44c0c5[_0x59cae2(0x22e)]['COMMENT_UPDATE']:this[_0x59cae2(0x486)][_0x59cae2(0x498)](_0x6bfcdc[_0x59cae2(0x5a6)]),this['_event$']['next'](_0x6bfcdc);break;default:this[_0x59cae2(0x47f)][_0x59cae2(0x595)](_0x6bfcdc);}}catch(_0xb005a6){this[_0x59cae2(0x1d5)][_0x59cae2(0x422)](_0xb005a6,_0x1e315d);}}[_0x30a57b(0x598)](_0x15de97){const _0x3ae769=_0x30a57b;this[_0x3ae769(0x515)][_0x3ae769(0x401)](this[_0x3ae769(0x40b)],_0x15de97[_0x3ae769(0x5a6)]);}[_0x30a57b(0x581)](_0x3fd009){const _0x2c926b=_0x30a57b;this[_0x2c926b(0x515)][_0x2c926b(0x314)](this[_0x2c926b(0x40b)],_0x3fd009[_0x2c926b(0x5a6)][_0x2c926b(0x591)]);}async[_0x30a57b(0x1ed)](_0x57eb4a,_0x2401f1){const _0x8a68c9=_0x30a57b;if(this[_0x8a68c9(0x467)]!==0x3||!this[_0x8a68c9(0x42d)])throw new Error(_0x8a68c9(0x28e));try{_0x57eb4a[_0x8a68c9(0x543)]===_0x44c0c5['CollaborationEvent']['SUBMIT_CHANGESET']&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x57eb4a)),this[_0x8a68c9(0x42d)][_0x8a68c9(0x1ed)]({'cmd':_0x2aae64[_0x8a68c9(0x4fe)],'routeKey':_0x2401f1,'routeType':'','data':_0x57eb4a});}catch(_0x2ab5a4){this['_logService'][_0x8a68c9(0x422)](_0x2ab5a4);}}[_0x30a57b(0x4b4)](){const _0x3509f6=_0x30a57b;var _0x4ae2c2;this[_0x3509f6(0x52b)]=window['setTimeout'](()=>{const _0x213b35=_0x3509f6;this[_0x213b35(0x52b)]=null,this['_messageService'][_0x213b35(0x362)]({'type':_0x5b06bc[_0x213b35(0x399)][_0x213b35(0x5a3)],'content':this[_0x213b35(0x355)]['t'](_0x213b35(0x343))});},(_0x4ae2c2=this[_0x3509f6(0x345)][_0x3509f6(0x569)](_0x44e782))!=null?_0x4ae2c2:0x4e20);}[_0x30a57b(0x4ee)](){const _0x589389=_0x30a57b;this[_0x589389(0x52b)]&&(clearTimeout(this[_0x589389(0x52b)]),this['_collaborationTimeoutTimer']=null);}['_startTelemetryCollaborationNewChangeset'](_0x275bc5){const _0x6856fb=_0x30a57b;if(!this[_0x6856fb(0x3c6)])return;const {data:_0x2b490a}=_0x275bc5,{unitID:_0x2f0db5,changeset:_0x513ae7}=_0x2b490a,{mutations:_0x4e5fc5,type:_0x3bb97a}=_0x513ae7;this[_0x6856fb(0x420)]={'unitId':_0x2f0db5,'type':_0x3bb97a,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0xeae8ea(_0x4e5fc5)};}[_0x30a57b(0x1a6)](){const _0x279fd2=_0x30a57b;if(this[_0x279fd2(0x3c6)]){if(!this[_0x279fd2(0x420)]){this[_0x279fd2(0x1d5)][_0x279fd2(0x422)]('[CollaborationSession]',_0x279fd2(0x427));return;}this[_0x279fd2(0x420)][_0x279fd2(0x59f)]=performance[_0x279fd2(0x2d4)](),this[_0x279fd2(0x420)][_0x279fd2(0x3dd)]=this[_0x279fd2(0x420)]['stopTime']-this[_0x279fd2(0x420)][_0x279fd2(0x42a)],this[_0x279fd2(0x4ca)]['capture'](_0x461d26,this['_telemetryInfo']),this[_0x279fd2(0x420)]=null;}}[_0x30a57b(0x532)](){const _0x31b10d=_0x30a57b;this[_0x31b10d(0x420)]=null;}},_0x3ba5f7[_0x30a57b(0x53c)]=_0x4609be([_0x59078b(0x2,_0x123ccf['ILogService']),_0x59078b(0x3,_0x4986bd[_0x30a57b(0x1cd)]),_0x59078b(0x4,_0x4986bd[_0x30a57b(0x1c7)]),_0x59078b(0x5,_0x123ccf[_0x30a57b(0x227)]),_0x59078b(0x6,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)])),_0x59078b(0x7,_0x123ccf[_0x30a57b(0x398)](_0x202674)),_0x59078b(0x8,_0x123ccf['Inject'](_0x40c993)),_0x59078b(0x9,_0x123ccf[_0x30a57b(0x506)](_0x30d2a5[_0x30a57b(0x44d)]))],_0x3ba5f7[_0x30a57b(0x53c)]);var _0x520d34=Object[_0x30a57b(0x26e)],_0x52599a=Object[_0x30a57b(0x5ab)],_0x21b850=(_0x5674ec,_0x174443,_0x1b1b0a,_0x1a4643)=>{const _0x14593d=_0x30a57b;for(var _0xf01846=_0x1a4643>0x1?void 0x0:_0x1a4643?_0x52599a(_0x174443,_0x1b1b0a):_0x174443,_0x57fda0=_0x5674ec[_0x14593d(0x226)]-0x1,_0x29e2fb;_0x57fda0>=0x0;_0x57fda0--)(_0x29e2fb=_0x5674ec[_0x57fda0])&&(_0xf01846=(_0x1a4643?_0x29e2fb(_0x174443,_0x1b1b0a,_0xf01846):_0x29e2fb(_0xf01846))||_0xf01846);return _0x1a4643&&_0xf01846&&_0x520d34(_0x174443,_0x1b1b0a,_0xf01846),_0xf01846;},_0x44d123=(_0x401faf,_0x2eb969)=>(_0x54071c,_0x48314e)=>_0x2eb969(_0x54071c,_0x48314e,_0x401faf);_0x3ba5f7[_0x30a57b(0x267)]=class extends _0x123ccf[_0x30a57b(0x353)]{constructor(_0x3cd5e0,_0x9c7c5d,_0x5b673e,_0xcc2f36,_0x5b4819,_0x2854bf){const _0x340f57=_0x30a57b;super(),_0x141732(this,_0x340f57(0x316),new _0x4f561c[(_0x340f57(0x22d))](void 0x0)),_0x141732(this,'socket$',this[_0x340f57(0x316)][_0x340f57(0x29e)]()),_0x141732(this,_0x340f57(0x2ec),null),_0x141732(this,_0x340f57(0x371),new Map()),_0x141732(this,_0x340f57(0x3f5),new _0x4f561c[(_0x340f57(0x22d))](_0x1f9fa8[_0x340f57(0x313)])),_0x141732(this,_0x340f57(0x1d4),this['_status$'][_0x340f57(0x29e)]()),_0x141732(this,'_socketReady',!0x1),_0x141732(this,_0x340f57(0x2a0)),_0x141732(this,_0x340f57(0x4f5),0x0),_0x141732(this,_0x340f57(0x49b)),_0x141732(this,_0x340f57(0x3e5)),(this[_0x340f57(0x179)]=_0x3cd5e0,this[_0x340f57(0x355)]=_0x9c7c5d,this[_0x340f57(0x235)]=_0x5b673e,this['_logService']=_0xcc2f36,this[_0x340f57(0x345)]=_0x5b4819,this[_0x340f57(0x429)]=_0x2854bf,this[_0x340f57(0x58f)]());}get['_socket'](){const _0x133027=_0x30a57b;return this[_0x133027(0x316)][_0x133027(0x417)]();}[_0x30a57b(0x58f)](){const _0x2a48b6=_0x30a57b;this['_listenToOfflineEvent'](),this[_0x2a48b6(0x507)]();}[_0x30a57b(0x33e)](){const _0x66c012=_0x30a57b;super['dispose'](),this[_0x66c012(0x371)]['forEach'](_0x1d332b=>_0x1d332b['dispose']()),this[_0x66c012(0x371)]['clear'](),this[_0x66c012(0x3f5)][_0x66c012(0x395)]();}async['requireSession'](_0x3060ce){const _0x33ceb3=_0x30a57b;if(this[_0x33ceb3(0x371)][_0x33ceb3(0x4bf)](_0x3060ce))return this[_0x33ceb3(0x371)][_0x33ceb3(0x3c0)](_0x3060ce);this[_0x33ceb3(0x540)]();const _0x3a958e=this[_0x33ceb3(0x179)][_0x33ceb3(0x496)](_0x3ba5f7['CollaborationSession'],_0x3060ce,this[_0x33ceb3(0x316)]['asObservable']());return this[_0x33ceb3(0x371)][_0x33ceb3(0x3be)](_0x3060ce,_0x3a958e),_0x3a958e;}[_0x30a57b(0x2e3)](_0x447b0d){const _0x2b9da5=_0x30a57b;var _0x151de0;const _0x2c53b5=this[_0x2b9da5(0x371)][_0x2b9da5(0x3c0)](_0x447b0d);_0x2c53b5&&(this[_0x2b9da5(0x371)]['delete'](_0x447b0d),_0x2c53b5[_0x2b9da5(0x464)]()),this[_0x2b9da5(0x371)][_0x2b9da5(0x17f)]||(_0x151de0=this[_0x2b9da5(0x42d)])==null||_0x151de0[_0x2b9da5(0x464)]();}['reconnect'](){const _0x2fb8fa=_0x30a57b;this[_0x2fb8fa(0x4f5)]=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x2fb8fa(0x2a0)]),this[_0x2fb8fa(0x2a0)]=null),this[_0x2fb8fa(0x242)]();}[_0x30a57b(0x30a)](){const _0xb7dd04=_0x30a57b;var _0x3154bf,_0x591568;const _0x44ec55=this[_0xb7dd04(0x345)][_0xb7dd04(0x569)](_0x2260c2),_0x45f547=this[_0xb7dd04(0x345)]['getConfig'](_0x1d8c7c),_0x460472=(_0x591568=(_0x3154bf=_0x45f547==null?void 0x0:_0x45f547['collabWebSocketUrl'])!=null?_0x3154bf:_0x44ec55)!=null?_0x591568:_0x41d1e7,_0x221e48=this[_0xb7dd04(0x429)][_0xb7dd04(0x385)](_0x460472);return this[_0xb7dd04(0x2ec)]=_0x221e48,_0x221e48;}['_tryEnsureSocket'](){const _0x30e29b=_0x30a57b;var _0x159193,_0x5a8462;try{const _0x4ccf2c=(_0x5a8462=(_0x159193=this[_0x30e29b(0x42d)])!=null?_0x159193:this['_candidateSocket'])!=null?_0x5a8462:this[_0x30e29b(0x30a)]();if(_0x4ccf2c){const _0x463934=_0x4ccf2c[_0x30e29b(0x1ed)];_0x4ccf2c[_0x30e29b(0x1ed)]=_0x4f0f48=>(this['_rescheduleHeartbeat'](),_0x463934['apply'](_0x4ccf2c,[_0x4f0f48])),_0x4ccf2c['message$'][_0x30e29b(0x383)](_0x458684=>this[_0x30e29b(0x43e)](_0x4ccf2c,_0x458684)),_0x4ccf2c[_0x30e29b(0x35c)][_0x30e29b(0x243)](_0x3262ca[_0x30e29b(0x25b)](0x1))['subscribe'](_0x5506d7=>this['_logService'][_0x30e29b(0x422)](_0x30e29b(0x4db),_0x5506d7)),_0x4ccf2c['open$'][_0x30e29b(0x243)](_0x3262ca[_0x30e29b(0x25b)](0x1))['subscribe'](()=>{const _0x3f0144=_0x30e29b;this[_0x3f0144(0x4ad)](_0x4ccf2c);}),_0x4ccf2c[_0x30e29b(0x260)][_0x30e29b(0x243)](_0x3262ca[_0x30e29b(0x25b)](0x1))[_0x30e29b(0x383)](_0x1edb39=>{const _0x5840df=_0x30e29b;this[_0x5840df(0x1d5)][_0x5840df(0x4f1)](_0x5840df(0x249),'socket\x20close',_0x1edb39),this['_onConnectionFailed']();});}}catch(_0x4ab6b1){this['_logService'][_0x30e29b(0x422)](_0x4ab6b1),this[_0x30e29b(0x234)]();}}[_0x30a57b(0x4ad)](_0x22048e){const _0x2bb9ad=_0x30a57b;this['_logService'][_0x2bb9ad(0x4f1)](_0x2bb9ad(0x249),_0x2bb9ad(0x1db)),_0x22048e[_0x2bb9ad(0x1ed)]({'cmd':_0x2aae64[_0x2bb9ad(0x207)]}),this['_rescheduleHeartbeat']();}[_0x30a57b(0x217)](){const _0x59b632=_0x30a57b;window[_0x59b632(0x305)]('offline',()=>this[_0x59b632(0x230)]());}[_0x30a57b(0x230)](){const _0x180773=_0x30a57b;this[_0x180773(0x182)]=!0x1,this[_0x180773(0x2ec)]=null,this['_status$']['next'](_0x1f9fa8[_0x180773(0x311)]),this['_socket$'][_0x180773(0x595)](null),this['_clearTimeoutTimer'](),this['_clearHeartbeatTimer']();}['_onConnectionFailed'](){const _0x5ba5aa=_0x30a57b;var _0x3de1e0;this[_0x5ba5aa(0x230)](),this['_retryCount']<((_0x3de1e0=this[_0x5ba5aa(0x345)]['getConfig'](_0x44d08c))!=null?_0x3de1e0:0x3)?(this[_0x5ba5aa(0x235)][_0x5ba5aa(0x362)]({'key':'collaboration-session-retry','type':_0x5b06bc['MessageType'][_0x5ba5aa(0x4f4)],'content':this[_0x5ba5aa(0x355)]['t'](_0x5ba5aa(0x1fe))}),this[_0x5ba5aa(0x242)]()):this['_messageService']['show']({'key':'collaboration-session-retry','type':_0x5b06bc[_0x5ba5aa(0x399)][_0x5ba5aa(0x5a3)],'content':this[_0x5ba5aa(0x355)]['t'](_0x5ba5aa(0x50e))});}[_0x30a57b(0x507)](){const _0x32ddfc=_0x30a57b,_0x532280=()=>{const _0x4c62e7=_0x4fdf;this[_0x4c62e7(0x42d)]||this[_0x4c62e7(0x33b)]();},_0x5ad6b3=()=>{const _0x14ebb7=_0x4fdf;this[_0x14ebb7(0x42d)]||document[_0x14ebb7(0x2c0)]===_0x14ebb7(0x175)||this[_0x14ebb7(0x33b)]();};window[_0x32ddfc(0x305)](_0x32ddfc(0x392),_0x532280),document[_0x32ddfc(0x305)](_0x32ddfc(0x206),_0x5ad6b3);}[_0x30a57b(0x242)](){const _0x482190=_0x30a57b;var _0x452297;const _0x106ee8=this['_retryCount'],_0x4aaa86=this['_configService'][_0x482190(0x569)](_0x1d8c7c),_0x1e3009=_0x106ee8===0x0?0x0:((_0x452297=_0x4aaa86==null?void 0x0:_0x4aaa86['retryConnectingInterval'])!=null?_0x452297:0x4e20)*0x2**_0x106ee8;this[_0x482190(0x2a0)]=window[_0x482190(0x2a3)](()=>{const _0x3f4267=_0x482190;clearTimeout(this['_retryConnectingTimer']),this[_0x3f4267(0x2a0)]=null,this['_tryEnsureSocket']();},_0x1e3009),this[_0x482190(0x4f5)]+=0x1;}['_onMessage'](_0x24faa6,_0x10ed6e){const _0x25bf46=_0x30a57b,{cmd:_0x3387d7}=_0x10ed6e;_0x3387d7===_0x2aae64['HELLO']&&!this[_0x25bf46(0x182)]&&(_0x24faa6[_0x25bf46(0x591)]=_0x10ed6e[_0x25bf46(0x5a6)][_0x25bf46(0x591)],this[_0x25bf46(0x316)][_0x25bf46(0x595)](_0x24faa6),this[_0x25bf46(0x3f5)][_0x25bf46(0x595)](_0x1f9fa8[_0x25bf46(0x2cd)]),this['_socketReady']=!0x0,this[_0x25bf46(0x2ec)]=null),_0x3387d7===_0x2aae64['HEARTBEAT']&&this[_0x25bf46(0x32c)](),this[_0x25bf46(0x39d)]();}[_0x30a57b(0x39d)](){const _0x32b30f=_0x30a57b;var _0x3c7568;this[_0x32b30f(0x1e4)](),this[_0x32b30f(0x49b)]=window[_0x32b30f(0x2a3)](()=>this[_0x32b30f(0x4e3)](),(_0x3c7568=this['_configService'][_0x32b30f(0x569)](_0x2c1165))!=null?_0x3c7568:0x7530);}[_0x30a57b(0x4e3)](){const _0x195574=_0x30a57b;this[_0x195574(0x42d)][_0x195574(0x1ed)]({'cmd':_0x2aae64[_0x195574(0x326)]}),this[_0x195574(0x1cb)]();}[_0x30a57b(0x1cb)](){const _0x405baa=_0x30a57b;var _0x1d62b6;this[_0x405baa(0x3e5)]=window['setTimeout'](()=>this['_onConnectionFailed'](),(_0x1d62b6=this['_configService'][_0x405baa(0x569)](_0x44e782))!=null?_0x1d62b6:0x4e20);}['_clearHeartbeatTimer'](){const _0x2e5000=_0x30a57b;this[_0x2e5000(0x49b)]!=null&&(clearTimeout(this[_0x2e5000(0x49b)]),this['_sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](){const _0x137bb7=_0x30a57b;this[_0x137bb7(0x3e5)]!=null&&(clearTimeout(this[_0x137bb7(0x3e5)]),this[_0x137bb7(0x3e5)]=null);}},_0x3ba5f7[_0x30a57b(0x267)]=_0x21b850([_0x44d123(0x0,_0x123ccf[_0x30a57b(0x398)](_0x123ccf['Injector'])),_0x44d123(0x1,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)])),_0x44d123(0x2,_0x4986bd[_0x30a57b(0x1c7)]),_0x44d123(0x3,_0x123ccf['ILogService']),_0x44d123(0x4,_0x123ccf['IConfigService']),_0x44d123(0x5,_0x52ebdb)],_0x3ba5f7['CollaborationSessionService']);for(var _0x235e3b=[],_0x4691dc=0x0;_0x4691dc<0x100;++_0x4691dc)_0x235e3b[_0x30a57b(0x4cc)]((_0x4691dc+0x100)[_0x30a57b(0x2ef)](0x10)[_0x30a57b(0x50b)](0x1));function _0x1364c1(_0xc08aa2,_0x339d29=0x0){const _0x8237b1=_0x30a57b;return(_0x235e3b[_0xc08aa2[_0x339d29+0x0]]+_0x235e3b[_0xc08aa2[_0x339d29+0x1]]+_0x235e3b[_0xc08aa2[_0x339d29+0x2]]+_0x235e3b[_0xc08aa2[_0x339d29+0x3]]+'-'+_0x235e3b[_0xc08aa2[_0x339d29+0x4]]+_0x235e3b[_0xc08aa2[_0x339d29+0x5]]+'-'+_0x235e3b[_0xc08aa2[_0x339d29+0x6]]+_0x235e3b[_0xc08aa2[_0x339d29+0x7]]+'-'+_0x235e3b[_0xc08aa2[_0x339d29+0x8]]+_0x235e3b[_0xc08aa2[_0x339d29+0x9]]+'-'+_0x235e3b[_0xc08aa2[_0x339d29+0xa]]+_0x235e3b[_0xc08aa2[_0x339d29+0xb]]+_0x235e3b[_0xc08aa2[_0x339d29+0xc]]+_0x235e3b[_0xc08aa2[_0x339d29+0xd]]+_0x235e3b[_0xc08aa2[_0x339d29+0xe]]+_0x235e3b[_0xc08aa2[_0x339d29+0xf]])[_0x8237b1(0x583)]();}var _0x4be65c,_0x582c30=new Uint8Array(0x10);function _0x1c1337(){const _0x1d0a7b=_0x30a57b;if(!_0x4be65c&&(_0x4be65c=typeof crypto<'u'&&crypto[_0x1d0a7b(0x2a9)]&&crypto[_0x1d0a7b(0x2a9)]['bind'](crypto),!_0x4be65c))throw new Error(_0x1d0a7b(0x437));return _0x4be65c(_0x582c30);}var _0x217c92=typeof crypto<'u'&&crypto[_0x30a57b(0x528)]&&crypto[_0x30a57b(0x528)][_0x30a57b(0x3f4)](crypto);const _0x5252b6={'randomUUID':_0x217c92};function _0xa860b1(_0x201804,_0x7e8a8f,_0x116524){const _0x460213=_0x30a57b;if(_0x5252b6[_0x460213(0x528)]&&!_0x7e8a8f&&!_0x201804)return _0x5252b6[_0x460213(0x528)]();_0x201804=_0x201804||{};var _0x5effd3=_0x201804[_0x460213(0x469)]||(_0x201804[_0x460213(0x27b)]||_0x1c1337)();return _0x5effd3[0x6]=_0x5effd3[0x6]&0xf|0x40,_0x5effd3[0x8]=_0x5effd3[0x8]&0x3f|0x80,_0x1364c1(_0x5effd3);}var _0x1e93fc=Object[_0x30a57b(0x26e)],_0x431d22=Object['getOwnPropertyDescriptor'],_0x1a3404=(_0x203429,_0x276ef3,_0x47a2ad,_0x44f2d2)=>{const _0x2c4bc9=_0x30a57b;for(var _0x19caee=_0x44f2d2>0x1?void 0x0:_0x44f2d2?_0x431d22(_0x276ef3,_0x47a2ad):_0x276ef3,_0x51aa0c=_0x203429[_0x2c4bc9(0x226)]-0x1,_0x342337;_0x51aa0c>=0x0;_0x51aa0c--)(_0x342337=_0x203429[_0x51aa0c])&&(_0x19caee=(_0x44f2d2?_0x342337(_0x276ef3,_0x47a2ad,_0x19caee):_0x342337(_0x19caee))||_0x19caee);return _0x44f2d2&&_0x19caee&&_0x1e93fc(_0x276ef3,_0x47a2ad,_0x19caee),_0x19caee;},_0x22e234=(_0x530e6a,_0x50cde6)=>(_0x51d157,_0x406bf3)=>_0x50cde6(_0x51d157,_0x406bf3,_0x530e6a);let _0x11174e=class{constructor(_0x2f81b6,_0x4b2773,_0x519ec0){const _0x11b7ff=_0x30a57b;this['_injector']=_0x2f81b6,this[_0x11b7ff(0x232)]=_0x4b2773,this['_renderManagerService']=_0x519ec0;}['transformIMECache'](_0x4fedfe){const _0xa0de2a=_0x30a57b;this[_0xa0de2a(0x439)](_0x4fedfe),this[_0xa0de2a(0x522)](_0x4fedfe);}[_0x30a57b(0x2d8)](_0x219d10){const _0x164342=_0x30a57b,{unitID:_0x17650a}=_0x219d10,_0x4d4420=this[_0x164342(0x461)]['getRenderById'](_0x17650a)[_0x164342(0x386)](_0x5a2573[_0x164342(0x503)]),{redoCache:_0x1e9e2e}=_0x4d4420[_0x164342(0x4c1)]();if(_0x1e9e2e[_0x164342(0x226)]===0x0)return _0x219d10;let _0x313212=_0x123ccf[_0x164342(0x2e4)]['deepClone'](_0x219d10[_0x164342(0x3d8)][0x0]);for(let _0x2004c7=0x0;_0x2004c7<_0x1e9e2e[_0x164342(0x226)];_0x2004c7++){const _0x22b9b6={'id':_0x164342(0x16f),'params':{..._0x1e9e2e[_0x2004c7]}},_0x4c109d=this['_transformService'][_0x164342(0x54f)](_0x313212,_0x22b9b6,!0x1);if(_0x44c0c5[_0x164342(0x236)](_0x4c109d))throw _0x4c109d[_0x164342(0x422)];_0x313212=_0x4c109d['m1Prime'];}return{..._0x123ccf[_0x164342(0x2e4)][_0x164342(0x19c)](_0x219d10),'mutations':[_0x313212]};}['_transformUndoRedoStack'](_0x3f556d){const _0x20143a=_0x30a57b,{unitID:_0x120433}=_0x3f556d,_0x40b796=this[_0x20143a(0x461)][_0x20143a(0x4e7)](_0x120433)['with'](_0x5a2573[_0x20143a(0x503)]),{undoCache:_0x29eeb0,redoCache:_0x54b504}=_0x40b796[_0x20143a(0x4c1)]();if(_0x29eeb0['length']===0x0||_0x54b504[_0x20143a(0x226)]===0x0)return;const _0x3bc8e5=[],_0x4cc2d2=[];let _0x2d2629=_0x123ccf[_0x20143a(0x2e4)]['deepClone'](_0x3f556d['mutations'][0x0]),_0x403812=_0x123ccf[_0x20143a(0x2e4)][_0x20143a(0x19c)](_0x3f556d[_0x20143a(0x3d8)][0x0]);for(let _0x5ae497=_0x29eeb0[_0x20143a(0x226)]-0x1;_0x5ae497>=0x0;_0x5ae497--){const _0x215d0e={'id':_0x20143a(0x16f),'params':{..._0x29eeb0[_0x5ae497]}},_0x3e75cc={'id':'doc.mutation.rich-text-editing','params':{..._0x54b504[_0x5ae497]}},_0x31b8b7=this[_0x20143a(0x232)][_0x20143a(0x54f)](_0x2d2629,_0x215d0e,!0x1),_0x5b040b=this[_0x20143a(0x232)][_0x20143a(0x54f)](_0x403812,_0x3e75cc,!0x1);if(_0x44c0c5[_0x20143a(0x236)](_0x31b8b7))throw _0x31b8b7['error'];if(_0x44c0c5[_0x20143a(0x236)](_0x5b040b))throw _0x5b040b[_0x20143a(0x422)];_0x3bc8e5[_0x20143a(0x2af)](_0x31b8b7[_0x20143a(0x571)][_0x20143a(0x240)]),_0x4cc2d2[_0x20143a(0x2af)](_0x5b040b['m2Prime'][_0x20143a(0x240)]),_0x2d2629=_0x31b8b7['m1Prime'],_0x403812=_0x5b040b[_0x20143a(0x46a)];}_0x40b796[_0x20143a(0x4a1)]({'undoCache':_0x3bc8e5,'redoCache':_0x4cc2d2});}[_0x30a57b(0x522)](_0x1bc093){const _0x539b6f=_0x30a57b,{unitID:_0x3dc18d}=_0x1bc093,_0x2309d4=this[_0x539b6f(0x461)][_0x539b6f(0x4e7)](_0x3dc18d)['with'](_0x5a2573[_0x539b6f(0x503)]),_0x13a93a=_0x2309d4['getActiveRange']();if(_0x13a93a==null)return;const _0x459cb8=[{'id':_0x539b6f(0x16f),'params':{'unitId':_0x1bc093[_0x539b6f(0x4e2)],'actions':null,'textRanges':[_0x13a93a]}}],_0x572ea5=this[_0x539b6f(0x232)][_0x539b6f(0x29f)](_0x1bc093,_0x459cb8);if(!_0x44c0c5['isTransformMutationsWithChangesetSuccess'](_0x572ea5))throw _0x572ea5[_0x539b6f(0x422)];const _0x3640f8=_0x572ea5[_0x539b6f(0x571)][0x0][_0x539b6f(0x240)][_0x539b6f(0x183)];Array[_0x539b6f(0x253)](_0x3640f8)&&_0x3640f8[_0x539b6f(0x226)]&&_0x2309d4[_0x539b6f(0x433)](_0x3640f8[0x0]);}};_0x11174e=_0x1a3404([_0x22e234(0x0,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x5a5)])),_0x22e234(0x1,_0x44c0c5[_0x30a57b(0x45a)]),_0x22e234(0x2,_0x38daca[_0x30a57b(0x376)])],_0x11174e);var _0x205454=Object[_0x30a57b(0x26e)],_0x751b97=Object['getOwnPropertyDescriptor'],_0x33e9df=(_0x335bc4,_0x5eb3fb,_0x3fe113,_0xe08fc5)=>{const _0x28e5d9=_0x30a57b;for(var _0x37a032=_0xe08fc5>0x1?void 0x0:_0xe08fc5?_0x751b97(_0x5eb3fb,_0x3fe113):_0x5eb3fb,_0x28c2c0=_0x335bc4[_0x28e5d9(0x226)]-0x1,_0x42c2b9;_0x28c2c0>=0x0;_0x28c2c0--)(_0x42c2b9=_0x335bc4[_0x28c2c0])&&(_0x37a032=(_0xe08fc5?_0x42c2b9(_0x5eb3fb,_0x3fe113,_0x37a032):_0x42c2b9(_0x37a032))||_0x37a032);return _0xe08fc5&&_0x37a032&&_0x205454(_0x5eb3fb,_0x3fe113,_0x37a032),_0x37a032;},_0xb246ea=(_0x411d81,_0x15e8b2)=>(_0x553f30,_0x29b0fe)=>_0x15e8b2(_0x553f30,_0x29b0fe,_0x411d81);_0x3ba5f7[_0x30a57b(0x19a)]=class extends _0x123ccf[_0x30a57b(0x353)]{constructor(_0x343e77,_0x2a773b,_0x308256,_0x490840,_0x715343){const _0x2513c9=_0x30a57b;super(),_0x141732(this,'_cachedData',new Map()),_0x141732(this,'_saveTaskMap',new Map()),_0x141732(this,_0x2513c9(0x44c),!0x1),(this['_configService']=_0x343e77,this[_0x2513c9(0x1c1)]=_0x2a773b,this[_0x2513c9(0x3c9)]=_0x308256,this[_0x2513c9(0x355)]=_0x490840,this[_0x2513c9(0x4aa)]=_0x715343,this[_0x2513c9(0x247)]());}[_0x30a57b(0x380)](){const _0x20b82b=_0x30a57b;this[_0x20b82b(0x44c)]=!0x0;}['enableLocalCache'](){const _0x5e5884=_0x30a57b;this[_0x5e5884(0x44c)]=!0x1;}['dispose'](){const _0x57df74=_0x30a57b;this[_0x57df74(0x4cf)]()[_0x57df74(0x4f7)](()=>super[_0x57df74(0x33e)]());}async[_0x30a57b(0x3fe)](_0x108822){const _0x255804=_0x30a57b;return this[_0x255804(0x44c)]?null:this[_0x255804(0x1c1)][_0x255804(0x2ac)](_0xe5674d(_0x108822));}async[_0x30a57b(0x535)](_0x452d05,_0x4aedec){const _0x4e73ee=_0x30a57b;return!!this[_0x4e73ee(0x1c1)]['setItem'](_0x452d05,_0x4aedec);}[_0x30a57b(0x53f)](_0x514ce9,_0xd76a49,_0x2ece31,_0x10d9e8){const _0x4b7119=_0x30a57b,_0xfc51b7=this[_0x4b7119(0x4aa)][_0x4b7119(0x18b)](_0x514ce9);this[_0x4b7119(0x369)]['set'](_0x514ce9,{'unitID':_0x514ce9,'type':_0xd76a49,'awaitingChangeset':_0x2ece31,'mutations':_0x10d9e8,'rev':_0xfc51b7}),this['_saveTaskMap'][_0x4b7119(0x4bf)](_0x514ce9)||this[_0x4b7119(0x222)](_0x514ce9);}[_0x30a57b(0x222)](_0x108a18){const _0x1da505=_0x30a57b,_0x5bc98d=this[_0x1da505(0x442)]();_0x5bc98d===0x0?this[_0x1da505(0x2ea)](_0x108a18):this[_0x1da505(0x3e0)][_0x1da505(0x3be)](_0x108a18,setTimeout(()=>this[_0x1da505(0x2ea)](_0x108a18),_0x5bc98d));}[_0x30a57b(0x442)](){const _0x56e2ab=_0x30a57b;var _0x100aba;return(_0x100aba=this['_configService'][_0x56e2ab(0x569)](_0x36abb0))!=null?_0x100aba:0x3e8;}[_0x30a57b(0x2ea)](_0x5a3192){const _0x23d9ce=_0x30a57b,_0x34ea1c=this[_0x23d9ce(0x3e0)][_0x23d9ce(0x3c0)](_0x5a3192);return _0x34ea1c!==void 0x0&&window['clearTimeout'](_0x34ea1c),this[_0x23d9ce(0x1c1)][_0x23d9ce(0x4ea)](_0xe5674d(_0x5a3192),this['_cachedData'][_0x23d9ce(0x3c0)](_0x5a3192))['then'](()=>this[_0x23d9ce(0x3e0)][_0x23d9ce(0x55c)](_0x5a3192));}async[_0x30a57b(0x4cf)](){const _0x2258fc=_0x30a57b,_0x5e076f=[];this[_0x2258fc(0x3e0)][_0x2258fc(0x3d0)]((_0x581847,_0x56dd10)=>{const _0x18988f=_0x2258fc;window[_0x18988f(0x471)](_0x581847),_0x5e076f['push'](this['_saveCache'](_0x56dd10)[_0x18988f(0x4f7)](()=>{const _0x5cb0f5=_0x18988f;this[_0x5cb0f5(0x3e0)][_0x5cb0f5(0x55c)](_0x56dd10);}));}),await Promise[_0x2258fc(0x587)](_0x5e076f);}[_0x30a57b(0x247)](){const _0x2fa491=_0x30a57b;this[_0x2fa491(0x285)](this[_0x2fa491(0x3c9)][_0x2fa491(0x47d)](()=>{const _0x4a4ddc=_0x2fa491;if(this[_0x4a4ddc(0x3e0)][_0x4a4ddc(0x17f)])return this['_localeService']['t']('collaboration-client.offline-data-not-saved');}));}},_0x3ba5f7[_0x30a57b(0x19a)]=_0x33e9df([_0xb246ea(0x0,_0x123ccf[_0x30a57b(0x227)]),_0xb246ea(0x1,_0x123ccf[_0x30a57b(0x282)]),_0xb246ea(0x2,_0x4986bd[_0x30a57b(0x1cd)]),_0xb246ea(0x3,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x45f)])),_0xb246ea(0x4,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5['RevisionService']))],_0x3ba5f7[_0x30a57b(0x19a)]);function _0xe5674d(_0x206a7b){return'unit-cache-'+_0x206a7b;}var _0x4e5658=Object[_0x30a57b(0x26e)],_0x2dc2c9=Object[_0x30a57b(0x5ab)],_0x1469d2=(_0x586569,_0x579f90,_0x3f11ca,_0x55251c)=>{for(var _0x4dc5cf=_0x55251c>0x1?void 0x0:_0x55251c?_0x2dc2c9(_0x579f90,_0x3f11ca):_0x579f90,_0x200d5e=_0x586569['length']-0x1,_0x438778;_0x200d5e>=0x0;_0x200d5e--)(_0x438778=_0x586569[_0x200d5e])&&(_0x4dc5cf=(_0x55251c?_0x438778(_0x579f90,_0x3f11ca,_0x4dc5cf):_0x438778(_0x4dc5cf))||_0x4dc5cf);return _0x55251c&&_0x4dc5cf&&_0x4e5658(_0x579f90,_0x3f11ca,_0x4dc5cf),_0x4dc5cf;},_0x5e3952=(_0x12c3cd,_0x4b1c33)=>(_0x1aed8e,_0x585f8b)=>_0x4b1c33(_0x1aed8e,_0x585f8b,_0x12c3cd);function _0x4a6f34(_0x33e727){const _0x1a8638=_0x30a57b,{unitID:_0x4d13e0,mutations:_0x4a6dc5}=_0x33e727;return{'unitId':_0x4d13e0,'subUnitId':_0x4a6dc5[0x0][_0x1a8638(0x240)][_0x1a8638(0x231)]};}let _0x4bc0e1=class{constructor(_0x4ed391,_0xc4cbf5,_0x5ed39a){const _0x3fdded=_0x30a57b;this[_0x3fdded(0x179)]=_0x4ed391,this['_transformService']=_0xc4cbf5,this['_instanceService']=_0x5ed39a;}['transformSelections'](_0x4f75de){const _0x3dbc4f=_0x30a57b;var _0x3bd776,_0x35fd77,_0x28c537,_0x7e8f2c;const _0x250362=this[_0x3dbc4f(0x179)][_0x3dbc4f(0x3c0)](_0x4560f7[_0x3dbc4f(0x1c2)]),{unitId:_0x27fa49,subUnitId:_0x41d7a8}=_0x4a6f34(_0x4f75de),_0x1ebe19=_0x250362['getWorkbookSelections'](_0x27fa49)[_0x3dbc4f(0x585)](),_0x5e0f2a=(_0x35fd77=(_0x3bd776=this['_instanceService'][_0x3dbc4f(0x4d8)](_0x27fa49))==null?void 0x0:_0x3bd776[_0x3dbc4f(0x454)]())==null?void 0x0:_0x35fd77[_0x3dbc4f(0x517)]();if(_0x1ebe19[_0x3dbc4f(0x226)]===0x0||!_0x27fa49||!_0x41d7a8)return;const _0x1cc14b=[{'id':_0x4560f7[_0x3dbc4f(0x4e8)]['id'],'params':{'unitId':_0x27fa49,'subUnitId':_0x5e0f2a,'selections':_0x123ccf[_0x3dbc4f(0x2e4)][_0x3dbc4f(0x19c)](_0x1ebe19)}}],_0x5c0303=this[_0x3dbc4f(0x232)][_0x3dbc4f(0x29f)](_0x4f75de,_0x1cc14b);if(!_0x44c0c5[_0x3dbc4f(0x542)](_0x5c0303))throw _0x5c0303['error'];const _0x4e27ba=(_0x7e8f2c=(_0x28c537=_0x5c0303[_0x3dbc4f(0x571)][0x0])==null?void 0x0:_0x28c537[_0x3dbc4f(0x240)])==null?void 0x0:_0x7e8f2c['selections'];if(Array['isArray'](_0x4e27ba)&&_0x4e27ba['length']){if(_0x4e27ba[_0x3dbc4f(0x226)]===_0x1cc14b[0x0][_0x3dbc4f(0x240)]['selections'][_0x3dbc4f(0x226)]&&_0x4e27ba[_0x3dbc4f(0x1ff)]((_0x5cfcec,_0x3fdc94)=>_0x123ccf[_0x3dbc4f(0x2d3)][_0x3dbc4f(0x17a)](_0x5cfcec[_0x3dbc4f(0x1ae)],_0x1cc14b[0x0][_0x3dbc4f(0x240)][_0x3dbc4f(0x36c)][_0x3fdc94]['range'])))return;this['_injector'][_0x3dbc4f(0x3c0)](_0x123ccf[_0x3dbc4f(0x25c)])[_0x3dbc4f(0x2d0)](_0x4560f7[_0x3dbc4f(0x4e8)]['id'],{'unitId':_0x27fa49,'subUnitId':_0x5e0f2a,'selections':_0x4e27ba});}}};_0x4bc0e1=_0x1469d2([_0x5e3952(0x0,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x5a5)])),_0x5e3952(0x1,_0x44c0c5[_0x30a57b(0x45a)]),_0x5e3952(0x2,_0x123ccf['IUniverInstanceService'])],_0x4bc0e1);const _0x3849e3=_0x123ccf[_0x30a57b(0x3c5)](_0x30a57b(0x513));var _0x1a6bb1=(_0x12a85e=>(_0x12a85e[_0x12a85e[_0x30a57b(0x424)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x12a85e[_0x12a85e[_0x30a57b(0x1a2)]=0x1]='OTHER_CLIENTS_EDITING',_0x12a85e))(_0x1a6bb1||{});const _0x37999e=0x7530,_0x4519b0=_0x30a57b(0x3a0);class _0x5e9bf5 extends _0x123ccf[_0x30a57b(0x353)]{constructor(){const _0x46ff50=_0x30a57b;super(),_0x141732(this,'_id',_0x123ccf['Tools'][_0x46ff50(0x389)]()),_0x141732(this,_0x46ff50(0x34d),new Set()),_0x141732(this,'_unitOnClients',new Map()),_0x141732(this,_0x46ff50(0x4c4),null),_0x141732(this,'_clearOtherTimers',new Map()),_0x141732(this,'_unitStatus',new Map()),this['_init']();}[_0x30a57b(0x33e)](){const _0x3f66fc=_0x30a57b;super[_0x3f66fc(0x33e)](),this[_0x3f66fc(0x4fb)][_0x3f66fc(0x3d0)]((_0x448218,_0x34e790)=>this[_0x3f66fc(0x2be)](_0x34e790)),this[_0x3f66fc(0x4c4)]&&window['clearInterval'](this[_0x3f66fc(0x4c4)]);}[_0x30a57b(0x475)](_0x80de0){const _0x4b5741=_0x30a57b;return this[_0x4b5741(0x49d)](_0x80de0)[_0x4b5741(0x243)](_0x4f561c[_0x4b5741(0x279)]());}[_0x30a57b(0x500)](_0x11e4ad){const _0x188ab1=_0x30a57b;this[_0x188ab1(0x34d)]['size']===0x0&&this['_scheduleHeartbeat'](),this[_0x188ab1(0x34d)][_0x188ab1(0x225)](_0x11e4ad),this[_0x188ab1(0x444)]({'type':0x0,'memberID':this[_0x188ab1(0x31e)],'unitIDs':[_0x11e4ad],'isForwarded':!0x1});}[_0x30a57b(0x2d9)](_0x2641de){const _0xbe80e9=_0x30a57b;this[_0xbe80e9(0x34d)][_0xbe80e9(0x55c)](_0x2641de),this[_0xbe80e9(0x34d)][_0xbe80e9(0x17f)]===0x0&&this[_0xbe80e9(0x4c4)]&&window[_0xbe80e9(0x16d)](this[_0xbe80e9(0x4c4)]);}[_0x30a57b(0x23a)](){const _0x3f3b13=_0x30a57b;this[_0x3f3b13(0x285)](_0x123ccf[_0x3f3b13(0x388)](_0x4f561c[_0x3f3b13(0x586)](window,_0x3f3b13(0x185))[_0x3f3b13(0x383)](_0x37857a=>{const _0x36c8da=_0x3f3b13;if(_0x37857a[_0x36c8da(0x214)]!==_0x4519b0||!_0x37857a['newValue'])return;const _0x51ef55=JSON[_0x36c8da(0x56e)](_0x37857a[_0x36c8da(0x363)]);this[_0x36c8da(0x4dd)](_0x51ef55);}))),window[_0x3f3b13(0x305)](_0x3f3b13(0x359),()=>this[_0x3f3b13(0x444)]({'type':0x1,'memberID':this[_0x3f3b13(0x31e)],'unitIDs':Array[_0x3f3b13(0x52c)](this[_0x3f3b13(0x34d)])}));}['_handleEvent'](_0x21d416){const _0x563ead=_0x30a57b;switch(_0x21d416['type']){case 0x0:this[_0x563ead(0x400)](_0x21d416);break;case 0x1:this[_0x563ead(0x302)](_0x21d416);break;case 0x2:this[_0x563ead(0x46c)](_0x21d416);break;}}['_handleJoinEvent'](_0x37a0bd){const _0x53779a=_0x30a57b,{unitIDs:_0x147732,memberID:_0x274648,isForwarded:_0x3eccfa}=_0x37a0bd;_0x147732[_0x53779a(0x3d0)](_0x10b9ff=>{const _0x5a7ed7=_0x53779a;if(!_0x3eccfa&&this['_unitOnClients']['has'](_0x10b9ff)&&this[_0x5a7ed7(0x49d)](_0x10b9ff)[_0x5a7ed7(0x595)](0x1),!this[_0x5a7ed7(0x501)][_0x5a7ed7(0x4bf)](_0x10b9ff)||!this[_0x5a7ed7(0x501)][_0x5a7ed7(0x3c0)](_0x10b9ff)[_0x5a7ed7(0x4bf)](_0x274648)){const _0xbb7ddd=this['_unitOnClients'][_0x5a7ed7(0x3c0)](_0x10b9ff)||new Set();_0xbb7ddd['add'](_0x274648),this[_0x5a7ed7(0x501)][_0x5a7ed7(0x3be)](_0x10b9ff,_0xbb7ddd),this[_0x5a7ed7(0x2b3)](_0x274648);}}),_0x3eccfa||this[_0x53779a(0x444)]({'type':0x0,'memberID':this[_0x53779a(0x31e)],'unitIDs':[...this[_0x53779a(0x34d)]],'isForwarded':!0x0});}[_0x30a57b(0x2b3)](_0x4af3fe){const _0x27d0cc=_0x30a57b;this[_0x27d0cc(0x2be)](_0x4af3fe);const _0x38054b=window[_0x27d0cc(0x2a3)](()=>{const _0x3b228e=_0x27d0cc;this['_unitOnClients'][_0x3b228e(0x3d0)](_0x3c3b4d=>{_0x3c3b4d['delete'](_0x4af3fe);});},_0x37999e*0x2);this['_clearOtherTimers'][_0x27d0cc(0x3be)](_0x4af3fe,_0x38054b);}['_removeClearOtherTimer'](_0x2a4016){const _0x16eeb4=_0x30a57b;if(this[_0x16eeb4(0x4fb)][_0x16eeb4(0x4bf)](_0x2a4016)){const _0x8270b3=this[_0x16eeb4(0x4fb)][_0x16eeb4(0x3c0)](_0x2a4016);_0x8270b3&&window[_0x16eeb4(0x471)](_0x8270b3),this[_0x16eeb4(0x4fb)][_0x16eeb4(0x3be)](_0x2a4016,null);}}[_0x30a57b(0x302)](_0xd96e91){const _0x39c71a=_0x30a57b,{memberID:_0x44aaf3,unitIDs:_0x3f379c}=_0xd96e91;_0x3f379c[_0x39c71a(0x3d0)](_0x366282=>{const _0x208955=_0x39c71a;var _0x2b536b;const _0x3c49e3=this[_0x208955(0x501)]['get'](_0x366282);_0x3c49e3&&(_0x3c49e3[_0x208955(0x55c)](_0x44aaf3),(_0x2b536b=this[_0x208955(0x49d)](_0x366282))==null||_0x2b536b[_0x208955(0x595)](_0x3c49e3[_0x208955(0x17f)]===0x0?0x0:0x1));}),this[_0x39c71a(0x2be)](_0x44aaf3);}[_0x30a57b(0x46c)](_0x1a51b8){const _0x22613b=_0x30a57b;this[_0x22613b(0x2b3)](_0x1a51b8[_0x22613b(0x591)]);}[_0x30a57b(0x444)](_0x3209d9){localStorage['setItem'](_0x4519b0,JSON['stringify'](_0x3209d9));}[_0x30a57b(0x370)](){const _0x9c6860=_0x30a57b;this['_heartbeatTimer']=window[_0x9c6860(0x4b1)](()=>{const _0x5b11a8=_0x9c6860;this[_0x5b11a8(0x444)]({'type':0x2,'memberID':this[_0x5b11a8(0x31e)]});},_0x37999e);}['_ensureSubject'](_0x285c95){const _0x1bf05b=_0x30a57b;return this[_0x1bf05b(0x28a)][_0x1bf05b(0x4bf)](_0x285c95)||this['_unitStatus'][_0x1bf05b(0x3be)](_0x285c95,new _0x4f561c['BehaviorSubject'](0x0)),this['_unitStatus'][_0x1bf05b(0x3c0)](_0x285c95);}}function _0x5555af(_0x2b5147){const _0x5566ce=_0x30a57b;let _0x73c749='';for(const _0x319560 of _0x2b5147){const {startOffset:_0x2dea2e,endOffset:_0x1ea0cd,isActive:_0x211b35}=_0x319560;_0x73c749[_0x5566ce(0x226)]&&(_0x73c749+=','),_0x73c749+=_0x2dea2e+':'+_0x1ea0cd+':'+(_0x211b35?'1':'0');}return _0x73c749;}function _0x27ca9d(_0x14ed67){const _0x438692=_0x30a57b,_0x145e40=_0x14ed67[_0x438692(0x2fb)](','),_0x4a5376=[];for(const _0x54d661 of _0x145e40){const [_0x45b64b,_0x2cd827,_0x3f3d05]=_0x54d661['split'](':');_0x4a5376[_0x438692(0x4cc)]({'startOffset':Number(_0x45b64b),'endOffset':Number(_0x2cd827),'collapsed':_0x45b64b===_0x2cd827,'isActive':_0x3f3d05==='1'});}return _0x4a5376[_0x438692(0x2da)](_0x5de4bf=>_0x5de4bf['isActive'])||(_0x4a5376[0x0][_0x438692(0x237)]=!0x0),_0x4a5376;}class _0x200261 extends _0x123ccf[_0x30a57b(0x24a)]{constructor(){const _0x403a87=_0x30a57b;super(...arguments),_0x141732(this,_0x403a87(0x57a),new _0x4f561c[(_0x403a87(0x22d))](null)),_0x141732(this,_0x403a87(0x2b6),this[_0x403a87(0x57a)][_0x403a87(0x29e)]());}[_0x30a57b(0x323)](_0x5254e5){const _0x1c478d=_0x30a57b,{unitID:_0x2c2933,memberID:_0x14df14,textRanges:_0x510162}=_0x5254e5,_0x3fce89=_0x5555af(_0x510162),_0x2d3bc8={'unitID':_0x2c2933,'memberID':_0x14df14,'selection':_0x3fce89};this[_0x1c478d(0x57a)]['next'](_0x2d3bc8);}}var _0xe61613=Object[_0x30a57b(0x26e)],_0x43984c=Object[_0x30a57b(0x5ab)],_0x54636b=(_0x17b551,_0x85cca3,_0x53af49,_0x31d542)=>{const _0x40b40b=_0x30a57b;for(var _0x4a8b4c=_0x31d542>0x1?void 0x0:_0x31d542?_0x43984c(_0x85cca3,_0x53af49):_0x85cca3,_0x32bc93=_0x17b551[_0x40b40b(0x226)]-0x1,_0x2f6654;_0x32bc93>=0x0;_0x32bc93--)(_0x2f6654=_0x17b551[_0x32bc93])&&(_0x4a8b4c=(_0x31d542?_0x2f6654(_0x85cca3,_0x53af49,_0x4a8b4c):_0x2f6654(_0x4a8b4c))||_0x4a8b4c);return _0x31d542&&_0x4a8b4c&&_0xe61613(_0x85cca3,_0x53af49,_0x4a8b4c),_0x4a8b4c;},_0x244787=(_0x1aeec6,_0x41f24c)=>(_0x62a8fb,_0xe546d0)=>_0x41f24c(_0x62a8fb,_0xe546d0,_0x1aeec6);let _0x495829=class{constructor(_0x2f9b88,_0x43f79b){const _0x264972=_0x30a57b;this['_injector']=_0x2f9b88,this[_0x264972(0x232)]=_0x43f79b;}[_0x30a57b(0x387)](_0x5dafd6){const _0x4c925f=_0x30a57b;var _0x77ad79;const _0x4c149c=this[_0x4c925f(0x179)]['get'](_0x4f69d6['DocSelectionManagerService']),_0x15b340=(_0x77ad79=_0x4c149c[_0x4c925f(0x3e9)]())!=null?_0x77ad79:[];if(_0x15b340[_0x4c925f(0x226)]===0x0)return;const _0x2097c7=[{'id':_0x4c925f(0x16f),'params':{'unitId':_0x5dafd6[_0x4c925f(0x4e2)],'actions':null,'textRanges':_0x15b340}}],_0x3d2b6c=this[_0x4c925f(0x232)]['transformMutationsWithChangeset'](_0x5dafd6,_0x2097c7);if(!_0x44c0c5[_0x4c925f(0x542)](_0x3d2b6c))throw _0x3d2b6c[_0x4c925f(0x422)];const _0x147f1f=_0x3d2b6c[_0x4c925f(0x571)][0x0][_0x4c925f(0x240)]['textRanges'];Array[_0x4c925f(0x253)](_0x147f1f)&&_0x147f1f[_0x4c925f(0x226)]&&_0x4c149c[_0x4c925f(0x378)](_0x147f1f,!0x1);}};_0x495829=_0x54636b([_0x244787(0x0,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x244787(0x1,_0x44c0c5[_0x30a57b(0x45a)])],_0x495829);const _0xe00f4=new Set([_0x4560f7['InsertSheetMutation']['id']]);function _0x5044f6(_0x43dd8d,_0x5e11bd,_0x13168d,_0x1f127e,_0x228fff){const _0x9bc98f=_0x30a57b;var _0x5d6a8c,_0xd5ad4b,_0x13aa2f,_0x36a02b;const _0x39d33d=[];for(const _0x3ed3c0 of _0x43dd8d)if(_0xe00f4[_0x9bc98f(0x4bf)](_0x3ed3c0['id'])){if(_0x39d33d[_0x9bc98f(0x226)]>0x0)break;_0x39d33d[_0x9bc98f(0x4cc)](_0x3ed3c0);break;}else _0x39d33d['push'](_0x3ed3c0);const _0x4427c2=(_0xd5ad4b=(_0x5d6a8c=_0x228fff[_0x9bc98f(0x1af)]())==null?void 0x0:_0x5d6a8c[_0x9bc98f(0x19e)])!=null?_0xd5ad4b:_0x9bc98f(0x16a),_0x4102a2=(_0x36a02b=(_0x13aa2f=_0x228fff[_0x9bc98f(0x1af)]())==null?void 0x0:_0x13aa2f[_0x9bc98f(0x591)])!=null?_0x36a02b:_0x9bc98f(0x16a);return{'changeset':{'unitID':_0x5e11bd,'type':_0x44c0c5['mapDocumentTypeToUniverType'](_0x13168d[_0x9bc98f(0x490)](_0x5e11bd)),'baseRev':_0x1f127e[_0x9bc98f(0x18b)](_0x5e11bd),'revision':0x0,'userID':_0x4427c2,'memberID':_0x4102a2,'mutations':_0x39d33d},'pendingMutations':_0x43dd8d['slice'](_0x39d33d[_0x9bc98f(0x226)])};}function _0x1ba07a(_0x4823bd,_0x323b25,_0x312d15,_0x428c27,_0x34a530){const _0x4817b9=_0x30a57b;var _0xbe51c4,_0x3dd907,_0x2006b1,_0x8248ab;const _0x2fe0a0=[_0x4823bd[_0x4817b9(0x4cb)]((_0x2d1fed,_0x3095ba)=>{const _0x36c354=_0x4817b9;var _0x1ea3f5;const {id:_0x528070}=_0x2d1fed,{id:_0x56cb11,type:_0x3f1a5e}=_0x3095ba,_0xa15a43=(_0x1ea3f5=_0x2d1fed[_0x36c354(0x240)])!=null?_0x1ea3f5:{'actions':null},_0x580070=_0x3095ba[_0x36c354(0x240)];if(_0x528070&&_0x528070!==_0x56cb11)throw new Error(_0x36c354(0x47e)+_0x528070+'\x20-\x20'+_0x56cb11+'.');return{..._0x2d1fed,'id':_0x56cb11,'type':_0x3f1a5e,'params':{'unitId':_0x580070[_0x36c354(0x432)],'textRanges':_0x580070[_0x36c354(0x183)],'actions':_0x123ccf[_0x36c354(0x22c)][_0x36c354(0x332)](_0xa15a43[_0x36c354(0x48d)],_0x580070['actions'])}};},{})],_0x127186=(_0x3dd907=(_0xbe51c4=_0x34a530[_0x4817b9(0x1af)]())==null?void 0x0:_0xbe51c4[_0x4817b9(0x19e)])!=null?_0x3dd907:'unknown',_0x1a72ce=(_0x8248ab=(_0x2006b1=_0x34a530[_0x4817b9(0x1af)]())==null?void 0x0:_0x2006b1[_0x4817b9(0x591)])!=null?_0x8248ab:'unknown';return{'changeset':{'unitID':_0x323b25,'type':_0x44c0c5[_0x4817b9(0x189)](_0x312d15[_0x4817b9(0x490)](_0x323b25)),'baseRev':_0x428c27['getCurrentRevOfUnit'](_0x323b25),'revision':0x0,'userID':_0x127186,'memberID':_0x1a72ce,'mutations':_0x2fe0a0},'pendingMutations':[]};}function _0x2b6edf(_0x19740b,_0x3e4e41){const _0x3c5ecd=_0x30a57b,_0xbcdf35=new _0x4f561c[(_0x3c5ecd(0x53d))](0x1);return setTimeout(()=>_0xbcdf35[_0x3c5ecd(0x595)](_0x3e4e41),_0x19740b),_0xbcdf35['asObservable']()['pipe'](_0x4f561c['take'](0x1));}const _0x19d05b={'id':_0x4560f7['EmptyMutation']['id'],'type':_0x123ccf[_0x30a57b(0x421)]['MUTATION'],'params':{}};var _0x2ad564=Object[_0x30a57b(0x26e)],_0xaf9278=Object['getOwnPropertyDescriptor'],_0x2a7a2b=(_0x274fcc,_0x2cc780,_0x59876e,_0x18d4a6)=>{const _0x2e81aa=_0x30a57b;for(var _0x253561=_0x18d4a6>0x1?void 0x0:_0x18d4a6?_0xaf9278(_0x2cc780,_0x59876e):_0x2cc780,_0x2e336b=_0x274fcc[_0x2e81aa(0x226)]-0x1,_0x3dcab9;_0x2e336b>=0x0;_0x2e336b--)(_0x3dcab9=_0x274fcc[_0x2e336b])&&(_0x253561=(_0x18d4a6?_0x3dcab9(_0x2cc780,_0x59876e,_0x253561):_0x3dcab9(_0x253561))||_0x253561);return _0x18d4a6&&_0x253561&&_0x2ad564(_0x2cc780,_0x59876e,_0x253561),_0x253561;},_0xc51d84=(_0x15c920,_0x2c2f31)=>(_0x3564dc,_0xa3cb26)=>_0x2c2f31(_0x3564dc,_0xa3cb26,_0x15c920),_0x10e907=(_0x305001=>(_0x305001[_0x30a57b(0x435)]=_0x30a57b(0x1fd),_0x305001['SYNCED']=_0x30a57b(0x55f),_0x305001[_0x30a57b(0x2b8)]=_0x30a57b(0x333),_0x305001[_0x30a57b(0x319)]=_0x30a57b(0x529),_0x305001[_0x30a57b(0x199)]='awaiting_with_pending',_0x305001[_0x30a57b(0x1c6)]=_0x30a57b(0x1fc),_0x305001['CONFLICT']='conflict',_0x305001[_0x30a57b(0x311)]=_0x30a57b(0x1ef),_0x305001))(_0x10e907||{});const _0xc53080=0xea60;class _0x1e1577{constructor(_0x43cd8d,_0x29121d,_0xa1dbc7,_0x35cc3c,_0x31d727,_0x1fadb9,_0x22a17f,_0x8011eb,_0x4b0616){const _0x4c0836=_0x30a57b;_0x141732(this,_0x4c0836(0x445),null),_0x141732(this,_0x4c0836(0x278),[]),(this[_0x4c0836(0x4e2)]=_0x43cd8d,this[_0x4c0836(0x20e)]=_0x29121d,this[_0x4c0836(0x29a)]=_0x31d727,this[_0x4c0836(0x2b7)]=_0x1fadb9,this['_undoRedoService']=_0x22a17f,this[_0x4c0836(0x4aa)]=_0x8011eb,this[_0x4c0836(0x4c0)]=_0x4b0616,this[_0x4c0836(0x445)]=_0xa1dbc7,this[_0x4c0836(0x278)]=_0x35cc3c);}['_checkMissing'](_0x278eb4){const _0x468607=_0x30a57b,_0x18f7e0=this[_0x468607(0x4aa)][_0x468607(0x18b)](this[_0x468607(0x4e2)]);return _0x278eb4['revision']>_0x18f7e0+0x1?(this[_0x468607(0x29a)][_0x468607(0x34e)]({'from':_0x18f7e0,'to':_0x278eb4[_0x468607(0x463)]-0x1}),!0x0):!0x1;}[_0x30a57b(0x4c7)](_0x5ccf65){const _0x362407=_0x30a57b;this['_undoRedoService'][_0x362407(0x184)](this['unitID'],_0x5ccf65);}[_0x30a57b(0x39b)](_0x33f5e9){const _0x178a6d=_0x30a57b;var _0x7d5f6d,_0x271bc9;(_0x271bc9=(_0x7d5f6d=this[_0x178a6d(0x29a)])[_0x178a6d(0x46f)])==null||_0x271bc9[_0x178a6d(0x563)](_0x7d5f6d,_0x33f5e9);}[_0x30a57b(0x2e0)](_0x1c1bc2){const _0xa3b2ad=_0x30a57b;var _0x331927,_0x30b8db;return(_0x30b8db=(_0x331927=this[_0xa3b2ad(0x29a)])[_0xa3b2ad(0x3d1)])==null?void 0x0:_0x30b8db['call'](_0x331927,_0x1c1bc2);}[_0x30a57b(0x2c6)](_0x254b5c){const _0x49cf68=_0x30a57b;var _0x403a10,_0x45ff13,_0x101af7;return(_0x101af7=(_0x45ff13=(_0x403a10=this[_0x49cf68(0x29a)])[_0x49cf68(0x187)])==null?void 0x0:_0x45ff13[_0x49cf68(0x563)](_0x403a10,_0x254b5c))!=null?_0x101af7:_0x254b5c;}['_syncEditingCollabCursor'](_0x502c48){const _0xedfc6d=_0x30a57b;var _0x857311,_0x57934c;if(this[_0xedfc6d(0x20e)]===_0x15cd83[_0xedfc6d(0x34c)]){const {unitID:_0x500cf2,mutations:_0x378efc,memberID:_0x5e43b6}=_0x502c48,_0x4955c5=_0x378efc[0x0]['params'][_0xedfc6d(0x183)];Array['isArray'](_0x4955c5)&&_0x4955c5[_0xedfc6d(0x226)]>0x0&&((_0x57934c=(_0x857311=this['_handler'])[_0xedfc6d(0x48c)])==null||_0x57934c[_0xedfc6d(0x563)](_0x857311,{'unitID':_0x500cf2,'memberID':_0x5e43b6,'textRanges':_0x4955c5}));}}[_0x30a57b(0x259)](){const _0x58bad9=_0x30a57b;this[_0x58bad9(0x4c0)][_0x58bad9(0x53f)](this[_0x58bad9(0x4e2)],this[_0x58bad9(0x20e)],this[_0x58bad9(0x445)],this['_pendingMutations']);}[_0x30a57b(0x1dc)](){const _0x1dc256=_0x30a57b;return this[_0x1dc256(0x4aa)][_0x1dc256(0x18b)](this['unitID']);}[_0x30a57b(0x322)](){const _0x1d1603=_0x30a57b;this[_0x1d1603(0x4aa)][_0x1d1603(0x451)](this[_0x1d1603(0x4e2)]);}[_0x30a57b(0x1ee)](_0x4932d8){const _0x6ef28a=_0x30a57b;var _0x14ba85;const _0x44b58d=this[_0x6ef28a(0x2c6)](_0x4932d8),_0x309b47=_0x123ccf[_0x6ef28a(0x50d)](_0x44b58d['mutations'],this[_0x6ef28a(0x2b7)],{'fromCollab':!0x0});if(!_0x309b47['result'])throw _0x309b47[_0x6ef28a(0x422)]instanceof Error?_0x309b47[_0x6ef28a(0x422)]:new Error((_0x14ba85=_0x309b47[_0x6ef28a(0x422)])!=null?_0x14ba85:_0x6ef28a(0x2c1));this['_transformIMECache'](_0x44b58d),this[_0x6ef28a(0x4c7)](_0x4932d8),this[_0x6ef28a(0x39b)](_0x44b58d),this['_syncEditingCollabCursor'](_0x44b58d),this[_0x6ef28a(0x322)]();}}let _0xe80d0c=class extends _0x1e1577{constructor(_0x384ea0,_0x453f24,_0x56e5bd,_0x3f69e1,_0x20c965,_0x61664c,_0x4f242e,_0x1929b9,_0x182a55,_0x597e8b){const _0x2e844b=_0x30a57b;super(_0x384ea0,_0x453f24,null,[],_0x56e5bd,_0x1929b9,_0x4f242e,_0x3f69e1,_0x20c965),_0x141732(this,_0x2e844b(0x3c1),'synced'),(this[_0x2e844b(0x179)]=_0x61664c,this['_logService']=_0x182a55,this['_transformService']=_0x597e8b);}[_0x30a57b(0x41c)](_0x540221){const _0x2aa291=_0x30a57b,_0x29e5a0=this[_0x2aa291(0x179)]['createInstance'](_0x2c64c1,this['unitID'],this[_0x2aa291(0x20e)],[_0x540221],this['_handler']);return _0x29e5a0[_0x2aa291(0x1b3)](),_0x29e5a0[_0x2aa291(0x259)](),_0x29e5a0;}[_0x30a57b(0x560)](_0xe66920){const _0x552f3f=_0x30a57b;if(this[_0x552f3f(0x27f)](_0xe66920))return this[_0x552f3f(0x179)][_0x552f3f(0x496)](_0x4bc04e,this['unitID'],this[_0x552f3f(0x20e)],null,[],null,[_0xe66920],this[_0x552f3f(0x29a)]);try{const _0x2ddb70=this[_0x552f3f(0x232)][_0x552f3f(0x29f)](_0xe66920,[_0x19d05b]);if(_0x44c0c5[_0x552f3f(0x542)](_0x2ddb70)){const {c1Prime:_0x27bd66}=_0x2ddb70;return this['_executeRemoteChangeset'](_0x27bd66),this;}throw _0x2ddb70[_0x552f3f(0x422)];}catch(_0xda0414){return this[_0x552f3f(0x1d5)]['error'](_0xda0414),this['_onConflict'](!0x1);}}[_0x30a57b(0x1f7)](_0x1bfc40){const _0x38ed12=_0x30a57b;return this[_0x38ed12(0x179)][_0x38ed12(0x496)](_0x38bb68,this[_0x38ed12(0x4e2)],this[_0x38ed12(0x20e)],null,[],this[_0x38ed12(0x29a)],_0x1bfc40);}[_0x30a57b(0x597)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x30a57b(0x48f)](){const _0xd19be4=_0x30a57b;throw new Error(_0xd19be4(0x59e));}[_0x30a57b(0x1e3)](){return this;}[_0x30a57b(0x238)](){const _0x2eaa04=_0x30a57b;return this[_0x2eaa04(0x179)][_0x2eaa04(0x496)](_0x378850,this[_0x2eaa04(0x4e2)],this['type'],null,[],this[_0x2eaa04(0x29a)]);}[_0x30a57b(0x426)](){return this;}['resend'](){throw new Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x30a57b(0x328)](){const _0x561f9e=_0x30a57b,_0x3b4092=this['_revisionService'][_0x561f9e(0x18b)](this[_0x561f9e(0x4e2)]);return this['_handler'][_0x561f9e(0x34e)]({'from':_0x3b4092,'to':0x0}),this['_injector'][_0x561f9e(0x496)](_0x4bc04e,this[_0x561f9e(0x4e2)],this['type'],null,[],null,[],this[_0x561f9e(0x29a)]);}};_0xe80d0c=_0x2a7a2b([_0xc51d84(0x3,_0x123ccf['Inject'](_0x44c0c5[_0x30a57b(0x2ff)])),_0xc51d84(0x4,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7['LocalCacheService'])),_0xc51d84(0x5,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0xc51d84(0x6,_0x123ccf['IUndoRedoService']),_0xc51d84(0x7,_0x123ccf[_0x30a57b(0x25c)]),_0xc51d84(0x8,_0x123ccf[_0x30a57b(0x58c)]),_0xc51d84(0x9,_0x44c0c5['ITransformService'])],_0xe80d0c);let _0x2c64c1=class extends _0x1e1577{constructor(_0x371903,_0x1a0255,_0x2de144,_0x5e52f0,_0x1f8058,_0x49990a,_0xce4690,_0x2e4b25,_0x3f4675,_0x4b2f12,_0x485d54,_0x5942eb,_0x1987a9,_0x844d5a){const _0x2708ac=_0x30a57b;super(_0x371903,_0x1a0255,null,_0x2de144,_0x5e52f0,_0x4b2f12,_0x844d5a,_0x49990a,_0xce4690),_0x141732(this,_0x2708ac(0x3c1),_0x2708ac(0x333)),_0x141732(this,_0x2708ac(0x33f),null),_0x141732(this,_0x2708ac(0x2c3),null),(this[_0x2708ac(0x179)]=_0x1f8058,this[_0x2708ac(0x515)]=_0x2e4b25,this['_logService']=_0x3f4675,this['_configService']=_0x485d54,this[_0x2708ac(0x232)]=_0x5942eb,this['_univerInstanceService']=_0x1987a9);}[_0x30a57b(0x41c)](_0x138f33){const _0x2e2d27=_0x30a57b;return this['_pendingMutations'][_0x2e2d27(0x4cc)](_0x138f33),this[_0x2e2d27(0x259)](),this;}[_0x30a57b(0x560)](_0x24a0ca){const _0x56410b=_0x30a57b;if(this[_0x56410b(0x27f)](_0x24a0ca))return this[_0x56410b(0x416)](),this[_0x56410b(0x179)][_0x56410b(0x496)](_0x4bc04e,this['unitID'],this['type'],null,this[_0x56410b(0x278)],null,[_0x24a0ca],this[_0x56410b(0x29a)]);try{const _0x2c52e4=this[_0x56410b(0x232)][_0x56410b(0x29f)](_0x24a0ca,this[_0x56410b(0x278)]);if(_0x44c0c5['isTransformMutationsWithChangesetSuccess'](_0x2c52e4)){const {c1Prime:_0x4c966e,m2Prime:_0x24f690}=_0x2c52e4;this[_0x56410b(0x1ee)](_0x4c966e);const _0x30936f=this['_injector'][_0x56410b(0x496)](_0x2c64c1,this[_0x56410b(0x4e2)],this['type'],_0x24f690,this[_0x56410b(0x29a)]);return this[_0x56410b(0x416)](),_0x30936f[_0x56410b(0x1b3)](this['_scheduleTimestamp']?Math[_0x56410b(0x1a1)](0x0,new Date()[_0x56410b(0x204)]()-this['_scheduleTimestamp']):this[_0x56410b(0x38b)]()),_0x30936f;}throw _0x2c52e4[_0x56410b(0x422)];}catch(_0xa5aa2d){return this[_0x56410b(0x1d5)][_0x56410b(0x422)](_0xa5aa2d),this['_onConflict'](!0x1);}}[_0x30a57b(0x597)](){throw new Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){throw new Error('[PendingState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x30a57b(0x238)](){const _0x1a5ab3=_0x30a57b;return this[_0x1a5ab3(0x416)](),this[_0x1a5ab3(0x179)][_0x1a5ab3(0x496)](_0x378850,this[_0x1a5ab3(0x4e2)],this[_0x1a5ab3(0x20e)],null,this[_0x1a5ab3(0x278)],this[_0x1a5ab3(0x29a)]);}[_0x30a57b(0x426)](){return this;}[_0x30a57b(0x1b3)](_0x3bc200){const _0x1216d7=_0x30a57b,_0x529df4=_0x3bc200!=null?_0x3bc200:this[_0x1216d7(0x38b)]();this[_0x1216d7(0x33f)]=new Date()['getTime'](),this[_0x1216d7(0x2c3)]=window['setTimeout'](()=>{const _0x78f4db=_0x1216d7;this['_clearScheduledTask']();let _0x3833d9=null;switch(this[_0x78f4db(0x20e)]){case _0x15cd83[_0x78f4db(0x356)]:{_0x3833d9=_0x5044f6(this[_0x78f4db(0x278)],this[_0x78f4db(0x4e2)],this['_univerInstanceService'],this[_0x78f4db(0x4aa)],this['_memberService']);break;}case _0x15cd83[_0x78f4db(0x34c)]:{this[_0x78f4db(0x278)][_0x78f4db(0x1ff)](_0x47e421=>_0x47e421['id']===_0x4f69d6[_0x78f4db(0x404)]['id'])?_0x3833d9=_0x1ba07a(this[_0x78f4db(0x278)],this['unitID'],this[_0x78f4db(0x1de)],this[_0x78f4db(0x4aa)],this[_0x78f4db(0x515)]):_0x3833d9=_0x5044f6(this[_0x78f4db(0x278)],this[_0x78f4db(0x4e2)],this[_0x78f4db(0x1de)],this[_0x78f4db(0x4aa)],this[_0x78f4db(0x515)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x78f4db(0x20e)]+_0x78f4db(0x17e));}const {changeset:_0x45111a,pendingMutations:_0x1f8b5b}=_0x3833d9;this[_0x78f4db(0x29a)]['onSendChangeset'](_0x45111a);const _0x1251dc=_0x1f8b5b[_0x78f4db(0x226)]?this[_0x78f4db(0x179)][_0x78f4db(0x496)](_0x26e6e8,this[_0x78f4db(0x4e2)],this[_0x78f4db(0x20e)],_0x45111a,_0x1f8b5b,this[_0x78f4db(0x29a)],void 0x0):this[_0x78f4db(0x179)][_0x78f4db(0x496)](_0x198f49,this[_0x78f4db(0x4e2)],this[_0x78f4db(0x20e)],_0x45111a,this[_0x78f4db(0x29a)]);_0x1251dc[_0x78f4db(0x259)](),this[_0x78f4db(0x29a)][_0x78f4db(0x44e)](this,_0x1251dc);},_0x529df4);}['_getSendChangesetTimeout'](){const _0x238b2a=_0x30a57b;var _0x3b3b42;const _0x17b208=this[_0x238b2a(0x345)][_0x238b2a(0x569)](_0x1d8c7c);return(_0x3b3b42=_0x17b208==null?void 0x0:_0x17b208[_0x238b2a(0x320)])!=null?_0x3b3b42:0x7d0;}[_0x30a57b(0x309)](){const _0xec5cf1=_0x30a57b;throw new Error(_0xec5cf1(0x5ae));}[_0x30a57b(0x416)](){const _0x510487=_0x30a57b;this[_0x510487(0x2c3)]!=null&&(clearTimeout(this[_0x510487(0x2c3)]),this[_0x510487(0x2c3)]=null);}[_0x30a57b(0x1f7)](_0x835a89){const _0x134722=_0x30a57b;return this[_0x134722(0x416)](),this['_injector'][_0x134722(0x496)](_0x38bb68,this['unitID'],this['type'],null,this[_0x134722(0x278)],this['_handler'],_0x835a89);}};_0x2c64c1=_0x2a7a2b([_0xc51d84(0x4,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0xc51d84(0x5,_0x123ccf['Inject'](_0x44c0c5[_0x30a57b(0x2ff)])),_0xc51d84(0x6,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7['LocalCacheService'])),_0xc51d84(0x7,_0x123ccf[_0x30a57b(0x398)](_0x202674)),_0xc51d84(0x8,_0x123ccf[_0x30a57b(0x58c)]),_0xc51d84(0x9,_0x123ccf['ICommandService']),_0xc51d84(0xa,_0x123ccf['IConfigService']),_0xc51d84(0xb,_0x44c0c5['ITransformService']),_0xc51d84(0xc,_0x123ccf[_0x30a57b(0x4c8)]),_0xc51d84(0xd,_0x123ccf['IUndoRedoService'])],_0x2c64c1);let _0x198f49=class extends _0x1e1577{constructor(_0x132895,_0x3f1039,_0x41bfb9,_0x1ab0af,_0x16ef24,_0x4f62a2,_0x423904,_0x5a7b47,_0xf4b2d2,_0x40747d,_0x3f42b9){const _0x4f5913=_0x30a57b;super(_0x132895,_0x3f1039,_0x41bfb9,[],_0x1ab0af,_0x5a7b47,_0x3f42b9,_0x4f62a2,_0x423904),_0x141732(this,_0x4f5913(0x3c1),_0x4f5913(0x529)),_0x141732(this,_0x4f5913(0x43b),0x0),_0x141732(this,_0x4f5913(0x4f0)),_0x141732(this,'_sender'),(this[_0x4f5913(0x179)]=_0x16ef24,this['_logService']=_0xf4b2d2,this[_0x4f5913(0x232)]=_0x40747d);}[_0x30a57b(0x41c)](_0x3b4649){const _0x57e96f=_0x30a57b;this['_clearScheduledTask']();const _0x2cab29=this[_0x57e96f(0x179)][_0x57e96f(0x496)](_0x26e6e8,this['unitID'],this['type'],this[_0x57e96f(0x445)],[_0x3b4649],this[_0x57e96f(0x29a)],this['_resendTimer']);return _0x2cab29['_updateLocalCache'](),_0x2cab29;}[_0x30a57b(0x560)](_0x4ffc67){const _0x4f67f0=_0x30a57b;if(this[_0x4f67f0(0x27f)](_0x4ffc67))return this[_0x4f67f0(0x416)](),this[_0x4f67f0(0x179)][_0x4f67f0(0x496)](_0x4bc04e,this[_0x4f67f0(0x4e2)],this[_0x4f67f0(0x20e)],this[_0x4f67f0(0x445)],[],null,[_0x4ffc67],this['_handler']);try{const _0x2c6f4b=this[_0x4f67f0(0x232)][_0x4f67f0(0x452)]([_0x4ffc67],[this['_awaitingChangeset']],!0x1);if(_0x44c0c5['isTransformChangesetsSuccess'](_0x2c6f4b)){const {c1Prime:_0x2a9ced,c2Prime:_0x41e745}=_0x2c6f4b;this[_0x4f67f0(0x1ee)](_0x2a9ced[0x0]),_0x41e745[0x0][_0x4f67f0(0x3aa)]=this['_getCurrentRevision'](),this[_0x4f67f0(0x416)]();const _0x2c9913=this[_0x4f67f0(0x179)][_0x4f67f0(0x496)](_0x198f49,this['unitID'],this[_0x4f67f0(0x20e)],_0x41e745[0x0],this[_0x4f67f0(0x29a)]);return _0x2c9913['_updateLocalCache'](),_0x2c9913;}return this[_0x4f67f0(0x1f7)](!0x1);}catch(_0x1d0027){return this[_0x4f67f0(0x1d5)]['error'](_0x1d0027),this[_0x4f67f0(0x1f7)](!0x1);}}['onRemoteAck'](_0x2761a1){const _0x583995=_0x30a57b;this[_0x583995(0x416)]();const _0x1e3c3b=this[_0x583995(0x4aa)]['getCurrentRevOfUnit'](this[_0x583995(0x4e2)]);if(_0x2761a1[_0x583995(0x463)]<_0x1e3c3b-0x1)return this;if(this[_0x583995(0x27f)](_0x2761a1))return this[_0x583995(0x179)][_0x583995(0x496)](_0x4bc04e,this['unitID'],this['type'],null,[],this[_0x583995(0x445)],[],this['_handler']);this[_0x583995(0x322)]();const _0xd96bdb=this[_0x583995(0x179)]['createInstance'](_0xe80d0c,this[_0x583995(0x4e2)],this['type'],this[_0x583995(0x29a)]);return _0xd96bdb[_0x583995(0x259)](),_0xd96bdb;}[_0x30a57b(0x48f)](_0xaa389){const _0x20e7d6=_0x30a57b;return this[_0x20e7d6(0x1f7)](!!(_0xaa389!=null&&_0xaa389['isPermissionRej']));}['onRemoteRetry'](_0xd49b82){const _0x3e06c2=_0x30a57b;return this[_0x3e06c2(0x43b)]>_0xc53080?this[_0x3e06c2(0x238)]():(this['_resendTimer']=_0x2b6edf(this['_resendTimeout'],{'timeout':this[_0x3e06c2(0x43b)],'reqId':_0xd49b82[_0x3e06c2(0x29c)]}),this[_0x3e06c2(0x4f6)]=this[_0x3e06c2(0x4f0)]['subscribe'](({reqId:_0x2154bc,timeout:_0x443c77})=>{const _0x2ebf7a=_0x3e06c2;this[_0x2ebf7a(0x1d6)](_0x2154bc,_0x443c77);}),this);}[_0x30a57b(0x238)](){const _0x89365b=_0x30a57b;return this[_0x89365b(0x416)](),this[_0x89365b(0x179)]['createInstance'](_0x378850,this[_0x89365b(0x4e2)],this[_0x89365b(0x20e)],this[_0x89365b(0x445)],[],this[_0x89365b(0x29a)]);}[_0x30a57b(0x426)](){return this;}[_0x30a57b(0x309)](){const _0x3b1a18=_0x30a57b;this[_0x3b1a18(0x29a)]['onSendChangeset'](this[_0x3b1a18(0x445)]);}[_0x30a57b(0x1f7)](_0x5a7d40){const _0x201167=_0x30a57b;return this[_0x201167(0x416)](),this[_0x201167(0x179)][_0x201167(0x496)](_0x38bb68,this['unitID'],this[_0x201167(0x20e)],this[_0x201167(0x445)],[],this[_0x201167(0x29a)],_0x5a7d40);}['_resendWithTimeout'](_0x7da999,_0x1d6c3f){const _0x5925d1=_0x30a57b;var _0x3683cb;_0x7da999===((_0x3683cb=this[_0x5925d1(0x445)])==null?void 0x0:_0x3683cb[_0x5925d1(0x29c)])&&(this[_0x5925d1(0x309)](),this[_0x5925d1(0x43b)]=_0x1d6c3f===0x0?0x3e8:_0x1d6c3f*0x2);}['_clearScheduledTask'](){const _0x25c273=_0x30a57b;var _0x3214e0;(_0x3214e0=this[_0x25c273(0x4f6)])==null||_0x3214e0[_0x25c273(0x3b9)](),this[_0x25c273(0x43b)]=0x0;}};_0x198f49=_0x2a7a2b([_0xc51d84(0x4,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0xc51d84(0x5,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x2ff)])),_0xc51d84(0x6,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x19a)])),_0xc51d84(0x7,_0x123ccf['ICommandService']),_0xc51d84(0x8,_0x123ccf[_0x30a57b(0x58c)]),_0xc51d84(0x9,_0x44c0c5[_0x30a57b(0x45a)]),_0xc51d84(0xa,_0x123ccf[_0x30a57b(0x4ab)])],_0x198f49);let _0x26e6e8=class extends _0x1e1577{constructor(_0x22628b,_0x5eef13,_0x4b3e3b,_0x5632ec,_0x565e66,_0x442491,_0x499cce,_0x1ff780,_0x58dd19,_0x25c442,_0x93024,_0x555fde,_0x12c93e){const _0x2ff918=_0x30a57b;super(_0x22628b,_0x5eef13,_0x4b3e3b,_0x5632ec,_0x565e66,_0x25c442,_0x12c93e,_0x1ff780,_0x58dd19),_0x141732(this,_0x2ff918(0x3c1),_0x2ff918(0x545)),_0x141732(this,_0x2ff918(0x43b),0x0),_0x141732(this,_0x2ff918(0x4f0)),_0x141732(this,_0x2ff918(0x4f6)),(this[_0x2ff918(0x179)]=_0x499cce,this[_0x2ff918(0x1d5)]=_0x93024,this[_0x2ff918(0x232)]=_0x555fde,_0x442491&&(this[_0x2ff918(0x4f0)]=_0x442491,this['_sender']=this[_0x2ff918(0x4f0)]['subscribe'](({reqId:_0x264481,timeout:_0x39f23a})=>{const _0x2e76b0=_0x2ff918;this[_0x2e76b0(0x1d6)](_0x264481,_0x39f23a);})));}['appendMutation'](_0x1d2625){const _0x28fb72=_0x30a57b;return this[_0x28fb72(0x278)]['push'](_0x1d2625),this;}[_0x30a57b(0x560)](_0x4e47ad){const _0x1d0ec1=_0x30a57b;if(this[_0x1d0ec1(0x27f)](_0x4e47ad))return this[_0x1d0ec1(0x416)](),this[_0x1d0ec1(0x179)][_0x1d0ec1(0x496)](_0x4bc04e,this[_0x1d0ec1(0x4e2)],this[_0x1d0ec1(0x20e)],this[_0x1d0ec1(0x445)],this['_pendingMutations'],null,[_0x4e47ad],this['_handler']);try{const _0x298cf6=this['_transformService'][_0x1d0ec1(0x452)]([_0x4e47ad],[this[_0x1d0ec1(0x445)]],!0x1);if(_0x44c0c5[_0x1d0ec1(0x573)](_0x298cf6)){const {c1Prime:_0x22362b,c2Prime:_0x5bb048}=_0x298cf6,_0x1e924b=this[_0x1d0ec1(0x232)][_0x1d0ec1(0x29f)](_0x22362b[0x0],this[_0x1d0ec1(0x278)]);if(_0x44c0c5['isTransformMutationsWithChangesetSuccess'](_0x1e924b)){const {c1Prime:_0x183141,m2Prime:_0x31291b}=_0x1e924b;return this['_executeRemoteChangeset'](_0x183141),_0x5bb048[0x0][_0x1d0ec1(0x3aa)]=this[_0x1d0ec1(0x1dc)](),this[_0x1d0ec1(0x416)](),this[_0x1d0ec1(0x179)][_0x1d0ec1(0x496)](_0x26e6e8,this[_0x1d0ec1(0x4e2)],this[_0x1d0ec1(0x20e)],_0x5bb048[0x0],_0x31291b,this[_0x1d0ec1(0x29a)],void 0x0);}throw _0x1e924b[_0x1d0ec1(0x422)];}throw _0x298cf6[_0x1d0ec1(0x422)];}catch(_0x33e698){return this['_logService'][_0x1d0ec1(0x422)](_0x33e698),this['_onConflict'](!0x1);}}[_0x30a57b(0x597)](_0x1ad9c4){const _0x2ca9ff=_0x30a57b;if(this[_0x2ca9ff(0x416)](),this[_0x2ca9ff(0x27f)](_0x1ad9c4))return this[_0x2ca9ff(0x179)][_0x2ca9ff(0x496)](_0x4bc04e,this[_0x2ca9ff(0x4e2)],this[_0x2ca9ff(0x20e)],null,this['_pendingMutations'],this['_awaitingChangeset'],[],this[_0x2ca9ff(0x29a)]);this[_0x2ca9ff(0x322)]();const _0x50092b=this[_0x2ca9ff(0x179)][_0x2ca9ff(0x496)](_0x2c64c1,this[_0x2ca9ff(0x4e2)],this[_0x2ca9ff(0x20e)],this[_0x2ca9ff(0x278)],this[_0x2ca9ff(0x29a)]);return _0x50092b[_0x2ca9ff(0x1b3)](),_0x50092b[_0x2ca9ff(0x259)](),_0x50092b;}[_0x30a57b(0x48f)](_0x5b1dcb){const _0x41bdbc=_0x30a57b;return this[_0x41bdbc(0x1f7)](!!(_0x5b1dcb!=null&&_0x5b1dcb[_0x41bdbc(0x382)]));}[_0x30a57b(0x1e3)](_0x1c7d07){const _0x542411=_0x30a57b;return this['_resendTimeout']>_0xc53080?this[_0x542411(0x238)]():(this[_0x542411(0x4f0)]=_0x2b6edf(this['_resendTimeout'],{'timeout':this['_resendTimeout'],'reqId':_0x1c7d07['reqId']}),this[_0x542411(0x4f6)]=this[_0x542411(0x4f0)][_0x542411(0x383)](({reqId:_0xc7ad8c,timeout:_0x1e547a})=>{const _0xa0deff=_0x542411;this[_0xa0deff(0x1d6)](_0xc7ad8c,_0x1e547a);}),this);}[_0x30a57b(0x238)](){const _0x5ad45c=_0x30a57b;return this['_clearScheduledTask'](),this[_0x5ad45c(0x179)][_0x5ad45c(0x496)](_0x378850,this[_0x5ad45c(0x4e2)],this[_0x5ad45c(0x20e)],this['_awaitingChangeset'],this[_0x5ad45c(0x278)],this[_0x5ad45c(0x29a)]);}[_0x30a57b(0x426)](){return this;}[_0x30a57b(0x309)](){const _0x2fd7e0=_0x30a57b;this['_handler'][_0x2fd7e0(0x4a4)](this[_0x2fd7e0(0x445)]);}[_0x30a57b(0x1f7)](_0x1bb81a){const _0xec0440=_0x30a57b;return this[_0xec0440(0x416)](),this[_0xec0440(0x179)][_0xec0440(0x496)](_0x38bb68,this[_0xec0440(0x4e2)],this['type'],null,this['_pendingMutations'],this['_handler'],_0x1bb81a);}[_0x30a57b(0x1d6)](_0x264015,_0x22499d){const _0x5cbdae=_0x30a57b;var _0x43e617;_0x264015===((_0x43e617=this[_0x5cbdae(0x445)])==null?void 0x0:_0x43e617[_0x5cbdae(0x29c)])&&(this[_0x5cbdae(0x309)](),this[_0x5cbdae(0x43b)]=_0x22499d===0x0?0x3e8:_0x22499d*0x2);}[_0x30a57b(0x416)](){const _0x5d9215=_0x30a57b;var _0x31d420;(_0x31d420=this[_0x5d9215(0x4f6)])==null||_0x31d420[_0x5d9215(0x3b9)](),this['_resendTimeout']=0x0;}};_0x26e6e8=_0x2a7a2b([_0xc51d84(0x6,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x5a5)])),_0xc51d84(0x7,_0x123ccf['Inject'](_0x44c0c5['RevisionService'])),_0xc51d84(0x8,_0x123ccf['Inject'](_0x3ba5f7[_0x30a57b(0x19a)])),_0xc51d84(0x9,_0x123ccf['ICommandService']),_0xc51d84(0xa,_0x123ccf[_0x30a57b(0x58c)]),_0xc51d84(0xb,_0x44c0c5[_0x30a57b(0x45a)]),_0xc51d84(0xc,_0x123ccf['IUndoRedoService'])],_0x26e6e8);let _0x38bb68=class extends _0x1e1577{constructor(_0x93d55e,_0x622fb3,_0x8d0d1f,_0x13c774,_0x35f88a,_0x1ec125=!0x1,_0x11e4d3,_0x33e23c,_0x1db19c,_0x332c0e,_0x2a5f4b,_0x2f8da1,_0x576e10){const _0x6c6df0=_0x30a57b;super(_0x93d55e,_0x622fb3,_0x8d0d1f,_0x13c774,_0x35f88a,_0x33e23c,_0x1db19c,_0x2a5f4b,_0x332c0e),_0x141732(this,_0x6c6df0(0x3c1),_0x6c6df0(0x58a)),(this['_isPermissionRej']=_0x1ec125,this['_permissionService']=_0x11e4d3,this[_0x6c6df0(0x355)]=_0x2f8da1,this[_0x6c6df0(0x415)]=_0x576e10,this[_0x6c6df0(0x556)](),this[_0x6c6df0(0x5ad)](),this['_disableEditing']());}[_0x30a57b(0x41c)](){return this;}[_0x30a57b(0x560)](){return this;}[_0x30a57b(0x597)](){return this;}[_0x30a57b(0x48f)](){return this;}[_0x30a57b(0x1e3)](){return this;}[_0x30a57b(0x238)](){return this;}['toggleOnline'](){return this;}['resend'](){throw new Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x30a57b(0x5ad)](){const _0x4a4602=_0x30a57b;this['_localCacheService']['updateOfflineData'](this[_0x4a4602(0x4e2)],this[_0x4a4602(0x20e)],null,[]);}[_0x30a57b(0x556)](){const _0x32abfe=_0x30a57b;this['_isPermissionRej']?this[_0x32abfe(0x415)][_0x32abfe(0x362)]({'title':this[_0x32abfe(0x355)]['t']('permission.title'),'content':this[_0x32abfe(0x355)]['t'](_0x32abfe(0x1d1)),'type':_0x32abfe(0x422),'duration':0x0}):this[_0x32abfe(0x415)][_0x32abfe(0x362)]({'title':this[_0x32abfe(0x355)]['t'](_0x32abfe(0x50a)),'content':this[_0x32abfe(0x355)]['t'](_0x32abfe(0x220)),'type':'error','duration':0x0});}['_disableEditing'](){const _0x983f24=_0x30a57b;this[_0x983f24(0x1f5)][_0x983f24(0x47a)](new _0x4560f7[(_0x983f24(0x509))](this[_0x983f24(0x4e2)])['id'],!0x1);}};_0x38bb68=_0x2a7a2b([_0xc51d84(0x6,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x2b2)])),_0xc51d84(0x7,_0x123ccf[_0x30a57b(0x25c)]),_0xc51d84(0x8,_0x123ccf[_0x30a57b(0x4ab)]),_0xc51d84(0x9,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x19a)])),_0xc51d84(0xa,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x2ff)])),_0xc51d84(0xb,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)])),_0xc51d84(0xc,_0x4986bd['INotificationService'])],_0x38bb68);let _0x378850=class extends _0x1e1577{constructor(_0x160f31,_0x14bb06,_0x140723,_0x17ad4f,_0x56023c,_0x29b5b6,_0x3a164f,_0x393f3d,_0x3b9967,_0x5e7d2f){const _0x4a1cfa=_0x30a57b;super(_0x160f31,_0x14bb06,_0x140723,_0x17ad4f,_0x56023c,_0x3b9967,_0x5e7d2f,_0x3a164f,_0x393f3d),_0x141732(this,_0x4a1cfa(0x3c1),_0x4a1cfa(0x1ef)),this[_0x4a1cfa(0x179)]=_0x29b5b6;}['appendMutation'](_0x5699d7){const _0x3d236a=_0x30a57b;return this['_pendingMutations'][_0x3d236a(0x4cc)](_0x5699d7),this[_0x3d236a(0x259)](),this;}[_0x30a57b(0x560)](_0x153ba0){const _0x231e93=_0x30a57b;throw new Error(_0x231e93(0x4bc));}[_0x30a57b(0x597)](){throw new Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x30a57b(0x48f)](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x30a57b(0x1e3)](){return this;}['toggleOffline'](){return this;}[_0x30a57b(0x426)](){const _0xe18775=_0x30a57b,{_injector:_0x4cd683,_pendingMutations:_0x30069c,_awaitingChangeset:_0x5cf69b,unitID:_0x4f2c78,_handler:_0x29287c,type:_0x404acc}=this,_0x26df8b=_0x255f8d(_0x4cd683,_0x4f2c78,_0x404acc,_0x5cf69b,_0x30069c,_0x29287c);return _0x26df8b instanceof _0x2c64c1?_0x26df8b[_0xe18775(0x1b3)]():(_0x26df8b instanceof _0x26e6e8||_0x26df8b instanceof _0x198f49)&&_0x26df8b[_0xe18775(0x309)](),_0x26df8b;}['resend'](){const _0x78f94b=_0x30a57b;throw new Error(_0x78f94b(0x342));}};_0x378850=_0x2a7a2b([_0xc51d84(0x5,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0xc51d84(0x6,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x2ff)])),_0xc51d84(0x7,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x19a)])),_0xc51d84(0x8,_0x123ccf[_0x30a57b(0x25c)]),_0xc51d84(0x9,_0x123ccf[_0x30a57b(0x4ab)])],_0x378850);let _0x4bc04e=class extends _0x1e1577{constructor(_0x5aea05,_0x228f8a,_0x44942e,_0x29a8a9,_0xe95bf7,_0x436073,_0x39867f,_0x9001d7,_0xa26e21,_0x4cfdfe,_0x3ce35b,_0x592c71,_0x4fe05f,_0x36d4b7){const _0xfec801=_0x30a57b;super(_0x5aea05,_0x228f8a,_0x44942e,_0x29a8a9,_0x39867f,_0x592c71,_0x4fe05f,_0xa26e21,_0x4cfdfe),_0x141732(this,_0xfec801(0x3c1),_0xfec801(0x1fc)),(this[_0xfec801(0x32d)]=_0xe95bf7,this[_0xfec801(0x38a)]=_0x436073,this[_0xfec801(0x179)]=_0x9001d7,this[_0xfec801(0x1d5)]=_0x3ce35b,this['_transformService']=_0x36d4b7);}[_0x30a57b(0x562)](_0xc48520){const _0x4cc9c2=_0x30a57b;try{const _0xab4977=[..._0xc48520,...this['_queuedRemoteChangesets']],_0x33bc1a=[this[_0x4cc9c2(0x445)]||this[_0x4cc9c2(0x32d)]][_0x4cc9c2(0x3fa)](_0x2a1a8e=>!!_0x2a1a8e);let _0x7152fb,_0x5802a2;if(_0x33bc1a[_0x4cc9c2(0x226)]){const _0x25bb84=this[_0x4cc9c2(0x232)]['transformChangesets'](_0xab4977,_0x33bc1a,!0x1);if(!_0x44c0c5['isTransformChangesetsSuccess'](_0x25bb84))throw _0x25bb84[_0x4cc9c2(0x422)];_0x7152fb=_0x25bb84[_0x4cc9c2(0x3bc)],_0x5802a2=_0x25bb84[_0x4cc9c2(0x3d5)];}else _0x7152fb=_0xab4977,_0x5802a2=[];let _0x48e387=this[_0x4cc9c2(0x278)];_0x7152fb[_0x4cc9c2(0x3d0)](_0x292077=>{const _0x5842ac=_0x4cc9c2;let _0xf8b16a;if(_0x48e387[_0x5842ac(0x226)]){const _0x2d1ac2=this[_0x5842ac(0x232)][_0x5842ac(0x29f)](_0x292077,_0x48e387);if(!_0x44c0c5[_0x5842ac(0x542)](_0x2d1ac2))throw _0x2d1ac2['error'];_0xf8b16a=_0x2d1ac2[_0x5842ac(0x3bc)],_0x48e387=_0x2d1ac2[_0x5842ac(0x571)];}else _0xf8b16a=_0x292077;this[_0x5842ac(0x1ee)](_0xf8b16a);}),this[_0x4cc9c2(0x32d)]&&this[_0x4cc9c2(0x322)](),this[_0x4cc9c2(0x445)]&&_0x5802a2[_0x4cc9c2(0x226)]&&(_0x5802a2[0x0][_0x4cc9c2(0x3aa)]=this['_getCurrentRevision']());let _0x4b1573;if(this[_0x4cc9c2(0x445)]&&_0x48e387[_0x4cc9c2(0x226)]!==0x0)_0x4b1573=this[_0x4cc9c2(0x179)][_0x4cc9c2(0x496)](_0x26e6e8,this[_0x4cc9c2(0x4e2)],this['type'],_0x5802a2[0x0],_0x48e387,this[_0x4cc9c2(0x29a)],void 0x0);else{if(this['_awaitingChangeset']&&_0x48e387[_0x4cc9c2(0x226)]===0x0)_0x5802a2[0x0][_0x4cc9c2(0x3aa)]=this[_0x4cc9c2(0x1dc)](),_0x4b1573=this['_injector'][_0x4cc9c2(0x496)](_0x198f49,this[_0x4cc9c2(0x4e2)],this['type'],_0x5802a2[0x0],this[_0x4cc9c2(0x29a)]);else{if(_0x48e387[_0x4cc9c2(0x226)]!==0x0){const _0xff6862=this['_injector'][_0x4cc9c2(0x496)](_0x2c64c1,this[_0x4cc9c2(0x4e2)],this[_0x4cc9c2(0x20e)],_0x48e387,this['_handler']);_0xff6862['_schedule'](),_0x4b1573=_0xff6862;}else _0x4b1573=this[_0x4cc9c2(0x179)]['createInstance'](_0xe80d0c,this['unitID'],this[_0x4cc9c2(0x20e)],this[_0x4cc9c2(0x29a)]);}}return _0x4b1573['_updateLocalCache'](),_0x4b1573;}catch(_0x36e0e6){return this[_0x4cc9c2(0x1d5)][_0x4cc9c2(0x422)](_0x4cc9c2(0x397),_0x4cc9c2(0x251),_0x36e0e6),this['_injector'][_0x4cc9c2(0x496)](_0x38bb68,this[_0x4cc9c2(0x4e2)],this[_0x4cc9c2(0x20e)],this[_0x4cc9c2(0x445)],this[_0x4cc9c2(0x278)],this[_0x4cc9c2(0x29a)],!0x1);}}[_0x30a57b(0x309)](){const _0x2c7c39=_0x30a57b;throw new Error(_0x2c7c39(0x3d3));}[_0x30a57b(0x41c)](_0x2b9349){const _0x3bc0a3=_0x30a57b;return this['_pendingMutations'][_0x3bc0a3(0x4cc)](_0x2b9349),this;}[_0x30a57b(0x560)](_0x23212){const _0x5156ab=_0x30a57b;return this[_0x5156ab(0x38a)]['push'](_0x23212),this;}[_0x30a57b(0x597)](_0x478a45){const _0x2f9e99=_0x30a57b;if(this[_0x2f9e99(0x445)])return this[_0x2f9e99(0x32d)]=this[_0x2f9e99(0x445)],this['_awaitingChangeset']=null,this;throw new Error(_0x2f9e99(0x502));}['onRemoteRej'](_0x40f26e){return this['_onConflict'](!!(_0x40f26e!=null&&_0x40f26e['isPermissionRej']));}[_0x30a57b(0x1e3)](){return this;}[_0x30a57b(0x238)](){const _0x45caf7=_0x30a57b;return this[_0x45caf7(0x179)][_0x45caf7(0x496)](_0x378850,this['unitID'],this['type'],this[_0x45caf7(0x445)],this[_0x45caf7(0x278)],this[_0x45caf7(0x29a)]);}[_0x30a57b(0x426)](){return this;}[_0x30a57b(0x1f7)](_0x1325e5){const _0xfeb56d=_0x30a57b;return this[_0xfeb56d(0x179)]['createInstance'](_0x38bb68,this[_0xfeb56d(0x4e2)],this[_0xfeb56d(0x20e)],this[_0xfeb56d(0x445)],this['_pendingMutations'],this['_handler'],_0x1325e5);}};_0x4bc04e=_0x2a7a2b([_0xc51d84(0x7,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0xc51d84(0x8,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x2ff)])),_0xc51d84(0x9,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x19a)])),_0xc51d84(0xa,_0x123ccf[_0x30a57b(0x58c)]),_0xc51d84(0xb,_0x123ccf['ICommandService']),_0xc51d84(0xc,_0x123ccf[_0x30a57b(0x4ab)]),_0xc51d84(0xd,_0x44c0c5[_0x30a57b(0x45a)])],_0x4bc04e);function _0x255f8d(_0x22ed24,_0x323a71,_0x58e3cb,_0x315b45,_0x42335a,_0xa4115a){const _0x52ad05=_0x30a57b;return _0x315b45&&_0x42335a['length']?_0x22ed24[_0x52ad05(0x496)](_0x26e6e8,_0x323a71,_0x58e3cb,_0x315b45,_0x42335a,_0xa4115a,void 0x0):_0x315b45?_0x22ed24[_0x52ad05(0x496)](_0x198f49,_0x323a71,_0x58e3cb,_0x315b45,_0xa4115a):_0x42335a[_0x52ad05(0x226)]?_0x22ed24[_0x52ad05(0x496)](_0x2c64c1,_0x323a71,_0x58e3cb,_0x42335a,_0xa4115a):_0x22ed24['createInstance'](_0xe80d0c,_0x323a71,_0x58e3cb,_0xa4115a);}var _0x2f5b08=Object[_0x30a57b(0x26e)],_0xd2339a=Object[_0x30a57b(0x5ab)],_0x5d0a19=(_0x3bd3cf,_0x4688f8,_0x1df614,_0x5b7b60)=>{const _0x31e457=_0x30a57b;for(var _0x347e73=_0x5b7b60>0x1?void 0x0:_0x5b7b60?_0xd2339a(_0x4688f8,_0x1df614):_0x4688f8,_0x5d668d=_0x3bd3cf[_0x31e457(0x226)]-0x1,_0x4a18b6;_0x5d668d>=0x0;_0x5d668d--)(_0x4a18b6=_0x3bd3cf[_0x5d668d])&&(_0x347e73=(_0x5b7b60?_0x4a18b6(_0x4688f8,_0x1df614,_0x347e73):_0x4a18b6(_0x347e73))||_0x347e73);return _0x5b7b60&&_0x347e73&&_0x2f5b08(_0x4688f8,_0x1df614,_0x347e73),_0x347e73;},_0xc41ce9=(_0x33e1cb,_0x79cb3)=>(_0x1fb19e,_0x2171e3)=>_0x79cb3(_0x1fb19e,_0x2171e3,_0x33e1cb);_0x3ba5f7[_0x30a57b(0x216)]=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x34e9a0,_0x32072c,_0x169473,_0x503fb7,_0x519083,_0x54b12c,_0x5f45e8,_0xeb4fe1,_0x4079d1,_0x29becb,_0x516b47,_0x1b666e,_0xb8bff5){const _0x4ec383=_0x30a57b;super(),_0x141732(this,_0x4ec383(0x504),new _0x4f561c[(_0x4ec383(0x22d))](null)),_0x141732(this,'state$',this[_0x4ec383(0x504)][_0x4ec383(0x29e)]()),_0x141732(this,_0x4ec383(0x57d)),_0x141732(this,_0x4ec383(0x419),!0x1),_0x141732(this,'_changesetSessionId',''),_0x141732(this,_0x4ec383(0x3a6),0x0),_0x141732(this,_0x4ec383(0x1d4),this[_0x4ec383(0x368)]['pipe'](_0x4f561c[_0x4ec383(0x450)](_0x1025a3=>_0x1025a3?_0x1025a3[_0x4ec383(0x3c1)]:_0x10e907[_0x4ec383(0x311)]),_0x4f561c[_0x4ec383(0x31a)](0x1))),_0x141732(this,'_transitionLocked',!0x1),_0x141732(this,_0x4ec383(0x2e6),[]),(this[_0x4ec383(0x4e2)]=_0x34e9a0,this[_0x4ec383(0x30c)]=_0x32072c,this['_type']=_0x169473,this[_0x4ec383(0x179)]=_0x503fb7,this[_0x4ec383(0x4c0)]=_0x519083,this[_0x4ec383(0x2a1)]=_0x54b12c,this[_0x4ec383(0x355)]=_0x5f45e8,this['_revisionService']=_0xeb4fe1,this['_logService']=_0x4079d1,this['_commandService']=_0x29becb,this[_0x4ec383(0x235)]=_0x516b47,this['_permissionService']=_0x1b666e,this[_0x4ec383(0x1d3)]=_0xb8bff5);}get[_0x30a57b(0x455)](){const _0x23922b=_0x30a57b;return this[_0x23922b(0x57d)];}async[_0x30a57b(0x418)](){const _0x569d9f=_0x30a57b;if(this[_0x569d9f(0x455)])throw new Error(_0x569d9f(0x36b));await this[_0x569d9f(0x23a)]();}[_0x30a57b(0x3d4)](){const _0x204669=_0x30a57b;return this[_0x204669(0x419)]=!0x0,_0x123ccf['toDisposable'](()=>{const _0x454b18=_0x204669;this[_0x454b18(0x419)]=!0x1,this[_0x454b18(0x312)]();});}[_0x30a57b(0x350)](_0x26826a){const _0xed7366=_0x30a57b;this[_0xed7366(0x57d)]=_0x26826a,this['_state$'][_0xed7366(0x595)](_0x26826a);}async['_init'](){const _0x3f166c=_0x30a57b;var _0x35b34c;this[_0x3f166c(0x350)](await this[_0x3f166c(0x2d1)]()),this[_0x3f166c(0x1d3)]&&((_0x35b34c=this['_singleActiveUnitService'])==null||_0x35b34c[_0x3f166c(0x500)](this[_0x3f166c(0x4e2)]),this['disposeWithMe'](this[_0x3f166c(0x1d3)][_0x3f166c(0x475)](this[_0x3f166c(0x4e2)])['subscribe'](_0x36bc80=>{const _0x203fa4=_0x3f166c;this[_0x203fa4(0x1d5)][_0x203fa4(0x4f1)](_0x203fa4(0x438),_0x203fa4(0x3ba),_0x36bc80),_0x36bc80===_0x1a6bb1['OTHER_CLIENTS_EDITING']?(this[_0x203fa4(0x235)][_0x203fa4(0x362)]({'content':this[_0x203fa4(0x355)]['t'](_0x203fa4(0x548)),'type':_0x5b06bc[_0x203fa4(0x399)][_0x203fa4(0x4f4)]}),this[_0x203fa4(0x1f5)][_0x203fa4(0x47a)](new _0x4560f7['WorkbookEditablePermission'](this[_0x203fa4(0x4e2)])['id'],!0x1)):this[_0x203fa4(0x1f5)][_0x203fa4(0x47a)](new _0x4560f7[(_0x203fa4(0x509))](this[_0x203fa4(0x4e2)])['id'],!0x0);})));let _0xd8c5b9=!0x1;return this[_0x3f166c(0x285)](this[_0x3f166c(0x30c)]['sessionStatus$'][_0x3f166c(0x383)](_0x2bc432=>{const _0x9cb75b=_0x3f166c;_0x2bc432===_0x1f9fa8['ONLINE']?this[_0x9cb75b(0x174)](_0xd8c5b9):_0x2bc432===_0x1f9fa8[_0x9cb75b(0x311)]&&(_0xd8c5b9=!0x0,this[_0x9cb75b(0x1d0)]());})),this['disposeWithMe'](this[_0x3f166c(0x30c)][_0x3f166c(0x44b)][_0x3f166c(0x383)](_0x35088c=>{const _0x471f86=_0x3f166c;try{switch(_0x35088c[_0x471f86(0x543)]){case _0x44c0c5['CollaborationEvent'][_0x471f86(0x447)]:{this['_onRemoteChangeset'](_0x44c0c5[_0x471f86(0x58e)](_0x35088c['data']));break;}case _0x44c0c5[_0x471f86(0x22e)][_0x471f86(0x28b)]:{this[_0x471f86(0x35f)](_0x35088c[_0x471f86(0x5a6)]);break;}case _0x44c0c5[_0x471f86(0x22e)]['CHANGESET_REJ']:{this[_0x471f86(0x57e)]();break;}case _0x44c0c5[_0x471f86(0x22e)][_0x471f86(0x54e)]:{this[_0x471f86(0x258)](_0x35088c['data']);break;}case _0x44c0c5['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:{this['_onFetchMissResult'](_0x35088c['data'][_0x471f86(0x561)][_0x471f86(0x450)](_0x205f31=>_0x44c0c5[_0x471f86(0x58e)](_0x205f31)));break;}case _0x44c0c5['CollaborationEvent'][_0x471f86(0x337)]:this[_0x471f86(0x57e)]({'isPermissionRej':!0x0});}}catch(_0x9cbed9){throw console[_0x471f86(0x422)](_0x471f86(0x1cc),_0x9cbed9),_0x9cbed9;}})),this[_0x3f166c(0x57d)];}[_0x30a57b(0x2d2)](){this['_transitionLocked']=!0x1;}[_0x30a57b(0x4b8)](){const _0x10e0b8=_0x30a57b;if(this['_transitionLocked'])throw new Error(_0x10e0b8(0x3b2));this[_0x10e0b8(0x294)]=!0x0;}[_0x30a57b(0x546)](_0x1d93b9){const _0x44f13c=_0x30a57b;this[_0x44f13c(0x4b8)](),this[_0x44f13c(0x350)](this[_0x44f13c(0x57d)]['appendMutation'](_0x1d93b9)),this[_0x44f13c(0x2d2)]();}[_0x30a57b(0x20c)](_0x3aadc6){const _0x4c7814=_0x30a57b;if(!(_0x3aadc6[_0x4c7814(0x463)]<=this[_0x4c7814(0x4aa)][_0x4c7814(0x18b)](this[_0x4c7814(0x4e2)]))){if(this[_0x4c7814(0x419)]){this[_0x4c7814(0x2e6)]['push'](_0x3aadc6);return;}this[_0x4c7814(0x519)](_0x3aadc6);}}[_0x30a57b(0x312)](){const _0x1d5442=_0x30a57b;this['_remoteChangesetQueue'][_0x1d5442(0x3d0)](_0x37628b=>this[_0x1d5442(0x519)](_0x37628b)),this[_0x1d5442(0x2e6)]=[];}[_0x30a57b(0x519)](_0x55491e){const _0x45ca3a=_0x30a57b,_0x53cbec=this[_0x45ca3a(0x2a1)][_0x45ca3a(0x4af)]['fetchThroughInterceptors'](this[_0x45ca3a(0x2a1)][_0x45ca3a(0x4af)]['getInterceptPoints']()[_0x45ca3a(0x20b)])(_0x55491e[_0x45ca3a(0x3d8)],null)||_0x55491e[_0x45ca3a(0x3d8)],_0x589150={..._0x55491e,'mutations':_0x53cbec};this[_0x45ca3a(0x4b8)](),this[_0x45ca3a(0x350)](this[_0x45ca3a(0x57d)]['onRemoteChangeset'](_0x589150)),this[_0x45ca3a(0x2d2)]();}['_onRemoteACK'](_0x1f2c59){const _0x4b20bc=_0x30a57b;this['_lockTransition'](),this['_updateState'](this[_0x4b20bc(0x57d)][_0x4b20bc(0x597)](_0x1f2c59)),this[_0x4b20bc(0x2d2)]();}[_0x30a57b(0x57e)](_0x54586e){const _0x18e010=_0x30a57b;this[_0x18e010(0x4b8)](),this[_0x18e010(0x350)](this[_0x18e010(0x57d)]['onRemoteRej'](_0x54586e)),this[_0x18e010(0x2d2)]();}['_onRemoteRetry'](_0x48e338){const _0x1e38ba=_0x30a57b;this[_0x1e38ba(0x4b8)](),this[_0x1e38ba(0x350)](this['_state'][_0x1e38ba(0x1e3)](_0x48e338)),this['_unlockTransition']();}[_0x30a57b(0x396)](_0xe591ce){const _0x253825=_0x30a57b;if(!(this[_0x253825(0x57d)]instanceof _0x4bc04e))throw new TypeError(_0x253825(0x525));const _0x43fe7a=_0xe591ce[_0x253825(0x450)](_0xa7ac8b=>{const _0x30278b=_0x253825,_0x6954f1=this['_compressMutationService'][_0x30278b(0x4af)][_0x30278b(0x3ad)](this[_0x30278b(0x2a1)][_0x30278b(0x4af)]['getInterceptPoints']()[_0x30278b(0x20b)])(_0xa7ac8b[_0x30278b(0x3d8)],null)||_0xa7ac8b[_0x30278b(0x3d8)];return{..._0xa7ac8b,'mutations':_0x6954f1};});this[_0x253825(0x4b8)](),this[_0x253825(0x350)](this[_0x253825(0x57d)][_0x253825(0x562)](_0x43fe7a)),this[_0x253825(0x2d2)]();}['_toggleOffline'](){const _0x10212e=_0x30a57b;this[_0x10212e(0x4b8)](),this[_0x10212e(0x350)](this[_0x10212e(0x57d)][_0x10212e(0x238)]()),this[_0x10212e(0x2d2)]();}[_0x30a57b(0x174)](_0x49aaf6=!0x1){const _0x20e72d=_0x30a57b;this[_0x20e72d(0x4b8)](),this[_0x20e72d(0x350)](this[_0x20e72d(0x57d)][_0x20e72d(0x426)]()),this[_0x20e72d(0x2d2)]();const _0x41c84d=this[_0x20e72d(0x57d)];_0x49aaf6&&_0x41c84d instanceof _0xe80d0c&&(this[_0x20e72d(0x4b8)](),this['_updateState'](_0x41c84d[_0x20e72d(0x328)]()),this[_0x20e72d(0x2d2)]());}async[_0x30a57b(0x2d1)](){return new Promise(_0x225474=>{const _0x3c26d2=_0x4fdf;this[_0x3c26d2(0x30c)][_0x3c26d2(0x31d)][_0x3c26d2(0x243)](_0x4f561c[_0x3c26d2(0x25b)](0x1))[_0x3c26d2(0x383)](async _0x22fb80=>{_0x225474(await this['_createInitialStateImpl'](_0x22fb80===_0x1f9fa8['ONLINE']));});});}[_0x30a57b(0x1c3)](){const _0x3743b6=_0x30a57b,_0x55afe4=this[_0x3743b6(0x4e2)];return{'onStateChange':(_0x257dbf,_0x20f00d)=>{const _0x4c0d95=_0x3743b6;if(_0x257dbf!==this['_state'])throw new Error(_0x4c0d95(0x1dd)+_0x257dbf[_0x4c0d95(0x3c1)]+_0x4c0d95(0x257)+_0x20f00d[_0x4c0d95(0x3c1)]+_0x4c0d95(0x296)+this['_state'][_0x4c0d95(0x3c1)]);this[_0x4c0d95(0x350)](_0x20f00d);},'onSendChangeset':_0x323434=>{const _0x4619c4=_0x3743b6;_0x323434[_0x4619c4(0x3bd)]||(_0x323434[_0x4619c4(0x3bd)]=this[_0x4619c4(0x4a5)],_0x323434[_0x4619c4(0x29c)]=++this[_0x4619c4(0x3a6)]);const _0x2d06a8={'eventID':_0x44c0c5['CollaborationEvent']['SUBMIT_CHANGESET'],'data':{'unitID':_0x323434[_0x4619c4(0x4e2)],'unitType':this[_0x4619c4(0x495)],'changeset':_0x323434,'memberID':this[_0x4619c4(0x30c)][_0x4619c4(0x1e0)]()}};this['session'][_0x4619c4(0x1ed)](_0x2d06a8,this['unitID']);},'onMissingChangesets':({from:_0x163054,to:_0x1c884c})=>{const _0x2c181b=_0x3743b6;this[_0x2c181b(0x1d5)]['debug']('[CollaborationEntity]',_0x2c181b(0x264)+_0x163054+'\x20to\x20'+_0x1c884c);const _0x3fbb7d={'eventID':_0x44c0c5[_0x2c181b(0x22e)][_0x2c181b(0x49a)],'data':{'unitID':_0x55afe4,'unitType':this[_0x2c181b(0x495)],'from':_0x163054,'to':_0x1c884c}};this[_0x2c181b(0x30c)][_0x2c181b(0x1ed)](_0x3fbb7d,this[_0x2c181b(0x4e2)]);}};}async[_0x30a57b(0x346)](_0x26557a){const _0x3013d6=_0x30a57b;var _0x3bbfb2,_0x259390;const _0x22eea9=await this[_0x3013d6(0x4c0)]['loadOfflineData'](this['unitID']),_0x10daf0=(_0x3bbfb2=_0x22eea9==null?void 0x0:_0x22eea9[_0x3013d6(0x3d8)])!=null?_0x3bbfb2:[],_0x21a12e=(_0x259390=_0x22eea9==null?void 0x0:_0x22eea9['awaitingChangeset'])!=null?_0x259390:null,_0x1843a4=!!(_0x21a12e!=null&&_0x21a12e['sid'])&&!!(_0x21a12e!=null&&_0x21a12e[_0x3013d6(0x29c)]);this[_0x3013d6(0x4a5)]=_0x1843a4?_0x21a12e[_0x3013d6(0x3bd)]:_0xa860b1(),this['_changesetReqId']=_0x1843a4?_0x21a12e['reqId']:0x0;const _0x345029=this[_0x3013d6(0x4e2)];try{this[_0x3013d6(0x2c2)](_0x21a12e,_0x10daf0);}catch(_0x1b2b65){this['_logService']['error'](_0x1b2b65);}const _0x51b464=this[_0x3013d6(0x1c3)]();if(_0x26557a){const _0x396dc6=_0x255f8d(this[_0x3013d6(0x179)],_0x345029,this['_type'],_0x21a12e,_0x10daf0,_0x51b464);return _0x396dc6 instanceof _0x2c64c1?_0x396dc6['_schedule']():(_0x396dc6 instanceof _0x26e6e8||_0x396dc6 instanceof _0x198f49)&&_0x396dc6['resend'](),_0x396dc6;}return this[_0x3013d6(0x179)]['createInstance'](_0x378850,_0x345029,this[_0x3013d6(0x495)],_0x21a12e,_0x10daf0,_0x51b464);}[_0x30a57b(0x2c2)](_0xe6cd4e,_0x4ae2ea){const _0x3628a5=_0x30a57b;var _0x343e17,_0x2b0f02;const _0x33aab8=this[_0x3628a5(0x2a1)][_0x3628a5(0x4af)][_0x3628a5(0x3ad)](this[_0x3628a5(0x2a1)]['interceptor'][_0x3628a5(0x4b3)]()[_0x3628a5(0x20b)]);(_0x343e17=_0x33aab8((_0xe6cd4e==null?void 0x0:_0xe6cd4e[_0x3628a5(0x3d8)])||[],null))==null||_0x343e17['forEach'](_0x5224f9=>this['_commandService'][_0x3628a5(0x2d0)](_0x5224f9['id'],_0x5224f9['params'])),(_0x2b0f02=_0x33aab8(_0x4ae2ea||[],null))==null||_0x2b0f02[_0x3628a5(0x3d0)](_0x2648c7=>this[_0x3628a5(0x2b7)][_0x3628a5(0x2d0)](_0x2648c7['id'],_0x2648c7[_0x3628a5(0x240)]));}},_0x3ba5f7['CollaborationEntity']=_0x5d0a19([_0xc41ce9(0x3,_0x123ccf['Inject'](_0x123ccf['Injector'])),_0xc41ce9(0x4,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7['LocalCacheService'])),_0xc41ce9(0x5,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x192)])),_0xc41ce9(0x6,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)])),_0xc41ce9(0x7,_0x123ccf['Inject'](_0x44c0c5['RevisionService'])),_0xc41ce9(0x8,_0x123ccf[_0x30a57b(0x58c)]),_0xc41ce9(0x9,_0x123ccf[_0x30a57b(0x25c)]),_0xc41ce9(0xa,_0x4986bd[_0x30a57b(0x1c7)]),_0xc41ce9(0xb,_0x123ccf[_0x30a57b(0x2b2)]),_0xc41ce9(0xc,_0x123ccf['Optional'](_0x3849e3))],_0x3ba5f7[_0x30a57b(0x216)]),_0x3ba5f7[_0x30a57b(0x377)]=class extends _0x3ba5f7['CollaborationEntity']{constructor(_0xf28985,_0x25937c,_0x3d2728,_0x3fcc96,_0x11ba5d,_0x445627,_0x365db1,_0x3ef79b,_0x62995e,_0x31fbc1,_0x41b121,_0x137383,_0x440c1c,_0x419d93,_0x4daffd,_0xc48fb6,_0x2cb1e4){const _0x330157=_0x30a57b;super(_0xf28985,_0x3d2728,_0x25937c,_0x3fcc96,_0x11ba5d,_0x445627,_0x365db1,_0x3ef79b,_0x440c1c,_0x419d93,_0x4daffd,_0xc48fb6,_0x2cb1e4),this[_0x330157(0x4e2)]=_0xf28985,this[_0x330157(0x20e)]=_0x25937c,this[_0x330157(0x1d7)]=_0x62995e,this[_0x330157(0x3df)]=_0x31fbc1,this[_0x330157(0x41b)]=_0x41b121,this[_0x330157(0x1a7)]=_0x137383;}[_0x30a57b(0x1c3)](){const _0x1f0cb7=_0x30a57b,_0xbbd6a=super['_createHandler']();return _0xbbd6a[_0x1f0cb7(0x3d1)]=_0x1f0991=>this[_0x1f0cb7(0x3df)][_0x1f0cb7(0x3fd)](_0x1f0991),_0xbbd6a[_0x1f0cb7(0x46f)]=_0xb841c4=>this[_0x1f0cb7(0x41b)][_0x1f0cb7(0x387)](_0xb841c4),_0xbbd6a[_0x1f0cb7(0x48c)]=_0x434be7=>this[_0x1f0cb7(0x1a7)][_0x1f0cb7(0x323)](_0x434be7),_0xbbd6a[_0x1f0cb7(0x187)]=_0x3e81c4=>this[_0x1f0cb7(0x3df)][_0x1f0cb7(0x2d8)](_0x3e81c4),_0xbbd6a;}async[_0x30a57b(0x23a)](){const _0x382b5e=_0x30a57b,_0x35aa24=await super[_0x382b5e(0x23a)]();return this['_docStateChangeManagerService'][_0x382b5e(0x1f2)][_0x382b5e(0x243)](_0x4f561c[_0x382b5e(0x36d)](this['dispose$']))['subscribe'](_0x18fc55=>{const _0x30e049=_0x382b5e;if(_0x18fc55==null)return;const {unitId:_0x4eedf6,redoState:_0x16bb2d,commandId:_0x12cf5c}=_0x18fc55;if(_0x4eedf6!==this[_0x30e049(0x4e2)])return;const _0x8e7d73={'id':_0x12cf5c,'type':_0x123ccf['CommandType'][_0x30e049(0x172)],'params':{'unitId':_0x4eedf6,'actions':_0x16bb2d[_0x30e049(0x48d)],'textRanges':null}};this[_0x30e049(0x546)](_0x8e7d73);}),_0x35aa24;}},_0x3ba5f7[_0x30a57b(0x377)]=_0x5d0a19([_0xc41ce9(0x3,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0xc41ce9(0x4,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7['LocalCacheService'])),_0xc41ce9(0x5,_0x123ccf['Inject'](_0x44c0c5[_0x30a57b(0x192)])),_0xc41ce9(0x6,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)])),_0xc41ce9(0x7,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5['RevisionService'])),_0xc41ce9(0x8,_0x123ccf['Inject'](_0x5a2573[_0x30a57b(0x589)])),_0xc41ce9(0x9,_0x123ccf['Inject'](_0x11174e)),_0xc41ce9(0xa,_0x123ccf[_0x30a57b(0x398)](_0x495829)),_0xc41ce9(0xb,_0x123ccf[_0x30a57b(0x398)](_0x200261)),_0xc41ce9(0xc,_0x123ccf['ILogService']),_0xc41ce9(0xd,_0x123ccf['ICommandService']),_0xc41ce9(0xe,_0x4986bd[_0x30a57b(0x1c7)]),_0xc41ce9(0xf,_0x123ccf[_0x30a57b(0x2b2)]),_0xc41ce9(0x10,_0x123ccf[_0x30a57b(0x506)](_0x3849e3))],_0x3ba5f7['DocCollaborationEntity']),_0x3ba5f7['SheetCollaborationEntity']=class extends _0x3ba5f7[_0x30a57b(0x216)]{constructor(_0x3c75da,_0x200a2b,_0x1e5804,_0x820e94,_0x25e5d7,_0x42680b,_0x458d22,_0x29f2c0,_0xb77d80,_0x28b6cc,_0x5ae55f,_0x56fe5c,_0x7a9e31,_0x17871f){const _0x19afef=_0x30a57b;super(_0x3c75da,_0x1e5804,_0x200a2b,_0x820e94,_0x25e5d7,_0x42680b,_0x458d22,_0x29f2c0,_0x28b6cc,_0x5ae55f,_0x56fe5c,_0x7a9e31,_0x17871f),this[_0x19afef(0x4e2)]=_0x3c75da,this['type']=_0x200a2b,this['_sheetTransformSelectionsService']=_0xb77d80;}[_0x30a57b(0x1c3)](){const _0x3345cb=_0x30a57b,_0x55401a=super[_0x3345cb(0x1c3)]();return _0x55401a[_0x3345cb(0x46f)]=_0x56f0ef=>this['_sheetTransformSelectionsService'][_0x3345cb(0x387)](_0x56f0ef),_0x55401a;}async[_0x30a57b(0x23a)](){const _0x52061c=_0x30a57b,_0x58d0ef=await super[_0x52061c(0x23a)]();return this['disposeWithMe'](this['_commandService'][_0x52061c(0x26b)]((_0x457869,_0x447f62)=>{const _0xe232bf=_0x52061c;if(_0x457869[_0xe232bf(0x20e)]!==_0x123ccf[_0xe232bf(0x421)][_0xe232bf(0x172)]||_0x447f62!=null&&_0x447f62['fromCollab']||_0x447f62!=null&&_0x447f62[_0xe232bf(0x1c0)])return;const _0x122d74=_0x457869[_0xe232bf(0x240)];if((_0x122d74==null?void 0x0:_0x122d74['unitId'])!==this[_0xe232bf(0x4e2)])return;const _0x5e4fc6=_0x457869,_0x40f64c=this[_0xe232bf(0x2a1)][_0xe232bf(0x4af)][_0xe232bf(0x3ad)](this[_0xe232bf(0x2a1)]['interceptor'][_0xe232bf(0x4b3)]()[_0xe232bf(0x2e5)])([_0x5e4fc6],null)||[_0x5e4fc6];this[_0xe232bf(0x546)](_0x40f64c[0x0]);})),_0x58d0ef;}},_0x3ba5f7[_0x30a57b(0x4c5)]=_0x5d0a19([_0xc41ce9(0x3,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x5a5)])),_0xc41ce9(0x4,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x19a)])),_0xc41ce9(0x5,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x192)])),_0xc41ce9(0x6,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)])),_0xc41ce9(0x7,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5['RevisionService'])),_0xc41ce9(0x8,_0x123ccf[_0x30a57b(0x398)](_0x4bc0e1)),_0xc41ce9(0x9,_0x123ccf[_0x30a57b(0x58c)]),_0xc41ce9(0xa,_0x123ccf['ICommandService']),_0xc41ce9(0xb,_0x4986bd[_0x30a57b(0x1c7)]),_0xc41ce9(0xc,_0x123ccf[_0x30a57b(0x2b2)]),_0xc41ce9(0xd,_0x123ccf[_0x30a57b(0x506)](_0x3849e3))],_0x3ba5f7[_0x30a57b(0x4c5)]);var _0x4606da=Object[_0x30a57b(0x26e)],_0x2fd9d3=Object[_0x30a57b(0x5ab)],_0x128936=(_0x538606,_0xd46087,_0x37e055,_0x3d6f57)=>{for(var _0x4e0bb9=_0x3d6f57>0x1?void 0x0:_0x3d6f57?_0x2fd9d3(_0xd46087,_0x37e055):_0xd46087,_0x13147c=_0x538606['length']-0x1,_0x3b9943;_0x13147c>=0x0;_0x13147c--)(_0x3b9943=_0x538606[_0x13147c])&&(_0x4e0bb9=(_0x3d6f57?_0x3b9943(_0xd46087,_0x37e055,_0x4e0bb9):_0x3b9943(_0x4e0bb9))||_0x4e0bb9);return _0x3d6f57&&_0x4e0bb9&&_0x4606da(_0xd46087,_0x37e055,_0x4e0bb9),_0x4e0bb9;},_0x3d57e7=(_0x24f89a,_0x1ab52a)=>(_0x150f9d,_0x568571)=>_0x1ab52a(_0x150f9d,_0x568571,_0x24f89a);_0x3ba5f7[_0x30a57b(0x549)]=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x157b8d,_0x4dc6ab,_0x2b5110){const _0x10b9cb=_0x30a57b;super(),_0x141732(this,'_entities',new Map()),_0x141732(this,_0x10b9cb(0x30d),new _0x4f561c['Subject']()),(this[_0x10b9cb(0x179)]=_0x157b8d,this[_0x10b9cb(0x575)]=_0x4dc6ab,this['_univerInstanceService']=_0x2b5110,this[_0x10b9cb(0x23a)]());}[_0x30a57b(0x33e)](){const _0x41f195=_0x30a57b;super[_0x41f195(0x33e)](),this['_entities'][_0x41f195(0x3d0)](_0xe331e=>_0xe331e[_0x41f195(0x33e)]()),this['_entities'][_0x41f195(0x308)]();}['getCollabEntity'](_0xd045cc){const _0x2f3c8f=_0x30a57b;var _0x41bbab;return(_0x41bbab=this[_0x2f3c8f(0x315)][_0x2f3c8f(0x3c0)](_0xd045cc))!=null?_0x41bbab:null;}[_0x30a57b(0x1ea)](_0x1c6476){const _0x192029=_0x30a57b,_0x1561f4=this[_0x192029(0x344)](_0x1c6476);return _0x1561f4?_0x4f561c['of'](_0x1561f4):this[_0x192029(0x30d)][_0x192029(0x243)](_0x3262ca[_0x192029(0x3fa)](_0x327e1b=>_0x327e1b['unitID']===_0x1c6476));}[_0x30a57b(0x23a)](){const _0x4183de=_0x30a57b;this['_univerInstanceService'][_0x4183de(0x36f)](_0x123ccf[_0x4183de(0x3ab)][_0x4183de(0x356)])[_0x4183de(0x243)](_0x4f561c[_0x4183de(0x36d)](this[_0x4183de(0x39a)]),_0x3262ca[_0x4183de(0x2aa)](0x10))[_0x4183de(0x383)](async _0x24ddba=>{const _0xdffb30=_0x4183de,_0x2b5d30=_0x24ddba[_0xdffb30(0x281)](),_0x2bb5aa=await this[_0xdffb30(0x593)](_0x2b5d30,_0x15cd83['UNIVER_SHEET']);this[_0xdffb30(0x315)]['set'](_0x2b5d30,_0x2bb5aa);}),this[_0x4183de(0x1de)][_0x4183de(0x36f)](_0x123ccf['UniverInstanceType'][_0x4183de(0x34c)])[_0x4183de(0x243)](_0x4f561c['takeUntil'](this[_0x4183de(0x39a)]),_0x3262ca[_0x4183de(0x2aa)](0x10))['pipe'](_0x3262ca[_0x4183de(0x3fa)](_0x33803d=>!_0x33803d[_0x4183de(0x281)]()[_0x4183de(0x480)]('__')))[_0x4183de(0x383)](async _0x51120f=>{const _0xcc8e2f=_0x4183de,_0xc495e7=_0x51120f[_0xcc8e2f(0x281)](),_0x1f4944=await this[_0xcc8e2f(0x593)](_0xc495e7,_0x15cd83[_0xcc8e2f(0x34c)]);this[_0xcc8e2f(0x315)][_0xcc8e2f(0x3be)](_0xc495e7,_0x1f4944);}),_0x4f561c[_0x4183de(0x32a)](this[_0x4183de(0x1de)][_0x4183de(0x29b)](_0x123ccf[_0x4183de(0x3ab)]['UNIVER_SHEET']),this[_0x4183de(0x1de)]['getTypeOfUnitDisposed$'](_0x123ccf[_0x4183de(0x3ab)][_0x4183de(0x34c)]))[_0x4183de(0x243)](_0x4f561c['takeUntil'](this[_0x4183de(0x39a)]))[_0x4183de(0x383)](_0x2b5c2e=>{const _0x261550=_0x4183de,_0x29b679=_0x2b5c2e[_0x261550(0x281)](),_0x51c345=this[_0x261550(0x315)][_0x261550(0x3c0)](_0x29b679);_0x51c345&&(_0x51c345['dispose'](),this[_0x261550(0x315)]['delete'](_0x29b679));});}async[_0x30a57b(0x593)](_0x22a035,_0x29ad2e){const _0x364f0e=_0x30a57b,_0x4ad79c=await this[_0x364f0e(0x575)][_0x364f0e(0x588)](_0x22a035),_0x3ee342=this['_injector'][_0x364f0e(0x496)](this['_getCtorByUniverType'](_0x29ad2e),_0x22a035,_0x29ad2e,_0x4ad79c);return await _0x3ee342['init'](),this[_0x364f0e(0x30d)]['next'](_0x3ee342),_0x3ee342;}['_getCtorByUniverType'](_0x5b3292){const _0x3b325c=_0x30a57b;switch(_0x5b3292){case _0x15cd83['UNIVER_DOC']:return _0x3ba5f7[_0x3b325c(0x377)];case _0x15cd83['UNIVER_SHEET']:return _0x3ba5f7[_0x3b325c(0x4c5)];default:throw new Error(_0x3b325c(0x1f9)+_0x5b3292);}}},_0x3ba5f7[_0x30a57b(0x549)]=_0x128936([_0x3d57e7(0x0,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x3d57e7(0x1,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x267)])),_0x3d57e7(0x2,_0x123ccf[_0x30a57b(0x4c8)])],_0x3ba5f7[_0x30a57b(0x549)]);const _0x3c1c79=[_0x30a57b(0x287),_0x30a57b(0x4fc),'verdancy600',_0x30a57b(0x499),_0x30a57b(0x539),_0x30a57b(0x2e9)];class _0x1f90b9 extends _0x123ccf['Disposable']{constructor(){const _0x2f2908=_0x30a57b;super(...arguments),_0x141732(this,_0x2f2908(0x341),new Map()),_0x141732(this,_0x2f2908(0x2dc),0x0);}[_0x30a57b(0x210)](_0x5359c8){const _0x343057=_0x30a57b;if(this[_0x343057(0x341)]['has'](_0x5359c8))return this[_0x343057(0x341)][_0x343057(0x3c0)](_0x5359c8);const _0x179afa=_0x3c1c79[this[_0x343057(0x2dc)]];return this[_0x343057(0x2dc)]=(this['_colorIndex']+0x1)%_0x3c1c79[_0x343057(0x226)],this[_0x343057(0x341)]['set'](_0x5359c8,_0x179afa),_0x179afa;}}var _0x70e81e=Object[_0x30a57b(0x26e)],_0x261ba7=Object[_0x30a57b(0x5ab)],_0x5ed3ec=(_0x35b849,_0x2061ff,_0x5f0001,_0x2b597c)=>{const _0x324d41=_0x30a57b;for(var _0x5a3bf4=_0x2b597c>0x1?void 0x0:_0x2b597c?_0x261ba7(_0x2061ff,_0x5f0001):_0x2061ff,_0xff33b9=_0x35b849[_0x324d41(0x226)]-0x1,_0xd57248;_0xff33b9>=0x0;_0xff33b9--)(_0xd57248=_0x35b849[_0xff33b9])&&(_0x5a3bf4=(_0x2b597c?_0xd57248(_0x2061ff,_0x5f0001,_0x5a3bf4):_0xd57248(_0x5a3bf4))||_0x5a3bf4);return _0x2b597c&&_0x5a3bf4&&_0x70e81e(_0x2061ff,_0x5f0001,_0x5a3bf4),_0x5a3bf4;},_0x7d5f5c=(_0x553d2f,_0x198605)=>(_0xb044e4,_0x3ac799)=>_0x198605(_0xb044e4,_0x3ac799,_0x553d2f);const _0x3c8820=0x12c,_0x2dfe9b=0x64;let _0x4df849=class extends _0x123ccf['RxDisposable']{constructor(_0x1d08c9,_0x7d4ee,_0x5b061a,_0x5a1f32,_0x429f55,_0x481412,_0x155eaf,_0x2e6be2,_0x4712ff){const _0x5b8abd=_0x30a57b;super(),_0x141732(this,_0x5b8abd(0x1c4),!0x1),_0x141732(this,'_init',!0x1),_0x141732(this,_0x5b8abd(0x2bf),new _0x4f561c[(_0x5b8abd(0x22d))](new Map())),_0x141732(this,'cursorInfo$',this[_0x5b8abd(0x2bf)][_0x5b8abd(0x29e)]()),_0x141732(this,_0x5b8abd(0x241),new _0x4f561c[(_0x5b8abd(0x22d))]([])),_0x141732(this,_0x5b8abd(0x394),this[_0x5b8abd(0x241)][_0x5b8abd(0x243)](_0x4f561c[_0x5b8abd(0x4d6)](_0x3c8820))),_0x141732(this,_0x5b8abd(0x40f),_0x123ccf[_0x5b8abd(0x46e)](_0x26d686=>{const _0x57f291=_0x5b8abd,_0x5cd299={'eventID':_0x44c0c5[_0x57f291(0x22e)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x57f291(0x1e0)](),'selection':_0x5555af(_0x26d686)}};this[_0x57f291(0x2fc)][_0x57f291(0x1ed)](_0x5cd299,this[_0x57f291(0x4e2)]);},_0x2dfe9b)),(this[_0x5b8abd(0x4e2)]=_0x1d08c9,this[_0x5b8abd(0x2fc)]=_0x7d4ee,this[_0x5b8abd(0x179)]=_0x5b061a,this[_0x5b8abd(0x505)]=_0x5a1f32,this[_0x5b8abd(0x515)]=_0x429f55,this[_0x5b8abd(0x51b)]=_0x481412,this[_0x5b8abd(0x232)]=_0x155eaf,this['_univerInstanceService']=_0x2e6be2,this[_0x5b8abd(0x2b7)]=_0x4712ff);}get[_0x30a57b(0x407)](){const _0xc40d98=_0x30a57b;return this['_cursorInfo$'][_0xc40d98(0x417)]();}get[_0x30a57b(0x3ee)](){const _0x1ed535=_0x30a57b;return this[_0x1ed535(0x241)][_0x1ed535(0x417)]();}['dispose'](){const _0xee62b4=_0x30a57b;super['dispose'](),this[_0xee62b4(0x2bf)][_0xee62b4(0x595)](new Map()),this[_0xee62b4(0x2bf)]['complete'](),this[_0xee62b4(0x241)]['next']([]),this[_0xee62b4(0x241)][_0xee62b4(0x395)]();}[_0x30a57b(0x418)](){const _0x32c34c=_0x30a57b;this[_0x32c34c(0x23a)]||(this[_0x32c34c(0x23a)]=!0x0,this[_0x32c34c(0x2fc)][_0x32c34c(0x31d)][_0x32c34c(0x243)](_0x4f561c['takeUntil'](this[_0x32c34c(0x39a)]))['subscribe'](_0x364798=>{const _0x708858=_0x32c34c;_0x364798===_0x1f9fa8[_0x708858(0x2cd)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x32c34c(0x2fc)][_0x32c34c(0x44b)][_0x32c34c(0x243)](_0x4f561c[_0x32c34c(0x36d)](this['dispose$']))[_0x32c34c(0x383)](_0x378cb7=>{const _0x1df329=_0x32c34c,_0x15d6d5=_0x378cb7['eventID'];_0x15d6d5===_0x44c0c5['CollaborationEvent'][_0x1df329(0x508)]&&this[_0x1df329(0x338)](_0x378cb7),_0x15d6d5===_0x44c0c5['CollaborationEvent'][_0x1df329(0x1f4)]&&this[_0x1df329(0x2ca)](_0x378cb7);}),this[_0x32c34c(0x285)](this[_0x32c34c(0x2b7)][_0x32c34c(0x26b)](_0x17d9c7=>{const _0x38a4b1=_0x32c34c,_0xe7625a=_0x17d9c7[_0x38a4b1(0x240)];_0xe7625a!=null&&this[_0x38a4b1(0x1c4)]&&_0x17d9c7['id']===_0x4f69d6[_0x38a4b1(0x477)]['id']&&_0xe7625a[_0x38a4b1(0x432)]===this['unitID']&&_0xe7625a[_0x38a4b1(0x3cd)]===!0x1&&this[_0x38a4b1(0x40f)](_0xe7625a['ranges']);})),this[_0x32c34c(0x51b)][_0x32c34c(0x2b6)][_0x32c34c(0x243)](_0x4f561c[_0x32c34c(0x36d)](this[_0x32c34c(0x39a)]))[_0x32c34c(0x383)](_0x2ec9dd=>{const _0x31f443=_0x32c34c;if((_0x2ec9dd==null?void 0x0:_0x2ec9dd[_0x31f443(0x4e2)])!==this['unitID'])return;const _0x56bb95={'eventID':_0x44c0c5[_0x31f443(0x22e)][_0x31f443(0x508)],'data':_0x2ec9dd};this[_0x31f443(0x338)](_0x56bb95);}),this[_0x32c34c(0x285)](this[_0x32c34c(0x2b7)][_0x32c34c(0x26b)](_0x417429=>{const _0x3ea0da=_0x32c34c;if(_0x417429[_0x3ea0da(0x240)]==null)return;const _0x108f37=_0x417429[_0x3ea0da(0x240)];if(_0x417429['id']!==_0x4f69d6[_0x3ea0da(0x404)]['id']||_0x108f37['unitId']!==this['unitID'])return;const _0x47625a={'id':_0x3ea0da(0x16f),'params':_0x108f37},_0x546537=this[_0x3ea0da(0x407)];for(const [_0xc13c8,_0x532ea9]of _0x546537){const _0x20580c={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x3ea0da(0x4e2)],'actions':null,'textRanges':_0x532ea9[_0x3ea0da(0x3e1)]}},_0x2bccd8=this[_0x3ea0da(0x232)]['transformMutation'](_0x47625a,_0x20580c,!0x1);if(_0x44c0c5[_0x3ea0da(0x236)](_0x2bccd8))throw _0x2bccd8['error'];_0x546537[_0x3ea0da(0x3be)](_0xc13c8,{..._0x532ea9,'ranges':_0x2bccd8[_0x3ea0da(0x571)][_0x3ea0da(0x240)][_0x3ea0da(0x183)]});}queueMicrotask(()=>{const _0x522e11=_0x3ea0da;this[_0x522e11(0x2bf)]['next'](_0x546537);});})));}[_0x30a57b(0x338)](_0x49b0ce){const _0x4bf18b=_0x30a57b;var _0x422393,_0x119411;const {memberID:_0x5e742b,selection:_0x2788ed}=_0x49b0ce[_0x4bf18b(0x5a6)],_0x5102eb=_0x27ca9d(_0x2788ed),_0x3922f4=(_0x119411=(_0x422393=this['_memberService'][_0x4bf18b(0x2ba)](this[_0x4bf18b(0x4e2)],_0x5e742b))==null?void 0x0:_0x422393[_0x4bf18b(0x482)])!=null?_0x119411:'Unknown\x20user',_0x223dc8={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x5e742b),'name':_0x3922f4,'ranges':_0x5102eb},_0x4f9db6=this[_0x4bf18b(0x407)];_0x4f9db6[_0x4bf18b(0x3be)](_0x5e742b,_0x223dc8),this[_0x4bf18b(0x2bf)][_0x4bf18b(0x595)](_0x4f9db6);}[_0x30a57b(0x2ca)](_0x1622ca){const _0x27c029=_0x30a57b,{memberID:_0x45bc42}=_0x1622ca[_0x27c029(0x5a6)],_0xf81114=this[_0x27c029(0x407)];_0xf81114[_0x27c029(0x55c)](_0x45bc42),this[_0x27c029(0x2bf)][_0x27c029(0x595)](_0xf81114);}[_0x30a57b(0x174)](){const _0x47525d=_0x30a57b;var _0x36c3e4;if(this[_0x47525d(0x1c4)]=!0x0,((_0x36c3e4=this[_0x47525d(0x1de)][_0x47525d(0x2e1)]())==null?void 0x0:_0x36c3e4['getUnitId']())!==this['unitID'])return;const _0x1fbbff=this[_0x47525d(0x179)][_0x47525d(0x3c0)](_0x4f69d6['DocSelectionManagerService'])[_0x47525d(0x3e9)]();Array[_0x47525d(0x253)](_0x1fbbff)&&_0x1fbbff[_0x47525d(0x226)]>0x0&&this[_0x47525d(0x40f)](_0x1fbbff);}[_0x30a57b(0x1d0)](){const _0x5d528a=_0x30a57b;this[_0x5d528a(0x1c4)]=!0x1;}};_0x4df849=_0x5ed3ec([_0x7d5f5c(0x2,_0x123ccf['Inject'](_0x123ccf[_0x30a57b(0x5a5)])),_0x7d5f5c(0x3,_0x123ccf[_0x30a57b(0x398)](_0x1f90b9)),_0x7d5f5c(0x4,_0x123ccf[_0x30a57b(0x398)](_0x202674)),_0x7d5f5c(0x5,_0x123ccf[_0x30a57b(0x398)](_0x200261)),_0x7d5f5c(0x6,_0x44c0c5['ITransformService']),_0x7d5f5c(0x7,_0x123ccf[_0x30a57b(0x4c8)]),_0x7d5f5c(0x8,_0x123ccf['ICommandService'])],_0x4df849);var _0x615bc2=Object[_0x30a57b(0x26e)],_0x3ede3f=Object[_0x30a57b(0x5ab)],_0x2a8e5f=(_0x677f6d,_0x830b92,_0x40acfc,_0x226465)=>{const _0x2ed9b6=_0x30a57b;for(var _0x270ecd=_0x226465>0x1?void 0x0:_0x226465?_0x3ede3f(_0x830b92,_0x40acfc):_0x830b92,_0x31681f=_0x677f6d[_0x2ed9b6(0x226)]-0x1,_0x42983e;_0x31681f>=0x0;_0x31681f--)(_0x42983e=_0x677f6d[_0x31681f])&&(_0x270ecd=(_0x226465?_0x42983e(_0x830b92,_0x40acfc,_0x270ecd):_0x42983e(_0x270ecd))||_0x270ecd);return _0x226465&&_0x270ecd&&_0x615bc2(_0x830b92,_0x40acfc,_0x270ecd),_0x270ecd;},_0x5b2d35=(_0x31850e,_0x65ddfe)=>(_0x4c540c,_0x1171b9)=>_0x65ddfe(_0x4c540c,_0x1171b9,_0x31850e);const _0x4a99c7=0x12c,_0x1b4302=0x64,_0x273194=()=>{let _0x234468=[],_0x548ff7=!0x1;return _0x231cf9=>{_0x234468['push'](_0x231cf9),_0x548ff7||(_0x548ff7=!0x0,setTimeout(()=>{const _0x5ecec6=_0x4fdf;_0x234468[_0x5ecec6(0x3d0)](_0x12bece=>_0x12bece()),_0x234468=[],_0x548ff7=!0x1;}));};};let _0x402763=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x197e3d,_0x23fa32,_0xd24916,_0xa8d156,_0x4e19f1,_0x35b312,_0x306c54,_0x3ce4d9){const _0x8a5739=_0x30a57b;super(),_0x141732(this,_0x8a5739(0x1c4),!0x1),_0x141732(this,_0x8a5739(0x23a),!0x1),_0x141732(this,_0x8a5739(0x2bf),new _0x4f561c[(_0x8a5739(0x22d))](new Map())),_0x141732(this,_0x8a5739(0x4eb),this[_0x8a5739(0x2bf)][_0x8a5739(0x29e)]()),_0x141732(this,'_roomMembers$',new _0x4f561c[(_0x8a5739(0x22d))]([])),_0x141732(this,_0x8a5739(0x394),this[_0x8a5739(0x241)]['pipe'](_0x4f561c[_0x8a5739(0x4d6)](_0x4a99c7))),_0x141732(this,'_updateLocalCursor',_0x123ccf[_0x8a5739(0x46e)]((_0x4698d4,_0xdbb3d)=>{const _0x39dbb1=_0x8a5739,_0x520612={'eventID':_0x44c0c5[_0x39dbb1(0x22e)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x39dbb1(0x1e0)](),'selection':_0x36dd11['serializeRangeWithSheet'](_0x4698d4,_0xdbb3d[_0x39dbb1(0x1ae)])}};this[_0x39dbb1(0x2fc)]['send'](_0x520612,this[_0x39dbb1(0x4e2)]);},_0x1b4302)),(this['unitID']=_0x197e3d,this[_0x8a5739(0x2fc)]=_0x23fa32,this['_injector']=_0xd24916,this['_colorAssignService']=_0xa8d156,this[_0x8a5739(0x515)]=_0x4e19f1,this['_univerInstanceService']=_0x35b312,this['_commandService']=_0x306c54,this[_0x8a5739(0x51f)]=_0x3ce4d9);}get[_0x30a57b(0x407)](){const _0x31a7ab=_0x30a57b;return this['_cursorInfo$'][_0x31a7ab(0x417)]();}get[_0x30a57b(0x3ee)](){const _0x176dad=_0x30a57b;return this[_0x176dad(0x241)][_0x176dad(0x417)]();}['dispose'](){const _0x5777b8=_0x30a57b;super[_0x5777b8(0x33e)](),this[_0x5777b8(0x2bf)][_0x5777b8(0x595)](new Map()),this[_0x5777b8(0x2bf)][_0x5777b8(0x395)](),this[_0x5777b8(0x241)][_0x5777b8(0x595)]([]),this[_0x5777b8(0x241)][_0x5777b8(0x395)]();}['init'](){const _0xb3a67=_0x30a57b;this[_0xb3a67(0x23a)]||(this[_0xb3a67(0x23a)]=!0x0,this[_0xb3a67(0x2fc)]['sessionStatus$'][_0xb3a67(0x243)](_0x4f561c[_0xb3a67(0x36d)](this[_0xb3a67(0x39a)]))[_0xb3a67(0x383)](_0x277af6=>{const _0x16b718=_0xb3a67;_0x277af6===_0x1f9fa8[_0x16b718(0x2cd)]?this['_toggleOnline']():this[_0x16b718(0x1d0)]();}),this[_0xb3a67(0x2fc)][_0xb3a67(0x44b)]['pipe'](_0x4f561c['takeUntil'](this['dispose$']))[_0xb3a67(0x383)](_0x55f64b=>{const _0x433882=_0xb3a67,_0x2aec3e=_0x55f64b['eventID'];_0x2aec3e===_0x44c0c5[_0x433882(0x22e)]['UPDATE_CURSOR']&&this[_0x433882(0x338)](_0x55f64b),_0x2aec3e===_0x44c0c5[_0x433882(0x22e)][_0x433882(0x1f4)]&&this[_0x433882(0x2ca)](_0x55f64b);}),this['_onRefRangeChange'](),this[_0xb3a67(0x285)](this['_commandService']['onCommandExecuted'](_0x16eef4=>{const _0x25b2eb=_0xb3a67;if(this[_0x25b2eb(0x1c4)]&&_0x16eef4['id']===_0x4560f7[_0x25b2eb(0x4e8)]['id']&&_0x16eef4[_0x25b2eb(0x240)][_0x25b2eb(0x432)]===this['unitID']){const _0x2fe05b=_0x16eef4[_0x25b2eb(0x240)];this[_0x25b2eb(0x40f)](_0x2fe05b[_0x25b2eb(0x231)],_0x2fe05b[_0x25b2eb(0x36c)][0x0]);}})));}[_0x30a57b(0x338)](_0x2dc00d){const _0x49339d=_0x30a57b;var _0x4a8d42,_0x4b8994;const {memberID:_0x5322ab,selection:_0x4736b7}=_0x2dc00d[_0x49339d(0x5a6)],{sheetName:_0x188b20,range:_0x45a958}=_0x36dd11[_0x49339d(0x2ad)](_0x4736b7),_0x559781={'name':(_0x4b8994=(_0x4a8d42=this[_0x49339d(0x515)][_0x49339d(0x2ba)](this[_0x49339d(0x4e2)],_0x5322ab))==null?void 0x0:_0x4a8d42[_0x49339d(0x482)])!=null?_0x4b8994:_0x49339d(0x449),'range':this[_0x49339d(0x413)](_0x188b20,_0x45a958),'sheetID':_0x188b20,'color':this[_0x49339d(0x505)][_0x49339d(0x210)](_0x5322ab),'selection':_0x4736b7},_0x41a1df=this[_0x49339d(0x407)];_0x41a1df['set'](_0x5322ab,_0x559781),this[_0x49339d(0x2bf)][_0x49339d(0x595)](_0x41a1df);}[_0x30a57b(0x2ca)](_0x59d498){const _0x400a11=_0x30a57b,{memberID:_0x468c05}=_0x59d498[_0x400a11(0x5a6)],_0x2d698b=this[_0x400a11(0x407)];_0x2d698b['delete'](_0x468c05),this['_cursorInfo$'][_0x400a11(0x595)](_0x2d698b);}[_0x30a57b(0x413)](_0x33459b,_0x864f50){const _0x454ee3=_0x30a57b;var _0x5bad51,_0x2e320f;const _0x480f8f=(_0x2e320f=(_0x5bad51=this['_univerInstanceService'][_0x454ee3(0x56c)](this[_0x454ee3(0x4e2)]))==null?void 0x0:_0x5bad51[_0x454ee3(0x34a)](_0x33459b))==null?void 0x0:_0x2e320f[_0x454ee3(0x1b6)]();return(_0x480f8f==null?void 0x0:_0x480f8f[_0x454ee3(0x2d7)](_0x304bd5=>_0x123ccf[_0x454ee3(0x2d3)][_0x454ee3(0x57b)](_0x304bd5,_0x864f50)))||_0x864f50;}[_0x30a57b(0x3b5)](){const _0x8895e7=_0x30a57b,_0x2bb315=new _0x123ccf[(_0x8895e7(0x534))](),_0x42bbde=_0x273194(),_0x4b022f=()=>{const _0xe60103=_0x8895e7;_0x2bb315[_0xe60103(0x33e)]();const _0x35fa9c=(_0x5c3d17,_0x502bb0,_0x28d3b9,_0x3ecf75)=>{const _0xe68337=_0xe60103;let _0x21ca06=[];switch(_0x5c3d17['id']){case _0x4560f7['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:{_0x21ca06=_0x4560f7[_0xe68337(0x33c)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)]['DeleteRangeMoveUpCommandId']:{_0x21ca06=_0x4560f7[_0xe68337(0x357)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7['EffectRefRangId']['InsertColCommandId']:{_0x21ca06=_0x4560f7['handleInsertCol'](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)][_0xe68337(0x4e9)]:{_0x21ca06=_0x4560f7[_0xe68337(0x51d)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)][_0xe68337(0x574)]:{_0x21ca06=_0x4560f7[_0xe68337(0x4e5)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)][_0xe68337(0x36a)]:{_0x21ca06=_0x4560f7[_0xe68337(0x41f)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)][_0xe68337(0x408)]:{_0x21ca06=_0x4560f7[_0xe68337(0x198)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)][_0xe68337(0x554)]:{_0x21ca06=_0x4560f7[_0xe68337(0x3d9)](_0x5c3d17,_0x3ecf75);break;}case _0x4560f7[_0xe68337(0x367)][_0xe68337(0x4a7)]:{_0x21ca06=_0x4560f7[_0xe68337(0x37c)](_0x5c3d17,_0x3ecf75);break;}}const _0xf4239f=_0x4560f7['runRefRangeMutations'](_0x21ca06,_0x3ecf75),_0x36a024=this[_0xe68337(0x407)][_0xe68337(0x3c0)](_0x502bb0);if(_0x36a024&&_0xf4239f){const _0x3a68b6={..._0x36a024,'range':_0xf4239f};this[_0xe68337(0x407)][_0xe68337(0x3be)](_0x502bb0,_0x3a68b6),_0x42bbde(()=>{const _0x6ae88e=_0xe68337,_0x581d10=this['_refRangeService'][_0x6ae88e(0x1b7)](_0xf4239f,_0x3963c5=>(_0x581d10[_0x6ae88e(0x33e)](),_0x35fa9c(_0x3963c5,_0x502bb0,_0x28d3b9,_0xf4239f)));_0x2bb315['add'](_0x581d10);});}return{'redos':[],'undos':[]};};this[_0xe60103(0x407)][_0xe60103(0x3d0)]((_0x375975,_0x1470c4)=>{const _0x75f2b4=_0xe60103,{range:_0x46339d,sheetID:_0x3814e6}=_0x375975,_0xb27e04=this[_0x75f2b4(0x51f)]['registerRefRange'](_0x46339d,_0x4eee7b=>(_0xb27e04['dispose'](),_0x35fa9c(_0x4eee7b,_0x1470c4,_0x3814e6,_0x46339d)));_0x2bb315[_0x75f2b4(0x225)](_0xb27e04);});};this['disposeWithMe'](_0x123ccf[_0x8895e7(0x388)](this[_0x8895e7(0x2bf)][_0x8895e7(0x383)](()=>{_0x4b022f();})));}['_toggleOnline'](){const _0x1fd6c8=_0x30a57b;var _0x560148,_0x228802;if(this[_0x1fd6c8(0x1c4)]=!0x0,((_0x560148=this['_univerInstanceService'][_0x1fd6c8(0x2e1)]())==null?void 0x0:_0x560148[_0x1fd6c8(0x281)]())!==this['unitID'])return;const _0x339785=(_0x228802=this[_0x1fd6c8(0x179)][_0x1fd6c8(0x3c0)](_0x4560f7['SheetsSelectionsService'])[_0x1fd6c8(0x585)]())==null?void 0x0:_0x228802[0x0],_0x11f412=this[_0x1fd6c8(0x1de)][_0x1fd6c8(0x215)](_0x123ccf['UniverInstanceType'][_0x1fd6c8(0x356)])['getActiveSheet']();_0x339785&&_0x11f412&&this[_0x1fd6c8(0x40f)](_0x11f412['getSheetId'](),_0x339785);}[_0x30a57b(0x1d0)](){const _0x518830=_0x30a57b;this[_0x518830(0x1c4)]=!0x1;}};_0x402763=_0x2a8e5f([_0x5b2d35(0x2,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x5b2d35(0x3,_0x123ccf[_0x30a57b(0x398)](_0x1f90b9)),_0x5b2d35(0x4,_0x123ccf[_0x30a57b(0x398)](_0x202674)),_0x5b2d35(0x5,_0x123ccf[_0x30a57b(0x4c8)]),_0x5b2d35(0x6,_0x123ccf[_0x30a57b(0x25c)]),_0x5b2d35(0x7,_0x123ccf[_0x30a57b(0x398)](_0x4560f7[_0x30a57b(0x3af)]))],_0x402763);var _0x32fd84=Object[_0x30a57b(0x26e)],_0x11f770=Object[_0x30a57b(0x5ab)],_0x3c7062=(_0x522541,_0x1497c3,_0x27c6ea,_0x227b1f)=>{for(var _0x18571e=_0x227b1f>0x1?void 0x0:_0x227b1f?_0x11f770(_0x1497c3,_0x27c6ea):_0x1497c3,_0x3faac2=_0x522541['length']-0x1,_0xe66e7c;_0x3faac2>=0x0;_0x3faac2--)(_0xe66e7c=_0x522541[_0x3faac2])&&(_0x18571e=(_0x227b1f?_0xe66e7c(_0x1497c3,_0x27c6ea,_0x18571e):_0xe66e7c(_0x18571e))||_0x18571e);return _0x227b1f&&_0x18571e&&_0x32fd84(_0x1497c3,_0x27c6ea,_0x18571e),_0x18571e;},_0x332a8d=(_0x48c1a7,_0x3ae495)=>(_0x2ecb88,_0x2abd0e)=>_0x3ae495(_0x2ecb88,_0x2abd0e,_0x48c1a7);let _0x378283=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x1d2924,_0x5db3cd,_0x4a72ee){const _0x58207c=_0x30a57b;super(),_0x141732(this,_0x58207c(0x315),new Map()),_0x141732(this,_0x58207c(0x30d),new _0x4f561c['Subject']()),(this[_0x58207c(0x1de)]=_0x1d2924,this[_0x58207c(0x179)]=_0x5db3cd,this[_0x58207c(0x575)]=_0x4a72ee,this[_0x58207c(0x23a)]());}[_0x30a57b(0x33e)](){const _0x22c253=_0x30a57b;super[_0x22c253(0x33e)](),this['_entityInit$']['complete'](),this['_entities']['forEach'](_0x164aec=>_0x164aec[_0x22c253(0x33e)]());}[_0x30a57b(0x4e0)](_0x3bbac6){const _0xaa66ff=_0x30a57b;return this[_0xaa66ff(0x315)]['has'](_0x3bbac6)?this[_0xaa66ff(0x315)][_0xaa66ff(0x3c0)](_0x3bbac6)['cursorInfo$']:this[_0xaa66ff(0x30d)][_0xaa66ff(0x243)](_0x4f561c[_0xaa66ff(0x3fa)](_0x39525f=>_0x39525f[_0xaa66ff(0x4e2)]===_0x3bbac6),_0x4f561c[_0xaa66ff(0x2f8)](_0x4b419a=>_0x4b419a[_0xaa66ff(0x4eb)]));}['_init'](){const _0x21d981=_0x30a57b;this[_0x21d981(0x1de)][_0x21d981(0x36f)](_0x123ccf[_0x21d981(0x3ab)][_0x21d981(0x356)])[_0x21d981(0x243)](_0x4f561c['takeUntil'](this['dispose$']))[_0x21d981(0x383)](async _0x2190c8=>{const _0x13246f=_0x21d981,_0x7e832a=_0x2190c8[_0x13246f(0x281)](),_0x45d36c=await this['_startSheetCollabCursor'](_0x7e832a);this[_0x13246f(0x30d)][_0x13246f(0x595)](_0x45d36c),this['_entities'][_0x13246f(0x3be)](_0x7e832a,_0x45d36c);}),this[_0x21d981(0x1de)][_0x21d981(0x36f)](_0x123ccf[_0x21d981(0x3ab)][_0x21d981(0x34c)])[_0x21d981(0x243)](_0x4f561c[_0x21d981(0x36d)](this[_0x21d981(0x39a)]))[_0x21d981(0x243)](_0x4f561c[_0x21d981(0x3fa)](_0x428cc3=>!_0x428cc3[_0x21d981(0x281)]()[_0x21d981(0x480)]('__')))[_0x21d981(0x383)](async _0x5f8960=>{const _0x2bb2b3=_0x21d981,_0x5d0caf=_0x5f8960['getUnitId'](),_0x4580cd=await this[_0x2bb2b3(0x2a5)](_0x5d0caf);this[_0x2bb2b3(0x30d)][_0x2bb2b3(0x595)](_0x4580cd),this[_0x2bb2b3(0x315)][_0x2bb2b3(0x3be)](_0x5d0caf,_0x4580cd);}),_0x4f561c[_0x21d981(0x32a)](this[_0x21d981(0x1de)][_0x21d981(0x29b)](_0x123ccf[_0x21d981(0x3ab)][_0x21d981(0x34c)]),this[_0x21d981(0x1de)]['getTypeOfUnitDisposed$'](_0x123ccf[_0x21d981(0x3ab)][_0x21d981(0x356)]))[_0x21d981(0x243)](_0x4f561c['takeUntil'](this[_0x21d981(0x39a)]))[_0x21d981(0x383)](_0x1bd278=>{const _0x13a219=_0x21d981,_0x4b9f17=_0x1bd278['getUnitId'](),_0x2384b8=this[_0x13a219(0x315)][_0x13a219(0x3c0)](_0x4b9f17);_0x2384b8&&(_0x2384b8[_0x13a219(0x33e)](),this[_0x13a219(0x315)][_0x13a219(0x55c)](_0x4b9f17));});}async[_0x30a57b(0x4ac)](_0x2d87f5){const _0x2af34f=_0x30a57b,_0x589f94=await this[_0x2af34f(0x575)][_0x2af34f(0x588)](_0x2d87f5),_0x442647=this[_0x2af34f(0x179)]['createInstance'](_0x402763,_0x2d87f5,_0x589f94);return _0x442647[_0x2af34f(0x418)](),_0x442647;}async[_0x30a57b(0x2a5)](_0x22e366){const _0x1c2abd=_0x30a57b,_0xf81de4=await this[_0x1c2abd(0x575)]['requireSession'](_0x22e366),_0x10f1e9=this[_0x1c2abd(0x179)][_0x1c2abd(0x496)](_0x4df849,_0x22e366,_0xf81de4);return _0x10f1e9[_0x1c2abd(0x418)](),_0x10f1e9;}};_0x378283=_0x3c7062([_0x332a8d(0x0,_0x123ccf['IUniverInstanceService']),_0x332a8d(0x1,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x332a8d(0x2,_0x123ccf['Inject'](_0x3ba5f7['CollaborationSessionService']))],_0x378283);const _0x1958f6=0x14,_0x42f35a=0xc8,_0x44a916=0x4,_0x322f9a=0x5;function _0x2b35b5(_0x3c1809,_0x46a241){const _0xf29ac=_0x30a57b;let {radius:_0x28fbb2,width:_0x47af0a,height:_0xf89c03}=_0x46a241;_0x28fbb2=_0x28fbb2!=null?_0x28fbb2:0x0,_0x47af0a=_0x47af0a!=null?_0x47af0a:0x1e,_0xf89c03=_0xf89c03!=null?_0xf89c03:0x1e;let _0x171d61=0x0,_0x54e97e=0x0,_0x3bdf79=0x0;_0x171d61=_0x54e97e=_0x3bdf79=Math['min'](_0x28fbb2,_0x47af0a/0x2,_0xf89c03/0x2),_0x3c1809['beginPath'](),_0x3c1809[_0xf29ac(0x4b5)](_0x171d61,0x0),_0x3c1809['lineTo'](_0x47af0a-_0x54e97e,0x0),_0x3c1809[_0xf29ac(0x462)](_0x47af0a-_0x54e97e,_0x54e97e,_0x54e97e,Math['PI']*0x3/0x2,0x0,!0x1),_0x3c1809[_0xf29ac(0x526)](_0x47af0a,_0xf89c03-_0x3bdf79),_0x3c1809[_0xf29ac(0x462)](_0x47af0a-_0x3bdf79,_0xf89c03-_0x3bdf79,_0x3bdf79,0x0,Math['PI']/0x2,!0x1),_0x3c1809[_0xf29ac(0x526)](0x0,_0xf89c03),_0x3c1809[_0xf29ac(0x526)](0x0,_0x171d61),_0x3c1809[_0xf29ac(0x462)](_0x171d61,_0x171d61,_0x171d61,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3c1809['closePath'](),_0x46a241['fill']&&(_0x3c1809[_0xf29ac(0x40e)](),_0x3c1809[_0xf29ac(0x565)]=_0x46a241[_0xf29ac(0x2f6)],_0x46a241[_0xf29ac(0x25d)]==='evenodd'?_0x3c1809[_0xf29ac(0x2f6)](_0xf29ac(0x520)):_0x3c1809[_0xf29ac(0x2f6)](),_0x3c1809[_0xf29ac(0x1bf)]());}class _0x431dcb extends _0x38daca[_0x30a57b(0x31b)]{constructor(_0x26c999,_0x2a6b8c){const _0x166d93=_0x30a57b;super(_0x26c999,_0x2a6b8c),_0x141732(this,_0x166d93(0x4c6)),_0x141732(this,_0x166d93(0x19d)),(this[_0x166d93(0x4c6)]=_0x2a6b8c==null?void 0x0:_0x2a6b8c[_0x166d93(0x4c6)],this['text']=_0x2a6b8c==null?void 0x0:_0x2a6b8c[_0x166d93(0x19d)]);}static[_0x30a57b(0x23e)](_0x214889,_0x4b9357){const _0x514af0=_0x30a57b,{text:_0x3440fb,color:_0x41e6b3}=_0x4b9357;_0x214889[_0x514af0(0x40e)](),_0x214889['font']=_0x514af0(0x272);const _0xb7a55c=_0x214889[_0x514af0(0x3ac)](_0x3440fb)['width'],_0x3e00b9=Math[_0x514af0(0x5a9)](_0xb7a55c+0x2*_0x44a916,_0x42f35a);_0x2b35b5(_0x214889,{'height':_0x1958f6,'radius':0x4,'width':_0x3e00b9,'fill':_0x41e6b3,'evented':!0x1}),_0x214889['fillStyle']=_0x514af0(0x1a5);const _0x45152d=_0x44a916,_0x2397bc=_0x1958f6-_0x322f9a,_0x5dbe5f=_0x42f35a-0x2*_0x44a916;if(_0xb7a55c>_0x5dbe5f){let _0x3bc5ae='',_0x1b96ee=0x0;for(const _0x4f6ba3 of _0x3440fb){const _0x10a1f2=_0x214889[_0x514af0(0x3ac)](_0x4f6ba3)[_0x514af0(0x578)];if(_0x1b96ee+_0x10a1f2<=_0x5dbe5f-_0x214889[_0x514af0(0x3ac)]('...')[_0x514af0(0x578)])_0x3bc5ae+=_0x4f6ba3,_0x1b96ee+=_0x10a1f2;else{_0x3bc5ae+=_0x514af0(0x524);break;}}_0x214889[_0x514af0(0x53b)](_0x3bc5ae,_0x45152d,_0x2397bc);}else _0x214889['fillText'](_0x3440fb,_0x45152d,_0x2397bc);_0x214889[_0x514af0(0x1bf)]();}[_0x30a57b(0x28d)](_0x12b2ae){_0x431dcb['drawWith'](_0x12b2ae,this);}}const _0x45c207=_0x30a57b(0x470),_0x5e5fda=_0x30a57b(0x44a),_0x57e8a2=_0x30a57b(0x2b0),_0x1e4dd5=0x6,_0x14bd3f=1.5,_0x12c9b7=0x4,_0x466400=1.5,_0x4be60b='rgba(255,\x20255,\x20255,\x200.01)';class _0x4eb39a{constructor(_0x15e390,_0xd2b41f,_0x302e6f,_0x205041){const _0x4c476a=_0x30a57b;_0x141732(this,_0x4c476a(0x45d),[]),_0x141732(this,_0x4c476a(0x22f),null),_0x141732(this,_0x4c476a(0x48b),null),_0x141732(this,'_anchorDot',null),_0x141732(this,'_hideTimer',null),_0x141732(this,'_eventUnsubscribe',null),(this[_0x4c476a(0x3da)]=_0x15e390,this[_0x4c476a(0x190)]=_0xd2b41f,this[_0x4c476a(0x483)]=_0x302e6f,this[_0x4c476a(0x348)]=_0x205041,this[_0x4c476a(0x2df)]());}set[_0x30a57b(0x51c)](_0x93e67e){const _0xd5bc94=_0x30a57b;_0x93e67e?(this[_0xd5bc94(0x566)]&&this[_0xd5bc94(0x566)][_0xd5bc94(0x434)](),this[_0xd5bc94(0x48b)]&&this['_textBubble']['show']()):(this[_0xd5bc94(0x566)]&&this[_0xd5bc94(0x566)]['show'](),this[_0xd5bc94(0x48b)]&&this[_0xd5bc94(0x48b)]['hide']());}[_0x30a57b(0x33e)](){const _0xeafc1c=_0x30a57b;for(const _0x2dd95a of this[_0xeafc1c(0x45d)])_0x2dd95a[_0xeafc1c(0x33e)]();this[_0xeafc1c(0x48b)]&&this['_textBubble'][_0xeafc1c(0x33e)](),this['_anchorDot']&&this[_0xeafc1c(0x566)][_0xeafc1c(0x33e)](),this[_0xeafc1c(0x22f)]&&this[_0xeafc1c(0x22f)][_0xeafc1c(0x33e)](),this['_eventUnsubscribe']&&this[_0xeafc1c(0x2f3)]();}[_0x30a57b(0x2df)](){const _0x53db78=_0x30a57b;var _0x178d7f;const {_docSkeleton:_0x2c28b2,_document:_0x279d91}=this,{color:_0x12c6c4,name:_0x1a7470,ranges:_0x1c0cd7}=this[_0x53db78(0x3da)],_0x537725=_0x279d91[_0x53db78(0x327)](),{docsLeft:_0x2be372,docsTop:_0x4a0bb1}=_0x537725,_0x5b6bd5=new _0x5a2573['NodePositionConvertToCursor'](_0x537725,_0x2c28b2);for(const {startOffset:_0x4cb488,endOffset:_0x40f000,collapsed:_0x36ef53,isActive:_0x2a7641}of _0x1c0cd7){const _0x2c4097=_0x2c28b2[_0x53db78(0x300)](_0x4cb488),_0x200072=_0x2c28b2[_0x53db78(0x300)](_0x40f000);if(_0x2a7641){const {contentBoxPointGroup:_0x1ebedb}=_0x5b6bd5[_0x53db78(0x58b)](_0x200072,_0x200072);if(_0x1ebedb[_0x53db78(0x226)]===0x0)continue;this[_0x53db78(0x2fa)](_0x12c6c4,_0x1ebedb,_0x2be372,_0x4a0bb1,_0x1a7470),this['_eventUnsubscribe']=this[_0x53db78(0x1ac)]();}if(!_0x36ef53&&_0x2c4097&&_0x200072){if(_0x5a2573['isValidRectRange'](_0x2c4097,_0x200072)){const _0x3f5fbc=new _0x5a2573[(_0x53db78(0x2a6))](_0x537725,_0x2c28b2),{pointGroup:_0x28b725}=(_0x178d7f=_0x3f5fbc['getRangePointData'](_0x2c4097,_0x200072))!=null?_0x178d7f:{};if(_0x28b725==null||_0x28b725['length']===0x0)continue;this[_0x53db78(0x35e)](_0x12c6c4,_0x28b725,_0x2be372,_0x4a0bb1);}else{const {contentBoxPointGroup:_0x4836ac}=_0x5b6bd5[_0x53db78(0x58b)](_0x2c4097,_0x200072);if(_0x4836ac[_0x53db78(0x226)]===0x0)continue;this[_0x53db78(0x555)](_0x12c6c4,_0x4836ac,_0x2be372,_0x4a0bb1);}}}}['_drawAnchor'](_0x467019,_0x4d98a0,_0x2ddb90,_0x54e76f,_0x12ff0f){const _0x2fa245=_0x30a57b,_0x1db86a=this[_0x2fa245(0x4de)](_0x4d98a0),{left:_0x502789,top:_0x55cd35,height:_0x51b8da}=_0x1db86a,_0x4e02ec=this['_getScale'](),_0x31b6a4=_0x466400/_0x4e02ec,_0x4e478c=new _0x38daca['Rect'](_0x45c207+_0x123ccf['Tools'][_0x2fa245(0x389)](_0x1e4dd5),{'left':_0x502789+_0x2ddb90-_0x31b6a4,'top':_0x55cd35+_0x54e76f,'height':_0x51b8da,'width':_0x14bd3f,'fill':_0x467019||_0x38daca[_0x2fa245(0x3ef)](_0x123ccf[_0x2fa245(0x51e)]['black'],0x0),'strokeWidth':_0x31b6a4,'stroke':_0x4be60b,'evented':!0x0});this['_anchor']=_0x4e478c,this[_0x2fa245(0x190)]['addObject'](_0x4e478c,_0x5a2573['TEXT_RANGE_LAYER_INDEX']);const _0x155e5b=new _0x38daca[(_0x2fa245(0x1bd))](_0x45c207+_0x123ccf[_0x2fa245(0x2e4)][_0x2fa245(0x389)](_0x1e4dd5),{'left':_0x502789+_0x2ddb90-_0x31b6a4,'top':_0x55cd35+_0x54e76f-_0x12c9b7/0x2,'height':_0x12c9b7,'width':_0x12c9b7,'fill':_0x467019||_0x38daca[_0x2fa245(0x3ef)](_0x123ccf['COLORS'][_0x2fa245(0x37f)],0x0),'strokeWidth':0x0,'stroke':_0x467019||_0x38daca[_0x2fa245(0x3ef)](_0x123ccf[_0x2fa245(0x51e)]['black'],0x0),'evented':!0x1});this['_anchorDot']=_0x155e5b,this[_0x2fa245(0x190)][_0x2fa245(0x4d2)](_0x155e5b,_0x5a2573[_0x2fa245(0x4a0)]);const _0x66e303=new _0x431dcb(_0x45c207+_0x123ccf[_0x2fa245(0x2e4)][_0x2fa245(0x389)](_0x1e4dd5),{'left':_0x502789+_0x2ddb90-_0x31b6a4,'top':_0x55cd35+_0x54e76f-_0x1958f6,'text':_0x12ff0f,'color':_0x467019});this[_0x2fa245(0x48b)]=_0x66e303,this[_0x2fa245(0x190)][_0x2fa245(0x4d2)](_0x66e303,_0x5a2573['TEXT_RANGE_LAYER_INDEX']),this['_hover']=!0x1;}[_0x30a57b(0x1ac)](){const _0x32c8a8=_0x30a57b,_0x52f429=this[_0x32c8a8(0x22f)][_0x32c8a8(0x3ec)][_0x32c8a8(0x52e)](()=>{this['_hover']=!0x0;}),_0x49fc35=this[_0x32c8a8(0x22f)][_0x32c8a8(0x19b)][_0x32c8a8(0x52e)](()=>{const _0x58d9fc=_0x32c8a8;this[_0x58d9fc(0x176)]&&clearTimeout(this[_0x58d9fc(0x176)]),this[_0x58d9fc(0x176)]=setTimeout(()=>{const _0x476c56=_0x58d9fc;this[_0x476c56(0x51c)]=!0x1;},0x7d0);});return()=>{const _0x3acdbe=_0x32c8a8;_0x52f429[_0x3acdbe(0x3b9)](),_0x49fc35[_0x3acdbe(0x3b9)]();};}[_0x30a57b(0x555)](_0x37eacf,_0x30875b,_0x2a9120,_0x363c63){const _0x1db07c=_0x30a57b,_0x2201e0=new _0x123ccf[(_0x1db07c(0x3cb))](_0x37eacf)[_0x1db07c(0x56d)](0.2)[_0x1db07c(0x3b8)](),_0x18901e=new _0x38daca[(_0x1db07c(0x180))](_0x5e5fda+_0x123ccf[_0x1db07c(0x2e4)][_0x1db07c(0x389)](_0x1e4dd5),{'pointsGroup':_0x30875b,'fill':_0x2201e0||_0x38daca[_0x1db07c(0x3ef)](_0x123ccf[_0x1db07c(0x51e)][_0x1db07c(0x37f)],0.2),'left':_0x2a9120,'top':_0x363c63,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1db07c(0x45d)][_0x1db07c(0x4cc)](_0x18901e),this[_0x1db07c(0x190)][_0x1db07c(0x4d2)](_0x18901e,_0x5a2573[_0x1db07c(0x4a0)]);}[_0x30a57b(0x35e)](_0xd96f8a,_0x1bbeec,_0x246e3c,_0x37b841){const _0x3d34c6=_0x30a57b,_0x47442d=new _0x123ccf[(_0x3d34c6(0x3cb))](_0xd96f8a)['setAlpha'](0.2)[_0x3d34c6(0x3b8)](),_0x3ec7af=new _0x38daca['RegularPolygon'](_0x57e8a2+_0x123ccf[_0x3d34c6(0x2e4)][_0x3d34c6(0x389)](_0x1e4dd5),{'pointsGroup':_0x1bbeec,'fill':_0x47442d||_0x38daca['getColor'](_0x123ccf['COLORS'][_0x3d34c6(0x37f)],0.2),'left':_0x246e3c,'top':_0x37b841,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x3d34c6(0x45d)][_0x3d34c6(0x4cc)](_0x3ec7af),this['_scene'][_0x3d34c6(0x4d2)](_0x3ec7af,_0x5a2573[_0x3d34c6(0x4a0)]);}[_0x30a57b(0x4de)](_0x5c0620){const _0xaaa69=_0x5c0620[0x0],_0x4bd3bf=_0xaaa69[0x0],_0x4efc87=_0xaaa69[0x2],{x:_0x56118a,y:_0x3c4f5b}=_0x4bd3bf,{x:_0x553deb,y:_0x3cb29e}=_0x4efc87;return{'left':_0x56118a,'top':_0x3c4f5b,'width':_0x553deb-_0x56118a,'height':_0x3cb29e-_0x3c4f5b};}[_0x30a57b(0x1a9)](){const _0x25c4f5=_0x30a57b,{scaleX:_0x58e500,scaleY:_0x3a1081}=this[_0x25c4f5(0x190)][_0x25c4f5(0x527)]();return Math[_0x25c4f5(0x1a1)](_0x58e500,_0x3a1081);}}var _0x2c6714=Object[_0x30a57b(0x26e)],_0x4e30b9=Object[_0x30a57b(0x5ab)],_0x38575f=(_0x44f01a,_0x4e9ca7,_0x249acb,_0x393d77)=>{for(var _0xd6c546=_0x393d77>0x1?void 0x0:_0x393d77?_0x4e30b9(_0x4e9ca7,_0x249acb):_0x4e9ca7,_0x177401=_0x44f01a['length']-0x1,_0x50c522;_0x177401>=0x0;_0x177401--)(_0x50c522=_0x44f01a[_0x177401])&&(_0xd6c546=(_0x393d77?_0x50c522(_0x4e9ca7,_0x249acb,_0xd6c546):_0x50c522(_0xd6c546))||_0xd6c546);return _0x393d77&&_0xd6c546&&_0x2c6714(_0x4e9ca7,_0x249acb,_0xd6c546),_0xd6c546;},_0x44889a=(_0x18d4f7,_0x383d1d)=>(_0x4ade49,_0x57b914)=>_0x383d1d(_0x4ade49,_0x57b914,_0x18d4f7);let _0x4d66d3=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x8228e5,_0x2b4aa9,_0x568fe9,_0x138707,_0x4c1334){const _0x3b54eb=_0x30a57b;super(),_0x141732(this,_0x3b54eb(0x3d2),[]),_0x141732(this,_0x3b54eb(0x334),[]),(this[_0x3b54eb(0x34f)]=_0x8228e5,this[_0x3b54eb(0x488)]=_0x2b4aa9,this['_collabCursorController']=_0x568fe9,this['_commandService']=_0x138707,this[_0x3b54eb(0x55b)]=_0x4c1334,this[_0x3b54eb(0x23a)]());}[_0x30a57b(0x23a)](){const _0x14e6a5=_0x30a57b,_0x154645=this[_0x14e6a5(0x34f)][_0x14e6a5(0x432)],_0x401ffe=this[_0x14e6a5(0x488)];this[_0x14e6a5(0x285)](_0x4f561c[_0x14e6a5(0x3fc)]([this[_0x14e6a5(0x4c3)][_0x14e6a5(0x4e0)](_0x154645),this[_0x14e6a5(0x55b)]['currentTheme$']])[_0x14e6a5(0x243)](_0x3262ca[_0x14e6a5(0x450)](([_0x2b0394,_0x459873])=>({'skeleton':_0x401ffe[_0x14e6a5(0x299)](),'cursors':[..._0x2b0394[_0x14e6a5(0x576)]()][_0x14e6a5(0x186)](_0x1a537f=>({..._0x1a537f,'color':_0x459873[_0x1a537f[_0x14e6a5(0x4c6)]]}))})))[_0x14e6a5(0x383)](_0x583a37=>{const _0x5cbca5=_0x14e6a5;if(this[_0x5cbca5(0x2b1)](),_0x583a37){const {skeleton:_0x45ba8e,cursors:_0x27e845}=_0x583a37;this[_0x5cbca5(0x193)](_0x45ba8e,_0x27e845);}})),this[_0x14e6a5(0x208)](),this[_0x14e6a5(0x391)]();}[_0x30a57b(0x193)](_0x49e892,_0x1c9c14){const _0x2fce18=_0x30a57b,{scene:_0x187a58,mainComponent:_0x38ff47}=this['_context'],_0x1c95dc=_0x1c9c14['map'](_0x3838f8=>new _0x4eb39a(_0x3838f8,_0x187a58,_0x49e892,_0x38ff47));this[_0x2fce18(0x3d2)]=_0x1c95dc,this[_0x2fce18(0x334)]=_0x1c9c14;}[_0x30a57b(0x4d0)](){const _0x51d56c=_0x30a57b;this[_0x51d56c(0x2b1)]();const {scene:_0x308fd4,mainComponent:_0x38f7f0}=this[_0x51d56c(0x34f)],_0x44983c=this[_0x51d56c(0x488)]['getSkeleton'](),_0x212c5f=this[_0x51d56c(0x334)][_0x51d56c(0x450)](_0x2b4761=>new _0x4eb39a(_0x2b4761,_0x308fd4,_0x44983c,_0x38f7f0));this[_0x51d56c(0x3d2)]=_0x212c5f;}[_0x30a57b(0x2b1)](){const _0x637bba=_0x30a57b;this['_cursorShapes'][_0x637bba(0x3d0)](_0x31c39d=>_0x31c39d[_0x637bba(0x33e)]()),this[_0x637bba(0x3d2)]=[];}[_0x30a57b(0x391)](){const _0x3dddde=_0x30a57b,_0x99af03=[_0x5a2573['SetDocZoomRatioOperation']['id']];this[_0x3dddde(0x285)](this['_commandService']['onCommandExecuted'](_0x35232a=>{const _0x47a6ea=_0x3dddde;_0x99af03[_0x47a6ea(0x1e9)](_0x35232a['id'])&&_0x35232a[_0x47a6ea(0x240)][_0x47a6ea(0x432)]===this[_0x47a6ea(0x34f)][_0x47a6ea(0x432)]&&this[_0x47a6ea(0x4d0)]();}));}[_0x30a57b(0x208)](){const _0x1555d5=_0x30a57b;this['disposeWithMe'](_0x123ccf[_0x1555d5(0x24e)](this[_0x1555d5(0x34f)][_0x1555d5(0x26d)][_0x1555d5(0x45c)])[_0x1555d5(0x243)](_0x3262ca[_0x1555d5(0x3fa)](_0x437453=>_0x437453['type']===_0x38daca[_0x1555d5(0x3b1)]['resize']),_0x3262ca[_0x1555d5(0x1bb)](0x10))[_0x1555d5(0x383)](()=>{const _0x1b0440=_0x1555d5;this[_0x1b0440(0x4d0)]();}));}};_0x4d66d3=_0x38575f([_0x44889a(0x1,_0x123ccf['Inject'](_0x4f69d6[_0x30a57b(0x16c)])),_0x44889a(0x2,_0x123ccf[_0x30a57b(0x398)](_0x378283)),_0x44889a(0x3,_0x123ccf[_0x30a57b(0x25c)]),_0x44889a(0x4,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x580)]))],_0x4d66d3);const _0x24cefb=0x1,_0x2e6359=1.5;class _0x77ea83 extends _0x38daca[_0x30a57b(0x31b)]{constructor(_0x472471,_0x189588){const _0x12e51c=_0x30a57b;super(_0x472471,_0x189588),_0x141732(this,_0x12e51c(0x41e)),_0x141732(this,_0x12e51c(0x443),!0x1),_0x141732(this,_0x12e51c(0x465)),_0x141732(this,'_name',''),_0x141732(this,_0x12e51c(0x3a4),'top'),_0x141732(this,_0x12e51c(0x37e)),(_0x189588&&this[_0x12e51c(0x2c9)](_0x189588),this[_0x12e51c(0x3ec)][_0x12e51c(0x52e)](()=>this['setShapeProps']({'hovered':!0x0})),this[_0x12e51c(0x19b)][_0x12e51c(0x52e)](()=>this['setShapeProps']({'hovered':!0x1})));}['setShapeProps'](_0x3e6dfc){const _0x4f5fa8=_0x30a57b;var _0x4d3bc4,_0x517616,_0x32673b,_0x5c2ea3,_0x3cb338,_0x27aa02;this[_0x4f5fa8(0x41e)]=(_0x4d3bc4=_0x3e6dfc[_0x4f5fa8(0x4c6)])!=null?_0x4d3bc4:this[_0x4f5fa8(0x41e)],this['_hovered']=(_0x517616=_0x3e6dfc[_0x4f5fa8(0x5a0)])!=null?_0x517616:this[_0x4f5fa8(0x443)],this[_0x4f5fa8(0x465)]=(_0x32673b=_0x3e6dfc[_0x4f5fa8(0x1ae)])!=null?_0x32673b:this[_0x4f5fa8(0x465)],this[_0x4f5fa8(0x3e4)]=(_0x5c2ea3=_0x3e6dfc[_0x4f5fa8(0x482)])!=null?_0x5c2ea3:this[_0x4f5fa8(0x3e4)],this['_labelPosition']=(_0x3cb338=_0x3e6dfc[_0x4f5fa8(0x274)])!=null?_0x3cb338:this[_0x4f5fa8(0x3a4)],this[_0x4f5fa8(0x37e)]=(_0x27aa02=_0x3e6dfc['backgroundColor'])!=null?_0x27aa02:this[_0x4f5fa8(0x37e)],this['transformByState']({'width':_0x3e6dfc[_0x4f5fa8(0x578)],'height':_0x3e6dfc[_0x4f5fa8(0x2bc)]});}[_0x30a57b(0x49e)](_0x2ad00d){const _0x19effd=_0x30a57b,{row:_0x1fe8e4,column:_0x682f67}=_0x2ad00d;if(_0x1fe8e4>=this['_range'][_0x19effd(0x1c9)]&&_0x1fe8e4<=this[_0x19effd(0x465)][_0x19effd(0x2f1)]&&_0x682f67>=this[_0x19effd(0x465)][_0x19effd(0x18d)]&&_0x682f67<=this[_0x19effd(0x465)][_0x19effd(0x1a0)]){this[_0x19effd(0x2c9)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x30a57b(0x1be)](_0x15520e){return!0x1;}[_0x30a57b(0x28d)](_0x126280){const _0x24c435=_0x30a57b;_0x38daca[_0x24c435(0x1bd)][_0x24c435(0x23e)](_0x126280,{'width':this['width'],'height':this[_0x24c435(0x2bc)],'strokeWidth':_0x2e6359,'stroke':this[_0x24c435(0x41e)],'evented':!0x1,'fill':this[_0x24c435(0x37e)]}),this[_0x24c435(0x443)]&&(_0x126280[_0x24c435(0x40e)](),_0x126280['transform'](0x1,0x0,0x0,0x1,this['width'],this['_labelPosition']==='bottom'?0x0:-_0x1958f6),_0x431dcb['drawWith'](_0x126280,{'text':this[_0x24c435(0x3e4)],'color':this[_0x24c435(0x41e)]}),_0x126280['restore']());}}var _0x5916ee=Object['defineProperty'],_0xd3d3fb=Object[_0x30a57b(0x5ab)],_0x1e75a3=(_0x548c5f,_0x309e00,_0x5558ba,_0x22c7d5)=>{for(var _0x402f62=_0x22c7d5>0x1?void 0x0:_0x22c7d5?_0xd3d3fb(_0x309e00,_0x5558ba):_0x309e00,_0x49508d=_0x548c5f['length']-0x1,_0x29b977;_0x49508d>=0x0;_0x49508d--)(_0x29b977=_0x548c5f[_0x49508d])&&(_0x402f62=(_0x22c7d5?_0x29b977(_0x309e00,_0x5558ba,_0x402f62):_0x29b977(_0x402f62))||_0x402f62);return _0x22c7d5&&_0x402f62&&_0x5916ee(_0x309e00,_0x5558ba,_0x402f62),_0x402f62;},_0x4059ea=(_0x4d03e6,_0x2dd335)=>(_0x53911d,_0x4da6c9)=>_0x2dd335(_0x53911d,_0x4da6c9,_0x4d03e6);const _0x5d5583=0x1389;let _0x21c987=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x1fe18b,_0x21a9b9,_0x5b166f,_0x171608){const _0x30041a=_0x30a57b;super(),_0x141732(this,_0x30041a(0x334),new Set()),_0x141732(this,_0x30041a(0x221),null),(this[_0x30041a(0x34f)]=_0x1fe18b,this[_0x30041a(0x410)]=_0x21a9b9,this[_0x30041a(0x4c3)]=_0x5b166f,this[_0x30041a(0x55b)]=_0x171608,this[_0x30041a(0x23a)]());}[_0x30a57b(0x23a)](){const _0x2cbac2=_0x30a57b;this['_sheetSkeletonManagerService'][_0x2cbac2(0x233)][_0x2cbac2(0x243)](_0x3262ca['takeUntil'](this[_0x2cbac2(0x39a)]),_0x3262ca[_0x2cbac2(0x2f8)](_0x1e9dc0=>{const _0x2706c8=_0x2cbac2;if(_0x1e9dc0){const _0x3a9ba4=_0x1e9dc0[_0x2706c8(0x425)];return _0x4f561c['combineLatest'](this[_0x2706c8(0x4c3)][_0x2706c8(0x4e0)](this[_0x2706c8(0x34f)][_0x2706c8(0x432)]),this[_0x2706c8(0x55b)][_0x2706c8(0x1df)])[_0x2706c8(0x243)](_0x3262ca[_0x2706c8(0x450)](([_0x1acd31,_0xbe59c5])=>{const _0x4b2c44=_0x2706c8,_0x1b84a5=new Map();return _0x1acd31[_0x4b2c44(0x3d0)]((_0x2c7c2c,_0x44f16f)=>{const _0x3726f1=_0x4b2c44;if(_0x2c7c2c[_0x3726f1(0x1d2)]===_0x3a9ba4){const _0x3c3527={..._0x2c7c2c};_0x3c3527[_0x3726f1(0x4c6)]=_0xbe59c5[_0x2c7c2c[_0x3726f1(0x4c6)]],_0x1b84a5[_0x3726f1(0x3be)](_0x44f16f,_0x3c3527);}}),{'skeleton':_0x1e9dc0,'cursors':_0x1b84a5};}));}return _0x4f561c['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x17cb67,cursors:_0x2ad42f})=>{const _0x5489e8=_0x2cbac2;this[_0x5489e8(0x2b1)](),_0x17cb67&&this[_0x5489e8(0x193)](_0x17cb67,_0x2ad42f);}),this['_sheetSkeletonManagerService'][_0x2cbac2(0x233)][_0x2cbac2(0x383)](_0x5397e0=>{const _0x59d133=_0x2cbac2;if(_0x5397e0==null)return;const {skeleton:_0x437638}=_0x5397e0,{scene:_0x5c522e}=this[_0x59d133(0x34f)];_0x5c522e[_0x59d133(0x510)]['subscribeEvent'](_0x123ccf[_0x59d133(0x46e)](_0x51516d=>{const _0x5b3b1b=_0x59d133;var _0x52af10,_0x120e1b;const {offsetX:_0x34b104,offsetY:_0xe6783e}=_0x51516d,{x:_0x89c0bd,y:_0x5552b2}=_0x5c522e[_0x5b3b1b(0x1b8)](_0x38daca[_0x5b3b1b(0x1f8)][_0x5b3b1b(0x39c)]([_0x34b104,_0xe6783e])),{scaleX:_0x27b305,scaleY:_0x348004}=_0x5c522e[_0x5b3b1b(0x527)](),_0x74aef5=_0x5c522e[_0x5b3b1b(0x59a)](_0x4570cf['VIEWPORT_KEY'][_0x5b3b1b(0x4f2)]),_0x5693c0=_0x5c522e[_0x5b3b1b(0x3f7)](_0x38daca[_0x5b3b1b(0x1f8)][_0x5b3b1b(0x39c)]([_0x89c0bd,_0x5552b2]),_0x74aef5),_0x4907ab=_0x437638[_0x5b3b1b(0x246)](_0x34b104,_0xe6783e,_0x27b305,_0x348004,_0x5693c0);((_0x52af10=this['_lastPointer'])==null?void 0x0:_0x52af10[_0x5b3b1b(0x25f)])===_0x4907ab[_0x5b3b1b(0x25f)]&&((_0x120e1b=this[_0x5b3b1b(0x221)])==null?void 0x0:_0x120e1b[_0x5b3b1b(0x436)])===_0x4907ab[_0x5b3b1b(0x436)]||this[_0x5b3b1b(0x334)][_0x5b3b1b(0x3d0)](_0x44d43d=>{_0x44d43d['onMouseMove'](_0x4907ab);});},0x64));});}['_updateCollabCursors'](_0x289c51,_0x5f22b2){const _0x514f68=_0x30a57b;var _0x3bcdbc;const _0x1ce8da=(_0x3bcdbc=this[_0x514f68(0x410)]['getCurrent']())==null?void 0x0:_0x3bcdbc[_0x514f68(0x317)];if(!_0x1ce8da)return;const _0x32eadd=this['_getSheetObject']();if(!_0x32eadd)return;this[_0x514f68(0x334)][_0x514f68(0x3d0)](_0xe79734=>{const _0xd8ccc7=_0x514f68;_0xe79734[_0xd8ccc7(0x403)]();});const {scene:_0x1ad3f3}=_0x32eadd,_0x49b3ca=_0x2df2e9(Array[_0x514f68(0x52c)](_0x5f22b2[_0x514f68(0x576)]()))[_0x514f68(0x450)](_0x5b07f=>{const _0x1cfc76=_0x514f68,{color:_0x204f44,range:_0x22ce91,name:_0x275b59,selection:_0x3d3cf,sheetID:_0x4c7caf}=_0x5b07f,{startColumn:_0xbc24b9,startRow:_0x1f225d,endColumn:_0x169a72,endRow:_0x149987}=_0x22ce91,_0x28f76b=_0x4570cf[_0x1cfc76(0x178)](_0x1f225d,_0xbc24b9,_0x1ad3f3,_0x1ce8da),_0x5a6c83=_0x4570cf['getCoordByCell'](_0x149987,_0x169a72,_0x1ad3f3,_0x1ce8da),{columnHeaderHeightAndMarginTop:_0x20b8cf}=_0x1ce8da,{startX:_0x1c4173,startY:_0x17f9e0}=_0x28f76b,{endX:_0x1eb3d2,endY:_0x3b1e5d}=_0x5a6c83,_0xf482a7=_0x1eb3d2-_0x1c4173,_0x3dd3b5=_0x3b1e5d-_0x17f9e0,_0x2c31ed={'labelPosition':_0x17f9e0-_0x20b8cf>=_0x1958f6?_0x1cfc76(0x577):_0x1cfc76(0x1a4),'sheetID':_0x4c7caf,'range':_0x22ce91,'color':_0x204f44,'name':_0x275b59,'selection':_0x3d3cf,'left':_0x1c4173,'top':_0x17f9e0,'width':_0xf482a7,'height':_0x3dd3b5,'evented':!0x1,'zIndex':_0x5d5583};return new _0x77ea83(_0x275b59,_0x2c31ed);});_0x1ad3f3[_0x514f68(0x58d)](_0x49b3ca,_0x24cefb),this[_0x514f68(0x334)]=new Set(_0x49b3ca);}[_0x30a57b(0x2b1)](){const _0x5079f8=_0x30a57b;var _0x10936d;(_0x10936d=this[_0x5079f8(0x334)])==null||_0x10936d['forEach'](_0x58142b=>_0x58142b[_0x5079f8(0x33e)]());}['_getSheetObject'](){const _0x11425e=_0x30a57b;return _0x4570cf[_0x11425e(0x358)](this[_0x11425e(0x34f)]['unit'],this['_context']);}};_0x21c987=_0x1e75a3([_0x4059ea(0x1,_0x123ccf[_0x30a57b(0x398)](_0x4570cf[_0x30a57b(0x20f)])),_0x4059ea(0x2,_0x123ccf[_0x30a57b(0x398)](_0x378283)),_0x4059ea(0x3,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x580)]))],_0x21c987);function _0x2df2e9(_0x1ce605){const _0x14f902=_0x30a57b,_0x3d0601=new Map();return _0x1ce605['forEach'](_0x4c1d04=>{const _0x3f8753=_0x4fdf;if(_0x3d0601[_0x3f8753(0x4bf)](_0x4c1d04['selection'])){const _0x3fcff5=_0x3d0601[_0x3f8753(0x3c0)](_0x4c1d04[_0x3f8753(0x18c)]);_0x3fcff5[_0x3f8753(0x482)]+=',\x20'+_0x4c1d04['name'];}else _0x3d0601[_0x3f8753(0x3be)](_0x4c1d04['selection'],_0x4c1d04);}),Array[_0x14f902(0x52c)](_0x3d0601[_0x14f902(0x576)]());}var _0x358fd1=function(){const _0x3c5cfc=_0x30a57b;return _0x358fd1=Object[_0x3c5cfc(0x474)]||function(_0x34320c){const _0xbbb5c1=_0x3c5cfc;for(var _0x45171b,_0xa1167f=0x1,_0x4a452c=arguments['length'];_0xa1167f<_0x4a452c;_0xa1167f++){_0x45171b=arguments[_0xa1167f];for(var _0x2d4356 in _0x45171b)Object[_0xbbb5c1(0x1cf)][_0xbbb5c1(0x17c)][_0xbbb5c1(0x563)](_0x45171b,_0x2d4356)&&(_0x34320c[_0x2d4356]=_0x45171b[_0x2d4356]);}return _0x34320c;},_0x358fd1['apply'](this,arguments);},_0x48a283=function(_0x20c211,_0x1e7099){const _0x1a891e=_0x30a57b;var _0x22703a={};for(var _0x5ca086 in _0x20c211)Object[_0x1a891e(0x1cf)]['hasOwnProperty'][_0x1a891e(0x563)](_0x20c211,_0x5ca086)&&_0x1e7099[_0x1a891e(0x1e5)](_0x5ca086)<0x0&&(_0x22703a[_0x5ca086]=_0x20c211[_0x5ca086]);if(_0x20c211!=null&&typeof Object['getOwnPropertySymbols']==_0x1a891e(0x38c)){for(var _0xda5f44=0x0,_0x5ca086=Object[_0x1a891e(0x2c8)](_0x20c211);_0xda5f44<_0x5ca086[_0x1a891e(0x226)];_0xda5f44++)_0x1e7099[_0x1a891e(0x1e5)](_0x5ca086[_0xda5f44])<0x0&&Object[_0x1a891e(0x1cf)][_0x1a891e(0x1b2)][_0x1a891e(0x563)](_0x20c211,_0x5ca086[_0xda5f44])&&(_0x22703a[_0x5ca086[_0xda5f44]]=_0x20c211[_0x5ca086[_0xda5f44]]);}return _0x22703a;},_0x3d9841=_0x40f67f[_0x30a57b(0x4b9)](function(_0x5868db,_0x16cb6b){const _0x33cbb6=_0x30a57b;var _0x496ff9=_0x5868db['icon'],_0x470e3a=_0x5868db['id'],_0x2b77e9=_0x5868db['className'],_0x1d51ba=_0x5868db['extend'],_0x5a60d4=_0x48a283(_0x5868db,[_0x33cbb6(0x4ba),'id',_0x33cbb6(0x43a),_0x33cbb6(0x3ae)]),_0x4ea035=_0x33cbb6(0x523)['concat'](_0x470e3a,'\x20')[_0x33cbb6(0x4d1)](_0x2b77e9||'')[_0x33cbb6(0x2cb)](),_0x23b99f=_0x40f67f[_0x33cbb6(0x273)]('_'['concat'](_0x45a37a()));return _0x4a8ee8(_0x496ff9,''[_0x33cbb6(0x4d1)](_0x470e3a),{'defIds':_0x496ff9['defIds'],'idSuffix':_0x23b99f['current']},_0x358fd1({'ref':_0x16cb6b,'className':_0x4ea035},_0x5a60d4),_0x1d51ba);});function _0x4a8ee8(_0x116f00,_0x571079,_0x12854a,_0x29595c,_0x44ad40){const _0x3e3f66=_0x30a57b;return _0x40f67f[_0x3e3f66(0x352)](_0x116f00[_0x3e3f66(0x550)],_0x358fd1(_0x358fd1({'key':_0x571079},_0x2b5de9(_0x116f00,_0x12854a,_0x44ad40)),_0x29595c),(_0x25802e(_0x116f00,_0x12854a)[_0x3e3f66(0x173)]||[])[_0x3e3f66(0x450)](function(_0xe75f41,_0x237ab9){const _0x234d92=_0x3e3f66;return _0x4a8ee8(_0xe75f41,''[_0x234d92(0x4d1)](_0x571079,'-')[_0x234d92(0x4d1)](_0x116f00[_0x234d92(0x550)],'-')[_0x234d92(0x4d1)](_0x237ab9),_0x12854a,void 0x0,_0x44ad40);}));}function _0x2b5de9(_0x15cbe3,_0x13fe29,_0x3450a3){const _0x2b451c=_0x30a57b;var _0x585d0a=_0x358fd1({},_0x15cbe3[_0x2b451c(0x3cf)]);_0x3450a3!=null&&_0x3450a3[_0x2b451c(0x53a)]&&_0x585d0a[_0x2b451c(0x2f6)]===_0x2b451c(0x53a)&&(_0x585d0a[_0x2b451c(0x2f6)]=_0x3450a3[_0x2b451c(0x53a)]);var _0x3c3540=_0x13fe29[_0x2b451c(0x514)];return!_0x3c3540||_0x3c3540[_0x2b451c(0x226)]===0x0||(_0x15cbe3['tag']==='use'&&_0x585d0a[_0x2b451c(0x19f)]&&(_0x585d0a['xlink:href']=_0x585d0a[_0x2b451c(0x19f)]+_0x13fe29[_0x2b451c(0x4da)]),Object[_0x2b451c(0x46d)](_0x585d0a)['forEach'](function(_0x1ebc2b){const _0x3fa10f=_0x2b451c;var _0x274c28=_0x1ebc2b[0x0],_0x4493cd=_0x1ebc2b[0x1];typeof _0x4493cd==_0x3fa10f(0x2bd)&&(_0x585d0a[_0x274c28]=_0x4493cd['replace'](/url\(#(.*)\)/,_0x3fa10f(0x48a)[_0x3fa10f(0x4d1)](_0x13fe29[_0x3fa10f(0x4da)],')')));})),_0x585d0a;}function _0x25802e(_0x59e90b,_0x334c9d){const _0x136720=_0x30a57b;var _0x3cb81e,_0x226600=_0x334c9d[_0x136720(0x514)];return!_0x226600||_0x226600[_0x136720(0x226)]===0x0?_0x59e90b:_0x59e90b[_0x136720(0x550)]==='defs'&&(!((_0x3cb81e=_0x59e90b[_0x136720(0x173)])===null||_0x3cb81e===void 0x0)&&_0x3cb81e[_0x136720(0x226)])?_0x358fd1(_0x358fd1({},_0x59e90b),{'children':_0x59e90b[_0x136720(0x173)]['map'](function(_0x10ffca){const _0x2d695f=_0x136720;return typeof _0x10ffca[_0x2d695f(0x3cf)]['id']==_0x2d695f(0x2bd)&&_0x226600&&_0x226600[_0x2d695f(0x1e5)](_0x10ffca['attrs']['id'])>-0x1?_0x358fd1(_0x358fd1({},_0x10ffca),{'attrs':_0x358fd1(_0x358fd1({},_0x10ffca['attrs']),{'id':_0x10ffca['attrs']['id']+_0x334c9d[_0x2d695f(0x4da)]})}):_0x10ffca;})}):_0x59e90b;}function _0x45a37a(){const _0x25a89f=_0x30a57b;return Math[_0x25a89f(0x469)]()['toString'](0x24)[_0x25a89f(0x43d)](0x2,0x8);}_0x3d9841[_0x30a57b(0x43f)]=_0x30a57b(0x4fa);var _0x46da9a={'tag':'svg','attrs':{'fill':'none','viewBox':_0x30a57b(0x360),'width':_0x30a57b(0x50f),'height':'1em'},'children':[{'tag':'g','attrs':{'clipPath':'url(#off-line-single_clip0_910_343)'},'children':[{'tag':_0x30a57b(0x252),'attrs':{'stroke':'currentColor','d':_0x30a57b(0x4b7),'strokeLinecap':'round','strokeLinejoin':_0x30a57b(0x3ca),'strokeWidth':1.2}}]},{'tag':_0x30a57b(0x1fa),'attrs':{},'children':[{'tag':_0x30a57b(0x39e),'attrs':{'id':_0x30a57b(0x2db)},'children':[{'tag':'path','attrs':{'fill':_0x30a57b(0x34b),'d':_0x30a57b(0x26a)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0xcce562=_0x40f67f['forwardRef'](function(_0x1c0f86,_0x29f8ff){const _0x1b0287=_0x30a57b;return _0x40f67f[_0x1b0287(0x352)](_0x3d9841,Object[_0x1b0287(0x474)]({},_0x1c0f86,{'id':_0x1b0287(0x303),'ref':_0x29f8ff,'icon':_0x46da9a}));});_0xcce562[_0x30a57b(0x43f)]=_0x30a57b(0x365);var _0x3bec05={'tag':_0x30a57b(0x2f5),'attrs':{'fill':_0x30a57b(0x30f),'viewBox':_0x30a57b(0x1f0),'width':_0x30a57b(0x50f),'height':_0x30a57b(0x50f)},'children':[{'tag':'g','attrs':{'clipPath':_0x30a57b(0x458)},'children':[{'tag':_0x30a57b(0x252),'attrs':{'stroke':_0x30a57b(0x5ac),'d':_0x30a57b(0x366),'strokeLinecap':_0x30a57b(0x3ca),'strokeLinejoin':_0x30a57b(0x3ca),'strokeWidth':1.2}}]},{'tag':_0x30a57b(0x1fa),'attrs':{},'children':[{'tag':_0x30a57b(0x39e),'attrs':{'id':_0x30a57b(0x460)},'children':[{'tag':_0x30a57b(0x252),'attrs':{'fill':_0x30a57b(0x34b),'d':'M0\x200H16V16H0z','transform':_0x30a57b(0x301)}}]}]}],'defIds':[_0x30a57b(0x460)]},_0x371bfc=_0x40f67f[_0x30a57b(0x4b9)](function(_0x244cd5,_0x215e63){const _0x143a2f=_0x30a57b;return _0x40f67f[_0x143a2f(0x352)](_0x3d9841,Object[_0x143a2f(0x474)]({},_0x244cd5,{'id':_0x143a2f(0x16e),'ref':_0x215e63,'icon':_0x3bec05}));});_0x371bfc[_0x30a57b(0x43f)]='OnLineSingle';function _0xc293ba(_0x15cb0c){const _0x575da1=_0x30a57b;var _0x3a6aad,_0x910726,_0x3eb493='';if(typeof _0x15cb0c==_0x575da1(0x2bd)||typeof _0x15cb0c=='number')_0x3eb493+=_0x15cb0c;else{if(typeof _0x15cb0c=='object'){if(Array['isArray'](_0x15cb0c)){var _0x3f23ed=_0x15cb0c[_0x575da1(0x226)];for(_0x3a6aad=0x0;_0x3a6aad<_0x3f23ed;_0x3a6aad++)_0x15cb0c[_0x3a6aad]&&(_0x910726=_0xc293ba(_0x15cb0c[_0x3a6aad]))&&(_0x3eb493&&(_0x3eb493+='\x20'),_0x3eb493+=_0x910726);}else{for(_0x910726 in _0x15cb0c)_0x15cb0c[_0x910726]&&(_0x3eb493&&(_0x3eb493+='\x20'),_0x3eb493+=_0x910726);}}}return _0x3eb493;}function _0x4b8d97(){const _0x2decc9=_0x30a57b;for(var _0x548f85,_0xb62a79,_0x28f85a=0x0,_0x2a8763='',_0x1db527=arguments[_0x2decc9(0x226)];_0x28f85a<_0x1db527;_0x28f85a++)(_0x548f85=arguments[_0x28f85a])&&(_0xb62a79=_0xc293ba(_0x548f85))&&(_0x2a8763&&(_0x2a8763+='\x20'),_0x2a8763+=_0xb62a79);return _0x2a8763;}const _0x477788={'onlineStatusIcon':'univer-online-status-icon','onlineStatusTitle':_0x30a57b(0x479),'onlineStatus':'univer-online-status','online':_0x30a57b(0x31f),'offline':'univer-offline'};function _0xcae01e(_0x16d5bd){const _0x3e60c2=_0x30a57b;switch(_0x16d5bd){case _0x10e907[_0x3e60c2(0x311)]:return'collabStatus.offline';case _0x10e907[_0x3e60c2(0x406)]:return _0x3e60c2(0x428);case _0x10e907[_0x3e60c2(0x1c6)]:return _0x3e60c2(0x59c);case _0x10e907[_0x3e60c2(0x435)]:return _0x3e60c2(0x3f0);case _0x10e907[_0x3e60c2(0x319)]:case _0x10e907[_0x3e60c2(0x199)]:return'collabStatus.syncing';case _0x10e907[_0x3e60c2(0x21e)]:case _0x10e907[_0x3e60c2(0x2b8)]:return _0x3e60c2(0x453);}}function _0x335423(_0x2f60b9){const _0x33c1c5=_0x30a57b,{status$:_0x5ae907}=_0x2f60b9,_0x83f09b=_0x4986bd['useObservable'](_0x5ae907,_0x10e907[_0x33c1c5(0x435)]),_0x33c8ee=_0x123ccf[_0x33c1c5(0x18f)](_0x123ccf['LocaleService']),_0x56a587=_0x123ccf[_0x33c1c5(0x18f)](_0x3ba5f7[_0x33c1c5(0x267)]),_0x190aef=_0x83f09b!==_0x10e907[_0x33c1c5(0x311)],_0x21a93d=_0x33c8ee['t'](_0xcae01e(_0x83f09b)),_0x16a10a=_0x4b8d97(_0x477788['onlineStatus'],{[_0x477788['online']]:_0x190aef,[_0x477788[_0x33c1c5(0x1ef)]]:!_0x190aef}),_0xefde4a=_0x190aef?_0x40f67f[_0x33c1c5(0x352)](_0x371bfc,null):_0x40f67f[_0x33c1c5(0x352)](_0xcce562,null),_0x3f27ee=_0x40f67f[_0x33c1c5(0x2ae)](()=>{const _0xf10153=_0x33c1c5;_0x190aef||_0x56a587[_0xf10153(0x33b)]();},[_0x190aef,_0x56a587]);function _0x16f2e5(){const _0x543d5f=_0x33c1c5;return _0x40f67f[_0x543d5f(0x352)](_0x543d5f(0x280),{'className':_0x16a10a,'onClick':_0x3f27ee},_0x40f67f[_0x543d5f(0x352)](_0x543d5f(0x280),{'className':_0x477788[_0x543d5f(0x33a)]},_0xefde4a),_0x40f67f[_0x543d5f(0x352)](_0x543d5f(0x280),{'className':_0x477788['onlineStatusTitle']},_0x21a93d));}return _0x190aef?_0x16f2e5():_0x40f67f[_0x33c1c5(0x352)](_0x5b06bc[_0x33c1c5(0x347)],{'title':_0x33c8ee['t']('collab-client.tooltip.reconnect')},_0x16f2e5());}var _0x300533=Object[_0x30a57b(0x26e)],_0x7ecff=Object['getOwnPropertyDescriptor'],_0x1e08bd=(_0xba3710,_0x1e92cc,_0x371042,_0x4c7af0)=>{for(var _0x188c5c=_0x4c7af0>0x1?void 0x0:_0x4c7af0?_0x7ecff(_0x1e92cc,_0x371042):_0x1e92cc,_0x6d80d4=_0xba3710['length']-0x1,_0x475c38;_0x6d80d4>=0x0;_0x6d80d4--)(_0x475c38=_0xba3710[_0x6d80d4])&&(_0x188c5c=(_0x4c7af0?_0x475c38(_0x1e92cc,_0x371042,_0x188c5c):_0x475c38(_0x188c5c))||_0x188c5c);return _0x4c7af0&&_0x188c5c&&_0x300533(_0x1e92cc,_0x371042,_0x188c5c),_0x188c5c;},_0x2c4a30=(_0xc91740,_0x5e04e1)=>(_0x406e96,_0x2b4dc2)=>_0x5e04e1(_0x406e96,_0x2b4dc2,_0xc91740);_0x3ba5f7[_0x30a57b(0x339)]=class extends _0x123ccf['Disposable']{constructor(_0xa229f6,_0x534b62,_0x351034,_0x29c545){const _0x4ed6eb=_0x30a57b;super(),_0x141732(this,_0x4ed6eb(0x3f5),new _0x4f561c[(_0x4ed6eb(0x22d))](_0x10e907[_0x4ed6eb(0x435)])),(this['_univerInstanceService']=_0xa229f6,this[_0x4ed6eb(0x3ed)]=_0x534b62,this[_0x4ed6eb(0x179)]=_0x351034,this[_0x4ed6eb(0x59d)]=_0x29c545,this[_0x4ed6eb(0x2de)](),this[_0x4ed6eb(0x568)]());}[_0x30a57b(0x568)](){const _0x4f06c4=_0x30a57b;this['disposeWithMe'](this[_0x4f06c4(0x1de)][_0x4f06c4(0x4a9)][_0x4f06c4(0x243)](_0x4f561c[_0x4f06c4(0x2f8)](()=>{const _0x25ff6c=_0x4f06c4,_0x32da1c=this[_0x25ff6c(0x1de)]['getFocusedUnit']();return _0x32da1c?this[_0x25ff6c(0x59d)][_0x25ff6c(0x1ea)](_0x32da1c[_0x25ff6c(0x281)]()):_0x4f561c['of'](null);}),_0x4f561c['switchMap'](_0x2b66cf=>_0x2b66cf?_0x2b66cf[_0x4f06c4(0x1d4)]:_0x4f561c['of'](_0x10e907[_0x4f06c4(0x435)])))[_0x4f06c4(0x383)](_0x11ad41=>{const _0xc6096e=_0x4f06c4;this[_0xc6096e(0x3f5)][_0xc6096e(0x595)](_0x11ad41);}));}[_0x30a57b(0x2de)](){const _0x477571=_0x30a57b;this[_0x477571(0x285)](this[_0x477571(0x3ed)][_0x477571(0x48e)](_0x4986bd[_0x477571(0x5af)]['HEADER_MENU'],()=>_0x123ccf['connectInjector'](_0x287d53({'status$':this['_status$'][_0x477571(0x29e)]()}),this['_injector'])));}},_0x3ba5f7[_0x30a57b(0x339)]=_0x1e08bd([_0x2c4a30(0x0,_0x123ccf[_0x30a57b(0x4c8)]),_0x2c4a30(0x1,_0x4986bd[_0x30a57b(0x269)]),_0x2c4a30(0x2,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x2c4a30(0x3,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7[_0x30a57b(0x549)]))],_0x3ba5f7[_0x30a57b(0x339)]);function _0x287d53(_0x24b523){const {status$:_0x53fbb7}=_0x24b523;return function(){const _0x2c4a85=_0x4fdf;return _0x40f67f[_0x2c4a85(0x352)](_0x335423,{'status$':_0x53fbb7});};}const _0x1a0059=_0x123ccf[_0x30a57b(0x3c5)](_0x30a57b(0x456));var _0x2d3a53=Object[_0x30a57b(0x26e)],_0x48f79e=Object[_0x30a57b(0x5ab)],_0x480f7e=(_0x16834d,_0x5cba73,_0x57ce85,_0x3cc228)=>{const _0x3a59c1=_0x30a57b;for(var _0x324618=_0x3cc228>0x1?void 0x0:_0x3cc228?_0x48f79e(_0x5cba73,_0x57ce85):_0x5cba73,_0x40c135=_0x16834d[_0x3a59c1(0x226)]-0x1,_0x415f84;_0x40c135>=0x0;_0x40c135--)(_0x415f84=_0x16834d[_0x40c135])&&(_0x324618=(_0x3cc228?_0x415f84(_0x5cba73,_0x57ce85,_0x324618):_0x415f84(_0x324618))||_0x324618);return _0x3cc228&&_0x324618&&_0x2d3a53(_0x5cba73,_0x57ce85,_0x324618),_0x324618;},_0x26476b=(_0x4bf782,_0x3bdc55)=>(_0xd6f7a4,_0x19310f)=>_0x3bdc55(_0xd6f7a4,_0x19310f,_0x4bf782);_0x3ba5f7[_0x30a57b(0x32e)]=class extends _0x123ccf['RxDisposable']{constructor(_0x2e7c31,_0x4ad2ae,_0x41d84b,_0x1f2b15,_0x110eae,_0x523202){const _0x384ed7=_0x30a57b;super(),this[_0x384ed7(0x170)]=_0x2e7c31,this[_0x384ed7(0x1d5)]=_0x4ad2ae,this[_0x384ed7(0x2b7)]=_0x41d84b,this[_0x384ed7(0x4c0)]=_0x1f2b15,this[_0x384ed7(0x3b0)]=_0x110eae,_0x523202?_0x523202==null||_0x523202['whenReady']()[_0x384ed7(0x4f7)](()=>this[_0x384ed7(0x23a)]()):(this['_logService'][_0x384ed7(0x4f1)](_0x384ed7(0x188),'No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.'),this[_0x384ed7(0x23a)]());}async[_0x30a57b(0x23a)](){const _0x37c7fe=_0x30a57b,_0x380f43=this['_urlService'][_0x37c7fe(0x219)]('unit'),_0x405ed0=this[_0x37c7fe(0x170)][_0x37c7fe(0x219)](_0x37c7fe(0x20e));if(!_0x380f43||!_0x405ed0){this[_0x37c7fe(0x1d5)][_0x37c7fe(0x4f1)](_0x37c7fe(0x188),_0x37c7fe(0x201));return;}switch(Number(_0x405ed0)){case _0x15cd83[_0x37c7fe(0x356)]:{const _0x18019e=await this[_0x37c7fe(0x3c3)](_0x380f43);this[_0x37c7fe(0x4a6)](_0x18019e);break;}case _0x15cd83[_0x37c7fe(0x34c)]:{await this['_loadDoc'](_0x380f43);break;}default:{this[_0x37c7fe(0x1d5)]['error'](_0x37c7fe(0x188),_0x37c7fe(0x229));break;}}}async[_0x30a57b(0x4a6)](_0x1d37a1){const _0x3c58a4=_0x30a57b;await this[_0x3c58a4(0x4f3)](_0x1d37a1),_0x1d37a1[_0x3c58a4(0x1eb)][_0x3c58a4(0x243)](_0x4f561c['takeUntil'](this['dispose$']))[_0x3c58a4(0x383)](_0x1f393c=>{const _0x5e77d1=_0x3c58a4;_0x1f393c&&this[_0x5e77d1(0x351)](_0x1f393c);}),this[_0x3c58a4(0x170)][_0x3c58a4(0x55d)][_0x3c58a4(0x243)](_0x4f561c[_0x3c58a4(0x36d)](this[_0x3c58a4(0x39a)]))['subscribe'](()=>this[_0x3c58a4(0x4f3)](_0x1d37a1));}[_0x30a57b(0x351)](_0x15fa2f,_0x599d64=!0x1){const _0x676199=_0x30a57b,_0x3cc94a=this[_0x676199(0x170)][_0x676199(0x219)](_0x676199(0x3c4));_0x15fa2f[_0x676199(0x517)]()!==_0x3cc94a&&this['_urlService'][_0x676199(0x3ce)](_0x676199(0x3c4),_0x15fa2f['getSheetId'](),_0x599d64);}async[_0x30a57b(0x4f3)](_0x647eb0){const _0x5b1503=_0x30a57b;var _0x155359;const _0x5110fb=this[_0x5b1503(0x170)][_0x5b1503(0x219)](_0x5b1503(0x3c4));if(!_0x5110fb||!_0x647eb0[_0x5b1503(0x34a)](_0x5110fb)){const _0x549bba=_0x647eb0[_0x5b1503(0x2f4)]()[0x0],_0x3e23b1=_0x647eb0[_0x5b1503(0x34a)](_0x549bba);if(!_0x3e23b1)return;this[_0x5b1503(0x351)](_0x3e23b1,!0x0),await this[_0x5b1503(0x2b7)][_0x5b1503(0x2d0)](_0x4560f7[_0x5b1503(0x375)]['id'],{'unitId':_0x647eb0[_0x5b1503(0x281)](),'subUnitId':_0x549bba});return;}((_0x155359=_0x647eb0[_0x5b1503(0x454)]())==null?void 0x0:_0x155359[_0x5b1503(0x517)]())!==_0x5110fb&&await this[_0x5b1503(0x2b7)][_0x5b1503(0x2d0)](_0x4560f7[_0x5b1503(0x375)]['id'],{'unitId':_0x647eb0[_0x5b1503(0x281)](),'subUnitId':_0x5110fb});}async['_loadSheet'](_0x36c075){const _0x219135=_0x30a57b;let _0x26a3c5=0x0;const _0x2a8269=await this['_localCacheService'][_0x219135(0x3fe)](_0x36c075);return _0x2a8269&&(_0x2a8269['awaitingChangeset']||_0x2a8269[_0x219135(0x3d8)][_0x219135(0x226)]!==0x0)&&(_0x26a3c5=_0x2a8269[_0x219135(0x42f)]),_0x26a3c5===0x0&&this[_0x219135(0x1d5)][_0x219135(0x4f1)](_0x219135(0x188),_0x219135(0x40c)),this[_0x219135(0x3b0)][_0x219135(0x492)](_0x36c075,_0x26a3c5);}async[_0x30a57b(0x1b0)](_0x4fe88f){const _0x1287f3=_0x30a57b;let _0x364472=0x0;const _0x2db241=await this[_0x1287f3(0x4c0)]['loadOfflineData'](_0x4fe88f);return _0x2db241&&(_0x2db241[_0x1287f3(0x47c)]||_0x2db241['mutations'][_0x1287f3(0x226)]!==0x0)&&(_0x364472=_0x2db241['rev']),_0x364472===0x0&&this['_logService']['debug']('[DataLoaderController]',_0x1287f3(0x40c)),this['_snapshotService'][_0x1287f3(0x40a)](_0x4fe88f,_0x364472);}},_0x3ba5f7['DataLoaderController']=_0x480f7e([_0x26476b(0x0,_0x1a0059),_0x26476b(0x1,_0x123ccf['ILogService']),_0x26476b(0x2,_0x123ccf[_0x30a57b(0x25c)]),_0x26476b(0x3,_0x123ccf[_0x30a57b(0x398)](_0x3ba5f7['LocalCacheService'])),_0x26476b(0x4,_0x123ccf[_0x30a57b(0x398)](_0x44c0c5[_0x30a57b(0x45b)])),_0x26476b(0x5,_0x123ccf[_0x30a57b(0x506)](_0x20b834[_0x30a57b(0x2a8)]))],_0x3ba5f7[_0x30a57b(0x32e)]);var _0x15e149=Object[_0x30a57b(0x26e)],_0x112859=Object[_0x30a57b(0x5ab)],_0x36f539=(_0x2fdf13,_0x1bd3a9,_0x2c4d62,_0x2c5cc9)=>{for(var _0x2acbb4=_0x2c5cc9>0x1?void 0x0:_0x2c5cc9?_0x112859(_0x1bd3a9,_0x2c4d62):_0x1bd3a9,_0x51bee1=_0x2fdf13['length']-0x1,_0x140dfe;_0x51bee1>=0x0;_0x51bee1--)(_0x140dfe=_0x2fdf13[_0x51bee1])&&(_0x2acbb4=(_0x2c5cc9?_0x140dfe(_0x1bd3a9,_0x2c4d62,_0x2acbb4):_0x140dfe(_0x2acbb4))||_0x2acbb4);return _0x2c5cc9&&_0x2acbb4&&_0x15e149(_0x1bd3a9,_0x2c4d62,_0x2acbb4),_0x2acbb4;},_0x313b9c=(_0x22f8ed,_0x5de70f)=>(_0x5b86a6,_0x323d0f)=>_0x5de70f(_0x5b86a6,_0x323d0f,_0x22f8ed);const _0x358b7a=_0x30a57b(0x24f),_0x31ce6d=_0x30a57b(0x1ca);let _0x25ce0a=class extends _0x123ccf[_0x30a57b(0x353)]{constructor(_0x1917f4,_0x507ff6){const _0x4d449c=_0x30a57b;super(),this[_0x4d449c(0x1de)]=_0x1917f4,this[_0x4d449c(0x345)]=_0x507ff6,this[_0x4d449c(0x23a)]();}[_0x30a57b(0x23a)](){const _0x28e095=_0x30a57b;this[_0x28e095(0x285)](this['_univerInstanceService'][_0x28e095(0x4a9)][_0x28e095(0x383)](()=>{const _0x2775b0=_0x28e095;var _0x3501d2;const _0x1821ca=this[_0x2775b0(0x1de)]['getFocusedUnit']();let _0x5d2f13=(_0x3501d2=this[_0x2775b0(0x345)][_0x2775b0(0x569)](_0x358b7a))!=null?_0x3501d2:_0x31ce6d;_0x1821ca instanceof _0x123ccf[_0x2775b0(0x1a3)]&&(_0x5d2f13=_0x1821ca[_0x2775b0(0x482)]),document[_0x2775b0(0x4dc)]=_0x5d2f13;}));}};_0x25ce0a=_0x36f539([_0x313b9c(0x0,_0x123ccf[_0x30a57b(0x4c8)]),_0x313b9c(0x1,_0x123ccf[_0x30a57b(0x227)])],_0x25ce0a);var _0x590aff=Object[_0x30a57b(0x26e)],_0x1b3976=Object['getOwnPropertyDescriptor'],_0x18ff7e=(_0x25b8db,_0x2a949e,_0x262459,_0x58b6d6)=>{const _0x409ce8=_0x30a57b;for(var _0x228760=_0x58b6d6>0x1?void 0x0:_0x58b6d6?_0x1b3976(_0x2a949e,_0x262459):_0x2a949e,_0x2c99e2=_0x25b8db[_0x409ce8(0x226)]-0x1,_0x73b12d;_0x2c99e2>=0x0;_0x2c99e2--)(_0x73b12d=_0x25b8db[_0x2c99e2])&&(_0x228760=(_0x58b6d6?_0x73b12d(_0x2a949e,_0x262459,_0x228760):_0x73b12d(_0x228760))||_0x228760);return _0x58b6d6&&_0x228760&&_0x590aff(_0x2a949e,_0x262459,_0x228760),_0x228760;},_0x59397e=(_0x3062b4,_0x469ecb)=>(_0x1d1a9d,_0x3d54d9)=>_0x469ecb(_0x1d1a9d,_0x3d54d9,_0x3062b4);let _0x5def56=class{constructor(_0x7c039,_0x5b53c5,_0x1e69f5){const _0x2bbf8d=_0x30a57b;this[_0x2bbf8d(0x345)]=_0x7c039,this[_0x2bbf8d(0x1b1)]=_0x5b53c5,this['localeService']=_0x1e69f5,this['init']();}[_0x30a57b(0x418)](){const _0x2e5565=_0x30a57b;this['_httpService'][_0x2e5565(0x579)]({'priority':0x1,'interceptor':(_0x4cecd8,_0x39298a)=>_0x39298a(_0x4cecd8)[_0x2e5565(0x243)](_0x4f561c[_0x2e5565(0x1e7)](async _0x1f34c2=>{const _0x181df7=_0x2e5565,_0x57d974=_0x1f34c2;if(_0x57d974['status']===0x191&&window[_0x181df7(0x16b)](this[_0x181df7(0x4d5)]['t'](_0x181df7(0x37a)))){const _0x3019f7=window['encodeURIComponent'](window[_0x181df7(0x325)]['href']);window['location']['href']=this[_0x181df7(0x25e)]()+_0x181df7(0x18a)+_0x3019f7;}return _0x57d974;}))});}['_getLoginPath'](){const _0x584c00=_0x30a57b;var _0x4e5859,_0x364334;const _0x34d038=this[_0x584c00(0x345)]['getConfig'](_0x53fe19),_0x5e20a4=this[_0x584c00(0x345)][_0x584c00(0x569)](_0x1d8c7c);return(_0x364334=(_0x4e5859=_0x5e20a4==null?void 0x0:_0x5e20a4[_0x584c00(0x239)])!=null?_0x4e5859:_0x34d038)!=null?_0x364334:_0xeae1f9;}};_0x5def56=_0x18ff7e([_0x59397e(0x0,_0x123ccf[_0x30a57b(0x227)]),_0x59397e(0x1,_0x123ccf[_0x30a57b(0x398)](_0x195077[_0x30a57b(0x28c)])),_0x59397e(0x2,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)]))],_0x5def56);var _0x107d59=Object[_0x30a57b(0x26e)],_0xa8b816=Object[_0x30a57b(0x5ab)],_0x171ec6=(_0x36b6ca,_0xfda3c4,_0x32ba25,_0x4a052e)=>{const _0x2482d6=_0x30a57b;for(var _0x503817=_0x4a052e>0x1?void 0x0:_0x4a052e?_0xa8b816(_0xfda3c4,_0x32ba25):_0xfda3c4,_0x3701a5=_0x36b6ca[_0x2482d6(0x226)]-0x1,_0x234b50;_0x3701a5>=0x0;_0x3701a5--)(_0x234b50=_0x36b6ca[_0x3701a5])&&(_0x503817=(_0x4a052e?_0x234b50(_0xfda3c4,_0x32ba25,_0x503817):_0x234b50(_0x503817))||_0x503817);return _0x4a052e&&_0x503817&&_0x107d59(_0xfda3c4,_0x32ba25,_0x503817),_0x503817;},_0x3925b0=(_0x3b0114,_0x4f99b8)=>(_0xb8d016,_0x2f2bf9)=>_0x4f99b8(_0xb8d016,_0x2f2bf9,_0x3b0114);const _0x263d59='AUTHZ_URL_KEY',_0x214aab=_0x30a57b(0x56b);_0x3ba5f7[_0x30a57b(0x23d)]=class extends _0x123ccf[_0x30a57b(0x353)]{constructor(_0x364b0c,_0x5f4418){const _0x266129=_0x30a57b;super(),this[_0x266129(0x223)]=_0x364b0c,this[_0x266129(0x345)]=_0x5f4418,this[_0x266129(0x39f)]();}['_initMergeInterceptor'](){const _0x35dcdf=_0x30a57b,_0x3bc296=this;this['disposeWithMe'](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x195077[_0x35dcdf(0x1aa)]({'isMatch'(_0x387f3a){const _0x5a428e=_0x35dcdf;var _0x462f13;if(_0x387f3a[_0x5a428e(0x283)]==='POST'&&((_0x462f13=_0x387f3a[_0x5a428e(0x476)])!=null&&_0x462f13[_0x5a428e(0x516)])){const {objectID:_0x2d7353,objectType:_0x1de80b}=_0x387f3a['requestParams'][_0x5a428e(0x516)]||{};if(!_0x2d7353||_0x1de80b===void 0x0)return!0x1;const _0x501f23=_0x3bc296['_getAPIPrefixPath']()+'/'+_0x1de80b+_0x5a428e(0x318)+_0x2d7353+_0x5a428e(0x4d3);if(_0x387f3a[_0x5a428e(0x457)]===_0x501f23)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1c486e){const _0x59c72d=_0x35dcdf;var _0x43d507;return(_0x43d507=_0x1c486e[_0x59c72d(0x476)])==null?void 0x0:_0x43d507[_0x59c72d(0x516)];},'mergeParamsToRequest'(_0x4e5c33,_0x5b0bdf){const _0x3057ab=_0x35dcdf,_0x42d9e2=_0x3bc296[_0x3057ab(0x2eb)]()+'/-/object/-/batch_allowed',_0x47b4e3=_0x4e5c33[_0x3057ab(0x4cb)]((_0x2714b5,_0x26f5b9)=>{const {unitID:_0x54bf68,objectID:_0x5e9aa5,objectType:_0x1f0589,actions:_0x408627}=_0x26f5b9;return _0x2714b5[_0x54bf68]||(_0x2714b5[_0x54bf68]={}),_0x2714b5[_0x54bf68][_0x5e9aa5]||(_0x2714b5[_0x54bf68][_0x5e9aa5]={'objectID':_0x5e9aa5,'objectType':_0x1f0589,'actions':[]}),_0x2714b5[_0x54bf68][_0x5e9aa5]['actions']['push'](..._0x408627),_0x2714b5;},{}),_0x32059=[];for(const _0x3434a6 in _0x47b4e3)for(const _0x1ceca2 in _0x47b4e3[_0x3434a6]){const {actions:_0x3dae40,objectType:_0x9a283f}=_0x47b4e3[_0x3434a6][_0x1ceca2],_0x55041a=[...new Set(_0x3dae40)];_0x32059[_0x3057ab(0x4cc)]({'unitID':_0x3434a6,'objectID':_0x1ceca2,'objectType':_0x9a283f,'actions':_0x55041a});}return new _0x195077[(_0x3057ab(0x3f2))]('POST',_0x42d9e2,{'headers':_0x5b0bdf[_0x3057ab(0x3e2)],'withCredentials':_0x5b0bdf['withCredentials'],'responseType':_0x5b0bdf[_0x3057ab(0x35a)],'body':{'requests':_0x32059}});}},{'distributeResult'(_0x5f3326,_0x3d8a31){const _0x3e5d05=_0x35dcdf,{objectActions:_0x5e801f}=_0x5f3326;return _0x3d8a31[_0x3e5d05(0x450)](_0x106328=>{const _0x469e21=_0x3e5d05,{unitID:_0x31923c,objectID:_0x19564a,actions:_0x42294a}=_0x106328,_0x59de5f=_0x5e801f[_0x469e21(0x2d7)](_0x458365=>_0x458365[_0x469e21(0x4e2)]===_0x31923c&&_0x458365['objectID']===_0x19564a),_0x4f967c=_0x42294a['map'](_0x367f5c=>_0x59de5f==null?void 0x0:_0x59de5f['actions']['find'](_0x2d5b5d=>_0x2d5b5d[_0x469e21(0x2a4)]===_0x367f5c))[_0x469e21(0x3fa)](_0x196912=>!!_0x196912);return{'config':_0x106328,'result':{'actions':_0x4f967c,'error':_0x5f3326['error']}};});}})}));}[_0x30a57b(0x2eb)](){const _0x575696=_0x30a57b;var _0xa53e49,_0xf91a6c;const _0x57ef59=this['_configService'][_0x575696(0x569)](_0x263d59),_0x30bfc6=this[_0x575696(0x345)][_0x575696(0x569)](_0x1d8c7c);return(_0xf91a6c=(_0xa53e49=_0x30bfc6==null?void 0x0:_0x30bfc6[_0x575696(0x277)])!=null?_0xa53e49:_0x57ef59)!=null?_0xf91a6c:_0x214aab;}async[_0x30a57b(0x4d9)](_0x38a7c9){const _0x33bef3=_0x30a57b,_0xd552f6=this['_getAPIPrefixPath']()+'/'+_0x38a7c9[_0x33bef3(0x293)]+_0x33bef3(0x4df);return(await this[_0x33bef3(0x223)][_0x33bef3(0x594)](_0xd552f6,{'body':_0x38a7c9}))['body'][_0x33bef3(0x3a8)]||'';}async[_0x30a57b(0x2b4)](_0x266cbd){const _0x3294cc=_0x30a57b,_0x5a98ae=this[_0x3294cc(0x2eb)]()+_0x3294cc(0x2f2);return(await this[_0x3294cc(0x223)][_0x3294cc(0x594)](_0x5a98ae,{'body':_0x266cbd}))[_0x3294cc(0x516)][_0x3294cc(0x1c8)];}async[_0x30a57b(0x3a5)](_0x1f3c79){const _0xe38f56=_0x30a57b,_0x105c56=this[_0xe38f56(0x2eb)]()+'/'+_0x1f3c79[_0xe38f56(0x293)]+_0xe38f56(0x318)+_0x1f3c79[_0xe38f56(0x3a8)];await this['_HTTPService'][_0xe38f56(0x533)](_0x105c56,{'body':_0x1f3c79});}async[_0x30a57b(0x4f9)](_0x247dc8){const _0x4f6286=_0x30a57b,_0x22b1a7=this['_getAPIPrefixPath']()+'/'+_0x247dc8[_0x4f6286(0x293)]+_0x4f6286(0x318)+_0x247dc8['objectID']+_0x4f6286(0x4d3);return(await this[_0x4f6286(0x223)][_0x4f6286(0x594)](_0x22b1a7,{'body':_0x247dc8}))[_0x4f6286(0x516)]['actions'];}async['batchAllowed'](_0x28c59a){const _0x1b37d3=_0x30a57b,_0xfca6eb=this[_0x1b37d3(0x2eb)]()+'/-/object/-/batch_allowed';return(await this[_0x1b37d3(0x223)][_0x1b37d3(0x594)](_0xfca6eb,{'body':{'requests':_0x28c59a}}))[_0x1b37d3(0x516)]['objectActions'];}async[_0x30a57b(0x47b)](_0x6908f5){const _0x532413=_0x30a57b,_0x335883=this[_0x532413(0x2eb)]()+'/'+_0x6908f5['objectType']+_0x532413(0x3ff),_0x38082b=await this[_0x532413(0x223)][_0x532413(0x594)](_0x335883,{'body':_0x6908f5});return{'roles':_0x38082b['body'][_0x532413(0x52a)],'actions':_0x38082b[_0x532413(0x516)][_0x532413(0x48d)]};}async['deleteCollaborator'](_0x191e74){const _0x5e15f8=_0x30a57b,_0x4dcdb3=this[_0x5e15f8(0x2eb)]()+_0x5e15f8(0x4bb);await this[_0x5e15f8(0x223)][_0x5e15f8(0x55c)](_0x4dcdb3,{'params':{'collaboratorID':_0x191e74[_0x5e15f8(0x27c)],'objectID':_0x191e74[_0x5e15f8(0x3a8)],'unitID':_0x191e74[_0x5e15f8(0x4e2)]}});}async[_0x30a57b(0x374)](_0x167c61){const _0x8e4aaf=_0x30a57b,_0x3fd5df=this[_0x8e4aaf(0x2eb)]()+_0x8e4aaf(0x4bb);await this[_0x8e4aaf(0x223)]['patch'](_0x3fd5df,{'body':_0x167c61});}async['createCollaborator'](_0x2916e6){const _0x12d4ec=_0x30a57b,_0x302332=this[_0x12d4ec(0x2eb)]()+_0x12d4ec(0x4bb);await this[_0x12d4ec(0x223)][_0x12d4ec(0x594)](_0x302332,{'body':_0x2916e6});}async[_0x30a57b(0x3d6)](_0x224620){const _0x162f6f=_0x30a57b,_0x2f6b8a=this[_0x162f6f(0x2eb)]()+_0x162f6f(0x4bb);return(await this['_HTTPService']['get'](_0x2f6b8a,{'params':{'objectID':_0x224620['objectID'],'unitID':_0x224620[_0x162f6f(0x4e2)]}}))['body']['collaborators'];}async[_0x30a57b(0x228)](_0x1d396c){const _0x57bdb6=_0x30a57b,_0x3aa4a7=this[_0x57bdb6(0x2eb)]()+_0x57bdb6(0x4bb);await this['_HTTPService'][_0x57bdb6(0x533)](_0x3aa4a7,{'body':_0x1d396c});}},_0x3ba5f7[_0x30a57b(0x23d)]=_0x171ec6([_0x3925b0(0x0,_0x123ccf[_0x30a57b(0x398)](_0x195077[_0x30a57b(0x28c)])),_0x3925b0(0x1,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x227)]))],_0x3ba5f7[_0x30a57b(0x23d)]);var _0x4738f9=Object[_0x30a57b(0x26e)],_0xd4dcd3=Object[_0x30a57b(0x5ab)],_0x4b1072=(_0x4773e9,_0x1fa00b,_0x3bdc9f,_0x288fd5)=>{for(var _0x5d7850=_0x288fd5>0x1?void 0x0:_0x288fd5?_0xd4dcd3(_0x1fa00b,_0x3bdc9f):_0x1fa00b,_0x1c49ca=_0x4773e9['length']-0x1,_0x34e932;_0x1c49ca>=0x0;_0x1c49ca--)(_0x34e932=_0x4773e9[_0x1c49ca])&&(_0x5d7850=(_0x288fd5?_0x34e932(_0x1fa00b,_0x3bdc9f,_0x5d7850):_0x34e932(_0x5d7850))||_0x5d7850);return _0x288fd5&&_0x5d7850&&_0x4738f9(_0x1fa00b,_0x3bdc9f,_0x5d7850),_0x5d7850;},_0x498a9e=(_0x293547,_0xd73e19)=>(_0x39b7a5,_0x4c3f65)=>_0xd73e19(_0x39b7a5,_0x4c3f65,_0x293547);let _0x42a016=class{constructor(_0xcaabd0){const _0x236185=_0x30a57b;this[_0x236185(0x1b1)]=_0xcaabd0,this[_0x236185(0x2ed)]();}[_0x30a57b(0x2ed)](){const _0x55a7c6=_0x30a57b;this[_0x55a7c6(0x1b1)][_0x55a7c6(0x579)]({'interceptor':(_0x2176c4,_0x4fb169)=>{const _0x2bfa77=_0x55a7c6,_0x17bdd7=_0x2176c4[_0x2bfa77(0x3e2)],_0x12b8e8=_0x212111[_0x2bfa77(0x3a3)]();return _0x12b8e8&&_0x17bdd7['set'](_0x2bfa77(0x1b9),_0x12b8e8),_0x4fb169(_0x2176c4);}});}};_0x42a016=_0x4b1072([_0x498a9e(0x0,_0x123ccf['Inject'](_0x195077[_0x30a57b(0x28c)]))],_0x42a016);var _0x5bfd36=Object['defineProperty'],_0x1620e9=Object[_0x30a57b(0x5ab)],_0xb4e002=(_0x3a1541,_0x3b8d71,_0x559ce4,_0x48197e)=>{const _0x1c9995=_0x30a57b;for(var _0x46e5fc=_0x48197e>0x1?void 0x0:_0x48197e?_0x1620e9(_0x3b8d71,_0x559ce4):_0x3b8d71,_0xaa66d=_0x3a1541[_0x1c9995(0x226)]-0x1,_0x2d49a3;_0xaa66d>=0x0;_0xaa66d--)(_0x2d49a3=_0x3a1541[_0xaa66d])&&(_0x46e5fc=(_0x48197e?_0x2d49a3(_0x3b8d71,_0x559ce4,_0x46e5fc):_0x2d49a3(_0x46e5fc))||_0x46e5fc);return _0x48197e&&_0x46e5fc&&_0x5bfd36(_0x3b8d71,_0x559ce4,_0x46e5fc),_0x46e5fc;},_0x32f876=(_0xf883dd,_0x31ccd0)=>(_0x28f2ad,_0x486cc1)=>_0x31ccd0(_0x28f2ad,_0x486cc1,_0xf883dd);const _0x265c06=[_0x30a57b(0x44f),_0x30a57b(0x284),_0x30a57b(0x21f),_0x30a57b(0x330),'image/bmp'],_0x3b9dfe=0x5*0x400*0x400,_0x4337a4=_0x30a57b(0x521),_0x1081ea=_0x30a57b(0x310),_0x564eff=_0x30a57b(0x430),_0x9f5437=_0x30a57b(0x17b);_0x3ba5f7[_0x30a57b(0x3f6)]=class{constructor(_0x2d55b1,_0x16f39b,_0x1a965d){const _0x299a0b=_0x30a57b;_0x141732(this,_0x299a0b(0x177),0x0),_0x141732(this,_0x299a0b(0x46b),new _0x4f561c[(_0x299a0b(0x288))]()),_0x141732(this,'change$',this[_0x299a0b(0x46b)]),_0x141732(this,'_imageSourceCache',new Map()),(this[_0x299a0b(0x1b1)]=_0x2d55b1,this['_configService']=_0x16f39b,this['_univerInstanceService']=_0x1a965d);}[_0x30a57b(0x4c9)](_0x2294e0){const _0x5d1d4e=_0x30a57b;this[_0x5d1d4e(0x177)]=_0x2294e0,this[_0x5d1d4e(0x46b)][_0x5d1d4e(0x595)](_0x2294e0);}[_0x30a57b(0x286)](_0x30d28c,_0x4d7ca9){const _0xda5e69=_0x30a57b;if(_0x4d7ca9===_0x412f86[_0xda5e69(0x1b4)][_0xda5e69(0x3e3)]){const _0x5f5ae2=new Image();return _0x5f5ae2[_0xda5e69(0x1b5)]=_0x30d28c,_0x5f5ae2;}return this['_imageSourceCache'][_0xda5e69(0x3c0)](_0x30d28c);}[_0x30a57b(0x518)](_0x37c2cc,_0xffc4e,_0x771c72){const _0x5620ba=_0x30a57b;_0xffc4e===_0x412f86['ImageSourceType'][_0x5620ba(0x3e3)]||_0x771c72==null||this[_0x5620ba(0x5aa)][_0x5620ba(0x3be)](_0x37c2cc,_0x771c72);}async['getImage'](_0x3ef8e2){const _0x42b295=_0x30a57b;try{const _0x8dcf2b=this['_replaceFileID'](this[_0x42b295(0x169)](),''+_0x3ef8e2),_0x26755c=(await this[_0x42b295(0x1b1)][_0x42b295(0x3c0)](_0x8dcf2b))['body'];if(_0x26755c[_0x42b295(0x422)]&&_0x26755c['error'][_0x42b295(0x23c)]===_0xa6f3bb['OK']){const _0x3f4fb8=new URL(_0x26755c[_0x42b295(0x457)],this[_0x42b295(0x4fd)]())[_0x42b295(0x2ef)]();return Promise[_0x42b295(0x340)](_0x3f4fb8);}return Promise[_0x42b295(0x26c)](_0x26755c[_0x42b295(0x422)]);}catch(_0x217e99){return Promise[_0x42b295(0x26c)](_0x217e99);}}async[_0x30a57b(0x2ab)](_0x2de209){const _0x2a79d7=_0x30a57b;let _0x588253='';if(!_0x265c06['includes'](_0x2de209['type']))return this[_0x2a79d7(0x3e6)](),Promise[_0x2a79d7(0x26c)](new Error(_0x412f86[_0x2a79d7(0x2a2)][_0x2a79d7(0x2f0)]));if(_0x2de209[_0x2a79d7(0x17f)]>_0x3b9dfe)return this[_0x2a79d7(0x3e6)](),Promise[_0x2a79d7(0x26c)](new Error(_0x412f86[_0x2a79d7(0x2a2)][_0x2a79d7(0x2e2)]));try{const _0x546cca=new FormData();_0x546cca['append'](_0x2a79d7(0x181),_0x2de209);const _0x2448a0=this['_univerInstanceService'][_0x2a79d7(0x2e1)](),_0x541afa=_0x2448a0==null?void 0x0:_0x2448a0[_0x2a79d7(0x281)]();if(!_0x541afa)throw new Error(_0x2a79d7(0x3a2));const _0x1c9726=this[_0x2a79d7(0x54d)]()+'?size='+_0x2de209[_0x2a79d7(0x17f)]['toString']()+_0x2a79d7(0x24c)+_0x58c045[_0x2a79d7(0x2b5)]+_0x2a79d7(0x431)+encodeURIComponent(_0x541afa),_0x26890b=await(await fetch(_0x1c9726,{'method':_0x2a79d7(0x290),'body':_0x546cca}))[_0x2a79d7(0x194)]();if(typeof _0x26890b[_0x2a79d7(0x3eb)]!=_0x2a79d7(0x2bd))return this[_0x2a79d7(0x3e6)](),Promise[_0x2a79d7(0x26c)](new Error(_0x412f86[_0x2a79d7(0x2a2)][_0x2a79d7(0x41a)]));_0x588253=_0x26890b[_0x2a79d7(0x3eb)];}catch{return this[_0x2a79d7(0x3e6)](),Promise[_0x2a79d7(0x26c)](new Error(_0x412f86[_0x2a79d7(0x2a2)][_0x2a79d7(0x41a)]));}return new Promise((_0x30b0c8,_0x50a587)=>{const _0x22e02e=_0x2a79d7,_0x2b1f45=new FileReader();_0x2b1f45[_0x22e02e(0x1e1)](_0x2de209),_0x2b1f45[_0x22e02e(0x393)]=_0x40a53d=>{const _0x154293=_0x22e02e;var _0x38df1f;const _0x131928=(_0x38df1f=_0x40a53d[_0x154293(0x197)])==null?void 0x0:_0x38df1f[_0x154293(0x51a)];if(_0x131928==null){this[_0x154293(0x3e6)](),_0x50a587(new Error(_0x412f86[_0x154293(0x2a2)]['ERROR_IMAGE']));return;}const _0x31e291=_0x123ccf[_0x154293(0x2e4)][_0x154293(0x389)](0x6);_0x30b0c8({'imageId':_0x31e291,'imageSourceType':_0x412f86[_0x154293(0x1b4)][_0x154293(0x4a2)],'source':_0x588253,'base64Cache':_0x131928,'status':_0x412f86[_0x154293(0x2a2)][_0x154293(0x295)]}),this[_0x154293(0x3e6)]();};});}[_0x30a57b(0x54d)](){const _0x53bf05=_0x30a57b;var _0x1f0036,_0x5b173a;const _0x2e68df=this['_configService']['getConfig'](_0x4337a4),_0x81503=this[_0x53bf05(0x345)][_0x53bf05(0x569)](_0x1d8c7c);return(_0x5b173a=(_0x1f0036=_0x81503==null?void 0x0:_0x81503['uploadFileServerUrl'])!=null?_0x1f0036:_0x2e68df)!=null?_0x5b173a:_0x1081ea;}[_0x30a57b(0x169)](){const _0x24a3ed=_0x30a57b;var _0x2cfab0,_0x1e1ba4;const _0x394791=this[_0x24a3ed(0x345)][_0x24a3ed(0x569)](_0x564eff),_0x37f857=this['_configService'][_0x24a3ed(0x569)](_0x1d8c7c);return(_0x1e1ba4=(_0x2cfab0=_0x37f857==null?void 0x0:_0x37f857[_0x24a3ed(0x3cc)])!=null?_0x2cfab0:_0x394791)!=null?_0x1e1ba4:_0x9f5437;}[_0x30a57b(0x4fd)](){const _0x518e16=_0x30a57b;var _0xdbcfe8;const _0x17de6c=this[_0x518e16(0x345)][_0x518e16(0x569)](_0x1d8c7c);return(_0xdbcfe8=_0x17de6c==null?void 0x0:_0x17de6c[_0x518e16(0x271)])!=null?_0xdbcfe8:location[_0x518e16(0x405)];}[_0x30a57b(0x5a7)](_0x2fba24,_0x12ae48){const _0x2e5b0e=_0x30a57b;return _0x2fba24[_0x2e5b0e(0x53e)](_0x2e5b0e(0x52f),_0x12ae48);}[_0x30a57b(0x3e6)](){const _0x10c5a5=_0x30a57b;this[_0x10c5a5(0x177)]-=0x1,this['_change$'][_0x10c5a5(0x595)](this[_0x10c5a5(0x177)]);}},_0x3ba5f7[_0x30a57b(0x3f6)]=_0xb4e002([_0x32f876(0x0,_0x123ccf[_0x30a57b(0x398)](_0x195077[_0x30a57b(0x28c)])),_0x32f876(0x1,_0x123ccf[_0x30a57b(0x227)]),_0x32f876(0x2,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x4c8)]))],_0x3ba5f7['ImageIoService']);var _0x407e4d=Object[_0x30a57b(0x26e)],_0x2b08c6=Object[_0x30a57b(0x5ab)],_0x34020c=(_0x4e2134,_0x5e57dc,_0x2a003c,_0x3b1e37)=>{const _0x1c6aa7=_0x30a57b;for(var _0x47f1b0=_0x3b1e37>0x1?void 0x0:_0x3b1e37?_0x2b08c6(_0x5e57dc,_0x2a003c):_0x5e57dc,_0x45ec27=_0x4e2134[_0x1c6aa7(0x226)]-0x1,_0x1a644c;_0x45ec27>=0x0;_0x45ec27--)(_0x1a644c=_0x4e2134[_0x45ec27])&&(_0x47f1b0=(_0x3b1e37?_0x1a644c(_0x5e57dc,_0x2a003c,_0x47f1b0):_0x1a644c(_0x47f1b0))||_0x47f1b0);return _0x3b1e37&&_0x47f1b0&&_0x407e4d(_0x5e57dc,_0x2a003c,_0x47f1b0),_0x47f1b0;},_0x123733=(_0x50adf4,_0x28fcaa)=>(_0x504102,_0x61d452)=>_0x28fcaa(_0x504102,_0x61d452,_0x50adf4);let _0x10a5fb=class extends _0x123ccf[_0x30a57b(0x24a)]{constructor(_0x45e647,_0x3f4c64,_0x454920,_0x452254,_0x5baad1){const _0x287792=_0x30a57b;super(),this[_0x287792(0x179)]=_0x45e647,this['_univerInstanceService']=_0x3f4c64,this[_0x287792(0x1f5)]=_0x454920,this[_0x287792(0x261)]=_0x452254,this['_localeService']=_0x5baad1,this['_initUnitPermissionChange'](),this[_0x287792(0x49f)]();}[_0x30a57b(0x49f)](){const _0x1cffe1=_0x30a57b,_0x779f13=async _0x593234=>{const _0x47394a=_0x4fdf;(await this['_collaborationSessionService'][_0x47394a(0x588)](_0x593234))[_0x47394a(0x44b)][_0x47394a(0x243)](_0x3262ca[_0x47394a(0x3fa)](_0x3c1390=>_0x3c1390['eventID']===_0x44c0c5[_0x47394a(0x22e)][_0x47394a(0x2c7)]),_0x3262ca[_0x47394a(0x36d)](this['dispose$']))[_0x47394a(0x383)](_0x71374d=>{const _0x1d189b=_0x47394a,_0x4a86e0=_0x71374d,{reason:_0x2e05d5}=_0x4a86e0['data'];this['_injector'][_0x1d189b(0x3c0)](_0x4986bd[_0x1d189b(0x1c7)])[_0x1d189b(0x362)]({'type':_0x5b06bc['MessageType'][_0x1d189b(0x5a3)],'content':this[_0x1d189b(0x355)]['t'](_0x1d189b(0x22a))+'('+_0x2e05d5+')'}),this[_0x1d189b(0x1f5)]['updatePermissionPoint'](new _0x4560f7[(_0x1d189b(0x509))](_0x593234)['id'],!0x1),this[_0x1d189b(0x261)][_0x1d189b(0x2e3)](_0x593234);});};_0x4f561c[_0x1cffe1(0x32a)](this[_0x1cffe1(0x1de)]['getTypeOfUnitAdded$'](_0x123ccf[_0x1cffe1(0x3ab)][_0x1cffe1(0x356)]),this[_0x1cffe1(0x1de)][_0x1cffe1(0x36f)](_0x123ccf['UniverInstanceType'][_0x1cffe1(0x34c)]))[_0x1cffe1(0x243)](_0x3262ca[_0x1cffe1(0x450)](_0x530357=>_0x530357[_0x1cffe1(0x281)]()),_0x3262ca[_0x1cffe1(0x3fa)](_0x2178e2=>!_0x123ccf[_0x1cffe1(0x402)](_0x2178e2)),_0x3262ca['takeUntil'](this[_0x1cffe1(0x39a)]))[_0x1cffe1(0x383)](_0x1547e7=>{_0x779f13(_0x1547e7);});}[_0x30a57b(0x544)](){const _0x41a4e1=_0x30a57b,_0x32d33b=async _0x515754=>{const _0x3eb7ef=_0x4fdf;(await this[_0x3eb7ef(0x261)][_0x3eb7ef(0x588)](_0x515754))[_0x3eb7ef(0x44b)][_0x3eb7ef(0x243)](_0x3262ca[_0x3eb7ef(0x3fa)](_0x5c77f9=>_0x5c77f9[_0x3eb7ef(0x543)]===_0x44c0c5[_0x3eb7ef(0x22e)]['UPDATE_PERMISSION_OBJ']),_0x3262ca[_0x3eb7ef(0x36d)](this['dispose$']))[_0x3eb7ef(0x383)](_0x342191=>{const _0x2c47ec=_0x3eb7ef,_0x9f74b5=_0x342191,{objectId:_0x2bc65e}=_0x9f74b5[_0x2c47ec(0x5a6)],_0x4eb306=this['_injector']['get'](_0x4570cf[_0x2c47ec(0x511)]);_0x2bc65e===_0x515754?_0x4eb306[_0x2c47ec(0x335)](_0x515754):_0x4eb306[_0x2c47ec(0x1ad)](_0x515754,_0x2bc65e);});};_0x4f561c[_0x41a4e1(0x32a)](this[_0x41a4e1(0x1de)][_0x41a4e1(0x36f)](_0x123ccf[_0x41a4e1(0x3ab)][_0x41a4e1(0x356)]),this[_0x41a4e1(0x1de)]['getTypeOfUnitAdded$'](_0x123ccf[_0x41a4e1(0x3ab)][_0x41a4e1(0x34c)]))['pipe'](_0x3262ca[_0x41a4e1(0x450)](_0x5c7715=>_0x5c7715['getUnitId']()),_0x3262ca[_0x41a4e1(0x3fa)](_0x1ba697=>!_0x123ccf[_0x41a4e1(0x402)](_0x1ba697)),_0x3262ca[_0x41a4e1(0x36d)](this[_0x41a4e1(0x39a)]))[_0x41a4e1(0x383)](_0x1eaedc=>{_0x32d33b(_0x1eaedc);});}};_0x10a5fb=_0x34020c([_0x123733(0x0,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x123733(0x1,_0x123ccf[_0x30a57b(0x4c8)]),_0x123733(0x2,_0x123ccf[_0x30a57b(0x2b2)]),_0x123733(0x3,_0x123ccf['Inject'](_0x3ba5f7[_0x30a57b(0x267)])),_0x123733(0x4,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x45f)]))],_0x10a5fb);var _0x1eb4ac=Object['defineProperty'],_0x516856=Object[_0x30a57b(0x5ab)],_0x328100=(_0x211ae0,_0x5e97dc,_0x5931ff,_0x3760e2)=>{const _0x860b7f=_0x30a57b;for(var _0x372b03=_0x3760e2>0x1?void 0x0:_0x3760e2?_0x516856(_0x5e97dc,_0x5931ff):_0x5e97dc,_0x3e4a4f=_0x211ae0[_0x860b7f(0x226)]-0x1,_0x5ef18e;_0x3e4a4f>=0x0;_0x3e4a4f--)(_0x5ef18e=_0x211ae0[_0x3e4a4f])&&(_0x372b03=(_0x3760e2?_0x5ef18e(_0x5e97dc,_0x5931ff,_0x372b03):_0x5ef18e(_0x372b03))||_0x372b03);return _0x3760e2&&_0x372b03&&_0x1eb4ac(_0x5e97dc,_0x5931ff,_0x372b03),_0x372b03;},_0x10d439=(_0x1772cb,_0x26f67e)=>(_0x4621da,_0x2bb191)=>_0x26f67e(_0x4621da,_0x2bb191,_0x1772cb);_0x3ba5f7['SnapshotServerOverHTTPService']=class{constructor(_0x1ab2b1,_0x1e8a81){const _0x41429e=_0x30a57b;this[_0x41429e(0x345)]=_0x1ab2b1,this['_httpService']=_0x1e8a81;}async[_0x30a57b(0x41d)](_0x529ac3,_0x13277a){const _0x501e8c=_0x30a57b;var _0x52befd;const {unitID:_0x297193,type:_0x23bf8c,revision:_0x590d9c=0x0}=_0x13277a,_0x503c32=this[_0x501e8c(0x37d)]()+'/'+_0x23bf8c+'/unit/'+_0x297193+_0x501e8c(0x487)+_0x590d9c,_0x41dd4f=(await this['_httpService'][_0x501e8c(0x3c0)](_0x503c32))['body'],_0x870186=(_0x52befd=_0x41dd4f[_0x501e8c(0x4ef)])==null?void 0x0:_0x52befd[_0x501e8c(0x2fd)];if(_0x870186){const _0x2b7c8a=_0x870186==null?void 0x0:_0x870186[_0x501e8c(0x541)],_0x522d0f=_0x44c0c5[_0x501e8c(0x38d)][_0x501e8c(0x36e)](_0x44c0c5[_0x501e8c(0x3d7)](_0x2b7c8a));_0x870186[_0x501e8c(0x541)]=_0x522d0f,Object[_0x501e8c(0x46d)](_0x870186['sheets'])['forEach'](([,_0x5c5c97])=>{const _0x212acb=_0x501e8c,_0x4aa6d2=_0x5c5c97[_0x212acb(0x541)],_0x4b2d8d=_0x44c0c5[_0x212acb(0x38d)][_0x212acb(0x36e)](_0x44c0c5['b64DecodeUnicode'](_0x4aa6d2));_0x5c5c97[_0x212acb(0x541)]=_0x4b2d8d;});}return _0x41dd4f;}async[_0x30a57b(0x390)](_0xfe1b6e,_0x4b270b){const _0x372cd2=_0x30a57b,{unitID:_0x51d224,type:_0x2c2f5c,blockID:_0x230b1b}=_0x4b270b,_0xf198ec=this[_0x372cd2(0x4cd)]()+'/'+_0x2c2f5c+_0x372cd2(0x298)+_0x51d224+_0x372cd2(0x494)+_0x230b1b;return(await this[_0x372cd2(0x1b1)][_0x372cd2(0x3c0)](_0xf198ec))[_0x372cd2(0x516)];}async[_0x30a57b(0x3a9)](_0x62fa6c,_0x5e94aa){const _0x1c04bb=_0x30a57b,{unitID:_0x4c2b50,type:_0xd5f26c,blockID:_0x5c7341}=_0x5e94aa,_0x485459=this['_getAPIPrefix']()+_0x1c04bb(0x494)+_0xd5f26c+'/unit/'+_0x4c2b50+_0x1c04bb(0x494)+_0x5c7341;return(await this[_0x1c04bb(0x1b1)][_0x1c04bb(0x3c0)](_0x485459))['body'];}async['fetchMissingChangesets'](_0x20073f,_0x3c4266){const _0x401e21=_0x30a57b,{unitID:_0x9d5c90,type:_0x484926,from:_0x3538a2,to:_0x4ca7b9}=_0x3c4266,_0x8f439d=this[_0x401e21(0x4cd)]()+'/'+_0x484926+_0x401e21(0x298)+_0x9d5c90+_0x401e21(0x171)+_0x3538a2+'&to='+_0x4ca7b9;return(await this[_0x401e21(0x1b1)][_0x401e21(0x3c0)](_0x8f439d))[_0x401e21(0x516)];}[_0x30a57b(0x37d)](){const _0x105ccd=_0x30a57b;var _0x19d8bf;return(_0x19d8bf=this[_0x105ccd(0x345)][_0x105ccd(0x569)](_0x1ac3d9))!=null?_0x19d8bf:this[_0x105ccd(0x4cd)]();}[_0x30a57b(0x4cd)](){const _0x35e6a3=_0x30a57b;var _0x1e0003,_0x38edf7;const _0x472943=this[_0x35e6a3(0x345)][_0x35e6a3(0x569)](_0x116803),_0x1a2dee=this[_0x35e6a3(0x345)][_0x35e6a3(0x569)](_0x1d8c7c);return(_0x38edf7=(_0x1e0003=_0x1a2dee==null?void 0x0:_0x1a2dee['snapshotServerUrl'])!=null?_0x1e0003:_0x472943)!=null?_0x38edf7:_0x145d0b;}async[_0x30a57b(0x2ce)](_0x3ec6b7,_0x3f5e08){const _0x2a20ce=_0x30a57b,_0x1fe2f8=_0x2a20ce(0x3a1)+_0x3f5e08[_0x2a20ce(0x20e)]+_0x2a20ce(0x298)+_0x3f5e08[_0x2a20ce(0x4e2)]+_0x2a20ce(0x1da);return(await this[_0x2a20ce(0x1b1)][_0x2a20ce(0x3c0)](_0x1fe2f8,{'params':{'resourceId':JSON[_0x2a20ce(0x599)](_0x3f5e08['resourceIDs'])}}))[_0x2a20ce(0x516)];}['saveSnapshot'](){const _0x324bda=_0x30a57b;throw new Error(_0x324bda(0x590));}[_0x30a57b(0x531)](){const _0x1d64a2=_0x30a57b;throw new Error(_0x1d64a2(0x590));}[_0x30a57b(0x4e6)](){const _0x4c0474=_0x30a57b;throw new Error(_0x4c0474(0x590));}['copyFileMeta'](){const _0x350a0f=_0x30a57b;throw new Error(_0x350a0f(0x590));}['getLatestCsReqIdBySid'](){const _0x3e2336=_0x30a57b;throw new Error(_0x3e2336(0x590));}},_0x3ba5f7[_0x30a57b(0x1fb)]=_0x328100([_0x10d439(0x0,_0x123ccf[_0x30a57b(0x227)]),_0x10d439(0x1,_0x123ccf['Inject'](_0x195077['HTTPService']))],_0x3ba5f7[_0x30a57b(0x1fb)]);var _0xe6b18f=Object[_0x30a57b(0x26e)],_0x506a20=Object['getOwnPropertyDescriptor'],_0x26f6c8=(_0x26f774,_0x2a7653,_0x1988a7,_0x3320de)=>{for(var _0x2aa23d=_0x3320de>0x1?void 0x0:_0x3320de?_0x506a20(_0x2a7653,_0x1988a7):_0x2a7653,_0x4de4a4=_0x26f774['length']-0x1,_0x10f96d;_0x4de4a4>=0x0;_0x4de4a4--)(_0x10f96d=_0x26f774[_0x4de4a4])&&(_0x2aa23d=(_0x3320de?_0x10f96d(_0x2a7653,_0x1988a7,_0x2aa23d):_0x10f96d(_0x2aa23d))||_0x2aa23d);return _0x3320de&&_0x2aa23d&&_0xe6b18f(_0x2a7653,_0x1988a7,_0x2aa23d),_0x2aa23d;},_0x322a5e=(_0x295e9c,_0x444f2f)=>(_0x5a29cb,_0x2ea87e)=>_0x444f2f(_0x5a29cb,_0x2ea87e,_0x295e9c);let _0x2058ac=class extends _0x123ccf[_0x30a57b(0x40d)]{constructor(_0x518baf,_0x1ff1fe,_0x590ac1,_0x5ece9b,_0x374e73){const _0x235bc9=_0x30a57b;super(_0x518baf,_0x1ff1fe,_0x590ac1),this[_0x235bc9(0x232)]=_0x5ece9b,this[_0x235bc9(0x1d5)]=_0x374e73;}['transformUndoRedo'](_0x140233,_0x29401e){const _0x351d11=_0x30a57b,_0x37359a=this[_0x351d11(0x4f8)](_0x140233);if(_0x37359a)try{const _0x174a48=this['_transformStack'](_0x37359a,_0x29401e);this[_0x351d11(0x4d7)](_0x140233,_0x174a48);}catch(_0x23dca4){this[_0x351d11(0x1d5)][_0x351d11(0x422)](_0x351d11(0x256),_0x23dca4),this[_0x351d11(0x26f)](_0x140233);}const _0x2edea3=this[_0x351d11(0x3db)](_0x140233);if(_0x2edea3)try{const _0x509b28=this[_0x351d11(0x203)](_0x2edea3,_0x29401e);this['_substituteRedoStack'](_0x140233,_0x509b28);}catch(_0x23d87e){this[_0x351d11(0x1d5)][_0x351d11(0x422)](_0x23d87e),this[_0x351d11(0x29d)](_0x140233);}}[_0x30a57b(0x26f)](_0x986fec){const _0xbec265=_0x30a57b,_0x5c5f8c=this[_0xbec265(0x4f8)](_0x986fec);_0x5c5f8c&&(_0x5c5f8c['length']=0x0,this[_0xbec265(0x4c2)]());}[_0x30a57b(0x29d)](_0x101c77){const _0x3b304a=_0x30a57b,_0x4229f9=this['_getRedoStack'](_0x101c77);_0x4229f9&&(_0x4229f9[_0x3b304a(0x226)]=0x0,this['_updateStatus']());}[_0x30a57b(0x4d7)](_0x4938f9,_0x2ac605){const _0x280e00=_0x30a57b;this['_undoStacks'][_0x280e00(0x3be)](_0x4938f9,_0x2ac605),this[_0x280e00(0x4c2)]();}[_0x30a57b(0x24d)](_0x48f4c4,_0x5c2736){const _0x23cba8=_0x30a57b;this['_redoStacks'][_0x23cba8(0x3be)](_0x48f4c4,_0x5c2736),this['_updateStatus']();}[_0x30a57b(0x203)](_0x5ef724,_0x34b88b){const _0x2e19b6=_0x30a57b,_0x3cbfd9=[];let _0x9fe3e=_0x34b88b,_0x3c10df=_0x34b88b;for(let _0x14220=_0x5ef724[_0x2e19b6(0x226)]-0x1;_0x14220>=0x0;_0x14220--){const {unitID:_0x5246ef,undoMutations:_0x1e9c70,redoMutations:_0x53525c}=_0x5ef724[_0x14220],_0x16a682=this[_0x2e19b6(0x232)][_0x2e19b6(0x29f)](_0x9fe3e,_0x1e9c70),_0x295627=this[_0x2e19b6(0x232)]['transformMutationsWithChangeset'](_0x3c10df,_0x53525c);if(_0x44c0c5[_0x2e19b6(0x1e2)](_0x16a682)||_0x44c0c5[_0x2e19b6(0x1e2)](_0x295627)){this[_0x2e19b6(0x1d5)]['error'](_0x2e19b6(0x256),_0x2e19b6(0x211),_0x16a682,_0x295627);break;}_0x9fe3e=_0x16a682[_0x2e19b6(0x3bc)],_0x3c10df=_0x295627[_0x2e19b6(0x3bc)],_0x3cbfd9[_0x2e19b6(0x4cc)]({'unitID':_0x5246ef,'undoMutations':_0x16a682[_0x2e19b6(0x571)],'redoMutations':_0x295627['m2Prime']});}return _0x3cbfd9['reverse']();}};_0x2058ac=_0x26f6c8([_0x322a5e(0x0,_0x123ccf[_0x30a57b(0x4c8)]),_0x322a5e(0x1,_0x123ccf['ICommandService']),_0x322a5e(0x2,_0x123ccf[_0x30a57b(0x25a)]),_0x322a5e(0x3,_0x44c0c5['ITransformService']),_0x322a5e(0x4,_0x123ccf[_0x30a57b(0x58c)])],_0x2058ac);class _0x3e4835 extends _0x123ccf['RxDisposable']{constructor(){const _0x55c252=_0x30a57b;super(),_0x141732(this,_0x55c252(0x55d)),this['urlChange$']=_0x4f561c['fromEvent'](window,'popstate')[_0x55c252(0x243)](_0x4f561c[_0x55c252(0x36d)](this[_0x55c252(0x39a)]),_0x4f561c['shareReplay'](0x1),_0x4f561c[_0x55c252(0x4e4)](void 0x0));}[_0x30a57b(0x3ce)](_0x2ce15a,_0x1321a7,_0x183149=!0x1){const _0x3b4fd1=_0x30a57b,_0x1f0b77=new URL(window[_0x3b4fd1(0x325)][_0x3b4fd1(0x266)]);_0x1f0b77[_0x3b4fd1(0x224)][_0x3b4fd1(0x3be)](_0x2ce15a,_0x1321a7),_0x183149?window['history'][_0x3b4fd1(0x255)]('','',_0x1f0b77[_0x3b4fd1(0x2ef)]()):window[_0x3b4fd1(0x364)][_0x3b4fd1(0x42c)]('','',_0x1f0b77[_0x3b4fd1(0x2ef)]());}[_0x30a57b(0x329)](_0x482879,_0x154a16=!0x1){const _0x34d1c4=_0x30a57b,_0x13c323=new URL(window[_0x34d1c4(0x325)][_0x34d1c4(0x266)]);_0x13c323[_0x34d1c4(0x224)][_0x34d1c4(0x55c)](_0x482879),_0x154a16?window[_0x34d1c4(0x364)][_0x34d1c4(0x255)]('','',_0x13c323['toString']()):window[_0x34d1c4(0x364)]['pushState']('','',_0x13c323['toString']());}[_0x30a57b(0x219)](_0x4ffc96){const _0x53e5e1=_0x30a57b;var _0x3522ab;return(_0x3522ab=new URL(window[_0x53e5e1(0x325)][_0x53e5e1(0x266)])[_0x53e5e1(0x224)][_0x53e5e1(0x3c0)](_0x4ffc96))!=null?_0x3522ab:void 0x0;}}var _0x406c5e=Object['defineProperty'],_0x2905f9=Object['getOwnPropertyDescriptor'],_0x196deb=(_0x2daad5,_0x247f23,_0x1d31b2)=>_0x247f23 in _0x2daad5?_0x406c5e(_0x2daad5,_0x247f23,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d31b2}):_0x2daad5[_0x247f23]=_0x1d31b2,_0x3b61a5=(_0x345bc5,_0x1f8c82,_0x341bb0,_0x150c68)=>{const _0xed76a9=_0x30a57b;for(var _0x5f0dce=_0x150c68>0x1?void 0x0:_0x150c68?_0x2905f9(_0x1f8c82,_0x341bb0):_0x1f8c82,_0x4d8927=_0x345bc5[_0xed76a9(0x226)]-0x1,_0x2204ea;_0x4d8927>=0x0;_0x4d8927--)(_0x2204ea=_0x345bc5[_0x4d8927])&&(_0x5f0dce=(_0x150c68?_0x2204ea(_0x1f8c82,_0x341bb0,_0x5f0dce):_0x2204ea(_0x5f0dce))||_0x5f0dce);return _0x150c68&&_0x5f0dce&&_0x406c5e(_0x1f8c82,_0x341bb0,_0x5f0dce),_0x5f0dce;},_0x1f27cc=(_0xcbf5ce,_0x33476d)=>(_0x2929ec,_0x5645bd)=>_0x33476d(_0x2929ec,_0x5645bd,_0xcbf5ce),_0x5d2596=(_0x46a22e,_0x11587c,_0x4653c1)=>_0x196deb(_0x46a22e,_0x11587c+'',_0x4653c1);const _0x447288='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3ba5f7[_0x30a57b(0x547)]=class extends _0x123ccf['Plugin']{constructor(_0x5c82f5=_0x432a1e,_0xcbcf45,_0x1d1bef,_0x3b17eb,_0x57a06c){const _0x27ef45=_0x30a57b;super(),this['_config']=_0x5c82f5,this[_0x27ef45(0x1d5)]=_0xcbcf45,this[_0x27ef45(0x461)]=_0x1d1bef,this[_0x27ef45(0x179)]=_0x3b17eb,this[_0x27ef45(0x345)]=_0x57a06c;const {..._0x3f109b}=this[_0x27ef45(0x23f)];this[_0x27ef45(0x345)][_0x27ef45(0x2cc)](_0x1d8c7c,_0x3f109b);}['onStarting'](){const _0x4e1b4e=_0x30a57b;this[_0x4e1b4e(0x381)](),_0x123ccf['touchDependencies'](this[_0x4e1b4e(0x179)],[[_0x378283],[_0x3ba5f7['DataLoaderController']],[_0x10a5fb]]);}['onReady'](){const _0x539063=_0x30a57b;_0x123ccf[_0x539063(0x292)](this[_0x539063(0x179)],[[_0x25ce0a]]);}[_0x30a57b(0x4a8)](){const _0x54ba6a=_0x30a57b;this[_0x54ba6a(0x373)]();}[_0x30a57b(0x381)](){const _0x587eec=_0x30a57b;var _0x4ffa41,_0x18350b,_0x78397f,_0x3ce474;this[_0x587eec(0x179)][_0x587eec(0x4bf)](_0x123ccf[_0x587eec(0x4ab)])&&this[_0x587eec(0x1d5)][_0x587eec(0x422)](_0x587eec(0x1ba),_0x587eec(0x1f1));let _0x255885=[[_0x123ccf[_0x587eec(0x4ab)],{'useClass':_0x2058ac}],[_0x3ba5f7[_0x587eec(0x267)]],[_0x1f90b9],[_0x195077[_0x587eec(0x28c)]],[_0x1a0059,{'useClass':_0x3e4835}],[_0x202674],[_0x3ba5f7[_0x587eec(0x19a)]],[_0x195077[_0x587eec(0x202)]],[_0x4bc0e1],[_0x495829],[_0x11174e],[_0x200261],[_0x5def56],[_0x42a016],[_0x40c993],[_0x10a5fb],[_0x52ebdb,{'useClass':(_0x18350b=(_0x4ffa41=this['_config'])==null?void 0x0:_0x4ffa41[_0x587eec(0x27a)])!=null?_0x18350b:_0x3ba5f7[_0x587eec(0x38f)]}],[_0x195077[_0x587eec(0x466)],{'useClass':_0x195077['XHRHTTPImplementation']}],[_0x44c0c5[_0x587eec(0x558)],{'useClass':_0x3ba5f7['SnapshotServerOverHTTPService']}],[_0x123ccf[_0x587eec(0x4ed)],{'useClass':_0x3ba5f7[_0x587eec(0x23d)]}],[_0x412f86[_0x587eec(0x349)],{'useClass':_0x3ba5f7[_0x587eec(0x3f6)]}],[_0x3ba5f7[_0x587eec(0x549)]],[_0x3ba5f7[_0x587eec(0x32e)]],[_0x3ba5f7['DesktopCollaborationStatusDisplayController']],[_0x25ce0a],[_0x378283]];(_0x78397f=this['_config'])!=null&&_0x78397f[_0x587eec(0x1ce)]&&_0x255885[_0x587eec(0x4cc)]([_0x3849e3,{'useClass':_0x5e9bf5}]),_0x255885=_0x123ccf[_0x587eec(0x448)](_0x255885,(_0x3ce474=this[_0x587eec(0x23f)])==null?void 0x0:_0x3ce474[_0x587eec(0x2d6)]),_0x255885[_0x587eec(0x3d0)](_0x5e42fd=>this[_0x587eec(0x179)][_0x587eec(0x225)](_0x5e42fd)),this[_0x587eec(0x21d)]();}[_0x30a57b(0x373)](){const _0xd1438b=_0x30a57b;this[_0xd1438b(0x285)](this[_0xd1438b(0x461)]['registerRenderModule'](_0x123ccf['UniverInstanceType'][_0xd1438b(0x34c)],[_0x4d66d3])),this[_0xd1438b(0x285)](this[_0xd1438b(0x461)][_0xd1438b(0x37b)](_0x123ccf[_0xd1438b(0x3ab)][_0xd1438b(0x356)],[_0x21c987]));}[_0x30a57b(0x21d)](){const _0x3474eb=_0x30a57b;var _0x1b9856,_0x5adb3e;this['_injector'][_0x3474eb(0x3c0)](_0x195077[_0x3474eb(0x28c)])[_0x3474eb(0x579)]({'priority':0x14,'interceptor':_0x195077[_0x3474eb(0x331)]({'maxParallel':0x6})}),this[_0x3474eb(0x179)][_0x3474eb(0x3c0)](_0x42a016),(_0x1b9856=this[_0x3474eb(0x23f)])!=null&&_0x1b9856['enableOfflineEditing']||this[_0x3474eb(0x179)]['get'](_0x3ba5f7[_0x3474eb(0x19a)])[_0x3474eb(0x380)](),(_0x5adb3e=this['_config'])!=null&&_0x5adb3e[_0x3474eb(0x592)]&&this[_0x3474eb(0x179)][_0x3474eb(0x3c0)](_0x5def56),this['_injector'][_0x3474eb(0x3c0)](_0x3ba5f7[_0x3474eb(0x549)]),this[_0x3474eb(0x179)][_0x3474eb(0x4bf)](_0x3ba5f7['DesktopCollaborationStatusDisplayController'])&&this['_injector'][_0x3474eb(0x3c0)](_0x3ba5f7[_0x3474eb(0x339)]);}},_0x5d2596(_0x3ba5f7[_0x30a57b(0x547)],_0x30a57b(0x1c5),_0x447288),_0x3ba5f7[_0x30a57b(0x547)]=_0x3b61a5([_0x123ccf[_0x30a57b(0x412)](_0x44c0c5[_0x30a57b(0x3c7)]),_0x1f27cc(0x1,_0x123ccf[_0x30a57b(0x58c)]),_0x1f27cc(0x2,_0x38daca['IRenderManagerService']),_0x1f27cc(0x3,_0x123ccf[_0x30a57b(0x398)](_0x123ccf[_0x30a57b(0x5a5)])),_0x1f27cc(0x4,_0x123ccf[_0x30a57b(0x227)])],_0x3ba5f7['UniverCollaborationClientPlugin']),_0x3ba5f7['AUTHZ_URL_KEY']=_0x263d59,_0x3ba5f7[_0x30a57b(0x56f)]=_0x23d3b2,_0x3ba5f7[_0x30a57b(0x493)]=_0x2260c2,_0x3ba5f7[_0x30a57b(0x4ae)]=_0x10e907,_0x3ba5f7[_0x30a57b(0x570)]=_0x335423,_0x3ba5f7['CommentService']=_0x40c993,_0x3ba5f7['HEARTBEAT_INTERVAL_KEY']=_0x2c1165,_0x3ba5f7[_0x30a57b(0x4be)]=_0x44e782,_0x3ba5f7[_0x30a57b(0x195)]=_0x52ebdb,_0x3ba5f7['IURLService']=_0x1a0059,_0x3ba5f7[_0x30a57b(0x3f3)]=_0x36abb0,_0x3ba5f7['LOGIN_URL_KEY']=_0x53fe19,_0x3ba5f7[_0x30a57b(0x2e8)]=_0x44d08c,_0x3ba5f7[_0x30a57b(0x196)]=_0x5c67ca,_0x3ba5f7[_0x30a57b(0x2a7)]=_0x116803,_0x3ba5f7[_0x30a57b(0x24b)]=_0x1ac3d9,_0x3ba5f7['SessionStatus']=_0x1f9fa8,_0x3ba5f7['SheetCollabCursorShape']=_0x77ea83,_0x3ba5f7[_0x30a57b(0x200)]=_0x3e4835,_0x3ba5f7[_0x30a57b(0x21c)]=_0x38029f,_0x3ba5f7[_0x30a57b(0x411)]=_0x3099b9,Object[_0x30a57b(0x26e)](_0x3ba5f7,Symbol['toStringTag'],{'value':'Module'});}));function _0x4fdf(_0x20f753,_0x21575c){const _0x47ecde=_0x47ec();return _0x4fdf=function(_0x4fdf77,_0x5c0cde){_0x4fdf77=_0x4fdf77-0x169;let _0x37f645=_0x47ecde[_0x4fdf77];return _0x37f645;},_0x4fdf(_0x20f753,_0x21575c);}function _0x47ec(){const _0x52d7ef=['sid','set','APPLY_DUPLICATED','get','status','registerOnClose','_loadSheet','subunit','createIdentifier','_shouldReportTelemetry','UniverCollaborationPlugin','373665CAvbYZ','_beforeCloseService','round','ColorKit','signUrlServerUrl','isEditing','setParam','attrs','forEach','onTransformIME','_cursorShapes','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','pauseCollaboration','c2Prime','listCollaborators','b64DecodeUnicode','mutations','handleIRemoveCol','_cursor','_getRedoStack','YUUMI_SUBSCRIPTION_NOT_FOUND','duration','FAIL','_docTransformIMECacheService','_saveTaskMap','ranges','headers','BASE64','_name','_timeoutTimer','_decreaseWaiting','csShouldRetryEvent','infoRsp','getDocRanges','joinEvent','FileId','onPointerEnter$','_uiPartsService','roomMembers','getColor','collabStatus.notCollab','12KEJQwn','HTTPRequest','LOCAL_CACHE_INTERVAL_KEY','bind','_status$','ImageIoService','getVpScrollXYInfoByPosToVp','UniverSheets','UNIVER_UNKNOWN','filter','UniverUi','combineLatest','transformIMECache','loadOfflineData','/role','_handleJoinEvent','updateMember','isInternalEditorID','makeDirty','RichTextEditingMutation','origin','CONFLICT','cursorInfo','MoveRangeCommandId','1503080bvyeqr','loadDoc','_unitID','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','LocalUndoRedoService','save','_updateLocalCursor','_sheetSkeletonManagerService','serializeCombRequest','DependentOn','_getMergeRange','APPLY_REVISION_CONFILICT','_notificationService','_clearScheduledTask','getValue','init','_collaborationPaused','ERROR_IMAGE','_docTransformSelectionsService','appendMutation','getUnitOnRev','_color','handleInsertRow','_telemetryInfo','CommandType','error','UniverCore','NO_OTHER_CLIENTS_EDITING','sheetId','toggleOnline','telemetry\x20info\x20is\x20not\x20initialized','collabStatus.conflict','_socketService','startTime','YUUMI_RATE_OVER_LIMIT','pushState','_socket','amd','rev','EXCHANGE_SIGN_URL_SERVER_URL_KEY','&assign=','unitId','setActiveRange','hide','NOT_COLLAB','row','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','[CollaborationEntity]','_transformUndoRedoStack','className','_resendTimeout','/universer-api/comb','substring','_onMessage','displayName','LIVESHARE_REQUEST_HOST','2936444uFKFBd','_getSaveTimeout','_hovered','_send','_awaitingChangeset','_joinRoom','NEW_CHANGESETS','mergeOverrideWithDependencies','Unknown\x20user','collab-text-range-','event$','_disabled','ITelemetryService','onStateChange','image/png','map','incrementRevOfUnit','transformChangesets','collabStatus.synced','getActiveSheet','state','uni.network.url-service','url','url(#on-line-single_clip0_910_349)','@univerjs/ui','ITransformService','SnapshotService','onTransformChange$','_shapes','Undefined','LocaleService','on-line-single_clip0_910_349','_renderManagerService','arc','revision','close','_range','IHTTPImplementation','sessionStatus','JOINING','random','m1Prime','_change$','_handleHeartbeatEvent','entries','debounce','onTransformSelections','collab-text-anchor-','clearTimeout','YUUMI_URL_COL_OUT_OF_RANGE','React','assign','getUnitStatus$','requestParams','SetTextSelectionsOperation','@univerjs/docs-ui','univer-online-status-title','updatePermissionPoint','listRoles','awaitingChangeset','registerBeforeClose','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_event$','startsWith','HttpImport','name','_docSkeleton','setCurrentUser','permissionRejEvent','_commentService','/rev/','_docSkeletonManagerService','LIVESHARE_TERMINATE','url(#$1','_textBubble','onSyncEditingCollabCursor','actions','registerComponent','onRemoteRej','getUnitType','object','loadSheet','COLLAB_WEB_SOCKET_URL_KEY','/block/','_type','createInstance','roomInfos','onCommentUpdate','red300','FETCH_MISSING','_sendHeartbeatTimer','@univerjs/sheets','_ensureSubject','onMouseMove','_initCloseConn','TEXT_RANGE_LAYER_INDEX','setUndoRedoMutationParamsCache','UUID','univer-pro.collaboration-client-socket-service','onSendChangeset','_changesetSessionId','_setupSubUnitSync','RemoveRowCommandId','onRendered','focused$','_revisionService','IUndoRedoService','_startSheetCollabCursor','_onConnectionOpen','CollaborationStatus','interceptor','USERS_ENTER','setInterval','LOCAL_CACHE_INTERVAL','getInterceptPoints','_scheduleCollaborationTimeoutTimer','moveTo','PERMISSION_DENIED','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','_lockTransition','forwardRef','icon','/collaborator','[OfflineState]:\x20received\x20changeset.','@univerjs/drawing','HEARTBEAT_TIMEOUT_KEY','has','_localCacheService','getUndoRedoMutationParamsCache','_updateStatus','_collabCursorController','_heartbeatTimer','SheetCollaborationEntity','color','_transformUndoredo','IUniverInstanceService','setWaitCount','_telemetryService','reduce','push','_getAPIPrefix','UNKNOWN_CODE','exhaustSavingTask','_refreshCollabCursors','concat','addObject','/allowed','APPLY_PERMISSION_DENIED','localeService','debounceTime','_substituteUndoStack','getUnit','create','idSuffix','[CollaborationSessionService]:\x20socket\x20error','title','_handleEvent','_getAnchorBounding','/object','getCollabCursors$','operators','unitID','_sendHeartbeat','mapTo','handleInsertRangeMoveRight','saveChangeset','getRenderById','SetSelectionsOperation','InsertRangeMoveDownCommandId','setItem','cursorInfo$','UNIVER_SLIDE','IAuthzIoService','_clearCollaborationTimeoutTimer','snapshot','_resendTimer','debug','VIEW_MAIN','_updateSubUnitFromURLParams','Warning','_retryCount','_sender','then','_getUndoStack','allowed','UniverIcon','_clearOtherTimers','jiqing500','_getDownloadEndpointURL','INGEST','/new_changes','editingUnit','_unitOnClients','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','DocIMEInputManagerService','_state$','_colorAssignService','Optional','_listenToOnlineEvent','UPDATE_CURSOR','WorkbookEditablePermission','conflict.title','slice','UniverLicense','sequenceExecute','session.connection-failed','1em','onPointerMove$','SheetPermissionInitController','joinRsp','univer-pro.collaboration-client.single-active-unit-service','defIds','_memberService','body','getSheetId','addImageSourceCache','_applyRemoteChangeset','result','_syncEditingCollabCursorService','_hover','handleInsertRangeMoveDown','COLORS','_refRangeService','evenodd','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','_transformPreviousActiveRange','univerjs-icon\x20univerjs-icon-','...','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','lineTo','getAncestorScale','randomUUID','awaiting','roles','_collaborationTimeoutTimer','from','_removeRoom','subscribeEvent','{fileID}','members','saveSheetBlock','_throwTelemetryCollaborationNewChangeset','put','DisposableCollection','saveOfflineData','RECV','UNDEFINED','LICENSE_DISTRO_REJECTED','blue400','colorChannel1','fillText','CollaborationSession','ReplaySubject','replace','updateOfflineData','_tryEnsureSocket','originalMeta','isTransformMutationsWithChangesetSuccess','eventID','_initUnitPermissionChange','awaiting_with_pending','_onLocalMutation','UniverCollaborationClientPlugin','collaboration.single-unit.warning','CollaborationController','/universer-api/oidc/authpage','YUUMI_UNABLE_LOAD_URL','RETRY_CONNECTING_MAX_COUNT','_getUploadFileURL','CHANGESET_SHOULD_RETRY','transformMutation','tag','/universer-api/snapshot','commentUpdate$','ALREADY_EXISTS','RemoveColCommandId','_drawTextRange','_showConflictNotification','getRoom','ISnapshotServerService','_ws','LICENSE_MAX_UNITS_EXCEEDED','_themeService','delete','urlChange$','INVALID_ARGUMENT','synced','onRemoteChangeset','changesets','onMissedChangesetFetched','call','save\x20fail\x20reason\x20is\x20','fillStyle','_anchorDot','updatePermissionObjEvent','_initStatusListener','getConfig','HttpExport','/universer-api/authz','getUniverSheetInstance','setAlpha','parse','COLLAB_SUBMIT_CHANGESET_URL_KEY','CollaborationStatusDisplay','m2Prime','ENSURE_SNAPSHOT_EXECUTION','isTransformChangesetsSuccess','InsertRangeMoveRightCommandId','_collabSessionService','values','top','width','registerHTTPInterceptor','_collabCursorState$','contains','CHANGESET_REVISION_CONFILICT','_state','_onRemoteRejected','newCsEvent','ThemeService','_onUserLeave','@univerjs/docs','toLowerCase','INTERNAL_ERROR','getCurrentSelections','fromEvent','all','requireSession','DocStateChangeManagerService','conflict','getRangePointData','ILogService','addObjects','parseProtocolChangeset','_initEventListeners','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','memberID','enableAuthServer','_startCollaboration','post','next','session.room-full','onRemoteAck','_onUserJoin','stringify','getViewport','parseChangesetToProtocol','collabStatus.fetchMiss','_collaborationController','[SyncedState]:\x20received\x20rejection.','stopTime','hovered','COMMENT_UPDATE','SNAPSHOT_INVALID_SNAPSHOT','Error','JOIN','Injector','data','_replaceFileID','UniverDesign','min','_imageSourceCache','getOwnPropertyDescriptor','currentColor','_clearLocalCache','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','BuiltInUIPart','_getSignURL','unknown','confirm','DocSkeletonManagerService','clearInterval','on-line-single','doc.mutation.rich-text-editing','_urlService','/fetchmissing?from=','MUTATION','children','_toggleOnline','hidden','_hideTimer','_waitCount','getCoordByCell','_injector','equals','/universer-api/file/{fileID}/sign-url','hasOwnProperty','UniverTelemetry','\x20in\x20_schedule.','size','RegularPolygon','file','_socketReady','textRanges','transformUndoRedo','storage','flatMap','onTransformRemoteChangesetByIMECache','[DataLoaderController]','mapDocumentTypeToUniverType','?url=','getCurrentRevOfUnit','selection','startColumn','message$','useDependency','_scene','TOO_MANY_REQUESTS','CompressMutationService','_updateCollabCursors','json','ICollaborationSocketService','SEND_CHANGESET_TIMEOUT_KEY','target','handleMoveRange','AWAITING_WITH_PENDING','LocalCacheService','onPointerLeave$','deepClone','text','userID','xlink:href','endColumn','max','OTHER_CLIENTS_EDITING','Workbook','bottom','#FFF','_stopTelemetryCollaborationNewChangeset','_docSyncEditingCollabCursorService','NOT_FOUND','_getScale','MergeInterceptorFactory','LOGIN_URL_KEY','_handleHover','refreshPermission','range','getCurrentUser','_loadDoc','_httpService','propertyIsEnumerable','_schedule','ImageSourceType','src','getMergeData','registerRefRange','getRelativeToViewportCoord','x-univer-host','[UniverCollaborationClientPlugin]','throttleTime','react','Rect','triggerDblclick','restore','onlyLocal','_localStorageService','SheetsSelectionsService','_createHandler','_online','pluginName','FETCH_MISS','IMessageService','objects','startRow','Univer','_waitForHeartbeatResponse','Error\x20on\x20receiving\x20event','IBeforeCloseService','enableSingleActiveInstanceLock','prototype','_toggleOffline','permission.content','sheetID','_singleActiveUnitService','status$','_logService','_resendWithTimeout','_docStateChangeManagerService','COLLAB_SUBMIT_CHANGESET_URL','catch','/resources','socket\x20open.','_getCurrentRevision','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_univerInstanceService','currentTheme$','getMemberID','readAsDataURL','isTransformMutationsWithChangesetFailure','onRemoteRetry','_clearHeartbeatTimer','indexOf','UNIVER_PROJECT','concatMap','LICENSE_EXPORT_SIZE_EXCEEDED','includes','getCollabEntity$','activeSheet$','_onRecvEvent','send','_executeRemoteChangeset','offline','0\x200\x2017\x2016','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','docStateChange$','PSEUDO_FETCH_MISSING_RESULT','USERS_LEAVE','_permissionService','_socketMessageSubscription','_onConflict','Vector2','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','defs','SnapshotServerOverHTTPService','fetch_missing','not_collab','session.will-retry','every','WebURLService','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','WebSocketService','_transformStack','getTime','LEAVE','visibilitychange','HELLO','_initResize','CHANGESET_REJ','symbol','COMPRESS_MUTATION_APPLY','_onRemoteChangeset','collaMsg','type','SheetSkeletonManagerService','assignAColorForMemberID','transformStack\x20failed!','submit\x20changeset\x20error!','connection\x20error','key','getCurrentUnitForType','CollaborationEntity','_listenToOfflineEvent','UniverNetwork','getParam','csAckEvent','cmd','deserializeToCombResponse','_initModules','SYNCED','image/jpg','conflict.content','_lastPointer','_scheduleSaving','_HTTPService','searchParams','add','length','IConfigService','putCollaborators','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','collaboration.closeRoom','HEARTBEAT_TIMEOUT','JSONX','BehaviorSubject','CollaborationEvent','_anchor','_onOffline','subUnitId','_transformService','currentSkeleton$','_onConnectionFailed','_messageService','isTransformMutationFailure','isActive','toggleOffline','loginUrlKey','_init','68JsOUsX','code','AuthzIoHttpService','drawWith','_config','params','_roomMembers$','_tryReconnect','pipe','UnitSnapshot','2459673KLCMzn','getCellPositionByOffset','_setupBeforeClosingHandler','shouldCloseConn','[CollaborationSessionService]','RxDisposable','SNAPSHOT_URL_KEY','&source=','_substituteRedoStack','fromEventSubject','DEFAULT_FILE_NAME','_http','failed\x20to\x20apply\x20missed\x20changesets!','path','isArray','UserManagerService','replaceState','[CollaborationUndoRedoService]','\x0aAfter:\x20','_onRemoteRetry','_updateLocalCache','IContextService','take','ICommandService','fillRule','_getLoginPath','column','close$','_collaborationSessionService','HEARTBEAT_INTERVAL','COLLAB_WEB_SOCKET_URL','fetching\x20missing\x20changesets\x20from\x20','_userManagerService','href','CollaborationSessionService','SEND_CHANGESET_TIMEOUT','IUIPartsService','M0\x200H16V16H0z','onCommandExecuted','reject','engine','defineProperty','_clearUndo','@univerjs/engine-formula','downloadEndpointUrl','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','useRef','labelPosition','rxjs','UniverCollaboration','authzUrl','_pendingMutations','distinctUntilChanged','socketService','rng','collaboratorID','APPLY_REJECT','_roomMembers','_checkMissing','div','getUnitId','ILocalStorageService','method','image/jpeg','disposeWithMe','getImageSourceCache','purple300','Subject','liveShareNewHost','_unitStatus','CHANGESET_ACK','HTTPService','_draw','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','LIVESHARE_FETCH_OPERATIONS','POST','LIVESHARE_NEW_HOST','touchDependencies','objectType','_transitionLocked','SUCCUSS','\x0aCurrent:\x20','_sessionStatus$','/unit/','getSkeleton','_handler','getTypeOfUnitDisposed$','reqId','_clearRedo','asObservable','transformMutationsWithChangeset','_retryConnectingTimer','_compressMutationService','ImageUploadStatusType','setTimeout','action','_startDocCollabCursor','NodePositionConvertToRectRange','SNAPSHOT_SERVER_URL_KEY','IRemoteInstanceService','getRandomValues','delay','saveImage','getItem','deserializeRangeWithSheet','useCallback','unshift','collab-rect-range-','_removeCollabCursors','IPermissionService','_scheduleClearOtherTimer','list','UnitEmbedded','collabCursorState$','_commandService','PENDING','_fetchMissChangesets','getMember','collaboration_new_changeset','height','string','_removeClearOtherTimer','_cursorInfo$','visibilityState','[CollaborationState]:\x20apply\x20error!','_replayCachedMutations','_sendingTimer','_onCombEvent','4888233xABMTu','_transformRemoteChangesetByIMECache','SHOULD_CLOSE_CONN','getOwnPropertySymbols','setShapeProps','_onCursorDelete','trim','setConfig','ONLINE','getResourcesRequest','6873510FIZLjA','executeCommand','_createInitialState','_unlockTransition','Rectangle','now','UNAUTHENTICATED','override','find','transformRemoteChangeset','disposeUnit','some','off-line-single_clip0_910_343','_colorIndex','1aiLuoc','_initStatusComponent','_render','_transformIMECache','getFocusedUnit','ERROR_EXCEED_SIZE','closeSession','Tools','COMPRESS_MUTATION_SEND','_remoteChangesetQueue','APPLY_NON_SEQUENTIAL_REVISION','RETRY_CONNECTING_MAX_COUNT_KEY','gold400','_saveCache','_getAPIPrefixPath','_candidateSocket','_initRequestHeader','LICENSE_IMPORT_SIZE_EXCEEDED','toString','ERROR_IMAGE_TYPE','endRow','/-/object/list','_eventUnsubscribe','getUnhiddenWorksheets','svg','fill','rxjs/operators','switchMap','_commentUpdate$','_drawAnchor','split','_session','workbook','@univerjs/engine-render','RevisionService','findNodePositionByCharIndex','translate(.97)','_handleLeaveEvent','off-line-single','UniverDrawing','addEventListener','ws://127.0.0.1:8000/universer-api/comb/connect','UniverEngineRender','clear','resend','_createSocket','LIVESHARE_OPERATION','session','_entityInit$','_submitChangeset','none','/universer-api/stream/file/upload','OFFLINE','_exhaustRemoteChangesetQueue','IDLE','removeMember','_entities','_socket$','skeleton','/object/','AWAITING','shareReplay','Shape','SNAPSHOT_HAS_BEEN_REMOVED','sessionStatus$','_id','univer-online','sendChangesetTimeout','UNRECOGNIZED','_incrementRevisionNumber','syncEditingCollabCursor','_members','location','HEARTBEAT','getOffsetConfig','fetchMiss','removeParam','merge','@univerjs-pro/collaboration','_clearTimeoutTimer','_acknowledgedAwaitingChangeset','DataLoaderController','commentUpdateEvent','image/gif','ThresholdInterceptorFactory','compose','pending','_cursors','initWorkbookPermissionChange','open$','PERMISSION_REJ','_onCursorUpdate','DesktopCollaborationStatusDisplayController','onlineStatusIcon','reconnect','handleDeleteRangeMoveLeft','routeKey','dispose','_scheduleTimestamp','resolve','_assignedColors','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','session.collaboration-timeout','getCollabEntity','_configService','_createInitialStateImpl','Tooltip','_document','IImageIoService','getSheetBySheetId','#fff','UNIVER_DOC','_selfUnitIDs','onMissingChangesets','_context','_updateState','_updateURLWithCurrentState','createElement','Disposable','@univerjs/design','_localeService','UNIVER_SHEET','handleDeleteRangeMoveUp','getSheetObject','unload','responseType','UniverCollaborationClient','error$','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_drawRectRange','_onRemoteACK','0\x200\x2016\x2016','@univerjs-pro/license','show','newValue','history','OffLineSingle','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','EffectRefRangId','state$','_cachedData','InsertRowCommandId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','selections','takeUntil','encode','getTypeOfUnitAdded$','_scheduleHeartbeat','_sessions','@univerjs/rpc','_registerRenderDependencies','updateCollaborator','SetWorksheetActivateCommand','IRenderManagerService','DocCollaborationEntity','replaceTextRanges','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','auth.needGotoLoginAlert','registerRenderModule','handleIRemoveRow','_getSnapshotAPIPrefix','_backgroundColor','black','disableLocalCache','_registerDependencies','isPermissionRej','subscribe','fetchMissingChangesets','createSocket','with','transformSelections','toDisposable','generateRandomId','_queuedRemoteChangesets','_getSendChangesetTimeout','function','textEncoder','_onJoinRoomEvent','CollaborationSocketService','getSheetBlock','_initCommandExecutedListener','online','onload','roomMembers$','complete','_onFetchMissResult','[FetchMissState]','Inject','MessageType','dispose$','_transformSelections','FromArray','_rescheduleHeartbeat','clipPath','_initMergeInterceptor','ACTIVE_UNIT_EVENT_CHANNEL','/universer-api/snapshot/','unitId\x20is\x20not\x20found','getAttachHeader','_labelPosition','update','_changesetReqId','@univerjs/network','objectID','getDeserializedSheetBlock','baseRev','UniverInstanceType','measureText','fetchThroughInterceptors','extend','RefRangeService','_snapshotService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','[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.','leaveEvent','UniverDocs','_onRefRangeChange','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','644390ckmaoa','toRgbString','unsubscribe','editing\x20status\x20changed\x20to','exports','c1Prime'];_0x47ec=function(){return _0x52d7ef;};return _0x47ec();}
|
1
|
+
(function(_0x486bcf,_0x256bc7){const _0x445bcd=_0x2aa9,_0x3c5571=_0x486bcf();while(!![]){try{const _0x4cb527=parseInt(_0x445bcd(0x30f))/0x1+-parseInt(_0x445bcd(0x3db))/0x2*(-parseInt(_0x445bcd(0x313))/0x3)+parseInt(_0x445bcd(0x307))/0x4+-parseInt(_0x445bcd(0x2dc))/0x5+parseInt(_0x445bcd(0x1bf))/0x6+parseInt(_0x445bcd(0x1e1))/0x7*(parseInt(_0x445bcd(0x2c1))/0x8)+-parseInt(_0x445bcd(0x3bf))/0x9;if(_0x4cb527===_0x256bc7)break;else _0x3c5571['push'](_0x3c5571['shift']());}catch(_0x45262c){_0x3c5571['push'](_0x3c5571['shift']());}}}(_0xb9d3,0x18ebe),function(_0x2f410b,_0x3917c2){const _0x78f14=_0x2aa9;typeof exports==_0x78f14(0x510)&&typeof module<'u'?_0x3917c2(exports,require(_0x78f14(0x515)),require(_0x78f14(0x173)),require(_0x78f14(0x3a7)),require(_0x78f14(0x4d5)),require(_0x78f14(0x4c5)),require(_0x78f14(0x54c)),require('@univerjs-pro/collaboration'),require(_0x78f14(0x25f)),require('@univerjs/docs-ui'),require(_0x78f14(0x2d8)),require(_0x78f14(0x254)),require('@univerjs/docs'),require(_0x78f14(0x17f)),require(_0x78f14(0x325)),require(_0x78f14(0x2de)),require(_0x78f14(0x516)),require('@univerjs/rpc'),require('@univerjs-pro/license')):typeof define==_0x78f14(0x262)&&define[_0x78f14(0x196)]?define([_0x78f14(0x35b),_0x78f14(0x515),_0x78f14(0x173),_0x78f14(0x3a7),_0x78f14(0x4d5),_0x78f14(0x4c5),'@univerjs/network',_0x78f14(0x12c),_0x78f14(0x25f),_0x78f14(0x549),_0x78f14(0x2d8),_0x78f14(0x254),_0x78f14(0x47e),'@univerjs/drawing',_0x78f14(0x325),_0x78f14(0x2de),_0x78f14(0x516),_0x78f14(0x283),_0x78f14(0x467)],_0x3917c2):(_0x2f410b=typeof globalThis<'u'?globalThis:_0x2f410b||self,_0x3917c2(_0x2f410b['UniverCollaborationClient']={},_0x2f410b[_0x78f14(0x391)],_0x2f410b[_0x78f14(0x173)],_0x2f410b[_0x78f14(0x173)][_0x78f14(0x50a)],_0x2f410b[_0x78f14(0x51b)],_0x2f410b[_0x78f14(0x554)],_0x2f410b[_0x78f14(0x3b2)],_0x2f410b[_0x78f14(0x42c)],_0x2f410b[_0x78f14(0x543)],_0x2f410b[_0x78f14(0x4c6)],_0x2f410b[_0x78f14(0x445)],_0x2f410b['UniverEngineRender'],_0x2f410b[_0x78f14(0x246)],_0x2f410b[_0x78f14(0x158)],_0x2f410b[_0x78f14(0x499)],_0x2f410b[_0x78f14(0x459)],_0x2f410b[_0x78f14(0x312)],_0x2f410b[_0x78f14(0x47f)],_0x2f410b[_0x78f14(0x154)]));}(this,function(_0x3b531e,_0x349f19,_0x1e13bb,_0x501e2e,_0x806671,_0x5b624f,_0x47193d,_0x54555c,_0x4eb556,_0x3c060b,_0x4c7a32,_0x577b7e,_0x9fa27b,_0xaccc08,_0x2de305,_0xa0e5aa,_0x385d1d,_0x4ce572,_0x5bb22a){'use strict';const _0x145278=_0x2aa9;var _0x210d17=Object[_0x145278(0x507)],_0x55f15e=(_0x48f6e5,_0x59f7df,_0x6a224e)=>_0x59f7df in _0x48f6e5?_0x210d17(_0x48f6e5,_0x59f7df,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6a224e}):_0x48f6e5[_0x59f7df]=_0x6a224e,_0xbb867=(_0x14f5aa,_0x27b853,_0x2916ad)=>_0x55f15e(_0x14f5aa,typeof _0x27b853!=_0x145278(0x429)?_0x27b853+'':_0x27b853,_0x2916ad);const _0x1f76a6=_0x145278(0x4d2),_0x137d51=_0x145278(0x497),_0x1fe014='SNAPSHOT_URL_KEY',_0x3c165d=_0x145278(0x3ee),_0x5c110b='COLLAB_WEB_SOCKET_URL',_0x3bd2f7='ws://127.0.0.1:8000/universer-api/comb/connect',_0x2ace82='HEARTBEAT_INTERVAL',_0x566bf8=_0x145278(0x551),_0xe2277='RETRY_CONNECTING_MAX_COUNT',_0x255e8f='LOCAL_CACHE_INTERVAL',_0x3f5d5a=_0x145278(0x1dd),_0x2ac880=_0x145278(0x4cc),_0x3d2741='LOGIN_URL_KEY',_0x7b342b=_0x145278(0x142);var _0x21d834=(_0x8e8cae=>(_0x8e8cae[_0x8e8cae[_0x145278(0x369)]=0x0]='UNDEFINED',_0x8e8cae[_0x8e8cae['OK']=0x1]='OK',_0x8e8cae[_0x8e8cae[_0x145278(0x51a)]=0x2]=_0x145278(0x51a),_0x8e8cae[_0x8e8cae[_0x145278(0x3b9)]=0x3]='PERMISSION_DENIED',_0x8e8cae[_0x8e8cae[_0x145278(0x139)]=0x4]=_0x145278(0x139),_0x8e8cae[_0x8e8cae['UNAUTHENTICATED']=0x5]=_0x145278(0x53f),_0x8e8cae[_0x8e8cae[_0x145278(0x16a)]=0x6]=_0x145278(0x16a),_0x8e8cae[_0x8e8cae[_0x145278(0x4f1)]=0x7]=_0x145278(0x4f1),_0x8e8cae[_0x8e8cae[_0x145278(0x363)]=0x8]='TOO_MANY_REQUESTS',_0x8e8cae[_0x8e8cae[_0x145278(0x1bd)]=0x9]='COMPLETION_FINISHED',_0x8e8cae[_0x8e8cae[_0x145278(0x233)]=0x1389]=_0x145278(0x233),_0x8e8cae[_0x8e8cae[_0x145278(0x32f)]=0x1771]=_0x145278(0x32f),_0x8e8cae[_0x8e8cae[_0x145278(0x17e)]=0x1772]=_0x145278(0x17e),_0x8e8cae[_0x8e8cae[_0x145278(0x4cb)]=0x1773]=_0x145278(0x4cb),_0x8e8cae[_0x8e8cae[_0x145278(0x236)]=0x1b59]='APPLY_REJECT',_0x8e8cae[_0x8e8cae[_0x145278(0x436)]=0x1b5a]=_0x145278(0x436),_0x8e8cae[_0x8e8cae[_0x145278(0x226)]=0x1b5b]=_0x145278(0x226),_0x8e8cae[_0x8e8cae[_0x145278(0x35c)]=0x1b5c]='APPLY_PERMISSION_DENIED',_0x8e8cae[_0x8e8cae[_0x145278(0x22a)]=0x1b5d]=_0x145278(0x22a),_0x8e8cae[_0x8e8cae['CONNECTOR_DATA_TOO_LARGE']=0x1f41]=_0x145278(0x297),_0x8e8cae[_0x8e8cae['LICENSE_MAX_UNITS_EXCEEDED']=0x2329]=_0x145278(0x49d),_0x8e8cae[_0x8e8cae[_0x145278(0x1b5)]=0x232a]=_0x145278(0x1b5),_0x8e8cae[_0x8e8cae[_0x145278(0x149)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x8e8cae[_0x8e8cae[_0x145278(0x289)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x8e8cae[_0x8e8cae['LICENSE_DISTRO_REJECTED']=0x232d]=_0x145278(0x33a),_0x8e8cae[_0x8e8cae[_0x145278(0x151)]=0x2711]='YUUMI_UNABLE_LOAD_URL',_0x8e8cae[_0x8e8cae['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]=_0x145278(0x1e0),_0x8e8cae[_0x8e8cae[_0x145278(0x34b)]=0x2713]=_0x145278(0x34b),_0x8e8cae[_0x8e8cae[_0x145278(0x356)]=0x2714]=_0x145278(0x356),_0x8e8cae[_0x8e8cae[_0x145278(0x4ba)]=-0x1]='UNRECOGNIZED',_0x8e8cae))(_0x21d834||{}),_0x5b5eaf=(_0x23dbef=>(_0x23dbef[_0x23dbef[_0x145278(0x1dc)]=0x0]='UNIVER_UNKNOWN',_0x23dbef[_0x23dbef[_0x145278(0x22e)]=0x1]=_0x145278(0x22e),_0x23dbef[_0x23dbef['UNIVER_SHEET']=0x2]=_0x145278(0x431),_0x23dbef[_0x23dbef[_0x145278(0x54b)]=0x3]='UNIVER_SLIDE',_0x23dbef[_0x23dbef[_0x145278(0x4ee)]=0x4]=_0x145278(0x4ee),_0x23dbef[_0x23dbef['UNRECOGNIZED']=-0x1]=_0x145278(0x4ba),_0x23dbef))(_0x5b5eaf||{}),_0x3263b5=(_0x204881=>(_0x204881[_0x204881[_0x145278(0x407)]=0x0]=_0x145278(0x407),_0x204881[_0x204881['HELLO']=0x1]=_0x145278(0x524),_0x204881[_0x204881['JOIN']=0x2]=_0x145278(0x152),_0x204881[_0x204881[_0x145278(0x34c)]=0x3]='LEAVE',_0x204881[_0x204881[_0x145278(0x280)]=0x4]=_0x145278(0x280),_0x204881[_0x204881[_0x145278(0x1d9)]=0x5]=_0x145278(0x1d9),_0x204881[_0x204881[_0x145278(0x397)]=0x6]=_0x145278(0x397),_0x204881[_0x204881[_0x145278(0x4ba)]=-0x1]=_0x145278(0x4ba),_0x204881))(_0x3263b5||{}),_0xfa24=(_0x3293d7=>(_0x3293d7[_0x3293d7[_0x145278(0x540)]=0x0]='UNKNOWN_CODE',_0x3293d7[_0x3293d7['OK']=0x1]='OK',_0x3293d7[_0x3293d7[_0x145278(0x32c)]=0x2]='FAIL',_0x3293d7[_0x3293d7[_0x145278(0x4ba)]=-0x1]=_0x145278(0x4ba),_0x3293d7))(_0xfa24||{}),_0x521080=(_0x2e9165=>(_0x2e9165[_0x2e9165[_0x145278(0x38e)]=0x0]=_0x145278(0x38e),_0x2e9165[_0x2e9165['HttpImport']=0x1]=_0x145278(0x416),_0x2e9165[_0x2e9165[_0x145278(0x4af)]=0x2]=_0x145278(0x4af),_0x2e9165[_0x2e9165[_0x145278(0x511)]=0x3]=_0x145278(0x511),_0x2e9165[_0x2e9165['UnitSnapshot']=0x4]='UnitSnapshot',_0x2e9165[_0x2e9165[_0x145278(0x4ba)]=-0x1]=_0x145278(0x4ba),_0x2e9165))(_0x521080||{});const _0x4ea523='collaboration-client.config',_0xb30b05={};function _0x2a238a(_0x14fc0b){const _0x1ee7f3=_0x145278;var _0x50a578,_0x2d7a79,_0x48e079,_0x558efb,_0x21bcce;const _0x570381=_0x14fc0b[_0x1ee7f3(0x2d2)],_0x558c54=JSON[_0x1ee7f3(0x2e7)](_0x570381);switch(_0x558c54[_0x1ee7f3(0x2c4)]){case _0x3263b5['HEARTBEAT']:case _0x3263b5['HELLO']:{const _0x18eb26=_0x558c54['infoRsp'];return{..._0x558c54,'data':_0x18eb26,'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};}case _0x3263b5[_0x1ee7f3(0x152)]:{const _0x4b333d=_0x558c54[_0x1ee7f3(0x469)];return{..._0x558c54,'data':_0x4b333d,'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};}case _0x3263b5[_0x1ee7f3(0x397)]:{const _0x2d6d62=_0x558c54[_0x1ee7f3(0x269)];switch(_0x2d6d62[_0x1ee7f3(0x1c0)]){case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x475)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x50a578=_0x2d6d62[_0x1ee7f3(0x3a9)])==null?void 0x0:_0x50a578['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)]['CHANGESET_ACK']:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x2d7a79=_0x2d6d62[_0x1ee7f3(0x4b0)])==null?void 0x0:_0x2d7a79['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x327)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x48e079=_0x2d6d62[_0x1ee7f3(0x127)])==null?void 0x0:_0x48e079['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x4f8)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x558efb=_0x2d6d62['csRejEvent'])==null?void 0x0:_0x558efb['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x23f)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':(_0x21bcce=_0x2d6d62['csShouldRetryEvent'])==null?void 0x0:_0x21bcce['cs']},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x31e)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x18d)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x2e4)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x4c8)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c['CollaborationEvent']['USERS_LEAVE']:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x1de)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x3f0)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x190)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x22f)]:case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x12a)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x2b6)]},'cmd':_0x558c54['cmd']};case _0x54555c[_0x1ee7f3(0x547)][_0x1ee7f3(0x1f5)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x190)]},'cmd':_0x558c54['cmd']};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x480)]:return{..._0x558c54,'data':_0x2d6d62,'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c[_0x1ee7f3(0x547)]['COMMENT_UPDATE']:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x311)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x29e)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62['updatePermissionObjEvent']},'cmd':_0x558c54['cmd']};case _0x54555c['CollaborationEvent'][_0x1ee7f3(0x2ca)]:return{..._0x558c54,'data':{..._0x2d6d62,'data':_0x2d6d62[_0x1ee7f3(0x338)]},'cmd':_0x558c54[_0x1ee7f3(0x2c4)]};default:return _0x558c54;}}default:return _0x558c54;}}function _0x1a0ef4(_0x8caf22){const _0x53376f=_0x145278;switch(_0x8caf22[_0x53376f(0x2c4)]){case _0x3263b5[_0x53376f(0x1d9)]:case _0x3263b5[_0x53376f(0x524)]:return JSON['stringify']({'cmd':_0x8caf22[_0x53376f(0x2c4)],'routeKey':_0x8caf22[_0x53376f(0x11d)]});case _0x3263b5['INGEST']:{let _0x9b2625;switch(_0x8caf22[_0x53376f(0x2d2)][_0x53376f(0x1c0)]){case _0x54555c[_0x53376f(0x547)][_0x53376f(0x31e)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x31e)],'updateCursorEvent':_0x8caf22[_0x53376f(0x2d2)]['data']};break;}case _0x54555c[_0x53376f(0x547)][_0x53376f(0x28b)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x28b)],'leaveEvent':_0x8caf22[_0x53376f(0x2d2)]['data']};break;}case _0x54555c[_0x53376f(0x547)][_0x53376f(0x2e4)]:{_0x9b2625={'eventID':_0x54555c['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x8caf22[_0x53376f(0x2d2)][_0x53376f(0x2d2)]};break;}case _0x54555c['CollaborationEvent'][_0x53376f(0x3f0)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x3f0)],'liveShareNewHost':_0x8caf22['data'][_0x53376f(0x2d2)]};break;}case _0x54555c[_0x53376f(0x547)][_0x53376f(0x12a)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x12a)],'liveShareOperation':_0x8caf22[_0x53376f(0x2d2)][_0x53376f(0x2d2)]};break;}case _0x54555c[_0x53376f(0x547)]['LIVESHARE_TERMINATE']:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x8caf22[_0x53376f(0x2d2)]['data']};break;}case _0x54555c['CollaborationEvent'][_0x53376f(0x4e2)]:{_0x9b2625={'eventID':_0x54555c[_0x53376f(0x547)][_0x53376f(0x4e2)],'liveShareRequestHost':_0x8caf22['data'][_0x53376f(0x2d2)]};break;}case _0x54555c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']:{_0x9b2625={'eventID':_0x54555c['CollaborationEvent'][_0x53376f(0x22f)]};break;}default:_0x9b2625={'eventID':_0x8caf22[_0x53376f(0x2d2)]['eventID']};}return JSON[_0x53376f(0x140)]({'cmd':_0x8caf22[_0x53376f(0x2c4)],'routeKey':_0x8caf22[_0x53376f(0x11d)],'collaMsg':_0x9b2625});}case _0x3263b5['JOIN']:return JSON[_0x53376f(0x140)]({'cmd':_0x8caf22['cmd'],'routeKey':_0x8caf22[_0x53376f(0x11d)],'joinReq':_0x8caf22['data']});case _0x3263b5[_0x53376f(0x34c)]:return JSON['stringify']({'cmd':_0x8caf22[_0x53376f(0x2c4)],'routeKey':_0x8caf22[_0x53376f(0x11d)],'leaveReq':_0x8caf22['data']});default:throw new Error(_0x53376f(0x15b));}}var _0x4b12fc=Object[_0x145278(0x507)],_0x14bd64=Object['getOwnPropertyDescriptor'],_0x2a2300=(_0x1f122a,_0x25225f,_0x5e33e8,_0x30565f)=>{const _0x246fe0=_0x145278;for(var _0x23fed7=_0x30565f>0x1?void 0x0:_0x30565f?_0x14bd64(_0x25225f,_0x5e33e8):_0x25225f,_0x280151=_0x1f122a[_0x246fe0(0x37e)]-0x1,_0x4db2b8;_0x280151>=0x0;_0x280151--)(_0x4db2b8=_0x1f122a[_0x280151])&&(_0x23fed7=(_0x30565f?_0x4db2b8(_0x25225f,_0x5e33e8,_0x23fed7):_0x4db2b8(_0x23fed7))||_0x23fed7);return _0x30565f&&_0x23fed7&&_0x4b12fc(_0x25225f,_0x5e33e8,_0x23fed7),_0x23fed7;},_0x3fdd7=(_0x10d8fa,_0x31f855)=>(_0x5dfeea,_0x58305d)=>_0x31f855(_0x5dfeea,_0x58305d,_0x10d8fa);const _0x3f5095=_0x349f19['createIdentifier'](_0x145278(0x1bb));function _0x1115d0(_0x3cbb5c,_0x53280e,_0x33d021){const _0x140747=_0x145278;return _0x3cbb5c+'/'+_0x53280e+_0x140747(0x209)+_0x33d021+_0x140747(0x1be);}_0x3b531e['CollaborationSocketService']=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x445705,_0x40667d,_0x365e0f,_0x40312d,_0xcc04ef){const _0x118066=_0x145278;super(),this[_0x118066(0x2e0)]=_0x445705,this[_0x118066(0x29d)]=_0x40667d,this[_0x118066(0x28d)]=_0x365e0f,this['_logService']=_0x40312d,this[_0x118066(0x451)]=_0xcc04ef;}[_0x145278(0x217)](_0x31532e){const _0x4cc4a8=_0x145278,_0x1688dd=this[_0x4cc4a8(0x29d)]['createSocket'](_0x31532e);if(!_0x1688dd)throw new Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');const _0x14bd17=new _0x349f19[(_0x4cc4a8(0x2ac))](),_0x36252e=new _0x1e13bb[(_0x4cc4a8(0x410))]();_0x14bd17['add'](_0x1688dd[_0x4cc4a8(0x462)][_0x4cc4a8(0x38f)](_0x45c507=>_0x36252e[_0x4cc4a8(0x155)](_0x45c507))),_0x14bd17['add'](_0x349f19[_0x4cc4a8(0x534)](()=>_0x36252e[_0x4cc4a8(0x2f9)]()));const _0x17d8b0=new _0x1e13bb[(_0x4cc4a8(0x410))]();_0x14bd17[_0x4cc4a8(0x4f3)](_0x1688dd[_0x4cc4a8(0x53c)]['subscribe'](_0x1726e2=>_0x17d8b0[_0x4cc4a8(0x155)](_0x1726e2))),_0x14bd17[_0x4cc4a8(0x4f3)](_0x349f19[_0x4cc4a8(0x534)](()=>_0x17d8b0[_0x4cc4a8(0x2f9)]()));const _0x2c592f=new _0x1e13bb[(_0x4cc4a8(0x410))]();_0x14bd17['add'](_0x1688dd['message$'][_0x4cc4a8(0x38f)](_0x17e64d=>{const _0x26bba2=_0x2a238a(_0x17e64d);_0x2c592f['next'](_0x26bba2);})),_0x14bd17['add'](_0x349f19[_0x4cc4a8(0x534)](()=>_0x2c592f['complete']()));let _0x5c090f;const _0xe9340a=()=>{const _0x10ef95=_0x4cc4a8;_0x17d8b0['next'](new Event(_0x10ef95(0x388))),_0x36252e[_0x10ef95(0x155)](new CloseEvent(_0x10ef95(0x388))),_0x5c090f[_0x10ef95(0x37f)]();};return _0x5c090f={'memberID':'','close$':_0x36252e[_0x4cc4a8(0x4de)](),'error$':_0x17d8b0['asObservable'](),'open$':_0x1688dd['open$'],'message$':_0x2c592f[_0x4cc4a8(0x4de)](),'send':_0x25010b=>{const _0x2f0988=_0x4cc4a8;if(_0x25010b[_0x2f0988(0x2c4)]===_0x3263b5['INGEST']){if(_0x25010b['data'][_0x2f0988(0x1c0)]===_0x54555c[_0x2f0988(0x547)][_0x2f0988(0x1a6)]){this[_0x2f0988(0x4da)](_0x5c090f,_0x25010b[_0x2f0988(0x2d2)])['catch'](_0x48420c=>{const _0x4772f6=_0x2f0988;this[_0x4772f6(0x385)]['error'](_0x48420c),_0xe9340a();});return;}if(_0x25010b[_0x2f0988(0x2d2)][_0x2f0988(0x1c0)]===_0x54555c[_0x2f0988(0x547)]['FETCH_MISSING']){const _0x1f4cf9=_0x25010b[_0x2f0988(0x2d2)];this['_fetchMissChangesets'](_0x1f4cf9)[_0x2f0988(0x210)](_0x2bb747=>{const _0x51bb2c=_0x2f0988;_0x2c592f[_0x51bb2c(0x155)]({'cmd':_0x3263b5['RECV'],'code':_0xfa24['OK'],'routeKey':_0x1f4cf9[_0x51bb2c(0x2d2)][_0x51bb2c(0x240)],'routeType':'','data':{'eventID':_0x54555c[_0x51bb2c(0x547)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x2bb747}}});})['catch'](_0x4ac3fe=>{const _0x39ee7f=_0x2f0988;this[_0x39ee7f(0x385)][_0x39ee7f(0x4aa)](_0x4ac3fe),_0xe9340a();});return;}}_0x1688dd[_0x2f0988(0x3e7)](_0x1a0ef4(_0x25010b));},'close':()=>{const _0x94d4f5=_0x4cc4a8;_0x1688dd[_0x94d4f5(0x37f)](),_0x14bd17[_0x94d4f5(0x4c1)]();}},_0x5c090f;}async[_0x145278(0x4da)](_0x131708,_0x16ad3c){const _0xcc8fd6=_0x145278;var _0x271aa9,_0x385b5c;const {unitType:_0xe5985d,unitID:_0x74f8aa,changeset:_0x4d1ba3}=_0x16ad3c[_0xcc8fd6(0x2d2)],_0x5f0929={'unitID':_0x74f8aa,'memberID':_0x131708[_0xcc8fd6(0x3df)],'type':_0xe5985d,'changeset':_0x54555c[_0xcc8fd6(0x479)](_0x4d1ba3)},_0x956863=this['_configService'][_0xcc8fd6(0x46f)](_0x3f5d5a),_0x8f069c=this[_0xcc8fd6(0x28d)]['getConfig'](_0x4ea523),_0x46dc85=_0x1115d0((_0x385b5c=(_0x271aa9=_0x8f069c==null?void 0x0:_0x8f069c[_0xcc8fd6(0x4a6)])!=null?_0x271aa9:_0x956863)!=null?_0x385b5c:_0x2ac880,_0xe5985d,_0x74f8aa);try{await this[_0xcc8fd6(0x2e0)]['post'](_0x46dc85,{'body':_0x5f0929});}catch(_0x9fe0d5){throw this[_0xcc8fd6(0x385)][_0xcc8fd6(0x4aa)]('[CollaborationSession]','submit\x20changeset\x20error!'),_0x9fe0d5;}}async[_0x145278(0x4f5)](_0x1bb4ca){const _0x3c090b=_0x145278,{unitID:_0x50c25d,from:_0xdf58b9,to:_0x5e565f,unitType:_0x4ac34e}=_0x1bb4ca[_0x3c090b(0x2d2)];return(await this['_snapshotServerService'][_0x3c090b(0x296)]({'metadata':void 0x0},{'unitID':_0x50c25d,'type':_0x4ac34e,'from':_0xdf58b9,'to':_0x5e565f}))[_0x3c090b(0x1af)];}},_0x3b531e[_0x145278(0x504)]=_0x2a2300([_0x3fdd7(0x0,_0x349f19['Inject'](_0x47193d[_0x145278(0x3f8)])),_0x3fdd7(0x1,_0x349f19['Inject'](_0x47193d[_0x145278(0x45a)])),_0x3fdd7(0x2,_0x349f19[_0x145278(0x424)]),_0x3fdd7(0x3,_0x349f19[_0x145278(0x1e7)]),_0x3fdd7(0x4,_0x54555c['ISnapshotServerService'])],_0x3b531e[_0x145278(0x504)]);const _0x2b22ea=_0x145278(0x1b7);function _0x133330(_0x4bfcb9){const _0x41a2a9=_0x145278;return JSON[_0x41a2a9(0x140)](_0x4bfcb9)['length'];}class _0x2e3386{constructor(){const _0x241623=_0x145278;_0xbb867(this,'_commentUpdate$',new _0x1e13bb[(_0x241623(0x410))]()),_0xbb867(this,_0x241623(0x20a),this[_0x241623(0x52f)][_0x241623(0x4de)]());}[_0x145278(0x53d)](_0x122a24){const _0x847c6b=_0x145278;this['_commentUpdate$'][_0x847c6b(0x155)](_0x122a24);}}var _0x453131=Object['defineProperty'],_0x24ce22=Object[_0x145278(0x16d)],_0x251851=(_0x2bfb60,_0x2dc492,_0x38ae50,_0x1db61e)=>{const _0x4da4e6=_0x145278;for(var _0x191ce6=_0x1db61e>0x1?void 0x0:_0x1db61e?_0x24ce22(_0x2dc492,_0x38ae50):_0x2dc492,_0x4e8e15=_0x2bfb60[_0x4da4e6(0x37e)]-0x1,_0x39272b;_0x4e8e15>=0x0;_0x4e8e15--)(_0x39272b=_0x2bfb60[_0x4e8e15])&&(_0x191ce6=(_0x1db61e?_0x39272b(_0x2dc492,_0x38ae50,_0x191ce6):_0x39272b(_0x191ce6))||_0x191ce6);return _0x1db61e&&_0x191ce6&&_0x453131(_0x2dc492,_0x38ae50,_0x191ce6),_0x191ce6;},_0x483359=(_0x102db1,_0xd28de2)=>(_0x4dd48a,_0x4e2f4f)=>_0xd28de2(_0x4dd48a,_0x4e2f4f,_0x102db1);let _0x5a9e0d=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x56f9b8,_0x1f3f67){const _0x2f783e=_0x145278;super(),_0xbb867(this,'_roomMembers',new Map()),(this[_0x2f783e(0x31f)]=_0x56f9b8,this['_userManagerService']=_0x1f3f67,this['disposeWithMe'](_0x349f19[_0x2f783e(0x534)](_0x1e13bb[_0x2f783e(0x1a2)](this[_0x2f783e(0x31f)]['getTypeOfUnitDisposed$'](_0x349f19['UniverInstanceType'][_0x2f783e(0x431)])[_0x2f783e(0x3f1)](_0x501e2e[_0x2f783e(0x15d)](_0x4df15d=>_0x4df15d[_0x2f783e(0x453)]())),this[_0x2f783e(0x31f)][_0x2f783e(0x1a1)](_0x349f19['UniverInstanceType'][_0x2f783e(0x22e)])[_0x2f783e(0x3f1)](_0x501e2e[_0x2f783e(0x15d)](_0x2b24bb=>_0x2b24bb[_0x2f783e(0x453)]())),this[_0x2f783e(0x31f)][_0x2f783e(0x1a1)](_0x349f19[_0x2f783e(0x426)][_0x2f783e(0x54b)])['pipe'](_0x501e2e['map'](_0x10a50d=>_0x10a50d[_0x2f783e(0x453)]())))[_0x2f783e(0x38f)](_0x10efac=>this['_removeRoom'](_0x10efac)))));}[_0x145278(0x401)](_0x546010){const _0x21981c=_0x145278;this[_0x21981c(0x405)][_0x21981c(0x401)](_0x546010);}[_0x145278(0x48e)](){const _0x3681bb=_0x145278;return this['_userManagerService'][_0x3681bb(0x48e)]();}[_0x145278(0x153)](_0x3fc0bc,_0x19378e){const _0x135983=_0x145278;let _0x1ec390=this[_0x135983(0x350)]['get'](_0x3fc0bc);_0x1ec390||(_0x1ec390=new _0x5abffb(),this[_0x135983(0x350)][_0x135983(0x253)](_0x3fc0bc,_0x1ec390)),_0x1ec390[_0x135983(0x153)](_0x19378e);}[_0x145278(0x186)](_0x20ff3d,_0x3545f4){const _0x718686=_0x145278,_0x555c3c=this['_roomMembers']['get'](_0x20ff3d);_0x555c3c&&_0x555c3c[_0x718686(0x186)](_0x3545f4);}[_0x145278(0x203)](_0x26746f){return this['_roomMembers']['get'](_0x26746f);}[_0x145278(0x26a)](_0x3a55cc,_0x4f0554){const _0x218425=_0x145278,_0x23e9e3=this[_0x218425(0x350)]['get'](_0x3a55cc);if(_0x23e9e3)return _0x23e9e3[_0x218425(0x26a)](_0x4f0554);}['_removeRoom'](_0x92996e){const _0x49abc2=_0x145278,_0x2e0352=this['_roomMembers'][_0x49abc2(0x4b6)](_0x92996e);_0x2e0352&&(_0x2e0352[_0x49abc2(0x4c1)](),this[_0x49abc2(0x350)][_0x49abc2(0x4f4)](_0x92996e));}[_0x145278(0x4c1)](){const _0x3ce94a=_0x145278;this[_0x3ce94a(0x350)][_0x3ce94a(0x256)](_0xf8a9da=>_0xf8a9da[_0x3ce94a(0x4c1)]()),this[_0x3ce94a(0x350)][_0x3ce94a(0x19f)]();}};_0x5a9e0d=_0x251851([_0x483359(0x0,_0x349f19[_0x145278(0x501)]),_0x483359(0x1,_0x349f19['Inject'](_0x349f19[_0x145278(0x159)]))],_0x5a9e0d);class _0x5abffb extends _0x349f19[_0x145278(0x1a4)]{constructor(){super(...arguments),_0xbb867(this,'_members',new Map());}[_0x145278(0x4c1)](){const _0x101c74=_0x145278;this[_0x101c74(0x522)][_0x101c74(0x19f)]();}[_0x145278(0x153)](_0x54b93b){const _0x3f9d09=_0x145278;this[_0x3f9d09(0x522)][_0x3f9d09(0x253)](_0x54b93b[_0x3f9d09(0x3df)],_0x54b93b);}['removeMember'](_0x544b8d){const _0x10af5c=_0x145278;this[_0x10af5c(0x522)][_0x10af5c(0x4f4)](_0x544b8d);}[_0x145278(0x26a)](_0x510643){const _0x2e8fe3=_0x145278;return this['_members'][_0x2e8fe3(0x4b6)](_0x510643);}}var _0x3fec54=Object['defineProperty'],_0x1be9d7=Object[_0x145278(0x16d)],_0x5f3a7e=(_0x6a2f6d,_0x227b7d,_0x26a31a,_0x58c7f3)=>{for(var _0x5b697d=_0x58c7f3>0x1?void 0x0:_0x58c7f3?_0x1be9d7(_0x227b7d,_0x26a31a):_0x227b7d,_0x9ad0ab=_0x6a2f6d['length']-0x1,_0x53f3aa;_0x9ad0ab>=0x0;_0x9ad0ab--)(_0x53f3aa=_0x6a2f6d[_0x9ad0ab])&&(_0x5b697d=(_0x58c7f3?_0x53f3aa(_0x227b7d,_0x26a31a,_0x5b697d):_0x53f3aa(_0x5b697d))||_0x5b697d);return _0x58c7f3&&_0x5b697d&&_0x3fec54(_0x227b7d,_0x26a31a,_0x5b697d),_0x5b697d;},_0x568ee8=(_0x5d4674,_0x366d22)=>(_0x46f923,_0x35ca7f)=>_0x366d22(_0x46f923,_0x35ca7f,_0x5d4674),_0x3ee00b=(_0x289fcb=>(_0x289fcb[_0x289fcb[_0x145278(0x145)]=0x0]=_0x145278(0x145),_0x289fcb[_0x289fcb[_0x145278(0x148)]=0x1]=_0x145278(0x148),_0x289fcb[_0x289fcb[_0x145278(0x14d)]=0x2]='OFFLINE',_0x289fcb[_0x289fcb['ONLINE']=0x3]=_0x145278(0x4a3),_0x289fcb))(_0x3ee00b||{});_0x3b531e[_0x145278(0x1b4)]=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x3482f0,_0xfcee20,_0x138105,_0x8735a,_0x10384a,_0x40516b,_0x5a14f1,_0x2afcf9,_0x3b7758,_0x438174){const _0x3ab47b=_0x145278;super(),_0xbb867(this,_0x3ab47b(0x25c),new _0x1e13bb[(_0x3ab47b(0x40f))](0x0)),_0xbb867(this,_0x3ab47b(0x1ad),this[_0x3ab47b(0x25c)][_0x3ab47b(0x4de)]()),_0xbb867(this,_0x3ab47b(0x114),new _0x1e13bb[(_0x3ab47b(0x410))]()),_0xbb867(this,_0x3ab47b(0x403),this[_0x3ab47b(0x114)]['asObservable']()),_0xbb867(this,_0x3ab47b(0x514)),_0xbb867(this,'_socketMessageSubscription'),_0xbb867(this,_0x3ab47b(0x340)),_0xbb867(this,_0x3ab47b(0x37d),!0x1),_0xbb867(this,_0x3ab47b(0x223),null),(this[_0x3ab47b(0x3fa)]=_0x3482f0,this[_0x3ab47b(0x385)]=_0x138105,this[_0x3ab47b(0x33e)]=_0x8735a,this['_messageService']=_0x10384a,this['_configService']=_0x40516b,this['_localeService']=_0x5a14f1,this[_0x3ab47b(0x474)]=_0x2afcf9,this['_commentService']=_0x3b7758,this[_0x3ab47b(0x1c4)]=_0x438174,this[_0x3ab47b(0x37d)]=!!this[_0x3ab47b(0x1c4)],_0xfcee20[_0x3ab47b(0x3f1)](_0x1e13bb[_0x3ab47b(0x1bc)](this[_0x3ab47b(0x115)]))[_0x3ab47b(0x38f)](_0x345557=>{const _0x486da0=_0x3ab47b;var _0x50ae2c;typeof _0x345557>'u'||(this['_socket']=_0x345557,_0x345557?(this['_joinRoom'](_0x345557),this[_0x486da0(0x135)]=_0x345557[_0x486da0(0x1c5)]['subscribe'](_0x51acd4=>{const _0x4343a6=_0x486da0;_0x51acd4[_0x4343a6(0x11d)]===this[_0x4343a6(0x3fa)]&&this[_0x4343a6(0x320)](_0x51acd4);})):(this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x486da0(0x155)](0x2),(_0x50ae2c=this[_0x486da0(0x135)])==null||_0x50ae2c['unsubscribe'](),this['_socketMessageSubscription']=null));}),this[_0x3ab47b(0x1e3)](this[_0x3ab47b(0x33e)][_0x3ab47b(0x157)](()=>{const _0x42dc49=_0x3ab47b;var _0x3c758e;(_0x3c758e=this[_0x42dc49(0x514)])==null||_0x3c758e['send']({'cmd':_0x3263b5[_0x42dc49(0x34c)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x5ae2b9=_0x145278;return this[_0x5ae2b9(0x25c)][_0x5ae2b9(0x46a)]();}[_0x145278(0x315)](){const _0x36ad52=_0x145278;var _0x1e9924,_0x23b36e;return(_0x23b36e=(_0x1e9924=this[_0x36ad52(0x514)])==null?void 0x0:_0x1e9924[_0x36ad52(0x3df)])!=null?_0x23b36e:null;}['dispose'](){const _0xfeb256=_0x145278;super['dispose'](),this[_0xfeb256(0x115)]['next'](),this[_0xfeb256(0x115)][_0xfeb256(0x2f9)]();}['close'](){const _0x4b0fb1=_0x145278;var _0x5afe17,_0x2951cf;this[_0x4b0fb1(0x31c)](),(_0x5afe17=this['_socket'])==null||_0x5afe17[_0x4b0fb1(0x3e7)]({'cmd':_0x3263b5['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x2951cf=this['_socket'])==null||_0x2951cf['close'](),this[_0x4b0fb1(0x114)][_0x4b0fb1(0x2f9)](),this[_0x4b0fb1(0x25c)]['complete'](),this[_0x4b0fb1(0x4c1)]();}[_0x145278(0x320)](_0x5c5699){const _0xe7e033=_0x145278;_0x5c5699[_0xe7e033(0x2c4)]===_0x3263b5[_0xe7e033(0x152)]?this['_onJoinRoomEvent'](_0x5c5699):_0x5c5699['cmd']===_0x3263b5[_0xe7e033(0x397)]&&this[_0xe7e033(0x28f)](_0x5c5699);}[_0x145278(0x4cf)](_0x425be3){const _0x254737=_0x145278;this[_0x254737(0x25c)][_0x254737(0x155)](0x1),_0x425be3[_0x254737(0x3e7)]({'cmd':_0x3263b5[_0x254737(0x152)],'routeKey':this[_0x254737(0x3fa)],'routeType':'','data':{'rooms':[{'roomID':this[_0x254737(0x3fa)]}]}});}[_0x145278(0x123)](_0x377318){const _0x38ef48=_0x145278;var _0x3bdc2e;if(_0x377318[_0x38ef48(0x12f)]===_0xfa24[_0x38ef48(0x32c)]){this[_0x38ef48(0x2a1)][_0x38ef48(0x303)]({'type':_0x806671['MessageType'][_0x38ef48(0x344)],'content':this[_0x38ef48(0x207)]['t'](_0x38ef48(0x476))}),this[_0x38ef48(0x25c)][_0x38ef48(0x155)](0x2);return;}this[_0x38ef48(0x25c)][_0x38ef48(0x155)](0x3);const _0x4d745e=(_0x3bdc2e=_0x377318[_0x38ef48(0x2d2)]['roomInfos'][this[_0x38ef48(0x3fa)]])==null?void 0x0:_0x3bdc2e[_0x38ef48(0x1f7)];_0x4d745e&&_0x4d745e['forEach'](_0x1b63f2=>this['_memberService'][_0x38ef48(0x153)](this['_unitID'],_0x1b63f2));}[_0x145278(0x28f)](_0x18eff9){const _0x2739f2=_0x145278;try{const _0x324a33=_0x18eff9[_0x2739f2(0x2d2)];switch(_0x324a33[_0x2739f2(0x1c0)]){case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x2e4)]:this[_0x2739f2(0x1d0)](_0x324a33),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c['CollaborationEvent']['USERS_LEAVE']:this['_onUserLeave'](_0x324a33),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x49a)]:case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x23f)]:this[_0x2739f2(0x54d)](),this[_0x2739f2(0x206)](),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x480)]:this['_logService'][_0x2739f2(0x4aa)](_0x2739f2(0x4b5)+JSON[_0x2739f2(0x140)](_0x324a33)),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;case _0x54555c[_0x2739f2(0x547)][_0x2739f2(0x274)]:this['_commentService'][_0x2739f2(0x53d)](_0x324a33[_0x2739f2(0x2d2)]),this[_0x2739f2(0x114)][_0x2739f2(0x155)](_0x324a33);break;default:this['_event$'][_0x2739f2(0x155)](_0x324a33);}}catch(_0x9ca1bf){this[_0x2739f2(0x385)][_0x2739f2(0x4aa)](_0x9ca1bf,_0x18eff9);}}[_0x145278(0x1d0)](_0x49a0b4){const _0x3f1393=_0x145278;this[_0x3f1393(0x474)][_0x3f1393(0x153)](this['_unitID'],_0x49a0b4['data']);}[_0x145278(0x248)](_0x5637df){const _0x576021=_0x145278;this[_0x576021(0x474)]['removeMember'](this['_unitID'],_0x5637df['data'][_0x576021(0x3df)]);}async[_0x145278(0x3e7)](_0x4000be,_0x343494){const _0x4dfc8a=_0x145278;if(this[_0x4dfc8a(0x292)]!==0x3||!this[_0x4dfc8a(0x514)])throw new Error(_0x4dfc8a(0x392));try{_0x4000be[_0x4dfc8a(0x1c0)]===_0x54555c[_0x4dfc8a(0x547)][_0x4dfc8a(0x1a6)]&&(this[_0x4dfc8a(0x247)](),this[_0x4dfc8a(0x4d1)](_0x4000be)),this[_0x4dfc8a(0x514)][_0x4dfc8a(0x3e7)]({'cmd':_0x3263b5[_0x4dfc8a(0x280)],'routeKey':_0x343494,'routeType':'','data':_0x4000be});}catch(_0x350b63){this['_logService'][_0x4dfc8a(0x4aa)](_0x350b63);}}['_scheduleCollaborationTimeoutTimer'](){const _0x34f5e5=_0x145278;var _0x438c0c;this['_collaborationTimeoutTimer']=window[_0x34f5e5(0x3ca)](()=>{const _0x57fd1c=_0x34f5e5;this['_collaborationTimeoutTimer']=null,this[_0x57fd1c(0x2a1)]['show']({'type':_0x806671[_0x57fd1c(0x116)]['Error'],'content':this[_0x57fd1c(0x207)]['t'](_0x57fd1c(0x2ea))});},(_0x438c0c=this[_0x34f5e5(0x28d)][_0x34f5e5(0x46f)](_0x566bf8))!=null?_0x438c0c:0x4e20);}[_0x145278(0x206)](){const _0x59cde7=_0x145278;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x59cde7(0x340)]),this[_0x59cde7(0x340)]=null);}[_0x145278(0x4d1)](_0x2c3c36){const _0x7ee197=_0x145278;if(!this[_0x7ee197(0x37d)])return;const {data:_0x2a3215}=_0x2c3c36,{unitID:_0x6fb602,changeset:_0x1d6d56}=_0x2a3215,{mutations:_0x14356e,type:_0x2e40f1}=_0x1d6d56;this[_0x7ee197(0x223)]={'unitId':_0x6fb602,'type':_0x2e40f1,'startTime':performance[_0x7ee197(0x12d)](),'stopTime':0x0,'duration':0x0,'size':_0x133330(_0x14356e)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x5246f4=_0x145278;if(this[_0x5246f4(0x37d)]){if(!this[_0x5246f4(0x223)]){this['_logService'][_0x5246f4(0x4aa)](_0x5246f4(0x242),_0x5246f4(0x4c2));return;}this[_0x5246f4(0x223)][_0x5246f4(0x1f3)]=performance[_0x5246f4(0x12d)](),this[_0x5246f4(0x223)][_0x5246f4(0x2bb)]=this[_0x5246f4(0x223)][_0x5246f4(0x1f3)]-this[_0x5246f4(0x223)][_0x5246f4(0x243)],this[_0x5246f4(0x1c4)][_0x5246f4(0x117)](_0x2b22ea,this[_0x5246f4(0x223)]),this['_telemetryInfo']=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x27efed=_0x145278;this[_0x27efed(0x223)]=null;}},_0x3b531e[_0x145278(0x1b4)]=_0x5f3a7e([_0x568ee8(0x2,_0x349f19['ILogService']),_0x568ee8(0x3,_0x5b624f['IBeforeCloseService']),_0x568ee8(0x4,_0x5b624f[_0x145278(0x434)]),_0x568ee8(0x5,_0x349f19[_0x145278(0x424)]),_0x568ee8(0x6,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x267)])),_0x568ee8(0x7,_0x349f19[_0x145278(0x413)](_0x5a9e0d)),_0x568ee8(0x8,_0x349f19[_0x145278(0x413)](_0x2e3386)),_0x568ee8(0x9,_0x349f19['Optional'](_0x4eb556['ITelemetryService']))],_0x3b531e[_0x145278(0x1b4)]);var _0x8cc827=Object[_0x145278(0x507)],_0x313800=Object[_0x145278(0x16d)],_0x180884=(_0xab2e13,_0x3fb0a3,_0x1e3b2e,_0x38af98)=>{const _0xb4d841=_0x145278;for(var _0x7ee18e=_0x38af98>0x1?void 0x0:_0x38af98?_0x313800(_0x3fb0a3,_0x1e3b2e):_0x3fb0a3,_0x3d1f61=_0xab2e13[_0xb4d841(0x37e)]-0x1,_0x33f5a9;_0x3d1f61>=0x0;_0x3d1f61--)(_0x33f5a9=_0xab2e13[_0x3d1f61])&&(_0x7ee18e=(_0x38af98?_0x33f5a9(_0x3fb0a3,_0x1e3b2e,_0x7ee18e):_0x33f5a9(_0x7ee18e))||_0x7ee18e);return _0x38af98&&_0x7ee18e&&_0x8cc827(_0x3fb0a3,_0x1e3b2e,_0x7ee18e),_0x7ee18e;},_0x2d27b3=(_0x49b9b0,_0x369f80)=>(_0x3f35ac,_0x1a9e4d)=>_0x369f80(_0x3f35ac,_0x1a9e4d,_0x49b9b0);_0x3b531e[_0x145278(0x21f)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x4e39af,_0x21161e,_0xd81a45,_0xbd31a1,_0xff45dc,_0xfacfdf){const _0x400804=_0x145278;super(),_0xbb867(this,_0x400804(0x54f),new _0x1e13bb[(_0x400804(0x40f))](void 0x0)),_0xbb867(this,'socket$',this['_socket$'][_0x400804(0x4de)]()),_0xbb867(this,_0x400804(0x1c1),null),_0xbb867(this,'_sessions',new Map()),_0xbb867(this,_0x400804(0x15f),new _0x1e13bb[(_0x400804(0x40f))](_0x3ee00b['IDLE'])),_0xbb867(this,_0x400804(0x4fd),this['_status$'][_0x400804(0x4de)]()),_0xbb867(this,'_socketReady',!0x1),_0xbb867(this,_0x400804(0x229)),_0xbb867(this,'_retryCount',0x0),_0xbb867(this,_0x400804(0x231)),_0xbb867(this,_0x400804(0x266)),(this[_0x400804(0x22d)]=_0x4e39af,this[_0x400804(0x207)]=_0x21161e,this[_0x400804(0x2a1)]=_0xd81a45,this[_0x400804(0x385)]=_0xbd31a1,this[_0x400804(0x28d)]=_0xff45dc,this['_socketService']=_0xfacfdf,this[_0x400804(0x156)]());}get['_socket'](){const _0x252e69=_0x145278;return this[_0x252e69(0x54f)][_0x252e69(0x46a)]();}[_0x145278(0x156)](){const _0x48a753=_0x145278;this[_0x48a753(0x1d1)](),this[_0x48a753(0x23e)]();}[_0x145278(0x4c1)](){const _0x27068d=_0x145278;super[_0x27068d(0x4c1)](),this[_0x27068d(0x2e1)][_0x27068d(0x256)](_0x990d2d=>_0x990d2d[_0x27068d(0x4c1)]()),this[_0x27068d(0x2e1)]['clear'](),this[_0x27068d(0x15f)][_0x27068d(0x2f9)]();}async[_0x145278(0x4ab)](_0x44a59a){const _0x2514b5=_0x145278;if(this[_0x2514b5(0x2e1)][_0x2514b5(0x2e6)](_0x44a59a))return this[_0x2514b5(0x2e1)][_0x2514b5(0x4b6)](_0x44a59a);this[_0x2514b5(0x482)]();const _0x4611a8=this[_0x2514b5(0x22d)][_0x2514b5(0x556)](_0x3b531e[_0x2514b5(0x1b4)],_0x44a59a,this['_socket$'][_0x2514b5(0x4de)]());return this['_sessions'][_0x2514b5(0x253)](_0x44a59a,_0x4611a8),_0x4611a8;}[_0x145278(0x1da)](_0x4d7ebc){const _0x42d5b0=_0x145278;var _0x400573;const _0x5a265b=this['_sessions'][_0x42d5b0(0x4b6)](_0x4d7ebc);_0x5a265b&&(this[_0x42d5b0(0x2e1)][_0x42d5b0(0x4f4)](_0x4d7ebc),_0x5a265b[_0x42d5b0(0x37f)]()),this[_0x42d5b0(0x2e1)][_0x42d5b0(0x35e)]||(_0x400573=this[_0x42d5b0(0x514)])==null||_0x400573[_0x42d5b0(0x37f)]();}[_0x145278(0x4b4)](){const _0x6346b=_0x145278;this['_retryCount']=0x0,this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x6346b(0x229)]),this[_0x6346b(0x229)]=null),this[_0x6346b(0x371)]();}['_createSocket'](){const _0x16a12b=_0x145278;var _0x2fbac4,_0x3b4a0a;const _0x4fe39d=this['_configService'][_0x16a12b(0x46f)](_0x5c110b),_0x1c58d2=this[_0x16a12b(0x28d)][_0x16a12b(0x46f)](_0x4ea523),_0x3ea88d=(_0x3b4a0a=(_0x2fbac4=_0x1c58d2==null?void 0x0:_0x1c58d2[_0x16a12b(0x477)])!=null?_0x2fbac4:_0x4fe39d)!=null?_0x3b4a0a:_0x3bd2f7,_0x946e11=this[_0x16a12b(0x3e2)][_0x16a12b(0x217)](_0x3ea88d);return this[_0x16a12b(0x1c1)]=_0x946e11,_0x946e11;}[_0x145278(0x482)](){const _0x5dc312=_0x145278;var _0x404d7b,_0x1e6512;try{const _0x1849c6=(_0x1e6512=(_0x404d7b=this[_0x5dc312(0x514)])!=null?_0x404d7b:this[_0x5dc312(0x1c1)])!=null?_0x1e6512:this[_0x5dc312(0x37a)]();if(_0x1849c6){const _0x559367=_0x1849c6['send'];_0x1849c6['send']=_0x34c31d=>(this[_0x5dc312(0x3ed)](),_0x559367['apply'](_0x1849c6,[_0x34c31d])),_0x1849c6['message$'][_0x5dc312(0x38f)](_0x4e8da6=>this[_0x5dc312(0x27c)](_0x1849c6,_0x4e8da6)),_0x1849c6[_0x5dc312(0x53c)][_0x5dc312(0x3f1)](_0x501e2e[_0x5dc312(0x348)](0x1))['subscribe'](_0x5666e2=>this[_0x5dc312(0x385)]['error'](_0x5dc312(0x359),_0x5666e2)),_0x1849c6[_0x5dc312(0x1fe)][_0x5dc312(0x3f1)](_0x501e2e[_0x5dc312(0x348)](0x1))['subscribe'](()=>{const _0x4ceab9=_0x5dc312;this[_0x4ceab9(0x1d4)](_0x1849c6);}),_0x1849c6[_0x5dc312(0x462)][_0x5dc312(0x3f1)](_0x501e2e[_0x5dc312(0x348)](0x1))[_0x5dc312(0x38f)](_0x499bba=>{const _0xed5d=_0x5dc312;this['_logService']['debug'](_0xed5d(0x1d8),_0xed5d(0x4bf),_0x499bba),this[_0xed5d(0x175)]();});}}catch(_0xbe35f1){this[_0x5dc312(0x385)][_0x5dc312(0x4aa)](_0xbe35f1),this[_0x5dc312(0x175)]();}}['_onConnectionOpen'](_0x5d85f1){const _0x3f7489=_0x145278;this[_0x3f7489(0x385)][_0x3f7489(0x3e3)](_0x3f7489(0x1d8),'socket\x20open.'),_0x5d85f1[_0x3f7489(0x3e7)]({'cmd':_0x3263b5[_0x3f7489(0x524)]}),this[_0x3f7489(0x3ed)]();}['_listenToOfflineEvent'](){const _0x29ccb0=_0x145278;window['addEventListener'](_0x29ccb0(0x422),()=>this[_0x29ccb0(0x2c2)]());}[_0x145278(0x2c2)](){const _0x4fd5ee=_0x145278;this[_0x4fd5ee(0x26e)]=!0x1,this[_0x4fd5ee(0x1c1)]=null,this[_0x4fd5ee(0x15f)][_0x4fd5ee(0x155)](_0x3ee00b[_0x4fd5ee(0x14d)]),this['_socket$'][_0x4fd5ee(0x155)](null),this[_0x4fd5ee(0x1f9)](),this[_0x4fd5ee(0x3b3)]();}[_0x145278(0x175)](){const _0x435c9c=_0x145278;var _0x129b8f;this[_0x435c9c(0x2c2)](),this[_0x435c9c(0x3b5)]<((_0x129b8f=this[_0x435c9c(0x28d)][_0x435c9c(0x46f)](_0xe2277))!=null?_0x129b8f:0x3)?(this[_0x435c9c(0x2a1)][_0x435c9c(0x303)]({'key':_0x435c9c(0x490),'type':_0x806671['MessageType'][_0x435c9c(0x344)],'content':this[_0x435c9c(0x207)]['t'](_0x435c9c(0x314))}),this[_0x435c9c(0x371)]()):this[_0x435c9c(0x2a1)]['show']({'key':'collaboration-session-retry','type':_0x806671[_0x435c9c(0x116)][_0x435c9c(0x455)],'content':this[_0x435c9c(0x207)]['t'](_0x435c9c(0x351))});}[_0x145278(0x23e)](){const _0xb0b799=_0x145278,_0x586446=()=>{const _0x117d21=_0x2aa9;this[_0x117d21(0x514)]||this[_0x117d21(0x4b4)]();},_0x543809=()=>{const _0x326087=_0x2aa9;this[_0x326087(0x514)]||document[_0x326087(0x1ed)]===_0x326087(0x1a7)||this[_0x326087(0x4b4)]();};window['addEventListener'](_0xb0b799(0x4a5),_0x586446),document[_0xb0b799(0x225)](_0xb0b799(0x538),_0x543809);}[_0x145278(0x371)](){const _0x5ca336=_0x145278;var _0x26c7d5;const _0xcaa70a=this[_0x5ca336(0x3b5)],_0x4492c6=this[_0x5ca336(0x28d)][_0x5ca336(0x46f)](_0x4ea523),_0x361da4=_0xcaa70a===0x0?0x0:((_0x26c7d5=_0x4492c6==null?void 0x0:_0x4492c6['retryConnectingInterval'])!=null?_0x26c7d5:0x4e20)*0x2**_0xcaa70a;this['_retryConnectingTimer']=window[_0x5ca336(0x3ca)](()=>{const _0x21068e=_0x5ca336;clearTimeout(this[_0x21068e(0x229)]),this[_0x21068e(0x229)]=null,this[_0x21068e(0x482)]();},_0x361da4),this[_0x5ca336(0x3b5)]+=0x1;}[_0x145278(0x27c)](_0x3d5841,_0x4cf70f){const _0x1aa918=_0x145278,{cmd:_0x9a18a7}=_0x4cf70f;_0x9a18a7===_0x3263b5[_0x1aa918(0x524)]&&!this[_0x1aa918(0x26e)]&&(_0x3d5841[_0x1aa918(0x3df)]=_0x4cf70f[_0x1aa918(0x2d2)][_0x1aa918(0x3df)],this[_0x1aa918(0x54f)][_0x1aa918(0x155)](_0x3d5841),this[_0x1aa918(0x15f)][_0x1aa918(0x155)](_0x3ee00b[_0x1aa918(0x4a3)]),this[_0x1aa918(0x26e)]=!0x0,this[_0x1aa918(0x1c1)]=null),_0x9a18a7===_0x3263b5['HEARTBEAT']&&this[_0x1aa918(0x1f9)](),this['_rescheduleHeartbeat']();}[_0x145278(0x3ed)](){const _0x2fb134=_0x145278;var _0x2fffe6;this[_0x2fb134(0x3b3)](),this[_0x2fb134(0x231)]=window[_0x2fb134(0x3ca)](()=>this[_0x2fb134(0x526)](),(_0x2fffe6=this[_0x2fb134(0x28d)]['getConfig'](_0x2ace82))!=null?_0x2fffe6:0x7530);}[_0x145278(0x526)](){const _0x386a5c=_0x145278;this[_0x386a5c(0x514)][_0x386a5c(0x3e7)]({'cmd':_0x3263b5[_0x386a5c(0x1d9)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0x254bf4=_0x145278;var _0x4e2e66;this[_0x254bf4(0x266)]=window[_0x254bf4(0x3ca)](()=>this[_0x254bf4(0x175)](),(_0x4e2e66=this[_0x254bf4(0x28d)][_0x254bf4(0x46f)](_0x566bf8))!=null?_0x4e2e66:0x4e20);}[_0x145278(0x3b3)](){const _0x1cc64e=_0x145278;this[_0x1cc64e(0x231)]!=null&&(clearTimeout(this[_0x1cc64e(0x231)]),this['_sendHeartbeatTimer']=null);}[_0x145278(0x1f9)](){const _0x14ae3b=_0x145278;this[_0x14ae3b(0x266)]!=null&&(clearTimeout(this[_0x14ae3b(0x266)]),this[_0x14ae3b(0x266)]=null);}},_0x3b531e['CollaborationSessionService']=_0x180884([_0x2d27b3(0x0,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x2d27b3(0x1,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x267)])),_0x2d27b3(0x2,_0x5b624f['IMessageService']),_0x2d27b3(0x3,_0x349f19[_0x145278(0x1e7)]),_0x2d27b3(0x4,_0x349f19[_0x145278(0x424)]),_0x2d27b3(0x5,_0x3f5095)],_0x3b531e['CollaborationSessionService']);for(var _0x4cf013=[],_0x4877c2=0x0;_0x4877c2<0x100;++_0x4877c2)_0x4cf013[_0x145278(0x276)]((_0x4877c2+0x100)[_0x145278(0x2ad)](0x10)['slice'](0x1));function _0x8da4a4(_0x16f348,_0x228993=0x0){const _0x4b639a=_0x145278;return(_0x4cf013[_0x16f348[_0x228993+0x0]]+_0x4cf013[_0x16f348[_0x228993+0x1]]+_0x4cf013[_0x16f348[_0x228993+0x2]]+_0x4cf013[_0x16f348[_0x228993+0x3]]+'-'+_0x4cf013[_0x16f348[_0x228993+0x4]]+_0x4cf013[_0x16f348[_0x228993+0x5]]+'-'+_0x4cf013[_0x16f348[_0x228993+0x6]]+_0x4cf013[_0x16f348[_0x228993+0x7]]+'-'+_0x4cf013[_0x16f348[_0x228993+0x8]]+_0x4cf013[_0x16f348[_0x228993+0x9]]+'-'+_0x4cf013[_0x16f348[_0x228993+0xa]]+_0x4cf013[_0x16f348[_0x228993+0xb]]+_0x4cf013[_0x16f348[_0x228993+0xc]]+_0x4cf013[_0x16f348[_0x228993+0xd]]+_0x4cf013[_0x16f348[_0x228993+0xe]]+_0x4cf013[_0x16f348[_0x228993+0xf]])[_0x4b639a(0x2be)]();}var _0x3bc59b,_0x219f49=new Uint8Array(0x10);function _0x331e03(){const _0x3e20fe=_0x145278;if(!_0x3bc59b&&(_0x3bc59b=typeof crypto<'u'&&crypto[_0x3e20fe(0x4bc)]&&crypto[_0x3e20fe(0x4bc)]['bind'](crypto),!_0x3bc59b))throw new Error(_0x3e20fe(0x184));return _0x3bc59b(_0x219f49);}var _0x48c7bf=typeof crypto<'u'&&crypto[_0x145278(0x1d3)]&&crypto['randomUUID'][_0x145278(0x441)](crypto);const _0x5a8853={'randomUUID':_0x48c7bf};function _0x39e230(_0x31526a,_0x3b15e3,_0xab94bf){const _0x14d334=_0x145278;if(_0x5a8853[_0x14d334(0x1d3)]&&!_0x3b15e3&&!_0x31526a)return _0x5a8853['randomUUID']();_0x31526a=_0x31526a||{};var _0x477817=_0x31526a[_0x14d334(0x45d)]||(_0x31526a[_0x14d334(0x487)]||_0x331e03)();return _0x477817[0x6]=_0x477817[0x6]&0xf|0x40,_0x477817[0x8]=_0x477817[0x8]&0x3f|0x80,_0x8da4a4(_0x477817);}var _0x2a7191=Object[_0x145278(0x507)],_0x104ec6=Object[_0x145278(0x16d)],_0x3732a8=(_0x788cdf,_0x2cea4a,_0x1b1b50,_0x5f4851)=>{const _0x42f9a6=_0x145278;for(var _0x19f5f4=_0x5f4851>0x1?void 0x0:_0x5f4851?_0x104ec6(_0x2cea4a,_0x1b1b50):_0x2cea4a,_0x59fa9f=_0x788cdf[_0x42f9a6(0x37e)]-0x1,_0x546013;_0x59fa9f>=0x0;_0x59fa9f--)(_0x546013=_0x788cdf[_0x59fa9f])&&(_0x19f5f4=(_0x5f4851?_0x546013(_0x2cea4a,_0x1b1b50,_0x19f5f4):_0x546013(_0x19f5f4))||_0x19f5f4);return _0x5f4851&&_0x19f5f4&&_0x2a7191(_0x2cea4a,_0x1b1b50,_0x19f5f4),_0x19f5f4;},_0x222b82=(_0x41deaa,_0x239d87)=>(_0x554f42,_0x2870ab)=>_0x239d87(_0x554f42,_0x2870ab,_0x41deaa);let _0x55e610=class{constructor(_0xf65fd1,_0x512ad8,_0x50817b){const _0x4fe8fa=_0x145278;this[_0x4fe8fa(0x22d)]=_0xf65fd1,this[_0x4fe8fa(0x28a)]=_0x512ad8,this[_0x4fe8fa(0x4d9)]=_0x50817b;}['transformIMECache'](_0x242290){const _0x3ea622=_0x145278;this[_0x3ea622(0x22b)](_0x242290),this['_transformPreviousActiveRange'](_0x242290);}['transformRemoteChangeset'](_0x2abfd9){const _0x58cce9=_0x145278,{unitID:_0x38771b}=_0x2abfd9,_0x283d55=this[_0x58cce9(0x4d9)][_0x58cce9(0x34f)](_0x38771b)[_0x58cce9(0x44f)](_0x3c060b[_0x58cce9(0x505)]),{redoCache:_0x2186b3}=_0x283d55[_0x58cce9(0x2a6)]();if(_0x2186b3[_0x58cce9(0x37e)]===0x0)return _0x2abfd9;let _0x264eb1=_0x349f19[_0x58cce9(0x4b1)]['deepClone'](_0x2abfd9['mutations'][0x0]);for(let _0x346c62=0x0;_0x346c62<_0x2186b3[_0x58cce9(0x37e)];_0x346c62++){const _0x232658={'id':'doc.mutation.rich-text-editing','params':{..._0x2186b3[_0x346c62]}},_0x36fc86=this[_0x58cce9(0x28a)][_0x58cce9(0x179)](_0x264eb1,_0x232658,!0x1);if(_0x54555c[_0x58cce9(0x291)](_0x36fc86))throw _0x36fc86[_0x58cce9(0x4aa)];_0x264eb1=_0x36fc86['m1Prime'];}return{..._0x349f19[_0x58cce9(0x4b1)][_0x58cce9(0x2bd)](_0x2abfd9),'mutations':[_0x264eb1]};}['_transformUndoRedoStack'](_0x26501a){const _0x21d401=_0x145278,{unitID:_0xbdc127}=_0x26501a,_0x1cfed1=this[_0x21d401(0x4d9)][_0x21d401(0x34f)](_0xbdc127)[_0x21d401(0x44f)](_0x3c060b['DocIMEInputManagerService']),{undoCache:_0x1acafe,redoCache:_0x67a3bc}=_0x1cfed1[_0x21d401(0x2a6)]();if(_0x1acafe['length']===0x0||_0x67a3bc[_0x21d401(0x37e)]===0x0)return;const _0x439892=[],_0x628b4c=[];let _0x445e9c=_0x349f19['Tools'][_0x21d401(0x2bd)](_0x26501a[_0x21d401(0x4ad)][0x0]),_0x304409=_0x349f19[_0x21d401(0x4b1)][_0x21d401(0x2bd)](_0x26501a[_0x21d401(0x4ad)][0x0]);for(let _0x106381=_0x1acafe[_0x21d401(0x37e)]-0x1;_0x106381>=0x0;_0x106381--){const _0x5cedc4={'id':_0x21d401(0x4cd),'params':{..._0x1acafe[_0x106381]}},_0x264929={'id':_0x21d401(0x4cd),'params':{..._0x67a3bc[_0x106381]}},_0x356c36=this[_0x21d401(0x28a)]['transformMutation'](_0x445e9c,_0x5cedc4,!0x1),_0x3610ac=this[_0x21d401(0x28a)][_0x21d401(0x179)](_0x304409,_0x264929,!0x1);if(_0x54555c[_0x21d401(0x291)](_0x356c36))throw _0x356c36[_0x21d401(0x4aa)];if(_0x54555c[_0x21d401(0x291)](_0x3610ac))throw _0x3610ac[_0x21d401(0x4aa)];_0x439892[_0x21d401(0x284)](_0x356c36[_0x21d401(0x2a5)][_0x21d401(0x23d)]),_0x628b4c[_0x21d401(0x284)](_0x3610ac['m2Prime'][_0x21d401(0x23d)]),_0x445e9c=_0x356c36[_0x21d401(0x47b)],_0x304409=_0x3610ac[_0x21d401(0x47b)];}_0x1cfed1[_0x21d401(0x519)]({'undoCache':_0x439892,'redoCache':_0x628b4c});}[_0x145278(0x43f)](_0x4ea950){const _0x93ba2f=_0x145278,{unitID:_0x5a30ec}=_0x4ea950,_0x25ccff=this[_0x93ba2f(0x4d9)]['getRenderById'](_0x5a30ec)[_0x93ba2f(0x44f)](_0x3c060b[_0x93ba2f(0x505)]),_0x33d334=_0x25ccff[_0x93ba2f(0x367)]();if(_0x33d334==null)return;const _0x1f7d4f=[{'id':_0x93ba2f(0x4cd),'params':{'unitId':_0x4ea950[_0x93ba2f(0x240)],'actions':null,'textRanges':[_0x33d334]}}],_0x337111=this[_0x93ba2f(0x28a)][_0x93ba2f(0x21c)](_0x4ea950,_0x1f7d4f);if(!_0x54555c['isTransformMutationsWithChangesetSuccess'](_0x337111))throw _0x337111[_0x93ba2f(0x4aa)];const _0x4d3ad1=_0x337111[_0x93ba2f(0x2a5)][0x0][_0x93ba2f(0x23d)][_0x93ba2f(0x433)];Array[_0x93ba2f(0x1c9)](_0x4d3ad1)&&_0x4d3ad1[_0x93ba2f(0x37e)]&&_0x25ccff[_0x93ba2f(0x2ab)](_0x4d3ad1[0x0]);}};_0x55e610=_0x3732a8([_0x222b82(0x0,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x222b82(0x1,_0x54555c[_0x145278(0x42a)]),_0x222b82(0x2,_0x577b7e[_0x145278(0x1d7)])],_0x55e610);var _0x5e0afe=Object[_0x145278(0x507)],_0x5a79f7=Object[_0x145278(0x16d)],_0x40860e=(_0x2d96dc,_0x3cdc78,_0x19cf13,_0x22619f)=>{const _0x11cd0f=_0x145278;for(var _0x37d5d0=_0x22619f>0x1?void 0x0:_0x22619f?_0x5a79f7(_0x3cdc78,_0x19cf13):_0x3cdc78,_0x1a7e42=_0x2d96dc[_0x11cd0f(0x37e)]-0x1,_0x35f3bb;_0x1a7e42>=0x0;_0x1a7e42--)(_0x35f3bb=_0x2d96dc[_0x1a7e42])&&(_0x37d5d0=(_0x22619f?_0x35f3bb(_0x3cdc78,_0x19cf13,_0x37d5d0):_0x35f3bb(_0x37d5d0))||_0x37d5d0);return _0x22619f&&_0x37d5d0&&_0x5e0afe(_0x3cdc78,_0x19cf13,_0x37d5d0),_0x37d5d0;},_0x853901=(_0x3b6694,_0x31696e)=>(_0x23d617,_0x394e98)=>_0x31696e(_0x23d617,_0x394e98,_0x3b6694);_0x3b531e[_0x145278(0x30a)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x2321d5,_0x28ede,_0xecf2a1,_0x4310cb,_0x3afe9d){const _0x424bc5=_0x145278;super(),_0xbb867(this,_0x424bc5(0x382),new Map()),_0xbb867(this,_0x424bc5(0x27b),new Map()),_0xbb867(this,_0x424bc5(0x360),!0x1),(this['_configService']=_0x2321d5,this[_0x424bc5(0x3bb)]=_0x28ede,this[_0x424bc5(0x33e)]=_0xecf2a1,this[_0x424bc5(0x207)]=_0x4310cb,this[_0x424bc5(0x2b4)]=_0x3afe9d,this[_0x424bc5(0x4e0)]());}[_0x145278(0x3d8)](){this['_disabled']=!0x0;}[_0x145278(0x2b3)](){const _0x113f57=_0x145278;this[_0x113f57(0x360)]=!0x1;}['dispose'](){const _0x55ec96=_0x145278;this[_0x55ec96(0x16e)]()[_0x55ec96(0x210)](()=>super[_0x55ec96(0x4c1)]());}async['loadOfflineData'](_0x39aef6){const _0x1d8e94=_0x145278;return this['_disabled']?null:this['_localStorageService'][_0x1d8e94(0x322)](_0x2a4167(_0x39aef6));}async[_0x145278(0x31a)](_0x534c34,_0x7a2b09){const _0x2eba2b=_0x145278;return!!this['_localStorageService'][_0x2eba2b(0x13b)](_0x534c34,_0x7a2b09);}[_0x145278(0x13e)](_0x594d4b,_0x7bf9f2,_0xfea98c,_0x1e254c){const _0x1d3822=_0x145278,_0x25a9a5=this[_0x1d3822(0x2b4)][_0x1d3822(0x213)](_0x594d4b);this[_0x1d3822(0x382)][_0x1d3822(0x253)](_0x594d4b,{'unitID':_0x594d4b,'type':_0x7bf9f2,'awaitingChangeset':_0xfea98c,'mutations':_0x1e254c,'rev':_0x25a9a5}),this[_0x1d3822(0x27b)][_0x1d3822(0x2e6)](_0x594d4b)||this['_scheduleSaving'](_0x594d4b);}[_0x145278(0x2fc)](_0x3215f4){const _0x44d4ae=_0x145278,_0x51cfea=this['_getSaveTimeout']();_0x51cfea===0x0?this[_0x44d4ae(0x3a8)](_0x3215f4):this[_0x44d4ae(0x27b)]['set'](_0x3215f4,setTimeout(()=>this[_0x44d4ae(0x3a8)](_0x3215f4),_0x51cfea));}[_0x145278(0x470)](){const _0x76b2d2=_0x145278;var _0x2b3547;return(_0x2b3547=this[_0x76b2d2(0x28d)][_0x76b2d2(0x46f)](_0x255e8f))!=null?_0x2b3547:0x3e8;}['_saveCache'](_0x42b6eb){const _0x557b65=_0x145278,_0x52045d=this[_0x557b65(0x27b)][_0x557b65(0x4b6)](_0x42b6eb);return _0x52045d!==void 0x0&&window[_0x557b65(0x372)](_0x52045d),this['_localStorageService'][_0x557b65(0x13b)](_0x2a4167(_0x42b6eb),this[_0x557b65(0x382)]['get'](_0x42b6eb))['then'](()=>this[_0x557b65(0x27b)][_0x557b65(0x4f4)](_0x42b6eb));}async[_0x145278(0x16e)](){const _0x44157a=_0x145278,_0x16b5f9=[];this[_0x44157a(0x27b)][_0x44157a(0x256)]((_0x16db9d,_0x17ae91)=>{const _0x4673aa=_0x44157a;window[_0x4673aa(0x372)](_0x16db9d),_0x16b5f9[_0x4673aa(0x276)](this['_saveCache'](_0x17ae91)[_0x4673aa(0x210)](()=>{const _0x26969c=_0x4673aa;this[_0x26969c(0x27b)][_0x26969c(0x4f4)](_0x17ae91);}));}),await Promise[_0x44157a(0x2a7)](_0x16b5f9);}[_0x145278(0x4e0)](){const _0x456725=_0x145278;this[_0x456725(0x1e3)](this[_0x456725(0x33e)][_0x456725(0x536)](()=>{const _0x242903=_0x456725;if(this['_saveTaskMap'][_0x242903(0x35e)])return this[_0x242903(0x207)]['t'](_0x242903(0x21d));}));}},_0x3b531e[_0x145278(0x30a)]=_0x40860e([_0x853901(0x0,_0x349f19[_0x145278(0x424)]),_0x853901(0x1,_0x349f19['ILocalStorageService']),_0x853901(0x2,_0x5b624f[_0x145278(0x212)]),_0x853901(0x3,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x267)])),_0x853901(0x4,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)]))],_0x3b531e['LocalCacheService']);function _0x2a4167(_0x5660f1){const _0x2ef951=_0x145278;return _0x2ef951(0x447)+_0x5660f1;}var _0x3fb17f=Object[_0x145278(0x507)],_0x4b3a69=Object['getOwnPropertyDescriptor'],_0x210694=(_0x5499bd,_0x40b2bb,_0x5e311f,_0x40c27a)=>{const _0x57f345=_0x145278;for(var _0x49b597=_0x40c27a>0x1?void 0x0:_0x40c27a?_0x4b3a69(_0x40b2bb,_0x5e311f):_0x40b2bb,_0x203e13=_0x5499bd[_0x57f345(0x37e)]-0x1,_0x3b6873;_0x203e13>=0x0;_0x203e13--)(_0x3b6873=_0x5499bd[_0x203e13])&&(_0x49b597=(_0x40c27a?_0x3b6873(_0x40b2bb,_0x5e311f,_0x49b597):_0x3b6873(_0x49b597))||_0x49b597);return _0x40c27a&&_0x49b597&&_0x3fb17f(_0x40b2bb,_0x5e311f,_0x49b597),_0x49b597;},_0x105e4c=(_0x447d3d,_0x413833)=>(_0x2810f6,_0x4c14ac)=>_0x413833(_0x2810f6,_0x4c14ac,_0x447d3d);function _0x106a04(_0x1f88ba){const _0x2f9cd4=_0x145278,{unitID:_0x4abb2a,mutations:_0x1a1345}=_0x1f88ba;return{'unitId':_0x4abb2a,'subUnitId':_0x1a1345[0x0]['params'][_0x2f9cd4(0x1f1)]};}let _0x370f64=class{constructor(_0x584465,_0x5ec658,_0x2e3cf3){const _0x37bbfd=_0x145278;this[_0x37bbfd(0x22d)]=_0x584465,this[_0x37bbfd(0x28a)]=_0x5ec658,this[_0x37bbfd(0x33c)]=_0x2e3cf3;}[_0x145278(0x3cb)](_0x3f8e4b){const _0x5161e4=_0x145278;var _0x4fa5a2,_0x9a947b,_0x38dcd6,_0x41b4cb;const _0x350361=this[_0x5161e4(0x22d)][_0x5161e4(0x4b6)](_0x4c7a32[_0x5161e4(0x40c)]),{unitId:_0x1569f3,subUnitId:_0x56cc87}=_0x106a04(_0x3f8e4b),_0x1e51a1=_0x350361['getWorkbookSelections'](_0x1569f3)[_0x5161e4(0x478)](),_0x5dbef9=(_0x9a947b=(_0x4fa5a2=this['_instanceService'][_0x5161e4(0x1db)](_0x1569f3))==null?void 0x0:_0x4fa5a2[_0x5161e4(0x1b2)]())==null?void 0x0:_0x9a947b[_0x5161e4(0x3f2)]();if(_0x1e51a1[_0x5161e4(0x37e)]===0x0||!_0x1569f3||!_0x56cc87)return;const _0x1a362a=[{'id':_0x4c7a32[_0x5161e4(0x41c)]['id'],'params':{'unitId':_0x1569f3,'subUnitId':_0x5dbef9,'selections':_0x349f19[_0x5161e4(0x4b1)][_0x5161e4(0x2bd)](_0x1e51a1)}}],_0x1c6b05=this[_0x5161e4(0x28a)][_0x5161e4(0x21c)](_0x3f8e4b,_0x1a362a);if(!_0x54555c[_0x5161e4(0x170)](_0x1c6b05))throw _0x1c6b05[_0x5161e4(0x4aa)];const _0x1bfb9b=(_0x41b4cb=(_0x38dcd6=_0x1c6b05[_0x5161e4(0x2a5)][0x0])==null?void 0x0:_0x38dcd6[_0x5161e4(0x23d)])==null?void 0x0:_0x41b4cb[_0x5161e4(0x15a)];if(Array[_0x5161e4(0x1c9)](_0x1bfb9b)&&_0x1bfb9b[_0x5161e4(0x37e)]){if(_0x1bfb9b[_0x5161e4(0x37e)]===_0x1a362a[0x0][_0x5161e4(0x23d)][_0x5161e4(0x15a)][_0x5161e4(0x37e)]&&_0x1bfb9b[_0x5161e4(0x19c)]((_0xf5072b,_0x47359e)=>_0x349f19[_0x5161e4(0x277)]['equals'](_0xf5072b[_0x5161e4(0x301)],_0x1a362a[0x0][_0x5161e4(0x23d)][_0x5161e4(0x15a)][_0x47359e]['range'])))return;this['_injector'][_0x5161e4(0x4b6)](_0x349f19[_0x5161e4(0x36e)])[_0x5161e4(0x3e9)](_0x4c7a32['SetSelectionsOperation']['id'],{'unitId':_0x1569f3,'subUnitId':_0x5dbef9,'selections':_0x1bfb9b});}}};_0x370f64=_0x210694([_0x105e4c(0x0,_0x349f19['Inject'](_0x349f19[_0x145278(0x3b7)])),_0x105e4c(0x1,_0x54555c[_0x145278(0x42a)]),_0x105e4c(0x2,_0x349f19[_0x145278(0x501)])],_0x370f64);const _0x2d00f5=_0x349f19[_0x145278(0x29f)](_0x145278(0x473));var _0x16b139=(_0x115a5e=>(_0x115a5e[_0x115a5e[_0x145278(0x3ae)]=0x0]=_0x145278(0x3ae),_0x115a5e[_0x115a5e['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x115a5e))(_0x16b139||{});const _0x3156be=0x7530,_0x13d682='ACTIVE_UNIT_EVENT_CHANNEL';class _0x467f1c extends _0x349f19['Disposable']{constructor(){const _0x3a74cb=_0x145278;super(),_0xbb867(this,_0x3a74cb(0x335),_0x349f19[_0x3a74cb(0x4b1)][_0x3a74cb(0x4d7)]()),_0xbb867(this,_0x3a74cb(0x49f),new Set()),_0xbb867(this,_0x3a74cb(0x329),new Map()),_0xbb867(this,_0x3a74cb(0x4c7),null),_0xbb867(this,'_clearOtherTimers',new Map()),_0xbb867(this,'_unitStatus',new Map()),this['_init']();}['dispose'](){const _0x17003d=_0x145278;super[_0x17003d(0x4c1)](),this[_0x17003d(0x440)][_0x17003d(0x256)]((_0xc2df35,_0x3cc49c)=>this[_0x17003d(0x20c)](_0x3cc49c)),this[_0x17003d(0x4c7)]&&window[_0x17003d(0x406)](this[_0x17003d(0x4c7)]);}[_0x145278(0x415)](_0x24d639){const _0x1084e5=_0x145278;return this['_ensureSubject'](_0x24d639)[_0x1084e5(0x3f1)](_0x1e13bb[_0x1084e5(0x18f)]());}['editingUnit'](_0x545c70){const _0x13cf7e=_0x145278;this[_0x13cf7e(0x49f)][_0x13cf7e(0x35e)]===0x0&&this[_0x13cf7e(0x4fc)](),this[_0x13cf7e(0x49f)][_0x13cf7e(0x4f3)](_0x545c70),this['_send']({'type':0x0,'memberID':this[_0x13cf7e(0x335)],'unitIDs':[_0x545c70],'isForwarded':!0x1});}[_0x145278(0x4bb)](_0x1ec25c){const _0x357928=_0x145278;this['_selfUnitIDs'][_0x357928(0x4f4)](_0x1ec25c),this[_0x357928(0x49f)][_0x357928(0x35e)]===0x0&&this['_heartbeatTimer']&&window[_0x357928(0x406)](this[_0x357928(0x4c7)]);}['_init'](){const _0x3c7284=_0x145278;this[_0x3c7284(0x1e3)](_0x349f19[_0x3c7284(0x534)](_0x1e13bb[_0x3c7284(0x2d6)](window,_0x3c7284(0x533))[_0x3c7284(0x38f)](_0x3cada4=>{const _0x3f09e2=_0x3c7284;if(_0x3cada4[_0x3f09e2(0x36d)]!==_0x13d682||!_0x3cada4[_0x3f09e2(0x3b6)])return;const _0x4f03b9=JSON[_0x3f09e2(0x2e7)](_0x3cada4['newValue']);this['_handleEvent'](_0x4f03b9);}))),window[_0x3c7284(0x225)](_0x3c7284(0x428),()=>this[_0x3c7284(0x218)]({'type':0x1,'memberID':this[_0x3c7284(0x335)],'unitIDs':Array[_0x3c7284(0x496)](this[_0x3c7284(0x49f)])}));}[_0x145278(0x19a)](_0x3c5dfe){const _0xf8dcc5=_0x145278;switch(_0x3c5dfe[_0xf8dcc5(0x389)]){case 0x0:this[_0xf8dcc5(0x3dc)](_0x3c5dfe);break;case 0x1:this[_0xf8dcc5(0x295)](_0x3c5dfe);break;case 0x2:this[_0xf8dcc5(0x11c)](_0x3c5dfe);break;}}[_0x145278(0x3dc)](_0x393f67){const _0x122e23=_0x145278,{unitIDs:_0x18da02,memberID:_0x243e09,isForwarded:_0x1f57f1}=_0x393f67;_0x18da02['forEach'](_0x4a2bc2=>{const _0x4c6ffb=_0x2aa9;if(!_0x1f57f1&&this[_0x4c6ffb(0x329)][_0x4c6ffb(0x2e6)](_0x4a2bc2)&&this['_ensureSubject'](_0x4a2bc2)[_0x4c6ffb(0x155)](0x1),!this['_unitOnClients'][_0x4c6ffb(0x2e6)](_0x4a2bc2)||!this[_0x4c6ffb(0x329)][_0x4c6ffb(0x4b6)](_0x4a2bc2)['has'](_0x243e09)){const _0x154c86=this[_0x4c6ffb(0x329)]['get'](_0x4a2bc2)||new Set();_0x154c86[_0x4c6ffb(0x4f3)](_0x243e09),this['_unitOnClients'][_0x4c6ffb(0x253)](_0x4a2bc2,_0x154c86),this[_0x4c6ffb(0x1cc)](_0x243e09);}}),_0x1f57f1||this['_send']({'type':0x0,'memberID':this[_0x122e23(0x335)],'unitIDs':[...this[_0x122e23(0x49f)]],'isForwarded':!0x0});}[_0x145278(0x1cc)](_0x8df3b2){const _0xc0c8d2=_0x145278;this[_0xc0c8d2(0x20c)](_0x8df3b2);const _0x1f2173=window[_0xc0c8d2(0x3ca)](()=>{const _0x13bb65=_0xc0c8d2;this[_0x13bb65(0x329)][_0x13bb65(0x256)](_0x4c027f=>{_0x4c027f['delete'](_0x8df3b2);});},_0x3156be*0x2);this[_0xc0c8d2(0x440)][_0xc0c8d2(0x253)](_0x8df3b2,_0x1f2173);}[_0x145278(0x20c)](_0x3442b7){const _0x35ebce=_0x145278;if(this[_0x35ebce(0x440)][_0x35ebce(0x2e6)](_0x3442b7)){const _0x5f08c1=this['_clearOtherTimers']['get'](_0x3442b7);_0x5f08c1&&window[_0x35ebce(0x372)](_0x5f08c1),this[_0x35ebce(0x440)][_0x35ebce(0x253)](_0x3442b7,null);}}[_0x145278(0x295)](_0x290c2a){const {memberID:_0x466080,unitIDs:_0x42c939}=_0x290c2a;_0x42c939['forEach'](_0x23ee9a=>{const _0x4dcd2c=_0x2aa9;var _0x3d8423;const _0xfb1e82=this[_0x4dcd2c(0x329)][_0x4dcd2c(0x4b6)](_0x23ee9a);_0xfb1e82&&(_0xfb1e82[_0x4dcd2c(0x4f4)](_0x466080),(_0x3d8423=this[_0x4dcd2c(0x32a)](_0x23ee9a))==null||_0x3d8423[_0x4dcd2c(0x155)](_0xfb1e82[_0x4dcd2c(0x35e)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x466080);}[_0x145278(0x11c)](_0x4ea6ee){const _0x4ee697=_0x145278;this[_0x4ee697(0x1cc)](_0x4ea6ee[_0x4ee697(0x3df)]);}[_0x145278(0x218)](_0x16efd5){const _0x8c148e=_0x145278;localStorage['setItem'](_0x13d682,JSON[_0x8c148e(0x140)](_0x16efd5));}[_0x145278(0x4fc)](){const _0x48452f=_0x145278;this['_heartbeatTimer']=window[_0x48452f(0x4a2)](()=>{const _0x493eb8=_0x48452f;this[_0x493eb8(0x218)]({'type':0x2,'memberID':this['_id']});},_0x3156be);}[_0x145278(0x32a)](_0x36bcf9){const _0x2e764d=_0x145278;return this[_0x2e764d(0x35d)][_0x2e764d(0x2e6)](_0x36bcf9)||this[_0x2e764d(0x35d)][_0x2e764d(0x253)](_0x36bcf9,new _0x1e13bb[(_0x2e764d(0x40f))](0x0)),this[_0x2e764d(0x35d)]['get'](_0x36bcf9);}}function _0x5d4f5d(_0x3bbd55){const _0x2095e0=_0x145278;let _0x4a2b74='';for(const _0x18e599 of _0x3bbd55){const {startOffset:_0x40c1c7,endOffset:_0x2042ce,isActive:_0x1db992}=_0x18e599;_0x4a2b74[_0x2095e0(0x37e)]&&(_0x4a2b74+=','),_0x4a2b74+=_0x40c1c7+':'+_0x2042ce+':'+(_0x1db992?'1':'0');}return _0x4a2b74;}function _0x19266e(_0x11d940){const _0x447be6=_0x145278,_0x29ae45=_0x11d940[_0x447be6(0x326)](','),_0xcce63c=[];for(const _0x1b54d3 of _0x29ae45){const [_0x3c9efb,_0x468556,_0x329ba2]=_0x1b54d3[_0x447be6(0x326)](':');_0xcce63c[_0x447be6(0x276)]({'startOffset':Number(_0x3c9efb),'endOffset':Number(_0x468556),'collapsed':_0x3c9efb===_0x468556,'isActive':_0x329ba2==='1'});}return _0xcce63c[_0x447be6(0x2e8)](_0x391a7c=>_0x391a7c[_0x447be6(0x442)])||(_0xcce63c[0x0][_0x447be6(0x442)]=!0x0),_0xcce63c;}class _0x2f089c extends _0x349f19[_0x145278(0x4e9)]{constructor(){const _0x59b7ca=_0x145278;super(...arguments),_0xbb867(this,_0x59b7ca(0x2c8),new _0x1e13bb[(_0x59b7ca(0x40f))](null)),_0xbb867(this,_0x59b7ca(0x12e),this['_collabCursorState$'][_0x59b7ca(0x4de)]());}[_0x145278(0x3b1)](_0x4f0e0d){const _0x3b0eec=_0x145278,{unitID:_0x38fedb,memberID:_0x452a3e,textRanges:_0x36a92c}=_0x4f0e0d,_0x5bb70b=_0x5d4f5d(_0x36a92c),_0x1720c2={'unitID':_0x38fedb,'memberID':_0x452a3e,'selection':_0x5bb70b};this[_0x3b0eec(0x2c8)][_0x3b0eec(0x155)](_0x1720c2);}}var _0x1e8293=Object[_0x145278(0x507)],_0x5aae50=Object[_0x145278(0x16d)],_0x106879=(_0x3cce59,_0x3cb8d9,_0x4ad08a,_0x52bf40)=>{const _0x4383bf=_0x145278;for(var _0x162a90=_0x52bf40>0x1?void 0x0:_0x52bf40?_0x5aae50(_0x3cb8d9,_0x4ad08a):_0x3cb8d9,_0x324122=_0x3cce59[_0x4383bf(0x37e)]-0x1,_0x11a08a;_0x324122>=0x0;_0x324122--)(_0x11a08a=_0x3cce59[_0x324122])&&(_0x162a90=(_0x52bf40?_0x11a08a(_0x3cb8d9,_0x4ad08a,_0x162a90):_0x11a08a(_0x162a90))||_0x162a90);return _0x52bf40&&_0x162a90&&_0x1e8293(_0x3cb8d9,_0x4ad08a,_0x162a90),_0x162a90;},_0x313253=(_0x19c083,_0x7d207a)=>(_0x141fae,_0x4d3008)=>_0x7d207a(_0x141fae,_0x4d3008,_0x19c083);let _0x697163=class{constructor(_0x54b4de,_0x498010){const _0x14784f=_0x145278;this[_0x14784f(0x22d)]=_0x54b4de,this['_transformService']=_0x498010;}[_0x145278(0x3cb)](_0x2ef260){const _0x200c5c=_0x145278;var _0x3ea0f1;const _0x22f5c3=this[_0x200c5c(0x22d)][_0x200c5c(0x4b6)](_0x9fa27b[_0x200c5c(0x113)]),_0x127173=(_0x3ea0f1=_0x22f5c3[_0x200c5c(0x545)]())!=null?_0x3ea0f1:[];if(_0x127173[_0x200c5c(0x37e)]===0x0)return;const _0x15abd8=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x2ef260[_0x200c5c(0x240)],'actions':null,'textRanges':_0x127173}}],_0x1217dc=this[_0x200c5c(0x28a)][_0x200c5c(0x21c)](_0x2ef260,_0x15abd8);if(!_0x54555c['isTransformMutationsWithChangesetSuccess'](_0x1217dc))throw _0x1217dc[_0x200c5c(0x4aa)];const _0x5616a1=_0x1217dc['m2Prime'][0x0][_0x200c5c(0x23d)][_0x200c5c(0x433)];Array[_0x200c5c(0x1c9)](_0x5616a1)&&_0x5616a1[_0x200c5c(0x37e)]&&_0x22f5c3[_0x200c5c(0x199)](_0x5616a1,!0x1);}};_0x697163=_0x106879([_0x313253(0x0,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x313253(0x1,_0x54555c[_0x145278(0x42a)])],_0x697163);const _0x2903a9=new Set([_0x4c7a32[_0x145278(0x194)]['id']]);function _0x14304e(_0xa1298e,_0x33369d,_0x2daf61,_0x302bd2,_0x2f5d1a){const _0x2a2978=_0x145278;var _0x157861,_0x529894,_0xaf966c,_0x3055f2;const _0x1ab3ce=[];for(const _0x89a704 of _0xa1298e)if(_0x2903a9[_0x2a2978(0x2e6)](_0x89a704['id'])){if(_0x1ab3ce[_0x2a2978(0x37e)]>0x0)break;_0x1ab3ce[_0x2a2978(0x276)](_0x89a704);break;}else _0x1ab3ce[_0x2a2978(0x276)](_0x89a704);const _0x500d5b=(_0x529894=(_0x157861=_0x2f5d1a['getCurrentUser']())==null?void 0x0:_0x157861['userID'])!=null?_0x529894:'unknown',_0x116fa8=(_0x3055f2=(_0xaf966c=_0x2f5d1a['getCurrentUser']())==null?void 0x0:_0xaf966c[_0x2a2978(0x3df)])!=null?_0x3055f2:_0x2a2978(0x24e);return{'changeset':{'unitID':_0x33369d,'type':_0x54555c[_0x2a2978(0x3fd)](_0x2daf61[_0x2a2978(0x390)](_0x33369d)),'baseRev':_0x302bd2['getCurrentRevOfUnit'](_0x33369d),'revision':0x0,'userID':_0x500d5b,'memberID':_0x116fa8,'mutations':_0x1ab3ce},'pendingMutations':_0xa1298e['slice'](_0x1ab3ce[_0x2a2978(0x37e)])};}function _0x4d526f(_0x5e9051,_0x355dc9,_0x4a3245,_0x19cd34,_0x24ad37){const _0x5bdc4c=_0x145278;var _0x26f8b9,_0x48a7b5,_0x3e4b79,_0x24f58d;const _0x2ccb0c=[_0x5e9051[_0x5bdc4c(0x2b1)]((_0x29c597,_0x31f642)=>{const _0x583e3a=_0x5bdc4c;var _0x4703be;const {id:_0x71f4b}=_0x29c597,{id:_0x54a068,type:_0x4ca947}=_0x31f642,_0x167587=(_0x4703be=_0x29c597['params'])!=null?_0x4703be:{'actions':null},_0x4fe847=_0x31f642[_0x583e3a(0x23d)];if(_0x71f4b&&_0x71f4b!==_0x54a068)throw new Error(_0x583e3a(0x14f)+_0x71f4b+_0x583e3a(0x2fd)+_0x54a068+'.');return{..._0x29c597,'id':_0x54a068,'type':_0x4ca947,'params':{'unitId':_0x4fe847[_0x583e3a(0x126)],'textRanges':_0x4fe847[_0x583e3a(0x433)],'actions':_0x349f19[_0x583e3a(0x193)]['compose'](_0x167587[_0x583e3a(0x141)],_0x4fe847['actions'])}};},{})],_0xc39c04=(_0x48a7b5=(_0x26f8b9=_0x24ad37[_0x5bdc4c(0x48e)]())==null?void 0x0:_0x26f8b9['userID'])!=null?_0x48a7b5:_0x5bdc4c(0x24e),_0x561cb6=(_0x24f58d=(_0x3e4b79=_0x24ad37['getCurrentUser']())==null?void 0x0:_0x3e4b79[_0x5bdc4c(0x3df)])!=null?_0x24f58d:'unknown';return{'changeset':{'unitID':_0x355dc9,'type':_0x54555c['mapDocumentTypeToUniverType'](_0x4a3245[_0x5bdc4c(0x390)](_0x355dc9)),'baseRev':_0x19cd34[_0x5bdc4c(0x213)](_0x355dc9),'revision':0x0,'userID':_0xc39c04,'memberID':_0x561cb6,'mutations':_0x2ccb0c},'pendingMutations':[]};}function _0x2f5db9(_0x1b7df1,_0x31985e){const _0x2a133c=_0x145278,_0x74e368=new _0x1e13bb[(_0x2a133c(0x444))](0x1);return setTimeout(()=>_0x74e368[_0x2a133c(0x155)](_0x31985e),_0x1b7df1),_0x74e368[_0x2a133c(0x4de)]()[_0x2a133c(0x3f1)](_0x1e13bb[_0x2a133c(0x348)](0x1));}const _0x49c07c={'id':_0x4c7a32[_0x145278(0x3ba)]['id'],'type':_0x349f19[_0x145278(0x39f)][_0x145278(0x192)],'params':{}};var _0x13fbe8=Object['defineProperty'],_0x159c16=Object[_0x145278(0x16d)],_0x283e20=(_0x2920ad,_0x150d26,_0x1318a5,_0x15e1eb)=>{const _0x4c56d0=_0x145278;for(var _0x5158db=_0x15e1eb>0x1?void 0x0:_0x15e1eb?_0x159c16(_0x150d26,_0x1318a5):_0x150d26,_0x55ccef=_0x2920ad[_0x4c56d0(0x37e)]-0x1,_0x1d3d9a;_0x55ccef>=0x0;_0x55ccef--)(_0x1d3d9a=_0x2920ad[_0x55ccef])&&(_0x5158db=(_0x15e1eb?_0x1d3d9a(_0x150d26,_0x1318a5,_0x5158db):_0x1d3d9a(_0x5158db))||_0x5158db);return _0x15e1eb&&_0x5158db&&_0x13fbe8(_0x150d26,_0x1318a5,_0x5158db),_0x5158db;},_0x255450=(_0x212916,_0x15187f)=>(_0x717ddc,_0x5edf76)=>_0x15187f(_0x717ddc,_0x5edf76,_0x212916),_0xfe35ac=(_0x41cf1f=>(_0x41cf1f['NOT_COLLAB']=_0x145278(0x11f),_0x41cf1f[_0x145278(0x376)]=_0x145278(0x466),_0x41cf1f[_0x145278(0x430)]=_0x145278(0x53b),_0x41cf1f['AWAITING']='awaiting',_0x41cf1f['AWAITING_WITH_PENDING']=_0x145278(0x46d),_0x41cf1f[_0x145278(0x449)]=_0x145278(0x4ae),_0x41cf1f[_0x145278(0x31b)]=_0x145278(0x250),_0x41cf1f[_0x145278(0x14d)]=_0x145278(0x422),_0x41cf1f))(_0xfe35ac||{});const _0x238bd9=0xea60;class _0x5c8f4a{constructor(_0x2b20cd,_0x194553,_0x34eecf,_0x541a9d,_0x5272a6,_0x5f3fdc,_0x49d888,_0x5e7cfc,_0x9c339d){const _0x4e9f5f=_0x145278;_0xbb867(this,_0x4e9f5f(0x4ce),null),_0xbb867(this,_0x4e9f5f(0x3c8),[]),(this[_0x4e9f5f(0x240)]=_0x2b20cd,this[_0x4e9f5f(0x389)]=_0x194553,this[_0x4e9f5f(0x24b)]=_0x5272a6,this[_0x4e9f5f(0x375)]=_0x5f3fdc,this[_0x4e9f5f(0x2fe)]=_0x49d888,this['_revisionService']=_0x5e7cfc,this[_0x4e9f5f(0x3fb)]=_0x9c339d,this['_awaitingChangeset']=_0x34eecf,this[_0x4e9f5f(0x3c8)]=_0x541a9d);}[_0x145278(0x53e)](_0x5dda70){const _0x26664e=_0x145278,_0x378406=this[_0x26664e(0x2b4)][_0x26664e(0x213)](this[_0x26664e(0x240)]);return _0x5dda70[_0x26664e(0x3f6)]>_0x378406+0x1?(this[_0x26664e(0x24b)]['onMissingChangesets']({'from':_0x378406,'to':_0x5dda70[_0x26664e(0x3f6)]-0x1}),!0x0):!0x1;}[_0x145278(0x2dd)](_0x38711a){const _0x30e780=_0x145278;this[_0x30e780(0x2fe)][_0x30e780(0x3d7)](this[_0x30e780(0x240)],_0x38711a);}[_0x145278(0x38d)](_0x299845){var _0x2f60a1,_0x187623;(_0x187623=(_0x2f60a1=this['_handler'])['onTransformSelections'])==null||_0x187623['call'](_0x2f60a1,_0x299845);}[_0x145278(0x11b)](_0x252ea0){const _0x2f337e=_0x145278;var _0x2cacac,_0x22e0bb;return(_0x22e0bb=(_0x2cacac=this[_0x2f337e(0x24b)])['onTransformIME'])==null?void 0x0:_0x22e0bb[_0x2f337e(0x54a)](_0x2cacac,_0x252ea0);}['_transformRemoteChangesetByIMECache'](_0xaa61a5){const _0x50ee76=_0x145278;var _0x3960ee,_0x355bba,_0x56cde4;return(_0x56cde4=(_0x355bba=(_0x3960ee=this['_handler'])[_0x50ee76(0x227)])==null?void 0x0:_0x355bba[_0x50ee76(0x54a)](_0x3960ee,_0xaa61a5))!=null?_0x56cde4:_0xaa61a5;}['_syncEditingCollabCursor'](_0x2a9cc7){const _0x18c2a2=_0x145278;var _0x37540c,_0x491c71;if(this[_0x18c2a2(0x389)]===_0x5b5eaf[_0x18c2a2(0x22e)]){const {unitID:_0x22b37c,mutations:_0x28dca7,memberID:_0x1cf846}=_0x2a9cc7,_0x59b97d=_0x28dca7[0x0][_0x18c2a2(0x23d)][_0x18c2a2(0x433)];Array[_0x18c2a2(0x1c9)](_0x59b97d)&&_0x59b97d['length']>0x0&&((_0x491c71=(_0x37540c=this['_handler'])[_0x18c2a2(0x13d)])==null||_0x491c71['call'](_0x37540c,{'unitID':_0x22b37c,'memberID':_0x1cf846,'textRanges':_0x59b97d}));}}['_updateLocalCache'](){const _0x5115a1=_0x145278;this[_0x5115a1(0x3fb)][_0x5115a1(0x13e)](this[_0x5115a1(0x240)],this['type'],this['_awaitingChangeset'],this[_0x5115a1(0x3c8)]);}[_0x145278(0x3c9)](){const _0x3f9935=_0x145278;return this[_0x3f9935(0x2b4)][_0x3f9935(0x213)](this['unitID']);}[_0x145278(0x45e)](){const _0x2e3468=_0x145278;this['_revisionService'][_0x2e3468(0x166)](this[_0x2e3468(0x240)]);}[_0x145278(0x541)](_0x891395){const _0x3400e1=_0x145278;var _0x32b8f0;const _0x416e41=this[_0x3400e1(0x354)](_0x891395),_0x3a479c=_0x349f19[_0x3400e1(0x3f9)](_0x416e41['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x3a479c['result'])throw _0x3a479c[_0x3400e1(0x4aa)]instanceof Error?_0x3a479c[_0x3400e1(0x4aa)]:new Error((_0x32b8f0=_0x3a479c['error'])!=null?_0x32b8f0:'[CollaborationState]:\x20apply\x20error!');this[_0x3400e1(0x11b)](_0x416e41),this['_transformUndoredo'](_0x891395),this[_0x3400e1(0x38d)](_0x416e41),this['_syncEditingCollabCursor'](_0x416e41),this[_0x3400e1(0x45e)]();}}let _0x11f110=class extends _0x5c8f4a{constructor(_0x5d5f7f,_0x195213,_0x4e9257,_0x2b2b86,_0x151213,_0x2acf45,_0x385eee,_0x593100,_0x70bc0f,_0x3ade63){const _0x3f2c7f=_0x145278;super(_0x5d5f7f,_0x195213,null,[],_0x4e9257,_0x593100,_0x385eee,_0x2b2b86,_0x151213),_0xbb867(this,_0x3f2c7f(0x465),_0x3f2c7f(0x466)),(this[_0x3f2c7f(0x22d)]=_0x2acf45,this['_logService']=_0x70bc0f,this['_transformService']=_0x3ade63);}[_0x145278(0x52a)](_0xc83051){const _0x5208eb=_0x145278,_0x26027a=this[_0x5208eb(0x22d)][_0x5208eb(0x556)](_0xf500fc,this[_0x5208eb(0x240)],this[_0x5208eb(0x389)],[_0xc83051],this[_0x5208eb(0x24b)]);return _0x26027a['_schedule'](),_0x26027a[_0x5208eb(0x3f7)](),_0x26027a;}[_0x145278(0x279)](_0x31baf7){const _0x1c7082=_0x145278;if(this[_0x1c7082(0x53e)](_0x31baf7))return this[_0x1c7082(0x22d)][_0x1c7082(0x556)](_0x26d3fa,this[_0x1c7082(0x240)],this[_0x1c7082(0x389)],null,[],null,[_0x31baf7],this[_0x1c7082(0x24b)]);try{const _0x5170e8=this[_0x1c7082(0x28a)][_0x1c7082(0x21c)](_0x31baf7,[_0x49c07c]);if(_0x54555c[_0x1c7082(0x170)](_0x5170e8)){const {c1Prime:_0x2179e8}=_0x5170e8;return this[_0x1c7082(0x541)](_0x2179e8),this;}throw _0x5170e8[_0x1c7082(0x4aa)];}catch(_0x4d96f3){return this[_0x1c7082(0x385)][_0x1c7082(0x4aa)](_0x4d96f3),this[_0x1c7082(0x493)](!0x1);}}[_0x145278(0x493)](_0x19414a){const _0x979ad6=_0x145278;return this[_0x979ad6(0x22d)][_0x979ad6(0x556)](_0x10b287,this[_0x979ad6(0x240)],this[_0x979ad6(0x389)],null,[],this[_0x979ad6(0x24b)],_0x19414a);}[_0x145278(0x488)](){throw new Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x145278(0x494)](){const _0x470d52=_0x145278;throw new Error(_0x470d52(0x2c6));}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){const _0x22b14d=_0x145278;return this[_0x22b14d(0x22d)]['createInstance'](_0x216080,this[_0x22b14d(0x240)],this[_0x22b14d(0x389)],null,[],this[_0x22b14d(0x24b)]);}['toggleOnline'](){return this;}['resend'](){const _0x1dcd0b=_0x145278;throw new Error(_0x1dcd0b(0x2c7));}[_0x145278(0x200)](){const _0x4a47ce=_0x145278,_0x51a85a=this[_0x4a47ce(0x2b4)][_0x4a47ce(0x213)](this[_0x4a47ce(0x240)]);return this[_0x4a47ce(0x24b)][_0x4a47ce(0x30e)]({'from':_0x51a85a,'to':0x0}),this[_0x4a47ce(0x22d)][_0x4a47ce(0x556)](_0x26d3fa,this[_0x4a47ce(0x240)],this[_0x4a47ce(0x389)],null,[],null,[],this['_handler']);}};_0x11f110=_0x283e20([_0x255450(0x3,_0x349f19[_0x145278(0x413)](_0x54555c['RevisionService'])),_0x255450(0x4,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x6,_0x349f19[_0x145278(0x2a4)]),_0x255450(0x7,_0x349f19['ICommandService']),_0x255450(0x8,_0x349f19[_0x145278(0x1e7)]),_0x255450(0x9,_0x54555c[_0x145278(0x42a)])],_0x11f110);let _0xf500fc=class extends _0x5c8f4a{constructor(_0x5e1bc9,_0x978d,_0x59b38c,_0x676ffd,_0x873a45,_0x30c260,_0x346e3c,_0x1a4260,_0x465b8f,_0x27d5cf,_0x47ebf6,_0xe9fec2,_0x325f03,_0x2635a2){const _0x365207=_0x145278;super(_0x5e1bc9,_0x978d,null,_0x59b38c,_0x676ffd,_0x27d5cf,_0x2635a2,_0x30c260,_0x346e3c),_0xbb867(this,_0x365207(0x465),_0x365207(0x53b)),_0xbb867(this,'_scheduleTimestamp',null),_0xbb867(this,_0x365207(0x4ea),null),(this[_0x365207(0x22d)]=_0x873a45,this[_0x365207(0x474)]=_0x1a4260,this[_0x365207(0x385)]=_0x465b8f,this[_0x365207(0x28d)]=_0x47ebf6,this[_0x365207(0x28a)]=_0xe9fec2,this[_0x365207(0x31f)]=_0x325f03);}[_0x145278(0x52a)](_0x255d6d){const _0xa3ad74=_0x145278;return this['_pendingMutations'][_0xa3ad74(0x276)](_0x255d6d),this['_updateLocalCache'](),this;}[_0x145278(0x279)](_0x1fe7b4){const _0x44b744=_0x145278;if(this['_checkMissing'](_0x1fe7b4))return this[_0x44b744(0x4a4)](),this['_injector'][_0x44b744(0x556)](_0x26d3fa,this[_0x44b744(0x240)],this[_0x44b744(0x389)],null,this[_0x44b744(0x3c8)],null,[_0x1fe7b4],this['_handler']);try{const _0x59c8e5=this[_0x44b744(0x28a)][_0x44b744(0x21c)](_0x1fe7b4,this[_0x44b744(0x3c8)]);if(_0x54555c[_0x44b744(0x170)](_0x59c8e5)){const {c1Prime:_0x213ac7,m2Prime:_0x39769f}=_0x59c8e5;this[_0x44b744(0x541)](_0x213ac7);const _0x439065=this[_0x44b744(0x22d)][_0x44b744(0x556)](_0xf500fc,this[_0x44b744(0x240)],this[_0x44b744(0x389)],_0x39769f,this[_0x44b744(0x24b)]);return this[_0x44b744(0x4a4)](),_0x439065[_0x44b744(0x174)](this[_0x44b744(0x3a5)]?Math['max'](0x0,new Date()[_0x44b744(0x352)]()-this[_0x44b744(0x3a5)]):this[_0x44b744(0x34e)]()),_0x439065;}throw _0x59c8e5[_0x44b744(0x4aa)];}catch(_0x15c7f0){return this['_logService']['error'](_0x15c7f0),this[_0x44b744(0x493)](!0x1);}}[_0x145278(0x488)](){const _0x2242af=_0x145278;throw new Error(_0x2242af(0x364));}[_0x145278(0x494)](){const _0x4c0fd9=_0x145278;throw new Error(_0x4c0fd9(0x4e6));}['onRemoteRetry'](){return this;}[_0x145278(0x423)](){const _0x7f45ff=_0x145278;return this[_0x7f45ff(0x4a4)](),this['_injector'][_0x7f45ff(0x556)](_0x216080,this[_0x7f45ff(0x240)],this[_0x7f45ff(0x389)],null,this[_0x7f45ff(0x3c8)],this[_0x7f45ff(0x24b)]);}[_0x145278(0x39b)](){return this;}[_0x145278(0x174)](_0x8f78b8){const _0x583475=_0x145278,_0x24c6f4=_0x8f78b8!=null?_0x8f78b8:this[_0x583475(0x34e)]();this['_scheduleTimestamp']=new Date()[_0x583475(0x352)](),this['_sendingTimer']=window['setTimeout'](()=>{const _0x1467ca=_0x583475;this[_0x1467ca(0x4a4)]();let _0x346ff4=null;switch(this[_0x1467ca(0x389)]){case _0x5b5eaf[_0x1467ca(0x431)]:{_0x346ff4=_0x14304e(this[_0x1467ca(0x3c8)],this['unitID'],this[_0x1467ca(0x31f)],this[_0x1467ca(0x2b4)],this['_memberService']);break;}case _0x5b5eaf[_0x1467ca(0x22e)]:{this[_0x1467ca(0x3c8)][_0x1467ca(0x19c)](_0x3e48e8=>_0x3e48e8['id']===_0x9fa27b[_0x1467ca(0x50b)]['id'])?_0x346ff4=_0x4d526f(this[_0x1467ca(0x3c8)],this[_0x1467ca(0x240)],this[_0x1467ca(0x31f)],this[_0x1467ca(0x2b4)],this[_0x1467ca(0x474)]):_0x346ff4=_0x14304e(this[_0x1467ca(0x3c8)],this[_0x1467ca(0x240)],this[_0x1467ca(0x31f)],this[_0x1467ca(0x2b4)],this[_0x1467ca(0x474)]);break;}default:throw new Error(_0x1467ca(0x456)+this[_0x1467ca(0x389)]+_0x1467ca(0x294));}const {changeset:_0x2c1bfa,pendingMutations:_0x32e7a5}=_0x346ff4;this[_0x1467ca(0x24b)]['onSendChangeset'](_0x2c1bfa);const _0x5b09ea=_0x32e7a5[_0x1467ca(0x37e)]?this[_0x1467ca(0x22d)][_0x1467ca(0x556)](_0x4101e6,this['unitID'],this[_0x1467ca(0x389)],_0x2c1bfa,_0x32e7a5,this[_0x1467ca(0x24b)],void 0x0):this[_0x1467ca(0x22d)][_0x1467ca(0x556)](_0x238e5e,this[_0x1467ca(0x240)],this['type'],_0x2c1bfa,this[_0x1467ca(0x24b)]);_0x5b09ea[_0x1467ca(0x3f7)](),this[_0x1467ca(0x24b)][_0x1467ca(0x24a)](this,_0x5b09ea);},_0x24c6f4);}['_getSendChangesetTimeout'](){const _0x48bc4b=_0x145278;var _0x52585a;const _0x363260=this[_0x48bc4b(0x28d)][_0x48bc4b(0x46f)](_0x4ea523);return(_0x52585a=_0x363260==null?void 0x0:_0x363260[_0x48bc4b(0x2b0)])!=null?_0x52585a:0x7d0;}[_0x145278(0x2ba)](){const _0x4e1e18=_0x145278;throw new Error(_0x4e1e18(0x1a0));}[_0x145278(0x4a4)](){const _0x1a7af1=_0x145278;this[_0x1a7af1(0x4ea)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1a7af1(0x4ea)]=null);}[_0x145278(0x493)](_0xfa850e){const _0x3ab847=_0x145278;return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x10b287,this[_0x3ab847(0x240)],this[_0x3ab847(0x389)],null,this[_0x3ab847(0x3c8)],this['_handler'],_0xfa850e);}};_0xf500fc=_0x283e20([_0x255450(0x4,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x255450(0x6,_0x349f19['Inject'](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x7,_0x349f19['Inject'](_0x5a9e0d)),_0x255450(0x8,_0x349f19['ILogService']),_0x255450(0x9,_0x349f19['ICommandService']),_0x255450(0xa,_0x349f19[_0x145278(0x424)]),_0x255450(0xb,_0x54555c[_0x145278(0x42a)]),_0x255450(0xc,_0x349f19[_0x145278(0x501)]),_0x255450(0xd,_0x349f19[_0x145278(0x2a4)])],_0xf500fc);let _0x238e5e=class extends _0x5c8f4a{constructor(_0x48ce4f,_0x5b8288,_0x47b1f0,_0x44e3f7,_0x8757be,_0xfded47,_0x2e404e,_0x387e26,_0x844c42,_0x180470,_0x4ac2d5){const _0x3b16ae=_0x145278;super(_0x48ce4f,_0x5b8288,_0x47b1f0,[],_0x44e3f7,_0x387e26,_0x4ac2d5,_0xfded47,_0x2e404e),_0xbb867(this,_0x3b16ae(0x465),'awaiting'),_0xbb867(this,_0x3b16ae(0x221),0x0),_0xbb867(this,_0x3b16ae(0x52c)),_0xbb867(this,'_sender'),(this['_injector']=_0x8757be,this[_0x3b16ae(0x385)]=_0x844c42,this[_0x3b16ae(0x28a)]=_0x180470);}[_0x145278(0x52a)](_0x3c59db){const _0x13b320=_0x145278;this[_0x13b320(0x4a4)]();const _0x286729=this[_0x13b320(0x22d)][_0x13b320(0x556)](_0x4101e6,this[_0x13b320(0x240)],this['type'],this['_awaitingChangeset'],[_0x3c59db],this['_handler'],this[_0x13b320(0x52c)]);return _0x286729[_0x13b320(0x3f7)](),_0x286729;}[_0x145278(0x279)](_0x21d190){const _0x3ff76a=_0x145278;if(this[_0x3ff76a(0x53e)](_0x21d190))return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x26d3fa,this[_0x3ff76a(0x240)],this['type'],this[_0x3ff76a(0x4ce)],[],null,[_0x21d190],this[_0x3ff76a(0x24b)]);try{const _0x446f9d=this['_transformService'][_0x3ff76a(0x21b)]([_0x21d190],[this['_awaitingChangeset']],!0x1);if(_0x54555c[_0x3ff76a(0x195)](_0x446f9d)){const {c1Prime:_0x4a6b02,c2Prime:_0x3b724e}=_0x446f9d;this[_0x3ff76a(0x541)](_0x4a6b02[0x0]),_0x3b724e[0x0][_0x3ff76a(0x38c)]=this[_0x3ff76a(0x3c9)](),this[_0x3ff76a(0x4a4)]();const _0x5eb2a9=this[_0x3ff76a(0x22d)][_0x3ff76a(0x556)](_0x238e5e,this['unitID'],this[_0x3ff76a(0x389)],_0x3b724e[0x0],this['_handler']);return _0x5eb2a9[_0x3ff76a(0x3f7)](),_0x5eb2a9;}return this['_onConflict'](!0x1);}catch(_0x16f2d7){return this[_0x3ff76a(0x385)][_0x3ff76a(0x4aa)](_0x16f2d7),this[_0x3ff76a(0x493)](!0x1);}}[_0x145278(0x488)](_0x1c490c){const _0x107c01=_0x145278;this[_0x107c01(0x4a4)]();const _0x21129c=this[_0x107c01(0x2b4)][_0x107c01(0x213)](this[_0x107c01(0x240)]);if(_0x1c490c['revision']<_0x21129c-0x1)return this;if(this[_0x107c01(0x53e)](_0x1c490c))return this[_0x107c01(0x22d)][_0x107c01(0x556)](_0x26d3fa,this[_0x107c01(0x240)],this['type'],null,[],this['_awaitingChangeset'],[],this[_0x107c01(0x24b)]);this[_0x107c01(0x45e)]();const _0xd86f1b=this[_0x107c01(0x22d)]['createInstance'](_0x11f110,this[_0x107c01(0x240)],this['type'],this[_0x107c01(0x24b)]);return _0xd86f1b[_0x107c01(0x3f7)](),_0xd86f1b;}[_0x145278(0x494)](_0x28b862){const _0x4006c5=_0x145278;return this[_0x4006c5(0x493)](!!(_0x28b862!=null&&_0x28b862[_0x4006c5(0x265)]));}[_0x145278(0x4d6)](_0x1168d5){const _0x19148e=_0x145278;return this[_0x19148e(0x221)]>_0x238bd9?this[_0x19148e(0x423)]():(this[_0x19148e(0x52c)]=_0x2f5db9(this[_0x19148e(0x221)],{'timeout':this[_0x19148e(0x221)],'reqId':_0x1168d5[_0x19148e(0x48d)]}),this[_0x19148e(0x239)]=this[_0x19148e(0x52c)]['subscribe'](({reqId:_0x18b44d,timeout:_0x5e3040})=>{const _0x544a82=_0x19148e;this[_0x544a82(0x1c3)](_0x18b44d,_0x5e3040);}),this);}[_0x145278(0x423)](){const _0x5cedc3=_0x145278;return this[_0x5cedc3(0x4a4)](),this[_0x5cedc3(0x22d)]['createInstance'](_0x216080,this[_0x5cedc3(0x240)],this[_0x5cedc3(0x389)],this[_0x5cedc3(0x4ce)],[],this['_handler']);}[_0x145278(0x39b)](){return this;}[_0x145278(0x2ba)](){const _0x4a45fa=_0x145278;this[_0x4a45fa(0x24b)][_0x4a45fa(0x36c)](this[_0x4a45fa(0x4ce)]);}[_0x145278(0x493)](_0x5bb04e){const _0x2b0cc8=_0x145278;return this['_clearScheduledTask'](),this[_0x2b0cc8(0x22d)]['createInstance'](_0x10b287,this[_0x2b0cc8(0x240)],this[_0x2b0cc8(0x389)],this[_0x2b0cc8(0x4ce)],[],this[_0x2b0cc8(0x24b)],_0x5bb04e);}[_0x145278(0x1c3)](_0x385a14,_0x2292ad){const _0x118c3d=_0x145278;var _0xadf32b;_0x385a14===((_0xadf32b=this['_awaitingChangeset'])==null?void 0x0:_0xadf32b['reqId'])&&(this[_0x118c3d(0x2ba)](),this[_0x118c3d(0x221)]=_0x2292ad===0x0?0x3e8:_0x2292ad*0x2);}['_clearScheduledTask'](){const _0x47d346=_0x145278;var _0x1412e9;(_0x1412e9=this[_0x47d346(0x239)])==null||_0x1412e9['unsubscribe'](),this[_0x47d346(0x221)]=0x0;}};_0x238e5e=_0x283e20([_0x255450(0x4,_0x349f19['Inject'](_0x349f19['Injector'])),_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x255450(0x6,_0x349f19['Inject'](_0x3b531e['LocalCacheService'])),_0x255450(0x7,_0x349f19[_0x145278(0x36e)]),_0x255450(0x8,_0x349f19[_0x145278(0x1e7)]),_0x255450(0x9,_0x54555c['ITransformService']),_0x255450(0xa,_0x349f19[_0x145278(0x2a4)])],_0x238e5e);let _0x4101e6=class extends _0x5c8f4a{constructor(_0x2c8ac3,_0x8929f0,_0x5749ea,_0x158a9e,_0xddc433,_0x5c01fb,_0x5cd66a,_0x4132bc,_0x1c69a1,_0x5d972f,_0x54bffb,_0x55de21,_0x1b4ee2){const _0x20d032=_0x145278;super(_0x2c8ac3,_0x8929f0,_0x5749ea,_0x158a9e,_0xddc433,_0x5d972f,_0x1b4ee2,_0x4132bc,_0x1c69a1),_0xbb867(this,'status',_0x20d032(0x46d)),_0xbb867(this,_0x20d032(0x221),0x0),_0xbb867(this,_0x20d032(0x52c)),_0xbb867(this,_0x20d032(0x239)),(this[_0x20d032(0x22d)]=_0x5cd66a,this[_0x20d032(0x385)]=_0x54bffb,this[_0x20d032(0x28a)]=_0x55de21,_0x5c01fb&&(this[_0x20d032(0x52c)]=_0x5c01fb,this[_0x20d032(0x239)]=this[_0x20d032(0x52c)][_0x20d032(0x38f)](({reqId:_0x4d2e51,timeout:_0x385098})=>{const _0x2a515d=_0x20d032;this[_0x2a515d(0x1c3)](_0x4d2e51,_0x385098);})));}[_0x145278(0x52a)](_0x4ac352){const _0x240ff8=_0x145278;return this[_0x240ff8(0x3c8)][_0x240ff8(0x276)](_0x4ac352),this;}[_0x145278(0x279)](_0x48df06){const _0x47df59=_0x145278;if(this['_checkMissing'](_0x48df06))return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x26d3fa,this['unitID'],this[_0x47df59(0x389)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x48df06],this[_0x47df59(0x24b)]);try{const _0x5e0b95=this[_0x47df59(0x28a)][_0x47df59(0x21b)]([_0x48df06],[this[_0x47df59(0x4ce)]],!0x1);if(_0x54555c[_0x47df59(0x195)](_0x5e0b95)){const {c1Prime:_0x20f0c6,c2Prime:_0x5f1c47}=_0x5e0b95,_0x86436d=this[_0x47df59(0x28a)]['transformMutationsWithChangeset'](_0x20f0c6[0x0],this['_pendingMutations']);if(_0x54555c[_0x47df59(0x170)](_0x86436d)){const {c1Prime:_0x38da68,m2Prime:_0x1018e5}=_0x86436d;return this[_0x47df59(0x541)](_0x38da68),_0x5f1c47[0x0]['baseRev']=this[_0x47df59(0x3c9)](),this[_0x47df59(0x4a4)](),this[_0x47df59(0x22d)][_0x47df59(0x556)](_0x4101e6,this[_0x47df59(0x240)],this[_0x47df59(0x389)],_0x5f1c47[0x0],_0x1018e5,this[_0x47df59(0x24b)],void 0x0);}throw _0x86436d[_0x47df59(0x4aa)];}throw _0x5e0b95[_0x47df59(0x4aa)];}catch(_0x51ae8b){return this[_0x47df59(0x385)][_0x47df59(0x4aa)](_0x51ae8b),this[_0x47df59(0x493)](!0x1);}}[_0x145278(0x488)](_0x544873){const _0x57b18d=_0x145278;if(this[_0x57b18d(0x4a4)](),this[_0x57b18d(0x53e)](_0x544873))return this[_0x57b18d(0x22d)][_0x57b18d(0x556)](_0x26d3fa,this[_0x57b18d(0x240)],this[_0x57b18d(0x389)],null,this[_0x57b18d(0x3c8)],this[_0x57b18d(0x4ce)],[],this[_0x57b18d(0x24b)]);this[_0x57b18d(0x45e)]();const _0x37a560=this['_injector']['createInstance'](_0xf500fc,this['unitID'],this[_0x57b18d(0x389)],this[_0x57b18d(0x3c8)],this['_handler']);return _0x37a560['_schedule'](),_0x37a560[_0x57b18d(0x3f7)](),_0x37a560;}[_0x145278(0x494)](_0x5f454a){const _0x4394dd=_0x145278;return this['_onConflict'](!!(_0x5f454a!=null&&_0x5f454a[_0x4394dd(0x265)]));}[_0x145278(0x4d6)](_0x3d6300){const _0x3c98fb=_0x145278;return this[_0x3c98fb(0x221)]>_0x238bd9?this['toggleOffline']():(this[_0x3c98fb(0x52c)]=_0x2f5db9(this[_0x3c98fb(0x221)],{'timeout':this['_resendTimeout'],'reqId':_0x3d6300['reqId']}),this[_0x3c98fb(0x239)]=this['_resendTimer'][_0x3c98fb(0x38f)](({reqId:_0x34d1d9,timeout:_0x287d0b})=>{const _0x5ed4d5=_0x3c98fb;this[_0x5ed4d5(0x1c3)](_0x34d1d9,_0x287d0b);}),this);}[_0x145278(0x423)](){const _0x5b4db2=_0x145278;return this[_0x5b4db2(0x4a4)](),this[_0x5b4db2(0x22d)]['createInstance'](_0x216080,this[_0x5b4db2(0x240)],this[_0x5b4db2(0x389)],this[_0x5b4db2(0x4ce)],this['_pendingMutations'],this[_0x5b4db2(0x24b)]);}[_0x145278(0x39b)](){return this;}[_0x145278(0x2ba)](){const _0x41e5bb=_0x145278;this[_0x41e5bb(0x24b)][_0x41e5bb(0x36c)](this[_0x41e5bb(0x4ce)]);}[_0x145278(0x493)](_0x465e4d){const _0xcd3c4a=_0x145278;return this['_clearScheduledTask'](),this[_0xcd3c4a(0x22d)][_0xcd3c4a(0x556)](_0x10b287,this['unitID'],this['type'],null,this[_0xcd3c4a(0x3c8)],this[_0xcd3c4a(0x24b)],_0x465e4d);}['_resendWithTimeout'](_0x25662d,_0x5398f1){const _0x4a8155=_0x145278;var _0x15455e;_0x25662d===((_0x15455e=this[_0x4a8155(0x4ce)])==null?void 0x0:_0x15455e['reqId'])&&(this[_0x4a8155(0x2ba)](),this[_0x4a8155(0x221)]=_0x5398f1===0x0?0x3e8:_0x5398f1*0x2);}[_0x145278(0x4a4)](){const _0x23474b=_0x145278;var _0x27647f;(_0x27647f=this['_sender'])==null||_0x27647f['unsubscribe'](),this[_0x23474b(0x221)]=0x0;}};_0x4101e6=_0x283e20([_0x255450(0x6,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x7,_0x349f19['Inject'](_0x54555c[_0x145278(0x387)])),_0x255450(0x8,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x9,_0x349f19['ICommandService']),_0x255450(0xa,_0x349f19[_0x145278(0x1e7)]),_0x255450(0xb,_0x54555c[_0x145278(0x42a)]),_0x255450(0xc,_0x349f19[_0x145278(0x2a4)])],_0x4101e6);let _0x10b287=class extends _0x5c8f4a{constructor(_0x4ccd32,_0x56cc33,_0x420533,_0x1d6ac8,_0x17c47a,_0x3f2582=!0x1,_0x453dee,_0x4a8eac,_0xae5e52,_0x5d3cbe,_0x8dc337,_0x59f9c7,_0x20ed7e){const _0x576600=_0x145278;super(_0x4ccd32,_0x56cc33,_0x420533,_0x1d6ac8,_0x17c47a,_0x4a8eac,_0xae5e52,_0x8dc337,_0x5d3cbe),_0xbb867(this,'status','conflict'),(this[_0x576600(0x21e)]=_0x3f2582,this[_0x576600(0x201)]=_0x453dee,this['_localeService']=_0x59f9c7,this['_notificationService']=_0x20ed7e,this['_showConflictNotification'](),this['_clearLocalCache'](),this[_0x576600(0x3da)]());}[_0x145278(0x52a)](){return this;}[_0x145278(0x279)](){return this;}['onRemoteAck'](){return this;}[_0x145278(0x494)](){return this;}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){return this;}[_0x145278(0x39b)](){return this;}['resend'](){const _0x2c2c76=_0x145278;throw new Error(_0x2c2c76(0x20b));}['_clearLocalCache'](){const _0x2de13b=_0x145278;this[_0x2de13b(0x3fb)]['updateOfflineData'](this[_0x2de13b(0x240)],this[_0x2de13b(0x389)],null,[]);}[_0x145278(0x45b)](){const _0x1919e2=_0x145278;this[_0x1919e2(0x21e)]?this[_0x1919e2(0x4d8)][_0x1919e2(0x303)]({'title':this['_localeService']['t'](_0x1919e2(0x532)),'content':this[_0x1919e2(0x207)]['t'](_0x1919e2(0x323)),'type':_0x1919e2(0x4aa),'duration':0x0}):this[_0x1919e2(0x4d8)]['show']({'title':this[_0x1919e2(0x207)]['t'](_0x1919e2(0x28e)),'content':this['_localeService']['t'](_0x1919e2(0x211)),'type':_0x1919e2(0x4aa),'duration':0x0});}['_disableEditing'](){const _0x9fac7=_0x145278;this['_permissionService']['updatePermissionPoint'](new _0x4c7a32[(_0x9fac7(0x287))](this[_0x9fac7(0x240)])['id'],!0x1);}};_0x10b287=_0x283e20([_0x255450(0x6,_0x349f19['Inject'](_0x349f19[_0x145278(0x4ec)])),_0x255450(0x7,_0x349f19[_0x145278(0x36e)]),_0x255450(0x8,_0x349f19[_0x145278(0x2a4)]),_0x255450(0x9,_0x349f19['Inject'](_0x3b531e['LocalCacheService'])),_0x255450(0xa,_0x349f19['Inject'](_0x54555c[_0x145278(0x387)])),_0x255450(0xb,_0x349f19[_0x145278(0x413)](_0x349f19['LocaleService'])),_0x255450(0xc,_0x5b624f['INotificationService'])],_0x10b287);let _0x216080=class extends _0x5c8f4a{constructor(_0x28bf26,_0x154655,_0x5c62d1,_0x3adb4c,_0x55e97e,_0x3b0b6c,_0x103bbe,_0x5b8542,_0x59741f,_0x45a571){const _0x4dcad7=_0x145278;super(_0x28bf26,_0x154655,_0x5c62d1,_0x3adb4c,_0x55e97e,_0x59741f,_0x45a571,_0x103bbe,_0x5b8542),_0xbb867(this,_0x4dcad7(0x465),_0x4dcad7(0x422)),this[_0x4dcad7(0x22d)]=_0x3b0b6c;}[_0x145278(0x52a)](_0x11aa2e){const _0x17d60c=_0x145278;return this[_0x17d60c(0x3c8)][_0x17d60c(0x276)](_0x11aa2e),this[_0x17d60c(0x3f7)](),this;}[_0x145278(0x279)](_0x2939db){const _0x38a39c=_0x145278;throw new Error(_0x38a39c(0x318));}[_0x145278(0x488)](){const _0x551a4e=_0x145278;throw new Error(_0x551a4e(0x468));}[_0x145278(0x494)](){const _0x4f420c=_0x145278;throw new Error(_0x4f420c(0x188));}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){return this;}[_0x145278(0x39b)](){const _0x5715a1=_0x145278,{_injector:_0x2335a1,_pendingMutations:_0x279250,_awaitingChangeset:_0x44b445,unitID:_0x4461d5,_handler:_0x3db1fe,type:_0x3446c5}=this,_0x53343c=_0x208b9a(_0x2335a1,_0x4461d5,_0x3446c5,_0x44b445,_0x279250,_0x3db1fe);return _0x53343c instanceof _0xf500fc?_0x53343c[_0x5715a1(0x174)]():(_0x53343c instanceof _0x4101e6||_0x53343c instanceof _0x238e5e)&&_0x53343c[_0x5715a1(0x2ba)](),_0x53343c;}[_0x145278(0x2ba)](){const _0x43e749=_0x145278;throw new Error(_0x43e749(0x20f));}};_0x216080=_0x283e20([_0x255450(0x5,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x255450(0x6,_0x349f19[_0x145278(0x413)](_0x54555c['RevisionService'])),_0x255450(0x7,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0x8,_0x349f19[_0x145278(0x36e)]),_0x255450(0x9,_0x349f19[_0x145278(0x2a4)])],_0x216080);let _0x26d3fa=class extends _0x5c8f4a{constructor(_0x24fec8,_0x45a4e8,_0x4dad3d,_0x5d5d49,_0x451528,_0x2060d7,_0x1c270b,_0x4a1c89,_0x4f843a,_0x586234,_0x16596a,_0x14c63b,_0x554b43,_0x4b9fea){const _0x4158a7=_0x145278;super(_0x24fec8,_0x45a4e8,_0x4dad3d,_0x5d5d49,_0x1c270b,_0x14c63b,_0x554b43,_0x4f843a,_0x586234),_0xbb867(this,_0x4158a7(0x465),'fetch_missing'),(this[_0x4158a7(0x552)]=_0x451528,this[_0x4158a7(0x4ff)]=_0x2060d7,this['_injector']=_0x4a1c89,this[_0x4158a7(0x385)]=_0x16596a,this[_0x4158a7(0x28a)]=_0x4b9fea);}[_0x145278(0x172)](_0x44476c){const _0x26aafd=_0x145278;try{const _0x43a872=[..._0x44476c,...this[_0x26aafd(0x4ff)]],_0x2d30d4=[this[_0x26aafd(0x4ce)]||this[_0x26aafd(0x552)]]['filter'](_0x4f6f5b=>!!_0x4f6f5b);let _0x2a7fce,_0x51c4c1;if(_0x2d30d4[_0x26aafd(0x37e)]){const _0x528671=this['_transformService'][_0x26aafd(0x21b)](_0x43a872,_0x2d30d4,!0x1);if(!_0x54555c[_0x26aafd(0x195)](_0x528671))throw _0x528671[_0x26aafd(0x4aa)];_0x2a7fce=_0x528671['c1Prime'],_0x51c4c1=_0x528671['c2Prime'];}else _0x2a7fce=_0x43a872,_0x51c4c1=[];let _0x125a4c=this[_0x26aafd(0x3c8)];_0x2a7fce['forEach'](_0x2df9f7=>{const _0x164aac=_0x26aafd;let _0x107a25;if(_0x125a4c[_0x164aac(0x37e)]){const _0xe35fb=this[_0x164aac(0x28a)][_0x164aac(0x21c)](_0x2df9f7,_0x125a4c);if(!_0x54555c[_0x164aac(0x170)](_0xe35fb))throw _0xe35fb['error'];_0x107a25=_0xe35fb[_0x164aac(0x26b)],_0x125a4c=_0xe35fb[_0x164aac(0x2a5)];}else _0x107a25=_0x2df9f7;this[_0x164aac(0x541)](_0x107a25);}),this[_0x26aafd(0x552)]&&this[_0x26aafd(0x45e)](),this[_0x26aafd(0x4ce)]&&_0x51c4c1['length']&&(_0x51c4c1[0x0][_0x26aafd(0x38c)]=this[_0x26aafd(0x3c9)]());let _0x1645b4;if(this[_0x26aafd(0x4ce)]&&_0x125a4c[_0x26aafd(0x37e)]!==0x0)_0x1645b4=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0x4101e6,this[_0x26aafd(0x240)],this['type'],_0x51c4c1[0x0],_0x125a4c,this[_0x26aafd(0x24b)],void 0x0);else{if(this[_0x26aafd(0x4ce)]&&_0x125a4c[_0x26aafd(0x37e)]===0x0)_0x51c4c1[0x0][_0x26aafd(0x38c)]=this[_0x26aafd(0x3c9)](),_0x1645b4=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0x238e5e,this[_0x26aafd(0x240)],this[_0x26aafd(0x389)],_0x51c4c1[0x0],this[_0x26aafd(0x24b)]);else{if(_0x125a4c[_0x26aafd(0x37e)]!==0x0){const _0x1c7eb5=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0xf500fc,this[_0x26aafd(0x240)],this[_0x26aafd(0x389)],_0x125a4c,this[_0x26aafd(0x24b)]);_0x1c7eb5[_0x26aafd(0x174)](),_0x1645b4=_0x1c7eb5;}else _0x1645b4=this[_0x26aafd(0x22d)][_0x26aafd(0x556)](_0x11f110,this[_0x26aafd(0x240)],this['type'],this[_0x26aafd(0x24b)]);}}return _0x1645b4[_0x26aafd(0x3f7)](),_0x1645b4;}catch(_0x3b3985){return this['_logService'][_0x26aafd(0x4aa)]('[FetchMissState]',_0x26aafd(0x558),_0x3b3985),this[_0x26aafd(0x22d)]['createInstance'](_0x10b287,this[_0x26aafd(0x240)],this[_0x26aafd(0x389)],this[_0x26aafd(0x4ce)],this['_pendingMutations'],this[_0x26aafd(0x24b)],!0x1);}}['resend'](){const _0x234d7b=_0x145278;throw new Error(_0x234d7b(0x518));}[_0x145278(0x52a)](_0x5c043c){const _0x2bf447=_0x145278;return this[_0x2bf447(0x3c8)][_0x2bf447(0x276)](_0x5c043c),this;}[_0x145278(0x279)](_0x1c60cf){const _0x2b3b3b=_0x145278;return this[_0x2b3b3b(0x4ff)][_0x2b3b3b(0x276)](_0x1c60cf),this;}[_0x145278(0x488)](_0x27beb5){const _0x31589c=_0x145278;if(this['_awaitingChangeset'])return this[_0x31589c(0x552)]=this[_0x31589c(0x4ce)],this[_0x31589c(0x4ce)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x145278(0x494)](_0x4bc045){const _0x46aa07=_0x145278;return this['_onConflict'](!!(_0x4bc045!=null&&_0x4bc045[_0x46aa07(0x265)]));}[_0x145278(0x4d6)](){return this;}[_0x145278(0x423)](){const _0x155b7d=_0x145278;return this['_injector'][_0x155b7d(0x556)](_0x216080,this[_0x155b7d(0x240)],this[_0x155b7d(0x389)],this[_0x155b7d(0x4ce)],this[_0x155b7d(0x3c8)],this['_handler']);}['toggleOnline'](){return this;}[_0x145278(0x493)](_0x501e97){const _0x532fd7=_0x145278;return this['_injector'][_0x532fd7(0x556)](_0x10b287,this[_0x532fd7(0x240)],this['type'],this[_0x532fd7(0x4ce)],this['_pendingMutations'],this[_0x532fd7(0x24b)],_0x501e97);}};_0x26d3fa=_0x283e20([_0x255450(0x7,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x255450(0x8,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x255450(0x9,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x255450(0xa,_0x349f19[_0x145278(0x1e7)]),_0x255450(0xb,_0x349f19[_0x145278(0x36e)]),_0x255450(0xc,_0x349f19[_0x145278(0x2a4)]),_0x255450(0xd,_0x54555c['ITransformService'])],_0x26d3fa);function _0x208b9a(_0x2bdc38,_0x1409c7,_0x2e15c0,_0x1daf7d,_0xb10392,_0x55eeda){const _0x393da7=_0x145278;return _0x1daf7d&&_0xb10392['length']?_0x2bdc38[_0x393da7(0x556)](_0x4101e6,_0x1409c7,_0x2e15c0,_0x1daf7d,_0xb10392,_0x55eeda,void 0x0):_0x1daf7d?_0x2bdc38['createInstance'](_0x238e5e,_0x1409c7,_0x2e15c0,_0x1daf7d,_0x55eeda):_0xb10392[_0x393da7(0x37e)]?_0x2bdc38['createInstance'](_0xf500fc,_0x1409c7,_0x2e15c0,_0xb10392,_0x55eeda):_0x2bdc38[_0x393da7(0x556)](_0x11f110,_0x1409c7,_0x2e15c0,_0x55eeda);}var _0x34a063=Object[_0x145278(0x507)],_0x2bda96=Object[_0x145278(0x16d)],_0x310d48=(_0x4a6238,_0x106f3f,_0x4a386e,_0x288984)=>{for(var _0x55fcea=_0x288984>0x1?void 0x0:_0x288984?_0x2bda96(_0x106f3f,_0x4a386e):_0x106f3f,_0x330965=_0x4a6238['length']-0x1,_0x2fa069;_0x330965>=0x0;_0x330965--)(_0x2fa069=_0x4a6238[_0x330965])&&(_0x55fcea=(_0x288984?_0x2fa069(_0x106f3f,_0x4a386e,_0x55fcea):_0x2fa069(_0x55fcea))||_0x55fcea);return _0x288984&&_0x55fcea&&_0x34a063(_0x106f3f,_0x4a386e,_0x55fcea),_0x55fcea;},_0x4e1934=(_0x1cc065,_0x49578c)=>(_0x923a0c,_0xf95470)=>_0x49578c(_0x923a0c,_0xf95470,_0x1cc065);_0x3b531e[_0x145278(0x122)]=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x25d13c,_0xf3a19a,_0x261d43,_0x4a6418,_0x55fab5,_0x52bfe4,_0x439e6f,_0x314f7c,_0x538db6,_0x239bf3,_0x6fda3c,_0x5ae25d,_0x3f703a){const _0x4d1cff=_0x145278;super(),_0xbb867(this,_0x4d1cff(0x2f8),new _0x1e13bb['BehaviorSubject'](null)),_0xbb867(this,'state$',this[_0x4d1cff(0x2f8)][_0x4d1cff(0x4de)]()),_0xbb867(this,'_state'),_0xbb867(this,_0x4d1cff(0x161),!0x1),_0xbb867(this,_0x4d1cff(0x324),''),_0xbb867(this,'_changesetReqId',0x0),_0xbb867(this,_0x4d1cff(0x4fd),this[_0x4d1cff(0x486)][_0x4d1cff(0x3f1)](_0x1e13bb[_0x4d1cff(0x15d)](_0x53fdd4=>_0x53fdd4?_0x53fdd4[_0x4d1cff(0x465)]:_0xfe35ac[_0x4d1cff(0x14d)]),_0x1e13bb[_0x4d1cff(0x1d6)](0x1))),_0xbb867(this,_0x4d1cff(0x189),!0x1),_0xbb867(this,_0x4d1cff(0x3d0),[]),(this[_0x4d1cff(0x240)]=_0x25d13c,this[_0x4d1cff(0x3ff)]=_0xf3a19a,this[_0x4d1cff(0x341)]=_0x261d43,this['_injector']=_0x4a6418,this[_0x4d1cff(0x3fb)]=_0x55fab5,this['_compressMutationService']=_0x52bfe4,this[_0x4d1cff(0x207)]=_0x439e6f,this[_0x4d1cff(0x2b4)]=_0x314f7c,this[_0x4d1cff(0x385)]=_0x538db6,this[_0x4d1cff(0x375)]=_0x239bf3,this[_0x4d1cff(0x2a1)]=_0x6fda3c,this[_0x4d1cff(0x201)]=_0x5ae25d,this['_singleActiveUnitService']=_0x3f703a);}get[_0x145278(0x4e8)](){const _0x523d4b=_0x145278;return this[_0x523d4b(0x44a)];}async['init'](){const _0xe1d46b=_0x145278;if(this[_0xe1d46b(0x4e8)])throw new Error(_0xe1d46b(0x3d5));await this['_init']();}['pauseCollaboration'](){const _0x248750=_0x145278;return this[_0x248750(0x161)]=!0x0,_0x349f19[_0x248750(0x534)](()=>{const _0x5909de=_0x248750;this[_0x5909de(0x161)]=!0x1,this[_0x5909de(0x48b)]();});}[_0x145278(0x2df)](_0xfc06d6){const _0x80765b=_0x145278;this[_0x80765b(0x44a)]=_0xfc06d6,this[_0x80765b(0x2f8)]['next'](_0xfc06d6);}async[_0x145278(0x35a)](){const _0x1c6073=_0x145278;var _0x15a874;this['_updateState'](await this[_0x1c6073(0x336)]()),this[_0x1c6073(0x54e)]&&((_0x15a874=this[_0x1c6073(0x54e)])==null||_0x15a874[_0x1c6073(0x517)](this[_0x1c6073(0x240)]),this['disposeWithMe'](this['_singleActiveUnitService'][_0x1c6073(0x415)](this['unitID'])[_0x1c6073(0x38f)](_0x87599b=>{const _0x41787e=_0x1c6073;this[_0x41787e(0x385)][_0x41787e(0x3e3)](_0x41787e(0x370),_0x41787e(0x3b4),_0x87599b),_0x87599b===_0x16b139['OTHER_CLIENTS_EDITING']?(this[_0x41787e(0x2a1)]['show']({'content':this['_localeService']['t']('collaboration.single-unit.warning'),'type':_0x806671['MessageType'][_0x41787e(0x344)]}),this[_0x41787e(0x201)][_0x41787e(0x1c2)](new _0x4c7a32[(_0x41787e(0x287))](this[_0x41787e(0x240)])['id'],!0x1)):this[_0x41787e(0x201)][_0x41787e(0x1c2)](new _0x4c7a32[(_0x41787e(0x287))](this[_0x41787e(0x240)])['id'],!0x0);})));let _0x402f36=!0x1;return this[_0x1c6073(0x1e3)](this['session'][_0x1c6073(0x1ad)][_0x1c6073(0x38f)](_0x2c7638=>{const _0x15b6c1=_0x1c6073;_0x2c7638===_0x3ee00b['ONLINE']?this[_0x15b6c1(0x23c)](_0x402f36):_0x2c7638===_0x3ee00b['OFFLINE']&&(_0x402f36=!0x0,this['_toggleOffline']());})),this[_0x1c6073(0x1e3)](this[_0x1c6073(0x3ff)][_0x1c6073(0x403)][_0x1c6073(0x38f)](_0x1f3dec=>{const _0x3692b0=_0x1c6073;try{switch(_0x1f3dec[_0x3692b0(0x1c0)]){case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x327)]:{this[_0x3692b0(0x17a)](_0x54555c['parseProtocolChangeset'](_0x1f3dec[_0x3692b0(0x2d2)]));break;}case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x49a)]:{this['_onRemoteACK'](_0x1f3dec[_0x3692b0(0x2d2)]);break;}case _0x54555c['CollaborationEvent'][_0x3692b0(0x4f8)]:{this[_0x3692b0(0x23a)]();break;}case _0x54555c[_0x3692b0(0x547)]['CHANGESET_SHOULD_RETRY']:{this[_0x3692b0(0x366)](_0x1f3dec['data']);break;}case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x1f4)]:{this['_onFetchMissResult'](_0x1f3dec['data'][_0x3692b0(0x1af)][_0x3692b0(0x15d)](_0x40ff00=>_0x54555c['parseProtocolChangeset'](_0x40ff00)));break;}case _0x54555c[_0x3692b0(0x547)][_0x3692b0(0x475)]:this[_0x3692b0(0x23a)]({'isPermissionRej':!0x0});}}catch(_0xb55a40){throw console[_0x3692b0(0x4aa)](_0x3692b0(0x34a),_0xb55a40),_0xb55a40;}})),this[_0x1c6073(0x44a)];}[_0x145278(0x17b)](){const _0x2ceed5=_0x145278;this[_0x2ceed5(0x189)]=!0x1;}[_0x145278(0x463)](){const _0x65cfd9=_0x145278;if(this[_0x65cfd9(0x189)])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[_0x65cfd9(0x189)]=!0x0;}['_onLocalMutation'](_0x3fcd64){const _0x30005f=_0x145278;this[_0x30005f(0x463)](),this[_0x30005f(0x2df)](this[_0x30005f(0x44a)][_0x30005f(0x52a)](_0x3fcd64)),this[_0x30005f(0x17b)]();}[_0x145278(0x17a)](_0x3cfc06){const _0x2098d0=_0x145278;if(!(_0x3cfc06[_0x2098d0(0x3f6)]<=this[_0x2098d0(0x2b4)][_0x2098d0(0x213)](this[_0x2098d0(0x240)]))){if(this[_0x2098d0(0x161)]){this[_0x2098d0(0x3d0)][_0x2098d0(0x276)](_0x3cfc06);return;}this['_applyRemoteChangeset'](_0x3cfc06);}}[_0x145278(0x48b)](){const _0x3e49fd=_0x145278;this[_0x3e49fd(0x3d0)]['forEach'](_0x91feb6=>this[_0x3e49fd(0x302)](_0x91feb6)),this[_0x3e49fd(0x3d0)]=[];}[_0x145278(0x302)](_0x2ea48b){const _0x453732=_0x145278,_0x26c8ec=this[_0x453732(0x3cc)][_0x453732(0x120)]['fetchThroughInterceptors'](this[_0x453732(0x3cc)][_0x453732(0x120)][_0x453732(0x398)]()[_0x453732(0x2af)])(_0x2ea48b['mutations'],null)||_0x2ea48b[_0x453732(0x4ad)],_0x4b0a12={..._0x2ea48b,'mutations':_0x26c8ec};this[_0x453732(0x463)](),this['_updateState'](this['_state'][_0x453732(0x279)](_0x4b0a12)),this[_0x453732(0x17b)]();}[_0x145278(0x11e)](_0x3beb03){const _0x570636=_0x145278;this[_0x570636(0x463)](),this[_0x570636(0x2df)](this[_0x570636(0x44a)][_0x570636(0x488)](_0x3beb03)),this[_0x570636(0x17b)]();}[_0x145278(0x23a)](_0x1c518d){const _0xdc4709=_0x145278;this['_lockTransition'](),this[_0xdc4709(0x2df)](this['_state'][_0xdc4709(0x494)](_0x1c518d)),this[_0xdc4709(0x17b)]();}[_0x145278(0x366)](_0x12afbf){const _0x551f07=_0x145278;this['_lockTransition'](),this[_0x551f07(0x2df)](this[_0x551f07(0x44a)][_0x551f07(0x4d6)](_0x12afbf)),this[_0x551f07(0x17b)]();}[_0x145278(0x43e)](_0x38d486){const _0x4ee233=_0x145278;if(!(this[_0x4ee233(0x44a)]instanceof _0x26d3fa))throw new TypeError(_0x4ee233(0x13a));const _0x5e67ba=_0x38d486[_0x4ee233(0x15d)](_0x205007=>{const _0x11c442=_0x4ee233,_0x38d82e=this['_compressMutationService'][_0x11c442(0x120)]['fetchThroughInterceptors'](this[_0x11c442(0x3cc)][_0x11c442(0x120)]['getInterceptPoints']()[_0x11c442(0x2af)])(_0x205007[_0x11c442(0x4ad)],null)||_0x205007[_0x11c442(0x4ad)];return{..._0x205007,'mutations':_0x38d82e};});this[_0x4ee233(0x463)](),this[_0x4ee233(0x2df)](this[_0x4ee233(0x44a)][_0x4ee233(0x172)](_0x5e67ba)),this[_0x4ee233(0x17b)]();}[_0x145278(0x408)](){const _0x390673=_0x145278;this[_0x390673(0x463)](),this['_updateState'](this[_0x390673(0x44a)][_0x390673(0x423)]()),this['_unlockTransition']();}[_0x145278(0x23c)](_0x1d251d=!0x1){const _0x1afbd8=_0x145278;this[_0x1afbd8(0x463)](),this[_0x1afbd8(0x2df)](this[_0x1afbd8(0x44a)][_0x1afbd8(0x39b)]()),this[_0x1afbd8(0x17b)]();const _0x2e0c9c=this['_state'];_0x1d251d&&_0x2e0c9c instanceof _0x11f110&&(this[_0x1afbd8(0x463)](),this['_updateState'](_0x2e0c9c['fetchMiss']()),this[_0x1afbd8(0x17b)]());}async['_createInitialState'](){return new Promise(_0x51ba87=>{const _0x547425=_0x2aa9;this[_0x547425(0x3ff)][_0x547425(0x1ad)]['pipe'](_0x1e13bb[_0x547425(0x348)](0x1))[_0x547425(0x38f)](async _0x304852=>{const _0x50e09b=_0x547425;_0x51ba87(await this[_0x50e09b(0x2a2)](_0x304852===_0x3ee00b[_0x50e09b(0x4a3)]));});});}[_0x145278(0x1b3)](){const _0x235493=_0x145278,_0x2be932=this[_0x235493(0x240)];return{'onStateChange':(_0xeeadee,_0x45d24e)=>{const _0x2e52b5=_0x235493;if(_0xeeadee!==this[_0x2e52b5(0x44a)])throw new Error(_0x2e52b5(0x2e5)+_0xeeadee[_0x2e52b5(0x465)]+_0x2e52b5(0x484)+_0x45d24e['status']+_0x2e52b5(0x337)+this[_0x2e52b5(0x44a)][_0x2e52b5(0x465)]);this[_0x2e52b5(0x2df)](_0x45d24e);},'onSendChangeset':_0x48d8b7=>{const _0x255c2b=_0x235493;_0x48d8b7[_0x255c2b(0x29b)]||(_0x48d8b7[_0x255c2b(0x29b)]=this['_changesetSessionId'],_0x48d8b7['reqId']=++this[_0x255c2b(0x3ad)]);const _0x1b30fd={'eventID':_0x54555c[_0x255c2b(0x547)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x48d8b7[_0x255c2b(0x240)],'unitType':this[_0x255c2b(0x341)],'changeset':_0x48d8b7,'memberID':this[_0x255c2b(0x3ff)][_0x255c2b(0x315)]()}};this[_0x255c2b(0x3ff)][_0x255c2b(0x3e7)](_0x1b30fd,this[_0x255c2b(0x240)]);},'onMissingChangesets':({from:_0x5ebc7a,to:_0x14e057})=>{const _0x1e7c74=_0x235493;this[_0x1e7c74(0x385)][_0x1e7c74(0x3e3)]('[CollaborationEntity]',_0x1e7c74(0x394)+_0x5ebc7a+'\x20to\x20'+_0x14e057);const _0xae78c8={'eventID':_0x54555c['CollaborationEvent'][_0x1e7c74(0x4df)],'data':{'unitID':_0x2be932,'unitType':this['_type'],'from':_0x5ebc7a,'to':_0x14e057}};this[_0x1e7c74(0x3ff)][_0x1e7c74(0x3e7)](_0xae78c8,this[_0x1e7c74(0x240)]);}};}async['_createInitialStateImpl'](_0x5a3065){const _0x6f7d82=_0x145278;var _0x486379,_0x3fe825;const _0x52e45e=await this[_0x6f7d82(0x3fb)]['loadOfflineData'](this[_0x6f7d82(0x240)]),_0x16ae46=(_0x486379=_0x52e45e==null?void 0x0:_0x52e45e['mutations'])!=null?_0x486379:[],_0x367730=(_0x3fe825=_0x52e45e==null?void 0x0:_0x52e45e[_0x6f7d82(0x409)])!=null?_0x3fe825:null,_0x28178f=!!(_0x367730!=null&&_0x367730[_0x6f7d82(0x29b)])&&!!(_0x367730!=null&&_0x367730[_0x6f7d82(0x48d)]);this[_0x6f7d82(0x324)]=_0x28178f?_0x367730[_0x6f7d82(0x29b)]:_0x39e230(),this[_0x6f7d82(0x3ad)]=_0x28178f?_0x367730['reqId']:0x0;const _0x2751f4=this[_0x6f7d82(0x240)];try{this[_0x6f7d82(0x381)](_0x367730,_0x16ae46);}catch(_0x224503){this['_logService'][_0x6f7d82(0x4aa)](_0x224503);}const _0x415e36=this[_0x6f7d82(0x1b3)]();if(_0x5a3065){const _0x5b253d=_0x208b9a(this['_injector'],_0x2751f4,this[_0x6f7d82(0x341)],_0x367730,_0x16ae46,_0x415e36);return _0x5b253d instanceof _0xf500fc?_0x5b253d[_0x6f7d82(0x174)]():(_0x5b253d instanceof _0x4101e6||_0x5b253d instanceof _0x238e5e)&&_0x5b253d['resend'](),_0x5b253d;}return this[_0x6f7d82(0x22d)]['createInstance'](_0x216080,_0x2751f4,this[_0x6f7d82(0x341)],_0x367730,_0x16ae46,_0x415e36);}[_0x145278(0x381)](_0x309a0c,_0x4a62ab){const _0x5c48e5=_0x145278;var _0x149510,_0x2e5517;const _0x220319=this[_0x5c48e5(0x3cc)][_0x5c48e5(0x120)][_0x5c48e5(0x2c5)](this[_0x5c48e5(0x3cc)][_0x5c48e5(0x120)][_0x5c48e5(0x398)]()[_0x5c48e5(0x2af)]);(_0x149510=_0x220319((_0x309a0c==null?void 0x0:_0x309a0c['mutations'])||[],null))==null||_0x149510[_0x5c48e5(0x256)](_0x5ab100=>this[_0x5c48e5(0x375)]['executeCommand'](_0x5ab100['id'],_0x5ab100[_0x5c48e5(0x23d)])),(_0x2e5517=_0x220319(_0x4a62ab||[],null))==null||_0x2e5517[_0x5c48e5(0x256)](_0x982e9b=>this[_0x5c48e5(0x375)]['executeCommand'](_0x982e9b['id'],_0x982e9b[_0x5c48e5(0x23d)]));}},_0x3b531e[_0x145278(0x122)]=_0x310d48([_0x4e1934(0x3,_0x349f19['Inject'](_0x349f19[_0x145278(0x3b7)])),_0x4e1934(0x4,_0x349f19['Inject'](_0x3b531e[_0x145278(0x30a)])),_0x4e1934(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x1e5)])),_0x4e1934(0x6,_0x349f19[_0x145278(0x413)](_0x349f19['LocaleService'])),_0x4e1934(0x7,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x4e1934(0x8,_0x349f19[_0x145278(0x1e7)]),_0x4e1934(0x9,_0x349f19['ICommandService']),_0x4e1934(0xa,_0x5b624f[_0x145278(0x434)]),_0x4e1934(0xb,_0x349f19[_0x145278(0x4ec)]),_0x4e1934(0xc,_0x349f19[_0x145278(0x4f6)](_0x2d00f5))],_0x3b531e[_0x145278(0x122)]),_0x3b531e['DocCollaborationEntity']=class extends _0x3b531e[_0x145278(0x122)]{constructor(_0x5eb493,_0x1a6bc5,_0x165d88,_0x535a3c,_0x5cf10c,_0x1b7510,_0x3ecf52,_0x4d836c,_0x579f7a,_0x782fdf,_0x2c99c1,_0x2bb2f9,_0x5143b3,_0x26d027,_0x3509b4,_0x29bc40,_0x504b39){const _0x4b4436=_0x145278;super(_0x5eb493,_0x165d88,_0x1a6bc5,_0x535a3c,_0x5cf10c,_0x1b7510,_0x3ecf52,_0x4d836c,_0x5143b3,_0x26d027,_0x3509b4,_0x29bc40,_0x504b39),this[_0x4b4436(0x240)]=_0x5eb493,this[_0x4b4436(0x389)]=_0x1a6bc5,this[_0x4b4436(0x361)]=_0x579f7a,this['_docTransformIMECacheService']=_0x782fdf,this[_0x4b4436(0x44b)]=_0x2c99c1,this['_docSyncEditingCollabCursorService']=_0x2bb2f9;}[_0x145278(0x1b3)](){const _0x50e1bb=_0x145278,_0x28df08=super['_createHandler']();return _0x28df08[_0x50e1bb(0x45f)]=_0x506272=>this['_docTransformIMECacheService'][_0x50e1bb(0x51d)](_0x506272),_0x28df08[_0x50e1bb(0x41f)]=_0x486476=>this['_docTransformSelectionsService'][_0x50e1bb(0x3cb)](_0x486476),_0x28df08[_0x50e1bb(0x13d)]=_0x3db60c=>this['_docSyncEditingCollabCursorService']['syncEditingCollabCursor'](_0x3db60c),_0x28df08['onTransformRemoteChangesetByIMECache']=_0x20b139=>this[_0x50e1bb(0x118)]['transformRemoteChangeset'](_0x20b139),_0x28df08;}async[_0x145278(0x35a)](){const _0x100bb6=_0x145278,_0x16a5ab=await super[_0x100bb6(0x35a)]();return this[_0x100bb6(0x361)][_0x100bb6(0x461)][_0x100bb6(0x3f1)](_0x1e13bb['takeUntil'](this[_0x100bb6(0x115)]))['subscribe'](_0x86ac8f=>{const _0x46b7ed=_0x100bb6;if(_0x86ac8f==null)return;const {unitId:_0x14e9e4,redoState:_0x5d75ca,commandId:_0x288714}=_0x86ac8f;if(_0x14e9e4!==this[_0x46b7ed(0x240)])return;const _0x54a3cb={'id':_0x288714,'type':_0x349f19[_0x46b7ed(0x39f)][_0x46b7ed(0x192)],'params':{'unitId':_0x14e9e4,'actions':_0x5d75ca[_0x46b7ed(0x141)],'textRanges':null}};this[_0x46b7ed(0x2d4)](_0x54a3cb);}),_0x16a5ab;}},_0x3b531e[_0x145278(0x3ac)]=_0x310d48([_0x4e1934(0x3,_0x349f19['Inject'](_0x349f19[_0x145278(0x3b7)])),_0x4e1934(0x4,_0x349f19[_0x145278(0x413)](_0x3b531e['LocalCacheService'])),_0x4e1934(0x5,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x1e5)])),_0x4e1934(0x6,_0x349f19['Inject'](_0x349f19[_0x145278(0x267)])),_0x4e1934(0x7,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x4e1934(0x8,_0x349f19['Inject'](_0x3c060b[_0x145278(0x45c)])),_0x4e1934(0x9,_0x349f19[_0x145278(0x413)](_0x55e610)),_0x4e1934(0xa,_0x349f19[_0x145278(0x413)](_0x697163)),_0x4e1934(0xb,_0x349f19['Inject'](_0x2f089c)),_0x4e1934(0xc,_0x349f19['ILogService']),_0x4e1934(0xd,_0x349f19['ICommandService']),_0x4e1934(0xe,_0x5b624f[_0x145278(0x434)]),_0x4e1934(0xf,_0x349f19['IPermissionService']),_0x4e1934(0x10,_0x349f19['Optional'](_0x2d00f5))],_0x3b531e['DocCollaborationEntity']),_0x3b531e[_0x145278(0x3e0)]=class extends _0x3b531e['CollaborationEntity']{constructor(_0x3d5dc4,_0x35e025,_0x421afd,_0x2f922a,_0x487db1,_0x918ea1,_0xc51109,_0x3be816,_0x3624d5,_0x369458,_0x26419b,_0x3a5f23,_0xec1de0,_0x74997c){const _0x1c8e4a=_0x145278;super(_0x3d5dc4,_0x421afd,_0x35e025,_0x2f922a,_0x487db1,_0x918ea1,_0xc51109,_0x3be816,_0x369458,_0x26419b,_0x3a5f23,_0xec1de0,_0x74997c),this[_0x1c8e4a(0x240)]=_0x3d5dc4,this[_0x1c8e4a(0x389)]=_0x35e025,this['_sheetTransformSelectionsService']=_0x3624d5;}[_0x145278(0x1b3)](){const _0x5f4fbe=_0x145278,_0x4235ff=super['_createHandler']();return _0x4235ff[_0x5f4fbe(0x41f)]=_0x427c4d=>this[_0x5f4fbe(0x365)][_0x5f4fbe(0x3cb)](_0x427c4d),_0x4235ff;}async[_0x145278(0x35a)](){const _0x2d0ec1=_0x145278,_0x449738=await super[_0x2d0ec1(0x35a)]();return this[_0x2d0ec1(0x1e3)](this[_0x2d0ec1(0x375)][_0x2d0ec1(0x1f6)]((_0x3370e1,_0x3fef7b)=>{const _0x583c85=_0x2d0ec1;if(_0x3370e1[_0x583c85(0x389)]!==_0x349f19[_0x583c85(0x39f)]['MUTATION']||_0x3fef7b!=null&&_0x3fef7b['fromCollab']||_0x3fef7b!=null&&_0x3fef7b[_0x583c85(0x1b6)])return;const _0x396d4c=_0x3370e1[_0x583c85(0x23d)];if((_0x396d4c==null?void 0x0:_0x396d4c['unitId'])!==this[_0x583c85(0x240)])return;const _0x5a0f5d=_0x3370e1,_0x4be6fb=this[_0x583c85(0x3cc)][_0x583c85(0x120)][_0x583c85(0x2c5)](this['_compressMutationService'][_0x583c85(0x120)]['getInterceptPoints']()[_0x583c85(0x15c)])([_0x5a0f5d],null)||[_0x5a0f5d];this['_onLocalMutation'](_0x4be6fb[0x0]);})),_0x449738;}},_0x3b531e[_0x145278(0x3e0)]=_0x310d48([_0x4e1934(0x3,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x4e1934(0x4,_0x349f19[_0x145278(0x413)](_0x3b531e['LocalCacheService'])),_0x4e1934(0x5,_0x349f19['Inject'](_0x54555c[_0x145278(0x1e5)])),_0x4e1934(0x6,_0x349f19['Inject'](_0x349f19[_0x145278(0x267)])),_0x4e1934(0x7,_0x349f19[_0x145278(0x413)](_0x54555c[_0x145278(0x387)])),_0x4e1934(0x8,_0x349f19[_0x145278(0x413)](_0x370f64)),_0x4e1934(0x9,_0x349f19[_0x145278(0x1e7)]),_0x4e1934(0xa,_0x349f19[_0x145278(0x36e)]),_0x4e1934(0xb,_0x5b624f[_0x145278(0x434)]),_0x4e1934(0xc,_0x349f19[_0x145278(0x4ec)]),_0x4e1934(0xd,_0x349f19[_0x145278(0x4f6)](_0x2d00f5))],_0x3b531e[_0x145278(0x3e0)]);var _0x1f7531=Object['defineProperty'],_0x296e4f=Object[_0x145278(0x16d)],_0x4cb21c=(_0x52826e,_0x250b17,_0x56ef54,_0x5120f2)=>{const _0x407672=_0x145278;for(var _0x53adbe=_0x5120f2>0x1?void 0x0:_0x5120f2?_0x296e4f(_0x250b17,_0x56ef54):_0x250b17,_0x1e5f98=_0x52826e[_0x407672(0x37e)]-0x1,_0x37432d;_0x1e5f98>=0x0;_0x1e5f98--)(_0x37432d=_0x52826e[_0x1e5f98])&&(_0x53adbe=(_0x5120f2?_0x37432d(_0x250b17,_0x56ef54,_0x53adbe):_0x37432d(_0x53adbe))||_0x53adbe);return _0x5120f2&&_0x53adbe&&_0x1f7531(_0x250b17,_0x56ef54,_0x53adbe),_0x53adbe;},_0x19c9f7=(_0x2b5b6a,_0xf59f5)=>(_0x48110d,_0x5d254f)=>_0xf59f5(_0x48110d,_0x5d254f,_0x2b5b6a);_0x3b531e['CollaborationController']=class extends _0x349f19['RxDisposable']{constructor(_0x46d340,_0x251b8b,_0x1cf86b){const _0x21cccd=_0x145278;super(),_0xbb867(this,_0x21cccd(0x331),new Map()),_0xbb867(this,'_entityInit$',new _0x1e13bb['Subject']()),(this[_0x21cccd(0x22d)]=_0x46d340,this['_collabSessionService']=_0x251b8b,this[_0x21cccd(0x31f)]=_0x1cf86b,this[_0x21cccd(0x35a)]());}[_0x145278(0x4c1)](){const _0x5620f3=_0x145278;super[_0x5620f3(0x4c1)](),this[_0x5620f3(0x331)][_0x5620f3(0x256)](_0x470cc4=>_0x470cc4[_0x5620f3(0x4c1)]()),this['_entities'][_0x5620f3(0x19f)]();}[_0x145278(0x33d)](_0x4f1edb){const _0x15ed7e=_0x145278;var _0x26b606;return(_0x26b606=this[_0x15ed7e(0x331)][_0x15ed7e(0x4b6)](_0x4f1edb))!=null?_0x26b606:null;}[_0x145278(0x380)](_0x4a5f57){const _0x1dbeb6=_0x145278,_0x2b3414=this[_0x1dbeb6(0x33d)](_0x4a5f57);return _0x2b3414?_0x1e13bb['of'](_0x2b3414):this['_entityInit$'][_0x1dbeb6(0x3f1)](_0x501e2e[_0x1dbeb6(0x257)](_0x3d3c76=>_0x3d3c76[_0x1dbeb6(0x240)]===_0x4a5f57));}['_init'](){const _0x4c5b48=_0x145278;this[_0x4c5b48(0x31f)][_0x4c5b48(0x393)](_0x349f19[_0x4c5b48(0x426)]['UNIVER_SHEET'])[_0x4c5b48(0x3f1)](_0x1e13bb['takeUntil'](this[_0x4c5b48(0x115)]),_0x501e2e[_0x4c5b48(0x171)](0x10))['subscribe'](async _0x5291e1=>{const _0x5b1dbf=_0x4c5b48,_0xa73d94=_0x5291e1[_0x5b1dbf(0x453)](),_0x42ae9c=await this[_0x5b1dbf(0x19b)](_0xa73d94,_0x5b5eaf[_0x5b1dbf(0x431)]);this[_0x5b1dbf(0x331)][_0x5b1dbf(0x253)](_0xa73d94,_0x42ae9c);}),this[_0x4c5b48(0x31f)][_0x4c5b48(0x393)](_0x349f19[_0x4c5b48(0x426)][_0x4c5b48(0x22e)])[_0x4c5b48(0x3f1)](_0x1e13bb[_0x4c5b48(0x1bc)](this[_0x4c5b48(0x115)]),_0x501e2e[_0x4c5b48(0x171)](0x10))[_0x4c5b48(0x3f1)](_0x501e2e[_0x4c5b48(0x257)](_0x276ca3=>!_0x276ca3[_0x4c5b48(0x453)]()['startsWith']('__')))['subscribe'](async _0x551404=>{const _0x26785a=_0x4c5b48,_0x4e709c=_0x551404['getUnitId'](),_0x134ee1=await this['_startCollaboration'](_0x4e709c,_0x5b5eaf[_0x26785a(0x22e)]);this[_0x26785a(0x331)][_0x26785a(0x253)](_0x4e709c,_0x134ee1);}),_0x1e13bb[_0x4c5b48(0x1a2)](this['_univerInstanceService'][_0x4c5b48(0x1a1)](_0x349f19[_0x4c5b48(0x426)]['UNIVER_SHEET']),this[_0x4c5b48(0x31f)][_0x4c5b48(0x1a1)](_0x349f19[_0x4c5b48(0x426)][_0x4c5b48(0x22e)]))[_0x4c5b48(0x3f1)](_0x1e13bb['takeUntil'](this[_0x4c5b48(0x115)]))['subscribe'](_0x35c341=>{const _0x18b1d2=_0x4c5b48,_0x31b19a=_0x35c341[_0x18b1d2(0x453)](),_0x4cbc44=this['_entities']['get'](_0x31b19a);_0x4cbc44&&(_0x4cbc44[_0x18b1d2(0x4c1)](),this[_0x18b1d2(0x331)]['delete'](_0x31b19a));});}async[_0x145278(0x19b)](_0x5c4522,_0x460b91){const _0x1b445b=_0x145278,_0xc6e9b=await this[_0x1b445b(0x502)]['requireSession'](_0x5c4522),_0x3901c=this[_0x1b445b(0x22d)][_0x1b445b(0x556)](this[_0x1b445b(0x3e5)](_0x460b91),_0x5c4522,_0x460b91,_0xc6e9b);return await _0x3901c[_0x1b445b(0x46c)](),this[_0x1b445b(0x529)][_0x1b445b(0x155)](_0x3901c),_0x3901c;}[_0x145278(0x3e5)](_0x1fe059){const _0x12a12f=_0x145278;switch(_0x1fe059){case _0x5b5eaf[_0x12a12f(0x22e)]:return _0x3b531e[_0x12a12f(0x3ac)];case _0x5b5eaf[_0x12a12f(0x431)]:return _0x3b531e['SheetCollaborationEntity'];default:throw new Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x1fe059);}}},_0x3b531e[_0x145278(0x446)]=_0x4cb21c([_0x19c9f7(0x0,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x19c9f7(0x1,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x21f)])),_0x19c9f7(0x2,_0x349f19['IUniverInstanceService'])],_0x3b531e[_0x145278(0x446)]);const _0x3ef227=['purple300',_0x145278(0x384),'verdancy600',_0x145278(0x4fa),_0x145278(0x11a),'gold400'];class _0x477f1a extends _0x349f19[_0x145278(0x1a4)]{constructor(){const _0x19ea51=_0x145278;super(...arguments),_0xbb867(this,_0x19ea51(0x18b),new Map()),_0xbb867(this,_0x19ea51(0x509),0x0);}['assignAColorForMemberID'](_0x27c711){const _0x5c0469=_0x145278;if(this[_0x5c0469(0x18b)][_0x5c0469(0x2e6)](_0x27c711))return this[_0x5c0469(0x18b)][_0x5c0469(0x4b6)](_0x27c711);const _0xde7fe9=_0x3ef227[this[_0x5c0469(0x509)]];return this[_0x5c0469(0x509)]=(this[_0x5c0469(0x509)]+0x1)%_0x3ef227[_0x5c0469(0x37e)],this[_0x5c0469(0x18b)][_0x5c0469(0x253)](_0x27c711,_0xde7fe9),_0xde7fe9;}}var _0x5a5de0=Object[_0x145278(0x507)],_0x243fb1=Object[_0x145278(0x16d)],_0x10fc09=(_0x1d4d0e,_0x5efc5c,_0x27b2f0,_0x223313)=>{const _0xf79950=_0x145278;for(var _0x44a3e6=_0x223313>0x1?void 0x0:_0x223313?_0x243fb1(_0x5efc5c,_0x27b2f0):_0x5efc5c,_0x36974a=_0x1d4d0e[_0xf79950(0x37e)]-0x1,_0x621e23;_0x36974a>=0x0;_0x36974a--)(_0x621e23=_0x1d4d0e[_0x36974a])&&(_0x44a3e6=(_0x223313?_0x621e23(_0x5efc5c,_0x27b2f0,_0x44a3e6):_0x621e23(_0x44a3e6))||_0x44a3e6);return _0x223313&&_0x44a3e6&&_0x5a5de0(_0x5efc5c,_0x27b2f0,_0x44a3e6),_0x44a3e6;},_0x21f9d8=(_0x277323,_0x5c1c55)=>(_0x131ef6,_0x2391f6)=>_0x5c1c55(_0x131ef6,_0x2391f6,_0x277323);const _0xcaf064=0x12c,_0x53ea14=0x64;let _0x915072=class extends _0x349f19['RxDisposable']{constructor(_0x584d45,_0x47d8c6,_0x175adf,_0x58711a,_0x425629,_0x58aa56,_0x4bd409,_0x400125,_0x58b309){const _0x8bb5cd=_0x145278;super(),_0xbb867(this,_0x8bb5cd(0x2e9),!0x1),_0xbb867(this,_0x8bb5cd(0x35a),!0x1),_0xbb867(this,'_cursorInfo$',new _0x1e13bb[(_0x8bb5cd(0x40f))](new Map())),_0xbb867(this,_0x8bb5cd(0x51f),this['_cursorInfo$'][_0x8bb5cd(0x4de)]()),_0xbb867(this,_0x8bb5cd(0x14e),new _0x1e13bb['BehaviorSubject']([])),_0xbb867(this,_0x8bb5cd(0x27a),this[_0x8bb5cd(0x14e)][_0x8bb5cd(0x3f1)](_0x1e13bb['debounceTime'](_0xcaf064))),_0xbb867(this,'_updateLocalCursor',_0x349f19[_0x8bb5cd(0x3ef)](_0x4a2e49=>{const _0x5069a9=_0x8bb5cd,_0x3dd7af={'eventID':_0x54555c['CollaborationEvent'][_0x5069a9(0x31e)],'data':{'unitID':this[_0x5069a9(0x240)],'memberID':this[_0x5069a9(0x1ab)][_0x5069a9(0x315)](),'selection':_0x5d4f5d(_0x4a2e49)}};this[_0x5069a9(0x1ab)][_0x5069a9(0x3e7)](_0x3dd7af,this['unitID']);},_0x53ea14)),(this[_0x8bb5cd(0x240)]=_0x584d45,this[_0x8bb5cd(0x1ab)]=_0x47d8c6,this[_0x8bb5cd(0x22d)]=_0x175adf,this[_0x8bb5cd(0x539)]=_0x58711a,this[_0x8bb5cd(0x474)]=_0x425629,this[_0x8bb5cd(0x41e)]=_0x58aa56,this[_0x8bb5cd(0x28a)]=_0x4bd409,this[_0x8bb5cd(0x31f)]=_0x400125,this[_0x8bb5cd(0x375)]=_0x58b309);}get[_0x145278(0x26f)](){const _0x5546e9=_0x145278;return this['_cursorInfo$'][_0x5546e9(0x46a)]();}get['roomMembers'](){const _0x5f4698=_0x145278;return this[_0x5f4698(0x14e)][_0x5f4698(0x46a)]();}['dispose'](){const _0x1a7bfc=_0x145278;super[_0x1a7bfc(0x4c1)](),this[_0x1a7bfc(0x270)][_0x1a7bfc(0x155)](new Map()),this[_0x1a7bfc(0x270)]['complete'](),this[_0x1a7bfc(0x14e)][_0x1a7bfc(0x155)]([]),this[_0x1a7bfc(0x14e)][_0x1a7bfc(0x2f9)]();}['init'](){const _0x25b58f=_0x145278;this['_init']||(this[_0x25b58f(0x35a)]=!0x0,this[_0x25b58f(0x1ab)][_0x25b58f(0x1ad)][_0x25b58f(0x3f1)](_0x1e13bb[_0x25b58f(0x1bc)](this[_0x25b58f(0x115)]))['subscribe'](_0x1495d0=>{const _0x7f538c=_0x25b58f;_0x1495d0===_0x3ee00b['ONLINE']?this[_0x7f538c(0x23c)]():this[_0x7f538c(0x408)]();}),this[_0x25b58f(0x1ab)][_0x25b58f(0x403)][_0x25b58f(0x3f1)](_0x1e13bb['takeUntil'](this[_0x25b58f(0x115)]))[_0x25b58f(0x38f)](_0x3a8644=>{const _0xd1a494=_0x25b58f,_0x39edb3=_0x3a8644[_0xd1a494(0x1c0)];_0x39edb3===_0x54555c[_0xd1a494(0x547)][_0xd1a494(0x31e)]&&this[_0xd1a494(0x2ec)](_0x3a8644),_0x39edb3===_0x54555c['CollaborationEvent'][_0xd1a494(0x28b)]&&this['_onCursorDelete'](_0x3a8644);}),this['disposeWithMe'](this['_commandService'][_0x25b58f(0x1f6)](_0x3b8f61=>{const _0x57e9c1=_0x25b58f,_0x3982fa=_0x3b8f61[_0x57e9c1(0x23d)];_0x3982fa!=null&&this[_0x57e9c1(0x2e9)]&&_0x3b8f61['id']===_0x9fa27b[_0x57e9c1(0x3cf)]['id']&&_0x3982fa[_0x57e9c1(0x126)]===this[_0x57e9c1(0x240)]&&_0x3982fa[_0x57e9c1(0x44c)]===!0x1&&this[_0x57e9c1(0x48f)](_0x3982fa[_0x57e9c1(0x3cd)]);})),this[_0x25b58f(0x41e)][_0x25b58f(0x12e)][_0x25b58f(0x3f1)](_0x1e13bb[_0x25b58f(0x1bc)](this[_0x25b58f(0x115)]))[_0x25b58f(0x38f)](_0x540e0e=>{const _0x44df63=_0x25b58f;if((_0x540e0e==null?void 0x0:_0x540e0e[_0x44df63(0x240)])!==this['unitID'])return;const _0xf1813e={'eventID':_0x54555c['CollaborationEvent']['UPDATE_CURSOR'],'data':_0x540e0e};this[_0x44df63(0x2ec)](_0xf1813e);}),this[_0x25b58f(0x1e3)](this[_0x25b58f(0x375)][_0x25b58f(0x1f6)](_0xf55a37=>{const _0x590c8b=_0x25b58f;if(_0xf55a37['params']==null)return;const _0x5b9fb1=_0xf55a37['params'];if(_0xf55a37['id']!==_0x9fa27b[_0x590c8b(0x50b)]['id']||_0x5b9fb1[_0x590c8b(0x126)]!==this[_0x590c8b(0x240)])return;const _0x4c2b56={'id':_0x590c8b(0x4cd),'params':_0x5b9fb1},_0x219fd2=this['cursorInfo'];for(const [_0x2eb8ad,_0x49ab50]of _0x219fd2){const _0x15c710={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x590c8b(0x240)],'actions':null,'textRanges':_0x49ab50[_0x590c8b(0x3cd)]}},_0x3b2311=this['_transformService']['transformMutation'](_0x4c2b56,_0x15c710,!0x1);if(_0x54555c['isTransformMutationFailure'](_0x3b2311))throw _0x3b2311['error'];_0x219fd2[_0x590c8b(0x253)](_0x2eb8ad,{..._0x49ab50,'ranges':_0x3b2311['m2Prime']['params'][_0x590c8b(0x433)]});}queueMicrotask(()=>{const _0x3a3438=_0x590c8b;this['_cursorInfo$'][_0x3a3438(0x155)](_0x219fd2);});})));}['_onCursorUpdate'](_0x6f719a){const _0x1558d6=_0x145278;var _0x1a948d,_0x57d25f;const {memberID:_0x2c9552,selection:_0x3c0312}=_0x6f719a[_0x1558d6(0x2d2)],_0x161147=_0x19266e(_0x3c0312),_0x3ea341=(_0x57d25f=(_0x1a948d=this[_0x1558d6(0x474)][_0x1558d6(0x26a)](this[_0x1558d6(0x240)],_0x2c9552))==null?void 0x0:_0x1a948d[_0x1558d6(0x51c)])!=null?_0x57d25f:_0x1558d6(0x2ee),_0x459c1b={'color':this[_0x1558d6(0x539)][_0x1558d6(0x2f7)](_0x2c9552),'name':_0x3ea341,'ranges':_0x161147},_0x117d5d=this[_0x1558d6(0x26f)];_0x117d5d['set'](_0x2c9552,_0x459c1b),this[_0x1558d6(0x270)][_0x1558d6(0x155)](_0x117d5d);}[_0x145278(0x2b5)](_0x20d625){const _0x4653e9=_0x145278,{memberID:_0x12945d}=_0x20d625['data'],_0x9679b2=this[_0x4653e9(0x26f)];_0x9679b2[_0x4653e9(0x4f4)](_0x12945d),this[_0x4653e9(0x270)][_0x4653e9(0x155)](_0x9679b2);}[_0x145278(0x23c)](){const _0x4f74a0=_0x145278;var _0x684b4b;if(this['_online']=!0x0,((_0x684b4b=this[_0x4f74a0(0x31f)][_0x4f74a0(0x2da)]())==null?void 0x0:_0x684b4b[_0x4f74a0(0x453)]())!==this[_0x4f74a0(0x240)])return;const _0x3e8a94=this['_injector'][_0x4f74a0(0x4b6)](_0x9fa27b[_0x4f74a0(0x113)])[_0x4f74a0(0x545)]();Array[_0x4f74a0(0x1c9)](_0x3e8a94)&&_0x3e8a94[_0x4f74a0(0x37e)]>0x0&&this[_0x4f74a0(0x48f)](_0x3e8a94);}[_0x145278(0x408)](){const _0x33d34b=_0x145278;this[_0x33d34b(0x2e9)]=!0x1;}};_0x915072=_0x10fc09([_0x21f9d8(0x2,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x21f9d8(0x3,_0x349f19['Inject'](_0x477f1a)),_0x21f9d8(0x4,_0x349f19[_0x145278(0x413)](_0x5a9e0d)),_0x21f9d8(0x5,_0x349f19[_0x145278(0x413)](_0x2f089c)),_0x21f9d8(0x6,_0x54555c[_0x145278(0x42a)]),_0x21f9d8(0x7,_0x349f19[_0x145278(0x501)]),_0x21f9d8(0x8,_0x349f19[_0x145278(0x36e)])],_0x915072);var _0x334c33=Object[_0x145278(0x507)],_0x51cc95=Object[_0x145278(0x16d)],_0x388b61=(_0xb73f8,_0x2c0e5c,_0x352b91,_0x8c74ed)=>{for(var _0x42c53e=_0x8c74ed>0x1?void 0x0:_0x8c74ed?_0x51cc95(_0x2c0e5c,_0x352b91):_0x2c0e5c,_0x132d85=_0xb73f8['length']-0x1,_0x124b2a;_0x132d85>=0x0;_0x132d85--)(_0x124b2a=_0xb73f8[_0x132d85])&&(_0x42c53e=(_0x8c74ed?_0x124b2a(_0x2c0e5c,_0x352b91,_0x42c53e):_0x124b2a(_0x42c53e))||_0x42c53e);return _0x8c74ed&&_0x42c53e&&_0x334c33(_0x2c0e5c,_0x352b91,_0x42c53e),_0x42c53e;},_0xe28271=(_0x53ca7f,_0xbf6584)=>(_0xda67d6,_0x38cd31)=>_0xbf6584(_0xda67d6,_0x38cd31,_0x53ca7f);const _0x25276e=0x12c,_0x13d872=0x64,_0x1d3f5d=()=>{let _0x4bf32b=[],_0x37112e=!0x1;return _0x2c8b38=>{const _0x392d0d=_0x2aa9;_0x4bf32b[_0x392d0d(0x276)](_0x2c8b38),_0x37112e||(_0x37112e=!0x0,setTimeout(()=>{_0x4bf32b['forEach'](_0x9f81fc=>_0x9f81fc()),_0x4bf32b=[],_0x37112e=!0x1;}));};};let _0x232fbb=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x323506,_0x42bcbb,_0x148c09,_0x57a1df,_0x13ce4e,_0x3a3dad,_0xd46fa7,_0x2d96d2){const _0x213793=_0x145278;super(),_0xbb867(this,_0x213793(0x2e9),!0x1),_0xbb867(this,_0x213793(0x35a),!0x1),_0xbb867(this,'_cursorInfo$',new _0x1e13bb['BehaviorSubject'](new Map())),_0xbb867(this,_0x213793(0x51f),this[_0x213793(0x270)][_0x213793(0x4de)]()),_0xbb867(this,_0x213793(0x14e),new _0x1e13bb[(_0x213793(0x40f))]([])),_0xbb867(this,'roomMembers$',this[_0x213793(0x14e)]['pipe'](_0x1e13bb['debounceTime'](_0x25276e))),_0xbb867(this,_0x213793(0x48f),_0x349f19[_0x213793(0x3ef)]((_0x125b9c,_0x4549e2)=>{const _0x2aeb08=_0x213793,_0x4cb3ef={'eventID':_0x54555c[_0x2aeb08(0x547)][_0x2aeb08(0x31e)],'data':{'unitID':this[_0x2aeb08(0x240)],'memberID':this[_0x2aeb08(0x1ab)][_0x2aeb08(0x315)](),'selection':_0x2de305[_0x2aeb08(0x1a5)](_0x125b9c,_0x4549e2[_0x2aeb08(0x301)])}};this[_0x2aeb08(0x1ab)]['send'](_0x4cb3ef,this[_0x2aeb08(0x240)]);},_0x13d872)),(this['unitID']=_0x323506,this[_0x213793(0x1ab)]=_0x42bcbb,this['_injector']=_0x148c09,this['_colorAssignService']=_0x57a1df,this[_0x213793(0x474)]=_0x13ce4e,this[_0x213793(0x31f)]=_0x3a3dad,this[_0x213793(0x375)]=_0xd46fa7,this[_0x213793(0x129)]=_0x2d96d2);}get[_0x145278(0x26f)](){const _0x1db400=_0x145278;return this[_0x1db400(0x270)]['getValue']();}get[_0x145278(0x4d0)](){const _0x1d9d66=_0x145278;return this['_roomMembers$'][_0x1d9d66(0x46a)]();}[_0x145278(0x4c1)](){const _0x431092=_0x145278;super[_0x431092(0x4c1)](),this['_cursorInfo$'][_0x431092(0x155)](new Map()),this[_0x431092(0x270)][_0x431092(0x2f9)](),this['_roomMembers$']['next']([]),this['_roomMembers$'][_0x431092(0x2f9)]();}[_0x145278(0x46c)](){const _0x23872c=_0x145278;this[_0x23872c(0x35a)]||(this[_0x23872c(0x35a)]=!0x0,this[_0x23872c(0x1ab)]['sessionStatus$'][_0x23872c(0x3f1)](_0x1e13bb['takeUntil'](this[_0x23872c(0x115)]))[_0x23872c(0x38f)](_0x187bf0=>{const _0x3a3ea6=_0x23872c;_0x187bf0===_0x3ee00b['ONLINE']?this[_0x3a3ea6(0x23c)]():this[_0x3a3ea6(0x408)]();}),this[_0x23872c(0x1ab)][_0x23872c(0x403)][_0x23872c(0x3f1)](_0x1e13bb['takeUntil'](this[_0x23872c(0x115)]))[_0x23872c(0x38f)](_0x13f84f=>{const _0x3d67e8=_0x23872c,_0x14769f=_0x13f84f['eventID'];_0x14769f===_0x54555c[_0x3d67e8(0x547)][_0x3d67e8(0x31e)]&&this[_0x3d67e8(0x2ec)](_0x13f84f),_0x14769f===_0x54555c[_0x3d67e8(0x547)][_0x3d67e8(0x28b)]&&this[_0x3d67e8(0x2b5)](_0x13f84f);}),this[_0x23872c(0x2bf)](),this[_0x23872c(0x1e3)](this[_0x23872c(0x375)]['onCommandExecuted'](_0x1e844c=>{const _0x2bc8c6=_0x23872c;if(this[_0x2bc8c6(0x2e9)]&&_0x1e844c['id']===_0x4c7a32['SetSelectionsOperation']['id']&&_0x1e844c[_0x2bc8c6(0x23d)][_0x2bc8c6(0x126)]===this['unitID']){const _0x5f30aa=_0x1e844c[_0x2bc8c6(0x23d)];this['_updateLocalCursor'](_0x5f30aa[_0x2bc8c6(0x1f1)],_0x5f30aa[_0x2bc8c6(0x15a)][0x0]);}})));}[_0x145278(0x2ec)](_0x1ecd9a){const _0x15f6ac=_0x145278;var _0x3edb1f,_0x37e5d8;const {memberID:_0x357ddd,selection:_0x19466a}=_0x1ecd9a[_0x15f6ac(0x2d2)],{sheetName:_0x93ee6e,range:_0x1edb9f}=_0x2de305[_0x15f6ac(0x137)](_0x19466a),_0x2bff71={'name':(_0x37e5d8=(_0x3edb1f=this['_memberService'][_0x15f6ac(0x26a)](this[_0x15f6ac(0x240)],_0x357ddd))==null?void 0x0:_0x3edb1f['name'])!=null?_0x37e5d8:_0x15f6ac(0x2ee),'range':this[_0x15f6ac(0x241)](_0x93ee6e,_0x1edb9f),'sheetID':_0x93ee6e,'color':this[_0x15f6ac(0x539)][_0x15f6ac(0x2f7)](_0x357ddd),'selection':_0x19466a},_0x3c89d1=this[_0x15f6ac(0x26f)];_0x3c89d1['set'](_0x357ddd,_0x2bff71),this[_0x15f6ac(0x270)][_0x15f6ac(0x155)](_0x3c89d1);}[_0x145278(0x2b5)](_0x4225ad){const _0x13379d=_0x145278,{memberID:_0x58aa24}=_0x4225ad[_0x13379d(0x2d2)],_0x145b58=this[_0x13379d(0x26f)];_0x145b58[_0x13379d(0x4f4)](_0x58aa24),this[_0x13379d(0x270)][_0x13379d(0x155)](_0x145b58);}[_0x145278(0x241)](_0x1fb1e2,_0x365314){const _0x4bef5c=_0x145278;var _0x4b211c,_0x8ebdb6;const _0xb1491b=(_0x8ebdb6=(_0x4b211c=this[_0x4bef5c(0x31f)][_0x4bef5c(0x146)](this[_0x4bef5c(0x240)]))==null?void 0x0:_0x4b211c[_0x4bef5c(0x353)](_0x1fb1e2))==null?void 0x0:_0x8ebdb6['getMergeData']();return(_0xb1491b==null?void 0x0:_0xb1491b[_0x4bef5c(0x373)](_0x346ca7=>_0x349f19['Rectangle'][_0x4bef5c(0x1fb)](_0x346ca7,_0x365314)))||_0x365314;}[_0x145278(0x2bf)](){const _0x226bfb=_0x145278,_0x69cd79=new _0x349f19[(_0x226bfb(0x2ac))](),_0x1c3aa1=_0x1d3f5d(),_0x317ebc=()=>{const _0x5a77d9=_0x226bfb;_0x69cd79[_0x5a77d9(0x4c1)]();const _0x4ba652=(_0x2df2b5,_0x32faa4,_0x3b1173,_0x3e3503)=>{const _0x9b2613=_0x5a77d9;let _0x15baa1=[];switch(_0x2df2b5['id']){case _0x4c7a32['EffectRefRangId'][_0x9b2613(0x260)]:{_0x15baa1=_0x4c7a32[_0x9b2613(0x16f)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32['EffectRefRangId']['DeleteRangeMoveUpCommandId']:{_0x15baa1=_0x4c7a32['handleDeleteRangeMoveUp'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x50f)]:{_0x15baa1=_0x4c7a32[_0x9b2613(0x438)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)]['InsertRangeMoveDownCommandId']:{_0x15baa1=_0x4c7a32[_0x9b2613(0x1b9)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x1ea)]:{_0x15baa1=_0x4c7a32['handleInsertRangeMoveRight'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x245)]:{_0x15baa1=_0x4c7a32['handleInsertRow'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32['EffectRefRangId'][_0x9b2613(0x2cd)]:{_0x15baa1=_0x4c7a32[_0x9b2613(0x3c7)](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)][_0x9b2613(0x50d)]:{_0x15baa1=_0x4c7a32['handleIRemoveCol'](_0x2df2b5,_0x3e3503);break;}case _0x4c7a32[_0x9b2613(0x2e3)]['RemoveRowCommandId']:{_0x15baa1=_0x4c7a32[_0x9b2613(0x355)](_0x2df2b5,_0x3e3503);break;}}const _0x2ed5c2=_0x4c7a32[_0x9b2613(0x1a3)](_0x15baa1,_0x3e3503),_0x20670c=this[_0x9b2613(0x26f)][_0x9b2613(0x4b6)](_0x32faa4);if(_0x20670c&&_0x2ed5c2){const _0x2522ac={..._0x20670c,'range':_0x2ed5c2};this[_0x9b2613(0x26f)]['set'](_0x32faa4,_0x2522ac),_0x1c3aa1(()=>{const _0x2ab922=_0x9b2613,_0x25e7e6=this[_0x2ab922(0x129)][_0x2ab922(0x2a8)](_0x2ed5c2,_0x502577=>(_0x25e7e6['dispose'](),_0x4ba652(_0x502577,_0x32faa4,_0x3b1173,_0x2ed5c2)));_0x69cd79[_0x2ab922(0x4f3)](_0x25e7e6);});}return{'redos':[],'undos':[]};};this[_0x5a77d9(0x26f)][_0x5a77d9(0x256)]((_0x4b8033,_0x34f322)=>{const _0x24be6d=_0x5a77d9,{range:_0x490f6b,sheetID:_0x34f18e}=_0x4b8033,_0x5c9702=this[_0x24be6d(0x129)]['registerRefRange'](_0x490f6b,_0x442ef4=>(_0x5c9702[_0x24be6d(0x4c1)](),_0x4ba652(_0x442ef4,_0x34f322,_0x34f18e,_0x490f6b)));_0x69cd79[_0x24be6d(0x4f3)](_0x5c9702);});};this[_0x226bfb(0x1e3)](_0x349f19[_0x226bfb(0x534)](this[_0x226bfb(0x270)][_0x226bfb(0x38f)](()=>{_0x317ebc();})));}[_0x145278(0x23c)](){const _0x5475d1=_0x145278;var _0x1b09fe,_0x15fac6;if(this[_0x5475d1(0x2e9)]=!0x0,((_0x1b09fe=this[_0x5475d1(0x31f)][_0x5475d1(0x2da)]())==null?void 0x0:_0x1b09fe['getUnitId']())!==this['unitID'])return;const _0x51f612=(_0x15fac6=this['_injector']['get'](_0x4c7a32[_0x5475d1(0x40c)])['getCurrentSelections']())==null?void 0x0:_0x15fac6[0x0],_0x2081d3=this[_0x5475d1(0x31f)]['getCurrentUnitForType'](_0x349f19[_0x5475d1(0x426)][_0x5475d1(0x431)])[_0x5475d1(0x1b2)]();_0x51f612&&_0x2081d3&&this[_0x5475d1(0x48f)](_0x2081d3[_0x5475d1(0x3f2)](),_0x51f612);}[_0x145278(0x408)](){const _0x5d343b=_0x145278;this[_0x5d343b(0x2e9)]=!0x1;}};_0x232fbb=_0x388b61([_0xe28271(0x2,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0xe28271(0x3,_0x349f19[_0x145278(0x413)](_0x477f1a)),_0xe28271(0x4,_0x349f19[_0x145278(0x413)](_0x5a9e0d)),_0xe28271(0x5,_0x349f19[_0x145278(0x501)]),_0xe28271(0x6,_0x349f19[_0x145278(0x36e)]),_0xe28271(0x7,_0x349f19['Inject'](_0x4c7a32['RefRangeService']))],_0x232fbb);var _0x3f969d=Object['defineProperty'],_0xff68fe=Object[_0x145278(0x16d)],_0x2abc0d=(_0x622a2,_0x3cd9ad,_0x2879cf,_0x5da693)=>{const _0x296fc8=_0x145278;for(var _0x17552b=_0x5da693>0x1?void 0x0:_0x5da693?_0xff68fe(_0x3cd9ad,_0x2879cf):_0x3cd9ad,_0x3ca326=_0x622a2[_0x296fc8(0x37e)]-0x1,_0x5a0229;_0x3ca326>=0x0;_0x3ca326--)(_0x5a0229=_0x622a2[_0x3ca326])&&(_0x17552b=(_0x5da693?_0x5a0229(_0x3cd9ad,_0x2879cf,_0x17552b):_0x5a0229(_0x17552b))||_0x17552b);return _0x5da693&&_0x17552b&&_0x3f969d(_0x3cd9ad,_0x2879cf,_0x17552b),_0x17552b;},_0x4e2821=(_0x4b5a01,_0x5cff87)=>(_0xedb6c4,_0x14b0c3)=>_0x5cff87(_0xedb6c4,_0x14b0c3,_0x4b5a01);let _0xc5b355=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x20086a,_0x1e3637,_0x4d0a18){const _0xd682f2=_0x145278;super(),_0xbb867(this,_0xd682f2(0x331),new Map()),_0xbb867(this,'_entityInit$',new _0x1e13bb[(_0xd682f2(0x410))]()),(this[_0xd682f2(0x31f)]=_0x20086a,this[_0xd682f2(0x22d)]=_0x1e3637,this[_0xd682f2(0x502)]=_0x4d0a18,this[_0xd682f2(0x35a)]());}[_0x145278(0x4c1)](){const _0x51ffc8=_0x145278;super[_0x51ffc8(0x4c1)](),this[_0x51ffc8(0x529)][_0x51ffc8(0x2f9)](),this[_0x51ffc8(0x331)][_0x51ffc8(0x256)](_0x9a5231=>_0x9a5231[_0x51ffc8(0x4c1)]());}[_0x145278(0x180)](_0xb45004){const _0x54cd10=_0x145278;return this['_entities']['has'](_0xb45004)?this['_entities']['get'](_0xb45004)[_0x54cd10(0x51f)]:this[_0x54cd10(0x529)]['pipe'](_0x1e13bb['filter'](_0x3373a3=>_0x3373a3['unitID']===_0xb45004),_0x1e13bb['switchMap'](_0x30cc02=>_0x30cc02[_0x54cd10(0x51f)]));}[_0x145278(0x35a)](){const _0x3267c1=_0x145278;this[_0x3267c1(0x31f)][_0x3267c1(0x393)](_0x349f19[_0x3267c1(0x426)]['UNIVER_SHEET'])[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x1bc)](this[_0x3267c1(0x115)]))[_0x3267c1(0x38f)](async _0x2e9328=>{const _0x2e53f6=_0x3267c1,_0x589ec7=_0x2e9328[_0x2e53f6(0x453)](),_0x1ade2b=await this['_startSheetCollabCursor'](_0x589ec7);this[_0x2e53f6(0x529)][_0x2e53f6(0x155)](_0x1ade2b),this['_entities'][_0x2e53f6(0x253)](_0x589ec7,_0x1ade2b);}),this[_0x3267c1(0x31f)]['getTypeOfUnitAdded$'](_0x349f19['UniverInstanceType'][_0x3267c1(0x22e)])[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x1bc)](this[_0x3267c1(0x115)]))[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x257)](_0xd40d5d=>!_0xd40d5d['getUnitId']()['startsWith']('__')))[_0x3267c1(0x38f)](async _0x309719=>{const _0x40a633=_0x3267c1,_0x13fb58=_0x309719[_0x40a633(0x453)](),_0x2c76e1=await this[_0x40a633(0x4c4)](_0x13fb58);this[_0x40a633(0x529)][_0x40a633(0x155)](_0x2c76e1),this['_entities']['set'](_0x13fb58,_0x2c76e1);}),_0x1e13bb[_0x3267c1(0x1a2)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x349f19[_0x3267c1(0x426)][_0x3267c1(0x22e)]),this[_0x3267c1(0x31f)][_0x3267c1(0x1a1)](_0x349f19['UniverInstanceType'][_0x3267c1(0x431)]))[_0x3267c1(0x3f1)](_0x1e13bb[_0x3267c1(0x1bc)](this['dispose$']))[_0x3267c1(0x38f)](_0x2cfb7d=>{const _0x15d60f=_0x3267c1,_0x41dd13=_0x2cfb7d[_0x15d60f(0x453)](),_0x235d13=this['_entities'][_0x15d60f(0x4b6)](_0x41dd13);_0x235d13&&(_0x235d13[_0x15d60f(0x4c1)](),this['_entities']['delete'](_0x41dd13));});}async[_0x145278(0x513)](_0x4d5c3d){const _0x182e91=_0x145278,_0xb9e733=await this['_collabSessionService'][_0x182e91(0x4ab)](_0x4d5c3d),_0x5f1899=this[_0x182e91(0x22d)][_0x182e91(0x556)](_0x232fbb,_0x4d5c3d,_0xb9e733);return _0x5f1899[_0x182e91(0x46c)](),_0x5f1899;}async[_0x145278(0x4c4)](_0x2eea95){const _0x4d7ddc=_0x145278,_0xa9d028=await this[_0x4d7ddc(0x502)][_0x4d7ddc(0x4ab)](_0x2eea95),_0x51e001=this['_injector'][_0x4d7ddc(0x556)](_0x915072,_0x2eea95,_0xa9d028);return _0x51e001[_0x4d7ddc(0x46c)](),_0x51e001;}};_0xc5b355=_0x2abc0d([_0x4e2821(0x0,_0x349f19[_0x145278(0x501)]),_0x4e2821(0x1,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x4e2821(0x2,_0x349f19[_0x145278(0x413)](_0x3b531e['CollaborationSessionService']))],_0xc5b355);const _0x19a8be=0x14,_0x175865=0xc8,_0x57a0b9=0x4,_0x28e631=0x5;function _0x2d584b(_0x103a39,_0x2a9d89){const _0x5f284b=_0x145278;let {radius:_0x1a569c,width:_0x27e759,height:_0x163489}=_0x2a9d89;_0x1a569c=_0x1a569c!=null?_0x1a569c:0x0,_0x27e759=_0x27e759!=null?_0x27e759:0x1e,_0x163489=_0x163489!=null?_0x163489:0x1e;let _0x4c9486=0x0,_0x59b924=0x0,_0x535bac=0x0;_0x4c9486=_0x59b924=_0x535bac=Math[_0x5f284b(0x481)](_0x1a569c,_0x27e759/0x2,_0x163489/0x2),_0x103a39['beginPath'](),_0x103a39[_0x5f284b(0x3ab)](_0x4c9486,0x0),_0x103a39['lineTo'](_0x27e759-_0x59b924,0x0),_0x103a39['arc'](_0x27e759-_0x59b924,_0x59b924,_0x59b924,Math['PI']*0x3/0x2,0x0,!0x1),_0x103a39[_0x5f284b(0x448)](_0x27e759,_0x163489-_0x535bac),_0x103a39[_0x5f284b(0x164)](_0x27e759-_0x535bac,_0x163489-_0x535bac,_0x535bac,0x0,Math['PI']/0x2,!0x1),_0x103a39[_0x5f284b(0x448)](0x0,_0x163489),_0x103a39[_0x5f284b(0x448)](0x0,_0x4c9486),_0x103a39['arc'](_0x4c9486,_0x4c9486,_0x4c9486,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x103a39[_0x5f284b(0x13f)](),_0x2a9d89[_0x5f284b(0x3e8)]&&(_0x103a39[_0x5f284b(0x1ae)](),_0x103a39[_0x5f284b(0x4db)]=_0x2a9d89[_0x5f284b(0x3e8)],_0x2a9d89['fillRule']==='evenodd'?_0x103a39[_0x5f284b(0x3e8)](_0x5f284b(0x131)):_0x103a39[_0x5f284b(0x3e8)](),_0x103a39['restore']());}class _0x481603 extends _0x577b7e[_0x145278(0x49c)]{constructor(_0x219d38,_0x575128){const _0x3069eb=_0x145278;super(_0x219d38,_0x575128),_0xbb867(this,_0x3069eb(0x1c7)),_0xbb867(this,'text'),(this[_0x3069eb(0x1c7)]=_0x575128==null?void 0x0:_0x575128[_0x3069eb(0x1c7)],this[_0x3069eb(0x235)]=_0x575128==null?void 0x0:_0x575128[_0x3069eb(0x235)]);}static['drawWith'](_0x2d0a1c,_0x692a1c){const _0x4c1363=_0x145278,{text:_0x5dc3d5,color:_0x989e09}=_0x692a1c;_0x2d0a1c[_0x4c1363(0x1ae)](),_0x2d0a1c['font']=_0x4c1363(0x132);const _0x208d51=_0x2d0a1c['measureText'](_0x5dc3d5)[_0x4c1363(0x50c)],_0x597108=Math['min'](_0x208d51+0x2*_0x57a0b9,_0x175865);_0x2d584b(_0x2d0a1c,{'height':_0x19a8be,'radius':0x4,'width':_0x597108,'fill':_0x989e09,'evented':!0x1}),_0x2d0a1c[_0x4c1363(0x4db)]='#FFF';const _0x27d9c5=_0x57a0b9,_0x1a5946=_0x19a8be-_0x28e631,_0x2dd0b9=_0x175865-0x2*_0x57a0b9;if(_0x208d51>_0x2dd0b9){let _0x2f3e9f='',_0x32c3d3=0x0;for(const _0x5818cc of _0x5dc3d5){const _0x58a62c=_0x2d0a1c[_0x4c1363(0x3a3)](_0x5818cc)[_0x4c1363(0x50c)];if(_0x32c3d3+_0x58a62c<=_0x2dd0b9-_0x2d0a1c['measureText'](_0x4c1363(0x418))[_0x4c1363(0x50c)])_0x2f3e9f+=_0x5818cc,_0x32c3d3+=_0x58a62c;else{_0x2f3e9f+='...';break;}}_0x2d0a1c[_0x4c1363(0x1ac)](_0x2f3e9f,_0x27d9c5,_0x1a5946);}else _0x2d0a1c[_0x4c1363(0x1ac)](_0x5dc3d5,_0x27d9c5,_0x1a5946);_0x2d0a1c[_0x4c1363(0x263)]();}[_0x145278(0x4e5)](_0x38adaf){const _0x392776=_0x145278;_0x481603[_0x392776(0x2c3)](_0x38adaf,this);}}const _0x2633ff=_0x145278(0x290),_0xca0151='collab-text-range-',_0x35e620='collab-rect-range-',_0x14eaa2=0x6,_0x234b5f=1.5,_0xf2087f=0x4,_0x1517c4=1.5,_0x26f5d9='rgba(255,\x20255,\x20255,\x200.01)';class _0xe9ff6{constructor(_0x283ba3,_0x521fef,_0x1555b9,_0x3ce0a8){const _0x2ea1c2=_0x145278;_0xbb867(this,'_shapes',[]),_0xbb867(this,'_anchor',null),_0xbb867(this,_0x2ea1c2(0x3aa),null),_0xbb867(this,_0x2ea1c2(0x13c),null),_0xbb867(this,_0x2ea1c2(0x20d),null),_0xbb867(this,_0x2ea1c2(0x3d6),null),(this[_0x2ea1c2(0x546)]=_0x283ba3,this['_scene']=_0x521fef,this[_0x2ea1c2(0x29c)]=_0x1555b9,this['_document']=_0x3ce0a8,this[_0x2ea1c2(0x255)]());}set[_0x145278(0x3fc)](_0x3f75f0){const _0x46971d=_0x145278;_0x3f75f0?(this['_anchorDot']&&this['_anchorDot'][_0x46971d(0x3a2)](),this['_textBubble']&&this[_0x46971d(0x3aa)][_0x46971d(0x303)]()):(this[_0x46971d(0x13c)]&&this[_0x46971d(0x13c)]['show'](),this[_0x46971d(0x3aa)]&&this[_0x46971d(0x3aa)][_0x46971d(0x3a2)]());}[_0x145278(0x4c1)](){const _0x2a19d5=_0x145278;for(const _0x3e9537 of this[_0x2a19d5(0x3c3)])_0x3e9537['dispose']();this[_0x2a19d5(0x3aa)]&&this['_textBubble']['dispose'](),this['_anchorDot']&&this['_anchorDot'][_0x2a19d5(0x4c1)](),this[_0x2a19d5(0x425)]&&this[_0x2a19d5(0x425)][_0x2a19d5(0x4c1)](),this[_0x2a19d5(0x3d6)]&&this[_0x2a19d5(0x3d6)]();}[_0x145278(0x255)](){const _0x2c397e=_0x145278;var _0x4d2c95;const {_docSkeleton:_0x5304f1,_document:_0x515326}=this,{color:_0x5d11ff,name:_0x3152e9,ranges:_0x32f693}=this[_0x2c397e(0x546)],_0x52096e=_0x515326[_0x2c397e(0x20e)](),{docsLeft:_0x401c5a,docsTop:_0x477572}=_0x52096e,_0x4020fa=new _0x3c060b[(_0x2c397e(0x14a))](_0x52096e,_0x5304f1);for(const {startOffset:_0x5f4ee8,endOffset:_0x68271a,collapsed:_0x22d855,isActive:_0x5b1320}of _0x32f693){const _0x2951fb=_0x5304f1['findNodePositionByCharIndex'](_0x5f4ee8),_0x7fa2da=_0x5304f1['findNodePositionByCharIndex'](_0x68271a);if(_0x5b1320){const {contentBoxPointGroup:_0x4e9baa}=_0x4020fa[_0x2c397e(0x362)](_0x7fa2da,_0x7fa2da);if(_0x4e9baa['length']===0x0)continue;this[_0x2c397e(0x2b2)](_0x5d11ff,_0x4e9baa,_0x401c5a,_0x477572,_0x3152e9),this['_eventUnsubscribe']=this[_0x2c397e(0x304)]();}if(!_0x22d855&&_0x2951fb&&_0x7fa2da){if(_0x3c060b[_0x2c397e(0x437)](_0x2951fb,_0x7fa2da)){const _0x626c48=new _0x3c060b[(_0x2c397e(0x555))](_0x52096e,_0x5304f1),{pointGroup:_0x369a3d}=(_0x4d2c95=_0x626c48['getRangePointData'](_0x2951fb,_0x7fa2da))!=null?_0x4d2c95:{};if(_0x369a3d==null||_0x369a3d[_0x2c397e(0x37e)]===0x0)continue;this[_0x2c397e(0x4e1)](_0x5d11ff,_0x369a3d,_0x401c5a,_0x477572);}else{const {contentBoxPointGroup:_0xd8e6b5}=_0x4020fa[_0x2c397e(0x362)](_0x2951fb,_0x7fa2da);if(_0xd8e6b5[_0x2c397e(0x37e)]===0x0)continue;this[_0x2c397e(0x2cf)](_0x5d11ff,_0xd8e6b5,_0x401c5a,_0x477572);}}}}['_drawAnchor'](_0x681c35,_0x4f3b80,_0x4c927c,_0x70651d,_0x351290){const _0x386c6a=_0x145278,_0x1ecaf4=this['_getAnchorBounding'](_0x4f3b80),{left:_0x5529ef,top:_0x46edd7,height:_0x486d2d}=_0x1ecaf4,_0xc10a0d=this[_0x386c6a(0x202)](),_0x56bf9b=_0x1517c4/_0xc10a0d,_0x5763d3=new _0x577b7e['Rect'](_0x2633ff+_0x349f19[_0x386c6a(0x4b1)][_0x386c6a(0x4d7)](_0x14eaa2),{'left':_0x5529ef+_0x4c927c-_0x56bf9b,'top':_0x46edd7+_0x70651d,'height':_0x486d2d,'width':_0x234b5f,'fill':_0x681c35||_0x577b7e[_0x386c6a(0x119)](_0x349f19[_0x386c6a(0x1a8)][_0x386c6a(0x316)],0x0),'strokeWidth':_0x56bf9b,'stroke':_0x26f5d9,'evented':!0x0});this[_0x386c6a(0x425)]=_0x5763d3,this['_scene'][_0x386c6a(0x450)](_0x5763d3,_0x3c060b[_0x386c6a(0x458)]);const _0xb52caa=new _0x577b7e['Rect'](_0x2633ff+_0x349f19['Tools'][_0x386c6a(0x4d7)](_0x14eaa2),{'left':_0x5529ef+_0x4c927c-_0x56bf9b,'top':_0x46edd7+_0x70651d-_0xf2087f/0x2,'height':_0xf2087f,'width':_0xf2087f,'fill':_0x681c35||_0x577b7e[_0x386c6a(0x119)](_0x349f19['COLORS'][_0x386c6a(0x316)],0x0),'strokeWidth':0x0,'stroke':_0x681c35||_0x577b7e[_0x386c6a(0x119)](_0x349f19[_0x386c6a(0x1a8)][_0x386c6a(0x316)],0x0),'evented':!0x1});this[_0x386c6a(0x13c)]=_0xb52caa,this['_scene'][_0x386c6a(0x450)](_0xb52caa,_0x3c060b[_0x386c6a(0x458)]);const _0x248262=new _0x481603(_0x2633ff+_0x349f19[_0x386c6a(0x4b1)][_0x386c6a(0x4d7)](_0x14eaa2),{'left':_0x5529ef+_0x4c927c-_0x56bf9b,'top':_0x46edd7+_0x70651d-_0x19a8be,'text':_0x351290,'color':_0x681c35});this[_0x386c6a(0x3aa)]=_0x248262,this[_0x386c6a(0x2fb)][_0x386c6a(0x450)](_0x248262,_0x3c060b[_0x386c6a(0x458)]),this[_0x386c6a(0x3fc)]=!0x1;}[_0x145278(0x304)](){const _0x14a922=_0x145278,_0x50130e=this['_anchor'][_0x14a922(0x252)][_0x14a922(0x2d7)](()=>{const _0x18e94c=_0x14a922;this[_0x18e94c(0x3fc)]=!0x0;}),_0xdb42fd=this[_0x14a922(0x425)]['onPointerLeave$']['subscribeEvent'](()=>{const _0x256535=_0x14a922;this[_0x256535(0x20d)]&&clearTimeout(this['_hideTimer']),this[_0x256535(0x20d)]=setTimeout(()=>{this['_hover']=!0x1;},0x7d0);});return()=>{const _0x5d5265=_0x14a922;_0x50130e[_0x5d5265(0x42b)](),_0xdb42fd['unsubscribe']();};}[_0x145278(0x2cf)](_0x36be53,_0x4302d5,_0x3c1ff9,_0x19c228){const _0x1434fa=_0x145278,_0x3f720e=new _0x349f19[(_0x1434fa(0x176))](_0x36be53)[_0x1434fa(0x27e)](0.2)['toRgbString'](),_0x48f896=new _0x577b7e['RegularPolygon'](_0xca0151+_0x349f19[_0x1434fa(0x4b1)][_0x1434fa(0x4d7)](_0x14eaa2),{'pointsGroup':_0x4302d5,'fill':_0x3f720e||_0x577b7e['getColor'](_0x349f19['COLORS']['black'],0.2),'left':_0x3c1ff9,'top':_0x19c228,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1434fa(0x3c3)][_0x1434fa(0x276)](_0x48f896),this[_0x1434fa(0x2fb)]['addObject'](_0x48f896,_0x3c060b[_0x1434fa(0x458)]);}['_drawRectRange'](_0x43402a,_0x177e1b,_0x5961e2,_0x4d0b54){const _0x31d6aa=_0x145278,_0x127297=new _0x349f19['ColorKit'](_0x43402a)[_0x31d6aa(0x27e)](0.2)['toRgbString'](),_0x17abc6=new _0x577b7e[(_0x31d6aa(0x32e))](_0x35e620+_0x349f19['Tools'][_0x31d6aa(0x4d7)](_0x14eaa2),{'pointsGroup':_0x177e1b,'fill':_0x127297||_0x577b7e[_0x31d6aa(0x119)](_0x349f19[_0x31d6aa(0x1a8)][_0x31d6aa(0x316)],0.2),'left':_0x5961e2,'top':_0x4d0b54,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x31d6aa(0x3c3)]['push'](_0x17abc6),this[_0x31d6aa(0x2fb)][_0x31d6aa(0x450)](_0x17abc6,_0x3c060b[_0x31d6aa(0x458)]);}[_0x145278(0x2d1)](_0x88e160){const _0x5e6c89=_0x88e160[0x0],_0x49090d=_0x5e6c89[0x0],_0x2a8b5b=_0x5e6c89[0x2],{x:_0x200952,y:_0x167309}=_0x49090d,{x:_0x133393,y:_0xe46683}=_0x2a8b5b;return{'left':_0x200952,'top':_0x167309,'width':_0x133393-_0x200952,'height':_0xe46683-_0x167309};}[_0x145278(0x202)](){const _0x312409=_0x145278,{scaleX:_0x32cc54,scaleY:_0x5a1752}=this[_0x312409(0x2fb)][_0x312409(0x178)]();return Math[_0x312409(0x527)](_0x32cc54,_0x5a1752);}}var _0x456d69=Object['defineProperty'],_0x343fac=Object[_0x145278(0x16d)],_0x1b2715=(_0xe03ace,_0x1e56af,_0x3b798a,_0x575d96)=>{const _0x28f5f6=_0x145278;for(var _0xc00c67=_0x575d96>0x1?void 0x0:_0x575d96?_0x343fac(_0x1e56af,_0x3b798a):_0x1e56af,_0x58e17b=_0xe03ace[_0x28f5f6(0x37e)]-0x1,_0x14cf5b;_0x58e17b>=0x0;_0x58e17b--)(_0x14cf5b=_0xe03ace[_0x58e17b])&&(_0xc00c67=(_0x575d96?_0x14cf5b(_0x1e56af,_0x3b798a,_0xc00c67):_0x14cf5b(_0xc00c67))||_0xc00c67);return _0x575d96&&_0xc00c67&&_0x456d69(_0x1e56af,_0x3b798a,_0xc00c67),_0xc00c67;},_0x5c98b0=(_0x2d0dbd,_0x395b34)=>(_0x1df628,_0xcd0995)=>_0x395b34(_0x1df628,_0xcd0995,_0x2d0dbd);let _0x12f634=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x187d8e,_0x524177,_0x36d82f,_0x1c489f,_0x44fe29){const _0x58db9b=_0x145278;super(),_0xbb867(this,'_cursorShapes',[]),_0xbb867(this,_0x58db9b(0x395),[]),(this[_0x58db9b(0x18a)]=_0x187d8e,this[_0x58db9b(0x42d)]=_0x524177,this[_0x58db9b(0x3eb)]=_0x36d82f,this[_0x58db9b(0x375)]=_0x1c489f,this[_0x58db9b(0x216)]=_0x44fe29,this[_0x58db9b(0x35a)]());}[_0x145278(0x35a)](){const _0x816ce0=_0x145278,_0x2dd80f=this[_0x816ce0(0x18a)][_0x816ce0(0x126)],_0x398ed9=this[_0x816ce0(0x42d)];this['disposeWithMe'](_0x1e13bb['combineLatest']([this[_0x816ce0(0x3eb)][_0x816ce0(0x180)](_0x2dd80f),this[_0x816ce0(0x216)][_0x816ce0(0x41d)]])['pipe'](_0x501e2e['map'](([_0x1e8fb7,_0x445774])=>({'skeleton':_0x398ed9['getSkeleton'](),'cursors':[..._0x1e8fb7[_0x816ce0(0x124)]()][_0x816ce0(0x121)](_0x582347=>({..._0x582347,'color':_0x445774[_0x582347['color']]}))})))[_0x816ce0(0x38f)](_0x4db183=>{const _0xfc0ff2=_0x816ce0;if(this[_0xfc0ff2(0x1cf)](),_0x4db183){const {skeleton:_0x114d4c,cursors:_0x57d947}=_0x4db183;this[_0xfc0ff2(0x17d)](_0x114d4c,_0x57d947);}})),this[_0x816ce0(0x2b8)](),this['_initCommandExecutedListener']();}[_0x145278(0x17d)](_0x30eb58,_0x4add61){const _0x157554=_0x145278,{scene:_0xd3bb4d,mainComponent:_0xf6d1bb}=this[_0x157554(0x18a)],_0x489ed4=_0x4add61[_0x157554(0x15d)](_0xfcebfe=>new _0xe9ff6(_0xfcebfe,_0xd3bb4d,_0x30eb58,_0xf6d1bb));this['_cursorShapes']=_0x489ed4,this[_0x157554(0x395)]=_0x4add61;}[_0x145278(0x128)](){const _0x23a1e6=_0x145278;this[_0x23a1e6(0x1cf)]();const {scene:_0x23783b,mainComponent:_0x325cea}=this[_0x23a1e6(0x18a)],_0x26f729=this[_0x23a1e6(0x42d)][_0x23a1e6(0x400)](),_0x4c4271=this[_0x23a1e6(0x395)][_0x23a1e6(0x15d)](_0x168795=>new _0xe9ff6(_0x168795,_0x23783b,_0x26f729,_0x325cea));this[_0x23a1e6(0x300)]=_0x4c4271;}['_removeCollabCursors'](){const _0x738d90=_0x145278;this[_0x738d90(0x300)][_0x738d90(0x256)](_0xc2b727=>_0xc2b727[_0x738d90(0x4c1)]()),this[_0x738d90(0x300)]=[];}[_0x145278(0x345)](){const _0x40cdcb=_0x145278,_0x257cf0=[_0x3c060b['SetDocZoomRatioOperation']['id']];this[_0x40cdcb(0x1e3)](this[_0x40cdcb(0x375)][_0x40cdcb(0x1f6)](_0x203b96=>{const _0x10c630=_0x40cdcb;_0x257cf0['includes'](_0x203b96['id'])&&_0x203b96[_0x10c630(0x23d)][_0x10c630(0x126)]===this['_context'][_0x10c630(0x126)]&&this[_0x10c630(0x128)]();}));}[_0x145278(0x2b8)](){const _0x55e463=_0x145278;this[_0x55e463(0x1e3)](_0x349f19[_0x55e463(0x557)](this['_context'][_0x55e463(0x489)][_0x55e463(0x271)])[_0x55e463(0x3f1)](_0x501e2e[_0x55e463(0x257)](_0x386a7f=>_0x386a7f[_0x55e463(0x389)]===_0x577b7e[_0x55e463(0x306)][_0x55e463(0x177)]),_0x501e2e[_0x55e463(0x483)](0x10))['subscribe'](()=>{this['_refreshCollabCursors']();}));}};_0x12f634=_0x1b2715([_0x5c98b0(0x1,_0x349f19[_0x145278(0x413)](_0x9fa27b[_0x145278(0x4b9)])),_0x5c98b0(0x2,_0x349f19['Inject'](_0xc5b355)),_0x5c98b0(0x3,_0x349f19[_0x145278(0x36e)]),_0x5c98b0(0x4,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x2e2)]))],_0x12f634);const _0x3ad3e8=0x1,_0x12dfc1=1.5;class _0x186ef2 extends _0x577b7e[_0x145278(0x49c)]{constructor(_0x94ba11,_0x4a1533){const _0x6c7052=_0x145278;super(_0x94ba11,_0x4a1533),_0xbb867(this,_0x6c7052(0x18c)),_0xbb867(this,_0x6c7052(0x249),!0x1),_0xbb867(this,'_range'),_0xbb867(this,'_name',''),_0xbb867(this,'_labelPosition','top'),_0xbb867(this,_0x6c7052(0x24f)),(_0x4a1533&&this[_0x6c7052(0x4a8)](_0x4a1533),this['onPointerEnter$'][_0x6c7052(0x2d7)](()=>this[_0x6c7052(0x4a8)]({'hovered':!0x0})),this[_0x6c7052(0x49b)][_0x6c7052(0x2d7)](()=>this[_0x6c7052(0x4a8)]({'hovered':!0x1})));}[_0x145278(0x4a8)](_0x3167a8){const _0x1e01ec=_0x145278;var _0x2b084c,_0x523645,_0x3d3012,_0x526f00,_0x12a4c5,_0x27e107;this[_0x1e01ec(0x18c)]=(_0x2b084c=_0x3167a8[_0x1e01ec(0x1c7)])!=null?_0x2b084c:this['_color'],this[_0x1e01ec(0x249)]=(_0x523645=_0x3167a8[_0x1e01ec(0x30c)])!=null?_0x523645:this[_0x1e01ec(0x249)],this[_0x1e01ec(0x503)]=(_0x3d3012=_0x3167a8['range'])!=null?_0x3d3012:this[_0x1e01ec(0x503)],this[_0x1e01ec(0x19d)]=(_0x526f00=_0x3167a8[_0x1e01ec(0x51c)])!=null?_0x526f00:this[_0x1e01ec(0x19d)],this[_0x1e01ec(0x1ee)]=(_0x12a4c5=_0x3167a8['labelPosition'])!=null?_0x12a4c5:this[_0x1e01ec(0x1ee)],this[_0x1e01ec(0x24f)]=(_0x27e107=_0x3167a8[_0x1e01ec(0x343)])!=null?_0x27e107:this[_0x1e01ec(0x24f)],this[_0x1e01ec(0x1ef)]({'width':_0x3167a8[_0x1e01ec(0x50c)],'height':_0x3167a8[_0x1e01ec(0x167)]});}[_0x145278(0x33f)](_0xb484bb){const _0x513a1f=_0x145278,{row:_0x7e87ed,column:_0x3a53ce}=_0xb484bb;if(_0x7e87ed>=this['_range'][_0x513a1f(0x402)]&&_0x7e87ed<=this[_0x513a1f(0x503)][_0x513a1f(0x1ba)]&&_0x3a53ce>=this[_0x513a1f(0x503)]['startColumn']&&_0x3a53ce<=this[_0x513a1f(0x503)][_0x513a1f(0x472)]){this['setShapeProps']({'hovered':!0x0});return;}this[_0x513a1f(0x4a8)]({'hovered':!0x1});}[_0x145278(0x346)](_0x3dcaa4){return!0x1;}[_0x145278(0x4e5)](_0xee015d){const _0x176e7c=_0x145278;_0x577b7e[_0x176e7c(0x16b)][_0x176e7c(0x2c3)](_0xee015d,{'width':this['width'],'height':this[_0x176e7c(0x167)],'strokeWidth':_0x12dfc1,'stroke':this['_color'],'evented':!0x1,'fill':this[_0x176e7c(0x24f)]}),this[_0x176e7c(0x249)]&&(_0xee015d[_0x176e7c(0x1ae)](),_0xee015d['transform'](0x1,0x0,0x0,0x1,this[_0x176e7c(0x50c)],this[_0x176e7c(0x1ee)]===_0x176e7c(0x232)?0x0:-_0x19a8be),_0x481603[_0x176e7c(0x2c3)](_0xee015d,{'text':this[_0x176e7c(0x19d)],'color':this[_0x176e7c(0x18c)]}),_0xee015d[_0x176e7c(0x263)]());}}var _0x3586b1=Object[_0x145278(0x507)],_0x4b3b8a=Object['getOwnPropertyDescriptor'],_0x5f6b0=(_0x121942,_0x32569b,_0x1f7101,_0x407c6b)=>{const _0x206f01=_0x145278;for(var _0x37a3bf=_0x407c6b>0x1?void 0x0:_0x407c6b?_0x4b3b8a(_0x32569b,_0x1f7101):_0x32569b,_0x37c18d=_0x121942[_0x206f01(0x37e)]-0x1,_0x2b28f8;_0x37c18d>=0x0;_0x37c18d--)(_0x2b28f8=_0x121942[_0x37c18d])&&(_0x37a3bf=(_0x407c6b?_0x2b28f8(_0x32569b,_0x1f7101,_0x37a3bf):_0x2b28f8(_0x37a3bf))||_0x37a3bf);return _0x407c6b&&_0x37a3bf&&_0x3586b1(_0x32569b,_0x1f7101,_0x37a3bf),_0x37a3bf;},_0x3bd9b9=(_0x59d3cb,_0x4b074d)=>(_0x450871,_0x7f2517)=>_0x4b074d(_0x450871,_0x7f2517,_0x59d3cb);const _0x1b6561=0x1389;let _0x355d95=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x3ed5d6,_0x3d6d14,_0x2f2845,_0x49aed3){const _0xbcf421=_0x145278;super(),_0xbb867(this,_0xbcf421(0x395),new Set()),_0xbb867(this,_0xbcf421(0x506),null),(this[_0xbcf421(0x18a)]=_0x3ed5d6,this['_sheetSkeletonManagerService']=_0x3d6d14,this[_0xbcf421(0x3eb)]=_0x2f2845,this[_0xbcf421(0x216)]=_0x49aed3,this[_0xbcf421(0x35a)]());}[_0x145278(0x35a)](){const _0x32da4b=_0x145278;this['_sheetSkeletonManagerService']['currentSkeleton$'][_0x32da4b(0x3f1)](_0x501e2e[_0x32da4b(0x1bc)](this['dispose$']),_0x501e2e[_0x32da4b(0x44e)](_0x39bdd=>{const _0x9feec6=_0x32da4b;if(_0x39bdd){const _0xfc7719=_0x39bdd[_0x9feec6(0x21a)];return _0x1e13bb[_0x9feec6(0x47c)](this[_0x9feec6(0x3eb)][_0x9feec6(0x180)](this[_0x9feec6(0x18a)][_0x9feec6(0x126)]),this[_0x9feec6(0x216)][_0x9feec6(0x41d)])[_0x9feec6(0x3f1)](_0x501e2e[_0x9feec6(0x15d)](([_0x21147e,_0x2ee67e])=>{const _0x23f05c=_0x9feec6,_0x29c052=new Map();return _0x21147e[_0x23f05c(0x256)]((_0x3204e6,_0x2cfd7c)=>{const _0x5baf12=_0x23f05c;if(_0x3204e6[_0x5baf12(0x4b8)]===_0xfc7719){const _0x4adc52={..._0x3204e6};_0x4adc52['color']=_0x2ee67e[_0x3204e6[_0x5baf12(0x1c7)]],_0x29c052[_0x5baf12(0x253)](_0x2cfd7c,_0x4adc52);}}),{'skeleton':_0x39bdd,'cursors':_0x29c052};}));}return _0x1e13bb['of']({'skeleton':null,'cursors':new Map()});}))[_0x32da4b(0x38f)](({skeleton:_0x5935ab,cursors:_0x3a5ac7})=>{const _0x492a62=_0x32da4b;this[_0x492a62(0x1cf)](),_0x5935ab&&this[_0x492a62(0x17d)](_0x5935ab,_0x3a5ac7);}),this[_0x32da4b(0x25b)][_0x32da4b(0x2ff)][_0x32da4b(0x38f)](_0xc96666=>{const _0x563e5d=_0x32da4b;if(_0xc96666==null)return;const {skeleton:_0x52c718}=_0xc96666,{scene:_0x49115d}=this[_0x563e5d(0x18a)];_0x49115d[_0x563e5d(0x525)][_0x563e5d(0x2d7)](_0x349f19[_0x563e5d(0x3ef)](_0x5afaa7=>{const _0x48e679=_0x563e5d;var _0x20a656,_0x258878;const {offsetX:_0x3ed58c,offsetY:_0x452d4e}=_0x5afaa7,{x:_0x27ae7b,y:_0x2af7df}=_0x49115d[_0x48e679(0x51e)](_0x577b7e[_0x48e679(0x1e8)][_0x48e679(0x544)]([_0x3ed58c,_0x452d4e])),{scaleX:_0x5ed26a,scaleY:_0xf02837}=_0x49115d[_0x48e679(0x178)](),_0x50c171=_0x49115d[_0x48e679(0x14b)](_0xa0e5aa[_0x48e679(0x2ef)]['VIEW_MAIN']),_0x30e737=_0x49115d['getVpScrollXYInfoByPosToVp'](_0x577b7e[_0x48e679(0x1e8)][_0x48e679(0x544)]([_0x27ae7b,_0x2af7df]),_0x50c171),_0x390d85=_0x52c718[_0x48e679(0x1fa)](_0x3ed58c,_0x452d4e,_0x5ed26a,_0xf02837,_0x30e737);((_0x20a656=this[_0x48e679(0x506)])==null?void 0x0:_0x20a656['column'])===_0x390d85[_0x48e679(0x399)]&&((_0x258878=this['_lastPointer'])==null?void 0x0:_0x258878['row'])===_0x390d85[_0x48e679(0x185)]||this[_0x48e679(0x395)][_0x48e679(0x256)](_0x3def30=>{const _0x3376d0=_0x48e679;_0x3def30[_0x3376d0(0x33f)](_0x390d85);});},0x64));});}[_0x145278(0x17d)](_0x280554,_0x17c5a8){const _0x5c022d=_0x145278;var _0x48f7eb;const _0x525aae=(_0x48f7eb=this[_0x5c022d(0x25b)][_0x5c022d(0x1cb)]())==null?void 0x0:_0x48f7eb[_0x5c022d(0x2f6)];if(!_0x525aae)return;const _0x16708b=this[_0x5c022d(0x18e)]();if(!_0x16708b)return;this[_0x5c022d(0x395)]['forEach'](_0x2ce996=>{_0x2ce996['makeDirty']();});const {scene:_0x2909d0}=_0x16708b,_0x3c7474=_0x47b33f(Array[_0x5c022d(0x496)](_0x17c5a8['values']()))[_0x5c022d(0x15d)](_0x5f0b07=>{const _0xd8acff=_0x5c022d,{color:_0x5c28ba,range:_0x52edf8,name:_0x3bd142,selection:_0x45d2ce,sheetID:_0x2433a3}=_0x5f0b07,{startColumn:_0x430d99,startRow:_0x17deb0,endColumn:_0x7d82c8,endRow:_0x1474ae}=_0x52edf8,_0x2769cc=_0xa0e5aa[_0xd8acff(0x535)](_0x17deb0,_0x430d99,_0x2909d0,_0x525aae),_0x5dc43b=_0xa0e5aa[_0xd8acff(0x535)](_0x1474ae,_0x7d82c8,_0x2909d0,_0x525aae),{columnHeaderHeightAndMarginTop:_0x30047f}=_0x525aae,{startX:_0xa39475,startY:_0xaa8097}=_0x2769cc,{endX:_0x58a29b,endY:_0x4ac3e6}=_0x5dc43b,_0x4d8012=_0x58a29b-_0xa39475,_0x30b466=_0x4ac3e6-_0xaa8097,_0x3b79a6={'labelPosition':_0xaa8097-_0x30047f>=_0x19a8be?_0xd8acff(0x1ca):_0xd8acff(0x232),'sheetID':_0x2433a3,'range':_0x52edf8,'color':_0x5c28ba,'name':_0x3bd142,'selection':_0x45d2ce,'left':_0xa39475,'top':_0xaa8097,'width':_0x4d8012,'height':_0x30b466,'evented':!0x1,'zIndex':_0x1b6561};return new _0x186ef2(_0x3bd142,_0x3b79a6);});_0x2909d0[_0x5c022d(0x52e)](_0x3c7474,_0x3ad3e8),this['_cursors']=new Set(_0x3c7474);}[_0x145278(0x1cf)](){const _0x35be45=_0x145278;var _0x4b8923;(_0x4b8923=this['_cursors'])==null||_0x4b8923[_0x35be45(0x256)](_0x1f8bf6=>_0x1f8bf6['dispose']());}[_0x145278(0x18e)](){const _0x2d17a7=_0x145278;return _0xa0e5aa[_0x2d17a7(0x3ce)](this['_context']['unit'],this['_context']);}};_0x355d95=_0x5f6b0([_0x3bd9b9(0x1,_0x349f19[_0x145278(0x413)](_0xa0e5aa[_0x145278(0x2d9)])),_0x3bd9b9(0x2,_0x349f19['Inject'](_0xc5b355)),_0x3bd9b9(0x3,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x2e2)]))],_0x355d95);function _0x47b33f(_0x227813){const _0x551383=_0x145278,_0x462235=new Map();return _0x227813[_0x551383(0x256)](_0x4b614f=>{const _0x46ddd7=_0x551383;if(_0x462235[_0x46ddd7(0x2e6)](_0x4b614f['selection'])){const _0x567712=_0x462235['get'](_0x4b614f[_0x46ddd7(0x3f5)]);_0x567712['name']+=',\x20'+_0x4b614f[_0x46ddd7(0x51c)];}else _0x462235[_0x46ddd7(0x253)](_0x4b614f['selection'],_0x4b614f);}),Array[_0x551383(0x496)](_0x462235[_0x551383(0x124)]());}var _0x571064=function(){const _0x48741f=_0x145278;return _0x571064=Object[_0x48741f(0x3d3)]||function(_0xaf130e){const _0x2102fe=_0x48741f;for(var _0x3ad4d7,_0x421af9=0x1,_0x4baf99=arguments[_0x2102fe(0x37e)];_0x421af9<_0x4baf99;_0x421af9++){_0x3ad4d7=arguments[_0x421af9];for(var _0x4647a2 in _0x3ad4d7)Object[_0x2102fe(0x443)][_0x2102fe(0x321)]['call'](_0x3ad4d7,_0x4647a2)&&(_0xaf130e[_0x4647a2]=_0x3ad4d7[_0x4647a2]);}return _0xaf130e;},_0x571064[_0x48741f(0x26c)](this,arguments);},_0x2b81a0=function(_0xe56da2,_0x494ec3){const _0x265bc2=_0x145278;var _0x48c09b={};for(var _0x207e9e in _0xe56da2)Object[_0x265bc2(0x443)][_0x265bc2(0x321)][_0x265bc2(0x54a)](_0xe56da2,_0x207e9e)&&_0x494ec3['indexOf'](_0x207e9e)<0x0&&(_0x48c09b[_0x207e9e]=_0xe56da2[_0x207e9e]);if(_0xe56da2!=null&&typeof Object['getOwnPropertySymbols']==_0x265bc2(0x262)){for(var _0x200e7a=0x0,_0x207e9e=Object[_0x265bc2(0x508)](_0xe56da2);_0x200e7a<_0x207e9e['length'];_0x200e7a++)_0x494ec3[_0x265bc2(0x404)](_0x207e9e[_0x200e7a])<0x0&&Object['prototype'][_0x265bc2(0x25a)][_0x265bc2(0x54a)](_0xe56da2,_0x207e9e[_0x200e7a])&&(_0x48c09b[_0x207e9e[_0x200e7a]]=_0xe56da2[_0x207e9e[_0x200e7a]]);}return _0x48c09b;},_0x2e275b=_0x385d1d[_0x145278(0x374)](function(_0x1a1977,_0x355a0f){const _0x3b781c=_0x145278;var _0x380f12=_0x1a1977['icon'],_0x677afd=_0x1a1977['id'],_0x34a129=_0x1a1977[_0x3b781c(0x4e4)],_0x194667=_0x1a1977['extend'],_0x54ce59=_0x2b81a0(_0x1a1977,[_0x3b781c(0x414),'id','className',_0x3b781c(0x3ec)]),_0x46640e='univerjs-icon\x20univerjs-icon-'[_0x3b781c(0x411)](_0x677afd,'\x20')[_0x3b781c(0x411)](_0x34a129||'')[_0x3b781c(0x4dd)](),_0x334249=_0x385d1d[_0x3b781c(0x238)]('_'['concat'](_0x387b2d()));return _0x307a72(_0x380f12,''['concat'](_0x677afd),{'defIds':_0x380f12[_0x3b781c(0x328)],'idSuffix':_0x334249[_0x3b781c(0x48c)]},_0x571064({'ref':_0x355a0f,'className':_0x46640e},_0x54ce59),_0x194667);});function _0x307a72(_0x389ec0,_0x2a7cce,_0xa7a471,_0x4e05db,_0x8036d9){const _0x3379b5=_0x145278;return _0x385d1d[_0x3379b5(0x495)](_0x389ec0['tag'],_0x571064(_0x571064({'key':_0x2a7cce},_0x1d23ed(_0x389ec0,_0xa7a471,_0x8036d9)),_0x4e05db),(_0x6a55b2(_0x389ec0,_0xa7a471)[_0x3379b5(0x43a)]||[])[_0x3379b5(0x15d)](function(_0x14410c,_0x2dbe23){const _0x158d34=_0x3379b5;return _0x307a72(_0x14410c,''[_0x158d34(0x411)](_0x2a7cce,'-')[_0x158d34(0x411)](_0x389ec0[_0x158d34(0x319)],'-')[_0x158d34(0x411)](_0x2dbe23),_0xa7a471,void 0x0,_0x8036d9);}));}function _0x1d23ed(_0x5efdda,_0x391629,_0x453c18){const _0x278b2b=_0x145278;var _0x48aa14=_0x571064({},_0x5efdda[_0x278b2b(0x2a9)]);_0x453c18!=null&&_0x453c18[_0x278b2b(0x2c0)]&&_0x48aa14[_0x278b2b(0x3e8)]==='colorChannel1'&&(_0x48aa14['fill']=_0x453c18[_0x278b2b(0x2c0)]);var _0x517a12=_0x391629[_0x278b2b(0x328)];return!_0x517a12||_0x517a12['length']===0x0||(_0x5efdda['tag']==='use'&&_0x48aa14[_0x278b2b(0x1c8)]&&(_0x48aa14['xlink:href']=_0x48aa14[_0x278b2b(0x1c8)]+_0x391629[_0x278b2b(0x46b)]),Object['entries'](_0x48aa14)[_0x278b2b(0x256)](function(_0x4f1c22){const _0x287fbb=_0x278b2b;var _0xd329b9=_0x4f1c22[0x0],_0x55cec9=_0x4f1c22[0x1];typeof _0x55cec9==_0x287fbb(0x1eb)&&(_0x48aa14[_0xd329b9]=_0x55cec9['replace'](/url\(#(.*)\)/,'url(#$1'[_0x287fbb(0x411)](_0x391629[_0x287fbb(0x46b)],')')));})),_0x48aa14;}function _0x6a55b2(_0x1941e8,_0x55b18a){const _0x315b7e=_0x145278;var _0x344f95,_0x24d593=_0x55b18a[_0x315b7e(0x328)];return!_0x24d593||_0x24d593[_0x315b7e(0x37e)]===0x0?_0x1941e8:_0x1941e8['tag']===_0x315b7e(0x33b)&&(!((_0x344f95=_0x1941e8[_0x315b7e(0x43a)])===null||_0x344f95===void 0x0)&&_0x344f95[_0x315b7e(0x37e)])?_0x571064(_0x571064({},_0x1941e8),{'children':_0x1941e8['children'][_0x315b7e(0x15d)](function(_0x617f70){const _0xc0949=_0x315b7e;return typeof _0x617f70[_0xc0949(0x2a9)]['id']==_0xc0949(0x1eb)&&_0x24d593&&_0x24d593['indexOf'](_0x617f70[_0xc0949(0x2a9)]['id'])>-0x1?_0x571064(_0x571064({},_0x617f70),{'attrs':_0x571064(_0x571064({},_0x617f70[_0xc0949(0x2a9)]),{'id':_0x617f70[_0xc0949(0x2a9)]['id']+_0x55b18a[_0xc0949(0x46b)]})}):_0x617f70;})}):_0x1941e8;}function _0x387b2d(){const _0x6ada86=_0x145278;return Math[_0x6ada86(0x45d)]()[_0x6ada86(0x2ad)](0x24)[_0x6ada86(0x1fc)](0x2,0x8);}_0x2e275b[_0x145278(0x4c9)]=_0x145278(0x492);var _0x25c145={'tag':_0x145278(0x204),'attrs':{'fill':_0x145278(0x4f0),'viewBox':_0x145278(0x4b2),'width':_0x145278(0x39a),'height':_0x145278(0x39a)},'children':[{'tag':'g','attrs':{'clipPath':_0x145278(0x22c)},'children':[{'tag':_0x145278(0x35f),'attrs':{'stroke':_0x145278(0x3b0),'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':_0x145278(0x1e2),'strokeLinejoin':_0x145278(0x1e2),'strokeWidth':1.2}}]},{'tag':_0x145278(0x33b),'attrs':{},'children':[{'tag':_0x145278(0x36f),'attrs':{'id':_0x145278(0x379)},'children':[{'tag':'path','attrs':{'fill':_0x145278(0x2c9),'d':_0x145278(0x454)}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x35ddaf=_0x385d1d[_0x145278(0x374)](function(_0x3c0fff,_0x27e930){const _0x35c25a=_0x145278;return _0x385d1d[_0x35c25a(0x495)](_0x2e275b,Object[_0x35c25a(0x3d3)]({},_0x3c0fff,{'id':_0x35c25a(0x4f2),'ref':_0x27e930,'icon':_0x25c145}));});_0x35ddaf[_0x145278(0x4c9)]=_0x145278(0x342);var _0x17107a={'tag':_0x145278(0x204),'attrs':{'fill':_0x145278(0x4f0),'viewBox':_0x145278(0x3f4),'width':_0x145278(0x39a),'height':_0x145278(0x39a)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-single_clip0_910_349)'},'children':[{'tag':'path','attrs':{'stroke':_0x145278(0x3b0),'d':_0x145278(0x275),'strokeLinecap':_0x145278(0x1e2),'strokeLinejoin':_0x145278(0x1e2),'strokeWidth':1.2}}]},{'tag':_0x145278(0x33b),'attrs':{},'children':[{'tag':_0x145278(0x36f),'attrs':{'id':_0x145278(0x4c3)},'children':[{'tag':_0x145278(0x35f),'attrs':{'fill':_0x145278(0x2c9),'d':'M0\x200H16V16H0z','transform':'translate(.97)'}}]}]}],'defIds':[_0x145278(0x4c3)]},_0x187f4f=_0x385d1d[_0x145278(0x374)](function(_0x36dcbb,_0x5eeda8){const _0x295a55=_0x145278;return _0x385d1d[_0x295a55(0x495)](_0x2e275b,Object[_0x295a55(0x3d3)]({},_0x36dcbb,{'id':_0x295a55(0x3a4),'ref':_0x5eeda8,'icon':_0x17107a}));});_0x187f4f[_0x145278(0x4c9)]=_0x145278(0x500);function _0x1fd24c(_0x4aa343){const _0x1409a8=_0x145278;var _0x291992,_0x214805,_0x227e8f='';if(typeof _0x4aa343==_0x1409a8(0x1eb)||typeof _0x4aa343==_0x1409a8(0x258))_0x227e8f+=_0x4aa343;else{if(typeof _0x4aa343=='object'){if(Array['isArray'](_0x4aa343)){var _0x345e83=_0x4aa343[_0x1409a8(0x37e)];for(_0x291992=0x0;_0x291992<_0x345e83;_0x291992++)_0x4aa343[_0x291992]&&(_0x214805=_0x1fd24c(_0x4aa343[_0x291992]))&&(_0x227e8f&&(_0x227e8f+='\x20'),_0x227e8f+=_0x214805);}else{for(_0x214805 in _0x4aa343)_0x4aa343[_0x214805]&&(_0x227e8f&&(_0x227e8f+='\x20'),_0x227e8f+=_0x214805);}}}return _0x227e8f;}function _0x107aba(){const _0x19c78e=_0x145278;for(var _0x6cbfac,_0x3911c4,_0x2c3f5f=0x0,_0x24c277='',_0x29c826=arguments[_0x19c78e(0x37e)];_0x2c3f5f<_0x29c826;_0x2c3f5f++)(_0x6cbfac=arguments[_0x2c3f5f])&&(_0x3911c4=_0x1fd24c(_0x6cbfac))&&(_0x24c277&&(_0x24c277+='\x20'),_0x24c277+=_0x3911c4);return _0x24c277;}const _0x262b88={'onlineStatusIcon':_0x145278(0x542),'onlineStatusTitle':_0x145278(0x28c),'onlineStatus':_0x145278(0x3c6),'online':_0x145278(0x293),'offline':_0x145278(0x219)};function _0x489d7b(_0x3e1814){const _0x2d9f98=_0x145278;switch(_0x3e1814){case _0xfe35ac[_0x2d9f98(0x14d)]:return _0x2d9f98(0x46e);case _0xfe35ac['CONFLICT']:return _0x2d9f98(0x3c1);case _0xfe35ac[_0x2d9f98(0x449)]:return'collabStatus.fetchMiss';case _0xfe35ac[_0x2d9f98(0x27d)]:return _0x2d9f98(0x12b);case _0xfe35ac[_0x2d9f98(0x520)]:case _0xfe35ac['AWAITING_WITH_PENDING']:return _0x2d9f98(0x2f5);case _0xfe35ac[_0x2d9f98(0x376)]:case _0xfe35ac[_0x2d9f98(0x430)]:return _0x2d9f98(0x25d);}}function _0x5c616d(_0x301579){const _0x3a4940=_0x145278,{status$:_0x1834bc}=_0x301579,_0x384d0a=_0x5b624f[_0x3a4940(0x1df)](_0x1834bc,_0xfe35ac[_0x3a4940(0x27d)]),_0x2e0d95=_0x349f19['useDependency'](_0x349f19['LocaleService']),_0x525984=_0x349f19['useDependency'](_0x3b531e[_0x3a4940(0x21f)]),_0xd212f=_0x384d0a!==_0xfe35ac[_0x3a4940(0x14d)],_0x1315e5=_0x2e0d95['t'](_0x489d7b(_0x384d0a)),_0x5b823a=_0x107aba(_0x262b88[_0x3a4940(0x25e)],{[_0x262b88[_0x3a4940(0x4a5)]]:_0xd212f,[_0x262b88['offline']]:!_0xd212f}),_0x295f67=_0xd212f?_0x385d1d[_0x3a4940(0x495)](_0x187f4f,null):_0x385d1d['createElement'](_0x35ddaf,null),_0x2ed136=_0x385d1d['useCallback'](()=>{_0xd212f||_0x525984['reconnect']();},[_0xd212f,_0x525984]);function _0x4752a5(){const _0x3625ba=_0x3a4940;return _0x385d1d[_0x3625ba(0x495)](_0x3625ba(0x2f4),{'className':_0x5b823a,'onClick':_0x2ed136},_0x385d1d[_0x3625ba(0x495)]('div',{'className':_0x262b88['onlineStatusIcon']},_0x295f67),_0x385d1d['createElement'](_0x3625ba(0x2f4),{'className':_0x262b88[_0x3625ba(0x4ca)]},_0x1315e5));}return _0xd212f?_0x4752a5():_0x385d1d['createElement'](_0x806671['Tooltip'],{'title':_0x2e0d95['t'](_0x3a4940(0x4d3))},_0x4752a5());}var _0xa6e92=Object[_0x145278(0x507)],_0x48c627=Object[_0x145278(0x16d)],_0x4fe360=(_0x59d45e,_0x34b1f3,_0x3ccb69,_0x16259a)=>{const _0xbfbcc0=_0x145278;for(var _0x285a6f=_0x16259a>0x1?void 0x0:_0x16259a?_0x48c627(_0x34b1f3,_0x3ccb69):_0x34b1f3,_0x68bae0=_0x59d45e[_0xbfbcc0(0x37e)]-0x1,_0x317e73;_0x68bae0>=0x0;_0x68bae0--)(_0x317e73=_0x59d45e[_0x68bae0])&&(_0x285a6f=(_0x16259a?_0x317e73(_0x34b1f3,_0x3ccb69,_0x285a6f):_0x317e73(_0x285a6f))||_0x285a6f);return _0x16259a&&_0x285a6f&&_0xa6e92(_0x34b1f3,_0x3ccb69,_0x285a6f),_0x285a6f;},_0x345229=(_0x4534a9,_0x577f69)=>(_0x281470,_0x361e65)=>_0x577f69(_0x281470,_0x361e65,_0x4534a9);_0x3b531e[_0x145278(0x435)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x4dc4b4,_0x9aabe,_0x513d32,_0x2c72ec){const _0x59fdb9=_0x145278;super(),_0xbb867(this,'_status$',new _0x1e13bb[(_0x59fdb9(0x40f))](_0xfe35ac[_0x59fdb9(0x27d)])),(this[_0x59fdb9(0x31f)]=_0x4dc4b4,this[_0x59fdb9(0x19e)]=_0x9aabe,this[_0x59fdb9(0x22d)]=_0x513d32,this[_0x59fdb9(0x1aa)]=_0x2c72ec,this[_0x59fdb9(0x125)](),this[_0x59fdb9(0x14c)]());}['_initStatusListener'](){const _0x579885=_0x145278;this[_0x579885(0x1e3)](this[_0x579885(0x31f)][_0x579885(0x37c)][_0x579885(0x3f1)](_0x1e13bb[_0x579885(0x44e)](()=>{const _0x1d06d1=_0x579885,_0x39dc55=this[_0x1d06d1(0x31f)]['getFocusedUnit']();return _0x39dc55?this[_0x1d06d1(0x1aa)][_0x1d06d1(0x380)](_0x39dc55[_0x1d06d1(0x453)]()):_0x1e13bb['of'](null);}),_0x1e13bb[_0x579885(0x44e)](_0x4df2cd=>_0x4df2cd?_0x4df2cd[_0x579885(0x4fd)]:_0x1e13bb['of'](_0xfe35ac['NOT_COLLAB'])))['subscribe'](_0x264b49=>{const _0x1114d6=_0x579885;this[_0x1114d6(0x15f)][_0x1114d6(0x155)](_0x264b49);}));}[_0x145278(0x125)](){const _0x49c094=_0x145278;this[_0x49c094(0x1e3)](this[_0x49c094(0x19e)]['registerComponent'](_0x5b624f[_0x49c094(0x332)][_0x49c094(0x3b8)],()=>_0x349f19[_0x49c094(0x1b8)](_0x12de18({'status$':this['_status$'][_0x49c094(0x4de)]()}),this[_0x49c094(0x22d)])));}},_0x3b531e[_0x145278(0x435)]=_0x4fe360([_0x345229(0x0,_0x349f19[_0x145278(0x501)]),_0x345229(0x1,_0x5b624f[_0x145278(0x432)]),_0x345229(0x2,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x345229(0x3,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x446)]))],_0x3b531e['DesktopCollaborationStatusDisplayController']);function _0x12de18(_0x433283){const {status$:_0x5e29bd}=_0x433283;return function(){return _0x385d1d['createElement'](_0x5c616d,{'status$':_0x5e29bd});};}const _0x31b342=_0x349f19['createIdentifier'](_0x145278(0x24c));var _0x3c95b8=Object['defineProperty'],_0x4cf587=Object[_0x145278(0x16d)],_0x4115d5=(_0x5d8641,_0x4d185d,_0x4c1f01,_0x3f7d3c)=>{const _0x59734a=_0x145278;for(var _0x54953d=_0x3f7d3c>0x1?void 0x0:_0x3f7d3c?_0x4cf587(_0x4d185d,_0x4c1f01):_0x4d185d,_0x22a73c=_0x5d8641[_0x59734a(0x37e)]-0x1,_0x34ce3c;_0x22a73c>=0x0;_0x22a73c--)(_0x34ce3c=_0x5d8641[_0x22a73c])&&(_0x54953d=(_0x3f7d3c?_0x34ce3c(_0x4d185d,_0x4c1f01,_0x54953d):_0x34ce3c(_0x54953d))||_0x54953d);return _0x3f7d3c&&_0x54953d&&_0x3c95b8(_0x4d185d,_0x4c1f01,_0x54953d),_0x54953d;},_0x2448e1=(_0x236341,_0x5959c2)=>(_0x19122f,_0x2e23b9)=>_0x5959c2(_0x19122f,_0x2e23b9,_0x236341);_0x3b531e[_0x145278(0x3c4)]=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0x49f566,_0x3cdf02,_0x697fa9,_0x5e2fbd,_0x589724,_0x1d2528){const _0x4d85aa=_0x145278;super(),this[_0x4d85aa(0x163)]=_0x49f566,this[_0x4d85aa(0x385)]=_0x3cdf02,this[_0x4d85aa(0x375)]=_0x697fa9,this[_0x4d85aa(0x3fb)]=_0x5e2fbd,this[_0x4d85aa(0x134)]=_0x589724,_0x1d2528?_0x1d2528==null||_0x1d2528[_0x4d85aa(0x1f2)]()[_0x4d85aa(0x210)](()=>this[_0x4d85aa(0x35a)]()):(this[_0x4d85aa(0x385)]['debug']('[DataLoaderController]',_0x4d85aa(0x4ac)),this[_0x4d85aa(0x35a)]());}async[_0x145278(0x35a)](){const _0x38ed89=_0x145278,_0x263b69=this['_urlService'][_0x38ed89(0x3f3)](_0x38ed89(0x182)),_0x4f88fa=this['_urlService'][_0x38ed89(0x3f3)](_0x38ed89(0x389));if(!_0x263b69||!_0x4f88fa){this[_0x38ed89(0x385)]['debug']('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x4f88fa)){case _0x5b5eaf['UNIVER_SHEET']:{const _0x42e64e=await this['_loadSheet'](_0x263b69);this['_setupSubUnitSync'](_0x42e64e);break;}case _0x5b5eaf['UNIVER_DOC']:{await this[_0x38ed89(0x147)](_0x263b69);break;}default:{this[_0x38ed89(0x385)]['error'](_0x38ed89(0x41a),_0x38ed89(0x44d));break;}}}async[_0x145278(0x31d)](_0x4043da){const _0x1491b2=_0x145278;await this[_0x1491b2(0x2fa)](_0x4043da),_0x4043da[_0x1491b2(0x168)][_0x1491b2(0x3f1)](_0x1e13bb[_0x1491b2(0x1bc)](this[_0x1491b2(0x115)]))[_0x1491b2(0x38f)](_0x26cb30=>{const _0x7ea07a=_0x1491b2;_0x26cb30&&this[_0x7ea07a(0x17c)](_0x26cb30);}),this[_0x1491b2(0x163)]['urlChange$'][_0x1491b2(0x3f1)](_0x1e13bb[_0x1491b2(0x1bc)](this['dispose$']))[_0x1491b2(0x38f)](()=>this[_0x1491b2(0x2fa)](_0x4043da));}[_0x145278(0x17c)](_0xd95323,_0x50e117=!0x1){const _0x433ba3=_0x145278,_0x20b894=this[_0x433ba3(0x163)][_0x433ba3(0x3f3)](_0x433ba3(0x3e1));_0xd95323[_0x433ba3(0x3f2)]()!==_0x20b894&&this['_urlService']['setParam'](_0x433ba3(0x3e1),_0xd95323[_0x433ba3(0x3f2)](),_0x50e117);}async[_0x145278(0x2fa)](_0xabefec){const _0x53eeba=_0x145278;var _0x4f7f26;const _0x31e4aa=this[_0x53eeba(0x163)]['getParam'](_0x53eeba(0x3e1));if(!_0x31e4aa||!_0xabefec[_0x53eeba(0x353)](_0x31e4aa)){const _0x212734=_0xabefec['getUnhiddenWorksheets']()[0x0],_0x25c2f1=_0xabefec['getSheetBySheetId'](_0x212734);if(!_0x25c2f1)return;this[_0x53eeba(0x17c)](_0x25c2f1,!0x0),await this[_0x53eeba(0x375)][_0x53eeba(0x3e9)](_0x4c7a32[_0x53eeba(0x36b)]['id'],{'unitId':_0xabefec[_0x53eeba(0x453)](),'subUnitId':_0x212734});return;}((_0x4f7f26=_0xabefec[_0x53eeba(0x1b2)]())==null?void 0x0:_0x4f7f26[_0x53eeba(0x3f2)]())!==_0x31e4aa&&await this[_0x53eeba(0x375)][_0x53eeba(0x3e9)](_0x4c7a32[_0x53eeba(0x36b)]['id'],{'unitId':_0xabefec['getUnitId'](),'subUnitId':_0x31e4aa});}async['_loadSheet'](_0x1eaaf8){const _0x5a47db=_0x145278;let _0x2c1123=0x0;const _0x33919c=await this['_localCacheService'][_0x5a47db(0x4dc)](_0x1eaaf8);return _0x33919c&&(_0x33919c[_0x5a47db(0x409)]||_0x33919c[_0x5a47db(0x4ad)][_0x5a47db(0x37e)]!==0x0)&&(_0x2c1123=_0x33919c['rev']),_0x2c1123===0x0&&this[_0x5a47db(0x385)][_0x5a47db(0x3e3)](_0x5a47db(0x41a),_0x5a47db(0x220)),this[_0x5a47db(0x134)][_0x5a47db(0x3c5)](_0x1eaaf8,_0x2c1123);}async['_loadDoc'](_0x3502eb){const _0x323e9e=_0x145278;let _0x638a6e=0x0;const _0x37936d=await this['_localCacheService'][_0x323e9e(0x4dc)](_0x3502eb);return _0x37936d&&(_0x37936d['awaitingChangeset']||_0x37936d[_0x323e9e(0x4ad)][_0x323e9e(0x37e)]!==0x0)&&(_0x638a6e=_0x37936d[_0x323e9e(0x261)]),_0x638a6e===0x0&&this[_0x323e9e(0x385)]['debug'](_0x323e9e(0x41a),'fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x323e9e(0x134)]['loadDoc'](_0x3502eb,_0x638a6e);}},_0x3b531e[_0x145278(0x3c4)]=_0x4115d5([_0x2448e1(0x0,_0x31b342),_0x2448e1(0x1,_0x349f19['ILogService']),_0x2448e1(0x2,_0x349f19['ICommandService']),_0x2448e1(0x3,_0x349f19[_0x145278(0x413)](_0x3b531e[_0x145278(0x30a)])),_0x2448e1(0x4,_0x349f19[_0x145278(0x413)](_0x54555c['SnapshotService'])),_0x2448e1(0x5,_0x349f19[_0x145278(0x4f6)](_0x4ce572['IRemoteInstanceService']))],_0x3b531e['DataLoaderController']);var _0x558a5b=Object[_0x145278(0x507)],_0x432b32=Object[_0x145278(0x16d)],_0x5ac813=(_0x14ef41,_0x56ce20,_0x9738a3,_0x28a351)=>{for(var _0x3948e1=_0x28a351>0x1?void 0x0:_0x28a351?_0x432b32(_0x56ce20,_0x9738a3):_0x56ce20,_0x257a40=_0x14ef41['length']-0x1,_0x30e39d;_0x257a40>=0x0;_0x257a40--)(_0x30e39d=_0x14ef41[_0x257a40])&&(_0x3948e1=(_0x28a351?_0x30e39d(_0x56ce20,_0x9738a3,_0x3948e1):_0x30e39d(_0x3948e1))||_0x3948e1);return _0x28a351&&_0x3948e1&&_0x558a5b(_0x56ce20,_0x9738a3,_0x3948e1),_0x3948e1;},_0x294357=(_0x3b23e7,_0x58b3ba)=>(_0x24279d,_0x10619e)=>_0x58b3ba(_0x24279d,_0x10619e,_0x3b23e7);const _0x335144='DEFAULT_FILE_NAME',_0x413259=_0x145278(0x130);let _0x44f32b=class extends _0x349f19['Disposable']{constructor(_0x32603e,_0x3e56f6){const _0x244ac2=_0x145278;super(),this[_0x244ac2(0x31f)]=_0x32603e,this[_0x244ac2(0x28d)]=_0x3e56f6,this[_0x244ac2(0x35a)]();}[_0x145278(0x35a)](){const _0x24dc99=_0x145278;this[_0x24dc99(0x1e3)](this[_0x24dc99(0x31f)][_0x24dc99(0x37c)][_0x24dc99(0x38f)](()=>{const _0x4bd250=_0x24dc99;var _0x5ca9fe;const _0x1d45bc=this['_univerInstanceService'][_0x4bd250(0x2da)]();let _0x58fcb6=(_0x5ca9fe=this[_0x4bd250(0x28d)]['getConfig'](_0x335144))!=null?_0x5ca9fe:_0x413259;_0x1d45bc instanceof _0x349f19[_0x4bd250(0x2db)]&&(_0x58fcb6=_0x1d45bc[_0x4bd250(0x51c)]),document[_0x4bd250(0x548)]=_0x58fcb6;}));}};_0x44f32b=_0x5ac813([_0x294357(0x0,_0x349f19['IUniverInstanceService']),_0x294357(0x1,_0x349f19['IConfigService'])],_0x44f32b);var _0x3cef7f=Object[_0x145278(0x507)],_0x250a58=Object[_0x145278(0x16d)],_0x255c89=(_0x548a67,_0x3f7295,_0x4b31aa,_0x45e32b)=>{const _0x1dc848=_0x145278;for(var _0xe38905=_0x45e32b>0x1?void 0x0:_0x45e32b?_0x250a58(_0x3f7295,_0x4b31aa):_0x3f7295,_0xa9f882=_0x548a67[_0x1dc848(0x37e)]-0x1,_0x425fe7;_0xa9f882>=0x0;_0xa9f882--)(_0x425fe7=_0x548a67[_0xa9f882])&&(_0xe38905=(_0x45e32b?_0x425fe7(_0x3f7295,_0x4b31aa,_0xe38905):_0x425fe7(_0xe38905))||_0xe38905);return _0x45e32b&&_0xe38905&&_0x3cef7f(_0x3f7295,_0x4b31aa,_0xe38905),_0xe38905;},_0x5910f8=(_0x2961b6,_0x1b4373)=>(_0x4ae2c2,_0x146b8b)=>_0x1b4373(_0x4ae2c2,_0x146b8b,_0x2961b6);let _0x499e8e=class{constructor(_0x730f9a,_0x303ca1,_0x5d34e2){const _0x3a946c=_0x145278;this['_configService']=_0x730f9a,this[_0x3a946c(0x4be)]=_0x303ca1,this[_0x3a946c(0x4a0)]=_0x5d34e2,this[_0x3a946c(0x46c)]();}[_0x145278(0x46c)](){const _0x19e2f0=_0x145278;this[_0x19e2f0(0x4be)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x3e4f65,_0x5bf1ae)=>_0x5bf1ae(_0x3e4f65)[_0x19e2f0(0x3f1)](_0x1e13bb[_0x19e2f0(0x1a9)](async _0x30640e=>{const _0x149cd3=_0x19e2f0,_0x20c6d1=_0x30640e;if(_0x20c6d1[_0x149cd3(0x465)]===0x191&&window[_0x149cd3(0x357)](this[_0x149cd3(0x4a0)]['t'](_0x149cd3(0x3a6)))){const _0x10e785=window[_0x149cd3(0x3a1)](window[_0x149cd3(0x4fb)][_0x149cd3(0x144)]);window[_0x149cd3(0x4fb)][_0x149cd3(0x144)]=this[_0x149cd3(0x40e)]()+_0x149cd3(0x339)+_0x10e785;}return _0x20c6d1;}))});}[_0x145278(0x40e)](){const _0x58c33c=_0x145278;var _0x8be53,_0x685d8f;const _0x9f5d8e=this[_0x58c33c(0x28d)][_0x58c33c(0x46f)](_0x3d2741),_0x24019f=this[_0x58c33c(0x28d)][_0x58c33c(0x46f)](_0x4ea523);return(_0x685d8f=(_0x8be53=_0x24019f==null?void 0x0:_0x24019f[_0x58c33c(0x53a)])!=null?_0x8be53:_0x9f5d8e)!=null?_0x685d8f:_0x7b342b;}};_0x499e8e=_0x255c89([_0x5910f8(0x0,_0x349f19['IConfigService']),_0x5910f8(0x1,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)])),_0x5910f8(0x2,_0x349f19['Inject'](_0x349f19[_0x145278(0x267)]))],_0x499e8e);var _0x13d8e0=Object[_0x145278(0x507)],_0x2c2216=Object[_0x145278(0x16d)],_0x1255ed=(_0x58db32,_0x2badcb,_0x347c27,_0x3c6257)=>{const _0x133d64=_0x145278;for(var _0x49c7a8=_0x3c6257>0x1?void 0x0:_0x3c6257?_0x2c2216(_0x2badcb,_0x347c27):_0x2badcb,_0x2e9780=_0x58db32[_0x133d64(0x37e)]-0x1,_0x57b3ed;_0x2e9780>=0x0;_0x2e9780--)(_0x57b3ed=_0x58db32[_0x2e9780])&&(_0x49c7a8=(_0x3c6257?_0x57b3ed(_0x2badcb,_0x347c27,_0x49c7a8):_0x57b3ed(_0x49c7a8))||_0x49c7a8);return _0x3c6257&&_0x49c7a8&&_0x13d8e0(_0x2badcb,_0x347c27,_0x49c7a8),_0x49c7a8;},_0x514b02=(_0x27b6d5,_0x52e63f)=>(_0x2cd4da,_0x1f5e44)=>_0x52e63f(_0x2cd4da,_0x1f5e44,_0x27b6d5);const _0x3bed12=_0x145278(0x285),_0x505d1d='/universer-api/authz';_0x3b531e[_0x145278(0x383)]=class extends _0x349f19[_0x145278(0x1a4)]{constructor(_0x59f042,_0xf46ae9){const _0x36c9dc=_0x145278;super(),this[_0x36c9dc(0x259)]=_0x59f042,this['_configService']=_0xf46ae9,this[_0x36c9dc(0x23b)]();}[_0x145278(0x23b)](){const _0x387c9b=_0x145278,_0x633481=this;this[_0x387c9b(0x1e3)](this['_HTTPService']['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':_0x47193d[_0x387c9b(0x2f1)]({'isMatch'(_0x2ab17e){const _0x1d3442=_0x387c9b;var _0x1a4a28;if(_0x2ab17e[_0x1d3442(0x39d)]===_0x1d3442(0x4e3)&&((_0x1a4a28=_0x2ab17e[_0x1d3442(0x452)])!=null&&_0x1a4a28['body'])){const {objectID:_0x5921c7,objectType:_0x263890}=_0x2ab17e[_0x1d3442(0x452)][_0x1d3442(0x420)]||{};if(!_0x5921c7||_0x263890===void 0x0)return!0x1;const _0x45c06a=_0x633481[_0x1d3442(0x317)]()+'/'+_0x263890+'/object/'+_0x5921c7+'/allowed';if(_0x2ab17e[_0x1d3442(0x3be)]===_0x45c06a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xf1643f){const _0x5279af=_0x387c9b;var _0x2b65d5;return(_0x2b65d5=_0xf1643f[_0x5279af(0x452)])==null?void 0x0:_0x2b65d5[_0x5279af(0x420)];},'mergeParamsToRequest'(_0x55a802,_0x22e4e3){const _0x10d27e=_0x387c9b,_0xe0a18e=_0x633481[_0x10d27e(0x317)]()+'/-/object/-/batch_allowed',_0x3d44d1=_0x55a802[_0x10d27e(0x2b1)]((_0x427450,_0x342b7)=>{const _0x2bd97d=_0x10d27e,{unitID:_0x56b684,objectID:_0x39d8be,objectType:_0x22f9ed,actions:_0x9410c1}=_0x342b7;return _0x427450[_0x56b684]||(_0x427450[_0x56b684]={}),_0x427450[_0x56b684][_0x39d8be]||(_0x427450[_0x56b684][_0x39d8be]={'objectID':_0x39d8be,'objectType':_0x22f9ed,'actions':[]}),_0x427450[_0x56b684][_0x39d8be][_0x2bd97d(0x141)][_0x2bd97d(0x276)](..._0x9410c1),_0x427450;},{}),_0x5d34a1=[];for(const _0x2d0229 in _0x3d44d1)for(const _0x265f9f in _0x3d44d1[_0x2d0229]){const {actions:_0x2cc5ce,objectType:_0x27c2b7}=_0x3d44d1[_0x2d0229][_0x265f9f],_0x5f3a26=[...new Set(_0x2cc5ce)];_0x5d34a1[_0x10d27e(0x276)]({'unitID':_0x2d0229,'objectID':_0x265f9f,'objectType':_0x27c2b7,'actions':_0x5f3a26});}return new _0x47193d[(_0x10d27e(0x197))](_0x10d27e(0x4e3),_0xe0a18e,{'headers':_0x22e4e3[_0x10d27e(0x4bd)],'withCredentials':_0x22e4e3['withCredentials'],'responseType':_0x22e4e3[_0x10d27e(0x143)],'body':{'requests':_0x5d34a1}});}},{'distributeResult'(_0x34f6c9,_0x122643){const _0x4aba0e=_0x387c9b,{objectActions:_0x36bcbb}=_0x34f6c9;return _0x122643[_0x4aba0e(0x15d)](_0xb58552=>{const _0x577ad0=_0x4aba0e,{unitID:_0x59706e,objectID:_0x4fdff7,actions:_0x250e30}=_0xb58552,_0x2a36f2=_0x36bcbb[_0x577ad0(0x373)](_0x5b832d=>_0x5b832d[_0x577ad0(0x240)]===_0x59706e&&_0x5b832d['objectID']===_0x4fdff7),_0x874369=_0x250e30[_0x577ad0(0x15d)](_0x3dbbb7=>_0x2a36f2==null?void 0x0:_0x2a36f2[_0x577ad0(0x141)][_0x577ad0(0x373)](_0x396d5e=>_0x396d5e['action']===_0x3dbbb7))[_0x577ad0(0x257)](_0x31784f=>!!_0x31784f);return{'config':_0xb58552,'result':{'actions':_0x874369,'error':_0x34f6c9['error']}};});}})}));}[_0x145278(0x317)](){const _0xbc0f96=_0x145278;var _0x317195,_0x365661;const _0x35ae1a=this[_0xbc0f96(0x28d)]['getConfig'](_0x3bed12),_0x151ba6=this[_0xbc0f96(0x28d)][_0xbc0f96(0x46f)](_0x4ea523);return(_0x365661=(_0x317195=_0x151ba6==null?void 0x0:_0x151ba6['authzUrl'])!=null?_0x317195:_0x35ae1a)!=null?_0x365661:_0x505d1d;}async[_0x145278(0x169)](_0x95db13){const _0x1ebe1=_0x145278,_0x3634a0=this[_0x1ebe1(0x317)]()+'/'+_0x95db13['objectType']+_0x1ebe1(0x38a);return(await this[_0x1ebe1(0x259)][_0x1ebe1(0x1e6)](_0x3634a0,{'body':_0x95db13}))[_0x1ebe1(0x420)]['objectID']||'';}async[_0x145278(0x47a)](_0x14c91e){const _0x4d7ae8=_0x145278,_0x2541ee=this[_0x4d7ae8(0x317)]()+'/-/object/list';return(await this['_HTTPService']['post'](_0x2541ee,{'body':_0x14c91e}))['body'][_0x4d7ae8(0x4f9)];}async[_0x145278(0x4f7)](_0x122382){const _0x22d040=_0x145278,_0x2f2bd4=this[_0x22d040(0x317)]()+'/'+_0x122382['objectType']+_0x22d040(0x52d)+_0x122382[_0x22d040(0x2a3)];await this['_HTTPService'][_0x22d040(0x378)](_0x2f2bd4,{'body':_0x122382});}async[_0x145278(0x278)](_0x3e0a94){const _0x19ec9a=_0x145278,_0x20fc05=this[_0x19ec9a(0x317)]()+'/'+_0x3e0a94[_0x19ec9a(0x40a)]+_0x19ec9a(0x52d)+_0x3e0a94['objectID']+_0x19ec9a(0x528);return(await this[_0x19ec9a(0x259)][_0x19ec9a(0x1e6)](_0x20fc05,{'body':_0x3e0a94}))[_0x19ec9a(0x420)][_0x19ec9a(0x141)];}async[_0x145278(0x165)](_0x45f474){const _0x19aa37=_0x145278,_0x3ace52=this[_0x19aa37(0x317)]()+_0x19aa37(0x1e9);return(await this['_HTTPService']['post'](_0x3ace52,{'body':{'requests':_0x45f474}}))[_0x19aa37(0x420)][_0x19aa37(0x498)];}async[_0x145278(0x138)](_0x2d7ea6){const _0x47a529=_0x145278,_0x41ec69=this[_0x47a529(0x317)]()+'/'+_0x2d7ea6[_0x47a529(0x40a)]+_0x47a529(0x43c),_0x37153e=await this[_0x47a529(0x259)][_0x47a529(0x1e6)](_0x41ec69,{'body':_0x2d7ea6});return{'roles':_0x37153e[_0x47a529(0x420)][_0x47a529(0x29a)],'actions':_0x37153e[_0x47a529(0x420)][_0x47a529(0x141)]};}async[_0x145278(0x1f0)](_0x1044da){const _0x35adc7=_0x145278,_0x45e130=this[_0x35adc7(0x317)]()+_0x35adc7(0x286);await this['_HTTPService'][_0x35adc7(0x4f4)](_0x45e130,{'params':{'collaboratorID':_0x1044da[_0x35adc7(0x368)],'objectID':_0x1044da[_0x35adc7(0x2a3)],'unitID':_0x1044da['unitID']}});}async[_0x145278(0x464)](_0x3cdaf7){const _0x7452fd=_0x145278,_0x46db5b=this[_0x7452fd(0x317)]()+_0x7452fd(0x286);await this[_0x7452fd(0x259)][_0x7452fd(0x2cc)](_0x46db5b,{'body':_0x3cdaf7});}async[_0x145278(0x15e)](_0x1a8c09){const _0x4ee32b=_0x145278,_0x52b894=this[_0x4ee32b(0x317)]()+_0x4ee32b(0x286);await this[_0x4ee32b(0x259)]['post'](_0x52b894,{'body':_0x1a8c09});}async[_0x145278(0x160)](_0x2d195c){const _0x4f7ed7=_0x145278,_0x45611c=this['_getAPIPrefixPath']()+'/collaborator';return(await this[_0x4f7ed7(0x259)][_0x4f7ed7(0x4b6)](_0x45611c,{'params':{'objectID':_0x2d195c[_0x4f7ed7(0x2a3)],'unitID':_0x2d195c['unitID']}}))[_0x4f7ed7(0x420)][_0x4f7ed7(0x191)];}async[_0x145278(0x550)](_0x173768){const _0x362575=_0x145278,_0x23faef=this['_getAPIPrefixPath']()+_0x362575(0x286);await this[_0x362575(0x259)][_0x362575(0x378)](_0x23faef,{'body':_0x173768});}},_0x3b531e[_0x145278(0x383)]=_0x1255ed([_0x514b02(0x0,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)])),_0x514b02(0x1,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x424)]))],_0x3b531e['AuthzIoHttpService']);var _0x2860e6=Object[_0x145278(0x507)],_0x14f299=Object['getOwnPropertyDescriptor'],_0x58ada3=(_0x203759,_0x3193a3,_0x750a9b,_0x811a92)=>{const _0x532ebb=_0x145278;for(var _0x731249=_0x811a92>0x1?void 0x0:_0x811a92?_0x14f299(_0x3193a3,_0x750a9b):_0x3193a3,_0x30267d=_0x203759[_0x532ebb(0x37e)]-0x1,_0x7c9a8c;_0x30267d>=0x0;_0x30267d--)(_0x7c9a8c=_0x203759[_0x30267d])&&(_0x731249=(_0x811a92?_0x7c9a8c(_0x3193a3,_0x750a9b,_0x731249):_0x7c9a8c(_0x731249))||_0x731249);return _0x811a92&&_0x731249&&_0x2860e6(_0x3193a3,_0x750a9b,_0x731249),_0x731249;},_0x222d7b=(_0x5d1755,_0x3d0df6)=>(_0x3d8121,_0x41d0ea)=>_0x3d0df6(_0x3d8121,_0x41d0ea,_0x5d1755);let _0x4f3ef6=class{constructor(_0x32f92e){const _0x5447a7=_0x145278;this[_0x5447a7(0x4be)]=_0x32f92e,this[_0x5447a7(0x1b0)]();}[_0x145278(0x1b0)](){const _0x28e812=_0x145278;this[_0x28e812(0x4be)]['registerHTTPInterceptor']({'interceptor':(_0x4f74f4,_0x232b19)=>{const _0x19a100=_0x28e812,_0x300d21=_0x4f74f4[_0x19a100(0x4bd)],_0x48fede=_0x5bb22a[_0x19a100(0x2ed)]();return _0x48fede&&_0x300d21[_0x19a100(0x253)](_0x19a100(0x32b),_0x48fede),_0x232b19(_0x4f74f4);}});}};_0x4f3ef6=_0x58ada3([_0x222d7b(0x0,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)]))],_0x4f3ef6);var _0x4f61c3=Object[_0x145278(0x507)],_0x4ce4dc=Object[_0x145278(0x16d)],_0x2887e3=(_0x3dc3d2,_0x3838f5,_0x1985de,_0x4d7dc7)=>{for(var _0x20e40a=_0x4d7dc7>0x1?void 0x0:_0x4d7dc7?_0x4ce4dc(_0x3838f5,_0x1985de):_0x3838f5,_0x2e5212=_0x3dc3d2['length']-0x1,_0x54cda1;_0x2e5212>=0x0;_0x2e5212--)(_0x54cda1=_0x3dc3d2[_0x2e5212])&&(_0x20e40a=(_0x4d7dc7?_0x54cda1(_0x3838f5,_0x1985de,_0x20e40a):_0x54cda1(_0x20e40a))||_0x20e40a);return _0x4d7dc7&&_0x20e40a&&_0x4f61c3(_0x3838f5,_0x1985de,_0x20e40a),_0x20e40a;},_0x6a6a6=(_0x19acce,_0x51bcee)=>(_0x1f74c8,_0x354086)=>_0x51bcee(_0x1f74c8,_0x354086,_0x19acce);const _0x3612cd=[_0x145278(0x2ce),_0x145278(0x3e6),'image/jpg',_0x145278(0x333),_0x145278(0x485)],_0x5de3b5=0x5*0x400*0x400,_0x3245f6='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x2be33f=_0x145278(0x457),_0x1aa15f=_0x145278(0x2f0),_0x269115=_0x145278(0x30b);_0x3b531e['ImageIoService']=class{constructor(_0x412b7f,_0x2203d5,_0x608d2b){const _0x197a2d=_0x145278;_0xbb867(this,_0x197a2d(0x530),0x0),_0xbb867(this,_0x197a2d(0x1d2),new _0x1e13bb[(_0x197a2d(0x410))]()),_0xbb867(this,_0x197a2d(0x4eb),this[_0x197a2d(0x1d2)]),_0xbb867(this,_0x197a2d(0x3a0),new Map()),(this[_0x197a2d(0x4be)]=_0x412b7f,this[_0x197a2d(0x28d)]=_0x2203d5,this[_0x197a2d(0x31f)]=_0x608d2b);}[_0x145278(0x2d5)](_0xe381ba){const _0x132b1b=_0x145278;this[_0x132b1b(0x530)]=_0xe381ba,this[_0x132b1b(0x1d2)][_0x132b1b(0x155)](_0xe381ba);}['getImageSourceCache'](_0x3456b4,_0xfcb03a){const _0x11b110=_0x145278;if(_0xfcb03a===_0xaccc08['ImageSourceType'][_0x11b110(0x4d4)]){const _0xbc7a3d=new Image();return _0xbc7a3d[_0x11b110(0x43b)]=_0x3456b4,_0xbc7a3d;}return this['_imageSourceCache'][_0x11b110(0x4b6)](_0x3456b4);}[_0x145278(0x36a)](_0x1b4cb2,_0xefb485,_0x3f0a4f){const _0x18de75=_0x145278;_0xefb485===_0xaccc08[_0x18de75(0x48a)][_0x18de75(0x4d4)]||_0x3f0a4f==null||this[_0x18de75(0x3a0)][_0x18de75(0x253)](_0x1b4cb2,_0x3f0a4f);}async['getImage'](_0x1b03bd){const _0x5a259e=_0x145278;try{const _0x453ffb=this['_replaceFileID'](this[_0x5a259e(0x214)](),''+_0x1b03bd),_0x3f69c9=(await this[_0x5a259e(0x4be)][_0x5a259e(0x4b6)](_0x453ffb))['body'];if(_0x3f69c9[_0x5a259e(0x4aa)]&&_0x3f69c9[_0x5a259e(0x4aa)]['code']===_0x21d834['OK']){const _0x2f8340=new URL(_0x3f69c9[_0x5a259e(0x3be)],this[_0x5a259e(0x3bd)]())[_0x5a259e(0x2ad)]();return Promise['resolve'](_0x2f8340);}return Promise[_0x5a259e(0x281)](_0x3f69c9[_0x5a259e(0x4aa)]);}catch(_0x3ea692){return Promise['reject'](_0x3ea692);}}async[_0x145278(0x2ae)](_0x54b65a){const _0x1990e5=_0x145278;let _0x14ce05='';if(!_0x3612cd[_0x1990e5(0x330)](_0x54b65a[_0x1990e5(0x389)]))return this[_0x1990e5(0x4fe)](),Promise[_0x1990e5(0x281)](new Error(_0xaccc08[_0x1990e5(0x1f8)][_0x1990e5(0x521)]));if(_0x54b65a[_0x1990e5(0x35e)]>_0x5de3b5)return this[_0x1990e5(0x4fe)](),Promise[_0x1990e5(0x281)](new Error(_0xaccc08['ImageUploadStatusType'][_0x1990e5(0x4a9)]));try{const _0xf7fd4b=new FormData();_0xf7fd4b[_0x1990e5(0x3d1)](_0x1990e5(0x288),_0x54b65a);const _0x3eae83=this[_0x1990e5(0x31f)][_0x1990e5(0x2da)](),_0x1e6247=_0x3eae83==null?void 0x0:_0x3eae83[_0x1990e5(0x453)]();if(!_0x1e6247)throw new Error(_0x1990e5(0x26d));const _0xa9adad=this[_0x1990e5(0x215)]()+_0x1990e5(0x310)+_0x54b65a['size'][_0x1990e5(0x2ad)]()+_0x1990e5(0x282)+_0x521080[_0x1990e5(0x511)]+_0x1990e5(0x133)+encodeURIComponent(_0x1e6247),_0x5ae4db=await(await fetch(_0xa9adad,{'method':'POST','body':_0xf7fd4b}))[_0x1990e5(0x40d)]();if(typeof _0x5ae4db[_0x1990e5(0x41b)]!=_0x1990e5(0x1eb))return this[_0x1990e5(0x4fe)](),Promise['reject'](new Error(_0xaccc08[_0x1990e5(0x1f8)][_0x1990e5(0x2bc)]));_0x14ce05=_0x5ae4db[_0x1990e5(0x41b)];}catch{return this[_0x1990e5(0x4fe)](),Promise[_0x1990e5(0x281)](new Error(_0xaccc08[_0x1990e5(0x1f8)][_0x1990e5(0x2bc)]));}return new Promise((_0x427696,_0x179b41)=>{const _0x43edab=_0x1990e5,_0x34444f=new FileReader();_0x34444f[_0x43edab(0x1ce)](_0x54b65a),_0x34444f[_0x43edab(0x2b7)]=_0x3bdce1=>{const _0x5c292b=_0x43edab;var _0x45131d;const _0x201f8d=(_0x45131d=_0x3bdce1[_0x5c292b(0x50e)])==null?void 0x0:_0x45131d[_0x5c292b(0x42e)];if(_0x201f8d==null){this[_0x5c292b(0x4fe)](),_0x179b41(new Error(_0xaccc08[_0x5c292b(0x1f8)][_0x5c292b(0x2bc)]));return;}const _0x10613b=_0x349f19['Tools'][_0x5c292b(0x4d7)](0x6);_0x427696({'imageId':_0x10613b,'imageSourceType':_0xaccc08['ImageSourceType'][_0x5c292b(0x531)],'source':_0x14ce05,'base64Cache':_0x201f8d,'status':_0xaccc08[_0x5c292b(0x1f8)][_0x5c292b(0x3d2)]}),this['_decreaseWaiting']();};});}['_getUploadFileURL'](){const _0x3351ab=_0x145278;var _0x4df41a,_0x24d531;const _0x325356=this[_0x3351ab(0x28d)][_0x3351ab(0x46f)](_0x3245f6),_0x91c364=this[_0x3351ab(0x28d)][_0x3351ab(0x46f)](_0x4ea523);return(_0x24d531=(_0x4df41a=_0x91c364==null?void 0x0:_0x91c364['uploadFileServerUrl'])!=null?_0x4df41a:_0x325356)!=null?_0x24d531:_0x2be33f;}[_0x145278(0x214)](){const _0x3704be=_0x145278;var _0x5aa19e,_0x5480e4;const _0xb8bbff=this['_configService'][_0x3704be(0x46f)](_0x1aa15f),_0x37feab=this[_0x3704be(0x28d)][_0x3704be(0x46f)](_0x4ea523);return(_0x5480e4=(_0x5aa19e=_0x37feab==null?void 0x0:_0x37feab['signUrlServerUrl'])!=null?_0x5aa19e:_0xb8bbff)!=null?_0x5480e4:_0x269115;}[_0x145278(0x3bd)](){const _0x2d4425=_0x145278;var _0x2e5b26;const _0x55d7c4=this[_0x2d4425(0x28d)][_0x2d4425(0x46f)](_0x4ea523);return(_0x2e5b26=_0x55d7c4==null?void 0x0:_0x55d7c4['downloadEndpointUrl'])!=null?_0x2e5b26:location['origin'];}['_replaceFileID'](_0x47fbc6,_0x5502c3){const _0x5912a4=_0x145278;return _0x47fbc6['replace'](_0x5912a4(0x553),_0x5502c3);}[_0x145278(0x4fe)](){const _0xb3c1bc=_0x145278;this['_waitCount']-=0x1,this['_change$']['next'](this[_0xb3c1bc(0x530)]);}},_0x3b531e[_0x145278(0x47d)]=_0x2887e3([_0x6a6a6(0x0,_0x349f19['Inject'](_0x47193d[_0x145278(0x3f8)])),_0x6a6a6(0x1,_0x349f19[_0x145278(0x424)]),_0x6a6a6(0x2,_0x349f19['Inject'](_0x349f19[_0x145278(0x501)]))],_0x3b531e[_0x145278(0x47d)]);var _0x11760e=Object['defineProperty'],_0x4297c2=Object['getOwnPropertyDescriptor'],_0x1b1ef6=(_0x39cae4,_0x5d68cf,_0x213e5d,_0x8b01cd)=>{const _0x4faec5=_0x145278;for(var _0x1fff61=_0x8b01cd>0x1?void 0x0:_0x8b01cd?_0x4297c2(_0x5d68cf,_0x213e5d):_0x5d68cf,_0xae61a5=_0x39cae4[_0x4faec5(0x37e)]-0x1,_0x3bf618;_0xae61a5>=0x0;_0xae61a5--)(_0x3bf618=_0x39cae4[_0xae61a5])&&(_0x1fff61=(_0x8b01cd?_0x3bf618(_0x5d68cf,_0x213e5d,_0x1fff61):_0x3bf618(_0x1fff61))||_0x1fff61);return _0x8b01cd&&_0x1fff61&&_0x11760e(_0x5d68cf,_0x213e5d,_0x1fff61),_0x1fff61;},_0x309dcc=(_0x14b3db,_0x16d487)=>(_0x347eb6,_0x2c233d)=>_0x16d487(_0x347eb6,_0x2c233d,_0x14b3db);let _0x531ea0=class extends _0x349f19[_0x145278(0x4e9)]{constructor(_0xb7a0fa,_0x5d9f37,_0x4df948,_0x2fbb52,_0x342ad3){const _0xf59903=_0x145278;super(),this[_0xf59903(0x22d)]=_0xb7a0fa,this[_0xf59903(0x31f)]=_0x5d9f37,this[_0xf59903(0x201)]=_0x4df948,this[_0xf59903(0x49e)]=_0x2fbb52,this['_localeService']=_0x342ad3,this[_0xf59903(0x4ef)](),this[_0xf59903(0x334)]();}['_initCloseConn'](){const _0x3ed27d=_0x145278,_0x1ee09d=async _0x305ffe=>{const _0x467269=_0x2aa9;(await this[_0x467269(0x49e)]['requireSession'](_0x305ffe))[_0x467269(0x403)]['pipe'](_0x501e2e[_0x467269(0x257)](_0x30cfc1=>_0x30cfc1[_0x467269(0x1c0)]===_0x54555c[_0x467269(0x547)][_0x467269(0x2ca)]),_0x501e2e['takeUntil'](this[_0x467269(0x115)]))['subscribe'](_0x1c8ae9=>{const _0x2e9d0d=_0x467269,_0x4cec6b=_0x1c8ae9,{reason:_0x590de1}=_0x4cec6b[_0x2e9d0d(0x2d2)];this['_injector']['get'](_0x5b624f[_0x2e9d0d(0x434)])[_0x2e9d0d(0x303)]({'type':_0x806671[_0x2e9d0d(0x116)][_0x2e9d0d(0x455)],'content':this[_0x2e9d0d(0x207)]['t'](_0x2e9d0d(0x228))+'('+_0x590de1+')'}),this[_0x2e9d0d(0x201)][_0x2e9d0d(0x1c2)](new _0x4c7a32[(_0x2e9d0d(0x287))](_0x305ffe)['id'],!0x1),this[_0x2e9d0d(0x49e)][_0x2e9d0d(0x1da)](_0x305ffe);});};_0x1e13bb['merge'](this[_0x3ed27d(0x31f)][_0x3ed27d(0x393)](_0x349f19[_0x3ed27d(0x426)][_0x3ed27d(0x431)]),this[_0x3ed27d(0x31f)][_0x3ed27d(0x393)](_0x349f19['UniverInstanceType']['UNIVER_DOC']))['pipe'](_0x501e2e[_0x3ed27d(0x15d)](_0x5b14ac=>_0x5b14ac[_0x3ed27d(0x453)]()),_0x501e2e[_0x3ed27d(0x257)](_0x29f065=>!_0x349f19[_0x3ed27d(0x264)](_0x29f065)),_0x501e2e[_0x3ed27d(0x1bc)](this[_0x3ed27d(0x115)]))[_0x3ed27d(0x38f)](_0x22ba2b=>{_0x1ee09d(_0x22ba2b);});}[_0x145278(0x4ef)](){const _0x263d1f=_0x145278,_0x51b01e=async _0x4f92b3=>{const _0xef144f=_0x2aa9;(await this[_0xef144f(0x49e)][_0xef144f(0x4ab)](_0x4f92b3))[_0xef144f(0x403)]['pipe'](_0x501e2e[_0xef144f(0x257)](_0x312ac0=>_0x312ac0[_0xef144f(0x1c0)]===_0x54555c[_0xef144f(0x547)]['UPDATE_PERMISSION_OBJ']),_0x501e2e[_0xef144f(0x1bc)](this[_0xef144f(0x115)]))[_0xef144f(0x38f)](_0x15ffd2=>{const _0x57770e=_0xef144f,_0x524ae7=_0x15ffd2,{objectId:_0x2a29b2}=_0x524ae7['data'],_0x5ca9b6=this[_0x57770e(0x22d)][_0x57770e(0x4b6)](_0xa0e5aa['SheetPermissionInitController']);_0x2a29b2===_0x4f92b3?_0x5ca9b6['initWorkbookPermissionChange'](_0x4f92b3):_0x5ca9b6[_0x57770e(0x3d4)](_0x4f92b3,_0x2a29b2);});};_0x1e13bb[_0x263d1f(0x1a2)](this[_0x263d1f(0x31f)][_0x263d1f(0x393)](_0x349f19[_0x263d1f(0x426)][_0x263d1f(0x431)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x349f19[_0x263d1f(0x426)][_0x263d1f(0x22e)]))[_0x263d1f(0x3f1)](_0x501e2e[_0x263d1f(0x15d)](_0x56ef21=>_0x56ef21[_0x263d1f(0x453)]()),_0x501e2e[_0x263d1f(0x257)](_0x6d0d05=>!_0x349f19[_0x263d1f(0x264)](_0x6d0d05)),_0x501e2e[_0x263d1f(0x1bc)](this[_0x263d1f(0x115)]))['subscribe'](_0x1e3a9a=>{_0x51b01e(_0x1e3a9a);});}};_0x531ea0=_0x1b1ef6([_0x309dcc(0x0,_0x349f19[_0x145278(0x413)](_0x349f19[_0x145278(0x3b7)])),_0x309dcc(0x1,_0x349f19[_0x145278(0x501)]),_0x309dcc(0x2,_0x349f19['IPermissionService']),_0x309dcc(0x3,_0x349f19['Inject'](_0x3b531e[_0x145278(0x21f)])),_0x309dcc(0x4,_0x349f19['Inject'](_0x349f19['LocaleService']))],_0x531ea0);var _0x45243c=Object[_0x145278(0x507)],_0x50cb65=Object[_0x145278(0x16d)],_0x1dc25e=(_0x3bac71,_0x13efd9,_0x12811e,_0x4fe422)=>{for(var _0x43ee75=_0x4fe422>0x1?void 0x0:_0x4fe422?_0x50cb65(_0x13efd9,_0x12811e):_0x13efd9,_0x277f11=_0x3bac71['length']-0x1,_0x349ecb;_0x277f11>=0x0;_0x277f11--)(_0x349ecb=_0x3bac71[_0x277f11])&&(_0x43ee75=(_0x4fe422?_0x349ecb(_0x13efd9,_0x12811e,_0x43ee75):_0x349ecb(_0x43ee75))||_0x43ee75);return _0x4fe422&&_0x43ee75&&_0x45243c(_0x13efd9,_0x12811e,_0x43ee75),_0x43ee75;},_0x56f810=(_0x3b53f3,_0x485564)=>(_0x5bd3f8,_0x602784)=>_0x485564(_0x5bd3f8,_0x602784,_0x3b53f3);_0x3b531e[_0x145278(0x1fd)]=class{constructor(_0x4477ac,_0x4d238a){const _0x585aca=_0x145278;this['_configService']=_0x4477ac,this[_0x585aca(0x4be)]=_0x4d238a;}async[_0x145278(0x4e7)](_0x400bc9,_0x4ac4d2){const _0x55c10a=_0x145278;var _0x4e926a;const {unitID:_0x325687,type:_0x4c1869,revision:_0x2b3372=0x0}=_0x4ac4d2,_0x329434=this['_getSnapshotAPIPrefix']()+'/'+_0x4c1869+'/unit/'+_0x325687+_0x55c10a(0x537)+_0x2b3372,_0x20a7d3=(await this[_0x55c10a(0x4be)]['get'](_0x329434))[_0x55c10a(0x420)],_0x501abf=(_0x4e926a=_0x20a7d3[_0x55c10a(0x439)])==null?void 0x0:_0x4e926a[_0x55c10a(0x3bc)];if(_0x501abf){const _0x3b14cc=_0x501abf==null?void 0x0:_0x501abf['originalMeta'],_0x571c1f=_0x54555c['textEncoder']['encode'](_0x54555c[_0x55c10a(0x305)](_0x3b14cc));_0x501abf[_0x55c10a(0x272)]=_0x571c1f,Object[_0x55c10a(0x512)](_0x501abf[_0x55c10a(0x2b9)])['forEach'](([,_0x281210])=>{const _0x5b6f50=_0x55c10a,_0x4fdcd8=_0x281210[_0x5b6f50(0x272)],_0x371dc8=_0x54555c[_0x5b6f50(0x222)][_0x5b6f50(0x224)](_0x54555c['b64DecodeUnicode'](_0x4fdcd8));_0x281210['originalMeta']=_0x371dc8;});}return _0x20a7d3;}async[_0x145278(0x150)](_0x1a3343,_0x5c914d){const _0x273383=_0x145278,{unitID:_0x5d6131,type:_0x35009a,blockID:_0x23349d}=_0x5c914d,_0x482d0e=this['_getAPIPrefix']()+'/'+_0x35009a+_0x273383(0x209)+_0x5d6131+_0x273383(0x1cd)+_0x23349d;return(await this[_0x273383(0x4be)][_0x273383(0x4b6)](_0x482d0e))[_0x273383(0x420)];}async['getDeserializedSheetBlock'](_0x19043d,_0x434f5f){const _0x2088ae=_0x145278,{unitID:_0x3d0167,type:_0xe72bc,blockID:_0x4890fe}=_0x434f5f,_0x4c0619=this[_0x2088ae(0x1ff)]()+_0x2088ae(0x1cd)+_0xe72bc+_0x2088ae(0x209)+_0x3d0167+_0x2088ae(0x1cd)+_0x4890fe;return(await this[_0x2088ae(0x4be)][_0x2088ae(0x4b6)](_0x4c0619))[_0x2088ae(0x420)];}async[_0x145278(0x296)](_0x3cbaf9,_0xad3eb6){const _0x2f5b96=_0x145278,{unitID:_0x558893,type:_0x51a869,from:_0x539141,to:_0x379f94}=_0xad3eb6,_0x56e6c0=this[_0x2f5b96(0x1ff)]()+'/'+_0x51a869+_0x2f5b96(0x209)+_0x558893+'/fetchmissing?from='+_0x539141+'&to='+_0x379f94;return(await this[_0x2f5b96(0x4be)][_0x2f5b96(0x4b6)](_0x56e6c0))[_0x2f5b96(0x420)];}[_0x145278(0x230)](){const _0x267417=_0x145278;var _0x501c59;return(_0x501c59=this[_0x267417(0x28d)][_0x267417(0x46f)](_0x1fe014))!=null?_0x501c59:this[_0x267417(0x1ff)]();}[_0x145278(0x1ff)](){const _0x4dc010=_0x145278;var _0x2a3af0,_0x4b1ea5;const _0x1b16cb=this['_configService'][_0x4dc010(0x46f)](_0x1f76a6),_0x363c91=this[_0x4dc010(0x28d)][_0x4dc010(0x46f)](_0x4ea523);return(_0x4b1ea5=(_0x2a3af0=_0x363c91==null?void 0x0:_0x363c91[_0x4dc010(0x32d)])!=null?_0x2a3af0:_0x1b16cb)!=null?_0x4b1ea5:_0x137d51;}async[_0x145278(0x471)](_0x4c200e,_0x2230d8){const _0x24c60b=_0x145278,_0x3d4392='/universer-api/snapshot/'+_0x2230d8['type']+_0x24c60b(0x209)+_0x2230d8['unitID']+'/resources';return(await this['_httpService'][_0x24c60b(0x4b6)](_0x3d4392,{'params':{'resourceId':JSON[_0x24c60b(0x140)](_0x2230d8[_0x24c60b(0x2a0)])}}))[_0x24c60b(0x420)];}['saveSnapshot'](){const _0x26eda3=_0x145278;throw new Error(_0x26eda3(0x349));}[_0x145278(0x1b1)](){const _0x6a5d12=_0x145278;throw new Error(_0x6a5d12(0x349));}[_0x145278(0x181)](){const _0x432b11=_0x145278;throw new Error(_0x432b11(0x349));}[_0x145278(0x40b)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x145278(0x34d)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x3b531e['SnapshotServerOverHTTPService']=_0x1dc25e([_0x56f810(0x0,_0x349f19[_0x145278(0x424)]),_0x56f810(0x1,_0x349f19[_0x145278(0x413)](_0x47193d[_0x145278(0x3f8)]))],_0x3b531e[_0x145278(0x1fd)]);var _0x454eef=Object['defineProperty'],_0x5abc9c=Object['getOwnPropertyDescriptor'],_0x11ef68=(_0x1b2603,_0x3d390b,_0x1b3c32,_0x1e7d4)=>{const _0x56cbe6=_0x145278;for(var _0x44e567=_0x1e7d4>0x1?void 0x0:_0x1e7d4?_0x5abc9c(_0x3d390b,_0x1b3c32):_0x3d390b,_0x2f63c3=_0x1b2603[_0x56cbe6(0x37e)]-0x1,_0xd937a7;_0x2f63c3>=0x0;_0x2f63c3--)(_0xd937a7=_0x1b2603[_0x2f63c3])&&(_0x44e567=(_0x1e7d4?_0xd937a7(_0x3d390b,_0x1b3c32,_0x44e567):_0xd937a7(_0x44e567))||_0x44e567);return _0x1e7d4&&_0x44e567&&_0x454eef(_0x3d390b,_0x1b3c32,_0x44e567),_0x44e567;},_0x52c408=(_0x808ff3,_0x51e11c)=>(_0x57021d,_0x1d77e1)=>_0x51e11c(_0x57021d,_0x1d77e1,_0x808ff3);let _0x761cdc=class extends _0x349f19[_0x145278(0x2f2)]{constructor(_0x49cd72,_0x4b703c,_0x26c44e,_0x18ef66,_0x188853){const _0x269801=_0x145278;super(_0x49cd72,_0x4b703c,_0x26c44e),this[_0x269801(0x28a)]=_0x18ef66,this[_0x269801(0x385)]=_0x188853;}['transformUndoRedo'](_0x597898,_0x36bd30){const _0xcfe476=_0x145278,_0x296ee7=this[_0xcfe476(0x244)](_0x597898);if(_0x296ee7)try{const _0x59fea7=this[_0xcfe476(0x4b7)](_0x296ee7,_0x36bd30);this[_0xcfe476(0x268)](_0x597898,_0x59fea7);}catch(_0x318786){this[_0xcfe476(0x385)][_0xcfe476(0x4aa)](_0xcfe476(0x4a1),_0x318786),this['_clearUndo'](_0x597898);}const _0x54c94a=this['_getRedoStack'](_0x597898);if(_0x54c94a)try{const _0x3ed4c2=this['_transformStack'](_0x54c94a,_0x36bd30);this['_substituteRedoStack'](_0x597898,_0x3ed4c2);}catch(_0x32c08e){this[_0xcfe476(0x385)][_0xcfe476(0x4aa)](_0x32c08e),this[_0xcfe476(0x396)](_0x597898);}}[_0x145278(0x234)](_0x391a7a){const _0x4306dd=_0x145278,_0x3eeee2=this[_0x4306dd(0x244)](_0x391a7a);_0x3eeee2&&(_0x3eeee2[_0x4306dd(0x37e)]=0x0,this[_0x4306dd(0x3de)]());}[_0x145278(0x396)](_0x3bce46){const _0x793e42=_0x145278,_0x25af6a=this[_0x793e42(0x39c)](_0x3bce46);_0x25af6a&&(_0x25af6a[_0x793e42(0x37e)]=0x0,this[_0x793e42(0x3de)]());}['_substituteUndoStack'](_0x7d83d4,_0x5e8a9a){const _0x562c2c=_0x145278;this[_0x562c2c(0x460)][_0x562c2c(0x253)](_0x7d83d4,_0x5e8a9a),this[_0x562c2c(0x3de)]();}[_0x145278(0x273)](_0x51fe35,_0x4af11a){const _0x4fa3cd=_0x145278;this[_0x4fa3cd(0x2aa)][_0x4fa3cd(0x253)](_0x51fe35,_0x4af11a),this[_0x4fa3cd(0x3de)]();}[_0x145278(0x4b7)](_0xc9eb38,_0x3fadf7){const _0x20492d=_0x145278,_0x2d6ddf=[];let _0xf22ad=_0x3fadf7,_0x43650c=_0x3fadf7;for(let _0x310826=_0xc9eb38[_0x20492d(0x37e)]-0x1;_0x310826>=0x0;_0x310826--){const {unitID:_0x5e70f5,undoMutations:_0xcc2cec,redoMutations:_0x298dd1}=_0xc9eb38[_0x310826],_0x128a52=this[_0x20492d(0x28a)][_0x20492d(0x21c)](_0xf22ad,_0xcc2cec),_0x121cd3=this['_transformService'][_0x20492d(0x21c)](_0x43650c,_0x298dd1);if(_0x54555c[_0x20492d(0x43d)](_0x128a52)||_0x54555c[_0x20492d(0x43d)](_0x121cd3)){this[_0x20492d(0x385)]['error']('[CollaborationUndoRedoService]',_0x20492d(0x3ea),_0x128a52,_0x121cd3);break;}_0xf22ad=_0x128a52['c1Prime'],_0x43650c=_0x121cd3[_0x20492d(0x26b)],_0x2d6ddf[_0x20492d(0x276)]({'unitID':_0x5e70f5,'undoMutations':_0x128a52[_0x20492d(0x2a5)],'redoMutations':_0x121cd3[_0x20492d(0x2a5)]});}return _0x2d6ddf[_0x20492d(0x42f)]();}};_0x761cdc=_0x11ef68([_0x52c408(0x0,_0x349f19[_0x145278(0x501)]),_0x52c408(0x1,_0x349f19[_0x145278(0x36e)]),_0x52c408(0x2,_0x349f19['IContextService']),_0x52c408(0x3,_0x54555c[_0x145278(0x42a)]),_0x52c408(0x4,_0x349f19['ILogService'])],_0x761cdc);class _0x16ca01 extends _0x349f19[_0x145278(0x4e9)]{constructor(){const _0x5b6f76=_0x145278;super(),_0xbb867(this,'urlChange$'),this[_0x5b6f76(0x3af)]=_0x1e13bb[_0x5b6f76(0x2d6)](window,_0x5b6f76(0x4c0))[_0x5b6f76(0x3f1)](_0x1e13bb['takeUntil'](this[_0x5b6f76(0x115)]),_0x1e13bb[_0x5b6f76(0x1d6)](0x1),_0x1e13bb[_0x5b6f76(0x2cb)](void 0x0));}[_0x145278(0x427)](_0x47e807,_0x3e805d,_0x32dc7f=!0x1){const _0x1c0314=_0x145278,_0x1377b4=new URL(window[_0x1c0314(0x4fb)][_0x1c0314(0x144)]);_0x1377b4['searchParams'][_0x1c0314(0x253)](_0x47e807,_0x3e805d),_0x32dc7f?window[_0x1c0314(0x3c0)]['replaceState']('','',_0x1377b4[_0x1c0314(0x2ad)]()):window[_0x1c0314(0x3c0)][_0x1c0314(0x37b)]('','',_0x1377b4['toString']());}['removeParam'](_0x362af6,_0x5b8e0d=!0x1){const _0x72bdfa=_0x145278,_0x48b0f8=new URL(window[_0x72bdfa(0x4fb)][_0x72bdfa(0x144)]);_0x48b0f8[_0x72bdfa(0x16c)][_0x72bdfa(0x4f4)](_0x362af6),_0x5b8e0d?window[_0x72bdfa(0x3c0)][_0x72bdfa(0x1d5)]('','',_0x48b0f8[_0x72bdfa(0x2ad)]()):window[_0x72bdfa(0x3c0)]['pushState']('','',_0x48b0f8[_0x72bdfa(0x2ad)]());}[_0x145278(0x3f3)](_0x39b8e4){const _0x38ca6c=_0x145278;var _0x33c77a;return(_0x33c77a=new URL(window[_0x38ca6c(0x4fb)]['href'])[_0x38ca6c(0x16c)][_0x38ca6c(0x4b6)](_0x39b8e4))!=null?_0x33c77a:void 0x0;}}var _0x1e2e31=Object[_0x145278(0x507)],_0x3d419b=Object[_0x145278(0x16d)],_0x5f10b8=(_0x5e4fa9,_0x2459e4,_0x482cda)=>_0x2459e4 in _0x5e4fa9?_0x1e2e31(_0x5e4fa9,_0x2459e4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482cda}):_0x5e4fa9[_0x2459e4]=_0x482cda,_0x5eca97=(_0x4d4819,_0x5992d8,_0x126d73,_0x456a79)=>{const _0x3fc785=_0x145278;for(var _0x23bec1=_0x456a79>0x1?void 0x0:_0x456a79?_0x3d419b(_0x5992d8,_0x126d73):_0x5992d8,_0x45fa29=_0x4d4819[_0x3fc785(0x37e)]-0x1,_0x539b86;_0x45fa29>=0x0;_0x45fa29--)(_0x539b86=_0x4d4819[_0x45fa29])&&(_0x23bec1=(_0x456a79?_0x539b86(_0x5992d8,_0x126d73,_0x23bec1):_0x539b86(_0x23bec1))||_0x23bec1);return _0x456a79&&_0x23bec1&&_0x1e2e31(_0x5992d8,_0x126d73,_0x23bec1),_0x23bec1;},_0x3e9e1f=(_0x260b31,_0x2d02a7)=>(_0x516aec,_0x33c33c)=>_0x2d02a7(_0x516aec,_0x33c33c,_0x260b31),_0x4071c4=(_0x10bcb6,_0x2a268a,_0x2f70ed)=>_0x5f10b8(_0x10bcb6,_0x2a268a+'',_0x2f70ed);const _0x19f68c='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3b531e['UniverCollaborationClientPlugin']=class extends _0x349f19['Plugin']{constructor(_0x2ef348=_0xb30b05,_0x3ef7cd,_0x36ca6d,_0x361f07,_0x1fffe8){const _0x205668=_0x145278;super(),this[_0x205668(0x183)]=_0x2ef348,this['_logService']=_0x3ef7cd,this[_0x205668(0x4d9)]=_0x36ca6d,this['_injector']=_0x361f07,this[_0x205668(0x28d)]=_0x1fffe8;const {..._0x13bd83}=this['_config'];this[_0x205668(0x28d)][_0x205668(0x298)](_0x4ea523,_0x13bd83);}[_0x145278(0x198)](){const _0x4f4190=_0x145278;this[_0x4f4190(0x417)](),_0x349f19[_0x4f4190(0x2d3)](this['_injector'],[[_0xc5b355],[_0x3b531e[_0x4f4190(0x3c4)]],[_0x531ea0]]);}[_0x145278(0x251)](){const _0x2cd673=_0x145278;_0x349f19[_0x2cd673(0x2d3)](this[_0x2cd673(0x22d)],[[_0x44f32b]]);}[_0x145278(0x39e)](){const _0x5eec12=_0x145278;this[_0x5eec12(0x491)]();}[_0x145278(0x417)](){const _0x2224e6=_0x145278;var _0x52b18f,_0xdb6b76,_0x86bf64,_0x145525;this['_injector'][_0x2224e6(0x2e6)](_0x349f19[_0x2224e6(0x2a4)])&&this[_0x2224e6(0x385)][_0x2224e6(0x4aa)]('[UniverCollaborationClientPlugin]',_0x2224e6(0x52b));let _0x3f23e0=[[_0x349f19[_0x2224e6(0x2a4)],{'useClass':_0x761cdc}],[_0x3b531e[_0x2224e6(0x21f)]],[_0x477f1a],[_0x47193d[_0x2224e6(0x3f8)]],[_0x31b342,{'useClass':_0x16ca01}],[_0x5a9e0d],[_0x3b531e[_0x2224e6(0x30a)]],[_0x47193d[_0x2224e6(0x45a)]],[_0x370f64],[_0x697163],[_0x55e610],[_0x2f089c],[_0x499e8e],[_0x4f3ef6],[_0x2e3386],[_0x531ea0],[_0x3f5095,{'useClass':(_0xdb6b76=(_0x52b18f=this['_config'])==null?void 0x0:_0x52b18f[_0x2224e6(0x299)])!=null?_0xdb6b76:_0x3b531e[_0x2224e6(0x504)]}],[_0x47193d['IHTTPImplementation'],{'useClass':_0x47193d[_0x2224e6(0x4a7)]}],[_0x54555c[_0x2224e6(0x208)],{'useClass':_0x3b531e[_0x2224e6(0x1fd)]}],[_0x349f19[_0x2224e6(0x3e4)],{'useClass':_0x3b531e[_0x2224e6(0x383)]}],[_0xaccc08[_0x2224e6(0x1ec)],{'useClass':_0x3b531e[_0x2224e6(0x47d)]}],[_0x3b531e[_0x2224e6(0x446)]],[_0x3b531e[_0x2224e6(0x3c4)]],[_0x3b531e['DesktopCollaborationStatusDisplayController']],[_0x44f32b],[_0xc5b355]];(_0x86bf64=this[_0x2224e6(0x183)])!=null&&_0x86bf64[_0x2224e6(0x412)]&&_0x3f23e0[_0x2224e6(0x276)]([_0x2d00f5,{'useClass':_0x467f1c}]),_0x3f23e0=_0x349f19[_0x2224e6(0x30d)](_0x3f23e0,(_0x145525=this[_0x2224e6(0x183)])==null?void 0x0:_0x145525[_0x2224e6(0x24d)]),_0x3f23e0[_0x2224e6(0x256)](_0xe95c30=>this['_injector'][_0x2224e6(0x4f3)](_0xe95c30)),this[_0x2224e6(0x38b)]();}[_0x145278(0x491)](){const _0x5ae32d=_0x145278;this[_0x5ae32d(0x1e3)](this['_renderManagerService'][_0x5ae32d(0x3dd)](_0x349f19['UniverInstanceType'][_0x5ae32d(0x22e)],[_0x12f634])),this['disposeWithMe'](this['_renderManagerService'][_0x5ae32d(0x3dd)](_0x349f19[_0x5ae32d(0x426)]['UNIVER_SHEET'],[_0x355d95]));}[_0x145278(0x38b)](){const _0x460a88=_0x145278;var _0xba2ea0,_0x19093c;this['_injector'][_0x460a88(0x4b6)](_0x47193d['HTTPService'])[_0x460a88(0x419)]({'priority':0x14,'interceptor':_0x47193d['ThresholdInterceptorFactory']({'maxParallel':0x6})}),this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x4f3ef6),(_0xba2ea0=this[_0x460a88(0x183)])!=null&&_0xba2ea0['enableOfflineEditing']||this['_injector'][_0x460a88(0x4b6)](_0x3b531e[_0x460a88(0x30a)])[_0x460a88(0x3d8)](),(_0x19093c=this[_0x460a88(0x183)])!=null&&_0x19093c[_0x460a88(0x205)]&&this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x499e8e),this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x3b531e[_0x460a88(0x446)]),this[_0x460a88(0x22d)][_0x460a88(0x2e6)](_0x3b531e['DesktopCollaborationStatusDisplayController'])&&this[_0x460a88(0x22d)][_0x460a88(0x4b6)](_0x3b531e[_0x460a88(0x435)]);}},_0x4071c4(_0x3b531e[_0x145278(0x1e4)],_0x145278(0x347),_0x19f68c),_0x3b531e[_0x145278(0x1e4)]=_0x5eca97([_0x349f19[_0x145278(0x523)](_0x54555c[_0x145278(0x309)]),_0x3e9e1f(0x1,_0x349f19[_0x145278(0x1e7)]),_0x3e9e1f(0x2,_0x577b7e[_0x145278(0x1d7)]),_0x3e9e1f(0x3,_0x349f19[_0x145278(0x413)](_0x349f19['Injector'])),_0x3e9e1f(0x4,_0x349f19[_0x145278(0x424)])],_0x3b531e[_0x145278(0x1e4)]),_0x3b531e[_0x145278(0x285)]=_0x3bed12,_0x3b531e[_0x145278(0x136)]=_0x3f5d5a,_0x3b531e[_0x145278(0x3d9)]=_0x5c110b,_0x3b531e['CollaborationStatus']=_0xfe35ac,_0x3b531e[_0x145278(0x421)]=_0x5c616d,_0x3b531e[_0x145278(0x308)]=_0x2e3386,_0x3b531e[_0x145278(0x386)]=_0x2ace82,_0x3b531e[_0x145278(0x3c2)]=_0x566bf8,_0x3b531e[_0x145278(0x27f)]=_0x3f5095,_0x3b531e[_0x145278(0x4ed)]=_0x31b342,_0x3b531e['LOCAL_CACHE_INTERVAL_KEY']=_0x255e8f,_0x3b531e[_0x145278(0x187)]=_0x3d2741,_0x3b531e[_0x145278(0x1c6)]=_0xe2277,_0x3b531e[_0x145278(0x3fe)]=_0x3c165d,_0x3b531e[_0x145278(0x4d2)]=_0x1f76a6,_0x3b531e[_0x145278(0x4b3)]=_0x1fe014,_0x3b531e[_0x145278(0x377)]=_0x3ee00b,_0x3b531e[_0x145278(0x237)]=_0x186ef2,_0x3b531e[_0x145278(0x2eb)]=_0x16ca01,_0x3b531e[_0x145278(0x2f3)]=_0x2a238a,_0x3b531e[_0x145278(0x2d0)]=_0x1a0ef4,Object[_0x145278(0x507)](_0x3b531e,Symbol[_0x145278(0x358)],{'value':_0x145278(0x162)});}));function _0x2aa9(_0x5c7964,_0x195669){const _0xb9d32f=_0xb9d3();return _0x2aa9=function(_0x2aa9b2,_0x179b7b){_0x2aa9b2=_0x2aa9b2-0x113;let _0x5d6456=_0xb9d32f[_0x2aa9b2];return _0x5d6456;},_0x2aa9(_0x5c7964,_0x195669);}function _0xb9d3(){const _0x87736c=['_draw','[PendingState]:\x20received\x20rejection.','getUnitOnRev','state','RxDisposable','_sendingTimer','change$','IPermissionService','IURLService','UNIVER_PROJECT','_initUnitPermissionChange','none','INVALID_ARGUMENT','off-line-single','add','delete','_fetchMissChangesets','Optional','update','CHANGESET_REJ','objects','red300','location','_scheduleHeartbeat','status$','_decreaseWaiting','_queuedRemoteChangesets','OnLineSingle','IUniverInstanceService','_collabSessionService','_range','CollaborationSocketService','DocIMEInputManagerService','_lastPointer','defineProperty','getOwnPropertySymbols','_colorIndex','operators','RichTextEditingMutation','width','RemoveColCommandId','target','InsertColCommandId','object','UnitEmbedded','entries','_startSheetCollabCursor','_socket','@univerjs/core','react','editingUnit','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','setUndoRedoMutationParamsCache','INTERNAL_ERROR','UniverDesign','name','transformIMECache','getRelativeToViewportCoord','cursorInfo$','AWAITING','ERROR_IMAGE_TYPE','_members','DependentOn','HELLO','onPointerMove$','_sendHeartbeat','max','/allowed','_entityInit$','appendMutation','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_resendTimer','/object/','addObjects','_commentUpdate$','_waitCount','UUID','permission.title','storage','toDisposable','getCoordByCell','registerBeforeClose','/rev/','visibilitychange','_colorAssignService','loginUrlKey','pending','error$','onCommentUpdate','_checkMissing','UNAUTHENTICATED','UNKNOWN_CODE','_executeRemoteChangeset','univer-online-status-icon','UniverTelemetry','FromArray','getDocRanges','_cursor','CollaborationEvent','title','@univerjs/docs-ui','call','UNIVER_SLIDE','@univerjs/network','_stopTelemetryCollaborationNewChangeset','_singleActiveUnitService','_socket$','putCollaborators','HEARTBEAT_TIMEOUT','_acknowledgedAwaitingChangeset','{fileID}','UniverUi','NodePositionConvertToRectRange','createInstance','fromEventSubject','failed\x20to\x20apply\x20missed\x20changesets!','DocSelectionManagerService','_event$','dispose$','MessageType','capture','_docTransformIMECacheService','getColor','blue400','_transformIMECache','_handleHeartbeatEvent','routeKey','_onRemoteACK','not_collab','interceptor','flatMap','CollaborationEntity','_onJoinRoomEvent','values','_initStatusComponent','unitId','newCsEvent','_refreshCollabCursors','_refRangeService','LIVESHARE_OPERATION','collabStatus.notCollab','@univerjs-pro/collaboration','now','collabCursorState$','code','Univer','evenodd','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','&assign=','_snapshotService','_socketMessageSubscription','COLLAB_SUBMIT_CHANGESET_URL_KEY','deserializeRangeWithSheet','listRoles','NOT_FOUND','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','setItem','_anchorDot','onSyncEditingCollabCursor','updateOfflineData','closePath','stringify','actions','/universer-api/oidc/authpage','responseType','href','IDLE','getUniverSheetInstance','_loadDoc','JOINING','LICENSE_IMPORT_SIZE_EXCEEDED','NodePositionConvertToCursor','getViewport','_initStatusListener','OFFLINE','_roomMembers$','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','getSheetBlock','YUUMI_UNABLE_LOAD_URL','JOIN','updateMember','UniverLicense','next','_initEventListeners','registerOnClose','UniverDrawing','UserManagerService','selections','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','COMPRESS_MUTATION_SEND','map','createCollaborator','_status$','listCollaborators','_collaborationPaused','Module','_urlService','arc','batchAllowed','incrementRevOfUnit','height','activeSheet$','create','ALREADY_EXISTS','Rect','searchParams','getOwnPropertyDescriptor','exhaustSavingTask','handleDeleteRangeMoveLeft','isTransformMutationsWithChangesetSuccess','delay','onMissedChangesetFetched','rxjs','_schedule','_onConnectionFailed','ColorKit','resize','getAncestorScale','transformMutation','_onRemoteChangeset','_unlockTransition','_updateURLWithCurrentState','_updateCollabCursors','SNAPSHOT_HAS_BEEN_REMOVED','@univerjs/drawing','getCollabCursors$','saveChangeset','unit','_config','crypto.getRandomValues()\x20not\x20supported.\x20See\x20https://github.com/uuidjs/uuid#getrandomvalues-not-supported','row','removeMember','LOGIN_URL_KEY','[OfflineState]:\x20received\x20rejection.','_transitionLocked','_context','_assignedColors','_color','updateCursorEvent','_getSheetObject','distinctUntilChanged','liveShareNewHost','collaborators','MUTATION','JSONX','InsertSheetMutation','isTransformChangesetsSuccess','amd','HTTPRequest','onStarting','replaceTextRanges','_handleEvent','_startCollaboration','every','_name','_uiPartsService','clear','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitDisposed$','merge','runRefRangeMutations','Disposable','serializeRangeWithSheet','SUBMIT_CHANGESET','hidden','COLORS','concatMap','_collaborationController','_session','fillText','sessionStatus$','save','changesets','_initRequestHeader','saveSheetBlock','getActiveSheet','_createHandler','CollaborationSession','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','onlyLocal','collaboration_new_changeset','connectInjector','handleInsertRangeMoveDown','endRow','univer-pro.collaboration-client-socket-service','takeUntil','COMPLETION_FINISHED','/new_changes','8436IRdINg','eventID','_candidateSocket','updatePermissionPoint','_resendWithTimeout','_telemetryService','message$','RETRY_CONNECTING_MAX_COUNT_KEY','color','xlink:href','isArray','top','getCurrent','_scheduleClearOtherTimer','/block/','readAsDataURL','_removeCollabCursors','_onUserJoin','_listenToOfflineEvent','_change$','randomUUID','_onConnectionOpen','replaceState','shareReplay','IRenderManagerService','[CollaborationSessionService]','HEARTBEAT','closeSession','getUnit','UNIVER_UNKNOWN','COLLAB_SUBMIT_CHANGESET_URL','leaveEvent','useObservable','YUUMI_URL_COL_OUT_OF_RANGE','11935dlUeZO','round','disposeWithMe','UniverCollaborationClientPlugin','CompressMutationService','post','ILogService','Vector2','/-/object/-/batch_allowed','InsertRangeMoveRightCommandId','string','IImageIoService','visibilityState','_labelPosition','transformByState','deleteCollaborator','subUnitId','whenReady','stopTime','PSEUDO_FETCH_MISSING_RESULT','LIVESHARE_TERMINATE','onCommandExecuted','members','ImageUploadStatusType','_clearTimeoutTimer','getCellPositionByOffset','contains','substring','SnapshotServerOverHTTPService','open$','_getAPIPrefix','fetchMiss','_permissionService','_getScale','getRoom','svg','enableAuthServer','_clearCollaborationTimeoutTimer','_localeService','ISnapshotServerService','/unit/','commentUpdate$','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_removeClearOtherTimer','_hideTimer','getOffsetConfig','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','then','conflict.content','IBeforeCloseService','getCurrentRevOfUnit','_getSignURL','_getUploadFileURL','_themeService','createSocket','_send','univer-offline','sheetId','transformChangesets','transformMutationsWithChangeset','collaboration-client.offline-data-not-saved','_isPermissionRej','CollaborationSessionService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_resendTimeout','textEncoder','_telemetryInfo','encode','addEventListener','APPLY_REVISION_CONFILICT','onTransformRemoteChangesetByIMECache','collaboration.closeRoom','_retryConnectingTimer','APPLY_DUPLICATED','_transformUndoRedoStack','url(#off-line-single_clip0_910_343)','_injector','UNIVER_DOC','LIVESHARE_FETCH_OPERATIONS','_getSnapshotAPIPrefix','_sendHeartbeatTimer','bottom','CHANGESET_REVISION_CONFILICT','_clearUndo','text','APPLY_REJECT','SheetCollabCursorShape','useRef','_sender','_onRemoteRejected','_initMergeInterceptor','_toggleOnline','params','_listenToOnlineEvent','CHANGESET_SHOULD_RETRY','unitID','_getMergeRange','[CollaborationSession]','startTime','_getUndoStack','InsertRowCommandId','UniverDocs','_scheduleCollaborationTimeoutTimer','_onUserLeave','_hovered','onStateChange','_handler','uni.network.url-service','override','unknown','_backgroundColor','conflict','onReady','onPointerEnter$','set','@univerjs/engine-render','_render','forEach','filter','number','_HTTPService','propertyIsEnumerable','_sheetSkeletonManagerService','_sessionStatus$','collabStatus.synced','onlineStatus','@univerjs/telemetry','DeleteRangeMoveLeftCommandId','rev','function','restore','isInternalEditorID','isPermissionRej','_timeoutTimer','LocaleService','_substituteUndoStack','collaMsg','getMember','c1Prime','apply','unitId\x20is\x20not\x20found','_socketReady','cursorInfo','_cursorInfo$','onTransformChange$','originalMeta','_substituteRedoStack','COMMENT_UPDATE','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','push','Rectangle','allowed','onRemoteChangeset','roomMembers$','_saveTaskMap','_onMessage','NOT_COLLAB','setAlpha','ICollaborationSocketService','INGEST','reject','&source=','@univerjs/rpc','unshift','AUTHZ_URL_KEY','/collaborator','WorkbookEditablePermission','file','LICENSE_EXPORT_SIZE_EXCEEDED','_transformService','USERS_LEAVE','univer-online-status-title','_configService','conflict.title','_onRecvEvent','collab-text-anchor-','isTransformMutationFailure','sessionStatus','univer-online','\x20in\x20_schedule.','_handleLeaveEvent','fetchMissingChangesets','CONNECTOR_DATA_TOO_LARGE','setConfig','socketService','roles','sid','_docSkeleton','_ws','UPDATE_PERMISSION_OBJ','createIdentifier','resourceIDs','_messageService','_createInitialStateImpl','objectID','IUndoRedoService','m2Prime','getUndoRedoMutationParamsCache','all','registerRefRange','attrs','_redoStacks','setActiveRange','DisposableCollection','toString','saveImage','COMPRESS_MUTATION_APPLY','sendChangesetTimeout','reduce','_drawAnchor','enableLocalCache','_revisionService','_onCursorDelete','liveShareOperation','onload','_initResize','sheets','resend','duration','ERROR_IMAGE','deepClone','toLowerCase','_onRefRangeChange','colorChannel1','944kAHYuU','_onOffline','drawWith','cmd','fetchThroughInterceptors','[SyncedState]:\x20received\x20rejection.','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_collabCursorState$','#fff','SHOULD_CLOSE_CONN','mapTo','patch','MoveRangeCommandId','image/png','_drawTextRange','serializeCombRequest','_getAnchorBounding','data','touchDependencies','_onLocalMutation','setWaitCount','fromEvent','subscribeEvent','@univerjs/sheets','SheetSkeletonManagerService','getFocusedUnit','Workbook','534995fLTPAT','_transformUndoredo','@univerjs/sheets-ui','_updateState','_http','_sessions','ThemeService','EffectRefRangId','USERS_ENTER','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','has','parse','some','_online','session.collaboration-timeout','WebURLService','_onCursorUpdate','getAttachHeader','Unknown\x20user','VIEWPORT_KEY','EXCHANGE_SIGN_URL_SERVER_URL_KEY','MergeInterceptorFactory','LocalUndoRedoService','deserializeToCombResponse','div','collabStatus.syncing','skeleton','assignAColorForMemberID','_state$','complete','_updateSubUnitFromURLParams','_scene','_scheduleSaving','\x20-\x20','_undoRedoService','currentSkeleton$','_cursorShapes','range','_applyRemoteChangeset','show','_handleHover','b64DecodeUnicode','TRANSFORM_CHANGE_OBSERVABLE_TYPE','715008LYMwug','CommentService','UniverCollaborationPlugin','LocalCacheService','/universer-api/file/{fileID}/sign-url','hovered','mergeOverrideWithDependencies','onMissingChangesets','161579EBaIot','?size=','commentUpdateEvent','React','6MNdJqt','session.will-retry','getMemberID','black','_getAPIPrefixPath','[OfflineState]:\x20received\x20changeset.','tag','saveOfflineData','CONFLICT','_throwTelemetryCollaborationNewChangeset','_setupSubUnitSync','UPDATE_CURSOR','_univerInstanceService','_onCombEvent','hasOwnProperty','getItem','permission.content','_changesetSessionId','@univerjs/engine-formula','split','NEW_CHANGESETS','defIds','_unitOnClients','_ensureSubject','x-univer-host','FAIL','snapshotServerUrl','RegularPolygon','SNAPSHOT_INVALID_SNAPSHOT','includes','_entities','BuiltInUIPart','image/gif','_initCloseConn','_id','_createInitialState','\x0aCurrent:\x20','shouldCloseConn','?url=','LICENSE_DISTRO_REJECTED','defs','_instanceService','getCollabEntity','_beforeCloseService','onMouseMove','_collaborationTimeoutTimer','_type','OffLineSingle','backgroundColor','Warning','_initCommandExecutedListener','triggerDblclick','pluginName','take','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','Error\x20on\x20receiving\x20event','YUUMI_RATE_OVER_LIMIT','LEAVE','getLatestCsReqIdBySid','_getSendChangesetTimeout','getRenderById','_roomMembers','session.connection-failed','getTime','getSheetBySheetId','_transformRemoteChangesetByIMECache','handleIRemoveRow','YUUMI_SUBSCRIPTION_NOT_FOUND','confirm','toStringTag','[CollaborationSessionService]:\x20socket\x20error','_init','exports','APPLY_PERMISSION_DENIED','_unitStatus','size','path','_disabled','_docStateChangeManagerService','getRangePointData','TOO_MANY_REQUESTS','[PendingState]:\x20received\x20acknowledgement.','_sheetTransformSelectionsService','_onRemoteRetry','getActiveRange','collaboratorID','UNDEFINED','addImageSourceCache','SetWorksheetActivateCommand','onSendChangeset','key','ICommandService','clipPath','[CollaborationEntity]','_tryReconnect','clearTimeout','find','forwardRef','_commandService','SYNCED','SessionStatus','put','off-line-single_clip0_910_343','_createSocket','pushState','focused$','_shouldReportTelemetry','length','close','getCollabEntity$','_replayCachedMutations','_cachedData','AuthzIoHttpService','jiqing500','_logService','HEARTBEAT_INTERVAL_KEY','RevisionService','connection\x20error','type','/object','_initModules','baseRev','_transformSelections','Undefined','subscribe','getUnitType','UniverCore','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getTypeOfUnitAdded$','fetching\x20missing\x20changesets\x20from\x20','_cursors','_clearRedo','RECV','getInterceptPoints','column','1em','toggleOnline','_getRedoStack','method','onRendered','CommandType','_imageSourceCache','encodeURIComponent','hide','measureText','on-line-single','_scheduleTimestamp','auth.needGotoLoginAlert','rxjs/operators','_saveCache','permissionRejEvent','_textBubble','moveTo','DocCollaborationEntity','_changesetReqId','NO_OTHER_CLIENTS_EDITING','urlChange$','currentColor','syncEditingCollabCursor','UniverNetwork','_clearHeartbeatTimer','editing\x20status\x20changed\x20to','_retryCount','newValue','Injector','HEADER_MENU','PERMISSION_DENIED','EmptyMutation','_localStorageService','workbook','_getDownloadEndpointURL','url','4411494CAgAuu','history','collabStatus.conflict','HEARTBEAT_TIMEOUT_KEY','_shapes','DataLoaderController','loadSheet','univer-online-status','handleMoveRange','_pendingMutations','_getCurrentRevision','setTimeout','transformSelections','_compressMutationService','ranges','getSheetObject','SetTextSelectionsOperation','_remoteChangesetQueue','append','SUCCUSS','assign','refreshPermission','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_eventUnsubscribe','transformUndoRedo','disableLocalCache','COLLAB_WEB_SOCKET_URL_KEY','_disableEditing','156316nqekFo','_handleJoinEvent','registerRenderModule','_updateStatus','memberID','SheetCollaborationEntity','subunit','_socketService','debug','IAuthzIoService','_getCtorByUniverType','image/jpeg','send','fill','executeCommand','transformStack\x20failed!','_collabCursorController','extend','_rescheduleHeartbeat','SEND_CHANGESET_TIMEOUT','debounce','LIVESHARE_NEW_HOST','pipe','getSheetId','getParam','0\x200\x2017\x2016','selection','revision','_updateLocalCache','HTTPService','sequenceExecute','_unitID','_localCacheService','_hover','mapDocumentTypeToUniverType','SEND_CHANGESET_TIMEOUT_KEY','session','getSkeleton','setCurrentUser','startRow','event$','indexOf','_userManagerService','clearInterval','UNKNOWN_CMD','_toggleOffline','awaitingChangeset','objectType','copyFileMeta','SheetsSelectionsService','json','_getLoginPath','BehaviorSubject','Subject','concat','enableSingleActiveInstanceLock','Inject','icon','getUnitStatus$','HttpImport','_registerDependencies','...','registerHTTPInterceptor','[DataLoaderController]','FileId','SetSelectionsOperation','currentTheme$','_syncEditingCollabCursorService','onTransformSelections','body','CollaborationStatusDisplay','offline','toggleOffline','IConfigService','_anchor','UniverInstanceType','setParam','unload','symbol','ITransformService','unsubscribe','UniverCollaboration','_docSkeletonManagerService','result','reverse','PENDING','UNIVER_SHEET','IUIPartsService','textRanges','IMessageService','DesktopCollaborationStatusDisplayController','APPLY_NON_SEQUENTIAL_REVISION','isValidRectRange','handleInsertCol','snapshot','children','src','/role','isTransformMutationsWithChangesetFailure','_onFetchMissResult','_transformPreviousActiveRange','_clearOtherTimers','bind','isActive','prototype','ReplaySubject','UniverSheets','CollaborationController','unit-cache-','lineTo','FETCH_MISS','_state','_docTransformSelectionsService','isEditing','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','switchMap','with','addObject','_snapshotServerService','requestParams','getUnitId','M0\x200H16V16H0z','Error','[PendingState]:\x20unhandled\x20univer\x20type:\x20','/universer-api/stream/file/upload','TEXT_RANGE_LAYER_INDEX','UniverSheetsUi','WebSocketService','_showConflictNotification','DocStateChangeManagerService','random','_incrementRevisionNumber','onTransformIME','_undoStacks','docStateChange$','close$','_lockTransition','updateCollaborator','status','synced','@univerjs-pro/license','[OfflineState]:\x20received\x20acknowledgement.','joinRsp','getValue','idSuffix','init','awaiting_with_pending','collabStatus.offline','getConfig','_getSaveTimeout','getResourcesRequest','endColumn','univer-pro.collaboration-client.single-active-unit-service','_memberService','PERMISSION_REJ','session.room-full','collabWebSocketUrl','getCurrentSelections','parseChangesetToProtocol','list','m1Prime','combineLatest','ImageIoService','@univerjs/docs','UniverRpc','MSG_FOR_ERROR','min','_tryEnsureSocket','throttleTime','\x0aAfter:\x20','image/bmp','state$','rng','onRemoteAck','engine','ImageSourceType','_exhaustRemoteChangesetQueue','current','reqId','getCurrentUser','_updateLocalCursor','collaboration-session-retry','_registerRenderDependencies','UniverIcon','_onConflict','onRemoteRej','createElement','from','/universer-api/snapshot','objectActions','UniverEngineFormula','CHANGESET_ACK','onPointerLeave$','Shape','LICENSE_MAX_UNITS_EXCEEDED','_collaborationSessionService','_selfUnitIDs','localeService','[CollaborationUndoRedoService]','setInterval','ONLINE','_clearScheduledTask','online','collabSubmitChangesetUrl','XHRHTTPImplementation','setShapeProps','ERROR_EXCEED_SIZE','error','requireSession','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','mutations','fetch_missing','HttpExport','csAckEvent','Tools','0\x200\x2016\x2016','SNAPSHOT_URL_KEY','reconnect','save\x20fail\x20reason\x20is\x20','get','_transformStack','sheetID','DocSkeletonManagerService','UNRECOGNIZED','disposeUnit','getRandomValues','headers','_httpService','socket\x20close','popstate','dispose','telemetry\x20info\x20is\x20not\x20initialized','on-line-single_clip0_910_349','_startDocCollabCursor','@univerjs/ui','UniverDocsUi','_heartbeatTimer','joinEvent','displayName','onlineStatusTitle','ENSURE_SNAPSHOT_EXECUTION','/universer-api/comb','doc.mutation.rich-text-editing','_awaitingChangeset','_joinRoom','roomMembers','_startTelemetryCollaborationNewChangeset','SNAPSHOT_SERVER_URL_KEY','collab-client.tooltip.reconnect','BASE64','@univerjs/design','onRemoteRetry','generateRandomId','_notificationService','_renderManagerService','_submitChangeset','fillStyle','loadOfflineData','trim','asObservable','FETCH_MISSING','_setupBeforeClosingHandler','_drawRectRange','LIVESHARE_REQUEST_HOST','POST','className'];_0xb9d3=function(){return _0x87736c;};return _0xb9d3();}
|