@univerjs-pro/collaboration-client 0.2.12 → 0.2.14

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/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x4ff49c,_0x5d9fb8){const _0x438d27=_0x4682,_0x59dd82=_0x4ff49c();while(!![]){try{const _0x5b9d26=-parseInt(_0x438d27(0x37d))/0x1+-parseInt(_0x438d27(0x274))/0x2*(-parseInt(_0x438d27(0x419))/0x3)+-parseInt(_0x438d27(0x258))/0x4+parseInt(_0x438d27(0x52a))/0x5+-parseInt(_0x438d27(0x438))/0x6+-parseInt(_0x438d27(0x22c))/0x7*(parseInt(_0x438d27(0x3ca))/0x8)+-parseInt(_0x438d27(0x361))/0x9*(-parseInt(_0x438d27(0x4f2))/0xa);if(_0x5b9d26===_0x5d9fb8)break;else _0x59dd82['push'](_0x59dd82['shift']());}catch(_0xf2cec8){_0x59dd82['push'](_0x59dd82['shift']());}}}(_0x3f5d,0xb8849),function(_0x5d8562,_0x310846){const _0x2dc644=_0x4682;typeof exports==_0x2dc644(0x279)&&typeof module<'u'?_0x310846(exports,require(_0x2dc644(0x514)),require(_0x2dc644(0x563)),require(_0x2dc644(0x38b)),require('@univerjs/design'),require(_0x2dc644(0x339)),require(_0x2dc644(0x1eb)),require('@univerjs-pro/collaboration'),require(_0x2dc644(0x42e)),require(_0x2dc644(0x4ed)),require(_0x2dc644(0x31a)),require(_0x2dc644(0x50e)),require(_0x2dc644(0x2d8)),require('@univerjs/engine-formula'),require('lodash/debounce'),require(_0x2dc644(0x298)),require(_0x2dc644(0x556)),require('clsx'),require(_0x2dc644(0x4a7))):typeof define=='function'&&define[_0x2dc644(0x3a3)]?define([_0x2dc644(0x1ee),_0x2dc644(0x514),_0x2dc644(0x563),'rxjs/operators','@univerjs/design',_0x2dc644(0x339),_0x2dc644(0x1eb),_0x2dc644(0x23f),_0x2dc644(0x42e),'@univerjs/docs',_0x2dc644(0x31a),_0x2dc644(0x50e),'@univerjs/engine-render',_0x2dc644(0x321),_0x2dc644(0x30c),_0x2dc644(0x298),_0x2dc644(0x556),_0x2dc644(0x2c9),_0x2dc644(0x4a7)],_0x310846):(_0x5d8562=typeof globalThis<'u'?globalThis:_0x5d8562||self,_0x310846(_0x5d8562[_0x2dc644(0x1a5)]={},_0x5d8562['UniverCore'],_0x5d8562[_0x2dc644(0x563)],_0x5d8562[_0x2dc644(0x563)][_0x2dc644(0x2d9)],_0x5d8562[_0x2dc644(0x19e)],_0x5d8562[_0x2dc644(0x522)],_0x5d8562[_0x2dc644(0x4b9)],_0x5d8562[_0x2dc644(0x55f)],_0x5d8562[_0x2dc644(0x272)],_0x5d8562[_0x2dc644(0x320)],_0x5d8562[_0x2dc644(0x3b7)],_0x5d8562[_0x2dc644(0x47b)],_0x5d8562['UniverEngineRender'],_0x5d8562['UniverEngineFormula'],_0x5d8562[_0x2dc644(0x231)][_0x2dc644(0x287)],_0x5d8562['UniverSheetsUi'],_0x5d8562[_0x2dc644(0x49a)],_0x5d8562[_0x2dc644(0x2c9)],_0x5d8562[_0x2dc644(0x331)]));}(this,function(_0x59ce0d,_0x36d396,_0x22cf47,_0x547088,_0x53e1d0,_0x455671,_0x3d1d50,_0x346629,_0x41d467,_0x569fac,_0xdbe912,_0x17128d,_0x54d1da,_0x933578,_0x3179a3,_0x343608,_0x28fb9c,_0x30ff44,_0x5badd8){'use strict';const _0x51d41b=_0x4682;var _0xfef6f1=Object[_0x51d41b(0x215)],_0xa44bdd=(_0x4cf0b4,_0x1c13dd,_0x28a31e)=>_0x1c13dd in _0x4cf0b4?_0xfef6f1(_0x4cf0b4,_0x1c13dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28a31e}):_0x4cf0b4[_0x1c13dd]=_0x28a31e,_0x55fd67=(_0x474007,_0x2841c1,_0xfc9f4e)=>_0xa44bdd(_0x474007,typeof _0x2841c1!=_0x51d41b(0x56b)?_0x2841c1+'':_0x2841c1,_0xfc9f4e);const _0x3ee3ce=_0x51d41b(0x4cf),_0x3fad9d=_0x51d41b(0x2f0),_0x4ad76f='SNAPSHOT_URL_KEY',_0x5d41d3=_0x51d41b(0x546),_0x53dc60='COLLAB_WEB_SOCKET_URL',_0xe402b=_0x51d41b(0x5a7),_0x14d59a=_0x51d41b(0x3d7),_0x1734e8=_0x51d41b(0x3ff),_0x2353ba=_0x51d41b(0x31d),_0xdebb3a='RETRY_CONNECTING_MAX_COUNT',_0x341945=_0x51d41b(0x518),_0x5da533='COLLAB_SUBMIT_CHANGESET_URL',_0x1f38f9=_0x51d41b(0x532),_0x4c6be5='LOGIN_URL_KEY',_0x11abd1='/universer-api/oidc/authpage';var _0x5d72a7=(_0x5cdb5f=>(_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x27d)]=0x0]=_0x51d41b(0x27d),_0x5cdb5f[_0x5cdb5f['OK']=0x1]='OK',_0x5cdb5f[_0x5cdb5f['INTERNAL_ERROR']=0x2]=_0x51d41b(0x2ce),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x562)]=0x3]=_0x51d41b(0x562),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x38f)]=0x4]=_0x51d41b(0x38f),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3ba)]=0x5]=_0x51d41b(0x3ba),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3bd)]=0x6]=_0x51d41b(0x3bd),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3f6)]=0x7]='INVALID_ARGUMENT',_0x5cdb5f[_0x5cdb5f['TOO_MANY_REQUESTS']=0x8]='TOO_MANY_REQUESTS',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x193)]=0x9]='COMPLETION_FINISHED',_0x5cdb5f[_0x5cdb5f['CHANGESET_REVISION_CONFILICT']=0x1389]=_0x51d41b(0x24d),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x466)]=0x1771]=_0x51d41b(0x466),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x22e)]=0x1772]=_0x51d41b(0x22e),_0x5cdb5f[_0x5cdb5f['APPLY_REJECT']=0x1b59]=_0x51d41b(0x232),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3df)]=0x1b5a]=_0x51d41b(0x3df),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x423)]=0x1b5b]=_0x51d41b(0x423),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x19d)]=0x1b5c]=_0x51d41b(0x19d),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x517)]=0x1f41]=_0x51d41b(0x517),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3d1)]=0x2329]=_0x51d41b(0x3d1),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x57b)]=0x232a]=_0x51d41b(0x57b),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x2e3)]=0x232b]=_0x51d41b(0x2e3),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3a1)]=0x232c]='LICENSE_EXPORT_SIZE_EXCEEDED',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x535)]=0x232d]=_0x51d41b(0x535),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x362)]=0x2711]=_0x51d41b(0x362),_0x5cdb5f[_0x5cdb5f['YUUMI_URL_COL_OUT_OF_RANGE']=0x2712]='YUUMI_URL_COL_OUT_OF_RANGE',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x429)]=0x2713]='YUUMI_RATE_OVER_LIMIT',_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x592)]=0x2714]=_0x51d41b(0x592),_0x5cdb5f[_0x5cdb5f[_0x51d41b(0x3a5)]=-0x1]=_0x51d41b(0x3a5),_0x5cdb5f))(_0x5d72a7||{}),_0x54451c=(_0x5b14c9=>(_0x5b14c9[_0x5b14c9[_0x51d41b(0x2fe)]=0x0]=_0x51d41b(0x2fe),_0x5b14c9[_0x5b14c9[_0x51d41b(0x43c)]=0x1]=_0x51d41b(0x43c),_0x5b14c9[_0x5b14c9[_0x51d41b(0x1d8)]=0x2]=_0x51d41b(0x1d8),_0x5b14c9[_0x5b14c9[_0x51d41b(0x1cc)]=0x3]='UNIVER_SLIDE',_0x5b14c9[_0x5b14c9[_0x51d41b(0x3dc)]=0x4]=_0x51d41b(0x3dc),_0x5b14c9[_0x5b14c9[_0x51d41b(0x3a5)]=-0x1]=_0x51d41b(0x3a5),_0x5b14c9))(_0x54451c||{}),_0x16a3a1=(_0x467abf=>(_0x467abf[_0x467abf[_0x51d41b(0x1cb)]=0x0]=_0x51d41b(0x1cb),_0x467abf[_0x467abf[_0x51d41b(0x420)]=0x1]='HELLO',_0x467abf[_0x467abf[_0x51d41b(0x4c2)]=0x2]=_0x51d41b(0x4c2),_0x467abf[_0x467abf[_0x51d41b(0x1be)]=0x3]=_0x51d41b(0x1be),_0x467abf[_0x467abf[_0x51d41b(0x37a)]=0x4]=_0x51d41b(0x37a),_0x467abf[_0x467abf[_0x51d41b(0x237)]=0x5]=_0x51d41b(0x237),_0x467abf[_0x467abf['RECV']=0x6]=_0x51d41b(0x1ae),_0x467abf[_0x467abf[_0x51d41b(0x3a5)]=-0x1]=_0x51d41b(0x3a5),_0x467abf))(_0x16a3a1||{}),_0x3368de=(_0x8ba726=>(_0x8ba726[_0x8ba726[_0x51d41b(0x2cd)]=0x0]='UNKNOWN_CODE',_0x8ba726[_0x8ba726['OK']=0x1]='OK',_0x8ba726[_0x8ba726[_0x51d41b(0x456)]=0x2]=_0x51d41b(0x456),_0x8ba726[_0x8ba726['UNRECOGNIZED']=-0x1]=_0x51d41b(0x3a5),_0x8ba726))(_0x3368de||{}),_0x66022a=(_0x36f84c=>(_0x36f84c[_0x36f84c['Undefined']=0x0]=_0x51d41b(0x2f3),_0x36f84c[_0x36f84c[_0x51d41b(0x1c4)]=0x1]=_0x51d41b(0x1c4),_0x36f84c[_0x36f84c['HttpExport']=0x2]=_0x51d41b(0x36c),_0x36f84c[_0x36f84c[_0x51d41b(0x381)]=0x3]=_0x51d41b(0x381),_0x36f84c[_0x36f84c[_0x51d41b(0x2e9)]=0x4]=_0x51d41b(0x2e9),_0x36f84c[_0x36f84c['UNRECOGNIZED']=-0x1]=_0x51d41b(0x3a5),_0x36f84c))(_0x66022a||{});function _0x251ac9(_0x4bb864){const _0x5909c7=_0x51d41b;var _0x14b19c,_0x10746a,_0x54080f,_0x2bdb17;const _0x2be20d=_0x4bb864[_0x5909c7(0x34f)],_0x4b7a2b=JSON['parse'](_0x2be20d);switch(_0x4b7a2b[_0x5909c7(0x266)]){case _0x16a3a1['HEARTBEAT']:case _0x16a3a1[_0x5909c7(0x420)]:{const _0x255e85=_0x4b7a2b['infoRsp'];return{..._0x4b7a2b,'data':_0x255e85,'cmd':_0x4b7a2b[_0x5909c7(0x266)]};}case _0x16a3a1[_0x5909c7(0x4c2)]:{const _0x90c62f=_0x4b7a2b[_0x5909c7(0x5aa)];return{..._0x4b7a2b,'data':_0x90c62f,'cmd':_0x4b7a2b[_0x5909c7(0x266)]};}case _0x16a3a1[_0x5909c7(0x1ae)]:{const _0x50bdfa=_0x4b7a2b[_0x5909c7(0x202)];switch(_0x50bdfa[_0x5909c7(0x1c6)]){case _0x346629['CollaborationEvent'][_0x5909c7(0x1ed)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x14b19c=_0x50bdfa[_0x5909c7(0x2c0)])==null?void 0x0:_0x14b19c['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629['CollaborationEvent']['CHANGESET_ACK']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x10746a=_0x50bdfa['csAckEvent'])==null?void 0x0:_0x10746a['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)]['NEW_CHANGESETS']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x54080f=_0x50bdfa[_0x5909c7(0x3c7)])==null?void 0x0:_0x54080f['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x20a)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':(_0x2bdb17=_0x50bdfa[_0x5909c7(0x293)])==null?void 0x0:_0x2bdb17['cs']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629['CollaborationEvent'][_0x5909c7(0x191)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa['updateCursorEvent']},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x252)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x4a5)]},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x50b)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa['leaveEvent']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x47f)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x433)]},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x574)]:case _0x346629[_0x5909c7(0x2fa)]['LIVESHARE_OPERATION']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa['liveShareOperation']},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x2d6)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x433)]},'cmd':_0x4b7a2b['cmd']};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x255)]:return{..._0x4b7a2b,'data':_0x50bdfa,'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)]['COMMENT_UPDATE']:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x50f)]},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629['CollaborationEvent'][_0x5909c7(0x425)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x332)]},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};case _0x346629[_0x5909c7(0x2fa)][_0x5909c7(0x408)]:return{..._0x4b7a2b,'data':{..._0x50bdfa,'data':_0x50bdfa[_0x5909c7(0x256)]},'cmd':_0x4b7a2b[_0x5909c7(0x266)]};default:return _0x4b7a2b;}}default:return _0x4b7a2b;}}function _0x342ade(_0x28cd68){const _0x867444=_0x51d41b;switch(_0x28cd68['cmd']){case _0x16a3a1[_0x867444(0x237)]:case _0x16a3a1['HELLO']:return JSON[_0x867444(0x54a)]({'cmd':_0x28cd68[_0x867444(0x266)],'routeKey':_0x28cd68[_0x867444(0x401)]});case _0x16a3a1['INGEST']:{let _0x19875d;switch(_0x28cd68[_0x867444(0x34f)][_0x867444(0x1c6)]){case _0x346629[_0x867444(0x2fa)][_0x867444(0x191)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x191)],'updateCursorEvent':_0x28cd68['data'][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x50b)]:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x50b)],'leaveEvent':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)]['USERS_ENTER']:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x252)],'joinEvent':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x47f)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x47f)],'liveShareNewHost':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629['CollaborationEvent'][_0x867444(0x3b1)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x3b1)],'liveShareOperation':_0x28cd68[_0x867444(0x34f)][_0x867444(0x34f)]};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x2d6)]:{_0x19875d={'eventID':_0x346629[_0x867444(0x2fa)][_0x867444(0x2d6)],'liveShareTerminate':_0x28cd68['data']['data']};break;}case _0x346629['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x351)],'liveShareRequestHost':_0x28cd68[_0x867444(0x34f)]['data']};break;}case _0x346629[_0x867444(0x2fa)][_0x867444(0x574)]:{_0x19875d={'eventID':_0x346629['CollaborationEvent'][_0x867444(0x574)]};break;}default:_0x19875d={'eventID':_0x28cd68['data'][_0x867444(0x1c6)]};}return JSON[_0x867444(0x54a)]({'cmd':_0x28cd68['cmd'],'routeKey':_0x28cd68[_0x867444(0x401)],'collaMsg':_0x19875d});}case _0x16a3a1[_0x867444(0x4c2)]:return JSON[_0x867444(0x54a)]({'cmd':_0x28cd68[_0x867444(0x266)],'routeKey':_0x28cd68['routeKey'],'joinReq':_0x28cd68[_0x867444(0x34f)]});case _0x16a3a1[_0x867444(0x1be)]:return JSON['stringify']({'cmd':_0x28cd68[_0x867444(0x266)],'routeKey':_0x28cd68[_0x867444(0x401)],'leaveReq':_0x28cd68['data']});default:throw new Error(_0x867444(0x41f));}}var _0x4a0c11=Object[_0x51d41b(0x215)],_0x199615=Object[_0x51d41b(0x2b7)],_0x426c07=(_0x5132fa,_0x3768ac,_0x2b0921,_0x14e907)=>{for(var _0x18dce1=_0x14e907>0x1?void 0x0:_0x14e907?_0x199615(_0x3768ac,_0x2b0921):_0x3768ac,_0x1e40ce=_0x5132fa['length']-0x1,_0x2e6515;_0x1e40ce>=0x0;_0x1e40ce--)(_0x2e6515=_0x5132fa[_0x1e40ce])&&(_0x18dce1=(_0x14e907?_0x2e6515(_0x3768ac,_0x2b0921,_0x18dce1):_0x2e6515(_0x18dce1))||_0x18dce1);return _0x14e907&&_0x18dce1&&_0x4a0c11(_0x3768ac,_0x2b0921,_0x18dce1),_0x18dce1;},_0x485029=(_0x2a18f0,_0x3e2b6c)=>(_0x3c0a3f,_0x2c06cf)=>_0x3e2b6c(_0x3c0a3f,_0x2c06cf,_0x2a18f0);const _0xe35b0b=_0x36d396[_0x51d41b(0x494)](_0x51d41b(0x233));function _0x2a7dc2(_0x42fdc1,_0x27cea7,_0x51e901){const _0x20e22a=_0x51d41b;return _0x42fdc1+'/'+_0x27cea7+_0x20e22a(0x33f)+_0x51e901+_0x20e22a(0x516);}_0x59ce0d[_0x51d41b(0x551)]=class{constructor(_0x375bb3,_0x46eed2,_0x45524d,_0x3db685,_0x5230d8){const _0x3ced19=_0x51d41b;this['_http']=_0x375bb3,this['_ws']=_0x46eed2,this[_0x3ced19(0x448)]=_0x45524d,this['_logService']=_0x3db685,this[_0x3ced19(0x4af)]=_0x5230d8;}[_0x51d41b(0x1e1)](_0x2b312d){const _0x41f8a9=_0x51d41b,_0x549710=this[_0x41f8a9(0x318)][_0x41f8a9(0x1e1)](_0x2b312d);if(!_0x549710)throw new Error(_0x41f8a9(0x393));const _0x2ac53a=new _0x36d396[(_0x41f8a9(0x3bc))](),_0x2cf5a8=new _0x22cf47[(_0x41f8a9(0x3d9))]();_0x2ac53a[_0x41f8a9(0x5a2)](_0x549710[_0x41f8a9(0x292)][_0x41f8a9(0x200)](_0x506a11=>_0x2cf5a8[_0x41f8a9(0x1d6)](_0x506a11))),_0x2ac53a['add'](_0x36d396[_0x41f8a9(0x1d9)](()=>_0x2cf5a8[_0x41f8a9(0x22a)]()));const _0x8eb089=new _0x22cf47[(_0x41f8a9(0x3d9))]();_0x2ac53a[_0x41f8a9(0x5a2)](_0x549710[_0x41f8a9(0x4b6)]['subscribe'](_0x9acd18=>_0x8eb089['next'](_0x9acd18))),_0x2ac53a[_0x41f8a9(0x5a2)](_0x36d396[_0x41f8a9(0x1d9)](()=>_0x8eb089[_0x41f8a9(0x22a)]()));const _0x2b8dd8=new _0x22cf47[(_0x41f8a9(0x3d9))]();_0x2ac53a[_0x41f8a9(0x5a2)](_0x549710[_0x41f8a9(0x368)][_0x41f8a9(0x200)](_0x23e751=>{const _0x3afd96=_0x251ac9(_0x23e751);_0x2b8dd8['next'](_0x3afd96);})),_0x2ac53a[_0x41f8a9(0x5a2)](_0x36d396['toDisposable'](()=>_0x2b8dd8[_0x41f8a9(0x22a)]()));const _0x243234=()=>{const _0x1a6865=_0x41f8a9;_0x8eb089[_0x1a6865(0x1d6)](new Event(_0x1a6865(0x4e0))),_0x2cf5a8[_0x1a6865(0x1d6)](new CloseEvent(_0x1a6865(0x4e0))),_0x46141e['close']();},_0x46141e={'memberID':'','close$':_0x2cf5a8[_0x41f8a9(0x544)](),'error$':_0x8eb089['asObservable'](),'open$':_0x549710[_0x41f8a9(0x509)],'message$':_0x2b8dd8['asObservable'](),'send':_0x278f6b=>{const _0x15aacf=_0x41f8a9;if(_0x278f6b['cmd']===_0x16a3a1[_0x15aacf(0x37a)]){if(_0x278f6b[_0x15aacf(0x34f)][_0x15aacf(0x1c6)]===_0x346629['CollaborationEvent'][_0x15aacf(0x3a2)]){this[_0x15aacf(0x2fc)](_0x46141e,_0x278f6b[_0x15aacf(0x34f)])[_0x15aacf(0x276)](_0x27229d=>{const _0x423222=_0x15aacf;this['_logService'][_0x423222(0x405)](_0x27229d),_0x243234();});return;}if(_0x278f6b[_0x15aacf(0x34f)]['eventID']===_0x346629['CollaborationEvent'][_0x15aacf(0x568)]){const _0x20db8b=_0x278f6b['data'];this[_0x15aacf(0x409)](_0x20db8b)[_0x15aacf(0x59d)](_0x76c7c0=>{const _0x44856e=_0x15aacf;_0x2b8dd8['next']({'cmd':_0x16a3a1['RECV'],'code':_0x3368de['OK'],'routeKey':_0x20db8b[_0x44856e(0x34f)][_0x44856e(0x35f)],'routeType':'','data':{'eventID':_0x346629['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x76c7c0}}});})[_0x15aacf(0x276)](_0x2ba2ce=>{const _0x158e2c=_0x15aacf;this['_logService'][_0x158e2c(0x405)](_0x2ba2ce),_0x243234();});return;}}_0x549710['send'](_0x342ade(_0x278f6b));},'close':()=>{const _0x3e3bdc=_0x41f8a9;_0x549710[_0x3e3bdc(0x47c)](),_0x2ac53a['dispose']();}};return _0x46141e;}async[_0x51d41b(0x2fc)](_0x2db1f8,_0x1c5851){const _0x5b863f=_0x51d41b;var _0x10745a;const {unitType:_0x5a30af,unitID:_0x2f3450,changeset:_0x2993df}=_0x1c5851[_0x5b863f(0x34f)],_0x1b7add={'unitID':_0x2f3450,'memberID':_0x2db1f8[_0x5b863f(0x264)],'type':_0x5a30af,'changeset':_0x346629[_0x5b863f(0x1dc)](_0x2993df)},_0x561d1a=_0x2a7dc2((_0x10745a=this[_0x5b863f(0x448)]['getConfig'](_0x5da533))!=null?_0x10745a:_0x1f38f9,_0x5a30af,_0x2f3450);try{await this[_0x5b863f(0x2eb)][_0x5b863f(0x51e)](_0x561d1a,{'body':_0x1b7add});}catch(_0x1b6b4c){throw this[_0x5b863f(0x545)]['error'](_0x5b863f(0x593),_0x5b863f(0x2fb)),_0x1b6b4c;}}async[_0x51d41b(0x409)](_0x28a71f){const _0x5c7e58=_0x51d41b,{unitID:_0x542e46,from:_0x2e7d7d,to:_0x2dd03e,unitType:_0x25e765}=_0x28a71f[_0x5c7e58(0x34f)];return(await this[_0x5c7e58(0x4af)][_0x5c7e58(0x2fd)]({'metadata':void 0x0},{'unitID':_0x542e46,'type':_0x25e765,'from':_0x2e7d7d,'to':_0x2dd03e}))[_0x5c7e58(0x2bd)];}},_0x59ce0d[_0x51d41b(0x551)]=_0x426c07([_0x485029(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x3d1d50['HTTPService'])),_0x485029(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x3d1d50[_0x51d41b(0x4fd)])),_0x485029(0x2,_0x36d396[_0x51d41b(0x511)]),_0x485029(0x3,_0x36d396[_0x51d41b(0x495)]),_0x485029(0x4,_0x346629['ISnapshotServerService'])],_0x59ce0d[_0x51d41b(0x551)]);class _0x186531{constructor(){const _0x4c8a1f=_0x51d41b;_0x55fd67(this,_0x4c8a1f(0x26d),new _0x22cf47['Subject']()),_0x55fd67(this,_0x4c8a1f(0x2ba),this[_0x4c8a1f(0x26d)][_0x4c8a1f(0x544)]());}[_0x51d41b(0x1a8)](_0xf68a6e){const _0x5379d3=_0x51d41b;this[_0x5379d3(0x26d)]['next'](_0xf68a6e);}}var _0xffbadd=Object[_0x51d41b(0x215)],_0x1ea5f3=Object[_0x51d41b(0x2b7)],_0x14e67d=(_0xa2e19b,_0x340448,_0x59fdc4,_0x211136)=>{const _0x36cdd2=_0x51d41b;for(var _0x270e80=_0x211136>0x1?void 0x0:_0x211136?_0x1ea5f3(_0x340448,_0x59fdc4):_0x340448,_0x2cf89a=_0xa2e19b[_0x36cdd2(0x392)]-0x1,_0x3a6e1a;_0x2cf89a>=0x0;_0x2cf89a--)(_0x3a6e1a=_0xa2e19b[_0x2cf89a])&&(_0x270e80=(_0x211136?_0x3a6e1a(_0x340448,_0x59fdc4,_0x270e80):_0x3a6e1a(_0x270e80))||_0x270e80);return _0x211136&&_0x270e80&&_0xffbadd(_0x340448,_0x59fdc4,_0x270e80),_0x270e80;},_0x2127f4=(_0x2ca8bc,_0x400b8b)=>(_0x34d8cf,_0x16f4d2)=>_0x400b8b(_0x34d8cf,_0x16f4d2,_0x2ca8bc);let _0x2e1387=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x374654,_0x9c5f59){const _0x3330ec=_0x51d41b;super(),_0x55fd67(this,_0x3330ec(0x338),new Map()),(this[_0x3330ec(0x273)]=_0x374654,this['_userManagerService']=_0x9c5f59,this[_0x3330ec(0x595)](_0x36d396[_0x3330ec(0x1d9)](_0x22cf47[_0x3330ec(0x4ee)](this[_0x3330ec(0x273)][_0x3330ec(0x505)](_0x36d396[_0x3330ec(0x26a)][_0x3330ec(0x1d8)])[_0x3330ec(0x257)](_0x547088[_0x3330ec(0x565)](_0x540ad6=>_0x540ad6[_0x3330ec(0x4ce)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x36d396[_0x3330ec(0x26a)][_0x3330ec(0x43c)])[_0x3330ec(0x257)](_0x547088[_0x3330ec(0x565)](_0x3ee59c=>_0x3ee59c['getUnitId']())),this[_0x3330ec(0x273)]['getTypeOfUnitDisposed$'](_0x36d396[_0x3330ec(0x26a)]['UNIVER_SLIDE'])[_0x3330ec(0x257)](_0x547088[_0x3330ec(0x565)](_0x2abef1=>_0x2abef1[_0x3330ec(0x4ce)]())))[_0x3330ec(0x200)](_0x4dcf33=>this[_0x3330ec(0x23e)](_0x4dcf33)))));}[_0x51d41b(0x3cc)](_0x4b5bd1){const _0xcca90=_0x51d41b;this['_userManagerService'][_0xcca90(0x3cc)](_0x4b5bd1);}[_0x51d41b(0x26c)](){const _0xd10d00=_0x51d41b;return this['_userManagerService'][_0xd10d00(0x26c)]();}[_0x51d41b(0x1ea)](_0x40e36e,_0x3a0ebc){const _0xcea0f1=_0x51d41b;let _0x3796f8=this[_0xcea0f1(0x338)][_0xcea0f1(0x58c)](_0x40e36e);_0x3796f8||(_0x3796f8=new _0x4d2291(),this[_0xcea0f1(0x338)][_0xcea0f1(0x27f)](_0x40e36e,_0x3796f8)),_0x3796f8[_0xcea0f1(0x1ea)](_0x3a0ebc);}['removeMember'](_0xa5c817,_0xdc3c4e){const _0x4b9e62=_0x51d41b,_0x135c8f=this[_0x4b9e62(0x338)][_0x4b9e62(0x58c)](_0xa5c817);_0x135c8f&&_0x135c8f['removeMember'](_0xdc3c4e);}['getRoom'](_0x58599f){const _0x16e95a=_0x51d41b;return this[_0x16e95a(0x338)][_0x16e95a(0x58c)](_0x58599f);}[_0x51d41b(0x359)](_0x120ede,_0x55b742){const _0x55b137=_0x51d41b,_0x35be94=this[_0x55b137(0x338)][_0x55b137(0x58c)](_0x120ede);if(_0x35be94)return _0x35be94[_0x55b137(0x359)](_0x55b742);}[_0x51d41b(0x23e)](_0x5294b8){const _0x44c695=_0x51d41b,_0x33345d=this[_0x44c695(0x338)]['get'](_0x5294b8);_0x33345d&&(_0x33345d[_0x44c695(0x3cd)](),this[_0x44c695(0x338)]['delete'](_0x5294b8));}['dispose'](){const _0x267629=_0x51d41b;this[_0x267629(0x338)][_0x267629(0x1a9)](_0xd3580f=>_0xd3580f[_0x267629(0x3cd)]()),this[_0x267629(0x338)][_0x267629(0x3a7)]();}};_0x2e1387=_0x14e67d([_0x2127f4(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x2127f4(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x1b1)]))],_0x2e1387);class _0x4d2291 extends _0x36d396['Disposable']{constructor(){super(...arguments),_0x55fd67(this,'_members',new Map());}[_0x51d41b(0x3cd)](){const _0x2ebbb5=_0x51d41b;this[_0x2ebbb5(0x2ad)]['clear']();}[_0x51d41b(0x1ea)](_0x3336c7){const _0x144b7a=_0x51d41b;this[_0x144b7a(0x2ad)][_0x144b7a(0x27f)](_0x3336c7['memberID'],_0x3336c7);}[_0x51d41b(0x29e)](_0x5c66e8){const _0x3c8c81=_0x51d41b;this['_members'][_0x3c8c81(0x560)](_0x5c66e8);}['getMember'](_0x27a838){const _0x449789=_0x51d41b;return this[_0x449789(0x2ad)][_0x449789(0x58c)](_0x27a838);}}const _0x59eaff='collaboration_new_changeset';function _0x3f365d(_0x3d6334){const _0x390b1d=_0x51d41b;return JSON[_0x390b1d(0x54a)](_0x3d6334)[_0x390b1d(0x392)];}var _0x55aa98=Object[_0x51d41b(0x215)],_0x3d6d0c=Object[_0x51d41b(0x2b7)],_0x259696=(_0x357711,_0x2f728e,_0x57866d,_0x36090d)=>{const _0x2c9bd1=_0x51d41b;for(var _0x5e6774=_0x36090d>0x1?void 0x0:_0x36090d?_0x3d6d0c(_0x2f728e,_0x57866d):_0x2f728e,_0x3df77a=_0x357711[_0x2c9bd1(0x392)]-0x1,_0xb6c718;_0x3df77a>=0x0;_0x3df77a--)(_0xb6c718=_0x357711[_0x3df77a])&&(_0x5e6774=(_0x36090d?_0xb6c718(_0x2f728e,_0x57866d,_0x5e6774):_0xb6c718(_0x5e6774))||_0x5e6774);return _0x36090d&&_0x5e6774&&_0x55aa98(_0x2f728e,_0x57866d,_0x5e6774),_0x5e6774;},_0x498f7d=(_0x127da6,_0x17715e)=>(_0x54a713,_0x506dbf)=>_0x17715e(_0x54a713,_0x506dbf,_0x127da6),_0x4c781c=(_0x517441=>(_0x517441[_0x517441['IDLE']=0x0]=_0x51d41b(0x3be),_0x517441[_0x517441[_0x51d41b(0x3e2)]=0x1]=_0x51d41b(0x3e2),_0x517441[_0x517441[_0x51d41b(0x588)]=0x2]=_0x51d41b(0x588),_0x517441[_0x517441['ONLINE']=0x3]=_0x51d41b(0x2b3),_0x517441))(_0x4c781c||{});_0x59ce0d['CollaborationSession']=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x4d8e94,_0x5b69ef,_0x90d976,_0x2e419c,_0x360073,_0x40d7ec,_0x3d81d9,_0x44df6f,_0x1eb9ac,_0x287108){const _0x35a997=_0x51d41b;super(),_0x55fd67(this,_0x35a997(0x1f9),new _0x22cf47[(_0x35a997(0x482))](0x0)),_0x55fd67(this,'sessionStatus$',this['_sessionStatus$'][_0x35a997(0x544)]()),_0x55fd67(this,_0x35a997(0x349),new _0x22cf47['Subject']()),_0x55fd67(this,_0x35a997(0x1b6),this[_0x35a997(0x349)]['asObservable']()),_0x55fd67(this,'_socket'),_0x55fd67(this,_0x35a997(0x2c2)),_0x55fd67(this,_0x35a997(0x569)),_0x55fd67(this,'_shouldReportTelemetry',!0x1),_0x55fd67(this,'_telemetryInfo',null),(this['_unitID']=_0x4d8e94,this[_0x35a997(0x545)]=_0x90d976,this[_0x35a997(0x524)]=_0x2e419c,this[_0x35a997(0x2a7)]=_0x360073,this[_0x35a997(0x448)]=_0x40d7ec,this[_0x35a997(0x31f)]=_0x3d81d9,this[_0x35a997(0x468)]=_0x44df6f,this[_0x35a997(0x2e5)]=_0x1eb9ac,this[_0x35a997(0x2a6)]=_0x287108,this[_0x35a997(0x23b)]=!!this[_0x35a997(0x2a6)],_0x5b69ef[_0x35a997(0x257)](_0x22cf47['takeUntil'](this['dispose$']))[_0x35a997(0x200)](_0x5e83ef=>{const _0x53fa02=_0x35a997;var _0xb631b1;typeof _0x5e83ef>'u'||(this['_socket']=_0x5e83ef,_0x5e83ef?(this['_joinRoom'](_0x5e83ef),this[_0x53fa02(0x2c2)]=this['_socket'][_0x53fa02(0x368)][_0x53fa02(0x200)](_0x27d30b=>{const _0x43039b=_0x53fa02;_0x27d30b[_0x43039b(0x401)]===this[_0x43039b(0x3f2)]&&this['_onCombEvent'](_0x27d30b);})):(this[_0x53fa02(0x1ec)](),this[_0x53fa02(0x1f9)][_0x53fa02(0x1d6)](0x2),(_0xb631b1=this[_0x53fa02(0x2c2)])==null||_0xb631b1[_0x53fa02(0x1f7)](),this[_0x53fa02(0x2c2)]=null));}),this['disposeWithMe'](this['_beforeCloseService'][_0x35a997(0x265)](()=>{const _0x33fefe=_0x35a997;var _0x342749;(_0x342749=this['_socket'])==null||_0x342749['send']({'cmd':_0x16a3a1[_0x33fefe(0x1be)],'data':{'roomID':this[_0x33fefe(0x3f2)]}});})));}get[_0x51d41b(0x277)](){const _0x38f0d2=_0x51d41b;return this[_0x38f0d2(0x1f9)][_0x38f0d2(0x2b1)]();}[_0x51d41b(0x1fb)](){const _0x4d2cff=_0x51d41b;var _0x394fb2,_0x28afec;return(_0x28afec=(_0x394fb2=this[_0x4d2cff(0x590)])==null?void 0x0:_0x394fb2[_0x4d2cff(0x264)])!=null?_0x28afec:null;}[_0x51d41b(0x3cd)](){const _0x1fca52=_0x51d41b;super[_0x1fca52(0x3cd)](),this[_0x1fca52(0x1b2)][_0x1fca52(0x1d6)](),this[_0x1fca52(0x1b2)][_0x1fca52(0x22a)]();}[_0x51d41b(0x47c)](){const _0x1e24a1=_0x51d41b;var _0x37f430,_0x6e61ae;this[_0x1e24a1(0x1ec)](),(_0x37f430=this[_0x1e24a1(0x590)])==null||_0x37f430[_0x1e24a1(0x4a2)]({'cmd':_0x16a3a1[_0x1e24a1(0x1be)],'data':{'roomID':this['_unitID']}}),(_0x6e61ae=this[_0x1e24a1(0x590)])==null||_0x6e61ae[_0x1e24a1(0x47c)](),this[_0x1e24a1(0x349)][_0x1e24a1(0x22a)](),this[_0x1e24a1(0x1f9)][_0x1e24a1(0x22a)](),this['dispose']();}[_0x51d41b(0x309)](_0x1f6588){const _0x12ccc9=_0x51d41b;_0x1f6588['cmd']===_0x16a3a1['JOIN']?this[_0x12ccc9(0x4a0)](_0x1f6588):_0x1f6588['cmd']===_0x16a3a1[_0x12ccc9(0x1ae)]&&this[_0x12ccc9(0x2b5)](_0x1f6588);}['_joinRoom'](_0x2bba4e){const _0xcbd74c=_0x51d41b;this['_sessionStatus$'][_0xcbd74c(0x1d6)](0x1),_0x2bba4e['send']({'cmd':_0x16a3a1['JOIN'],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0xcbd74c(0x3f2)]}]}});}[_0x51d41b(0x4a0)](_0xa1dc68){const _0x4cad67=_0x51d41b;var _0x2fc564;if(_0xa1dc68[_0x4cad67(0x30d)]===_0x3368de[_0x4cad67(0x456)]){this['_messageService'][_0x4cad67(0x3c3)]({'type':_0x53e1d0[_0x4cad67(0x31b)]['Warning'],'content':this[_0x4cad67(0x31f)]['t']('session.room-full')}),this['_sessionStatus$']['next'](0x2);return;}this[_0x4cad67(0x1f9)][_0x4cad67(0x1d6)](0x3);const _0x2d0856=(_0x2fc564=_0xa1dc68[_0x4cad67(0x34f)][_0x4cad67(0x496)][this['_unitID']])==null?void 0x0:_0x2fc564[_0x4cad67(0x1d1)];_0x2d0856&&_0x2d0856['forEach'](_0x4c45ad=>this[_0x4cad67(0x468)][_0x4cad67(0x1ea)](this[_0x4cad67(0x3f2)],_0x4c45ad));}[_0x51d41b(0x2b5)](_0x203c32){const _0x2458a4=_0x51d41b;try{const _0x43629a=_0x203c32[_0x2458a4(0x34f)];switch(_0x43629a[_0x2458a4(0x1c6)]){case _0x346629['CollaborationEvent'][_0x2458a4(0x252)]:this[_0x2458a4(0x58a)](_0x43629a),this[_0x2458a4(0x349)][_0x2458a4(0x1d6)](_0x43629a);break;case _0x346629[_0x2458a4(0x2fa)][_0x2458a4(0x50b)]:this[_0x2458a4(0x52e)](_0x43629a),this[_0x2458a4(0x349)]['next'](_0x43629a);break;case _0x346629[_0x2458a4(0x2fa)][_0x2458a4(0x44c)]:this[_0x2458a4(0x3ae)](),this[_0x2458a4(0x28a)](),this['_event$']['next'](_0x43629a);break;case _0x346629['CollaborationEvent'][_0x2458a4(0x255)]:this[_0x2458a4(0x545)][_0x2458a4(0x405)](_0x2458a4(0x589)+JSON[_0x2458a4(0x54a)](_0x43629a)),this[_0x2458a4(0x349)][_0x2458a4(0x1d6)](_0x43629a);break;case _0x346629[_0x2458a4(0x2fa)][_0x2458a4(0x1ce)]:this[_0x2458a4(0x2e5)][_0x2458a4(0x1a8)](_0x43629a[_0x2458a4(0x34f)]),this[_0x2458a4(0x349)]['next'](_0x43629a);break;default:this[_0x2458a4(0x349)][_0x2458a4(0x1d6)](_0x43629a);}}catch(_0x3328af){this[_0x2458a4(0x545)]['error'](_0x3328af,_0x203c32);}}['_onUserJoin'](_0x5bb1bb){const _0x544173=_0x51d41b;this['_memberService'][_0x544173(0x1ea)](this[_0x544173(0x3f2)],_0x5bb1bb['data']);}[_0x51d41b(0x52e)](_0x10ea85){const _0x528afb=_0x51d41b;this[_0x528afb(0x468)]['removeMember'](this[_0x528afb(0x3f2)],_0x10ea85[_0x528afb(0x34f)][_0x528afb(0x264)]);}async['send'](_0x3c0ab8,_0x204a1c){const _0x2ea359=_0x51d41b;if(this[_0x2ea359(0x277)]!==0x3||!this['_socket'])throw new Error(_0x2ea359(0x316));try{_0x3c0ab8[_0x2ea359(0x1c6)]===_0x346629[_0x2ea359(0x2fa)][_0x2ea359(0x3a2)]&&(this[_0x2ea359(0x404)](),this['_startTelemetryCollaborationNewChangeset'](_0x3c0ab8)),this['_socket'][_0x2ea359(0x4a2)]({'cmd':_0x16a3a1['INGEST'],'routeKey':_0x204a1c,'routeType':'','data':_0x3c0ab8});}catch(_0x3901c6){this[_0x2ea359(0x545)][_0x2ea359(0x405)](_0x3901c6);}}[_0x51d41b(0x404)](){const _0x4a365a=_0x51d41b;var _0x6892ae;this['_collaborationTimeoutTimer']=window['setTimeout'](()=>{const _0x1ebdb4=_0x4682;this[_0x1ebdb4(0x569)]=null,this[_0x1ebdb4(0x2a7)][_0x1ebdb4(0x3c3)]({'type':_0x53e1d0[_0x1ebdb4(0x31b)][_0x1ebdb4(0x372)],'content':this[_0x1ebdb4(0x31f)]['t']('session.collaboration-timeout')});},(_0x6892ae=this[_0x4a365a(0x448)]['getConfig'](_0x1734e8))!=null?_0x6892ae:0x2710);}[_0x51d41b(0x28a)](){const _0x451ea5=_0x51d41b;this[_0x451ea5(0x569)]&&(clearTimeout(this[_0x451ea5(0x569)]),this[_0x451ea5(0x569)]=null);}[_0x51d41b(0x25b)](_0x14df7){const _0x35c1a0=_0x51d41b;if(!this['_shouldReportTelemetry'])return;const {data:_0x12efb9}=_0x14df7,{unitID:_0x16695a,changeset:_0x1a5bd1}=_0x12efb9,{mutations:_0x45f03b,type:_0x17a64e}=_0x1a5bd1;this[_0x35c1a0(0x577)]={'unitId':_0x16695a,'type':_0x17a64e,'startTime':performance[_0x35c1a0(0x2ca)](),'stopTime':0x0,'duration':0x0,'size':_0x3f365d(_0x45f03b)};}[_0x51d41b(0x3ae)](){const _0x4f8d1e=_0x51d41b;if(this['_shouldReportTelemetry']){if(!this[_0x4f8d1e(0x577)]){this[_0x4f8d1e(0x545)][_0x4f8d1e(0x405)](_0x4f8d1e(0x593),_0x4f8d1e(0x471));return;}this[_0x4f8d1e(0x577)][_0x4f8d1e(0x4cb)]=performance['now'](),this[_0x4f8d1e(0x577)][_0x4f8d1e(0x2ed)]=this[_0x4f8d1e(0x577)][_0x4f8d1e(0x4cb)]-this['_telemetryInfo']['startTime'],this[_0x4f8d1e(0x2a6)]['capture'](_0x59eaff,this[_0x4f8d1e(0x577)]),this[_0x4f8d1e(0x577)]=null;}}[_0x51d41b(0x1ec)](){this['_telemetryInfo']=null;}},_0x59ce0d[_0x51d41b(0x459)]=_0x259696([_0x498f7d(0x2,_0x36d396[_0x51d41b(0x495)]),_0x498f7d(0x3,_0x455671[_0x51d41b(0x4bd)]),_0x498f7d(0x4,_0x455671[_0x51d41b(0x1c1)]),_0x498f7d(0x5,_0x36d396[_0x51d41b(0x511)]),_0x498f7d(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['LocaleService'])),_0x498f7d(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x498f7d(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x186531)),_0x498f7d(0x9,_0x36d396[_0x51d41b(0x43f)](_0x41d467[_0x51d41b(0x4db)]))],_0x59ce0d[_0x51d41b(0x459)]);var _0x2672c7=Object[_0x51d41b(0x215)],_0x419071=Object['getOwnPropertyDescriptor'],_0x47a4b6=(_0x4bc559,_0x2f2504,_0x39d589,_0x333032)=>{const _0x456355=_0x51d41b;for(var _0x5684fa=_0x333032>0x1?void 0x0:_0x333032?_0x419071(_0x2f2504,_0x39d589):_0x2f2504,_0x141847=_0x4bc559[_0x456355(0x392)]-0x1,_0x7d45cd;_0x141847>=0x0;_0x141847--)(_0x7d45cd=_0x4bc559[_0x141847])&&(_0x5684fa=(_0x333032?_0x7d45cd(_0x2f2504,_0x39d589,_0x5684fa):_0x7d45cd(_0x5684fa))||_0x5684fa);return _0x333032&&_0x5684fa&&_0x2672c7(_0x2f2504,_0x39d589,_0x5684fa),_0x5684fa;},_0x45a621=(_0x58b721,_0x1c1b95)=>(_0x4091e2,_0x52e84c)=>_0x1c1b95(_0x4091e2,_0x52e84c,_0x58b721);_0x59ce0d[_0x51d41b(0x285)]=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x5dc1cb,_0x5b5a0e,_0x281407,_0x167cab,_0x38c9f2,_0x28be68){const _0x53c4a2=_0x51d41b;super(),_0x55fd67(this,'_socket$',new _0x22cf47['BehaviorSubject'](void 0x0)),_0x55fd67(this,'socket$',this['_socket$']['asObservable']()),_0x55fd67(this,_0x53c4a2(0x3c2),new Map()),_0x55fd67(this,_0x53c4a2(0x378),new _0x22cf47[(_0x53c4a2(0x482))](_0x4c781c[_0x53c4a2(0x3be)])),_0x55fd67(this,'status$',this[_0x53c4a2(0x378)][_0x53c4a2(0x544)]()),_0x55fd67(this,'_socketReady',!0x1),_0x55fd67(this,_0x53c4a2(0x2ef)),_0x55fd67(this,_0x53c4a2(0x2f7),0x0),_0x55fd67(this,'_sendHeartbeatTimer'),_0x55fd67(this,'_timeoutTimer'),(this[_0x53c4a2(0x2b0)]=_0x5dc1cb,this[_0x53c4a2(0x31f)]=_0x5b5a0e,this['_messageService']=_0x281407,this[_0x53c4a2(0x545)]=_0x167cab,this['_configService']=_0x38c9f2,this[_0x53c4a2(0x312)]=_0x28be68);}get[_0x51d41b(0x590)](){const _0x132cb1=_0x51d41b;return this[_0x132cb1(0x3ab)][_0x132cb1(0x2b1)]();}[_0x51d41b(0x3cd)](){const _0x32d33b=_0x51d41b;super[_0x32d33b(0x3cd)](),this[_0x32d33b(0x3c2)][_0x32d33b(0x1a9)](_0xf9ddf2=>_0xf9ddf2[_0x32d33b(0x3cd)]()),this[_0x32d33b(0x3c2)]['clear'](),this[_0x32d33b(0x378)][_0x32d33b(0x22a)]();}async['requireSession'](_0x7f47d7){const _0x3c436b=_0x51d41b;if(this[_0x3c436b(0x3c2)]['has'](_0x7f47d7))return this[_0x3c436b(0x3c2)][_0x3c436b(0x58c)](_0x7f47d7);this[_0x3c436b(0x1bc)]();const _0x24c4af=this[_0x3c436b(0x2b0)][_0x3c436b(0x2e7)](_0x59ce0d[_0x3c436b(0x459)],_0x7f47d7,this['_socket$'][_0x3c436b(0x544)]());return this[_0x3c436b(0x3c2)]['set'](_0x7f47d7,_0x24c4af),_0x24c4af;}[_0x51d41b(0x1e8)](_0x58bf92){const _0x5d8363=_0x51d41b;var _0x35704d;const _0x350528=this[_0x5d8363(0x3c2)][_0x5d8363(0x58c)](_0x58bf92);_0x350528&&(this[_0x5d8363(0x3c2)][_0x5d8363(0x560)](_0x58bf92),_0x350528[_0x5d8363(0x47c)]()),this['_sessions'][_0x5d8363(0x32c)]||(_0x35704d=this['_socket'])==null||_0x35704d['close']();}[_0x51d41b(0x1df)](){const _0x4e22ae=_0x51d41b;this[_0x4e22ae(0x2f7)]=0x0,this[_0x4e22ae(0x2ef)]!=null&&(clearTimeout(this[_0x4e22ae(0x2ef)]),this[_0x4e22ae(0x2ef)]=null),this[_0x4e22ae(0x1ba)]();}[_0x51d41b(0x290)](){const _0x2cf996=_0x51d41b;var _0x640322;const _0x213d60=(_0x640322=this[_0x2cf996(0x448)][_0x2cf996(0x1a6)](_0x53dc60))!=null?_0x640322:_0xe402b;return this[_0x2cf996(0x312)][_0x2cf996(0x1e1)](_0x213d60);}[_0x51d41b(0x1bc)](){const _0x5f4029=_0x51d41b;try{const _0xdd4814=this[_0x5f4029(0x290)]();if(_0xdd4814){const _0x289e18=_0xdd4814['send'];_0xdd4814[_0x5f4029(0x4a2)]=_0x2f866f=>(this[_0x5f4029(0x45f)](),_0x289e18[_0x5f4029(0x476)](_0xdd4814,[_0x2f866f])),_0xdd4814[_0x5f4029(0x368)][_0x5f4029(0x200)](_0x4c592f=>this['_onMessage'](_0xdd4814,_0x4c592f)),_0xdd4814['error$'][_0x5f4029(0x257)](_0x547088[_0x5f4029(0x4fb)](0x1))[_0x5f4029(0x200)](_0x1d2651=>this[_0x5f4029(0x545)]['error'](_0x5f4029(0x526),_0x1d2651)),_0xdd4814[_0x5f4029(0x509)]['pipe'](_0x547088['take'](0x1))['subscribe'](()=>{const _0x1368e6=_0x5f4029;this[_0x1368e6(0x4a4)](_0xdd4814);}),_0xdd4814['close$']['pipe'](_0x547088[_0x5f4029(0x4fb)](0x1))[_0x5f4029(0x200)](_0x39c8b1=>{const _0x5f2f25=_0x5f4029;this[_0x5f2f25(0x545)][_0x5f2f25(0x45b)](_0x5f2f25(0x440),'socket\x20close',_0x39c8b1),this[_0x5f2f25(0x465)]();});}}catch(_0x542181){this[_0x5f4029(0x545)][_0x5f4029(0x405)](_0x542181),this[_0x5f4029(0x465)]();}}[_0x51d41b(0x4a4)](_0x2b490a){const _0x3923c3=_0x51d41b;this[_0x3923c3(0x545)][_0x3923c3(0x45b)]('[CollaborationSessionService]','socket\x20open.'),_0x2b490a['send']({'cmd':_0x16a3a1['HELLO']}),this[_0x3923c3(0x45f)](),this[_0x3923c3(0x32d)]();}['_listenToOfflineEvent'](){const _0x220145=_0x51d41b,_0x6715af=()=>{const _0x36b329=_0x4682;this[_0x36b329(0x431)](),this[_0x36b329(0x539)](),window[_0x36b329(0x19a)](_0x36b329(0x1b9),_0x6715af);};window[_0x220145(0x42f)](_0x220145(0x1b9),_0x6715af);}[_0x51d41b(0x431)](){const _0x2b4cec=_0x51d41b;this[_0x2b4cec(0x1e0)]=!0x1,this[_0x2b4cec(0x378)][_0x2b4cec(0x1d6)](_0x4c781c['OFFLINE']),this[_0x2b4cec(0x3ab)]['next'](null),this[_0x2b4cec(0x4c7)](),this[_0x2b4cec(0x3f3)]();}['_onConnectionFailed'](){const _0x517d98=_0x51d41b;var _0x32821a;this['_onOffline'](),this[_0x517d98(0x2f7)]<((_0x32821a=this['_configService'][_0x517d98(0x1a6)](_0xdebb3a))!=null?_0x32821a:0x3)?(this['_messageService'][_0x517d98(0x3c3)]({'key':_0x517d98(0x281),'type':_0x53e1d0['MessageType'][_0x517d98(0x42c)],'content':this[_0x517d98(0x31f)]['t'](_0x517d98(0x19c))}),this['_tryReconnect']()):(this[_0x517d98(0x2a7)][_0x517d98(0x3c3)]({'key':'collaboration-session-retry','type':_0x53e1d0[_0x517d98(0x31b)][_0x517d98(0x372)],'content':this[_0x517d98(0x31f)]['t'](_0x517d98(0x455))}),this['_listenToOnlineEvent']());}[_0x51d41b(0x539)](){const _0x129b7f=_0x51d41b,_0x3575a0=()=>{const _0x478806=_0x4682;this['reconnect'](),window[_0x478806(0x19a)](_0x478806(0x2b8),_0x3575a0);};window['addEventListener'](_0x129b7f(0x2b8),_0x3575a0),this[_0x129b7f(0x3ab)][_0x129b7f(0x257)](_0x547088['filter'](_0x2832a1=>!!_0x2832a1),_0x547088[_0x129b7f(0x4fb)](0x1))[_0x129b7f(0x200)](()=>{const _0x5a3808=_0x129b7f;window[_0x5a3808(0x19a)]('online',_0x3575a0);});}[_0x51d41b(0x1ba)](){const _0x3d49ba=_0x51d41b;var _0x2dd649;const _0x42290b=this[_0x3d49ba(0x2f7)],_0xfa3055=_0x42290b===0x0?0x0:((_0x2dd649=this[_0x3d49ba(0x448)][_0x3d49ba(0x1a6)](_0x2353ba))!=null?_0x2dd649:0x4e20)*0x2**_0x42290b;this[_0x3d49ba(0x2ef)]=window['setTimeout'](()=>{const _0x44a906=_0x3d49ba;clearTimeout(this[_0x44a906(0x2ef)]),this[_0x44a906(0x2ef)]=null,this[_0x44a906(0x1bc)]();},_0xfa3055),this[_0x3d49ba(0x2f7)]+=0x1;}[_0x51d41b(0x389)](_0x38b56a,_0xe3369c){const _0x120c1c=_0x51d41b,{cmd:_0x3a5cae}=_0xe3369c;_0x3a5cae===_0x16a3a1[_0x120c1c(0x420)]&&!this[_0x120c1c(0x1e0)]&&(_0x38b56a[_0x120c1c(0x264)]=_0xe3369c[_0x120c1c(0x34f)][_0x120c1c(0x264)],this[_0x120c1c(0x3ab)][_0x120c1c(0x1d6)](_0x38b56a),this['_status$']['next'](_0x4c781c[_0x120c1c(0x2b3)]),this[_0x120c1c(0x1e0)]=!0x0),_0x3a5cae===_0x16a3a1[_0x120c1c(0x237)]&&this['_clearTimeoutTimer'](),this[_0x120c1c(0x45f)]();}['_rescheduleHeartbeat'](){const _0x202748=_0x51d41b;var _0x2b91cb;this[_0x202748(0x3f3)](),this['_sendHeartbeatTimer']=window[_0x202748(0x1a2)](()=>this[_0x202748(0x227)](),(_0x2b91cb=this[_0x202748(0x448)][_0x202748(0x1a6)](_0x14d59a))!=null?_0x2b91cb:0x7530);}['_sendHeartbeat'](){const _0x1fc553=_0x51d41b;this[_0x1fc553(0x590)]['send']({'cmd':_0x16a3a1[_0x1fc553(0x237)]}),this[_0x1fc553(0x29d)]();}[_0x51d41b(0x29d)](){const _0x57f726=_0x51d41b;var _0x2c5a1a;this['_timeoutTimer']=window[_0x57f726(0x1a2)](()=>this['_onConnectionFailed'](),(_0x2c5a1a=this[_0x57f726(0x448)]['getConfig'](_0x1734e8))!=null?_0x2c5a1a:0x2710);}[_0x51d41b(0x3f3)](){const _0x1f9f5f=_0x51d41b;this[_0x1f9f5f(0x2e0)]!=null&&(clearTimeout(this[_0x1f9f5f(0x2e0)]),this['_sendHeartbeatTimer']=null);}[_0x51d41b(0x4c7)](){const _0x149c48=_0x51d41b;this[_0x149c48(0x29b)]!=null&&(clearTimeout(this[_0x149c48(0x29b)]),this['_timeoutTimer']=null);}},_0x59ce0d[_0x51d41b(0x285)]=_0x47a4b6([_0x45a621(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x45a621(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)])),_0x45a621(0x2,_0x455671[_0x51d41b(0x1c1)]),_0x45a621(0x3,_0x36d396[_0x51d41b(0x495)]),_0x45a621(0x4,_0x36d396[_0x51d41b(0x511)]),_0x45a621(0x5,_0xe35b0b)],_0x59ce0d[_0x51d41b(0x285)]);var _0x3af560=Object[_0x51d41b(0x215)],_0x1b692d=Object['getOwnPropertyDescriptor'],_0x4b6519=(_0x380ccb,_0x5057ce,_0x372d7e,_0x849dc4)=>{for(var _0xa54565=_0x849dc4>0x1?void 0x0:_0x849dc4?_0x1b692d(_0x5057ce,_0x372d7e):_0x5057ce,_0x5c3e01=_0x380ccb['length']-0x1,_0xbd8d88;_0x5c3e01>=0x0;_0x5c3e01--)(_0xbd8d88=_0x380ccb[_0x5c3e01])&&(_0xa54565=(_0x849dc4?_0xbd8d88(_0x5057ce,_0x372d7e,_0xa54565):_0xbd8d88(_0xa54565))||_0xa54565);return _0x849dc4&&_0xa54565&&_0x3af560(_0x5057ce,_0x372d7e,_0xa54565),_0xa54565;},_0x2a1179=(_0x3b13b0,_0x4f8845)=>(_0x323525,_0x39f9d5)=>_0x4f8845(_0x323525,_0x39f9d5,_0x3b13b0);let _0x3106a2=class{constructor(_0x664f0d,_0x77e894){const _0xec14e2=_0x51d41b;this[_0xec14e2(0x2b0)]=_0x664f0d,this[_0xec14e2(0x376)]=_0x77e894;}[_0x51d41b(0x43e)](_0x318881){const _0x28e7f1=_0x51d41b;this[_0x28e7f1(0x340)](_0x318881),this[_0x28e7f1(0x210)](_0x318881);}['transformRemoteChangeset'](_0x51e547){const _0x58c23d=_0x51d41b,_0x5cfb72=this[_0x58c23d(0x2b0)][_0x58c23d(0x58c)](_0x569fac[_0x58c23d(0x365)]),{redoCache:_0x144b56}=_0x5cfb72['getUndoRedoMutationParamsCache']();if(_0x144b56[_0x58c23d(0x392)]===0x0)return _0x51e547;let _0x47aabb=_0x36d396[_0x58c23d(0x20e)][_0x58c23d(0x2de)](_0x51e547[_0x58c23d(0x533)][0x0]);for(let _0x4d0122=0x0;_0x4d0122<_0x144b56[_0x58c23d(0x392)];_0x4d0122++){const _0x4ab33a={'id':'doc.mutation.rich-text-editing','params':{..._0x144b56[_0x4d0122]}},_0x77f898=this[_0x58c23d(0x376)][_0x58c23d(0x3e9)](_0x47aabb,_0x4ab33a,!0x1);if(_0x346629[_0x58c23d(0x3ec)](_0x77f898))throw _0x77f898[_0x58c23d(0x405)];_0x47aabb=_0x77f898[_0x58c23d(0x503)];}return{..._0x36d396[_0x58c23d(0x20e)][_0x58c23d(0x2de)](_0x51e547),'mutations':[_0x47aabb]};}[_0x51d41b(0x340)](_0x439dd0){const _0x42edb5=_0x51d41b,_0x1a3162=this[_0x42edb5(0x2b0)][_0x42edb5(0x58c)](_0x569fac[_0x42edb5(0x365)]),{undoCache:_0x23beaa,redoCache:_0x479ab9}=_0x1a3162[_0x42edb5(0x4b3)]();if(_0x23beaa[_0x42edb5(0x392)]===0x0||_0x479ab9['length']===0x0)return;const _0x2a2d9b=[],_0x4cc4af=[];let _0x23f59a=_0x36d396['Tools'][_0x42edb5(0x2de)](_0x439dd0[_0x42edb5(0x533)][0x0]),_0x5d4f50=_0x36d396['Tools'][_0x42edb5(0x2de)](_0x439dd0[_0x42edb5(0x533)][0x0]);for(let _0x12163c=_0x23beaa['length']-0x1;_0x12163c>=0x0;_0x12163c--){const _0x54a4dc={'id':_0x42edb5(0x24e),'params':{..._0x23beaa[_0x12163c]}},_0x4a1831={'id':'doc.mutation.rich-text-editing','params':{..._0x479ab9[_0x12163c]}},_0x1b46f9=this[_0x42edb5(0x376)]['transformMutation'](_0x23f59a,_0x54a4dc,!0x1),_0x295d5a=this[_0x42edb5(0x376)][_0x42edb5(0x3e9)](_0x5d4f50,_0x4a1831,!0x1);if(_0x346629['isTransformMutationFailure'](_0x1b46f9))throw _0x1b46f9[_0x42edb5(0x405)];if(_0x346629['isTransformMutationFailure'](_0x295d5a))throw _0x295d5a[_0x42edb5(0x405)];_0x2a2d9b[_0x42edb5(0x584)](_0x1b46f9[_0x42edb5(0x4b5)][_0x42edb5(0x1c3)]),_0x4cc4af[_0x42edb5(0x584)](_0x295d5a[_0x42edb5(0x4b5)][_0x42edb5(0x1c3)]),_0x23f59a=_0x1b46f9['m1Prime'],_0x5d4f50=_0x295d5a[_0x42edb5(0x503)];}_0x1a3162['setUndoRedoMutationParamsCache']({'undoCache':_0x2a2d9b,'redoCache':_0x4cc4af});}[_0x51d41b(0x210)](_0x184e24){const _0x267976=_0x51d41b,_0x4a78c4=this[_0x267976(0x2b0)][_0x267976(0x58c)](_0x569fac['IMEInputManagerService']),_0x19e7e7=_0x4a78c4[_0x267976(0x3f0)]();if(_0x19e7e7==null)return;const _0x52a3cb=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x184e24[_0x267976(0x35f)],'actions':null,'textRanges':[_0x19e7e7]}}],_0x156415=this['_transformService'][_0x267976(0x26e)](_0x184e24,_0x52a3cb);if(!_0x346629['isTransformMutationsWithChangesetSuccess'](_0x156415))throw _0x156415[_0x267976(0x405)];const _0x383f38=_0x156415[_0x267976(0x4b5)][0x0]['params']['textRanges'];Array[_0x267976(0x223)](_0x383f38)&&_0x383f38[_0x267976(0x392)]&&_0x4a78c4['setActiveRange'](_0x383f38[0x0]);}};_0x3106a2=_0x4b6519([_0x2a1179(0x0,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x2a1179(0x1,_0x346629[_0x51d41b(0x213)])],_0x3106a2);var _0x1945eb=Object[_0x51d41b(0x215)],_0xa5de18=Object[_0x51d41b(0x2b7)],_0x4b8388=(_0x4fc363,_0x548409,_0x222f03,_0x3aa53c)=>{const _0x3efb18=_0x51d41b;for(var _0x29224e=_0x3aa53c>0x1?void 0x0:_0x3aa53c?_0xa5de18(_0x548409,_0x222f03):_0x548409,_0x2ec157=_0x4fc363[_0x3efb18(0x392)]-0x1,_0x292884;_0x2ec157>=0x0;_0x2ec157--)(_0x292884=_0x4fc363[_0x2ec157])&&(_0x29224e=(_0x3aa53c?_0x292884(_0x548409,_0x222f03,_0x29224e):_0x292884(_0x29224e))||_0x29224e);return _0x3aa53c&&_0x29224e&&_0x1945eb(_0x548409,_0x222f03,_0x29224e),_0x29224e;},_0x3c8259=(_0x5410f2,_0x120b86)=>(_0x24618e,_0x1f8753)=>_0x120b86(_0x24618e,_0x1f8753,_0x5410f2);_0x59ce0d[_0x51d41b(0x434)]=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x110341,_0x41e893,_0x4ef6d9,_0x15a623,_0x3eaa10){const _0x42f784=_0x51d41b;super(),_0x55fd67(this,_0x42f784(0x236),new Map()),_0x55fd67(this,_0x42f784(0x1de),new Map()),_0x55fd67(this,_0x42f784(0x4f9),!0x1),(this[_0x42f784(0x448)]=_0x110341,this[_0x42f784(0x330)]=_0x41e893,this[_0x42f784(0x524)]=_0x4ef6d9,this[_0x42f784(0x31f)]=_0x15a623,this[_0x42f784(0x2c4)]=_0x3eaa10,this['_setupBeforeClosingHandler']());}[_0x51d41b(0x1a0)](){const _0x1bb67a=_0x51d41b;this[_0x1bb67a(0x4f9)]=!0x0;}[_0x51d41b(0x4a8)](){const _0x32042b=_0x51d41b;this[_0x32042b(0x4f9)]=!0x1;}[_0x51d41b(0x3cd)](){const _0x2981c0=_0x51d41b;this[_0x2981c0(0x492)]()[_0x2981c0(0x59d)](()=>super[_0x2981c0(0x3cd)]());}async['loadOfflineData'](_0x5ad95a){const _0x13ad9e=_0x51d41b;return this[_0x13ad9e(0x4f9)]?null:this[_0x13ad9e(0x330)]['getItem'](_0x5c1bdb(_0x5ad95a));}async[_0x51d41b(0x4cd)](_0x2d08a6,_0x51ab22){const _0x639ddc=_0x51d41b;return!!this['_localStorageService'][_0x639ddc(0x56c)](_0x2d08a6,_0x51ab22);}[_0x51d41b(0x34a)](_0x50d5e2,_0x18001e,_0x8e0455,_0x534dbb){const _0x4aa379=_0x51d41b,_0x2095d2=this[_0x4aa379(0x2c4)][_0x4aa379(0x59e)](_0x50d5e2);this[_0x4aa379(0x236)][_0x4aa379(0x27f)](_0x50d5e2,{'unitID':_0x50d5e2,'type':_0x18001e,'awaitingChangeset':_0x8e0455,'mutations':_0x534dbb,'rev':_0x2095d2}),this[_0x4aa379(0x1de)][_0x4aa379(0x58b)](_0x50d5e2)||this[_0x4aa379(0x4c1)](_0x50d5e2);}[_0x51d41b(0x4c1)](_0x2e4849){const _0x2d9fb6=_0x51d41b,_0xc58274=this[_0x2d9fb6(0x32f)]();_0xc58274===0x0?this[_0x2d9fb6(0x380)](_0x2e4849):this[_0x2d9fb6(0x1de)][_0x2d9fb6(0x27f)](_0x2e4849,setTimeout(()=>this[_0x2d9fb6(0x380)](_0x2e4849),_0xc58274));}[_0x51d41b(0x32f)](){const _0x276cb9=_0x51d41b;var _0x19e580;return(_0x19e580=this[_0x276cb9(0x448)][_0x276cb9(0x1a6)](_0x341945))!=null?_0x19e580:0x3e8;}[_0x51d41b(0x380)](_0x321a4c){const _0x57684f=_0x51d41b,_0x43f5fe=this['_saveTaskMap']['get'](_0x321a4c);return _0x43f5fe!==void 0x0&&window[_0x57684f(0x34c)](_0x43f5fe),this[_0x57684f(0x330)][_0x57684f(0x56c)](_0x5c1bdb(_0x321a4c),this[_0x57684f(0x236)]['get'](_0x321a4c))['then'](()=>this[_0x57684f(0x1de)]['delete'](_0x321a4c));}async[_0x51d41b(0x492)](){const _0x19fd3b=_0x51d41b,_0x1b936d=[];this[_0x19fd3b(0x1de)][_0x19fd3b(0x1a9)]((_0x48b20e,_0x2e49b5)=>{const _0x3c4e32=_0x19fd3b;window[_0x3c4e32(0x34c)](_0x48b20e),_0x1b936d[_0x3c4e32(0x3cf)](this[_0x3c4e32(0x380)](_0x2e49b5)[_0x3c4e32(0x59d)](()=>{this['_saveTaskMap']['delete'](_0x2e49b5);}));}),await Promise[_0x19fd3b(0x48f)](_0x1b936d);}['_setupBeforeClosingHandler'](){const _0x13ca86=_0x51d41b;this['disposeWithMe'](this[_0x13ca86(0x524)]['registerBeforeClose'](()=>{const _0x3a9f5a=_0x13ca86;if(this[_0x3a9f5a(0x1de)]['size'])return this[_0x3a9f5a(0x31f)]['t'](_0x3a9f5a(0x490));}));}},_0x59ce0d[_0x51d41b(0x434)]=_0x4b8388([_0x3c8259(0x0,_0x36d396[_0x51d41b(0x511)]),_0x3c8259(0x1,_0x36d396['ILocalStorageService']),_0x3c8259(0x2,_0x455671[_0x51d41b(0x4bd)]),_0x3c8259(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['LocaleService'])),_0x3c8259(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)]))],_0x59ce0d[_0x51d41b(0x434)]);function _0x5c1bdb(_0x234d03){return'unit-cache-'+_0x234d03;}var _0x2dd8e9=Object[_0x51d41b(0x215)],_0x2526c7=Object[_0x51d41b(0x2b7)],_0xcfd0d3=(_0xec5731,_0x1fcf22,_0x16d698,_0x2c1bc2)=>{for(var _0x969719=_0x2c1bc2>0x1?void 0x0:_0x2c1bc2?_0x2526c7(_0x1fcf22,_0x16d698):_0x1fcf22,_0x148cf9=_0xec5731['length']-0x1,_0x45e405;_0x148cf9>=0x0;_0x148cf9--)(_0x45e405=_0xec5731[_0x148cf9])&&(_0x969719=(_0x2c1bc2?_0x45e405(_0x1fcf22,_0x16d698,_0x969719):_0x45e405(_0x969719))||_0x969719);return _0x2c1bc2&&_0x969719&&_0x2dd8e9(_0x1fcf22,_0x16d698,_0x969719),_0x969719;},_0x3b269e=(_0x45b102,_0x5c9b6a)=>(_0x2bbce6,_0x489f4e)=>_0x5c9b6a(_0x2bbce6,_0x489f4e,_0x45b102);function _0x39184d(_0x2f0865){const _0x9f60df=_0x51d41b,{unitID:_0x1150b4,mutations:_0x2db6c6}=_0x2f0865;return{'unitId':_0x1150b4,'subUnitId':_0x2db6c6[0x0][_0x9f60df(0x1c3)][_0x9f60df(0x367)]};}let _0x57d656=class{constructor(_0x1958e3,_0x3a22cc,_0x413eb2){const _0x36b007=_0x51d41b;this['_injector']=_0x1958e3,this[_0x36b007(0x376)]=_0x3a22cc,this[_0x36b007(0x207)]=_0x413eb2;}['transformSelections'](_0x2d69f9){const _0xe01e2b=_0x51d41b;var _0xe4648,_0x3daea6,_0xcdc06b,_0x187095,_0x5e0317;const _0x29e00f=this[_0xe01e2b(0x2b0)][_0xe01e2b(0x58c)](_0xdbe912[_0xe01e2b(0x5ac)]),{unitId:_0x1b33b9,subUnitId:_0x25d086}=_0x39184d(_0x2d69f9),_0x3b13cf=_0x29e00f[_0xe01e2b(0x4de)](_0x1b33b9)[_0xe01e2b(0x462)](),_0x10af9f=(_0x3daea6=(_0xe4648=this[_0xe01e2b(0x207)][_0xe01e2b(0x48e)](_0x1b33b9))==null?void 0x0:_0xe4648[_0xe01e2b(0x25a)]())==null?void 0x0:_0x3daea6['getSheetId']();if(_0x3b13cf['length']===0x0||!_0x1b33b9||!_0x25d086)return;const _0x348ef7=[{'id':_0xdbe912[_0xe01e2b(0x39e)]['id'],'params':{'unitId':_0x1b33b9,'subUnitId':_0x10af9f,'selections':_0x36d396[_0xe01e2b(0x20e)][_0xe01e2b(0x2de)](_0x3b13cf)}}],_0x5ac282=this['_transformService'][_0xe01e2b(0x26e)](_0x2d69f9,_0x348ef7);if(!_0x346629[_0xe01e2b(0x33d)](_0x5ac282))throw _0x5ac282[_0xe01e2b(0x405)];const _0x19de87=(_0x5e0317=(_0x187095=(_0xcdc06b=_0x5ac282['m2Prime'][0x0])==null?void 0x0:_0xcdc06b[_0xe01e2b(0x1c3)])==null?void 0x0:_0x187095[_0xe01e2b(0x216)])!=null?_0x5e0317:_0x3b13cf;Array[_0xe01e2b(0x223)](_0x19de87)&&_0x19de87['length']&&this['_injector'][_0xe01e2b(0x58c)](_0x36d396[_0xe01e2b(0x1d5)])[_0xe01e2b(0x4d0)](_0xdbe912['SetSelectionsOperation']['id'],{'unitId':_0x1b33b9,'subUnitId':_0x25d086,'selections':_0x19de87});}};_0x57d656=_0xcfd0d3([_0x3b269e(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['Injector'])),_0x3b269e(0x1,_0x346629[_0x51d41b(0x213)]),_0x3b269e(0x2,_0x36d396[_0x51d41b(0x2c5)])],_0x57d656);const _0x33f55f=_0x36d396[_0x51d41b(0x494)](_0x51d41b(0x5a3));var _0x47a42c=(_0x9b1824=>(_0x9b1824[_0x9b1824[_0x51d41b(0x4da)]=0x0]=_0x51d41b(0x4da),_0x9b1824[_0x9b1824['OTHER_CLIENTS_EDITING']=0x1]=_0x51d41b(0x3e8),_0x9b1824))(_0x47a42c||{});const _0x4db7ff=0x7530,_0x216a63=_0x51d41b(0x282);class _0x5cacbb extends _0x36d396[_0x51d41b(0x4f0)]{constructor(){const _0x3b90d7=_0x51d41b;super(),_0x55fd67(this,_0x3b90d7(0x3e1),_0x36d396[_0x3b90d7(0x20e)][_0x3b90d7(0x1e3)]()),_0x55fd67(this,_0x3b90d7(0x1fc),new Set()),_0x55fd67(this,_0x3b90d7(0x415),new Map()),_0x55fd67(this,_0x3b90d7(0x30b),null),_0x55fd67(this,'_clearOtherTimers',new Map()),_0x55fd67(this,_0x3b90d7(0x1b0),new Map()),this[_0x3b90d7(0x571)]();}[_0x51d41b(0x3cd)](){const _0x1613de=_0x51d41b;super[_0x1613de(0x3cd)](),this[_0x1613de(0x4d4)][_0x1613de(0x1a9)]((_0x3af277,_0x4d4538)=>this[_0x1613de(0x585)](_0x4d4538)),this[_0x1613de(0x30b)]&&window[_0x1613de(0x1cd)](this['_heartbeatTimer']);}[_0x51d41b(0x25c)](_0x5a4679){const _0x3151fc=_0x51d41b;return this[_0x3151fc(0x558)](_0x5a4679)[_0x3151fc(0x257)](_0x22cf47[_0x3151fc(0x388)]());}[_0x51d41b(0x416)](_0x1d2103){const _0x568fb8=_0x51d41b;this['_selfUnitIDs'][_0x568fb8(0x32c)]===0x0&&this[_0x568fb8(0x2f1)](),this[_0x568fb8(0x1fc)]['add'](_0x1d2103),this[_0x568fb8(0x44e)]({'type':0x0,'memberID':this[_0x568fb8(0x3e1)],'unitIDs':[_0x1d2103],'isForwarded':!0x1});}[_0x51d41b(0x56d)](_0x1b4dc5){const _0x2d43eb=_0x51d41b;this[_0x2d43eb(0x1fc)][_0x2d43eb(0x560)](_0x1b4dc5),this[_0x2d43eb(0x1fc)][_0x2d43eb(0x32c)]===0x0&&this['_heartbeatTimer']&&window[_0x2d43eb(0x1cd)](this[_0x2d43eb(0x30b)]);}[_0x51d41b(0x571)](){const _0x5d1676=_0x51d41b;this['disposeWithMe'](_0x36d396[_0x5d1676(0x1d9)](_0x22cf47[_0x5d1676(0x2ea)](window,'storage')['subscribe'](_0x200e4e=>{const _0x560d56=_0x5d1676;if(_0x200e4e['key']!==_0x216a63||!_0x200e4e['newValue'])return;const _0x512945=JSON[_0x560d56(0x1ff)](_0x200e4e[_0x560d56(0x2c1)]);this[_0x560d56(0x2c7)](_0x512945);}))),window['addEventListener']('unload',()=>this[_0x5d1676(0x44e)]({'type':0x1,'memberID':this[_0x5d1676(0x3e1)],'unitIDs':Array[_0x5d1676(0x58d)](this['_selfUnitIDs'])}));}[_0x51d41b(0x2c7)](_0x470756){const _0x1cd1a3=_0x51d41b;switch(_0x470756[_0x1cd1a3(0x2cb)]){case 0x0:this[_0x1cd1a3(0x2ab)](_0x470756);break;case 0x1:this['_handleLeaveEvent'](_0x470756);break;case 0x2:this[_0x1cd1a3(0x1a1)](_0x470756);break;}}['_handleJoinEvent'](_0x244bd5){const _0x44edbc=_0x51d41b,{unitIDs:_0x1245bb,memberID:_0x554d09,isForwarded:_0x3c59d7}=_0x244bd5;_0x1245bb['forEach'](_0x4c67a7=>{const _0x4d15e6=_0x4682;if(!_0x3c59d7&&this[_0x4d15e6(0x415)][_0x4d15e6(0x58b)](_0x4c67a7)&&this['_ensureSubject'](_0x4c67a7)[_0x4d15e6(0x1d6)](0x1),!this[_0x4d15e6(0x415)][_0x4d15e6(0x58b)](_0x4c67a7)||!this[_0x4d15e6(0x415)]['get'](_0x4c67a7)[_0x4d15e6(0x58b)](_0x554d09)){const _0x2a3705=this[_0x4d15e6(0x415)]['get'](_0x4c67a7)||new Set();_0x2a3705[_0x4d15e6(0x5a2)](_0x554d09),this['_unitOnClients'][_0x4d15e6(0x27f)](_0x4c67a7,_0x2a3705),this[_0x4d15e6(0x377)](_0x554d09);}}),_0x3c59d7||this[_0x44edbc(0x44e)]({'type':0x0,'memberID':this[_0x44edbc(0x3e1)],'unitIDs':[...this[_0x44edbc(0x1fc)]],'isForwarded':!0x0});}[_0x51d41b(0x377)](_0x1ca2dc){const _0x2af55e=_0x51d41b;this[_0x2af55e(0x585)](_0x1ca2dc);const _0x51b9c9=window[_0x2af55e(0x1a2)](()=>{const _0x4eab9e=_0x2af55e;this[_0x4eab9e(0x415)]['forEach'](_0x4a62e6=>{_0x4a62e6['delete'](_0x1ca2dc);});},_0x4db7ff*0x2);this[_0x2af55e(0x4d4)][_0x2af55e(0x27f)](_0x1ca2dc,_0x51b9c9);}[_0x51d41b(0x585)](_0x3631ab){const _0x4f8ea8=_0x51d41b;if(this[_0x4f8ea8(0x4d4)][_0x4f8ea8(0x58b)](_0x3631ab)){const _0x35aef0=this[_0x4f8ea8(0x4d4)][_0x4f8ea8(0x58c)](_0x3631ab);_0x35aef0&&window['clearTimeout'](_0x35aef0),this['_clearOtherTimers'][_0x4f8ea8(0x27f)](_0x3631ab,null);}}['_handleLeaveEvent'](_0x3cef80){const {memberID:_0x4c7ca6,unitIDs:_0x77aff8}=_0x3cef80;_0x77aff8['forEach'](_0x43ad13=>{const _0x30690=_0x4682;var _0x4005c1;const _0x14d5f6=this['_unitOnClients'][_0x30690(0x58c)](_0x43ad13);_0x14d5f6&&(_0x14d5f6[_0x30690(0x560)](_0x4c7ca6),(_0x4005c1=this[_0x30690(0x558)](_0x43ad13))==null||_0x4005c1[_0x30690(0x1d6)](_0x14d5f6[_0x30690(0x32c)]===0x0?0x0:0x1));}),this['_removeClearOtherTimer'](_0x4c7ca6);}[_0x51d41b(0x1a1)](_0x7e345){const _0x4a7bab=_0x51d41b;this[_0x4a7bab(0x377)](_0x7e345[_0x4a7bab(0x264)]);}[_0x51d41b(0x44e)](_0x3f0629){const _0x3cb80a=_0x51d41b;localStorage[_0x3cb80a(0x56c)](_0x216a63,JSON['stringify'](_0x3f0629));}[_0x51d41b(0x2f1)](){const _0xe1032e=_0x51d41b;this[_0xe1032e(0x30b)]=window[_0xe1032e(0x500)](()=>{const _0x41116a=_0xe1032e;this[_0x41116a(0x44e)]({'type':0x2,'memberID':this[_0x41116a(0x3e1)]});},_0x4db7ff);}[_0x51d41b(0x558)](_0x387ffa){const _0xc1485d=_0x51d41b;return this[_0xc1485d(0x1b0)][_0xc1485d(0x58b)](_0x387ffa)||this[_0xc1485d(0x1b0)]['set'](_0x387ffa,new _0x22cf47[(_0xc1485d(0x482))](0x0)),this[_0xc1485d(0x1b0)][_0xc1485d(0x58c)](_0x387ffa);}}function _0x31462b(_0x35c2df){let _0x47fcfa='';for(const _0x5d3b2d of _0x35c2df){const {startOffset:_0x10eb1e,endOffset:_0x2f8c9f,isActive:_0x1b367f}=_0x5d3b2d;_0x47fcfa['length']&&(_0x47fcfa+=','),_0x47fcfa+=_0x10eb1e+':'+_0x2f8c9f+':'+(_0x1b367f?'1':'0');}return _0x47fcfa;}function _0x302630(_0x28d564){const _0x5f1b97=_0x51d41b,_0x2515c6=_0x28d564[_0x5f1b97(0x357)](','),_0x20d60c=[];for(const _0x4a478c of _0x2515c6){const [_0x2526d0,_0x4c6a95,_0x2806a]=_0x4a478c[_0x5f1b97(0x357)](':');_0x20d60c['push']({'startOffset':Number(_0x2526d0),'endOffset':Number(_0x4c6a95),'collapsed':_0x2526d0===_0x4c6a95,'isActive':_0x2806a==='1'});}return _0x20d60c[_0x5f1b97(0x24c)](_0x2c4966=>_0x2c4966['isActive'])||(_0x20d60c[0x0][_0x5f1b97(0x467)]=!0x0),_0x20d60c;}class _0xb807fa extends _0x36d396[_0x51d41b(0x480)]{constructor(){const _0x5e91fb=_0x51d41b;super(...arguments),_0x55fd67(this,_0x5e91fb(0x1a4),new _0x22cf47[(_0x5e91fb(0x482))](null)),_0x55fd67(this,_0x5e91fb(0x40b),this[_0x5e91fb(0x1a4)]['asObservable']());}[_0x51d41b(0x2f6)](_0xa0b7ae){const _0x24184d=_0x51d41b,{unitID:_0x432b93,memberID:_0x16a7d2,textRanges:_0x242ad8}=_0xa0b7ae,_0x46b3c9=_0x31462b(_0x242ad8),_0x27c07f={'unitID':_0x432b93,'memberID':_0x16a7d2,'selection':_0x46b3c9};this[_0x24184d(0x1a4)]['next'](_0x27c07f);}}var _0x219c6e=Object[_0x51d41b(0x215)],_0xdea96e=Object[_0x51d41b(0x2b7)],_0xaca3f1=(_0x795f10,_0x51d8d0,_0x18cea2,_0x47b19e)=>{const _0x2122be=_0x51d41b;for(var _0x2a68af=_0x47b19e>0x1?void 0x0:_0x47b19e?_0xdea96e(_0x51d8d0,_0x18cea2):_0x51d8d0,_0x355f56=_0x795f10[_0x2122be(0x392)]-0x1,_0x156cc3;_0x355f56>=0x0;_0x355f56--)(_0x156cc3=_0x795f10[_0x355f56])&&(_0x2a68af=(_0x47b19e?_0x156cc3(_0x51d8d0,_0x18cea2,_0x2a68af):_0x156cc3(_0x2a68af))||_0x2a68af);return _0x47b19e&&_0x2a68af&&_0x219c6e(_0x51d8d0,_0x18cea2,_0x2a68af),_0x2a68af;},_0x31d939=(_0xc42fd4,_0x46763d)=>(_0x44f138,_0x13a106)=>_0x46763d(_0x44f138,_0x13a106,_0xc42fd4);let _0xe78d9a=class{constructor(_0xdc75f3,_0x4656d3){this['_injector']=_0xdc75f3,this['_transformService']=_0x4656d3;}[_0x51d41b(0x3dd)](_0x89c904){const _0x40d0d6=_0x51d41b;var _0x1b7d92;const _0x1be3b5=this['_injector']['get'](_0x569fac[_0x40d0d6(0x35c)]),_0x4277b9=(_0x1b7d92=_0x1be3b5[_0x40d0d6(0x4f4)]())!=null?_0x1b7d92:[],_0x225f62=_0x4277b9==null?void 0x0:_0x4277b9['map'](_0x569fac['serializeDocRange']);if(_0x225f62[_0x40d0d6(0x392)]===0x0)return;const _0x2ea31d=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x89c904[_0x40d0d6(0x35f)],'actions':null,'textRanges':_0x225f62}}],_0x3e7190=this['_transformService']['transformMutationsWithChangeset'](_0x89c904,_0x2ea31d);if(!_0x346629['isTransformMutationsWithChangesetSuccess'](_0x3e7190))throw _0x3e7190[_0x40d0d6(0x405)];const _0x22d3b3=_0x3e7190['m2Prime'][0x0][_0x40d0d6(0x1c3)][_0x40d0d6(0x559)];Array[_0x40d0d6(0x223)](_0x22d3b3)&&_0x22d3b3[_0x40d0d6(0x392)]&&_0x1be3b5[_0x40d0d6(0x4f6)](_0x22d3b3,!0x1);}};_0xe78d9a=_0xaca3f1([_0x31d939(0x0,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x31d939(0x1,_0x346629[_0x51d41b(0x213)])],_0xe78d9a);const _0x17b0f3=new Set([_0xdbe912[_0x51d41b(0x24b)]['id']]);function _0x3a6e6d(_0x2edea0,_0x52bf2a,_0x582439,_0xc2b22f,_0x3b95be){const _0x53cd15=_0x51d41b;var _0x217119,_0x49431c,_0x58ba53,_0x343466;const _0x33049e=[];for(const _0x17af11 of _0x2edea0)if(_0x17b0f3['has'](_0x17af11['id'])){if(_0x33049e[_0x53cd15(0x392)]>0x0)break;_0x33049e[_0x53cd15(0x3cf)](_0x17af11);break;}else _0x33049e[_0x53cd15(0x3cf)](_0x17af11);const _0x196164=(_0x49431c=(_0x217119=_0x3b95be['getCurrentUser']())==null?void 0x0:_0x217119['userID'])!=null?_0x49431c:_0x53cd15(0x39c),_0x53404f=(_0x343466=(_0x58ba53=_0x3b95be['getCurrentUser']())==null?void 0x0:_0x58ba53['memberID'])!=null?_0x343466:_0x53cd15(0x39c);return{'changeset':{'unitID':_0x52bf2a,'type':_0x346629['mapDocumentTypeToUniverType'](_0x582439['getUnitType'](_0x52bf2a)),'baseRev':_0xc2b22f[_0x53cd15(0x59e)](_0x52bf2a),'revision':0x0,'userID':_0x196164,'memberID':_0x53404f,'mutations':_0x33049e},'pendingMutations':_0x2edea0[_0x53cd15(0x28f)](_0x33049e['length'])};}function _0x22032f(_0x29b1be,_0x42dcf1,_0x5c1da2,_0x57c915,_0x1c22f0){const _0x11ff0f=_0x51d41b;var _0x4e31a9,_0x5e97cc,_0xe7c68c,_0x2efda5;const _0x303c4f=[_0x29b1be[_0x11ff0f(0x21b)]((_0xec94,_0x426d10)=>{const _0x3219e8=_0x11ff0f;var _0xb85027;const {id:_0x5322ed}=_0xec94,{id:_0x542495,type:_0x52d171}=_0x426d10,_0x56797a=(_0xb85027=_0xec94[_0x3219e8(0x1c3)])!=null?_0xb85027:{'actions':null},_0x22fdb6=_0x426d10['params'];if(_0x5322ed&&_0x5322ed!==_0x542495)throw new Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x5322ed+_0x3219e8(0x2ee)+_0x542495+'.');return{..._0xec94,'id':_0x542495,'type':_0x52d171,'params':{'unitId':_0x22fdb6['unitId'],'textRanges':_0x22fdb6[_0x3219e8(0x559)],'actions':_0x36d396[_0x3219e8(0x3e6)][_0x3219e8(0x36d)](_0x56797a[_0x3219e8(0x583)],_0x22fdb6['actions'])}};},{})],_0x4c9603=(_0x5e97cc=(_0x4e31a9=_0x1c22f0[_0x11ff0f(0x26c)]())==null?void 0x0:_0x4e31a9[_0x11ff0f(0x581)])!=null?_0x5e97cc:_0x11ff0f(0x39c),_0x24b17c=(_0x2efda5=(_0xe7c68c=_0x1c22f0['getCurrentUser']())==null?void 0x0:_0xe7c68c[_0x11ff0f(0x264)])!=null?_0x2efda5:'unknown';return{'changeset':{'unitID':_0x42dcf1,'type':_0x346629[_0x11ff0f(0x347)](_0x5c1da2[_0x11ff0f(0x29f)](_0x42dcf1)),'baseRev':_0x57c915['getCurrentRevForDocument'](_0x42dcf1),'revision':0x0,'userID':_0x4c9603,'memberID':_0x24b17c,'mutations':_0x303c4f},'pendingMutations':[]};}const _0x45cf0d={'id':_0xdbe912[_0x51d41b(0x2bb)]['id'],'type':_0x36d396[_0x51d41b(0x3c4)][_0x51d41b(0x1f5)],'params':{}};var _0x871db3=Object['defineProperty'],_0x402b3c=Object[_0x51d41b(0x2b7)],_0x31d3bb=(_0x4416d4,_0x5201db,_0x3c1c0a,_0x3e6334)=>{const _0x3da059=_0x51d41b;for(var _0x59d69c=_0x3e6334>0x1?void 0x0:_0x3e6334?_0x402b3c(_0x5201db,_0x3c1c0a):_0x5201db,_0x1ba539=_0x4416d4[_0x3da059(0x392)]-0x1,_0x2dba8a;_0x1ba539>=0x0;_0x1ba539--)(_0x2dba8a=_0x4416d4[_0x1ba539])&&(_0x59d69c=(_0x3e6334?_0x2dba8a(_0x5201db,_0x3c1c0a,_0x59d69c):_0x2dba8a(_0x59d69c))||_0x59d69c);return _0x3e6334&&_0x59d69c&&_0x871db3(_0x5201db,_0x3c1c0a,_0x59d69c),_0x59d69c;},_0x32bbd5=(_0x4cc384,_0xad7bea)=>(_0x4aa057,_0x1bad89)=>_0xad7bea(_0x4aa057,_0x1bad89,_0x4cc384),_0xcb53f5=(_0xaee41b=>(_0xaee41b['NOT_COLLAB']=_0x51d41b(0x439),_0xaee41b[_0x51d41b(0x36f)]='synced',_0xaee41b[_0x51d41b(0x4ef)]=_0x51d41b(0x417),_0xaee41b[_0x51d41b(0x515)]=_0x51d41b(0x3c9),_0xaee41b[_0x51d41b(0x4f1)]=_0x51d41b(0x21e),_0xaee41b[_0x51d41b(0x1f8)]=_0x51d41b(0x360),_0xaee41b['CONFLICT']=_0x51d41b(0x3a9),_0xaee41b[_0x51d41b(0x588)]=_0x51d41b(0x1b9),_0xaee41b))(_0xcb53f5||{});class _0x443389{constructor(_0xdf1d33,_0x31696c,_0x434454,_0x240d50,_0x562217,_0x3ac3f1,_0x5b0a80,_0x55d7bb,_0x18df0f){const _0x189f19=_0x51d41b;_0x55fd67(this,_0x189f19(0x47a),null),_0x55fd67(this,'_pendingMutations',[]),(this[_0x189f19(0x35f)]=_0xdf1d33,this[_0x189f19(0x2cb)]=_0x31696c,this['_handler']=_0x562217,this[_0x189f19(0x561)]=_0x3ac3f1,this[_0x189f19(0x228)]=_0x5b0a80,this[_0x189f19(0x2c4)]=_0x55d7bb,this[_0x189f19(0x552)]=_0x18df0f,this['_awaitingChangeset']=_0x434454,this['_pendingMutations']=_0x240d50);}[_0x51d41b(0x398)](_0x5a4184){const _0x2ae467=_0x51d41b,_0x3d741d=this[_0x2ae467(0x2c4)][_0x2ae467(0x59e)](this[_0x2ae467(0x35f)]);return _0x5a4184['revision']>_0x3d741d+0x1?(this['_handler']['onMissingChangesets']({'from':_0x3d741d,'to':_0x5a4184[_0x2ae467(0x384)]-0x1}),!0x0):!0x1;}['_transformUndoredo'](_0x4f5e9f){const _0x229b09=_0x51d41b;this['_undoRedoService']['transformUndoRedo'](this[_0x229b09(0x35f)],_0x4f5e9f);}[_0x51d41b(0x34b)](_0xb6db00){const _0x5a7aa7=_0x51d41b;var _0x2144cf,_0x4cd0b7;(_0x4cd0b7=(_0x2144cf=this[_0x5a7aa7(0x484)])[_0x5a7aa7(0x23c)])==null||_0x4cd0b7['call'](_0x2144cf,_0xb6db00);}[_0x51d41b(0x192)](_0x1750a8){const _0x543a55=_0x51d41b;var _0x1db202,_0x3c6303;return(_0x3c6303=(_0x1db202=this[_0x543a55(0x484)])[_0x543a55(0x20d)])==null?void 0x0:_0x3c6303['call'](_0x1db202,_0x1750a8);}[_0x51d41b(0x3e4)](_0x6031a6){const _0x469b4b=_0x51d41b;var _0x27b728,_0x55f9fa,_0x2150c1;return(_0x2150c1=(_0x55f9fa=(_0x27b728=this['_handler'])[_0x469b4b(0x447)])==null?void 0x0:_0x55f9fa[_0x469b4b(0x267)](_0x27b728,_0x6031a6))!=null?_0x2150c1:_0x6031a6;}[_0x51d41b(0x4f5)](_0x2bb550){const _0x5be9b7=_0x51d41b;var _0x57ccdc,_0x3af2df;if(this['type']===_0x54451c['UNIVER_DOC']){const {unitID:_0x4bf390,mutations:_0x2d6993,memberID:_0x349f38}=_0x2bb550,_0x525442=_0x2d6993[0x0][_0x5be9b7(0x1c3)][_0x5be9b7(0x559)];Array[_0x5be9b7(0x223)](_0x525442)&&_0x525442[_0x5be9b7(0x392)]>0x0&&((_0x3af2df=(_0x57ccdc=this['_handler'])[_0x5be9b7(0x41d)])==null||_0x3af2df['call'](_0x57ccdc,{'unitID':_0x4bf390,'memberID':_0x349f38,'textRanges':_0x525442}));}}[_0x51d41b(0x554)](){const _0x2c3d51=_0x51d41b;this[_0x2c3d51(0x552)][_0x2c3d51(0x34a)](this[_0x2c3d51(0x35f)],this[_0x2c3d51(0x2cb)],this['_awaitingChangeset'],this[_0x2c3d51(0x25e)]);}[_0x51d41b(0x2f9)](){const _0xe2d582=_0x51d41b;return this[_0xe2d582(0x2c4)][_0xe2d582(0x59e)](this['unitID']);}[_0x51d41b(0x46d)](){const _0x29337f=_0x51d41b;this[_0x29337f(0x2c4)][_0x29337f(0x3ad)](this[_0x29337f(0x35f)]);}[_0x51d41b(0x4c3)](_0x417358){const _0x1ba53f=_0x51d41b;var _0x34988e;const _0x2cf8d8=this[_0x1ba53f(0x3e4)](_0x417358),_0x228ebb=_0x36d396[_0x1ba53f(0x5a5)](_0x2cf8d8['mutations'],this['_commandService'],{'fromCollab':!0x0});if(!_0x228ebb[_0x1ba53f(0x54e)])throw _0x228ebb[_0x1ba53f(0x405)]instanceof Error?_0x228ebb[_0x1ba53f(0x405)]:new Error((_0x34988e=_0x228ebb[_0x1ba53f(0x405)])!=null?_0x34988e:_0x1ba53f(0x348));this['_transformIMECache'](_0x2cf8d8),this['_transformUndoredo'](_0x417358),this[_0x1ba53f(0x34b)](_0x2cf8d8),this[_0x1ba53f(0x4f5)](_0x2cf8d8),this[_0x1ba53f(0x46d)]();}}let _0x27c498=class extends _0x443389{constructor(_0x323f48,_0x9a4dcb,_0x4d2c91,_0x57f369,_0xee6eda,_0x46df1d,_0x47df1c,_0x319e2,_0x43db02,_0x1e04d0){const _0x32a977=_0x51d41b;super(_0x323f48,_0x9a4dcb,null,[],_0x4d2c91,_0x319e2,_0x47df1c,_0x57f369,_0xee6eda),_0x55fd67(this,_0x32a977(0x199),_0x32a977(0x4f8)),(this[_0x32a977(0x2b0)]=_0x46df1d,this[_0x32a977(0x545)]=_0x43db02,this[_0x32a977(0x376)]=_0x1e04d0);}[_0x51d41b(0x1f1)](_0x290489){const _0x42db93=_0x51d41b,_0x5ca828=this[_0x42db93(0x2b0)]['createInstance'](_0xe38ae6,this['unitID'],this[_0x42db93(0x2cb)],[_0x290489],this[_0x42db93(0x484)]);return _0x5ca828[_0x42db93(0x1e2)](),_0x5ca828[_0x42db93(0x554)](),_0x5ca828;}[_0x51d41b(0x3f8)](_0x3ac152){const _0x2b3a0b=_0x51d41b;if(this['_checkMissing'](_0x3ac152))return this[_0x2b3a0b(0x2b0)][_0x2b3a0b(0x2e7)](_0x54cd11,this['unitID'],this[_0x2b3a0b(0x2cb)],null,[],null,[_0x3ac152],this[_0x2b3a0b(0x484)]);try{const _0x7bdaf5=this[_0x2b3a0b(0x376)][_0x2b3a0b(0x26e)](_0x3ac152,[_0x45cf0d]);if(_0x346629['isTransformMutationsWithChangesetSuccess'](_0x7bdaf5)){const {c1Prime:_0x100e49}=_0x7bdaf5;return this[_0x2b3a0b(0x4c3)](_0x100e49),this;}throw _0x7bdaf5['error'];}catch(_0x4866d6){return this['_logService'][_0x2b3a0b(0x405)](_0x4866d6),this[_0x2b3a0b(0x52f)](!0x1);}}[_0x51d41b(0x52f)](_0x149ba2){const _0x2933fe=_0x51d41b;return this['_injector'][_0x2933fe(0x2e7)](_0x48e3a8,this[_0x2933fe(0x35f)],this['type'],null,[],this[_0x2933fe(0x484)],_0x149ba2);}[_0x51d41b(0x387)](){const _0xf5ea6a=_0x51d41b;throw new Error(_0xf5ea6a(0x296));}[_0x51d41b(0x1c7)](){const _0x947cba=_0x51d41b;throw new Error(_0x947cba(0x375));}[_0x51d41b(0x39f)](){const _0x5683ea=_0x51d41b;return this[_0x5683ea(0x2b0)]['createInstance'](_0xad8cf9,this['unitID'],this[_0x5683ea(0x2cb)],null,[],this[_0x5683ea(0x484)]);}[_0x51d41b(0x458)](){return this;}['resend'](){const _0x54df75=_0x51d41b;throw new Error(_0x54df75(0x37b));}['fetchMiss'](){const _0x1c343d=_0x51d41b,_0x2a1cd9=this[_0x1c343d(0x2c4)][_0x1c343d(0x59e)](this['unitID']);return this[_0x1c343d(0x484)][_0x1c343d(0x4c5)]({'from':_0x2a1cd9,'to':0x0}),this[_0x1c343d(0x2b0)][_0x1c343d(0x2e7)](_0x54cd11,this[_0x1c343d(0x35f)],this[_0x1c343d(0x2cb)],null,[],null,[],this[_0x1c343d(0x484)]);}};_0x27c498=_0x31d3bb([_0x32bbd5(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x586)]),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0x9,_0x346629['ITransformService'])],_0x27c498);let _0xe38ae6=class extends _0x443389{constructor(_0x20d090,_0x521eb0,_0x2b6e70,_0x4161f7,_0xed3496,_0x255dd3,_0x18c7f3,_0x2ca2f6,_0x4edf6a,_0x5148ed,_0x528a95,_0x243e7c,_0x47faf7,_0x37978e){const _0x5e8df8=_0x51d41b;super(_0x20d090,_0x521eb0,null,_0x2b6e70,_0x4161f7,_0x5148ed,_0x37978e,_0x255dd3,_0x18c7f3),_0x55fd67(this,_0x5e8df8(0x199),'pending'),_0x55fd67(this,_0x5e8df8(0x2e1),null),_0x55fd67(this,_0x5e8df8(0x3f9),null),(this['_injector']=_0xed3496,this[_0x5e8df8(0x468)]=_0x2ca2f6,this[_0x5e8df8(0x545)]=_0x4edf6a,this[_0x5e8df8(0x448)]=_0x528a95,this[_0x5e8df8(0x376)]=_0x243e7c,this['_univerInstanceService']=_0x47faf7);}[_0x51d41b(0x1f1)](_0xdb3881){const _0x315701=_0x51d41b;return this[_0x315701(0x25e)][_0x315701(0x3cf)](_0xdb3881),this[_0x315701(0x554)](),this;}[_0x51d41b(0x3f8)](_0x4dc06d){const _0x2fa90c=_0x51d41b;if(this[_0x2fa90c(0x398)](_0x4dc06d))return this[_0x2fa90c(0x1a7)](),this[_0x2fa90c(0x2b0)][_0x2fa90c(0x2e7)](_0x54cd11,this[_0x2fa90c(0x35f)],this[_0x2fa90c(0x2cb)],null,this[_0x2fa90c(0x25e)],null,[_0x4dc06d],this[_0x2fa90c(0x484)]);try{const _0x4bf236=this['_transformService'][_0x2fa90c(0x26e)](_0x4dc06d,this[_0x2fa90c(0x25e)]);if(_0x346629[_0x2fa90c(0x33d)](_0x4bf236)){const {c1Prime:_0x3bac8f,m2Prime:_0x6bedd6}=_0x4bf236;this[_0x2fa90c(0x4c3)](_0x3bac8f);const _0xe47cd3=this[_0x2fa90c(0x2b0)][_0x2fa90c(0x2e7)](_0xe38ae6,this[_0x2fa90c(0x35f)],this[_0x2fa90c(0x2cb)],_0x6bedd6,this[_0x2fa90c(0x484)]);return this['_clearScheduledTask'](),_0xe47cd3[_0x2fa90c(0x1e2)](this[_0x2fa90c(0x2e1)]?Math[_0x2fa90c(0x36a)](0x0,new Date()[_0x2fa90c(0x412)]()-this[_0x2fa90c(0x2e1)]):this[_0x2fa90c(0x2bf)]()),_0xe47cd3;}throw _0x4bf236['error'];}catch(_0x55554b){return this[_0x2fa90c(0x545)][_0x2fa90c(0x405)](_0x55554b),this[_0x2fa90c(0x52f)](!0x1);}}[_0x51d41b(0x387)](){const _0x38272c=_0x51d41b;throw new Error(_0x38272c(0x263));}[_0x51d41b(0x1c7)](){const _0x25310e=_0x51d41b;throw new Error(_0x25310e(0x4a1));}[_0x51d41b(0x39f)](){const _0xf244af=_0x51d41b;return this[_0xf244af(0x1a7)](),this[_0xf244af(0x2b0)][_0xf244af(0x2e7)](_0xad8cf9,this[_0xf244af(0x35f)],this[_0xf244af(0x2cb)],null,this[_0xf244af(0x25e)],this[_0xf244af(0x484)]);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x1e2)](_0x1c3748){const _0x139a0a=_0x51d41b,_0x3eb339=_0x1c3748!=null?_0x1c3748:this['_getSendChangesetTimeout']();this['_scheduleTimestamp']=new Date()[_0x139a0a(0x412)](),this[_0x139a0a(0x3f9)]=window[_0x139a0a(0x1a2)](()=>{const _0x193051=_0x139a0a;this[_0x193051(0x1a7)]();let _0x30fecf=null;switch(this[_0x193051(0x2cb)]){case _0x54451c[_0x193051(0x1d8)]:{_0x30fecf=_0x3a6e6d(this[_0x193051(0x25e)],this[_0x193051(0x35f)],this[_0x193051(0x273)],this[_0x193051(0x2c4)],this['_memberService']);break;}case _0x54451c['UNIVER_DOC']:{this['_pendingMutations'][_0x193051(0x399)](_0x3ada4e=>_0x3ada4e['id']===_0x569fac[_0x193051(0x4ec)]['id'])?_0x30fecf=_0x22032f(this['_pendingMutations'],this[_0x193051(0x35f)],this['_univerInstanceService'],this[_0x193051(0x2c4)],this[_0x193051(0x468)]):_0x30fecf=_0x3a6e6d(this[_0x193051(0x25e)],this[_0x193051(0x35f)],this[_0x193051(0x273)],this[_0x193051(0x2c4)],this[_0x193051(0x468)]);break;}default:throw new Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this['type']+_0x193051(0x260));}const {changeset:_0x4c52d2,pendingMutations:_0xa728d}=_0x30fecf;this[_0x193051(0x484)]['onSendChangeset'](_0x4c52d2);const _0x448471=_0xa728d['length']?this[_0x193051(0x2b0)][_0x193051(0x2e7)](_0x3d7f52,this[_0x193051(0x35f)],this[_0x193051(0x2cb)],_0x4c52d2,_0xa728d,this[_0x193051(0x484)]):this[_0x193051(0x2b0)][_0x193051(0x2e7)](_0x2fb341,this['unitID'],this['type'],_0x4c52d2,this[_0x193051(0x484)]);_0x448471[_0x193051(0x554)](),this[_0x193051(0x484)]['onStateChange'](this,_0x448471);},_0x3eb339);}[_0x51d41b(0x2bf)](){const _0x493662=_0x51d41b;var _0x20bd5a;return(_0x20bd5a=this[_0x493662(0x448)][_0x493662(0x1a6)](_0x5d41d3))!=null?_0x20bd5a:0x7d0;}[_0x51d41b(0x4bb)](){const _0x3a1e53=_0x51d41b;throw new Error(_0x3a1e53(0x469));}[_0x51d41b(0x1a7)](){const _0x4c6653=_0x51d41b;this[_0x4c6653(0x3f9)]!=null&&(clearTimeout(this[_0x4c6653(0x3f9)]),this[_0x4c6653(0x3f9)]=null);}[_0x51d41b(0x52f)](_0x505ab4){const _0x571949=_0x51d41b;return this['_clearScheduledTask'](),this[_0x571949(0x2b0)][_0x571949(0x2e7)](_0x48e3a8,this[_0x571949(0x35f)],this[_0x571949(0x2cb)],null,this[_0x571949(0x25e)],this[_0x571949(0x484)],_0x505ab4);}};_0xe38ae6=_0x31d3bb([_0x32bbd5(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0x9,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0xa,_0x36d396['IConfigService']),_0x32bbd5(0xb,_0x346629[_0x51d41b(0x213)]),_0x32bbd5(0xc,_0x36d396[_0x51d41b(0x2c5)]),_0x32bbd5(0xd,_0x36d396['IUndoRedoService'])],_0xe38ae6);let _0x2fb341=class extends _0x443389{constructor(_0x106b56,_0x23537a,_0x2bcd1a,_0x56acc9,_0x1830b3,_0x38f448,_0x48e759,_0x60732f,_0x25fce4,_0x8dc8b1,_0x327f3b){const _0x1f5cd6=_0x51d41b;super(_0x106b56,_0x23537a,_0x2bcd1a,[],_0x56acc9,_0x60732f,_0x327f3b,_0x38f448,_0x48e759),_0x55fd67(this,'status',_0x1f5cd6(0x3c9)),(this[_0x1f5cd6(0x2b0)]=_0x1830b3,this['_logService']=_0x25fce4,this[_0x1f5cd6(0x376)]=_0x8dc8b1);}['appendMutation'](_0x38cde6){const _0x174bc2=_0x51d41b,_0x3155de=this[_0x174bc2(0x2b0)][_0x174bc2(0x2e7)](_0x3d7f52,this['unitID'],this[_0x174bc2(0x2cb)],this['_awaitingChangeset'],[_0x38cde6],this[_0x174bc2(0x484)]);return _0x3155de[_0x174bc2(0x554)](),_0x3155de;}[_0x51d41b(0x3f8)](_0x176770){const _0x1b595f=_0x51d41b;if(this[_0x1b595f(0x398)](_0x176770))return this['_injector'][_0x1b595f(0x2e7)](_0x54cd11,this['unitID'],this[_0x1b595f(0x2cb)],this[_0x1b595f(0x47a)],[],null,[_0x176770],this[_0x1b595f(0x484)]);try{const _0x3669e0=this[_0x1b595f(0x376)][_0x1b595f(0x4a3)]([_0x176770],[this[_0x1b595f(0x47a)]],!0x1);if(_0x346629['isTransformChangesetsSuccess'](_0x3669e0)){const {c1Prime:_0x3e221a,c2Prime:_0x5b92e9}=_0x3669e0;this[_0x1b595f(0x4c3)](_0x3e221a[0x0]),_0x5b92e9[0x0][_0x1b595f(0x38d)]=this['_getCurrentRevision']();const _0x3843f1=this['_injector'][_0x1b595f(0x2e7)](_0x2fb341,this[_0x1b595f(0x35f)],this[_0x1b595f(0x2cb)],_0x5b92e9[0x0],this[_0x1b595f(0x484)]);return _0x3843f1[_0x1b595f(0x554)](),_0x3843f1;}return this[_0x1b595f(0x52f)](!0x1);}catch(_0xdce50d){return this[_0x1b595f(0x545)][_0x1b595f(0x405)](_0xdce50d),this[_0x1b595f(0x52f)](!0x1);}}[_0x51d41b(0x387)](_0x4a5cb4){const _0x391f50=_0x51d41b,_0x3645ed=this[_0x391f50(0x2c4)][_0x391f50(0x59e)](this[_0x391f50(0x35f)]);if(_0x4a5cb4['revision']<_0x3645ed-0x1)return this;if(this[_0x391f50(0x398)](_0x4a5cb4))return this[_0x391f50(0x2b0)][_0x391f50(0x2e7)](_0x54cd11,this['unitID'],this['type'],null,[],this[_0x391f50(0x47a)],[],this[_0x391f50(0x484)]);this['_incrementRevisionNumber']();const _0xa6d8db=this[_0x391f50(0x2b0)][_0x391f50(0x2e7)](_0x27c498,this[_0x391f50(0x35f)],this[_0x391f50(0x2cb)],this[_0x391f50(0x484)]);return _0xa6d8db[_0x391f50(0x554)](),_0xa6d8db;}['onRemoteRej'](_0x36073d){const _0x47ae8e=_0x51d41b;return this['_onConflict'](!!(_0x36073d!=null&&_0x36073d[_0x47ae8e(0x271)]));}['toggleOffline'](){const _0x4cff95=_0x51d41b;return this[_0x4cff95(0x2b0)][_0x4cff95(0x2e7)](_0xad8cf9,this[_0x4cff95(0x35f)],this[_0x4cff95(0x2cb)],this[_0x4cff95(0x47a)],[],this['_handler']);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x4bb)](){const _0x28aeb0=_0x51d41b;this[_0x28aeb0(0x484)][_0x28aeb0(0x248)](this[_0x28aeb0(0x47a)]);}[_0x51d41b(0x52f)](_0x5e788d){const _0x4a6e3b=_0x51d41b;return this[_0x4a6e3b(0x2b0)][_0x4a6e3b(0x2e7)](_0x48e3a8,this['unitID'],this[_0x4a6e3b(0x2cb)],this['_awaitingChangeset'],[],this['_handler'],_0x5e788d);}};_0x2fb341=_0x31d3bb([_0x32bbd5(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0x9,_0x346629['ITransformService']),_0x32bbd5(0xa,_0x36d396[_0x51d41b(0x586)])],_0x2fb341);let _0x3d7f52=class extends _0x443389{constructor(_0x223ae6,_0xa343ad,_0x341743,_0x45cbe4,_0x2cf1cb,_0x20a246,_0x5968a0,_0x419c00,_0x146948,_0x4e8d87,_0x358e33,_0x59068c){const _0xb20d7b=_0x51d41b;super(_0x223ae6,_0xa343ad,_0x341743,_0x45cbe4,_0x2cf1cb,_0x146948,_0x59068c,_0x5968a0,_0x419c00),_0x55fd67(this,_0xb20d7b(0x199),_0xb20d7b(0x21e)),(this[_0xb20d7b(0x2b0)]=_0x20a246,this[_0xb20d7b(0x545)]=_0x4e8d87,this[_0xb20d7b(0x376)]=_0x358e33);}[_0x51d41b(0x1f1)](_0x57bb52){const _0x2a3cc1=_0x51d41b;return this[_0x2a3cc1(0x25e)][_0x2a3cc1(0x3cf)](_0x57bb52),this;}[_0x51d41b(0x3f8)](_0x3c3f7d){const _0xff74c=_0x51d41b;if(this[_0xff74c(0x398)](_0x3c3f7d))return this[_0xff74c(0x2b0)][_0xff74c(0x2e7)](_0x54cd11,this[_0xff74c(0x35f)],this[_0xff74c(0x2cb)],this[_0xff74c(0x47a)],this[_0xff74c(0x25e)],null,[_0x3c3f7d],this[_0xff74c(0x484)]);try{const _0x304bc7=this[_0xff74c(0x376)][_0xff74c(0x4a3)]([_0x3c3f7d],[this['_awaitingChangeset']],!0x1);if(_0x346629['isTransformChangesetsSuccess'](_0x304bc7)){const {c1Prime:_0x401c42,c2Prime:_0x1f842d}=_0x304bc7,_0x2daa78=this[_0xff74c(0x376)]['transformMutationsWithChangeset'](_0x401c42[0x0],this[_0xff74c(0x25e)]);if(_0x346629[_0xff74c(0x33d)](_0x2daa78)){const {c1Prime:_0x4c04e1,m2Prime:_0x340039}=_0x2daa78;return this[_0xff74c(0x4c3)](_0x4c04e1),_0x1f842d[0x0]['baseRev']=this['_getCurrentRevision'](),this[_0xff74c(0x2b0)]['createInstance'](_0x3d7f52,this['unitID'],this[_0xff74c(0x2cb)],_0x1f842d[0x0],_0x340039,this[_0xff74c(0x484)]);}throw _0x2daa78['error'];}throw _0x304bc7[_0xff74c(0x405)];}catch(_0x27e24e){return this[_0xff74c(0x545)]['error'](_0x27e24e),this['_onConflict'](!0x1);}}[_0x51d41b(0x387)](_0x289757){const _0x38ba5f=_0x51d41b;if(this[_0x38ba5f(0x398)](_0x289757))return this[_0x38ba5f(0x2b0)][_0x38ba5f(0x2e7)](_0x54cd11,this['unitID'],this['type'],null,this[_0x38ba5f(0x25e)],this[_0x38ba5f(0x47a)],[],this[_0x38ba5f(0x484)]);this[_0x38ba5f(0x46d)]();const _0x12f135=this[_0x38ba5f(0x2b0)][_0x38ba5f(0x2e7)](_0xe38ae6,this[_0x38ba5f(0x35f)],this[_0x38ba5f(0x2cb)],this[_0x38ba5f(0x25e)],this[_0x38ba5f(0x484)]);return _0x12f135[_0x38ba5f(0x1e2)](),_0x12f135[_0x38ba5f(0x554)](),_0x12f135;}[_0x51d41b(0x1c7)](_0x46db32){const _0x4f6c24=_0x51d41b;return this['_onConflict'](!!(_0x46db32!=null&&_0x46db32[_0x4f6c24(0x271)]));}[_0x51d41b(0x39f)](){const _0x2af397=_0x51d41b;return this[_0x2af397(0x2b0)][_0x2af397(0x2e7)](_0xad8cf9,this['unitID'],this[_0x2af397(0x2cb)],this[_0x2af397(0x47a)],this[_0x2af397(0x25e)],this['_handler']);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x4bb)](){const _0x367b19=_0x51d41b;this[_0x367b19(0x484)][_0x367b19(0x248)](this[_0x367b19(0x47a)]);}[_0x51d41b(0x52f)](_0x4e6981){const _0x17e41a=_0x51d41b;return this[_0x17e41a(0x2b0)][_0x17e41a(0x2e7)](_0x48e3a8,this[_0x17e41a(0x35f)],this['type'],null,this[_0x17e41a(0x25e)],this[_0x17e41a(0x484)],_0x4e6981);}};_0x3d7f52=_0x31d3bb([_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x8,_0x36d396['ICommandService']),_0x32bbd5(0x9,_0x36d396[_0x51d41b(0x495)]),_0x32bbd5(0xa,_0x346629[_0x51d41b(0x213)]),_0x32bbd5(0xb,_0x36d396[_0x51d41b(0x586)])],_0x3d7f52);let _0x48e3a8=class extends _0x443389{constructor(_0x37e269,_0x2f3371,_0xb46adf,_0x3c4826,_0x309735,_0x7dffc4=!0x1,_0x24e48e,_0x5775d6,_0x46769c,_0x46fb95,_0x53e892,_0x4227ff,_0x4ec5ac){const _0x1eeaae=_0x51d41b;super(_0x37e269,_0x2f3371,_0xb46adf,_0x3c4826,_0x309735,_0x5775d6,_0x46769c,_0x53e892,_0x46fb95),_0x55fd67(this,_0x1eeaae(0x199),_0x1eeaae(0x3a9)),(this[_0x1eeaae(0x390)]=_0x7dffc4,this['_permissionService']=_0x24e48e,this[_0x1eeaae(0x31f)]=_0x4227ff,this[_0x1eeaae(0x49f)]=_0x4ec5ac,this[_0x1eeaae(0x426)](),this['_clearLocalCache'](),this['_disableEditing']());}[_0x51d41b(0x1f1)](){return this;}[_0x51d41b(0x3f8)](){return this;}[_0x51d41b(0x387)](){return this;}['onRemoteRej'](){return this;}[_0x51d41b(0x39f)](){return this;}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x4bb)](){const _0x17c98d=_0x51d41b;throw new Error(_0x17c98d(0x52c));}[_0x51d41b(0x58e)](){const _0x2b344e=_0x51d41b;this[_0x2b344e(0x552)][_0x2b344e(0x34a)](this[_0x2b344e(0x35f)],this[_0x2b344e(0x2cb)],null,[]);}[_0x51d41b(0x426)](){const _0x1045f4=_0x51d41b;this[_0x1045f4(0x390)]?this['_notificationService'][_0x1045f4(0x3c3)]({'title':this[_0x1045f4(0x31f)]['t'](_0x1045f4(0x54b)),'content':this[_0x1045f4(0x31f)]['t'](_0x1045f4(0x481)),'type':_0x1045f4(0x405),'duration':0x0}):this[_0x1045f4(0x49f)][_0x1045f4(0x3c3)]({'title':this['_localeService']['t'](_0x1045f4(0x1e5)),'content':this[_0x1045f4(0x31f)]['t']('conflict.content'),'type':'error','duration':0x0});}['_disableEditing'](){const _0x456706=_0x51d41b;this[_0x456706(0x350)]['updatePermissionPoint'](new _0xdbe912['WorkbookEditablePermission'](this[_0x456706(0x35f)])['id'],!0x1);}};_0x48e3a8=_0x31d3bb([_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['IPermissionService'])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x586)]),_0x32bbd5(0x9,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0xa,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0xb,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)])),_0x32bbd5(0xc,_0x455671[_0x51d41b(0x391)])],_0x48e3a8);let _0xad8cf9=class extends _0x443389{constructor(_0x21427b,_0x9f90c0,_0x497f97,_0x3650dc,_0x37e6d5,_0x3cf90b,_0x46571a,_0x101beb,_0x405521,_0x577c1e){const _0x152502=_0x51d41b;super(_0x21427b,_0x9f90c0,_0x497f97,_0x3650dc,_0x37e6d5,_0x405521,_0x577c1e,_0x46571a,_0x101beb),_0x55fd67(this,_0x152502(0x199),_0x152502(0x1b9)),this[_0x152502(0x2b0)]=_0x3cf90b;}[_0x51d41b(0x1f1)](_0x6ca420){const _0x85e10d=_0x51d41b;return this[_0x85e10d(0x25e)][_0x85e10d(0x3cf)](_0x6ca420),this[_0x85e10d(0x554)](),this;}[_0x51d41b(0x3f8)](_0xb7346e){const _0x3aeff6=_0x51d41b;throw new Error(_0x3aeff6(0x35b));}[_0x51d41b(0x387)](){const _0x1f8053=_0x51d41b;throw new Error(_0x1f8053(0x2c6));}['onRemoteRej'](){throw new Error('[OfflineState]:\x20received\x20rejection.');}[_0x51d41b(0x39f)](){return this;}[_0x51d41b(0x458)](){const _0x3d4070=_0x51d41b,{_injector:_0x10e058,_pendingMutations:_0x136f91,_awaitingChangeset:_0x372545,unitID:_0x35a279,_handler:_0x56b34a,type:_0x4288a6}=this,_0x2eb799=_0x14c4f8(_0x10e058,_0x35a279,_0x4288a6,_0x372545,_0x136f91,_0x56b34a);return _0x2eb799 instanceof _0xe38ae6?_0x2eb799[_0x3d4070(0x1e2)]():(_0x2eb799 instanceof _0x3d7f52||_0x2eb799 instanceof _0x2fb341)&&_0x2eb799[_0x3d4070(0x4bb)](),_0x2eb799;}[_0x51d41b(0x4bb)](){const _0x5ee058=_0x51d41b;throw new Error(_0x5ee058(0x1cf));}};_0xad8cf9=_0x31d3bb([_0x32bbd5(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x32bbd5(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0x9,_0x36d396['IUndoRedoService'])],_0xad8cf9);let _0x54cd11=class extends _0x443389{constructor(_0x53ccde,_0x5ebcd4,_0x46043b,_0x10f5a8,_0x4942ff,_0x53ffdf,_0x3b8ddf,_0x395a2e,_0x186040,_0x317d88,_0x3bc073,_0x55bfc9,_0x161e97,_0x40c62b){const _0x3f98a0=_0x51d41b;super(_0x53ccde,_0x5ebcd4,_0x46043b,_0x10f5a8,_0x3b8ddf,_0x55bfc9,_0x161e97,_0x186040,_0x317d88),_0x55fd67(this,_0x3f98a0(0x199),'fetch_missing'),(this[_0x3f98a0(0x4ea)]=_0x4942ff,this[_0x3f98a0(0x501)]=_0x53ffdf,this[_0x3f98a0(0x2b0)]=_0x395a2e,this[_0x3f98a0(0x545)]=_0x3bc073,this[_0x3f98a0(0x376)]=_0x40c62b);}[_0x51d41b(0x382)](_0x1e5a0d){const _0x3083d9=_0x51d41b;try{const _0x2e6919=[..._0x1e5a0d,...this['_queuedRemoteChangesets']],_0x32a643=[this[_0x3083d9(0x47a)]||this[_0x3083d9(0x4ea)]][_0x3083d9(0x280)](_0x89ce3d=>!!_0x89ce3d);let _0x239842,_0x55a5ea;if(_0x32a643[_0x3083d9(0x392)]){const _0x519c4c=this[_0x3083d9(0x376)][_0x3083d9(0x4a3)](_0x2e6919,_0x32a643,!0x1);if(!_0x346629[_0x3083d9(0x40f)](_0x519c4c))throw _0x519c4c[_0x3083d9(0x405)];_0x239842=_0x519c4c[_0x3083d9(0x37c)],_0x55a5ea=_0x519c4c[_0x3083d9(0x528)];}else _0x239842=_0x2e6919,_0x55a5ea=[];let _0x4961de=this['_pendingMutations'];_0x239842[_0x3083d9(0x1a9)](_0x40eeba=>{const _0x20b4cf=_0x3083d9;let _0x402bcf;if(_0x4961de[_0x20b4cf(0x392)]){const _0x44f931=this[_0x20b4cf(0x376)][_0x20b4cf(0x26e)](_0x40eeba,_0x4961de);if(!_0x346629[_0x20b4cf(0x33d)](_0x44f931))throw _0x44f931[_0x20b4cf(0x405)];_0x402bcf=_0x44f931[_0x20b4cf(0x37c)],_0x4961de=_0x44f931[_0x20b4cf(0x4b5)];}else _0x402bcf=_0x40eeba;this[_0x20b4cf(0x4c3)](_0x402bcf);}),this[_0x3083d9(0x4ea)]&&this[_0x3083d9(0x46d)](),this['_awaitingChangeset']&&_0x55a5ea[_0x3083d9(0x392)]&&(_0x55a5ea[0x0][_0x3083d9(0x38d)]=this[_0x3083d9(0x2f9)]());let _0x5932b5;if(this[_0x3083d9(0x47a)]&&_0x4961de[_0x3083d9(0x392)]!==0x0)_0x5932b5=this[_0x3083d9(0x2b0)]['createInstance'](_0x3d7f52,this['unitID'],this[_0x3083d9(0x2cb)],_0x55a5ea[0x0],_0x4961de,this[_0x3083d9(0x484)]);else{if(this[_0x3083d9(0x47a)]&&_0x4961de['length']===0x0)_0x55a5ea[0x0][_0x3083d9(0x38d)]=this[_0x3083d9(0x2f9)](),_0x5932b5=this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0x2fb341,this[_0x3083d9(0x35f)],this[_0x3083d9(0x2cb)],_0x55a5ea[0x0],this['_handler']);else{if(_0x4961de['length']!==0x0){const _0x55ec2e=this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0xe38ae6,this[_0x3083d9(0x35f)],this[_0x3083d9(0x2cb)],_0x4961de,this[_0x3083d9(0x484)]);_0x55ec2e[_0x3083d9(0x1e2)](),_0x5932b5=_0x55ec2e;}else _0x5932b5=this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0x27c498,this[_0x3083d9(0x35f)],this['type'],this[_0x3083d9(0x484)]);}}return _0x5932b5[_0x3083d9(0x554)](),_0x5932b5;}catch(_0x11a29b){return this[_0x3083d9(0x545)][_0x3083d9(0x405)](_0x3083d9(0x46e),_0x3083d9(0x573),_0x11a29b),this[_0x3083d9(0x2b0)][_0x3083d9(0x2e7)](_0x48e3a8,this[_0x3083d9(0x35f)],this[_0x3083d9(0x2cb)],this[_0x3083d9(0x47a)],this[_0x3083d9(0x25e)],this['_handler'],!0x1);}}['resend'](){const _0x49bd1c=_0x51d41b;throw new Error(_0x49bd1c(0x519));}[_0x51d41b(0x1f1)](_0x2410bc){const _0x198005=_0x51d41b;return this[_0x198005(0x25e)][_0x198005(0x3cf)](_0x2410bc),this;}[_0x51d41b(0x3f8)](_0x5f509f){const _0x25fb51=_0x51d41b;return this[_0x25fb51(0x501)][_0x25fb51(0x3cf)](_0x5f509f),this;}[_0x51d41b(0x387)](_0x552f29){const _0x5285ef=_0x51d41b;if(this[_0x5285ef(0x47a)])return this[_0x5285ef(0x4ea)]=this['_awaitingChangeset'],this[_0x5285ef(0x47a)]=null,this;throw new Error(_0x5285ef(0x315));}[_0x51d41b(0x1c7)](_0x3e1baf){const _0x3e3595=_0x51d41b;return this[_0x3e3595(0x52f)](!!(_0x3e1baf!=null&&_0x3e1baf[_0x3e3595(0x271)]));}['toggleOffline'](){const _0x1f93f0=_0x51d41b;return this[_0x1f93f0(0x2b0)][_0x1f93f0(0x2e7)](_0xad8cf9,this[_0x1f93f0(0x35f)],this[_0x1f93f0(0x2cb)],this[_0x1f93f0(0x47a)],this[_0x1f93f0(0x25e)],this['_handler']);}[_0x51d41b(0x458)](){return this;}[_0x51d41b(0x52f)](_0x227b3e){const _0x449057=_0x51d41b;return this['_injector'][_0x449057(0x2e7)](_0x48e3a8,this[_0x449057(0x35f)],this[_0x449057(0x2cb)],this['_awaitingChangeset'],this[_0x449057(0x25e)],this[_0x449057(0x484)],_0x227b3e);}};_0x54cd11=_0x31d3bb([_0x32bbd5(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['Injector'])),_0x32bbd5(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x346629['RevisionService'])),_0x32bbd5(0x9,_0x36d396['Inject'](_0x59ce0d['LocalCacheService'])),_0x32bbd5(0xa,_0x36d396['ILogService']),_0x32bbd5(0xb,_0x36d396[_0x51d41b(0x1d5)]),_0x32bbd5(0xc,_0x36d396['IUndoRedoService']),_0x32bbd5(0xd,_0x346629[_0x51d41b(0x213)])],_0x54cd11);function _0x14c4f8(_0x21df02,_0x5b29a4,_0x323f1e,_0x2f7365,_0x47c05d,_0x145fa0){const _0x256ef1=_0x51d41b;return _0x2f7365&&_0x47c05d[_0x256ef1(0x392)]?_0x21df02['createInstance'](_0x3d7f52,_0x5b29a4,_0x323f1e,_0x2f7365,_0x47c05d,_0x145fa0):_0x2f7365?_0x21df02[_0x256ef1(0x2e7)](_0x2fb341,_0x5b29a4,_0x323f1e,_0x2f7365,_0x145fa0):_0x47c05d[_0x256ef1(0x392)]?_0x21df02[_0x256ef1(0x2e7)](_0xe38ae6,_0x5b29a4,_0x323f1e,_0x47c05d,_0x145fa0):_0x21df02['createInstance'](_0x27c498,_0x5b29a4,_0x323f1e,_0x145fa0);}var _0x4d4e9e=Object['defineProperty'],_0x597287=Object[_0x51d41b(0x2b7)],_0x16cee8=(_0x5234d1,_0x441f42,_0x17a6f5,_0x1aae89)=>{const _0x507ac2=_0x51d41b;for(var _0x4d98b9=_0x1aae89>0x1?void 0x0:_0x1aae89?_0x597287(_0x441f42,_0x17a6f5):_0x441f42,_0x54a3e6=_0x5234d1[_0x507ac2(0x392)]-0x1,_0x957ca5;_0x54a3e6>=0x0;_0x54a3e6--)(_0x957ca5=_0x5234d1[_0x54a3e6])&&(_0x4d98b9=(_0x1aae89?_0x957ca5(_0x441f42,_0x17a6f5,_0x4d98b9):_0x957ca5(_0x4d98b9))||_0x4d98b9);return _0x1aae89&&_0x4d98b9&&_0x4d4e9e(_0x441f42,_0x17a6f5,_0x4d98b9),_0x4d98b9;},_0x26a766=(_0x1f5b25,_0x3560e7)=>(_0x2d3055,_0x15f109)=>_0x3560e7(_0x2d3055,_0x15f109,_0x1f5b25);_0x59ce0d[_0x51d41b(0x44d)]=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x4915a1,_0x165b83,_0x216bde,_0x30b6a0,_0x130904,_0x215239,_0x613c1e,_0x5b9ce4,_0x5aead1,_0x3d3d04,_0xdf34e3,_0x208a21,_0xc07643){const _0x194532=_0x51d41b;super(),_0x55fd67(this,_0x194532(0x1fa),new _0x22cf47[(_0x194532(0x482))](null)),_0x55fd67(this,_0x194532(0x3de),this[_0x194532(0x1fa)][_0x194532(0x544)]()),_0x55fd67(this,_0x194532(0x53b)),_0x55fd67(this,_0x194532(0x2b4),!0x1),_0x55fd67(this,_0x194532(0x2a3),this[_0x194532(0x3de)]['pipe'](_0x22cf47['map'](_0x5ab83a=>_0x5ab83a?_0x5ab83a['status']:_0xcb53f5[_0x194532(0x588)]),_0x22cf47[_0x194532(0x566)](0x1))),_0x55fd67(this,_0x194532(0x443),!0x1),_0x55fd67(this,'_remoteChangesetQueue',[]),(this[_0x194532(0x35f)]=_0x4915a1,this[_0x194532(0x57a)]=_0x165b83,this[_0x194532(0x369)]=_0x216bde,this[_0x194532(0x2b0)]=_0x30b6a0,this[_0x194532(0x552)]=_0x130904,this['_compressMutationService']=_0x215239,this[_0x194532(0x31f)]=_0x613c1e,this[_0x194532(0x2c4)]=_0x5b9ce4,this[_0x194532(0x545)]=_0x5aead1,this[_0x194532(0x561)]=_0x3d3d04,this[_0x194532(0x2a7)]=_0xdf34e3,this[_0x194532(0x350)]=_0x208a21,this[_0x194532(0x342)]=_0xc07643);}get[_0x51d41b(0x2a4)](){return this['_state'];}async['init'](){const _0x13be4f=_0x51d41b;if(this[_0x13be4f(0x2a4)])throw new Error(_0x13be4f(0x38a));await this[_0x13be4f(0x571)]();}[_0x51d41b(0x5a8)](){const _0x41a2eb=_0x51d41b;return this[_0x41a2eb(0x2b4)]=!0x0,_0x36d396[_0x41a2eb(0x1d9)](()=>{const _0x5892cc=_0x41a2eb;this[_0x5892cc(0x2b4)]=!0x1,this[_0x5892cc(0x42b)]();});}['_updateState'](_0x222d5a){const _0x1a7622=_0x51d41b;this[_0x1a7622(0x53b)]=_0x222d5a,this[_0x1a7622(0x1fa)][_0x1a7622(0x1d6)](_0x222d5a);}async[_0x51d41b(0x571)](){const _0x28f597=_0x51d41b;var _0x3961e2;this[_0x28f597(0x3d3)](await this[_0x28f597(0x5ab)]()),this[_0x28f597(0x342)]&&((_0x3961e2=this[_0x28f597(0x342)])==null||_0x3961e2[_0x28f597(0x416)](this['unitID']),this[_0x28f597(0x595)](this[_0x28f597(0x342)][_0x28f597(0x25c)](this[_0x28f597(0x35f)])[_0x28f597(0x200)](_0x3e37e6=>{const _0x53b561=_0x28f597;this[_0x53b561(0x545)][_0x53b561(0x45b)](_0x53b561(0x39d),_0x53b561(0x487),_0x3e37e6),_0x3e37e6===_0x47a42c[_0x53b561(0x3e8)]?(this[_0x53b561(0x2a7)][_0x53b561(0x3c3)]({'content':this[_0x53b561(0x31f)]['t'](_0x53b561(0x3d6)),'type':_0x53e1d0[_0x53b561(0x31b)]['Warning']}),this[_0x53b561(0x350)]['updatePermissionPoint'](new _0xdbe912[(_0x53b561(0x47e))](this[_0x53b561(0x35f)])['id'],!0x1)):this['_permissionService'][_0x53b561(0x22f)](new _0xdbe912[(_0x53b561(0x47e))](this[_0x53b561(0x35f)])['id'],!0x0);})));let _0x11dbb4=!0x1;return this[_0x28f597(0x595)](this[_0x28f597(0x57a)][_0x28f597(0x314)][_0x28f597(0x200)](_0x4bb51e=>{const _0x5f1ca2=_0x28f597;_0x4bb51e===_0x4c781c['ONLINE']?this[_0x5f1ca2(0x410)](_0x11dbb4):_0x4bb51e===_0x4c781c['OFFLINE']&&(_0x11dbb4=!0x0,this[_0x5f1ca2(0x49d)]());})),this[_0x28f597(0x595)](this[_0x28f597(0x57a)][_0x28f597(0x1b6)][_0x28f597(0x200)](_0x2c592a=>{const _0x55c5e9=_0x28f597;try{switch(_0x2c592a[_0x55c5e9(0x1c6)]){case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x4d9)]:{this[_0x55c5e9(0x445)](_0x346629['parseProtocolChangeset'](_0x2c592a[_0x55c5e9(0x34f)]));break;}case _0x346629['CollaborationEvent'][_0x55c5e9(0x44c)]:{this['_onRemoteACK'](_0x2c592a[_0x55c5e9(0x34f)]);break;}case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x20a)]:{this[_0x55c5e9(0x50d)]();break;}case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x246)]:{this[_0x55c5e9(0x4fa)](_0x2c592a[_0x55c5e9(0x34f)][_0x55c5e9(0x2bd)]['map'](_0x31aea1=>_0x346629[_0x55c5e9(0x530)](_0x31aea1)));break;}case _0x346629[_0x55c5e9(0x2fa)][_0x55c5e9(0x1ed)]:this['_onRemoteRejected']({'isPermissionRej':!0x0});}}catch(_0x14bed9){throw console['error'](_0x55c5e9(0x460),_0x14bed9),_0x14bed9;}})),this[_0x28f597(0x53b)];}[_0x51d41b(0x2a2)](){this['_transitionLocked']=!0x1;}[_0x51d41b(0x262)](){const _0x525871=_0x51d41b;if(this['_transitionLocked'])throw new Error(_0x525871(0x4d2));this[_0x525871(0x443)]=!0x0;}[_0x51d41b(0x1f0)](_0xcc7772){const _0x571477=_0x51d41b;this[_0x571477(0x262)](),this[_0x571477(0x3d3)](this[_0x571477(0x53b)][_0x571477(0x1f1)](_0xcc7772)),this[_0x571477(0x2a2)]();}[_0x51d41b(0x445)](_0x284ffa){const _0x575edf=_0x51d41b;if(!(_0x284ffa[_0x575edf(0x384)]<=this[_0x575edf(0x2c4)][_0x575edf(0x59e)](this[_0x575edf(0x35f)]))){if(this[_0x575edf(0x2b4)]){this[_0x575edf(0x53c)][_0x575edf(0x3cf)](_0x284ffa);return;}this[_0x575edf(0x50a)](_0x284ffa);}}[_0x51d41b(0x42b)](){const _0xd18637=_0x51d41b;this['_remoteChangesetQueue'][_0xd18637(0x1a9)](_0x2acaab=>this[_0xd18637(0x50a)](_0x2acaab)),this[_0xd18637(0x53c)]=[];}[_0x51d41b(0x50a)](_0x2b6312){const _0x4b1441=_0x51d41b,_0x45d730=this['_compressMutationService'][_0x4b1441(0x328)][_0x4b1441(0x4c6)](this[_0x4b1441(0x241)][_0x4b1441(0x328)][_0x4b1441(0x2dc)]()[_0x4b1441(0x4fe)])(_0x2b6312[_0x4b1441(0x533)],null)||_0x2b6312[_0x4b1441(0x533)],_0x5b3aa0={..._0x2b6312,'mutations':_0x45d730};this[_0x4b1441(0x262)](),this[_0x4b1441(0x3d3)](this[_0x4b1441(0x53b)][_0x4b1441(0x3f8)](_0x5b3aa0)),this[_0x4b1441(0x2a2)]();}[_0x51d41b(0x33e)](_0x5f0198){const _0x2ccbdf=_0x51d41b;this['_lockTransition'](),this[_0x2ccbdf(0x3d3)](this[_0x2ccbdf(0x53b)][_0x2ccbdf(0x387)](_0x5f0198)),this[_0x2ccbdf(0x2a2)]();}[_0x51d41b(0x50d)](_0x90b86a){const _0x4b86ae=_0x51d41b;this[_0x4b86ae(0x262)](),this['_updateState'](this['_state'][_0x4b86ae(0x1c7)](_0x90b86a)),this['_unlockTransition']();}['_onFetchMissResult'](_0xbeeff4){const _0x64f400=_0x51d41b;if(!(this[_0x64f400(0x53b)]instanceof _0x54cd11))throw new TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');const _0x2cb1a7=_0xbeeff4[_0x64f400(0x565)](_0x5ee955=>{const _0x2848c1=_0x64f400,_0x30d925=this[_0x2848c1(0x241)][_0x2848c1(0x328)][_0x2848c1(0x4c6)](this[_0x2848c1(0x241)][_0x2848c1(0x328)][_0x2848c1(0x2dc)]()[_0x2848c1(0x4fe)])(_0x5ee955['mutations'],null)||_0x5ee955[_0x2848c1(0x533)];return{..._0x5ee955,'mutations':_0x30d925};});this[_0x64f400(0x262)](),this[_0x64f400(0x3d3)](this[_0x64f400(0x53b)][_0x64f400(0x382)](_0x2cb1a7)),this[_0x64f400(0x2a2)]();}[_0x51d41b(0x49d)](){const _0x591258=_0x51d41b;this[_0x591258(0x262)](),this[_0x591258(0x3d3)](this[_0x591258(0x53b)][_0x591258(0x39f)]()),this[_0x591258(0x2a2)]();}['_toggleOnline'](_0x520120=!0x1){const _0x2f4f12=_0x51d41b;this[_0x2f4f12(0x262)](),this[_0x2f4f12(0x3d3)](this[_0x2f4f12(0x53b)][_0x2f4f12(0x458)]()),this[_0x2f4f12(0x2a2)]();const _0x1ccac2=this[_0x2f4f12(0x53b)];_0x520120&&_0x1ccac2 instanceof _0x27c498&&(this[_0x2f4f12(0x262)](),this[_0x2f4f12(0x3d3)](_0x1ccac2[_0x2f4f12(0x243)]()),this[_0x2f4f12(0x2a2)]());}async[_0x51d41b(0x5ab)](){return new Promise(_0x32b566=>{const _0x302904=_0x4682;this[_0x302904(0x57a)][_0x302904(0x314)][_0x302904(0x257)](_0x22cf47['take'](0x1))['subscribe'](async _0x50ac82=>{const _0x55cb1b=_0x302904;_0x32b566(await this[_0x55cb1b(0x42a)](_0x50ac82===_0x4c781c[_0x55cb1b(0x2b3)]));});});}[_0x51d41b(0x406)](){const _0x4bb004=_0x51d41b,_0x584389=this[_0x4bb004(0x35f)];return{'onStateChange':(_0x18395f,_0x116de2)=>{const _0x2965b7=_0x4bb004;if(_0x18395f!==this[_0x2965b7(0x53b)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x18395f[_0x2965b7(0x199)]+_0x2965b7(0x44a)+_0x116de2['status']+'\x0aCurrent:\x20'+this[_0x2965b7(0x53b)]['status']);this[_0x2965b7(0x3d3)](_0x116de2);},'onSendChangeset':_0x10294e=>{const _0x721456=_0x4bb004,_0x3a8ae1={'eventID':_0x346629[_0x721456(0x2fa)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10294e[_0x721456(0x35f)],'unitType':this[_0x721456(0x369)],'changeset':_0x10294e,'memberID':this[_0x721456(0x57a)]['getMemberID']()}};this[_0x721456(0x57a)]['send'](_0x3a8ae1,this[_0x721456(0x35f)]);},'onMissingChangesets':({from:_0x45b580,to:_0x3ebcb5})=>{const _0x204c61=_0x4bb004;this[_0x204c61(0x545)][_0x204c61(0x45b)]('[CollaborationEntity]',_0x204c61(0x394)+_0x45b580+'\x20to\x20'+_0x3ebcb5);const _0x392cec={'eventID':_0x346629['CollaborationEvent']['FETCH_MISSING'],'data':{'unitID':_0x584389,'unitType':this[_0x204c61(0x369)],'from':_0x45b580,'to':_0x3ebcb5}};this['session'][_0x204c61(0x4a2)](_0x392cec,this[_0x204c61(0x35f)]);}};}async[_0x51d41b(0x42a)](_0x75d38f){const _0x21099a=_0x51d41b;var _0x5ca550,_0x10f34d;const _0x10eef7=await this[_0x21099a(0x552)][_0x21099a(0x335)](this[_0x21099a(0x35f)]),_0x1deb5d=(_0x5ca550=_0x10eef7==null?void 0x0:_0x10eef7['mutations'])!=null?_0x5ca550:[],_0x5bb847=(_0x10f34d=_0x10eef7==null?void 0x0:_0x10eef7['awaitingChangeset'])!=null?_0x10f34d:null,_0x3ee632=this[_0x21099a(0x35f)];try{this[_0x21099a(0x599)](_0x5bb847,_0x1deb5d);}catch(_0x3411a9){this['_logService'][_0x21099a(0x405)](_0x3411a9);}const _0x41dab3=this[_0x21099a(0x406)]();if(_0x75d38f){const _0x4214a8=_0x14c4f8(this[_0x21099a(0x2b0)],_0x3ee632,this[_0x21099a(0x369)],_0x5bb847,_0x1deb5d,_0x41dab3);return _0x4214a8 instanceof _0xe38ae6?_0x4214a8[_0x21099a(0x1e2)]():(_0x4214a8 instanceof _0x3d7f52||_0x4214a8 instanceof _0x2fb341)&&_0x4214a8[_0x21099a(0x4bb)](),_0x4214a8;}return this['_injector']['createInstance'](_0xad8cf9,_0x3ee632,this[_0x21099a(0x369)],_0x5bb847,_0x1deb5d,_0x41dab3);}[_0x51d41b(0x599)](_0x5140d0,_0x4de57b){const _0x2bb0aa=_0x51d41b;var _0xbfaf7e,_0x4a35bf;const _0x4dfaa1=this[_0x2bb0aa(0x241)][_0x2bb0aa(0x328)][_0x2bb0aa(0x4c6)](this[_0x2bb0aa(0x241)]['interceptor'][_0x2bb0aa(0x2dc)]()[_0x2bb0aa(0x4fe)]);(_0xbfaf7e=_0x4dfaa1((_0x5140d0==null?void 0x0:_0x5140d0['mutations'])||[],null))==null||_0xbfaf7e[_0x2bb0aa(0x1a9)](_0x305c49=>this[_0x2bb0aa(0x561)][_0x2bb0aa(0x4d0)](_0x305c49['id'],_0x305c49[_0x2bb0aa(0x1c3)])),(_0x4a35bf=_0x4dfaa1(_0x4de57b||[],null))==null||_0x4a35bf[_0x2bb0aa(0x1a9)](_0x532bb=>this[_0x2bb0aa(0x561)][_0x2bb0aa(0x4d0)](_0x532bb['id'],_0x532bb['params']));}},_0x59ce0d[_0x51d41b(0x44d)]=_0x16cee8([_0x26a766(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x26a766(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x26a766(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x2da)])),_0x26a766(0x6,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x22d)])),_0x26a766(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x346629['RevisionService'])),_0x26a766(0x8,_0x36d396[_0x51d41b(0x495)]),_0x26a766(0x9,_0x36d396[_0x51d41b(0x1d5)]),_0x26a766(0xa,_0x455671[_0x51d41b(0x1c1)]),_0x26a766(0xb,_0x36d396[_0x51d41b(0x326)]),_0x26a766(0xc,_0x36d396[_0x51d41b(0x43f)](_0x33f55f))],_0x59ce0d[_0x51d41b(0x44d)]),_0x59ce0d['DocCollaborationEntity']=class extends _0x59ce0d[_0x51d41b(0x44d)]{constructor(_0x4dcaf7,_0x10fd25,_0x168237,_0x5b2591,_0x41c03c,_0x1bdc13,_0xdd4105,_0x1a6f46,_0x3d1742,_0x2a0f18,_0x608e5e,_0x4a2504,_0x2e3291,_0x1a8d69,_0x3f5131,_0x431eb7,_0x6d7e31){const _0x38555b=_0x51d41b;super(_0x4dcaf7,_0x168237,_0x10fd25,_0x5b2591,_0x41c03c,_0x1bdc13,_0xdd4105,_0x1a6f46,_0x2e3291,_0x1a8d69,_0x3f5131,_0x431eb7,_0x6d7e31),this['unitID']=_0x4dcaf7,this['type']=_0x10fd25,this[_0x38555b(0x473)]=_0x3d1742,this[_0x38555b(0x2ff)]=_0x2a0f18,this[_0x38555b(0x4c0)]=_0x608e5e,this[_0x38555b(0x42d)]=_0x4a2504;}[_0x51d41b(0x406)](){const _0x11d8b2=_0x51d41b,_0x266900=super[_0x11d8b2(0x406)]();return _0x266900['onTransformIME']=_0x264524=>this[_0x11d8b2(0x2ff)][_0x11d8b2(0x43e)](_0x264524),_0x266900[_0x11d8b2(0x23c)]=_0x4877af=>this[_0x11d8b2(0x4c0)]['transformSelections'](_0x4877af),_0x266900['onSyncEditingCollabCursor']=_0x22bec4=>this[_0x11d8b2(0x42d)][_0x11d8b2(0x2f6)](_0x22bec4),_0x266900['onTransformRemoteChangesetByIMECache']=_0x56d6de=>this['_docTransformIMECacheService']['transformRemoteChangeset'](_0x56d6de),_0x266900;}async['_init'](){const _0x3e31dc=_0x51d41b,_0x387859=await super[_0x3e31dc(0x571)]();return this[_0x3e31dc(0x595)](this[_0x3e31dc(0x561)]['onCommandExecuted']((_0x296ac0,_0x512a6d)=>{const _0x21cc14=_0x3e31dc;if(_0x296ac0['type']!==_0x36d396[_0x21cc14(0x3c4)][_0x21cc14(0x1f5)]||_0x512a6d!=null&&_0x512a6d[_0x21cc14(0x3a0)]||_0x512a6d!=null&&_0x512a6d['onlyLocal'])return;const _0x66fcce=_0x296ac0[_0x21cc14(0x1c3)];if((_0x66fcce==null?void 0x0:_0x66fcce[_0x21cc14(0x19b)])!==this[_0x21cc14(0x35f)])return;let _0x40a8df=_0x296ac0;if(_0x40a8df['id']===_0x569fac[_0x21cc14(0x4ec)]['id']){const _0xd850d0=_0x40a8df[_0x21cc14(0x1c3)];_0x40a8df={'id':_0x569fac[_0x21cc14(0x4ec)]['id'],'type':_0x36d396[_0x21cc14(0x3c4)][_0x21cc14(0x1f5)],'params':{'unitId':_0xd850d0[_0x21cc14(0x19b)],'actions':_0xd850d0[_0x21cc14(0x583)],'textRanges':null}};}const _0x54c4e1=this['_compressMutationService'][_0x21cc14(0x328)][_0x21cc14(0x4c6)](this[_0x21cc14(0x241)][_0x21cc14(0x328)][_0x21cc14(0x2dc)]()[_0x21cc14(0x597)])([_0x40a8df],null)||[_0x40a8df];this[_0x21cc14(0x1f0)](_0x54c4e1[0x0]);})),_0x387859;}},_0x59ce0d[_0x51d41b(0x2d0)]=_0x16cee8([_0x26a766(0x3,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x26a766(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d['LocalCacheService'])),_0x26a766(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x2da)])),_0x26a766(0x6,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x22d)])),_0x26a766(0x7,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x527)])),_0x26a766(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x569fac[_0x51d41b(0x27b)])),_0x26a766(0x9,_0x36d396[_0x51d41b(0x2ae)](_0x3106a2)),_0x26a766(0xa,_0x36d396['Inject'](_0xe78d9a)),_0x26a766(0xb,_0x36d396[_0x51d41b(0x2ae)](_0xb807fa)),_0x26a766(0xc,_0x36d396[_0x51d41b(0x495)]),_0x26a766(0xd,_0x36d396[_0x51d41b(0x1d5)]),_0x26a766(0xe,_0x455671[_0x51d41b(0x1c1)]),_0x26a766(0xf,_0x36d396[_0x51d41b(0x326)]),_0x26a766(0x10,_0x36d396[_0x51d41b(0x43f)](_0x33f55f))],_0x59ce0d['DocCollaborationEntity']),_0x59ce0d[_0x51d41b(0x479)]=class extends _0x59ce0d[_0x51d41b(0x44d)]{constructor(_0x1a0748,_0xae3dda,_0x5497fe,_0x3fcafe,_0x3b124d,_0x17d9cc,_0x174c9b,_0x4dd39c,_0x5eecc7,_0x53d413,_0x5ca17a,_0xc1bcf8,_0x260df1,_0x26de11){const _0x103315=_0x51d41b;super(_0x1a0748,_0x5497fe,_0xae3dda,_0x3fcafe,_0x3b124d,_0x17d9cc,_0x174c9b,_0x4dd39c,_0x53d413,_0x5ca17a,_0xc1bcf8,_0x260df1,_0x26de11),this[_0x103315(0x35f)]=_0x1a0748,this[_0x103315(0x2cb)]=_0xae3dda,this['_sheetTransformSelectionsService']=_0x5eecc7;}['_createHandler'](){const _0x5b458f=_0x51d41b,_0x386f48=super[_0x5b458f(0x406)]();return _0x386f48[_0x5b458f(0x23c)]=_0x4144c4=>this[_0x5b458f(0x2a0)][_0x5b458f(0x3dd)](_0x4144c4),_0x386f48;}async['_init'](){const _0x4b1b04=_0x51d41b,_0x50981a=await super[_0x4b1b04(0x571)]();return this[_0x4b1b04(0x595)](this[_0x4b1b04(0x561)][_0x4b1b04(0x1c8)]((_0x20a6a9,_0x551b1e)=>{const _0x582ed5=_0x4b1b04;if(_0x20a6a9[_0x582ed5(0x2cb)]!==_0x36d396['CommandType'][_0x582ed5(0x1f5)]||_0x551b1e!=null&&_0x551b1e[_0x582ed5(0x3a0)]||_0x551b1e!=null&&_0x551b1e[_0x582ed5(0x310)])return;const _0x5d3243=_0x20a6a9['params'];if((_0x5d3243==null?void 0x0:_0x5d3243[_0x582ed5(0x19b)])!==this[_0x582ed5(0x35f)])return;const _0x6f358b=_0x20a6a9,_0x276312=this[_0x582ed5(0x241)]['interceptor'][_0x582ed5(0x4c6)](this['_compressMutationService'][_0x582ed5(0x328)][_0x582ed5(0x2dc)]()[_0x582ed5(0x597)])([_0x6f358b],null)||[_0x6f358b];this['_onLocalMutation'](_0x276312[0x0]);})),_0x50981a;}},_0x59ce0d[_0x51d41b(0x479)]=_0x16cee8([_0x26a766(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x26a766(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x26a766(0x5,_0x36d396[_0x51d41b(0x2ae)](_0x346629[_0x51d41b(0x2da)])),_0x26a766(0x6,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)])),_0x26a766(0x7,_0x36d396['Inject'](_0x346629[_0x51d41b(0x527)])),_0x26a766(0x8,_0x36d396[_0x51d41b(0x2ae)](_0x57d656)),_0x26a766(0x9,_0x36d396[_0x51d41b(0x495)]),_0x26a766(0xa,_0x36d396[_0x51d41b(0x1d5)]),_0x26a766(0xb,_0x455671[_0x51d41b(0x1c1)]),_0x26a766(0xc,_0x36d396['IPermissionService']),_0x26a766(0xd,_0x36d396[_0x51d41b(0x43f)](_0x33f55f))],_0x59ce0d[_0x51d41b(0x479)]);var _0x280879=Object[_0x51d41b(0x215)],_0x4a61a4=Object[_0x51d41b(0x2b7)],_0x122c2b=(_0x39f088,_0x535709,_0x11ee23,_0x25fc81)=>{for(var _0x4c6ba1=_0x25fc81>0x1?void 0x0:_0x25fc81?_0x4a61a4(_0x535709,_0x11ee23):_0x535709,_0x3cbf25=_0x39f088['length']-0x1,_0x565a52;_0x3cbf25>=0x0;_0x3cbf25--)(_0x565a52=_0x39f088[_0x3cbf25])&&(_0x4c6ba1=(_0x25fc81?_0x565a52(_0x535709,_0x11ee23,_0x4c6ba1):_0x565a52(_0x4c6ba1))||_0x4c6ba1);return _0x25fc81&&_0x4c6ba1&&_0x280879(_0x535709,_0x11ee23,_0x4c6ba1),_0x4c6ba1;},_0x244e31=(_0x4bae1a,_0x589633)=>(_0x53b3e8,_0x2467a4)=>_0x589633(_0x53b3e8,_0x2467a4,_0x4bae1a);_0x59ce0d['CollaborationController']=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x487a85,_0x4e126e,_0x4a6c3f){const _0x3af01c=_0x51d41b;super(),_0x55fd67(this,_0x3af01c(0x20f),new Map()),_0x55fd67(this,_0x3af01c(0x21c),new _0x22cf47['Subject']()),(this[_0x3af01c(0x2b0)]=_0x487a85,this[_0x3af01c(0x319)]=_0x4e126e,this['_univerInstanceService']=_0x4a6c3f,this[_0x3af01c(0x571)]());}[_0x51d41b(0x3cd)](){const _0x486444=_0x51d41b;super[_0x486444(0x3cd)](),this[_0x486444(0x20f)][_0x486444(0x1a9)](_0x54d5c3=>_0x54d5c3[_0x486444(0x3cd)]()),this['_entities'][_0x486444(0x3a7)]();}[_0x51d41b(0x510)](_0x13eeb5){const _0x48f170=_0x51d41b;var _0x27035e;return(_0x27035e=this[_0x48f170(0x20f)][_0x48f170(0x58c)](_0x13eeb5))!=null?_0x27035e:null;}[_0x51d41b(0x1d7)](_0x2cf23c){const _0x22466d=_0x51d41b,_0x4e9bfc=this[_0x22466d(0x510)](_0x2cf23c);return _0x4e9bfc?_0x22cf47['of'](_0x4e9bfc):this[_0x22466d(0x21c)][_0x22466d(0x257)](_0x547088['filter'](_0x17d41f=>_0x17d41f[_0x22466d(0x35f)]===_0x2cf23c));}['_init'](){const _0x2915d2=_0x51d41b;this[_0x2915d2(0x273)][_0x2915d2(0x3b6)](_0x36d396[_0x2915d2(0x26a)]['UNIVER_SHEET'])[_0x2915d2(0x257)](_0x22cf47[_0x2915d2(0x5a4)](this[_0x2915d2(0x1b2)]),_0x547088[_0x2915d2(0x587)](0x10))[_0x2915d2(0x200)](async _0x9cdc61=>{const _0x2b75c7=_0x2915d2,_0x57c2e0=_0x9cdc61[_0x2b75c7(0x4ce)](),_0x398e3c=await this[_0x2b75c7(0x1b5)](_0x57c2e0,_0x54451c[_0x2b75c7(0x1d8)]);this[_0x2b75c7(0x20f)][_0x2b75c7(0x27f)](_0x57c2e0,_0x398e3c);}),this[_0x2915d2(0x273)][_0x2915d2(0x3b6)](_0x36d396['UniverInstanceType']['UNIVER_DOC'])[_0x2915d2(0x257)](_0x22cf47[_0x2915d2(0x5a4)](this['dispose$']),_0x547088[_0x2915d2(0x587)](0x10))[_0x2915d2(0x257)](_0x547088[_0x2915d2(0x280)](_0x1eccfd=>!_0x1eccfd[_0x2915d2(0x4ce)]()[_0x2915d2(0x59c)]('__')))[_0x2915d2(0x200)](async _0x151154=>{const _0x5badab=_0x2915d2,_0x49b08f=_0x151154[_0x5badab(0x4ce)](),_0x53650a=await this[_0x5badab(0x1b5)](_0x49b08f,_0x54451c[_0x5badab(0x43c)]);this[_0x5badab(0x20f)][_0x5badab(0x27f)](_0x49b08f,_0x53650a);}),_0x22cf47['merge'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x36d396[_0x2915d2(0x26a)][_0x2915d2(0x1d8)]),this[_0x2915d2(0x273)][_0x2915d2(0x505)](_0x36d396[_0x2915d2(0x26a)]['UNIVER_DOC']))[_0x2915d2(0x257)](_0x22cf47[_0x2915d2(0x5a4)](this[_0x2915d2(0x1b2)]))[_0x2915d2(0x200)](_0xcb96d8=>{const _0x178512=_0x2915d2,_0x368940=_0xcb96d8[_0x178512(0x4ce)](),_0x416cda=this['_entities'][_0x178512(0x58c)](_0x368940);_0x416cda&&(_0x416cda[_0x178512(0x3cd)](),this[_0x178512(0x20f)][_0x178512(0x560)](_0x368940));});}async['_startCollaboration'](_0x2aea39,_0x3038aa){const _0x3c041e=_0x51d41b,_0x4b9163=await this['_collabSessionService'][_0x3c041e(0x208)](_0x2aea39),_0x21487e=this[_0x3c041e(0x2b0)][_0x3c041e(0x2e7)](this[_0x3c041e(0x325)](_0x3038aa),_0x2aea39,_0x3038aa,_0x4b9163);return await _0x21487e[_0x3c041e(0x46c)](),this['_entityInit$'][_0x3c041e(0x1d6)](_0x21487e),_0x21487e;}['_getCtorByUniverType'](_0x444e4a){const _0x574777=_0x51d41b;switch(_0x444e4a){case _0x54451c[_0x574777(0x43c)]:return _0x59ce0d[_0x574777(0x2d0)];case _0x54451c['UNIVER_SHEET']:return _0x59ce0d['SheetCollaborationEntity'];default:throw new Error(_0x574777(0x1aa)+_0x444e4a);}}},_0x59ce0d[_0x51d41b(0x4e2)]=_0x122c2b([_0x244e31(0x0,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x244e31(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x285)])),_0x244e31(0x2,_0x36d396[_0x51d41b(0x2c5)])],_0x59ce0d[_0x51d41b(0x4e2)]);const _0x441c7d=['purple300','jiqing500','verdancy600','red300',_0x51d41b(0x4df),_0x51d41b(0x4f3)];class _0x2f29bf extends _0x36d396[_0x51d41b(0x4f0)]{constructor(){const _0x5a2e96=_0x51d41b;super(...arguments),_0x55fd67(this,_0x5a2e96(0x20c),new Map()),_0x55fd67(this,'_colorIndex',0x0);}[_0x51d41b(0x564)](_0x734049){const _0xde34aa=_0x51d41b;if(this[_0xde34aa(0x20c)][_0xde34aa(0x58b)](_0x734049))return this[_0xde34aa(0x20c)][_0xde34aa(0x58c)](_0x734049);const _0x5b9e4a=_0x441c7d[this[_0xde34aa(0x402)]];return this[_0xde34aa(0x402)]=(this[_0xde34aa(0x402)]+0x1)%_0x441c7d[_0xde34aa(0x392)],this[_0xde34aa(0x20c)][_0xde34aa(0x27f)](_0x734049,_0x5b9e4a),_0x5b9e4a;}}var _0x4614e9=Object[_0x51d41b(0x215)],_0x54f023=Object['getOwnPropertyDescriptor'],_0x5c53ba=(_0x544215,_0x37cce7,_0x5a5d8b,_0x3d8151)=>{const _0x3dc3ba=_0x51d41b;for(var _0x3c88d3=_0x3d8151>0x1?void 0x0:_0x3d8151?_0x54f023(_0x37cce7,_0x5a5d8b):_0x37cce7,_0x4a16ca=_0x544215[_0x3dc3ba(0x392)]-0x1,_0x2c5b99;_0x4a16ca>=0x0;_0x4a16ca--)(_0x2c5b99=_0x544215[_0x4a16ca])&&(_0x3c88d3=(_0x3d8151?_0x2c5b99(_0x37cce7,_0x5a5d8b,_0x3c88d3):_0x2c5b99(_0x3c88d3))||_0x3c88d3);return _0x3d8151&&_0x3c88d3&&_0x4614e9(_0x37cce7,_0x5a5d8b,_0x3c88d3),_0x3c88d3;},_0x13c286=(_0x2b197c,_0xc1ab3d)=>(_0x33d0,_0x1dc8f7)=>_0xc1ab3d(_0x33d0,_0x1dc8f7,_0x2b197c);const _0x34adef=0x12c,_0x2f4198=0x64,_0x2c980a=()=>{let _0x46c9b2=[],_0x47f9cc=!0x1;return _0x3cae6b=>{const _0x5cec84=_0x4682;_0x46c9b2[_0x5cec84(0x3cf)](_0x3cae6b),_0x47f9cc||(_0x47f9cc=!0x0,setTimeout(()=>{const _0x2df6a1=_0x5cec84;_0x46c9b2[_0x2df6a1(0x1a9)](_0x5e9953=>_0x5e9953()),_0x46c9b2=[],_0x47f9cc=!0x1;}));};};let _0x51b76e=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x885265,_0x501f6e,_0x5a5723,_0x557c9a,_0xefe18b,_0x35c582,_0x2faf88,_0x4a3a6d){const _0x252044=_0x51d41b;super(),_0x55fd67(this,_0x252044(0x286),!0x1),_0x55fd67(this,_0x252044(0x571),!0x1),_0x55fd67(this,_0x252044(0x323),new _0x22cf47[(_0x252044(0x482))](new Map())),_0x55fd67(this,_0x252044(0x1d0),this[_0x252044(0x323)][_0x252044(0x544)]()),_0x55fd67(this,_0x252044(0x212),new _0x22cf47[(_0x252044(0x482))]([])),_0x55fd67(this,_0x252044(0x251),this[_0x252044(0x212)]['pipe'](_0x22cf47[_0x252044(0x41c)](_0x34adef))),_0x55fd67(this,_0x252044(0x411),_0x3179a3((_0x39f64e,_0x16de51)=>{const _0x5a42fb=_0x252044,_0x1d5c63={'eventID':_0x346629['CollaborationEvent'][_0x5a42fb(0x191)],'data':{'unitID':this['unitID'],'memberID':this[_0x5a42fb(0x598)]['getMemberID'](),'selection':_0x933578[_0x5a42fb(0x3b5)](_0x39f64e,_0x16de51[_0x5a42fb(0x20b)])}};this[_0x5a42fb(0x598)]['send'](_0x1d5c63,this[_0x5a42fb(0x35f)]);},_0x2f4198)),(this[_0x252044(0x35f)]=_0x885265,this['_session']=_0x501f6e,this[_0x252044(0x2b0)]=_0x5a5723,this[_0x252044(0x23d)]=_0x557c9a,this[_0x252044(0x468)]=_0xefe18b,this[_0x252044(0x273)]=_0x35c582,this[_0x252044(0x561)]=_0x2faf88,this[_0x252044(0x4f7)]=_0x4a3a6d);}get['cursorInfo'](){const _0x2a8c83=_0x51d41b;return this[_0x2a8c83(0x323)][_0x2a8c83(0x2b1)]();}get[_0x51d41b(0x358)](){const _0x3da048=_0x51d41b;return this['_roomMembers$'][_0x3da048(0x2b1)]();}[_0x51d41b(0x3cd)](){const _0x34fb8e=_0x51d41b;super[_0x34fb8e(0x3cd)](),this['_cursorInfo$'][_0x34fb8e(0x1d6)](new Map()),this[_0x34fb8e(0x323)][_0x34fb8e(0x22a)](),this[_0x34fb8e(0x212)][_0x34fb8e(0x1d6)]([]),this[_0x34fb8e(0x212)]['complete']();}['init'](){const _0x2e51bd=_0x51d41b;this[_0x2e51bd(0x571)]||(this['_init']=!0x0,this[_0x2e51bd(0x598)][_0x2e51bd(0x314)]['pipe'](_0x22cf47['takeUntil'](this[_0x2e51bd(0x1b2)]))['subscribe'](_0x169d38=>{const _0x2711ca=_0x2e51bd;_0x169d38===_0x4c781c[_0x2711ca(0x2b3)]?this[_0x2711ca(0x410)]():this['_toggleOffline']();}),this[_0x2e51bd(0x598)]['event$'][_0x2e51bd(0x257)](_0x22cf47[_0x2e51bd(0x5a4)](this['dispose$']))[_0x2e51bd(0x200)](_0x248bbd=>{const _0x23ceab=_0x2e51bd,_0x1755ca=_0x248bbd[_0x23ceab(0x1c6)];_0x1755ca===_0x346629[_0x23ceab(0x2fa)]['UPDATE_CURSOR']&&this['_onCursorUpdate'](_0x248bbd),_0x1755ca===_0x346629[_0x23ceab(0x2fa)]['USERS_LEAVE']&&this[_0x23ceab(0x483)](_0x248bbd);}),this[_0x2e51bd(0x1c0)](),this[_0x2e51bd(0x595)](this[_0x2e51bd(0x561)]['onCommandExecuted'](_0xf91874=>{const _0x5f0462=_0x2e51bd;if(this[_0x5f0462(0x286)]&&_0xf91874['id']===_0xdbe912['SetSelectionsOperation']['id']&&_0xf91874[_0x5f0462(0x1c3)][_0x5f0462(0x19b)]===this[_0x5f0462(0x35f)]){const _0x43f10a=_0xf91874['params'];this[_0x5f0462(0x411)](_0x43f10a['subUnitId'],_0x43f10a[_0x5f0462(0x216)][0x0]);}})));}['_onCursorUpdate'](_0x230e0f){const _0x162466=_0x51d41b;var _0x3e0188,_0x397b54;const {memberID:_0x5afd98,selection:_0x17eb51}=_0x230e0f[_0x162466(0x34f)],{sheetName:_0x29b2c8,range:_0x362c3b}=_0x933578[_0x162466(0x3da)](_0x17eb51),_0x378c3e={'name':(_0x397b54=(_0x3e0188=this[_0x162466(0x468)][_0x162466(0x359)](this[_0x162466(0x35f)],_0x5afd98))==null?void 0x0:_0x3e0188[_0x162466(0x346)])!=null?_0x397b54:_0x162466(0x32a),'range':this[_0x162466(0x488)](_0x29b2c8,_0x362c3b),'sheetID':_0x29b2c8,'color':this[_0x162466(0x23d)]['assignAColorForMemberID'](_0x5afd98),'selection':_0x17eb51},_0x7c5be3=this['cursorInfo'];_0x7c5be3[_0x162466(0x27f)](_0x5afd98,_0x378c3e),this[_0x162466(0x323)][_0x162466(0x1d6)](_0x7c5be3);}[_0x51d41b(0x483)](_0x8f78db){const _0x2d3fb7=_0x51d41b,{memberID:_0x5b1a75}=_0x8f78db[_0x2d3fb7(0x34f)],_0x48b8ae=this[_0x2d3fb7(0x324)];_0x48b8ae['delete'](_0x5b1a75),this['_cursorInfo$']['next'](_0x48b8ae);}[_0x51d41b(0x488)](_0x34a81c,_0xb53de0){const _0x2be775=_0x51d41b;var _0x53c99c,_0x8d0cdb;const _0x56279c=(_0x8d0cdb=(_0x53c99c=this[_0x2be775(0x273)]['getUniverSheetInstance'](this[_0x2be775(0x35f)]))==null?void 0x0:_0x53c99c[_0x2be775(0x24f)](_0x34a81c))==null?void 0x0:_0x8d0cdb[_0x2be775(0x538)]();return(_0x56279c==null?void 0x0:_0x56279c[_0x2be775(0x3e3)](_0x59525c=>_0x36d396[_0x2be775(0x3ed)][_0x2be775(0x3c6)](_0x59525c,_0xb53de0)))||_0xb53de0;}[_0x51d41b(0x1c0)](){const _0x3f0bf8=_0x51d41b,_0x3098b7=new _0x36d396['DisposableCollection'](),_0x50d81b=_0x2c980a(),_0x22163c=()=>{const _0x485179=_0x4682;_0x3098b7[_0x485179(0x3cd)]();const _0x287462=(_0x563b9e,_0x3b69f6,_0x427d4d,_0x5c635e)=>{const _0x1cbb6d=_0x485179;let _0x4fc40f=[];switch(_0x563b9e['id']){case _0xdbe912[_0x1cbb6d(0x446)][_0x1cbb6d(0x3b8)]:{_0x4fc40f=_0xdbe912['handleDeleteRangeMoveLeft'](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['DeleteRangeMoveUpCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x51f)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['InsertColCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x27e)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['InsertRangeMoveDownCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x30e)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)][_0x1cbb6d(0x353)]:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x2dd)](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)][_0x1cbb6d(0x1bf)]:{_0x4fc40f=_0xdbe912['handleInsertRow'](_0x563b9e,_0x5c635e);break;}case _0xdbe912['EffectRefRangId']['MoveRangeCommandId']:{_0x4fc40f=_0xdbe912['handleMoveRange'](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['RemoveColCommandId']:{_0x4fc40f=_0xdbe912['handleIRemoveCol'](_0x563b9e,_0x5c635e);break;}case _0xdbe912[_0x1cbb6d(0x446)]['RemoveRowCommandId']:{_0x4fc40f=_0xdbe912[_0x1cbb6d(0x3e0)](_0x563b9e,_0x5c635e);break;}}const _0x42273c=_0xdbe912[_0x1cbb6d(0x5a1)](_0x4fc40f,_0x5c635e),_0x3b7b64=this['cursorInfo']['get'](_0x3b69f6);if(_0x3b7b64&&_0x42273c){const _0x389a24={..._0x3b7b64,'range':_0x42273c};this['cursorInfo'][_0x1cbb6d(0x27f)](_0x3b69f6,_0x389a24),_0x50d81b(()=>{const _0x2009f9=_0x1cbb6d,_0x21a571=this[_0x2009f9(0x4f7)][_0x2009f9(0x1f2)](_0x42273c,_0x5e0ae7=>(_0x21a571['dispose'](),_0x287462(_0x5e0ae7,_0x3b69f6,_0x427d4d,_0x42273c)));_0x3098b7['add'](_0x21a571);});}return{'redos':[],'undos':[]};};this[_0x485179(0x324)][_0x485179(0x1a9)]((_0x57edd9,_0x36fc22)=>{const _0x1e0442=_0x485179,{range:_0x330f0c,sheetID:_0x320684}=_0x57edd9,_0x5310e5=this[_0x1e0442(0x4f7)]['registerRefRange'](_0x330f0c,_0x49ac79=>(_0x5310e5[_0x1e0442(0x3cd)](),_0x287462(_0x49ac79,_0x36fc22,_0x320684,_0x330f0c)));_0x3098b7[_0x1e0442(0x5a2)](_0x5310e5);});};this['disposeWithMe'](_0x36d396[_0x3f0bf8(0x1d9)](this[_0x3f0bf8(0x323)][_0x3f0bf8(0x200)](()=>{_0x22163c();})));}[_0x51d41b(0x410)](){const _0x28f5af=_0x51d41b;var _0x34699a,_0x1e9453;if(this['_online']=!0x0,((_0x34699a=this[_0x28f5af(0x273)][_0x28f5af(0x3ce)]())==null?void 0x0:_0x34699a[_0x28f5af(0x4ce)]())!==this[_0x28f5af(0x35f)])return;const _0x2f204e=(_0x1e9453=this[_0x28f5af(0x2b0)][_0x28f5af(0x58c)](_0xdbe912[_0x28f5af(0x5ac)])[_0x28f5af(0x462)]())==null?void 0x0:_0x1e9453[0x0],_0x2ef96f=this[_0x28f5af(0x273)][_0x28f5af(0x371)](_0x36d396[_0x28f5af(0x26a)][_0x28f5af(0x1d8)])[_0x28f5af(0x25a)]();_0x2f204e&&_0x2ef96f&&this['_updateLocalCursor'](_0x2ef96f[_0x28f5af(0x414)](),_0x2f204e);}[_0x51d41b(0x49d)](){const _0x48b433=_0x51d41b;this[_0x48b433(0x286)]=!0x1;}};_0x51b76e=_0x5c53ba([_0x13c286(0x2,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x13c286(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x2f29bf)),_0x13c286(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x13c286(0x5,_0x36d396[_0x51d41b(0x2c5)]),_0x13c286(0x6,_0x36d396[_0x51d41b(0x1d5)]),_0x13c286(0x7,_0x36d396['Inject'](_0xdbe912[_0x51d41b(0x3b4)]))],_0x51b76e);var _0x4db1d2=Object['defineProperty'],_0x1ffb31=Object[_0x51d41b(0x2b7)],_0x393a7e=(_0x21ea0e,_0x419897,_0x4c2917,_0x95a461)=>{const _0x542823=_0x51d41b;for(var _0xf59bc6=_0x95a461>0x1?void 0x0:_0x95a461?_0x1ffb31(_0x419897,_0x4c2917):_0x419897,_0x1c9572=_0x21ea0e[_0x542823(0x392)]-0x1,_0x246f89;_0x1c9572>=0x0;_0x1c9572--)(_0x246f89=_0x21ea0e[_0x1c9572])&&(_0xf59bc6=(_0x95a461?_0x246f89(_0x419897,_0x4c2917,_0xf59bc6):_0x246f89(_0xf59bc6))||_0xf59bc6);return _0x95a461&&_0xf59bc6&&_0x4db1d2(_0x419897,_0x4c2917,_0xf59bc6),_0xf59bc6;},_0x5665c8=(_0x303b46,_0x16faa9)=>(_0x17bb9a,_0x16a7bc)=>_0x16faa9(_0x17bb9a,_0x16a7bc,_0x303b46);const _0x2f71fe=0x12c,_0x38e786=0x64;let _0x170182=class extends _0x36d396['RxDisposable']{constructor(_0x5e0f02,_0x533d86,_0x39b355,_0x529e0f,_0x47dc0c,_0xbdcb9d,_0xac8f7f,_0x45410d,_0x75d34f){const _0x2623c9=_0x51d41b;super(),_0x55fd67(this,_0x2623c9(0x286),!0x1),_0x55fd67(this,'_init',!0x1),_0x55fd67(this,_0x2623c9(0x323),new _0x22cf47['BehaviorSubject'](new Map())),_0x55fd67(this,'cursorInfo$',this[_0x2623c9(0x323)][_0x2623c9(0x544)]()),_0x55fd67(this,_0x2623c9(0x212),new _0x22cf47[(_0x2623c9(0x482))]([])),_0x55fd67(this,_0x2623c9(0x251),this[_0x2623c9(0x212)]['pipe'](_0x22cf47['debounceTime'](_0x2f71fe))),_0x55fd67(this,_0x2623c9(0x411),_0x3179a3(_0xe97eec=>{const _0x2e7f8d=_0x2623c9,_0x168b4e={'eventID':_0x346629['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x2e7f8d(0x598)][_0x2e7f8d(0x1fb)](),'selection':_0x31462b(_0xe97eec)}};this['_session'][_0x2e7f8d(0x4a2)](_0x168b4e,this['unitID']);},_0x38e786)),(this[_0x2623c9(0x35f)]=_0x5e0f02,this[_0x2623c9(0x598)]=_0x533d86,this['_injector']=_0x39b355,this[_0x2623c9(0x23d)]=_0x529e0f,this['_memberService']=_0x47dc0c,this[_0x2623c9(0x1d4)]=_0xbdcb9d,this[_0x2623c9(0x376)]=_0xac8f7f,this[_0x2623c9(0x273)]=_0x45410d,this[_0x2623c9(0x561)]=_0x75d34f);}get[_0x51d41b(0x324)](){const _0x364bae=_0x51d41b;return this[_0x364bae(0x323)][_0x364bae(0x2b1)]();}get[_0x51d41b(0x358)](){const _0x1ded85=_0x51d41b;return this[_0x1ded85(0x212)][_0x1ded85(0x2b1)]();}[_0x51d41b(0x3cd)](){const _0x23af4a=_0x51d41b;super[_0x23af4a(0x3cd)](),this['_cursorInfo$'][_0x23af4a(0x1d6)](new Map()),this[_0x23af4a(0x323)]['complete'](),this[_0x23af4a(0x212)][_0x23af4a(0x1d6)]([]),this[_0x23af4a(0x212)][_0x23af4a(0x22a)]();}[_0x51d41b(0x46c)](){const _0x40988f=_0x51d41b;this[_0x40988f(0x571)]||(this[_0x40988f(0x571)]=!0x0,this[_0x40988f(0x598)][_0x40988f(0x314)][_0x40988f(0x257)](_0x22cf47['takeUntil'](this[_0x40988f(0x1b2)]))[_0x40988f(0x200)](_0x5de992=>{const _0x42ff8e=_0x40988f;_0x5de992===_0x4c781c['ONLINE']?this[_0x42ff8e(0x410)]():this[_0x42ff8e(0x49d)]();}),this['_session'][_0x40988f(0x1b6)]['pipe'](_0x22cf47[_0x40988f(0x5a4)](this['dispose$']))[_0x40988f(0x200)](_0xf0bd83=>{const _0x528676=_0x40988f,_0x51ff91=_0xf0bd83['eventID'];_0x51ff91===_0x346629['CollaborationEvent'][_0x528676(0x191)]&&this[_0x528676(0x58f)](_0xf0bd83),_0x51ff91===_0x346629[_0x528676(0x2fa)]['USERS_LEAVE']&&this[_0x528676(0x483)](_0xf0bd83);}),this['disposeWithMe'](this['_commandService'][_0x40988f(0x1c8)](_0x236acf=>{const _0x128584=_0x40988f,_0x3d5b35=_0x236acf[_0x128584(0x1c3)];_0x3d5b35!=null&&this[_0x128584(0x286)]&&_0x236acf['id']===_0x569fac['SetTextSelectionsOperation']['id']&&_0x3d5b35['unitId']===this['unitID']&&_0x3d5b35[_0x128584(0x222)]===!0x1&&this[_0x128584(0x411)](_0x3d5b35['ranges']);})),this[_0x40988f(0x1d4)][_0x40988f(0x40b)][_0x40988f(0x257)](_0x22cf47['takeUntil'](this[_0x40988f(0x1b2)]))[_0x40988f(0x200)](_0x280669=>{const _0x2c4c3c=_0x40988f;if((_0x280669==null?void 0x0:_0x280669[_0x2c4c3c(0x35f)])!==this['unitID'])return;const _0x42fef5={'eventID':_0x346629[_0x2c4c3c(0x2fa)][_0x2c4c3c(0x191)],'data':_0x280669};this[_0x2c4c3c(0x58f)](_0x42fef5);}),this['disposeWithMe'](this[_0x40988f(0x561)][_0x40988f(0x1c8)](_0x4d768c=>{const _0x5b1b3f=_0x40988f;if(_0x4d768c[_0x5b1b3f(0x1c3)]==null)return;const _0x47d97c=_0x4d768c[_0x5b1b3f(0x1c3)];if(_0x4d768c['id']!==_0x569fac[_0x5b1b3f(0x4ec)]['id']||_0x47d97c[_0x5b1b3f(0x19b)]!==this[_0x5b1b3f(0x35f)])return;const _0x3efb26={'id':_0x5b1b3f(0x24e),'params':_0x47d97c},_0x480e82=this['cursorInfo'];for(const [_0x3f27f2,_0x262f64]of _0x480e82){const _0x3c3500={'id':_0x5b1b3f(0x24e),'params':{'unitId':this[_0x5b1b3f(0x35f)],'actions':null,'textRanges':_0x262f64[_0x5b1b3f(0x45c)]}},_0x1913de=this[_0x5b1b3f(0x376)][_0x5b1b3f(0x3e9)](_0x3efb26,_0x3c3500,!0x1);if(_0x346629[_0x5b1b3f(0x3ec)](_0x1913de))throw _0x1913de['error'];_0x480e82[_0x5b1b3f(0x27f)](_0x3f27f2,{..._0x262f64,'ranges':_0x1913de[_0x5b1b3f(0x4b5)][_0x5b1b3f(0x1c3)][_0x5b1b3f(0x559)]});}queueMicrotask(()=>{const _0x558723=_0x5b1b3f;this[_0x558723(0x323)][_0x558723(0x1d6)](_0x480e82);});})));}[_0x51d41b(0x58f)](_0x193f0e){const _0x380cec=_0x51d41b;var _0x16580b,_0x2cc3fd;const {memberID:_0x2bf0c1,selection:_0x4713a8}=_0x193f0e[_0x380cec(0x34f)],_0xdba4bf=_0x302630(_0x4713a8),_0x15ceb0=(_0x2cc3fd=(_0x16580b=this['_memberService'][_0x380cec(0x359)](this[_0x380cec(0x35f)],_0x2bf0c1))==null?void 0x0:_0x16580b[_0x380cec(0x346)])!=null?_0x2cc3fd:'Unknown\x20user',_0x495062={'color':this['_colorAssignService']['assignAColorForMemberID'](_0x2bf0c1),'name':_0x15ceb0,'ranges':_0xdba4bf},_0x229c6e=this[_0x380cec(0x324)];_0x229c6e['set'](_0x2bf0c1,_0x495062),this['_cursorInfo$']['next'](_0x229c6e);}[_0x51d41b(0x483)](_0x316ce9){const _0x5d7963=_0x51d41b,{memberID:_0x381634}=_0x316ce9['data'],_0x319685=this['cursorInfo'];_0x319685[_0x5d7963(0x560)](_0x381634),this[_0x5d7963(0x323)][_0x5d7963(0x1d6)](_0x319685);}['_toggleOnline'](){const _0x2fc286=_0x51d41b;var _0x5f3cb5;if(this[_0x2fc286(0x286)]=!0x0,((_0x5f3cb5=this['_univerInstanceService'][_0x2fc286(0x3ce)]())==null?void 0x0:_0x5f3cb5['getUnitId']())!==this[_0x2fc286(0x35f)])return;const _0x41d46f=this[_0x2fc286(0x2b0)][_0x2fc286(0x58c)](_0x569fac[_0x2fc286(0x35c)])[_0x2fc286(0x4f4)](),_0xed5139=_0x41d46f==null?void 0x0:_0x41d46f[_0x2fc286(0x565)](_0x569fac[_0x2fc286(0x2aa)]);Array[_0x2fc286(0x223)](_0xed5139)&&_0xed5139[_0x2fc286(0x392)]>0x0&&this[_0x2fc286(0x411)](_0xed5139);}['_toggleOffline'](){const _0x587293=_0x51d41b;this[_0x587293(0x286)]=!0x1;}};_0x170182=_0x393a7e([_0x5665c8(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x5665c8(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x2f29bf)),_0x5665c8(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x2e1387)),_0x5665c8(0x5,_0x36d396['Inject'](_0xb807fa)),_0x5665c8(0x6,_0x346629['ITransformService']),_0x5665c8(0x7,_0x36d396['IUniverInstanceService']),_0x5665c8(0x8,_0x36d396['ICommandService'])],_0x170182);var _0x32aece=Object['defineProperty'],_0xae93e4=Object['getOwnPropertyDescriptor'],_0x18b496=(_0x5d6338,_0x23af54,_0x29b975,_0x27eb16)=>{const _0x2b5205=_0x51d41b;for(var _0x14eadb=_0x27eb16>0x1?void 0x0:_0x27eb16?_0xae93e4(_0x23af54,_0x29b975):_0x23af54,_0x4bdb21=_0x5d6338[_0x2b5205(0x392)]-0x1,_0x55934b;_0x4bdb21>=0x0;_0x4bdb21--)(_0x55934b=_0x5d6338[_0x4bdb21])&&(_0x14eadb=(_0x27eb16?_0x55934b(_0x23af54,_0x29b975,_0x14eadb):_0x55934b(_0x14eadb))||_0x14eadb);return _0x27eb16&&_0x14eadb&&_0x32aece(_0x23af54,_0x29b975,_0x14eadb),_0x14eadb;},_0x447a46=(_0xace37e,_0x56ef5b)=>(_0x2725d0,_0x2c743b)=>_0x56ef5b(_0x2725d0,_0x2c743b,_0xace37e);let _0x566b79=class extends _0x36d396['RxDisposable']{constructor(_0x3887c1,_0x4ecb01,_0x523b61){const _0x55c6e3=_0x51d41b;super(),_0x55fd67(this,_0x55c6e3(0x20f),new Map()),_0x55fd67(this,_0x55c6e3(0x21c),new _0x22cf47['Subject']()),(this[_0x55c6e3(0x273)]=_0x3887c1,this[_0x55c6e3(0x2b0)]=_0x4ecb01,this[_0x55c6e3(0x319)]=_0x523b61,this[_0x55c6e3(0x571)]());}[_0x51d41b(0x3cd)](){const _0x3e55a0=_0x51d41b;super[_0x3e55a0(0x3cd)](),this[_0x3e55a0(0x21c)]['complete'](),this['_entities'][_0x3e55a0(0x1a9)](_0x262583=>_0x262583['dispose']());}[_0x51d41b(0x45d)](_0x567001){const _0x2ac1f3=_0x51d41b;return this['_entities']['has'](_0x567001)?this[_0x2ac1f3(0x20f)][_0x2ac1f3(0x58c)](_0x567001)['cursorInfo$']:this[_0x2ac1f3(0x21c)][_0x2ac1f3(0x257)](_0x22cf47[_0x2ac1f3(0x280)](_0x4563c5=>_0x4563c5['unitID']===_0x567001),_0x22cf47[_0x2ac1f3(0x40c)](_0x1a6432=>_0x1a6432[_0x2ac1f3(0x1d0)]));}[_0x51d41b(0x571)](){const _0x2b367c=_0x51d41b;this[_0x2b367c(0x273)][_0x2b367c(0x3b6)](_0x36d396[_0x2b367c(0x26a)][_0x2b367c(0x1d8)])[_0x2b367c(0x257)](_0x22cf47[_0x2b367c(0x5a4)](this[_0x2b367c(0x1b2)]))[_0x2b367c(0x200)](async _0x5a9d01=>{const _0xea3a9d=_0x2b367c,_0x493838=_0x5a9d01[_0xea3a9d(0x4ce)](),_0x1b2773=await this['_startSheetCollabCursor'](_0x493838);this['_entityInit$'][_0xea3a9d(0x1d6)](_0x1b2773),this['_entities'][_0xea3a9d(0x27f)](_0x493838,_0x1b2773);}),this[_0x2b367c(0x273)][_0x2b367c(0x3b6)](_0x36d396['UniverInstanceType'][_0x2b367c(0x43c)])['pipe'](_0x22cf47[_0x2b367c(0x5a4)](this['dispose$']))[_0x2b367c(0x257)](_0x22cf47[_0x2b367c(0x280)](_0x51fcc9=>!_0x51fcc9['getUnitId']()['startsWith']('__')))[_0x2b367c(0x200)](async _0x20bf83=>{const _0x5bb742=_0x2b367c,_0x2dc985=_0x20bf83[_0x5bb742(0x4ce)](),_0x3b46b5=await this[_0x5bb742(0x49e)](_0x2dc985);this['_entityInit$'][_0x5bb742(0x1d6)](_0x3b46b5),this[_0x5bb742(0x20f)]['set'](_0x2dc985,_0x3b46b5);}),_0x22cf47['merge'](this['_univerInstanceService'][_0x2b367c(0x505)](_0x36d396[_0x2b367c(0x26a)][_0x2b367c(0x43c)]),this['_univerInstanceService'][_0x2b367c(0x505)](_0x36d396[_0x2b367c(0x26a)]['UNIVER_SHEET']))['pipe'](_0x22cf47[_0x2b367c(0x5a4)](this[_0x2b367c(0x1b2)]))[_0x2b367c(0x200)](_0x2560ef=>{const _0x4fa662=_0x2b367c,_0x1a09fc=_0x2560ef['getUnitId'](),_0x2f202d=this[_0x4fa662(0x20f)][_0x4fa662(0x58c)](_0x1a09fc);_0x2f202d&&(_0x2f202d[_0x4fa662(0x3cd)](),this[_0x4fa662(0x20f)][_0x4fa662(0x560)](_0x1a09fc));});}async['_startSheetCollabCursor'](_0x1f0ef0){const _0xd01ffc=_0x51d41b,_0x1ffd2c=await this['_collabSessionService'][_0xd01ffc(0x208)](_0x1f0ef0),_0x376767=this[_0xd01ffc(0x2b0)][_0xd01ffc(0x2e7)](_0x51b76e,_0x1f0ef0,_0x1ffd2c);return _0x376767[_0xd01ffc(0x46c)](),_0x376767;}async['_startDocCollabCursor'](_0x27bae2){const _0x3c1fba=_0x51d41b,_0x26de06=await this[_0x3c1fba(0x319)][_0x3c1fba(0x208)](_0x27bae2),_0x1b3ad5=this[_0x3c1fba(0x2b0)][_0x3c1fba(0x2e7)](_0x170182,_0x27bae2,_0x26de06);return _0x1b3ad5[_0x3c1fba(0x46c)](),_0x1b3ad5;}};_0x566b79=_0x18b496([_0x36d396['OnLifecycle'](_0x36d396[_0x51d41b(0x520)][_0x51d41b(0x4e8)],_0x566b79),_0x447a46(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x447a46(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x447a46(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x285)]))],_0x566b79);const _0x122765=0x14,_0x2b7b13=0xc8,_0x3cb90c=0x4,_0x40980d=0x5;function _0x12fb14(_0x2b8a4b,_0x105480){const _0x1f62f6=_0x51d41b;let {radius:_0x30ad28,width:_0x482f71,height:_0x4f3359}=_0x105480;_0x30ad28=_0x30ad28!=null?_0x30ad28:0x0,_0x482f71=_0x482f71!=null?_0x482f71:0x1e,_0x4f3359=_0x4f3359!=null?_0x4f3359:0x1e;let _0x1112f7=0x0,_0xa08aeb=0x0,_0x53ee0f=0x0;_0x1112f7=_0xa08aeb=_0x53ee0f=Math[_0x1f62f6(0x305)](_0x30ad28,_0x482f71/0x2,_0x4f3359/0x2),_0x2b8a4b[_0x1f62f6(0x542)](),_0x2b8a4b[_0x1f62f6(0x1b8)](_0x1112f7,0x0),_0x2b8a4b[_0x1f62f6(0x1bd)](_0x482f71-_0xa08aeb,0x0),_0x2b8a4b[_0x1f62f6(0x4e1)](_0x482f71-_0xa08aeb,_0xa08aeb,_0xa08aeb,Math['PI']*0x3/0x2,0x0,!0x1),_0x2b8a4b[_0x1f62f6(0x1bd)](_0x482f71,_0x4f3359-_0x53ee0f),_0x2b8a4b[_0x1f62f6(0x4e1)](_0x482f71-_0x53ee0f,_0x4f3359-_0x53ee0f,_0x53ee0f,0x0,Math['PI']/0x2,!0x1),_0x2b8a4b[_0x1f62f6(0x1bd)](0x0,_0x4f3359),_0x2b8a4b[_0x1f62f6(0x1bd)](0x0,_0x1112f7),_0x2b8a4b['arc'](_0x1112f7,_0x1112f7,_0x1112f7,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x2b8a4b[_0x1f62f6(0x245)](),_0x105480[_0x1f62f6(0x229)]&&(_0x2b8a4b[_0x1f62f6(0x3fc)](),_0x2b8a4b[_0x1f62f6(0x432)]=_0x105480[_0x1f62f6(0x229)],_0x105480[_0x1f62f6(0x307)]===_0x1f62f6(0x206)?_0x2b8a4b['fill']('evenodd'):_0x2b8a4b['fill'](),_0x2b8a4b['restore']());}class _0x5aab28 extends _0x54d1da[_0x51d41b(0x1f4)]{constructor(_0x25a5f2,_0xf87f8a){const _0x5e7d67=_0x51d41b;super(_0x25a5f2,_0xf87f8a),_0x55fd67(this,_0x5e7d67(0x4bc)),_0x55fd67(this,_0x5e7d67(0x3c5)),(this['color']=_0xf87f8a==null?void 0x0:_0xf87f8a[_0x5e7d67(0x4bc)],this[_0x5e7d67(0x3c5)]=_0xf87f8a==null?void 0x0:_0xf87f8a[_0x5e7d67(0x3c5)]);}static['drawWith'](_0x35b6f9,_0x1f2170){const _0x3fe8ec=_0x51d41b,{text:_0x3dea00,color:_0x330b5a}=_0x1f2170;_0x35b6f9['save'](),_0x35b6f9[_0x3fe8ec(0x341)]=_0x3fe8ec(0x2f4);const _0x156288=_0x35b6f9['measureText'](_0x3dea00)[_0x3fe8ec(0x50c)],_0x159969=Math[_0x3fe8ec(0x305)](_0x156288+0x2*_0x3cb90c,_0x2b7b13);_0x12fb14(_0x35b6f9,{'height':_0x122765,'radius':0x4,'width':_0x159969,'fill':_0x330b5a,'evented':!0x1}),_0x35b6f9['fillStyle']=_0x3fe8ec(0x44f);const _0x4a9475=_0x3cb90c,_0x3edb13=_0x122765-_0x40980d,_0x4cc726=_0x2b7b13-0x2*_0x3cb90c;if(_0x156288>_0x4cc726){let _0x239a86='',_0x32daaf=0x0;for(const _0x1afe62 of _0x3dea00){const _0x38bbcc=_0x35b6f9[_0x3fe8ec(0x345)](_0x1afe62)[_0x3fe8ec(0x50c)];if(_0x32daaf+_0x38bbcc<=_0x4cc726-_0x35b6f9['measureText']('...')[_0x3fe8ec(0x50c)])_0x239a86+=_0x1afe62,_0x32daaf+=_0x38bbcc;else{_0x239a86+='...';break;}}_0x35b6f9[_0x3fe8ec(0x2a1)](_0x239a86,_0x4a9475,_0x3edb13);}else _0x35b6f9[_0x3fe8ec(0x2a1)](_0x3dea00,_0x4a9475,_0x3edb13);_0x35b6f9[_0x3fe8ec(0x1bb)]();}[_0x51d41b(0x2d2)](_0x41abc0){const _0x42f685=_0x51d41b;_0x5aab28[_0x42f685(0x1da)](_0x41abc0,this);}}const _0x1b3e1b=0x1,_0x1d5e35=1.5;class _0x21dc68 extends _0x54d1da['Shape']{constructor(_0x101ea8,_0x1c998e){const _0x280a65=_0x51d41b;super(_0x101ea8,_0x1c998e),_0x55fd67(this,_0x280a65(0x253)),_0x55fd67(this,_0x280a65(0x356),!0x1),_0x55fd67(this,_0x280a65(0x1ca)),_0x55fd67(this,_0x280a65(0x553),''),_0x55fd67(this,_0x280a65(0x44b),'top'),_0x55fd67(this,_0x280a65(0x461)),(_0x1c998e&&this[_0x280a65(0x37e)](_0x1c998e),this[_0x280a65(0x594)][_0x280a65(0x3ea)](()=>this[_0x280a65(0x37e)]({'hovered':!0x0})),this[_0x280a65(0x2ec)][_0x280a65(0x3ea)](()=>this[_0x280a65(0x37e)]({'hovered':!0x1})));}[_0x51d41b(0x37e)](_0x2a4fc3){const _0x1d02c0=_0x51d41b;var _0x529561,_0x1cd423,_0x569a76,_0x294a1a,_0xf8ca8f,_0x4531e3;this[_0x1d02c0(0x253)]=(_0x529561=_0x2a4fc3[_0x1d02c0(0x4bc)])!=null?_0x529561:this[_0x1d02c0(0x253)],this[_0x1d02c0(0x356)]=(_0x1cd423=_0x2a4fc3[_0x1d02c0(0x374)])!=null?_0x1cd423:this[_0x1d02c0(0x356)],this[_0x1d02c0(0x1ca)]=(_0x569a76=_0x2a4fc3['range'])!=null?_0x569a76:this[_0x1d02c0(0x1ca)],this[_0x1d02c0(0x553)]=(_0x294a1a=_0x2a4fc3[_0x1d02c0(0x346)])!=null?_0x294a1a:this[_0x1d02c0(0x553)],this['_labelPosition']=(_0xf8ca8f=_0x2a4fc3['labelPosition'])!=null?_0xf8ca8f:this['_labelPosition'],this[_0x1d02c0(0x461)]=(_0x4531e3=_0x2a4fc3[_0x1d02c0(0x4d6)])!=null?_0x4531e3:this[_0x1d02c0(0x461)],this[_0x1d02c0(0x2af)]({'width':_0x2a4fc3[_0x1d02c0(0x50c)],'height':_0x2a4fc3['height']});}[_0x51d41b(0x2bc)](_0x5f1081){const _0x478be7=_0x51d41b,{row:_0x60a85c,column:_0x108393}=_0x5f1081;if(_0x60a85c>=this[_0x478be7(0x1ca)][_0x478be7(0x493)]&&_0x60a85c<=this['_range']['endRow']&&_0x108393>=this[_0x478be7(0x1ca)][_0x478be7(0x230)]&&_0x108393<=this[_0x478be7(0x1ca)][_0x478be7(0x40a)]){this[_0x478be7(0x37e)]({'hovered':!0x0});return;}this[_0x478be7(0x37e)]({'hovered':!0x1});}[_0x51d41b(0x26b)](_0x363ebc){return!0x1;}[_0x51d41b(0x2d2)](_0x49142d){const _0x4db2bb=_0x51d41b;_0x54d1da[_0x4db2bb(0x4d3)][_0x4db2bb(0x1da)](_0x49142d,{'width':this[_0x4db2bb(0x50c)],'height':this['height'],'strokeWidth':_0x1d5e35,'stroke':this[_0x4db2bb(0x253)],'evented':!0x1,'fill':this[_0x4db2bb(0x461)]}),this[_0x4db2bb(0x356)]&&(_0x49142d[_0x4db2bb(0x3fc)](),_0x49142d[_0x4db2bb(0x396)](0x1,0x0,0x0,0x1,this[_0x4db2bb(0x50c)],this['_labelPosition']===_0x4db2bb(0x27a)?0x0:-_0x122765),_0x5aab28[_0x4db2bb(0x1da)](_0x49142d,{'text':this[_0x4db2bb(0x553)],'color':this[_0x4db2bb(0x253)]}),_0x49142d[_0x4db2bb(0x1bb)]());}}var _0x38b7e7=Object['defineProperty'],_0x327d0c=Object[_0x51d41b(0x2b7)],_0x5702e4=(_0x501c2b,_0x3f09f8,_0x89295c,_0x4f2bef)=>{const _0x4612e2=_0x51d41b;for(var _0x1677c0=_0x4f2bef>0x1?void 0x0:_0x4f2bef?_0x327d0c(_0x3f09f8,_0x89295c):_0x3f09f8,_0x24c1ed=_0x501c2b[_0x4612e2(0x392)]-0x1,_0x1bcf39;_0x24c1ed>=0x0;_0x24c1ed--)(_0x1bcf39=_0x501c2b[_0x24c1ed])&&(_0x1677c0=(_0x4f2bef?_0x1bcf39(_0x3f09f8,_0x89295c,_0x1677c0):_0x1bcf39(_0x1677c0))||_0x1677c0);return _0x4f2bef&&_0x1677c0&&_0x38b7e7(_0x3f09f8,_0x89295c,_0x1677c0),_0x1677c0;},_0x19a496=(_0x114a59,_0x505374)=>(_0x803181,_0xb28c72)=>_0x505374(_0x803181,_0xb28c72,_0x114a59);const _0x37131b=0x1389;let _0x47d6dc=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x475ae6,_0x5e5f0d,_0x122194,_0x23c4f0){const _0x35f846=_0x51d41b;super(),_0x55fd67(this,'_cursors',new Set()),_0x55fd67(this,'_lastPointer',null),(this[_0x35f846(0x4e4)]=_0x475ae6,this['_sheetSkeletonManagerService']=_0x5e5f0d,this['_collabCursorController']=_0x122194,this[_0x35f846(0x2b9)]=_0x23c4f0,this[_0x35f846(0x571)]());}[_0x51d41b(0x571)](){const _0x4cafe6=_0x51d41b;this[_0x4cafe6(0x304)][_0x4cafe6(0x491)]['pipe'](_0x547088[_0x4cafe6(0x5a4)](this['dispose$']),_0x547088['switchMap'](_0x569dd3=>{const _0x532ff2=_0x4cafe6;if(_0x569dd3){const _0x330211=_0x569dd3[_0x532ff2(0x269)];return _0x22cf47[_0x532ff2(0x548)](this[_0x532ff2(0x1a3)][_0x532ff2(0x45d)](this[_0x532ff2(0x4e4)][_0x532ff2(0x19b)]),this[_0x532ff2(0x2b9)][_0x532ff2(0x4eb)])[_0x532ff2(0x257)](_0x547088[_0x532ff2(0x565)](([_0x16f2b2,_0x2f2170])=>{const _0xf00d19=new Map();return _0x16f2b2['forEach']((_0x580369,_0x6e7df6)=>{const _0x40f428=_0x4682;if(_0x580369[_0x40f428(0x2cf)]===_0x330211){const _0x138330={..._0x580369};_0x138330[_0x40f428(0x4bc)]=_0x2f2170[_0x580369[_0x40f428(0x4bc)]],_0xf00d19[_0x40f428(0x27f)](_0x6e7df6,_0x138330);}}),{'skeleton':_0x569dd3,'cursors':_0xf00d19};}));}return _0x22cf47['of']({'skeleton':null,'cursors':new Map()});}))[_0x4cafe6(0x200)](({skeleton:_0x557ff6,cursors:_0x324b45})=>{const _0x54d268=_0x4cafe6;this[_0x54d268(0x220)](),_0x557ff6&&this[_0x54d268(0x555)](_0x557ff6,_0x324b45);}),this[_0x4cafe6(0x304)][_0x4cafe6(0x491)][_0x4cafe6(0x200)](_0x4b9ff6=>{const _0x1e93d2=_0x4cafe6;if(_0x4b9ff6==null)return;const {skeleton:_0x42d5cc}=_0x4b9ff6,{scene:_0x15c95d}=this[_0x1e93d2(0x4e4)];_0x15c95d[_0x1e93d2(0x55d)]['subscribeEvent'](_0x3179a3(_0x26c0c1=>{const _0x43adce=_0x1e93d2;var _0x490e5c,_0x4bba69;const {offsetX:_0x410bf7,offsetY:_0xf83bd3}=_0x26c0c1,{x:_0x26b5c4,y:_0x27cd77}=_0x15c95d[_0x43adce(0x52b)](_0x54d1da[_0x43adce(0x250)][_0x43adce(0x46a)]([_0x410bf7,_0xf83bd3])),{scaleX:_0x436752,scaleY:_0x38488b}=_0x15c95d[_0x43adce(0x329)](),_0x1c8260=_0x15c95d['getViewport'](_0x343608[_0x43adce(0x46b)][_0x43adce(0x534)]),_0x1de602=_0x15c95d[_0x43adce(0x4b2)](_0x54d1da[_0x43adce(0x250)][_0x43adce(0x46a)]([_0x26b5c4,_0x27cd77]),_0x1c8260),_0x546fcf=_0x42d5cc[_0x43adce(0x21a)](_0x410bf7,_0xf83bd3,_0x436752,_0x38488b,_0x1de602);((_0x490e5c=this[_0x43adce(0x435)])==null?void 0x0:_0x490e5c[_0x43adce(0x53f)])===_0x546fcf[_0x43adce(0x53f)]&&((_0x4bba69=this[_0x43adce(0x435)])==null?void 0x0:_0x4bba69[_0x43adce(0x489)])===_0x546fcf[_0x43adce(0x489)]||this[_0x43adce(0x504)]['forEach'](_0x51523f=>{const _0x9b9d98=_0x43adce;_0x51523f[_0x9b9d98(0x2bc)](_0x546fcf);});},0x64));});}[_0x51d41b(0x555)](_0x4c6159,_0x49456b){const _0x3b85ac=_0x51d41b;var _0x289868;const _0x1f2e22=(_0x289868=this['_sheetSkeletonManagerService']['getCurrent']())==null?void 0x0:_0x289868[_0x3b85ac(0x1b3)];if(!_0x1f2e22)return;const _0x5e0c54=this[_0x3b85ac(0x4c8)]();if(!_0x5e0c54)return;this[_0x3b85ac(0x504)][_0x3b85ac(0x1a9)](_0x7e8be1=>{const _0x2c0125=_0x3b85ac;_0x7e8be1[_0x2c0125(0x507)]();});const {scene:_0x130730}=_0x5e0c54,_0x1588be=_0x309a58(Array[_0x3b85ac(0x58d)](_0x49456b[_0x3b85ac(0x235)]()))[_0x3b85ac(0x565)](_0x406cd8=>{const _0x329573=_0x3b85ac,{color:_0x699893,range:_0x55c56c,name:_0x2b095a,selection:_0xdfb7ee,sheetID:_0x3d897e}=_0x406cd8,{startColumn:_0x4957f5,startRow:_0x27524d,endColumn:_0x1771f4,endRow:_0x484d50}=_0x55c56c,_0x2639f3=_0x343608[_0x329573(0x218)](_0x27524d,_0x4957f5,_0x130730,_0x1f2e22),_0x5b1e7c=_0x343608[_0x329573(0x218)](_0x484d50,_0x1771f4,_0x130730,_0x1f2e22),{columnHeaderHeightAndMarginTop:_0x231087}=_0x1f2e22,{startX:_0x1be374,startY:_0xc3b8a7}=_0x2639f3,{endX:_0x38fd03,endY:_0x52c8c1}=_0x5b1e7c,_0x2cbf7a=_0x38fd03-_0x1be374,_0x3ee324=_0x52c8c1-_0xc3b8a7,_0x25187b={'labelPosition':_0xc3b8a7-_0x231087>=_0x122765?_0x329573(0x436):_0x329573(0x27a),'sheetID':_0x3d897e,'range':_0x55c56c,'color':_0x699893,'name':_0x2b095a,'selection':_0xdfb7ee,'left':_0x1be374,'top':_0xc3b8a7,'width':_0x2cbf7a,'height':_0x3ee324,'evented':!0x1,'zIndex':_0x37131b};return new _0x21dc68(_0x2b095a,_0x25187b);});_0x130730[_0x3b85ac(0x541)](_0x1588be,_0x1b3e1b),this[_0x3b85ac(0x504)]=new Set(_0x1588be);}[_0x51d41b(0x220)](){const _0x2862ae=_0x51d41b;var _0x1f4ba1;(_0x1f4ba1=this[_0x2862ae(0x504)])==null||_0x1f4ba1[_0x2862ae(0x1a9)](_0x5d073c=>_0x5d073c[_0x2862ae(0x3cd)]());}['_getSheetObject'](){const _0x245775=_0x51d41b;return _0x343608[_0x245775(0x306)](this[_0x245775(0x4e4)][_0x245775(0x4b4)],this[_0x245775(0x4e4)]);}};_0x47d6dc=_0x5702e4([_0x19a496(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x343608[_0x51d41b(0x3ee)])),_0x19a496(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x566b79)),_0x19a496(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x21f)]))],_0x47d6dc);function _0x309a58(_0xb7985f){const _0x639f4b=_0x51d41b,_0x5a8aef=new Map();return _0xb7985f['forEach'](_0x306686=>{const _0x9df188=_0x4682;if(_0x5a8aef[_0x9df188(0x58b)](_0x306686['selection'])){const _0x4a22b6=_0x5a8aef['get'](_0x306686[_0x9df188(0x2b2)]);_0x4a22b6['name']+=',\x20'+_0x306686[_0x9df188(0x346)];}else _0x5a8aef[_0x9df188(0x27f)](_0x306686[_0x9df188(0x2b2)],_0x306686);}),Array[_0x639f4b(0x58d)](_0x5a8aef[_0x639f4b(0x235)]());}var _0xa5b5de=function(){const _0x493ad9=_0x51d41b;return _0xa5b5de=Object[_0x493ad9(0x219)]||function(_0x5dd564){const _0x27f393=_0x493ad9;for(var _0x2e659c,_0x44dd42=0x1,_0x2c0538=arguments[_0x27f393(0x392)];_0x44dd42<_0x2c0538;_0x44dd42++){_0x2e659c=arguments[_0x44dd42];for(var _0x23828b in _0x2e659c)Object[_0x27f393(0x1e4)][_0x27f393(0x3af)][_0x27f393(0x267)](_0x2e659c,_0x23828b)&&(_0x5dd564[_0x23828b]=_0x2e659c[_0x23828b]);}return _0x5dd564;},_0xa5b5de[_0x493ad9(0x476)](this,arguments);},_0x302be8=function(_0x4cd0b0,_0x144138){const _0x21acdd=_0x51d41b;var _0x4de0a8={};for(var _0x34a1e8 in _0x4cd0b0)Object[_0x21acdd(0x1e4)]['hasOwnProperty']['call'](_0x4cd0b0,_0x34a1e8)&&_0x144138[_0x21acdd(0x2a5)](_0x34a1e8)<0x0&&(_0x4de0a8[_0x34a1e8]=_0x4cd0b0[_0x34a1e8]);if(_0x4cd0b0!=null&&typeof Object[_0x21acdd(0x55a)]==_0x21acdd(0x386)){for(var _0x270d12=0x0,_0x34a1e8=Object[_0x21acdd(0x55a)](_0x4cd0b0);_0x270d12<_0x34a1e8[_0x21acdd(0x392)];_0x270d12++)_0x144138[_0x21acdd(0x2a5)](_0x34a1e8[_0x270d12])<0x0&&Object[_0x21acdd(0x1e4)][_0x21acdd(0x3d8)][_0x21acdd(0x267)](_0x4cd0b0,_0x34a1e8[_0x270d12])&&(_0x4de0a8[_0x34a1e8[_0x270d12]]=_0x4cd0b0[_0x34a1e8[_0x270d12]]);}return _0x4de0a8;},_0xa9974=_0x28fb9c[_0x51d41b(0x28b)](function(_0x2b8bd9,_0x2a0fa5){const _0x228ae1=_0x51d41b;var _0x72d80b=_0x2b8bd9[_0x228ae1(0x475)],_0x2d126f=_0x2b8bd9['id'],_0x2048a2=_0x2b8bd9[_0x228ae1(0x31c)],_0x497f15=_0x2b8bd9[_0x228ae1(0x38e)],_0x533473=_0x302be8(_0x2b8bd9,[_0x228ae1(0x475),'id',_0x228ae1(0x31c),'extend']),_0x3a9852=_0x228ae1(0x3fb)[_0x228ae1(0x1e6)](_0x2d126f,'\x20')['concat'](_0x2048a2||'')['trim'](),_0x2fe9c4=_0x28fb9c[_0x228ae1(0x508)]('_'[_0x228ae1(0x1e6)](_0x58a03a()));return _0x3334b0(_0x72d80b,''[_0x228ae1(0x1e6)](_0x2d126f),{'defIds':_0x72d80b['defIds'],'idSuffix':_0x2fe9c4['current']},_0xa5b5de({'ref':_0x2a0fa5,'className':_0x3a9852},_0x533473),_0x497f15);});function _0x3334b0(_0x12bb1e,_0x430267,_0x4da922,_0x5adaed,_0xfcdbbf){const _0x4249f5=_0x51d41b;return _0x28fb9c[_0x4249f5(0x4dd)](_0x12bb1e['tag'],_0xa5b5de(_0xa5b5de({'key':_0x430267},_0x1eeeba(_0x12bb1e,_0x4da922,_0xfcdbbf)),_0x5adaed),(_0x5ab46b(_0x12bb1e,_0x4da922)['children']||[])[_0x4249f5(0x565)](function(_0x146774,_0x5b15bc){const _0x8d2f76=_0x4249f5;return _0x3334b0(_0x146774,''[_0x8d2f76(0x1e6)](_0x430267,'-')[_0x8d2f76(0x1e6)](_0x12bb1e['tag'],'-')[_0x8d2f76(0x1e6)](_0x5b15bc),_0x4da922,void 0x0,_0xfcdbbf);}));}function _0x1eeeba(_0x5ee044,_0x459152,_0x593067){const _0x4c57fe=_0x51d41b;var _0x118922=_0xa5b5de({},_0x5ee044[_0x4c57fe(0x1e7)]);_0x593067!=null&&_0x593067[_0x4c57fe(0x478)]&&_0x118922[_0x4c57fe(0x229)]===_0x4c57fe(0x478)&&(_0x118922[_0x4c57fe(0x229)]=_0x593067['colorChannel1']);var _0x3a0e43=_0x459152[_0x4c57fe(0x33c)];return!_0x3a0e43||_0x3a0e43['length']===0x0||(_0x5ee044[_0x4c57fe(0x2d3)]==='use'&&_0x118922[_0x4c57fe(0x2a8)]&&(_0x118922[_0x4c57fe(0x2a8)]=_0x118922[_0x4c57fe(0x2a8)]+_0x459152['idSuffix']),Object[_0x4c57fe(0x57e)](_0x118922)[_0x4c57fe(0x1a9)](function(_0x324d62){const _0x25f911=_0x4c57fe;var _0x316c09=_0x324d62[0x0],_0x4a1fd2=_0x324d62[0x1];typeof _0x4a1fd2==_0x25f911(0x40e)&&(_0x118922[_0x316c09]=_0x4a1fd2['replace'](/url\(#(.*)\)/,'url(#$1'[_0x25f911(0x1e6)](_0x459152[_0x25f911(0x308)],')')));})),_0x118922;}function _0x5ab46b(_0x1f7acb,_0x460262){const _0x298e23=_0x51d41b;var _0x36b715,_0x5731eb=_0x460262[_0x298e23(0x33c)];return!_0x5731eb||_0x5731eb[_0x298e23(0x392)]===0x0?_0x1f7acb:_0x1f7acb[_0x298e23(0x2d3)]===_0x298e23(0x4b0)&&(!((_0x36b715=_0x1f7acb[_0x298e23(0x442)])===null||_0x36b715===void 0x0)&&_0x36b715[_0x298e23(0x392)])?_0xa5b5de(_0xa5b5de({},_0x1f7acb),{'children':_0x1f7acb[_0x298e23(0x442)]['map'](function(_0x37e6e2){const _0x288eda=_0x298e23;return typeof _0x37e6e2['attrs']['id']==_0x288eda(0x40e)&&_0x5731eb&&_0x5731eb['indexOf'](_0x37e6e2[_0x288eda(0x1e7)]['id'])>-0x1?_0xa5b5de(_0xa5b5de({},_0x37e6e2),{'attrs':_0xa5b5de(_0xa5b5de({},_0x37e6e2[_0x288eda(0x1e7)]),{'id':_0x37e6e2[_0x288eda(0x1e7)]['id']+_0x460262[_0x288eda(0x308)]})}):_0x37e6e2;})}):_0x1f7acb;}function _0x58a03a(){const _0x2db492=_0x51d41b;return Math['random']()[_0x2db492(0x240)](0x24)[_0x2db492(0x441)](0x2,0x8);}_0xa9974['displayName']='UniverIcon';var _0x36200d={'tag':_0x51d41b(0x47d),'attrs':{'fill':_0x51d41b(0x513),'viewBox':'0\x200\x2016\x2016','width':'1em','height':_0x51d41b(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x51d41b(0x506)},'children':[{'tag':_0x51d41b(0x4be),'attrs':{'stroke':_0x51d41b(0x4d5),'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':_0x51d41b(0x30a),'strokeLinejoin':_0x51d41b(0x30a),'strokeWidth':1.2}}]},{'tag':_0x51d41b(0x4b0),'attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x51d41b(0x451)},'children':[{'tag':'path','attrs':{'fill':_0x51d41b(0x46f),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':['off-line-single_clip0_910_343']},_0x53ab85=_0x28fb9c[_0x51d41b(0x28b)](function(_0x5395ff,_0x41c22e){const _0x2d1f7f=_0x51d41b;return _0x28fb9c[_0x2d1f7f(0x4dd)](_0xa9974,Object[_0x2d1f7f(0x219)]({},_0x5395ff,{'id':_0x2d1f7f(0x289),'ref':_0x41c22e,'icon':_0x36200d}));});_0x53ab85[_0x51d41b(0x1ad)]=_0x51d41b(0x4b8);var _0x2f13bf={'tag':'svg','attrs':{'fill':_0x51d41b(0x513),'viewBox':_0x51d41b(0x582),'width':_0x51d41b(0x2d4),'height':_0x51d41b(0x2d4)},'children':[{'tag':'g','attrs':{'clipPath':_0x51d41b(0x299)},'children':[{'tag':_0x51d41b(0x4be),'attrs':{'stroke':_0x51d41b(0x4d5),'d':_0x51d41b(0x226),'strokeLinecap':_0x51d41b(0x30a),'strokeLinejoin':_0x51d41b(0x30a),'strokeWidth':1.2}}]},{'tag':_0x51d41b(0x4b0),'attrs':{},'children':[{'tag':_0x51d41b(0x4ad),'attrs':{'id':'on-line-single_clip0_910_349'},'children':[{'tag':_0x51d41b(0x4be),'attrs':{'fill':_0x51d41b(0x46f),'d':_0x51d41b(0x2b6),'transform':_0x51d41b(0x209)}}]}]}],'defIds':[_0x51d41b(0x3c8)]},_0x9b7afe=_0x28fb9c[_0x51d41b(0x28b)](function(_0x253b53,_0x280bb4){const _0x7764b7=_0x51d41b;return _0x28fb9c['createElement'](_0xa9974,Object['assign']({},_0x253b53,{'id':_0x7764b7(0x239),'ref':_0x280bb4,'icon':_0x2f13bf}));});_0x9b7afe['displayName']='OnLineSingle';const _0x219ac6={'onlineStatusIcon':_0x51d41b(0x413),'onlineStatusTitle':_0x51d41b(0x4e6),'onlineStatus':_0x51d41b(0x5a6),'online':_0x51d41b(0x56f),'offline':'univer-offline'};function _0x2dceda(_0x294f7a){const _0x252156=_0x51d41b;switch(_0x294f7a){case _0xcb53f5[_0x252156(0x588)]:return _0x252156(0x580);case _0xcb53f5[_0x252156(0x3b3)]:return _0x252156(0x294);case _0xcb53f5[_0x252156(0x1f8)]:return _0x252156(0x4d7);case _0xcb53f5[_0x252156(0x4a9)]:return _0x252156(0x4d1);case _0xcb53f5[_0x252156(0x4ef)]:case _0xcb53f5[_0x252156(0x515)]:case _0xcb53f5['AWAITING_WITH_PENDING']:return _0x252156(0x211);case _0xcb53f5[_0x252156(0x36f)]:return'collabStatus.synced';}}function _0xc902da(_0x3bbc6d){const _0x2f4655=_0x51d41b,{status$:_0x5d8fe9}=_0x3bbc6d,_0x2bf60e=_0x455671[_0x2f4655(0x43b)](_0x5d8fe9,_0xcb53f5[_0x2f4655(0x4a9)]),_0x4a3377=_0x36d396[_0x2f4655(0x270)](_0x36d396['LocaleService']),_0x1d8eef=_0x36d396[_0x2f4655(0x270)](_0x59ce0d[_0x2f4655(0x285)]),_0x5be24a=_0x2bf60e!==_0xcb53f5['OFFLINE'],_0x660ff4=_0x4a3377['t'](_0x2dceda(_0x2bf60e)),_0x172ce8=_0x30ff44(_0x219ac6[_0x2f4655(0x354)],{[_0x219ac6['online']]:_0x5be24a,[_0x219ac6[_0x2f4655(0x1b9)]]:!_0x5be24a}),_0x40e92b=_0x5be24a?_0x28fb9c['createElement'](_0x9b7afe,null):_0x28fb9c['createElement'](_0x53ab85,null),_0x523d20=_0x28fb9c['useCallback'](()=>{const _0x2af022=_0x2f4655;_0x5be24a||_0x1d8eef[_0x2af022(0x1df)]();},[_0x5be24a,_0x1d8eef]);function _0x49ed29(){const _0x592b1b=_0x2f4655;return _0x28fb9c[_0x592b1b(0x4dd)]('div',{'className':_0x172ce8,'onClick':_0x523d20},_0x28fb9c[_0x592b1b(0x4dd)](_0x592b1b(0x18f),{'className':_0x219ac6[_0x592b1b(0x30f)]},_0x40e92b),_0x28fb9c['createElement']('div',{'className':_0x219ac6['onlineStatusTitle']},_0x660ff4));}return _0x5be24a?_0x49ed29():_0x28fb9c[_0x2f4655(0x4dd)](_0x53e1d0[_0x2f4655(0x449)],{'title':_0x4a3377['t'](_0x2f4655(0x512))},_0x49ed29());}var _0x2de791=Object[_0x51d41b(0x215)],_0x5eb9c5=Object[_0x51d41b(0x2b7)],_0x24733f=(_0x4d0e18,_0x126c0d,_0x4dde6a,_0x2ff2bd)=>{for(var _0x31c15c=_0x2ff2bd>0x1?void 0x0:_0x2ff2bd?_0x5eb9c5(_0x126c0d,_0x4dde6a):_0x126c0d,_0x126a9a=_0x4d0e18['length']-0x1,_0x119e87;_0x126a9a>=0x0;_0x126a9a--)(_0x119e87=_0x4d0e18[_0x126a9a])&&(_0x31c15c=(_0x2ff2bd?_0x119e87(_0x126c0d,_0x4dde6a,_0x31c15c):_0x119e87(_0x31c15c))||_0x31c15c);return _0x2ff2bd&&_0x31c15c&&_0x2de791(_0x126c0d,_0x4dde6a,_0x31c15c),_0x31c15c;},_0x45b50d=(_0x1ece68,_0x57886d)=>(_0x5100f2,_0x358cbd)=>_0x57886d(_0x5100f2,_0x358cbd,_0x1ece68);_0x59ce0d[_0x51d41b(0x452)]=class extends _0x36d396['Disposable']{constructor(_0x18a336,_0x4bf3c5,_0x406f70,_0x575dd2){const _0x3e2359=_0x51d41b;super(),_0x55fd67(this,_0x3e2359(0x378),new _0x22cf47[(_0x3e2359(0x482))](_0xcb53f5['NOT_COLLAB'])),(this[_0x3e2359(0x273)]=_0x18a336,this[_0x3e2359(0x3d4)]=_0x4bf3c5,this[_0x3e2359(0x2b0)]=_0x406f70,this[_0x3e2359(0x1c9)]=_0x575dd2,this[_0x3e2359(0x249)](),this[_0x3e2359(0x3b9)]());}[_0x51d41b(0x3b9)](){const _0x542eb7=_0x51d41b;this[_0x542eb7(0x595)](this[_0x542eb7(0x273)][_0x542eb7(0x201)][_0x542eb7(0x257)](_0x22cf47[_0x542eb7(0x40c)](()=>{const _0x32ce01=_0x542eb7,_0x5464e9=this[_0x32ce01(0x273)][_0x32ce01(0x3ce)]();return _0x5464e9?this[_0x32ce01(0x1c9)]['getCollabEntity$'](_0x5464e9[_0x32ce01(0x4ce)]()):_0x22cf47['of'](null);}),_0x22cf47[_0x542eb7(0x40c)](_0xa2b789=>_0xa2b789?_0xa2b789[_0x542eb7(0x2a3)]:_0x22cf47['of'](_0xcb53f5[_0x542eb7(0x4a9)])))[_0x542eb7(0x200)](_0x10250e=>{this['_status$']['next'](_0x10250e);}));}[_0x51d41b(0x249)](){const _0x28b265=_0x51d41b;this[_0x28b265(0x595)](this[_0x28b265(0x3d4)][_0x28b265(0x196)](_0x455671[_0x28b265(0x33a)]['HEADER_MENU'],()=>_0x36d396[_0x28b265(0x39b)](_0x401c32({'status$':this['_status$'][_0x28b265(0x544)]()}),this[_0x28b265(0x2b0)])));}},_0x59ce0d['DesktopCollaborationStatusDisplayController']=_0x24733f([_0x45b50d(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x45b50d(0x1,_0x455671[_0x51d41b(0x575)]),_0x45b50d(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['Injector'])),_0x45b50d(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d['CollaborationController']))],_0x59ce0d[_0x51d41b(0x452)]);function _0x401c32(_0x1dd231){const {status$:_0x1be878}=_0x1dd231;return function(){const _0xb6619b=_0x4682;return _0x28fb9c[_0xb6619b(0x4dd)](_0xc902da,{'status$':_0x1be878});};}const _0x56d70c=_0x36d396[_0x51d41b(0x494)](_0x51d41b(0x549));var _0x4b78b1=Object[_0x51d41b(0x215)],_0x3ce1ea=Object[_0x51d41b(0x2b7)],_0x2f1e9e=(_0x32568f,_0x44062e,_0x21a0da,_0x31ee9d)=>{const _0x311293=_0x51d41b;for(var _0x3a419b=_0x31ee9d>0x1?void 0x0:_0x31ee9d?_0x3ce1ea(_0x44062e,_0x21a0da):_0x44062e,_0xe7669c=_0x32568f[_0x311293(0x392)]-0x1,_0x1b6ac7;_0xe7669c>=0x0;_0xe7669c--)(_0x1b6ac7=_0x32568f[_0xe7669c])&&(_0x3a419b=(_0x31ee9d?_0x1b6ac7(_0x44062e,_0x21a0da,_0x3a419b):_0x1b6ac7(_0x3a419b))||_0x3a419b);return _0x31ee9d&&_0x3a419b&&_0x4b78b1(_0x44062e,_0x21a0da,_0x3a419b),_0x3a419b;},_0x19edeb=(_0x5269e3,_0x28b990)=>(_0x3c33ef,_0x9570b4)=>_0x28b990(_0x3c33ef,_0x9570b4,_0x5269e3);_0x59ce0d[_0x51d41b(0x4a6)]=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x4ce6b0,_0x481d44,_0x554697,_0x3ff9cf,_0x3d5c36,_0x169033){const _0x3b144c=_0x51d41b;super(),this['_urlService']=_0x4ce6b0,this['_logService']=_0x481d44,this[_0x3b144c(0x561)]=_0x554697,this[_0x3b144c(0x552)]=_0x3ff9cf,this['_snapshotService']=_0x3d5c36,_0x169033?_0x169033==null||_0x169033['whenReady']()[_0x3b144c(0x59d)](()=>this['_init']()):(this[_0x3b144c(0x545)][_0x3b144c(0x45b)](_0x3b144c(0x3f4),_0x3b144c(0x41a)),this['_init']());}async[_0x51d41b(0x571)](){const _0x2028a4=_0x51d41b,_0x5e3fa8=this['_urlService'][_0x2028a4(0x1d3)](_0x2028a4(0x4b4)),_0x39161e=this[_0x2028a4(0x254)][_0x2028a4(0x1d3)](_0x2028a4(0x2cb));if(!_0x5e3fa8||!_0x39161e){this[_0x2028a4(0x545)][_0x2028a4(0x45b)]('[DataLoaderController]','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');return;}switch(Number(_0x39161e)){case _0x54451c[_0x2028a4(0x1d8)]:{const _0x1ad079=await this[_0x2028a4(0x424)](_0x5e3fa8);this[_0x2028a4(0x2d5)](_0x1ad079);break;}case _0x54451c['UNIVER_DOC']:{await this[_0x2028a4(0x22b)](_0x5e3fa8);break;}default:{this[_0x2028a4(0x545)][_0x2028a4(0x405)](_0x2028a4(0x3f4),_0x2028a4(0x373));break;}}}async[_0x51d41b(0x2d5)](_0x5b6bc2){const _0x282e2d=_0x51d41b;await this['_updateSubUnitFromURLParams'](_0x5b6bc2),_0x5b6bc2[_0x282e2d(0x3a6)][_0x282e2d(0x257)](_0x22cf47['takeUntil'](this[_0x282e2d(0x1b2)]))[_0x282e2d(0x200)](_0x2ec7d0=>{const _0x3510c1=_0x282e2d;_0x2ec7d0&&this[_0x3510c1(0x2df)](_0x2ec7d0);}),this[_0x282e2d(0x254)]['urlChange$'][_0x282e2d(0x257)](_0x22cf47[_0x282e2d(0x5a4)](this['dispose$']))[_0x282e2d(0x200)](()=>this[_0x282e2d(0x395)](_0x5b6bc2));}[_0x51d41b(0x2df)](_0x4937d5,_0x2dd53b=!0x1){const _0x348cc6=_0x51d41b,_0x13993f=this[_0x348cc6(0x254)][_0x348cc6(0x1d3)]('subunit');_0x4937d5[_0x348cc6(0x414)]()!==_0x13993f&&this[_0x348cc6(0x254)][_0x348cc6(0x444)](_0x348cc6(0x1ac),_0x4937d5[_0x348cc6(0x414)](),_0x2dd53b);}async[_0x51d41b(0x395)](_0x2a2487){const _0x2f8f42=_0x51d41b;var _0x1f5282;const _0x37d553=this[_0x2f8f42(0x254)][_0x2f8f42(0x1d3)]('subunit');if(!_0x37d553||!_0x2a2487['getSheetBySheetId'](_0x37d553)){const _0x463e90=_0x2a2487['getUnhiddenWorksheets']()[0x0],_0x581f64=_0x2a2487[_0x2f8f42(0x24f)](_0x463e90);if(!_0x581f64)return;this[_0x2f8f42(0x2df)](_0x581f64,!0x0),await this[_0x2f8f42(0x561)][_0x2f8f42(0x4d0)](_0xdbe912[_0x2f8f42(0x53a)]['id'],{'unitId':_0x2a2487[_0x2f8f42(0x4ce)](),'subUnitId':_0x463e90});return;}((_0x1f5282=_0x2a2487['getActiveSheet']())==null?void 0x0:_0x1f5282['getSheetId']())!==_0x37d553&&await this['_commandService'][_0x2f8f42(0x4d0)](_0xdbe912[_0x2f8f42(0x53a)]['id'],{'unitId':_0x2a2487[_0x2f8f42(0x4ce)](),'subUnitId':_0x37d553});}async[_0x51d41b(0x424)](_0x2bdac9){const _0x3a7e14=_0x51d41b;let _0x59ff81=0x0;const _0x58af5f=await this[_0x3a7e14(0x552)][_0x3a7e14(0x335)](_0x2bdac9);return _0x58af5f&&(_0x58af5f[_0x3a7e14(0x523)]||_0x58af5f[_0x3a7e14(0x533)]['length']!==0x0)&&(_0x59ff81=_0x58af5f['rev']),_0x59ff81===0x0&&this[_0x3a7e14(0x545)][_0x3a7e14(0x45b)]('[DataLoaderController]',_0x3a7e14(0x2f5)),this[_0x3a7e14(0x5a9)][_0x3a7e14(0x2e8)](_0x2bdac9,_0x59ff81);}async[_0x51d41b(0x22b)](_0x533651){const _0x5bca69=_0x51d41b;let _0x498a66=0x0;const _0x3b9779=await this[_0x5bca69(0x552)][_0x5bca69(0x335)](_0x533651);return _0x3b9779&&(_0x3b9779[_0x5bca69(0x523)]||_0x3b9779['mutations']['length']!==0x0)&&(_0x498a66=_0x3b9779[_0x5bca69(0x4cc)]),_0x498a66===0x0&&this['_logService'][_0x5bca69(0x45b)](_0x5bca69(0x3f4),_0x5bca69(0x2f5)),this[_0x5bca69(0x5a9)][_0x5bca69(0x27c)](_0x533651,_0x498a66);}},_0x59ce0d[_0x51d41b(0x4a6)]=_0x2f1e9e([_0x36d396['OnLifecycle'](_0x36d396['LifecycleStages'][_0x51d41b(0x4e8)],_0x59ce0d[_0x51d41b(0x4a6)]),_0x19edeb(0x0,_0x56d70c),_0x19edeb(0x1,_0x36d396['ILogService']),_0x19edeb(0x2,_0x36d396['ICommandService']),_0x19edeb(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x434)])),_0x19edeb(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x346629['SnapshotService'])),_0x19edeb(0x5,_0x36d396[_0x51d41b(0x43f)](_0x5badd8['IRemoteInstanceService']))],_0x59ce0d[_0x51d41b(0x4a6)]);var _0x426673=Object[_0x51d41b(0x215)],_0x1aeb69=Object[_0x51d41b(0x2b7)],_0x290f9e=(_0x4fc9d1,_0x2adb18,_0x59e8e4,_0x3f8e9c)=>{const _0x12d859=_0x51d41b;for(var _0x4618c3=_0x3f8e9c>0x1?void 0x0:_0x3f8e9c?_0x1aeb69(_0x2adb18,_0x59e8e4):_0x2adb18,_0x3bab89=_0x4fc9d1[_0x12d859(0x392)]-0x1,_0x34cbf6;_0x3bab89>=0x0;_0x3bab89--)(_0x34cbf6=_0x4fc9d1[_0x3bab89])&&(_0x4618c3=(_0x3f8e9c?_0x34cbf6(_0x2adb18,_0x59e8e4,_0x4618c3):_0x34cbf6(_0x4618c3))||_0x4618c3);return _0x3f8e9c&&_0x4618c3&&_0x426673(_0x2adb18,_0x59e8e4,_0x4618c3),_0x4618c3;},_0x597258=(_0x5b16fc,_0x4cd7f1)=>(_0x271a8f,_0xaf0021)=>_0x4cd7f1(_0x271a8f,_0xaf0021,_0x5b16fc);const _0x1fda7c=_0x51d41b(0x238),_0x11f8d9='Univer';let _0x3b02a7=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x11dd5d,_0xe94c41){const _0x47a403=_0x51d41b;super(),this[_0x47a403(0x273)]=_0x11dd5d,this[_0x47a403(0x448)]=_0xe94c41,this[_0x47a403(0x571)]();}[_0x51d41b(0x571)](){const _0x99784c=_0x51d41b;this[_0x99784c(0x595)](_0x36d396['toDisposable'](this[_0x99784c(0x273)]['focused$'][_0x99784c(0x200)](()=>{const _0x5914d8=_0x99784c;var _0x540172;const _0xf8f735=this[_0x5914d8(0x273)][_0x5914d8(0x3ce)]();let _0x29253f=(_0x540172=this[_0x5914d8(0x448)][_0x5914d8(0x1a6)](_0x1fda7c))!=null?_0x540172:_0x11f8d9;_0xf8f735 instanceof _0x36d396['Workbook']&&(_0x29253f=_0xf8f735[_0x5914d8(0x346)]),document[_0x5914d8(0x261)]=_0x29253f;})));}};_0x3b02a7=_0x290f9e([_0x36d396['OnLifecycle'](_0x36d396['LifecycleStages'][_0x51d41b(0x3cb)],_0x3b02a7),_0x597258(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x597258(0x1,_0x36d396[_0x51d41b(0x511)])],_0x3b02a7);var _0x1d8afb=Object['defineProperty'],_0x573777=Object['getOwnPropertyDescriptor'],_0x34fab1=(_0x118e22,_0x392054,_0x343924,_0x5806ca)=>{const _0x103fa3=_0x51d41b;for(var _0x200848=_0x5806ca>0x1?void 0x0:_0x5806ca?_0x573777(_0x392054,_0x343924):_0x392054,_0x1d068c=_0x118e22[_0x103fa3(0x392)]-0x1,_0x4db511;_0x1d068c>=0x0;_0x1d068c--)(_0x4db511=_0x118e22[_0x1d068c])&&(_0x200848=(_0x5806ca?_0x4db511(_0x392054,_0x343924,_0x200848):_0x4db511(_0x200848))||_0x200848);return _0x5806ca&&_0x200848&&_0x1d8afb(_0x392054,_0x343924,_0x200848),_0x200848;},_0x121c3a=(_0x2df711,_0x5ecd2a)=>(_0x5575e5,_0x31d84d)=>_0x5ecd2a(_0x5575e5,_0x31d84d,_0x2df711);_0x59ce0d[_0x51d41b(0x53d)]=class{constructor(_0xf8991c,_0x4890b4){const _0x59b774=_0x51d41b;this[_0x59b774(0x448)]=_0xf8991c,this[_0x59b774(0x463)]=_0x4890b4;}async[_0x51d41b(0x3f7)](_0x263759,_0x1defb2){const _0x5c076e=_0x51d41b;var _0x25cf59;const {unitID:_0x22dad6,type:_0xcc3768,revision:_0x5e3318=0x0}=_0x1defb2,_0x1687a4=this[_0x5c076e(0x302)]()+'/'+_0xcc3768+'/unit/'+_0x22dad6+'/rev/'+_0x5e3318,_0x711e98=(await this[_0x5c076e(0x463)]['get'](_0x1687a4))['body'],_0xdbe65b=(_0x25cf59=_0x711e98[_0x5c076e(0x56a)])==null?void 0x0:_0x25cf59['workbook'];if(_0xdbe65b){const _0xe39029=_0xdbe65b==null?void 0x0:_0xdbe65b[_0x5c076e(0x3b0)],_0x56b89d=_0x346629['textEncoder'][_0x5c076e(0x2cc)](_0x346629[_0x5c076e(0x205)](_0xe39029));_0xdbe65b[_0x5c076e(0x3b0)]=_0x56b89d,Object[_0x5c076e(0x57e)](_0xdbe65b[_0x5c076e(0x407)])[_0x5c076e(0x1a9)](([,_0x3ee12c])=>{const _0x2ddc67=_0x5c076e,_0x4da2f4=_0x3ee12c[_0x2ddc67(0x3b0)],_0x5460fc=_0x346629[_0x2ddc67(0x194)][_0x2ddc67(0x2cc)](_0x346629[_0x2ddc67(0x205)](_0x4da2f4));_0x3ee12c['originalMeta']=_0x5460fc;});}return _0x711e98;}async[_0x51d41b(0x26f)](_0x2936c9,_0x170f59){const _0x250f45=_0x51d41b,{unitID:_0x230e22,type:_0x1d66f9,blockID:_0x40bad3}=_0x170f59,_0x14ea09=this['_getAPIPrefix']()+'/'+_0x1d66f9+_0x250f45(0x33f)+_0x230e22+_0x250f45(0x317)+_0x40bad3;return(await this[_0x250f45(0x463)][_0x250f45(0x58c)](_0x14ea09))['body'];}async[_0x51d41b(0x2fd)](_0x49cfeb,_0x5db543){const _0x3cb929=_0x51d41b,{unitID:_0x115a2c,type:_0x383598,from:_0x3ff438,to:_0x4c4d81}=_0x5db543,_0x47a162=this['_getAPIPrefix']()+'/'+_0x383598+'/unit/'+_0x115a2c+_0x3cb929(0x576)+_0x3ff438+'&to='+_0x4c4d81;return(await this['_httpService'][_0x3cb929(0x58c)](_0x47a162))[_0x3cb929(0x283)];}['_getSnapshotAPIPrefix'](){const _0x47104e=_0x51d41b;var _0x1ce5a1;return(_0x1ce5a1=this[_0x47104e(0x448)][_0x47104e(0x1a6)](_0x4ad76f))!=null?_0x1ce5a1:this[_0x47104e(0x234)]();}[_0x51d41b(0x234)](){const _0x159b1e=_0x51d41b;var _0x151c3a;return(_0x151c3a=this[_0x159b1e(0x448)][_0x159b1e(0x1a6)](_0x3ee3ce))!=null?_0x151c3a:_0x3fad9d;}async[_0x51d41b(0x486)](_0x21b3db,_0x2f7d2a){const _0x3e6ca0=_0x51d41b,_0x2e55ed='/universer-api/snapshot/'+_0x2f7d2a[_0x3e6ca0(0x2cb)]+_0x3e6ca0(0x33f)+_0x2f7d2a[_0x3e6ca0(0x35f)]+_0x3e6ca0(0x550);return(await this['_httpService'][_0x3e6ca0(0x58c)](_0x2e55ed,{'params':{'resourceId':JSON[_0x3e6ca0(0x54a)](_0x2f7d2a[_0x3e6ca0(0x344)])}}))[_0x3e6ca0(0x283)];}[_0x51d41b(0x1c5)](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['saveSheetBlock'](){const _0x3da828=_0x51d41b;throw new Error(_0x3da828(0x3a8));}[_0x51d41b(0x499)](){const _0x57ad8d=_0x51d41b;throw new Error(_0x57ad8d(0x3a8));}},_0x59ce0d[_0x51d41b(0x53d)]=_0x34fab1([_0x121c3a(0x0,_0x36d396[_0x51d41b(0x511)]),_0x121c3a(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x3d1d50[_0x51d41b(0x2e6)]))],_0x59ce0d[_0x51d41b(0x53d)]);var _0x52d43d=Object[_0x51d41b(0x215)],_0x15fdd7=Object[_0x51d41b(0x2b7)],_0x360f6e=(_0x21c046,_0x560e48,_0xd81468,_0xde42c7)=>{const _0xf28dc9=_0x51d41b;for(var _0x3b1e0d=_0xde42c7>0x1?void 0x0:_0xde42c7?_0x15fdd7(_0x560e48,_0xd81468):_0x560e48,_0x5be30c=_0x21c046[_0xf28dc9(0x392)]-0x1,_0x121494;_0x5be30c>=0x0;_0x5be30c--)(_0x121494=_0x21c046[_0x5be30c])&&(_0x3b1e0d=(_0xde42c7?_0x121494(_0x560e48,_0xd81468,_0x3b1e0d):_0x121494(_0x3b1e0d))||_0x3b1e0d);return _0xde42c7&&_0x3b1e0d&&_0x52d43d(_0x560e48,_0xd81468,_0x3b1e0d),_0x3b1e0d;},_0x4a5eb8=(_0x4cb172,_0x41c816)=>(_0xe20149,_0x1af2b5)=>_0x41c816(_0xe20149,_0x1af2b5,_0x4cb172);let _0xfd6590=class extends _0x36d396[_0x51d41b(0x430)]{constructor(_0x5377e1,_0x2c883e,_0x23c38b,_0x4976b,_0x48a77a){const _0x32f8d0=_0x51d41b;super(_0x5377e1,_0x2c883e,_0x23c38b),this[_0x32f8d0(0x376)]=_0x4976b,this[_0x32f8d0(0x545)]=_0x48a77a;}[_0x51d41b(0x39a)](_0x5d112a,_0x31f72b){const _0x2b2a41=_0x51d41b,_0x1961cd=this['_getUndoStack'](_0x5d112a);if(_0x1961cd)try{const _0x55d7a8=this['_transformStack'](_0x1961cd,_0x31f72b);this[_0x2b2a41(0x379)](_0x5d112a,_0x55d7a8);}catch(_0x3e8f4e){this[_0x2b2a41(0x545)]['error']('[CollaborationUndoRedoService]',_0x3e8f4e),this[_0x2b2a41(0x334)](_0x5d112a);}const _0x30d410=this[_0x2b2a41(0x278)](_0x5d112a);if(_0x30d410)try{const _0x5551bb=this[_0x2b2a41(0x38c)](_0x30d410,_0x31f72b);this[_0x2b2a41(0x35d)](_0x5d112a,_0x5551bb);}catch(_0xc9d20f){this[_0x2b2a41(0x545)][_0x2b2a41(0x405)](_0xc9d20f),this['_clearRedo'](_0x5d112a);}}['_clearUndo'](_0x59d08e){const _0x10be96=_0x51d41b,_0x5a31dc=this[_0x10be96(0x537)](_0x59d08e);_0x5a31dc&&(_0x5a31dc[_0x10be96(0x392)]=0x0,this[_0x10be96(0x313)]());}[_0x51d41b(0x4e7)](_0x3928c1){const _0x30e4a4=_0x51d41b,_0x5542fb=this[_0x30e4a4(0x278)](_0x3928c1);_0x5542fb&&(_0x5542fb[_0x30e4a4(0x392)]=0x0,this[_0x30e4a4(0x313)]());}[_0x51d41b(0x379)](_0x26828a,_0x2c7634){const _0x35aa40=_0x51d41b;this['_undoStacks'][_0x35aa40(0x27f)](_0x26828a,_0x2c7634),this[_0x35aa40(0x313)]();}[_0x51d41b(0x35d)](_0x16e856,_0x15cd6b){const _0x32d605=_0x51d41b;this[_0x32d605(0x203)][_0x32d605(0x27f)](_0x16e856,_0x15cd6b),this[_0x32d605(0x313)]();}[_0x51d41b(0x38c)](_0x4d1e3e,_0x30ce11){const _0x4f14b9=_0x51d41b,_0x27279c=[];let _0x44337c=_0x30ce11,_0x2fd5dc=_0x30ce11;for(let _0x56b58c=_0x4d1e3e['length']-0x1;_0x56b58c>=0x0;_0x56b58c--){const {unitID:_0x27c1d8,undoMutations:_0x39058a,redoMutations:_0x236101}=_0x4d1e3e[_0x56b58c],_0x2aeb02=this[_0x4f14b9(0x376)][_0x4f14b9(0x26e)](_0x44337c,_0x39058a),_0x54a328=this[_0x4f14b9(0x376)]['transformMutationsWithChangeset'](_0x2fd5dc,_0x236101);if(_0x346629['isTransformMutationsWithChangesetFailure'](_0x2aeb02)||_0x346629[_0x4f14b9(0x4ac)](_0x54a328)){this[_0x4f14b9(0x545)][_0x4f14b9(0x405)](_0x4f14b9(0x428),_0x4f14b9(0x4ff),_0x2aeb02,_0x54a328);break;}_0x44337c=_0x2aeb02['c1Prime'],_0x2fd5dc=_0x54a328[_0x4f14b9(0x37c)],_0x27279c[_0x4f14b9(0x3cf)]({'unitID':_0x27c1d8,'undoMutations':_0x2aeb02[_0x4f14b9(0x4b5)],'redoMutations':_0x54a328[_0x4f14b9(0x4b5)]});}return _0x27279c[_0x4f14b9(0x497)]();}};_0xfd6590=_0x360f6e([_0x4a5eb8(0x0,_0x36d396[_0x51d41b(0x2c5)]),_0x4a5eb8(0x1,_0x36d396[_0x51d41b(0x1d5)]),_0x4a5eb8(0x2,_0x36d396[_0x51d41b(0x34e)]),_0x4a5eb8(0x3,_0x346629[_0x51d41b(0x213)]),_0x4a5eb8(0x4,_0x36d396[_0x51d41b(0x495)])],_0xfd6590);class _0x161740 extends _0x36d396[_0x51d41b(0x480)]{constructor(){const _0x202340=_0x51d41b;super(),_0x55fd67(this,_0x202340(0x2e2)),this[_0x202340(0x2e2)]=_0x22cf47[_0x202340(0x2ea)](window,_0x202340(0x291))[_0x202340(0x257)](_0x22cf47['takeUntil'](this['dispose$']),_0x22cf47[_0x202340(0x566)](0x1),_0x22cf47[_0x202340(0x2be)](void 0x0));}[_0x51d41b(0x444)](_0x1dc77d,_0x1c4092,_0x3756c5=!0x1){const _0x4faa8f=_0x51d41b,_0xb8c591=new URL(window[_0x4faa8f(0x57f)]['href']);_0xb8c591[_0x4faa8f(0x190)][_0x4faa8f(0x27f)](_0x1dc77d,_0x1c4092),_0x3756c5?window[_0x4faa8f(0x3d0)]['replaceState']('','',_0xb8c591[_0x4faa8f(0x240)]()):window[_0x4faa8f(0x3d0)]['pushState']('','',_0xb8c591[_0x4faa8f(0x240)]());}[_0x51d41b(0x336)](_0x26bf11,_0x525eab=!0x1){const _0x3e97d9=_0x51d41b,_0x52ddcd=new URL(window[_0x3e97d9(0x57f)][_0x3e97d9(0x23a)]);_0x52ddcd[_0x3e97d9(0x190)][_0x3e97d9(0x560)](_0x26bf11),_0x525eab?window['history'][_0x3e97d9(0x3c1)]('','',_0x52ddcd[_0x3e97d9(0x240)]()):window['history'][_0x3e97d9(0x454)]('','',_0x52ddcd[_0x3e97d9(0x240)]());}[_0x51d41b(0x1d3)](_0x19f356){const _0xc5c2f1=_0x51d41b;var _0xc369fc;return(_0xc369fc=new URL(window[_0xc5c2f1(0x57f)][_0xc5c2f1(0x23a)])[_0xc5c2f1(0x190)][_0xc5c2f1(0x58c)](_0x19f356))!=null?_0xc369fc:void 0x0;}}const _0x2196c7=_0x51d41b(0x40d),_0x26adf6=_0x51d41b(0x275),_0x19a34b=_0x51d41b(0x567),_0x42126b=0x6,_0x13d6fb=1.5,_0x10d324=0x4,_0x291f02=1.5,_0x490fff=_0x51d41b(0x29a);class _0x4cd564{constructor(_0x5b7454,_0x249123,_0x4a3058,_0x4ccdde){const _0x15ccbb=_0x51d41b;_0x55fd67(this,_0x15ccbb(0x4ae),[]),_0x55fd67(this,'_anchor',null),_0x55fd67(this,'_textBubble',null),_0x55fd67(this,_0x15ccbb(0x437),null),_0x55fd67(this,_0x15ccbb(0x56e),null),_0x55fd67(this,_0x15ccbb(0x301),null),(this[_0x15ccbb(0x327)]=_0x5b7454,this['_scene']=_0x249123,this[_0x15ccbb(0x1fd)]=_0x4a3058,this['_document']=_0x4ccdde,this[_0x15ccbb(0x59a)]());}set[_0x51d41b(0x59b)](_0x47d3c8){const _0x565271=_0x51d41b;_0x47d3c8?(this[_0x565271(0x437)]&&this[_0x565271(0x437)]['hide'](),this[_0x565271(0x2f8)]&&this[_0x565271(0x2f8)][_0x565271(0x3c3)]()):(this['_anchorDot']&&this[_0x565271(0x437)][_0x565271(0x3c3)](),this[_0x565271(0x2f8)]&&this[_0x565271(0x2f8)][_0x565271(0x1b4)]());}['dispose'](){const _0x3de57a=_0x51d41b;for(const _0x2406fa of this[_0x3de57a(0x4ae)])_0x2406fa[_0x3de57a(0x3cd)]();this[_0x3de57a(0x2f8)]&&this[_0x3de57a(0x2f8)][_0x3de57a(0x3cd)](),this[_0x3de57a(0x437)]&&this['_anchorDot'][_0x3de57a(0x3cd)](),this[_0x3de57a(0x28e)]&&this[_0x3de57a(0x28e)]['dispose'](),this[_0x3de57a(0x301)]&&this['_eventUnsubscribe']();}[_0x51d41b(0x59a)](){const _0x39c9e=_0x51d41b;var _0x185602;const {_docSkeleton:_0x350575,_document:_0x350ab0}=this,{color:_0x74a73c,name:_0x2a5e88,ranges:_0x48776d}=this[_0x39c9e(0x327)],_0x132421=_0x350ab0[_0x39c9e(0x4b1)](),{docsLeft:_0x220dc0,docsTop:_0x3b0ea2}=_0x132421,_0xf75941=new _0x54d1da['NodePositionConvertToCursor'](_0x132421,_0x350575);for(const {startOffset:_0xe3bf05,endOffset:_0x4764fe,collapsed:_0x43c91a,isActive:_0x3c2a0c}of _0x48776d){const _0x3007a3=_0x350575['findNodePositionByCharIndex'](_0xe3bf05),_0x2d4243=_0x350575[_0x39c9e(0x4bf)](_0x4764fe);if(_0x3c2a0c){const {contentBoxPointGroup:_0x5c28a2}=_0xf75941[_0x39c9e(0x295)](_0x2d4243,_0x2d4243);if(_0x5c28a2['length']===0x0)continue;this[_0x39c9e(0x2c8)](_0x74a73c,_0x5c28a2,_0x220dc0,_0x3b0ea2,_0x2a5e88),this[_0x39c9e(0x301)]=this[_0x39c9e(0x557)]();}if(!_0x43c91a&&_0x3007a3&&_0x2d4243){if(_0x54d1da['isValidRectRange'](_0x3007a3,_0x2d4243)){const _0x5415e7=new _0x54d1da[(_0x39c9e(0x19f))](_0x132421,_0x350575),{pointGroup:_0x436c7a}=(_0x185602=_0x5415e7[_0x39c9e(0x295)](_0x3007a3,_0x2d4243))!=null?_0x185602:{};if(_0x436c7a==null||_0x436c7a[_0x39c9e(0x392)]===0x0)continue;this[_0x39c9e(0x4ca)](_0x74a73c,_0x436c7a,_0x220dc0,_0x3b0ea2);}else{const {contentBoxPointGroup:_0x25c311}=_0xf75941[_0x39c9e(0x295)](_0x3007a3,_0x2d4243);if(_0x25c311['length']===0x0)continue;this[_0x39c9e(0x4c4)](_0x74a73c,_0x25c311,_0x220dc0,_0x3b0ea2);}}}}[_0x51d41b(0x2c8)](_0x54bc72,_0x8738df,_0x4f55b8,_0x52b442,_0x1a68ee){const _0x4c87e1=_0x51d41b,_0x338d4e=this[_0x4c87e1(0x311)](_0x8738df),{left:_0x4f59c8,top:_0x443717,height:_0x3e19a2}=_0x338d4e,_0x1f1686=this[_0x4c87e1(0x3e5)](),_0x158afc=_0x291f02/_0x1f1686,_0x1fe7b5=new _0x54d1da[(_0x4c87e1(0x4d3))](_0x2196c7+_0x36d396[_0x4c87e1(0x20e)][_0x4c87e1(0x1e3)](_0x42126b),{'left':_0x4f59c8+_0x4f55b8-_0x158afc,'top':_0x443717+_0x52b442,'height':_0x3e19a2,'width':_0x13d6fb,'fill':_0x54bc72||_0x54d1da[_0x4c87e1(0x472)](_0x36d396[_0x4c87e1(0x35e)][_0x4c87e1(0x529)],0x0),'strokeWidth':_0x158afc,'stroke':_0x490fff,'evented':!0x0});this[_0x4c87e1(0x28e)]=_0x1fe7b5,this['_scene'][_0x4c87e1(0x3c0)](_0x1fe7b5,_0x54d1da['TEXT_RANGE_LAYER_INDEX']);const _0x5889a0=new _0x54d1da[(_0x4c87e1(0x4d3))](_0x2196c7+_0x36d396[_0x4c87e1(0x20e)][_0x4c87e1(0x1e3)](_0x42126b),{'left':_0x4f59c8+_0x4f55b8-_0x158afc,'top':_0x443717+_0x52b442-_0x10d324/0x2,'height':_0x10d324,'width':_0x10d324,'fill':_0x54bc72||_0x54d1da[_0x4c87e1(0x472)](_0x36d396[_0x4c87e1(0x35e)][_0x4c87e1(0x529)],0x0),'strokeWidth':0x0,'stroke':_0x54bc72||_0x54d1da[_0x4c87e1(0x472)](_0x36d396[_0x4c87e1(0x35e)]['black'],0x0),'evented':!0x1});this[_0x4c87e1(0x437)]=_0x5889a0,this['_scene'][_0x4c87e1(0x3c0)](_0x5889a0,_0x54d1da['TEXT_RANGE_LAYER_INDEX']);const _0x3e68ad=new _0x5aab28(_0x2196c7+_0x36d396[_0x4c87e1(0x20e)][_0x4c87e1(0x1e3)](_0x42126b),{'left':_0x4f59c8+_0x4f55b8-_0x158afc,'top':_0x443717+_0x52b442-_0x122765,'text':_0x1a68ee,'color':_0x54bc72});this['_textBubble']=_0x3e68ad,this[_0x4c87e1(0x297)][_0x4c87e1(0x3c0)](_0x3e68ad,_0x54d1da['TEXT_RANGE_LAYER_INDEX']),this[_0x4c87e1(0x59b)]=!0x1;}[_0x51d41b(0x557)](){const _0x1fe840=_0x51d41b,_0x137de0=this[_0x1fe840(0x28e)][_0x1fe840(0x594)][_0x1fe840(0x3ea)](()=>{const _0xc56d1c=_0x1fe840;this[_0xc56d1c(0x59b)]=!0x0;}),_0x4798ab=this[_0x1fe840(0x28e)]['onPointerLeave$'][_0x1fe840(0x3ea)](()=>{const _0x5ed2c4=_0x1fe840;this[_0x5ed2c4(0x56e)]&&clearTimeout(this[_0x5ed2c4(0x56e)]),this[_0x5ed2c4(0x56e)]=setTimeout(()=>{const _0xc5ae14=_0x5ed2c4;this[_0xc5ae14(0x59b)]=!0x1;},0x7d0);});return()=>{_0x137de0['unsubscribe'](),_0x4798ab['unsubscribe']();};}[_0x51d41b(0x4c4)](_0x32f636,_0x33c899,_0x59cb50,_0x5e01ee){const _0x1182d0=_0x51d41b,_0x1a8da5=new _0x36d396[(_0x1182d0(0x1af))](_0x32f636)[_0x1182d0(0x474)](0.2)[_0x1182d0(0x45e)](),_0x562399=new _0x54d1da['RegularPolygon'](_0x26adf6+_0x36d396[_0x1182d0(0x20e)]['generateRandomId'](_0x42126b),{'pointsGroup':_0x33c899,'fill':_0x1a8da5||_0x54d1da[_0x1182d0(0x472)](_0x36d396[_0x1182d0(0x35e)][_0x1182d0(0x529)],0.2),'left':_0x59cb50,'top':_0x5e01ee,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1182d0(0x4ae)]['push'](_0x562399),this[_0x1182d0(0x297)][_0x1182d0(0x3c0)](_0x562399,_0x54d1da[_0x1182d0(0x366)]);}[_0x51d41b(0x4ca)](_0x15ab0a,_0x51b272,_0x208d9d,_0x53b606){const _0x23a432=_0x51d41b,_0x99fbc2=new _0x36d396['ColorKit'](_0x15ab0a)[_0x23a432(0x474)](0.2)[_0x23a432(0x45e)](),_0x4f76e6=new _0x54d1da['RegularPolygon'](_0x19a34b+_0x36d396[_0x23a432(0x20e)]['generateRandomId'](_0x42126b),{'pointsGroup':_0x51b272,'fill':_0x99fbc2||_0x54d1da[_0x23a432(0x472)](_0x36d396['COLORS'][_0x23a432(0x529)],0.2),'left':_0x208d9d,'top':_0x53b606,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x23a432(0x4ae)][_0x23a432(0x3cf)](_0x4f76e6),this[_0x23a432(0x297)][_0x23a432(0x3c0)](_0x4f76e6,_0x54d1da[_0x23a432(0x366)]);}[_0x51d41b(0x311)](_0x38bf42){const _0xd2c6e5=_0x38bf42[0x0],_0x300dab=_0xd2c6e5[0x0],_0x563bb5=_0xd2c6e5[0x2],{x:_0x572e60,y:_0x5bb5e7}=_0x300dab,{x:_0x485f24,y:_0x1b6309}=_0x563bb5;return{'left':_0x572e60,'top':_0x5bb5e7,'width':_0x485f24-_0x572e60,'height':_0x1b6309-_0x5bb5e7};}[_0x51d41b(0x3e5)](){const _0x2b86d2=_0x51d41b,{scaleX:_0x351d02,scaleY:_0x4211ed}=this[_0x2b86d2(0x297)][_0x2b86d2(0x329)]();return Math[_0x2b86d2(0x36a)](_0x351d02,_0x4211ed);}}var _0x558ec5=Object['defineProperty'],_0x113d79=Object[_0x51d41b(0x2b7)],_0x270c0d=(_0x403d33,_0x359217,_0x5d92b1,_0x3060ff)=>{const _0x541a7e=_0x51d41b;for(var _0x4a4764=_0x3060ff>0x1?void 0x0:_0x3060ff?_0x113d79(_0x359217,_0x5d92b1):_0x359217,_0x30e19e=_0x403d33[_0x541a7e(0x392)]-0x1,_0x2bbe0c;_0x30e19e>=0x0;_0x30e19e--)(_0x2bbe0c=_0x403d33[_0x30e19e])&&(_0x4a4764=(_0x3060ff?_0x2bbe0c(_0x359217,_0x5d92b1,_0x4a4764):_0x2bbe0c(_0x4a4764))||_0x4a4764);return _0x3060ff&&_0x4a4764&&_0x558ec5(_0x359217,_0x5d92b1,_0x4a4764),_0x4a4764;},_0x5d9a00=(_0xf67f59,_0x5051ec)=>(_0x37dc20,_0x413f23)=>_0x5051ec(_0x37dc20,_0x413f23,_0xf67f59);let _0x178c9a=class extends _0x36d396['RxDisposable']{constructor(_0x9a56b1,_0x155df6,_0x39782a,_0xf46ce7,_0x18d701){const _0x16dd8d=_0x51d41b;super(),_0x55fd67(this,_0x16dd8d(0x3d5),[]),_0x55fd67(this,_0x16dd8d(0x504),[]),(this[_0x16dd8d(0x4e4)]=_0x9a56b1,this[_0x16dd8d(0x4fc)]=_0x155df6,this['_collabCursorController']=_0x39782a,this[_0x16dd8d(0x561)]=_0xf46ce7,this[_0x16dd8d(0x2b9)]=_0x18d701,this[_0x16dd8d(0x571)]());}[_0x51d41b(0x571)](){const _0x5291b6=_0x51d41b,_0x583b38=this['_context'][_0x5291b6(0x19b)],_0x7f9965=this[_0x5291b6(0x4fc)];this[_0x5291b6(0x595)](_0x22cf47[_0x5291b6(0x548)]([this[_0x5291b6(0x1a3)][_0x5291b6(0x45d)](_0x583b38),this[_0x5291b6(0x2b9)]['currentTheme$']])[_0x5291b6(0x257)](_0x547088[_0x5291b6(0x565)](([_0x49134e,_0x4cb4f6])=>({'skeleton':_0x7f9965['getSkeleton'](),'cursors':[..._0x49134e['values']()][_0x5291b6(0x364)](_0x51c6d3=>({..._0x51c6d3,'color':_0x4cb4f6[_0x51c6d3['color']]}))})))[_0x5291b6(0x200)](_0x16e401=>{const _0x3993d9=_0x5291b6;if(this[_0x3993d9(0x220)](),_0x16e401){const {skeleton:_0x372c2d,cursors:_0x1a241d}=_0x16e401;this[_0x3993d9(0x555)](_0x372c2d,_0x1a241d);}})),this[_0x5291b6(0x422)](),this['_initCommandExecutedListener']();}['_updateCollabCursors'](_0x36c6f9,_0x25b294){const _0x4a8e9c=_0x51d41b,{scene:_0x565277,mainComponent:_0x7395ac}=this[_0x4a8e9c(0x4e4)],_0x51f0b3=_0x25b294['map'](_0x2ac6a1=>new _0x4cd564(_0x2ac6a1,_0x565277,_0x36c6f9,_0x7395ac));this[_0x4a8e9c(0x3d5)]=_0x51f0b3,this[_0x4a8e9c(0x504)]=_0x25b294;}['_refreshCollabCursors'](){const _0x50fd96=_0x51d41b;this[_0x50fd96(0x220)]();const {scene:_0x268bca,mainComponent:_0xc96ab5}=this[_0x50fd96(0x4e4)],_0x55c0b7=this['_docSkeletonManagerService'][_0x50fd96(0x3bb)](),_0x3f15ad=this['_cursors'][_0x50fd96(0x565)](_0x153707=>new _0x4cd564(_0x153707,_0x268bca,_0x55c0b7,_0xc96ab5));this['_cursorShapes']=_0x3f15ad;}['_removeCollabCursors'](){const _0x2c1936=_0x51d41b;this[_0x2c1936(0x3d5)][_0x2c1936(0x1a9)](_0x17feb3=>_0x17feb3['dispose']()),this[_0x2c1936(0x3d5)]=[];}[_0x51d41b(0x3bf)](){const _0x1cbf72=_0x51d41b,_0x3d388=[_0x569fac['SetDocZoomRatioOperation']['id']];this[_0x1cbf72(0x595)](this['_commandService'][_0x1cbf72(0x1c8)](_0xc2fa5b=>{const _0x47d014=_0x1cbf72;_0x3d388[_0x47d014(0x55c)](_0xc2fa5b['id'])&&_0xc2fa5b['params']['unitId']===this[_0x47d014(0x4e4)][_0x47d014(0x19b)]&&this['_refreshCollabCursors']();}));}['_initResize'](){const _0x29ddd5=_0x51d41b;this[_0x29ddd5(0x595)](_0x36d396[_0x29ddd5(0x51a)](this[_0x29ddd5(0x4e4)][_0x29ddd5(0x48c)][_0x29ddd5(0x464)])[_0x29ddd5(0x257)](_0x547088[_0x29ddd5(0x280)](_0x418c71=>_0x418c71[_0x29ddd5(0x2cb)]===_0x54d1da[_0x29ddd5(0x2db)][_0x29ddd5(0x363)]),_0x547088[_0x29ddd5(0x41b)](0x10))[_0x29ddd5(0x200)](()=>{const _0x571287=_0x29ddd5;this[_0x571287(0x242)]();}));}};_0x178c9a=_0x270c0d([_0x36d396[_0x51d41b(0x547)](_0x36d396[_0x51d41b(0x520)]['Steady'],_0x178c9a),_0x5d9a00(0x1,_0x36d396['Inject'](_0x569fac[_0x51d41b(0x29c)])),_0x5d9a00(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x566b79)),_0x5d9a00(0x3,_0x36d396[_0x51d41b(0x1d5)]),_0x5d9a00(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396['ThemeService']))],_0x178c9a);var _0x181296=Object[_0x51d41b(0x215)],_0xa34052=Object[_0x51d41b(0x2b7)],_0x49b301=(_0x5b4418,_0x2b24b0,_0x50bb37,_0xf230b4)=>{for(var _0x504c82=_0xf230b4>0x1?void 0x0:_0xf230b4?_0xa34052(_0x2b24b0,_0x50bb37):_0x2b24b0,_0x39d7d2=_0x5b4418['length']-0x1,_0x31870f;_0x39d7d2>=0x0;_0x39d7d2--)(_0x31870f=_0x5b4418[_0x39d7d2])&&(_0x504c82=(_0xf230b4?_0x31870f(_0x2b24b0,_0x50bb37,_0x504c82):_0x31870f(_0x504c82))||_0x504c82);return _0xf230b4&&_0x504c82&&_0x181296(_0x2b24b0,_0x50bb37,_0x504c82),_0x504c82;},_0x708478=(_0x4e3f5a,_0x3a6db3)=>(_0x9051b0,_0x39de9b)=>_0x3a6db3(_0x9051b0,_0x39de9b,_0x4e3f5a);let _0x29ed70=class{constructor(_0x266958,_0x71b5d9,_0x843847){const _0x3b8c8d=_0x51d41b;this[_0x3b8c8d(0x448)]=_0x266958,this['_httpService']=_0x71b5d9,this[_0x3b8c8d(0x1dd)]=_0x843847,this[_0x3b8c8d(0x46c)]();}[_0x51d41b(0x46c)](){const _0x2cceb5=_0x51d41b;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x548d1c,_0x284e96)=>_0x284e96(_0x548d1c)['pipe'](_0x22cf47[_0x2cceb5(0x4c9)](async _0x5b43cf=>{const _0x4c06f7=_0x2cceb5,_0x47db7e=_0x5b43cf;if(_0x47db7e[_0x4c06f7(0x199)]===0x191&&window['confirm'](this[_0x4c06f7(0x1dd)]['t'](_0x4c06f7(0x25f)))){const _0xcc6299=window[_0x4c06f7(0x303)](window[_0x4c06f7(0x57f)][_0x4c06f7(0x23a)]);window[_0x4c06f7(0x57f)][_0x4c06f7(0x23a)]=this['_getLoginPath']()+_0x4c06f7(0x502)+_0xcc6299;}return _0x47db7e;}))});}[_0x51d41b(0x204)](){const _0x4f10bd=_0x51d41b;var _0x38846f;return(_0x38846f=this[_0x4f10bd(0x448)][_0x4f10bd(0x1a6)](_0x4c6be5))!=null?_0x38846f:_0x11abd1;}};_0x29ed70=_0x49b301([_0x708478(0x0,_0x36d396['IConfigService']),_0x708478(0x1,_0x36d396['Inject'](_0x3d1d50[_0x51d41b(0x2e6)])),_0x708478(0x2,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x22d)]))],_0x29ed70);var _0x38479a=Object[_0x51d41b(0x215)],_0x400f51=Object[_0x51d41b(0x2b7)],_0x2aa5d4=(_0x47f04c,_0x2f23bd,_0x2fb28e,_0x1f1b05)=>{for(var _0x16eb8c=_0x1f1b05>0x1?void 0x0:_0x1f1b05?_0x400f51(_0x2f23bd,_0x2fb28e):_0x2f23bd,_0x50feee=_0x47f04c['length']-0x1,_0x251c56;_0x50feee>=0x0;_0x50feee--)(_0x251c56=_0x47f04c[_0x50feee])&&(_0x16eb8c=(_0x1f1b05?_0x251c56(_0x2f23bd,_0x2fb28e,_0x16eb8c):_0x251c56(_0x16eb8c))||_0x16eb8c);return _0x1f1b05&&_0x16eb8c&&_0x38479a(_0x2f23bd,_0x2fb28e,_0x16eb8c),_0x16eb8c;},_0x4086a7=(_0x443e92,_0x8f436e)=>(_0x2f8d53,_0x25d63d)=>_0x8f436e(_0x2f8d53,_0x25d63d,_0x443e92);const _0x20cd58=_0x51d41b(0x33b),_0x1ea89d=_0x51d41b(0x400);_0x59ce0d[_0x51d41b(0x57c)]=class extends _0x36d396[_0x51d41b(0x4f0)]{constructor(_0x41a92b,_0x422832){const _0x2f82bf=_0x51d41b;super(),this[_0x2f82bf(0x579)]=_0x41a92b,this[_0x2f82bf(0x448)]=_0x422832,this['_initMergeInterceptor']();}[_0x51d41b(0x3fe)](){const _0x48cffb=_0x51d41b,_0x298ab5=this;this[_0x48cffb(0x595)](this['_HTTPService'][_0x48cffb(0x41e)]({'priority':0x3e7,'interceptor':_0x3d1d50[_0x48cffb(0x195)]({'isMatch'(_0x516851){const _0x3d6cdf=_0x48cffb;var _0x1d47db;if(_0x516851[_0x3d6cdf(0x244)]===_0x3d6cdf(0x352)&&((_0x1d47db=_0x516851[_0x3d6cdf(0x51b)])!=null&&_0x1d47db[_0x3d6cdf(0x283)])){const {objectID:_0x29f6aa,objectType:_0x36e49f}=_0x516851[_0x3d6cdf(0x51b)][_0x3d6cdf(0x283)]||{};if(!_0x29f6aa||_0x36e49f===void 0x0)return!0x1;const _0x1e6e39=_0x298ab5[_0x3d6cdf(0x214)]()+'/'+_0x36e49f+_0x3d6cdf(0x1ef)+_0x29f6aa+_0x3d6cdf(0x3ac);if(_0x516851['url']===_0x1e6e39)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x5ee564){const _0xa52e5b=_0x48cffb;var _0x57623f;return(_0x57623f=_0x5ee564[_0xa52e5b(0x51b)])==null?void 0x0:_0x57623f['body'];},'mergeParamsToRequest'(_0x1de22e,_0x4227b8){const _0xec40ba=_0x48cffb,_0x67d7e4=_0x298ab5[_0xec40ba(0x214)]()+_0xec40ba(0x34d),_0x3bda89=_0x1de22e['reduce']((_0x283e19,_0x517b47)=>{const _0x4efc6f=_0xec40ba,{unitID:_0x23e7b1,objectID:_0xf3158a,objectType:_0x1e6889,actions:_0x12ab4d}=_0x517b47;return _0x283e19[_0x23e7b1]||(_0x283e19[_0x23e7b1]={}),_0x283e19[_0x23e7b1][_0xf3158a]||(_0x283e19[_0x23e7b1][_0xf3158a]={'objectID':_0xf3158a,'objectType':_0x1e6889,'actions':[]}),_0x283e19[_0x23e7b1][_0xf3158a][_0x4efc6f(0x583)][_0x4efc6f(0x3cf)](..._0x12ab4d),_0x283e19;},{}),_0x29a2b9=[];for(const _0x2918c2 in _0x3bda89)for(const _0x3a3dc6 in _0x3bda89[_0x2918c2]){const {actions:_0x186e6a,objectType:_0x36ed4b}=_0x3bda89[_0x2918c2][_0x3a3dc6],_0x228a88=[...new Set(_0x186e6a)];_0x29a2b9[_0xec40ba(0x3cf)]({'unitID':_0x2918c2,'objectID':_0x3a3dc6,'objectType':_0x36ed4b,'actions':_0x228a88});}return new _0x3d1d50[(_0xec40ba(0x259))](_0xec40ba(0x352),_0x67d7e4,{'headers':_0x4227b8[_0xec40ba(0x37f)],'withCredentials':_0x4227b8[_0xec40ba(0x284)],'responseType':_0x4227b8[_0xec40ba(0x3fd)],'body':{'requests':_0x29a2b9}});}},{'distributeResult'(_0x4ac239,_0xa4b15e){const _0x22566c=_0x48cffb,{objectActions:_0x4760bf}=_0x4ac239;return _0xa4b15e[_0x22566c(0x565)](_0x58a03c=>{const _0x1b0de4=_0x22566c,{unitID:_0x137026,objectID:_0x43ee2e,actions:_0x3af2de}=_0x58a03c,_0x51ba6d=_0x4760bf[_0x1b0de4(0x3e3)](_0xe149b9=>_0xe149b9['unitID']===_0x137026&&_0xe149b9[_0x1b0de4(0x1e9)]===_0x43ee2e),_0x9f672b=_0x3af2de[_0x1b0de4(0x565)](_0x2fa7bb=>_0x51ba6d==null?void 0x0:_0x51ba6d['actions'][_0x1b0de4(0x3e3)](_0x403daa=>_0x403daa[_0x1b0de4(0x2d7)]===_0x2fa7bb))['filter'](_0x2c8884=>!!_0x2c8884);return{'config':_0x58a03c,'result':{'actions':_0x9f672b,'error':_0x4ac239['error']}};});}})}));}[_0x51d41b(0x214)](){const _0x410dd5=_0x51d41b;var _0x57b867;return(_0x57b867=this['_configService'][_0x410dd5(0x1a6)](_0x20cd58))!=null?_0x57b867:_0x1ea89d;}async['create'](_0x3f628f){const _0x56fe18=_0x51d41b,_0x30554e=this[_0x56fe18(0x214)]()+'/'+_0x3f628f['objectType']+_0x56fe18(0x3d2);return(await this[_0x56fe18(0x579)][_0x56fe18(0x51e)](_0x30554e,{'body':_0x3f628f}))[_0x56fe18(0x283)][_0x56fe18(0x1e9)]||'';}async[_0x51d41b(0x49c)](_0x18d67b){const _0x20eb50=_0x51d41b,_0x1ea109=this['_getAPIPrefixPath']()+_0x20eb50(0x35a);return(await this['_HTTPService'][_0x20eb50(0x51e)](_0x1ea109,{'body':_0x18d67b}))[_0x20eb50(0x283)][_0x20eb50(0x43a)];}async['update'](_0x2d9755){const _0x12128a=_0x51d41b,_0x196b01=this[_0x12128a(0x214)]()+'/'+_0x2d9755[_0x12128a(0x4ba)]+'/object/'+_0x2d9755[_0x12128a(0x1e9)];await this[_0x12128a(0x579)][_0x12128a(0x21d)](_0x196b01,{'body':_0x2d9755});}async[_0x51d41b(0x355)](_0x13343b){const _0x24905e=_0x51d41b,_0x230dc3=this[_0x24905e(0x214)]()+'/'+_0x13343b[_0x24905e(0x4ba)]+_0x24905e(0x1ef)+_0x13343b[_0x24905e(0x1e9)]+'/allowed';return(await this['_HTTPService'][_0x24905e(0x51e)](_0x230dc3,{'body':_0x13343b}))[_0x24905e(0x283)]['actions'];}async[_0x51d41b(0x403)](_0x522b56){const _0x3b4f2c=_0x51d41b,_0x221e38=this[_0x3b4f2c(0x214)]()+'/-/object/-/batch_allowed';return(await this[_0x3b4f2c(0x579)][_0x3b4f2c(0x51e)](_0x221e38,{'body':{'requests':_0x522b56}}))[_0x3b4f2c(0x283)][_0x3b4f2c(0x198)];}async[_0x51d41b(0x4b7)](_0x17d535){const _0x4c1864=_0x51d41b,_0x2a0163=this['_getAPIPrefixPath']()+'/'+_0x17d535[_0x4c1864(0x4ba)]+'/role',_0xe2ee34=await this[_0x4c1864(0x579)][_0x4c1864(0x51e)](_0x2a0163,{'body':_0x17d535});return{'roles':_0xe2ee34[_0x4c1864(0x283)][_0x4c1864(0x2a9)],'actions':_0xe2ee34['body'][_0x4c1864(0x583)]};}async[_0x51d41b(0x197)](_0x3547d0){const _0x22f82c=_0x51d41b,_0x54cdd6=this[_0x22f82c(0x214)]()+_0x22f82c(0x4d8);await this['_HTTPService'][_0x22f82c(0x560)](_0x54cdd6,{'params':{'collaboratorID':_0x3547d0[_0x22f82c(0x247)],'objectID':_0x3547d0[_0x22f82c(0x1e9)],'unitID':_0x3547d0[_0x22f82c(0x35f)]}});}async[_0x51d41b(0x596)](_0x1dc70c){const _0x3bf1b6=_0x51d41b,_0x4696a2=this[_0x3bf1b6(0x214)]()+_0x3bf1b6(0x4d8);await this['_HTTPService']['patch'](_0x4696a2,{'body':_0x1dc70c});}async[_0x51d41b(0x385)](_0x23fd94){const _0x4fdd55=_0x51d41b,_0x281d4e=this['_getAPIPrefixPath']()+_0x4fdd55(0x4d8);await this['_HTTPService'][_0x4fdd55(0x51e)](_0x281d4e,{'body':_0x23fd94});}async[_0x51d41b(0x3fa)](_0x3f3b7d){const _0x2381d2=_0x51d41b,_0x22f729=this['_getAPIPrefixPath']()+_0x2381d2(0x4d8);return(await this['_HTTPService'][_0x2381d2(0x58c)](_0x22f729,{'params':{'objectID':_0x3f3b7d[_0x2381d2(0x1e9)],'unitID':_0x3f3b7d[_0x2381d2(0x35f)]}}))['body'][_0x2381d2(0x55e)];}async[_0x51d41b(0x3e7)](_0x56c7bb){const _0x59967d=_0x51d41b,_0x5db76e=this['_getAPIPrefixPath']()+_0x59967d(0x4d8);await this[_0x59967d(0x579)]['put'](_0x5db76e,{'body':_0x56c7bb});}},_0x59ce0d[_0x51d41b(0x57c)]=_0x2aa5d4([_0x4086a7(0x0,_0x36d396['Inject'](_0x3d1d50[_0x51d41b(0x2e6)])),_0x4086a7(0x1,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x511)]))],_0x59ce0d[_0x51d41b(0x57c)]);var _0x41278a=Object['defineProperty'],_0x102b7e=Object['getOwnPropertyDescriptor'],_0x1acab9=(_0x5bab2c,_0x5d783f,_0x4e4871,_0x56bcbe)=>{const _0x449cc7=_0x51d41b;for(var _0x1b9400=_0x56bcbe>0x1?void 0x0:_0x56bcbe?_0x102b7e(_0x5d783f,_0x4e4871):_0x5d783f,_0x2080b4=_0x5bab2c[_0x449cc7(0x392)]-0x1,_0x347440;_0x2080b4>=0x0;_0x2080b4--)(_0x347440=_0x5bab2c[_0x2080b4])&&(_0x1b9400=(_0x56bcbe?_0x347440(_0x5d783f,_0x4e4871,_0x1b9400):_0x347440(_0x1b9400))||_0x1b9400);return _0x56bcbe&&_0x1b9400&&_0x41278a(_0x5d783f,_0x4e4871,_0x1b9400),_0x1b9400;},_0x41cda8=(_0x49b6ba,_0x2cafa8)=>(_0x3bb95d,_0x9f66c6)=>_0x2cafa8(_0x3bb95d,_0x9f66c6,_0x49b6ba);const _0x13975c=[_0x51d41b(0x418),_0x51d41b(0x221),_0x51d41b(0x1d2),_0x51d41b(0x54c),_0x51d41b(0x55b)],_0x251ee4=0x5*0x400*0x400,_0x4c3ca1='EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY',_0x2d2b1e=_0x51d41b(0x3a4),_0x3cfbeb=_0x51d41b(0x43d),_0x4ce5c4=_0x51d41b(0x337);_0x59ce0d[_0x51d41b(0x288)]=class{constructor(_0x35faa5,_0x30795b,_0xbbe3d8){const _0x524d0e=_0x51d41b;_0x55fd67(this,'_waitCount',0x0),_0x55fd67(this,_0x524d0e(0x57d),new _0x22cf47['Subject']()),_0x55fd67(this,_0x524d0e(0x54f),this['_change$']),_0x55fd67(this,_0x524d0e(0x45a),new Map()),(this[_0x524d0e(0x463)]=_0x35faa5,this[_0x524d0e(0x448)]=_0x30795b,this[_0x524d0e(0x273)]=_0xbbe3d8);}[_0x51d41b(0x3aa)](_0x3cf089){const _0x33bbae=_0x51d41b;this[_0x33bbae(0x370)]=_0x3cf089,this[_0x33bbae(0x57d)][_0x33bbae(0x1d6)](_0x3cf089);}[_0x51d41b(0x1fe)](_0x1fad59,_0x407b1b){const _0x64a7f3=_0x51d41b;if(_0x407b1b===_0x17128d[_0x64a7f3(0x450)][_0x64a7f3(0x51d)]){const _0xd92edb=new Image();return _0xd92edb['src']=_0x1fad59,_0xd92edb;}return this[_0x64a7f3(0x45a)][_0x64a7f3(0x58c)](_0x1fad59);}[_0x51d41b(0x453)](_0x3f8f21,_0x3ec8bd,_0x5f4a4d){const _0x127a42=_0x51d41b;_0x3ec8bd===_0x17128d['ImageSourceType'][_0x127a42(0x51d)]||_0x5f4a4d==null||this['_imageSourceCache'][_0x127a42(0x27f)](_0x3f8f21,_0x5f4a4d);}async['getImage'](_0x20ce13){const _0x128e35=_0x51d41b;try{const _0x5167bf=this[_0x128e35(0x343)](this[_0x128e35(0x578)](),''+_0x20ce13),_0x4a93dd=(await this[_0x128e35(0x463)][_0x128e35(0x58c)](_0x5167bf))[_0x128e35(0x283)];return _0x4a93dd[_0x128e35(0x405)]&&_0x4a93dd[_0x128e35(0x405)][_0x128e35(0x30d)]===_0x5d72a7['OK']?Promise[_0x128e35(0x4aa)](_0x4a93dd[_0x128e35(0x28c)]):Promise['reject'](_0x4a93dd[_0x128e35(0x405)]);}catch(_0x511ae9){return Promise[_0x128e35(0x498)](_0x511ae9);}}async[_0x51d41b(0x32b)](_0x2c4d7e){const _0x54961f=_0x51d41b;let _0xdf9392='';if(!_0x13975c[_0x54961f(0x55c)](_0x2c4d7e[_0x54961f(0x2cb)]))return this[_0x54961f(0x421)](),Promise['reject'](new Error(_0x17128d[_0x54961f(0x4e9)][_0x54961f(0x4e5)]));if(_0x2c4d7e[_0x54961f(0x32c)]>_0x251ee4)return this[_0x54961f(0x421)](),Promise['reject'](new Error(_0x17128d['ImageUploadStatusType'][_0x54961f(0x3b2)]));try{const _0xcdfc2a=new FormData();_0xcdfc2a[_0x54961f(0x217)](_0x54961f(0x397),_0x2c4d7e);const _0x4d521d=this[_0x54961f(0x273)][_0x54961f(0x3ce)](),_0x1886c5=_0x4d521d==null?void 0x0:_0x4d521d[_0x54961f(0x4ce)]();if(!_0x1886c5)throw new Error(_0x54961f(0x521));const _0xea1941=this[_0x54961f(0x531)]()+_0x54961f(0x2e4)+_0x2c4d7e[_0x54961f(0x32c)][_0x54961f(0x240)]()+_0x54961f(0x59f)+_0x66022a[_0x54961f(0x381)]+'&assign='+encodeURIComponent(_0x1886c5),_0x3cd64d=await(await fetch(_0xea1941,{'method':_0x54961f(0x352),'body':_0xcdfc2a}))[_0x54961f(0x536)]();if(typeof _0x3cd64d[_0x54961f(0x1ab)]!='string')return this['_decreaseWaiting'](),Promise[_0x54961f(0x498)](new Error(_0x17128d[_0x54961f(0x4e9)][_0x54961f(0x4e3)]));_0xdf9392=_0x3cd64d[_0x54961f(0x1ab)];}catch{return this[_0x54961f(0x421)](),Promise[_0x54961f(0x498)](new Error(_0x17128d[_0x54961f(0x4e9)][_0x54961f(0x4e3)]));}return new Promise((_0x551895,_0x11eb71)=>{const _0x37c95d=_0x54961f,_0x2baa6f=new FileReader();_0x2baa6f[_0x37c95d(0x333)](_0x2c4d7e),_0x2baa6f[_0x37c95d(0x427)]=_0x19a97e=>{const _0x2c5322=_0x37c95d;var _0x308ee4;const _0x5aaa4b=(_0x308ee4=_0x19a97e[_0x2c5322(0x31e)])==null?void 0x0:_0x308ee4['result'];if(_0x5aaa4b==null){this['_decreaseWaiting'](),_0x11eb71(new Error(_0x17128d[_0x2c5322(0x4e9)][_0x2c5322(0x4e3)]));return;}const _0x21785c=_0x36d396[_0x2c5322(0x20e)][_0x2c5322(0x1e3)](0x6);_0x551895({'imageId':_0x21785c,'imageSourceType':_0x17128d['ImageSourceType']['UUID'],'source':_0xdf9392,'base64Cache':_0x5aaa4b,'status':_0x17128d['ImageUploadStatusType'][_0x2c5322(0x32e)]}),this[_0x2c5322(0x421)]();};});}[_0x51d41b(0x531)](){const _0x60c5fd=_0x51d41b;var _0x3c5fa3;return(_0x3c5fa3=this[_0x60c5fd(0x448)][_0x60c5fd(0x1a6)](_0x4c3ca1))!=null?_0x3c5fa3:_0x2d2b1e;}[_0x51d41b(0x578)](){const _0x12a999=_0x51d41b;var _0x43725c;return(_0x43725c=this[_0x12a999(0x448)][_0x12a999(0x1a6)](_0x3cfbeb))!=null?_0x43725c:_0x4ce5c4;}[_0x51d41b(0x343)](_0xbbe613,_0x5ac83e){const _0x24a9f5=_0x51d41b;return _0xbbe613[_0x24a9f5(0x591)](_0x24a9f5(0x2c3),_0x5ac83e);}['_decreaseWaiting'](){const _0x1f26a1=_0x51d41b;this['_waitCount']-=0x1,this['_change$'][_0x1f26a1(0x1d6)](this[_0x1f26a1(0x370)]);}},_0x59ce0d['ImageIoService']=_0x1acab9([_0x41cda8(0x0,_0x36d396['Inject'](_0x3d1d50[_0x51d41b(0x2e6)])),_0x41cda8(0x1,_0x36d396['IConfigService']),_0x41cda8(0x2,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x2c5)]))],_0x59ce0d['ImageIoService']);var _0x2a8438=Object[_0x51d41b(0x215)],_0x4f4757=Object[_0x51d41b(0x2b7)],_0x2b61d8=(_0x5dc82a,_0x3cc148,_0x5a3a1d,_0x170372)=>{const _0x43911d=_0x51d41b;for(var _0x3181ec=_0x170372>0x1?void 0x0:_0x170372?_0x4f4757(_0x3cc148,_0x5a3a1d):_0x3cc148,_0x16e6e5=_0x5dc82a[_0x43911d(0x392)]-0x1,_0x16cf01;_0x16e6e5>=0x0;_0x16e6e5--)(_0x16cf01=_0x5dc82a[_0x16e6e5])&&(_0x3181ec=(_0x170372?_0x16cf01(_0x3cc148,_0x5a3a1d,_0x3181ec):_0x16cf01(_0x3181ec))||_0x3181ec);return _0x170372&&_0x3181ec&&_0x2a8438(_0x3cc148,_0x5a3a1d,_0x3181ec),_0x3181ec;},_0x4e9a10=(_0x4f7202,_0x5a335a)=>(_0x5a5518,_0x5bb584)=>_0x5a335a(_0x5a5518,_0x5bb584,_0x4f7202);let _0x4dc48c=class extends _0x36d396[_0x51d41b(0x480)]{constructor(_0x5d2df5,_0x4408f2,_0x2c9ffb,_0x144225,_0x1d9c59){const _0x4deff0=_0x51d41b;super(),this[_0x4deff0(0x2b0)]=_0x5d2df5,this[_0x4deff0(0x273)]=_0x4408f2,this[_0x4deff0(0x350)]=_0x2c9ffb,this[_0x4deff0(0x3f1)]=_0x144225,this['_localeService']=_0x1d9c59,this[_0x4deff0(0x383)](),this[_0x4deff0(0x53e)]();}[_0x51d41b(0x53e)](){const _0x430307=_0x51d41b,_0x5f2632=async _0x14bf38=>{const _0xd8cb8f=_0x4682;(await this[_0xd8cb8f(0x3f1)][_0xd8cb8f(0x208)](_0x14bf38))[_0xd8cb8f(0x1b6)][_0xd8cb8f(0x257)](_0x547088[_0xd8cb8f(0x280)](_0x5a3846=>_0x5a3846['eventID']===_0x346629[_0xd8cb8f(0x2fa)][_0xd8cb8f(0x408)]),_0x547088[_0xd8cb8f(0x5a4)](this['dispose$']))['subscribe'](_0x16614b=>{const _0x6e0174=_0xd8cb8f,_0xc91303=_0x16614b,{reason:_0x360173}=_0xc91303[_0x6e0174(0x34f)];this['_injector'][_0x6e0174(0x58c)](_0x455671[_0x6e0174(0x1c1)])['show']({'type':_0x53e1d0['MessageType'][_0x6e0174(0x372)],'content':this['_localeService']['t'](_0x6e0174(0x485))+'('+_0x360173+')'}),this['_permissionService']['updatePermissionPoint'](new _0xdbe912[(_0x6e0174(0x47e))](_0x14bf38)['id'],!0x1),this[_0x6e0174(0x3f1)][_0x6e0174(0x1e8)](_0x14bf38);});};_0x22cf47[_0x430307(0x4ee)](this['_univerInstanceService'][_0x430307(0x3b6)](_0x36d396[_0x430307(0x26a)][_0x430307(0x1d8)]),this[_0x430307(0x273)]['getTypeOfUnitAdded$'](_0x36d396['UniverInstanceType'][_0x430307(0x43c)]))[_0x430307(0x257)](_0x547088['map'](_0x7c1e52=>_0x7c1e52[_0x430307(0x4ce)]()),_0x547088[_0x430307(0x280)](_0x302b01=>!_0x36d396['isInternalEditorID'](_0x302b01)),_0x547088[_0x430307(0x5a4)](this[_0x430307(0x1b2)]))['subscribe'](_0x3bfd98=>{_0x5f2632(_0x3bfd98);});}['_initUnitPermissionChange'](){const _0x59dcfe=_0x51d41b,_0x513a60=async _0x4329ec=>{const _0x18995e=_0x4682;(await this[_0x18995e(0x3f1)]['requireSession'](_0x4329ec))[_0x18995e(0x1b6)][_0x18995e(0x257)](_0x547088[_0x18995e(0x280)](_0x3dc85b=>_0x3dc85b[_0x18995e(0x1c6)]===_0x346629[_0x18995e(0x2fa)]['UPDATE_PERMISSION_OBJ']),_0x547088[_0x18995e(0x5a4)](this[_0x18995e(0x1b2)]))[_0x18995e(0x200)](_0x52e92c=>{const _0x110d30=_0x18995e,_0x18504f=_0x52e92c,{objectId:_0x31a30c}=_0x18504f[_0x110d30(0x34f)],_0x287890=this[_0x110d30(0x2b0)][_0x110d30(0x58c)](_0x343608[_0x110d30(0x28d)]);_0x31a30c===_0x4329ec?_0x287890['initWorkbookPermissionChange'](_0x4329ec):_0x287890[_0x110d30(0x54d)](_0x4329ec,_0x31a30c);});};_0x22cf47[_0x59dcfe(0x4ee)](this['_univerInstanceService'][_0x59dcfe(0x3b6)](_0x36d396[_0x59dcfe(0x26a)][_0x59dcfe(0x1d8)]),this[_0x59dcfe(0x273)][_0x59dcfe(0x3b6)](_0x36d396[_0x59dcfe(0x26a)][_0x59dcfe(0x43c)]))[_0x59dcfe(0x257)](_0x547088['map'](_0x25d603=>_0x25d603[_0x59dcfe(0x4ce)]()),_0x547088[_0x59dcfe(0x280)](_0x298c64=>!_0x36d396['isInternalEditorID'](_0x298c64)),_0x547088[_0x59dcfe(0x5a4)](this[_0x59dcfe(0x1b2)]))['subscribe'](_0x5d5479=>{_0x513a60(_0x5d5479);});}};_0x4dc48c=_0x2b61d8([_0x36d396['OnLifecycle'](_0x36d396['LifecycleStages'][_0x51d41b(0x4e8)],_0x4dc48c),_0x4e9a10(0x0,_0x36d396['Inject'](_0x36d396[_0x51d41b(0x268)])),_0x4e9a10(0x1,_0x36d396[_0x51d41b(0x2c5)]),_0x4e9a10(0x2,_0x36d396[_0x51d41b(0x326)]),_0x4e9a10(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x59ce0d[_0x51d41b(0x285)])),_0x4e9a10(0x4,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x22d)]))],_0x4dc48c);const _0x2a6e9b=_0x51d41b(0x48a);var _0x113be1=Object[_0x51d41b(0x215)],_0x345e35=Object[_0x51d41b(0x2b7)],_0x309181=(_0x573686,_0x30a58e,_0x43e2a5)=>_0x30a58e in _0x573686?_0x113be1(_0x573686,_0x30a58e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43e2a5}):_0x573686[_0x30a58e]=_0x43e2a5,_0xaa5a71=(_0x252b5b,_0x288e5d,_0x471aff,_0x3aa270)=>{const _0x4741cd=_0x51d41b;for(var _0x1feca5=_0x3aa270>0x1?void 0x0:_0x3aa270?_0x345e35(_0x288e5d,_0x471aff):_0x288e5d,_0x46aac4=_0x252b5b[_0x4741cd(0x392)]-0x1,_0x5ea5a9;_0x46aac4>=0x0;_0x46aac4--)(_0x5ea5a9=_0x252b5b[_0x46aac4])&&(_0x1feca5=(_0x3aa270?_0x5ea5a9(_0x288e5d,_0x471aff,_0x1feca5):_0x5ea5a9(_0x1feca5))||_0x1feca5);return _0x3aa270&&_0x1feca5&&_0x113be1(_0x288e5d,_0x471aff,_0x1feca5),_0x1feca5;},_0x467f00=(_0xf4c89,_0x48cf81)=>(_0xdff8d7,_0x24ed48)=>_0x48cf81(_0xdff8d7,_0x24ed48,_0xf4c89),_0x4252ae=(_0x389a7e,_0x6b9a26,_0x359e0e)=>_0x309181(_0x389a7e,_0x6b9a26+'',_0x359e0e);const _0x6e92ea=_0x51d41b(0x1b7);_0x59ce0d[_0x51d41b(0x3eb)]=class extends _0x36d396[_0x51d41b(0x300)]{constructor(_0x542f33={},_0x376fba,_0x3837bc,_0x15949f,_0x5b8f36){const _0x5d69d3=_0x51d41b;super(),this[_0x5d69d3(0x322)]=_0x542f33,this[_0x5d69d3(0x545)]=_0x376fba,this['_renderManagerService']=_0x3837bc,this[_0x5d69d3(0x2b0)]=_0x15949f,this[_0x5d69d3(0x448)]=_0x5b8f36;const {..._0x940cd4}=this[_0x5d69d3(0x322)];this[_0x5d69d3(0x448)]['setConfig'](_0x2a6e9b,_0x940cd4);}[_0x51d41b(0x2ac)](){const _0x1a3e59=_0x51d41b;this[_0x1a3e59(0x477)]();}['onRendered'](){const _0x44083f=_0x51d41b;this[_0x44083f(0x470)]();}[_0x51d41b(0x477)](){const _0x3264b3=_0x51d41b;var _0x18d4b9,_0x4a96c9,_0x372b2b,_0x4b4e8b;this['_injector']['has'](_0x36d396[_0x3264b3(0x586)])&&this[_0x3264b3(0x545)][_0x3264b3(0x405)]('[UniverCollaborationClientPlugin]',_0x3264b3(0x3ef));let _0x25d390=[[_0x36d396[_0x3264b3(0x586)],{'useClass':_0xfd6590}],[_0x59ce0d[_0x3264b3(0x285)]],[_0x2f29bf],[_0x3d1d50['HTTPService']],[_0x56d70c,{'useClass':_0x161740}],[_0x2e1387],[_0x59ce0d['LocalCacheService']],[_0x3d1d50[_0x3264b3(0x4fd)]],[_0x57d656],[_0xe78d9a],[_0x3106a2],[_0xb807fa],[_0x29ed70],[_0x186531],[_0x4dc48c],[_0xe35b0b,{'useClass':(_0x4a96c9=(_0x18d4b9=this[_0x3264b3(0x322)])==null?void 0x0:_0x18d4b9[_0x3264b3(0x49b)])!=null?_0x4a96c9:_0x59ce0d[_0x3264b3(0x551)]}],[_0x3d1d50[_0x3264b3(0x1f6)],{'useClass':_0x3d1d50['XHRHTTPImplementation']}],[_0x346629[_0x3264b3(0x2d1)],{'useClass':_0x59ce0d[_0x3264b3(0x53d)]}],[_0x36d396[_0x3264b3(0x525)],{'useClass':_0x59ce0d[_0x3264b3(0x57c)]}],[_0x17128d[_0x3264b3(0x25d)],{'useClass':_0x59ce0d['ImageIoService']}],[_0x59ce0d[_0x3264b3(0x4e2)]],[_0x59ce0d[_0x3264b3(0x4a6)]],[_0x59ce0d[_0x3264b3(0x452)]],[_0x3b02a7],[_0x566b79]];(_0x372b2b=this[_0x3264b3(0x322)])!=null&&_0x372b2b['enableSingleActiveInstanceLock']&&_0x25d390[_0x3264b3(0x3cf)]([_0x33f55f,{'useClass':_0x5cacbb}]),_0x25d390=_0x36d396[_0x3264b3(0x570)](_0x25d390,(_0x4b4e8b=this['_config'])==null?void 0x0:_0x4b4e8b[_0x3264b3(0x3db)]),_0x25d390[_0x3264b3(0x1a9)](_0x3d53f5=>this[_0x3264b3(0x2b0)][_0x3264b3(0x5a2)](_0x3d53f5)),this[_0x3264b3(0x4ab)]();}[_0x51d41b(0x470)](){const _0x14037f=_0x51d41b;this[_0x14037f(0x595)](this[_0x14037f(0x4dc)][_0x14037f(0x48b)](_0x36d396[_0x14037f(0x26a)][_0x14037f(0x43c)],[_0x178c9a])),this['disposeWithMe'](this[_0x14037f(0x4dc)][_0x14037f(0x48b)](_0x36d396[_0x14037f(0x26a)]['UNIVER_SHEET'],[_0x47d6dc]));}[_0x51d41b(0x4ab)](){const _0xcf4eb=_0x51d41b;var _0x2265a2,_0x4c528e;this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58c)](_0x3d1d50[_0xcf4eb(0x2e6)])[_0xcf4eb(0x41e)]({'priority':0x14,'interceptor':_0x3d1d50[_0xcf4eb(0x5a0)]({'maxParallel':0x6})}),(_0x2265a2=this['_config'])!=null&&_0x2265a2[_0xcf4eb(0x1db)]||this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58c)](_0x59ce0d[_0xcf4eb(0x434)])[_0xcf4eb(0x1a0)](),(_0x4c528e=this['_config'])!=null&&_0x4c528e[_0xcf4eb(0x225)]&&this['_injector'][_0xcf4eb(0x58c)](_0x29ed70),this[_0xcf4eb(0x2b0)]['get'](_0x59ce0d[_0xcf4eb(0x4e2)]),this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58b)](_0x59ce0d[_0xcf4eb(0x452)])&&this[_0xcf4eb(0x2b0)][_0xcf4eb(0x58c)](_0x59ce0d['DesktopCollaborationStatusDisplayController']);}},_0x4252ae(_0x59ce0d[_0x51d41b(0x3eb)],'pluginName',_0x6e92ea),_0x59ce0d[_0x51d41b(0x3eb)]=_0xaa5a71([_0x36d396['DependentOn'](_0x346629[_0x51d41b(0x48d)]),_0x467f00(0x1,_0x36d396[_0x51d41b(0x495)]),_0x467f00(0x2,_0x54d1da[_0x51d41b(0x1c2)]),_0x467f00(0x3,_0x36d396[_0x51d41b(0x2ae)](_0x36d396[_0x51d41b(0x268)])),_0x467f00(0x4,_0x36d396[_0x51d41b(0x511)])],_0x59ce0d[_0x51d41b(0x3eb)]),_0x59ce0d['AUTHZ_URL_KEY']=_0x20cd58,_0x59ce0d['COLLAB_SUBMIT_CHANGESET_URL_KEY']=_0x5da533,_0x59ce0d[_0x51d41b(0x36b)]=_0x53dc60,_0x59ce0d[_0x51d41b(0x2f2)]=_0xcb53f5,_0x59ce0d[_0x51d41b(0x457)]=_0xc902da,_0x59ce0d[_0x51d41b(0x540)]=_0x186531,_0x59ce0d['HEARTBEAT_INTERVAL_KEY']=_0x14d59a,_0x59ce0d['HEARTBEAT_TIMEOUT_KEY']=_0x1734e8,_0x59ce0d['ICollaborationSocketService']=_0xe35b0b,_0x59ce0d['IURLService']=_0x56d70c,_0x59ce0d[_0x51d41b(0x3f5)]=_0x341945,_0x59ce0d[_0x51d41b(0x1f3)]=_0x4c6be5,_0x59ce0d[_0x51d41b(0x572)]=_0x2353ba,_0x59ce0d['RETRY_CONNECTING_MAX_COUNT_KEY']=_0xdebb3a,_0x59ce0d[_0x51d41b(0x543)]=_0x5d41d3,_0x59ce0d[_0x51d41b(0x4cf)]=_0x3ee3ce,_0x59ce0d[_0x51d41b(0x224)]=_0x4ad76f,_0x59ce0d[_0x51d41b(0x24a)]=_0x4c781c,_0x59ce0d['SheetCollabCursorShape']=_0x21dc68,_0x59ce0d[_0x51d41b(0x51c)]=_0x161740,_0x59ce0d['deserializeToCombResponse']=_0x251ac9,_0x59ce0d[_0x51d41b(0x36e)]=_0x342ade,Object[_0x51d41b(0x215)](_0x59ce0d,Symbol[_0x51d41b(0x52d)],{'value':'Module'});}));function _0x4682(_0x47e449,_0x9d092){const _0x3f5d0d=_0x3f5d();return _0x4682=function(_0x4682b6,_0x71fc78){_0x4682b6=_0x4682b6-0x18f;let _0x1c9ddb=_0x3f5d0d[_0x4682b6];return _0x1c9ddb;},_0x4682(_0x47e449,_0x9d092);}function _0x3f5d(){const _0xd8b72e=['8wWGKVR','Ready','setCurrentUser','dispose','getFocusedUnit','push','history','LICENSE_MAX_UNITS_EXCEEDED','/object','_updateState','_uiPartsService','_cursorShapes','collaboration.single-unit.warning','HEARTBEAT_INTERVAL','propertyIsEnumerable','Subject','deserializeRangeWithSheet','override','UNIVER_PROJECT','transformSelections','state$','APPLY_NON_SEQUENTIAL_REVISION','handleIRemoveRow','_id','JOINING','find','_transformRemoteChangesetByIMECache','_getScale','JSONX','putCollaborators','OTHER_CLIENTS_EDITING','transformMutation','subscribeEvent','UniverCollaborationClientPlugin','isTransformMutationFailure','Rectangle','SheetSkeletonManagerService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','getActiveRange','_collaborationSessionService','_unitID','_clearHeartbeatTimer','[DataLoaderController]','LOCAL_CACHE_INTERVAL_KEY','INVALID_ARGUMENT','getUnitOnRev','onRemoteChangeset','_sendingTimer','listCollaborators','univerjs-icon\x20univerjs-icon-','save','responseType','_initMergeInterceptor','HEARTBEAT_TIMEOUT','/universer-api/authz','routeKey','_colorIndex','batchAllowed','_scheduleCollaborationTimeoutTimer','error','_createHandler','sheets','SHOULD_CLOSE_CONN','_fetchMissChangesets','endColumn','collabCursorState$','switchMap','collab-text-anchor-','string','isTransformChangesetsSuccess','_toggleOnline','_updateLocalCursor','getTime','univer-online-status-icon','getSheetId','_unitOnClients','editingUnit','pending','image/png','3lGTwKO','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','throttleTime','debounceTime','onSyncEditingCollabCursor','registerHTTPInterceptor','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','HELLO','_decreaseWaiting','_initResize','APPLY_REVISION_CONFILICT','_loadSheet','UPDATE_PERMISSION_OBJ','_showConflictNotification','onload','[CollaborationUndoRedoService]','YUUMI_RATE_OVER_LIMIT','_createInitialStateImpl','_exhaustRemoteChangesetQueue','Warning','_docSyncEditingCollabCursorService','@univerjs/telemetry','addEventListener','LocalUndoRedoService','_onOffline','fillStyle','liveShareNewHost','LocalCacheService','_lastPointer','top','_anchorDot','8636286Mzedwr','not_collab','objects','useObservable','UNIVER_DOC','EXCHANGE_SIGN_URL_SERVER_URL_KEY','transformIMECache','Optional','[CollaborationSessionService]','substring','children','_transitionLocked','setParam','_onRemoteChangeset','EffectRefRangId','onTransformRemoteChangesetByIMECache','_configService','Tooltip','\x0aAfter:\x20','_labelPosition','CHANGESET_ACK','CollaborationEntity','_send','#FFF','ImageSourceType','off-line-single_clip0_910_343','DesktopCollaborationStatusDisplayController','addImageSourceCache','pushState','session.connection-failed','FAIL','CollaborationStatusDisplay','toggleOnline','CollaborationSession','_imageSourceCache','debug','ranges','getCollabCursors$','toRgbString','_rescheduleHeartbeat','Error\x20on\x20receiving\x20event','_backgroundColor','getCurrentSelections','_httpService','onTransformChange$','_onConnectionFailed','SNAPSHOT_INVALID_SNAPSHOT','isActive','_memberService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','FromArray','VIEWPORT_KEY','init','_incrementRevisionNumber','[FetchMissState]','#fff','_registerRenderDependencies','telemetry\x20info\x20is\x20not\x20initialized','getColor','_docStateChangeManagerService','setAlpha','icon','apply','_registerDependencies','colorChannel1','SheetCollaborationEntity','_awaitingChangeset','UniverDrawing','close','svg','WorkbookEditablePermission','LIVESHARE_NEW_HOST','RxDisposable','permission.content','BehaviorSubject','_onCursorDelete','_handler','collaboration.closeRoom','getResourcesRequest','editing\x20status\x20changed\x20to','_getMergeRange','row','collaboration-client.config','registerRenderModule','engine','UniverCollaborationPlugin','getUnit','all','collaboration-client.offline-data-not-saved','currentSkeleton$','exhaustSavingTask','startRow','createIdentifier','ILogService','roomInfos','reverse','reject','saveChangeset','React','socketService','list','_toggleOffline','_startDocCollabCursor','_notificationService','_onJoinRoomEvent','[PendingState]:\x20received\x20rejection.','send','transformChangesets','_onConnectionOpen','joinEvent','DataLoaderController','@univerjs/rpc','enableLocalCache','NOT_COLLAB','resolve','_initModules','isTransformMutationsWithChangesetFailure','clipPath','_shapes','_snapshotServerService','defs','getOffsetConfig','getVpScrollXYInfoByPosToVp','getUndoRedoMutationParamsCache','unit','m2Prime','error$','listRoles','OffLineSingle','UniverNetwork','objectType','resend','color','IBeforeCloseService','path','findNodePositionByCharIndex','_docTransformSelectionsService','_scheduleSaving','JOIN','_executeRemoteChangeset','_drawTextRange','onMissingChangesets','fetchThroughInterceptors','_clearTimeoutTimer','_getSheetObject','concatMap','_drawRectRange','stopTime','rev','saveOfflineData','getUnitId','SNAPSHOT_SERVER_URL_KEY','executeCommand','collabStatus.notCollab','[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.','Rect','_clearOtherTimers','currentColor','backgroundColor','collabStatus.fetchMiss','/collaborator','NEW_CHANGESETS','NO_OTHER_CLIENTS_EDITING','ITelemetryService','_renderManagerService','createElement','getWorkbookSelections','blue400','connection\x20error','arc','CollaborationController','ERROR_IMAGE','_context','ERROR_IMAGE_TYPE','univer-online-status-title','_clearRedo','Starting','ImageUploadStatusType','_acknowledgedAwaitingChangeset','currentTheme$','RichTextEditingMutation','@univerjs/docs','merge','PENDING','Disposable','AWAITING_WITH_PENDING','10LQTBqN','gold400','getDocRanges','_syncEditingCollabCursor','replaceTextRanges','_refRangeService','synced','_disabled','_onFetchMissResult','take','_docSkeletonManagerService','WebSocketService','COMPRESS_MUTATION_APPLY','transformStack\x20failed!','setInterval','_queuedRemoteChangesets','?url=','m1Prime','_cursors','getTypeOfUnitDisposed$','url(#off-line-single_clip0_910_343)','makeDirty','useRef','open$','_applyRemoteChangeset','USERS_LEAVE','width','_onRemoteRejected','@univerjs/drawing','commentUpdateEvent','getCollabEntity','IConfigService','collab-client.tooltip.reconnect','none','@univerjs/core','AWAITING','/new_changes','CONNECTOR_DATA_TOO_LARGE','LOCAL_CACHE_INTERVAL','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','fromEventSubject','requestParams','WebURLService','BASE64','post','handleDeleteRangeMoveUp','LifecycleStages','unitId\x20is\x20not\x20found','UniverUi','awaitingChangeset','_beforeCloseService','IAuthzIoService','[CollaborationSessionService]:\x20socket\x20error','RevisionService','c2Prime','black','3561535wIWryR','getRelativeToViewportCoord','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','toStringTag','_onUserLeave','_onConflict','parseProtocolChangeset','_getUploadFileURL','/universer-api/comb','mutations','VIEW_MAIN','LICENSE_DISTRO_REJECTED','json','_getUndoStack','getMergeData','_listenToOnlineEvent','SetWorksheetActivateCommand','_state','_remoteChangesetQueue','SnapshotServerOverHTTPService','_initCloseConn','column','CommentService','addObjects','beginPath','SEND_CHANGESET_TIMEOUT_KEY','asObservable','_logService','SEND_CHANGESET_TIMEOUT','OnLifecycle','combineLatest','uni.network.url-service','stringify','permission.title','image/gif','refreshPermission','result','change$','/resources','CollaborationSocketService','_localCacheService','_name','_updateLocalCache','_updateCollabCursors','react','_handleHover','_ensureSubject','textRanges','getOwnPropertySymbols','image/bmp','includes','onPointerMove$','collaborators','UniverCollaboration','delete','_commandService','PERMISSION_DENIED','rxjs','assignAColorForMemberID','map','shareReplay','collab-rect-range-','FETCH_MISSING','_collaborationTimeoutTimer','snapshot','symbol','setItem','disposeUnit','_hideTimer','univer-online','mergeOverrideWithDependencies','_init','RETRY_CONNECTING_INTERVAL_KEY','failed\x20to\x20apply\x20missed\x20changesets!','LIVESHARE_FETCH_OPERATIONS','IUIPartsService','/fetchmissing?from=','_telemetryInfo','_getSignURL','_HTTPService','session','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','AuthzIoHttpService','_change$','entries','location','collabStatus.offline','userID','0\x200\x2017\x2016','actions','unshift','_removeClearOtherTimer','IUndoRedoService','delay','OFFLINE','save\x20fail\x20reason\x20is\x20','_onUserJoin','has','get','from','_clearLocalCache','_onCursorUpdate','_socket','replace','YUUMI_SUBSCRIPTION_NOT_FOUND','[CollaborationSession]','onPointerEnter$','disposeWithMe','updateCollaborator','COMPRESS_MUTATION_SEND','_session','_replayCachedMutations','_render','_hover','startsWith','then','getCurrentRevForDocument','&source=','ThresholdInterceptorFactory','runRefRangeMutations','add','univer-pro.collaboration-client.single-active-unit-service','takeUntil','sequenceExecute','univer-online-status','ws://127.0.0.1:8000/universer-api/comb/connect','pauseCollaboration','_snapshotService','joinRsp','_createInitialState','SheetsSelectionsService','div','searchParams','UPDATE_CURSOR','_transformIMECache','COMPLETION_FINISHED','textEncoder','MergeInterceptorFactory','registerComponent','deleteCollaborator','objectActions','status','removeEventListener','unitId','session.will-retry','APPLY_PERMISSION_DENIED','UniverDesign','NodePositionConvertToRectRange','disableLocalCache','_handleHeartbeatEvent','setTimeout','_collabCursorController','_collabCursorState$','UniverCollaborationClient','getConfig','_clearScheduledTask','onCommentUpdate','forEach','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','FileId','subunit','displayName','RECV','ColorKit','_unitStatus','UserManagerService','dispose$','skeleton','hide','_startCollaboration','event$','UNIVER_COLLABORATION_CLIENT_PLUGIN','moveTo','offline','_tryReconnect','restore','_tryEnsureSocket','lineTo','LEAVE','InsertRowCommandId','_onRefRangeChange','IMessageService','IRenderManagerService','params','HttpImport','saveSnapshot','eventID','onRemoteRej','onCommandExecuted','_collaborationController','_range','UNKNOWN_CMD','UNIVER_SLIDE','clearInterval','COMMENT_UPDATE','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','cursorInfo$','members','image/jpg','getParam','_syncEditingCollabCursorService','ICommandService','next','getCollabEntity$','UNIVER_SHEET','toDisposable','drawWith','enableOfflineEditing','parseChangesetToProtocol','localeService','_saveTaskMap','reconnect','_socketReady','createSocket','_schedule','generateRandomId','prototype','conflict.title','concat','attrs','closeSession','objectID','updateMember','@univerjs/network','_throwTelemetryCollaborationNewChangeset','PERMISSION_REJ','exports','/object/','_onLocalMutation','appendMutation','registerRefRange','LOGIN_URL_KEY','Shape','MUTATION','IHTTPImplementation','unsubscribe','FETCH_MISS','_sessionStatus$','_state$','getMemberID','_selfUnitIDs','_docSkeleton','getImageSourceCache','parse','subscribe','focused$','collaMsg','_redoStacks','_getLoginPath','b64DecodeUnicode','evenodd','_instanceService','requireSession','translate(.97)','CHANGESET_REJ','range','_assignedColors','onTransformIME','Tools','_entities','_transformPreviousActiveRange','collabStatus.syncing','_roomMembers$','ITransformService','_getAPIPrefixPath','defineProperty','selections','append','getCoordByCell','assign','getCellPositionByOffset','reduce','_entityInit$','put','awaiting_with_pending','ThemeService','_removeCollabCursors','image/jpeg','isEditing','isArray','SNAPSHOT_URL_KEY','enableAuthServer','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','_sendHeartbeat','_undoRedoService','fill','complete','_loadDoc','242235qaWaWd','LocaleService','SNAPSHOT_HAS_BEEN_REMOVED','updatePermissionPoint','startColumn','lodash','APPLY_REJECT','univer-pro.collaboration-client-socket-service','_getAPIPrefix','values','_cachedData','HEARTBEAT','DEFAULT_FILE_NAME','on-line-single','href','_shouldReportTelemetry','onTransformSelections','_colorAssignService','_removeRoom','@univerjs-pro/collaboration','toString','_compressMutationService','_refreshCollabCursors','fetchMiss','method','closePath','PSEUDO_FETCH_MISSING_RESULT','collaboratorID','onSendChangeset','_initStatusComponent','SessionStatus','InsertSheetMutation','some','CHANGESET_REVISION_CONFILICT','doc.mutation.rich-text-editing','getSheetBySheetId','Vector2','roomMembers$','USERS_ENTER','_color','_urlService','MSG_FOR_ERROR','shouldCloseConn','pipe','6364UlAuHs','HTTPRequest','getActiveSheet','_startTelemetryCollaborationNewChangeset','getUnitStatus$','IImageIoService','_pendingMutations','auth.needGotoLoginAlert','\x20in\x20_schedule.','title','_lockTransition','[PendingState]:\x20received\x20acknowledgement.','memberID','registerOnClose','cmd','call','Injector','sheetId','UniverInstanceType','triggerDblclick','getCurrentUser','_commentUpdate$','transformMutationsWithChangeset','getSheetBlock','useDependency','isPermissionRej','UniverTelemetry','_univerInstanceService','926746uqfecG','collab-text-range-','catch','sessionStatus','_getRedoStack','object','bottom','DocStateChangeManagerService','loadDoc','UNDEFINED','handleInsertCol','set','filter','collaboration-session-retry','ACTIVE_UNIT_EVENT_CHANNEL','body','withCredentials','CollaborationSessionService','_online','debounce','ImageIoService','off-line-single','_clearCollaborationTimeoutTimer','forwardRef','url','SheetPermissionInitController','_anchor','slice','_createSocket','popstate','close$','csRejEvent','collabStatus.conflict','getRangePointData','[SyncedState]:\x20received\x20acknowledgement.','_scene','@univerjs/sheets-ui','url(#on-line-single_clip0_910_349)','rgba(255,\x20255,\x20255,\x200.01)','_timeoutTimer','DocSkeletonManagerService','_waitForHeartbeatResponse','removeMember','getUnitType','_sheetTransformSelectionsService','fillText','_unlockTransition','status$','state','indexOf','_telemetryService','_messageService','xlink:href','roles','serializeDocRange','_handleJoinEvent','onStarting','_members','Inject','transformByState','_injector','getValue','selection','ONLINE','_collaborationPaused','_onRecvEvent','M0\x200H16V16H0z','getOwnPropertyDescriptor','online','_themeService','commentUpdate$','EmptyMutation','onMouseMove','changesets','mapTo','_getSendChangesetTimeout','permissionRejEvent','newValue','_socketMessageSubscription','{fileID}','_revisionService','IUniverInstanceService','[OfflineState]:\x20received\x20acknowledgement.','_handleEvent','_drawAnchor','clsx','now','type','encode','UNKNOWN_CODE','INTERNAL_ERROR','sheetID','DocCollaborationEntity','ISnapshotServerService','_draw','tag','1em','_setupSubUnitSync','LIVESHARE_TERMINATE','action','@univerjs/engine-render','operators','CompressMutationService','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getInterceptPoints','handleInsertRangeMoveRight','deepClone','_updateURLWithCurrentState','_sendHeartbeatTimer','_scheduleTimestamp','urlChange$','LICENSE_IMPORT_SIZE_EXCEEDED','?size=','_commentService','HTTPService','createInstance','loadSheet','UnitSnapshot','fromEvent','_http','onPointerLeave$','duration','\x20-\x20','_retryConnectingTimer','/universer-api/snapshot','_scheduleHeartbeat','CollaborationStatus','Undefined','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','syncEditingCollabCursor','_retryCount','_textBubble','_getCurrentRevision','CollaborationEvent','submit\x20changeset\x20error!','_submitChangeset','fetchMissingChangesets','UNIVER_UNKNOWN','_docTransformIMECacheService','Plugin','_eventUnsubscribe','_getSnapshotAPIPrefix','encodeURIComponent','_sheetSkeletonManagerService','min','getSheetObject','fillRule','idSuffix','_onCombEvent','round','_heartbeatTimer','lodash/debounce','code','handleInsertRangeMoveDown','onlineStatusIcon','onlyLocal','_getAnchorBounding','_socketService','_updateStatus','sessionStatus$','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','/block/','_ws','_collabSessionService','@univerjs/sheets','MessageType','className','RETRY_CONNECTING_INTERVAL','target','_localeService','UniverDocs','@univerjs/engine-formula','_config','_cursorInfo$','cursorInfo','_getCtorByUniverType','IPermissionService','_cursor','interceptor','getAncestorScale','Unknown\x20user','saveImage','size','_listenToOfflineEvent','SUCCUSS','_getSaveTimeout','_localStorageService','UniverRpc','updatePermissionObjEvent','readAsDataURL','_clearUndo','loadOfflineData','removeParam','/universer-api/file/{fileID}/sign-url','_roomMembers','@univerjs/ui','BuiltInUIPart','AUTHZ_URL_KEY','defIds','isTransformMutationsWithChangesetSuccess','_onRemoteACK','/unit/','_transformUndoRedoStack','font','_singleActiveUnitService','_replaceFileID','resourceIDs','measureText','name','mapDocumentTypeToUniverType','[CollaborationState]:\x20apply\x20error!','_event$','updateOfflineData','_transformSelections','clearTimeout','/-/object/-/batch_allowed','IContextService','data','_permissionService','LIVESHARE_REQUEST_HOST','POST','InsertRangeMoveRightCommandId','onlineStatus','allowed','_hovered','split','roomMembers','getMember','/-/object/list','[OfflineState]:\x20received\x20changeset.','TextSelectionManagerService','_substituteRedoStack','COLORS','unitID','fetch_missing','12434373FUFAPg','YUUMI_UNABLE_LOAD_URL','resize','flatMap','IMEInputManagerService','TEXT_RANGE_LAYER_INDEX','subUnitId','message$','_type','max','COLLAB_WEB_SOCKET_URL_KEY','HttpExport','compose','serializeCombRequest','SYNCED','_waitCount','getCurrentUnitForType','Error','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','hovered','[SyncedState]:\x20received\x20rejection.','_transformService','_scheduleClearOtherTimer','_status$','_substituteUndoStack','INGEST','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','c1Prime','325915wkeJAn','setShapeProps','headers','_saveCache','UnitEmbedded','onMissedChangesetFetched','_initUnitPermissionChange','revision','createCollaborator','function','onRemoteAck','distinctUntilChanged','_onMessage','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','rxjs/operators','_transformStack','baseRev','extend','NOT_FOUND','_isPermissionRej','INotificationService','length','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','fetching\x20missing\x20changesets\x20from\x20','_updateSubUnitFromURLParams','transform','file','_checkMissing','every','transformUndoRedo','connectInjector','unknown','[CollaborationEntity]','SetSelectionsOperation','toggleOffline','fromCollab','LICENSE_EXPORT_SIZE_EXCEEDED','SUBMIT_CHANGESET','amd','/universer-api/stream/file/upload','UNRECOGNIZED','activeSheet$','clear','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','conflict','setWaitCount','_socket$','/allowed','incrementRevForDocument','_stopTelemetryCollaborationNewChangeset','hasOwnProperty','originalMeta','LIVESHARE_OPERATION','ERROR_EXCEED_SIZE','CONFLICT','RefRangeService','serializeRangeWithSheet','getTypeOfUnitAdded$','UniverSheets','DeleteRangeMoveLeftCommandId','_initStatusListener','UNAUTHENTICATED','getSkeleton','DisposableCollection','ALREADY_EXISTS','IDLE','_initCommandExecutedListener','addObject','replaceState','_sessions','show','CommandType','text','contains','newCsEvent','on-line-single_clip0_910_349','awaiting'];_0x3f5d=function(){return _0xd8b72e;};return _0x3f5d();}
1
+ (function(_0x5ad21a,_0x38cdda){const _0x14c8e9=_0x47c1,_0x1119d0=_0x5ad21a();while(!![]){try{const _0x34a121=-parseInt(_0x14c8e9(0x219))/0x1*(parseInt(_0x14c8e9(0x482))/0x2)+-parseInt(_0x14c8e9(0x24c))/0x3*(parseInt(_0x14c8e9(0x492))/0x4)+parseInt(_0x14c8e9(0x403))/0x5*(-parseInt(_0x14c8e9(0xf6))/0x6)+parseInt(_0x14c8e9(0x2ea))/0x7*(parseInt(_0x14c8e9(0x1d0))/0x8)+-parseInt(_0x14c8e9(0x48f))/0x9*(-parseInt(_0x14c8e9(0x20c))/0xa)+parseInt(_0x14c8e9(0x248))/0xb+-parseInt(_0x14c8e9(0x122))/0xc*(-parseInt(_0x14c8e9(0x301))/0xd);if(_0x34a121===_0x38cdda)break;else _0x1119d0['push'](_0x1119d0['shift']());}catch(_0x6e8f9){_0x1119d0['push'](_0x1119d0['shift']());}}}(_0xd8ee,0xc38c1),function(_0x297fc5,_0x301638){const _0x58fe5b=_0x47c1;typeof exports==_0x58fe5b(0x290)&&typeof module<'u'?_0x301638(exports,require('@univerjs/core'),require(_0x58fe5b(0x3df)),require(_0x58fe5b(0x360)),require(_0x58fe5b(0x3ab)),require(_0x58fe5b(0x30a)),require(_0x58fe5b(0x287)),require(_0x58fe5b(0x393)),require(_0x58fe5b(0x3c9)),require(_0x58fe5b(0x147)),require(_0x58fe5b(0x3d4)),require(_0x58fe5b(0x23a)),require('@univerjs/engine-render'),require(_0x58fe5b(0x11e)),require(_0x58fe5b(0x30c)),require('lodash/debounce'),require(_0x58fe5b(0x329)),require('react'),require(_0x58fe5b(0x29d)),require(_0x58fe5b(0x389))):typeof define==_0x58fe5b(0x4bb)&&define[_0x58fe5b(0x448)]?define([_0x58fe5b(0x491),'@univerjs/core',_0x58fe5b(0x3df),'rxjs/operators',_0x58fe5b(0x3ab),'@univerjs/ui',_0x58fe5b(0x287),_0x58fe5b(0x393),'@univerjs/telemetry',_0x58fe5b(0x147),'@univerjs/sheets',_0x58fe5b(0x23a),_0x58fe5b(0x267),_0x58fe5b(0x11e),_0x58fe5b(0x30c),'lodash/debounce',_0x58fe5b(0x329),_0x58fe5b(0x121),_0x58fe5b(0x29d),_0x58fe5b(0x389)],_0x301638):(_0x297fc5=typeof globalThis<'u'?globalThis:_0x297fc5||self,_0x301638(_0x297fc5[_0x58fe5b(0x495)]={},_0x297fc5['UniverCore'],_0x297fc5[_0x58fe5b(0x3df)],_0x297fc5['rxjs'][_0x58fe5b(0x24b)],_0x297fc5[_0x58fe5b(0x45b)],_0x297fc5[_0x58fe5b(0x2ed)],_0x297fc5[_0x58fe5b(0x4f0)],_0x297fc5['UniverCollaboration'],_0x297fc5['UniverTelemetry'],_0x297fc5[_0x58fe5b(0x2d9)],_0x297fc5[_0x58fe5b(0x232)],_0x297fc5['UniverDocsUi'],_0x297fc5['UniverEngineRender'],_0x297fc5[_0x58fe5b(0x171)],_0x297fc5['UniverEngineFormula'],_0x297fc5[_0x58fe5b(0x4ea)][_0x58fe5b(0x49e)],_0x297fc5[_0x58fe5b(0x1a4)],_0x297fc5['React'],_0x297fc5[_0x58fe5b(0x29d)],_0x297fc5[_0x58fe5b(0x35d)]));}(this,function(_0x3723aa,_0x44f3cf,_0x1837c6,_0x3ab9e8,_0x1c0df8,_0x90d6c1,_0x43b7e7,_0x5c3399,_0x2b7353,_0x495201,_0x5848ce,_0x50f029,_0x278226,_0xaa685a,_0x3dc1ae,_0xb2aa35,_0x2c9d11,_0x5efe28,_0x491e99,_0x1436cb){'use strict';const _0x4deb9c=_0x47c1;var _0x350dec=Object[_0x4deb9c(0x4f6)],_0x207b82=(_0xfe0a99,_0x526426,_0x284520)=>_0x526426 in _0xfe0a99?_0x350dec(_0xfe0a99,_0x526426,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x284520}):_0xfe0a99[_0x526426]=_0x284520,_0x434a2a=(_0x36de95,_0x3f2760,_0x5c54ae)=>_0x207b82(_0x36de95,typeof _0x3f2760!=_0x4deb9c(0x4c4)?_0x3f2760+'':_0x3f2760,_0x5c54ae);const _0x4007f7=_0x4deb9c(0x15e),_0x5d4c8b='/universer-api/snapshot',_0x1691bd=_0x4deb9c(0x3f1),_0x5bb06f='SEND_CHANGESET_TIMEOUT',_0x58c006=_0x4deb9c(0x373),_0x2fe1b1=_0x4deb9c(0x2c6),_0x4175a2=_0x4deb9c(0x39b),_0x1bc3ee=_0x4deb9c(0x3cc),_0x31135c=_0x4deb9c(0x223),_0x3eddeb=_0x4deb9c(0x19a),_0x4c3652=_0x4deb9c(0x43e),_0x1b950d='COLLAB_SUBMIT_CHANGESET_URL',_0x162f44=_0x4deb9c(0x2ba),_0x1fff0c=_0x4deb9c(0x2ec),_0x5040cd=_0x4deb9c(0x32d);var _0x46986a=(_0x544f6c=>(_0x544f6c[_0x544f6c[_0x4deb9c(0x229)]=0x0]=_0x4deb9c(0x229),_0x544f6c[_0x544f6c['OK']=0x1]='OK',_0x544f6c[_0x544f6c[_0x4deb9c(0x42f)]=0x2]=_0x4deb9c(0x42f),_0x544f6c[_0x544f6c['PERMISSION_DENIED']=0x3]=_0x4deb9c(0x339),_0x544f6c[_0x544f6c[_0x4deb9c(0x47f)]=0x4]=_0x4deb9c(0x47f),_0x544f6c[_0x544f6c[_0x4deb9c(0x31e)]=0x5]=_0x4deb9c(0x31e),_0x544f6c[_0x544f6c[_0x4deb9c(0x50e)]=0x6]='ALREADY_EXISTS',_0x544f6c[_0x544f6c['INVALID_ARGUMENT']=0x7]='INVALID_ARGUMENT',_0x544f6c[_0x544f6c[_0x4deb9c(0x3a0)]=0x8]=_0x4deb9c(0x3a0),_0x544f6c[_0x544f6c['COMPLETION_FINISHED']=0x9]=_0x4deb9c(0x13d),_0x544f6c[_0x544f6c[_0x4deb9c(0x40d)]=0x1389]=_0x4deb9c(0x40d),_0x544f6c[_0x544f6c['SNAPSHOT_INVALID_SNAPSHOT']=0x1771]='SNAPSHOT_INVALID_SNAPSHOT',_0x544f6c[_0x544f6c[_0x4deb9c(0x449)]=0x1772]=_0x4deb9c(0x449),_0x544f6c[_0x544f6c[_0x4deb9c(0x418)]=0x1b59]='APPLY_REJECT',_0x544f6c[_0x544f6c['APPLY_NON_SEQUENTIAL_REVISION']=0x1b5a]=_0x4deb9c(0x2f4),_0x544f6c[_0x544f6c['APPLY_REVISION_CONFILICT']=0x1b5b]=_0x4deb9c(0x306),_0x544f6c[_0x544f6c['APPLY_PERMISSION_DENIED']=0x1b5c]=_0x4deb9c(0x26d),_0x544f6c[_0x544f6c['CONNECTOR_DATA_TOO_LARGE']=0x1f41]='CONNECTOR_DATA_TOO_LARGE',_0x544f6c[_0x544f6c[_0x4deb9c(0x1c1)]=0x2329]='LICENSE_MAX_UNITS_EXCEEDED',_0x544f6c[_0x544f6c[_0x4deb9c(0x101)]=0x232a]='LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED',_0x544f6c[_0x544f6c[_0x4deb9c(0x34a)]=0x232b]='LICENSE_IMPORT_SIZE_EXCEEDED',_0x544f6c[_0x544f6c[_0x4deb9c(0x228)]=0x232c]=_0x4deb9c(0x228),_0x544f6c[_0x544f6c['LICENSE_DISTRO_REJECTED']=0x232d]=_0x4deb9c(0x113),_0x544f6c[_0x544f6c[_0x4deb9c(0x200)]=0x2711]=_0x4deb9c(0x200),_0x544f6c[_0x544f6c[_0x4deb9c(0x39c)]=0x2712]=_0x4deb9c(0x39c),_0x544f6c[_0x544f6c[_0x4deb9c(0x4a2)]=0x2713]=_0x4deb9c(0x4a2),_0x544f6c[_0x544f6c[_0x4deb9c(0x384)]=0x2714]='YUUMI_SUBSCRIPTION_NOT_FOUND',_0x544f6c[_0x544f6c[_0x4deb9c(0x255)]=-0x1]=_0x4deb9c(0x255),_0x544f6c))(_0x46986a||{}),_0x3bfee1=(_0x5da0e3=>(_0x5da0e3[_0x5da0e3['UNIVER_UNKNOWN']=0x0]=_0x4deb9c(0x413),_0x5da0e3[_0x5da0e3[_0x4deb9c(0x350)]=0x1]=_0x4deb9c(0x350),_0x5da0e3[_0x5da0e3[_0x4deb9c(0x402)]=0x2]=_0x4deb9c(0x402),_0x5da0e3[_0x5da0e3['UNIVER_SLIDE']=0x3]=_0x4deb9c(0x4ad),_0x5da0e3[_0x5da0e3[_0x4deb9c(0x2d3)]=0x4]='UNIVER_PROJECT',_0x5da0e3[_0x5da0e3[_0x4deb9c(0x255)]=-0x1]=_0x4deb9c(0x255),_0x5da0e3))(_0x3bfee1||{}),_0x1779e6=(_0x2d8d98=>(_0x2d8d98[_0x2d8d98[_0x4deb9c(0x166)]=0x0]=_0x4deb9c(0x166),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x303)]=0x1]=_0x4deb9c(0x303),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x39a)]=0x2]=_0x4deb9c(0x39a),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x22d)]=0x3]=_0x4deb9c(0x22d),_0x2d8d98[_0x2d8d98['INGEST']=0x4]=_0x4deb9c(0xf4),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x3d5)]=0x5]=_0x4deb9c(0x3d5),_0x2d8d98[_0x2d8d98[_0x4deb9c(0x4fd)]=0x6]='RECV',_0x2d8d98[_0x2d8d98[_0x4deb9c(0x255)]=-0x1]='UNRECOGNIZED',_0x2d8d98))(_0x1779e6||{}),_0x456623=(_0x268a0e=>(_0x268a0e[_0x268a0e['UNKNOWN_CODE']=0x0]='UNKNOWN_CODE',_0x268a0e[_0x268a0e['OK']=0x1]='OK',_0x268a0e[_0x268a0e[_0x4deb9c(0x486)]=0x2]=_0x4deb9c(0x486),_0x268a0e[_0x268a0e[_0x4deb9c(0x255)]=-0x1]=_0x4deb9c(0x255),_0x268a0e))(_0x456623||{}),_0x47077b=(_0x495f9d=>(_0x495f9d[_0x495f9d['Undefined']=0x0]='Undefined',_0x495f9d[_0x495f9d[_0x4deb9c(0x4a4)]=0x1]='HttpImport',_0x495f9d[_0x495f9d[_0x4deb9c(0x4e2)]=0x2]=_0x4deb9c(0x4e2),_0x495f9d[_0x495f9d[_0x4deb9c(0x251)]=0x3]='UnitEmbedded',_0x495f9d[_0x495f9d[_0x4deb9c(0x1de)]=0x4]='UnitSnapshot',_0x495f9d[_0x495f9d[_0x4deb9c(0x255)]=-0x1]='UNRECOGNIZED',_0x495f9d))(_0x47077b||{});function _0x2eb665(_0x5dac1d){const _0xa35a8f=_0x4deb9c;var _0x44bed0,_0x5a0664,_0x48e5c2,_0x431294;const _0x44a2fe=_0x5dac1d[_0xa35a8f(0xf9)],_0x184d47=JSON[_0xa35a8f(0x4ab)](_0x44a2fe);switch(_0x184d47[_0xa35a8f(0x38b)]){case _0x1779e6[_0xa35a8f(0x3d5)]:case _0x1779e6[_0xa35a8f(0x303)]:{const _0x1a710a=_0x184d47['infoRsp'];return{..._0x184d47,'data':_0x1a710a,'cmd':_0x184d47[_0xa35a8f(0x38b)]};}case _0x1779e6['JOIN']:{const _0x57e534=_0x184d47[_0xa35a8f(0x364)];return{..._0x184d47,'data':_0x57e534,'cmd':_0x184d47[_0xa35a8f(0x38b)]};}case _0x1779e6['RECV']:{const _0x34cd3d=_0x184d47[_0xa35a8f(0x1d6)];switch(_0x34cd3d['eventID']){case _0x5c3399[_0xa35a8f(0x3d6)]['PERMISSION_REJ']:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x44bed0=_0x34cd3d[_0xa35a8f(0x2f6)])==null?void 0x0:_0x44bed0['cs']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x333)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x5a0664=_0x34cd3d['csAckEvent'])==null?void 0x0:_0x5a0664['cs']},'cmd':_0x184d47['cmd']};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x4a7)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x48e5c2=_0x34cd3d[_0xa35a8f(0x124)])==null?void 0x0:_0x48e5c2['cs']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399['CollaborationEvent']['CHANGESET_REJ']:return{..._0x184d47,'data':{..._0x34cd3d,'data':(_0x431294=_0x34cd3d[_0xa35a8f(0x4da)])==null?void 0x0:_0x431294['cs']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x1c5)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x414)]},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x1c3)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x1d1)]},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x203)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x279)]},'cmd':_0x184d47['cmd']};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x409)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x32b)]},'cmd':_0x184d47['cmd']};case _0x5c3399['CollaborationEvent'][_0xa35a8f(0x478)]:case _0x5c3399['CollaborationEvent'][_0xa35a8f(0x46d)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d['liveShareOperation']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x4ef)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x32b)]},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)]['MSG_FOR_ERROR']:return{..._0x184d47,'data':_0x34cd3d,'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399[_0xa35a8f(0x3d6)]['COMMENT_UPDATE']:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d['commentUpdateEvent']},'cmd':_0x184d47[_0xa35a8f(0x38b)]};case _0x5c3399['CollaborationEvent'][_0xa35a8f(0x1d9)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d[_0xa35a8f(0x216)]},'cmd':_0x184d47['cmd']};case _0x5c3399[_0xa35a8f(0x3d6)][_0xa35a8f(0x50b)]:return{..._0x184d47,'data':{..._0x34cd3d,'data':_0x34cd3d['shouldCloseConn']},'cmd':_0x184d47['cmd']};default:return _0x184d47;}}default:return _0x184d47;}}function _0x266df0(_0x1cae6f){const _0x18dd82=_0x4deb9c;switch(_0x1cae6f[_0x18dd82(0x38b)]){case _0x1779e6['HEARTBEAT']:case _0x1779e6['HELLO']:return JSON[_0x18dd82(0x428)]({'cmd':_0x1cae6f['cmd'],'routeKey':_0x1cae6f[_0x18dd82(0x16b)]});case _0x1779e6['INGEST']:{let _0x1da585;switch(_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0x2aa)]){case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x1c5)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x1c5)],'updateCursorEvent':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x203)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x203)],'leaveEvent':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399['CollaborationEvent'][_0x18dd82(0x1c3)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x1c3)],'joinEvent':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x409)]:{_0x1da585={'eventID':_0x5c3399['CollaborationEvent'][_0x18dd82(0x409)],'liveShareNewHost':_0x1cae6f[_0x18dd82(0xf9)]['data']};break;}case _0x5c3399['CollaborationEvent'][_0x18dd82(0x46d)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x1cae6f[_0x18dd82(0xf9)]['data']};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x4ef)]:{_0x1da585={'eventID':_0x5c3399['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x1cae6f['data'][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x343)]:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x343)],'liveShareRequestHost':_0x1cae6f[_0x18dd82(0xf9)][_0x18dd82(0xf9)]};break;}case _0x5c3399[_0x18dd82(0x3d6)]['LIVESHARE_FETCH_OPERATIONS']:{_0x1da585={'eventID':_0x5c3399[_0x18dd82(0x3d6)][_0x18dd82(0x478)]};break;}default:_0x1da585={'eventID':_0x1cae6f['data'][_0x18dd82(0x2aa)]};}return JSON[_0x18dd82(0x428)]({'cmd':_0x1cae6f['cmd'],'routeKey':_0x1cae6f[_0x18dd82(0x16b)],'collaMsg':_0x1da585});}case _0x1779e6[_0x18dd82(0x39a)]:return JSON['stringify']({'cmd':_0x1cae6f[_0x18dd82(0x38b)],'routeKey':_0x1cae6f[_0x18dd82(0x16b)],'joinReq':_0x1cae6f['data']});case _0x1779e6['LEAVE']:return JSON[_0x18dd82(0x428)]({'cmd':_0x1cae6f[_0x18dd82(0x38b)],'routeKey':_0x1cae6f[_0x18dd82(0x16b)],'leaveReq':_0x1cae6f[_0x18dd82(0xf9)]});default:throw new Error(_0x18dd82(0x283));}}var _0xb63cbc=Object[_0x4deb9c(0x4f6)],_0x1f8f1c=Object['getOwnPropertyDescriptor'],_0x3cc0db=(_0x6e211d,_0x320d4c,_0x2a2a7f,_0x685a22)=>{const _0x168c05=_0x4deb9c;for(var _0x1c3ef6=_0x685a22>0x1?void 0x0:_0x685a22?_0x1f8f1c(_0x320d4c,_0x2a2a7f):_0x320d4c,_0x400bdd=_0x6e211d[_0x168c05(0x17a)]-0x1,_0x1a19d3;_0x400bdd>=0x0;_0x400bdd--)(_0x1a19d3=_0x6e211d[_0x400bdd])&&(_0x1c3ef6=(_0x685a22?_0x1a19d3(_0x320d4c,_0x2a2a7f,_0x1c3ef6):_0x1a19d3(_0x1c3ef6))||_0x1c3ef6);return _0x685a22&&_0x1c3ef6&&_0xb63cbc(_0x320d4c,_0x2a2a7f,_0x1c3ef6),_0x1c3ef6;},_0x2ce446=(_0x7a15e7,_0x5eef3c)=>(_0x4f7d2e,_0x53b71b)=>_0x5eef3c(_0x4f7d2e,_0x53b71b,_0x7a15e7);const _0x2f8f8b=_0x44f3cf[_0x4deb9c(0x1e3)](_0x4deb9c(0x13f));function _0x216777(_0x450584,_0xfb4a0c,_0x4ae949){const _0x331580=_0x4deb9c;return _0x450584+'/'+_0xfb4a0c+_0x331580(0x3da)+_0x4ae949+_0x331580(0x415);}_0x3723aa[_0x4deb9c(0x395)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x421d77,_0x214033,_0x349109,_0x489696,_0x357afc){const _0x582ae7=_0x4deb9c;super(),this[_0x582ae7(0x388)]=_0x421d77,this[_0x582ae7(0x105)]=_0x214033,this[_0x582ae7(0x494)]=_0x349109,this[_0x582ae7(0x1aa)]=_0x489696,this[_0x582ae7(0x278)]=_0x357afc;}[_0x4deb9c(0x1c4)](_0x2cf8eb){const _0xae524f=_0x4deb9c,_0x47894f=this[_0xae524f(0x105)]['createSocket'](_0x2cf8eb);if(!_0x47894f)throw new Error(_0xae524f(0x131));const _0x3ed4ac=new _0x44f3cf['DisposableCollection'](),_0x22642d=new _0x1837c6[(_0xae524f(0x4a0))]();_0x3ed4ac[_0xae524f(0x117)](_0x47894f[_0xae524f(0x144)][_0xae524f(0x138)](_0x5be081=>_0x22642d['next'](_0x5be081))),_0x3ed4ac[_0xae524f(0x117)](_0x44f3cf[_0xae524f(0x133)](()=>_0x22642d[_0xae524f(0x4d3)]()));const _0x27dc8a=new _0x1837c6[(_0xae524f(0x4a0))]();_0x3ed4ac['add'](_0x47894f['error$']['subscribe'](_0x569a0e=>_0x27dc8a[_0xae524f(0x3e8)](_0x569a0e))),_0x3ed4ac[_0xae524f(0x117)](_0x44f3cf['toDisposable'](()=>_0x27dc8a['complete']()));const _0x2cc238=new _0x1837c6[(_0xae524f(0x4a0))]();_0x3ed4ac[_0xae524f(0x117)](_0x47894f[_0xae524f(0x421)][_0xae524f(0x138)](_0xcce866=>{const _0x502889=_0xae524f,_0x22b749=_0x2eb665(_0xcce866);_0x2cc238[_0x502889(0x3e8)](_0x22b749);})),_0x3ed4ac[_0xae524f(0x117)](_0x44f3cf[_0xae524f(0x133)](()=>_0x2cc238['complete']()));let _0x56d3dd;const _0x1c07c6=()=>{const _0x4dff72=_0xae524f;_0x27dc8a[_0x4dff72(0x3e8)](new Event('connection\x20error')),_0x22642d[_0x4dff72(0x3e8)](new CloseEvent('connection\x20error')),_0x56d3dd[_0x4dff72(0x44e)]();};return _0x56d3dd={'memberID':'','close$':_0x22642d[_0xae524f(0x4eb)](),'error$':_0x27dc8a[_0xae524f(0x4eb)](),'open$':_0x47894f[_0xae524f(0x13a)],'message$':_0x2cc238['asObservable'](),'send':_0x108120=>{const _0x5d6e41=_0xae524f;if(_0x108120[_0x5d6e41(0x38b)]===_0x1779e6[_0x5d6e41(0xf4)]){if(_0x108120[_0x5d6e41(0xf9)][_0x5d6e41(0x2aa)]===_0x5c3399['CollaborationEvent'][_0x5d6e41(0x29c)]){this[_0x5d6e41(0x2f7)](_0x56d3dd,_0x108120[_0x5d6e41(0xf9)])[_0x5d6e41(0x1ad)](_0x292bac=>{const _0x1d1413=_0x5d6e41;this[_0x1d1413(0x1aa)][_0x1d1413(0x46e)](_0x292bac),_0x1c07c6();});return;}if(_0x108120[_0x5d6e41(0xf9)]['eventID']===_0x5c3399[_0x5d6e41(0x3d6)][_0x5d6e41(0x236)]){const _0x4d788a=_0x108120['data'];this[_0x5d6e41(0x321)](_0x4d788a)[_0x5d6e41(0x15b)](_0x6c0a93=>{const _0x24fedb=_0x5d6e41;_0x2cc238[_0x24fedb(0x3e8)]({'cmd':_0x1779e6[_0x24fedb(0x4fd)],'code':_0x456623['OK'],'routeKey':_0x4d788a[_0x24fedb(0xf9)]['unitID'],'routeType':'','data':{'eventID':_0x5c3399[_0x24fedb(0x3d6)][_0x24fedb(0x338)],'data':{'changesets':_0x6c0a93}}});})[_0x5d6e41(0x1ad)](_0xe69a61=>{const _0x118edf=_0x5d6e41;this[_0x118edf(0x1aa)][_0x118edf(0x46e)](_0xe69a61),_0x1c07c6();});return;}}_0x47894f['send'](_0x266df0(_0x108120));},'close':()=>{const _0x278080=_0xae524f;_0x47894f['close'](),_0x3ed4ac[_0x278080(0x241)]();}},_0x56d3dd;}async[_0x4deb9c(0x2f7)](_0x4461a2,_0x8d8740){const _0x19c167=_0x4deb9c;var _0x43c1a5;const {unitType:_0x12a032,unitID:_0xfac86f,changeset:_0x5af68c}=_0x8d8740[_0x19c167(0xf9)],_0xea004={'unitID':_0xfac86f,'memberID':_0x4461a2[_0x19c167(0x217)],'type':_0x12a032,'changeset':_0x5c3399[_0x19c167(0x126)](_0x5af68c)},_0x537f68=_0x216777((_0x43c1a5=this[_0x19c167(0x494)]['getConfig'](_0x1b950d))!=null?_0x43c1a5:_0x162f44,_0x12a032,_0xfac86f);try{await this[_0x19c167(0x388)][_0x19c167(0x239)](_0x537f68,{'body':_0xea004});}catch(_0x1cdfca){throw this[_0x19c167(0x1aa)][_0x19c167(0x46e)](_0x19c167(0x118),_0x19c167(0x276)),_0x1cdfca;}}async['_fetchMissChangesets'](_0x56520e){const _0x332e7e=_0x4deb9c,{unitID:_0x127a2e,from:_0x48f912,to:_0x1f1945,unitType:_0x167c23}=_0x56520e['data'];return(await this[_0x332e7e(0x278)][_0x332e7e(0x371)]({'metadata':void 0x0},{'unitID':_0x127a2e,'type':_0x167c23,'from':_0x48f912,'to':_0x1f1945}))[_0x332e7e(0x50f)];}},_0x3723aa['CollaborationSocketService']=_0x3cc0db([_0x2ce446(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7['HTTPService'])),_0x2ce446(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7['WebSocketService'])),_0x2ce446(0x2,_0x44f3cf[_0x4deb9c(0x150)]),_0x2ce446(0x3,_0x44f3cf['ILogService']),_0x2ce446(0x4,_0x5c3399[_0x4deb9c(0x257)])],_0x3723aa['CollaborationSocketService']);const _0x4a3b8e=_0x4deb9c(0x2cc);function _0x5d818b(_0x3e48c8){const _0x3f169c=_0x4deb9c;return JSON['stringify'](_0x3e48c8)[_0x3f169c(0x17a)];}class _0x523579{constructor(){const _0xdb744f=_0x4deb9c;_0x434a2a(this,_0xdb744f(0x37d),new _0x1837c6['Subject']()),_0x434a2a(this,_0xdb744f(0x30f),this[_0xdb744f(0x37d)]['asObservable']());}[_0x4deb9c(0x4c3)](_0x3dbb9c){const _0x2084e2=_0x4deb9c;this[_0x2084e2(0x37d)]['next'](_0x3dbb9c);}}var _0x251910=Object[_0x4deb9c(0x4f6)],_0x1572f4=Object[_0x4deb9c(0x3d9)],_0x523a67=(_0x5eca66,_0x214e67,_0x2cda6d,_0x1d39f6)=>{const _0x1baf44=_0x4deb9c;for(var _0x4e8b62=_0x1d39f6>0x1?void 0x0:_0x1d39f6?_0x1572f4(_0x214e67,_0x2cda6d):_0x214e67,_0x332433=_0x5eca66[_0x1baf44(0x17a)]-0x1,_0x3f2246;_0x332433>=0x0;_0x332433--)(_0x3f2246=_0x5eca66[_0x332433])&&(_0x4e8b62=(_0x1d39f6?_0x3f2246(_0x214e67,_0x2cda6d,_0x4e8b62):_0x3f2246(_0x4e8b62))||_0x4e8b62);return _0x1d39f6&&_0x4e8b62&&_0x251910(_0x214e67,_0x2cda6d,_0x4e8b62),_0x4e8b62;},_0xb1f92a=(_0x426ba6,_0x7e29ba)=>(_0x2567b9,_0x46f70d)=>_0x7e29ba(_0x2567b9,_0x46f70d,_0x426ba6);let _0x32fe7e=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x559cb5,_0xaba5be){const _0x2b83a2=_0x4deb9c;super(),_0x434a2a(this,'_roomMembers',new Map()),(this[_0x2b83a2(0x391)]=_0x559cb5,this[_0x2b83a2(0x442)]=_0xaba5be,this[_0x2b83a2(0x446)](_0x44f3cf[_0x2b83a2(0x133)](_0x1837c6[_0x2b83a2(0xfb)](this[_0x2b83a2(0x391)][_0x2b83a2(0x4a5)](_0x44f3cf[_0x2b83a2(0x1bb)][_0x2b83a2(0x402)])[_0x2b83a2(0x4f9)](_0x3ab9e8[_0x2b83a2(0x269)](_0x57e4bc=>_0x57e4bc[_0x2b83a2(0x43f)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x44f3cf[_0x2b83a2(0x1bb)][_0x2b83a2(0x350)])['pipe'](_0x3ab9e8[_0x2b83a2(0x269)](_0x253d92=>_0x253d92['getUnitId']())),this[_0x2b83a2(0x391)][_0x2b83a2(0x4a5)](_0x44f3cf[_0x2b83a2(0x1bb)][_0x2b83a2(0x4ad)])['pipe'](_0x3ab9e8[_0x2b83a2(0x269)](_0x2a610a=>_0x2a610a[_0x2b83a2(0x43f)]())))[_0x2b83a2(0x138)](_0x2180ca=>this[_0x2b83a2(0x263)](_0x2180ca)))));}[_0x4deb9c(0x11f)](_0x54ee1c){this['_userManagerService']['setCurrentUser'](_0x54ee1c);}[_0x4deb9c(0x2d2)](){const _0x242d54=_0x4deb9c;return this[_0x242d54(0x442)][_0x242d54(0x2d2)]();}[_0x4deb9c(0x1e8)](_0x473b87,_0x4c3399){const _0x59efb6=_0x4deb9c;let _0x5a4899=this[_0x59efb6(0x21a)]['get'](_0x473b87);_0x5a4899||(_0x5a4899=new _0x5a6ed1(),this['_roomMembers'][_0x59efb6(0x2b2)](_0x473b87,_0x5a4899)),_0x5a4899[_0x59efb6(0x1e8)](_0x4c3399);}[_0x4deb9c(0x44f)](_0x5bc8f9,_0x16b553){const _0x4f7ffa=_0x4deb9c,_0x5ecb98=this[_0x4f7ffa(0x21a)][_0x4f7ffa(0x38c)](_0x5bc8f9);_0x5ecb98&&_0x5ecb98[_0x4f7ffa(0x44f)](_0x16b553);}[_0x4deb9c(0x349)](_0x1cfbf9){const _0x1b4de9=_0x4deb9c;return this[_0x1b4de9(0x21a)][_0x1b4de9(0x38c)](_0x1cfbf9);}['getMember'](_0x5abc3e,_0x2d4fe9){const _0x1dcb87=_0x4deb9c,_0x450493=this[_0x1dcb87(0x21a)]['get'](_0x5abc3e);if(_0x450493)return _0x450493['getMember'](_0x2d4fe9);}[_0x4deb9c(0x263)](_0x35e75d){const _0x655f21=_0x4deb9c,_0x61820d=this[_0x655f21(0x21a)][_0x655f21(0x38c)](_0x35e75d);_0x61820d&&(_0x61820d[_0x655f21(0x241)](),this[_0x655f21(0x21a)][_0x655f21(0x312)](_0x35e75d));}[_0x4deb9c(0x241)](){const _0xee9238=_0x4deb9c;this[_0xee9238(0x21a)][_0xee9238(0x4cc)](_0x3368b5=>_0x3368b5[_0xee9238(0x241)]()),this[_0xee9238(0x21a)][_0xee9238(0x3fa)]();}};_0x32fe7e=_0x523a67([_0xb1f92a(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0xb1f92a(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x11c)]))],_0x32fe7e);class _0x5a6ed1 extends _0x44f3cf['Disposable']{constructor(){const _0x111bf0=_0x4deb9c;super(...arguments),_0x434a2a(this,_0x111bf0(0x502),new Map());}[_0x4deb9c(0x241)](){const _0x14f8dd=_0x4deb9c;this[_0x14f8dd(0x502)][_0x14f8dd(0x3fa)]();}[_0x4deb9c(0x1e8)](_0x359d58){const _0x21ee13=_0x4deb9c;this[_0x21ee13(0x502)]['set'](_0x359d58[_0x21ee13(0x217)],_0x359d58);}[_0x4deb9c(0x44f)](_0xd62fbc){this['_members']['delete'](_0xd62fbc);}[_0x4deb9c(0x438)](_0x2e3ccf){const _0x4822c8=_0x4deb9c;return this[_0x4822c8(0x502)][_0x4822c8(0x38c)](_0x2e3ccf);}}var _0x216b25=Object[_0x4deb9c(0x4f6)],_0x41d891=Object[_0x4deb9c(0x3d9)],_0x50f615=(_0x275d54,_0x3b7ca1,_0x2854bd,_0x21eb4c)=>{for(var _0x3a4ed5=_0x21eb4c>0x1?void 0x0:_0x21eb4c?_0x41d891(_0x3b7ca1,_0x2854bd):_0x3b7ca1,_0x6ac933=_0x275d54['length']-0x1,_0x1fe5c2;_0x6ac933>=0x0;_0x6ac933--)(_0x1fe5c2=_0x275d54[_0x6ac933])&&(_0x3a4ed5=(_0x21eb4c?_0x1fe5c2(_0x3b7ca1,_0x2854bd,_0x3a4ed5):_0x1fe5c2(_0x3a4ed5))||_0x3a4ed5);return _0x21eb4c&&_0x3a4ed5&&_0x216b25(_0x3b7ca1,_0x2854bd,_0x3a4ed5),_0x3a4ed5;},_0x29b6c4=(_0x24b038,_0x1062b5)=>(_0x764662,_0x288fb3)=>_0x1062b5(_0x764662,_0x288fb3,_0x24b038),_0x4388c5=(_0x55dc03=>(_0x55dc03[_0x55dc03[_0x4deb9c(0x462)]=0x0]=_0x4deb9c(0x462),_0x55dc03[_0x55dc03[_0x4deb9c(0x1d3)]=0x1]='JOINING',_0x55dc03[_0x55dc03[_0x4deb9c(0x135)]=0x2]=_0x4deb9c(0x135),_0x55dc03[_0x55dc03[_0x4deb9c(0x1df)]=0x3]=_0x4deb9c(0x1df),_0x55dc03))(_0x4388c5||{});_0x3723aa[_0x4deb9c(0x404)]=class extends _0x44f3cf['RxDisposable']{constructor(_0x34e8e3,_0x535b9d,_0x26296d,_0x5939c9,_0x269bd3,_0x596625,_0x44f970,_0x24c606,_0x1346b5,_0x10e5d0){const _0x2b1125=_0x4deb9c;super(),_0x434a2a(this,_0x2b1125(0x336),new _0x1837c6[(_0x2b1125(0x17d))](0x0)),_0x434a2a(this,_0x2b1125(0x501),this[_0x2b1125(0x336)][_0x2b1125(0x4eb)]()),_0x434a2a(this,_0x2b1125(0x14a),new _0x1837c6[(_0x2b1125(0x4a0))]()),_0x434a2a(this,_0x2b1125(0x458),this[_0x2b1125(0x14a)][_0x2b1125(0x4eb)]()),_0x434a2a(this,_0x2b1125(0xfa)),_0x434a2a(this,_0x2b1125(0x3b3)),_0x434a2a(this,'_collaborationTimeoutTimer'),_0x434a2a(this,'_shouldReportTelemetry',!0x1),_0x434a2a(this,_0x2b1125(0x212),null),(this[_0x2b1125(0x497)]=_0x34e8e3,this[_0x2b1125(0x1aa)]=_0x26296d,this[_0x2b1125(0x4ec)]=_0x5939c9,this[_0x2b1125(0x31a)]=_0x269bd3,this[_0x2b1125(0x494)]=_0x596625,this['_localeService']=_0x44f970,this[_0x2b1125(0x4d4)]=_0x24c606,this[_0x2b1125(0x4bc)]=_0x1346b5,this[_0x2b1125(0x112)]=_0x10e5d0,this[_0x2b1125(0x30b)]=!!this[_0x2b1125(0x112)],_0x535b9d[_0x2b1125(0x4f9)](_0x1837c6[_0x2b1125(0x23e)](this[_0x2b1125(0x423)]))[_0x2b1125(0x138)](_0x23189b=>{const _0x21ecc5=_0x2b1125;var _0x146c01;typeof _0x23189b>'u'||(this[_0x21ecc5(0xfa)]=_0x23189b,_0x23189b?(this[_0x21ecc5(0x4c8)](_0x23189b),this['_socketMessageSubscription']=_0x23189b[_0x21ecc5(0x421)]['subscribe'](_0x485e73=>{const _0x2227bc=_0x21ecc5;_0x485e73[_0x2227bc(0x16b)]===this[_0x2227bc(0x497)]&&this[_0x2227bc(0x163)](_0x485e73);})):(this[_0x21ecc5(0x412)](),this[_0x21ecc5(0x336)][_0x21ecc5(0x3e8)](0x2),(_0x146c01=this[_0x21ecc5(0x3b3)])==null||_0x146c01['unsubscribe'](),this[_0x21ecc5(0x3b3)]=null));}),this['disposeWithMe'](this[_0x2b1125(0x4ec)][_0x2b1125(0x198)](()=>{const _0x42d3a0=_0x2b1125;var _0x104b53;(_0x104b53=this['_socket'])==null||_0x104b53[_0x42d3a0(0x151)]({'cmd':_0x1779e6[_0x42d3a0(0x22d)],'data':{'roomID':this['_unitID']}});})));}get['sessionStatus'](){const _0x55148c=_0x4deb9c;return this[_0x55148c(0x336)][_0x55148c(0x22e)]();}[_0x4deb9c(0x146)](){const _0x15e2ea=_0x4deb9c;var _0x25de0d,_0x402649;return(_0x402649=(_0x25de0d=this['_socket'])==null?void 0x0:_0x25de0d[_0x15e2ea(0x217)])!=null?_0x402649:null;}['dispose'](){const _0x5ab8e2=_0x4deb9c;super['dispose'](),this[_0x5ab8e2(0x423)][_0x5ab8e2(0x3e8)](),this['dispose$'][_0x5ab8e2(0x4d3)]();}[_0x4deb9c(0x44e)](){const _0x47dcef=_0x4deb9c;var _0x5c7457,_0x1cc5e5;this['_throwTelemetryCollaborationNewChangeset'](),(_0x5c7457=this[_0x47dcef(0xfa)])==null||_0x5c7457['send']({'cmd':_0x1779e6[_0x47dcef(0x22d)],'data':{'roomID':this[_0x47dcef(0x497)]}}),(_0x1cc5e5=this['_socket'])==null||_0x1cc5e5[_0x47dcef(0x44e)](),this[_0x47dcef(0x14a)][_0x47dcef(0x4d3)](),this[_0x47dcef(0x336)]['complete'](),this[_0x47dcef(0x241)]();}[_0x4deb9c(0x163)](_0x37be80){const _0x2729d0=_0x4deb9c;_0x37be80['cmd']===_0x1779e6[_0x2729d0(0x39a)]?this[_0x2729d0(0x481)](_0x37be80):_0x37be80[_0x2729d0(0x38b)]===_0x1779e6['RECV']&&this[_0x2729d0(0x3dc)](_0x37be80);}[_0x4deb9c(0x4c8)](_0x6cab2d){const _0x1307d1=_0x4deb9c;this[_0x1307d1(0x336)]['next'](0x1),_0x6cab2d[_0x1307d1(0x151)]({'cmd':_0x1779e6[_0x1307d1(0x39a)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this['_unitID']}]}});}[_0x4deb9c(0x481)](_0x16a310){const _0x10a035=_0x4deb9c;var _0x72b688;if(_0x16a310['code']===_0x456623[_0x10a035(0x486)]){this[_0x10a035(0x31a)][_0x10a035(0x2a7)]({'type':_0x1c0df8[_0x10a035(0x25c)][_0x10a035(0x435)],'content':this['_localeService']['t']('session.room-full')}),this['_sessionStatus$'][_0x10a035(0x3e8)](0x2);return;}this[_0x10a035(0x336)][_0x10a035(0x3e8)](0x3);const _0x1bc12f=(_0x72b688=_0x16a310[_0x10a035(0xf9)][_0x10a035(0x176)][this['_unitID']])==null?void 0x0:_0x72b688['members'];_0x1bc12f&&_0x1bc12f[_0x10a035(0x4cc)](_0x3e8b5e=>this[_0x10a035(0x4d4)][_0x10a035(0x1e8)](this[_0x10a035(0x497)],_0x3e8b5e));}[_0x4deb9c(0x3dc)](_0x380f9a){const _0x5436d1=_0x4deb9c;try{const _0x57c871=_0x380f9a[_0x5436d1(0xf9)];switch(_0x57c871[_0x5436d1(0x2aa)]){case _0x5c3399['CollaborationEvent']['USERS_ENTER']:this[_0x5436d1(0x1a7)](_0x57c871),this[_0x5436d1(0x14a)][_0x5436d1(0x3e8)](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)][_0x5436d1(0x203)]:this[_0x5436d1(0x148)](_0x57c871),this[_0x5436d1(0x14a)][_0x5436d1(0x3e8)](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)]['CHANGESET_ACK']:this[_0x5436d1(0x3cb)](),this[_0x5436d1(0x4b8)](),this[_0x5436d1(0x14a)]['next'](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)][_0x5436d1(0x174)]:this[_0x5436d1(0x1aa)][_0x5436d1(0x46e)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x5436d1(0x428)](_0x57c871)),this[_0x5436d1(0x14a)]['next'](_0x57c871);break;case _0x5c3399[_0x5436d1(0x3d6)][_0x5436d1(0x1ec)]:this[_0x5436d1(0x4bc)][_0x5436d1(0x4c3)](_0x57c871[_0x5436d1(0xf9)]),this[_0x5436d1(0x14a)]['next'](_0x57c871);break;default:this[_0x5436d1(0x14a)][_0x5436d1(0x3e8)](_0x57c871);}}catch(_0x354056){this[_0x5436d1(0x1aa)][_0x5436d1(0x46e)](_0x354056,_0x380f9a);}}[_0x4deb9c(0x1a7)](_0x16d7d6){const _0x4ba95c=_0x4deb9c;this[_0x4ba95c(0x4d4)][_0x4ba95c(0x1e8)](this['_unitID'],_0x16d7d6[_0x4ba95c(0xf9)]);}[_0x4deb9c(0x148)](_0x315329){const _0x49246f=_0x4deb9c;this['_memberService'][_0x49246f(0x44f)](this['_unitID'],_0x315329[_0x49246f(0xf9)]['memberID']);}async[_0x4deb9c(0x151)](_0x1747bb,_0x19e30b){const _0x18025a=_0x4deb9c;if(this[_0x18025a(0x230)]!==0x3||!this['_socket'])throw new Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x1747bb[_0x18025a(0x2aa)]===_0x5c3399[_0x18025a(0x3d6)]['SUBMIT_CHANGESET']&&(this[_0x18025a(0x43c)](),this[_0x18025a(0x390)](_0x1747bb)),this[_0x18025a(0xfa)][_0x18025a(0x151)]({'cmd':_0x1779e6[_0x18025a(0xf4)],'routeKey':_0x19e30b,'routeType':'','data':_0x1747bb});}catch(_0x352bab){this[_0x18025a(0x1aa)]['error'](_0x352bab);}}[_0x4deb9c(0x43c)](){const _0x205765=_0x4deb9c;var _0x5c6b31;this['_collaborationTimeoutTimer']=window[_0x205765(0x479)](()=>{const _0x2a1691=_0x205765;this[_0x2a1691(0x4ed)]=null,this['_messageService'][_0x2a1691(0x2a7)]({'type':_0x1c0df8['MessageType'][_0x2a1691(0x2b7)],'content':this[_0x2a1691(0x182)]['t']('session.collaboration-timeout')});},(_0x5c6b31=this[_0x205765(0x494)]['getConfig'](_0x1bc3ee))!=null?_0x5c6b31:0x4e20);}[_0x4deb9c(0x4b8)](){const _0x31e8d5=_0x4deb9c;this[_0x31e8d5(0x4ed)]&&(clearTimeout(this[_0x31e8d5(0x4ed)]),this[_0x31e8d5(0x4ed)]=null);}[_0x4deb9c(0x390)](_0x4e9edf){const _0x5b3c90=_0x4deb9c;if(!this[_0x5b3c90(0x30b)])return;const {data:_0x180616}=_0x4e9edf,{unitID:_0x59e238,changeset:_0x407749}=_0x180616,{mutations:_0x159c22,type:_0xe6ccf8}=_0x407749;this['_telemetryInfo']={'unitId':_0x59e238,'type':_0xe6ccf8,'startTime':performance[_0x5b3c90(0x3d8)](),'stopTime':0x0,'duration':0x0,'size':_0x5d818b(_0x159c22)};}[_0x4deb9c(0x3cb)](){const _0x1f2406=_0x4deb9c;if(this[_0x1f2406(0x30b)]){if(!this[_0x1f2406(0x212)]){this['_logService'][_0x1f2406(0x46e)]('[CollaborationSession]',_0x1f2406(0x26e));return;}this[_0x1f2406(0x212)][_0x1f2406(0x35c)]=performance[_0x1f2406(0x3d8)](),this[_0x1f2406(0x212)][_0x1f2406(0x2c9)]=this[_0x1f2406(0x212)][_0x1f2406(0x35c)]-this[_0x1f2406(0x212)][_0x1f2406(0x26a)],this[_0x1f2406(0x112)][_0x1f2406(0x211)](_0x4a3b8e,this[_0x1f2406(0x212)]),this['_telemetryInfo']=null;}}[_0x4deb9c(0x412)](){const _0x578f5a=_0x4deb9c;this[_0x578f5a(0x212)]=null;}},_0x3723aa['CollaborationSession']=_0x50f615([_0x29b6c4(0x2,_0x44f3cf['ILogService']),_0x29b6c4(0x3,_0x90d6c1[_0x4deb9c(0x27d)]),_0x29b6c4(0x4,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x29b6c4(0x5,_0x44f3cf['IConfigService']),_0x29b6c4(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x440)])),_0x29b6c4(0x7,_0x44f3cf['Inject'](_0x32fe7e)),_0x29b6c4(0x8,_0x44f3cf['Inject'](_0x523579)),_0x29b6c4(0x9,_0x44f3cf['Optional'](_0x2b7353['ITelemetryService']))],_0x3723aa['CollaborationSession']);var _0x286d1b=Object[_0x4deb9c(0x4f6)],_0x324b66=Object[_0x4deb9c(0x3d9)],_0x516b21=(_0x4b6291,_0x4b1a52,_0xb3b596,_0x60539a)=>{const _0xa34792=_0x4deb9c;for(var _0x5e61b5=_0x60539a>0x1?void 0x0:_0x60539a?_0x324b66(_0x4b1a52,_0xb3b596):_0x4b1a52,_0x2852d1=_0x4b6291[_0xa34792(0x17a)]-0x1,_0xcd57ea;_0x2852d1>=0x0;_0x2852d1--)(_0xcd57ea=_0x4b6291[_0x2852d1])&&(_0x5e61b5=(_0x60539a?_0xcd57ea(_0x4b1a52,_0xb3b596,_0x5e61b5):_0xcd57ea(_0x5e61b5))||_0x5e61b5);return _0x60539a&&_0x5e61b5&&_0x286d1b(_0x4b1a52,_0xb3b596,_0x5e61b5),_0x5e61b5;},_0x3fc46d=(_0x57a3e3,_0x3eaef7)=>(_0xe4bbe9,_0x2405e1)=>_0x3eaef7(_0xe4bbe9,_0x2405e1,_0x57a3e3);_0x3723aa[_0x4deb9c(0x433)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x75d050,_0x265f7d,_0x236c39,_0x296d7b,_0xbb4fc3,_0x414ac0){const _0x39a7d7=_0x4deb9c;super(),_0x434a2a(this,'_socket$',new _0x1837c6[(_0x39a7d7(0x17d))](void 0x0)),_0x434a2a(this,_0x39a7d7(0x18b),this[_0x39a7d7(0x246)][_0x39a7d7(0x4eb)]()),_0x434a2a(this,_0x39a7d7(0x475),null),_0x434a2a(this,_0x39a7d7(0x108),new Map()),_0x434a2a(this,_0x39a7d7(0xf7),new _0x1837c6[(_0x39a7d7(0x17d))](_0x4388c5['IDLE'])),_0x434a2a(this,_0x39a7d7(0x43a),this[_0x39a7d7(0xf7)][_0x39a7d7(0x4eb)]()),_0x434a2a(this,_0x39a7d7(0x315),!0x1),_0x434a2a(this,_0x39a7d7(0x2a3)),_0x434a2a(this,_0x39a7d7(0x22a),0x0),_0x434a2a(this,_0x39a7d7(0x1b6)),_0x434a2a(this,'_timeoutTimer'),(this[_0x39a7d7(0x25f)]=_0x75d050,this[_0x39a7d7(0x182)]=_0x265f7d,this[_0x39a7d7(0x31a)]=_0x236c39,this['_logService']=_0x296d7b,this['_configService']=_0xbb4fc3,this[_0x39a7d7(0x11a)]=_0x414ac0);}get[_0x4deb9c(0xfa)](){const _0x863027=_0x4deb9c;return this['_socket$'][_0x863027(0x22e)]();}['dispose'](){const _0xd7ea13=_0x4deb9c;super['dispose'](),this[_0xd7ea13(0x108)][_0xd7ea13(0x4cc)](_0x216336=>_0x216336[_0xd7ea13(0x241)]()),this[_0xd7ea13(0x108)]['clear'](),this[_0xd7ea13(0xf7)]['complete']();}async[_0x4deb9c(0x10f)](_0x5be3e2){const _0x27e100=_0x4deb9c;if(this[_0x27e100(0x108)]['has'](_0x5be3e2))return this[_0x27e100(0x108)][_0x27e100(0x38c)](_0x5be3e2);this[_0x27e100(0x27e)]();const _0x1e4ae2=this[_0x27e100(0x25f)]['createInstance'](_0x3723aa[_0x27e100(0x404)],_0x5be3e2,this['_socket$']['asObservable']());return this[_0x27e100(0x108)][_0x27e100(0x2b2)](_0x5be3e2,_0x1e4ae2),_0x1e4ae2;}[_0x4deb9c(0x2fb)](_0x342a4f){const _0x34bf1e=_0x4deb9c;var _0x1dc9f9;const _0x300bc4=this[_0x34bf1e(0x108)][_0x34bf1e(0x38c)](_0x342a4f);_0x300bc4&&(this[_0x34bf1e(0x108)][_0x34bf1e(0x312)](_0x342a4f),_0x300bc4[_0x34bf1e(0x44e)]()),this[_0x34bf1e(0x108)][_0x34bf1e(0x23b)]||(_0x1dc9f9=this['_socket'])==null||_0x1dc9f9[_0x34bf1e(0x44e)]();}[_0x4deb9c(0x489)](){const _0x12d322=_0x4deb9c;this[_0x12d322(0x22a)]=0x0,this[_0x12d322(0x2a3)]!=null&&(clearTimeout(this[_0x12d322(0x2a3)]),this[_0x12d322(0x2a3)]=null),this[_0x12d322(0x2d1)]();}[_0x4deb9c(0x396)](){const _0x3eba98=_0x4deb9c;var _0x24f371;const _0x219268=(_0x24f371=this['_configService'][_0x3eba98(0x2cd)](_0x58c006))!=null?_0x24f371:_0x2fe1b1,_0x5c3896=this[_0x3eba98(0x11a)][_0x3eba98(0x1c4)](_0x219268);return this[_0x3eba98(0x475)]=_0x5c3896,_0x5c3896;}[_0x4deb9c(0x27e)](){const _0x2cc51f=_0x4deb9c;var _0x45b91c,_0x347e7f;try{const _0xc71eed=(_0x347e7f=(_0x45b91c=this[_0x2cc51f(0xfa)])!=null?_0x45b91c:this[_0x2cc51f(0x475)])!=null?_0x347e7f:this[_0x2cc51f(0x396)]();if(_0xc71eed){const _0x144524=_0xc71eed[_0x2cc51f(0x151)];_0xc71eed[_0x2cc51f(0x151)]=_0x314158=>(this[_0x2cc51f(0x2e9)](),_0x144524[_0x2cc51f(0x3ba)](_0xc71eed,[_0x314158])),_0xc71eed[_0x2cc51f(0x421)][_0x2cc51f(0x138)](_0x6231f1=>this[_0x2cc51f(0x351)](_0xc71eed,_0x6231f1)),_0xc71eed[_0x2cc51f(0x1e7)][_0x2cc51f(0x4f9)](_0x3ab9e8[_0x2cc51f(0x215)](0x1))[_0x2cc51f(0x138)](_0x5de836=>this['_logService'][_0x2cc51f(0x46e)](_0x2cc51f(0x345),_0x5de836)),_0xc71eed[_0x2cc51f(0x13a)][_0x2cc51f(0x4f9)](_0x3ab9e8[_0x2cc51f(0x215)](0x1))[_0x2cc51f(0x138)](()=>{this['_onConnectionOpen'](_0xc71eed);}),_0xc71eed[_0x2cc51f(0x144)][_0x2cc51f(0x4f9)](_0x3ab9e8['take'](0x1))['subscribe'](_0x3f0f68=>{const _0x5c231d=_0x2cc51f;this[_0x5c231d(0x1aa)]['debug'](_0x5c231d(0x1ca),_0x5c231d(0x2bd),_0x3f0f68),this[_0x5c231d(0x218)]();});}}catch(_0x3146d2){this[_0x2cc51f(0x1aa)][_0x2cc51f(0x46e)](_0x3146d2),this[_0x2cc51f(0x218)]();}}['_onConnectionOpen'](_0x2bbf84){const _0x5c3323=_0x4deb9c;this[_0x5c3323(0x1aa)][_0x5c3323(0x3e6)](_0x5c3323(0x1ca),_0x5c3323(0x4b3)),_0x2bbf84[_0x5c3323(0x151)]({'cmd':_0x1779e6['HELLO']}),this[_0x5c3323(0x2e9)](),this['_listenToOfflineEvent']();}[_0x4deb9c(0x2ff)](){const _0x43bece=_0x4deb9c,_0x2b91af=()=>{const _0x447ac7=_0x47c1;this[_0x447ac7(0x1d7)](),this['_listenToOnlineEvent'](),window[_0x447ac7(0x400)](_0x447ac7(0x143),_0x2b91af);};window[_0x43bece(0x168)](_0x43bece(0x143),_0x2b91af);}[_0x4deb9c(0x1d7)](){const _0x23d80d=_0x4deb9c;this['_socketReady']=!0x1,this[_0x23d80d(0xf7)]['next'](_0x4388c5[_0x23d80d(0x135)]),this[_0x23d80d(0x246)][_0x23d80d(0x3e8)](null),this['_clearTimeoutTimer'](),this[_0x23d80d(0x37b)]();}['_onConnectionFailed'](){const _0x5c25d8=_0x4deb9c;var _0x2c046b;this[_0x5c25d8(0x1d7)](),this[_0x5c25d8(0x22a)]<((_0x2c046b=this[_0x5c25d8(0x494)][_0x5c25d8(0x2cd)](_0x3eddeb))!=null?_0x2c046b:0x3)?(this[_0x5c25d8(0x31a)][_0x5c25d8(0x2a7)]({'key':_0x5c25d8(0x2b0),'type':_0x1c0df8[_0x5c25d8(0x25c)][_0x5c25d8(0x435)],'content':this['_localeService']['t'](_0x5c25d8(0x325))}),this[_0x5c25d8(0x2d1)]()):(this[_0x5c25d8(0x31a)][_0x5c25d8(0x2a7)]({'key':_0x5c25d8(0x2b0),'type':_0x1c0df8[_0x5c25d8(0x25c)][_0x5c25d8(0x2b7)],'content':this['_localeService']['t']('session.connection-failed')}),this[_0x5c25d8(0x149)]());}[_0x4deb9c(0x149)](){const _0x3a5125=_0x4deb9c,_0x2596d8=()=>{const _0x351cdf=_0x47c1;this[_0x351cdf(0x489)](),window['removeEventListener'](_0x351cdf(0x1b5),_0x2596d8);};window[_0x3a5125(0x168)]('online',_0x2596d8),this[_0x3a5125(0x246)]['pipe'](_0x3ab9e8[_0x3a5125(0x39e)](_0x4085c=>!!_0x4085c),_0x3ab9e8['take'](0x1))[_0x3a5125(0x138)](()=>{window['removeEventListener']('online',_0x2596d8);});}['_tryReconnect'](){const _0x57e9d3=_0x4deb9c;var _0xb5602a;const _0x2f8258=this[_0x57e9d3(0x22a)],_0xba76e=_0x2f8258===0x0?0x0:((_0xb5602a=this[_0x57e9d3(0x494)]['getConfig'](_0x31135c))!=null?_0xb5602a:0x4e20)*0x2**_0x2f8258;this[_0x57e9d3(0x2a3)]=window[_0x57e9d3(0x479)](()=>{const _0x10adb1=_0x57e9d3;clearTimeout(this[_0x10adb1(0x2a3)]),this[_0x10adb1(0x2a3)]=null,this[_0x10adb1(0x27e)]();},_0xba76e),this[_0x57e9d3(0x22a)]+=0x1;}[_0x4deb9c(0x351)](_0x1851d0,_0x105c48){const _0x599d8e=_0x4deb9c,{cmd:_0x2e1937}=_0x105c48;_0x2e1937===_0x1779e6[_0x599d8e(0x303)]&&!this['_socketReady']&&(_0x1851d0[_0x599d8e(0x217)]=_0x105c48[_0x599d8e(0xf9)]['memberID'],this[_0x599d8e(0x246)][_0x599d8e(0x3e8)](_0x1851d0),this[_0x599d8e(0xf7)][_0x599d8e(0x3e8)](_0x4388c5[_0x599d8e(0x1df)]),this[_0x599d8e(0x315)]=!0x0,this[_0x599d8e(0x475)]=null),_0x2e1937===_0x1779e6[_0x599d8e(0x3d5)]&&this[_0x599d8e(0x11d)](),this['_rescheduleHeartbeat']();}[_0x4deb9c(0x2e9)](){const _0xb153b2=_0x4deb9c;var _0x42ab33;this['_clearHeartbeatTimer'](),this['_sendHeartbeatTimer']=window[_0xb153b2(0x479)](()=>this[_0xb153b2(0x234)](),(_0x42ab33=this[_0xb153b2(0x494)]['getConfig'](_0x4175a2))!=null?_0x42ab33:0x7530);}[_0x4deb9c(0x234)](){const _0x1ef863=_0x4deb9c;this[_0x1ef863(0xfa)][_0x1ef863(0x151)]({'cmd':_0x1779e6[_0x1ef863(0x3d5)]}),this[_0x1ef863(0x1a2)]();}[_0x4deb9c(0x1a2)](){const _0x507b2c=_0x4deb9c;var _0x5d7553;this['_timeoutTimer']=window['setTimeout'](()=>this[_0x507b2c(0x218)](),(_0x5d7553=this['_configService'][_0x507b2c(0x2cd)](_0x1bc3ee))!=null?_0x5d7553:0x4e20);}[_0x4deb9c(0x37b)](){const _0xd00934=_0x4deb9c;this[_0xd00934(0x1b6)]!=null&&(clearTimeout(this[_0xd00934(0x1b6)]),this[_0xd00934(0x1b6)]=null);}[_0x4deb9c(0x11d)](){const _0x2d51db=_0x4deb9c;this[_0x2d51db(0x41c)]!=null&&(clearTimeout(this[_0x2d51db(0x41c)]),this[_0x2d51db(0x41c)]=null);}},_0x3723aa['CollaborationSessionService']=_0x516b21([_0x3fc46d(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x3fc46d(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService'])),_0x3fc46d(0x2,_0x90d6c1['IMessageService']),_0x3fc46d(0x3,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x3fc46d(0x4,_0x44f3cf[_0x4deb9c(0x150)]),_0x3fc46d(0x5,_0x2f8f8b)],_0x3723aa[_0x4deb9c(0x433)]);var _0x5e68c6=Object[_0x4deb9c(0x4f6)],_0x43bdb4=Object[_0x4deb9c(0x3d9)],_0x40d14a=(_0x433e6e,_0x431152,_0x51fdc6,_0x146579)=>{const _0x3c692c=_0x4deb9c;for(var _0x2af9d3=_0x146579>0x1?void 0x0:_0x146579?_0x43bdb4(_0x431152,_0x51fdc6):_0x431152,_0x496305=_0x433e6e[_0x3c692c(0x17a)]-0x1,_0x13cb53;_0x496305>=0x0;_0x496305--)(_0x13cb53=_0x433e6e[_0x496305])&&(_0x2af9d3=(_0x146579?_0x13cb53(_0x431152,_0x51fdc6,_0x2af9d3):_0x13cb53(_0x2af9d3))||_0x2af9d3);return _0x146579&&_0x2af9d3&&_0x5e68c6(_0x431152,_0x51fdc6,_0x2af9d3),_0x2af9d3;},_0x58267a=(_0x212041,_0x4ec43e)=>(_0x485797,_0x3ffa6e)=>_0x4ec43e(_0x485797,_0x3ffa6e,_0x212041);let _0x8239a3=class{constructor(_0x43e74c,_0x1effe1,_0x4a787e){const _0x54eca2=_0x4deb9c;this[_0x54eca2(0x25f)]=_0x43e74c,this['_transformService']=_0x1effe1,this['_renderManagerService']=_0x4a787e;}[_0x4deb9c(0x178)](_0x47b940){const _0x88c90d=_0x4deb9c;this[_0x88c90d(0x4ce)](_0x47b940),this[_0x88c90d(0x17c)](_0x47b940);}[_0x4deb9c(0x3d0)](_0x4d5385){const _0x55ed70=_0x4deb9c,{unitID:_0x8479c1}=_0x4d5385,_0x3de0e8=this['_renderManagerService'][_0x55ed70(0x119)](_0x8479c1)['with'](_0x50f029[_0x55ed70(0x202)]),{redoCache:_0x28292c}=_0x3de0e8[_0x55ed70(0x35e)]();if(_0x28292c[_0x55ed70(0x17a)]===0x0)return _0x4d5385;let _0x4aa705=_0x44f3cf[_0x55ed70(0x45a)][_0x55ed70(0x2c4)](_0x4d5385[_0x55ed70(0x367)][0x0]);for(let _0x4b0737=0x0;_0x4b0737<_0x28292c[_0x55ed70(0x17a)];_0x4b0737++){const _0x2c1018={'id':'doc.mutation.rich-text-editing','params':{..._0x28292c[_0x4b0737]}},_0x3df697=this[_0x55ed70(0x3c2)][_0x55ed70(0x3ea)](_0x4aa705,_0x2c1018,!0x1);if(_0x5c3399['isTransformMutationFailure'](_0x3df697))throw _0x3df697['error'];_0x4aa705=_0x3df697['m1Prime'];}return{..._0x44f3cf[_0x55ed70(0x45a)][_0x55ed70(0x2c4)](_0x4d5385),'mutations':[_0x4aa705]};}['_transformUndoRedoStack'](_0x43d0cb){const _0x2262aa=_0x4deb9c,{unitID:_0xda7b3c}=_0x43d0cb,_0xcc212c=this[_0x2262aa(0x47c)]['getRenderById'](_0xda7b3c)['with'](_0x50f029['DocIMEInputManagerService']),{undoCache:_0x17d966,redoCache:_0x268480}=_0xcc212c[_0x2262aa(0x35e)]();if(_0x17d966[_0x2262aa(0x17a)]===0x0||_0x268480['length']===0x0)return;const _0x3f925a=[],_0x238014=[];let _0x386eab=_0x44f3cf[_0x2262aa(0x45a)][_0x2262aa(0x2c4)](_0x43d0cb[_0x2262aa(0x367)][0x0]),_0x31db24=_0x44f3cf['Tools'][_0x2262aa(0x2c4)](_0x43d0cb['mutations'][0x0]);for(let _0x36721c=_0x17d966[_0x2262aa(0x17a)]-0x1;_0x36721c>=0x0;_0x36721c--){const _0x15a5fd={'id':'doc.mutation.rich-text-editing','params':{..._0x17d966[_0x36721c]}},_0x27d60f={'id':_0x2262aa(0x190),'params':{..._0x268480[_0x36721c]}},_0x4082ea=this[_0x2262aa(0x3c2)][_0x2262aa(0x3ea)](_0x386eab,_0x15a5fd,!0x1),_0x30a959=this['_transformService']['transformMutation'](_0x31db24,_0x27d60f,!0x1);if(_0x5c3399['isTransformMutationFailure'](_0x4082ea))throw _0x4082ea[_0x2262aa(0x46e)];if(_0x5c3399[_0x2262aa(0x128)](_0x30a959))throw _0x30a959[_0x2262aa(0x46e)];_0x3f925a[_0x2262aa(0x103)](_0x4082ea[_0x2262aa(0x499)][_0x2262aa(0x3fd)]),_0x238014[_0x2262aa(0x103)](_0x30a959[_0x2262aa(0x499)][_0x2262aa(0x3fd)]),_0x386eab=_0x4082ea[_0x2262aa(0x3bb)],_0x31db24=_0x30a959[_0x2262aa(0x3bb)];}_0xcc212c[_0x2262aa(0x48d)]({'undoCache':_0x3f925a,'redoCache':_0x238014});}[_0x4deb9c(0x17c)](_0x34ed31){const _0x16acc4=_0x4deb9c,{unitID:_0x55b5a3}=_0x34ed31,_0x82c89a=this[_0x16acc4(0x47c)]['getRenderById'](_0x55b5a3)[_0x16acc4(0x3ee)](_0x50f029[_0x16acc4(0x202)]),_0x25edd1=_0x82c89a[_0x16acc4(0x1b0)]();if(_0x25edd1==null)return;const _0x2e7f21=[{'id':_0x16acc4(0x190),'params':{'unitId':_0x34ed31[_0x16acc4(0x282)],'actions':null,'textRanges':[_0x25edd1]}}],_0x4ff4e8=this[_0x16acc4(0x3c2)]['transformMutationsWithChangeset'](_0x34ed31,_0x2e7f21);if(!_0x5c3399[_0x16acc4(0x264)](_0x4ff4e8))throw _0x4ff4e8['error'];const _0x34b2f4=_0x4ff4e8['m2Prime'][0x0]['params']['textRanges'];Array[_0x16acc4(0x4be)](_0x34b2f4)&&_0x34b2f4[_0x16acc4(0x17a)]&&_0x82c89a[_0x16acc4(0x1a8)](_0x34b2f4[0x0]);}};_0x8239a3=_0x40d14a([_0x58267a(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['Injector'])),_0x58267a(0x1,_0x5c3399[_0x4deb9c(0x453)]),_0x58267a(0x2,_0x278226[_0x4deb9c(0x2db)])],_0x8239a3);var _0xc36bab=Object[_0x4deb9c(0x4f6)],_0x594613=Object[_0x4deb9c(0x3d9)],_0x564be3=(_0x2cf51f,_0x23fb40,_0x1958a2,_0x6c8e4a)=>{const _0x432a09=_0x4deb9c;for(var _0x47ef9d=_0x6c8e4a>0x1?void 0x0:_0x6c8e4a?_0x594613(_0x23fb40,_0x1958a2):_0x23fb40,_0x58faf4=_0x2cf51f[_0x432a09(0x17a)]-0x1,_0x2e8340;_0x58faf4>=0x0;_0x58faf4--)(_0x2e8340=_0x2cf51f[_0x58faf4])&&(_0x47ef9d=(_0x6c8e4a?_0x2e8340(_0x23fb40,_0x1958a2,_0x47ef9d):_0x2e8340(_0x47ef9d))||_0x47ef9d);return _0x6c8e4a&&_0x47ef9d&&_0xc36bab(_0x23fb40,_0x1958a2,_0x47ef9d),_0x47ef9d;},_0x99bb1b=(_0x27a986,_0x266929)=>(_0x318fd7,_0xd3c972)=>_0x266929(_0x318fd7,_0xd3c972,_0x27a986);_0x3723aa[_0x4deb9c(0x1d5)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x4c3fba,_0x28e381,_0x3833f2,_0x59a1bd,_0x34d09b){const _0x2d500c=_0x4deb9c;super(),_0x434a2a(this,'_cachedData',new Map()),_0x434a2a(this,_0x2d500c(0x38d),new Map()),_0x434a2a(this,_0x2d500c(0x102),!0x1),(this[_0x2d500c(0x494)]=_0x4c3fba,this[_0x2d500c(0x496)]=_0x28e381,this['_beforeCloseService']=_0x3833f2,this['_localeService']=_0x59a1bd,this[_0x2d500c(0x2af)]=_0x34d09b,this[_0x2d500c(0x4d0)]());}['disableLocalCache'](){this['_disabled']=!0x0;}['enableLocalCache'](){this['_disabled']=!0x1;}[_0x4deb9c(0x241)](){const _0x43fe24=_0x4deb9c;this['exhaustSavingTask']()[_0x43fe24(0x15b)](()=>super[_0x43fe24(0x241)]());}async[_0x4deb9c(0x286)](_0x4764ab){const _0x143cd3=_0x4deb9c;return this[_0x143cd3(0x102)]?null:this['_localStorageService'][_0x143cd3(0x195)](_0x5cae74(_0x4764ab));}async[_0x4deb9c(0x106)](_0xd45abf,_0x1c5ca0){const _0x22c5f4=_0x4deb9c;return!!this['_localStorageService'][_0x22c5f4(0x3db)](_0xd45abf,_0x1c5ca0);}[_0x4deb9c(0x2c8)](_0xc4c36a,_0x58cc49,_0x42ec12,_0x146b43){const _0x2c7d97=_0x4deb9c,_0x50251d=this[_0x2c7d97(0x2af)][_0x2c7d97(0x3a3)](_0xc4c36a);this[_0x2c7d97(0x16f)]['set'](_0xc4c36a,{'unitID':_0xc4c36a,'type':_0x58cc49,'awaitingChangeset':_0x42ec12,'mutations':_0x146b43,'rev':_0x50251d}),this[_0x2c7d97(0x38d)][_0x2c7d97(0x17f)](_0xc4c36a)||this['_scheduleSaving'](_0xc4c36a);}[_0x4deb9c(0x354)](_0x189523){const _0x57c251=_0x4deb9c,_0x36be57=this['_getSaveTimeout']();_0x36be57===0x0?this[_0x57c251(0x1e5)](_0x189523):this['_saveTaskMap'][_0x57c251(0x2b2)](_0x189523,setTimeout(()=>this[_0x57c251(0x1e5)](_0x189523),_0x36be57));}[_0x4deb9c(0x4df)](){const _0x4bac40=_0x4deb9c;var _0x7005d9;return(_0x7005d9=this['_configService'][_0x4bac40(0x2cd)](_0x4c3652))!=null?_0x7005d9:0x3e8;}['_saveCache'](_0x30ac25){const _0x1154d2=_0x4deb9c,_0x552956=this[_0x1154d2(0x38d)][_0x1154d2(0x38c)](_0x30ac25);return _0x552956!==void 0x0&&window[_0x1154d2(0x19e)](_0x552956),this[_0x1154d2(0x496)][_0x1154d2(0x3db)](_0x5cae74(_0x30ac25),this[_0x1154d2(0x16f)][_0x1154d2(0x38c)](_0x30ac25))['then'](()=>this[_0x1154d2(0x38d)]['delete'](_0x30ac25));}async[_0x4deb9c(0x40e)](){const _0x24ebaf=_0x4deb9c,_0x4d6198=[];this[_0x24ebaf(0x38d)][_0x24ebaf(0x4cc)]((_0x155847,_0x197250)=>{const _0x17d87c=_0x24ebaf;window[_0x17d87c(0x19e)](_0x155847),_0x4d6198[_0x17d87c(0x4c0)](this[_0x17d87c(0x1e5)](_0x197250)[_0x17d87c(0x15b)](()=>{const _0x2a821e=_0x17d87c;this[_0x2a821e(0x38d)][_0x2a821e(0x312)](_0x197250);}));}),await Promise['all'](_0x4d6198);}[_0x4deb9c(0x4d0)](){const _0x2e0ec8=_0x4deb9c;this[_0x2e0ec8(0x446)](this['_beforeCloseService'][_0x2e0ec8(0x292)](()=>{const _0x3a275d=_0x2e0ec8;if(this[_0x3a275d(0x38d)][_0x3a275d(0x23b)])return this[_0x3a275d(0x182)]['t'](_0x3a275d(0x209));}));}},_0x3723aa[_0x4deb9c(0x1d5)]=_0x564be3([_0x99bb1b(0x0,_0x44f3cf[_0x4deb9c(0x150)]),_0x99bb1b(0x1,_0x44f3cf[_0x4deb9c(0x2ee)]),_0x99bb1b(0x2,_0x90d6c1[_0x4deb9c(0x27d)]),_0x99bb1b(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x440)])),_0x99bb1b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)]))],_0x3723aa[_0x4deb9c(0x1d5)]);function _0x5cae74(_0x52a918){const _0x3340f6=_0x4deb9c;return _0x3340f6(0x45c)+_0x52a918;}var _0x430a8d=Object['defineProperty'],_0x29db52=Object['getOwnPropertyDescriptor'],_0x22a330=(_0x588d1e,_0x37a8ca,_0x1b125a,_0x28408)=>{const _0x2dafcd=_0x4deb9c;for(var _0x227644=_0x28408>0x1?void 0x0:_0x28408?_0x29db52(_0x37a8ca,_0x1b125a):_0x37a8ca,_0x3de7f1=_0x588d1e[_0x2dafcd(0x17a)]-0x1,_0x3a08a2;_0x3de7f1>=0x0;_0x3de7f1--)(_0x3a08a2=_0x588d1e[_0x3de7f1])&&(_0x227644=(_0x28408?_0x3a08a2(_0x37a8ca,_0x1b125a,_0x227644):_0x3a08a2(_0x227644))||_0x227644);return _0x28408&&_0x227644&&_0x430a8d(_0x37a8ca,_0x1b125a,_0x227644),_0x227644;},_0xc37208=(_0x269b7b,_0x36cdcc)=>(_0x5134f2,_0x3578dc)=>_0x36cdcc(_0x5134f2,_0x3578dc,_0x269b7b);function _0x3ff505(_0x867f1d){const _0x5390e6=_0x4deb9c,{unitID:_0x2cee13,mutations:_0x3fc665}=_0x867f1d;return{'unitId':_0x2cee13,'subUnitId':_0x3fc665[0x0]['params'][_0x5390e6(0x1cd)]};}let _0x356d67=class{constructor(_0x3c343e,_0x582672,_0x500f50){const _0x106713=_0x4deb9c;this[_0x106713(0x25f)]=_0x3c343e,this[_0x106713(0x3c2)]=_0x582672,this[_0x106713(0x4b9)]=_0x500f50;}[_0x4deb9c(0x3f8)](_0x42428a){const _0xcd4eb8=_0x4deb9c;var _0x3e1556,_0x5f0575,_0x58e004,_0x3a60b3,_0x350f45;const _0x499684=this[_0xcd4eb8(0x25f)][_0xcd4eb8(0x38c)](_0x5848ce['SheetsSelectionsService']),{unitId:_0x5ecfc1,subUnitId:_0x2543c7}=_0x3ff505(_0x42428a),_0x3501ef=_0x499684[_0xcd4eb8(0x4fa)](_0x5ecfc1)[_0xcd4eb8(0x141)](),_0xecac5a=(_0x5f0575=(_0x3e1556=this[_0xcd4eb8(0x4b9)][_0xcd4eb8(0x100)](_0x5ecfc1))==null?void 0x0:_0x3e1556[_0xcd4eb8(0x4c5)]())==null?void 0x0:_0x5f0575[_0xcd4eb8(0x456)]();if(_0x3501ef[_0xcd4eb8(0x17a)]===0x0||!_0x5ecfc1||!_0x2543c7)return;const _0x5af539=[{'id':_0x5848ce[_0xcd4eb8(0x3b8)]['id'],'params':{'unitId':_0x5ecfc1,'subUnitId':_0xecac5a,'selections':_0x44f3cf[_0xcd4eb8(0x45a)][_0xcd4eb8(0x2c4)](_0x3501ef)}}],_0x277ebe=this[_0xcd4eb8(0x3c2)][_0xcd4eb8(0x394)](_0x42428a,_0x5af539);if(!_0x5c3399[_0xcd4eb8(0x264)](_0x277ebe))throw _0x277ebe[_0xcd4eb8(0x46e)];const _0x37bf84=(_0x350f45=(_0x3a60b3=(_0x58e004=_0x277ebe[_0xcd4eb8(0x499)][0x0])==null?void 0x0:_0x58e004[_0xcd4eb8(0x3fd)])==null?void 0x0:_0x3a60b3[_0xcd4eb8(0x34d)])!=null?_0x350f45:_0x3501ef;Array[_0xcd4eb8(0x4be)](_0x37bf84)&&_0x37bf84[_0xcd4eb8(0x17a)]&&this['_injector'][_0xcd4eb8(0x38c)](_0x44f3cf[_0xcd4eb8(0x243)])[_0xcd4eb8(0x450)](_0x5848ce['SetSelectionsOperation']['id'],{'unitId':_0x5ecfc1,'subUnitId':_0x2543c7,'selections':_0x37bf84});}};_0x356d67=_0x22a330([_0xc37208(0x0,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x483)])),_0xc37208(0x1,_0x5c3399[_0x4deb9c(0x453)]),_0xc37208(0x2,_0x44f3cf[_0x4deb9c(0x165)])],_0x356d67);const _0x27229c=_0x44f3cf[_0x4deb9c(0x1e3)](_0x4deb9c(0x332));var _0x14af59=(_0x220786=>(_0x220786[_0x220786[_0x4deb9c(0x2a9)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x220786[_0x220786[_0x4deb9c(0x270)]=0x1]=_0x4deb9c(0x270),_0x220786))(_0x14af59||{});const _0x27b9ff=0x7530,_0x34df9e=_0x4deb9c(0x183);class _0x19a53f extends _0x44f3cf['Disposable']{constructor(){const _0x3fe698=_0x4deb9c;super(),_0x434a2a(this,_0x3fe698(0x331),_0x44f3cf[_0x3fe698(0x45a)][_0x3fe698(0x4f7)]()),_0x434a2a(this,_0x3fe698(0x158),new Set()),_0x434a2a(this,_0x3fe698(0x36c),new Map()),_0x434a2a(this,_0x3fe698(0x488),null),_0x434a2a(this,_0x3fe698(0x18e),new Map()),_0x434a2a(this,_0x3fe698(0x280),new Map()),this[_0x3fe698(0x4fb)]();}['dispose'](){const _0x52591b=_0x4deb9c;super[_0x52591b(0x241)](),this['_clearOtherTimers'][_0x52591b(0x4cc)]((_0x417abc,_0x71dc0)=>this['_removeClearOtherTimer'](_0x71dc0)),this[_0x52591b(0x488)]&&window[_0x52591b(0x2ac)](this[_0x52591b(0x488)]);}[_0x4deb9c(0x1ea)](_0x759504){const _0x412b99=_0x4deb9c;return this['_ensureSubject'](_0x759504)[_0x412b99(0x4f9)](_0x1837c6[_0x412b99(0x4bf)]());}['editingUnit'](_0x9e4c5d){const _0x2c368b=_0x4deb9c;this[_0x2c368b(0x158)][_0x2c368b(0x23b)]===0x0&&this[_0x2c368b(0x4b0)](),this[_0x2c368b(0x158)]['add'](_0x9e4c5d),this['_send']({'type':0x0,'memberID':this['_id'],'unitIDs':[_0x9e4c5d],'isForwarded':!0x1});}['disposeUnit'](_0x2ce064){const _0x12ce25=_0x4deb9c;this[_0x12ce25(0x158)][_0x12ce25(0x312)](_0x2ce064),this['_selfUnitIDs'][_0x12ce25(0x23b)]===0x0&&this[_0x12ce25(0x488)]&&window[_0x12ce25(0x2ac)](this[_0x12ce25(0x488)]);}[_0x4deb9c(0x4fb)](){const _0x1c325e=_0x4deb9c;this[_0x1c325e(0x446)](_0x44f3cf[_0x1c325e(0x133)](_0x1837c6[_0x1c325e(0x4db)](window,_0x1c325e(0x188))[_0x1c325e(0x138)](_0x37e158=>{const _0x3b14a6=_0x1c325e;if(_0x37e158[_0x3b14a6(0x2e0)]!==_0x34df9e||!_0x37e158['newValue'])return;const _0x458366=JSON[_0x3b14a6(0x4ab)](_0x37e158['newValue']);this['_handleEvent'](_0x458366);}))),window[_0x1c325e(0x168)](_0x1c325e(0x3e3),()=>this[_0x1c325e(0x352)]({'type':0x1,'memberID':this[_0x1c325e(0x331)],'unitIDs':Array[_0x1c325e(0x4de)](this[_0x1c325e(0x158)])}));}[_0x4deb9c(0x3bc)](_0x570ed5){const _0x6d299e=_0x4deb9c;switch(_0x570ed5[_0x6d299e(0x4f1)]){case 0x0:this['_handleJoinEvent'](_0x570ed5);break;case 0x1:this[_0x6d299e(0x123)](_0x570ed5);break;case 0x2:this[_0x6d299e(0x132)](_0x570ed5);break;}}[_0x4deb9c(0x26c)](_0x3ff48c){const _0x500b02=_0x4deb9c,{unitIDs:_0x1431b8,memberID:_0x53cb24,isForwarded:_0x4ba938}=_0x3ff48c;_0x1431b8[_0x500b02(0x4cc)](_0x23e4d1=>{const _0xabb020=_0x500b02;if(!_0x4ba938&&this[_0xabb020(0x36c)]['has'](_0x23e4d1)&&this[_0xabb020(0x3c3)](_0x23e4d1)[_0xabb020(0x3e8)](0x1),!this['_unitOnClients']['has'](_0x23e4d1)||!this[_0xabb020(0x36c)][_0xabb020(0x38c)](_0x23e4d1)[_0xabb020(0x17f)](_0x53cb24)){const _0x1df859=this[_0xabb020(0x36c)][_0xabb020(0x38c)](_0x23e4d1)||new Set();_0x1df859[_0xabb020(0x117)](_0x53cb24),this[_0xabb020(0x36c)][_0xabb020(0x2b2)](_0x23e4d1,_0x1df859),this['_scheduleClearOtherTimer'](_0x53cb24);}}),_0x4ba938||this[_0x500b02(0x352)]({'type':0x0,'memberID':this[_0x500b02(0x331)],'unitIDs':[...this['_selfUnitIDs']],'isForwarded':!0x0});}['_scheduleClearOtherTimer'](_0x32c2cd){const _0x1ddd7a=_0x4deb9c;this['_removeClearOtherTimer'](_0x32c2cd);const _0x32e55b=window[_0x1ddd7a(0x479)](()=>{const _0x36fce2=_0x1ddd7a;this[_0x36fce2(0x36c)][_0x36fce2(0x4cc)](_0xc087a5=>{const _0x4c1b78=_0x36fce2;_0xc087a5[_0x4c1b78(0x312)](_0x32c2cd);});},_0x27b9ff*0x2);this[_0x1ddd7a(0x18e)]['set'](_0x32c2cd,_0x32e55b);}[_0x4deb9c(0x2ef)](_0x1558ac){const _0x19dba9=_0x4deb9c;if(this[_0x19dba9(0x18e)]['has'](_0x1558ac)){const _0x2c512c=this[_0x19dba9(0x18e)][_0x19dba9(0x38c)](_0x1558ac);_0x2c512c&&window[_0x19dba9(0x19e)](_0x2c512c),this[_0x19dba9(0x18e)][_0x19dba9(0x2b2)](_0x1558ac,null);}}[_0x4deb9c(0x123)](_0x8dd8d9){const _0x3f66b5=_0x4deb9c,{memberID:_0x5e6f45,unitIDs:_0x181f5e}=_0x8dd8d9;_0x181f5e[_0x3f66b5(0x4cc)](_0x1876f8=>{const _0x323530=_0x3f66b5;var _0x2b4621;const _0x3b8133=this[_0x323530(0x36c)][_0x323530(0x38c)](_0x1876f8);_0x3b8133&&(_0x3b8133['delete'](_0x5e6f45),(_0x2b4621=this[_0x323530(0x3c3)](_0x1876f8))==null||_0x2b4621[_0x323530(0x3e8)](_0x3b8133[_0x323530(0x23b)]===0x0?0x0:0x1));}),this[_0x3f66b5(0x2ef)](_0x5e6f45);}['_handleHeartbeatEvent'](_0x4829c2){const _0x2272e7=_0x4deb9c;this[_0x2272e7(0x170)](_0x4829c2[_0x2272e7(0x217)]);}[_0x4deb9c(0x352)](_0x148dfa){const _0xf62a57=_0x4deb9c;localStorage[_0xf62a57(0x3db)](_0x34df9e,JSON['stringify'](_0x148dfa));}[_0x4deb9c(0x4b0)](){const _0x1e5b12=_0x4deb9c;this['_heartbeatTimer']=window[_0x1e5b12(0x4c9)](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},_0x27b9ff);}[_0x4deb9c(0x3c3)](_0x18c19f){const _0x3d62e4=_0x4deb9c;return this[_0x3d62e4(0x280)][_0x3d62e4(0x17f)](_0x18c19f)||this[_0x3d62e4(0x280)][_0x3d62e4(0x2b2)](_0x18c19f,new _0x1837c6['BehaviorSubject'](0x0)),this[_0x3d62e4(0x280)][_0x3d62e4(0x38c)](_0x18c19f);}}function _0x540863(_0x5539a6){const _0x104b5c=_0x4deb9c;let _0x20984c='';for(const _0x344eb8 of _0x5539a6){const {startOffset:_0x466a45,endOffset:_0x3389a5,isActive:_0x53e0e6}=_0x344eb8;_0x20984c[_0x104b5c(0x17a)]&&(_0x20984c+=','),_0x20984c+=_0x466a45+':'+_0x3389a5+':'+(_0x53e0e6?'1':'0');}return _0x20984c;}function _0x58a905(_0x4036a8){const _0x29071c=_0x4deb9c,_0x9e0e88=_0x4036a8['split'](','),_0x51486d=[];for(const _0x5190c5 of _0x9e0e88){const [_0x263eba,_0x47c492,_0x28e8d4]=_0x5190c5['split'](':');_0x51486d[_0x29071c(0x4c0)]({'startOffset':Number(_0x263eba),'endOffset':Number(_0x47c492),'collapsed':_0x263eba===_0x47c492,'isActive':_0x28e8d4==='1'});}return _0x51486d[_0x29071c(0x50c)](_0x99ea32=>_0x99ea32[_0x29071c(0x2d5)])||(_0x51486d[0x0][_0x29071c(0x2d5)]=!0x0),_0x51486d;}class _0x47cf83 extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(){const _0x18e5e6=_0x4deb9c;super(...arguments),_0x434a2a(this,_0x18e5e6(0x392),new _0x1837c6[(_0x18e5e6(0x17d))](null)),_0x434a2a(this,_0x18e5e6(0x14b),this[_0x18e5e6(0x392)]['asObservable']());}[_0x4deb9c(0x2ca)](_0x2967e1){const _0x404b6b=_0x4deb9c,{unitID:_0x29f118,memberID:_0x31fd24,textRanges:_0x9934a5}=_0x2967e1,_0x4d03be=_0x540863(_0x9934a5),_0x4e13ca={'unitID':_0x29f118,'memberID':_0x31fd24,'selection':_0x4d03be};this[_0x404b6b(0x392)]['next'](_0x4e13ca);}}var _0x248887=Object[_0x4deb9c(0x4f6)],_0x4d0ba3=Object[_0x4deb9c(0x3d9)],_0x10db0d=(_0x46f1f5,_0x3da4f0,_0x47ea89,_0x11e717)=>{const _0x11ff1d=_0x4deb9c;for(var _0x32dc79=_0x11e717>0x1?void 0x0:_0x11e717?_0x4d0ba3(_0x3da4f0,_0x47ea89):_0x3da4f0,_0x388655=_0x46f1f5[_0x11ff1d(0x17a)]-0x1,_0x2eb188;_0x388655>=0x0;_0x388655--)(_0x2eb188=_0x46f1f5[_0x388655])&&(_0x32dc79=(_0x11e717?_0x2eb188(_0x3da4f0,_0x47ea89,_0x32dc79):_0x2eb188(_0x32dc79))||_0x32dc79);return _0x11e717&&_0x32dc79&&_0x248887(_0x3da4f0,_0x47ea89,_0x32dc79),_0x32dc79;},_0xe82381=(_0x182c57,_0x16851e)=>(_0x57bee1,_0x4d3073)=>_0x16851e(_0x57bee1,_0x4d3073,_0x182c57);let _0x2c5796=class{constructor(_0x659310,_0x5c09c6){const _0x5c0175=_0x4deb9c;this[_0x5c0175(0x25f)]=_0x659310,this['_transformService']=_0x5c09c6;}['transformSelections'](_0x50d82f){const _0x399978=_0x4deb9c;var _0x193442;const _0x57f499=this['_injector'][_0x399978(0x38c)](_0x495201[_0x399978(0x432)]),_0x443bd3=(_0x193442=_0x57f499[_0x399978(0x21f)]())!=null?_0x193442:[];if(_0x443bd3['length']===0x0)return;const _0x38508a=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x50d82f[_0x399978(0x282)],'actions':null,'textRanges':_0x443bd3}}],_0x4f804b=this['_transformService']['transformMutationsWithChangeset'](_0x50d82f,_0x38508a);if(!_0x5c3399[_0x399978(0x264)](_0x4f804b))throw _0x4f804b[_0x399978(0x46e)];const _0xa68ee=_0x4f804b[_0x399978(0x499)][0x0][_0x399978(0x3fd)][_0x399978(0x23f)];Array['isArray'](_0xa68ee)&&_0xa68ee[_0x399978(0x17a)]&&_0x57f499[_0x399978(0x314)](_0xa68ee,!0x1);}};_0x2c5796=_0x10db0d([_0xe82381(0x0,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x483)])),_0xe82381(0x1,_0x5c3399[_0x4deb9c(0x453)])],_0x2c5796);const _0x3f0bb1=new Set([_0x5848ce[_0x4deb9c(0x45d)]['id']]);function _0x12777d(_0x1241bd,_0x212f45,_0x538879,_0x11391a,_0x34f810){const _0x5c2eef=_0x4deb9c;var _0x4c0309,_0x299771,_0x4df2c0,_0x446caa;const _0x533f94=[];for(const _0x1bfb68 of _0x1241bd)if(_0x3f0bb1[_0x5c2eef(0x17f)](_0x1bfb68['id'])){if(_0x533f94[_0x5c2eef(0x17a)]>0x0)break;_0x533f94['push'](_0x1bfb68);break;}else _0x533f94[_0x5c2eef(0x4c0)](_0x1bfb68);const _0x2997f0=(_0x299771=(_0x4c0309=_0x34f810[_0x5c2eef(0x2d2)]())==null?void 0x0:_0x4c0309[_0x5c2eef(0x12f)])!=null?_0x299771:_0x5c2eef(0x273),_0x63ccfe=(_0x446caa=(_0x4df2c0=_0x34f810[_0x5c2eef(0x2d2)]())==null?void 0x0:_0x4df2c0['memberID'])!=null?_0x446caa:_0x5c2eef(0x273);return{'changeset':{'unitID':_0x212f45,'type':_0x5c3399['mapDocumentTypeToUniverType'](_0x538879[_0x5c2eef(0x175)](_0x212f45)),'baseRev':_0x11391a[_0x5c2eef(0x3a3)](_0x212f45),'revision':0x0,'userID':_0x2997f0,'memberID':_0x63ccfe,'mutations':_0x533f94},'pendingMutations':_0x1241bd[_0x5c2eef(0x2fa)](_0x533f94[_0x5c2eef(0x17a)])};}function _0x125c7e(_0x33725d,_0x476e04,_0x4e4ce5,_0x227bdd,_0x423e30){const _0x47d668=_0x4deb9c;var _0xb9ae40,_0x1bac5f,_0x2668f,_0x3db905;const _0x2c69e0=[_0x33725d['reduce']((_0x3dd6a5,_0x15fa9e)=>{const _0x40ff8d=_0x47c1;var _0x5a3381;const {id:_0x2f1182}=_0x3dd6a5,{id:_0x540bbe,type:_0x757b90}=_0x15fa9e,_0x136c36=(_0x5a3381=_0x3dd6a5['params'])!=null?_0x5a3381:{'actions':null},_0x37ca9c=_0x15fa9e[_0x40ff8d(0x3fd)];if(_0x2f1182&&_0x2f1182!==_0x540bbe)throw new Error(_0x40ff8d(0x41d)+_0x2f1182+_0x40ff8d(0x293)+_0x540bbe+'.');return{..._0x3dd6a5,'id':_0x540bbe,'type':_0x757b90,'params':{'unitId':_0x37ca9c[_0x40ff8d(0x380)],'textRanges':_0x37ca9c[_0x40ff8d(0x23f)],'actions':_0x44f3cf[_0x40ff8d(0x44c)]['compose'](_0x136c36['actions'],_0x37ca9c[_0x40ff8d(0x3fe)])}};},{})],_0xa348cb=(_0x1bac5f=(_0xb9ae40=_0x423e30['getCurrentUser']())==null?void 0x0:_0xb9ae40[_0x47d668(0x12f)])!=null?_0x1bac5f:_0x47d668(0x273),_0x4e50bf=(_0x3db905=(_0x2668f=_0x423e30[_0x47d668(0x2d2)]())==null?void 0x0:_0x2668f[_0x47d668(0x217)])!=null?_0x3db905:_0x47d668(0x273);return{'changeset':{'unitID':_0x476e04,'type':_0x5c3399[_0x47d668(0x205)](_0x4e4ce5[_0x47d668(0x175)](_0x476e04)),'baseRev':_0x227bdd['getCurrentRevForDocument'](_0x476e04),'revision':0x0,'userID':_0xa348cb,'memberID':_0x4e50bf,'mutations':_0x2c69e0},'pendingMutations':[]};}const _0x4f7f45={'id':_0x5848ce[_0x4deb9c(0x139)]['id'],'type':_0x44f3cf['CommandType'][_0x4deb9c(0x3b0)],'params':{}};var _0x56aa93=Object['defineProperty'],_0x8750b4=Object['getOwnPropertyDescriptor'],_0x2bdc29=(_0x471ef3,_0x7fcaa1,_0x28ed6c,_0x342e67)=>{for(var _0x1b799c=_0x342e67>0x1?void 0x0:_0x342e67?_0x8750b4(_0x7fcaa1,_0x28ed6c):_0x7fcaa1,_0x3f6b66=_0x471ef3['length']-0x1,_0x5dd859;_0x3f6b66>=0x0;_0x3f6b66--)(_0x5dd859=_0x471ef3[_0x3f6b66])&&(_0x1b799c=(_0x342e67?_0x5dd859(_0x7fcaa1,_0x28ed6c,_0x1b799c):_0x5dd859(_0x1b799c))||_0x1b799c);return _0x342e67&&_0x1b799c&&_0x56aa93(_0x7fcaa1,_0x28ed6c,_0x1b799c),_0x1b799c;},_0x56d55b=(_0x339f58,_0x29c2c0)=>(_0x37f78a,_0x5349d8)=>_0x29c2c0(_0x37f78a,_0x5349d8,_0x339f58),_0x1a5e20=(_0x376ebe=>(_0x376ebe['NOT_COLLAB']='not_collab',_0x376ebe['SYNCED']=_0x4deb9c(0x2a8),_0x376ebe[_0x4deb9c(0x3ff)]='pending',_0x376ebe[_0x4deb9c(0x224)]='awaiting',_0x376ebe['AWAITING_WITH_PENDING']=_0x4deb9c(0x3a9),_0x376ebe[_0x4deb9c(0x28a)]=_0x4deb9c(0x4d9),_0x376ebe[_0x4deb9c(0x3d2)]='conflict',_0x376ebe[_0x4deb9c(0x135)]=_0x4deb9c(0x143),_0x376ebe))(_0x1a5e20||{});class _0x53c60b{constructor(_0xd1865d,_0x144aee,_0x36d06d,_0x184ff7,_0x9e161f,_0x377714,_0x286db7,_0x5eb5d4,_0x702fcf){const _0x164e07=_0x4deb9c;_0x434a2a(this,_0x164e07(0x12d),null),_0x434a2a(this,'_pendingMutations',[]),(this['unitID']=_0xd1865d,this['type']=_0x144aee,this['_handler']=_0x9e161f,this['_commandService']=_0x377714,this[_0x164e07(0x3ef)]=_0x286db7,this[_0x164e07(0x2af)]=_0x5eb5d4,this[_0x164e07(0x3d7)]=_0x702fcf,this[_0x164e07(0x12d)]=_0x36d06d,this[_0x164e07(0x268)]=_0x184ff7);}[_0x4deb9c(0x2d4)](_0x4d745a){const _0x3adc43=_0x4deb9c,_0x362aa8=this[_0x3adc43(0x2af)][_0x3adc43(0x3a3)](this['unitID']);return _0x4d745a[_0x3adc43(0x194)]>_0x362aa8+0x1?(this[_0x3adc43(0x323)][_0x3adc43(0x32f)]({'from':_0x362aa8,'to':_0x4d745a[_0x3adc43(0x194)]-0x1}),!0x0):!0x1;}[_0x4deb9c(0x309)](_0x2f5d43){const _0x4b2c97=_0x4deb9c;this[_0x4b2c97(0x3ef)][_0x4b2c97(0x24a)](this[_0x4b2c97(0x282)],_0x2f5d43);}['_transformSelections'](_0x5a10d1){const _0x3e34b8=_0x4deb9c;var _0x254788,_0x56f793;(_0x56f793=(_0x254788=this[_0x3e34b8(0x323)])[_0x3e34b8(0x49c)])==null||_0x56f793[_0x3e34b8(0x2d0)](_0x254788,_0x5a10d1);}[_0x4deb9c(0x4d2)](_0x4f474c){const _0x10d8ac=_0x4deb9c;var _0x57d24a,_0x429985;return(_0x429985=(_0x57d24a=this[_0x10d8ac(0x323)])['onTransformIME'])==null?void 0x0:_0x429985[_0x10d8ac(0x2d0)](_0x57d24a,_0x4f474c);}[_0x4deb9c(0x436)](_0x2848d9){const _0x319755=_0x4deb9c;var _0x5e75fe,_0x31a45f,_0x137cb4;return(_0x137cb4=(_0x31a45f=(_0x5e75fe=this[_0x319755(0x323)])[_0x319755(0x37f)])==null?void 0x0:_0x31a45f['call'](_0x5e75fe,_0x2848d9))!=null?_0x137cb4:_0x2848d9;}['_syncEditingCollabCursor'](_0x5dfd65){const _0x40cd04=_0x4deb9c;var _0x2deeed,_0x5efea7;if(this[_0x40cd04(0x4f1)]===_0x3bfee1[_0x40cd04(0x350)]){const {unitID:_0x49f99b,mutations:_0x5d35e6,memberID:_0x177f7a}=_0x5dfd65,_0x55a583=_0x5d35e6[0x0]['params'][_0x40cd04(0x23f)];Array[_0x40cd04(0x4be)](_0x55a583)&&_0x55a583[_0x40cd04(0x17a)]>0x0&&((_0x5efea7=(_0x2deeed=this[_0x40cd04(0x323)])[_0x40cd04(0x2da)])==null||_0x5efea7[_0x40cd04(0x2d0)](_0x2deeed,{'unitID':_0x49f99b,'memberID':_0x177f7a,'textRanges':_0x55a583}));}}[_0x4deb9c(0x2f9)](){const _0x425173=_0x4deb9c;this['_localCacheService'][_0x425173(0x2c8)](this[_0x425173(0x282)],this['type'],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x4deb9c(0x3c4)](){const _0x2ecc2d=_0x4deb9c;return this[_0x2ecc2d(0x2af)][_0x2ecc2d(0x3a3)](this[_0x2ecc2d(0x282)]);}[_0x4deb9c(0x1b9)](){const _0x3cf11f=_0x4deb9c;this[_0x3cf11f(0x2af)][_0x3cf11f(0x25a)](this[_0x3cf11f(0x282)]);}[_0x4deb9c(0x261)](_0x5c6b00){const _0x5f3960=_0x4deb9c;var _0x5a5184;const _0x7c0eea=this['_transformRemoteChangesetByIMECache'](_0x5c6b00),_0xdc0312=_0x44f3cf[_0x5f3960(0x274)](_0x7c0eea[_0x5f3960(0x367)],this[_0x5f3960(0x484)],{'fromCollab':!0x0});if(!_0xdc0312[_0x5f3960(0x1a0)])throw _0xdc0312[_0x5f3960(0x46e)]instanceof Error?_0xdc0312[_0x5f3960(0x46e)]:new Error((_0x5a5184=_0xdc0312[_0x5f3960(0x46e)])!=null?_0x5a5184:_0x5f3960(0x208));this['_transformIMECache'](_0x7c0eea),this['_transformUndoredo'](_0x5c6b00),this[_0x5f3960(0x1db)](_0x7c0eea),this[_0x5f3960(0x319)](_0x7c0eea),this[_0x5f3960(0x1b9)]();}}let _0x194137=class extends _0x53c60b{constructor(_0x57ec75,_0x4c85a6,_0x2a8a62,_0x4ba491,_0x394259,_0x575693,_0x16ed64,_0x5461db,_0x12a7ca,_0x292bb2){const _0x481bee=_0x4deb9c;super(_0x57ec75,_0x4c85a6,null,[],_0x2a8a62,_0x5461db,_0x16ed64,_0x4ba491,_0x394259),_0x434a2a(this,_0x481bee(0x111),_0x481bee(0x2a8)),(this[_0x481bee(0x25f)]=_0x575693,this[_0x481bee(0x1aa)]=_0x12a7ca,this[_0x481bee(0x3c2)]=_0x292bb2);}[_0x4deb9c(0x295)](_0x8f2bbf){const _0x2569a0=_0x4deb9c,_0x465742=this[_0x2569a0(0x25f)][_0x2569a0(0x427)](_0x418dd0,this['unitID'],this['type'],[_0x8f2bbf],this['_handler']);return _0x465742[_0x2569a0(0x445)](),_0x465742[_0x2569a0(0x2f9)](),_0x465742;}[_0x4deb9c(0x25e)](_0x4b5153){const _0x4eff70=_0x4deb9c;if(this['_checkMissing'](_0x4b5153))return this[_0x4eff70(0x25f)][_0x4eff70(0x427)](_0x3ae8e5,this[_0x4eff70(0x282)],this[_0x4eff70(0x4f1)],null,[],null,[_0x4b5153],this[_0x4eff70(0x323)]);try{const _0x3d16a1=this['_transformService'][_0x4eff70(0x394)](_0x4b5153,[_0x4f7f45]);if(_0x5c3399[_0x4eff70(0x264)](_0x3d16a1)){const {c1Prime:_0x539027}=_0x3d16a1;return this[_0x4eff70(0x261)](_0x539027),this;}throw _0x3d16a1[_0x4eff70(0x46e)];}catch(_0x9d7d3c){return this[_0x4eff70(0x1aa)][_0x4eff70(0x46e)](_0x9d7d3c),this[_0x4eff70(0x411)](!0x1);}}[_0x4deb9c(0x411)](_0x3afa00){const _0x48ae2f=_0x4deb9c;return this['_injector'][_0x48ae2f(0x427)](_0x39b563,this[_0x48ae2f(0x282)],this[_0x48ae2f(0x4f1)],null,[],this[_0x48ae2f(0x323)],_0x3afa00);}[_0x4deb9c(0x304)](){const _0x5c6774=_0x4deb9c;throw new Error(_0x5c6774(0x503));}[_0x4deb9c(0x4d8)](){const _0x11b71c=_0x4deb9c;throw new Error(_0x11b71c(0x4b5));}[_0x4deb9c(0x476)](){const _0x5ee75d=_0x4deb9c;return this['_injector'][_0x5ee75d(0x427)](_0x4fba74,this[_0x5ee75d(0x282)],this[_0x5ee75d(0x4f1)],null,[],this[_0x5ee75d(0x323)]);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x4e0)](){const _0x214a8f=_0x4deb9c;throw new Error(_0x214a8f(0x426));}[_0x4deb9c(0x1e4)](){const _0x1b1273=_0x4deb9c,_0x4d495f=this[_0x1b1273(0x2af)][_0x1b1273(0x3a3)](this[_0x1b1273(0x282)]);return this[_0x1b1273(0x323)]['onMissingChangesets']({'from':_0x4d495f,'to':0x0}),this[_0x1b1273(0x25f)][_0x1b1273(0x427)](_0x3ae8e5,this[_0x1b1273(0x282)],this[_0x1b1273(0x4f1)],null,[],null,[],this[_0x1b1273(0x323)]);}};_0x194137=_0x2bdc29([_0x56d55b(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399['RevisionService'])),_0x56d55b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['Injector'])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x4b7)]),_0x56d55b(0x7,_0x44f3cf['ICommandService']),_0x56d55b(0x8,_0x44f3cf['ILogService']),_0x56d55b(0x9,_0x5c3399[_0x4deb9c(0x453)])],_0x194137);let _0x418dd0=class extends _0x53c60b{constructor(_0x5b92ae,_0x2c68ab,_0x187e22,_0x6d6f01,_0x6bb04d,_0x2563a5,_0x4c20d8,_0x42205b,_0x39717b,_0x354ee1,_0x4995e4,_0x5be3af,_0x15b5bd,_0x4ef6c3){const _0x352b27=_0x4deb9c;super(_0x5b92ae,_0x2c68ab,null,_0x187e22,_0x6d6f01,_0x354ee1,_0x4ef6c3,_0x2563a5,_0x4c20d8),_0x434a2a(this,_0x352b27(0x111),_0x352b27(0x14f)),_0x434a2a(this,_0x352b27(0x3cd),null),_0x434a2a(this,'_sendingTimer',null),(this[_0x352b27(0x25f)]=_0x6bb04d,this[_0x352b27(0x4d4)]=_0x42205b,this[_0x352b27(0x1aa)]=_0x39717b,this[_0x352b27(0x494)]=_0x4995e4,this[_0x352b27(0x3c2)]=_0x5be3af,this[_0x352b27(0x391)]=_0x15b5bd);}[_0x4deb9c(0x295)](_0x1a7e02){const _0x185825=_0x4deb9c;return this[_0x185825(0x268)][_0x185825(0x4c0)](_0x1a7e02),this[_0x185825(0x2f9)](),this;}[_0x4deb9c(0x25e)](_0x259c52){const _0x430cb0=_0x4deb9c;if(this[_0x430cb0(0x2d4)](_0x259c52))return this[_0x430cb0(0x1ee)](),this[_0x430cb0(0x25f)][_0x430cb0(0x427)](_0x3ae8e5,this['unitID'],this[_0x430cb0(0x4f1)],null,this[_0x430cb0(0x268)],null,[_0x259c52],this['_handler']);try{const _0x166e37=this[_0x430cb0(0x3c2)][_0x430cb0(0x394)](_0x259c52,this[_0x430cb0(0x268)]);if(_0x5c3399[_0x430cb0(0x264)](_0x166e37)){const {c1Prime:_0x577411,m2Prime:_0x2d4e5f}=_0x166e37;this[_0x430cb0(0x261)](_0x577411);const _0xf6a588=this['_injector'][_0x430cb0(0x427)](_0x418dd0,this['unitID'],this[_0x430cb0(0x4f1)],_0x2d4e5f,this[_0x430cb0(0x323)]);return this[_0x430cb0(0x1ee)](),_0xf6a588[_0x430cb0(0x445)](this['_scheduleTimestamp']?Math[_0x430cb0(0x43d)](0x0,new Date()[_0x430cb0(0x2bf)]()-this['_scheduleTimestamp']):this[_0x430cb0(0x472)]()),_0xf6a588;}throw _0x166e37[_0x430cb0(0x46e)];}catch(_0x4b3d0c){return this[_0x430cb0(0x1aa)][_0x430cb0(0x46e)](_0x4b3d0c),this[_0x430cb0(0x411)](!0x1);}}[_0x4deb9c(0x304)](){const _0x2a50d9=_0x4deb9c;throw new Error(_0x2a50d9(0x154));}[_0x4deb9c(0x4d8)](){const _0x361fc0=_0x4deb9c;throw new Error(_0x361fc0(0x1e1));}[_0x4deb9c(0x476)](){const _0x297bf5=_0x4deb9c;return this[_0x297bf5(0x1ee)](),this[_0x297bf5(0x25f)][_0x297bf5(0x427)](_0x4fba74,this[_0x297bf5(0x282)],this['type'],null,this[_0x297bf5(0x268)],this[_0x297bf5(0x323)]);}['toggleOnline'](){return this;}['_schedule'](_0x235cee){const _0x26c49f=_0x4deb9c,_0x1bef23=_0x235cee!=null?_0x235cee:this[_0x26c49f(0x472)]();this[_0x26c49f(0x3cd)]=new Date()['getTime'](),this[_0x26c49f(0x1ae)]=window[_0x26c49f(0x479)](()=>{const _0x3f0481=_0x26c49f;this[_0x3f0481(0x1ee)]();let _0x4e63c2=null;switch(this[_0x3f0481(0x4f1)]){case _0x3bfee1[_0x3f0481(0x402)]:{_0x4e63c2=_0x12777d(this[_0x3f0481(0x268)],this[_0x3f0481(0x282)],this[_0x3f0481(0x391)],this[_0x3f0481(0x2af)],this[_0x3f0481(0x4d4)]);break;}case _0x3bfee1[_0x3f0481(0x350)]:{this['_pendingMutations'][_0x3f0481(0x220)](_0x364b01=>_0x364b01['id']===_0x495201[_0x3f0481(0x41b)]['id'])?_0x4e63c2=_0x125c7e(this[_0x3f0481(0x268)],this['unitID'],this[_0x3f0481(0x391)],this[_0x3f0481(0x2af)],this[_0x3f0481(0x4d4)]):_0x4e63c2=_0x12777d(this['_pendingMutations'],this[_0x3f0481(0x282)],this['_univerInstanceService'],this[_0x3f0481(0x2af)],this[_0x3f0481(0x4d4)]);break;}default:throw new Error(_0x3f0481(0x44a)+this[_0x3f0481(0x4f1)]+_0x3f0481(0x21c));}const {changeset:_0x4f6e6b,pendingMutations:_0x62f7f}=_0x4e63c2;this[_0x3f0481(0x323)][_0x3f0481(0x500)](_0x4f6e6b);const _0xea88a2=_0x62f7f[_0x3f0481(0x17a)]?this['_injector'][_0x3f0481(0x427)](_0x29239e,this[_0x3f0481(0x282)],this[_0x3f0481(0x4f1)],_0x4f6e6b,_0x62f7f,this[_0x3f0481(0x323)]):this[_0x3f0481(0x25f)][_0x3f0481(0x427)](_0x2aa63e,this[_0x3f0481(0x282)],this[_0x3f0481(0x4f1)],_0x4f6e6b,this[_0x3f0481(0x323)]);_0xea88a2[_0x3f0481(0x2f9)](),this['_handler'][_0x3f0481(0x4e1)](this,_0xea88a2);},_0x1bef23);}[_0x4deb9c(0x472)](){const _0x85be13=_0x4deb9c;var _0x223516;return(_0x223516=this[_0x85be13(0x494)][_0x85be13(0x2cd)](_0x5bb06f))!=null?_0x223516:0x7d0;}['resend'](){const _0x509854=_0x4deb9c;throw new Error(_0x509854(0x19f));}[_0x4deb9c(0x1ee)](){const _0x527df1=_0x4deb9c;this['_sendingTimer']!=null&&(clearTimeout(this[_0x527df1(0x1ae)]),this[_0x527df1(0x1ae)]=null);}[_0x4deb9c(0x411)](_0x1a19c1){const _0x5d63c0=_0x4deb9c;return this[_0x5d63c0(0x1ee)](),this[_0x5d63c0(0x25f)][_0x5d63c0(0x427)](_0x39b563,this[_0x5d63c0(0x282)],this[_0x5d63c0(0x4f1)],null,this[_0x5d63c0(0x268)],this['_handler'],_0x1a19c1);}};_0x418dd0=_0x2bdc29([_0x56d55b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x32fe7e)),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0xa,_0x44f3cf[_0x4deb9c(0x150)]),_0x56d55b(0xb,_0x5c3399['ITransformService']),_0x56d55b(0xc,_0x44f3cf[_0x4deb9c(0x165)]),_0x56d55b(0xd,_0x44f3cf['IUndoRedoService'])],_0x418dd0);let _0x2aa63e=class extends _0x53c60b{constructor(_0x2f5970,_0x4787f1,_0x31aa39,_0x567fef,_0x48aef9,_0x4a7302,_0x1ada2a,_0x155b5e,_0x92cb76,_0xba4983,_0xbb9d0e){const _0x127b16=_0x4deb9c;super(_0x2f5970,_0x4787f1,_0x31aa39,[],_0x567fef,_0x155b5e,_0xbb9d0e,_0x4a7302,_0x1ada2a),_0x434a2a(this,_0x127b16(0x111),'awaiting'),(this[_0x127b16(0x25f)]=_0x48aef9,this[_0x127b16(0x1aa)]=_0x92cb76,this[_0x127b16(0x3c2)]=_0xba4983);}[_0x4deb9c(0x295)](_0x5f2120){const _0x273784=_0x4deb9c,_0x1c1e1d=this[_0x273784(0x25f)][_0x273784(0x427)](_0x29239e,this[_0x273784(0x282)],this['type'],this['_awaitingChangeset'],[_0x5f2120],this[_0x273784(0x323)]);return _0x1c1e1d['_updateLocalCache'](),_0x1c1e1d;}[_0x4deb9c(0x25e)](_0x32df1e){const _0x52b0db=_0x4deb9c;if(this[_0x52b0db(0x2d4)](_0x32df1e))return this['_injector'][_0x52b0db(0x427)](_0x3ae8e5,this[_0x52b0db(0x282)],this[_0x52b0db(0x4f1)],this[_0x52b0db(0x12d)],[],null,[_0x32df1e],this['_handler']);try{const _0x5b2a16=this[_0x52b0db(0x3c2)][_0x52b0db(0x14e)]([_0x32df1e],[this[_0x52b0db(0x12d)]],!0x1);if(_0x5c3399[_0x52b0db(0x444)](_0x5b2a16)){const {c1Prime:_0x53dd3d,c2Prime:_0x33da9f}=_0x5b2a16;this[_0x52b0db(0x261)](_0x53dd3d[0x0]),_0x33da9f[0x0][_0x52b0db(0x186)]=this[_0x52b0db(0x3c4)]();const _0x4cf54a=this[_0x52b0db(0x25f)][_0x52b0db(0x427)](_0x2aa63e,this[_0x52b0db(0x282)],this[_0x52b0db(0x4f1)],_0x33da9f[0x0],this['_handler']);return _0x4cf54a[_0x52b0db(0x2f9)](),_0x4cf54a;}return this[_0x52b0db(0x411)](!0x1);}catch(_0x101d95){return this[_0x52b0db(0x1aa)][_0x52b0db(0x46e)](_0x101d95),this['_onConflict'](!0x1);}}[_0x4deb9c(0x304)](_0x462100){const _0x2e68c0=_0x4deb9c,_0x1a993b=this[_0x2e68c0(0x2af)][_0x2e68c0(0x3a3)](this['unitID']);if(_0x462100[_0x2e68c0(0x194)]<_0x1a993b-0x1)return this;if(this['_checkMissing'](_0x462100))return this[_0x2e68c0(0x25f)]['createInstance'](_0x3ae8e5,this[_0x2e68c0(0x282)],this[_0x2e68c0(0x4f1)],null,[],this[_0x2e68c0(0x12d)],[],this['_handler']);this[_0x2e68c0(0x1b9)]();const _0x36dce5=this[_0x2e68c0(0x25f)]['createInstance'](_0x194137,this[_0x2e68c0(0x282)],this[_0x2e68c0(0x4f1)],this[_0x2e68c0(0x323)]);return _0x36dce5[_0x2e68c0(0x2f9)](),_0x36dce5;}['onRemoteRej'](_0x285eb7){const _0x469e54=_0x4deb9c;return this['_onConflict'](!!(_0x285eb7!=null&&_0x285eb7[_0x469e54(0x318)]));}['toggleOffline'](){const _0x2354cc=_0x4deb9c;return this['_injector']['createInstance'](_0x4fba74,this[_0x2354cc(0x282)],this['type'],this['_awaitingChangeset'],[],this[_0x2354cc(0x323)]);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x4e0)](){const _0xc46f5e=_0x4deb9c;this[_0xc46f5e(0x323)][_0xc46f5e(0x500)](this[_0xc46f5e(0x12d)]);}['_onConflict'](_0x23db92){const _0x59eb4a=_0x4deb9c;return this['_injector'][_0x59eb4a(0x427)](_0x39b563,this[_0x59eb4a(0x282)],this[_0x59eb4a(0x4f1)],this[_0x59eb4a(0x12d)],[],this['_handler'],_0x23db92);}};_0x2aa63e=_0x2bdc29([_0x56d55b(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0x9,_0x5c3399[_0x4deb9c(0x453)]),_0x56d55b(0xa,_0x44f3cf[_0x4deb9c(0x4b7)])],_0x2aa63e);let _0x29239e=class extends _0x53c60b{constructor(_0x2ef99a,_0x1cb90d,_0x1dcb14,_0x5901a8,_0x50813e,_0x498df4,_0x3fac3e,_0x244366,_0x149c85,_0x1da361,_0x433f7b,_0x4356bc){const _0x115cba=_0x4deb9c;super(_0x2ef99a,_0x1cb90d,_0x1dcb14,_0x5901a8,_0x50813e,_0x149c85,_0x4356bc,_0x3fac3e,_0x244366),_0x434a2a(this,'status',_0x115cba(0x3a9)),(this[_0x115cba(0x25f)]=_0x498df4,this[_0x115cba(0x1aa)]=_0x1da361,this['_transformService']=_0x433f7b);}[_0x4deb9c(0x295)](_0x3a81de){const _0x7607b8=_0x4deb9c;return this[_0x7607b8(0x268)][_0x7607b8(0x4c0)](_0x3a81de),this;}['onRemoteChangeset'](_0x426c2c){const _0x46cf35=_0x4deb9c;if(this['_checkMissing'](_0x426c2c))return this[_0x46cf35(0x25f)]['createInstance'](_0x3ae8e5,this[_0x46cf35(0x282)],this[_0x46cf35(0x4f1)],this[_0x46cf35(0x12d)],this[_0x46cf35(0x268)],null,[_0x426c2c],this['_handler']);try{const _0x28fdde=this['_transformService'][_0x46cf35(0x14e)]([_0x426c2c],[this[_0x46cf35(0x12d)]],!0x1);if(_0x5c3399[_0x46cf35(0x444)](_0x28fdde)){const {c1Prime:_0x1ccb87,c2Prime:_0x5935cf}=_0x28fdde,_0x5bf5a5=this[_0x46cf35(0x3c2)][_0x46cf35(0x394)](_0x1ccb87[0x0],this[_0x46cf35(0x268)]);if(_0x5c3399[_0x46cf35(0x264)](_0x5bf5a5)){const {c1Prime:_0x3d6993,m2Prime:_0x539f73}=_0x5bf5a5;return this[_0x46cf35(0x261)](_0x3d6993),_0x5935cf[0x0][_0x46cf35(0x186)]=this['_getCurrentRevision'](),this[_0x46cf35(0x25f)]['createInstance'](_0x29239e,this[_0x46cf35(0x282)],this['type'],_0x5935cf[0x0],_0x539f73,this['_handler']);}throw _0x5bf5a5[_0x46cf35(0x46e)];}throw _0x28fdde['error'];}catch(_0x4865ee){return this['_logService'][_0x46cf35(0x46e)](_0x4865ee),this['_onConflict'](!0x1);}}[_0x4deb9c(0x304)](_0x263174){const _0x200294=_0x4deb9c;if(this[_0x200294(0x2d4)](_0x263174))return this[_0x200294(0x25f)][_0x200294(0x427)](_0x3ae8e5,this['unitID'],this['type'],null,this[_0x200294(0x268)],this[_0x200294(0x12d)],[],this[_0x200294(0x323)]);this[_0x200294(0x1b9)]();const _0x139213=this[_0x200294(0x25f)][_0x200294(0x427)](_0x418dd0,this[_0x200294(0x282)],this[_0x200294(0x4f1)],this['_pendingMutations'],this['_handler']);return _0x139213[_0x200294(0x445)](),_0x139213[_0x200294(0x2f9)](),_0x139213;}['onRemoteRej'](_0xae3fb4){const _0x5eccad=_0x4deb9c;return this[_0x5eccad(0x411)](!!(_0xae3fb4!=null&&_0xae3fb4['isPermissionRej']));}[_0x4deb9c(0x476)](){const _0x4a3fa6=_0x4deb9c;return this[_0x4a3fa6(0x25f)][_0x4a3fa6(0x427)](_0x4fba74,this[_0x4a3fa6(0x282)],this[_0x4a3fa6(0x4f1)],this[_0x4a3fa6(0x12d)],this[_0x4a3fa6(0x268)],this[_0x4a3fa6(0x323)]);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x4e0)](){const _0x1a3fd3=_0x4deb9c;this['_handler'][_0x1a3fd3(0x500)](this[_0x1a3fd3(0x12d)]);}[_0x4deb9c(0x411)](_0x42547f){const _0x596b2c=_0x4deb9c;return this[_0x596b2c(0x25f)][_0x596b2c(0x427)](_0x39b563,this[_0x596b2c(0x282)],this[_0x596b2c(0x4f1)],null,this[_0x596b2c(0x268)],this[_0x596b2c(0x323)],_0x42547f);}};_0x29239e=_0x2bdc29([_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0xa,_0x5c3399[_0x4deb9c(0x453)]),_0x56d55b(0xb,_0x44f3cf[_0x4deb9c(0x4b7)])],_0x29239e);let _0x39b563=class extends _0x53c60b{constructor(_0x4665fc,_0x21427f,_0x32d6b5,_0x335af5,_0x23d164,_0x14f5f9=!0x1,_0x1dde2f,_0x18a5d4,_0xf3d3ae,_0x44a497,_0x5237ed,_0x3e4dfe,_0x585141){const _0x35c732=_0x4deb9c;super(_0x4665fc,_0x21427f,_0x32d6b5,_0x335af5,_0x23d164,_0x18a5d4,_0xf3d3ae,_0x5237ed,_0x44a497),_0x434a2a(this,_0x35c732(0x111),_0x35c732(0x2de)),(this[_0x35c732(0x399)]=_0x14f5f9,this[_0x35c732(0x20f)]=_0x1dde2f,this['_localeService']=_0x3e4dfe,this[_0x35c732(0x3f7)]=_0x585141,this['_showConflictNotification'](),this[_0x35c732(0x4dd)](),this[_0x35c732(0x3af)]());}[_0x4deb9c(0x295)](){return this;}[_0x4deb9c(0x25e)](){return this;}[_0x4deb9c(0x304)](){return this;}[_0x4deb9c(0x4d8)](){return this;}[_0x4deb9c(0x476)](){return this;}['toggleOnline'](){return this;}['resend'](){const _0x4fe1be=_0x4deb9c;throw new Error(_0x4fe1be(0x26b));}['_clearLocalCache'](){const _0x3c71d8=_0x4deb9c;this[_0x3c71d8(0x3d7)]['updateOfflineData'](this['unitID'],this[_0x3c71d8(0x4f1)],null,[]);}[_0x4deb9c(0x3a5)](){const _0x5aff5e=_0x4deb9c;this[_0x5aff5e(0x399)]?this[_0x5aff5e(0x3f7)][_0x5aff5e(0x2a7)]({'title':this[_0x5aff5e(0x182)]['t'](_0x5aff5e(0x305)),'content':this[_0x5aff5e(0x182)]['t'](_0x5aff5e(0x355)),'type':'error','duration':0x0}):this[_0x5aff5e(0x3f7)]['show']({'title':this[_0x5aff5e(0x182)]['t'](_0x5aff5e(0x29a)),'content':this[_0x5aff5e(0x182)]['t']('conflict.content'),'type':_0x5aff5e(0x46e),'duration':0x0});}[_0x4deb9c(0x3af)](){const _0x4b0173=_0x4deb9c;this[_0x4b0173(0x20f)][_0x4b0173(0x420)](new _0x5848ce[(_0x4b0173(0x356))](this[_0x4b0173(0x282)])['id'],!0x1);}};_0x39b563=_0x2bdc29([_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x4d1)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x8,_0x44f3cf['IUndoRedoService']),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0xa,_0x44f3cf['Inject'](_0x5c3399['RevisionService'])),_0x56d55b(0xb,_0x44f3cf['Inject'](_0x44f3cf['LocaleService'])),_0x56d55b(0xc,_0x90d6c1[_0x4deb9c(0x437)])],_0x39b563);let _0x4fba74=class extends _0x53c60b{constructor(_0x674df5,_0x274887,_0x8648ef,_0x4aa14b,_0x1cd735,_0x3b8cc,_0x4e1bb7,_0x4fed0b,_0x25d992,_0x5e05fb){const _0x36ea9e=_0x4deb9c;super(_0x674df5,_0x274887,_0x8648ef,_0x4aa14b,_0x1cd735,_0x25d992,_0x5e05fb,_0x4e1bb7,_0x4fed0b),_0x434a2a(this,_0x36ea9e(0x111),_0x36ea9e(0x143)),this['_injector']=_0x3b8cc;}['appendMutation'](_0x3b491f){const _0x563410=_0x4deb9c;return this[_0x563410(0x268)][_0x563410(0x4c0)](_0x3b491f),this[_0x563410(0x2f9)](),this;}[_0x4deb9c(0x25e)](_0x15ddde){throw new Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){const _0x26f702=_0x4deb9c;throw new Error(_0x26f702(0x10e));}[_0x4deb9c(0x4d8)](){const _0x9959ba=_0x4deb9c;throw new Error(_0x9959ba(0x145));}[_0x4deb9c(0x476)](){return this;}[_0x4deb9c(0x335)](){const _0x4d1237=_0x4deb9c,{_injector:_0x5bd9fa,_pendingMutations:_0x23b287,_awaitingChangeset:_0x257e47,unitID:_0x5ee019,_handler:_0xf373ac,type:_0x19d49a}=this,_0x536d83=_0x4facb1(_0x5bd9fa,_0x5ee019,_0x19d49a,_0x257e47,_0x23b287,_0xf373ac);return _0x536d83 instanceof _0x418dd0?_0x536d83[_0x4d1237(0x445)]():(_0x536d83 instanceof _0x29239e||_0x536d83 instanceof _0x2aa63e)&&_0x536d83[_0x4d1237(0x4e0)](),_0x536d83;}[_0x4deb9c(0x4e0)](){const _0x58b3bd=_0x4deb9c;throw new Error(_0x58b3bd(0x2f0));}};_0x4fba74=_0x2bdc29([_0x56d55b(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa['LocalCacheService'])),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x4b7)])],_0x4fba74);let _0x3ae8e5=class extends _0x53c60b{constructor(_0x55bd48,_0x5dfb5c,_0x30815a,_0x399780,_0x1d3d60,_0x372087,_0x4350e5,_0x6de680,_0x2ae3ad,_0x40ce34,_0x5f0994,_0x15bad7,_0x3af06b,_0x4e7061){const _0x4fc7b1=_0x4deb9c;super(_0x55bd48,_0x5dfb5c,_0x30815a,_0x399780,_0x4350e5,_0x15bad7,_0x3af06b,_0x2ae3ad,_0x40ce34),_0x434a2a(this,_0x4fc7b1(0x111),'fetch_missing'),(this[_0x4fc7b1(0x159)]=_0x1d3d60,this[_0x4fc7b1(0x1f5)]=_0x372087,this[_0x4fc7b1(0x25f)]=_0x6de680,this['_logService']=_0x5f0994,this['_transformService']=_0x4e7061);}[_0x4deb9c(0x2a2)](_0x56ccbe){const _0x45b637=_0x4deb9c;try{const _0x1e1ca1=[..._0x56ccbe,...this[_0x45b637(0x1f5)]],_0x171ed4=[this[_0x45b637(0x12d)]||this['_acknowledgedAwaitingChangeset']][_0x45b637(0x39e)](_0xd0d1d6=>!!_0xd0d1d6);let _0x34d525,_0x353103;if(_0x171ed4['length']){const _0x455bc2=this[_0x45b637(0x3c2)]['transformChangesets'](_0x1e1ca1,_0x171ed4,!0x1);if(!_0x5c3399['isTransformChangesetsSuccess'](_0x455bc2))throw _0x455bc2[_0x45b637(0x46e)];_0x34d525=_0x455bc2[_0x45b637(0x47d)],_0x353103=_0x455bc2[_0x45b637(0x372)];}else _0x34d525=_0x1e1ca1,_0x353103=[];let _0x222548=this[_0x45b637(0x268)];_0x34d525[_0x45b637(0x4cc)](_0x94f4ee=>{const _0x4d884c=_0x45b637;let _0x2e3d18;if(_0x222548['length']){const _0x1e449e=this[_0x4d884c(0x3c2)][_0x4d884c(0x394)](_0x94f4ee,_0x222548);if(!_0x5c3399['isTransformMutationsWithChangesetSuccess'](_0x1e449e))throw _0x1e449e[_0x4d884c(0x46e)];_0x2e3d18=_0x1e449e[_0x4d884c(0x47d)],_0x222548=_0x1e449e[_0x4d884c(0x499)];}else _0x2e3d18=_0x94f4ee;this[_0x4d884c(0x261)](_0x2e3d18);}),this[_0x45b637(0x159)]&&this[_0x45b637(0x1b9)](),this[_0x45b637(0x12d)]&&_0x353103['length']&&(_0x353103[0x0]['baseRev']=this['_getCurrentRevision']());let _0x1953a3;if(this[_0x45b637(0x12d)]&&_0x222548['length']!==0x0)_0x1953a3=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x29239e,this['unitID'],this[_0x45b637(0x4f1)],_0x353103[0x0],_0x222548,this[_0x45b637(0x323)]);else{if(this[_0x45b637(0x12d)]&&_0x222548[_0x45b637(0x17a)]===0x0)_0x353103[0x0]['baseRev']=this[_0x45b637(0x3c4)](),_0x1953a3=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x2aa63e,this[_0x45b637(0x282)],this['type'],_0x353103[0x0],this[_0x45b637(0x323)]);else{if(_0x222548[_0x45b637(0x17a)]!==0x0){const _0x576daa=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x418dd0,this[_0x45b637(0x282)],this[_0x45b637(0x4f1)],_0x222548,this['_handler']);_0x576daa[_0x45b637(0x445)](),_0x1953a3=_0x576daa;}else _0x1953a3=this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x194137,this['unitID'],this[_0x45b637(0x4f1)],this['_handler']);}}return _0x1953a3[_0x45b637(0x2f9)](),_0x1953a3;}catch(_0x152b78){return this[_0x45b637(0x1aa)][_0x45b637(0x46e)]('[FetchMissState]','failed\x20to\x20apply\x20missed\x20changesets!',_0x152b78),this[_0x45b637(0x25f)][_0x45b637(0x427)](_0x39b563,this[_0x45b637(0x282)],this[_0x45b637(0x4f1)],this[_0x45b637(0x12d)],this[_0x45b637(0x268)],this['_handler'],!0x1);}}[_0x4deb9c(0x4e0)](){const _0x441783=_0x4deb9c;throw new Error(_0x441783(0x3e0));}['appendMutation'](_0x4e7f6a){const _0x4a0608=_0x4deb9c;return this['_pendingMutations'][_0x4a0608(0x4c0)](_0x4e7f6a),this;}[_0x4deb9c(0x25e)](_0x21c2b4){const _0x441d7f=_0x4deb9c;return this[_0x441d7f(0x1f5)][_0x441d7f(0x4c0)](_0x21c2b4),this;}['onRemoteAck'](_0x40eb4b){const _0x8eb151=_0x4deb9c;if(this[_0x8eb151(0x12d)])return this[_0x8eb151(0x159)]=this['_awaitingChangeset'],this[_0x8eb151(0x12d)]=null,this;throw new Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x4deb9c(0x4d8)](_0x36c2ce){const _0x5d55cb=_0x4deb9c;return this['_onConflict'](!!(_0x36c2ce!=null&&_0x36c2ce[_0x5d55cb(0x318)]));}[_0x4deb9c(0x476)](){const _0xd5e7cf=_0x4deb9c;return this[_0xd5e7cf(0x25f)][_0xd5e7cf(0x427)](_0x4fba74,this['unitID'],this['type'],this[_0xd5e7cf(0x12d)],this['_pendingMutations'],this['_handler']);}[_0x4deb9c(0x335)](){return this;}[_0x4deb9c(0x411)](_0x1401d9){const _0x147ec6=_0x4deb9c;return this[_0x147ec6(0x25f)][_0x147ec6(0x427)](_0x39b563,this[_0x147ec6(0x282)],this[_0x147ec6(0x4f1)],this['_awaitingChangeset'],this[_0x147ec6(0x268)],this[_0x147ec6(0x323)],_0x1401d9);}};_0x3ae8e5=_0x2bdc29([_0x56d55b(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x56d55b(0x8,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x56d55b(0x9,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x56d55b(0xa,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x56d55b(0xb,_0x44f3cf[_0x4deb9c(0x243)]),_0x56d55b(0xc,_0x44f3cf[_0x4deb9c(0x4b7)]),_0x56d55b(0xd,_0x5c3399['ITransformService'])],_0x3ae8e5);function _0x4facb1(_0x285c69,_0x29de25,_0x1a2df1,_0x4f7e30,_0x4f1598,_0x4c7f0c){const _0x549272=_0x4deb9c;return _0x4f7e30&&_0x4f1598[_0x549272(0x17a)]?_0x285c69['createInstance'](_0x29239e,_0x29de25,_0x1a2df1,_0x4f7e30,_0x4f1598,_0x4c7f0c):_0x4f7e30?_0x285c69[_0x549272(0x427)](_0x2aa63e,_0x29de25,_0x1a2df1,_0x4f7e30,_0x4c7f0c):_0x4f1598['length']?_0x285c69['createInstance'](_0x418dd0,_0x29de25,_0x1a2df1,_0x4f1598,_0x4c7f0c):_0x285c69['createInstance'](_0x194137,_0x29de25,_0x1a2df1,_0x4c7f0c);}var _0x1fb41f=Object['defineProperty'],_0x325ea4=Object[_0x4deb9c(0x3d9)],_0x380a6a=(_0x37a751,_0x400501,_0x234223,_0xf70333)=>{const _0x510ee9=_0x4deb9c;for(var _0x5a97af=_0xf70333>0x1?void 0x0:_0xf70333?_0x325ea4(_0x400501,_0x234223):_0x400501,_0x50ef62=_0x37a751[_0x510ee9(0x17a)]-0x1,_0x256d4f;_0x50ef62>=0x0;_0x50ef62--)(_0x256d4f=_0x37a751[_0x50ef62])&&(_0x5a97af=(_0xf70333?_0x256d4f(_0x400501,_0x234223,_0x5a97af):_0x256d4f(_0x5a97af))||_0x5a97af);return _0xf70333&&_0x5a97af&&_0x1fb41f(_0x400501,_0x234223,_0x5a97af),_0x5a97af;},_0x1ac0b4=(_0x253902,_0x36859f)=>(_0x3f5237,_0x512b37)=>_0x36859f(_0x3f5237,_0x512b37,_0x253902);_0x3723aa['CollaborationEntity']=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x5328d0,_0x39053b,_0x6aa4d7,_0x985f1,_0x173d29,_0x30f1f3,_0x515807,_0x3a2a7a,_0x116374,_0x1d65d8,_0x530909,_0x543c09,_0x511e4c){const _0x3f9d46=_0x4deb9c;super(),_0x434a2a(this,'_state$',new _0x1837c6['BehaviorSubject'](null)),_0x434a2a(this,'state$',this[_0x3f9d46(0x227)][_0x3f9d46(0x4eb)]()),_0x434a2a(this,_0x3f9d46(0x16c)),_0x434a2a(this,_0x3f9d46(0x4a3),!0x1),_0x434a2a(this,_0x3f9d46(0x43a),this[_0x3f9d46(0x465)][_0x3f9d46(0x4f9)](_0x1837c6[_0x3f9d46(0x269)](_0x32c13a=>_0x32c13a?_0x32c13a[_0x3f9d46(0x111)]:_0x1a5e20['OFFLINE']),_0x1837c6[_0x3f9d46(0x3c8)](0x1))),_0x434a2a(this,_0x3f9d46(0x285),!0x1),_0x434a2a(this,'_remoteChangesetQueue',[]),(this[_0x3f9d46(0x282)]=_0x5328d0,this[_0x3f9d46(0x4ba)]=_0x39053b,this[_0x3f9d46(0x19c)]=_0x6aa4d7,this[_0x3f9d46(0x25f)]=_0x985f1,this[_0x3f9d46(0x3d7)]=_0x173d29,this['_compressMutationService']=_0x30f1f3,this[_0x3f9d46(0x182)]=_0x515807,this['_revisionService']=_0x3a2a7a,this[_0x3f9d46(0x1aa)]=_0x116374,this[_0x3f9d46(0x484)]=_0x1d65d8,this[_0x3f9d46(0x31a)]=_0x530909,this[_0x3f9d46(0x20f)]=_0x543c09,this[_0x3f9d46(0x2e3)]=_0x511e4c);}get[_0x4deb9c(0x4aa)](){const _0xa81ade=_0x4deb9c;return this[_0xa81ade(0x16c)];}async[_0x4deb9c(0x36a)](){const _0x1e589b=_0x4deb9c;if(this[_0x1e589b(0x4aa)])throw new Error(_0x1e589b(0x508));await this['_init']();}[_0x4deb9c(0x1a9)](){const _0x5c1648=_0x4deb9c;return this[_0x5c1648(0x4a3)]=!0x0,_0x44f3cf[_0x5c1648(0x133)](()=>{const _0x25f1f6=_0x5c1648;this[_0x25f1f6(0x4a3)]=!0x1,this[_0x25f1f6(0x49a)]();});}[_0x4deb9c(0x1ab)](_0x439ae9){const _0x2bfc93=_0x4deb9c;this[_0x2bfc93(0x16c)]=_0x439ae9,this['_state$'][_0x2bfc93(0x3e8)](_0x439ae9);}async[_0x4deb9c(0x4fb)](){const _0x3a6049=_0x4deb9c;var _0xdc50d4;this[_0x3a6049(0x1ab)](await this['_createInitialState']()),this[_0x3a6049(0x2e3)]&&((_0xdc50d4=this['_singleActiveUnitService'])==null||_0xdc50d4[_0x3a6049(0x2d7)](this[_0x3a6049(0x282)]),this[_0x3a6049(0x446)](this[_0x3a6049(0x2e3)][_0x3a6049(0x1ea)](this[_0x3a6049(0x282)])['subscribe'](_0x5aee62=>{const _0x15bc49=_0x3a6049;this[_0x15bc49(0x1aa)]['debug'](_0x15bc49(0x24f),_0x15bc49(0x15c),_0x5aee62),_0x5aee62===_0x14af59['OTHER_CLIENTS_EDITING']?(this[_0x15bc49(0x31a)]['show']({'content':this[_0x15bc49(0x182)]['t'](_0x15bc49(0x199)),'type':_0x1c0df8[_0x15bc49(0x25c)]['Warning']}),this[_0x15bc49(0x20f)]['updatePermissionPoint'](new _0x5848ce[(_0x15bc49(0x356))](this[_0x15bc49(0x282)])['id'],!0x1)):this[_0x15bc49(0x20f)][_0x15bc49(0x420)](new _0x5848ce[(_0x15bc49(0x356))](this[_0x15bc49(0x282)])['id'],!0x0);})));let _0x486b04=!0x1;return this[_0x3a6049(0x446)](this[_0x3a6049(0x4ba)][_0x3a6049(0x501)][_0x3a6049(0x138)](_0x143316=>{const _0x993edd=_0x3a6049;_0x143316===_0x4388c5[_0x993edd(0x1df)]?this[_0x993edd(0x346)](_0x486b04):_0x143316===_0x4388c5[_0x993edd(0x135)]&&(_0x486b04=!0x0,this[_0x993edd(0x327)]());})),this[_0x3a6049(0x446)](this[_0x3a6049(0x4ba)]['event$'][_0x3a6049(0x138)](_0x3cd1f1=>{const _0x214f0e=_0x3a6049;try{switch(_0x3cd1f1[_0x214f0e(0x2aa)]){case _0x5c3399[_0x214f0e(0x3d6)][_0x214f0e(0x4a7)]:{this[_0x214f0e(0x490)](_0x5c3399['parseProtocolChangeset'](_0x3cd1f1[_0x214f0e(0xf9)]));break;}case _0x5c3399['CollaborationEvent'][_0x214f0e(0x333)]:{this[_0x214f0e(0x24d)](_0x3cd1f1['data']);break;}case _0x5c3399[_0x214f0e(0x3d6)][_0x214f0e(0x4bd)]:{this['_onRemoteRejected']();break;}case _0x5c3399['CollaborationEvent'][_0x214f0e(0x338)]:{this[_0x214f0e(0x460)](_0x3cd1f1['data']['changesets'][_0x214f0e(0x269)](_0x2d00ff=>_0x5c3399['parseProtocolChangeset'](_0x2d00ff)));break;}case _0x5c3399['CollaborationEvent']['PERMISSION_REJ']:this[_0x214f0e(0x18c)]({'isPermissionRej':!0x0});}}catch(_0x138b29){throw console['error'](_0x214f0e(0x1fd),_0x138b29),_0x138b29;}})),this[_0x3a6049(0x16c)];}['_unlockTransition'](){const _0x303661=_0x4deb9c;this[_0x303661(0x285)]=!0x1;}[_0x4deb9c(0x3d3)](){const _0xeb86f2=_0x4deb9c;if(this[_0xeb86f2(0x285)])throw new Error(_0xeb86f2(0x310));this['_transitionLocked']=!0x0;}[_0x4deb9c(0x27f)](_0x164e30){const _0x4508b8=_0x4deb9c;this[_0x4508b8(0x3d3)](),this[_0x4508b8(0x1ab)](this['_state']['appendMutation'](_0x164e30)),this[_0x4508b8(0x1cc)]();}['_onRemoteChangeset'](_0x26fc5c){const _0x35fda9=_0x4deb9c;if(!(_0x26fc5c['revision']<=this['_revisionService'][_0x35fda9(0x3a3)](this[_0x35fda9(0x282)]))){if(this[_0x35fda9(0x4a3)]){this['_remoteChangesetQueue'][_0x35fda9(0x4c0)](_0x26fc5c);return;}this['_applyRemoteChangeset'](_0x26fc5c);}}[_0x4deb9c(0x49a)](){const _0x5b7f11=_0x4deb9c;this['_remoteChangesetQueue'][_0x5b7f11(0x4cc)](_0x13958f=>this[_0x5b7f11(0x1e6)](_0x13958f)),this[_0x5b7f11(0x25d)]=[];}[_0x4deb9c(0x1e6)](_0x18722d){const _0x1c6fc9=_0x4deb9c,_0x4dbb8b=this[_0x1c6fc9(0x155)][_0x1c6fc9(0x3b4)]['fetchThroughInterceptors'](this[_0x1c6fc9(0x155)][_0x1c6fc9(0x3b4)][_0x1c6fc9(0x3a4)]()['COMPRESS_MUTATION_APPLY'])(_0x18722d[_0x1c6fc9(0x367)],null)||_0x18722d[_0x1c6fc9(0x367)],_0x434ff9={..._0x18722d,'mutations':_0x4dbb8b};this[_0x1c6fc9(0x3d3)](),this[_0x1c6fc9(0x1ab)](this[_0x1c6fc9(0x16c)]['onRemoteChangeset'](_0x434ff9)),this['_unlockTransition']();}['_onRemoteACK'](_0x5102bb){const _0x389e61=_0x4deb9c;this['_lockTransition'](),this['_updateState'](this[_0x389e61(0x16c)][_0x389e61(0x304)](_0x5102bb)),this['_unlockTransition']();}[_0x4deb9c(0x18c)](_0x1373a2){const _0x22abb9=_0x4deb9c;this[_0x22abb9(0x3d3)](),this['_updateState'](this[_0x22abb9(0x16c)][_0x22abb9(0x4d8)](_0x1373a2)),this[_0x22abb9(0x1cc)]();}[_0x4deb9c(0x460)](_0x1a58c7){const _0x59b8b7=_0x4deb9c;if(!(this[_0x59b8b7(0x16c)]instanceof _0x3ae8e5))throw new TypeError(_0x59b8b7(0x298));const _0x3bc60e=_0x1a58c7[_0x59b8b7(0x269)](_0x301782=>{const _0x5f365d=_0x59b8b7,_0x384f3e=this[_0x5f365d(0x155)][_0x5f365d(0x3b4)][_0x5f365d(0x1f1)](this[_0x5f365d(0x155)]['interceptor'][_0x5f365d(0x3a4)]()[_0x5f365d(0x429)])(_0x301782[_0x5f365d(0x367)],null)||_0x301782[_0x5f365d(0x367)];return{..._0x301782,'mutations':_0x384f3e};});this[_0x59b8b7(0x3d3)](),this[_0x59b8b7(0x1ab)](this[_0x59b8b7(0x16c)][_0x59b8b7(0x2a2)](_0x3bc60e)),this['_unlockTransition']();}['_toggleOffline'](){const _0x1c9b9f=_0x4deb9c;this[_0x1c9b9f(0x3d3)](),this[_0x1c9b9f(0x1ab)](this[_0x1c9b9f(0x16c)][_0x1c9b9f(0x476)]()),this['_unlockTransition']();}['_toggleOnline'](_0x156d6b=!0x1){const _0x3ccca5=_0x4deb9c;this[_0x3ccca5(0x3d3)](),this[_0x3ccca5(0x1ab)](this['_state'][_0x3ccca5(0x335)]()),this[_0x3ccca5(0x1cc)]();const _0x5636a9=this['_state'];_0x156d6b&&_0x5636a9 instanceof _0x194137&&(this[_0x3ccca5(0x3d3)](),this['_updateState'](_0x5636a9[_0x3ccca5(0x1e4)]()),this[_0x3ccca5(0x1cc)]());}async[_0x4deb9c(0x2e4)](){return new Promise(_0x5294d6=>{const _0x41de42=_0x47c1;this[_0x41de42(0x4ba)][_0x41de42(0x501)][_0x41de42(0x4f9)](_0x1837c6[_0x41de42(0x215)](0x1))[_0x41de42(0x138)](async _0x2a2030=>{const _0x309444=_0x41de42;_0x5294d6(await this['_createInitialStateImpl'](_0x2a2030===_0x4388c5[_0x309444(0x1df)]));});});}[_0x4deb9c(0x3e7)](){const _0x5bc9f5=_0x4deb9c,_0x407cb4=this[_0x5bc9f5(0x282)];return{'onStateChange':(_0x28617d,_0x2545fd)=>{const _0x4ee7ce=_0x5bc9f5;if(_0x28617d!==this[_0x4ee7ce(0x16c)])throw new Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x28617d[_0x4ee7ce(0x111)]+_0x4ee7ce(0x247)+_0x2545fd[_0x4ee7ce(0x111)]+'\x0aCurrent:\x20'+this[_0x4ee7ce(0x16c)][_0x4ee7ce(0x111)]);this[_0x4ee7ce(0x1ab)](_0x2545fd);},'onSendChangeset':_0x15ad5d=>{const _0x112cb0=_0x5bc9f5,_0x4ac8a2={'eventID':_0x5c3399[_0x112cb0(0x3d6)][_0x112cb0(0x29c)],'data':{'unitID':_0x15ad5d[_0x112cb0(0x282)],'unitType':this[_0x112cb0(0x19c)],'changeset':_0x15ad5d,'memberID':this['session'][_0x112cb0(0x146)]()}};this[_0x112cb0(0x4ba)][_0x112cb0(0x151)](_0x4ac8a2,this[_0x112cb0(0x282)]);},'onMissingChangesets':({from:_0x10c862,to:_0x446e64})=>{const _0x4312c2=_0x5bc9f5;this['_logService'][_0x4312c2(0x3e6)](_0x4312c2(0x24f),_0x4312c2(0xfc)+_0x10c862+_0x4312c2(0x16d)+_0x446e64);const _0x59a658={'eventID':_0x5c3399[_0x4312c2(0x3d6)][_0x4312c2(0x236)],'data':{'unitID':_0x407cb4,'unitType':this['_type'],'from':_0x10c862,'to':_0x446e64}};this[_0x4312c2(0x4ba)][_0x4312c2(0x151)](_0x59a658,this[_0x4312c2(0x282)]);}};}async[_0x4deb9c(0x10b)](_0x35e3cc){const _0x497153=_0x4deb9c;var _0x8ea952,_0x1f9a4a;const _0xc9c213=await this[_0x497153(0x3d7)][_0x497153(0x286)](this[_0x497153(0x282)]),_0x151057=(_0x8ea952=_0xc9c213==null?void 0x0:_0xc9c213[_0x497153(0x367)])!=null?_0x8ea952:[],_0x4bd199=(_0x1f9a4a=_0xc9c213==null?void 0x0:_0xc9c213[_0x497153(0x32c)])!=null?_0x1f9a4a:null,_0x314718=this['unitID'];try{this[_0x497153(0x26f)](_0x4bd199,_0x151057);}catch(_0x188941){this[_0x497153(0x1aa)][_0x497153(0x46e)](_0x188941);}const _0x3f988a=this[_0x497153(0x3e7)]();if(_0x35e3cc){const _0x1964fe=_0x4facb1(this[_0x497153(0x25f)],_0x314718,this[_0x497153(0x19c)],_0x4bd199,_0x151057,_0x3f988a);return _0x1964fe instanceof _0x418dd0?_0x1964fe[_0x497153(0x445)]():(_0x1964fe instanceof _0x29239e||_0x1964fe instanceof _0x2aa63e)&&_0x1964fe[_0x497153(0x4e0)](),_0x1964fe;}return this[_0x497153(0x25f)][_0x497153(0x427)](_0x4fba74,_0x314718,this[_0x497153(0x19c)],_0x4bd199,_0x151057,_0x3f988a);}[_0x4deb9c(0x26f)](_0x3cb3d8,_0x4239d7){const _0x3ab043=_0x4deb9c;var _0x4f2baa,_0x28372a;const _0x55943e=this[_0x3ab043(0x155)]['interceptor'][_0x3ab043(0x1f1)](this[_0x3ab043(0x155)][_0x3ab043(0x3b4)][_0x3ab043(0x3a4)]()[_0x3ab043(0x429)]);(_0x4f2baa=_0x55943e((_0x3cb3d8==null?void 0x0:_0x3cb3d8[_0x3ab043(0x367)])||[],null))==null||_0x4f2baa[_0x3ab043(0x4cc)](_0x206187=>this['_commandService'][_0x3ab043(0x450)](_0x206187['id'],_0x206187[_0x3ab043(0x3fd)])),(_0x28372a=_0x55943e(_0x4239d7||[],null))==null||_0x28372a[_0x3ab043(0x4cc)](_0x612144=>this['_commandService'][_0x3ab043(0x450)](_0x612144['id'],_0x612144[_0x3ab043(0x3fd)]));}},_0x3723aa['CollaborationEntity']=_0x380a6a([_0x1ac0b4(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ac0b4(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x1ac0b4(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x4a6)])),_0x1ac0b4(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService'])),_0x1ac0b4(0x7,_0x44f3cf['Inject'](_0x5c3399['RevisionService'])),_0x1ac0b4(0x8,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x1ac0b4(0x9,_0x44f3cf[_0x4deb9c(0x243)]),_0x1ac0b4(0xa,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x1ac0b4(0xb,_0x44f3cf[_0x4deb9c(0x4d1)]),_0x1ac0b4(0xc,_0x44f3cf[_0x4deb9c(0x12e)](_0x27229c))],_0x3723aa[_0x4deb9c(0x3ed)]),_0x3723aa[_0x4deb9c(0x3c1)]=class extends _0x3723aa['CollaborationEntity']{constructor(_0x1548d8,_0x1b8675,_0x9a9fb9,_0x353395,_0x584227,_0x74d483,_0x56f8fc,_0x45a8e6,_0x214b04,_0x3b045b,_0x4670bb,_0xae565f,_0x4bbe13,_0x487554,_0x15c605,_0x3bbd9f,_0xb2633c){const _0x1a887f=_0x4deb9c;super(_0x1548d8,_0x9a9fb9,_0x1b8675,_0x353395,_0x584227,_0x74d483,_0x56f8fc,_0x45a8e6,_0x4bbe13,_0x487554,_0x15c605,_0x3bbd9f,_0xb2633c),this[_0x1a887f(0x282)]=_0x1548d8,this[_0x1a887f(0x4f1)]=_0x1b8675,this[_0x1a887f(0x22b)]=_0x214b04,this[_0x1a887f(0x322)]=_0x3b045b,this[_0x1a887f(0x1f8)]=_0x4670bb,this[_0x1a887f(0x40a)]=_0xae565f;}[_0x4deb9c(0x3e7)](){const _0x506e80=_0x4deb9c,_0x4ec5be=super[_0x506e80(0x3e7)]();return _0x4ec5be[_0x506e80(0x127)]=_0x30958c=>this[_0x506e80(0x322)]['transformIMECache'](_0x30958c),_0x4ec5be[_0x506e80(0x49c)]=_0x3beea5=>this[_0x506e80(0x1f8)][_0x506e80(0x3f8)](_0x3beea5),_0x4ec5be['onSyncEditingCollabCursor']=_0x5a937d=>this[_0x506e80(0x40a)][_0x506e80(0x2ca)](_0x5a937d),_0x4ec5be[_0x506e80(0x37f)]=_0x3acb57=>this[_0x506e80(0x322)][_0x506e80(0x3d0)](_0x3acb57),_0x4ec5be;}async[_0x4deb9c(0x4fb)](){const _0x36ecaf=_0x4deb9c,_0x5c4d10=await super['_init']();return this[_0x36ecaf(0x446)](this[_0x36ecaf(0x484)][_0x36ecaf(0x27a)]((_0x15beba,_0x6966d)=>{const _0x398624=_0x36ecaf;if(_0x15beba[_0x398624(0x4f1)]!==_0x44f3cf[_0x398624(0x2c1)][_0x398624(0x3b0)]||_0x6966d!=null&&_0x6966d['fromCollab']||_0x6966d!=null&&_0x6966d[_0x398624(0x313)])return;const _0x1a431b=_0x15beba[_0x398624(0x3fd)];if((_0x1a431b==null?void 0x0:_0x1a431b[_0x398624(0x380)])!==this[_0x398624(0x282)])return;let _0x4f963a=_0x15beba;if(_0x4f963a['id']===_0x495201[_0x398624(0x41b)]['id']){const _0xcca6a=_0x4f963a[_0x398624(0x3fd)];_0x4f963a={'id':_0x495201[_0x398624(0x41b)]['id'],'type':_0x44f3cf['CommandType'][_0x398624(0x3b0)],'params':{'unitId':_0xcca6a[_0x398624(0x380)],'actions':_0xcca6a[_0x398624(0x3fe)],'textRanges':null}};}const _0x2c29f9=this['_compressMutationService'][_0x398624(0x3b4)][_0x398624(0x1f1)](this['_compressMutationService']['interceptor'][_0x398624(0x3a4)]()['COMPRESS_MUTATION_SEND'])([_0x4f963a],null)||[_0x4f963a];this[_0x398624(0x27f)](_0x2c29f9[0x0]);})),_0x5c4d10;}},_0x3723aa[_0x4deb9c(0x3c1)]=_0x380a6a([_0x1ac0b4(0x3,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ac0b4(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x1ac0b4(0x5,_0x44f3cf['Inject'](_0x5c3399[_0x4deb9c(0x4a6)])),_0x1ac0b4(0x6,_0x44f3cf['Inject'](_0x44f3cf['LocaleService'])),_0x1ac0b4(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x1ac0b4(0x8,_0x44f3cf[_0x4deb9c(0x2a6)](_0x50f029[_0x4deb9c(0x320)])),_0x1ac0b4(0x9,_0x44f3cf[_0x4deb9c(0x2a6)](_0x8239a3)),_0x1ac0b4(0xa,_0x44f3cf[_0x4deb9c(0x2a6)](_0x2c5796)),_0x1ac0b4(0xb,_0x44f3cf[_0x4deb9c(0x2a6)](_0x47cf83)),_0x1ac0b4(0xc,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x1ac0b4(0xd,_0x44f3cf[_0x4deb9c(0x243)]),_0x1ac0b4(0xe,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x1ac0b4(0xf,_0x44f3cf['IPermissionService']),_0x1ac0b4(0x10,_0x44f3cf[_0x4deb9c(0x12e)](_0x27229c))],_0x3723aa[_0x4deb9c(0x3c1)]),_0x3723aa[_0x4deb9c(0x1a5)]=class extends _0x3723aa['CollaborationEntity']{constructor(_0x573f2b,_0x41c349,_0x429a5b,_0x27014a,_0x5dfe4d,_0x5c7d0c,_0x2218b4,_0x9e0e7d,_0x2671c6,_0x2bb391,_0x3739bc,_0x3126e6,_0x1061fd,_0xb6c11c){const _0x5eb547=_0x4deb9c;super(_0x573f2b,_0x429a5b,_0x41c349,_0x27014a,_0x5dfe4d,_0x5c7d0c,_0x2218b4,_0x9e0e7d,_0x2bb391,_0x3739bc,_0x3126e6,_0x1061fd,_0xb6c11c),this[_0x5eb547(0x282)]=_0x573f2b,this[_0x5eb547(0x4f1)]=_0x41c349,this[_0x5eb547(0x18a)]=_0x2671c6;}[_0x4deb9c(0x3e7)](){const _0x219226=_0x4deb9c,_0x45ea8f=super[_0x219226(0x3e7)]();return _0x45ea8f[_0x219226(0x49c)]=_0x33071a=>this[_0x219226(0x18a)][_0x219226(0x3f8)](_0x33071a),_0x45ea8f;}async[_0x4deb9c(0x4fb)](){const _0x430f6b=_0x4deb9c,_0x1e8837=await super[_0x430f6b(0x4fb)]();return this[_0x430f6b(0x446)](this[_0x430f6b(0x484)][_0x430f6b(0x27a)]((_0x299cd5,_0x1fe484)=>{const _0x2d7f80=_0x430f6b;if(_0x299cd5['type']!==_0x44f3cf[_0x2d7f80(0x2c1)][_0x2d7f80(0x3b0)]||_0x1fe484!=null&&_0x1fe484[_0x2d7f80(0x362)]||_0x1fe484!=null&&_0x1fe484[_0x2d7f80(0x313)])return;const _0x5eabba=_0x299cd5[_0x2d7f80(0x3fd)];if((_0x5eabba==null?void 0x0:_0x5eabba[_0x2d7f80(0x380)])!==this['unitID'])return;const _0x4c5ef5=_0x299cd5,_0x33570d=this[_0x2d7f80(0x155)][_0x2d7f80(0x3b4)][_0x2d7f80(0x1f1)](this[_0x2d7f80(0x155)]['interceptor'][_0x2d7f80(0x3a4)]()[_0x2d7f80(0x505)])([_0x4c5ef5],null)||[_0x4c5ef5];this['_onLocalMutation'](_0x33570d[0x0]);})),_0x1e8837;}},_0x3723aa[_0x4deb9c(0x1a5)]=_0x380a6a([_0x1ac0b4(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ac0b4(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x1d5)])),_0x1ac0b4(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399['CompressMutationService'])),_0x1ac0b4(0x6,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService'])),_0x1ac0b4(0x7,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399[_0x4deb9c(0x3b2)])),_0x1ac0b4(0x8,_0x44f3cf[_0x4deb9c(0x2a6)](_0x356d67)),_0x1ac0b4(0x9,_0x44f3cf[_0x4deb9c(0x4e5)]),_0x1ac0b4(0xa,_0x44f3cf[_0x4deb9c(0x243)]),_0x1ac0b4(0xb,_0x90d6c1[_0x4deb9c(0x1b2)]),_0x1ac0b4(0xc,_0x44f3cf[_0x4deb9c(0x4d1)]),_0x1ac0b4(0xd,_0x44f3cf[_0x4deb9c(0x12e)](_0x27229c))],_0x3723aa[_0x4deb9c(0x1a5)]);var _0x530eec=Object[_0x4deb9c(0x4f6)],_0x43fcad=Object[_0x4deb9c(0x3d9)],_0x1f689e=(_0x6b7f5b,_0x3dc376,_0x54fc35,_0x42e573)=>{const _0x346f86=_0x4deb9c;for(var _0x22e1c0=_0x42e573>0x1?void 0x0:_0x42e573?_0x43fcad(_0x3dc376,_0x54fc35):_0x3dc376,_0x2b0484=_0x6b7f5b[_0x346f86(0x17a)]-0x1,_0xbe370d;_0x2b0484>=0x0;_0x2b0484--)(_0xbe370d=_0x6b7f5b[_0x2b0484])&&(_0x22e1c0=(_0x42e573?_0xbe370d(_0x3dc376,_0x54fc35,_0x22e1c0):_0xbe370d(_0x22e1c0))||_0x22e1c0);return _0x42e573&&_0x22e1c0&&_0x530eec(_0x3dc376,_0x54fc35,_0x22e1c0),_0x22e1c0;},_0x16377b=(_0x9bed5a,_0x244e6d)=>(_0x307e05,_0x53802)=>_0x244e6d(_0x307e05,_0x53802,_0x9bed5a);_0x3723aa['CollaborationController']=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x1b2fe4,_0xec2621,_0x2e026c){const _0x5476c3=_0x4deb9c;super(),_0x434a2a(this,_0x5476c3(0x2b6),new Map()),_0x434a2a(this,'_entityInit$',new _0x1837c6['Subject']()),(this[_0x5476c3(0x25f)]=_0x1b2fe4,this[_0x5476c3(0x359)]=_0xec2621,this[_0x5476c3(0x391)]=_0x2e026c,this[_0x5476c3(0x4fb)]());}[_0x4deb9c(0x241)](){const _0x207c48=_0x4deb9c;super[_0x207c48(0x241)](),this[_0x207c48(0x2b6)][_0x207c48(0x4cc)](_0xaf4f7c=>_0xaf4f7c['dispose']()),this[_0x207c48(0x2b6)]['clear']();}[_0x4deb9c(0x204)](_0x427953){const _0x10eb2f=_0x4deb9c;var _0x2b6fc0;return(_0x2b6fc0=this[_0x10eb2f(0x2b6)][_0x10eb2f(0x38c)](_0x427953))!=null?_0x2b6fc0:null;}[_0x4deb9c(0x2d6)](_0xd98d5c){const _0x27f634=_0x4deb9c,_0x5b275f=this[_0x27f634(0x204)](_0xd98d5c);return _0x5b275f?_0x1837c6['of'](_0x5b275f):this[_0x27f634(0x284)][_0x27f634(0x4f9)](_0x3ab9e8[_0x27f634(0x39e)](_0x5ce19c=>_0x5ce19c[_0x27f634(0x282)]===_0xd98d5c));}[_0x4deb9c(0x4fb)](){const _0x4320c6=_0x4deb9c;this[_0x4320c6(0x391)]['getTypeOfUnitAdded$'](_0x44f3cf['UniverInstanceType'][_0x4320c6(0x402)])[_0x4320c6(0x4f9)](_0x1837c6['takeUntil'](this['dispose$']),_0x3ab9e8[_0x4320c6(0x3a6)](0x10))[_0x4320c6(0x138)](async _0x39ab01=>{const _0x308d3a=_0x4320c6,_0x38b976=_0x39ab01[_0x308d3a(0x43f)](),_0x58bac7=await this[_0x308d3a(0x18d)](_0x38b976,_0x3bfee1['UNIVER_SHEET']);this[_0x308d3a(0x2b6)][_0x308d3a(0x2b2)](_0x38b976,_0x58bac7);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x44f3cf[_0x4320c6(0x1bb)][_0x4320c6(0x350)])['pipe'](_0x1837c6['takeUntil'](this[_0x4320c6(0x423)]),_0x3ab9e8[_0x4320c6(0x3a6)](0x10))[_0x4320c6(0x4f9)](_0x3ab9e8[_0x4320c6(0x39e)](_0x3f8352=>!_0x3f8352[_0x4320c6(0x43f)]()[_0x4320c6(0x513)]('__')))[_0x4320c6(0x138)](async _0x1e2cdd=>{const _0x378164=_0x4320c6,_0x4193c6=_0x1e2cdd[_0x378164(0x43f)](),_0x4c2464=await this[_0x378164(0x18d)](_0x4193c6,_0x3bfee1[_0x378164(0x350)]);this[_0x378164(0x2b6)][_0x378164(0x2b2)](_0x4193c6,_0x4c2464);}),_0x1837c6[_0x4320c6(0xfb)](this['_univerInstanceService'][_0x4320c6(0x4a5)](_0x44f3cf[_0x4320c6(0x1bb)][_0x4320c6(0x402)]),this[_0x4320c6(0x391)]['getTypeOfUnitDisposed$'](_0x44f3cf[_0x4320c6(0x1bb)][_0x4320c6(0x350)]))['pipe'](_0x1837c6[_0x4320c6(0x23e)](this[_0x4320c6(0x423)]))[_0x4320c6(0x138)](_0x17c031=>{const _0x5b6aee=_0x4320c6,_0x5c08ef=_0x17c031[_0x5b6aee(0x43f)](),_0x489766=this[_0x5b6aee(0x2b6)][_0x5b6aee(0x38c)](_0x5c08ef);_0x489766&&(_0x489766['dispose'](),this[_0x5b6aee(0x2b6)][_0x5b6aee(0x312)](_0x5c08ef));});}async[_0x4deb9c(0x18d)](_0x449c8c,_0x46ab49){const _0x2dea41=_0x4deb9c,_0x302e4d=await this['_collabSessionService'][_0x2dea41(0x10f)](_0x449c8c),_0x35d18f=this[_0x2dea41(0x25f)][_0x2dea41(0x427)](this['_getCtorByUniverType'](_0x46ab49),_0x449c8c,_0x46ab49,_0x302e4d);return await _0x35d18f[_0x2dea41(0x36a)](),this[_0x2dea41(0x284)][_0x2dea41(0x3e8)](_0x35d18f),_0x35d18f;}['_getCtorByUniverType'](_0x2f8747){const _0x50e3b5=_0x4deb9c;switch(_0x2f8747){case _0x3bfee1[_0x50e3b5(0x350)]:return _0x3723aa[_0x50e3b5(0x3c1)];case _0x3bfee1[_0x50e3b5(0x402)]:return _0x3723aa['SheetCollaborationEntity'];default:throw new Error(_0x50e3b5(0x2fd)+_0x2f8747);}}},_0x3723aa[_0x4deb9c(0x3ac)]=_0x1f689e([_0x16377b(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x16377b(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x433)])),_0x16377b(0x2,_0x44f3cf[_0x4deb9c(0x165)])],_0x3723aa[_0x4deb9c(0x3ac)]);const _0x2634fe=[_0x4deb9c(0x3de),_0x4deb9c(0x2f1),_0x4deb9c(0x480),_0x4deb9c(0x3eb),_0x4deb9c(0x2fc),_0x4deb9c(0x3ec)];class _0x491fbd extends _0x44f3cf['Disposable']{constructor(){const _0x3f60b4=_0x4deb9c;super(...arguments),_0x434a2a(this,_0x3f60b4(0x42b),new Map()),_0x434a2a(this,_0x3f60b4(0x152),0x0);}['assignAColorForMemberID'](_0x51b118){const _0x171c87=_0x4deb9c;if(this[_0x171c87(0x42b)][_0x171c87(0x17f)](_0x51b118))return this[_0x171c87(0x42b)][_0x171c87(0x38c)](_0x51b118);const _0x2b3e2d=_0x2634fe[this[_0x171c87(0x152)]];return this['_colorIndex']=(this[_0x171c87(0x152)]+0x1)%_0x2634fe['length'],this[_0x171c87(0x42b)][_0x171c87(0x2b2)](_0x51b118,_0x2b3e2d),_0x2b3e2d;}}var _0x4c3d5c=Object[_0x4deb9c(0x4f6)],_0x14616e=Object[_0x4deb9c(0x3d9)],_0x24ddc6=(_0x19dfed,_0x15bbfa,_0x1c2c6c,_0x12a5d4)=>{const _0x32ebaa=_0x4deb9c;for(var _0xebb030=_0x12a5d4>0x1?void 0x0:_0x12a5d4?_0x14616e(_0x15bbfa,_0x1c2c6c):_0x15bbfa,_0x3961c2=_0x19dfed[_0x32ebaa(0x17a)]-0x1,_0x725590;_0x3961c2>=0x0;_0x3961c2--)(_0x725590=_0x19dfed[_0x3961c2])&&(_0xebb030=(_0x12a5d4?_0x725590(_0x15bbfa,_0x1c2c6c,_0xebb030):_0x725590(_0xebb030))||_0xebb030);return _0x12a5d4&&_0xebb030&&_0x4c3d5c(_0x15bbfa,_0x1c2c6c,_0xebb030),_0xebb030;},_0x2c344e=(_0x233a7b,_0x55f833)=>(_0xd47a5f,_0x19640f)=>_0x55f833(_0xd47a5f,_0x19640f,_0x233a7b);const _0x3408cd=0x12c,_0x525db6=0x64,_0x19a090=()=>{let _0x12d745=[],_0x2f98b7=!0x1;return _0x1336e9=>{const _0x3d7392=_0x47c1;_0x12d745[_0x3d7392(0x4c0)](_0x1336e9),_0x2f98b7||(_0x2f98b7=!0x0,setTimeout(()=>{const _0x20464b=_0x3d7392;_0x12d745[_0x20464b(0x4cc)](_0x23ba86=>_0x23ba86()),_0x12d745=[],_0x2f98b7=!0x1;}));};};let _0x593318=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x7fc96,_0x4653db,_0x159941,_0xd39d78,_0x287b85,_0x4056f7,_0x1a57e6,_0x1ba556){const _0x391c72=_0x4deb9c;super(),_0x434a2a(this,'_online',!0x1),_0x434a2a(this,_0x391c72(0x4fb),!0x1),_0x434a2a(this,_0x391c72(0x36b),new _0x1837c6[(_0x391c72(0x17d))](new Map())),_0x434a2a(this,_0x391c72(0x23c),this[_0x391c72(0x36b)][_0x391c72(0x4eb)]()),_0x434a2a(this,_0x391c72(0x4f3),new _0x1837c6[(_0x391c72(0x17d))]([])),_0x434a2a(this,_0x391c72(0x3c0),this[_0x391c72(0x4f3)][_0x391c72(0x4f9)](_0x1837c6[_0x391c72(0x2a0)](_0x3408cd))),_0x434a2a(this,_0x391c72(0x4cd),_0xb2aa35((_0x11f8c1,_0x58e957)=>{const _0x5cbdce=_0x391c72,_0x1a324c={'eventID':_0x5c3399['CollaborationEvent'][_0x5cbdce(0x1c5)],'data':{'unitID':this[_0x5cbdce(0x282)],'memberID':this['_session'][_0x5cbdce(0x146)](),'selection':_0x3dc1ae[_0x5cbdce(0x3a8)](_0x11f8c1,_0x58e957[_0x5cbdce(0x408)])}};this[_0x5cbdce(0x39d)][_0x5cbdce(0x151)](_0x1a324c,this[_0x5cbdce(0x282)]);},_0x525db6)),(this['unitID']=_0x7fc96,this['_session']=_0x4653db,this[_0x391c72(0x25f)]=_0x159941,this['_colorAssignService']=_0xd39d78,this['_memberService']=_0x287b85,this[_0x391c72(0x391)]=_0x4056f7,this[_0x391c72(0x484)]=_0x1a57e6,this[_0x391c72(0x2a4)]=_0x1ba556);}get[_0x4deb9c(0x464)](){const _0x9e3ac6=_0x4deb9c;return this[_0x9e3ac6(0x36b)]['getValue']();}get[_0x4deb9c(0x281)](){const _0x3119a8=_0x4deb9c;return this[_0x3119a8(0x4f3)][_0x3119a8(0x22e)]();}['dispose'](){const _0x5e2042=_0x4deb9c;super[_0x5e2042(0x241)](),this[_0x5e2042(0x36b)][_0x5e2042(0x3e8)](new Map()),this[_0x5e2042(0x36b)][_0x5e2042(0x4d3)](),this['_roomMembers$']['next']([]),this['_roomMembers$']['complete']();}[_0x4deb9c(0x36a)](){const _0x5b9f1b=_0x4deb9c;this[_0x5b9f1b(0x4fb)]||(this[_0x5b9f1b(0x4fb)]=!0x0,this[_0x5b9f1b(0x39d)][_0x5b9f1b(0x501)][_0x5b9f1b(0x4f9)](_0x1837c6[_0x5b9f1b(0x23e)](this[_0x5b9f1b(0x423)]))[_0x5b9f1b(0x138)](_0x312591=>{const _0x541375=_0x5b9f1b;_0x312591===_0x4388c5[_0x541375(0x1df)]?this['_toggleOnline']():this[_0x541375(0x327)]();}),this[_0x5b9f1b(0x39d)][_0x5b9f1b(0x458)][_0x5b9f1b(0x4f9)](_0x1837c6[_0x5b9f1b(0x23e)](this['dispose$']))[_0x5b9f1b(0x138)](_0x4973d4=>{const _0x2e1614=_0x5b9f1b,_0x1e4d22=_0x4973d4[_0x2e1614(0x2aa)];_0x1e4d22===_0x5c3399['CollaborationEvent'][_0x2e1614(0x1c5)]&&this[_0x2e1614(0x181)](_0x4973d4),_0x1e4d22===_0x5c3399['CollaborationEvent'][_0x2e1614(0x203)]&&this[_0x2e1614(0x466)](_0x4973d4);}),this['_onRefRangeChange'](),this[_0x5b9f1b(0x446)](this[_0x5b9f1b(0x484)][_0x5b9f1b(0x27a)](_0x17c228=>{const _0x274211=_0x5b9f1b;if(this['_online']&&_0x17c228['id']===_0x5848ce[_0x274211(0x3b8)]['id']&&_0x17c228['params'][_0x274211(0x380)]===this[_0x274211(0x282)]){const _0x1e32d8=_0x17c228[_0x274211(0x3fd)];this[_0x274211(0x4cd)](_0x1e32d8['subUnitId'],_0x1e32d8[_0x274211(0x34d)][0x0]);}})));}[_0x4deb9c(0x181)](_0x38e7f5){const _0x59c7f3=_0x4deb9c;var _0x38a6b0,_0x5bab02;const {memberID:_0x295fd6,selection:_0x3811f3}=_0x38e7f5[_0x59c7f3(0xf9)],{sheetName:_0x41edb1,range:_0x6141a7}=_0x3dc1ae[_0x59c7f3(0x4e9)](_0x3811f3),_0x4c58aa={'name':(_0x5bab02=(_0x38a6b0=this[_0x59c7f3(0x4d4)][_0x59c7f3(0x438)](this[_0x59c7f3(0x282)],_0x295fd6))==null?void 0x0:_0x38a6b0[_0x59c7f3(0x2e1)])!=null?_0x5bab02:'Unknown\x20user','range':this[_0x59c7f3(0x296)](_0x41edb1,_0x6141a7),'sheetID':_0x41edb1,'color':this[_0x59c7f3(0x162)][_0x59c7f3(0x42e)](_0x295fd6),'selection':_0x3811f3},_0x32bc96=this['cursorInfo'];_0x32bc96[_0x59c7f3(0x2b2)](_0x295fd6,_0x4c58aa),this[_0x59c7f3(0x36b)]['next'](_0x32bc96);}[_0x4deb9c(0x466)](_0x3e8dc8){const _0x25ef15=_0x4deb9c,{memberID:_0x40f4f4}=_0x3e8dc8[_0x25ef15(0xf9)],_0x24491d=this[_0x25ef15(0x464)];_0x24491d[_0x25ef15(0x312)](_0x40f4f4),this['_cursorInfo$']['next'](_0x24491d);}[_0x4deb9c(0x296)](_0x5b7510,_0x1dcde3){const _0x20216f=_0x4deb9c;var _0x591fe5,_0x34bb3d;const _0x35d26f=(_0x34bb3d=(_0x591fe5=this[_0x20216f(0x391)][_0x20216f(0x471)](this[_0x20216f(0x282)]))==null?void 0x0:_0x591fe5[_0x20216f(0x3bf)](_0x5b7510))==null?void 0x0:_0x34bb3d[_0x20216f(0x302)]();return(_0x35d26f==null?void 0x0:_0x35d26f[_0x20216f(0x340)](_0x61ef93=>_0x44f3cf[_0x20216f(0x1b8)][_0x20216f(0x47b)](_0x61ef93,_0x1dcde3)))||_0x1dcde3;}['_onRefRangeChange'](){const _0x3db532=_0x4deb9c,_0x312234=new _0x44f3cf[(_0x3db532(0x1c7))](),_0x5dca43=_0x19a090(),_0x2f461d=()=>{const _0x245b69=_0x3db532;_0x312234['dispose']();const _0x590199=(_0x508228,_0x4d5be1,_0x4a3aa4,_0x1246ef)=>{const _0x14fbfc=_0x47c1;let _0x415944=[];switch(_0x508228['id']){case _0x5848ce[_0x14fbfc(0x2f2)]['DeleteRangeMoveLeftCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x35b)](_0x508228,_0x1246ef);break;}case _0x5848ce['EffectRefRangId'][_0x14fbfc(0x245)]:{_0x415944=_0x5848ce['handleDeleteRangeMoveUp'](_0x508228,_0x1246ef);break;}case _0x5848ce['EffectRefRangId'][_0x14fbfc(0x250)]:{_0x415944=_0x5848ce['handleInsertCol'](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)]['InsertRangeMoveDownCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x36d)](_0x508228,_0x1246ef);break;}case _0x5848ce['EffectRefRangId'][_0x14fbfc(0x1d8)]:{_0x415944=_0x5848ce['handleInsertRangeMoveRight'](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)]['InsertRowCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x363)](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)]['MoveRangeCommandId']:{_0x415944=_0x5848ce[_0x14fbfc(0x20d)](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)][_0x14fbfc(0x1c9)]:{_0x415944=_0x5848ce['handleIRemoveCol'](_0x508228,_0x1246ef);break;}case _0x5848ce[_0x14fbfc(0x2f2)][_0x14fbfc(0x419)]:{_0x415944=_0x5848ce[_0x14fbfc(0x1ba)](_0x508228,_0x1246ef);break;}}const _0x5d992c=_0x5848ce[_0x14fbfc(0x44d)](_0x415944,_0x1246ef),_0x1966e2=this[_0x14fbfc(0x464)]['get'](_0x4d5be1);if(_0x1966e2&&_0x5d992c){const _0x2d0685={..._0x1966e2,'range':_0x5d992c};this['cursorInfo'][_0x14fbfc(0x2b2)](_0x4d5be1,_0x2d0685),_0x5dca43(()=>{const _0x3c5856=_0x14fbfc,_0x23c1fa=this[_0x3c5856(0x2a4)][_0x3c5856(0x3aa)](_0x5d992c,_0x43438d=>(_0x23c1fa['dispose'](),_0x590199(_0x43438d,_0x4d5be1,_0x4a3aa4,_0x5d992c)));_0x312234[_0x3c5856(0x117)](_0x23c1fa);});}return{'redos':[],'undos':[]};};this[_0x245b69(0x464)][_0x245b69(0x4cc)]((_0x1c40a7,_0x478e89)=>{const _0x370c35=_0x245b69,{range:_0x46b310,sheetID:_0x23d139}=_0x1c40a7,_0x2f1fde=this[_0x370c35(0x2a4)][_0x370c35(0x3aa)](_0x46b310,_0x8340f8=>(_0x2f1fde[_0x370c35(0x241)](),_0x590199(_0x8340f8,_0x478e89,_0x23d139,_0x46b310)));_0x312234[_0x370c35(0x117)](_0x2f1fde);});};this[_0x3db532(0x446)](_0x44f3cf[_0x3db532(0x133)](this['_cursorInfo$'][_0x3db532(0x138)](()=>{_0x2f461d();})));}[_0x4deb9c(0x346)](){const _0x4dfd6f=_0x4deb9c;var _0x56ac54,_0x2f120f;if(this[_0x4dfd6f(0x258)]=!0x0,((_0x56ac54=this[_0x4dfd6f(0x391)][_0x4dfd6f(0x1af)]())==null?void 0x0:_0x56ac54[_0x4dfd6f(0x43f)]())!==this[_0x4dfd6f(0x282)])return;const _0x554c8b=(_0x2f120f=this[_0x4dfd6f(0x25f)][_0x4dfd6f(0x38c)](_0x5848ce[_0x4dfd6f(0x13c)])[_0x4dfd6f(0x141)]())==null?void 0x0:_0x2f120f[0x0],_0x23eaba=this['_univerInstanceService']['getCurrentUnitForType'](_0x44f3cf[_0x4dfd6f(0x1bb)][_0x4dfd6f(0x402)])[_0x4dfd6f(0x4c5)]();_0x554c8b&&_0x23eaba&&this['_updateLocalCursor'](_0x23eaba['getSheetId'](),_0x554c8b);}[_0x4deb9c(0x327)](){const _0x5bfe39=_0x4deb9c;this[_0x5bfe39(0x258)]=!0x1;}};_0x593318=_0x24ddc6([_0x2c344e(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x2c344e(0x3,_0x44f3cf['Inject'](_0x491fbd)),_0x2c344e(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x32fe7e)),_0x2c344e(0x5,_0x44f3cf[_0x4deb9c(0x165)]),_0x2c344e(0x6,_0x44f3cf[_0x4deb9c(0x243)]),_0x2c344e(0x7,_0x44f3cf['Inject'](_0x5848ce[_0x4deb9c(0x22c)]))],_0x593318);var _0x2f359f=Object[_0x4deb9c(0x4f6)],_0x421005=Object[_0x4deb9c(0x3d9)],_0x4e045b=(_0x2d0cd9,_0x2f8ef5,_0x199a3e,_0x108cac)=>{const _0x17f646=_0x4deb9c;for(var _0x5c0b0b=_0x108cac>0x1?void 0x0:_0x108cac?_0x421005(_0x2f8ef5,_0x199a3e):_0x2f8ef5,_0x53fe09=_0x2d0cd9[_0x17f646(0x17a)]-0x1,_0x155396;_0x53fe09>=0x0;_0x53fe09--)(_0x155396=_0x2d0cd9[_0x53fe09])&&(_0x5c0b0b=(_0x108cac?_0x155396(_0x2f8ef5,_0x199a3e,_0x5c0b0b):_0x155396(_0x5c0b0b))||_0x5c0b0b);return _0x108cac&&_0x5c0b0b&&_0x2f359f(_0x2f8ef5,_0x199a3e,_0x5c0b0b),_0x5c0b0b;},_0x1ad801=(_0x490038,_0x1c2d0f)=>(_0x2ac74,_0x12f46b)=>_0x1c2d0f(_0x2ac74,_0x12f46b,_0x490038);const _0x12db7d=0x12c,_0x239aaf=0x64;let _0x35e6b3=class extends _0x44f3cf['RxDisposable']{constructor(_0x5062b8,_0x735f9d,_0x5ef33b,_0x2abb0b,_0x43ca58,_0xd97582,_0x5aa57a,_0x286a5d,_0xa71e45){const _0x3c2df1=_0x4deb9c;super(),_0x434a2a(this,_0x3c2df1(0x258),!0x1),_0x434a2a(this,_0x3c2df1(0x4fb),!0x1),_0x434a2a(this,_0x3c2df1(0x36b),new _0x1837c6['BehaviorSubject'](new Map())),_0x434a2a(this,_0x3c2df1(0x23c),this['_cursorInfo$'][_0x3c2df1(0x4eb)]()),_0x434a2a(this,'_roomMembers$',new _0x1837c6['BehaviorSubject']([])),_0x434a2a(this,_0x3c2df1(0x3c0),this[_0x3c2df1(0x4f3)][_0x3c2df1(0x4f9)](_0x1837c6[_0x3c2df1(0x2a0)](_0x12db7d))),_0x434a2a(this,'_updateLocalCursor',_0xb2aa35(_0x281fe3=>{const _0x594975=_0x3c2df1,_0x49f47b={'eventID':_0x5c3399[_0x594975(0x3d6)][_0x594975(0x1c5)],'data':{'unitID':this[_0x594975(0x282)],'memberID':this['_session'][_0x594975(0x146)](),'selection':_0x540863(_0x281fe3)}};this['_session'][_0x594975(0x151)](_0x49f47b,this[_0x594975(0x282)]);},_0x239aaf)),(this[_0x3c2df1(0x282)]=_0x5062b8,this[_0x3c2df1(0x39d)]=_0x735f9d,this[_0x3c2df1(0x25f)]=_0x5ef33b,this[_0x3c2df1(0x162)]=_0x2abb0b,this[_0x3c2df1(0x4d4)]=_0x43ca58,this[_0x3c2df1(0x177)]=_0xd97582,this[_0x3c2df1(0x3c2)]=_0x5aa57a,this[_0x3c2df1(0x391)]=_0x286a5d,this[_0x3c2df1(0x484)]=_0xa71e45);}get[_0x4deb9c(0x464)](){const _0x491286=_0x4deb9c;return this[_0x491286(0x36b)][_0x491286(0x22e)]();}get[_0x4deb9c(0x281)](){const _0x1e0cbb=_0x4deb9c;return this[_0x1e0cbb(0x4f3)][_0x1e0cbb(0x22e)]();}[_0x4deb9c(0x241)](){const _0x57a1ff=_0x4deb9c;super[_0x57a1ff(0x241)](),this[_0x57a1ff(0x36b)]['next'](new Map()),this[_0x57a1ff(0x36b)]['complete'](),this[_0x57a1ff(0x4f3)][_0x57a1ff(0x3e8)]([]),this['_roomMembers$'][_0x57a1ff(0x4d3)]();}[_0x4deb9c(0x36a)](){const _0x294f25=_0x4deb9c;this['_init']||(this['_init']=!0x0,this[_0x294f25(0x39d)][_0x294f25(0x501)][_0x294f25(0x4f9)](_0x1837c6[_0x294f25(0x23e)](this[_0x294f25(0x423)]))['subscribe'](_0x238623=>{const _0x1651eb=_0x294f25;_0x238623===_0x4388c5[_0x1651eb(0x1df)]?this[_0x1651eb(0x346)]():this[_0x1651eb(0x327)]();}),this[_0x294f25(0x39d)][_0x294f25(0x458)][_0x294f25(0x4f9)](_0x1837c6[_0x294f25(0x23e)](this[_0x294f25(0x423)]))['subscribe'](_0x4c3e2c=>{const _0x37c082=_0x294f25,_0x221f4b=_0x4c3e2c[_0x37c082(0x2aa)];_0x221f4b===_0x5c3399[_0x37c082(0x3d6)][_0x37c082(0x1c5)]&&this[_0x37c082(0x181)](_0x4c3e2c),_0x221f4b===_0x5c3399[_0x37c082(0x3d6)][_0x37c082(0x203)]&&this[_0x37c082(0x466)](_0x4c3e2c);}),this[_0x294f25(0x446)](this[_0x294f25(0x484)][_0x294f25(0x27a)](_0x1b54de=>{const _0x414c16=_0x294f25,_0xfb334=_0x1b54de[_0x414c16(0x3fd)];_0xfb334!=null&&this[_0x414c16(0x258)]&&_0x1b54de['id']===_0x495201[_0x414c16(0x3dd)]['id']&&_0xfb334['unitId']===this[_0x414c16(0x282)]&&_0xfb334[_0x414c16(0x401)]===!0x1&&this[_0x414c16(0x4cd)](_0xfb334[_0x414c16(0x29b)]);})),this['_syncEditingCollabCursorService'][_0x294f25(0x14b)][_0x294f25(0x4f9)](_0x1837c6[_0x294f25(0x23e)](this['dispose$']))[_0x294f25(0x138)](_0x2e275b=>{const _0x3d4b25=_0x294f25;if((_0x2e275b==null?void 0x0:_0x2e275b[_0x3d4b25(0x282)])!==this[_0x3d4b25(0x282)])return;const _0x48840d={'eventID':_0x5c3399[_0x3d4b25(0x3d6)][_0x3d4b25(0x1c5)],'data':_0x2e275b};this[_0x3d4b25(0x181)](_0x48840d);}),this[_0x294f25(0x446)](this[_0x294f25(0x484)][_0x294f25(0x27a)](_0x4408a1=>{const _0x2396d0=_0x294f25;if(_0x4408a1[_0x2396d0(0x3fd)]==null)return;const _0x3c3329=_0x4408a1['params'];if(_0x4408a1['id']!==_0x495201[_0x2396d0(0x41b)]['id']||_0x3c3329['unitId']!==this[_0x2396d0(0x282)])return;const _0x402c4b={'id':_0x2396d0(0x190),'params':_0x3c3329},_0x22dfac=this[_0x2396d0(0x464)];for(const [_0x265292,_0x5e897b]of _0x22dfac){const _0x4e7eaf={'id':_0x2396d0(0x190),'params':{'unitId':this['unitID'],'actions':null,'textRanges':_0x5e897b['ranges']}},_0x57ec9a=this['_transformService'][_0x2396d0(0x3ea)](_0x402c4b,_0x4e7eaf,!0x1);if(_0x5c3399['isTransformMutationFailure'](_0x57ec9a))throw _0x57ec9a[_0x2396d0(0x46e)];_0x22dfac[_0x2396d0(0x2b2)](_0x265292,{..._0x5e897b,'ranges':_0x57ec9a[_0x2396d0(0x499)][_0x2396d0(0x3fd)][_0x2396d0(0x23f)]});}queueMicrotask(()=>{const _0x4ac7f7=_0x2396d0;this[_0x4ac7f7(0x36b)]['next'](_0x22dfac);});})));}[_0x4deb9c(0x181)](_0x4cf95b){const _0x219461=_0x4deb9c;var _0x1b74cf,_0x209945;const {memberID:_0x5b3cd9,selection:_0x5869e7}=_0x4cf95b[_0x219461(0xf9)],_0x565829=_0x58a905(_0x5869e7),_0xf03fee=(_0x209945=(_0x1b74cf=this[_0x219461(0x4d4)][_0x219461(0x438)](this[_0x219461(0x282)],_0x5b3cd9))==null?void 0x0:_0x1b74cf['name'])!=null?_0x209945:_0x219461(0x207),_0x32f608={'color':this['_colorAssignService'][_0x219461(0x42e)](_0x5b3cd9),'name':_0xf03fee,'ranges':_0x565829},_0x5334b6=this['cursorInfo'];_0x5334b6['set'](_0x5b3cd9,_0x32f608),this[_0x219461(0x36b)][_0x219461(0x3e8)](_0x5334b6);}['_onCursorDelete'](_0x170477){const _0x1ffa57=_0x4deb9c,{memberID:_0x4a332a}=_0x170477[_0x1ffa57(0xf9)],_0x554916=this['cursorInfo'];_0x554916['delete'](_0x4a332a),this[_0x1ffa57(0x36b)]['next'](_0x554916);}[_0x4deb9c(0x346)](){const _0x4c5e92=_0x4deb9c;var _0x120d62;if(this[_0x4c5e92(0x258)]=!0x0,((_0x120d62=this['_univerInstanceService'][_0x4c5e92(0x1af)]())==null?void 0x0:_0x120d62[_0x4c5e92(0x43f)]())!==this[_0x4c5e92(0x282)])return;const _0x6fcaec=this[_0x4c5e92(0x25f)][_0x4c5e92(0x38c)](_0x495201[_0x4c5e92(0x432)])['getDocRanges']();Array[_0x4c5e92(0x4be)](_0x6fcaec)&&_0x6fcaec['length']>0x0&&this[_0x4c5e92(0x4cd)](_0x6fcaec);}[_0x4deb9c(0x327)](){const _0x27b010=_0x4deb9c;this[_0x27b010(0x258)]=!0x1;}};_0x35e6b3=_0x4e045b([_0x1ad801(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x1ad801(0x3,_0x44f3cf['Inject'](_0x491fbd)),_0x1ad801(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x32fe7e)),_0x1ad801(0x5,_0x44f3cf[_0x4deb9c(0x2a6)](_0x47cf83)),_0x1ad801(0x6,_0x5c3399[_0x4deb9c(0x453)]),_0x1ad801(0x7,_0x44f3cf[_0x4deb9c(0x165)]),_0x1ad801(0x8,_0x44f3cf[_0x4deb9c(0x243)])],_0x35e6b3);var _0x34e90d=Object[_0x4deb9c(0x4f6)],_0x33b98e=Object['getOwnPropertyDescriptor'],_0x4633df=(_0x482dc5,_0x3f66e2,_0xd7723b,_0x57a441)=>{const _0x1a2510=_0x4deb9c;for(var _0x31b0c8=_0x57a441>0x1?void 0x0:_0x57a441?_0x33b98e(_0x3f66e2,_0xd7723b):_0x3f66e2,_0x224b7f=_0x482dc5[_0x1a2510(0x17a)]-0x1,_0x17ba10;_0x224b7f>=0x0;_0x224b7f--)(_0x17ba10=_0x482dc5[_0x224b7f])&&(_0x31b0c8=(_0x57a441?_0x17ba10(_0x3f66e2,_0xd7723b,_0x31b0c8):_0x17ba10(_0x31b0c8))||_0x31b0c8);return _0x57a441&&_0x31b0c8&&_0x34e90d(_0x3f66e2,_0xd7723b,_0x31b0c8),_0x31b0c8;},_0x5605e8=(_0x3e106f,_0x239ce8)=>(_0x5c8c84,_0x5ae3a5)=>_0x239ce8(_0x5c8c84,_0x5ae3a5,_0x3e106f);let _0xdbf3eb=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x191894,_0x4e8abd,_0x3b363f){const _0x86dbb5=_0x4deb9c;super(),_0x434a2a(this,_0x86dbb5(0x2b6),new Map()),_0x434a2a(this,_0x86dbb5(0x284),new _0x1837c6[(_0x86dbb5(0x4a0))]()),(this['_univerInstanceService']=_0x191894,this[_0x86dbb5(0x25f)]=_0x4e8abd,this['_collabSessionService']=_0x3b363f,this[_0x86dbb5(0x4fb)]());}[_0x4deb9c(0x241)](){const _0x4ae702=_0x4deb9c;super[_0x4ae702(0x241)](),this['_entityInit$'][_0x4ae702(0x4d3)](),this[_0x4ae702(0x2b6)][_0x4ae702(0x4cc)](_0x6b2fb9=>_0x6b2fb9[_0x4ae702(0x241)]());}[_0x4deb9c(0x28e)](_0x553233){const _0x408f4b=_0x4deb9c;return this[_0x408f4b(0x2b6)][_0x408f4b(0x17f)](_0x553233)?this[_0x408f4b(0x2b6)][_0x408f4b(0x38c)](_0x553233)['cursorInfo$']:this[_0x408f4b(0x284)]['pipe'](_0x1837c6[_0x408f4b(0x39e)](_0x3b6048=>_0x3b6048[_0x408f4b(0x282)]===_0x553233),_0x1837c6['switchMap'](_0x10975d=>_0x10975d['cursorInfo$']));}[_0x4deb9c(0x4fb)](){const _0x23bfdf=_0x4deb9c;this['_univerInstanceService'][_0x23bfdf(0x3e1)](_0x44f3cf['UniverInstanceType'][_0x23bfdf(0x402)])[_0x23bfdf(0x4f9)](_0x1837c6[_0x23bfdf(0x23e)](this[_0x23bfdf(0x423)]))['subscribe'](async _0x29467b=>{const _0x3b1953=_0x23bfdf,_0x3289ca=_0x29467b[_0x3b1953(0x43f)](),_0x3af9da=await this['_startSheetCollabCursor'](_0x3289ca);this[_0x3b1953(0x284)][_0x3b1953(0x3e8)](_0x3af9da),this['_entities'][_0x3b1953(0x2b2)](_0x3289ca,_0x3af9da);}),this['_univerInstanceService'][_0x23bfdf(0x3e1)](_0x44f3cf[_0x23bfdf(0x1bb)][_0x23bfdf(0x350)])[_0x23bfdf(0x4f9)](_0x1837c6['takeUntil'](this['dispose$']))[_0x23bfdf(0x4f9)](_0x1837c6[_0x23bfdf(0x39e)](_0x8e948c=>!_0x8e948c[_0x23bfdf(0x43f)]()[_0x23bfdf(0x513)]('__')))['subscribe'](async _0x288e7f=>{const _0x594dc3=_0x23bfdf,_0x1d90e0=_0x288e7f[_0x594dc3(0x43f)](),_0x255e52=await this[_0x594dc3(0x115)](_0x1d90e0);this[_0x594dc3(0x284)][_0x594dc3(0x3e8)](_0x255e52),this[_0x594dc3(0x2b6)]['set'](_0x1d90e0,_0x255e52);}),_0x1837c6[_0x23bfdf(0xfb)](this[_0x23bfdf(0x391)]['getTypeOfUnitDisposed$'](_0x44f3cf[_0x23bfdf(0x1bb)][_0x23bfdf(0x350)]),this[_0x23bfdf(0x391)][_0x23bfdf(0x4a5)](_0x44f3cf[_0x23bfdf(0x1bb)]['UNIVER_SHEET']))[_0x23bfdf(0x4f9)](_0x1837c6[_0x23bfdf(0x23e)](this[_0x23bfdf(0x423)]))[_0x23bfdf(0x138)](_0x3d5729=>{const _0x12a6ca=_0x23bfdf,_0x4f2561=_0x3d5729[_0x12a6ca(0x43f)](),_0x5dc737=this[_0x12a6ca(0x2b6)][_0x12a6ca(0x38c)](_0x4f2561);_0x5dc737&&(_0x5dc737[_0x12a6ca(0x241)](),this[_0x12a6ca(0x2b6)][_0x12a6ca(0x312)](_0x4f2561));});}async[_0x4deb9c(0x3f9)](_0x4803fc){const _0x84157b=_0x4deb9c,_0x25b1db=await this['_collabSessionService'][_0x84157b(0x10f)](_0x4803fc),_0x2b8a36=this[_0x84157b(0x25f)][_0x84157b(0x427)](_0x593318,_0x4803fc,_0x25b1db);return _0x2b8a36[_0x84157b(0x36a)](),_0x2b8a36;}async[_0x4deb9c(0x115)](_0x3ab9aa){const _0x4f3d00=_0x4deb9c,_0x2790dc=await this[_0x4f3d00(0x359)]['requireSession'](_0x3ab9aa),_0x470510=this[_0x4f3d00(0x25f)]['createInstance'](_0x35e6b3,_0x3ab9aa,_0x2790dc);return _0x470510[_0x4f3d00(0x36a)](),_0x470510;}};_0xdbf3eb=_0x4633df([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf[_0x4deb9c(0x2b4)][_0x4deb9c(0x341)],_0xdbf3eb),_0x5605e8(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0x5605e8(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x5605e8(0x2,_0x44f3cf['Inject'](_0x3723aa[_0x4deb9c(0x433)]))],_0xdbf3eb);const _0x3c5a01=0x14,_0x3dd400=0xc8,_0x4ce1de=0x4,_0x28c3b4=0x5;function _0x157a19(_0x1b2458,_0x5a6a22){const _0x396393=_0x4deb9c;let {radius:_0x26f991,width:_0x51c0a8,height:_0x266bdd}=_0x5a6a22;_0x26f991=_0x26f991!=null?_0x26f991:0x0,_0x51c0a8=_0x51c0a8!=null?_0x51c0a8:0x1e,_0x266bdd=_0x266bdd!=null?_0x266bdd:0x1e;let _0x38a063=0x0,_0x8af395=0x0,_0x25af4b=0x0;_0x38a063=_0x8af395=_0x25af4b=Math[_0x396393(0x110)](_0x26f991,_0x51c0a8/0x2,_0x266bdd/0x2),_0x1b2458[_0x396393(0x38e)](),_0x1b2458[_0x396393(0x1b4)](_0x38a063,0x0),_0x1b2458[_0x396393(0x185)](_0x51c0a8-_0x8af395,0x0),_0x1b2458[_0x396393(0x308)](_0x51c0a8-_0x8af395,_0x8af395,_0x8af395,Math['PI']*0x3/0x2,0x0,!0x1),_0x1b2458['lineTo'](_0x51c0a8,_0x266bdd-_0x25af4b),_0x1b2458[_0x396393(0x308)](_0x51c0a8-_0x25af4b,_0x266bdd-_0x25af4b,_0x25af4b,0x0,Math['PI']/0x2,!0x1),_0x1b2458['lineTo'](0x0,_0x266bdd),_0x1b2458[_0x396393(0x185)](0x0,_0x38a063),_0x1b2458['arc'](_0x38a063,_0x38a063,_0x38a063,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x1b2458['closePath'](),_0x5a6a22[_0x396393(0x38f)]&&(_0x1b2458['save'](),_0x1b2458[_0x396393(0x21d)]=_0x5a6a22[_0x396393(0x38f)],_0x5a6a22['fillRule']===_0x396393(0x43b)?_0x1b2458[_0x396393(0x38f)](_0x396393(0x43b)):_0x1b2458[_0x396393(0x38f)](),_0x1b2458[_0x396393(0x1cb)]());}class _0x535b1d extends _0x278226[_0x4deb9c(0x2ce)]{constructor(_0x258abf,_0x5d81e2){const _0x2e4255=_0x4deb9c;super(_0x258abf,_0x5d81e2),_0x434a2a(this,_0x2e4255(0x2ad)),_0x434a2a(this,'text'),(this[_0x2e4255(0x2ad)]=_0x5d81e2==null?void 0x0:_0x5d81e2[_0x2e4255(0x2ad)],this['text']=_0x5d81e2==null?void 0x0:_0x5d81e2[_0x2e4255(0x4c1)]);}static[_0x4deb9c(0x368)](_0x47351e,_0x3c5072){const _0x3e42fc=_0x4deb9c,{text:_0x1e208e,color:_0x159e1e}=_0x3c5072;_0x47351e[_0x3e42fc(0x455)](),_0x47351e[_0x3e42fc(0x1a6)]='bold\x2013px\x20Source\x20Han\x20Sans\x20CN';const _0x39a96e=_0x47351e[_0x3e42fc(0x3f6)](_0x1e208e)[_0x3e42fc(0x357)],_0xbba0a3=Math[_0x3e42fc(0x110)](_0x39a96e+0x2*_0x4ce1de,_0x3dd400);_0x157a19(_0x47351e,{'height':_0x3c5a01,'radius':0x4,'width':_0xbba0a3,'fill':_0x159e1e,'evented':!0x1}),_0x47351e['fillStyle']='#FFF';const _0x46b31e=_0x4ce1de,_0x2d4a4b=_0x3c5a01-_0x28c3b4,_0x57ae1c=_0x3dd400-0x2*_0x4ce1de;if(_0x39a96e>_0x57ae1c){let _0x188318='',_0x8f9de4=0x0;for(const _0x5f59a4 of _0x1e208e){const _0x5d7277=_0x47351e[_0x3e42fc(0x3f6)](_0x5f59a4)[_0x3e42fc(0x357)];if(_0x8f9de4+_0x5d7277<=_0x57ae1c-_0x47351e[_0x3e42fc(0x3f6)](_0x3e42fc(0x272))[_0x3e42fc(0x357)])_0x188318+=_0x5f59a4,_0x8f9de4+=_0x5d7277;else{_0x188318+=_0x3e42fc(0x272);break;}}_0x47351e[_0x3e42fc(0x1fc)](_0x188318,_0x46b31e,_0x2d4a4b);}else _0x47351e[_0x3e42fc(0x1fc)](_0x1e208e,_0x46b31e,_0x2d4a4b);_0x47351e[_0x3e42fc(0x1cb)]();}[_0x4deb9c(0x2b9)](_0x58efe3){const _0x4ec558=_0x4deb9c;_0x535b1d[_0x4ec558(0x368)](_0x58efe3,this);}}const _0x3db88a=0x1,_0x4a663e=1.5;class _0x1fe35d extends _0x278226['Shape']{constructor(_0x3a01ea,_0x2e8107){const _0x41676b=_0x4deb9c;super(_0x3a01ea,_0x2e8107),_0x434a2a(this,_0x41676b(0x2bc)),_0x434a2a(this,'_hovered',!0x1),_0x434a2a(this,'_range'),_0x434a2a(this,_0x41676b(0x3a7),''),_0x434a2a(this,'_labelPosition',_0x41676b(0x452)),_0x434a2a(this,'_backgroundColor'),(_0x2e8107&&this[_0x41676b(0x35a)](_0x2e8107),this[_0x41676b(0x30d)][_0x41676b(0xff)](()=>this[_0x41676b(0x35a)]({'hovered':!0x0})),this[_0x41676b(0x1b7)]['subscribeEvent'](()=>this[_0x41676b(0x35a)]({'hovered':!0x1})));}['setShapeProps'](_0x46902a){const _0x537cd8=_0x4deb9c;var _0x173d66,_0x2e8130,_0x3251ce,_0x53744a,_0x4d12b3,_0x3315c0;this[_0x537cd8(0x2bc)]=(_0x173d66=_0x46902a[_0x537cd8(0x2ad)])!=null?_0x173d66:this[_0x537cd8(0x2bc)],this[_0x537cd8(0x463)]=(_0x2e8130=_0x46902a[_0x537cd8(0x4f4)])!=null?_0x2e8130:this['_hovered'],this[_0x537cd8(0x376)]=(_0x3251ce=_0x46902a['range'])!=null?_0x3251ce:this[_0x537cd8(0x376)],this[_0x537cd8(0x3a7)]=(_0x53744a=_0x46902a[_0x537cd8(0x2e1)])!=null?_0x53744a:this[_0x537cd8(0x3a7)],this['_labelPosition']=(_0x4d12b3=_0x46902a[_0x537cd8(0x1c6)])!=null?_0x4d12b3:this[_0x537cd8(0x348)],this[_0x537cd8(0x48c)]=(_0x3315c0=_0x46902a['backgroundColor'])!=null?_0x3315c0:this[_0x537cd8(0x48c)],this[_0x537cd8(0x398)]({'width':_0x46902a[_0x537cd8(0x357)],'height':_0x46902a[_0x537cd8(0x324)]});}[_0x4deb9c(0x27b)](_0x468185){const _0xec4d64=_0x4deb9c,{row:_0x2ad78f,column:_0x5a2b71}=_0x468185;if(_0x2ad78f>=this[_0xec4d64(0x376)][_0xec4d64(0x22f)]&&_0x2ad78f<=this[_0xec4d64(0x376)][_0xec4d64(0x2c5)]&&_0x5a2b71>=this['_range']['startColumn']&&_0x5a2b71<=this['_range']['endColumn']){this['setShapeProps']({'hovered':!0x0});return;}this[_0xec4d64(0x35a)]({'hovered':!0x1});}[_0x4deb9c(0x447)](_0x1bccac){return!0x1;}[_0x4deb9c(0x2b9)](_0x130bb5){const _0x4a4327=_0x4deb9c;_0x278226[_0x4a4327(0xfe)][_0x4a4327(0x368)](_0x130bb5,{'width':this['width'],'height':this[_0x4a4327(0x324)],'strokeWidth':_0x4a663e,'stroke':this[_0x4a4327(0x2bc)],'evented':!0x1,'fill':this[_0x4a4327(0x48c)]}),this['_hovered']&&(_0x130bb5[_0x4a4327(0x455)](),_0x130bb5[_0x4a4327(0x37a)](0x1,0x0,0x0,0x1,this[_0x4a4327(0x357)],this[_0x4a4327(0x348)]===_0x4a4327(0x3f2)?0x0:-_0x3c5a01),_0x535b1d[_0x4a4327(0x368)](_0x130bb5,{'text':this[_0x4a4327(0x3a7)],'color':this[_0x4a4327(0x2bc)]}),_0x130bb5[_0x4a4327(0x1cb)]());}}var _0x57aa9a=Object[_0x4deb9c(0x4f6)],_0x33ab00=Object['getOwnPropertyDescriptor'],_0x51fa76=(_0x3ce237,_0x42266d,_0x16eaaa,_0x5bd5f8)=>{const _0x4cb1d4=_0x4deb9c;for(var _0x18f3d1=_0x5bd5f8>0x1?void 0x0:_0x5bd5f8?_0x33ab00(_0x42266d,_0x16eaaa):_0x42266d,_0x4fdabb=_0x3ce237[_0x4cb1d4(0x17a)]-0x1,_0xb60084;_0x4fdabb>=0x0;_0x4fdabb--)(_0xb60084=_0x3ce237[_0x4fdabb])&&(_0x18f3d1=(_0x5bd5f8?_0xb60084(_0x42266d,_0x16eaaa,_0x18f3d1):_0xb60084(_0x18f3d1))||_0x18f3d1);return _0x5bd5f8&&_0x18f3d1&&_0x57aa9a(_0x42266d,_0x16eaaa,_0x18f3d1),_0x18f3d1;},_0x1de15f=(_0x4b6bd3,_0x31a7b9)=>(_0x461617,_0x5c1674)=>_0x31a7b9(_0x461617,_0x5c1674,_0x4b6bd3);const _0x5a6f0a=0x1389;let _0x626aa7=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x108019,_0x47d048,_0x31369e,_0x3b69c0){const _0x1ae99f=_0x4deb9c;super(),_0x434a2a(this,_0x1ae99f(0x2b3),new Set()),_0x434a2a(this,_0x1ae99f(0x13b),null),(this[_0x1ae99f(0x1fb)]=_0x108019,this[_0x1ae99f(0x1be)]=_0x47d048,this['_collabCursorController']=_0x31369e,this['_themeService']=_0x3b69c0,this['_init']());}[_0x4deb9c(0x4fb)](){const _0xe37264=_0x4deb9c;this[_0xe37264(0x1be)]['currentSkeleton$'][_0xe37264(0x4f9)](_0x3ab9e8['takeUntil'](this[_0xe37264(0x423)]),_0x3ab9e8[_0xe37264(0x477)](_0x4c02ca=>{const _0x57bf83=_0xe37264;if(_0x4c02ca){const _0x389e57=_0x4c02ca[_0x57bf83(0x37c)];return _0x1837c6[_0x57bf83(0x167)](this[_0x57bf83(0x35f)]['getCollabCursors$'](this['_context']['unitId']),this['_themeService'][_0x57bf83(0x485)])[_0x57bf83(0x4f9)](_0x3ab9e8['map'](([_0x582b9f,_0x131a98])=>{const _0x4d2c98=new Map();return _0x582b9f['forEach']((_0x2ee13c,_0x2e4a02)=>{const _0x1bc5df=_0x47c1;if(_0x2ee13c[_0x1bc5df(0x422)]===_0x389e57){const _0xdf65b0={..._0x2ee13c};_0xdf65b0[_0x1bc5df(0x2ad)]=_0x131a98[_0x2ee13c['color']],_0x4d2c98[_0x1bc5df(0x2b2)](_0x2e4a02,_0xdf65b0);}}),{'skeleton':_0x4c02ca,'cursors':_0x4d2c98};}));}return _0x1837c6['of']({'skeleton':null,'cursors':new Map()});}))['subscribe'](({skeleton:_0x5013b6,cursors:_0x48d593})=>{const _0x2cc966=_0xe37264;this[_0x2cc966(0x192)](),_0x5013b6&&this[_0x2cc966(0x10a)](_0x5013b6,_0x48d593);}),this['_sheetSkeletonManagerService']['currentSkeleton$'][_0xe37264(0x138)](_0x345b86=>{const _0x1624b6=_0xe37264;if(_0x345b86==null)return;const {skeleton:_0x22f0e5}=_0x345b86,{scene:_0x4c7364}=this[_0x1624b6(0x1fb)];_0x4c7364[_0x1624b6(0x19d)][_0x1624b6(0xff)](_0xb2aa35(_0x1835fa=>{const _0x46cf92=_0x1624b6;var _0x16e2ff,_0x4ac0c8;const {offsetX:_0x17ee82,offsetY:_0x14b7bb}=_0x1835fa,{x:_0x516f0d,y:_0x4a4dce}=_0x4c7364[_0x46cf92(0x157)](_0x278226[_0x46cf92(0x114)][_0x46cf92(0x197)]([_0x17ee82,_0x14b7bb])),{scaleX:_0xa74dda,scaleY:_0x1c3179}=_0x4c7364[_0x46cf92(0x107)](),_0x12e351=_0x4c7364[_0x46cf92(0x326)](_0x2c9d11[_0x46cf92(0x2a1)][_0x46cf92(0x514)]),_0x593c95=_0x4c7364['getVpScrollXYInfoByPosToVp'](_0x278226[_0x46cf92(0x114)][_0x46cf92(0x197)]([_0x516f0d,_0x4a4dce]),_0x12e351),_0x427d27=_0x22f0e5[_0x46cf92(0x137)](_0x17ee82,_0x14b7bb,_0xa74dda,_0x1c3179,_0x593c95);((_0x16e2ff=this[_0x46cf92(0x13b)])==null?void 0x0:_0x16e2ff['column'])===_0x427d27['column']&&((_0x4ac0c8=this[_0x46cf92(0x13b)])==null?void 0x0:_0x4ac0c8[_0x46cf92(0x4c2)])===_0x427d27[_0x46cf92(0x4c2)]||this[_0x46cf92(0x2b3)]['forEach'](_0x3b093a=>{_0x3b093a['onMouseMove'](_0x427d27);});},0x64));});}[_0x4deb9c(0x10a)](_0x535f61,_0x152b6e){const _0x3b7e36=_0x4deb9c;var _0x2376f3;const _0x3bafb5=(_0x2376f3=this[_0x3b7e36(0x1be)]['getCurrent']())==null?void 0x0:_0x2376f3[_0x3b7e36(0x369)];if(!_0x3bafb5)return;const _0x1f4a76=this['_getSheetObject']();if(!_0x1f4a76)return;this[_0x3b7e36(0x2b3)][_0x3b7e36(0x4cc)](_0x50c885=>{const _0x304ba9=_0x3b7e36;_0x50c885[_0x304ba9(0x2e2)]();});const {scene:_0x342e9a}=_0x1f4a76,_0x9aeb4d=_0x34fd32(Array[_0x3b7e36(0x4de)](_0x152b6e[_0x3b7e36(0x4f5)]()))['map'](_0x180ae6=>{const _0x579e99=_0x3b7e36,{color:_0x17b6d2,range:_0x27c6b1,name:_0x2383e9,selection:_0x8bb3a1,sheetID:_0x581ed9}=_0x180ae6,{startColumn:_0x3f5e2f,startRow:_0x29d3cd,endColumn:_0x1da928,endRow:_0x4217dd}=_0x27c6b1,_0x512e8b=_0x2c9d11[_0x579e99(0x2cf)](_0x29d3cd,_0x3f5e2f,_0x342e9a,_0x3bafb5),_0x57e8ce=_0x2c9d11[_0x579e99(0x2cf)](_0x4217dd,_0x1da928,_0x342e9a,_0x3bafb5),{columnHeaderHeightAndMarginTop:_0x5c559b}=_0x3bafb5,{startX:_0x5444ee,startY:_0x317718}=_0x512e8b,{endX:_0x1d33ba,endY:_0xc2e08}=_0x57e8ce,_0x1fad52=_0x1d33ba-_0x5444ee,_0x3819d4=_0xc2e08-_0x317718,_0x1435aa={'labelPosition':_0x317718-_0x5c559b>=_0x3c5a01?_0x579e99(0x452):_0x579e99(0x3f2),'sheetID':_0x581ed9,'range':_0x27c6b1,'color':_0x17b6d2,'name':_0x2383e9,'selection':_0x8bb3a1,'left':_0x5444ee,'top':_0x317718,'width':_0x1fad52,'height':_0x3819d4,'evented':!0x1,'zIndex':_0x5a6f0a};return new _0x1fe35d(_0x2383e9,_0x1435aa);});_0x342e9a[_0x3b7e36(0x164)](_0x9aeb4d,_0x3db88a),this[_0x3b7e36(0x2b3)]=new Set(_0x9aeb4d);}[_0x4deb9c(0x192)](){const _0xbdfac3=_0x4deb9c;var _0x3f1b7b;(_0x3f1b7b=this[_0xbdfac3(0x2b3)])==null||_0x3f1b7b['forEach'](_0x353d45=>_0x353d45[_0xbdfac3(0x241)]());}[_0x4deb9c(0x2ae)](){const _0x2e53c4=_0x4deb9c;return _0x2c9d11[_0x2e53c4(0x28c)](this[_0x2e53c4(0x1fb)]['unit'],this[_0x2e53c4(0x1fb)]);}};_0x626aa7=_0x51fa76([_0x1de15f(0x1,_0x44f3cf['Inject'](_0x2c9d11['SheetSkeletonManagerService'])),_0x1de15f(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0xdbf3eb)),_0x1de15f(0x3,_0x44f3cf['Inject'](_0x44f3cf[_0x4deb9c(0x379)]))],_0x626aa7);function _0x34fd32(_0x5a8f28){const _0x37123a=_0x4deb9c,_0x35567a=new Map();return _0x5a8f28['forEach'](_0x496c97=>{const _0x5d44e7=_0x47c1;if(_0x35567a[_0x5d44e7(0x17f)](_0x496c97['selection'])){const _0x6d2cc4=_0x35567a[_0x5d44e7(0x38c)](_0x496c97['selection']);_0x6d2cc4[_0x5d44e7(0x2e1)]+=',\x20'+_0x496c97[_0x5d44e7(0x2e1)];}else _0x35567a['set'](_0x496c97[_0x5d44e7(0x3e5)],_0x496c97);}),Array['from'](_0x35567a[_0x37123a(0x4f5)]());}var _0xff5128=function(){const _0x5729b4=_0x4deb9c;return _0xff5128=Object[_0x5729b4(0x378)]||function(_0x5e7774){const _0x25408f=_0x5729b4;for(var _0x873cb1,_0x13b4f5=0x1,_0x3e2b23=arguments[_0x25408f(0x17a)];_0x13b4f5<_0x3e2b23;_0x13b4f5++){_0x873cb1=arguments[_0x13b4f5];for(var _0x4b433c in _0x873cb1)Object[_0x25408f(0x235)][_0x25408f(0x366)][_0x25408f(0x2d0)](_0x873cb1,_0x4b433c)&&(_0x5e7774[_0x4b433c]=_0x873cb1[_0x4b433c]);}return _0x5e7774;},_0xff5128[_0x5729b4(0x3ba)](this,arguments);},_0x5a22df=function(_0x29513b,_0x34a14b){const _0x4ba66b=_0x4deb9c;var _0x543cb0={};for(var _0x49c1c8 in _0x29513b)Object[_0x4ba66b(0x235)]['hasOwnProperty'][_0x4ba66b(0x2d0)](_0x29513b,_0x49c1c8)&&_0x34a14b['indexOf'](_0x49c1c8)<0x0&&(_0x543cb0[_0x49c1c8]=_0x29513b[_0x49c1c8]);if(_0x29513b!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x35eea8=0x0,_0x49c1c8=Object[_0x4ba66b(0x10d)](_0x29513b);_0x35eea8<_0x49c1c8[_0x4ba66b(0x17a)];_0x35eea8++)_0x34a14b[_0x4ba66b(0x377)](_0x49c1c8[_0x35eea8])<0x0&&Object['prototype'][_0x4ba66b(0x240)][_0x4ba66b(0x2d0)](_0x29513b,_0x49c1c8[_0x35eea8])&&(_0x543cb0[_0x49c1c8[_0x35eea8]]=_0x29513b[_0x49c1c8[_0x35eea8]]);}return _0x543cb0;},_0x2c75a8=_0x5efe28[_0x4deb9c(0x328)](function(_0x5d37ed,_0x59c3c5){const _0x4be049=_0x4deb9c;var _0x54ca87=_0x5d37ed[_0x4be049(0x2fe)],_0x4c8ba1=_0x5d37ed['id'],_0x3c4dce=_0x5d37ed[_0x4be049(0x512)],_0x6d4293=_0x5d37ed[_0x4be049(0x370)],_0x2844a1=_0x5a22df(_0x5d37ed,['icon','id','className',_0x4be049(0x370)]),_0x5a49d0=_0x4be049(0x498)[_0x4be049(0x4cf)](_0x4c8ba1,'\x20')[_0x4be049(0x4cf)](_0x3c4dce||'')[_0x4be049(0x2f3)](),_0x2befb8=_0x5efe28[_0x4be049(0x12c)]('_'[_0x4be049(0x4cf)](_0x70fd2a()));return _0x1e6e71(_0x54ca87,''['concat'](_0x4c8ba1),{'defIds':_0x54ca87['defIds'],'idSuffix':_0x2befb8[_0x4be049(0x2be)]},_0xff5128({'ref':_0x59c3c5,'className':_0x5a49d0},_0x2844a1),_0x6d4293);});function _0x1e6e71(_0x3236cc,_0x462a31,_0x160a19,_0x113f00,_0xfa079d){const _0x914b8d=_0x4deb9c;return _0x5efe28[_0x914b8d(0x36e)](_0x3236cc[_0x914b8d(0x2f5)],_0xff5128(_0xff5128({'key':_0x462a31},_0x5b94ce(_0x3236cc,_0x160a19,_0xfa079d)),_0x113f00),(_0x5a7bd3(_0x3236cc,_0x160a19)[_0x914b8d(0x461)]||[])[_0x914b8d(0x269)](function(_0x5c4025,_0x55f95a){const _0x160bca=_0x914b8d;return _0x1e6e71(_0x5c4025,''[_0x160bca(0x4cf)](_0x462a31,'-')['concat'](_0x3236cc[_0x160bca(0x2f5)],'-')[_0x160bca(0x4cf)](_0x55f95a),_0x160a19,void 0x0,_0xfa079d);}));}function _0x5b94ce(_0x25e1b9,_0x149b2c,_0x28e5ec){const _0x5c3d1c=_0x4deb9c;var _0x217bb8=_0xff5128({},_0x25e1b9[_0x5c3d1c(0x142)]);_0x28e5ec!=null&&_0x28e5ec[_0x5c3d1c(0x187)]&&_0x217bb8[_0x5c3d1c(0x38f)]===_0x5c3d1c(0x187)&&(_0x217bb8[_0x5c3d1c(0x38f)]=_0x28e5ec[_0x5c3d1c(0x187)]);var _0x30b50b=_0x149b2c[_0x5c3d1c(0x201)];return!_0x30b50b||_0x30b50b[_0x5c3d1c(0x17a)]===0x0||(_0x25e1b9[_0x5c3d1c(0x2f5)]===_0x5c3d1c(0x15d)&&_0x217bb8[_0x5c3d1c(0x266)]&&(_0x217bb8[_0x5c3d1c(0x266)]=_0x217bb8[_0x5c3d1c(0x266)]+_0x149b2c[_0x5c3d1c(0x49d)]),Object[_0x5c3d1c(0x443)](_0x217bb8)[_0x5c3d1c(0x4cc)](function(_0xc07c21){const _0x2ac366=_0x5c3d1c;var _0x4971ed=_0xc07c21[0x0],_0x2f7c46=_0xc07c21[0x1];typeof _0x2f7c46=='string'&&(_0x217bb8[_0x4971ed]=_0x2f7c46['replace'](/url\(#(.*)\)/,_0x2ac366(0x4c7)['concat'](_0x149b2c['idSuffix'],')')));})),_0x217bb8;}function _0x5a7bd3(_0x37af2b,_0x9ba020){const _0x34f837=_0x4deb9c;var _0x5e5832,_0x39ef70=_0x9ba020[_0x34f837(0x201)];return!_0x39ef70||_0x39ef70[_0x34f837(0x17a)]===0x0?_0x37af2b:_0x37af2b['tag']==='defs'&&(!((_0x5e5832=_0x37af2b['children'])===null||_0x5e5832===void 0x0)&&_0x5e5832[_0x34f837(0x17a)])?_0xff5128(_0xff5128({},_0x37af2b),{'children':_0x37af2b[_0x34f837(0x461)][_0x34f837(0x269)](function(_0x51512e){const _0x4cdc10=_0x34f837;return typeof _0x51512e[_0x4cdc10(0x142)]['id']=='string'&&_0x39ef70&&_0x39ef70[_0x4cdc10(0x377)](_0x51512e[_0x4cdc10(0x142)]['id'])>-0x1?_0xff5128(_0xff5128({},_0x51512e),{'attrs':_0xff5128(_0xff5128({},_0x51512e[_0x4cdc10(0x142)]),{'id':_0x51512e[_0x4cdc10(0x142)]['id']+_0x9ba020[_0x4cdc10(0x49d)]})}):_0x51512e;})}):_0x37af2b;}function _0x70fd2a(){const _0x3180e9=_0x4deb9c;return Math[_0x3180e9(0x244)]()[_0x3180e9(0x23d)](0x24)[_0x3180e9(0x20a)](0x2,0x8);}_0x2c75a8[_0x4deb9c(0x2b5)]=_0x4deb9c(0x3e4);var _0x226108={'tag':_0x4deb9c(0x425),'attrs':{'fill':'none','viewBox':_0x4deb9c(0x457),'width':_0x4deb9c(0x424),'height':_0x4deb9c(0x424)},'children':[{'tag':'g','attrs':{'clipPath':_0x4deb9c(0x4a9)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'stroke':_0x4deb9c(0x225),'d':_0x4deb9c(0x33a),'strokeLinecap':'round','strokeLinejoin':_0x4deb9c(0x1f4),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x4deb9c(0x406),'attrs':{'id':_0x4deb9c(0x3f0)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'fill':_0x4deb9c(0x32a),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x4deb9c(0x3f0)]},_0x3d73d5=_0x5efe28[_0x4deb9c(0x328)](function(_0x40de8b,_0x2030d2){const _0x39ce3b=_0x4deb9c;return _0x5efe28['createElement'](_0x2c75a8,Object[_0x39ce3b(0x378)]({},_0x40de8b,{'id':_0x39ce3b(0x31b),'ref':_0x2030d2,'icon':_0x226108}));});_0x3d73d5[_0x4deb9c(0x2b5)]=_0x4deb9c(0x49b);var _0x443c44={'tag':_0x4deb9c(0x425),'attrs':{'fill':_0x4deb9c(0x2b1),'viewBox':_0x4deb9c(0x1e9),'width':'1em','height':_0x4deb9c(0x424)},'children':[{'tag':'g','attrs':{'clipPath':_0x4deb9c(0x136)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'stroke':_0x4deb9c(0x225),'d':_0x4deb9c(0x3a2),'strokeLinecap':_0x4deb9c(0x1f4),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':'clipPath','attrs':{'id':_0x4deb9c(0x231)},'children':[{'tag':_0x4deb9c(0x342),'attrs':{'fill':_0x4deb9c(0x32a),'d':_0x4deb9c(0xf8),'transform':_0x4deb9c(0x19b)}}]}]}],'defIds':[_0x4deb9c(0x231)]},_0x1f8a81=_0x5efe28[_0x4deb9c(0x328)](function(_0x358350,_0x19a8ae){const _0x3dc8ed=_0x4deb9c;return _0x5efe28[_0x3dc8ed(0x36e)](_0x2c75a8,Object[_0x3dc8ed(0x378)]({},_0x358350,{'id':_0x3dc8ed(0x3ce),'ref':_0x19a8ae,'icon':_0x443c44}));});_0x1f8a81[_0x4deb9c(0x2b5)]='OnLineSingle';const _0x33fb47={'onlineStatusIcon':_0x4deb9c(0x307),'onlineStatusTitle':'univer-online-status-title','onlineStatus':_0x4deb9c(0x1b1),'online':'univer-online','offline':_0x4deb9c(0x34c)};function _0x2688e4(_0x19be52){const _0xb032cd=_0x4deb9c;switch(_0x19be52){case _0x1a5e20['OFFLINE']:return _0xb032cd(0x1c8);case _0x1a5e20[_0xb032cd(0x3d2)]:return _0xb032cd(0x161);case _0x1a5e20[_0xb032cd(0x28a)]:return _0xb032cd(0x4e6);case _0x1a5e20['NOT_COLLAB']:return _0xb032cd(0x179);case _0x1a5e20[_0xb032cd(0x3ff)]:case _0x1a5e20['AWAITING']:case _0x1a5e20[_0xb032cd(0x410)]:return'collabStatus.syncing';case _0x1a5e20[_0xb032cd(0x206)]:return'collabStatus.synced';}}function _0x1e6808(_0x1e6367){const _0x33069f=_0x4deb9c,{status$:_0x4b4974}=_0x1e6367,_0x4cc21d=_0x90d6c1[_0x33069f(0x430)](_0x4b4974,_0x1a5e20[_0x33069f(0x1c0)]),_0x3b7a5e=_0x44f3cf[_0x33069f(0x125)](_0x44f3cf[_0x33069f(0x440)]),_0x1e31bc=_0x44f3cf[_0x33069f(0x125)](_0x3723aa[_0x33069f(0x433)]),_0x4014cf=_0x4cc21d!==_0x1a5e20['OFFLINE'],_0x38f87d=_0x3b7a5e['t'](_0x2688e4(_0x4cc21d)),_0x11829e=_0x491e99(_0x33fb47[_0x33069f(0x4fe)],{[_0x33fb47[_0x33069f(0x1b5)]]:_0x4014cf,[_0x33fb47[_0x33069f(0x143)]]:!_0x4014cf}),_0x387e38=_0x4014cf?_0x5efe28[_0x33069f(0x36e)](_0x1f8a81,null):_0x5efe28[_0x33069f(0x36e)](_0x3d73d5,null),_0x3f06a9=_0x5efe28[_0x33069f(0x291)](()=>{const _0x220f15=_0x33069f;_0x4014cf||_0x1e31bc[_0x220f15(0x489)]();},[_0x4014cf,_0x1e31bc]);function _0x59b758(){const _0x6024a4=_0x33069f;return _0x5efe28['createElement'](_0x6024a4(0x265),{'className':_0x11829e,'onClick':_0x3f06a9},_0x5efe28[_0x6024a4(0x36e)](_0x6024a4(0x265),{'className':_0x33fb47[_0x6024a4(0x47a)]},_0x387e38),_0x5efe28[_0x6024a4(0x36e)](_0x6024a4(0x265),{'className':_0x33fb47[_0x6024a4(0x2c0)]},_0x38f87d));}return _0x4014cf?_0x59b758():_0x5efe28[_0x33069f(0x36e)](_0x1c0df8[_0x33069f(0x39f)],{'title':_0x3b7a5e['t']('collab-client.tooltip.reconnect')},_0x59b758());}var _0xffc496=Object[_0x4deb9c(0x4f6)],_0x4d27da=Object[_0x4deb9c(0x3d9)],_0x1b384f=(_0x4dca24,_0x2a4c02,_0x3ffd86,_0x2dc0b0)=>{for(var _0x2e5c2a=_0x2dc0b0>0x1?void 0x0:_0x2dc0b0?_0x4d27da(_0x2a4c02,_0x3ffd86):_0x2a4c02,_0x2b13d2=_0x4dca24['length']-0x1,_0x1ffcb6;_0x2b13d2>=0x0;_0x2b13d2--)(_0x1ffcb6=_0x4dca24[_0x2b13d2])&&(_0x2e5c2a=(_0x2dc0b0?_0x1ffcb6(_0x2a4c02,_0x3ffd86,_0x2e5c2a):_0x1ffcb6(_0x2e5c2a))||_0x2e5c2a);return _0x2dc0b0&&_0x2e5c2a&&_0xffc496(_0x2a4c02,_0x3ffd86,_0x2e5c2a),_0x2e5c2a;},_0x33b7e7=(_0x4d505e,_0x43b40c)=>(_0x314a75,_0x51be2c)=>_0x43b40c(_0x314a75,_0x51be2c,_0x4d505e);_0x3723aa['DesktopCollaborationStatusDisplayController']=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x45ae17,_0x306827,_0x491ce8,_0x27b566){const _0x1486ac=_0x4deb9c;super(),_0x434a2a(this,'_status$',new _0x1837c6['BehaviorSubject'](_0x1a5e20[_0x1486ac(0x1c0)])),(this[_0x1486ac(0x391)]=_0x45ae17,this[_0x1486ac(0x44b)]=_0x306827,this['_injector']=_0x491ce8,this[_0x1486ac(0x120)]=_0x27b566,this[_0x1486ac(0x104)](),this['_initStatusListener']());}[_0x4deb9c(0x4f8)](){const _0x449198=_0x4deb9c;this[_0x449198(0x446)](this[_0x449198(0x391)][_0x449198(0x1e2)][_0x449198(0x4f9)](_0x1837c6['switchMap'](()=>{const _0x1f716=_0x449198,_0x1d2749=this[_0x1f716(0x391)]['getFocusedUnit']();return _0x1d2749?this[_0x1f716(0x120)][_0x1f716(0x2d6)](_0x1d2749[_0x1f716(0x43f)]()):_0x1837c6['of'](null);}),_0x1837c6['switchMap'](_0x592264=>_0x592264?_0x592264[_0x449198(0x43a)]:_0x1837c6['of'](_0x1a5e20[_0x449198(0x1c0)])))[_0x449198(0x138)](_0x40ae67=>{const _0x3a5718=_0x449198;this['_status$'][_0x3a5718(0x3e8)](_0x40ae67);}));}[_0x4deb9c(0x104)](){const _0x357b94=_0x4deb9c;this[_0x357b94(0x446)](this['_uiPartsService']['registerComponent'](_0x90d6c1['BuiltInUIPart']['HEADER_MENU'],()=>_0x44f3cf[_0x357b94(0x3bd)](_0x21d7b1({'status$':this['_status$']['asObservable']()}),this[_0x357b94(0x25f)])));}},_0x3723aa[_0x4deb9c(0x221)]=_0x1b384f([_0x33b7e7(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0x33b7e7(0x1,_0x90d6c1[_0x4deb9c(0x2df)]),_0x33b7e7(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x33b7e7(0x3,_0x44f3cf['Inject'](_0x3723aa['CollaborationController']))],_0x3723aa['DesktopCollaborationStatusDisplayController']);function _0x21d7b1(_0x2fa9ea){const {status$:_0x405d1e}=_0x2fa9ea;return function(){return _0x5efe28['createElement'](_0x1e6808,{'status$':_0x405d1e});};}const _0x3be97f=_0x44f3cf['createIdentifier']('uni.network.url-service');var _0xc5fb64=Object[_0x4deb9c(0x4f6)],_0x41a67b=Object[_0x4deb9c(0x3d9)],_0x352192=(_0x40b998,_0x2f3bca,_0x4ec9a6,_0x5bc2f7)=>{const _0x231135=_0x4deb9c;for(var _0x387ffe=_0x5bc2f7>0x1?void 0x0:_0x5bc2f7?_0x41a67b(_0x2f3bca,_0x4ec9a6):_0x2f3bca,_0x2f702f=_0x40b998[_0x231135(0x17a)]-0x1,_0x443ec1;_0x2f702f>=0x0;_0x2f702f--)(_0x443ec1=_0x40b998[_0x2f702f])&&(_0x387ffe=(_0x5bc2f7?_0x443ec1(_0x2f3bca,_0x4ec9a6,_0x387ffe):_0x443ec1(_0x387ffe))||_0x387ffe);return _0x5bc2f7&&_0x387ffe&&_0xc5fb64(_0x2f3bca,_0x4ec9a6,_0x387ffe),_0x387ffe;},_0x47bac7=(_0x23388a,_0x45c17b)=>(_0x27354c,_0x30a0d2)=>_0x45c17b(_0x27354c,_0x30a0d2,_0x23388a);_0x3723aa[_0x4deb9c(0x374)]=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x2faee3,_0x190066,_0x4ee9df,_0x48a9a4,_0x1171be,_0x4f16bf){const _0x17134f=_0x4deb9c;super(),this[_0x17134f(0x50d)]=_0x2faee3,this[_0x17134f(0x1aa)]=_0x190066,this[_0x17134f(0x484)]=_0x4ee9df,this[_0x17134f(0x3d7)]=_0x48a9a4,this['_snapshotService']=_0x1171be,_0x4f16bf?_0x4f16bf==null||_0x4f16bf['whenReady']()[_0x17134f(0x15b)](()=>this[_0x17134f(0x4fb)]()):(this[_0x17134f(0x1aa)][_0x17134f(0x3e6)]('[DataLoaderController]',_0x17134f(0x2c2)),this[_0x17134f(0x4fb)]());}async[_0x4deb9c(0x4fb)](){const _0x48929e=_0x4deb9c,_0x4362ff=this['_urlService'][_0x48929e(0x254)](_0x48929e(0x210)),_0x2f74e7=this[_0x48929e(0x50d)][_0x48929e(0x254)](_0x48929e(0x4f1));if(!_0x4362ff||!_0x2f74e7){this[_0x48929e(0x1aa)][_0x48929e(0x3e6)]('[DataLoaderController]',_0x48929e(0x48a));return;}switch(Number(_0x2f74e7)){case _0x3bfee1[_0x48929e(0x402)]:{const _0x5e1fb7=await this['_loadSheet'](_0x4362ff);this[_0x48929e(0x45e)](_0x5e1fb7);break;}case _0x3bfee1[_0x48929e(0x350)]:{await this['_loadDoc'](_0x4362ff);break;}default:{this[_0x48929e(0x1aa)][_0x48929e(0x46e)](_0x48929e(0x4c6),_0x48929e(0x3ae));break;}}}async['_setupSubUnitSync'](_0x25c330){const _0x1fad74=_0x4deb9c;await this[_0x1fad74(0x28b)](_0x25c330),_0x25c330['activeSheet$']['pipe'](_0x1837c6[_0x1fad74(0x23e)](this['dispose$']))[_0x1fad74(0x138)](_0x344664=>{const _0x2e729b=_0x1fad74;_0x344664&&this[_0x2e729b(0x40b)](_0x344664);}),this[_0x1fad74(0x50d)][_0x1fad74(0x386)][_0x1fad74(0x4f9)](_0x1837c6[_0x1fad74(0x23e)](this['dispose$']))[_0x1fad74(0x138)](()=>this[_0x1fad74(0x28b)](_0x25c330));}['_updateURLWithCurrentState'](_0x5e3aef,_0x14c91d=!0x1){const _0x4bda8a=_0x4deb9c,_0x3c0fd5=this['_urlService']['getParam'](_0x4bda8a(0x1d2));_0x5e3aef[_0x4bda8a(0x456)]()!==_0x3c0fd5&&this[_0x4bda8a(0x50d)][_0x4bda8a(0x511)](_0x4bda8a(0x1d2),_0x5e3aef[_0x4bda8a(0x456)](),_0x14c91d);}async[_0x4deb9c(0x28b)](_0x27a67c){const _0x9f97c1=_0x4deb9c;var _0x2a0930;const _0x848857=this[_0x9f97c1(0x50d)]['getParam']('subunit');if(!_0x848857||!_0x27a67c['getSheetBySheetId'](_0x848857)){const _0x58004a=_0x27a67c[_0x9f97c1(0x4e8)]()[0x0],_0x22856=_0x27a67c['getSheetBySheetId'](_0x58004a);if(!_0x22856)return;this['_updateURLWithCurrentState'](_0x22856,!0x0),await this[_0x9f97c1(0x484)][_0x9f97c1(0x450)](_0x5848ce['SetWorksheetActivateCommand']['id'],{'unitId':_0x27a67c['getUnitId'](),'subUnitId':_0x58004a});return;}((_0x2a0930=_0x27a67c[_0x9f97c1(0x4c5)]())==null?void 0x0:_0x2a0930[_0x9f97c1(0x456)]())!==_0x848857&&await this[_0x9f97c1(0x484)][_0x9f97c1(0x450)](_0x5848ce[_0x9f97c1(0x2f8)]['id'],{'unitId':_0x27a67c[_0x9f97c1(0x43f)](),'subUnitId':_0x848857});}async['_loadSheet'](_0x2d95ba){const _0x4b54f0=_0x4deb9c;let _0xce3cd=0x0;const _0x1db7e2=await this[_0x4b54f0(0x3d7)][_0x4b54f0(0x286)](_0x2d95ba);return _0x1db7e2&&(_0x1db7e2[_0x4b54f0(0x32c)]||_0x1db7e2['mutations']['length']!==0x0)&&(_0xce3cd=_0x1db7e2['rev']),_0xce3cd===0x0&&this[_0x4b54f0(0x1aa)][_0x4b54f0(0x3e6)](_0x4b54f0(0x4c6),_0x4b54f0(0x226)),this[_0x4b54f0(0x468)][_0x4b54f0(0x294)](_0x2d95ba,_0xce3cd);}async[_0x4deb9c(0x222)](_0x1ad650){const _0x43e527=_0x4deb9c;let _0x2a5c84=0x0;const _0x5de5ba=await this['_localCacheService'][_0x43e527(0x286)](_0x1ad650);return _0x5de5ba&&(_0x5de5ba['awaitingChangeset']||_0x5de5ba[_0x43e527(0x367)][_0x43e527(0x17a)]!==0x0)&&(_0x2a5c84=_0x5de5ba[_0x43e527(0x4f2)]),_0x2a5c84===0x0&&this[_0x43e527(0x1aa)][_0x43e527(0x3e6)](_0x43e527(0x4c6),_0x43e527(0x226)),this[_0x43e527(0x468)][_0x43e527(0x34e)](_0x1ad650,_0x2a5c84);}},_0x3723aa[_0x4deb9c(0x374)]=_0x352192([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf[_0x4deb9c(0x2b4)][_0x4deb9c(0x341)],_0x3723aa[_0x4deb9c(0x374)]),_0x47bac7(0x0,_0x3be97f),_0x47bac7(0x1,_0x44f3cf['ILogService']),_0x47bac7(0x2,_0x44f3cf[_0x4deb9c(0x243)]),_0x47bac7(0x3,_0x44f3cf['Inject'](_0x3723aa[_0x4deb9c(0x1d5)])),_0x47bac7(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x5c3399['SnapshotService'])),_0x47bac7(0x5,_0x44f3cf[_0x4deb9c(0x12e)](_0x1436cb[_0x4deb9c(0x46f)]))],_0x3723aa[_0x4deb9c(0x374)]);var _0x3708a7=Object['defineProperty'],_0x25a9c1=Object[_0x4deb9c(0x3d9)],_0x3af8db=(_0x1897f5,_0x4e3c98,_0x57d4d2,_0x429a76)=>{for(var _0x35379b=_0x429a76>0x1?void 0x0:_0x429a76?_0x25a9c1(_0x4e3c98,_0x57d4d2):_0x4e3c98,_0x34cc9b=_0x1897f5['length']-0x1,_0x120ae8;_0x34cc9b>=0x0;_0x34cc9b--)(_0x120ae8=_0x1897f5[_0x34cc9b])&&(_0x35379b=(_0x429a76?_0x120ae8(_0x4e3c98,_0x57d4d2,_0x35379b):_0x120ae8(_0x35379b))||_0x35379b);return _0x429a76&&_0x35379b&&_0x3708a7(_0x4e3c98,_0x57d4d2,_0x35379b),_0x35379b;},_0x3a83da=(_0x55da7a,_0x120f56)=>(_0x535cfb,_0x3f2cf8)=>_0x120f56(_0x535cfb,_0x3f2cf8,_0x55da7a);const _0xa389cb=_0x4deb9c(0x3ca),_0xa4aac2=_0x4deb9c(0x1fe);let _0x46e5fc=class extends _0x44f3cf['Disposable']{constructor(_0x46f4a4,_0x3e8e9b){const _0x13cd10=_0x4deb9c;super(),this[_0x13cd10(0x391)]=_0x46f4a4,this[_0x13cd10(0x494)]=_0x3e8e9b,this[_0x13cd10(0x4fb)]();}['_init'](){const _0x387bc2=_0x4deb9c;this[_0x387bc2(0x446)](_0x44f3cf[_0x387bc2(0x133)](this[_0x387bc2(0x391)][_0x387bc2(0x1e2)][_0x387bc2(0x138)](()=>{const _0x4f139c=_0x387bc2;var _0x19f75c;const _0x5bc7b6=this[_0x4f139c(0x391)][_0x4f139c(0x1af)]();let _0x17686f=(_0x19f75c=this['_configService']['getConfig'](_0xa389cb))!=null?_0x19f75c:_0xa4aac2;_0x5bc7b6 instanceof _0x44f3cf['Workbook']&&(_0x17686f=_0x5bc7b6[_0x4f139c(0x2e1)]),document[_0x4f139c(0x45f)]=_0x17686f;})));}};_0x46e5fc=_0x3af8db([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf['LifecycleStages']['Ready'],_0x46e5fc),_0x3a83da(0x0,_0x44f3cf['IUniverInstanceService']),_0x3a83da(0x1,_0x44f3cf[_0x4deb9c(0x150)])],_0x46e5fc);var _0x32208f=Object[_0x4deb9c(0x4f6)],_0x4496e4=Object['getOwnPropertyDescriptor'],_0x78c6c7=(_0x4b8b64,_0x234915,_0x494f29,_0x24ebf8)=>{const _0x516c91=_0x4deb9c;for(var _0x2344da=_0x24ebf8>0x1?void 0x0:_0x24ebf8?_0x4496e4(_0x234915,_0x494f29):_0x234915,_0x29dff6=_0x4b8b64[_0x516c91(0x17a)]-0x1,_0x571ab1;_0x29dff6>=0x0;_0x29dff6--)(_0x571ab1=_0x4b8b64[_0x29dff6])&&(_0x2344da=(_0x24ebf8?_0x571ab1(_0x234915,_0x494f29,_0x2344da):_0x571ab1(_0x2344da))||_0x2344da);return _0x24ebf8&&_0x2344da&&_0x32208f(_0x234915,_0x494f29,_0x2344da),_0x2344da;},_0x1713cf=(_0xcab495,_0x2e495f)=>(_0x44d3a0,_0x58d951)=>_0x2e495f(_0x44d3a0,_0x58d951,_0xcab495);_0x3723aa[_0x4deb9c(0x262)]=class{constructor(_0x14aa6e,_0x14baa6){const _0x53c022=_0x4deb9c;this[_0x53c022(0x494)]=_0x14aa6e,this[_0x53c022(0x330)]=_0x14baa6;}async[_0x4deb9c(0x3d1)](_0x467be7,_0x38b5d9){const _0x52c247=_0x4deb9c;var _0x43656a;const {unitID:_0x253662,type:_0x431875,revision:_0x3d7c3f=0x0}=_0x38b5d9,_0x472607=this[_0x52c247(0x140)]()+'/'+_0x431875+'/unit/'+_0x253662+_0x52c247(0x41a)+_0x3d7c3f,_0x3e41aa=(await this[_0x52c247(0x330)][_0x52c247(0x38c)](_0x472607))[_0x52c247(0x317)],_0x3aed77=(_0x43656a=_0x3e41aa[_0x52c247(0x259)])==null?void 0x0:_0x43656a[_0x52c247(0x49f)];if(_0x3aed77){const _0x2ab3d4=_0x3aed77==null?void 0x0:_0x3aed77[_0x52c247(0x24e)],_0x119e35=_0x5c3399[_0x52c247(0x375)][_0x52c247(0x32e)](_0x5c3399[_0x52c247(0x173)](_0x2ab3d4));_0x3aed77[_0x52c247(0x24e)]=_0x119e35,Object['entries'](_0x3aed77[_0x52c247(0x2dd)])[_0x52c247(0x4cc)](([,_0x182886])=>{const _0xb1eb46=_0x52c247,_0x345532=_0x182886[_0xb1eb46(0x24e)],_0x499e1c=_0x5c3399['textEncoder'][_0xb1eb46(0x32e)](_0x5c3399[_0xb1eb46(0x173)](_0x345532));_0x182886[_0xb1eb46(0x24e)]=_0x499e1c;});}return _0x3e41aa;}async[_0x4deb9c(0x431)](_0xa5bc6,_0x32ae21){const _0x3c7433=_0x4deb9c,{unitID:_0x1d1610,type:_0x3d616c,blockID:_0x2dd063}=_0x32ae21,_0x484fc1=this['_getAPIPrefix']()+'/'+_0x3d616c+_0x3c7433(0x3da)+_0x1d1610+_0x3c7433(0x28d)+_0x2dd063;return(await this['_httpService']['get'](_0x484fc1))['body'];}async[_0x4deb9c(0x371)](_0x26f4c0,_0x20f767){const _0x1df9c8=_0x4deb9c,{unitID:_0x5a2123,type:_0x33a7d4,from:_0x37b7f7,to:_0x15ed58}=_0x20f767,_0x3991ed=this['_getAPIPrefix']()+'/'+_0x33a7d4+_0x1df9c8(0x3da)+_0x5a2123+_0x1df9c8(0x299)+_0x37b7f7+_0x1df9c8(0x434)+_0x15ed58;return(await this['_httpService'][_0x1df9c8(0x38c)](_0x3991ed))['body'];}[_0x4deb9c(0x140)](){const _0x54f50d=_0x4deb9c;var _0x3be465;return(_0x3be465=this['_configService'][_0x54f50d(0x2cd)](_0x1691bd))!=null?_0x3be465:this[_0x54f50d(0x3be)]();}['_getAPIPrefix'](){const _0x1e125e=_0x4deb9c;var _0x453669;return(_0x453669=this['_configService'][_0x1e125e(0x2cd)](_0x4007f7))!=null?_0x453669:_0x5d4c8b;}async[_0x4deb9c(0x2e8)](_0x1c7066,_0x1aad6c){const _0x2b7c40=_0x4deb9c,_0x160bb3=_0x2b7c40(0x4d6)+_0x1aad6c[_0x2b7c40(0x4f1)]+'/unit/'+_0x1aad6c['unitID']+_0x2b7c40(0x29f);return(await this[_0x2b7c40(0x330)][_0x2b7c40(0x38c)](_0x160bb3,{'params':{'resourceId':JSON[_0x2b7c40(0x428)](_0x1aad6c[_0x2b7c40(0x17b)])}}))[_0x2b7c40(0x317)];}[_0x4deb9c(0x34b)](){const _0x5d0158=_0x4deb9c;throw new Error(_0x5d0158(0x3b5));}[_0x4deb9c(0x27c)](){const _0x5450e9=_0x4deb9c;throw new Error(_0x5450e9(0x3b5));}['saveChangeset'](){throw new Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}},_0x3723aa[_0x4deb9c(0x262)]=_0x78c6c7([_0x1713cf(0x0,_0x44f3cf['IConfigService']),_0x1713cf(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7['HTTPService']))],_0x3723aa[_0x4deb9c(0x262)]);var _0x20a526=Object[_0x4deb9c(0x4f6)],_0x442112=Object[_0x4deb9c(0x3d9)],_0x4b41a0=(_0xcec04,_0x48167a,_0x5701a5,_0x4980ec)=>{const _0x347f53=_0x4deb9c;for(var _0x35e650=_0x4980ec>0x1?void 0x0:_0x4980ec?_0x442112(_0x48167a,_0x5701a5):_0x48167a,_0x8e7709=_0xcec04[_0x347f53(0x17a)]-0x1,_0x29854f;_0x8e7709>=0x0;_0x8e7709--)(_0x29854f=_0xcec04[_0x8e7709])&&(_0x35e650=(_0x4980ec?_0x29854f(_0x48167a,_0x5701a5,_0x35e650):_0x29854f(_0x35e650))||_0x35e650);return _0x4980ec&&_0x35e650&&_0x20a526(_0x48167a,_0x5701a5,_0x35e650),_0x35e650;},_0x56c63d=(_0x2377f4,_0x2ddec8)=>(_0x358ec2,_0x3f8c93)=>_0x2ddec8(_0x358ec2,_0x3f8c93,_0x2377f4);let _0x3129e0=class extends _0x44f3cf[_0x4deb9c(0x397)]{constructor(_0x5dfe3e,_0x25cbaf,_0x446e62,_0x3f31bf,_0x4ddbdf){super(_0x5dfe3e,_0x25cbaf,_0x446e62),this['_transformService']=_0x3f31bf,this['_logService']=_0x4ddbdf;}[_0x4deb9c(0x24a)](_0x1f1e19,_0x457d07){const _0x134a39=_0x4deb9c,_0x4a308c=this[_0x134a39(0x4d7)](_0x1f1e19);if(_0x4a308c)try{const _0x51d0e0=this[_0x134a39(0x470)](_0x4a308c,_0x457d07);this[_0x134a39(0x156)](_0x1f1e19,_0x51d0e0);}catch(_0x1d07a9){this[_0x134a39(0x1aa)][_0x134a39(0x46e)](_0x134a39(0x1ff),_0x1d07a9),this[_0x134a39(0x46c)](_0x1f1e19);}const _0x4b5df5=this[_0x134a39(0x297)](_0x1f1e19);if(_0x4b5df5)try{const _0x5c9d4c=this[_0x134a39(0x470)](_0x4b5df5,_0x457d07);this[_0x134a39(0x30e)](_0x1f1e19,_0x5c9d4c);}catch(_0x182600){this['_logService'][_0x134a39(0x46e)](_0x182600),this[_0x134a39(0x3e2)](_0x1f1e19);}}['_clearUndo'](_0x122f43){const _0x1dfe93=_0x4deb9c,_0x4cca14=this[_0x1dfe93(0x4d7)](_0x122f43);_0x4cca14&&(_0x4cca14['length']=0x0,this['_updateStatus']());}[_0x4deb9c(0x3e2)](_0x285205){const _0x15253b=_0x4deb9c,_0xdc77d4=this['_getRedoStack'](_0x285205);_0xdc77d4&&(_0xdc77d4[_0x15253b(0x17a)]=0x0,this[_0x15253b(0x17e)]());}[_0x4deb9c(0x156)](_0x58d425,_0x30acde){const _0x5eb900=_0x4deb9c;this[_0x5eb900(0x385)][_0x5eb900(0x2b2)](_0x58d425,_0x30acde),this['_updateStatus']();}[_0x4deb9c(0x30e)](_0x28640e,_0x48d8be){const _0x1c6403=_0x4deb9c;this[_0x1c6403(0xf5)][_0x1c6403(0x2b2)](_0x28640e,_0x48d8be),this['_updateStatus']();}['_transformStack'](_0x3d96a2,_0x1933b6){const _0x8bc57a=_0x4deb9c,_0x4ed0e0=[];let _0x4cf71d=_0x1933b6,_0xea464=_0x1933b6;for(let _0x334450=_0x3d96a2[_0x8bc57a(0x17a)]-0x1;_0x334450>=0x0;_0x334450--){const {unitID:_0x26ff46,undoMutations:_0x1bf369,redoMutations:_0x551bf6}=_0x3d96a2[_0x334450],_0x28a254=this[_0x8bc57a(0x3c2)][_0x8bc57a(0x394)](_0x4cf71d,_0x1bf369),_0x5b3d59=this['_transformService'][_0x8bc57a(0x394)](_0xea464,_0x551bf6);if(_0x5c3399[_0x8bc57a(0x15a)](_0x28a254)||_0x5c3399[_0x8bc57a(0x15a)](_0x5b3d59)){this[_0x8bc57a(0x1aa)][_0x8bc57a(0x46e)](_0x8bc57a(0x1ff),_0x8bc57a(0x4ac),_0x28a254,_0x5b3d59);break;}_0x4cf71d=_0x28a254[_0x8bc57a(0x47d)],_0xea464=_0x5b3d59['c1Prime'],_0x4ed0e0[_0x8bc57a(0x4c0)]({'unitID':_0x26ff46,'undoMutations':_0x28a254[_0x8bc57a(0x499)],'redoMutations':_0x5b3d59[_0x8bc57a(0x499)]});}return _0x4ed0e0[_0x8bc57a(0x1d4)]();}};_0x3129e0=_0x4b41a0([_0x56c63d(0x0,_0x44f3cf[_0x4deb9c(0x165)]),_0x56c63d(0x1,_0x44f3cf['ICommandService']),_0x56c63d(0x2,_0x44f3cf['IContextService']),_0x56c63d(0x3,_0x5c3399['ITransformService']),_0x56c63d(0x4,_0x44f3cf[_0x4deb9c(0x4e5)])],_0x3129e0);class _0x3492f1 extends _0x44f3cf['RxDisposable']{constructor(){const _0x592a1c=_0x4deb9c;super(),_0x434a2a(this,_0x592a1c(0x386)),this[_0x592a1c(0x386)]=_0x1837c6[_0x592a1c(0x4db)](window,'popstate')[_0x592a1c(0x4f9)](_0x1837c6[_0x592a1c(0x23e)](this[_0x592a1c(0x423)]),_0x1837c6[_0x592a1c(0x3c8)](0x1),_0x1837c6['mapTo'](void 0x0));}[_0x4deb9c(0x511)](_0x5ce565,_0x1520ee,_0x1634e8=!0x1){const _0x474cff=_0x4deb9c,_0x2e30b0=new URL(window[_0x474cff(0x33d)][_0x474cff(0x2a5)]);_0x2e30b0[_0x474cff(0x405)][_0x474cff(0x2b2)](_0x5ce565,_0x1520ee),_0x1634e8?window[_0x474cff(0x361)][_0x474cff(0x454)]('','',_0x2e30b0[_0x474cff(0x23d)]()):window['history'][_0x474cff(0xfd)]('','',_0x2e30b0['toString']());}[_0x4deb9c(0x33f)](_0x28f73c,_0xe7f950=!0x1){const _0x41d806=_0x4deb9c,_0x223bb8=new URL(window['location'][_0x41d806(0x2a5)]);_0x223bb8[_0x41d806(0x405)][_0x41d806(0x312)](_0x28f73c),_0xe7f950?window['history'][_0x41d806(0x454)]('','',_0x223bb8['toString']()):window[_0x41d806(0x361)]['pushState']('','',_0x223bb8[_0x41d806(0x23d)]());}[_0x4deb9c(0x254)](_0x2240d0){const _0x4a231b=_0x4deb9c;var _0x506059;return(_0x506059=new URL(window[_0x4a231b(0x33d)]['href'])[_0x4a231b(0x405)][_0x4a231b(0x38c)](_0x2240d0))!=null?_0x506059:void 0x0;}}const _0x37c6cf='collab-text-anchor-',_0x49aa38='collab-text-range-',_0x3a0e1c=_0x4deb9c(0x260),_0x54da0e=0x6,_0xbd2478=1.5,_0x402894=0x4,_0x2574c1=1.5,_0x488f2b=_0x4deb9c(0x130);class _0x29a1ea{constructor(_0x1fcbed,_0x513db9,_0x2316c0,_0xf510ef){const _0xca0eb6=_0x4deb9c;_0x434a2a(this,_0xca0eb6(0x252),[]),_0x434a2a(this,'_anchor',null),_0x434a2a(this,_0xca0eb6(0x451),null),_0x434a2a(this,_0xca0eb6(0x3f5),null),_0x434a2a(this,_0xca0eb6(0x4cb),null),_0x434a2a(this,_0xca0eb6(0x347),null),(this[_0xca0eb6(0x1f6)]=_0x1fcbed,this[_0xca0eb6(0x353)]=_0x513db9,this[_0xca0eb6(0x33c)]=_0x2316c0,this[_0xca0eb6(0x36f)]=_0xf510ef,this[_0xca0eb6(0x4fc)]());}set['_hover'](_0x51fa17){const _0x5d6d07=_0x4deb9c;_0x51fa17?(this[_0x5d6d07(0x3f5)]&&this[_0x5d6d07(0x3f5)][_0x5d6d07(0x487)](),this[_0x5d6d07(0x451)]&&this['_textBubble'][_0x5d6d07(0x2a7)]()):(this[_0x5d6d07(0x3f5)]&&this[_0x5d6d07(0x3f5)]['show'](),this[_0x5d6d07(0x451)]&&this[_0x5d6d07(0x451)][_0x5d6d07(0x487)]());}[_0x4deb9c(0x241)](){const _0x5adbfb=_0x4deb9c;for(const _0x4c230b of this[_0x5adbfb(0x252)])_0x4c230b[_0x5adbfb(0x241)]();this['_textBubble']&&this[_0x5adbfb(0x451)][_0x5adbfb(0x241)](),this[_0x5adbfb(0x3f5)]&&this[_0x5adbfb(0x3f5)]['dispose'](),this[_0x5adbfb(0x2c3)]&&this['_anchor'][_0x5adbfb(0x241)](),this['_eventUnsubscribe']&&this[_0x5adbfb(0x347)]();}[_0x4deb9c(0x4fc)](){const _0x3e0e19=_0x4deb9c;var _0x47a003;const {_docSkeleton:_0x579fa5,_document:_0x140f38}=this,{color:_0x206c1f,name:_0x511be1,ranges:_0x480850}=this[_0x3e0e19(0x1f6)],_0x18df65=_0x140f38[_0x3e0e19(0x3f3)](),{docsLeft:_0x4e0bf8,docsTop:_0x565895}=_0x18df65,_0x5ae61c=new _0x50f029['NodePositionConvertToCursor'](_0x18df65,_0x579fa5);for(const {startOffset:_0x374123,endOffset:_0x56f8f2,collapsed:_0x23b4cc,isActive:_0x49f94f}of _0x480850){const _0x8fef1d=_0x579fa5[_0x3e0e19(0x1dd)](_0x374123),_0x25cd3d=_0x579fa5[_0x3e0e19(0x1dd)](_0x56f8f2);if(_0x49f94f){const {contentBoxPointGroup:_0x568702}=_0x5ae61c['getRangePointData'](_0x25cd3d,_0x25cd3d);if(_0x568702[_0x3e0e19(0x17a)]===0x0)continue;this['_drawAnchor'](_0x206c1f,_0x568702,_0x4e0bf8,_0x565895,_0x511be1),this[_0x3e0e19(0x347)]=this[_0x3e0e19(0x20b)]();}if(!_0x23b4cc&&_0x8fef1d&&_0x25cd3d){if(_0x50f029[_0x3e0e19(0x1c2)](_0x8fef1d,_0x25cd3d)){const _0x1e2942=new _0x50f029[(_0x3e0e19(0x3b9))](_0x18df65,_0x579fa5),{pointGroup:_0x4d3f74}=(_0x47a003=_0x1e2942[_0x3e0e19(0x277)](_0x8fef1d,_0x25cd3d))!=null?_0x47a003:{};if(_0x4d3f74==null||_0x4d3f74[_0x3e0e19(0x17a)]===0x0)continue;this[_0x3e0e19(0x2e5)](_0x206c1f,_0x4d3f74,_0x4e0bf8,_0x565895);}else{const {contentBoxPointGroup:_0x1f367d}=_0x5ae61c['getRangePointData'](_0x8fef1d,_0x25cd3d);if(_0x1f367d[_0x3e0e19(0x17a)]===0x0)continue;this['_drawTextRange'](_0x206c1f,_0x1f367d,_0x4e0bf8,_0x565895);}}}}['_drawAnchor'](_0x2af871,_0x39e900,_0x308d98,_0x5831c2,_0x3cfe4e){const _0xb472e1=_0x4deb9c,_0x5d023c=this[_0xb472e1(0x4e4)](_0x39e900),{left:_0x2d86f0,top:_0x4a3229,height:_0x476152}=_0x5d023c,_0xc2eb67=this['_getScale'](),_0x4ba253=_0x2574c1/_0xc2eb67,_0x579b80=new _0x278226[(_0xb472e1(0xfe))](_0x37c6cf+_0x44f3cf['Tools']['generateRandomId'](_0x54da0e),{'left':_0x2d86f0+_0x308d98-_0x4ba253,'top':_0x4a3229+_0x5831c2,'height':_0x476152,'width':_0xbd2478,'fill':_0x2af871||_0x278226[_0xb472e1(0x506)](_0x44f3cf[_0xb472e1(0x2ab)][_0xb472e1(0x1ac)],0x0),'strokeWidth':_0x4ba253,'stroke':_0x488f2b,'evented':!0x0});this['_anchor']=_0x579b80,this['_scene'][_0xb472e1(0x1bc)](_0x579b80,_0x50f029[_0xb472e1(0x34f)]);const _0x4bb2bc=new _0x278226[(_0xb472e1(0xfe))](_0x37c6cf+_0x44f3cf[_0xb472e1(0x45a)][_0xb472e1(0x4f7)](_0x54da0e),{'left':_0x2d86f0+_0x308d98-_0x4ba253,'top':_0x4a3229+_0x5831c2-_0x402894/0x2,'height':_0x402894,'width':_0x402894,'fill':_0x2af871||_0x278226[_0xb472e1(0x506)](_0x44f3cf[_0xb472e1(0x2ab)][_0xb472e1(0x1ac)],0x0),'strokeWidth':0x0,'stroke':_0x2af871||_0x278226[_0xb472e1(0x506)](_0x44f3cf[_0xb472e1(0x2ab)][_0xb472e1(0x1ac)],0x0),'evented':!0x1});this[_0xb472e1(0x3f5)]=_0x4bb2bc,this[_0xb472e1(0x353)][_0xb472e1(0x1bc)](_0x4bb2bc,_0x50f029['TEXT_RANGE_LAYER_INDEX']);const _0x25e00d=new _0x535b1d(_0x37c6cf+_0x44f3cf[_0xb472e1(0x45a)][_0xb472e1(0x4f7)](_0x54da0e),{'left':_0x2d86f0+_0x308d98-_0x4ba253,'top':_0x4a3229+_0x5831c2-_0x3c5a01,'text':_0x3cfe4e,'color':_0x2af871});this[_0xb472e1(0x451)]=_0x25e00d,this[_0xb472e1(0x353)][_0xb472e1(0x1bc)](_0x25e00d,_0x50f029[_0xb472e1(0x34f)]),this[_0xb472e1(0x31d)]=!0x1;}[_0x4deb9c(0x20b)](){const _0x9fba99=_0x4deb9c,_0x2263eb=this['_anchor'][_0x9fba99(0x30d)]['subscribeEvent'](()=>{const _0x5e0d9c=_0x9fba99;this[_0x5e0d9c(0x31d)]=!0x0;}),_0x215523=this['_anchor']['onPointerLeave$']['subscribeEvent'](()=>{const _0x103b1e=_0x9fba99;this[_0x103b1e(0x4cb)]&&clearTimeout(this['_hideTimer']),this['_hideTimer']=setTimeout(()=>{const _0x32c67d=_0x103b1e;this[_0x32c67d(0x31d)]=!0x1;},0x7d0);});return()=>{const _0x578014=_0x9fba99;_0x2263eb[_0x578014(0x184)](),_0x215523[_0x578014(0x184)]();};}[_0x4deb9c(0x42d)](_0x14440d,_0x40ed77,_0xec6f84,_0x4e16b8){const _0x2016ca=_0x4deb9c,_0x28378f=new _0x44f3cf[(_0x2016ca(0x3fc))](_0x14440d)[_0x2016ca(0x289)](0.2)[_0x2016ca(0x3e9)](),_0x24abb4=new _0x278226['RegularPolygon'](_0x49aa38+_0x44f3cf[_0x2016ca(0x45a)][_0x2016ca(0x4f7)](_0x54da0e),{'pointsGroup':_0x40ed77,'fill':_0x28378f||_0x278226[_0x2016ca(0x506)](_0x44f3cf[_0x2016ca(0x2ab)][_0x2016ca(0x1ac)],0.2),'left':_0xec6f84,'top':_0x4e16b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2016ca(0x252)]['push'](_0x24abb4),this['_scene']['addObject'](_0x24abb4,_0x50f029[_0x2016ca(0x34f)]);}['_drawRectRange'](_0x1623db,_0x3729d6,_0x3d14ab,_0x2162b8){const _0x2df27b=_0x4deb9c,_0x14f63b=new _0x44f3cf[(_0x2df27b(0x3fc))](_0x1623db)['setAlpha'](0.2)['toRgbString'](),_0x223d64=new _0x278226[(_0x2df27b(0x46a))](_0x3a0e1c+_0x44f3cf['Tools']['generateRandomId'](_0x54da0e),{'pointsGroup':_0x3729d6,'fill':_0x14f63b||_0x278226[_0x2df27b(0x506)](_0x44f3cf[_0x2df27b(0x2ab)][_0x2df27b(0x1ac)],0.2),'left':_0x3d14ab,'top':_0x2162b8,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2df27b(0x252)]['push'](_0x223d64),this['_scene']['addObject'](_0x223d64,_0x50f029[_0x2df27b(0x34f)]);}[_0x4deb9c(0x4e4)](_0xca8af6){const _0x1ba91c=_0xca8af6[0x0],_0xc1a3a4=_0x1ba91c[0x0],_0x5cd505=_0x1ba91c[0x2],{x:_0x1fd15c,y:_0x51332d}=_0xc1a3a4,{x:_0x849c95,y:_0x2de3c6}=_0x5cd505;return{'left':_0x1fd15c,'top':_0x51332d,'width':_0x849c95-_0x1fd15c,'height':_0x2de3c6-_0x51332d};}[_0x4deb9c(0x271)](){const _0x4851da=_0x4deb9c,{scaleX:_0x3f7c8f,scaleY:_0x31f46e}=this['_scene'][_0x4851da(0x107)]();return Math[_0x4851da(0x43d)](_0x3f7c8f,_0x31f46e);}}var _0x556a0e=Object['defineProperty'],_0x2c246a=Object[_0x4deb9c(0x3d9)],_0x1346fb=(_0x3972fe,_0x20e826,_0x21766a,_0xe20829)=>{const _0x4c7a1d=_0x4deb9c;for(var _0x4e8727=_0xe20829>0x1?void 0x0:_0xe20829?_0x2c246a(_0x20e826,_0x21766a):_0x20e826,_0x30038d=_0x3972fe[_0x4c7a1d(0x17a)]-0x1,_0x25cbe4;_0x30038d>=0x0;_0x30038d--)(_0x25cbe4=_0x3972fe[_0x30038d])&&(_0x4e8727=(_0xe20829?_0x25cbe4(_0x20e826,_0x21766a,_0x4e8727):_0x25cbe4(_0x4e8727))||_0x4e8727);return _0xe20829&&_0x4e8727&&_0x556a0e(_0x20e826,_0x21766a,_0x4e8727),_0x4e8727;},_0x397f3a=(_0x47ca32,_0x2e624a)=>(_0x3f2d20,_0xc6d3ef)=>_0x2e624a(_0x3f2d20,_0xc6d3ef,_0x47ca32);let _0x58fc0b=class extends _0x44f3cf['RxDisposable']{constructor(_0x3e7607,_0x3ce4cf,_0xccd55d,_0x567380,_0x2fd9e1){const _0x18d119=_0x4deb9c;super(),_0x434a2a(this,_0x18d119(0x1eb),[]),_0x434a2a(this,'_cursors',[]),(this[_0x18d119(0x1fb)]=_0x3e7607,this[_0x18d119(0x1b3)]=_0x3ce4cf,this['_collabCursorController']=_0xccd55d,this['_commandService']=_0x567380,this['_themeService']=_0x2fd9e1,this[_0x18d119(0x4fb)]());}['_init'](){const _0x5a6021=_0x4deb9c,_0x2f5b1c=this['_context']['unitId'],_0x5cedc5=this[_0x5a6021(0x1b3)];this[_0x5a6021(0x446)](_0x1837c6['combineLatest']([this['_collabCursorController'][_0x5a6021(0x28e)](_0x2f5b1c),this['_themeService'][_0x5a6021(0x485)]])[_0x5a6021(0x4f9)](_0x3ab9e8[_0x5a6021(0x269)](([_0x16dda2,_0x2f1e0d])=>({'skeleton':_0x5cedc5[_0x5a6021(0x337)](),'cursors':[..._0x16dda2[_0x5a6021(0x4f5)]()][_0x5a6021(0x33e)](_0x2d95a9=>({..._0x2d95a9,'color':_0x2f1e0d[_0x2d95a9[_0x5a6021(0x2ad)]]}))})))[_0x5a6021(0x138)](_0x4bced9=>{const _0x4e9f18=_0x5a6021;if(this[_0x4e9f18(0x192)](),_0x4bced9){const {skeleton:_0x2f964f,cursors:_0x14a822}=_0x4bced9;this['_updateCollabCursors'](_0x2f964f,_0x14a822);}})),this[_0x5a6021(0x1bd)](),this['_initCommandExecutedListener']();}[_0x4deb9c(0x10a)](_0x1750d2,_0x5a6bc8){const _0x706077=_0x4deb9c,{scene:_0xec7dbd,mainComponent:_0x5397d4}=this[_0x706077(0x1fb)],_0x5540f6=_0x5a6bc8['map'](_0x29cbe8=>new _0x29a1ea(_0x29cbe8,_0xec7dbd,_0x1750d2,_0x5397d4));this[_0x706077(0x1eb)]=_0x5540f6,this[_0x706077(0x2b3)]=_0x5a6bc8;}['_refreshCollabCursors'](){const _0x1f5753=_0x4deb9c;this[_0x1f5753(0x192)]();const {scene:_0x61215a,mainComponent:_0x4033b7}=this['_context'],_0x112645=this[_0x1f5753(0x1b3)][_0x1f5753(0x337)](),_0x5e7c90=this['_cursors'][_0x1f5753(0x269)](_0x593e74=>new _0x29a1ea(_0x593e74,_0x61215a,_0x112645,_0x4033b7));this[_0x1f5753(0x1eb)]=_0x5e7c90;}[_0x4deb9c(0x192)](){const _0x561005=_0x4deb9c;this['_cursorShapes']['forEach'](_0x137172=>_0x137172[_0x561005(0x241)]()),this['_cursorShapes']=[];}[_0x4deb9c(0x509)](){const _0x53f220=_0x4deb9c,_0x226f1e=[_0x50f029['SetDocZoomRatioOperation']['id']];this[_0x53f220(0x446)](this[_0x53f220(0x484)][_0x53f220(0x27a)](_0x5dd4d3=>{const _0x42bfa3=_0x53f220;_0x226f1e[_0x42bfa3(0x4ff)](_0x5dd4d3['id'])&&_0x5dd4d3[_0x42bfa3(0x3fd)][_0x42bfa3(0x380)]===this[_0x42bfa3(0x1fb)]['unitId']&&this[_0x42bfa3(0x4ca)]();}));}['_initResize'](){const _0x45e1b2=_0x4deb9c;this[_0x45e1b2(0x446)](_0x44f3cf['fromEventSubject'](this['_context'][_0x45e1b2(0x2eb)]['onTransformChange$'])[_0x45e1b2(0x4f9)](_0x3ab9e8['filter'](_0x3f62dc=>_0x3f62dc[_0x45e1b2(0x4f1)]===_0x278226['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x45e1b2(0x40c)]),_0x3ab9e8['throttleTime'](0x10))[_0x45e1b2(0x138)](()=>{const _0x5b0e1d=_0x45e1b2;this[_0x5b0e1d(0x4ca)]();}));}};_0x58fc0b=_0x1346fb([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf['LifecycleStages'][_0x4deb9c(0x47e)],_0x58fc0b),_0x397f3a(0x1,_0x44f3cf['Inject'](_0x495201['DocSkeletonManagerService'])),_0x397f3a(0x2,_0x44f3cf['Inject'](_0xdbf3eb)),_0x397f3a(0x3,_0x44f3cf['ICommandService']),_0x397f3a(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['ThemeService']))],_0x58fc0b);var _0x12b7d1=Object[_0x4deb9c(0x4f6)],_0x4f9580=Object[_0x4deb9c(0x3d9)],_0x57842f=(_0x198ee1,_0x2f0b88,_0x387dfc,_0x466a4)=>{const _0x297094=_0x4deb9c;for(var _0x130059=_0x466a4>0x1?void 0x0:_0x466a4?_0x4f9580(_0x2f0b88,_0x387dfc):_0x2f0b88,_0x43c875=_0x198ee1[_0x297094(0x17a)]-0x1,_0x4ad9e5;_0x43c875>=0x0;_0x43c875--)(_0x4ad9e5=_0x198ee1[_0x43c875])&&(_0x130059=(_0x466a4?_0x4ad9e5(_0x2f0b88,_0x387dfc,_0x130059):_0x4ad9e5(_0x130059))||_0x130059);return _0x466a4&&_0x130059&&_0x12b7d1(_0x2f0b88,_0x387dfc,_0x130059),_0x130059;},_0x1a0084=(_0x543fbf,_0x26fdc6)=>(_0x2d4b9b,_0x3ebcba)=>_0x26fdc6(_0x2d4b9b,_0x3ebcba,_0x543fbf);let _0x41b47c=class{constructor(_0x20c0ef,_0x5f494e,_0x46f678){const _0x33d92d=_0x4deb9c;this['_configService']=_0x20c0ef,this['_httpService']=_0x5f494e,this[_0x33d92d(0x417)]=_0x46f678,this[_0x33d92d(0x36a)]();}[_0x4deb9c(0x36a)](){const _0x3bda10=_0x4deb9c;this[_0x3bda10(0x330)][_0x3bda10(0x169)]({'priority':0x1,'interceptor':(_0x11eb35,_0x2e3415)=>_0x2e3415(_0x11eb35)[_0x3bda10(0x4f9)](_0x1837c6[_0x3bda10(0x233)](async _0x2f10ac=>{const _0x423053=_0x3bda10,_0x51344d=_0x2f10ac;if(_0x51344d[_0x423053(0x111)]===0x191&&window[_0x423053(0x12b)](this[_0x423053(0x417)]['t'](_0x423053(0x4b6)))){const _0x246b7f=window['encodeURIComponent'](window['location'][_0x423053(0x2a5)]);window[_0x423053(0x33d)][_0x423053(0x2a5)]=this[_0x423053(0x504)]()+_0x423053(0x387)+_0x246b7f;}return _0x51344d;}))});}[_0x4deb9c(0x504)](){const _0x1014c5=_0x4deb9c;var _0x5461a3;return(_0x5461a3=this[_0x1014c5(0x494)][_0x1014c5(0x2cd)](_0x1fff0c))!=null?_0x5461a3:_0x5040cd;}};_0x41b47c=_0x57842f([_0x1a0084(0x0,_0x44f3cf[_0x4deb9c(0x150)]),_0x1a0084(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7[_0x4deb9c(0x15f)])),_0x1a0084(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x440)]))],_0x41b47c);var _0x19cfd0=Object[_0x4deb9c(0x4f6)],_0x35b5b6=Object[_0x4deb9c(0x3d9)],_0x3d4fdd=(_0x4d2bc9,_0x598808,_0x573868,_0x1ef085)=>{const _0x2caab4=_0x4deb9c;for(var _0x56c75c=_0x1ef085>0x1?void 0x0:_0x1ef085?_0x35b5b6(_0x598808,_0x573868):_0x598808,_0x1df93e=_0x4d2bc9[_0x2caab4(0x17a)]-0x1,_0x198f8e;_0x1df93e>=0x0;_0x1df93e--)(_0x198f8e=_0x4d2bc9[_0x1df93e])&&(_0x56c75c=(_0x1ef085?_0x198f8e(_0x598808,_0x573868,_0x56c75c):_0x198f8e(_0x56c75c))||_0x56c75c);return _0x1ef085&&_0x56c75c&&_0x19cfd0(_0x598808,_0x573868,_0x56c75c),_0x56c75c;},_0x39f5ac=(_0x3c006c,_0x45e71c)=>(_0x19ef8b,_0x2489bf)=>_0x45e71c(_0x19ef8b,_0x2489bf,_0x3c006c);const _0x4aaaa6=_0x4deb9c(0x1f3),_0x3f4480=_0x4deb9c(0x4b4);_0x3723aa[_0x4deb9c(0x3a1)]=class extends _0x44f3cf[_0x4deb9c(0x50a)]{constructor(_0x123bf1,_0x410e04){const _0x19484f=_0x4deb9c;super(),this['_HTTPService']=_0x123bf1,this[_0x19484f(0x494)]=_0x410e04,this[_0x19484f(0x4ae)]();}['_initMergeInterceptor'](){const _0x48a59d=_0x4deb9c,_0x1d8917=this;this[_0x48a59d(0x446)](this[_0x48a59d(0x242)][_0x48a59d(0x169)]({'priority':0x3e7,'interceptor':_0x43b7e7['MergeInterceptorFactory']({'isMatch'(_0x4e0e68){const _0x428954=_0x48a59d;var _0x35c190;if(_0x4e0e68['method']===_0x428954(0x473)&&((_0x35c190=_0x4e0e68['requestParams'])!=null&&_0x35c190[_0x428954(0x317)])){const {objectID:_0x3ac19d,objectType:_0x41235c}=_0x4e0e68['requestParams'][_0x428954(0x317)]||{};if(!_0x3ac19d||_0x41235c===void 0x0)return!0x1;const _0xbe59b9=_0x1d8917[_0x428954(0x11b)]()+'/'+_0x41235c+_0x428954(0x21e)+_0x3ac19d+_0x428954(0x4af);if(_0x4e0e68[_0x428954(0x407)]===_0xbe59b9)return!0x0;}return!0x1;},'getParamsFromRequest'(_0xb46fc5){const _0x5db2cb=_0x48a59d;var _0x43db1c;return(_0x43db1c=_0xb46fc5[_0x5db2cb(0x4ee)])==null?void 0x0:_0x43db1c[_0x5db2cb(0x317)];},'mergeParamsToRequest'(_0x5b3fc4,_0x44c27c){const _0x5d5904=_0x48a59d,_0x15be02=_0x1d8917[_0x5d5904(0x11b)]()+'/-/object/-/batch_allowed',_0x58428d=_0x5b3fc4[_0x5d5904(0x1f2)]((_0x4d6d2f,_0x59e50b)=>{const _0x4b22b1=_0x5d5904,{unitID:_0x577032,objectID:_0x1bfc52,objectType:_0x5e425b,actions:_0x3fcc47}=_0x59e50b;return _0x4d6d2f[_0x577032]||(_0x4d6d2f[_0x577032]={}),_0x4d6d2f[_0x577032][_0x1bfc52]||(_0x4d6d2f[_0x577032][_0x1bfc52]={'objectID':_0x1bfc52,'objectType':_0x5e425b,'actions':[]}),_0x4d6d2f[_0x577032][_0x1bfc52][_0x4b22b1(0x3fe)]['push'](..._0x3fcc47),_0x4d6d2f;},{}),_0x2c3120=[];for(const _0x508860 in _0x58428d)for(const _0x3266e9 in _0x58428d[_0x508860]){const {actions:_0x1a9b68,objectType:_0x3df29b}=_0x58428d[_0x508860][_0x3266e9],_0x337bf0=[...new Set(_0x1a9b68)];_0x2c3120['push']({'unitID':_0x508860,'objectID':_0x3266e9,'objectType':_0x3df29b,'actions':_0x337bf0});}return new _0x43b7e7['HTTPRequest'](_0x5d5904(0x473),_0x15be02,{'headers':_0x44c27c['headers'],'withCredentials':_0x44c27c['withCredentials'],'responseType':_0x44c27c[_0x5d5904(0x28f)],'body':{'requests':_0x2c3120}});}},{'distributeResult'(_0x3f893d,_0x2cf5a0){const {objectActions:_0x315b96}=_0x3f893d;return _0x2cf5a0['map'](_0xd8b074=>{const _0x4be3fb=_0x47c1,{unitID:_0x9bd0b8,objectID:_0x209403,actions:_0x2c7a88}=_0xd8b074,_0x153e20=_0x315b96[_0x4be3fb(0x340)](_0x10082b=>_0x10082b['unitID']===_0x9bd0b8&&_0x10082b[_0x4be3fb(0x237)]===_0x209403),_0xfcceba=_0x2c7a88[_0x4be3fb(0x269)](_0xc69ab2=>_0x153e20==null?void 0x0:_0x153e20[_0x4be3fb(0x3fe)][_0x4be3fb(0x340)](_0x2abf48=>_0x2abf48[_0x4be3fb(0x365)]===_0xc69ab2))[_0x4be3fb(0x39e)](_0x552308=>!!_0x552308);return{'config':_0xd8b074,'result':{'actions':_0xfcceba,'error':_0x3f893d['error']}};});}})}));}[_0x4deb9c(0x11b)](){const _0x1d877=_0x4deb9c;var _0x34903d;return(_0x34903d=this['_configService'][_0x1d877(0x2cd)](_0x4aaaa6))!=null?_0x34903d:_0x3f4480;}async[_0x4deb9c(0x12a)](_0x120405){const _0xb492e1=_0x4deb9c,_0x5ada1e=this[_0xb492e1(0x11b)]()+'/'+_0x120405[_0xb492e1(0x3ad)]+_0xb492e1(0x20e);return(await this['_HTTPService'][_0xb492e1(0x239)](_0x5ada1e,{'body':_0x120405}))['body'][_0xb492e1(0x237)]||'';}async[_0x4deb9c(0x334)](_0x796dad){const _0x10b088=_0x4deb9c,_0x4ee4f0=this['_getAPIPrefixPath']()+_0x10b088(0x381);return(await this['_HTTPService']['post'](_0x4ee4f0,{'body':_0x796dad}))[_0x10b088(0x317)]['objects'];}async[_0x4deb9c(0x193)](_0x7bc57d){const _0x4acf78=_0x4deb9c,_0x51f3f8=this[_0x4acf78(0x11b)]()+'/'+_0x7bc57d[_0x4acf78(0x3ad)]+_0x4acf78(0x21e)+_0x7bc57d[_0x4acf78(0x237)];await this[_0x4acf78(0x242)]['put'](_0x51f3f8,{'body':_0x7bc57d});}async['allowed'](_0x32c35a){const _0x75e491=_0x4deb9c,_0x3b644f=this[_0x75e491(0x11b)]()+'/'+_0x32c35a['objectType']+_0x75e491(0x21e)+_0x32c35a[_0x75e491(0x237)]+_0x75e491(0x4af);return(await this['_HTTPService'][_0x75e491(0x239)](_0x3b644f,{'body':_0x32c35a}))[_0x75e491(0x317)][_0x75e491(0x3fe)];}async[_0x4deb9c(0x3b7)](_0x2e563c){const _0x41e74f=_0x4deb9c,_0x21cb7a=this[_0x41e74f(0x11b)]()+'/-/object/-/batch_allowed';return(await this[_0x41e74f(0x242)][_0x41e74f(0x239)](_0x21cb7a,{'body':{'requests':_0x2e563c}}))[_0x41e74f(0x317)][_0x41e74f(0x2cb)];}async['listRoles'](_0x5b2f63){const _0xbbcb86=_0x4deb9c,_0x1886f4=this[_0xbbcb86(0x11b)]()+'/'+_0x5b2f63[_0xbbcb86(0x3ad)]+_0xbbcb86(0x344),_0x8d7a0e=await this[_0xbbcb86(0x242)][_0xbbcb86(0x239)](_0x1886f4,{'body':_0x5b2f63});return{'roles':_0x8d7a0e[_0xbbcb86(0x317)][_0xbbcb86(0x1a1)],'actions':_0x8d7a0e['body']['actions']};}async[_0x4deb9c(0x441)](_0x39507d){const _0x368d76=_0x4deb9c,_0x1c5377=this[_0x368d76(0x11b)]()+_0x368d76(0x41e);await this['_HTTPService'][_0x368d76(0x312)](_0x1c5377,{'params':{'collaboratorID':_0x39507d['collaboratorID'],'objectID':_0x39507d[_0x368d76(0x237)],'unitID':_0x39507d[_0x368d76(0x282)]}});}async[_0x4deb9c(0x16e)](_0x4bfc11){const _0x448662=_0x4deb9c,_0x38c1b3=this['_getAPIPrefixPath']()+_0x448662(0x41e);await this[_0x448662(0x242)][_0x448662(0x311)](_0x38c1b3,{'body':_0x4bfc11});}async[_0x4deb9c(0x29e)](_0x2c0f2a){const _0x7b9454=_0x4deb9c,_0x5897de=this['_getAPIPrefixPath']()+_0x7b9454(0x41e);await this[_0x7b9454(0x242)]['post'](_0x5897de,{'body':_0x2c0f2a});}async[_0x4deb9c(0x1f9)](_0x5ddcd0){const _0x32087f=_0x4deb9c,_0x4a768a=this[_0x32087f(0x11b)]()+'/collaborator';return(await this[_0x32087f(0x242)][_0x32087f(0x38c)](_0x4a768a,{'params':{'objectID':_0x5ddcd0[_0x32087f(0x237)],'unitID':_0x5ddcd0[_0x32087f(0x282)]}}))[_0x32087f(0x317)]['collaborators'];}async['putCollaborators'](_0x3b2bee){const _0xfe1e18=_0x4deb9c,_0x5baf3e=this[_0xfe1e18(0x11b)]()+_0xfe1e18(0x41e);await this[_0xfe1e18(0x242)]['put'](_0x5baf3e,{'body':_0x3b2bee});}},_0x3723aa[_0x4deb9c(0x3a1)]=_0x3d4fdd([_0x39f5ac(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7[_0x4deb9c(0x15f)])),_0x39f5ac(0x1,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['IConfigService']))],_0x3723aa[_0x4deb9c(0x3a1)]);var _0x288006=Object[_0x4deb9c(0x4f6)],_0x4d3dd2=Object['getOwnPropertyDescriptor'],_0x3dbf03=(_0x57ef7f,_0x41c825,_0x1f9594,_0x4c4d4a)=>{const _0x2499b1=_0x4deb9c;for(var _0x5212f8=_0x4c4d4a>0x1?void 0x0:_0x4c4d4a?_0x4d3dd2(_0x41c825,_0x1f9594):_0x41c825,_0x1ebf01=_0x57ef7f[_0x2499b1(0x17a)]-0x1,_0x1c2007;_0x1ebf01>=0x0;_0x1ebf01--)(_0x1c2007=_0x57ef7f[_0x1ebf01])&&(_0x5212f8=(_0x4c4d4a?_0x1c2007(_0x41c825,_0x1f9594,_0x5212f8):_0x1c2007(_0x5212f8))||_0x5212f8);return _0x4c4d4a&&_0x5212f8&&_0x288006(_0x41c825,_0x1f9594,_0x5212f8),_0x5212f8;},_0x3a6037=(_0x4b71f4,_0x23208d)=>(_0x3ea9e7,_0x359bee)=>_0x23208d(_0x3ea9e7,_0x359bee,_0x4b71f4);const _0x1c9843=[_0x4deb9c(0x40f),_0x4deb9c(0x510),'image/jpg','image/gif',_0x4deb9c(0x46b)],_0xc5a976=0x5*0x400*0x400,_0x1985dc=_0x4deb9c(0x4b1),_0x34bc4a=_0x4deb9c(0x1e0),_0x23c9f4=_0x4deb9c(0x2e6),_0x4b70f9=_0x4deb9c(0x4d5);_0x3723aa['ImageIoService']=class{constructor(_0x3eb9ef,_0x20c1c6,_0x1432c9){const _0x2c2740=_0x4deb9c;_0x434a2a(this,_0x2c2740(0x38a),0x0),_0x434a2a(this,_0x2c2740(0x493),new _0x1837c6[(_0x2c2740(0x4a0))]()),_0x434a2a(this,_0x2c2740(0x196),this['_change$']),_0x434a2a(this,_0x2c2740(0x2c7),new Map()),(this[_0x2c2740(0x330)]=_0x3eb9ef,this[_0x2c2740(0x494)]=_0x20c1c6,this[_0x2c2740(0x391)]=_0x1432c9);}['setWaitCount'](_0x46a8a8){const _0x433e0f=_0x4deb9c;this[_0x433e0f(0x38a)]=_0x46a8a8,this[_0x433e0f(0x493)][_0x433e0f(0x3e8)](_0x46a8a8);}[_0x4deb9c(0x467)](_0x112cc2,_0x35a21f){const _0x51b951=_0x4deb9c;if(_0x35a21f===_0xaa685a[_0x51b951(0x116)]['BASE64']){const _0x8d509=new Image();return _0x8d509[_0x51b951(0x42c)]=_0x112cc2,_0x8d509;}return this[_0x51b951(0x2c7)][_0x51b951(0x38c)](_0x112cc2);}[_0x4deb9c(0x4e3)](_0x551acf,_0x2c42f3,_0x5031d2){const _0x1a9408=_0x4deb9c;_0x2c42f3===_0xaa685a[_0x1a9408(0x116)][_0x1a9408(0x160)]||_0x5031d2==null||this[_0x1a9408(0x2c7)][_0x1a9408(0x2b2)](_0x551acf,_0x5031d2);}async[_0x4deb9c(0x256)](_0x2bfc5d){const _0x3596ec=_0x4deb9c;try{const _0x230411=this['_replaceFileID'](this[_0x3596ec(0x42a)](),''+_0x2bfc5d),_0x1d3890=(await this[_0x3596ec(0x330)][_0x3596ec(0x38c)](_0x230411))[_0x3596ec(0x317)];return _0x1d3890[_0x3596ec(0x46e)]&&_0x1d3890[_0x3596ec(0x46e)]['code']===_0x46986a['OK']?Promise['resolve'](_0x1d3890[_0x3596ec(0x407)]):Promise[_0x3596ec(0x382)](_0x1d3890[_0x3596ec(0x46e)]);}catch(_0x189c61){return Promise[_0x3596ec(0x382)](_0x189c61);}}async[_0x4deb9c(0x31f)](_0x45bd27){const _0x434372=_0x4deb9c;let _0x3dc71c='';if(!_0x1c9843['includes'](_0x45bd27[_0x434372(0x4f1)]))return this[_0x434372(0x3c6)](),Promise['reject'](new Error(_0xaa685a[_0x434372(0x189)][_0x434372(0x3c7)]));if(_0x45bd27[_0x434372(0x23b)]>_0xc5a976)return this[_0x434372(0x3c6)](),Promise[_0x434372(0x382)](new Error(_0xaa685a[_0x434372(0x189)][_0x434372(0x153)]));try{const _0x196f84=new FormData();_0x196f84[_0x434372(0x358)](_0x434372(0x316),_0x45bd27);const _0x4d0acc=this[_0x434372(0x391)]['getFocusedUnit'](),_0x5bc879=_0x4d0acc==null?void 0x0:_0x4d0acc['getUnitId']();if(!_0x5bc879)throw new Error(_0x434372(0x13e));const _0x136d5b=this[_0x434372(0x4a1)]()+_0x434372(0x439)+_0x45bd27[_0x434372(0x23b)][_0x434372(0x23d)]()+_0x434372(0x474)+_0x47077b[_0x434372(0x251)]+_0x434372(0x14c)+encodeURIComponent(_0x5bc879),_0x4fd74b=await(await fetch(_0x136d5b,{'method':_0x434372(0x473),'body':_0x196f84}))[_0x434372(0x507)]();if(typeof _0x4fd74b[_0x434372(0x129)]!=_0x434372(0x1cf))return this[_0x434372(0x3c6)](),Promise[_0x434372(0x382)](new Error(_0xaa685a['ImageUploadStatusType'][_0x434372(0x2bb)]));_0x3dc71c=_0x4fd74b[_0x434372(0x129)];}catch{return this['_decreaseWaiting'](),Promise[_0x434372(0x382)](new Error(_0xaa685a[_0x434372(0x189)][_0x434372(0x2bb)]));}return new Promise((_0x3d674b,_0x14622b)=>{const _0x11d577=_0x434372,_0x17333c=new FileReader();_0x17333c['readAsDataURL'](_0x45bd27),_0x17333c[_0x11d577(0x1f0)]=_0x21dc55=>{const _0x2c7014=_0x11d577;var _0x5986a8;const _0x1e11da=(_0x5986a8=_0x21dc55[_0x2c7014(0x10c)])==null?void 0x0:_0x5986a8['result'];if(_0x1e11da==null){this['_decreaseWaiting'](),_0x14622b(new Error(_0xaa685a['ImageUploadStatusType'][_0x2c7014(0x2bb)]));return;}const _0x1947c5=_0x44f3cf[_0x2c7014(0x45a)][_0x2c7014(0x4f7)](0x6);_0x3d674b({'imageId':_0x1947c5,'imageSourceType':_0xaa685a[_0x2c7014(0x116)][_0x2c7014(0x4b2)],'source':_0x3dc71c,'base64Cache':_0x1e11da,'status':_0xaa685a['ImageUploadStatusType'][_0x2c7014(0x16a)]}),this['_decreaseWaiting']();};});}[_0x4deb9c(0x4a1)](){const _0xc72e6c=_0x4deb9c;var _0x2dd7f2;return(_0x2dd7f2=this[_0xc72e6c(0x494)][_0xc72e6c(0x2cd)](_0x1985dc))!=null?_0x2dd7f2:_0x34bc4a;}['_getSignURL'](){const _0x3b98bc=_0x4deb9c;var _0x351ba4;return(_0x351ba4=this[_0x3b98bc(0x494)][_0x3b98bc(0x2cd)](_0x23c9f4))!=null?_0x351ba4:_0x4b70f9;}[_0x4deb9c(0x2dc)](_0x4f99f7,_0x2537d2){return _0x4f99f7['replace']('{fileID}',_0x2537d2);}[_0x4deb9c(0x3c6)](){const _0x1bead3=_0x4deb9c;this[_0x1bead3(0x38a)]-=0x1,this[_0x1bead3(0x493)][_0x1bead3(0x3e8)](this[_0x1bead3(0x38a)]);}},_0x3723aa[_0x4deb9c(0x238)]=_0x3dbf03([_0x3a6037(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x43b7e7[_0x4deb9c(0x15f)])),_0x3a6037(0x1,_0x44f3cf[_0x4deb9c(0x150)]),_0x3a6037(0x2,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x165)]))],_0x3723aa[_0x4deb9c(0x238)]);var _0x3a6b4b=Object[_0x4deb9c(0x4f6)],_0x1aa19e=Object[_0x4deb9c(0x3d9)],_0x177dd7=(_0x3f8dc0,_0x5799a9,_0x1ff104,_0x34a189)=>{for(var _0x3d3bbf=_0x34a189>0x1?void 0x0:_0x34a189?_0x1aa19e(_0x5799a9,_0x1ff104):_0x5799a9,_0x3bef6e=_0x3f8dc0['length']-0x1,_0x36d3aa;_0x3bef6e>=0x0;_0x3bef6e--)(_0x36d3aa=_0x3f8dc0[_0x3bef6e])&&(_0x3d3bbf=(_0x34a189?_0x36d3aa(_0x5799a9,_0x1ff104,_0x3d3bbf):_0x36d3aa(_0x3d3bbf))||_0x3d3bbf);return _0x34a189&&_0x3d3bbf&&_0x3a6b4b(_0x5799a9,_0x1ff104,_0x3d3bbf),_0x3d3bbf;},_0x43671c=(_0x2fb9a7,_0x56de52)=>(_0x25826f,_0x25feda)=>_0x56de52(_0x25826f,_0x25feda,_0x2fb9a7);let _0x18c06b=class extends _0x44f3cf[_0x4deb9c(0x48b)]{constructor(_0x324a21,_0x436cda,_0x45af03,_0x481995,_0x2f18b7){const _0x320557=_0x4deb9c;super(),this[_0x320557(0x25f)]=_0x324a21,this[_0x320557(0x391)]=_0x436cda,this[_0x320557(0x20f)]=_0x45af03,this[_0x320557(0x4a8)]=_0x481995,this['_localeService']=_0x2f18b7,this[_0x320557(0x459)](),this[_0x320557(0x3fb)]();}['_initCloseConn'](){const _0x315d94=_0x4deb9c,_0x5a6002=async _0x445a81=>{const _0x4835bb=_0x47c1;(await this['_collaborationSessionService'][_0x4835bb(0x10f)](_0x445a81))[_0x4835bb(0x458)]['pipe'](_0x3ab9e8['filter'](_0x240c74=>_0x240c74[_0x4835bb(0x2aa)]===_0x5c3399[_0x4835bb(0x3d6)][_0x4835bb(0x50b)]),_0x3ab9e8[_0x4835bb(0x23e)](this[_0x4835bb(0x423)]))[_0x4835bb(0x138)](_0x26ca6b=>{const _0xb8cb34=_0x4835bb,_0x5d737c=_0x26ca6b,{reason:_0x4e9964}=_0x5d737c[_0xb8cb34(0xf9)];this[_0xb8cb34(0x25f)][_0xb8cb34(0x38c)](_0x90d6c1[_0xb8cb34(0x1b2)])['show']({'type':_0x1c0df8[_0xb8cb34(0x25c)][_0xb8cb34(0x2b7)],'content':this[_0xb8cb34(0x182)]['t']('collaboration.closeRoom')+'('+_0x4e9964+')'}),this[_0xb8cb34(0x20f)][_0xb8cb34(0x420)](new _0x5848ce[(_0xb8cb34(0x356))](_0x445a81)['id'],!0x1),this['_collaborationSessionService'][_0xb8cb34(0x2fb)](_0x445a81);});};_0x1837c6[_0x315d94(0xfb)](this[_0x315d94(0x391)][_0x315d94(0x3e1)](_0x44f3cf[_0x315d94(0x1bb)][_0x315d94(0x402)]),this[_0x315d94(0x391)][_0x315d94(0x3e1)](_0x44f3cf[_0x315d94(0x1bb)]['UNIVER_DOC']))[_0x315d94(0x4f9)](_0x3ab9e8[_0x315d94(0x269)](_0x2a4452=>_0x2a4452['getUnitId']()),_0x3ab9e8[_0x315d94(0x39e)](_0x257983=>!_0x44f3cf[_0x315d94(0x191)](_0x257983)),_0x3ab9e8['takeUntil'](this['dispose$']))[_0x315d94(0x138)](_0x15d0a0=>{_0x5a6002(_0x15d0a0);});}[_0x4deb9c(0x459)](){const _0x39fd4c=_0x4deb9c,_0x4ff903=async _0x40539e=>{const _0x1d2065=_0x47c1;(await this[_0x1d2065(0x4a8)][_0x1d2065(0x10f)](_0x40539e))[_0x1d2065(0x458)][_0x1d2065(0x4f9)](_0x3ab9e8[_0x1d2065(0x39e)](_0x476d6e=>_0x476d6e[_0x1d2065(0x2aa)]===_0x5c3399[_0x1d2065(0x3d6)][_0x1d2065(0x1d9)]),_0x3ab9e8['takeUntil'](this['dispose$']))[_0x1d2065(0x138)](_0x33c739=>{const _0x269129=_0x1d2065,_0x167b52=_0x33c739,{objectId:_0x5e6fbb}=_0x167b52[_0x269129(0xf9)],_0x366920=this[_0x269129(0x25f)]['get'](_0x2c9d11[_0x269129(0x275)]);_0x5e6fbb===_0x40539e?_0x366920[_0x269129(0x1fa)](_0x40539e):_0x366920['refreshPermission'](_0x40539e,_0x5e6fbb);});};_0x1837c6['merge'](this[_0x39fd4c(0x391)]['getTypeOfUnitAdded$'](_0x44f3cf[_0x39fd4c(0x1bb)]['UNIVER_SHEET']),this[_0x39fd4c(0x391)][_0x39fd4c(0x3e1)](_0x44f3cf[_0x39fd4c(0x1bb)][_0x39fd4c(0x350)]))['pipe'](_0x3ab9e8[_0x39fd4c(0x269)](_0x5e93d2=>_0x5e93d2[_0x39fd4c(0x43f)]()),_0x3ab9e8[_0x39fd4c(0x39e)](_0x40e186=>!_0x44f3cf['isInternalEditorID'](_0x40e186)),_0x3ab9e8[_0x39fd4c(0x23e)](this[_0x39fd4c(0x423)]))[_0x39fd4c(0x138)](_0x2956a5=>{_0x4ff903(_0x2956a5);});}};_0x18c06b=_0x177dd7([_0x44f3cf[_0x4deb9c(0x33b)](_0x44f3cf['LifecycleStages'][_0x4deb9c(0x341)],_0x18c06b),_0x43671c(0x0,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x43671c(0x1,_0x44f3cf[_0x4deb9c(0x165)]),_0x43671c(0x2,_0x44f3cf[_0x4deb9c(0x4d1)]),_0x43671c(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x3723aa[_0x4deb9c(0x433)])),_0x43671c(0x4,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf['LocaleService']))],_0x18c06b);const _0x3fbccb=_0x4deb9c(0x1da);var _0x5a750d=Object[_0x4deb9c(0x4f6)],_0x137911=Object['getOwnPropertyDescriptor'],_0x21eb9f=(_0x3849f2,_0x20b852,_0x306100)=>_0x20b852 in _0x3849f2?_0x5a750d(_0x3849f2,_0x20b852,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x306100}):_0x3849f2[_0x20b852]=_0x306100,_0x265f00=(_0x3d5a7e,_0x309624,_0x40dfd0,_0x45122e)=>{for(var _0x3f582b=_0x45122e>0x1?void 0x0:_0x45122e?_0x137911(_0x309624,_0x40dfd0):_0x309624,_0x418d85=_0x3d5a7e['length']-0x1,_0x4f690d;_0x418d85>=0x0;_0x418d85--)(_0x4f690d=_0x3d5a7e[_0x418d85])&&(_0x3f582b=(_0x45122e?_0x4f690d(_0x309624,_0x40dfd0,_0x3f582b):_0x4f690d(_0x3f582b))||_0x3f582b);return _0x45122e&&_0x3f582b&&_0x5a750d(_0x309624,_0x40dfd0,_0x3f582b),_0x3f582b;},_0x3e16a7=(_0x121bbe,_0x2b6b66)=>(_0x3ed1cf,_0x3a81ac)=>_0x2b6b66(_0x3ed1cf,_0x3a81ac,_0x121bbe),_0x70ea35=(_0x2e73a9,_0x2cd6f6,_0x4f8332)=>_0x21eb9f(_0x2e73a9,_0x2cd6f6+'',_0x4f8332);const _0x493296='UNIVER_COLLABORATION_CLIENT_PLUGIN';_0x3723aa[_0x4deb9c(0x3f4)]=class extends _0x44f3cf[_0x4deb9c(0x4dc)]{constructor(_0x151753={},_0x18fa79,_0x5c6ab1,_0x174745,_0x15c371){const _0x40e79a=_0x4deb9c;super(),this[_0x40e79a(0x4e7)]=_0x151753,this[_0x40e79a(0x1aa)]=_0x18fa79,this[_0x40e79a(0x47c)]=_0x5c6ab1,this[_0x40e79a(0x25f)]=_0x174745,this[_0x40e79a(0x494)]=_0x15c371;const {..._0x5ccbbd}=this[_0x40e79a(0x4e7)];this[_0x40e79a(0x494)][_0x40e79a(0x25b)](_0x3fbccb,_0x5ccbbd);}[_0x4deb9c(0x2b8)](){const _0x3ec12b=_0x4deb9c;this[_0x3ec12b(0x1bf)]();}['onRendered'](){const _0x5c225a=_0x4deb9c;this[_0x5c225a(0x3c5)]();}[_0x4deb9c(0x1bf)](){const _0x53bc21=_0x4deb9c;var _0x5bde3e,_0x11512c,_0x2d10ea,_0x167ae1;this[_0x53bc21(0x25f)]['has'](_0x44f3cf[_0x53bc21(0x4b7)])&&this[_0x53bc21(0x1aa)][_0x53bc21(0x46e)](_0x53bc21(0x469),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x579eb8=[[_0x44f3cf[_0x53bc21(0x4b7)],{'useClass':_0x3129e0}],[_0x3723aa[_0x53bc21(0x433)]],[_0x491fbd],[_0x43b7e7[_0x53bc21(0x15f)]],[_0x3be97f,{'useClass':_0x3492f1}],[_0x32fe7e],[_0x3723aa[_0x53bc21(0x1d5)]],[_0x43b7e7['WebSocketService']],[_0x356d67],[_0x2c5796],[_0x8239a3],[_0x47cf83],[_0x41b47c],[_0x523579],[_0x18c06b],[_0x2f8f8b,{'useClass':(_0x11512c=(_0x5bde3e=this['_config'])==null?void 0x0:_0x5bde3e[_0x53bc21(0x109)])!=null?_0x11512c:_0x3723aa[_0x53bc21(0x395)]}],[_0x43b7e7[_0x53bc21(0x1ef)],{'useClass':_0x43b7e7[_0x53bc21(0x213)]}],[_0x5c3399[_0x53bc21(0x257)],{'useClass':_0x3723aa[_0x53bc21(0x262)]}],[_0x44f3cf[_0x53bc21(0x249)],{'useClass':_0x3723aa[_0x53bc21(0x3a1)]}],[_0xaa685a[_0x53bc21(0x2d8)],{'useClass':_0x3723aa[_0x53bc21(0x238)]}],[_0x3723aa[_0x53bc21(0x3ac)]],[_0x3723aa[_0x53bc21(0x374)]],[_0x3723aa['DesktopCollaborationStatusDisplayController']],[_0x46e5fc],[_0xdbf3eb]];(_0x2d10ea=this[_0x53bc21(0x4e7)])!=null&&_0x2d10ea[_0x53bc21(0x253)]&&_0x579eb8[_0x53bc21(0x4c0)]([_0x27229c,{'useClass':_0x19a53f}]),_0x579eb8=_0x44f3cf['mergeOverrideWithDependencies'](_0x579eb8,(_0x167ae1=this[_0x53bc21(0x4e7)])==null?void 0x0:_0x167ae1[_0x53bc21(0x48e)]),_0x579eb8[_0x53bc21(0x4cc)](_0x33f860=>this[_0x53bc21(0x25f)][_0x53bc21(0x117)](_0x33f860)),this[_0x53bc21(0x383)]();}[_0x4deb9c(0x3c5)](){const _0x2309d1=_0x4deb9c;this[_0x2309d1(0x446)](this[_0x2309d1(0x47c)][_0x2309d1(0x21b)](_0x44f3cf['UniverInstanceType'][_0x2309d1(0x350)],[_0x58fc0b])),this[_0x2309d1(0x446)](this['_renderManagerService'][_0x2309d1(0x21b)](_0x44f3cf[_0x2309d1(0x1bb)][_0x2309d1(0x402)],[_0x626aa7]));}[_0x4deb9c(0x383)](){const _0x10bffe=_0x4deb9c;var _0x317101,_0x24249e;this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x43b7e7[_0x10bffe(0x15f)])[_0x10bffe(0x169)]({'priority':0x14,'interceptor':_0x43b7e7[_0x10bffe(0x300)]({'maxParallel':0x6})}),(_0x317101=this['_config'])!=null&&_0x317101[_0x10bffe(0x1a3)]||this[_0x10bffe(0x25f)]['get'](_0x3723aa[_0x10bffe(0x1d5)])[_0x10bffe(0x1f7)](),(_0x24249e=this['_config'])!=null&&_0x24249e[_0x10bffe(0x41f)]&&this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x41b47c),this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x3723aa[_0x10bffe(0x3ac)]),this['_injector']['has'](_0x3723aa[_0x10bffe(0x221)])&&this[_0x10bffe(0x25f)][_0x10bffe(0x38c)](_0x3723aa[_0x10bffe(0x221)]);}},_0x70ea35(_0x3723aa[_0x4deb9c(0x3f4)],_0x4deb9c(0x134),_0x493296),_0x3723aa[_0x4deb9c(0x3f4)]=_0x265f00([_0x44f3cf[_0x4deb9c(0x1ce)](_0x5c3399[_0x4deb9c(0x288)]),_0x3e16a7(0x1,_0x44f3cf['ILogService']),_0x3e16a7(0x2,_0x278226['IRenderManagerService']),_0x3e16a7(0x3,_0x44f3cf[_0x4deb9c(0x2a6)](_0x44f3cf[_0x4deb9c(0x483)])),_0x3e16a7(0x4,_0x44f3cf['IConfigService'])],_0x3723aa[_0x4deb9c(0x3f4)]),_0x3723aa[_0x4deb9c(0x1f3)]=_0x4aaaa6,_0x3723aa[_0x4deb9c(0x180)]=_0x1b950d,_0x3723aa['COLLAB_WEB_SOCKET_URL_KEY']=_0x58c006,_0x3723aa[_0x4deb9c(0x3b6)]=_0x1a5e20,_0x3723aa['CollaborationStatusDisplay']=_0x1e6808,_0x3723aa[_0x4deb9c(0x37e)]=_0x523579,_0x3723aa[_0x4deb9c(0x18f)]=_0x4175a2,_0x3723aa[_0x4deb9c(0x172)]=_0x1bc3ee,_0x3723aa[_0x4deb9c(0x14d)]=_0x2f8f8b,_0x3723aa[_0x4deb9c(0x3b1)]=_0x3be97f,_0x3723aa['LOCAL_CACHE_INTERVAL_KEY']=_0x4c3652,_0x3723aa['LOGIN_URL_KEY']=_0x1fff0c,_0x3723aa['RETRY_CONNECTING_INTERVAL_KEY']=_0x31135c,_0x3723aa[_0x4deb9c(0x214)]=_0x3eddeb,_0x3723aa[_0x4deb9c(0x2e7)]=_0x5bb06f,_0x3723aa[_0x4deb9c(0x15e)]=_0x4007f7,_0x3723aa[_0x4deb9c(0x3f1)]=_0x1691bd,_0x3723aa['SessionStatus']=_0x4388c5,_0x3723aa[_0x4deb9c(0x1dc)]=_0x1fe35d,_0x3723aa[_0x4deb9c(0x31c)]=_0x3492f1,_0x3723aa[_0x4deb9c(0x3cf)]=_0x2eb665,_0x3723aa[_0x4deb9c(0x1ed)]=_0x266df0,Object['defineProperty'](_0x3723aa,Symbol[_0x4deb9c(0x416)],{'value':'Module'});}));function _0x47c1(_0x531da3,_0x255a66){const _0xd8ee3c=_0xd8ee();return _0x47c1=function(_0x47c13d,_0x231168){_0x47c13d=_0x47c13d-0xf4;let _0xa42bb2=_0xd8ee3c[_0x47c13d];return _0xa42bb2;},_0x47c1(_0x531da3,_0x255a66);}function _0xd8ee(){const _0x2b9b28=['createElement','_document','extend','fetchMissingChangesets','c2Prime','COLLAB_WEB_SOCKET_URL','DataLoaderController','textEncoder','_range','indexOf','assign','ThemeService','transform','_clearHeartbeatTimer','sheetId','_commentUpdate$','CommentService','onTransformRemoteChangesetByIMECache','unitId','/-/object/list','reject','_initModules','YUUMI_SUBSCRIPTION_NOT_FOUND','_undoStacks','urlChange$','?url=','_http','@univerjs/rpc','_waitCount','cmd','get','_saveTaskMap','beginPath','fill','_startTelemetryCollaborationNewChangeset','_univerInstanceService','_collabCursorState$','@univerjs-pro/collaboration','transformMutationsWithChangeset','CollaborationSocketService','_createSocket','LocalUndoRedoService','transformByState','_isPermissionRej','JOIN','HEARTBEAT_INTERVAL','YUUMI_URL_COL_OUT_OF_RANGE','_session','filter','Tooltip','TOO_MANY_REQUESTS','AuthzIoHttpService','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','getCurrentRevForDocument','getInterceptPoints','_showConflictNotification','delay','_name','serializeRangeWithSheet','awaiting_with_pending','registerRefRange','@univerjs/design','CollaborationController','objectType','Unknown\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_disableEditing','MUTATION','IURLService','RevisionService','_socketMessageSubscription','interceptor','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','CollaborationStatus','batchAllowed','SetSelectionsOperation','NodePositionConvertToRectRange','apply','m1Prime','_handleEvent','connectInjector','_getAPIPrefix','getSheetBySheetId','roomMembers$','DocCollaborationEntity','_transformService','_ensureSubject','_getCurrentRevision','_registerRenderDependencies','_decreaseWaiting','ERROR_IMAGE_TYPE','shareReplay','@univerjs/telemetry','DEFAULT_FILE_NAME','_stopTelemetryCollaborationNewChangeset','HEARTBEAT_TIMEOUT','_scheduleTimestamp','on-line-single','deserializeToCombResponse','transformRemoteChangeset','getUnitOnRev','CONFLICT','_lockTransition','@univerjs/sheets','HEARTBEAT','CollaborationEvent','_localCacheService','now','getOwnPropertyDescriptor','/unit/','setItem','_onRecvEvent','SetTextSelectionsOperation','purple300','rxjs','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','getTypeOfUnitAdded$','_clearRedo','unload','UniverIcon','selection','debug','_createHandler','next','toRgbString','transformMutation','red300','gold400','CollaborationEntity','with','_undoRedoService','off-line-single_clip0_910_343','SNAPSHOT_URL_KEY','bottom','getOffsetConfig','UniverCollaborationClientPlugin','_anchorDot','measureText','_notificationService','transformSelections','_startSheetCollabCursor','clear','_initCloseConn','ColorKit','params','actions','PENDING','removeEventListener','isEditing','UNIVER_SHEET','15zXSnhi','CollaborationSession','searchParams','clipPath','url','range','LIVESHARE_NEW_HOST','_docSyncEditingCollabCursorService','_updateURLWithCurrentState','resize','CHANGESET_REVISION_CONFILICT','exhaustSavingTask','image/png','AWAITING_WITH_PENDING','_onConflict','_throwTelemetryCollaborationNewChangeset','UNIVER_UNKNOWN','updateCursorEvent','/new_changes','toStringTag','localeService','APPLY_REJECT','RemoveRowCommandId','/rev/','RichTextEditingMutation','_timeoutTimer','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','/collaborator','enableAuthServer','updatePermissionPoint','message$','sheetID','dispose$','1em','svg','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','createInstance','stringify','COMPRESS_MUTATION_APPLY','_getSignURL','_assignedColors','src','_drawTextRange','assignAColorForMemberID','INTERNAL_ERROR','useObservable','getSheetBlock','DocSelectionManagerService','CollaborationSessionService','&to=','Warning','_transformRemoteChangesetByIMECache','INotificationService','getMember','?size=','status$','evenodd','_scheduleCollaborationTimeoutTimer','max','LOCAL_CACHE_INTERVAL','getUnitId','LocaleService','deleteCollaborator','_userManagerService','entries','isTransformChangesetsSuccess','_schedule','disposeWithMe','triggerDblclick','amd','SNAPSHOT_HAS_BEEN_REMOVED','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_uiPartsService','JSONX','runRefRangeMutations','close','removeMember','executeCommand','_textBubble','top','ITransformService','replaceState','save','getSheetId','0\x200\x2016\x2016','event$','_initUnitPermissionChange','Tools','UniverDesign','unit-cache-','InsertSheetMutation','_setupSubUnitSync','title','_onFetchMissResult','children','IDLE','_hovered','cursorInfo','state$','_onCursorDelete','getImageSourceCache','_snapshotService','[UniverCollaborationClientPlugin]','RegularPolygon','image/bmp','_clearUndo','LIVESHARE_OPERATION','error','IRemoteInstanceService','_transformStack','getUniverSheetInstance','_getSendChangesetTimeout','POST','&source=','_candidateSocket','toggleOffline','switchMap','LIVESHARE_FETCH_OPERATIONS','setTimeout','onlineStatusIcon','contains','_renderManagerService','c1Prime','Steady','NOT_FOUND','verdancy600','_onJoinRoomEvent','429446WsbsHP','Injector','_commandService','currentTheme$','FAIL','hide','_heartbeatTimer','reconnect','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','RxDisposable','_backgroundColor','setUndoRedoMutationParamsCache','override','56268FIFgVN','_onRemoteChangeset','exports','293716DMUuXN','_change$','_configService','UniverCollaborationClient','_localStorageService','_unitID','univerjs-icon\x20univerjs-icon-','m2Prime','_exhaustRemoteChangesetQueue','OffLineSingle','onTransformSelections','idSuffix','debounce','workbook','Subject','_getUploadFileURL','YUUMI_RATE_OVER_LIMIT','_collaborationPaused','HttpImport','getTypeOfUnitDisposed$','CompressMutationService','NEW_CHANGESETS','_collaborationSessionService','url(#off-line-single_clip0_910_343)','state','parse','transformStack\x20failed!','UNIVER_SLIDE','_initMergeInterceptor','/allowed','_scheduleHeartbeat','EXCHANGE_UPLOAD_FILE_SERVER_URL_KEY','UUID','socket\x20open.','/universer-api/authz','[SyncedState]:\x20received\x20rejection.','auth.needGotoLoginAlert','IUndoRedoService','_clearCollaborationTimeoutTimer','_instanceService','session','function','_commentService','CHANGESET_REJ','isArray','distinctUntilChanged','push','text','row','onCommentUpdate','symbol','getActiveSheet','[DataLoaderController]','url(#$1','_joinRoom','setInterval','_refreshCollabCursors','_hideTimer','forEach','_updateLocalCursor','_transformUndoRedoStack','concat','_setupBeforeClosingHandler','IPermissionService','_transformIMECache','complete','_memberService','/universer-api/file/{fileID}/sign-url','/universer-api/snapshot/','_getUndoStack','onRemoteRej','fetch_missing','csRejEvent','fromEvent','Plugin','_clearLocalCache','from','_getSaveTimeout','resend','onStateChange','HttpExport','addImageSourceCache','_getAnchorBounding','ILogService','collabStatus.fetchMiss','_config','getUnhiddenWorksheets','deserializeRangeWithSheet','lodash','asObservable','_beforeCloseService','_collaborationTimeoutTimer','requestParams','LIVESHARE_TERMINATE','UniverNetwork','type','rev','_roomMembers$','hovered','values','defineProperty','generateRandomId','_initStatusListener','pipe','getWorkbookSelections','_init','_render','RECV','onlineStatus','includes','onSendChangeset','sessionStatus$','_members','[SyncedState]:\x20received\x20acknowledgement.','_getLoginPath','COMPRESS_MUTATION_SEND','getColor','json','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_initCommandExecutedListener','Disposable','SHOULD_CLOSE_CONN','some','_urlService','ALREADY_EXISTS','changesets','image/jpeg','setParam','className','startsWith','VIEW_MAIN','INGEST','_redoStacks','375576aNoxTY','_status$','M0\x200H16V16H0z','data','_socket','merge','fetching\x20missing\x20changesets\x20from\x20','pushState','Rect','subscribeEvent','getUnit','LICENSE_MAX_MEMBERS_PER_UNIT_EXCEEDED','_disabled','unshift','_initStatusComponent','_ws','saveOfflineData','getAncestorScale','_sessions','socketService','_updateCollabCursors','_createInitialStateImpl','target','getOwnPropertySymbols','[OfflineState]:\x20received\x20acknowledgement.','requireSession','min','status','_telemetryService','LICENSE_DISTRO_REJECTED','Vector2','_startDocCollabCursor','ImageSourceType','add','[CollaborationSession]','getRenderById','_socketService','_getAPIPrefixPath','UserManagerService','_clearTimeoutTimer','@univerjs/drawing','setCurrentUser','_collaborationController','react','448884msqERT','_handleLeaveEvent','newCsEvent','useDependency','parseChangesetToProtocol','onTransformIME','isTransformMutationFailure','FileId','create','confirm','useRef','_awaitingChangeset','Optional','userID','rgba(255,\x20255,\x20255,\x200.01)','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_handleHeartbeatEvent','toDisposable','pluginName','OFFLINE','url(#on-line-single_clip0_910_349)','getCellPositionByOffset','subscribe','EmptyMutation','open$','_lastPointer','SheetsSelectionsService','COMPLETION_FINISHED','unitId\x20is\x20not\x20found','univer-pro.collaboration-client-socket-service','_getSnapshotAPIPrefix','getCurrentSelections','attrs','offline','close$','[OfflineState]:\x20received\x20rejection.','getMemberID','@univerjs/docs','_onUserLeave','_listenToOnlineEvent','_event$','collabCursorState$','&assign=','ICollaborationSocketService','transformChangesets','pending','IConfigService','send','_colorIndex','ERROR_EXCEED_SIZE','[PendingState]:\x20received\x20acknowledgement.','_compressMutationService','_substituteUndoStack','getRelativeToViewportCoord','_selfUnitIDs','_acknowledgedAwaitingChangeset','isTransformMutationsWithChangesetFailure','then','editing\x20status\x20changed\x20to','use','SNAPSHOT_SERVER_URL_KEY','HTTPService','BASE64','collabStatus.conflict','_colorAssignService','_onCombEvent','addObjects','IUniverInstanceService','UNKNOWN_CMD','combineLatest','addEventListener','registerHTTPInterceptor','SUCCUSS','routeKey','_state','\x20to\x20','updateCollaborator','_cachedData','_scheduleClearOtherTimer','UniverDrawing','HEARTBEAT_TIMEOUT_KEY','b64DecodeUnicode','MSG_FOR_ERROR','getUnitType','roomInfos','_syncEditingCollabCursorService','transformIMECache','collabStatus.notCollab','length','resourceIDs','_transformPreviousActiveRange','BehaviorSubject','_updateStatus','has','COLLAB_SUBMIT_CHANGESET_URL_KEY','_onCursorUpdate','_localeService','ACTIVE_UNIT_EVENT_CHANNEL','unsubscribe','lineTo','baseRev','colorChannel1','storage','ImageUploadStatusType','_sheetTransformSelectionsService','socket$','_onRemoteRejected','_startCollaboration','_clearOtherTimers','HEARTBEAT_INTERVAL_KEY','doc.mutation.rich-text-editing','isInternalEditorID','_removeCollabCursors','update','revision','getItem','change$','FromArray','registerOnClose','collaboration.single-unit.warning','RETRY_CONNECTING_MAX_COUNT','translate(.97)','_type','onPointerMove$','clearTimeout','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','result','roles','_waitForHeartbeatResponse','enableOfflineEditing','UniverSheetsUi','SheetCollaborationEntity','font','_onUserJoin','setActiveRange','pauseCollaboration','_logService','_updateState','black','catch','_sendingTimer','getFocusedUnit','getActiveRange','univer-online-status','IMessageService','_docSkeletonManagerService','moveTo','online','_sendHeartbeatTimer','onPointerLeave$','Rectangle','_incrementRevisionNumber','handleIRemoveRow','UniverInstanceType','addObject','_initResize','_sheetSkeletonManagerService','_registerDependencies','NOT_COLLAB','LICENSE_MAX_UNITS_EXCEEDED','isValidRectRange','USERS_ENTER','createSocket','UPDATE_CURSOR','labelPosition','DisposableCollection','collabStatus.offline','RemoveColCommandId','[CollaborationSessionService]','restore','_unlockTransition','subUnitId','DependentOn','string','122088vLRsCO','joinEvent','subunit','JOINING','reverse','LocalCacheService','collaMsg','_onOffline','InsertRangeMoveRightCommandId','UPDATE_PERMISSION_OBJ','collaboration-client.config','_transformSelections','SheetCollabCursorShape','findNodePositionByCharIndex','UnitSnapshot','ONLINE','/universer-api/stream/file/upload','[PendingState]:\x20received\x20rejection.','focused$','createIdentifier','fetchMiss','_saveCache','_applyRemoteChangeset','error$','updateMember','0\x200\x2017\x2016','getUnitStatus$','_cursorShapes','COMMENT_UPDATE','serializeCombRequest','_clearScheduledTask','IHTTPImplementation','onload','fetchThroughInterceptors','reduce','AUTHZ_URL_KEY','round','_queuedRemoteChangesets','_cursor','disableLocalCache','_docTransformSelectionsService','listCollaborators','initWorkbookPermissionChange','_context','fillText','Error\x20on\x20receiving\x20event','Univer','[CollaborationUndoRedoService]','YUUMI_UNABLE_LOAD_URL','defIds','DocIMEInputManagerService','USERS_LEAVE','getCollabEntity','mapDocumentTypeToUniverType','SYNCED','Unknown\x20user','[CollaborationState]:\x20apply\x20error!','collaboration-client.offline-data-not-saved','substring','_handleHover','1610GPfhBp','handleMoveRange','/object','_permissionService','unit','capture','_telemetryInfo','XHRHTTPImplementation','RETRY_CONNECTING_MAX_COUNT_KEY','take','updatePermissionObjEvent','memberID','_onConnectionFailed','2mSzcaG','_roomMembers','registerRenderModule','\x20in\x20_schedule.','fillStyle','/object/','getDocRanges','every','DesktopCollaborationStatusDisplayController','_loadDoc','RETRY_CONNECTING_INTERVAL','AWAITING','currentColor','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_state$','LICENSE_EXPORT_SIZE_EXCEEDED','UNDEFINED','_retryCount','_docStateChangeManagerService','RefRangeService','LEAVE','getValue','startRow','sessionStatus','on-line-single_clip0_910_349','UniverSheets','concatMap','_sendHeartbeat','prototype','FETCH_MISSING','objectID','ImageIoService','post','@univerjs/docs-ui','size','cursorInfo$','toString','takeUntil','textRanges','propertyIsEnumerable','dispose','_HTTPService','ICommandService','random','DeleteRangeMoveUpCommandId','_socket$','\x0aAfter:\x20','3948065UacEEo','IAuthzIoService','transformUndoRedo','operators','15CUiEuj','_onRemoteACK','originalMeta','[CollaborationEntity]','InsertColCommandId','UnitEmbedded','_shapes','enableSingleActiveInstanceLock','getParam','UNRECOGNIZED','getImage','ISnapshotServerService','_online','snapshot','incrementRevForDocument','setConfig','MessageType','_remoteChangesetQueue','onRemoteChangeset','_injector','collab-rect-range-','_executeRemoteChangeset','SnapshotServerOverHTTPService','_removeRoom','isTransformMutationsWithChangesetSuccess','div','xlink:href','@univerjs/engine-render','_pendingMutations','map','startTime','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_handleJoinEvent','APPLY_PERMISSION_DENIED','telemetry\x20info\x20is\x20not\x20initialized','_replayCachedMutations','OTHER_CLIENTS_EDITING','_getScale','...','unknown','sequenceExecute','SheetPermissionInitController','submit\x20changeset\x20error!','getRangePointData','_snapshotServerService','leaveEvent','onCommandExecuted','onMouseMove','saveSheetBlock','IBeforeCloseService','_tryEnsureSocket','_onLocalMutation','_unitStatus','roomMembers','unitID','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_entityInit$','_transitionLocked','loadOfflineData','@univerjs/network','UniverCollaborationPlugin','setAlpha','FETCH_MISS','_updateSubUnitFromURLParams','getSheetObject','/block/','getCollabCursors$','responseType','object','useCallback','registerBeforeClose','\x20-\x20','loadSheet','appendMutation','_getMergeRange','_getRedoStack','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','/fetchmissing?from=','conflict.title','ranges','SUBMIT_CHANGESET','clsx','createCollaborator','/resources','debounceTime','VIEWPORT_KEY','onMissedChangesetFetched','_retryConnectingTimer','_refRangeService','href','Inject','show','synced','NO_OTHER_CLIENTS_EDITING','eventID','COLORS','clearInterval','color','_getSheetObject','_revisionService','collaboration-session-retry','none','set','_cursors','LifecycleStages','displayName','_entities','Error','onStarting','_draw','/universer-api/comb','ERROR_IMAGE','_color','socket\x20close','current','getTime','onlineStatusTitle','CommandType','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_anchor','deepClone','endRow','ws://127.0.0.1:8000/universer-api/comb/connect','_imageSourceCache','updateOfflineData','duration','syncEditingCollabCursor','objectActions','collaboration_new_changeset','getConfig','Shape','getCoordByCell','call','_tryReconnect','getCurrentUser','UNIVER_PROJECT','_checkMissing','isActive','getCollabEntity$','editingUnit','IImageIoService','UniverDocs','onSyncEditingCollabCursor','IRenderManagerService','_replaceFileID','sheets','conflict','IUIPartsService','key','name','makeDirty','_singleActiveUnitService','_createInitialState','_drawRectRange','EXCHANGE_SIGN_URL_SERVER_URL_KEY','SEND_CHANGESET_TIMEOUT_KEY','getResourcesRequest','_rescheduleHeartbeat','21gXWULM','engine','LOGIN_URL_KEY','UniverUi','ILocalStorageService','_removeClearOtherTimer','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','jiqing500','EffectRefRangId','trim','APPLY_NON_SEQUENTIAL_REVISION','tag','permissionRejEvent','_submitChangeset','SetWorksheetActivateCommand','_updateLocalCache','slice','closeSession','blue400','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','icon','_listenToOfflineEvent','ThresholdInterceptorFactory','130lDfShP','getMergeData','HELLO','onRemoteAck','permission.title','APPLY_REVISION_CONFILICT','univer-online-status-icon','arc','_transformUndoredo','@univerjs/ui','_shouldReportTelemetry','@univerjs/engine-formula','onPointerEnter$','_substituteRedoStack','commentUpdate$','[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.','patch','delete','onlyLocal','replaceTextRanges','_socketReady','file','body','isPermissionRej','_syncEditingCollabCursor','_messageService','off-line-single','WebURLService','_hover','UNAUTHENTICATED','saveImage','DocStateChangeManagerService','_fetchMissChangesets','_docTransformIMECacheService','_handler','height','session.will-retry','getViewport','_toggleOffline','forwardRef','@univerjs/sheets-ui','#fff','liveShareNewHost','awaitingChangeset','/universer-api/oidc/authpage','encode','onMissingChangesets','_httpService','_id','univer-pro.collaboration-client.single-active-unit-service','CHANGESET_ACK','list','toggleOnline','_sessionStatus$','getSkeleton','PSEUDO_FETCH_MISSING_RESULT','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','OnLifecycle','_docSkeleton','location','flatMap','removeParam','find','Starting','path','LIVESHARE_REQUEST_HOST','/role','[CollaborationSessionService]:\x20socket\x20error','_toggleOnline','_eventUnsubscribe','_labelPosition','getRoom','LICENSE_IMPORT_SIZE_EXCEEDED','saveSnapshot','univer-offline','selections','loadDoc','TEXT_RANGE_LAYER_INDEX','UNIVER_DOC','_onMessage','_send','_scene','_scheduleSaving','permission.content','WorkbookEditablePermission','width','append','_collabSessionService','setShapeProps','handleDeleteRangeMoveLeft','stopTime','UniverRpc','getUndoRedoMutationParamsCache','_collabCursorController','rxjs/operators','history','fromCollab','handleInsertRow','joinRsp','action','hasOwnProperty','mutations','drawWith','skeleton','init','_cursorInfo$','_unitOnClients','handleInsertRangeMoveDown'];_0xd8ee=function(){return _0x2b9b28;};return _0xd8ee();}