@univerjs/preset-docs-collaboration 0.25.0 → 0.25.1
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 +4 -4
- package/lib/umd/locales/ar-SA.js +2 -2
- package/lib/umd/locales/ca-ES.js +2 -2
- package/lib/umd/locales/de-DE.js +2 -2
- package/lib/umd/locales/en-US.js +2 -2
- package/lib/umd/locales/es-ES.js +2 -2
- package/lib/umd/locales/fa-IR.js +2 -2
- package/lib/umd/locales/fr-FR.js +2 -2
- package/lib/umd/locales/id-ID.js +2 -2
- package/lib/umd/locales/it-IT.js +2 -2
- package/lib/umd/locales/ja-JP.js +2 -2
- package/lib/umd/locales/ko-KR.js +2 -2
- package/lib/umd/locales/pl-PL.js +2 -2
- package/lib/umd/locales/pt-BR.js +2 -2
- package/lib/umd/locales/ru-RU.js +2 -2
- package/lib/umd/locales/sk-SK.js +2 -2
- package/lib/umd/locales/vi-VN.js +2 -2
- package/lib/umd/locales/zh-CN.js +2 -2
- package/lib/umd/locales/zh-HK.js +2 -2
- package/lib/umd/locales/zh-TW.js +2 -2
- package/package.json +6 -6
package/lib/umd/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// @univerjs-pro/collaboration-client/index
|
|
2
|
-
function _0x4364(_0x2aae38,_0x204141){_0x2aae38=_0x2aae38-0xba;const _0x4379ac=_0x4379();let _0x43642e=_0x4379ac[_0x2aae38];return _0x43642e;}(function(_0xf76a05,_0x557468){const _0x56c7b=_0x4364,_0x447752=_0xf76a05();while(!![]){try{const _0x3779e8=-parseInt(_0x56c7b(0x201))/0x1+-parseInt(_0x56c7b(0x321))/0x2*(parseInt(_0x56c7b(0xee))/0x3)+parseInt(_0x56c7b(0x1e2))/0x4*(-parseInt(_0x56c7b(0x1fe))/0x5)+-parseInt(_0x56c7b(0xef))/0x6*(-parseInt(_0x56c7b(0x20e))/0x7)+-parseInt(_0x56c7b(0x36c))/0x8+-parseInt(_0x56c7b(0x35c))/0x9+parseInt(_0x56c7b(0x39b))/0xa;if(_0x3779e8===_0x557468)break;else _0x447752['push'](_0x447752['shift']());}catch(_0x1d58b4){_0x447752['push'](_0x447752['shift']());}}}(_0x4379,0xd350f),function(_0x44e206,_0xdeedf5){const _0x257667=_0x4364;typeof exports=='object'&&typeof module<'u'?_0xdeedf5(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x257667(0x388)]?define([_0x257667(0x238),_0x257667(0x3b6),_0x257667(0x18e),_0x257667(0x214),'@univerjs/sheets',_0x257667(0x1e8),_0x257667(0x224),_0x257667(0x22f),_0x257667(0x1da),_0x257667(0xd6),_0x257667(0x184),_0x257667(0x159)],_0xdeedf5):(_0x44e206=typeof globalThis<'u'?globalThis:_0x44e206||self,_0xdeedf5(_0x44e206['UniverProCollaborationClient']={},_0x44e206['UniverProCollaboration'],_0x44e206[_0x257667(0x134)],_0x44e206[_0x257667(0x106)],_0x44e206[_0x257667(0x37d)],_0x44e206[_0x257667(0x1e8)],_0x44e206[_0x257667(0x288)],_0x44e206[_0x257667(0x3da)],_0x44e206['rxjs'][_0x257667(0xfb)],_0x44e206[_0x257667(0x228)],_0x44e206[_0x257667(0x16d)],_0x44e206[_0x257667(0x257)]));}(this,function(_0x10f62c,_0x597ddf,_0x4f2fc5,_0x37b785,_0x575377,_0x196a42,_0x121aa6,_0x3702ed,_0x5c83a6,_0x4fa7e8,_0x4a0b74,_0x4aa170){const _0x3c7add=_0x4364;Object[_0x3c7add(0x2ab)](_0x10f62c,Symbol[_0x3c7add(0xc2)],{'value':_0x3c7add(0x27c)});let _0x40bad1=_0x3c7add(0x1ec),_0x887dad=0x4e20;function _0x434b50(_0x75417d){const _0x1720d4=_0x3c7add;return JSON[_0x1720d4(0x265)](_0x75417d)['length'];}function _0x163bd2(_0xb55d1d){'@babel/helpers - typeof';const _0x4c1cef=_0x3c7add;return _0x163bd2=typeof Symbol==_0x4c1cef(0x16c)&&typeof Symbol['iterator']==_0x4c1cef(0x14a)?function(_0x92395d){return typeof _0x92395d;}:function(_0x422426){const _0x2b3549=_0x4c1cef;return _0x422426&&typeof Symbol==_0x2b3549(0x16c)&&_0x422426[_0x2b3549(0x25f)]===Symbol&&_0x422426!==Symbol['prototype']?_0x2b3549(0x14a):typeof _0x422426;},_0x163bd2(_0xb55d1d);}function _0x13d572(_0x349cff,_0x218965){const _0x7e1ac9=_0x3c7add;if(_0x163bd2(_0x349cff)!=_0x7e1ac9(0x2a1)||!_0x349cff)return _0x349cff;var _0x263b3e=_0x349cff[Symbol['toPrimitive']];if(_0x263b3e!==void 0x0){var _0x1e1f35=_0x263b3e[_0x7e1ac9(0x3bb)](_0x349cff,_0x218965||'default');if(_0x163bd2(_0x1e1f35)!=_0x7e1ac9(0x2a1))return _0x1e1f35;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x218965===_0x7e1ac9(0x22c)?String:Number)(_0x349cff);}function _0x54f74e(_0x486081){const _0x361102=_0x3c7add;var _0x2544c6=_0x13d572(_0x486081,_0x361102(0x22c));return _0x163bd2(_0x2544c6)==_0x361102(0x14a)?_0x2544c6:_0x2544c6+'';}function _0x45730e(_0x326603,_0x5f568c,_0xd26d32){const _0x5d3c66=_0x3c7add;return(_0x5f568c=_0x54f74e(_0x5f568c))in _0x326603?Object[_0x5d3c66(0x2ab)](_0x326603,_0x5f568c,{'value':_0xd26d32,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x326603[_0x5f568c]=_0xd26d32,_0x326603;}let _0x403eeb=function(_0x358117){const _0x3d096e=_0x3c7add;return _0x358117['OTHER_CLIENT_EDITING']='OTHER_CLIENT_EDITING',_0x358117[_0x3d096e(0x354)]='PERMISSION_DENIED',_0x358117[_0x3d096e(0xd8)]=_0x3d096e(0xd8),_0x358117[_0x3d096e(0x3c9)]=_0x3d096e(0x3c9),_0x358117[_0x3d096e(0x185)]=_0x3d096e(0x185),_0x358117['SOCKET_FAILED_RETRY']=_0x3d096e(0x29f),_0x358117['SOCKET_FAILED']=_0x3d096e(0x278),_0x358117['SUBMIT_CHANGESET_TIMEOUT']=_0x3d096e(0x22b),_0x358117;}({});var _0x20d828=class{constructor(){const _0x256157=_0x3c7add;_0x45730e(this,'_event$',new _0x196a42[(_0x256157(0x274))]()),_0x45730e(this,_0x256157(0x211),this['_event$'][_0x256157(0xc6)]());}[_0x3c7add(0x365)](_0x3a39a0){const _0x4fcdd4=_0x3c7add;this['_event$'][_0x4fcdd4(0x232)](_0x3a39a0);}},_0x2ea459=class{constructor(){const _0x38dee8=_0x3c7add;_0x45730e(this,_0x38dee8(0x2dc),new _0x196a42[(_0x38dee8(0x274))]()),_0x45730e(this,_0x38dee8(0x2c6),this[_0x38dee8(0x2dc)][_0x38dee8(0xc6)]());}[_0x3c7add(0x198)](_0xb93946){const _0x371481=_0x3c7add;this[_0x371481(0x2dc)][_0x371481(0x232)](_0xb93946);}};function _0x78c766(_0x601fce,_0x424e29){return function(_0x22ceef,_0x488d9f){_0x424e29(_0x22ceef,_0x488d9f,_0x601fce);};}function _0x38f352(_0x3f39f6,_0x27727d,_0x3e6aa0,_0x1c95b2){const _0x497656=_0x3c7add;var _0x5babf5=arguments[_0x497656(0x3a4)],_0x26a1d6=_0x5babf5<0x3?_0x27727d:_0x1c95b2===null?_0x1c95b2=Object[_0x497656(0x3df)](_0x27727d,_0x3e6aa0):_0x1c95b2,_0x540358;if(typeof Reflect==_0x497656(0x2a1)&&typeof Reflect[_0x497656(0x300)]==_0x497656(0x16c))_0x26a1d6=Reflect[_0x497656(0x300)](_0x3f39f6,_0x27727d,_0x3e6aa0,_0x1c95b2);else{for(var _0x42afd3=_0x3f39f6[_0x497656(0x3a4)]-0x1;_0x42afd3>=0x0;_0x42afd3--)(_0x540358=_0x3f39f6[_0x42afd3])&&(_0x26a1d6=(_0x5babf5<0x3?_0x540358(_0x26a1d6):_0x5babf5>0x3?_0x540358(_0x27727d,_0x3e6aa0,_0x26a1d6):_0x540358(_0x27727d,_0x3e6aa0))||_0x26a1d6);}return _0x5babf5>0x3&&_0x26a1d6&&Object[_0x497656(0x2ab)](_0x27727d,_0x3e6aa0,_0x26a1d6),_0x26a1d6;}let _0x359f82=class extends _0x4f2fc5[_0x3c7add(0x210)]{constructor(_0x3aa5f9,_0x5731ff){const _0x2a4315=_0x3c7add;super(),this['_univerInstanceService']=_0x3aa5f9,this[_0x2a4315(0x366)]=_0x5731ff,_0x45730e(this,_0x2a4315(0x107),new Map()),_0x45730e(this,'_roomCreated$',new _0x196a42['Subject']()),this['disposeWithMe']((0x0,_0x196a42[_0x2a4315(0x1b5)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4f2fc5[_0x2a4315(0x22e)][_0x2a4315(0x2a4)])[_0x2a4315(0x397)]((0x0,_0x5c83a6[_0x2a4315(0x192)])(_0x27185e=>_0x27185e[_0x2a4315(0x21a)]())),this[_0x2a4315(0x243)][_0x2a4315(0x1b0)](_0x4f2fc5['UniverInstanceType'][_0x2a4315(0x2d5)])[_0x2a4315(0x397)]((0x0,_0x5c83a6['map'])(_0x523efd=>_0x523efd[_0x2a4315(0x21a)]())))['subscribe'](_0x1d9d60=>this[_0x2a4315(0x360)](_0x1d9d60)));}['waitForRoom$'](_0x5084e4){const _0x2e7ca4=_0x3c7add;return this[_0x2e7ca4(0x107)]['has'](_0x5084e4)?(0x0,_0x196a42['of'])(this[_0x2e7ca4(0x107)]['get'](_0x5084e4)):this['_roomCreated$']['pipe']((0x0,_0x5c83a6[_0x2e7ca4(0x192)])(_0x14deb4=>{const _0x16817b=_0x2e7ca4;if(_0x14deb4===_0x5084e4)return this['_roomMembers'][_0x16817b(0x1fd)](_0x14deb4);}));}['setCurrentUser'](_0x1429cf){const _0x34e938=_0x3c7add;this[_0x34e938(0x366)][_0x34e938(0x100)](_0x1429cf);}[_0x3c7add(0x11b)](){const _0x18793f=_0x3c7add;return this[_0x18793f(0x366)][_0x18793f(0x11b)]();}[_0x3c7add(0x1b6)](_0x1348ea,_0xfa5e33){const _0x1374e3=_0x3c7add;let _0x3a2176=this[_0x1374e3(0x107)][_0x1374e3(0x1fd)](_0x1348ea);_0x3a2176||(_0x3a2176=new _0x599447(),this[_0x1374e3(0x107)][_0x1374e3(0x38b)](_0x1348ea,_0x3a2176),this['_roomCreated$']['next'](_0x1348ea)),_0x3a2176[_0x1374e3(0x1b6)](_0xfa5e33);}['removeMember'](_0x1ec67a,_0x4f967a){const _0x12a089=_0x3c7add;let _0x256d62=this[_0x12a089(0x107)][_0x12a089(0x1fd)](_0x1ec67a);_0x256d62&&_0x256d62[_0x12a089(0x36f)](_0x4f967a);}[_0x3c7add(0x386)](_0x102ca4){const _0x573afd=_0x3c7add;return this['_roomMembers'][_0x573afd(0x1fd)](_0x102ca4);}[_0x3c7add(0x255)](_0x4b1ab0,_0x11d673){const _0x550a2b=_0x3c7add;let _0x228058=this[_0x550a2b(0x107)]['get'](_0x4b1ab0);if(_0x228058)return _0x228058[_0x550a2b(0x255)](_0x11d673);}[_0x3c7add(0x360)](_0x44ba83){const _0x3177af=_0x3c7add;let _0x2c6943=this[_0x3177af(0x107)][_0x3177af(0x1fd)](_0x44ba83);_0x2c6943&&(_0x2c6943[_0x3177af(0x202)](),this[_0x3177af(0x107)][_0x3177af(0x25a)](_0x44ba83));}['dispose'](){const _0x5c3955=_0x3c7add;this[_0x5c3955(0x107)][_0x5c3955(0x253)](_0x5983d2=>_0x5983d2[_0x5c3955(0x202)]()),this[_0x5c3955(0x107)]['clear'](),this[_0x5c3955(0x189)][_0x5c3955(0x2fd)]();}};_0x359f82=_0x38f352([_0x78c766(0x0,_0x4f2fc5[_0x3c7add(0x1d0)]),_0x78c766(0x1,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['UserManagerService']))],_0x359f82);var _0x599447=class extends _0x4f2fc5[_0x3c7add(0x210)]{constructor(..._0x27e91d){const _0x15bbcb=_0x3c7add;super(..._0x27e91d),_0x45730e(this,_0x15bbcb(0xcf),new Map()),_0x45730e(this,_0x15bbcb(0x2ed),new _0x196a42['BehaviorSubject'](this[_0x15bbcb(0xcf)])),_0x45730e(this,_0x15bbcb(0x3c1),this[_0x15bbcb(0x2ed)][_0x15bbcb(0xc6)]());}[_0x3c7add(0x202)](){const _0xb74392=_0x3c7add;this['_members'][_0xb74392(0x1d7)](),this[_0xb74392(0x2ed)][_0xb74392(0x2fd)]();}[_0x3c7add(0x1b6)](_0x34edd1){const _0xbc42a5=_0x3c7add;this[_0xbc42a5(0xcf)][_0xbc42a5(0x38b)](_0x34edd1['memberID'],_0x34edd1),this['_emitMembers']();}[_0x3c7add(0x36f)](_0x309986){const _0x40aba1=_0x3c7add;this[_0x40aba1(0xcf)]['delete'](_0x309986),this[_0x40aba1(0x26b)]();}[_0x3c7add(0x255)](_0x4f7a71){const _0x9211e2=_0x3c7add;return this[_0x9211e2(0xcf)][_0x9211e2(0x1fd)](_0x4f7a71);}[_0x3c7add(0x370)](){const _0x4ea6b0=_0x3c7add;return Array[_0x4ea6b0(0x33f)](this[_0x4ea6b0(0xcf)][_0x4ea6b0(0x36b)]());}['_emitMembers'](){const _0x4a64dc=_0x3c7add;this[_0x4a64dc(0x2ed)]['next'](this[_0x4a64dc(0xcf)]);}};let _0x2a7e6c=function(_0x647224){const _0x557470=_0x3c7add;return _0x647224[_0x647224[_0x557470(0xfd)]=0x0]=_0x557470(0xfd),_0x647224[_0x647224[_0x557470(0x1c7)]=0x1]=_0x557470(0x1c7),_0x647224[_0x647224[_0x557470(0x317)]=0x2]=_0x557470(0x317),_0x647224[_0x647224[_0x557470(0x112)]=0x3]=_0x557470(0x112),_0x647224;}({}),_0x3daab8={[_0x121aa6[_0x3c7add(0x3c2)][_0x3c7add(0x39c)]]:_0x3c7add(0x315),[_0x121aa6[_0x3c7add(0x3c2)][_0x3c7add(0x34b)]]:_0x3c7add(0x273),[_0x121aa6[_0x3c7add(0x3c2)]['JOIN_ROOM_NOT_EXISTS']]:_0x3c7add(0x2e9),[_0x121aa6['CmdRspCode'][_0x3c7add(0xf6)]]:_0x3c7add(0x306),[_0x121aa6[_0x3c7add(0x3c2)][_0x3c7add(0x11e)]]:_0x3c7add(0x39a)},_0x1d1b7a=class extends _0x4f2fc5[_0x3c7add(0x145)]{get['sessionStatus'](){const _0xde3404=_0x3c7add;return this['_sessionStatus$'][_0xde3404(0x2ae)]();}constructor(_0x3549a5,_0x8819f3,_0x8576b3,_0x4a7a33,_0x269533,_0x15b4d3,_0x4b7064,_0x26a3ef){const _0x5bf57d=_0x3c7add;super(),this[_0x5bf57d(0xdc)]=_0x3549a5,this[_0x5bf57d(0x10b)]=_0x8576b3,this[_0x5bf57d(0x33c)]=_0x4a7a33,this[_0x5bf57d(0x166)]=_0x269533,this[_0x5bf57d(0x1a3)]=_0x15b4d3,this['_collaborationUIEventService']=_0x4b7064,this[_0x5bf57d(0x140)]=_0x26a3ef,_0x45730e(this,_0x5bf57d(0x3c6),new _0x196a42[(_0x5bf57d(0x2cc))](0x0)),_0x45730e(this,'sessionStatus$',this['_sessionStatus$']['asObservable']()),_0x45730e(this,'_event$',new _0x196a42[(_0x5bf57d(0x274))]()),_0x45730e(this,'event$',this[_0x5bf57d(0x347)][_0x5bf57d(0xc6)]()),_0x45730e(this,_0x5bf57d(0x1f1),void 0x0),_0x45730e(this,'_socketMessageSubscription',void 0x0),_0x45730e(this,_0x5bf57d(0x223),void 0x0),_0x45730e(this,_0x5bf57d(0x13a),!0x1),_0x45730e(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0x5bf57d(0x140)],_0x8819f3[_0x5bf57d(0x397)]((0x0,_0x196a42['takeUntil'])(this[_0x5bf57d(0x163)]))[_0x5bf57d(0x237)](_0x45b860=>{const _0x108922=_0x5bf57d;if(_0x45b860!==void 0x0){if(this['_socket']=_0x45b860,_0x45b860)this['_joinRoom'](_0x45b860),this[_0x108922(0x235)]=_0x45b860[_0x108922(0x31b)][_0x108922(0x237)](_0x963cf0=>{const _0x275af3=_0x108922;_0x963cf0[_0x275af3(0x124)]===this[_0x275af3(0xdc)]&&this['_onCombEvent'](_0x963cf0);});else{var _0x14edb3;this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$']['next'](0x2),(_0x14edb3=this[_0x108922(0x235)])==null||_0x14edb3[_0x108922(0x248)](),this[_0x108922(0x235)]=null;}}});}[_0x3c7add(0xdd)](){const _0x7c8076=_0x3c7add;var _0x26df7e,_0x4c0ba7;return(_0x26df7e=(_0x4c0ba7=this[_0x7c8076(0x1f1)])==null?void 0x0:_0x4c0ba7['memberID'])==null?null:_0x26df7e;}[_0x3c7add(0x202)](){const _0x2fdda5=_0x3c7add;super['dispose'](),this[_0x2fdda5(0x180)](),this['dispose$'][_0x2fdda5(0x232)](),this[_0x2fdda5(0x163)]['complete']();}[_0x3c7add(0x180)](){const _0x15c614=_0x3c7add;var _0x29668e,_0x5ce432;this[_0x15c614(0x385)](),(_0x29668e=this[_0x15c614(0x1f1)])==null||_0x29668e[_0x15c614(0x19b)]({'cmd':_0x121aa6['CombCmd']['LEAVE'],'data':{'roomID':this[_0x15c614(0xdc)]}}),(_0x5ce432=this[_0x15c614(0x1f1)])==null||_0x5ce432[_0x15c614(0x180)](),this['_event$'][_0x15c614(0x2fd)](),this[_0x15c614(0x3c6)]['complete']();}[_0x3c7add(0x1c6)](_0x3717da){const _0x557018=_0x3c7add;_0x3717da[_0x557018(0x270)]===_0x121aa6['CombCmd'][_0x557018(0x2ee)]?this[_0x557018(0x357)](_0x3717da):_0x3717da[_0x557018(0x270)]===_0x121aa6['CombCmd'][_0x557018(0x1ea)]&&this[_0x557018(0x2d2)](_0x3717da);}[_0x3c7add(0x222)](_0x3eacc2){const _0x14bcce=_0x3c7add;this['_sessionStatus$'][_0x14bcce(0x232)](0x1),_0x3eacc2[_0x14bcce(0x19b)]({'cmd':_0x121aa6[_0x14bcce(0x31e)]['JOIN'],'routeKey':this[_0x14bcce(0xdc)],'routeType':'','data':{'rooms':[{'roomID':this[_0x14bcce(0xdc)]}]}});}['_onJoinRoomEvent'](_0x1cf8ac){const _0x101fc6=_0x3c7add;var _0xc15218;if(_0x1cf8ac['code']in _0x3daab8){this[_0x101fc6(0x264)]['emitEvent']({'id':_0x101fc6(0x185),'data':_0x3daab8[_0x1cf8ac[_0x101fc6(0x175)]]}),this[_0x101fc6(0x3c6)]['next'](0x2);return;}this[_0x101fc6(0x3c6)][_0x101fc6(0x232)](0x3);let _0x1eb705=(_0xc15218=_0x1cf8ac[_0x101fc6(0x37e)][_0x101fc6(0x2f1)][this[_0x101fc6(0xdc)]])==null?void 0x0:_0xc15218['members'];_0x1eb705&&_0x1eb705['forEach'](_0x2a2db1=>this['_memberService'][_0x101fc6(0x1b6)](this['_unitID'],_0x2a2db1));}[_0x3c7add(0x2d2)](_0x15f014){const _0x58968e=_0x3c7add;try{let _0xf91ec5=_0x15f014['data'];switch(_0xf91ec5[_0x58968e(0x1ff)]){case _0x597ddf['CollaborationEvent'][_0x58968e(0x25b)]:this[_0x58968e(0x24e)](_0xf91ec5),this[_0x58968e(0x347)][_0x58968e(0x232)](_0xf91ec5);break;case _0x597ddf[_0x58968e(0xf9)]['USERS_LEAVE']:this[_0x58968e(0xeb)](_0xf91ec5),this[_0x58968e(0x347)][_0x58968e(0x232)](_0xf91ec5);break;case _0x597ddf[_0x58968e(0xf9)]['CHANGESET_ACK']:case _0x597ddf[_0x58968e(0xf9)]['CHANGESET_SHOULD_RETRY']:this[_0x58968e(0xc8)](),this[_0x58968e(0x3e1)](),this[_0x58968e(0x347)][_0x58968e(0x232)](_0xf91ec5);break;case _0x597ddf[_0x58968e(0xf9)][_0x58968e(0xc3)]:this[_0x58968e(0x10b)][_0x58968e(0x1f0)]('save\x20fail\x20reason\x20is\x20'+JSON['stringify'](_0xf91ec5)),this['_event$'][_0x58968e(0x232)](_0xf91ec5);break;case _0x597ddf['CollaborationEvent'][_0x58968e(0x311)]:this[_0x58968e(0x1a3)]['onCommentUpdate'](_0xf91ec5[_0x58968e(0x37e)]),this[_0x58968e(0x347)][_0x58968e(0x232)](_0xf91ec5);break;default:this[_0x58968e(0x347)]['next'](_0xf91ec5);}}catch(_0x3c7e79){this[_0x58968e(0x10b)]['error'](_0x3c7e79,_0x15f014);}}[_0x3c7add(0x24e)](_0x40c0b5){const _0x36f883=_0x3c7add;this[_0x36f883(0x166)][_0x36f883(0x1b6)](this[_0x36f883(0xdc)],_0x40c0b5['data']);}['_onUserLeave'](_0x4b712d){const _0x376a2a=_0x3c7add;this[_0x376a2a(0x166)][_0x376a2a(0x36f)](this[_0x376a2a(0xdc)],_0x4b712d[_0x376a2a(0x37e)][_0x376a2a(0x26c)]);}async['send'](_0x1721bc,_0x555750){const _0x3853b1=_0x3c7add;if(this[_0x3853b1(0x338)]!==0x3||!this[_0x3853b1(0x1f1)])throw Error(_0x3853b1(0x2db));try{_0x1721bc['eventID']===_0x597ddf[_0x3853b1(0xf9)][_0x3853b1(0x375)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x1721bc)),this[_0x3853b1(0x1f1)][_0x3853b1(0x19b)]({'cmd':_0x121aa6['CombCmd'][_0x3853b1(0x132)],'routeKey':_0x555750,'routeType':'','data':_0x1721bc});}catch(_0x59d65f){this[_0x3853b1(0x10b)][_0x3853b1(0x1f0)](_0x59d65f);}}['_scheduleCollaborationTimeoutTimer'](){const _0x57b41d=_0x3c7add;var _0x2cc6e8;this[_0x57b41d(0x223)]=setTimeout(()=>{const _0x5691f3=_0x57b41d;this[_0x5691f3(0x223)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x5691f3(0x22b)});},(_0x2cc6e8=this[_0x57b41d(0x33c)][_0x57b41d(0x1e1)](_0x57b41d(0xf2)))==null?_0x887dad:_0x2cc6e8);}[_0x3c7add(0x3e1)](){const _0x5e103a=_0x3c7add;this[_0x5e103a(0x223)]&&(clearTimeout(this[_0x5e103a(0x223)]),this[_0x5e103a(0x223)]=null);}[_0x3c7add(0xe0)](_0x1df4b1){const _0x1459a9=_0x3c7add;if(!this[_0x1459a9(0x13a)])return;let {data:_0x56aa96}=_0x1df4b1,{unitID:_0x57c7de,changeset:_0x1cae8c}=_0x56aa96,{mutations:_0xdb87c8,type:_0x344a97}=_0x1cae8c;this[_0x1459a9(0x3b4)]={'unitId':_0x57c7de,'type':_0x344a97,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x434b50(_0xdb87c8)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x4dc6f8=_0x3c7add;if(this['_shouldReportTelemetry']){if(!this[_0x4dc6f8(0x3b4)]){this[_0x4dc6f8(0x10b)][_0x4dc6f8(0x1f0)]('[CollaborationSession]',_0x4dc6f8(0x3cc));return;}this[_0x4dc6f8(0x3b4)][_0x4dc6f8(0x1d8)]=performance[_0x4dc6f8(0x1e5)](),this[_0x4dc6f8(0x3b4)]['duration']=this['_telemetryInfo']['stopTime']-this[_0x4dc6f8(0x3b4)][_0x4dc6f8(0x2ea)],this[_0x4dc6f8(0x140)][_0x4dc6f8(0x1c0)](_0x4dc6f8(0x31a),this[_0x4dc6f8(0x3b4)]),this[_0x4dc6f8(0x3b4)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x5d9680=_0x3c7add;this[_0x5d9680(0x3b4)]=null;}};_0x1d1b7a=_0x38f352([_0x78c766(0x2,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0x3,_0x4f2fc5['IConfigService']),_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x359f82)),_0x78c766(0x5,(0x0,_0x4f2fc5['Inject'])(_0x2ea459)),_0x78c766(0x6,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x20d828)),_0x78c766(0x7,(0x0,_0x4f2fc5['Optional'])(_0x3702ed[_0x3c7add(0x262)]))],_0x1d1b7a);let _0x54dcc4=(0x0,_0x4f2fc5[_0x3c7add(0x267)])(_0x3c7add(0x187));function _0x58d90e(_0x51cbe2){const _0x50dbe8=_0x3c7add;return _0x50dbe8(0xff)+_0x51cbe2;}function _0x74068(_0x3f9ace){const _0x2a0b63=_0x3c7add;let {unitID:_0x4ab5f9,mutations:_0x2e38d0}=_0x3f9ace;return{'unitId':_0x4ab5f9,'subUnitId':_0x2e38d0[_0x2a0b63(0x3a4)]>0x0?_0x2e38d0[0x0]['params'][_0x2a0b63(0x231)]:null};}let _0x479f64=class{constructor(_0x4abc4d,_0x4d3ef8,_0xd3ea2d){const _0x25078e=_0x3c7add;this[_0x25078e(0x37b)]=_0x4abc4d,this[_0x25078e(0x220)]=_0x4d3ef8,this[_0x25078e(0x3c7)]=_0xd3ea2d;}['transformSelections'](_0x6aabc5){const _0x2fbb44=_0x3c7add;var _0x5d9fb5,_0x279433;let _0x320f39=this[_0x2fbb44(0x37b)][_0x2fbb44(0x1fd)](_0x575377['SheetsSelectionsService']),{unitId:_0x16613f,subUnitId:_0x2de1d1}=_0x74068(_0x6aabc5),_0x5c97a5=_0x320f39==null?void 0x0:_0x320f39[_0x2fbb44(0x1f5)](_0x16613f)[_0x2fbb44(0x19e)](),_0x26710e=(_0x5d9fb5=this[_0x2fbb44(0x3c7)]['getUnit'](_0x16613f))==null||(_0x5d9fb5=_0x5d9fb5[_0x2fbb44(0x268)]())==null?void 0x0:_0x5d9fb5[_0x2fbb44(0x156)]();if(_0x5c97a5[_0x2fbb44(0x3a4)]===0x0||!_0x16613f||!_0x2de1d1)return;let _0x56f47f=[{'id':_0x575377[_0x2fbb44(0x256)]['id'],'params':{'unitId':_0x16613f,'subUnitId':_0x26710e,'selections':_0x4f2fc5[_0x2fbb44(0x1b3)][_0x2fbb44(0x340)](_0x5c97a5)}}],_0x17cea8=this[_0x2fbb44(0x220)]['transformMutationsWithChangeset'](_0x6aabc5,_0x56f47f);if(!(0x0,_0x597ddf[_0x2fbb44(0x344)])(_0x17cea8))throw _0x17cea8[_0x2fbb44(0x1f0)];let _0x25e968=(_0x279433=_0x17cea8['m2Prime'][0x0])==null||(_0x279433=_0x279433['params'])==null?void 0x0:_0x279433[_0x2fbb44(0x330)];if(Array[_0x2fbb44(0x1a0)](_0x25e968)&&_0x25e968[_0x2fbb44(0x3a4)]){if(_0x25e968[_0x2fbb44(0x3a4)]===_0x56f47f[0x0]['params']['selections'][_0x2fbb44(0x3a4)]&&_0x25e968[_0x2fbb44(0x343)]((_0x2e6d08,_0x5ae18e)=>_0x4f2fc5[_0x2fbb44(0x286)]['equals'](_0x2e6d08[_0x2fbb44(0x2d7)],_0x56f47f[0x0]['params']['selections'][_0x5ae18e][_0x2fbb44(0x2d7)])))return;this[_0x2fbb44(0x37b)][_0x2fbb44(0x1fd)](_0x4f2fc5[_0x2fbb44(0x2e1)])['executeCommand'](_0x575377[_0x2fbb44(0x256)]['id'],{'unitId':_0x16613f,'subUnitId':_0x26710e,'selections':_0x25e968});}}};_0x479f64=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x1,_0x597ddf[_0x3c7add(0x12e)]),_0x78c766(0x2,_0x4f2fc5['IUniverInstanceService'])],_0x479f64);let _0x546860=(0x0,_0x4f2fc5[_0x3c7add(0x267)])(_0x3c7add(0x382)),_0x2e8335=function(_0x1f0934){const _0x1cdff7=_0x3c7add;return _0x1f0934[_0x1f0934[_0x1cdff7(0x29a)]=0x0]=_0x1cdff7(0x29a),_0x1f0934[_0x1f0934['OTHER_CLIENTS_EDITING']=0x1]=_0x1cdff7(0x391),_0x1f0934;}({}),_0x11e35b=_0x3c7add(0x293),_0xdd2c56={};function _0x38740f(_0x39ffa9){const _0x14bf7d=_0x3c7add;var _0x53cbcc;return!!((_0x53cbcc=_0x39ffa9[_0x14bf7d(0xdb)])!=null&&_0x53cbcc[_0x14bf7d(0x2f7)]);}let _0x498598=new Set([_0x575377[_0x3c7add(0x32b)]['id']]);function _0x293c55(_0x3a53cb,_0x3bfea1,_0xb843df,_0xc35a1e,_0x18fda4){const _0x39be6e=_0x3c7add;var _0x26aef5,_0x2b0216,_0x2cf827,_0x56a573;let _0x5d61c8=[];for(let _0x194b75 of _0x3a53cb){if(_0x498598[_0x39be6e(0x22a)](_0x194b75['id'])){if(_0x5d61c8[_0x39be6e(0x3a4)]>0x0)break;_0x5d61c8[_0x39be6e(0x26e)](_0x194b75);break;}if(_0x38740f(_0x194b75)){if(_0x5d61c8[_0x39be6e(0x3a4)]>0x0)break;_0x5d61c8['push'](_0x194b75);break;}_0x5d61c8['push'](_0x194b75);}let _0x2db6fc=(_0x26aef5=(_0x2b0216=_0x18fda4['getCurrentUser']())==null?void 0x0:_0x2b0216[_0x39be6e(0x2bf)])==null?_0x39be6e(0x3b7):_0x26aef5,_0x16270a=(_0x2cf827=(_0x56a573=_0x18fda4[_0x39be6e(0x11b)]())==null?void 0x0:_0x56a573[_0x39be6e(0x26c)])==null?_0x39be6e(0x3b7):_0x2cf827;return{'changeset':{'unitID':_0x3bfea1,'type':(0x0,_0x597ddf[_0x39be6e(0x1e7)])(_0xb843df['getUnitType'](_0x3bfea1)),'baseRev':_0xc35a1e[_0x39be6e(0x139)](_0x3bfea1),'revision':0x0,'userID':_0x2db6fc,'memberID':_0x16270a,'mutations':_0x5d61c8},'pendingMutations':_0x3a53cb[_0x39be6e(0x28f)](_0x5d61c8[_0x39be6e(0x3a4)])};}function _0x5573fc(_0x2d32e3,_0x1a626c,_0x4e14b1,_0x39fc4b,_0x52da7f){const _0x3d0f16=_0x3c7add;var _0x1b673f,_0x289aa6,_0x5308ec,_0x4a62ef;let _0x4754c6=_0x2d32e3['reduce']((_0x1634da,_0x16ae6d)=>{const _0x1a9d42=_0x4364;let _0xcf1b6c=_0x1634da[_0x1634da[_0x1a9d42(0x3a4)]-0x1],{id:_0x42e78d}=_0xcf1b6c==null?{}:_0xcf1b6c,{id:_0x599d05,type:_0x29939b}=_0x16ae6d,_0x1864c4=_0x16ae6d[_0x1a9d42(0xdb)];if(_0x42e78d&&_0x42e78d!==_0x599d05)throw Error(_0x1a9d42(0xc4)+_0x42e78d+_0x1a9d42(0x26f)+_0x599d05+'.');if(!_0xcf1b6c)return[{'id':_0x599d05,'type':_0x29939b,'params':{'unitId':_0x1864c4[_0x1a9d42(0x225)],'textRanges':_0x1864c4[_0x1a9d42(0x282)],'actions':_0x1864c4[_0x1a9d42(0xe5)]}}];let _0x37c1df=_0xcf1b6c[_0x1a9d42(0xdb)];return _0x6bd1ad(_0x37c1df[_0x1a9d42(0xe5)],_0x1864c4[_0x1a9d42(0xe5)])?[..._0x1634da[_0x1a9d42(0x28f)](0x0,-0x1),{..._0xcf1b6c,'id':_0x599d05,'type':_0x29939b,'params':{'unitId':_0x1864c4[_0x1a9d42(0x225)],'textRanges':_0x1864c4['textRanges'],'actions':_0x4f2fc5[_0x1a9d42(0xdf)][_0x1a9d42(0x146)](_0x37c1df['actions'],_0x1864c4[_0x1a9d42(0xe5)])}}]:[..._0x1634da,{'id':_0x599d05,'type':_0x29939b,'params':{'unitId':_0x1864c4[_0x1a9d42(0x225)],'textRanges':_0x1864c4[_0x1a9d42(0x282)],'actions':_0x1864c4[_0x1a9d42(0xe5)]}}];},[]),_0x4669ce=(_0x1b673f=(_0x289aa6=_0x52da7f[_0x3d0f16(0x11b)]())==null?void 0x0:_0x289aa6['userID'])==null?_0x3d0f16(0x3b7):_0x1b673f,_0x95ba9b=(_0x5308ec=(_0x4a62ef=_0x52da7f[_0x3d0f16(0x11b)]())==null?void 0x0:_0x4a62ef[_0x3d0f16(0x26c)])==null?_0x3d0f16(0x3b7):_0x5308ec;return{'changeset':{'unitID':_0x1a626c,'type':(0x0,_0x597ddf[_0x3d0f16(0x1e7)])(_0x4e14b1[_0x3d0f16(0x1ab)](_0x1a626c)),'baseRev':_0x39fc4b[_0x3d0f16(0x139)](_0x1a626c),'revision':0x0,'userID':_0x4669ce,'memberID':_0x95ba9b,'mutations':_0x4754c6},'pendingMutations':_0x2d32e3['slice'](_0x2d32e3['length'])};}function _0x6bd1ad(_0x10e034,_0x3e0a81){return!(_0x5d5103(_0x10e034)&&_0xa5a351(_0x3e0a81)||_0xa5a351(_0x10e034)&&_0x5d5103(_0x3e0a81));}function _0x5d5103(_0x3b58a3){const _0x54889e=_0x3c7add;return _0x3ed849(_0x3b58a3)[_0x54889e(0x115)](_0x4913cf=>_0x3d34b3(_0x4913cf)&&_0x4913cf['et']==='text-x');}function _0xa5a351(_0x4c0127){const _0x54c53e=_0x3c7add;return _0x3ed849(_0x4c0127)[_0x54c53e(0x115)](_0x25c78e=>Array[_0x54c53e(0x1a0)](_0x25c78e)||typeof _0x25c78e=='string'||typeof _0x25c78e==_0x54c53e(0x16e));}function _0x3ed849(_0x5c13f3){const _0x12f53a=_0x3c7add;if(!Array['isArray'](_0x5c13f3))return[];let _0x5ab360=_0x5c13f3['includes'](_0x12f53a(0xc1))?_0x5c13f3:_0x5c13f3[_0x12f53a(0x1bb)](_0x301f8a=>Array['isArray'](_0x301f8a)&&_0x301f8a['includes'](_0x12f53a(0xc1)));if(!Array[_0x12f53a(0x1a0)](_0x5ab360))return[];let _0x298769=_0x5ab360[_0x12f53a(0x3dd)](_0x12f53a(0xc1));return _0x298769===-0x1?[]:_0x5ab360['slice'](_0x298769+0x1);}function _0x3d34b3(_0xf48673){const _0x23638f=_0x3c7add;return typeof _0xf48673==_0x23638f(0x2a1)&&!!_0xf48673&&!Array[_0x23638f(0x1a0)](_0xf48673);}function _0x5afc00(_0x384ae1,_0x54bdd3){const _0x104773=_0x3c7add;let _0x36fc22=new _0x196a42[(_0x104773(0x356))](0x1);return setTimeout(()=>_0x36fc22[_0x104773(0x232)](_0x54bdd3),_0x384ae1),_0x36fc22[_0x104773(0xc6)]()[_0x104773(0x397)]((0x0,_0x196a42[_0x104773(0x2a7)])(0x1));}var _0x2ab959,_0x2f6cad,_0x121e18;let _0xe9e27d=function(_0x54db59){const _0x1e582c=_0x3c7add;return _0x54db59['NOT_COLLAB']=_0x1e582c(0x21b),_0x54db59[_0x1e582c(0x1a6)]=_0x1e582c(0x1ee),_0x54db59[_0x1e582c(0x2a6)]='pending',_0x54db59[_0x1e582c(0xbb)]=_0x1e582c(0x14e),_0x54db59[_0x1e582c(0x250)]=_0x1e582c(0x2a3),_0x54db59[_0x1e582c(0x1b1)]=_0x1e582c(0x396),_0x54db59[_0x1e582c(0xd8)]=_0x1e582c(0x15a),_0x54db59[_0x1e582c(0x317)]=_0x1e582c(0x18f),_0x54db59;}({}),_0x1ef349=0x4e20,_0x180963=0x2bf20;var _0x4a5cdf=class{constructor(_0xbf80f8,_0x3ec5ec,_0x2584df,_0x136cfb,_0x5e890e,_0xaa1ecc,_0x804d4a,_0x22f00d,_0x5315fd){const _0x9440f8=_0x3c7add;this[_0x9440f8(0x11a)]=_0xbf80f8,this[_0x9440f8(0x3c8)]=_0x3ec5ec,this[_0x9440f8(0x168)]=_0x5e890e,this[_0x9440f8(0x111)]=_0xaa1ecc,this['_undoRedoService']=_0x804d4a,this[_0x9440f8(0x39e)]=_0x22f00d,this[_0x9440f8(0x12a)]=_0x5315fd,_0x45730e(this,_0x9440f8(0x216),null),_0x45730e(this,_0x9440f8(0x1dd),[]),this[_0x9440f8(0x216)]=_0x2584df,this[_0x9440f8(0x1dd)]=_0x136cfb;}['_checkMissing'](_0x158a78){const _0x37c569=_0x3c7add;let _0x158459=this[_0x37c569(0x39e)][_0x37c569(0x139)](this['unitID']);return _0x158a78[_0x37c569(0x2e5)]>_0x158459+0x1?(this[_0x37c569(0x168)][_0x37c569(0x215)]({'from':_0x158459,'to':_0x158a78['revision']-0x1}),!0x0):!0x1;}[_0x3c7add(0x2df)](_0x1c7143){const _0x14a596=_0x3c7add;this[_0x14a596(0x2e4)][_0x14a596(0x10d)](this[_0x14a596(0x11a)],_0x1c7143);}[_0x3c7add(0xf0)](_0x52cb15){const _0x521588=_0x3c7add;var _0x8a0b22,_0x577a57;(_0x8a0b22=(_0x577a57=this[_0x521588(0x168)])[_0x521588(0x2cd)])==null||_0x8a0b22[_0x521588(0x3bb)](_0x577a57,_0x52cb15);}['_transformIMECache'](_0x1aa066){const _0x52244a=_0x3c7add;var _0x5b63a2,_0x155753;return(_0x5b63a2=(_0x155753=this[_0x52244a(0x168)])[_0x52244a(0x320)])==null?void 0x0:_0x5b63a2[_0x52244a(0x3bb)](_0x155753,_0x1aa066);}[_0x3c7add(0x1fc)](_0x41032a){const _0x3604ac=_0x3c7add;var _0x3af1ba,_0x176b52;return(_0x3af1ba=(_0x176b52=this[_0x3604ac(0x168)])[_0x3604ac(0x346)])==null?void 0x0:_0x3af1ba[_0x3604ac(0x3bb)](_0x176b52,_0x41032a);}[_0x3c7add(0x1ca)](_0x3fae3d){const _0x250754=_0x3c7add;var _0x5db36d,_0xefbbd7,_0x47778b;return(_0x5db36d=(_0xefbbd7=(_0x47778b=this['_handler'])[_0x250754(0x181)])==null?void 0x0:_0xefbbd7[_0x250754(0x3bb)](_0x47778b,_0x3fae3d))==null?_0x3fae3d:_0x5db36d;}[_0x3c7add(0x1ba)](_0x4fa610){const _0x4cfecb=_0x3c7add;var _0x1aba65,_0x399ecd,_0xd224c1;return(_0x1aba65=(_0x399ecd=(_0xd224c1=this[_0x4cfecb(0x168)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x399ecd['call'](_0xd224c1,_0x4fa610))==null?_0x4fa610:_0x1aba65;}[_0x3c7add(0x14c)](_0x23de1a){const _0x5ba39b=_0x3c7add;if(this[_0x5ba39b(0x3c8)]===_0x4f2fc5[_0x5ba39b(0x22e)][_0x5ba39b(0x2d5)]){let {unitID:_0x3e3f18,mutations:_0x185e32,memberID:_0x28e045}=_0x23de1a,_0x7d8a8e=_0x185e32[_0x5ba39b(0x3a4)]>0x0?_0x185e32[0x0][_0x5ba39b(0xdb)][_0x5ba39b(0x282)]:[];if(Array[_0x5ba39b(0x1a0)](_0x7d8a8e)&&_0x7d8a8e['length']>0x0){var _0x2b1611,_0xb7b2d;(_0x2b1611=(_0xb7b2d=this['_handler'])[_0x5ba39b(0x120)])==null||_0x2b1611[_0x5ba39b(0x3bb)](_0xb7b2d,{'unitID':_0x3e3f18,'memberID':_0x28e045,'textRanges':_0x7d8a8e});}}}[_0x3c7add(0x3cf)](){const _0x1abf97=_0x3c7add;var _0x1d3f48;(_0x1d3f48=this[_0x1abf97(0x12a)])==null||_0x1d3f48[_0x1abf97(0x173)](this[_0x1abf97(0x11a)],this[_0x1abf97(0x3c8)],this[_0x1abf97(0x216)],this[_0x1abf97(0x1dd)]);}[_0x3c7add(0x118)](){const _0x119257=_0x3c7add;return this[_0x119257(0x39e)][_0x119257(0x139)](this['unitID']);}[_0x3c7add(0x3b5)](){const _0x346821=_0x3c7add;this['_revisionService'][_0x346821(0x208)](this[_0x346821(0x11a)]);}[_0x3c7add(0x395)](_0x3ba619){const _0x4cf319=_0x3c7add;let _0x3e401c=this[_0x4cf319(0x1ca)](_0x3ba619);_0x3e401c=this[_0x4cf319(0x1ba)](_0x3e401c);let _0x562aef=(0x0,_0x4f2fc5[_0x4cf319(0x2da)])(_0x3e401c[_0x4cf319(0x1eb)],this['_commandService'],{'fromCollab':!0x0});if(!_0x562aef[_0x4cf319(0x2fc)]){var _0x1334c6;throw _0x562aef[_0x4cf319(0x1f0)]instanceof Error?_0x562aef[_0x4cf319(0x1f0)]:Error((_0x1334c6=_0x562aef['error'])==null?_0x4cf319(0x27b):_0x1334c6);}this[_0x4cf319(0x2b9)](_0x3e401c),this['_transformStateCache'](_0x3e401c),this[_0x4cf319(0x2df)](_0x3ba619),this['_transformSelections'](_0x3e401c),this[_0x4cf319(0x14c)](_0x3e401c),this[_0x4cf319(0x3b5)]();}};let _0x2168a9=class extends _0x4a5cdf{constructor(_0x2861e1,_0x4afd0b,_0x54dd60,_0x3a1449,_0xd262a9,_0x5131b5,_0x1c1029,_0x4e76c4,_0xa94ca6,_0x5a9896){const _0x54df5a=_0x3c7add;super(_0x2861e1,_0x4afd0b,null,[],_0x54dd60,_0x1c1029,_0x5131b5,_0x3a1449,_0x5a9896),this[_0x54df5a(0x37b)]=_0xd262a9,this[_0x54df5a(0x10b)]=_0x4e76c4,this[_0x54df5a(0x220)]=_0xa94ca6,this[_0x54df5a(0x318)]=_0x5a9896,_0x45730e(this,'status','synced');}[_0x3c7add(0x1a5)](_0x1a2f0a){const _0x360480=_0x3c7add;let _0x3529fd=this[_0x360480(0x37b)]['createInstance'](_0x2c2e17,this[_0x360480(0x11a)],this['type'],[_0x1a2f0a],this[_0x360480(0x168)]);return _0x3529fd[_0x360480(0x179)](),_0x3529fd['_updateLocalCache'](),_0x3529fd;}[_0x3c7add(0x241)](_0x18794a){const _0x328239=_0x3c7add;if(this['_checkMissing'](_0x18794a))return this['_injector'][_0x328239(0x242)](_0x47f959,this['unitID'],this[_0x328239(0x3c8)],null,[],null,[_0x18794a],this[_0x328239(0x168)]);try{let _0x9e2e92=this['_transformService'][_0x328239(0x1a1)](_0x18794a,[_0x597ddf[_0x328239(0x3d7)]]);if((0x0,_0x597ddf[_0x328239(0x344)])(_0x9e2e92)){let {c1Prime:_0x5a285c}=_0x9e2e92;return this[_0x328239(0x395)](_0x5a285c),this;}throw _0x9e2e92[_0x328239(0x1f0)];}catch(_0x1432dc){return this[_0x328239(0x10b)][_0x328239(0x1f0)](_0x1432dc),this['_onConflict'](!0x1);}}[_0x3c7add(0x254)](_0x364d45){const _0x451a28=_0x3c7add;return this[_0x451a28(0x37b)]['createInstance'](_0x2cb513,this['unitID'],this[_0x451a28(0x3c8)],null,[],this[_0x451a28(0x168)],_0x364d45);}[_0x3c7add(0x2d4)](_0xe4929a){const _0x316875=_0x3c7add;if(_0xe4929a[_0x316875(0x2e5)]<=this[_0x316875(0x118)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x3c7add(0x374)](){const _0x5a4e74=_0x3c7add;throw Error(_0x5a4e74(0x1ce));}[_0x3c7add(0x1ad)](){return this;}[_0x3c7add(0x239)](){const _0x4af860=_0x3c7add;return this[_0x4af860(0x37b)][_0x4af860(0x242)](_0x405ee9,this['unitID'],this[_0x4af860(0x3c8)],null,[],this[_0x4af860(0x168)]);}[_0x3c7add(0x1ac)](){return this;}[_0x3c7add(0x15d)](){const _0x29c1ee=_0x3c7add;throw Error(_0x29c1ee(0x335));}[_0x3c7add(0x10c)](){const _0x136f42=_0x3c7add;let _0x1c61fe=this[_0x136f42(0x39e)][_0x136f42(0x139)](this[_0x136f42(0x11a)]);return this[_0x136f42(0x168)][_0x136f42(0x215)]({'from':_0x1c61fe,'to':0x0}),this['_injector'][_0x136f42(0x242)](_0x47f959,this[_0x136f42(0x11a)],this[_0x136f42(0x3c8)],null,[],null,[],this[_0x136f42(0x168)]);}};_0x2168a9=_0x38f352([_0x78c766(0x3,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x5,_0x4f2fc5[_0x3c7add(0x2c0)]),_0x78c766(0x6,_0x4f2fc5['ICommandService']),_0x78c766(0x7,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0x8,_0x597ddf[_0x3c7add(0x12e)]),_0x78c766(0x9,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x2168a9);let _0x2c2e17=_0x2ab959=class extends _0x4a5cdf{constructor(_0x4cee25,_0x4bd1e3,_0x598c7f,_0x33861e,_0x36537a,_0xd2f3da,_0x4a12f3,_0x487929,_0x3e0de7,_0x7037a5,_0x2b47b1,_0x5c5058,_0x3d1125,_0x420a9e){const _0x6f0ee9=_0x3c7add;super(_0x4cee25,_0x4bd1e3,null,_0x598c7f,_0x33861e,_0x3e0de7,_0x3d1125,_0xd2f3da,_0x420a9e),this['_injector']=_0x36537a,this['_memberService']=_0x4a12f3,this[_0x6f0ee9(0x10b)]=_0x487929,this[_0x6f0ee9(0x33c)]=_0x7037a5,this[_0x6f0ee9(0x220)]=_0x2b47b1,this[_0x6f0ee9(0x243)]=_0x5c5058,_0x45730e(this,_0x6f0ee9(0x1a2),_0x6f0ee9(0x1d5)),_0x45730e(this,_0x6f0ee9(0x1a9),null),_0x45730e(this,_0x6f0ee9(0x17d),null);}[_0x3c7add(0x1a5)](_0x48bd7f){const _0x315c79=_0x3c7add;return this[_0x315c79(0x1dd)][_0x315c79(0x26e)](_0x48bd7f),this[_0x315c79(0x3cf)](),this;}['onRemoteChangeset'](_0x59d9db){const _0xbf100e=_0x3c7add;if(this[_0xbf100e(0x1cd)](_0x59d9db))return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x47f959,this[_0xbf100e(0x11a)],this[_0xbf100e(0x3c8)],null,this[_0xbf100e(0x1dd)],null,[_0x59d9db],this[_0xbf100e(0x168)]);try{let _0x546195=this[_0xbf100e(0x220)][_0xbf100e(0x1a1)](_0x59d9db,this['_pendingMutations']);if((0x0,_0x597ddf[_0xbf100e(0x344)])(_0x546195)){let {c1Prime:_0x312120,m2Prime:_0x3f5106}=_0x546195;this[_0xbf100e(0x395)](_0x312120);let _0x5d07d8=this[_0xbf100e(0x37b)][_0xbf100e(0x242)](_0x2ab959,this[_0xbf100e(0x11a)],this['type'],_0x3f5106,this[_0xbf100e(0x168)]);this['_clearScheduledTask']();let _0x390203=new Date()[_0xbf100e(0xf8)](),_0x57fc02=this[_0xbf100e(0x1a9)]?Math[_0xbf100e(0x30e)](this['_scheduleCompleteTimestamp']-_0x390203,0x0):this[_0xbf100e(0xd5)]();return _0x5d07d8[_0xbf100e(0x179)](_0x57fc02),_0x5d07d8;}throw _0x546195[_0xbf100e(0x1f0)];}catch(_0x446ff1){return this['_logService']['error'](_0x446ff1),this[_0xbf100e(0x254)](!0x1);}}[_0x3c7add(0x2d4)](_0x17c10e){const _0x4f6a19=_0x3c7add;if(_0x17c10e[_0x4f6a19(0x2e5)]<=this['_getCurrentRevision']())return this;throw Error(_0x4f6a19(0x24a));}[_0x3c7add(0x374)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x3c7add(0x1ad)](){return this;}[_0x3c7add(0x239)](){const _0x2ead8f=_0x3c7add;return this[_0x2ead8f(0x1b9)](),this[_0x2ead8f(0x37b)][_0x2ead8f(0x242)](_0x405ee9,this[_0x2ead8f(0x11a)],this[_0x2ead8f(0x3c8)],null,this[_0x2ead8f(0x1dd)],this[_0x2ead8f(0x168)]);}[_0x3c7add(0x1ac)](){return this;}['_schedule'](_0x51a381){const _0x21ce6d=_0x3c7add;let _0x351b6d=_0x51a381==null?this[_0x21ce6d(0xd5)]():_0x51a381;this[_0x21ce6d(0x1a9)]=new Date()[_0x21ce6d(0xf8)]()+_0x351b6d,this[_0x21ce6d(0x17d)]=setTimeout(()=>{const _0x10c4c2=_0x21ce6d;this['_clearScheduledTask']();let _0x570501=null;switch(this[_0x10c4c2(0x3c8)]){case _0x4f2fc5[_0x10c4c2(0x22e)][_0x10c4c2(0x2a4)]:_0x570501=_0x293c55(this['_pendingMutations'],this[_0x10c4c2(0x11a)],this[_0x10c4c2(0x243)],this[_0x10c4c2(0x39e)],this['_memberService']);break;case _0x4f2fc5[_0x10c4c2(0x22e)][_0x10c4c2(0x2d5)]:_0x570501=this[_0x10c4c2(0x1dd)][_0x10c4c2(0x343)](_0x38f509=>_0x38f509['id']===_0x37b785[_0x10c4c2(0x383)]['id'])?_0x5573fc(this[_0x10c4c2(0x1dd)],this['unitID'],this[_0x10c4c2(0x243)],this[_0x10c4c2(0x39e)],this[_0x10c4c2(0x166)]):_0x293c55(this[_0x10c4c2(0x1dd)],this[_0x10c4c2(0x11a)],this[_0x10c4c2(0x243)],this[_0x10c4c2(0x39e)],this[_0x10c4c2(0x166)]);break;default:throw Error(_0x10c4c2(0x2f4)+this[_0x10c4c2(0x3c8)]+_0x10c4c2(0x35a));}let {changeset:_0x486bac,pendingMutations:_0x1b241a}=_0x570501;this[_0x10c4c2(0x168)]['onSendChangeset'](_0x486bac);let _0x571060=_0x1b241a[_0x10c4c2(0x3a4)]?this[_0x10c4c2(0x37b)][_0x10c4c2(0x242)](_0x2a0e64,this[_0x10c4c2(0x11a)],this['type'],_0x486bac,_0x1b241a,this[_0x10c4c2(0x168)],void 0x0):this['_injector'][_0x10c4c2(0x242)](_0x441552,this[_0x10c4c2(0x11a)],this[_0x10c4c2(0x3c8)],_0x486bac,this[_0x10c4c2(0x168)]);_0x571060[_0x10c4c2(0x3cf)](),this[_0x10c4c2(0x168)]['onStateChange'](this,_0x571060);},_0x351b6d);}['_getSendChangesetTimeout'](){const _0x19f929=_0x3c7add;var _0x5764b8;let _0x4b7a1f=this['_configService']['getConfig'](_0x11e35b);return(_0x5764b8=_0x4b7a1f==null?void 0x0:_0x4b7a1f[_0x19f929(0x24b)])==null?0x7d0:_0x5764b8;}[_0x3c7add(0x15d)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x532b7d=_0x3c7add;this[_0x532b7d(0x17d)]!=null&&(clearTimeout(this[_0x532b7d(0x17d)]),this[_0x532b7d(0x17d)]=null);}['_onConflict'](_0x252bf6){const _0x412241=_0x3c7add;return this['_clearScheduledTask'](),this['_injector']['createInstance'](_0x2cb513,this[_0x412241(0x11a)],this[_0x412241(0x3c8)],null,this['_pendingMutations'],this[_0x412241(0x168)],_0x252bf6);}};_0x2c2e17=_0x2ab959=_0x38f352([_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x6,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x359f82)),_0x78c766(0x7,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0x8,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0x9,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0xa,_0x597ddf[_0x3c7add(0x12e)]),_0x78c766(0xb,_0x4f2fc5[_0x3c7add(0x1d0)]),_0x78c766(0xc,_0x4f2fc5['IUndoRedoService']),_0x78c766(0xd,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x2c2e17);let _0x441552=_0x2f6cad=class extends _0x4a5cdf{constructor(_0x1fdf09,_0x1f8955,_0x2b2e8b,_0x82a666,_0x47e7a5,_0x31618b,_0x25aa0b,_0x2af1d7,_0x22c25,_0xad5b84,_0x3900b){const _0x442781=_0x3c7add;super(_0x1fdf09,_0x1f8955,_0x2b2e8b,[],_0x82a666,_0x25aa0b,_0xad5b84,_0x31618b,_0x3900b),this[_0x442781(0x37b)]=_0x47e7a5,this['_logService']=_0x2af1d7,this[_0x442781(0x220)]=_0x22c25,_0x45730e(this,_0x442781(0x1a2),_0x442781(0x14e)),_0x45730e(this,'_resendTimeout',0x0),_0x45730e(this,_0x442781(0x325),0x0),_0x45730e(this,_0x442781(0x229),void 0x0),_0x45730e(this,_0x442781(0x1fb),void 0x0);}[_0x3c7add(0x1a5)](_0x3f45fe){const _0x125b52=_0x3c7add;this[_0x125b52(0x1b9)]();let _0x4a07b1=this[_0x125b52(0x37b)]['createInstance'](_0x2a0e64,this[_0x125b52(0x11a)],this[_0x125b52(0x3c8)],this['_awaitingChangeset'],[_0x3f45fe],this[_0x125b52(0x168)],this[_0x125b52(0x229)]);return _0x4a07b1['_updateLocalCache'](),_0x4a07b1;}[_0x3c7add(0x241)](_0xd53697){const _0x31436d=_0x3c7add;if(this['_checkMissing'](_0xd53697))return this[_0x31436d(0x1b9)](),this['_injector'][_0x31436d(0x242)](_0x47f959,this[_0x31436d(0x11a)],this[_0x31436d(0x3c8)],this[_0x31436d(0x216)],[],null,[_0xd53697],this[_0x31436d(0x168)]);try{let _0x433a33=this[_0x31436d(0x220)][_0x31436d(0x2f3)]([_0xd53697],[this[_0x31436d(0x216)]],!0x1);if((0x0,_0x597ddf[_0x31436d(0x2f6)])(_0x433a33)){let {c1Prime:_0xf8144,c2Prime:_0xb3dd2f}=_0x433a33;this['_executeRemoteChangeset'](_0xf8144[0x0]),_0xb3dd2f[0x0][_0x31436d(0x296)]=this[_0x31436d(0x118)](),this[_0x31436d(0x1b9)]();let _0x4fcbef=this[_0x31436d(0x37b)]['createInstance'](_0x2f6cad,this[_0x31436d(0x11a)],this[_0x31436d(0x3c8)],_0xb3dd2f[0x0],this[_0x31436d(0x168)]);return _0x4fcbef[_0x31436d(0x3cf)](),_0x4fcbef;}throw _0x433a33[_0x31436d(0x1f0)];}catch(_0x1e11da){return this['_logService'][_0x31436d(0x1f0)](_0x1e11da),this[_0x31436d(0x254)](!0x1);}}[_0x3c7add(0x2d4)](_0x38050c){const _0x5810a7=_0x3c7add;this['_clearScheduledTask']();let _0x3843b8=this[_0x5810a7(0x39e)]['getCurrentRevOfUnit'](this[_0x5810a7(0x11a)]);if(_0x38050c[_0x5810a7(0x2e5)]<=_0x3843b8)return this;if(this[_0x5810a7(0x1cd)](_0x38050c))return this[_0x5810a7(0x37b)]['createInstance'](_0x47f959,this['unitID'],this['type'],this['_awaitingChangeset'],[],_0x38050c[_0x5810a7(0x2e5)],[],this[_0x5810a7(0x168)]);this[_0x5810a7(0x3b5)]();let _0x18cc7d=this[_0x5810a7(0x37b)][_0x5810a7(0x242)](_0x2168a9,this[_0x5810a7(0x11a)],this['type'],this[_0x5810a7(0x168)]);return _0x18cc7d['_updateLocalCache'](),_0x18cc7d;}['onRemoteRej'](_0xe0508a){const _0x4eaa98=_0x3c7add;return this[_0x4eaa98(0x254)](!!(_0xe0508a!=null&&_0xe0508a[_0x4eaa98(0x14b)]));}[_0x3c7add(0x1ad)](_0x426bac){const _0x3ab7bd=_0x3c7add;return this[_0x3ab7bd(0x325)]>_0x180963?this[_0x3ab7bd(0x239)]():(this[_0x3ab7bd(0x229)]=_0x5afc00(this['_resendTimeout'],{'timeout':this[_0x3ab7bd(0x2c7)],'reqId':_0x426bac[_0x3ab7bd(0x3ba)]}),this[_0x3ab7bd(0x1fb)]=this[_0x3ab7bd(0x229)]['subscribe'](({reqId:_0x15da0d,timeout:_0x23833b})=>{const _0x502bc5=_0x3ab7bd;this[_0x502bc5(0x31d)](_0x15da0d,_0x23833b);}),this);}[_0x3c7add(0x239)](){const _0xe0f9fb=_0x3c7add;return this[_0xe0f9fb(0x1b9)](),this['_injector'][_0xe0f9fb(0x242)](_0x405ee9,this[_0xe0f9fb(0x11a)],this['type'],this[_0xe0f9fb(0x216)],[],this[_0xe0f9fb(0x168)]);}[_0x3c7add(0x1ac)](){return this;}[_0x3c7add(0x15d)](){const _0x26ee8b=_0x3c7add;this[_0x26ee8b(0x168)]['onSendChangeset'](this[_0x26ee8b(0x216)]);}[_0x3c7add(0x254)](_0x50aabc){const _0x21cff3=_0x3c7add;return this[_0x21cff3(0x1b9)](),this[_0x21cff3(0x37b)][_0x21cff3(0x242)](_0x2cb513,this[_0x21cff3(0x11a)],this[_0x21cff3(0x3c8)],this['_awaitingChangeset'],[],this[_0x21cff3(0x168)],_0x50aabc);}[_0x3c7add(0x31d)](_0x53841a,_0x4c653f){const _0x46545d=_0x3c7add;var _0x9f7c24;_0x53841a===((_0x9f7c24=this[_0x46545d(0x216)])==null?void 0x0:_0x9f7c24[_0x46545d(0x3ba)])&&(this[_0x46545d(0x15d)](),this[_0x46545d(0x2c7)]=_0x4c653f===0x0?0x3e8:Math[_0x46545d(0x3af)](_0x4c653f*0x2,_0x1ef349),this[_0x46545d(0x325)]+=this[_0x46545d(0x2c7)]);}['_clearScheduledTask'](){const _0x19aa24=_0x3c7add;var _0x5c1eb0;(_0x5c1eb0=this[_0x19aa24(0x1fb)])==null||_0x5c1eb0[_0x19aa24(0x248)](),this['_resendTimeout']=0x0,this[_0x19aa24(0x325)]=0x0;}};_0x441552=_0x2f6cad=_0x38f352([_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x6,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0x7,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0x8,_0x597ddf['ITransformService']),_0x78c766(0x9,_0x4f2fc5['IUndoRedoService']),_0x78c766(0xa,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x441552);let _0x2a0e64=_0x121e18=class extends _0x4a5cdf{constructor(_0x48f549,_0x2724e8,_0x3a0200,_0x15d020,_0x3d6b56,_0x2b35ff,_0x25ce87,_0x31364b,_0x446264,_0x4b87b8,_0xa97dd,_0x2b3db5,_0x234658){const _0x267672=_0x3c7add;super(_0x48f549,_0x2724e8,_0x3a0200,_0x15d020,_0x3d6b56,_0x446264,_0x2b3db5,_0x31364b,_0x234658),this['_injector']=_0x25ce87,this[_0x267672(0x10b)]=_0x4b87b8,this[_0x267672(0x220)]=_0xa97dd,this[_0x267672(0x318)]=_0x234658,_0x45730e(this,_0x267672(0x1a2),_0x267672(0x2a3)),_0x45730e(this,_0x267672(0x2c7),0x0),_0x45730e(this,_0x267672(0x325),0x0),_0x45730e(this,'_resendTimer',void 0x0),_0x45730e(this,_0x267672(0x1fb),void 0x0),_0x2b35ff&&(this['_resendTimer']=_0x2b35ff,this[_0x267672(0x1fb)]=this[_0x267672(0x229)][_0x267672(0x237)](({reqId:_0x2055e7,timeout:_0xfcf0b4})=>{this['_resendWithTimeout'](_0x2055e7,_0xfcf0b4);}));}[_0x3c7add(0x1a5)](_0x460968){const _0x1819e7=_0x3c7add;return this['_pendingMutations'][_0x1819e7(0x26e)](_0x460968),this;}[_0x3c7add(0x241)](_0x6e1622){const _0x581655=_0x3c7add;if(this[_0x581655(0x1cd)](_0x6e1622))return this[_0x581655(0x1b9)](),this[_0x581655(0x37b)]['createInstance'](_0x47f959,this['unitID'],this[_0x581655(0x3c8)],this[_0x581655(0x216)],this[_0x581655(0x1dd)],null,[_0x6e1622],this['_handler']);try{let _0x171990=this[_0x581655(0x220)]['transformChangesets']([_0x6e1622],[this['_awaitingChangeset']],!0x1);if((0x0,_0x597ddf['isTransformChangesetsSuccess'])(_0x171990)){let {c1Prime:_0x184b7a,c2Prime:_0x443c38}=_0x171990,_0xd761fb=this[_0x581655(0x220)][_0x581655(0x1a1)](_0x184b7a[0x0],this[_0x581655(0x1dd)]);if((0x0,_0x597ddf[_0x581655(0x344)])(_0xd761fb)){let {c1Prime:_0x2b6725,m2Prime:_0x2c57a9}=_0xd761fb;return this['_executeRemoteChangeset'](_0x2b6725),_0x443c38[0x0]['baseRev']=this[_0x581655(0x118)](),this['_clearScheduledTask'](),this[_0x581655(0x37b)]['createInstance'](_0x121e18,this[_0x581655(0x11a)],this[_0x581655(0x3c8)],_0x443c38[0x0],_0x2c57a9,this[_0x581655(0x168)],void 0x0);}throw _0xd761fb['error'];}throw _0x171990[_0x581655(0x1f0)];}catch(_0xc4698f){return this[_0x581655(0x10b)][_0x581655(0x1f0)](_0xc4698f),this[_0x581655(0x254)](!0x1);}}[_0x3c7add(0x2d4)](_0x32e176){const _0x52ed57=_0x3c7add;this[_0x52ed57(0x1b9)]();let _0x12a49f=this[_0x52ed57(0x118)]();if(_0x32e176[_0x52ed57(0x2e5)]<=_0x12a49f)return this;if(this[_0x52ed57(0x1cd)](_0x32e176))return this[_0x52ed57(0x37b)][_0x52ed57(0x242)](_0x47f959,this[_0x52ed57(0x11a)],this[_0x52ed57(0x3c8)],this[_0x52ed57(0x216)],this[_0x52ed57(0x1dd)],_0x32e176[_0x52ed57(0x2e5)],[],this['_handler']);this[_0x52ed57(0x3b5)]();let _0x9c5065=this[_0x52ed57(0x37b)][_0x52ed57(0x242)](_0x2c2e17,this['unitID'],this[_0x52ed57(0x3c8)],this['_pendingMutations'],this[_0x52ed57(0x168)]);return _0x9c5065[_0x52ed57(0x179)](),_0x9c5065['_updateLocalCache'](),_0x9c5065;}[_0x3c7add(0x374)](_0x3452f6){const _0xc3e45c=_0x3c7add;return this[_0xc3e45c(0x254)](!!(_0x3452f6!=null&&_0x3452f6[_0xc3e45c(0x14b)]));}[_0x3c7add(0x1ad)](_0x3e880d){const _0x386185=_0x3c7add;return this[_0x386185(0x325)]>_0x180963?this[_0x386185(0x239)]():(this[_0x386185(0x229)]=_0x5afc00(this[_0x386185(0x2c7)],{'timeout':this[_0x386185(0x2c7)],'reqId':_0x3e880d[_0x386185(0x3ba)]}),this[_0x386185(0x1fb)]=this[_0x386185(0x229)]['subscribe'](({reqId:_0x276422,timeout:_0x579384})=>{const _0x485ede=_0x386185;this[_0x485ede(0x31d)](_0x276422,_0x579384);}),this);}[_0x3c7add(0x239)](){const _0x12b7d5=_0x3c7add;return this[_0x12b7d5(0x1b9)](),this['_injector']['createInstance'](_0x405ee9,this[_0x12b7d5(0x11a)],this[_0x12b7d5(0x3c8)],this[_0x12b7d5(0x216)],this[_0x12b7d5(0x1dd)],this[_0x12b7d5(0x168)]);}[_0x3c7add(0x1ac)](){return this;}[_0x3c7add(0x15d)](){const _0x3cb875=_0x3c7add;this[_0x3cb875(0x168)][_0x3cb875(0x26d)](this[_0x3cb875(0x216)]);}['_onConflict'](_0x19ed7a){const _0x518048=_0x3c7add;return this['_clearScheduledTask'](),this[_0x518048(0x37b)][_0x518048(0x242)](_0x2cb513,this[_0x518048(0x11a)],this['type'],null,this[_0x518048(0x1dd)],this[_0x518048(0x168)],_0x19ed7a);}['_resendWithTimeout'](_0x5db5f0,_0x5a6dba){const _0x3b6b0d=_0x3c7add;var _0x3d3181;_0x5db5f0===((_0x3d3181=this[_0x3b6b0d(0x216)])==null?void 0x0:_0x3d3181[_0x3b6b0d(0x3ba)])&&(this['resend'](),this['_resendTimeout']=_0x5a6dba===0x0?0x3e8:Math[_0x3b6b0d(0x3af)](_0x5a6dba*0x2,_0x1ef349),this['_maxTotalRetryTimeout']+=this[_0x3b6b0d(0x2c7)]);}[_0x3c7add(0x1b9)](){const _0x25fe83=_0x3c7add;var _0x5b9124;(_0x5b9124=this[_0x25fe83(0x1fb)])==null||_0x5b9124['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};_0x2a0e64=_0x121e18=_0x38f352([_0x78c766(0x6,(0x0,_0x4f2fc5['Inject'])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x7,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf['RevisionService'])),_0x78c766(0x8,_0x4f2fc5['ICommandService']),_0x78c766(0x9,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0xa,_0x597ddf['ITransformService']),_0x78c766(0xb,_0x4f2fc5[_0x3c7add(0x2c0)]),_0x78c766(0xc,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x2a0e64);let _0x2cb513=class extends _0x4a5cdf{constructor(_0x53e830,_0x20810a,_0x35e7cd,_0x5e88f8,_0x25119d,_0x19ac8c=!0x1,_0x3a85f3,_0x37d7e9,_0x5761b4,_0x4372ec,_0x4913d4,_0xca3b06,_0x140ac1){const _0x1c3e60=_0x3c7add;super(_0x53e830,_0x20810a,_0x35e7cd,_0x5e88f8,_0x25119d,_0x37d7e9,_0x5761b4,_0x4372ec,_0x140ac1),this[_0x1c3e60(0x21d)]=_0x19ac8c,this[_0x1c3e60(0x1cb)]=_0x3a85f3,this[_0x1c3e60(0x23b)]=_0x4913d4,this[_0x1c3e60(0x264)]=_0xca3b06,this['localCacheService']=_0x140ac1,_0x45730e(this,_0x1c3e60(0x1a2),_0x1c3e60(0x15a)),this[_0x1c3e60(0x334)](),this[_0x1c3e60(0x3ae)](),this[_0x1c3e60(0x13b)]();}['appendMutation'](){return this;}[_0x3c7add(0x241)](){return this;}['onRemoteAck'](){return this;}[_0x3c7add(0x374)](){return this;}[_0x3c7add(0x1ad)](){return this;}[_0x3c7add(0x239)](){return this;}[_0x3c7add(0x1ac)](){return this;}['resend'](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3c7add(0x3ae)](){const _0x53adca=_0x3c7add;var _0xef15ca;(_0xef15ca=this[_0x53adca(0x12a)])==null||_0xef15ca[_0x53adca(0x173)](this['unitID'],this['type'],null,[]);}[_0x3c7add(0x334)](){const _0x56a7de=_0x3c7add;this[_0x56a7de(0x21d)]?this[_0x56a7de(0x264)]['emitEvent']({'id':'PERMISSION_DENIED'}):this[_0x56a7de(0x264)]['emitEvent']({'id':_0x56a7de(0xd8)});}['_disableEditing'](){const _0x4da796=_0x3c7add;this[_0x4da796(0x1cb)][_0x4da796(0x251)](new _0x575377[(_0x4da796(0x2e7))](this[_0x4da796(0x11a)])['id'],!0x1);}};_0x2cb513=_0x38f352([_0x78c766(0x6,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0x1c4)])),_0x78c766(0x7,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0x8,_0x4f2fc5['IUndoRedoService']),_0x78c766(0x9,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0xa,(0x0,_0x4f2fc5['Inject'])(_0x4f2fc5['LocaleService'])),_0x78c766(0xb,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x20d828)),_0x78c766(0xc,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x2cb513);let _0x405ee9=class extends _0x4a5cdf{constructor(_0x4eec8c,_0x5e6a1c,_0x51afcd,_0x1199cc,_0x157fc5,_0x57b217,_0x2b5dff,_0x13697,_0x493d41,_0x12de84){const _0x3bdbef=_0x3c7add;super(_0x4eec8c,_0x5e6a1c,_0x51afcd,_0x1199cc,_0x157fc5,_0x13697,_0x493d41,_0x2b5dff,_0x12de84),this[_0x3bdbef(0x37b)]=_0x57b217,_0x45730e(this,_0x3bdbef(0x1a2),_0x3bdbef(0x18f));}['appendMutation'](_0x237dae){const _0x59ac8f=_0x3c7add;return this[_0x59ac8f(0x1dd)]['push'](_0x237dae),this[_0x59ac8f(0x3cf)](),this;}[_0x3c7add(0x241)](_0x22997f){const _0x20de74=_0x3c7add;throw Error(_0x20de74(0x361));}[_0x3c7add(0x2d4)](){const _0x249532=_0x3c7add;throw Error(_0x249532(0xcd));}[_0x3c7add(0x374)](){const _0x4bc3e8=_0x3c7add;throw Error(_0x4bc3e8(0x19c));}['onRemoteRetry'](){return this;}[_0x3c7add(0x239)](){return this;}['toggleOnline'](){const _0x30b970=_0x3c7add;let {_injector:_0x2513c7,_pendingMutations:_0x14370a,_awaitingChangeset:_0x353f28,unitID:_0x21a377,_handler:_0x244344,type:_0x39df35}=this,_0x5bf383=_0x84b430(_0x2513c7,_0x21a377,_0x39df35,_0x353f28,_0x14370a,_0x244344);return _0x5bf383 instanceof _0x2c2e17?_0x5bf383[_0x30b970(0x179)]():(_0x5bf383 instanceof _0x2a0e64||_0x5bf383 instanceof _0x441552)&&_0x5bf383[_0x30b970(0x15d)](),_0x5bf383;}[_0x3c7add(0x15d)](){const _0x1951a1=_0x3c7add;throw Error(_0x1951a1(0x305));}};_0x405ee9=_0x38f352([_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x6,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x7,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0x8,_0x4f2fc5[_0x3c7add(0x2c0)]),_0x78c766(0x9,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x405ee9);let _0x47f959=class extends _0x4a5cdf{constructor(_0x35ed18,_0x51a246,_0x15670f,_0x514582,_0x597cd3,_0x5674f3,_0x4cb028,_0x4b9964,_0x8e5d5f,_0x398ac2,_0x1980ac,_0x2c52db,_0x12f15a,_0x4571d8){const _0x3a0b40=_0x3c7add;super(_0x35ed18,_0x51a246,_0x15670f,_0x514582,_0x4cb028,_0x1980ac,_0x2c52db,_0x8e5d5f,_0x4571d8),this['_acknowledgedAwaitingRevision']=_0x597cd3,this[_0x3a0b40(0xd7)]=_0x5674f3,this[_0x3a0b40(0x37b)]=_0x4b9964,this[_0x3a0b40(0x10b)]=_0x398ac2,this['_transformService']=_0x12f15a,this['localCacheService']=_0x4571d8,_0x45730e(this,_0x3a0b40(0x1a2),_0x3a0b40(0x396));}[_0x3c7add(0x1af)](_0x28ee04){const _0x1aca98=_0x3c7add;try{if(this['_handleRemoteChangesets'](_0x28ee04)[_0x1aca98(0x155)])throw Error(_0x1aca98(0x147));if(this[_0x1aca98(0x32f)]([...this['_queuedRemoteChangesets']][_0x1aca98(0x1c1)]((_0x2e80f4,_0x113624)=>_0x2e80f4['revision']-_0x113624[_0x1aca98(0x2e5)]))[_0x1aca98(0x155)])return this[_0x1aca98(0xd7)]=[],this[_0x1aca98(0x3cf)](),this['_handler'][_0x1aca98(0x215)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0x361f1c=this[_0x1aca98(0x216)],_0x2ea76a=this['_pendingMutations'],_0x59937f;if(_0x361f1c&&_0x2ea76a['length']!==0x0)_0x59937f=this[_0x1aca98(0x37b)][_0x1aca98(0x242)](_0x2a0e64,this[_0x1aca98(0x11a)],this[_0x1aca98(0x3c8)],_0x361f1c,_0x2ea76a,this[_0x1aca98(0x168)],void 0x0);else{if(_0x361f1c&&_0x2ea76a[_0x1aca98(0x3a4)]===0x0)_0x361f1c[_0x1aca98(0x296)]=this['_getCurrentRevision'](),_0x59937f=this[_0x1aca98(0x37b)][_0x1aca98(0x242)](_0x441552,this[_0x1aca98(0x11a)],this[_0x1aca98(0x3c8)],_0x361f1c,this[_0x1aca98(0x168)]);else{if(_0x2ea76a[_0x1aca98(0x3a4)]!==0x0){let _0x31a0d2=this['_injector']['createInstance'](_0x2c2e17,this['unitID'],this[_0x1aca98(0x3c8)],_0x2ea76a,this['_handler']);_0x31a0d2['_schedule'](),_0x59937f=_0x31a0d2;}else _0x59937f=this['_injector'][_0x1aca98(0x242)](_0x2168a9,this['unitID'],this['type'],this[_0x1aca98(0x168)]);}}return _0x59937f[_0x1aca98(0x3cf)](),_0x59937f;}catch(_0x584cd2){return this['_logService'][_0x1aca98(0x1f0)](_0x1aca98(0x14d),_0x1aca98(0x38f),_0x584cd2),this['_injector'][_0x1aca98(0x242)](_0x2cb513,this[_0x1aca98(0x11a)],this['type'],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x1aca98(0x168)],!0x1);}}[_0x3c7add(0x32f)](_0x52f4ed){const _0x46fec8=_0x3c7add;this[_0x46fec8(0x207)]();for(let _0x4725f6=0x0;_0x4725f6<_0x52f4ed['length'];_0x4725f6++){let _0x2da708=_0x52f4ed[_0x4725f6],_0x4daefc=this[_0x46fec8(0x118)]();if(!(_0x2da708[_0x46fec8(0x2e5)]<=_0x4daefc)){if(_0x2da708[_0x46fec8(0x2e5)]>_0x4daefc+0x1)return{'missingChangesets':!0x0};if(this[_0x46fec8(0x284)](_0x2da708)){this[_0x46fec8(0x3a1)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x2da708),this[_0x46fec8(0x207)]();}}return{'missingChangesets':!0x1};}[_0x3c7add(0x326)](_0x104e24){const _0x2f0399=_0x3c7add;let _0x5c7540=_0x104e24,_0x1e2b5b=this[_0x2f0399(0x216)];if(_0x1e2b5b){let _0x397c3d=this[_0x2f0399(0x220)]['transformChangesets']([_0x104e24],[_0x1e2b5b],!0x1);if(!(0x0,_0x597ddf[_0x2f0399(0x2f6)])(_0x397c3d))throw _0x397c3d[_0x2f0399(0x1f0)];_0x5c7540=_0x397c3d[_0x2f0399(0x23f)][0x0],_0x1e2b5b=_0x397c3d['c2Prime'][0x0];}let _0x106e9b=this[_0x2f0399(0x1dd)];if(_0x106e9b['length']){let _0xc6e877=this[_0x2f0399(0x220)][_0x2f0399(0x1a1)](_0x5c7540,_0x106e9b);if(!(0x0,_0x597ddf[_0x2f0399(0x344)])(_0xc6e877))throw _0xc6e877[_0x2f0399(0x1f0)];_0x5c7540=_0xc6e877[_0x2f0399(0x23f)],_0x106e9b=_0xc6e877[_0x2f0399(0x3bc)];}this[_0x2f0399(0x395)](_0x5c7540),_0x1e2b5b&&(_0x1e2b5b[_0x2f0399(0x296)]=this[_0x2f0399(0x118)]()),this[_0x2f0399(0x216)]=_0x1e2b5b,this['_pendingMutations']=_0x106e9b;}['_acknowledgeAwaitingIfReady'](){const _0x8adeab=_0x3c7add;if(!this[_0x8adeab(0x216)]||this[_0x8adeab(0x2fb)]==null)return;let _0x3dfe3d=this['_getCurrentRevision']();if(this[_0x8adeab(0x2fb)]<=_0x3dfe3d)throw Error(_0x8adeab(0xbe)+this[_0x8adeab(0x2fb)]+'.');this[_0x8adeab(0x2fb)]===_0x3dfe3d+0x1&&this[_0x8adeab(0x3a1)]();}[_0x3c7add(0x3a1)](){const _0x43a641=_0x3c7add;this['_incrementRevisionNumber'](),this[_0x43a641(0x216)]=null,this[_0x43a641(0x2fb)]=null;}[_0x3c7add(0x284)](_0x2f128a){const _0x30c22a=_0x3c7add;let _0x9e7544=this['_awaitingChangeset'];return!_0x9e7544||!_0x9e7544['sid']||_0x9e7544['reqId']===null||_0x9e7544['reqId']===void 0x0?!0x1:_0x2f128a[_0x30c22a(0x11a)]===_0x9e7544[_0x30c22a(0x11a)]&&_0x2f128a[_0x30c22a(0x30a)]===_0x9e7544[_0x30c22a(0x30a)]&&_0x2f128a[_0x30c22a(0x3ba)]===_0x9e7544[_0x30c22a(0x3ba)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3c7add(0x1a5)](_0x3d7ea6){const _0x3da293=_0x3c7add;return this[_0x3da293(0x1dd)]['push'](_0x3d7ea6),this;}['onRemoteChangeset'](_0x3bfae8){const _0xd8376c=_0x3c7add;return this[_0xd8376c(0xd7)][_0xd8376c(0x26e)](_0x3bfae8),this;}[_0x3c7add(0x2d4)](_0x486ef2){const _0x4d7284=_0x3c7add;if(this['_awaitingChangeset']){let _0x274584=this[_0x4d7284(0x118)]();return _0x486ef2[_0x4d7284(0x2e5)]<=_0x274584||(_0x274584+0x1===_0x486ef2['revision']?(this[_0x4d7284(0x3b5)](),this['_awaitingChangeset']=null,this[_0x4d7284(0x2fb)]=null):this[_0x4d7284(0x2fb)]=_0x486ef2[_0x4d7284(0x2e5)]),this;}if(_0x486ef2[_0x4d7284(0x2e5)]<=this[_0x4d7284(0x118)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}['onRemoteRej'](_0x2c882c){const _0x170304=_0x3c7add;return this['_onConflict'](!!(_0x2c882c!=null&&_0x2c882c[_0x170304(0x14b)]));}[_0x3c7add(0x1ad)](){return this;}[_0x3c7add(0x239)](){const _0x5800bb=_0x3c7add;return this[_0x5800bb(0x37b)][_0x5800bb(0x242)](_0x405ee9,this[_0x5800bb(0x11a)],this['type'],this[_0x5800bb(0x216)],this[_0x5800bb(0x1dd)],this[_0x5800bb(0x168)]);}[_0x3c7add(0x1ac)](){return this;}[_0x3c7add(0x254)](_0x9f65f6){const _0x486d12=_0x3c7add;return this[_0x486d12(0x37b)][_0x486d12(0x242)](_0x2cb513,this['unitID'],this[_0x486d12(0x3c8)],this['_awaitingChangeset'],this['_pendingMutations'],this[_0x486d12(0x168)],_0x9f65f6);}};_0x47f959=_0x38f352([_0x78c766(0x7,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x8,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x9,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0xa,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0xb,_0x4f2fc5['IUndoRedoService']),_0x78c766(0xc,_0x597ddf[_0x3c7add(0x12e)]),_0x78c766(0xd,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x47f959);function _0x84b430(_0x21dae5,_0x4432de,_0x5a0237,_0x4c5e36,_0x8921c4,_0x4992dd){const _0x345f4a=_0x3c7add;return _0x4c5e36&&_0x8921c4[_0x345f4a(0x3a4)]?_0x21dae5['createInstance'](_0x2a0e64,_0x4432de,_0x5a0237,_0x4c5e36,_0x8921c4,_0x4992dd,void 0x0):_0x4c5e36?_0x21dae5[_0x345f4a(0x242)](_0x441552,_0x4432de,_0x5a0237,_0x4c5e36,_0x4992dd):_0x8921c4[_0x345f4a(0x3a4)]?_0x21dae5[_0x345f4a(0x242)](_0x2c2e17,_0x4432de,_0x5a0237,_0x8921c4,_0x4992dd):_0x21dae5[_0x345f4a(0x242)](_0x2168a9,_0x4432de,_0x5a0237,_0x4992dd);}let _0x137310=class extends _0x4f2fc5[_0x3c7add(0x145)]{get[_0x3c7add(0x14f)](){const _0x3d4c94=_0x3c7add;return this[_0x3d4c94(0x39d)];}constructor(_0x45063b,_0x31e4ed,_0x5168a6,_0x1d547a,_0x2d281f,_0x122c28,_0xb399bb,_0x3197f1,_0xe0df2,_0x3bd4a3,_0x1e1f82,_0x4f0249,_0x5df73f,_0xab36d8){const _0xe2761d=_0x3c7add;super(),this[_0xe2761d(0x11a)]=_0x45063b,this[_0xe2761d(0x230)]=_0x31e4ed,this['_type']=_0x5168a6,this[_0xe2761d(0x37b)]=_0x1d547a,this[_0xe2761d(0x18c)]=_0x2d281f,this[_0xe2761d(0x23b)]=_0x122c28,this[_0xe2761d(0x39e)]=_0xb399bb,this[_0xe2761d(0x101)]=_0x3197f1,this[_0xe2761d(0x243)]=_0xe0df2,this[_0xe2761d(0x10b)]=_0x3bd4a3,this['_commandService']=_0x1e1f82,this['_permissionService']=_0x4f0249,this[_0xe2761d(0x129)]=_0x5df73f,this[_0xe2761d(0x12a)]=_0xab36d8,_0x45730e(this,_0xe2761d(0x3ce),new _0x196a42[(_0xe2761d(0x2cc))](null)),_0x45730e(this,'state$',this[_0xe2761d(0x3ce)][_0xe2761d(0xc6)]()),_0x45730e(this,_0xe2761d(0x39d),void 0x0),_0x45730e(this,_0xe2761d(0x212),!0x1),_0x45730e(this,_0xe2761d(0x3d0),''),_0x45730e(this,_0xe2761d(0xec),0x0),_0x45730e(this,_0xe2761d(0xe3),this[_0xe2761d(0x2cb)][_0xe2761d(0x397)]((0x0,_0x196a42[_0xe2761d(0x192)])(_0x52f2fe=>_0x52f2fe?_0x52f2fe[_0xe2761d(0x1a2)]:_0xe2761d(0x18f)),(0x0,_0x196a42[_0xe2761d(0x34f)])({'bufferSize':0x1,'refCount':!0x0}))),_0x45730e(this,_0xe2761d(0x13c),!0x1),_0x45730e(this,_0xe2761d(0x304),[]);}async[_0x3c7add(0x19f)](){const _0x82490b=_0x3c7add;if(this[_0x82490b(0x14f)])throw Error(_0x82490b(0x271));await this[_0x82490b(0x37a)]();}['pauseCollaboration'](){const _0x4f6155=_0x3c7add;return this[_0x4f6155(0x212)]=!0x0,(0x0,_0x4f2fc5[_0x4f6155(0x164)])(()=>{const _0x591ecf=_0x4f6155;this[_0x591ecf(0x212)]=!0x1,this[_0x591ecf(0x377)]();});}[_0x3c7add(0x3db)](_0x525f5a){const _0x1c7483=_0x3c7add;this[_0x1c7483(0x18a)](_0x525f5a);}[_0x3c7add(0x23c)](_0x5b8f89){const _0x589450=_0x3c7add;this['_state']=_0x5b8f89,this['_state$'][_0x589450(0x232)](_0x5b8f89);}async[_0x3c7add(0x37a)](){const _0x550366=_0x3c7add;if(this[_0x550366(0x23c)](await this[_0x550366(0xc7)]()),this['_singleActiveUnitService']){var _0x32cd72;(_0x32cd72=this[_0x550366(0x129)])==null||_0x32cd72[_0x550366(0x1c3)](this[_0x550366(0x11a)]),this[_0x550366(0x3b1)](this[_0x550366(0x129)]['getUnitStatus$'](this[_0x550366(0x11a)])[_0x550366(0x237)](_0x32f5e4=>{const _0x26b6db=_0x550366;this[_0x26b6db(0x10b)][_0x26b6db(0x2ec)](_0x26b6db(0x363),_0x26b6db(0xce),_0x32f5e4),_0x32f5e4===0x1?(this[_0x26b6db(0x101)]['emitEvent']({'id':_0x26b6db(0x3bf)}),this[_0x26b6db(0x1cb)]['updatePermissionPoint'](new _0x575377[(_0x26b6db(0x2e7))](this['unitID'])['id'],!0x1),this[_0x26b6db(0x1cb)]['setShowComponents'](!0x1)):(this['_permissionService'][_0x26b6db(0x251)](new _0x575377[(_0x26b6db(0x2e7))](this[_0x26b6db(0x11a)])['id'],!0x0),this['_permissionService'][_0x26b6db(0x36e)](!0x0));}));}let _0x18cbfe=!0x1;return this['disposeWithMe'](this[_0x550366(0x230)][_0x550366(0x188)]['subscribe'](_0x52a1ba=>{const _0x3bd7ad=_0x550366;_0x52a1ba===0x3?this[_0x3bd7ad(0x209)](_0x18cbfe):_0x52a1ba===0x2&&(_0x18cbfe=!0x0,this[_0x3bd7ad(0x3e0)]());})),this[_0x550366(0x3b1)](this[_0x550366(0x230)][_0x550366(0x211)][_0x550366(0x237)](_0x361f3e=>{const _0x1d32b=_0x550366;try{switch(_0x361f3e[_0x1d32b(0x1ff)]){case _0x597ddf[_0x1d32b(0xf9)][_0x1d32b(0x203)]:this['_onRemoteChangeset']((0x0,_0x597ddf['parseProtocolChangeset'])(_0x361f3e['data']));break;case _0x597ddf[_0x1d32b(0xf9)]['CHANGESET_ACK']:this['_onRemoteACK'](_0x361f3e['data']);break;case _0x597ddf[_0x1d32b(0xf9)]['CHANGESET_REJ']:this[_0x1d32b(0xbc)]();break;case _0x597ddf[_0x1d32b(0xf9)][_0x1d32b(0x2ac)]:this[_0x1d32b(0x3aa)](_0x361f3e['data']);break;case _0x597ddf[_0x1d32b(0xf9)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x1d32b(0x277)](_0x361f3e[_0x1d32b(0x37e)][_0x1d32b(0x1a8)][_0x1d32b(0x192)](_0xf51bed=>(0x0,_0x597ddf[_0x1d32b(0x266)])(_0xf51bed)));break;case _0x597ddf[_0x1d32b(0xf9)]['PERMISSION_REJ']:this[_0x1d32b(0xbc)]({'isPermissionRej':!0x0});break;case _0x597ddf[_0x1d32b(0xf9)][_0x1d32b(0x1bd)]:break;}}catch(_0x26bc35){throw console['error'](_0x1d32b(0x1ef),_0x26bc35),_0x26bc35;}})),this[_0x550366(0x39d)];}[_0x3c7add(0x38e)](){const _0x2e043c=_0x3c7add;this[_0x2e043c(0x13c)]=!0x1;}[_0x3c7add(0x307)](){const _0x1589f8=_0x3c7add;if(this[_0x1589f8(0x13c)])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x1589f8(0x13c)]=!0x0;}[_0x3c7add(0x18a)](_0xf0a0d1){const _0x2a82c9=_0x3c7add;this[_0x2a82c9(0x307)](),this['_updateState'](this[_0x2a82c9(0x39d)][_0x2a82c9(0x1a5)](_0xf0a0d1)),this['_unlockTransition']();}[_0x3c7add(0x259)](_0x5a30fe){const _0x5ea52b=_0x3c7add;if(!(_0x5a30fe[_0x5ea52b(0x2e5)]<=this[_0x5ea52b(0x39e)][_0x5ea52b(0x139)](this[_0x5ea52b(0x11a)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue']['push'](_0x5a30fe);return;}this['_applyRemoteChangeset'](_0x5a30fe);}}['_exhaustRemoteChangesetQueue'](){const _0x5075bf=_0x3c7add;this[_0x5075bf(0x304)][_0x5075bf(0x253)](_0x5741e8=>this[_0x5075bf(0x279)](_0x5741e8)),this[_0x5075bf(0x304)]=[];}[_0x3c7add(0x279)](_0x514244){const _0x417379=_0x3c7add;let _0x6a0da2=this[_0x417379(0x18c)][_0x417379(0x2c1)][_0x417379(0x291)](this[_0x417379(0x18c)]['interceptor'][_0x417379(0x142)]()['COMPRESS_MUTATION_APPLY'])(_0x514244[_0x417379(0x1eb)],null)||_0x514244[_0x417379(0x1eb)],_0x130dca={..._0x514244,'mutations':_0x6a0da2};this[_0x417379(0x307)](),this[_0x417379(0x23c)](this[_0x417379(0x39d)]['onRemoteChangeset'](_0x130dca)),this[_0x417379(0x38e)]();}[_0x3c7add(0x1df)](_0x258ad0){const _0xc56dba=_0x3c7add;this[_0xc56dba(0x307)](),this[_0xc56dba(0x23c)](this[_0xc56dba(0x39d)]['onRemoteAck'](_0x258ad0)),this['_unlockTransition']();}[_0x3c7add(0xbc)](_0x3e1fc2){const _0x8ecebf=_0x3c7add;this[_0x8ecebf(0x307)](),this[_0x8ecebf(0x23c)](this[_0x8ecebf(0x39d)][_0x8ecebf(0x374)](_0x3e1fc2)),this[_0x8ecebf(0x38e)]();}[_0x3c7add(0x3aa)](_0x5efeed){const _0x42aea4=_0x3c7add;this['_lockTransition'](),this[_0x42aea4(0x23c)](this[_0x42aea4(0x39d)][_0x42aea4(0x1ad)](_0x5efeed)),this['_unlockTransition']();}[_0x3c7add(0x277)](_0x1bdbc5){const _0x250580=_0x3c7add;if(!(this[_0x250580(0x39d)]instanceof _0x47f959))throw TypeError(_0x250580(0x28b));let _0x59c0f3=_0x1bdbc5[_0x250580(0x192)](_0x2feb4e=>{const _0x1e320e=_0x250580;let _0x949501=this['_compressMutationService'][_0x1e320e(0x2c1)][_0x1e320e(0x291)](this[_0x1e320e(0x18c)][_0x1e320e(0x2c1)][_0x1e320e(0x142)]()[_0x1e320e(0x15b)])(_0x2feb4e['mutations'],null)||_0x2feb4e[_0x1e320e(0x1eb)];return{..._0x2feb4e,'mutations':_0x949501};});this[_0x250580(0x307)](),this[_0x250580(0x23c)](this['_state'][_0x250580(0x1af)](_0x59c0f3)),this['_unlockTransition']();}[_0x3c7add(0x3e0)](){const _0x250f0b=_0x3c7add;this[_0x250f0b(0x307)](),this[_0x250f0b(0x23c)](this[_0x250f0b(0x39d)][_0x250f0b(0x239)]()),this[_0x250f0b(0x38e)]();}[_0x3c7add(0x209)](_0xde0a21=!0x1){const _0x5ba368=_0x3c7add;this[_0x5ba368(0x307)](),this[_0x5ba368(0x23c)](this['_state']['toggleOnline']()),this[_0x5ba368(0x38e)]();let _0x335afe=this[_0x5ba368(0x39d)];_0xde0a21&&_0x335afe instanceof _0x2168a9&&(this['_lockTransition'](),this[_0x5ba368(0x23c)](_0x335afe[_0x5ba368(0x10c)]()),this['_unlockTransition']());}async[_0x3c7add(0xc7)](){return new Promise(_0x6f60e7=>{const _0x5698b3=_0x4364;this['session'][_0x5698b3(0x188)]['pipe']((0x0,_0x196a42[_0x5698b3(0x2a7)])(0x1))['subscribe'](async _0x41930d=>{const _0x16fd0b=_0x5698b3;_0x6f60e7(await this[_0x16fd0b(0x200)](_0x41930d===0x3));});});}[_0x3c7add(0x28c)](){const _0x371222=_0x3c7add;let _0x3170a6=this[_0x371222(0x11a)];return{'onStateChange':(_0x369807,_0x276a6b)=>{const _0xd089d5=_0x371222;if(_0x369807!==this[_0xd089d5(0x39d)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x369807[_0xd089d5(0x1a2)]+_0xd089d5(0xe9)+_0x276a6b[_0xd089d5(0x1a2)]+_0xd089d5(0x398)+this['_state'][_0xd089d5(0x1a2)]);this[_0xd089d5(0x23c)](_0x276a6b);},'onSendChangeset':_0x5d3650=>{const _0x1b8cef=_0x371222;_0x5d3650[_0x1b8cef(0x30a)]||(_0x5d3650[_0x1b8cef(0x30a)]=this['_changesetSessionId'],_0x5d3650[_0x1b8cef(0x3ba)]=++this['_changesetReqId']);let _0x544adb={'eventID':_0x597ddf[_0x1b8cef(0xf9)][_0x1b8cef(0x375)],'data':{'unitID':_0x5d3650[_0x1b8cef(0x11a)],'unitType':this[_0x1b8cef(0x33e)],'changeset':_0x5d3650,'memberID':this[_0x1b8cef(0x230)][_0x1b8cef(0xdd)]()}};this[_0x1b8cef(0x230)]['send'](_0x544adb,this[_0x1b8cef(0x11a)]);},'onMissingChangesets':({from:_0x32e8b0,to:_0x16a7b6})=>{const _0x231238=_0x371222;this[_0x231238(0x10b)][_0x231238(0x2ec)](_0x231238(0x363),_0x231238(0x151)+_0x32e8b0+'\x20to\x20'+_0x16a7b6);let _0x23bce6={'eventID':_0x597ddf[_0x231238(0xf9)]['FETCH_MISSING'],'data':{'unitID':_0x3170a6,'unitType':this[_0x231238(0x33e)],'from':_0x32e8b0,'to':_0x16a7b6}};this[_0x231238(0x230)][_0x231238(0x19b)](_0x23bce6,this['unitID']);}};}async['_createInitialStateImpl'](_0x1bb34a){const _0x2d635c=_0x3c7add;var _0x381645,_0xc7ec9c,_0x3b55c4;let _0xfe4d1b=await((_0x381645=this[_0x2d635c(0x12a)])==null?void 0x0:_0x381645[_0x2d635c(0x20c)](this['unitID'])),_0x5b9780=(_0xc7ec9c=_0xfe4d1b==null?void 0x0:_0xfe4d1b[_0x2d635c(0x1eb)])==null?[]:_0xc7ec9c,_0xbafdf=(_0x3b55c4=_0xfe4d1b==null?void 0x0:_0xfe4d1b[_0x2d635c(0x27a)])==null?null:_0x3b55c4,_0x511982=!!(_0xbafdf!=null&&_0xbafdf[_0x2d635c(0x30a)])&&!!(_0xbafdf!=null&&_0xbafdf[_0x2d635c(0x3ba)]);this[_0x2d635c(0x3d0)]=_0x511982?_0xbafdf[_0x2d635c(0x30a)]:(0x0,_0x597ddf[_0x2d635c(0x252)])(),this['_changesetReqId']=_0x511982?_0xbafdf[_0x2d635c(0x3ba)]:0x0;let _0x583cfb=this[_0x2d635c(0x11a)];try{this[_0x2d635c(0x12d)](_0xbafdf,_0x5b9780);}catch(_0x28b78f){this['_logService'][_0x2d635c(0x1f0)](_0x28b78f);}let _0x2cba29=this[_0x2d635c(0x28c)]();if(_0x1bb34a){let _0xebeff0=_0x84b430(this[_0x2d635c(0x37b)],_0x583cfb,this[_0x2d635c(0x33e)],_0xbafdf,_0x5b9780,_0x2cba29);return _0xebeff0 instanceof _0x2c2e17?_0xebeff0[_0x2d635c(0x179)]():(_0xebeff0 instanceof _0x2a0e64||_0xebeff0 instanceof _0x441552)&&_0xebeff0['resend'](),_0xebeff0;}return this[_0x2d635c(0x37b)]['createInstance'](_0x405ee9,_0x583cfb,this[_0x2d635c(0x33e)],_0xbafdf,_0x5b9780,_0x2cba29);}[_0x3c7add(0x12d)](_0x5e3764,_0x515d82){const _0x3fa90f=_0x3c7add;var _0x3d92f7,_0x4fa22e;let _0x54f379=this[_0x3fa90f(0x18c)][_0x3fa90f(0x2c1)][_0x3fa90f(0x291)](this[_0x3fa90f(0x18c)][_0x3fa90f(0x2c1)]['getInterceptPoints']()[_0x3fa90f(0x15b)]);(_0x3d92f7=_0x54f379((_0x5e3764==null?void 0x0:_0x5e3764[_0x3fa90f(0x1eb)])||[],null))==null||_0x3d92f7[_0x3fa90f(0x253)](_0x5bdf96=>this[_0x3fa90f(0x111)][_0x3fa90f(0x313)](_0x5bdf96['id'],_0x5bdf96[_0x3fa90f(0xdb)])),(_0x4fa22e=_0x54f379(_0x515d82||[],null))==null||_0x4fa22e[_0x3fa90f(0x253)](_0x50ae4c=>this[_0x3fa90f(0x111)]['executeCommand'](_0x50ae4c['id'],_0x50ae4c[_0x3fa90f(0xdb)]));}};_0x137310=_0x38f352([_0x78c766(0x3,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['Injector'])),_0x78c766(0x4,(0x0,_0x4f2fc5['Inject'])(_0x597ddf[_0x3c7add(0x29d)])),_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0x3b2)])),_0x78c766(0x6,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x7,(0x0,_0x4f2fc5['Inject'])(_0x20d828)),_0x78c766(0x8,_0x4f2fc5['IUniverInstanceService']),_0x78c766(0x9,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0xa,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0xb,_0x4f2fc5[_0x3c7add(0x1c4)]),_0x78c766(0xc,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x546860)),_0x78c766(0xd,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x137310);let _0x44307b=class extends _0x137310{constructor(_0x10029a,_0x530660,_0x40a73c,_0x565885,_0x480c2b,_0x127100,_0x42d6bd,_0x654f10,_0x32564f,_0x5575c5,_0x20dff7,_0x576204,_0x4ecc62,_0x133d75){const _0x50ca4f=_0x3c7add;super(_0x10029a,_0x40a73c,_0x530660,_0x565885,_0x480c2b,_0x127100,_0x42d6bd,_0x654f10,_0x32564f,_0x5575c5,_0x20dff7,_0x576204,_0x4ecc62,_0x133d75),this[_0x50ca4f(0x11a)]=_0x10029a,this[_0x50ca4f(0x3c8)]=_0x530660,_0x45730e(this,_0x50ca4f(0x269),null);}[_0x3c7add(0x19a)](_0x172707){const _0x197fae=_0x3c7add;this[_0x197fae(0x269)]=_0x172707;}[_0x3c7add(0x202)](){const _0x84be95=_0x3c7add;this[_0x84be95(0x269)]=null,super[_0x84be95(0x202)]();}[_0x3c7add(0x28c)](){const _0x2be530=_0x3c7add;let _0x2292eb=super[_0x2be530(0x28c)]();return _0x2292eb['onTransformIME']=_0x4f75a3=>{const _0x1e4022=_0x2be530;var _0x15e5e0,_0x1cd9f5;return(_0x15e5e0=this[_0x1e4022(0x269)])==null||(_0x1cd9f5=_0x15e5e0[_0x1e4022(0x320)])==null?void 0x0:_0x1cd9f5['call'](_0x15e5e0,_0x4f75a3);},_0x2292eb[_0x2be530(0x346)]=_0x20d27b=>{const _0x1e5c8e=_0x2be530;var _0x76c626,_0x12e4c3;return(_0x76c626=this[_0x1e5c8e(0x269)])==null||(_0x12e4c3=_0x76c626[_0x1e5c8e(0x346)])==null?void 0x0:_0x12e4c3[_0x1e5c8e(0x3bb)](_0x76c626,_0x20d27b);},_0x2292eb['onTransformSelections']=_0x3ceb8e=>{const _0x553b06=_0x2be530;var _0xcd4ef3,_0x24ea5c;return(_0xcd4ef3=this[_0x553b06(0x269)])==null||(_0x24ea5c=_0xcd4ef3[_0x553b06(0x2cd)])==null?void 0x0:_0x24ea5c[_0x553b06(0x3bb)](_0xcd4ef3,_0x3ceb8e);},_0x2292eb['onSyncEditingCollabCursor']=_0x1f66d3=>{const _0x5cca6b=_0x2be530;var _0xdea120,_0x12a53c;return(_0xdea120=this[_0x5cca6b(0x269)])==null||(_0x12a53c=_0xdea120['onSyncEditingCollabCursor'])==null?void 0x0:_0x12a53c[_0x5cca6b(0x3bb)](_0xdea120,_0x1f66d3);},_0x2292eb[_0x2be530(0x181)]=_0x13f0f2=>{const _0x490cd5=_0x2be530;var _0x16f9f6,_0x1fe370,_0x42e4b7;if(!((_0x16f9f6=this[_0x490cd5(0x269)])!=null&&_0x16f9f6[_0x490cd5(0x181)]))throw Error(_0x490cd5(0x3bd));return(_0x1fe370=this[_0x490cd5(0x269)])==null||(_0x42e4b7=_0x1fe370['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x42e4b7[_0x490cd5(0x3bb)](_0x1fe370,_0x13f0f2);},_0x2292eb[_0x2be530(0x1f2)]=_0x45ef26=>{const _0x260e2a=_0x2be530;var _0x2e6fd2,_0xffccde,_0x24c8d4;if(!((_0x2e6fd2=this['_handlerCallback'])!=null&&_0x2e6fd2[_0x260e2a(0x1f2)]))throw Error(_0x260e2a(0x2ef));return(_0xffccde=this[_0x260e2a(0x269)])==null||(_0x24c8d4=_0xffccde[_0x260e2a(0x1f2)])==null?void 0x0:_0x24c8d4[_0x260e2a(0x3bb)](_0xffccde,_0x45ef26);},_0x2292eb;}async['_init'](){const _0x526ea4=_0x3c7add;let _0x37951f=await super[_0x526ea4(0x37a)]();return this[_0x526ea4(0x3b1)](this[_0x526ea4(0x111)][_0x526ea4(0x2b2)]((_0xecf72d,_0x129bac)=>{const _0x57dbf4=_0x526ea4;if(_0xecf72d['type']!==_0x4f2fc5['CommandType'][_0x57dbf4(0x105)]||_0x129bac!=null&&_0x129bac['fromCollab']||_0x129bac!=null&&_0x129bac['onlyLocal']||_0xecf72d['id']===_0x37b785[_0x57dbf4(0x383)]['id'])return;let _0x130d23=_0xecf72d['params'];if((_0x130d23==null?void 0x0:_0x130d23[_0x57dbf4(0x225)])!==this[_0x57dbf4(0x11a)])return;let _0x3b3985=_0xecf72d,_0x25a3f2=this[_0x57dbf4(0x18c)][_0x57dbf4(0x2c1)][_0x57dbf4(0x291)](this[_0x57dbf4(0x18c)][_0x57dbf4(0x2c1)]['getInterceptPoints']()[_0x57dbf4(0x2fe)])([_0x3b3985],this['_univerInstanceService'])||[_0x3b3985];this[_0x57dbf4(0x18a)](_0x25a3f2[0x0]);})),_0x37951f;}};_0x44307b=_0x38f352([_0x78c766(0x3,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['Injector'])),_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x29d)])),_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0x3b2)])),_0x78c766(0x6,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x7,(0x0,_0x4f2fc5['Inject'])(_0x20d828)),_0x78c766(0x8,_0x4f2fc5['IUniverInstanceService']),_0x78c766(0x9,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0xa,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0xb,_0x4f2fc5['IPermissionService']),_0x78c766(0xc,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x546860)),_0x78c766(0xd,(0x0,_0x4f2fc5['Optional'])(_0x54dcc4))],_0x44307b);let _0xb49add=class extends _0x137310{constructor(_0x49cdc8,_0x11bd71,_0x423053,_0x12be70,_0x4eef49,_0x51aae5,_0x28e1a9,_0xfb1eff,_0x2d0cb4,_0x2d2809,_0x4f70a3,_0x2a4415,_0x3a0d12,_0x2aaf54,_0x2df6c3){const _0xc12b5f=_0x3c7add;super(_0x49cdc8,_0x423053,_0x11bd71,_0x12be70,_0x4eef49,_0x51aae5,_0x28e1a9,_0x2d0cb4,_0x2d2809,_0x4f70a3,_0x2a4415,_0x3a0d12,_0x2aaf54,_0x2df6c3),this[_0xc12b5f(0x11a)]=_0x49cdc8,this[_0xc12b5f(0x3c8)]=_0x11bd71,this[_0xc12b5f(0x195)]=_0xfb1eff;}['_createHandler'](){const _0x40dce6=_0x3c7add;let _0x513311=super[_0x40dce6(0x28c)]();return _0x513311['onTransformSelections']=_0xc14c0=>this[_0x40dce6(0x195)]['transformSelections'](_0xc14c0),_0x513311;}async['_init'](){const _0x243d95=_0x3c7add;let _0x1f35d5=await super[_0x243d95(0x37a)]();return this[_0x243d95(0x3b1)](this[_0x243d95(0x111)][_0x243d95(0x2b2)]((_0x44d983,_0x4d07ee)=>{const _0x1db350=_0x243d95;if(_0x44d983[_0x1db350(0x3c8)]!==_0x4f2fc5['CommandType'][_0x1db350(0x105)]||_0x4d07ee!=null&&_0x4d07ee[_0x1db350(0x337)]||_0x4d07ee!=null&&_0x4d07ee[_0x1db350(0x176)])return;let _0x399c2c=_0x44d983['params'];if((_0x399c2c==null?void 0x0:_0x399c2c[_0x1db350(0x225)])!==this[_0x1db350(0x11a)])return;let _0x284bb1=_0x44d983,_0x349acb=this[_0x1db350(0x18c)]['interceptor'][_0x1db350(0x291)](this['_compressMutationService'][_0x1db350(0x2c1)]['getInterceptPoints']()[_0x1db350(0x2fe)])([_0x284bb1],this[_0x1db350(0x243)])||[_0x284bb1];this['_onLocalMutation'](_0x349acb[0x0]);})),_0x1f35d5;}};_0xb49add=_0x38f352([_0x78c766(0x3,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x4,(0x0,_0x4f2fc5['Inject'])(_0x597ddf['CompressMutationService'])),_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['LocaleService'])),_0x78c766(0x6,(0x0,_0x4f2fc5['Inject'])(_0x597ddf[_0x3c7add(0x261)])),_0x78c766(0x7,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x479f64)),_0x78c766(0x8,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x20d828)),_0x78c766(0x9,_0x4f2fc5[_0x3c7add(0x1d0)]),_0x78c766(0xa,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0xb,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0xc,_0x4f2fc5['IPermissionService']),_0x78c766(0xd,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x546860)),_0x78c766(0xe,(0x0,_0x4f2fc5['Optional'])(_0x54dcc4))],_0xb49add);let _0x5984c8=(0x0,_0x4f2fc5[_0x3c7add(0x267)])(_0x3c7add(0x2f5));function _0x3e0e79(_0x242970){const _0x445c9c=_0x3c7add;let _0x49ecb3=_0x242970[_0x445c9c(0x37e)],_0x2d0ed8=JSON[_0x445c9c(0x310)](_0x49ecb3);switch(_0x2d0ed8[_0x445c9c(0x270)]){case _0x121aa6[_0x445c9c(0x31e)][_0x445c9c(0x3b0)]:case _0x121aa6[_0x445c9c(0x31e)][_0x445c9c(0x37f)]:{let _0x1072e8=_0x2d0ed8[_0x445c9c(0x24c)];return{..._0x2d0ed8,'data':_0x1072e8,'cmd':_0x2d0ed8[_0x445c9c(0x270)]};}case _0x121aa6[_0x445c9c(0x31e)][_0x445c9c(0x2ee)]:{let _0x48d8d1=_0x2d0ed8[_0x445c9c(0x20a)];return{..._0x2d0ed8,'data':_0x48d8d1,'cmd':_0x2d0ed8['cmd']};}case _0x121aa6[_0x445c9c(0x31e)][_0x445c9c(0x1ea)]:{let _0x347dc2=_0x2d0ed8[_0x445c9c(0xba)];switch(_0x347dc2[_0x445c9c(0x1ff)]){case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x2de)]:var _0x5ac23c;return{..._0x2d0ed8,'data':{..._0x347dc2,'data':(_0x5ac23c=_0x347dc2[_0x445c9c(0x16f)])==null?void 0x0:_0x5ac23c['cs']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)]['CHANGESET_ACK']:var _0x275506;return{..._0x2d0ed8,'data':{..._0x347dc2,'data':(_0x275506=_0x347dc2[_0x445c9c(0x3d6)])==null?void 0x0:_0x275506['cs']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x203)]:var _0x2536ea;return{..._0x2d0ed8,'data':{..._0x347dc2,'data':(_0x2536ea=_0x347dc2[_0x445c9c(0x372)])==null?void 0x0:_0x2536ea['cs']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0xfa)]:var _0x52e789;return{..._0x2d0ed8,'data':{..._0x347dc2,'data':(_0x52e789=_0x347dc2[_0x445c9c(0x3b8)])==null?void 0x0:_0x52e789['cs']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x2ac)]:var _0x28461c;return{..._0x2d0ed8,'data':{..._0x347dc2,'data':(_0x28461c=_0x347dc2[_0x445c9c(0x297)])==null?void 0x0:_0x28461c['cs']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf['CollaborationEvent'][_0x445c9c(0x10e)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x34e)]},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf['CollaborationEvent'][_0x445c9c(0x25b)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2['joinEvent']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x121)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x2c9)]},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x1d3)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2['liveShareNewHost']},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf['CollaborationEvent'][_0x445c9c(0x2d3)]:case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x169)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x1f8)]},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x30d)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x294)]},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0xc3)]:return{..._0x2d0ed8,'data':_0x347dc2,'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x311)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x2a8)]},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)][_0x445c9c(0x1dc)]:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0xcb)]},'cmd':_0x2d0ed8[_0x445c9c(0x270)]};case _0x597ddf[_0x445c9c(0xf9)]['SHOULD_CLOSE_CONN']:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x247)]},'cmd':_0x2d0ed8['cmd']};case _0x597ddf[_0x445c9c(0xf9)]['UNISCRIPT_RUN']:return{..._0x2d0ed8,'data':{..._0x347dc2,'data':_0x347dc2[_0x445c9c(0x1e6)]},'cmd':_0x2d0ed8['cmd']};default:return _0x2d0ed8;}}default:return _0x2d0ed8;}}function _0x14d4cf(_0x35052d){const _0x568148=_0x3c7add;switch(_0x35052d[_0x568148(0x270)]){case _0x121aa6[_0x568148(0x31e)]['HEARTBEAT']:case _0x121aa6[_0x568148(0x31e)][_0x568148(0x37f)]:return JSON[_0x568148(0x265)]({'cmd':_0x35052d[_0x568148(0x270)],'routeKey':_0x35052d[_0x568148(0x124)]});case _0x121aa6[_0x568148(0x31e)]['INGEST']:{let _0x4c6875;switch(_0x35052d['data'][_0x568148(0x1ff)]){case _0x597ddf[_0x568148(0xf9)][_0x568148(0x10e)]:_0x4c6875={'eventID':_0x597ddf[_0x568148(0xf9)][_0x568148(0x10e)],'updateCursorEvent':_0x35052d[_0x568148(0x37e)]['data']};break;case _0x597ddf['CollaborationEvent'][_0x568148(0x121)]:_0x4c6875={'eventID':_0x597ddf['CollaborationEvent'][_0x568148(0x121)],'leaveEvent':_0x35052d[_0x568148(0x37e)]['data']};break;case _0x597ddf[_0x568148(0xf9)]['USERS_ENTER']:_0x4c6875={'eventID':_0x597ddf['CollaborationEvent'][_0x568148(0x25b)],'joinEvent':_0x35052d['data'][_0x568148(0x37e)]};break;case _0x597ddf[_0x568148(0xf9)][_0x568148(0x1d3)]:_0x4c6875={'eventID':_0x597ddf[_0x568148(0xf9)][_0x568148(0x1d3)],'liveShareNewHost':_0x35052d[_0x568148(0x37e)][_0x568148(0x37e)]};break;case _0x597ddf[_0x568148(0xf9)][_0x568148(0x169)]:_0x4c6875={'eventID':_0x597ddf['CollaborationEvent'][_0x568148(0x169)],'liveShareOperation':_0x35052d[_0x568148(0x37e)]['data']};break;case _0x597ddf[_0x568148(0xf9)][_0x568148(0x30d)]:_0x4c6875={'eventID':_0x597ddf['CollaborationEvent']['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x35052d['data']['data']};break;case _0x597ddf[_0x568148(0xf9)][_0x568148(0x11d)]:_0x4c6875={'eventID':_0x597ddf[_0x568148(0xf9)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x35052d[_0x568148(0x37e)][_0x568148(0x37e)]};break;case _0x597ddf[_0x568148(0xf9)][_0x568148(0x2d3)]:_0x4c6875={'eventID':_0x597ddf['CollaborationEvent'][_0x568148(0x2d3)]};break;default:_0x4c6875={'eventID':_0x35052d['data'][_0x568148(0x1ff)]};}return JSON['stringify']({'cmd':_0x35052d[_0x568148(0x270)],'routeKey':_0x35052d['routeKey'],'collaMsg':_0x4c6875});}case _0x121aa6['CombCmd']['JOIN']:return JSON[_0x568148(0x265)]({'cmd':_0x35052d[_0x568148(0x270)],'routeKey':_0x35052d['routeKey'],'joinReq':_0x35052d[_0x568148(0x37e)]});case _0x121aa6[_0x568148(0x31e)]['LEAVE']:return JSON[_0x568148(0x265)]({'cmd':_0x35052d['cmd'],'routeKey':_0x35052d[_0x568148(0x124)],'leaveReq':_0x35052d[_0x568148(0x37e)]});default:throw Error(_0x568148(0x152));}}let _0x2a6fcc=(0x0,_0x4f2fc5[_0x3c7add(0x267)])(_0x3c7add(0xf4));function _0x3793af(_0x5c2963,_0x5da71a,_0x20b05b){const _0x49e4ca=_0x3c7add;return _0x5c2963+'/'+_0x5da71a+_0x49e4ca(0x221)+_0x20b05b+_0x49e4ca(0x30b);}let _0x3d275e=class extends _0x4f2fc5[_0x3c7add(0x210)]{constructor(_0x55c490,_0x2456df,_0x53b2c0,_0x12be80,_0x413a9b){const _0x275b85=_0x3c7add;super(),this[_0x275b85(0x37b)]=_0x55c490,this['_httpService']=_0x2456df,this[_0x275b85(0x33c)]=_0x53b2c0,this[_0x275b85(0x10b)]=_0x12be80,this[_0x275b85(0x10a)]=_0x413a9b;}[_0x3c7add(0x263)](_0x4c2576){const _0x5f38b3=_0x3c7add;let _0x49cac4=this[_0x5f38b3(0x37b)]['get'](_0x4fa7e8[_0x5f38b3(0x148)]);if(!_0x49cac4)throw Error(_0x5f38b3(0x117));let _0x4b02d1=_0x49cac4[_0x5f38b3(0x15e)](_0x4c2576);if(!_0x4b02d1)throw Error(_0x5f38b3(0x281));let _0x16b2de=new _0x4f2fc5[(_0x5f38b3(0x12b))](),_0x5c0da9=new _0x196a42[(_0x5f38b3(0x274))]();_0x16b2de[_0x5f38b3(0x32a)](_0x4b02d1[_0x5f38b3(0x113)]['subscribe'](_0x430085=>_0x5c0da9[_0x5f38b3(0x232)](_0x430085))),_0x16b2de[_0x5f38b3(0x32a)]((0x0,_0x4f2fc5[_0x5f38b3(0x164)])(()=>_0x5c0da9[_0x5f38b3(0x2fd)]()));let _0x88b6f3=new _0x196a42[(_0x5f38b3(0x274))]();_0x16b2de[_0x5f38b3(0x32a)](_0x4b02d1[_0x5f38b3(0x1bc)][_0x5f38b3(0x237)](_0x242a5c=>_0x88b6f3[_0x5f38b3(0x232)](_0x242a5c))),_0x16b2de[_0x5f38b3(0x32a)]((0x0,_0x4f2fc5[_0x5f38b3(0x164)])(()=>_0x88b6f3['complete']()));let _0x4fe0aa=new _0x196a42[(_0x5f38b3(0x274))]();_0x16b2de['add'](_0x4b02d1[_0x5f38b3(0x31b)][_0x5f38b3(0x237)](_0x15af2b=>{let _0x1530d1=_0x3e0e79(_0x15af2b);_0x4fe0aa['next'](_0x1530d1);})),_0x16b2de[_0x5f38b3(0x32a)]((0x0,_0x4f2fc5[_0x5f38b3(0x164)])(()=>_0x4fe0aa['complete']()));let _0x20d8b5,_0x25de0c=()=>{const _0x187d93=_0x5f38b3;_0x88b6f3[_0x187d93(0x232)](new Event(_0x187d93(0x20b))),_0x5c0da9[_0x187d93(0x232)](new Event(_0x187d93(0x20b))),_0x20d8b5['close']();};return _0x20d8b5={'memberID':'','close$':_0x5c0da9[_0x5f38b3(0xc6)](),'error$':_0x88b6f3[_0x5f38b3(0xc6)](),'open$':_0x4b02d1['open$'],'message$':_0x4fe0aa[_0x5f38b3(0xc6)](),'send':_0xb2a1c=>{const _0x4b91a1=_0x5f38b3;if(_0xb2a1c[_0x4b91a1(0x270)]===_0x121aa6[_0x4b91a1(0x31e)][_0x4b91a1(0x132)]){if(_0xb2a1c[_0x4b91a1(0x37e)]['eventID']===_0x597ddf[_0x4b91a1(0xf9)]['SUBMIT_CHANGESET']){this[_0x4b91a1(0x292)](_0x20d8b5,_0xb2a1c['data'])[_0x4b91a1(0x1cf)](_0x29d988=>{const _0x32a56b=_0x4b91a1;this[_0x32a56b(0x10b)][_0x32a56b(0x1f0)](_0x29d988),_0x25de0c();});return;}if(_0xb2a1c[_0x4b91a1(0x37e)][_0x4b91a1(0x1ff)]===_0x597ddf[_0x4b91a1(0xf9)][_0x4b91a1(0x1f4)]){let _0x37cf54=_0xb2a1c[_0x4b91a1(0x37e)];this[_0x4b91a1(0x327)](_0x37cf54)['then'](_0x1dbc33=>{const _0x45044b=_0x4b91a1;_0x4fe0aa[_0x45044b(0x232)]({'cmd':_0x121aa6[_0x45044b(0x31e)]['RECV'],'code':_0x121aa6[_0x45044b(0x3c2)]['OK'],'routeKey':_0x37cf54[_0x45044b(0x37e)][_0x45044b(0x11a)],'routeType':'','data':{'eventID':_0x597ddf[_0x45044b(0xf9)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x1dbc33}}});})[_0x4b91a1(0x1cf)](_0x56bb99=>{const _0x5c469c=_0x4b91a1;this[_0x5c469c(0x10b)][_0x5c469c(0x1f0)](_0x56bb99),_0x25de0c();});return;}}_0x4b02d1[_0x4b91a1(0x19b)](_0x14d4cf(_0xb2a1c));},'close':()=>{const _0x5d01fe=_0x5f38b3;_0x4b02d1[_0x5d01fe(0x180)](),_0x16b2de[_0x5d01fe(0x202)]();}},_0x20d8b5;}async[_0x3c7add(0x292)](_0x44ea15,_0x39e1ea){const _0x150d69=_0x3c7add;var _0x5d4518;let {unitType:_0x3e6c95,unitID:_0x5ed177,changeset:_0x3179de}=_0x39e1ea['data'],_0x4d8a1a={'unitID':_0x5ed177,'memberID':_0x44ea15[_0x150d69(0x26c)],'type':_0x3e6c95,'changeset':(0x0,_0x597ddf[_0x150d69(0x35d)])(_0x3179de)},_0x2db35a=this[_0x150d69(0x33c)]['getConfig'](_0x11e35b),_0x1c347f=_0x3793af((_0x5d4518=_0x2db35a==null?void 0x0:_0x2db35a[_0x150d69(0x1ed)])==null?_0x150d69(0x217):_0x5d4518,_0x3e6c95,_0x5ed177);try{await this[_0x150d69(0x16a)][_0x150d69(0x3d8)](_0x1c347f,{'body':_0x4d8a1a});}catch(_0x5886a1){throw this[_0x150d69(0x10b)][_0x150d69(0x1f0)](_0x150d69(0x38c),_0x150d69(0x362)),_0x5886a1;}}async[_0x3c7add(0x327)](_0x151f77){const _0xc5707b=_0x3c7add;let {unitID:_0x14bcea,from:_0x3e9b16,to:_0x3031c0,unitType:_0x3cd102}=_0x151f77[_0xc5707b(0x37e)];return(await this[_0xc5707b(0x10a)][_0xc5707b(0x303)]({'metadata':void 0x0},{'unitID':_0x14bcea,'type':_0x3cd102,'from':_0x3e9b16,'to':_0x3031c0}))[_0xc5707b(0x1a8)]['map'](_0x50f455=>((_0x50f455['mutations']===null||_0x50f455['mutations']===void 0x0)&&(_0x50f455[_0xc5707b(0x1eb)]=[]),_0x50f455));}};_0x3d275e=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x1,(0x0,_0x4f2fc5['Inject'])(_0x4fa7e8[_0x3c7add(0xf3)])),_0x78c766(0x2,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0x3,_0x4f2fc5['ILogService']),_0x78c766(0x4,_0x597ddf['ISnapshotServerService'])],_0x3d275e);let _0x5af92e=class extends _0x4f2fc5[_0x3c7add(0x210)]{get[_0x3c7add(0x1f1)](){const _0x556dcc=_0x3c7add;return this['_socket$'][_0x556dcc(0x2ae)]();}constructor(_0x28ef67,_0x45c9fd,_0x1c0f51,_0x40bbdd,_0x29e443,_0x56f733){const _0x3b0cf4=_0x3c7add;super(),this['_injector']=_0x28ef67,this[_0x3b0cf4(0x10b)]=_0x45c9fd,this[_0x3b0cf4(0x33c)]=_0x1c0f51,this[_0x3b0cf4(0x20d)]=_0x40bbdd,this[_0x3b0cf4(0x264)]=_0x29e443,this[_0x3b0cf4(0x2ce)]=_0x56f733,_0x45730e(this,'_socket$',new _0x196a42[(_0x3b0cf4(0x2cc))](void 0x0)),_0x45730e(this,_0x3b0cf4(0x2b8),this[_0x3b0cf4(0x1f9)][_0x3b0cf4(0xc6)]()),_0x45730e(this,_0x3b0cf4(0x205),null),_0x45730e(this,_0x3b0cf4(0x341),new Map()),_0x45730e(this,_0x3b0cf4(0x196),new _0x196a42[(_0x3b0cf4(0x2cc))](0x0)),_0x45730e(this,_0x3b0cf4(0xe3),this['_status$'][_0x3b0cf4(0xc6)]()),_0x45730e(this,_0x3b0cf4(0x272),!0x1),_0x45730e(this,_0x3b0cf4(0xe1),void 0x0),_0x45730e(this,'_retryCount',0x0),_0x45730e(this,_0x3b0cf4(0x235),null),_0x45730e(this,_0x3b0cf4(0x399),void 0x0),_0x45730e(this,_0x3b0cf4(0x355),void 0x0),this[_0x3b0cf4(0x13e)]();}['_listenToNetworkCondition'](){const _0x276157=_0x3c7add;this[_0x276157(0x2ce)]&&this[_0x276157(0x3b1)](this[_0x276157(0x2ce)]['online$'][_0x276157(0x237)](_0x47c50e=>{const _0x2d1078=_0x276157;_0x47c50e&&!this['_socket']&&this[_0x2d1078(0x109)](),_0x47c50e||this[_0x2d1078(0x3a6)]();}));}[_0x3c7add(0x202)](){const _0x395c48=_0x3c7add;var _0x40ebda;super[_0x395c48(0x202)](),(_0x40ebda=this[_0x395c48(0x235)])==null||_0x40ebda[_0x395c48(0x248)](),this[_0x395c48(0x235)]=null,this['_clearRetryConnectingTimer'](),this[_0x395c48(0x345)](),this[_0x395c48(0x136)](),this['_sessions'][_0x395c48(0x253)](_0x26e59b=>_0x26e59b['dispose']()),this['_sessions']['clear'](),this[_0x395c48(0x196)][_0x395c48(0x2fd)]();}async[_0x3c7add(0x249)](_0x52d6c4){const _0x3c0825=_0x3c7add;if(this[_0x3c0825(0x341)][_0x3c0825(0x22a)](_0x52d6c4))return this[_0x3c0825(0x341)][_0x3c0825(0x1fd)](_0x52d6c4);this[_0x3c0825(0x144)]();let _0x1de8d6=this[_0x3c0825(0x37b)]['createInstance'](_0x1d1b7a,_0x52d6c4,this['_socket$']['asObservable']());return this['_sessions']['set'](_0x52d6c4,_0x1de8d6),_0x1de8d6;}[_0x3c7add(0x32c)](_0x184629){const _0xbbc9ba=_0x3c7add;let _0x5422d7=this[_0xbbc9ba(0x341)][_0xbbc9ba(0x1fd)](_0x184629);if(_0x5422d7&&(this[_0xbbc9ba(0x341)][_0xbbc9ba(0x25a)](_0x184629),_0x5422d7[_0xbbc9ba(0x180)]()),!this[_0xbbc9ba(0x341)][_0xbbc9ba(0x2c3)]){var _0x2eab29;(_0x2eab29=this['_socket'])==null||_0x2eab29['close']();}}[_0x3c7add(0x109)](){const _0x57dc39=_0x3c7add;this[_0x57dc39(0x36a)]=0x0,this[_0x57dc39(0x381)](),this[_0x57dc39(0x19d)]();}[_0x3c7add(0x381)](){const _0x2f84a8=_0x3c7add;this['_retryConnectingTimer']!=null&&(clearTimeout(this[_0x2f84a8(0xe1)]),this[_0x2f84a8(0xe1)]=null);}async[_0x3c7add(0x285)](){const _0x56e107=_0x3c7add;var _0xd6198d;let _0x247529=this[_0x56e107(0x33c)][_0x56e107(0x1e1)](_0x11e35b),_0x2c5c71=(_0xd6198d=_0x247529==null?void 0x0:_0x247529[_0x56e107(0x34c)])==null?_0x40bad1:_0xd6198d,_0x1aeae3=await this[_0x56e107(0x20d)]['createSocket'](_0x2c5c71);return this['_candidateSocket']=_0x1aeae3,_0x1aeae3;}async[_0x3c7add(0x144)](){const _0x5953cc=_0x3c7add;try{var _0x648c01,_0x3af9ab;let _0x1d4a7e=(_0x648c01=(_0x3af9ab=this[_0x5953cc(0x1f1)])==null?this[_0x5953cc(0x205)]:_0x3af9ab)==null?await this[_0x5953cc(0x285)]():_0x648c01;if(_0x1d4a7e){var _0x5751bf;let _0x22910a=_0x1d4a7e[_0x5953cc(0x19b)];_0x1d4a7e[_0x5953cc(0x19b)]=_0xaa11f0=>(_0xaa11f0[_0x5953cc(0x270)]!==_0x121aa6[_0x5953cc(0x31e)][_0x5953cc(0xe8)]&&this[_0x5953cc(0x349)](),_0x22910a['apply'](_0x1d4a7e,[_0xaa11f0])),(_0x5751bf=this['_socketMessageSubscription'])==null||_0x5751bf[_0x5953cc(0x248)](),this['_socketMessageSubscription']=null,this['_socketMessageSubscription']=_0x1d4a7e[_0x5953cc(0x31b)][_0x5953cc(0x237)](_0x361ee9=>this[_0x5953cc(0x1c2)](_0x1d4a7e,_0x361ee9)),_0x1d4a7e[_0x5953cc(0x1bc)][_0x5953cc(0x397)]((0x0,_0x5c83a6['take'])(0x1))[_0x5953cc(0x237)](_0x36ddc4=>this[_0x5953cc(0x10b)]['error'](_0x5953cc(0x150),_0x36ddc4)),_0x1d4a7e[_0x5953cc(0x280)][_0x5953cc(0x397)]((0x0,_0x5c83a6['take'])(0x1))[_0x5953cc(0x237)](()=>{const _0x42e0b0=_0x5953cc;this[_0x42e0b0(0x234)](_0x1d4a7e);}),_0x1d4a7e[_0x5953cc(0x113)]['pipe']((0x0,_0x5c83a6[_0x5953cc(0x2a7)])(0x1))[_0x5953cc(0x237)](_0x43e0f3=>{const _0x36f05f=_0x5953cc;this[_0x36f05f(0x10b)][_0x36f05f(0x2ec)](_0x36f05f(0x23a),_0x36f05f(0x24d),_0x43e0f3),this[_0x36f05f(0x2bd)]();});}}catch(_0x4d876e){this[_0x5953cc(0x10b)][_0x5953cc(0x1f0)](_0x4d876e),this['_onConnectionFailed']();}}[_0x3c7add(0x234)](_0x4f1237){const _0x375c02=_0x3c7add;this[_0x375c02(0x10b)]['debug'](_0x375c02(0x23a),_0x375c02(0x27e)),_0x4f1237[_0x375c02(0x19b)]({'cmd':_0x121aa6[_0x375c02(0x31e)][_0x375c02(0x37f)]}),this[_0x375c02(0x349)]();}[_0x3c7add(0x3a6)](){const _0x24ac41=_0x3c7add;this[_0x24ac41(0x272)]=!0x1,this[_0x24ac41(0x205)]=null,this[_0x24ac41(0x196)][_0x24ac41(0x232)](0x2),this[_0x24ac41(0x1f9)]['next'](null),this['_clearTimeoutTimer'](),this[_0x24ac41(0x136)]();}['_onConnectionFailed'](){const _0x397400=_0x3c7add;var _0xaa8f57;this[_0x397400(0x3a6)](),this['_retryCount']<((_0xaa8f57=this['_configService'][_0x397400(0x1e1)](_0x397400(0x177)))==null?0x3:_0xaa8f57)?(this[_0x397400(0x264)][_0x397400(0x365)]({'id':'SOCKET_FAILED_RETRY'}),this[_0x397400(0x19d)]()):this['_collaborationUIEventService']['emitEvent']({'id':_0x397400(0x278)});}[_0x3c7add(0x19d)](){const _0x3a76ad=_0x3c7add;var _0x41943f;let _0x25f51b=this[_0x3a76ad(0x36a)],_0x5491a1=this[_0x3a76ad(0x33c)][_0x3a76ad(0x1e1)](_0x11e35b),_0x461f61=_0x25f51b===0x0?0x0:((_0x41943f=_0x5491a1==null?void 0x0:_0x5491a1[_0x3a76ad(0x1d1)])==null?0x4e20:_0x41943f)*0x2**_0x25f51b;this[_0x3a76ad(0xe1)]=setTimeout(()=>{const _0x2ea83b=_0x3a76ad;clearTimeout(this['_retryConnectingTimer']),this[_0x2ea83b(0xe1)]=null,this['_tryEnsureSocket']();},_0x461f61),this['_retryCount']+=0x1;}[_0x3c7add(0x1c2)](_0x432ce1,_0x3f9716){const _0x221b0e=_0x3c7add;let {cmd:_0x5db2a0}=_0x3f9716;_0x5db2a0===_0x121aa6[_0x221b0e(0x31e)]['HELLO']&&!this[_0x221b0e(0x272)]&&(_0x432ce1['memberID']=_0x3f9716['data'][_0x221b0e(0x26c)],this[_0x221b0e(0x1f9)]['next'](_0x432ce1),this[_0x221b0e(0x196)]['next'](0x3),this[_0x221b0e(0x272)]=!0x0,this[_0x221b0e(0x205)]=null),_0x5db2a0===_0x121aa6[_0x221b0e(0x31e)][_0x221b0e(0x3b0)]&&this['_clearTimeoutTimer'](),this[_0x221b0e(0x349)]();}['_rescheduleHeartbeat'](){const _0x24ff2e=_0x3c7add;var _0x33ef73;this[_0x24ff2e(0x136)](),this[_0x24ff2e(0x399)]=setTimeout(()=>this[_0x24ff2e(0x135)](),(_0x33ef73=this['_configService'][_0x24ff2e(0x1e1)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x33ef73);}[_0x3c7add(0x135)](){const _0x390646=_0x3c7add;this['_socket'][_0x390646(0x19b)]({'cmd':_0x121aa6['CombCmd'][_0x390646(0x3b0)]}),this[_0x390646(0x2d8)]();}['_waitForHeartbeatResponse'](){const _0x563af6=_0x3c7add;var _0x5044bb;this[_0x563af6(0x355)]=setTimeout(()=>this[_0x563af6(0x2bd)](),(_0x5044bb=this[_0x563af6(0x33c)][_0x563af6(0x1e1)](_0x563af6(0xf2)))==null?_0x887dad:_0x5044bb);}[_0x3c7add(0x136)](){const _0x49f15c=_0x3c7add;this['_sendHeartbeatTimer']!=null&&(clearTimeout(this[_0x49f15c(0x399)]),this[_0x49f15c(0x399)]=null);}[_0x3c7add(0x345)](){const _0x4c20c5=_0x3c7add;this[_0x4c20c5(0x355)]!=null&&(clearTimeout(this['_timeoutTimer']),this[_0x4c20c5(0x355)]=null);}};_0x5af92e=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x1,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0x2,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0x3,_0x2a6fcc),_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x20d828)),_0x78c766(0x5,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x5984c8))],_0x5af92e);let _0x384fde=class extends _0x4f2fc5[_0x3c7add(0x145)]{constructor(_0x593810,_0x1f3308,_0x211beb,_0x2171e6){const _0x5d8a39=_0x3c7add;var _0x466ee5;super(),this[_0x5d8a39(0x37b)]=_0x593810,this['_collabSessionService']=_0x1f3308,this[_0x5d8a39(0x33c)]=_0x211beb,this[_0x5d8a39(0x243)]=_0x2171e6,_0x45730e(this,_0x5d8a39(0x394),new Map()),_0x45730e(this,_0x5d8a39(0x31c),new _0x196a42[(_0x5d8a39(0x274))]()),_0x45730e(this,'entityInit$',this['_entityInit$'][_0x5d8a39(0xc6)]()),((_0x466ee5=this[_0x5d8a39(0x33c)][_0x5d8a39(0x1e1)](_0x5d8a39(0x293)))==null?void 0x0:_0x466ee5[_0x5d8a39(0x339)])!==!0x1&&this[_0x5d8a39(0x37a)]();}[_0x3c7add(0x202)](){const _0x35f511=_0x3c7add;super[_0x35f511(0x202)](),this[_0x35f511(0x394)][_0x35f511(0x253)](_0x4997c8=>_0x4997c8[_0x35f511(0x202)]()),this['_entities'][_0x35f511(0x1d7)]();}[_0x3c7add(0x351)](_0x5d0143){const _0x227f3a=_0x3c7add;var _0x362898;return(_0x362898=this[_0x227f3a(0x394)][_0x227f3a(0x1fd)](_0x5d0143))==null?null:_0x362898;}['getCollabEntity$'](_0x5b492e){const _0x376a63=_0x3c7add;let _0x593e11=this[_0x376a63(0x351)](_0x5b492e);return _0x593e11?(0x0,_0x196a42['of'])(_0x593e11):this[_0x376a63(0x31c)][_0x376a63(0x397)]((0x0,_0x5c83a6[_0x376a63(0x143)])(_0x1f865a=>_0x1f865a[_0x376a63(0x11a)]===_0x5b492e));}[_0x3c7add(0xbd)](_0x2f3423){const _0x558ff5=_0x3c7add;return(0x0,_0x196a42[_0x558ff5(0x21c)])(this[_0x558ff5(0x240)](_0x2f3423)[_0x558ff5(0x397)]((0x0,_0x5c83a6[_0x558ff5(0x192)])(()=>void 0x0)));}[_0x3c7add(0x37a)](){const _0x5cbc1f=_0x3c7add;this['_univerInstanceService'][_0x5cbc1f(0x373)](_0x4f2fc5[_0x5cbc1f(0x22e)]['UNIVER_SHEET'])[_0x5cbc1f(0x397)]((0x0,_0x196a42[_0x5cbc1f(0x1fa)])(this[_0x5cbc1f(0x163)]),(0x0,_0x5c83a6[_0x5cbc1f(0x2a5)])(0x10))[_0x5cbc1f(0x237)](async _0x2b6d1f=>{const _0x4cf4ed=_0x5cbc1f;let _0x282161=_0x2b6d1f['unit']['getUnitId'](),_0x1be127=await this['_startCollaboration'](_0x282161,_0x4f2fc5[_0x4cf4ed(0x22e)][_0x4cf4ed(0x2a4)]);this[_0x4cf4ed(0x394)][_0x4cf4ed(0x38b)](_0x282161,_0x1be127);}),this[_0x5cbc1f(0x243)]['getTypeOfUnitAdded$'](_0x4f2fc5['UniverInstanceType'][_0x5cbc1f(0x2d5)])[_0x5cbc1f(0x397)]((0x0,_0x196a42[_0x5cbc1f(0x1fa)])(this[_0x5cbc1f(0x163)]),(0x0,_0x5c83a6[_0x5cbc1f(0x2a5)])(0x10))[_0x5cbc1f(0x397)]((0x0,_0x5c83a6['filter'])(_0x1c8590=>!_0x1c8590[_0x5cbc1f(0x1f3)][_0x5cbc1f(0x21a)]()[_0x5cbc1f(0x3de)]('__')))[_0x5cbc1f(0x237)](async _0x4dd144=>{const _0x382499=_0x5cbc1f;let _0x35cd51=_0x4dd144[_0x382499(0x1f3)][_0x382499(0x21a)](),_0x169746=await this[_0x382499(0x206)](_0x35cd51,_0x4f2fc5[_0x382499(0x22e)][_0x382499(0x2d5)]);this[_0x382499(0x394)][_0x382499(0x38b)](_0x35cd51,_0x169746);}),(0x0,_0x196a42[_0x5cbc1f(0x1b5)])(this[_0x5cbc1f(0x243)][_0x5cbc1f(0x1b0)](_0x4f2fc5[_0x5cbc1f(0x22e)][_0x5cbc1f(0x2a4)]),this[_0x5cbc1f(0x243)]['getTypeOfUnitDisposed$'](_0x4f2fc5[_0x5cbc1f(0x22e)]['UNIVER_DOC']))[_0x5cbc1f(0x397)]((0x0,_0x196a42['takeUntil'])(this[_0x5cbc1f(0x163)]))[_0x5cbc1f(0x237)](_0xc2f3a8=>{const _0x3c450b=_0x5cbc1f;let _0x2cc0ba=_0xc2f3a8[_0x3c450b(0x21a)](),_0x3306e1=this[_0x3c450b(0x394)][_0x3c450b(0x1fd)](_0x2cc0ba);_0x3306e1&&(_0x3306e1['dispose'](),this[_0x3c450b(0x394)][_0x3c450b(0x25a)](_0x2cc0ba));});}async[_0x3c7add(0x206)](_0x39f7bb,_0x218f24){const _0x2853bd=_0x3c7add;let _0x17f534=await this[_0x2853bd(0x1aa)]['requireSession'](_0x39f7bb),_0x142b22=this[_0x2853bd(0x37b)][_0x2853bd(0x242)](this['_getCtorByUniverInstanceType'](_0x218f24),_0x39f7bb,_0x218f24,_0x17f534);return await _0x142b22['init'](),this[_0x2853bd(0x31c)][_0x2853bd(0x232)](_0x142b22),_0x142b22;}['_getCtorByUniverInstanceType'](_0x248c5a){const _0x2126be=_0x3c7add;switch(_0x248c5a){case _0x4f2fc5[_0x2126be(0x22e)][_0x2126be(0x2d5)]:return _0x44307b;case _0x4f2fc5[_0x2126be(0x22e)][_0x2126be(0x2a4)]:return _0xb49add;default:throw Error(_0x2126be(0x28a)+_0x248c5a);}}};_0x384fde=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['Injector'])),_0x78c766(0x1,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x5af92e)),_0x78c766(0x2,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0x3,_0x4f2fc5[_0x3c7add(0x1d0)])],_0x384fde);var _0x34e3ba=_0x3c7add(0x369),_0x3d82eb=_0x3c7add(0x119);let _0x5a42c3=class extends _0x4f2fc5[_0x3c7add(0x210)]{constructor(_0x2fe014,_0x36383c){const _0x42241c=_0x3c7add;super(),this[_0x42241c(0x243)]=_0x2fe014,this['_configService']=_0x36383c,this[_0x42241c(0x37a)]();}[_0x3c7add(0x37a)](){const _0x5061c7=_0x3c7add;this['disposeWithMe'](this[_0x5061c7(0x243)][_0x5061c7(0x371)][_0x5061c7(0x237)](()=>{const _0x55a40d=_0x5061c7;var _0x2a04bb;let _0x348823=this[_0x55a40d(0x243)]['getFocusedUnit'](),_0xf94cb6=(_0x2a04bb=this[_0x55a40d(0x33c)][_0x55a40d(0x1e1)](_0x55a40d(0x3d2)))==null?'Univer':_0x2a04bb;_0x348823 instanceof _0x4f2fc5[_0x55a40d(0x12f)]&&(_0xf94cb6=_0x348823[_0x55a40d(0x3ca)]),document[_0x55a40d(0x329)]=_0xf94cb6;}));}};_0x5a42c3=_0x38f352([_0x78c766(0x0,_0x4f2fc5['IUniverInstanceService']),_0x78c766(0x1,_0x4f2fc5['IConfigService'])],_0x5a42c3);let _0x3b4d7a=class{constructor(_0x3ace1d,_0x1a6353,_0x23d0ee){const _0x4b5c40=_0x3c7add;this[_0x4b5c40(0x33c)]=_0x3ace1d,this[_0x4b5c40(0x16a)]=_0x1a6353,this[_0x4b5c40(0x227)]=_0x23d0ee,this['init']();}[_0x3c7add(0x19f)](){const _0x45a014=_0x3c7add;this[_0x45a014(0x16a)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x1d24ad,_0x34cea2)=>_0x34cea2(_0x1d24ad)[_0x45a014(0x397)]((0x0,_0x196a42[_0x45a014(0x3d9)])(async _0x141281=>{const _0x419bde=_0x45a014;let _0x2564e1=_0x141281;if(_0x2564e1['status']===0x191){if(typeof window>'u')throw Error(_0x419bde(0x213));if(window[_0x419bde(0x2fa)](this[_0x419bde(0x227)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x4fff48=window['encodeURIComponent'](window[_0x419bde(0x33d)][_0x419bde(0x236)]);window[_0x419bde(0x33d)][_0x419bde(0x236)]=this[_0x419bde(0x2e0)]()+_0x419bde(0x102)+_0x4fff48;}}return _0x2564e1;}))});}[_0x3c7add(0x2e0)](){const _0x2a59ba=_0x3c7add;var _0x567681;let _0x14f5d3=this[_0x2a59ba(0x33c)][_0x2a59ba(0x1e1)](_0x11e35b);return(_0x567681=_0x14f5d3==null?void 0x0:_0x14f5d3[_0x2a59ba(0x1ae)])==null?_0x2a59ba(0x154):_0x567681;}};_0x3b4d7a=_0x38f352([_0x78c766(0x0,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0x1,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4fa7e8[_0x3c7add(0xf3)])),_0x78c766(0x2,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['LocaleService']))],_0x3b4d7a);let _0x510ca4=class extends _0x4f2fc5[_0x3c7add(0x210)]{constructor(_0x3ef376,_0x5835e3){const _0x256ae1=_0x3c7add;super(),this[_0x256ae1(0x137)]=_0x3ef376,this[_0x256ae1(0x33c)]=_0x5835e3,_0x45730e(this,_0x256ae1(0x2c4),!0x1),this[_0x256ae1(0x199)]();}[_0x3c7add(0x199)](){const _0xa93e6f=_0x3c7add;let _0x557812=this;this['disposeWithMe'](this[_0xa93e6f(0x137)][_0xa93e6f(0x26a)]({'priority':0x3e7,'interceptor':(0x0,_0x4fa7e8[_0xa93e6f(0x328)])({'isMatch'(_0x1b6aad){const _0x3eefec=_0xa93e6f;var _0x358b84;if(_0x1b6aad[_0x3eefec(0x33a)]==='POST'&&(_0x358b84=_0x1b6aad['requestParams'])!=null&&_0x358b84[_0x3eefec(0xc1)]){let {objectID:_0xf73e24,objectType:_0x1dfaa4}=_0x1b6aad['requestParams'][_0x3eefec(0xc1)]||{};if(!_0xf73e24||_0x1dfaa4===void 0x0)return!0x1;let _0x522105=_0x557812[_0x3eefec(0x352)]()+'/'+_0x1dfaa4+_0x3eefec(0x2b6)+_0xf73e24+_0x3eefec(0x367);if(_0x1b6aad['url']===_0x522105)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3035f1){const _0x19c221=_0xa93e6f;var _0x27a7ff;return(_0x27a7ff=_0x3035f1[_0x19c221(0x2b1)])==null?void 0x0:_0x27a7ff['body'];},'mergeParamsToRequest'(_0x4420e5,_0x4f5a94){const _0x3deac8=_0xa93e6f;let _0x2125b4=_0x557812[_0x3deac8(0x352)]()+'/-/object/-/batch_allowed',_0x79f20d=_0x4420e5[_0x3deac8(0x1c5)]((_0x2b4c56,_0x81228e)=>{const _0x114b60=_0x3deac8;let {unitID:_0x2f65d2,objectID:_0x229d9e,objectType:_0x46af6e,actions:_0x4da552}=_0x81228e;return _0x2b4c56[_0x2f65d2]||(_0x2b4c56[_0x2f65d2]={}),_0x2b4c56[_0x2f65d2][_0x229d9e]||(_0x2b4c56[_0x2f65d2][_0x229d9e]={'objectID':_0x229d9e,'objectType':_0x46af6e,'actions':[]}),_0x2b4c56[_0x2f65d2][_0x229d9e][_0x114b60(0xe5)][_0x114b60(0x26e)](..._0x4da552),_0x2b4c56;},{}),_0x36e86a=[];for(let _0x16af7d in _0x79f20d)for(let _0x10d5fe in _0x79f20d[_0x16af7d]){let {actions:_0x6119d,objectType:_0x237861}=_0x79f20d[_0x16af7d][_0x10d5fe],_0x849b5b=[...new Set(_0x6119d)];_0x36e86a['push']({'unitID':_0x16af7d,'objectID':_0x10d5fe,'objectType':_0x237861,'actions':_0x849b5b});}return new _0x4fa7e8[(_0x3deac8(0x1b2))](_0x3deac8(0x389),_0x2125b4,{'headers':_0x4f5a94[_0x3deac8(0x2e8)],'withCredentials':_0x4f5a94[_0x3deac8(0x15f)],'responseType':_0x4f5a94[_0x3deac8(0x342)],'body':{'requests':_0x36e86a}});}},{'distributeResult'(_0x199415,_0x5bf305){let {objectActions:_0x554fba}=_0x199415;return _0x5bf305['map'](_0x28e1ff=>{const _0x2587b3=_0x4364;let {unitID:_0x148903,objectID:_0x8f54fc,actions:_0x3acd9c}=_0x28e1ff,_0x22448d=_0x554fba[_0x2587b3(0x1bb)](_0x4bc3b8=>_0x4bc3b8[_0x2587b3(0x11a)]===_0x148903&&_0x4bc3b8[_0x2587b3(0x23e)]===_0x8f54fc);return{'config':_0x28e1ff,'result':{'actions':_0x3acd9c[_0x2587b3(0x192)](_0x340208=>_0x22448d==null?void 0x0:_0x22448d['actions'][_0x2587b3(0x1bb)](_0x52704c=>_0x52704c['action']===_0x340208))[_0x2587b3(0x143)](_0x13772e=>!!_0x13772e),'error':_0x199415[_0x2587b3(0x1f0)]}};});}})}));}[_0x3c7add(0x352)](){const _0x5897cd=_0x3c7add;var _0x57e71a;let _0x2400b9=this[_0x5897cd(0x33c)][_0x5897cd(0x1e1)](_0x11e35b);return(_0x57e71a=_0x2400b9==null?void 0x0:_0x2400b9[_0x5897cd(0x1b4)])==null?_0x5897cd(0x392):_0x57e71a;}async[_0x3c7add(0x1d6)](_0x3f4e89){const _0x1e28e3=_0x3c7add;let _0xedd7c1=this['_getAPIPrefixPath']()+'/'+_0x3f4e89[_0x1e28e3(0x37c)]+'/object';return(await this[_0x1e28e3(0x137)][_0x1e28e3(0x3d8)](_0xedd7c1,{'body':_0x3f4e89}))[_0x1e28e3(0xc1)][_0x1e28e3(0x23e)]||'';}async[_0x3c7add(0x1d4)](_0x546ddd){const _0x2054bc=_0x3c7add;let _0x4d44a3=this[_0x2054bc(0x352)]()+_0x2054bc(0x301);return(await this['_HTTPService'][_0x2054bc(0x3d8)](_0x4d44a3,{'body':_0x546ddd}))[_0x2054bc(0xc1)][_0x2054bc(0x39f)];}async['update'](_0x31993a){const _0x4c9507=_0x3c7add;var _0x152df2;let _0x843d77=this[_0x4c9507(0x352)]()+'/'+_0x31993a[_0x4c9507(0x37c)]+'/object/'+_0x31993a['objectID'],_0x258387=await this[_0x4c9507(0x137)]['put'](_0x843d77,{'body':_0x31993a});if((_0x258387==null||(_0x152df2=_0x258387[_0x4c9507(0xc1)])==null||(_0x152df2=_0x152df2[_0x4c9507(0x1f0)])==null?void 0x0:_0x152df2['code'])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x3c7add(0x2a0)](_0x15befe){const _0x4b659a=_0x3c7add;let _0x4f3401=this[_0x4b659a(0x352)]()+'/'+_0x15befe[_0x4b659a(0x37c)]+_0x4b659a(0x2b6)+_0x15befe[_0x4b659a(0x23e)]+'/allowed';return(await this[_0x4b659a(0x137)][_0x4b659a(0x3d8)](_0x4f3401,{'body':_0x15befe}))[_0x4b659a(0xc1)]['actions'];}async[_0x3c7add(0x30c)](_0x4c68e1){const _0x3b27b9=_0x3c7add;let _0x138a30=this['_getAPIPrefixPath']()+_0x3b27b9(0x1cc);return(await this[_0x3b27b9(0x137)][_0x3b27b9(0x3d8)](_0x138a30,{'body':{'requests':_0x4c68e1}}))[_0x3b27b9(0xc1)][_0x3b27b9(0xe6)];}async[_0x3c7add(0x3cd)](_0x5b4a4a){const _0x5b862a=_0x3c7add;let _0xaa58b9=this[_0x5b862a(0x352)]()+'/'+_0x5b4a4a[_0x5b862a(0x37c)]+_0x5b862a(0x33b),_0xc99db=await this[_0x5b862a(0x137)]['post'](_0xaa58b9,{'body':_0x5b4a4a});return{'roles':_0xc99db[_0x5b862a(0xc1)][_0x5b862a(0x2cf)],'actions':_0xc99db['body'][_0x5b862a(0xe5)]};}async[_0x3c7add(0x1e9)](_0x3c6295){const _0x262861=_0x3c7add;let _0x48ff39=this[_0x262861(0x352)]()+_0x262861(0x3c0);await this[_0x262861(0x137)]['delete'](_0x48ff39,{'params':{'collaboratorID':_0x3c6295[_0x262861(0x138)],'objectID':_0x3c6295[_0x262861(0x23e)],'unitID':_0x3c6295[_0x262861(0x11a)]}});}async[_0x3c7add(0x30f)](_0x5437b6){const _0x148be2=_0x3c7add;let _0x43065c=this[_0x148be2(0x352)]()+'/collaborator';await this['_HTTPService']['patch'](_0x43065c,{'body':_0x5437b6});}async['createCollaborator'](_0x35c227){const _0x5e0101=_0x3c7add;let _0x2bbc89=this[_0x5e0101(0x352)]()+'/collaborator';await this[_0x5e0101(0x137)][_0x5e0101(0x3d8)](_0x2bbc89,{'body':_0x35c227});}async[_0x3c7add(0x2b4)](_0x518d94){const _0x11be96=_0x3c7add;var _0x2e3984;let _0x3cf174=this[_0x11be96(0x352)]()+_0x11be96(0x3c0),_0x5a4db4=await this['_HTTPService'][_0x11be96(0x1fd)](_0x3cf174,{'params':{'objectID':_0x518d94[_0x11be96(0x23e)],'unitID':_0x518d94[_0x11be96(0x11a)]}});return this['setCfgEnableObjInherit']((_0x2e3984=_0x5a4db4[_0x11be96(0xc1)]['cfgEnableObjInherit'])==null?!0x1:_0x2e3984),_0x5a4db4[_0x11be96(0xc1)][_0x11be96(0xde)];}async[_0x3c7add(0x3a5)](_0x5e59fb){const _0x102c36=_0x3c7add;let _0x273b54=this[_0x102c36(0x352)]()+_0x102c36(0x3c0);await this[_0x102c36(0x137)]['put'](_0x273b54,{'body':_0x5e59fb});}[_0x3c7add(0x2b7)](_0x430fba){this['_cfgEnableObjInherit']=_0x430fba;}[_0x3c7add(0x3d1)](){const _0x35e41d=_0x3c7add;return this[_0x35e41d(0x2c4)];}};_0x510ca4=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4fa7e8[_0x3c7add(0xf3)])),_0x78c766(0x1,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0x312)]))],_0x510ca4);function _0x173049(_0xf51d06){const _0x3ab056=_0x3c7add;return _0xf51d06 instanceof Uint8Array||ArrayBuffer[_0x3ab056(0x2e6)](_0xf51d06)&&_0xf51d06[_0x3ab056(0x25f)][_0x3ab056(0x3ca)]===_0x3ab056(0x114)&&_0x3ab056(0x29b)in _0xf51d06&&_0xf51d06['BYTES_PER_ELEMENT']===0x1;}function _0x1eab76(_0x58832f){const _0x20fac9=_0x3c7add;if(typeof _0x58832f!=_0x20fac9(0x16e))throw TypeError(_0x20fac9(0x2af)+typeof _0x58832f);if(!Number[_0x20fac9(0x1d9)](_0x58832f)||_0x58832f<0x0)throw RangeError(_0x20fac9(0x289)+_0x58832f);}function _0x129539(_0x1eda32,_0x13fc71,_0x857e94=''){const _0x4b59f0=_0x3c7add;let _0x498c8d=_0x173049(_0x1eda32),_0x2d2ed9=_0x1eda32==null?void 0x0:_0x1eda32[_0x4b59f0(0x3a4)],_0x493617=_0x13fc71!==void 0x0;if(!_0x498c8d||_0x493617&&_0x2d2ed9!==_0x13fc71){let _0x2d0123=_0x857e94&&'\x22'+_0x857e94+'\x22\x20',_0x38b113=_0x493617?_0x4b59f0(0x283)+_0x13fc71:'',_0x361859=_0x498c8d?'length='+_0x2d2ed9:_0x4b59f0(0xf7)+typeof _0x1eda32,_0x19bb2c=_0x2d0123+'expected\x20Uint8Array'+_0x38b113+',\x20got\x20'+_0x361859;throw _0x498c8d?RangeError(_0x19bb2c):TypeError(_0x19bb2c);}return _0x1eda32;}function _0x5f382e(_0x2a71ce){const _0x4b9177=_0x3c7add;return new Uint32Array(_0x2a71ce[_0x4b9177(0x3a7)],_0x2a71ce[_0x4b9177(0x333)],Math[_0x4b9177(0x364)](_0x2a71ce['byteLength']/0x4));}function _0x284f51(..._0x107717){for(let _0x89d94b=0x0;_0x89d94b<_0x107717['length'];_0x89d94b++)_0x107717[_0x89d94b]['fill'](0x0);}let _0xe4bc31=new Uint8Array(new Uint32Array([0x11223344])[_0x3c7add(0x3a7)])[0x0]===0x44,_0x658bdb=_0x1275e1=>_0x1275e1<<0x18&0xff000000|_0x1275e1<<0x8&0xff0000|_0x1275e1>>>0x8&0xff00|_0x1275e1>>>0x18&0xff,_0x5da7b0=_0xe4bc31?_0x1ddd50=>_0x1ddd50:_0x383d7a=>{for(let _0x151a18=0x0;_0x151a18<_0x383d7a['length'];_0x151a18++)_0x383d7a[_0x151a18]=_0x658bdb(_0x383d7a[_0x151a18]);return _0x383d7a;};function _0x1c6bcb(_0x479e76){if(typeof _0x479e76!='string')throw TypeError('string\x20expected');return new Uint8Array(new TextEncoder()['encode'](_0x479e76));}function _0x2be1fb(_0x4c6e44,_0x2a8d58){const _0x42a5d3=_0x3c7add;return!_0x4c6e44[_0x42a5d3(0x3d5)]||!_0x2a8d58[_0x42a5d3(0x3d5)]?!0x1:_0x4c6e44['buffer']===_0x2a8d58[_0x42a5d3(0x3a7)]&&_0x4c6e44[_0x42a5d3(0x333)]<_0x2a8d58[_0x42a5d3(0x333)]+_0x2a8d58[_0x42a5d3(0x3d5)]&&_0x2a8d58[_0x42a5d3(0x333)]<_0x4c6e44[_0x42a5d3(0x333)]+_0x4c6e44[_0x42a5d3(0x3d5)];}function _0x54afa4(_0x3aee20,_0x3970e7){const _0x2ff951=_0x3c7add;if(_0x2be1fb(_0x3aee20,_0x3970e7)&&_0x3aee20[_0x2ff951(0x333)]<_0x3970e7[_0x2ff951(0x333)])throw Error(_0x2ff951(0x3d3));}function _0x466ec4(..._0xf19338){const _0x229fd4=_0x3c7add;let _0x311eea=0x0;for(let _0x5a9e5c=0x0;_0x5a9e5c<_0xf19338['length'];_0x5a9e5c++){let _0x5a6776=_0xf19338[_0x5a9e5c];_0x129539(_0x5a6776),_0x311eea+=_0x5a6776[_0x229fd4(0x3a4)];}let _0x12ee6e=new Uint8Array(_0x311eea);for(let _0x46df51=0x0,_0x7a40f5=0x0;_0x46df51<_0xf19338[_0x229fd4(0x3a4)];_0x46df51++){let _0x5825bc=_0xf19338[_0x46df51];_0x12ee6e[_0x229fd4(0x38b)](_0x5825bc,_0x7a40f5),_0x7a40f5+=_0x5825bc['length'];}return _0x12ee6e;}let _0x2fac91=(_0x1f4186,_0x25c3dc)=>{const _0x284998=_0x3c7add;function _0x211376(_0x5d56df,..._0x4d0309){const _0x510da1=_0x4364;if(_0x129539(_0x5d56df,void 0x0,_0x510da1(0x21f)),_0x1f4186['nonceLength']!==void 0x0){let _0x30251a=_0x4d0309[0x0];_0x129539(_0x30251a,_0x1f4186[_0x510da1(0x21e)]?void 0x0:_0x1f4186[_0x510da1(0x2dd)],_0x510da1(0x2ff));}let _0x432956=_0x1f4186[_0x510da1(0xe7)];_0x432956&&_0x4d0309[0x1]!==void 0x0&&_0x129539(_0x4d0309[0x1],void 0x0,_0x510da1(0x2ba));let _0x5a9529=_0x25c3dc(_0x5d56df,..._0x4d0309),_0x4b76c5=(_0x337e86,_0x4b32af)=>{const _0x4d4d86=_0x510da1;if(_0x4b32af!==void 0x0){if(_0x337e86!==0x2)throw Error(_0x4d4d86(0x245));_0x129539(_0x4b32af,void 0x0,_0x4d4d86(0x28e));}},_0x378506=!0x1;return{'encrypt'(_0x2aeff8,_0x51f5f7){const _0x750934=_0x510da1;if(_0x378506)throw Error(_0x750934(0x2d0));return _0x378506=!0x0,_0x129539(_0x2aeff8),_0x4b76c5(_0x5a9529[_0x750934(0x387)][_0x750934(0x3a4)],_0x51f5f7),_0x5a9529[_0x750934(0x387)](_0x2aeff8,_0x51f5f7);},'decrypt'(_0x194b0b,_0x1c1e4a){const _0xb1f620=_0x510da1;if(_0x129539(_0x194b0b),_0x432956&&_0x194b0b[_0xb1f620(0x3a4)]<_0x432956)throw Error(_0xb1f620(0x298)+_0x432956);return _0x4b76c5(_0x5a9529[_0xb1f620(0x3a2)][_0xb1f620(0x3a4)],_0x1c1e4a),_0x5a9529['decrypt'](_0x194b0b,_0x1c1e4a);}};}return Object[_0x284998(0x1e4)](_0x211376,_0x1f4186),_0x211376;};function _0x308ff3(_0x571a01,_0x10d41a,_0x3671ca=!0x0){const _0x2e4bc6=_0x3c7add;if(_0x10d41a===void 0x0)return new Uint8Array(_0x571a01);if(_0x129539(_0x10d41a,void 0x0,'output'),_0x10d41a[_0x2e4bc6(0x3a4)]!==_0x571a01)throw Error(_0x2e4bc6(0x18b)+_0x571a01+',\x20got:\x20'+_0x10d41a[_0x2e4bc6(0x3a4)]);if(_0x3671ca&&!_0x1bef2d(_0x10d41a))throw Error(_0x2e4bc6(0xd3));return _0x10d41a;}function _0x1bef2d(_0x4b96b7){return _0x4b96b7['byteOffset']%0x4==0x0;}function _0x3b7ddd(_0x47693f){const _0x47b854=_0x3c7add;return Uint8Array[_0x47b854(0x33f)](_0x129539(_0x47693f));}function _0x38b234(_0x82ea28=0x20){const _0x4a4212=_0x3c7add;_0x1eab76(_0x82ea28);let _0x4e3907=typeof globalThis==_0x4a4212(0x2a1)?globalThis['crypto']:null;if(typeof(_0x4e3907==null?void 0x0:_0x4e3907[_0x4a4212(0x2f0)])!=_0x4a4212(0x16c))throw Error(_0x4a4212(0x258));return _0x4e3907[_0x4a4212(0x2f0)](new Uint8Array(_0x82ea28));}function _0x12f9bf(_0x177853){const _0x1885b4=_0x3c7add;if(![0x10,0x18,0x20][_0x1885b4(0x3b9)](_0x177853[_0x1885b4(0x3a4)]))throw Error(_0x1885b4(0x25d)+_0x177853[_0x1885b4(0x3a4)]);}function _0x251a7a(_0x9decb3){return _0x9decb3<<0x1^0x11b&-(_0x9decb3>>0x7);}function _0x2e8bfd(_0x1286a1,_0x21495a){let _0xa513f9=0x0;for(;_0x21495a>0x0;_0x21495a>>=0x1)_0xa513f9^=_0x1286a1&-(_0x21495a&0x1),_0x1286a1=_0x251a7a(_0x1286a1);return _0xa513f9;}let _0x5bc1d1=((()=>{let _0x2bdfc4=new Uint8Array(0x100);for(let _0xef2700=0x0,_0xc598c9=0x1;_0xef2700<0x100;_0xef2700++,_0xc598c9^=_0x251a7a(_0xc598c9))_0x2bdfc4[_0xef2700]=_0xc598c9;let _0x2fd837=new Uint8Array(0x100);_0x2fd837[0x0]=0x63;for(let _0x21706a=0x0;_0x21706a<0xff;_0x21706a++){let _0x5f1aea=_0x2bdfc4[0xff-_0x21706a];_0x5f1aea|=_0x5f1aea<<0x8,_0x2fd837[_0x2bdfc4[_0x21706a]]=(_0x5f1aea^_0x5f1aea>>0x4^_0x5f1aea>>0x5^_0x5f1aea>>0x6^_0x5f1aea>>0x7^0x63)&0xff;}return _0x284f51(_0x2bdfc4),_0x2fd837;})()),_0x14ee7c=_0x5bc1d1['map']((_0x5bb1df,_0x24736b)=>_0x5bc1d1[_0x3c7add(0x3dd)](_0x24736b)),_0x52a82b=_0x4e8c20=>_0x4e8c20<<0x18|_0x4e8c20>>>0x8,_0x325d16=_0x416fdf=>_0x416fdf<<0x8|_0x416fdf>>>0x18;function _0x247acb(_0x252e07,_0x8153f9){const _0xb0d51b=_0x3c7add;if(_0x252e07[_0xb0d51b(0x3a4)]!==0x100)throw Error(_0xb0d51b(0x17a));let _0x18d105=new Uint32Array(0x100)['map']((_0x2601af,_0x3e6d60)=>_0x8153f9(_0x252e07[_0x3e6d60])),_0x3cb66e=_0x18d105[_0xb0d51b(0x192)](_0x325d16),_0x5a506b=_0x3cb66e[_0xb0d51b(0x192)](_0x325d16),_0x1d57ae=_0x5a506b['map'](_0x325d16),_0x35dedf=new Uint32Array(0x100*0x100),_0x612690=new Uint32Array(0x100*0x100),_0x303caa=new Uint16Array(0x100*0x100);for(let _0x595322=0x0;_0x595322<0x100;_0x595322++)for(let _0x1163d1=0x0;_0x1163d1<0x100;_0x1163d1++){let _0x5e934c=_0x595322*0x100+_0x1163d1;_0x35dedf[_0x5e934c]=_0x18d105[_0x595322]^_0x3cb66e[_0x1163d1],_0x612690[_0x5e934c]=_0x5a506b[_0x595322]^_0x1d57ae[_0x1163d1],_0x303caa[_0x5e934c]=_0x252e07[_0x595322]<<0x8|_0x252e07[_0x1163d1];}return{'sbox':_0x252e07,'sbox2':_0x303caa,'T0':_0x18d105,'T1':_0x3cb66e,'T2':_0x5a506b,'T3':_0x1d57ae,'T01':_0x35dedf,'T23':_0x612690};}let _0x35dbc6=_0x247acb(_0x5bc1d1,_0x3eb4d3=>_0x2e8bfd(_0x3eb4d3,0x3)<<0x18|_0x3eb4d3<<0x10|_0x3eb4d3<<0x8|_0x2e8bfd(_0x3eb4d3,0x2)),_0x5d3aa4=_0x247acb(_0x14ee7c,_0x4e5027=>_0x2e8bfd(_0x4e5027,0xb)<<0x18|_0x2e8bfd(_0x4e5027,0xd)<<0x10|_0x2e8bfd(_0x4e5027,0x9)<<0x8|_0x2e8bfd(_0x4e5027,0xe)),_0x18f692=((()=>{let _0x59a970=new Uint8Array(0x10);for(let _0x1a1251=0x0,_0x16de6d=0x1;_0x1a1251<0x10;_0x1a1251++,_0x16de6d=_0x251a7a(_0x16de6d))_0x59a970[_0x1a1251]=_0x16de6d;return _0x59a970;})());function _0xb87351(_0x5d314a){const _0x59936e=_0x3c7add;_0x129539(_0x5d314a);let _0x8dee53=_0x5d314a[_0x59936e(0x3a4)];_0x12f9bf(_0x5d314a);let {sbox2:_0x36ca41}=_0x35dbc6,_0xc4105e=[];(!_0xe4bc31||!_0x1bef2d(_0x5d314a))&&_0xc4105e[_0x59936e(0x26e)](_0x5d314a=_0x3b7ddd(_0x5d314a));let _0x12dc63=_0x5da7b0(_0x5f382e(_0x5d314a)),_0x3e9cda=_0x12dc63[_0x59936e(0x3a4)],_0x95e15c=_0x22d9fb=>_0x18cd02(_0x36ca41,_0x22d9fb,_0x22d9fb,_0x22d9fb,_0x22d9fb),_0x2024d8=new Uint32Array(_0x8dee53+0x1c);_0x2024d8[_0x59936e(0x38b)](_0x12dc63);for(let _0x2ff8b2=_0x3e9cda;_0x2ff8b2<_0x2024d8[_0x59936e(0x3a4)];_0x2ff8b2++){let _0xcab8be=_0x2024d8[_0x2ff8b2-0x1];_0x2ff8b2%_0x3e9cda===0x0?_0xcab8be=_0x95e15c(_0x52a82b(_0xcab8be))^_0x18f692[_0x2ff8b2/_0x3e9cda-0x1]:_0x3e9cda>0x6&&_0x2ff8b2%_0x3e9cda===0x4&&(_0xcab8be=_0x95e15c(_0xcab8be)),_0x2024d8[_0x2ff8b2]=_0x2024d8[_0x2ff8b2-_0x3e9cda]^_0xcab8be;}return _0x284f51(..._0xc4105e),_0x2024d8;}function _0x48302a(_0x4fb3c6){const _0x5902a9=_0x3c7add;let _0x456dc5=_0xb87351(_0x4fb3c6),_0x168cd1=_0x456dc5[_0x5902a9(0x28f)](),_0x35bc0e=_0x456dc5['length'],{sbox2:_0x47bf06}=_0x35dbc6,{T0:_0x4f03e1,T1:_0x3b3813,T2:_0x4993bf,T3:_0x3c96e3}=_0x5d3aa4;for(let _0x99463a=0x0;_0x99463a<_0x35bc0e;_0x99463a+=0x4)for(let _0x32c8bc=0x0;_0x32c8bc<0x4;_0x32c8bc++)_0x168cd1[_0x99463a+_0x32c8bc]=_0x456dc5[_0x35bc0e-_0x99463a-0x4+_0x32c8bc];_0x284f51(_0x456dc5);for(let _0x2cc8fa=0x4;_0x2cc8fa<_0x35bc0e-0x4;_0x2cc8fa++){let _0xcbc34=_0x168cd1[_0x2cc8fa],_0x11eaf9=_0x18cd02(_0x47bf06,_0xcbc34,_0xcbc34,_0xcbc34,_0xcbc34);_0x168cd1[_0x2cc8fa]=_0x4f03e1[_0x11eaf9&0xff]^_0x3b3813[_0x11eaf9>>>0x8&0xff]^_0x4993bf[_0x11eaf9>>>0x10&0xff]^_0x3c96e3[_0x11eaf9>>>0x18];}return _0x168cd1;}function _0x54fbb8(_0x1822a9,_0x54814a,_0x1096d7,_0x8d5e6c,_0x126808,_0x2ab892){return _0x1822a9[_0x1096d7<<0x8&0xff00|_0x8d5e6c>>>0x8&0xff]^_0x54814a[_0x126808>>>0x8&0xff00|_0x2ab892>>>0x18&0xff];}function _0x18cd02(_0x3d517a,_0x5d9e26,_0x5187b3,_0x365864,_0x45bdf0){return _0x3d517a[_0x5d9e26&0xff|_0x5187b3&0xff00]|_0x3d517a[_0x365864>>>0x10&0xff|_0x45bdf0>>>0x10&0xff00]<<0x10;}function _0x366155(_0x363795,_0x331001,_0x298ffb,_0x560a37,_0x28f4d0){const _0x82d8d7=_0x3c7add;let {sbox2:_0x11c195,T01:_0x4dc76c,T23:_0x1b10bd}=_0x35dbc6,_0x1ef8fc=0x0;_0x331001^=_0x363795[_0x1ef8fc++],_0x298ffb^=_0x363795[_0x1ef8fc++],_0x560a37^=_0x363795[_0x1ef8fc++],_0x28f4d0^=_0x363795[_0x1ef8fc++];let _0x5970c9=_0x363795[_0x82d8d7(0x3a4)]/0x4-0x2;for(let _0x3f03de=0x0;_0x3f03de<_0x5970c9;_0x3f03de++){let _0x3636f2=_0x363795[_0x1ef8fc++]^_0x54fbb8(_0x4dc76c,_0x1b10bd,_0x331001,_0x298ffb,_0x560a37,_0x28f4d0),_0x2137d0=_0x363795[_0x1ef8fc++]^_0x54fbb8(_0x4dc76c,_0x1b10bd,_0x298ffb,_0x560a37,_0x28f4d0,_0x331001),_0x3f70a6=_0x363795[_0x1ef8fc++]^_0x54fbb8(_0x4dc76c,_0x1b10bd,_0x560a37,_0x28f4d0,_0x331001,_0x298ffb),_0x598e09=_0x363795[_0x1ef8fc++]^_0x54fbb8(_0x4dc76c,_0x1b10bd,_0x28f4d0,_0x331001,_0x298ffb,_0x560a37);_0x331001=_0x3636f2,_0x298ffb=_0x2137d0,_0x560a37=_0x3f70a6,_0x28f4d0=_0x598e09;}return{'s0':_0x363795[_0x1ef8fc++]^_0x18cd02(_0x11c195,_0x331001,_0x298ffb,_0x560a37,_0x28f4d0),'s1':_0x363795[_0x1ef8fc++]^_0x18cd02(_0x11c195,_0x298ffb,_0x560a37,_0x28f4d0,_0x331001),'s2':_0x363795[_0x1ef8fc++]^_0x18cd02(_0x11c195,_0x560a37,_0x28f4d0,_0x331001,_0x298ffb),'s3':_0x363795[_0x1ef8fc++]^_0x18cd02(_0x11c195,_0x28f4d0,_0x331001,_0x298ffb,_0x560a37)};}function _0x3de53a(_0x543ee0,_0x5f271f,_0x3dc313,_0x247c0e,_0xf8d0e7){const _0x5ce753=_0x3c7add;let {sbox2:_0x407eb5,T01:_0x2dcf36,T23:_0x505988}=_0x5d3aa4,_0x2a9a96=0x0;_0x5f271f^=_0x543ee0[_0x2a9a96++],_0x3dc313^=_0x543ee0[_0x2a9a96++],_0x247c0e^=_0x543ee0[_0x2a9a96++],_0xf8d0e7^=_0x543ee0[_0x2a9a96++];let _0x48b06f=_0x543ee0[_0x5ce753(0x3a4)]/0x4-0x2;for(let _0x580516=0x0;_0x580516<_0x48b06f;_0x580516++){let _0x1654ec=_0x543ee0[_0x2a9a96++]^_0x54fbb8(_0x2dcf36,_0x505988,_0x5f271f,_0xf8d0e7,_0x247c0e,_0x3dc313),_0x123503=_0x543ee0[_0x2a9a96++]^_0x54fbb8(_0x2dcf36,_0x505988,_0x3dc313,_0x5f271f,_0xf8d0e7,_0x247c0e),_0x26a038=_0x543ee0[_0x2a9a96++]^_0x54fbb8(_0x2dcf36,_0x505988,_0x247c0e,_0x3dc313,_0x5f271f,_0xf8d0e7),_0x12290a=_0x543ee0[_0x2a9a96++]^_0x54fbb8(_0x2dcf36,_0x505988,_0xf8d0e7,_0x247c0e,_0x3dc313,_0x5f271f);_0x5f271f=_0x1654ec,_0x3dc313=_0x123503,_0x247c0e=_0x26a038,_0xf8d0e7=_0x12290a;}return{'s0':_0x543ee0[_0x2a9a96++]^_0x18cd02(_0x407eb5,_0x5f271f,_0xf8d0e7,_0x247c0e,_0x3dc313),'s1':_0x543ee0[_0x2a9a96++]^_0x18cd02(_0x407eb5,_0x3dc313,_0x5f271f,_0xf8d0e7,_0x247c0e),'s2':_0x543ee0[_0x2a9a96++]^_0x18cd02(_0x407eb5,_0x247c0e,_0x3dc313,_0x5f271f,_0xf8d0e7),'s3':_0x543ee0[_0x2a9a96++]^_0x18cd02(_0x407eb5,_0xf8d0e7,_0x247c0e,_0x3dc313,_0x5f271f)};}function _0x4479bb(_0x475e69){const _0x48488d=_0x3c7add;if(_0x129539(_0x475e69),_0x475e69[_0x48488d(0x3a4)]%0x10!=0x0)throw Error('aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016');}function _0x4ee531(_0x181f0d,_0x2218c9,_0x96751c){const _0x112bac=_0x3c7add;_0x129539(_0x181f0d);let _0x1bc6e1=_0x181f0d[_0x112bac(0x3a4)],_0x4cad14=_0x1bc6e1%0x10;if(!_0x2218c9&&_0x4cad14!==0x0)throw Error(_0x112bac(0x295));if(_0x2218c9){let _0x443d3d=0x10-_0x4cad14;_0x443d3d||(_0x443d3d=0x10),_0x1bc6e1+=_0x443d3d;}_0x96751c=_0x308ff3(_0x1bc6e1,_0x96751c),_0x54afa4(_0x181f0d,_0x96751c),(!_0xe4bc31||!_0x1bef2d(_0x181f0d))&&(_0x181f0d=_0x3b7ddd(_0x181f0d));let _0x35f7ef=_0x5f382e(_0x181f0d);return _0x5da7b0(_0x35f7ef),{'b':_0x35f7ef,'o':_0x5f382e(_0x96751c),'out':_0x96751c};}function _0x143c01(_0xe1c1a9,_0x4df8ac){const _0x5d9991=_0x3c7add;if(!_0x4df8ac)return _0xe1c1a9;let _0xf9cb89=_0xe1c1a9[_0x5d9991(0x3a4)];if(_0xf9cb89===0x0)throw Error('aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed');let _0x2713c7=_0xe1c1a9[_0xf9cb89-0x1],_0x3a23b7=0x1;_0x3a23b7&=_0x2713c7-0x1>>>0x1f^0x1,_0x3a23b7&=0x10-_0x2713c7>>>0x1f^0x1;for(let _0x29ee10=0x0;_0x29ee10<0x10;_0x29ee10++){let _0x475933=_0x29ee10-_0x2713c7>>>0x1f,_0x160829=+((_0xe1c1a9[_0xf9cb89-0x1-_0x29ee10]^_0x2713c7)===0x0);_0x3a23b7&=_0x160829|_0x475933^0x1;}if(!_0x3a23b7)throw Error(_0x5d9991(0xe4));return _0xe1c1a9[_0x5d9991(0x17f)](0x0,_0xf9cb89-_0x2713c7);}function _0x32971f(_0x112606){const _0x178ff1=_0x3c7add;let _0x3b411e=new Uint8Array(0x10),_0x709593=_0x5f382e(_0x3b411e);_0x3b411e[_0x178ff1(0x38b)](_0x112606);let _0x2bc84a=0x10-_0x112606['length'];for(let _0x480e54=0x10-_0x2bc84a;_0x480e54<0x10;_0x480e54++)_0x3b411e[_0x480e54]=_0x2bc84a;return _0x709593;}let _0x1f9c31=_0x2fac91({'blockSize':0x10,'nonceLength':0x10},function(_0x54fdb7,_0x4b82e7,_0x5f02de={}){let _0x3cb9b0=!_0x5f02de['disablePadding'];return{'encrypt'(_0x43c5af,_0x23dde4){const _0x50b3bf=_0x4364;let _0x390130=_0xb87351(_0x54fdb7),{b:_0x23ed3b,o:_0x41c781,out:_0x22ed14}=_0x4ee531(_0x43c5af,_0x3cb9b0,_0x23dde4),_0x76f4e4=_0x4b82e7,_0x1ebb81=[_0x390130];(!_0xe4bc31||!_0x1bef2d(_0x76f4e4))&&_0x1ebb81[_0x50b3bf(0x26e)](_0x76f4e4=_0x3b7ddd(_0x76f4e4));let _0x171a8f=_0x5f382e(_0x76f4e4);_0x5da7b0(_0x171a8f);let _0x458c42=_0x171a8f[0x0],_0x25fdd3=_0x171a8f[0x1],_0xb75efa=_0x171a8f[0x2],_0x25b4d5=_0x171a8f[0x3],_0x7c109f=0x0;for(;_0x7c109f+0x4<=_0x23ed3b[_0x50b3bf(0x3a4)];)_0x458c42^=_0x23ed3b[_0x7c109f+0x0],_0x25fdd3^=_0x23ed3b[_0x7c109f+0x1],_0xb75efa^=_0x23ed3b[_0x7c109f+0x2],_0x25b4d5^=_0x23ed3b[_0x7c109f+0x3],{s0:_0x458c42,s1:_0x25fdd3,s2:_0xb75efa,s3:_0x25b4d5}=_0x366155(_0x390130,_0x458c42,_0x25fdd3,_0xb75efa,_0x25b4d5),_0x41c781[_0x7c109f++]=_0x458c42,_0x41c781[_0x7c109f++]=_0x25fdd3,_0x41c781[_0x7c109f++]=_0xb75efa,_0x41c781[_0x7c109f++]=_0x25b4d5;if(_0x3cb9b0){let _0x5c5c35=_0x32971f(_0x43c5af[_0x50b3bf(0x17f)](_0x7c109f*0x4));_0x5da7b0(_0x5c5c35),_0x458c42^=_0x5c5c35[0x0],_0x25fdd3^=_0x5c5c35[0x1],_0xb75efa^=_0x5c5c35[0x2],_0x25b4d5^=_0x5c5c35[0x3],{s0:_0x458c42,s1:_0x25fdd3,s2:_0xb75efa,s3:_0x25b4d5}=_0x366155(_0x390130,_0x458c42,_0x25fdd3,_0xb75efa,_0x25b4d5),_0x41c781[_0x7c109f++]=_0x458c42,_0x41c781[_0x7c109f++]=_0x25fdd3,_0x41c781[_0x7c109f++]=_0xb75efa,_0x41c781[_0x7c109f++]=_0x25b4d5;}return _0x5da7b0(_0x41c781),_0x284f51(..._0x1ebb81),_0x22ed14;},'decrypt'(_0x34be89,_0x3b1fa1){const _0x387688=_0x4364;_0x4479bb(_0x34be89);let _0x463f40=_0x48302a(_0x54fdb7),_0x10a4bc=_0x4b82e7,_0x2cb55c=[_0x463f40];(!_0xe4bc31||!_0x1bef2d(_0x10a4bc))&&_0x2cb55c[_0x387688(0x26e)](_0x10a4bc=_0x3b7ddd(_0x10a4bc));let _0x212b3a=_0x5f382e(_0x10a4bc);_0x5da7b0(_0x212b3a),_0x3b1fa1=_0x308ff3(_0x34be89[_0x387688(0x3a4)],_0x3b1fa1),_0x54afa4(_0x34be89,_0x3b1fa1),(!_0xe4bc31||!_0x1bef2d(_0x34be89))&&_0x2cb55c[_0x387688(0x26e)](_0x34be89=_0x3b7ddd(_0x34be89));let _0x154d59=_0x5f382e(_0x34be89),_0x510a75=_0x5f382e(_0x3b1fa1);_0x5da7b0(_0x154d59);let _0x2a1741=_0x212b3a[0x0],_0x567627=_0x212b3a[0x1],_0x227c3d=_0x212b3a[0x2],_0x411076=_0x212b3a[0x3];for(let _0x2abeb9=0x0;_0x2abeb9+0x4<=_0x154d59['length'];){let _0x220736=_0x2a1741,_0xaf3147=_0x567627,_0x2415e1=_0x227c3d,_0x2ad821=_0x411076;_0x2a1741=_0x154d59[_0x2abeb9+0x0],_0x567627=_0x154d59[_0x2abeb9+0x1],_0x227c3d=_0x154d59[_0x2abeb9+0x2],_0x411076=_0x154d59[_0x2abeb9+0x3];let {s0:_0x598a6a,s1:_0x479925,s2:_0x5f45a1,s3:_0x8b2911}=_0x3de53a(_0x463f40,_0x2a1741,_0x567627,_0x227c3d,_0x411076);_0x510a75[_0x2abeb9++]=_0x598a6a^_0x220736,_0x510a75[_0x2abeb9++]=_0x479925^_0xaf3147,_0x510a75[_0x2abeb9++]=_0x5f45a1^_0x2415e1,_0x510a75[_0x2abeb9++]=_0x8b2911^_0x2ad821;}return _0x5da7b0(_0x510a75),_0x284f51(..._0x2cb55c),_0x143c01(_0x3b1fa1,_0x3cb9b0);}};});function _0x5c285c(_0x2150e9){const _0x1667d9=_0x3c7add;let _0xc20624=atob(_0x2150e9),_0x2ffcea=new Uint8Array(_0xc20624['length']);for(let _0x880bfc=0x0;_0x880bfc<_0xc20624[_0x1667d9(0x3a4)];_0x880bfc++)_0x2ffcea[_0x880bfc]=_0xc20624[_0x1667d9(0xe2)](_0x880bfc);return _0x2ffcea;}function _0x5a92dc(_0x1e4af6){const _0x25538d=_0x3c7add;let _0x47064c='';for(let _0x4187cc=0x0;_0x4187cc<_0x1e4af6[_0x25538d(0x3a4)];_0x4187cc++)_0x47064c+=String[_0x25538d(0x332)](_0x1e4af6[_0x4187cc]);return btoa(_0x47064c);}function _0x4a5bed(_0x33ae7c,_0x30d1a2){const _0xeb894=_0x3c7add;let _0x35f66e=_0x5c285c(_0x30d1a2),_0x1d2403=_0x38b234(0x10);return _0x5a92dc(_0x466ec4(_0x1d2403,_0x1f9c31(_0x35f66e,_0x1d2403)[_0xeb894(0x387)](_0x1c6bcb(_0x33ae7c))));}function _0x53e09b(){const _0x317c14=_0x3c7add;let _0x33f3da=(0x0,_0x4a0b74[_0x317c14(0x127)])()[_0x317c14(0x275)];if(typeof window<'u'&&window[_0x317c14(0x33d)]!==void 0x0&&_0x33f3da){let _0x105596={'time':Math[_0x317c14(0x364)](Date[_0x317c14(0x1e5)]()/0x3e8),'domain':location[_0x317c14(0xc0)]};return _0x4a5bed(JSON[_0x317c14(0x265)](_0x105596),_0x33f3da);}}let _0x213b55=class{constructor(_0x367ad4){const _0x1f9409=_0x3c7add;this['_httpService']=_0x367ad4,this[_0x1f9409(0x160)]();}[_0x3c7add(0x160)](){const _0x33cfe0=_0x3c7add;this[_0x33cfe0(0x16a)][_0x33cfe0(0x26a)]({'interceptor':(_0x138f90,_0x257eaa)=>{const _0x47d70e=_0x33cfe0;let _0x2f73c1=_0x53e09b();return _0x2f73c1&&_0x138f90[_0x47d70e(0x2e8)]['set'](_0x47d70e(0xca),_0x2f73c1),_0x257eaa(_0x138f90);}});}};_0x213b55=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5['Inject'])(_0x4fa7e8[_0x3c7add(0xf3)]))],_0x213b55);let _0x3090fa=class extends _0x4f2fc5[_0x3c7add(0x145)]{constructor(_0x225750,_0x52eef6,_0x3ad35c){const _0x12f04a=_0x3c7add;super(),this[_0x12f04a(0x10b)]=_0x225750,this['_snapshotService']=_0x52eef6,this[_0x12f04a(0x12a)]=_0x3ad35c,_0x45730e(this,_0x12f04a(0x193),new _0x196a42[(_0x12f04a(0x2cc))](null)),_0x45730e(this,_0x12f04a(0x1de),this[_0x12f04a(0x193)][_0x12f04a(0xc6)]());}async['loadUnitOfRevision'](_0x3b9d4a,_0x260fdd,_0x3a9dfa){const _0x4f54e0=_0x3c7add;this['_unitInfo$']['next']({'unitId':_0x3b9d4a,'type':_0x260fdd});let _0x81787=null;switch(_0x260fdd){case _0x4f2fc5['UniverInstanceType'][_0x4f54e0(0x2a4)]:_0x81787=await this[_0x4f54e0(0xfc)][_0x4f54e0(0x157)](_0x3b9d4a,_0x3a9dfa);break;case _0x4f2fc5[_0x4f54e0(0x22e)][_0x4f54e0(0x2d5)]:_0x81787=await this['_snapshotService']['loadDoc'](_0x3b9d4a,_0x3a9dfa);break;default:this[_0x4f54e0(0x10b)][_0x4f54e0(0x1f0)]('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x81787;}async[_0x3c7add(0x336)](_0x36c3f6,_0x135f33,_0x10372e){const _0x2ab820=_0x3c7add;var _0x4ac333;this[_0x2ab820(0x193)][_0x2ab820(0x232)]({'unitId':_0x36c3f6,'type':_0x135f33,'subUnitId':_0x10372e});let _0x57456f=0x0,_0x3bd7d7=await((_0x4ac333=this[_0x2ab820(0x12a)])==null?void 0x0:_0x4ac333['loadOfflineData'](_0x36c3f6));return _0x3bd7d7&&(_0x3bd7d7[_0x2ab820(0x27a)]||_0x3bd7d7[_0x2ab820(0x1eb)][_0x2ab820(0x3a4)]!==0x0)&&(_0x57456f=_0x3bd7d7[_0x2ab820(0x3b3)]),_0x57456f===0x0&&this[_0x2ab820(0x10b)][_0x2ab820(0x2ec)](_0x2ab820(0x2bc),_0x2ab820(0x161)),this['loadUnitOfRevision'](_0x36c3f6,_0x135f33,_0x57456f);}};_0x3090fa=_0x38f352([_0x78c766(0x0,_0x4f2fc5['ILogService']),_0x78c766(0x1,(0x0,_0x4f2fc5['Inject'])(_0x597ddf[_0x3c7add(0x158)])),_0x78c766(0x2,(0x0,_0x4f2fc5[_0x3c7add(0xbf)])(_0x54dcc4))],_0x3090fa);let _0x336bd5=class{constructor(_0x490d47,_0x556380,_0x1b83c8){const _0x318877=_0x3c7add;this[_0x318877(0x16a)]=_0x490d47,this[_0x318877(0x33c)]=_0x556380,this[_0x318877(0x243)]=_0x1b83c8,_0x45730e(this,_0x318877(0x130),0x0),_0x45730e(this,_0x318877(0xed),new _0x196a42[(_0x318877(0x274))]()),_0x45730e(this,_0x318877(0xda),this['_change$']),_0x45730e(this,_0x318877(0x103),new Map());}[_0x3c7add(0x16b)](_0x1ce524){const _0x560275=_0x3c7add;this[_0x560275(0x130)]=_0x1ce524,this[_0x560275(0xed)][_0x560275(0x232)](_0x1ce524);}[_0x3c7add(0x2c2)](_0x8fd629,_0x3d58e4){const _0x252233=_0x3c7add;if(_0x3d58e4===_0x4aa170[_0x252233(0x28d)][_0x252233(0x2c8)]){let _0x278cfd=new Image();return _0x278cfd[_0x252233(0xc9)]=_0x8fd629,_0x278cfd;}return this[_0x252233(0x103)][_0x252233(0x1fd)](_0x8fd629);}[_0x3c7add(0x172)](_0x3e9c7b,_0x27dbca,_0x362162){const _0x437ddd=_0x3c7add;_0x27dbca===_0x4aa170[_0x437ddd(0x28d)][_0x437ddd(0x2c8)]||_0x362162==null||this[_0x437ddd(0x103)][_0x437ddd(0x38b)](_0x3e9c7b,_0x362162);}async[_0x3c7add(0x3ad)](_0x545838){const _0x59de26=_0x3c7add;try{let _0xb334de=this[_0x59de26(0x20f)](this[_0x59de26(0x108)](),''+_0x545838),_0x45953c=(await this['_httpService']['get'](_0xb334de))[_0x59de26(0xc1)];if(_0x45953c[_0x59de26(0x1f0)]&&_0x45953c[_0x59de26(0x1f0)]['code']===_0x121aa6[_0x59de26(0x23d)]['OK']){let _0x99a187=(0x0,_0x4f2fc5[_0x59de26(0x17c)])(_0x45953c[_0x59de26(0x1f7)],this[_0x59de26(0x308)]());return Promise[_0x59de26(0x15c)](_0x99a187);}return Promise[_0x59de26(0x1e3)](_0x45953c[_0x59de26(0x1f0)]);}catch(_0x5dbd24){return Promise[_0x59de26(0x1e3)](_0x5dbd24);}}async['saveImage'](_0x489578){const _0x521662=_0x3c7add;let _0x112499='';if(!_0x4aa170[_0x521662(0x244)][_0x521662(0x3b9)](_0x489578['type']))return this['_decreaseWaiting'](),Promise[_0x521662(0x1e3)](Error(_0x4aa170[_0x521662(0x204)][_0x521662(0x359)]));if(_0x489578[_0x521662(0x2c3)]>(0x0,_0x4aa170['getDrawingImageAllowSize'])())return this[_0x521662(0x1be)](),Promise[_0x521662(0x1e3)](Error(_0x4aa170[_0x521662(0x204)][_0x521662(0xd9)]));try{let _0x580c74=new FormData();_0x580c74[_0x521662(0x25e)](_0x521662(0x3a3),_0x489578);let _0x5f0130=this[_0x521662(0x243)]['getFocusedUnit'](),_0x5c167e=_0x5f0130==null?void 0x0:_0x5f0130[_0x521662(0x21a)]();if(!_0x5c167e)throw Error(_0x521662(0x2f8));let _0x15939a=this['_getUploadFileURL']()+_0x521662(0x13d)+_0x489578[_0x521662(0x2c3)][_0x521662(0x358)]()+'&source='+_0x121aa6['FileSource']['UnitEmbedded']+_0x521662(0x384)+encodeURIComponent(_0x5c167e),_0xfb9dce={'body':_0x580c74},_0x341623=(await this[_0x521662(0x16a)][_0x521662(0x3d8)](_0x15939a,_0xfb9dce))[_0x521662(0xc1)];if(typeof _0x341623[_0x521662(0x194)]!=_0x521662(0x22c))return this[_0x521662(0x1be)](),Promise[_0x521662(0x1e3)](Error(_0x4aa170[_0x521662(0x204)][_0x521662(0x25c)]));_0x112499=_0x341623[_0x521662(0x194)];}catch{return this['_decreaseWaiting'](),Promise[_0x521662(0x1e3)](Error(_0x4aa170['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0x270c09,_0x21acb4)=>{let _0x5d136f=new FileReader();_0x5d136f['readAsDataURL'](_0x489578),_0x5d136f['onload']=_0x5e49d3=>{const _0x5ae63c=_0x4364;var _0x5292d5;let _0x32c405=(_0x5292d5=_0x5e49d3[_0x5ae63c(0x22d)])==null?void 0x0:_0x5292d5['result'];if(_0x32c405==null){this[_0x5ae63c(0x1be)](),_0x21acb4(Error(_0x4aa170['ImageUploadStatusType']['ERROR_IMAGE']));return;}_0x270c09({'imageId':(0x0,_0x4f2fc5[_0x5ae63c(0x393)])(0x6),'imageSourceType':_0x4aa170[_0x5ae63c(0x28d)][_0x5ae63c(0xd4)],'source':_0x112499,'base64Cache':_0x32c405,'status':_0x4aa170['ImageUploadStatusType']['SUCCUSS']}),this[_0x5ae63c(0x1be)]();};});}[_0x3c7add(0x309)](){const _0x563168=_0x3c7add;var _0x5bf68d;let _0x4e4286=this[_0x563168(0x33c)][_0x563168(0x1e1)](_0x11e35b);return(_0x5bf68d=_0x4e4286==null?void 0x0:_0x4e4286[_0x563168(0x368)])==null?'/universer-api/stream/file/upload':_0x5bf68d;}[_0x3c7add(0x108)](){const _0x365370=_0x3c7add;var _0x51d126;let _0x6d52ce=this[_0x365370(0x33c)][_0x365370(0x1e1)](_0x11e35b);return(_0x51d126=_0x6d52ce==null?void 0x0:_0x6d52ce[_0x365370(0x123)])==null?_0x365370(0x171):_0x51d126;}[_0x3c7add(0x308)](){const _0x16a89e=_0x3c7add;var _0x379ffc;let _0x19ff7c=this[_0x16a89e(0x33c)][_0x16a89e(0x1e1)](_0x11e35b);return(_0x379ffc=_0x19ff7c==null?void 0x0:_0x19ff7c['downloadEndpointUrl'])==null?location[_0x16a89e(0x35f)]:_0x379ffc;}[_0x3c7add(0x20f)](_0x12d4d9,_0x1b8268){const _0x24bcdf=_0x3c7add;return _0x12d4d9[_0x24bcdf(0x378)](_0x24bcdf(0x11c),_0x1b8268);}[_0x3c7add(0x1be)](){const _0x3545c2=_0x3c7add;--this[_0x3545c2(0x130)],this[_0x3545c2(0xed)][_0x3545c2(0x232)](this['_waitCount']);}};_0x336bd5=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4fa7e8[_0x3c7add(0xf3)])),_0x78c766(0x1,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0x2,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['IUniverInstanceService']))],_0x336bd5);let _0x58af56=class{constructor(_0xa33ea,_0x2b100d){const _0x86cc11=_0x3c7add;this['_configService']=_0xa33ea,this[_0x86cc11(0x137)]=_0x2b100d;}[_0x3c7add(0x352)](){const _0x57f473=_0x3c7add;var _0x4f9503;let _0x3a1526=this[_0x57f473(0x33c)][_0x57f473(0x1e1)](_0x11e35b);return(_0x4f9503=_0x3a1526==null?void 0x0:_0x3a1526['authzUrl'])==null?_0x57f473(0x392):_0x4f9503;}async[_0x3c7add(0x1d4)](_0x84584){const _0x179037=_0x3c7add;let _0xdcbd13=this['_getAPIPrefixPath']()+'/collaborator';return{'list':[{'title':_0x179037(0x290),'mentions':(await this['_HTTPService'][_0x179037(0x1fd)](_0xdcbd13,{'params':{'objectID':_0x84584[_0x179037(0x225)],'unitID':_0x84584[_0x179037(0x225)]}}))[_0x179037(0xc1)][_0x179037(0xde)]['map'](_0x1f47ed=>({'objectId':_0x1f47ed['id'],'name':_0x1f47ed[_0x179037(0x12c)][_0x179037(0x3ca)],'metadata':{'icon':_0x1f47ed[_0x179037(0x12c)][_0x179037(0x226)]},'label':_0x1f47ed[_0x179037(0x12c)][_0x179037(0x3ca)],'objectType':_0x4f2fc5[_0x179037(0x3c4)]['PERSON']})),'metadata':{},'type':_0x4f2fc5[_0x179037(0x3c4)][_0x179037(0x350)]}]};}};_0x58af56=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5['IConfigService'])),_0x78c766(0x1,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4fa7e8[_0x3c7add(0xf3)]))],_0x58af56);let _0x4b235c=class extends _0x4f2fc5[_0x3c7add(0x145)]{constructor(_0xd40479,_0x4dd6f6,_0x31b302,_0x5dd351,_0xf9381f){const _0x529017=_0x3c7add;super(),this[_0x529017(0x37b)]=_0xd40479,this['_univerInstanceService']=_0x4dd6f6,this[_0x529017(0x1cb)]=_0x31b302,this['_collaborationSessionService']=_0x5dd351,this[_0x529017(0x264)]=_0xf9381f,this[_0x529017(0x323)](),this[_0x529017(0x110)]();}['_initCloseConn'](){const _0x1af695=_0x3c7add;let _0xb2844f=async _0x2a4e4=>{const _0x3cb70c=_0x4364;(await this[_0x3cb70c(0x322)]['requireSession'](_0x2a4e4))['event$']['pipe']((0x0,_0x5c83a6[_0x3cb70c(0x143)])(_0x3f39c1=>_0x3f39c1[_0x3cb70c(0x1ff)]===_0x597ddf[_0x3cb70c(0xf9)][_0x3cb70c(0x3c3)]),(0x0,_0x5c83a6[_0x3cb70c(0x1fa)])(this['dispose$']))[_0x3cb70c(0x237)](_0x3e2009=>{const _0x3cc2a6=_0x3cb70c;let {reason:_0xc564a4}=_0x3e2009[_0x3cc2a6(0x37e)];this[_0x3cc2a6(0x264)]['emitEvent']({'id':_0x3cc2a6(0x3c9),'data':_0xc564a4}),this['_permissionService'][_0x3cc2a6(0x251)](new _0x575377['WorkbookEditablePermission'](_0x2a4e4)['id'],!0x1),this['_collaborationSessionService'][_0x3cc2a6(0x32c)](_0x2a4e4);});};(0x0,_0x196a42['merge'])(this[_0x1af695(0x243)]['getTypeOfUnitAdded$'](_0x4f2fc5['UniverInstanceType'][_0x1af695(0x2a4)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x4f2fc5[_0x1af695(0x22e)][_0x1af695(0x2d5)]))[_0x1af695(0x397)]((0x0,_0x5c83a6[_0x1af695(0x192)])(_0x4814b7=>_0x4814b7[_0x1af695(0x1f3)][_0x1af695(0x21a)]()),(0x0,_0x5c83a6[_0x1af695(0x143)])(_0x1fce94=>!(0x0,_0x4f2fc5['isInternalEditorID'])(_0x1fce94)),(0x0,_0x5c83a6[_0x1af695(0x1fa)])(this[_0x1af695(0x163)]))[_0x1af695(0x237)](_0x12e35a=>{_0xb2844f(_0x12e35a);});}[_0x3c7add(0x323)](){const _0x21cf32=_0x3c7add;let _0x42fc25=async _0x2ef73d=>{const _0x23f95d=_0x4364;let _0x2c83c1=await this[_0x23f95d(0x322)][_0x23f95d(0x249)](_0x2ef73d),_0x5f4d46=this[_0x23f95d(0x37b)][_0x23f95d(0x1fd)](_0x575377[_0x23f95d(0x2c5)]);_0x2c83c1[_0x23f95d(0x211)][_0x23f95d(0x397)]((0x0,_0x5c83a6[_0x23f95d(0x143)])(_0x54bb07=>_0x54bb07['eventID']===_0x597ddf[_0x23f95d(0xf9)][_0x23f95d(0x1dc)]),(0x0,_0x5c83a6['takeUntil'])(this[_0x23f95d(0x163)]))['subscribe'](_0x33a452=>{const _0x4f9b69=_0x23f95d;let {objectId:_0x20ff6b}=_0x33a452['data'];_0x20ff6b===_0x2ef73d?_0x5f4d46[_0x4f9b69(0x1a7)](_0x2ef73d):_0x5f4d46[_0x4f9b69(0x131)](_0x2ef73d,_0x20ff6b);});};(0x0,_0x196a42[_0x21cf32(0x1b5)])(this[_0x21cf32(0x243)]['getTypeOfUnitAdded$'](_0x4f2fc5[_0x21cf32(0x22e)][_0x21cf32(0x2a4)]))[_0x21cf32(0x397)]((0x0,_0x5c83a6[_0x21cf32(0x192)])(_0x3ddc30=>_0x3ddc30[_0x21cf32(0x1f3)][_0x21cf32(0x21a)]()),(0x0,_0x5c83a6[_0x21cf32(0x143)])(_0x588972=>!(0x0,_0x4f2fc5['isInternalEditorID'])(_0x588972)),(0x0,_0x5c83a6[_0x21cf32(0x1fa)])(this[_0x21cf32(0x163)]))[_0x21cf32(0x237)](_0x1f2137=>{_0x42fc25(_0x1f2137);});}};_0x4b235c=_0x38f352([_0x78c766(0x0,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x1,_0x4f2fc5['IUniverInstanceService']),_0x78c766(0x2,_0x4f2fc5[_0x3c7add(0x1c4)]),_0x78c766(0x3,(0x0,_0x4f2fc5['Inject'])(_0x5af92e)),_0x78c766(0x4,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x20d828))],_0x4b235c);let _0x25e92a=class{constructor(_0x33d6a1,_0x3fe7f4){const _0x12325d=_0x3c7add;this[_0x12325d(0x33c)]=_0x33d6a1,this['_httpService']=_0x3fe7f4;}async['getUnitOnRev'](_0x363418,_0x414fdc){const _0x3aa396=_0x3c7add;var _0x2c5194;let {unitID:_0x597c8b,type:_0x55fb24,revision:_0x5b4e6a=0x0}=_0x414fdc,_0x4fa2f7=this[_0x3aa396(0x128)]()+'/'+_0x55fb24+_0x3aa396(0x221)+_0x597c8b+_0x3aa396(0x3cb)+_0x5b4e6a,_0x111cfc=(await this[_0x3aa396(0x16a)][_0x3aa396(0x1fd)](_0x4fa2f7))[_0x3aa396(0xc1)],_0x1ddb99=(_0x2c5194=_0x111cfc[_0x3aa396(0x13f)])==null?void 0x0:_0x2c5194[_0x3aa396(0x153)];if(_0x1ddb99){let _0x2e768d=_0x1ddb99==null?void 0x0:_0x1ddb99[_0x3aa396(0x324)];_0x1ddb99[_0x3aa396(0x324)]=_0x597ddf[_0x3aa396(0x331)][_0x3aa396(0xea)]((0x0,_0x597ddf[_0x3aa396(0x260)])(_0x2e768d)),Object[_0x3aa396(0x233)](_0x1ddb99[_0x3aa396(0x219)])[_0x3aa396(0x253)](([,_0x1d0510])=>{const _0x369ce7=_0x3aa396;let _0x21f44c=_0x1d0510[_0x369ce7(0x324)];_0x1d0510[_0x369ce7(0x324)]=_0x597ddf[_0x369ce7(0x331)][_0x369ce7(0xea)]((0x0,_0x597ddf[_0x369ce7(0x260)])(_0x21f44c));});}return _0x111cfc;}async[_0x3c7add(0x276)](_0x560c39,_0x2e7237){const _0x1d6fa8=_0x3c7add;let {unitID:_0x4e01c8,type:_0x2d46bd,blockID:_0xa8a4cf}=_0x2e7237,_0x5a12a7=this[_0x1d6fa8(0x27d)]()+'/'+_0x2d46bd+'/unit/'+_0x4e01c8+_0x1d6fa8(0x32e)+_0xa8a4cf;return(await this[_0x1d6fa8(0x16a)][_0x1d6fa8(0x1fd)](_0x5a12a7))[_0x1d6fa8(0xc1)];}async[_0x3c7add(0xf1)](_0x1915ae,_0x197b41){const _0x2d6d50=_0x3c7add;let {unitID:_0x2204c4,type:_0x2607e8,blockID:_0x2f1df0}=_0x197b41,_0x530da0=this[_0x2d6d50(0x27d)]()+'/block/'+_0x2607e8+_0x2d6d50(0x221)+_0x2204c4+_0x2d6d50(0x32e)+_0x2f1df0;return(await this[_0x2d6d50(0x16a)][_0x2d6d50(0x1fd)](_0x530da0))[_0x2d6d50(0xc1)];}async[_0x3c7add(0x303)](_0x8a5f4c,_0x18e6ba){const _0x34f662=_0x3c7add;let {unitID:_0x217a9c,type:_0x4a4387,from:_0x296c72,to:_0xd73997}=_0x18e6ba,_0x46f392=this[_0x34f662(0x27d)]()+'/'+_0x4a4387+'/unit/'+_0x217a9c+_0x34f662(0x2d6)+_0x296c72+_0x34f662(0x299)+_0xd73997;return(await this[_0x34f662(0x16a)][_0x34f662(0x1fd)](_0x46f392))['body'];}[_0x3c7add(0x128)](){const _0x1b6154=_0x3c7add;var _0xadc2ea;return(_0xadc2ea=this[_0x1b6154(0x33c)][_0x1b6154(0x1e1)](_0x1b6154(0x376)))==null?this['_getAPIPrefix']():_0xadc2ea;}[_0x3c7add(0x27d)](){const _0x2fc50d=_0x3c7add;var _0x3d7ab9;let _0x44ac27=this[_0x2fc50d(0x33c)]['getConfig'](_0x11e35b);return(_0x3d7ab9=_0x44ac27==null?void 0x0:_0x44ac27[_0x2fc50d(0xc5)])==null?'/universer-api/snapshot':_0x3d7ab9;}async[_0x3c7add(0x29c)](_0x3a25ca,_0x3c2766){const _0x20531a=_0x3c7add;let _0x370997='/universer-api/snapshot/'+_0x3c2766[_0x20531a(0x3c8)]+_0x20531a(0x221)+_0x3c2766[_0x20531a(0x11a)]+_0x20531a(0x348);return(await this[_0x20531a(0x16a)][_0x20531a(0x1fd)](_0x370997,{'params':{'resourceId':JSON[_0x20531a(0x265)](_0x3c2766[_0x20531a(0x3a8)])}}))[_0x20531a(0xc1)];}[_0x3c7add(0x35b)](){const _0x889898=_0x3c7add;throw Error(_0x889898(0x2be));}[_0x3c7add(0x162)](){const _0x34dbc8=_0x3c7add;throw Error(_0x34dbc8(0x2be));}[_0x3c7add(0x2a2)](){const _0x5b9982=_0x3c7add;throw Error(_0x5b9982(0x2be));}['saveChangeset'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3c7add(0xcc)](){const _0x2a90c6=_0x3c7add;throw Error(_0x2a90c6(0x2be));}[_0x3c7add(0x34d)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};_0x25e92a=_0x38f352([_0x78c766(0x0,_0x4f2fc5[_0x3c7add(0x312)]),_0x78c766(0x1,(0x0,_0x4f2fc5[_0x3c7add(0x24f)])(_0x4fa7e8[_0x3c7add(0xf3)]))],_0x25e92a);let _0xe132f=class extends _0x4f2fc5[_0x3c7add(0x17b)]{constructor(_0x2a7c6a,_0x566d71,_0x3e884a,_0x366722,_0x2546b3){const _0xd1a473=_0x3c7add;super(_0x2a7c6a,_0x566d71,_0x3e884a),this[_0xd1a473(0x220)]=_0x366722,this[_0xd1a473(0x10b)]=_0x2546b3;}['transformUndoRedo'](_0x1d3e89,_0x268f20){const _0x3cb3b7=_0x3c7add;let _0x4cdb33=this['_getUndoStack'](_0x1d3e89);if(_0x4cdb33)try{let _0x2988ac=this['_transformStack'](_0x4cdb33,_0x268f20);this[_0x3cb3b7(0xf5)](_0x1d3e89,_0x2988ac);}catch(_0x5d6932){this[_0x3cb3b7(0x10b)][_0x3cb3b7(0x1f0)]('[CollaborationUndoRedoService]',_0x5d6932),this[_0x3cb3b7(0x1db)](_0x1d3e89);}let _0x412f80=this['_getRedoStack'](_0x1d3e89);if(_0x412f80)try{let _0x5e8523=this[_0x3cb3b7(0x353)](_0x412f80,_0x268f20);this[_0x3cb3b7(0x197)](_0x1d3e89,_0x5e8523);}catch(_0x5bab2a){this['_logService'][_0x3cb3b7(0x1f0)](_0x5bab2a),this[_0x3cb3b7(0x11f)](_0x1d3e89);}}[_0x3c7add(0x1db)](_0x1e7dcd){const _0x3e6cbd=_0x3c7add;let _0x4af9e7=this['_getUndoStack'](_0x1e7dcd);_0x4af9e7&&(_0x4af9e7['length']=0x0,this[_0x3e6cbd(0x149)]());}[_0x3c7add(0x11f)](_0x51e4ac){const _0x2443a5=_0x3c7add;let _0x22f431=this['_getRedoStack'](_0x51e4ac);_0x22f431&&(_0x22f431[_0x2443a5(0x3a4)]=0x0,this['_updateStatus']());}['_substituteUndoStack'](_0xdc733,_0x104d9c){const _0x13249a=_0x3c7add;this['_undoStacks'][_0x13249a(0x38b)](_0xdc733,_0x104d9c),this[_0x13249a(0x149)]();}['_substituteRedoStack'](_0x13d30c,_0x1772da){const _0x4aa039=_0x3c7add;this[_0x4aa039(0x133)][_0x4aa039(0x38b)](_0x13d30c,_0x1772da),this['_updateStatus']();}[_0x3c7add(0x353)](_0x93f865,_0xcd03f4){const _0x562e4e=_0x3c7add;let _0x3f953e=[],_0x5c680d=_0xcd03f4,_0x3e74f3=_0xcd03f4;for(let _0x101529=_0x93f865[_0x562e4e(0x3a4)]-0x1;_0x101529>=0x0;_0x101529--){let {unitID:_0x4e2b50,undoMutations:_0x2d1d8f,redoMutations:_0x1433bd}=_0x93f865[_0x101529],_0x322a97=this[_0x562e4e(0x220)][_0x562e4e(0x1a1)](_0x5c680d,_0x2d1d8f),_0x364b8f=this['_transformService']['transformMutationsWithChangeset'](_0x3e74f3,_0x1433bd);if((0x0,_0x597ddf[_0x562e4e(0x218)])(_0x322a97)||(0x0,_0x597ddf[_0x562e4e(0x218)])(_0x364b8f)){this[_0x562e4e(0x10b)][_0x562e4e(0x1f0)](_0x562e4e(0x32d),_0x562e4e(0xd2),_0x322a97,_0x364b8f);break;}_0x5c680d=_0x322a97[_0x562e4e(0x23f)],_0x3e74f3=_0x364b8f[_0x562e4e(0x23f)],_0x3f953e['push']({'unitID':_0x4e2b50,'undoMutations':_0x322a97[_0x562e4e(0x3bc)],'redoMutations':_0x364b8f[_0x562e4e(0x3bc)]});}return _0x3f953e['reverse']();}};_0xe132f=_0x38f352([_0x78c766(0x0,_0x4f2fc5[_0x3c7add(0x1d0)]),_0x78c766(0x1,_0x4f2fc5[_0x3c7add(0x2e1)]),_0x78c766(0x2,_0x4f2fc5[_0x3c7add(0x167)]),_0x78c766(0x3,_0x597ddf[_0x3c7add(0x12e)]),_0x78c766(0x4,_0x4f2fc5['ILogService'])],_0xe132f);let _0x5bec0b=class extends _0x4f2fc5['Plugin']{constructor(_0x56ff72={},_0x1f0805,_0x19f739,_0x50cef2){const _0x2db7e2=_0x3c7add;super(),this[_0x2db7e2(0x116)]=_0x56ff72,this[_0x2db7e2(0x10b)]=_0x1f0805,this[_0x2db7e2(0x37b)]=_0x19f739,this['_configService']=_0x50cef2;let {..._0xd9eaf5}=(0x0,_0x4f2fc5[_0x2db7e2(0x1b5)])({},_0xdd2c56,_0x56ff72);if(!_0xd9eaf5[_0x2db7e2(0x31f)])throw Error('[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!');this[_0x2db7e2(0x116)]=_0xd9eaf5,this[_0x2db7e2(0x33c)][_0x2db7e2(0x18d)](_0x11e35b,_0xd9eaf5);}[_0x3c7add(0x246)](){const _0x106cc6=_0x3c7add;this['_registerDependencies'](),this[_0x106cc6(0x2b3)]();}['_registerDependencies'](){const _0x3e8165=_0x3c7add;var _0x13e4fb,_0x362753;this['_injector'][_0x3e8165(0x22a)](_0x4f2fc5[_0x3e8165(0x2c0)])&&this[_0x3e8165(0x10b)]['error'](_0x3e8165(0x182),_0x3e8165(0x2e3));let _0x4cd1df=(0x0,_0x4f2fc5['mergeOverrideWithDependencies'])([[_0x4f2fc5['IUndoRedoService'],{'useClass':_0xe132f}],[_0x5af92e],[_0x359f82],[_0x479f64],[_0x3b4d7a],[_0x213b55],[_0x2ea459],[_0x4b235c],[_0x20d828],[_0x3090fa],[_0x2a6fcc,{'useClass':this[_0x3e8165(0x116)][_0x3e8165(0x31f)]}],[_0x597ddf[_0x3e8165(0x2bb)],{'useClass':_0x25e92a}],[_0x4f2fc5[_0x3e8165(0x1b7)],{'useClass':_0x510ca4}],[_0x4aa170[_0x3e8165(0x1d2)],{'useClass':_0x336bd5}],[_0x4f2fc5[_0x3e8165(0x1bf)],{'useClass':_0x58af56}],[_0x384fde],[_0x5a42c3]],(_0x13e4fb=this[_0x3e8165(0x116)])==null?void 0x0:_0x13e4fb[_0x3e8165(0x10f)]);if(!((_0x362753=this[_0x3e8165(0x116)])!=null&&_0x362753[_0x3e8165(0x17e)])){let _0x3d3f54=_0x4cd1df[_0x3e8165(0x2d1)](([_0x2135be])=>_0x2135be===_0x546860);_0x3d3f54!==-0x1&&_0x4cd1df[_0x3e8165(0x1c8)](_0x3d3f54,0x1);}(0x0,_0x4f2fc5['registerDependencies'])(this[_0x3e8165(0x37b)],_0x4cd1df);}[_0x3c7add(0x2b3)](){const _0x3a5f2a=_0x3c7add;var _0x5ce6ab,_0x1a1934;if(this['_injector']['get'](_0x4fa7e8[_0x3a5f2a(0xf3)])[_0x3a5f2a(0x26a)]({'priority':0x14,'interceptor':(0x0,_0x4fa7e8[_0x3a5f2a(0x36d)])({'maxParallel':0x6})}),!((_0x5ce6ab=this[_0x3a5f2a(0x116)])!=null&&_0x5ce6ab['enableOfflineEditing'])){var _0x2dc387;(_0x2dc387=this[_0x3a5f2a(0x37b)]['get'](_0x54dcc4,_0x4f2fc5[_0x3a5f2a(0x122)][_0x3a5f2a(0x186)]))==null||_0x2dc387[_0x3a5f2a(0x316)]();}(_0x1a1934=this[_0x3a5f2a(0x116)])!=null&&_0x1a1934['enableAuthServer']&&(0x0,_0x4f2fc5[_0x3a5f2a(0x174)])(this['_injector'],[[_0x3b4d7a]]),(0x0,_0x4f2fc5[_0x3a5f2a(0x174)])(this[_0x3a5f2a(0x37b)],[[_0x213b55],[_0x384fde],[_0x4b235c]]);}};_0x45730e(_0x5bec0b,_0x3c7add(0x2f9),_0x3c7add(0x1f6)),_0x45730e(_0x5bec0b,_0x3c7add(0x3ab),_0x34e3ba),_0x45730e(_0x5bec0b,_0x3c7add(0x190),_0x3d82eb),_0x5bec0b=_0x38f352([(0x0,_0x4f2fc5[_0x3c7add(0x2ca)])(_0x4a0b74['UniverLicensePlugin'],_0x597ddf[_0x3c7add(0x2aa)],_0x4fa7e8[_0x3c7add(0x38a)]),_0x78c766(0x1,_0x4f2fc5[_0x3c7add(0xd1)]),_0x78c766(0x2,(0x0,_0x4f2fc5['Inject'])(_0x4f2fc5[_0x3c7add(0xfe)])),_0x78c766(0x3,_0x4f2fc5[_0x3c7add(0x312)])],_0x5bec0b),Object[_0x3c7add(0x2ab)](_0x10f62c,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return _0x510ca4;}}),Object['defineProperty'](_0x10f62c,'AwaitingState',{'enumerable':!0x0,'get':function(){return _0x441552;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x3d4),{'enumerable':!0x0,'get':function(){return _0x2a0e64;}}),_0x10f62c['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=_0x11e35b,Object[_0x3c7add(0x2ab)](_0x10f62c,'CollaborationController',{'enumerable':!0x0,'get':function(){return _0x384fde;}}),Object['defineProperty'](_0x10f62c,_0x3c7add(0x2d9),{'enumerable':!0x0,'get':function(){return _0x137310;}}),Object['defineProperty'](_0x10f62c,_0x3c7add(0x29e),{'enumerable':!0x0,'get':function(){return _0x336bd5;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x191),{'enumerable':!0x0,'get':function(){return _0x1d1b7a;}}),Object['defineProperty'](_0x10f62c,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x5af92e;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x1c9),{'enumerable':!0x0,'get':function(){return _0x3d275e;}}),_0x10f62c[_0x3c7add(0x38d)]=_0xe9e27d,_0x10f62c[_0x3c7add(0x2f2)]=_0x403eeb,_0x10f62c[_0x3c7add(0x35e)]=_0x20d828,Object[_0x3c7add(0x2ab)](_0x10f62c,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return _0xe132f;}}),_0x10f62c[_0x3c7add(0x178)]=_0x2ea459,Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x380),{'enumerable':!0x0,'get':function(){return _0x2cb513;}}),_0x10f62c[_0x3c7add(0xd0)]=_0x40bad1,_0x10f62c[_0x3c7add(0x27f)]=_0x3c7add(0x2b5),_0x10f62c[_0x3c7add(0x2b0)]=_0x3c7add(0x141),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x390),{'enumerable':!0x0,'get':function(){return _0x3090fa;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x2ad),{'enumerable':!0x0,'get':function(){return _0x44307b;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x183),{'enumerable':!0x0,'get':function(){return _0x47f959;}}),_0x10f62c[_0x3c7add(0x170)]=_0x3c7add(0x2a9),_0x10f62c[_0x3c7add(0x126)]=_0x3c7add(0xf2),_0x10f62c[_0x3c7add(0x287)]=_0x2a6fcc,_0x10f62c[_0x3c7add(0x165)]=_0x54dcc4,_0x10f62c[_0x3c7add(0x1a4)]=_0x5984c8,_0x10f62c[_0x3c7add(0x34a)]=_0x546860,_0x10f62c[_0x3c7add(0x2eb)]=0x3e8,_0x10f62c[_0x3c7add(0x3ac)]=_0x3c7add(0x2eb),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x379),{'enumerable':!0x0,'get':function(){return _0x359f82;}}),Object['defineProperty'](_0x10f62c,_0x3c7add(0x3c5),{'enumerable':!0x0,'get':function(){return _0x58af56;}}),Object['defineProperty'](_0x10f62c,_0x3c7add(0x319),{'enumerable':!0x0,'get':function(){return _0x405ee9;}}),Object['defineProperty'](_0x10f62c,'PendingState',{'enumerable':!0x0,'get':function(){return _0x2c2e17;}}),_0x10f62c[_0x3c7add(0x3be)]=_0x3c7add(0x302),_0x10f62c['RETRY_CONNECTING_MAX_COUNT_KEY']='RETRY_CONNECTING_MAX_COUNT',_0x10f62c[_0x3c7add(0x1e0)]=_0x2a7e6c,Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x314),{'enumerable':!0x0,'get':function(){return _0xb49add;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x3dc),{'enumerable':!0x0,'get':function(){return _0x479f64;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x3a9),{'enumerable':!0x0,'get':function(){return _0x25e92a;}}),Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x104),{'enumerable':!0x0,'get':function(){return _0x2168a9;}}),_0x10f62c[_0x3c7add(0x125)]=_0x2e8335,Object[_0x3c7add(0x2ab)](_0x10f62c,_0x3c7add(0x3a0),{'enumerable':!0x0,'get':function(){return _0x5bec0b;}}),_0x10f62c[_0x3c7add(0x2e2)]=_0x3e0e79,_0x10f62c['getLocalCacheKey']=_0x58d90e,_0x10f62c[_0x3c7add(0x1b8)]=_0x14d4cf;}));function _0x4379(){const _0x115756=['batchAllowed','LIVESHARE_TERMINATE','max','updateCollaborator','parse','COMMENT_UPDATE','IConfigService','executeCommand','SheetCollaborationEntity','session.join-failed','disableLocalCache','OFFLINE','localCacheService','OfflineState','collaboration_new_changeset','message$','_entityInit$','_resendWithTimeout','CombCmd','socketService','onTransformIME','334oXUYqM','_collaborationSessionService','_initUnitPermissionChange','originalMeta','_maxTotalRetryTimeout','_transformAndApplyRemoteChangeset','_fetchMissChangesets','MergeInterceptorFactory','title','add','InsertSheetMutation','closeSession','[CollaborationUndoRedoService]','/block/','_handleRemoteChangesets','selections','textEncoder','fromCharCode','byteOffset','_showConflictNotification','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','loadUnit','fromCollab','sessionStatus','enableCollaboration','method','/role','_configService','location','_type','from','deepClone','_sessions','responseType','every','isTransformMutationsWithChangesetSuccess','_clearTimeoutTimer','onTransformState','_event$','/resources','_rescheduleHeartbeat','ISingleActiveUnitService','JOIN_ROOM_FULL','collabWebSocketUrl','getLatestCsReqIdBySid','updateCursorEvent','shareReplay','PERSON','getCollabEntity','_getAPIPrefixPath','_transformStack','PERMISSION_DENIED','_timeoutTimer','ReplaySubject','_onJoinRoomEvent','toString','ERROR_IMAGE_TYPE','\x20in\x20_schedule.','saveSnapshot','3809817bIxteS','parseChangesetToProtocol','CollaborationUIEventService','origin','_removeRoom','[OfflineState]:\x20received\x20changeset.','submit\x20changeset\x20error!','[CollaborationEntity]','floor','emitEvent','_userManagerService','/allowed','uploadFileServerUrl','@univerjs-pro/collaboration-client','_retryCount','values','13682096qKegTT','ThresholdInterceptorFactory','setShowComponents','removeMember','getAllMembers','focused$','newCsEvent','getTypeOfUnitAdded$','onRemoteRej','SUBMIT_CHANGESET','SNAPSHOT_URL_KEY','_exhaustRemoteChangesetQueue','replace','MemberService','_init','_injector','objectType','UniverSheets','data','HELLO','ConflictState','_clearRetryConnectingTimer','univer-pro.collaboration-client.single-active-unit-service','RichTextEditingMutation','&assign=','_throwTelemetryCollaborationNewChangeset','getRoom','encrypt','amd','POST','UniverNetworkPlugin','set','[CollaborationSession]','CollaborationStatus','_unlockTransition','failed\x20to\x20apply\x20missed\x20changesets!','DataLoaderService','OTHER_CLIENTS_EDITING','/universer-api/authz','generateRandomId','_entities','_executeRemoteChangeset','fetch_missing','pipe','\x0aCurrent:\x20','_sendHeartbeatTimer','session.room-cnt-exceeds','49441650aimCfl','FAIL','_state','_revisionService','objects','UniverCollaborationClientPlugin','_acknowledgeAwaiting','decrypt','file','length','putCollaborators','_onOffline','buffer','resourceIDs','SnapshotServerOverHTTPService','_onRemoteRetry','packageName','LOCAL_CACHE_INTERVAL_KEY','getImage','_clearLocalCache','min','HEARTBEAT','disposeWithMe','LocaleService','rev','_telemetryInfo','_incrementRevisionNumber','@univerjs-pro/collaboration','unknown','csRejEvent','includes','reqId','call','m2Prime','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','OTHER_CLIENT_EDITING','/collaborator','members$','CmdRspCode','SHOULD_CLOSE_CONN','MentionType','MentionIoHttpService','_sessionStatus$','_instanceService','type','CLOSE_ROOM','name','/rev/','telemetry\x20info\x20is\x20not\x20initialized','listRoles','_state$','_updateLocalCache','_changesetSessionId','getCfgEnableObjInherit','DEFAULT_FILE_NAME','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','AwaitingWithPendingState','byteLength','csAckEvent','EmptyMutationInfo','post','concatMap','UniverTelemetry','onLocalMutation','SheetTransformSelectionsService','indexOf','startsWith','getOwnPropertyDescriptor','_toggleOffline','_clearCollaborationTimeoutTimer','collaMsg','AWAITING','_onRemoteRejected','readyForCollab','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','Optional','hostname','body','toStringTag','MSG_FOR_ERROR','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','snapshotServerUrl','asObservable','_createInitialState','_stopTelemetryCollaborationNewChangeset','src','x-univer-host','updatePermissionObjEvent','copyFileMeta','[OfflineState]:\x20received\x20acknowledgement.','editing\x20status\x20changed\x20to','_members','DEFAULT_COLLAB_WEB_SOCKET_URL','ILogService','transformStack\x20failed!','invalid\x20output,\x20must\x20be\x20aligned','UUID','_getSendChangesetTimeout','@univerjs/network','_queuedRemoteChangesets','CONFLICT','ERROR_EXCEED_SIZE','change$','params','_unitID','getMemberID','collaborators','JSONX','_startTelemetryCollaborationNewChangeset','_retryConnectingTimer','charCodeAt','status$','aes/pkcs7:\x20wrong\x20padding','actions','objectActions','tagLength','LEAVE','\x0aAfter:\x20','encode','_onUserLeave','_changesetReqId','_change$','29409hiIbKc','114HKqyAW','_transformSelections','getDeserializedSheetBlock','HEARTBEAT_TIMEOUT','HTTPService','univer-pro.collaboration-client-socket-service','_substituteUndoStack','JOIN_ROOM_PERMISSION_DENIED','type=','getTime','CollaborationEvent','CHANGESET_REJ','operators','_snapshotService','IDLE','Injector','unit-cache-','setCurrentUser','_eventService','?url=','_imageSourceCache','SyncedState','MUTATION','UniverDocs','_roomMembers','_getSignURL','reconnect','_snapshotServerService','_logService','fetchMiss','transformUndoRedo','UPDATE_CURSOR','override','_initCloseConn','_commandService','ONLINE','close$','Uint8Array','some','_config','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','_getCurrentRevision','0.25.0','unitID','getCurrentUser','{fileID}','LIVESHARE_REQUEST_HOST','GLOBAL_ROOMS_CNT_EXCEEDS','_clearRedo','onSyncEditingCollabCursor','USERS_LEAVE','Quantity','signUrlServerUrl','routeKey','UnitStatus','HEARTBEAT_TIMEOUT_KEY','getGlobalObject','getSnapshotAPIPath','_singleActiveUnitService','_localCacheService','DisposableCollection','subject','_replayCachedMutations','ITransformService','Workbook','_waitCount','refreshPermission','INGEST','_redoStacks','UniverCore','_sendHeartbeat','_clearHeartbeatTimer','_HTTPService','collaboratorID','getCurrentRevOfUnit','_shouldReportTelemetry','_disableEditing','_transitionLocked','?size=','_listenToNetworkCondition','snapshot','_telemetryService','/universer-api/user/session-ticket','getInterceptPoints','filter','_tryEnsureSocket','RxDisposable','compose','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','ISocketService','_updateStatus','symbol','isPermissionRej','_syncEditingCollabCursor','[FetchMissState]','awaiting','state','[CollaborationSessionService]:\x20socket\x20error','fetching\x20missing\x20changesets\x20from\x20','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','workbook','/universer-api/oidc/authpage','missingChangesets','getSheetId','loadSheet','SnapshotService','@univerjs/drawing','conflict','COMPRESS_MUTATION_APPLY','resolve','resend','createSocket','withCredentials','_initRequestHeader','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','updateSnapshot','dispose$','toDisposable','ILocalCacheService','_memberService','IContextService','_handler','LIVESHARE_OPERATION','_httpService','setWaitCount','function','UniverProLicense','number','permissionRejEvent','HEARTBEAT_INTERVAL_KEY','/universer-api/file/{fileID}/sign-url','addImageSourceCache','updateOfflineData','touchDependencies','code','onlyLocal','RETRY_CONNECTING_MAX_COUNT','CommentService','_schedule','Wrong\x20sbox\x20length','LocalUndoRedoService','resolveWithBasePath','_sendingTimer','enableSingleActiveInstanceLock','subarray','close','onTransformRemoteChangesetByIMECache','[UniverCollaborationClientPlugin]','FetchingMissState','@univerjs-pro/license','JOIN_ROOM_FAILED','OPTIONAL','collaboration-client.local-cache-service','sessionStatus$','_roomCreated$','_onLocalMutation','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','_compressMutationService','setConfig','@univerjs/core','offline','version','CollaborationSession','map','_unitInfo$','FileId','_sheetTransformSelectionsService','_status$','_substituteRedoStack','onCommentUpdate','_initMergeInterceptor','addHandlerCallback','send','[OfflineState]:\x20received\x20rejection.','_tryReconnect','getCurrentSelections','init','isArray','transformMutationsWithChangeset','status','_commentService','INetworkConditionService','appendMutation','SYNCED','initWorkbookPermissionChange','changesets','_scheduleCompleteTimestamp','_collabSessionService','getUnitType','toggleOnline','onRemoteRetry','loginUrlKey','onMissedChangesetFetched','getTypeOfUnitDisposed$','FETCH_MISS','HTTPRequest','Tools','authzUrl','merge','updateMember','IAuthzIoService','serializeCombRequest','_clearScheduledTask','_transformRemoteChangesetByStateCache','find','error$','UNISCRIPT_RUN','_decreaseWaiting','IMentionIOService','capture','sort','_onMessage','editingUnit','IPermissionService','reduce','_onCombEvent','JOINING','splice','CollaborationSocketService','_transformRemoteChangesetByIMECache','_permissionService','/-/object/-/batch_allowed','_checkMissing','[SyncedState]:\x20received\x20rejection.','catch','IUniverInstanceService','retryConnectingInterval','IImageIoService','LIVESHARE_NEW_HOST','list','pending','create','clear','stopTime','isSafeInteger','rxjs/operators','_clearUndo','UPDATE_PERMISSION_OBJ','_pendingMutations','unitInfo$','_onRemoteACK','SessionStatus','getConfig','4zsiIcI','reject','assign','now','uniscriptRunEvent','mapDocumentTypeToUniverInstanceType','rxjs','deleteCollaborator','RECV','mutations','ws://127.0.0.1:8000/universer-api/comb/connect','collabSubmitChangesetUrl','synced','Error\x20on\x20receiving\x20event','error','_socket','onTransformRemoteChangesetByStateCache','unit','FETCH_MISSING','getWorkbookSelections','UNIVER_COLLABORATION_CLIENT_PLUGIN','url','liveShareOperation','_socket$','takeUntil','_sender','_transformStateCache','get','2709835GBNhad','eventID','_createInitialStateImpl','547384WLpcHF','dispose','NEW_CHANGESETS','ImageUploadStatusType','_candidateSocket','_startCollaboration','_acknowledgeAwaitingIfReady','incrementRevOfUnit','_toggleOnline','joinRsp','connection\x20error','loadOfflineData','_socketService','287889onbYXS','_replaceFileID','Disposable','event$','_collaborationPaused','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','@univerjs/docs','onMissingChangesets','_awaitingChangeset','/universer-api/comb','isTransformMutationsWithChangesetFailure','sheets','getUnitId','not_collab','firstValueFrom','_isPermissionRej','varSizeNonce','key','_transformService','/unit/','_joinRoom','_collaborationTimeoutTimer','@univerjs/protocol','unitId','avatar','localeService','UniverNetwork','_resendTimer','has','SUBMIT_CHANGESET_TIMEOUT','string','target','UniverInstanceType','@univerjs/telemetry','session','subUnitId','next','entries','_onConnectionOpen','_socketMessageSubscription','href','subscribe','exports','toggleOffline','[CollaborationSessionService]','_localeService','_updateState','ErrorCode','objectID','c1Prime','getCollabEntity$','onRemoteChangeset','createInstance','_univerInstanceService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','cipher\x20output\x20not\x20supported','onStarting','shouldCloseConn','unsubscribe','requireSession','[PendingState]:\x20received\x20acknowledgement.','sendChangesetTimeout','infoRsp','socket\x20close','_onUserJoin','Inject','AWAITING_WITH_PENDING','updatePermissionPoint','uuidv4','forEach','_onConflict','getMember','SetSelectionsOperation','UniverDrawing','crypto.getRandomValues\x20must\x20be\x20defined','_onRemoteChangeset','delete','USERS_ENTER','ERROR_IMAGE','\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length=','append','constructor','b64DecodeUnicode','RevisionService','ITelemetryService','_doCreateSocket','_collaborationUIEventService','stringify','parseProtocolChangeset','createIdentifier','getActiveSheet','_handlerCallback','registerHTTPInterceptor','_emitMembers','memberID','onSendChangeset','push','\x20-\x20','cmd','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','_socketReady','session.room-full','Subject','__Key__','getSheetBlock','_onFetchMissResult','SOCKET_FAILED','_applyRemoteChangeset','awaitingChangeset','[CollaborationState]:\x20apply\x20error!','Module','_getAPIPrefix','socket\x20open.','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','open$','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','textRanges','\x20of\x20length\x20','_isEchoedAwaitingChangeset','_createSocket','Rectangle','ICollaborationSocketService','UniverProtocol','positive\x20integer\x20expected,\x20got\x20','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_createHandler','ImageSourceType','output','slice','People','fetchThroughInterceptors','_submitChangeset','collaboration-client.config','liveShareNewHost','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','baseRev','csShouldRetryEvent','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','&to=','NO_OTHER_CLIENTS_EDITING','BYTES_PER_ELEMENT','getResourcesRequest','CompressMutationService','CollaborationImageIoService','SOCKET_FAILED_RETRY','allowed','object','saveSheetBlock','awaiting_with_pending','UNIVER_SHEET','delay','PENDING','take','commentUpdateEvent','HEARTBEAT_INTERVAL','UniverCollaborationPlugin','defineProperty','CHANGESET_SHOULD_RETRY','DocCollaborationEntity','getValue','number\x20expected,\x20got\x20','DEFAULT_WS_SESSION_TICKET_URL','requestParams','onMutationExecutedForCollab','_initDependencies','listCollaborators','/universer-api/uniscript','/object/','setCfgEnableObjInherit','socket$','_transformIMECache','AAD','ISnapshotServerService','[DataLoaderService]','_onConnectionFailed','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','userID','IUndoRedoService','interceptor','getImageSourceCache','size','_cfgEnableObjInherit','SheetPermissionInitController','commentUpdate$','_resendTimeout','BASE64','leaveEvent','DependentOn','state$','BehaviorSubject','onTransformSelections','_networkConditionService','roles','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','findIndex','_onRecvEvent','LIVESHARE_FETCH_OPERATIONS','onRemoteAck','UNIVER_DOC','/fetchmissing?from=','range','_waitForHeartbeatResponse','CollaborationEntity','sequenceExecute','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_commentUpdate$','nonceLength','PERMISSION_REJ','_transformUndoredo','_getLoginPath','ICommandService','deserializeToCombResponse','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_undoRedoService','revision','isView','WorkbookEditablePermission','headers','session.room-not-exists','startTime','LOCAL_CACHE_INTERVAL','debug','_members$','JOIN','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','getRandomValues','roomInfos','CollaborationUIEventId','transformChangesets','[PendingState]:\x20unhandled\x20univer\x20type:\x20','univer-pro.collaboration-client.network-condition.service','isTransformChangesetsSuccess','__splitChunk__','unitId\x20is\x20not\x20found','pluginName','confirm','_acknowledgedAwaitingRevision','result','complete','COMPRESS_MUTATION_SEND','nonce','decorate','/-/object/list','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','fetchMissingChangesets','_remoteChangesetQueue','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','session.room-permission-denied','_lockTransition','_getDownloadEndpointURL','_getUploadFileURL','sid','/new_changes'];_0x4379=function(){return _0x115756;};return _0x4379();}
|
|
2
|
+
(function(_0x2404bf,_0x2a3492){const _0x5ff4f5=_0x1555,_0x523978=_0x2404bf();while(!![]){try{const _0x1a7b58=-parseInt(_0x5ff4f5(0x332))/0x1*(parseInt(_0x5ff4f5(0x2c4))/0x2)+parseInt(_0x5ff4f5(0x2ec))/0x3*(-parseInt(_0x5ff4f5(0x377))/0x4)+parseInt(_0x5ff4f5(0x36c))/0x5+-parseInt(_0x5ff4f5(0x147))/0x6*(-parseInt(_0x5ff4f5(0x207))/0x7)+-parseInt(_0x5ff4f5(0x138))/0x8+parseInt(_0x5ff4f5(0x3a3))/0x9*(parseInt(_0x5ff4f5(0x2b9))/0xa)+-parseInt(_0x5ff4f5(0x365))/0xb*(-parseInt(_0x5ff4f5(0xc1))/0xc);if(_0x1a7b58===_0x2a3492)break;else _0x523978['push'](_0x523978['shift']());}catch(_0x3370da){_0x523978['push'](_0x523978['shift']());}}}(_0x15e6,0x8eb18),function(_0xa183d2,_0x1f34a1){const _0x49ec51=_0x1555;typeof exports==_0x49ec51(0x2d3)&&typeof module<'u'?_0x1f34a1(exports,require('@univerjs-pro/collaboration'),require('@univerjs/core'),require('@univerjs/docs'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs/protocol'),require('@univerjs/telemetry'),require('rxjs/operators'),require('@univerjs/network'),require('@univerjs-pro/license'),require('@univerjs/drawing')):typeof define=='function'&&define[_0x49ec51(0x240)]?define(['exports',_0x49ec51(0x148),_0x49ec51(0x212),'@univerjs/docs','@univerjs/sheets',_0x49ec51(0x19d),'@univerjs/protocol',_0x49ec51(0x29b),_0x49ec51(0xd1),_0x49ec51(0x2fe),_0x49ec51(0x191),_0x49ec51(0xda)],_0x1f34a1):(_0xa183d2=typeof globalThis<'u'?globalThis:_0xa183d2||self,_0x1f34a1(_0xa183d2['UniverProCollaborationClient']={},_0xa183d2[_0x49ec51(0x3c3)],_0xa183d2[_0x49ec51(0x35c)],_0xa183d2[_0x49ec51(0x25e)],_0xa183d2[_0x49ec51(0x215)],_0xa183d2['rxjs'],_0xa183d2['UniverProtocol'],_0xa183d2['UniverTelemetry'],_0xa183d2[_0x49ec51(0x19d)][_0x49ec51(0x282)],_0xa183d2['UniverNetwork'],_0xa183d2[_0x49ec51(0x270)],_0xa183d2['UniverDrawing']));}(this,function(_0x17c4ec,_0x540a4f,_0x305d10,_0x44bc8e,_0x2b86ea,_0x247d93,_0x54f861,_0xc2f67a,_0x38623c,_0x3c9fd5,_0x5f2569,_0x5452c7){const _0x33f14e=_0x1555;Object[_0x33f14e(0x267)](_0x17c4ec,Symbol[_0x33f14e(0x3c0)],{'value':_0x33f14e(0x24d)});let _0x3919fe='ws://127.0.0.1:8000/universer-api/comb/connect',_0x5752cb=0x4e20;function _0x3fc80e(_0x182493){const _0x35b476=_0x33f14e;return JSON[_0x35b476(0x121)](_0x182493)[_0x35b476(0x251)];}function _0x17d55f(_0x185fb1){'@babel/helpers - typeof';const _0x433e25=_0x33f14e;return _0x17d55f=typeof Symbol=='function'&&typeof Symbol[_0x433e25(0x349)]==_0x433e25(0x149)?function(_0x102c46){return typeof _0x102c46;}:function(_0xd07284){const _0x1a3f2f=_0x433e25;return _0xd07284&&typeof Symbol==_0x1a3f2f(0x1b7)&&_0xd07284['constructor']===Symbol&&_0xd07284!==Symbol[_0x1a3f2f(0xe7)]?'symbol':typeof _0xd07284;},_0x17d55f(_0x185fb1);}function _0x1ebd53(_0x3fdfc4,_0x2a9576){const _0x3c4ae3=_0x33f14e;if(_0x17d55f(_0x3fdfc4)!='object'||!_0x3fdfc4)return _0x3fdfc4;var _0x51eafb=_0x3fdfc4[Symbol[_0x3c4ae3(0x114)]];if(_0x51eafb!==void 0x0){var _0x38dc5a=_0x51eafb['call'](_0x3fdfc4,_0x2a9576||_0x3c4ae3(0xfc));if(_0x17d55f(_0x38dc5a)!=_0x3c4ae3(0x2d3))return _0x38dc5a;throw TypeError(_0x3c4ae3(0x1fd));}return(_0x2a9576==='string'?String:Number)(_0x3fdfc4);}function _0x283ebf(_0x5665c8){const _0x20c58e=_0x33f14e;var _0x70fd9d=_0x1ebd53(_0x5665c8,_0x20c58e(0x137));return _0x17d55f(_0x70fd9d)==_0x20c58e(0x149)?_0x70fd9d:_0x70fd9d+'';}function _0x816778(_0x27324f,_0x62929,_0x40859a){const _0x10c05d=_0x33f14e;return(_0x62929=_0x283ebf(_0x62929))in _0x27324f?Object[_0x10c05d(0x267)](_0x27324f,_0x62929,{'value':_0x40859a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x27324f[_0x62929]=_0x40859a,_0x27324f;}let _0x29ff30=function(_0x3554b8){const _0x3acb85=_0x33f14e;return _0x3554b8['OTHER_CLIENT_EDITING']=_0x3acb85(0x162),_0x3554b8['PERMISSION_DENIED']=_0x3acb85(0x399),_0x3554b8['CONFLICT']=_0x3acb85(0x225),_0x3554b8[_0x3acb85(0x261)]='CLOSE_ROOM',_0x3554b8[_0x3acb85(0x259)]='JOIN_ROOM_FAILED',_0x3554b8[_0x3acb85(0x37a)]=_0x3acb85(0x37a),_0x3554b8[_0x3acb85(0x237)]=_0x3acb85(0x237),_0x3554b8[_0x3acb85(0x160)]=_0x3acb85(0x160),_0x3554b8;}({});var _0x23b696=class{constructor(){const _0x54652f=_0x33f14e;_0x816778(this,_0x54652f(0x177),new _0x247d93['Subject']()),_0x816778(this,_0x54652f(0x1b0),this[_0x54652f(0x177)][_0x54652f(0x172)]());}[_0x33f14e(0x118)](_0x1cf6f9){const _0x40f79e=_0x33f14e;this[_0x40f79e(0x177)]['next'](_0x1cf6f9);}},_0x1493d1=class{constructor(){const _0x47bcc2=_0x33f14e;_0x816778(this,_0x47bcc2(0x230),new _0x247d93[(_0x47bcc2(0x2be))]()),_0x816778(this,_0x47bcc2(0x31d),this['_commentUpdate$'][_0x47bcc2(0x172)]());}[_0x33f14e(0x236)](_0x1dcd6d){const _0x1b5f50=_0x33f14e;this[_0x1b5f50(0x230)][_0x1b5f50(0x300)](_0x1dcd6d);}};function _0xf01086(_0x3fe12a,_0x454149){return function(_0x2bb408,_0x1686b9){_0x454149(_0x2bb408,_0x1686b9,_0x3fe12a);};}function _0x47fc4c(_0x509d39,_0x2430a4,_0x28fcf4,_0x1edc96){const _0x248088=_0x33f14e;var _0x2c8eaf=arguments[_0x248088(0x251)],_0x1d5a0d=_0x2c8eaf<0x3?_0x2430a4:_0x1edc96===null?_0x1edc96=Object[_0x248088(0x189)](_0x2430a4,_0x28fcf4):_0x1edc96,_0xfda87f;if(typeof Reflect==_0x248088(0x2d3)&&typeof Reflect[_0x248088(0x393)]==_0x248088(0x1b7))_0x1d5a0d=Reflect['decorate'](_0x509d39,_0x2430a4,_0x28fcf4,_0x1edc96);else{for(var _0x4a15a1=_0x509d39[_0x248088(0x251)]-0x1;_0x4a15a1>=0x0;_0x4a15a1--)(_0xfda87f=_0x509d39[_0x4a15a1])&&(_0x1d5a0d=(_0x2c8eaf<0x3?_0xfda87f(_0x1d5a0d):_0x2c8eaf>0x3?_0xfda87f(_0x2430a4,_0x28fcf4,_0x1d5a0d):_0xfda87f(_0x2430a4,_0x28fcf4))||_0x1d5a0d);}return _0x2c8eaf>0x3&&_0x1d5a0d&&Object[_0x248088(0x267)](_0x2430a4,_0x28fcf4,_0x1d5a0d),_0x1d5a0d;}let _0x497a33=class extends _0x305d10['Disposable']{constructor(_0x2e76d6,_0xa3438){const _0x4b6fb1=_0x33f14e;super(),this[_0x4b6fb1(0x35b)]=_0x2e76d6,this['_userManagerService']=_0xa3438,_0x816778(this,_0x4b6fb1(0x151),new Map()),_0x816778(this,'_roomCreated$',new _0x247d93['Subject']()),this['disposeWithMe']((0x0,_0x247d93['merge'])(this['_univerInstanceService'][_0x4b6fb1(0x2b7)](_0x305d10[_0x4b6fb1(0x1c6)][_0x4b6fb1(0x22a)])['pipe']((0x0,_0x38623c[_0x4b6fb1(0x348)])(_0x4c3f89=>_0x4c3f89[_0x4b6fb1(0x1e7)]())),this[_0x4b6fb1(0x35b)]['getTypeOfUnitDisposed$'](_0x305d10[_0x4b6fb1(0x1c6)]['UNIVER_DOC'])[_0x4b6fb1(0x2a9)]((0x0,_0x38623c['map'])(_0x4518e9=>_0x4518e9[_0x4b6fb1(0x1e7)]())))['subscribe'](_0x3c4457=>this[_0x4b6fb1(0x37d)](_0x3c4457)));}[_0x33f14e(0x124)](_0x2f312b){const _0xfc1912=_0x33f14e;return this['_roomMembers'][_0xfc1912(0x354)](_0x2f312b)?(0x0,_0x247d93['of'])(this[_0xfc1912(0x151)][_0xfc1912(0x1a5)](_0x2f312b)):this[_0xfc1912(0x303)]['pipe']((0x0,_0x38623c[_0xfc1912(0x348)])(_0x20a3ba=>{const _0x502e6b=_0xfc1912;if(_0x20a3ba===_0x2f312b)return this['_roomMembers'][_0x502e6b(0x1a5)](_0x20a3ba);}));}['setCurrentUser'](_0x4be55c){const _0x5bb273=_0x33f14e;this[_0x5bb273(0x38e)]['setCurrentUser'](_0x4be55c);}[_0x33f14e(0x2cd)](){const _0x30f150=_0x33f14e;return this['_userManagerService'][_0x30f150(0x2cd)]();}[_0x33f14e(0x10a)](_0x21acd4,_0x12452e){const _0x285cfc=_0x33f14e;let _0x5cc695=this[_0x285cfc(0x151)][_0x285cfc(0x1a5)](_0x21acd4);_0x5cc695||(_0x5cc695=new _0x11f6ad(),this[_0x285cfc(0x151)][_0x285cfc(0x269)](_0x21acd4,_0x5cc695),this['_roomCreated$'][_0x285cfc(0x300)](_0x21acd4)),_0x5cc695[_0x285cfc(0x10a)](_0x12452e);}[_0x33f14e(0x392)](_0x235e09,_0x32fd20){const _0x5be323=_0x33f14e;let _0x1c25ac=this[_0x5be323(0x151)][_0x5be323(0x1a5)](_0x235e09);_0x1c25ac&&_0x1c25ac[_0x5be323(0x392)](_0x32fd20);}[_0x33f14e(0x12f)](_0x232ecc){const _0x14ffef=_0x33f14e;return this[_0x14ffef(0x151)][_0x14ffef(0x1a5)](_0x232ecc);}[_0x33f14e(0x21c)](_0x4d0da2,_0x15a87e){const _0x44b443=_0x33f14e;let _0x23b574=this[_0x44b443(0x151)][_0x44b443(0x1a5)](_0x4d0da2);if(_0x23b574)return _0x23b574[_0x44b443(0x21c)](_0x15a87e);}[_0x33f14e(0x37d)](_0xcaad73){const _0x26fd53=_0x33f14e;let _0x73398e=this[_0x26fd53(0x151)][_0x26fd53(0x1a5)](_0xcaad73);_0x73398e&&(_0x73398e[_0x26fd53(0x366)](),this[_0x26fd53(0x151)][_0x26fd53(0xc0)](_0xcaad73));}['dispose'](){const _0x1fa006=_0x33f14e;this[_0x1fa006(0x151)]['forEach'](_0x59ae0d=>_0x59ae0d[_0x1fa006(0x366)]()),this[_0x1fa006(0x151)][_0x1fa006(0x200)](),this[_0x1fa006(0x303)][_0x1fa006(0x109)]();}};_0x497a33=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x3b5)]))],_0x497a33);var _0x11f6ad=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(..._0x13c500){const _0x2f64c5=_0x33f14e;super(..._0x13c500),_0x816778(this,'_members',new Map()),_0x816778(this,'_members$',new _0x247d93[(_0x2f64c5(0x288))](this[_0x2f64c5(0x2e5)])),_0x816778(this,'members$',this[_0x2f64c5(0xd9)]['asObservable']());}[_0x33f14e(0x366)](){const _0x20ef88=_0x33f14e;this[_0x20ef88(0x2e5)][_0x20ef88(0x200)](),this[_0x20ef88(0xd9)][_0x20ef88(0x109)]();}[_0x33f14e(0x10a)](_0x32fdb0){const _0x4b864b=_0x33f14e;this['_members'][_0x4b864b(0x269)](_0x32fdb0[_0x4b864b(0x277)],_0x32fdb0),this[_0x4b864b(0x1ff)]();}[_0x33f14e(0x392)](_0x26264a){const _0x1c31a2=_0x33f14e;this[_0x1c31a2(0x2e5)][_0x1c31a2(0xc0)](_0x26264a),this['_emitMembers']();}[_0x33f14e(0x21c)](_0x2ef822){const _0x249334=_0x33f14e;return this[_0x249334(0x2e5)][_0x249334(0x1a5)](_0x2ef822);}[_0x33f14e(0x287)](){const _0x3881f3=_0x33f14e;return Array[_0x3881f3(0x2ed)](this[_0x3881f3(0x2e5)]['values']());}[_0x33f14e(0x1ff)](){const _0x2620e3=_0x33f14e;this[_0x2620e3(0xd9)][_0x2620e3(0x300)](this[_0x2620e3(0x2e5)]);}};let _0x475efd=function(_0x1f1353){const _0x378feb=_0x33f14e;return _0x1f1353[_0x1f1353['IDLE']=0x0]='IDLE',_0x1f1353[_0x1f1353['JOINING']=0x1]='JOINING',_0x1f1353[_0x1f1353['OFFLINE']=0x2]=_0x378feb(0x266),_0x1f1353[_0x1f1353[_0x378feb(0x22f)]=0x3]=_0x378feb(0x22f),_0x1f1353;}({}),_0x2c4457={[_0x54f861[_0x33f14e(0x372)]['FAIL']]:'session.join-failed',[_0x54f861['CmdRspCode'][_0x33f14e(0x1bf)]]:_0x33f14e(0x368),[_0x54f861[_0x33f14e(0x372)]['JOIN_ROOM_NOT_EXISTS']]:'session.room-not-exists',[_0x54f861[_0x33f14e(0x372)][_0x33f14e(0x2f9)]]:_0x33f14e(0x229),[_0x54f861['CmdRspCode'][_0x33f14e(0x201)]]:_0x33f14e(0x210)},_0x459c7b=class extends _0x305d10['RxDisposable']{get['sessionStatus'](){const _0x4f63cb=_0x33f14e;return this[_0x4f63cb(0xec)][_0x4f63cb(0x3a9)]();}constructor(_0x1f24fc,_0x4b48ef,_0x118237,_0x1d9cd6,_0x336228,_0x293969,_0x4411fe,_0x4a3b72){const _0xd4310b=_0x33f14e;super(),this[_0xd4310b(0x224)]=_0x1f24fc,this[_0xd4310b(0x356)]=_0x118237,this[_0xd4310b(0x333)]=_0x1d9cd6,this[_0xd4310b(0xf7)]=_0x336228,this['_commentService']=_0x293969,this[_0xd4310b(0x17e)]=_0x4411fe,this['_telemetryService']=_0x4a3b72,_0x816778(this,_0xd4310b(0xec),new _0x247d93['BehaviorSubject'](0x0)),_0x816778(this,_0xd4310b(0x3b1),this['_sessionStatus$']['asObservable']()),_0x816778(this,_0xd4310b(0x177),new _0x247d93[(_0xd4310b(0x2be))]()),_0x816778(this,'event$',this[_0xd4310b(0x177)][_0xd4310b(0x172)]()),_0x816778(this,_0xd4310b(0x383),void 0x0),_0x816778(this,_0xd4310b(0x119),void 0x0),_0x816778(this,_0xd4310b(0x3a7),void 0x0),_0x816778(this,_0xd4310b(0xd3),!0x1),_0x816778(this,_0xd4310b(0x233),null),this[_0xd4310b(0xd3)]=!!this[_0xd4310b(0x398)],_0x4b48ef['pipe']((0x0,_0x247d93['takeUntil'])(this[_0xd4310b(0x26d)]))[_0xd4310b(0x305)](_0x250de4=>{const _0x5ec6a4=_0xd4310b;if(_0x250de4!==void 0x0){if(this[_0x5ec6a4(0x383)]=_0x250de4,_0x250de4)this[_0x5ec6a4(0x2ca)](_0x250de4),this[_0x5ec6a4(0x119)]=_0x250de4['message$'][_0x5ec6a4(0x305)](_0x351cc2=>{const _0x27be6a=_0x5ec6a4;_0x351cc2[_0x27be6a(0x2bf)]===this[_0x27be6a(0x224)]&&this[_0x27be6a(0x18d)](_0x351cc2);});else{var _0x1a3cda;this['_throwTelemetryCollaborationNewChangeset'](),this['_sessionStatus$'][_0x5ec6a4(0x300)](0x2),(_0x1a3cda=this[_0x5ec6a4(0x119)])==null||_0x1a3cda[_0x5ec6a4(0x38d)](),this[_0x5ec6a4(0x119)]=null;}}});}[_0x33f14e(0x173)](){const _0x5b1d0e=_0x33f14e;var _0x26aec2,_0x3a8ba9;return(_0x26aec2=(_0x3a8ba9=this['_socket'])==null?void 0x0:_0x3a8ba9[_0x5b1d0e(0x277)])==null?null:_0x26aec2;}['dispose'](){const _0x2a4720=_0x33f14e;super['dispose'](),this[_0x2a4720(0xe4)](),this['dispose$'][_0x2a4720(0x300)](),this[_0x2a4720(0x26d)][_0x2a4720(0x109)]();}[_0x33f14e(0xe4)](){const _0xd26da3=_0x33f14e;var _0x3d5697,_0x36c7f6;this['_throwTelemetryCollaborationNewChangeset'](),(_0x3d5697=this[_0xd26da3(0x383)])==null||_0x3d5697['send']({'cmd':_0x54f861[_0xd26da3(0xb8)]['LEAVE'],'data':{'roomID':this['_unitID']}}),(_0x36c7f6=this[_0xd26da3(0x383)])==null||_0x36c7f6[_0xd26da3(0xe4)](),this[_0xd26da3(0x177)][_0xd26da3(0x109)](),this['_sessionStatus$']['complete']();}[_0x33f14e(0x18d)](_0x416ecc){const _0x60ee87=_0x33f14e;_0x416ecc[_0x60ee87(0x38a)]===_0x54f861[_0x60ee87(0xb8)][_0x60ee87(0x2b1)]?this['_onJoinRoomEvent'](_0x416ecc):_0x416ecc[_0x60ee87(0x38a)]===_0x54f861[_0x60ee87(0xb8)][_0x60ee87(0x2f8)]&&this[_0x60ee87(0x158)](_0x416ecc);}[_0x33f14e(0x2ca)](_0x280d6c){const _0x28af88=_0x33f14e;this[_0x28af88(0xec)]['next'](0x1),_0x280d6c[_0x28af88(0x3a8)]({'cmd':_0x54f861['CombCmd'][_0x28af88(0x2b1)],'routeKey':this[_0x28af88(0x224)],'routeType':'','data':{'rooms':[{'roomID':this[_0x28af88(0x224)]}]}});}[_0x33f14e(0x28f)](_0x5f3fcc){const _0x506b1d=_0x33f14e;var _0xd82d76;if(_0x5f3fcc[_0x506b1d(0x361)]in _0x2c4457){this[_0x506b1d(0x17e)][_0x506b1d(0x118)]({'id':_0x506b1d(0x259),'data':_0x2c4457[_0x5f3fcc[_0x506b1d(0x361)]]}),this[_0x506b1d(0xec)][_0x506b1d(0x300)](0x2);return;}this[_0x506b1d(0xec)][_0x506b1d(0x300)](0x3);let _0x40fcb2=(_0xd82d76=_0x5f3fcc['data'][_0x506b1d(0x33d)][this[_0x506b1d(0x224)]])==null?void 0x0:_0xd82d76[_0x506b1d(0x155)];_0x40fcb2&&_0x40fcb2[_0x506b1d(0x1fc)](_0xd28b52=>this['_memberService'][_0x506b1d(0x10a)](this[_0x506b1d(0x224)],_0xd28b52));}[_0x33f14e(0x158)](_0x1a59af){const _0x299cc7=_0x33f14e;try{let _0x341226=_0x1a59af['data'];switch(_0x341226[_0x299cc7(0x2b4)]){case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x285)]:this[_0x299cc7(0x324)](_0x341226),this['_event$']['next'](_0x341226);break;case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x341)]:this[_0x299cc7(0x2da)](_0x341226),this[_0x299cc7(0x177)]['next'](_0x341226);break;case _0x540a4f['CollaborationEvent'][_0x299cc7(0x24c)]:case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x370)]:this[_0x299cc7(0x310)](),this[_0x299cc7(0x13a)](),this['_event$']['next'](_0x341226);break;case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x1d7)]:this[_0x299cc7(0x356)]['error'](_0x299cc7(0x389)+JSON[_0x299cc7(0x121)](_0x341226)),this[_0x299cc7(0x177)]['next'](_0x341226);break;case _0x540a4f[_0x299cc7(0x38c)][_0x299cc7(0x291)]:this['_commentService'][_0x299cc7(0x236)](_0x341226['data']),this[_0x299cc7(0x177)][_0x299cc7(0x300)](_0x341226);break;default:this[_0x299cc7(0x177)][_0x299cc7(0x300)](_0x341226);}}catch(_0x545663){this[_0x299cc7(0x356)][_0x299cc7(0x15f)](_0x545663,_0x1a59af);}}[_0x33f14e(0x324)](_0x427196){const _0x2e2285=_0x33f14e;this[_0x2e2285(0xf7)][_0x2e2285(0x10a)](this['_unitID'],_0x427196[_0x2e2285(0x23d)]);}[_0x33f14e(0x2da)](_0x5583a1){const _0x16b6bc=_0x33f14e;this[_0x16b6bc(0xf7)][_0x16b6bc(0x392)](this[_0x16b6bc(0x224)],_0x5583a1[_0x16b6bc(0x23d)]['memberID']);}async[_0x33f14e(0x3a8)](_0x553f4b,_0x1d4464){const _0x1c4a01=_0x33f14e;if(this[_0x1c4a01(0x1d0)]!==0x3||!this['_socket'])throw Error(_0x1c4a01(0x32a));try{_0x553f4b['eventID']===_0x540a4f[_0x1c4a01(0x38c)]['SUBMIT_CHANGESET']&&(this[_0x1c4a01(0x28b)](),this[_0x1c4a01(0x1c5)](_0x553f4b)),this['_socket'][_0x1c4a01(0x3a8)]({'cmd':_0x54f861[_0x1c4a01(0xb8)][_0x1c4a01(0x23f)],'routeKey':_0x1d4464,'routeType':'','data':_0x553f4b});}catch(_0x2cfafb){this[_0x1c4a01(0x356)][_0x1c4a01(0x15f)](_0x2cfafb);}}[_0x33f14e(0x28b)](){const _0x49bc5e=_0x33f14e;var _0x40b776;this[_0x49bc5e(0x3a7)]=setTimeout(()=>{const _0x597575=_0x49bc5e;this[_0x597575(0x3a7)]=null,this[_0x597575(0x17e)][_0x597575(0x118)]({'id':_0x597575(0x160)});},(_0x40b776=this[_0x49bc5e(0x333)][_0x49bc5e(0x328)]('HEARTBEAT_TIMEOUT'))==null?_0x5752cb:_0x40b776);}[_0x33f14e(0x13a)](){const _0x2aa11f=_0x33f14e;this[_0x2aa11f(0x3a7)]&&(clearTimeout(this[_0x2aa11f(0x3a7)]),this[_0x2aa11f(0x3a7)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x2f6221){const _0x14304c=_0x33f14e;if(!this['_shouldReportTelemetry'])return;let {data:_0x12d44d}=_0x2f6221,{unitID:_0x3bfd20,changeset:_0x171f90}=_0x12d44d,{mutations:_0x4010a7,type:_0x2326cd}=_0x171f90;this[_0x14304c(0x233)]={'unitId':_0x3bfd20,'type':_0x2326cd,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':_0x3fc80e(_0x4010a7)};}[_0x33f14e(0x310)](){const _0x15582a=_0x33f14e;if(this[_0x15582a(0xd3)]){if(!this[_0x15582a(0x233)]){this[_0x15582a(0x356)][_0x15582a(0x15f)](_0x15582a(0x243),_0x15582a(0x2f6));return;}this['_telemetryInfo'][_0x15582a(0x14a)]=performance[_0x15582a(0x11f)](),this['_telemetryInfo'][_0x15582a(0x125)]=this['_telemetryInfo']['stopTime']-this[_0x15582a(0x233)][_0x15582a(0x1f9)],this[_0x15582a(0x398)][_0x15582a(0x338)](_0x15582a(0x2df),this['_telemetryInfo']),this[_0x15582a(0x233)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){this['_telemetryInfo']=null;}};_0x459c7b=_0x47fc4c([_0xf01086(0x2,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x3,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x497a33)),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x1493d1)),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xc2f67a[_0x33f14e(0x1dc)]))],_0x459c7b);let _0xbd995e=(0x0,_0x305d10[_0x33f14e(0x131)])(_0x33f14e(0x2c5));function _0x3da7c3(_0x4aeefd){const _0x1e2aa7=_0x33f14e;return _0x1e2aa7(0x188)+_0x4aeefd;}function _0x138085(_0x4e4352){const _0x5129e5=_0x33f14e;let {unitID:_0x4315d8,mutations:_0x110371}=_0x4e4352;return{'unitId':_0x4315d8,'subUnitId':_0x110371[_0x5129e5(0x251)]>0x0?_0x110371[0x0][_0x5129e5(0x3c1)][_0x5129e5(0x2c3)]:null};}let _0x2c235d=class{constructor(_0x162e82,_0x5f2734,_0x2958b6){const _0x40effe=_0x33f14e;this[_0x40effe(0x1c7)]=_0x162e82,this['_transformService']=_0x5f2734,this['_instanceService']=_0x2958b6;}[_0x33f14e(0x2e6)](_0x402820){const _0x428d81=_0x33f14e;var _0x4dcf56,_0x3876ca;let _0x4197d9=this[_0x428d81(0x1c7)][_0x428d81(0x1a5)](_0x2b86ea['SheetsSelectionsService']),{unitId:_0x19f009,subUnitId:_0x5ee77d}=_0x138085(_0x402820),_0xe02184=_0x4197d9==null?void 0x0:_0x4197d9[_0x428d81(0x2cc)](_0x19f009)[_0x428d81(0x214)](),_0x379ea0=(_0x4dcf56=this[_0x428d81(0x113)][_0x428d81(0x379)](_0x19f009))==null||(_0x4dcf56=_0x4dcf56['getActiveSheet']())==null?void 0x0:_0x4dcf56[_0x428d81(0x309)]();if(_0xe02184[_0x428d81(0x251)]===0x0||!_0x19f009||!_0x5ee77d)return;let _0x195deb=[{'id':_0x2b86ea['SetSelectionsOperation']['id'],'params':{'unitId':_0x19f009,'subUnitId':_0x379ea0,'selections':_0x305d10[_0x428d81(0x12d)][_0x428d81(0x19c)](_0xe02184)}}],_0xabb2dd=this['_transformService'][_0x428d81(0x141)](_0x402820,_0x195deb);if(!(0x0,_0x540a4f[_0x428d81(0x199)])(_0xabb2dd))throw _0xabb2dd[_0x428d81(0x15f)];let _0x271e73=(_0x3876ca=_0xabb2dd[_0x428d81(0x28c)][0x0])==null||(_0x3876ca=_0x3876ca['params'])==null?void 0x0:_0x3876ca[_0x428d81(0x186)];if(Array['isArray'](_0x271e73)&&_0x271e73[_0x428d81(0x251)]){if(_0x271e73[_0x428d81(0x251)]===_0x195deb[0x0]['params'][_0x428d81(0x186)][_0x428d81(0x251)]&&_0x271e73[_0x428d81(0x11e)]((_0x40aa80,_0x32fc59)=>_0x305d10['Rectangle'][_0x428d81(0x232)](_0x40aa80['range'],_0x195deb[0x0][_0x428d81(0x3c1)][_0x428d81(0x186)][_0x32fc59]['range'])))return;this[_0x428d81(0x1c7)]['get'](_0x305d10[_0x428d81(0x213)])[_0x428d81(0x1b2)](_0x2b86ea[_0x428d81(0x30f)]['id'],{'unitId':_0x19f009,'subUnitId':_0x379ea0,'selections':_0x271e73});}}};_0x2c235d=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10['Inject'])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x2,_0x305d10[_0x33f14e(0x20d)])],_0x2c235d);let _0x4e88b2=(0x0,_0x305d10[_0x33f14e(0x131)])(_0x33f14e(0x385)),_0x3dfa36=function(_0x4d49c4){const _0x4a1ccd=_0x33f14e;return _0x4d49c4[_0x4d49c4['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4a1ccd(0x34c),_0x4d49c4[_0x4d49c4[_0x4a1ccd(0xcf)]=0x1]=_0x4a1ccd(0xcf),_0x4d49c4;}({}),_0x1cf9ab=_0x33f14e(0x2ba),_0x4cbbd4={};function _0x451933(_0x394457){const _0x583799=_0x33f14e;var _0x389e2a;return!!((_0x389e2a=_0x394457[_0x583799(0x3c1)])!=null&&_0x389e2a[_0x583799(0x21a)]);}let _0x34b1bb=new Set([_0x2b86ea[_0x33f14e(0x381)]['id']]);function _0x19ee22(_0x30cf89,_0xc57895,_0x2cf0de,_0x371513,_0x3c27cf){const _0x3a101b=_0x33f14e;var _0x1dd28f,_0x168331,_0x35e9a8,_0x2d03c6;let _0x4df263=[];for(let _0x35fef8 of _0x30cf89){if(_0x34b1bb[_0x3a101b(0x354)](_0x35fef8['id'])){if(_0x4df263[_0x3a101b(0x251)]>0x0)break;_0x4df263[_0x3a101b(0xf8)](_0x35fef8);break;}if(_0x451933(_0x35fef8)){if(_0x4df263['length']>0x0)break;_0x4df263[_0x3a101b(0xf8)](_0x35fef8);break;}_0x4df263[_0x3a101b(0xf8)](_0x35fef8);}let _0x5b400e=(_0x1dd28f=(_0x168331=_0x3c27cf[_0x3a101b(0x2cd)]())==null?void 0x0:_0x168331[_0x3a101b(0x317)])==null?_0x3a101b(0x23e):_0x1dd28f,_0x2caff2=(_0x35e9a8=(_0x2d03c6=_0x3c27cf['getCurrentUser']())==null?void 0x0:_0x2d03c6[_0x3a101b(0x277)])==null?_0x3a101b(0x23e):_0x35e9a8;return{'changeset':{'unitID':_0xc57895,'type':(0x0,_0x540a4f[_0x3a101b(0xf5)])(_0x2cf0de[_0x3a101b(0x174)](_0xc57895)),'baseRev':_0x371513[_0x3a101b(0x15b)](_0xc57895),'revision':0x0,'userID':_0x5b400e,'memberID':_0x2caff2,'mutations':_0x4df263},'pendingMutations':_0x30cf89[_0x3a101b(0x387)](_0x4df263[_0x3a101b(0x251)])};}function _0x1fe0b4(_0xbf91d,_0x16dec3,_0x4fff00,_0xdf9bd2,_0x244d30){const _0x4574c0=_0x33f14e;var _0x26fb60,_0x5b278b,_0x662f3b,_0x9ab48f;let _0x162dae=_0xbf91d['reduce']((_0x27f9bc,_0x1a7296)=>{const _0x46a4e8=_0x1555;let _0x2fea4e=_0x27f9bc[_0x27f9bc[_0x46a4e8(0x251)]-0x1],{id:_0x187ffa}=_0x2fea4e==null?{}:_0x2fea4e,{id:_0x2d8512,type:_0xa83d9e}=_0x1a7296,_0xafeeee=_0x1a7296['params'];if(_0x187ffa&&_0x187ffa!==_0x2d8512)throw Error(_0x46a4e8(0x35a)+_0x187ffa+_0x46a4e8(0x222)+_0x2d8512+'.');if(!_0x2fea4e)return[{'id':_0x2d8512,'type':_0xa83d9e,'params':{'unitId':_0xafeeee[_0x46a4e8(0x34f)],'textRanges':_0xafeeee[_0x46a4e8(0x16f)],'actions':_0xafeeee[_0x46a4e8(0x165)]}}];let _0x3fc225=_0x2fea4e[_0x46a4e8(0x3c1)];return _0x4d4d66(_0x3fc225[_0x46a4e8(0x165)],_0xafeeee['actions'])?[..._0x27f9bc[_0x46a4e8(0x387)](0x0,-0x1),{..._0x2fea4e,'id':_0x2d8512,'type':_0xa83d9e,'params':{'unitId':_0xafeeee['unitId'],'textRanges':_0xafeeee['textRanges'],'actions':_0x305d10[_0x46a4e8(0x308)]['compose'](_0x3fc225[_0x46a4e8(0x165)],_0xafeeee[_0x46a4e8(0x165)])}}]:[..._0x27f9bc,{'id':_0x2d8512,'type':_0xa83d9e,'params':{'unitId':_0xafeeee['unitId'],'textRanges':_0xafeeee['textRanges'],'actions':_0xafeeee[_0x46a4e8(0x165)]}}];},[]),_0xff29db=(_0x26fb60=(_0x5b278b=_0x244d30['getCurrentUser']())==null?void 0x0:_0x5b278b['userID'])==null?'unknown':_0x26fb60,_0xdce05d=(_0x662f3b=(_0x9ab48f=_0x244d30[_0x4574c0(0x2cd)]())==null?void 0x0:_0x9ab48f[_0x4574c0(0x277)])==null?_0x4574c0(0x23e):_0x662f3b;return{'changeset':{'unitID':_0x16dec3,'type':(0x0,_0x540a4f[_0x4574c0(0xf5)])(_0x4fff00['getUnitType'](_0x16dec3)),'baseRev':_0xdf9bd2[_0x4574c0(0x15b)](_0x16dec3),'revision':0x0,'userID':_0xff29db,'memberID':_0xdce05d,'mutations':_0x162dae},'pendingMutations':_0xbf91d[_0x4574c0(0x387)](_0xbf91d['length'])};}function _0x4d4d66(_0xb837d3,_0x5c530a){return!(_0x309e4b(_0xb837d3)&&_0x1761db(_0x5c530a)||_0x1761db(_0xb837d3)&&_0x309e4b(_0x5c530a));}function _0x309e4b(_0x257f9e){const _0x4b827c=_0x33f14e;return _0x2b6663(_0x257f9e)[_0x4b827c(0x382)](_0x351f6f=>_0x3d77ce(_0x351f6f)&&_0x351f6f['et']==='text-x');}function _0x1761db(_0x957ccb){const _0x326ccc=_0x33f14e;return _0x2b6663(_0x957ccb)[_0x326ccc(0x382)](_0x191c9f=>Array[_0x326ccc(0x175)](_0x191c9f)||typeof _0x191c9f==_0x326ccc(0x137)||typeof _0x191c9f==_0x326ccc(0x242));}function _0x2b6663(_0x3e6eab){const _0x249a3f=_0x33f14e;if(!Array['isArray'](_0x3e6eab))return[];let _0x4f8ebc=_0x3e6eab['includes'](_0x249a3f(0x29f))?_0x3e6eab:_0x3e6eab[_0x249a3f(0xfa)](_0x6f95f0=>Array[_0x249a3f(0x175)](_0x6f95f0)&&_0x6f95f0[_0x249a3f(0x1c3)](_0x249a3f(0x29f)));if(!Array[_0x249a3f(0x175)](_0x4f8ebc))return[];let _0x180752=_0x4f8ebc[_0x249a3f(0x156)](_0x249a3f(0x29f));return _0x180752===-0x1?[]:_0x4f8ebc[_0x249a3f(0x387)](_0x180752+0x1);}function _0x3d77ce(_0x1b988a){return typeof _0x1b988a=='object'&&!!_0x1b988a&&!Array['isArray'](_0x1b988a);}function _0x1ecae5(_0x5e95a3,_0x1af4bb){const _0x592eb8=_0x33f14e;let _0x5ee2b4=new _0x247d93['ReplaySubject'](0x1);return setTimeout(()=>_0x5ee2b4[_0x592eb8(0x300)](_0x1af4bb),_0x5e95a3),_0x5ee2b4[_0x592eb8(0x172)]()[_0x592eb8(0x2a9)]((0x0,_0x247d93['take'])(0x1));}var _0x633e0b,_0x54fbde,_0x55bb43;let _0x46a1e9=function(_0x1cbe66){const _0x20a22d=_0x33f14e;return _0x1cbe66[_0x20a22d(0x1e1)]='not_collab',_0x1cbe66['SYNCED']=_0x20a22d(0x255),_0x1cbe66[_0x20a22d(0x1cc)]=_0x20a22d(0x3af),_0x1cbe66[_0x20a22d(0x190)]=_0x20a22d(0xe6),_0x1cbe66[_0x20a22d(0xbd)]=_0x20a22d(0x315),_0x1cbe66['FETCH_MISS']=_0x20a22d(0xe9),_0x1cbe66['CONFLICT']=_0x20a22d(0x182),_0x1cbe66[_0x20a22d(0x266)]=_0x20a22d(0x15d),_0x1cbe66;}({}),_0x47612d=0x4e20,_0x28da41=0x2bf20;var _0xcc4349=class{constructor(_0x355a8b,_0x474467,_0x8f87a7,_0x399f76,_0x585708,_0x29ffb0,_0x3be49d,_0x1045e0,_0x572761){const _0x19e701=_0x33f14e;this[_0x19e701(0x37e)]=_0x355a8b,this[_0x19e701(0x1aa)]=_0x474467,this[_0x19e701(0x1c8)]=_0x585708,this[_0x19e701(0x1f7)]=_0x29ffb0,this['_undoRedoService']=_0x3be49d,this[_0x19e701(0x28d)]=_0x1045e0,this[_0x19e701(0x179)]=_0x572761,_0x816778(this,'_awaitingChangeset',null),_0x816778(this,'_pendingMutations',[]),this['_awaitingChangeset']=_0x8f87a7,this[_0x19e701(0x14e)]=_0x399f76;}['_checkMissing'](_0x5021a7){const _0x6374ea=_0x33f14e;let _0x3befd3=this[_0x6374ea(0x28d)][_0x6374ea(0x15b)](this[_0x6374ea(0x37e)]);return _0x5021a7[_0x6374ea(0x2d1)]>_0x3befd3+0x1?(this[_0x6374ea(0x1c8)]['onMissingChangesets']({'from':_0x3befd3,'to':_0x5021a7['revision']-0x1}),!0x0):!0x1;}[_0x33f14e(0x2d6)](_0x3f2fd6){const _0x16a561=_0x33f14e;this[_0x16a561(0x2b8)][_0x16a561(0xf1)](this[_0x16a561(0x37e)],_0x3f2fd6);}[_0x33f14e(0x346)](_0x20a7a3){const _0xb9072d=_0x33f14e;var _0x4b9d76,_0x5ab349;(_0x4b9d76=(_0x5ab349=this[_0xb9072d(0x1c8)])[_0xb9072d(0x2c1)])==null||_0x4b9d76[_0xb9072d(0xdf)](_0x5ab349,_0x20a7a3);}['_transformIMECache'](_0x27ae5d){const _0x167ba7=_0x33f14e;var _0x278d56,_0x247857;return(_0x278d56=(_0x247857=this[_0x167ba7(0x1c8)])['onTransformIME'])==null?void 0x0:_0x278d56['call'](_0x247857,_0x27ae5d);}[_0x33f14e(0xc6)](_0xbca56e){const _0x2122de=_0x33f14e;var _0x1afbde,_0x44bc67;return(_0x1afbde=(_0x44bc67=this[_0x2122de(0x1c8)])[_0x2122de(0x2f0)])==null?void 0x0:_0x1afbde['call'](_0x44bc67,_0xbca56e);}[_0x33f14e(0x2b6)](_0x26957d){const _0x24d8ac=_0x33f14e;var _0x18dd9c,_0x3e0bc9,_0x5c48d1;return(_0x18dd9c=(_0x3e0bc9=(_0x5c48d1=this[_0x24d8ac(0x1c8)])[_0x24d8ac(0x299)])==null?void 0x0:_0x3e0bc9['call'](_0x5c48d1,_0x26957d))==null?_0x26957d:_0x18dd9c;}[_0x33f14e(0x325)](_0x13680e){const _0x53720f=_0x33f14e;var _0x2bd412,_0x46f2a9,_0x886166;return(_0x2bd412=(_0x46f2a9=(_0x886166=this[_0x53720f(0x1c8)])[_0x53720f(0x395)])==null?void 0x0:_0x46f2a9[_0x53720f(0xdf)](_0x886166,_0x13680e))==null?_0x13680e:_0x2bd412;}[_0x33f14e(0x2e4)](_0x4d2ffb){const _0x5cf4e1=_0x33f14e;if(this['type']===_0x305d10[_0x5cf4e1(0x1c6)][_0x5cf4e1(0x26e)]){let {unitID:_0x2fe043,mutations:_0xce858c,memberID:_0xf08aa5}=_0x4d2ffb,_0x1fd0b6=_0xce858c[_0x5cf4e1(0x251)]>0x0?_0xce858c[0x0][_0x5cf4e1(0x3c1)][_0x5cf4e1(0x16f)]:[];if(Array[_0x5cf4e1(0x175)](_0x1fd0b6)&&_0x1fd0b6[_0x5cf4e1(0x251)]>0x0){var _0x5c2cb8,_0xe591e0;(_0x5c2cb8=(_0xe591e0=this[_0x5cf4e1(0x1c8)])[_0x5cf4e1(0x27f)])==null||_0x5c2cb8[_0x5cf4e1(0xdf)](_0xe591e0,{'unitID':_0x2fe043,'memberID':_0xf08aa5,'textRanges':_0x1fd0b6});}}}[_0x33f14e(0x335)](){const _0x1f9405=_0x33f14e;var _0x440f3a;(_0x440f3a=this[_0x1f9405(0x179)])==null||_0x440f3a[_0x1f9405(0x12a)](this['unitID'],this[_0x1f9405(0x1aa)],this['_awaitingChangeset'],this[_0x1f9405(0x14e)]);}['_getCurrentRevision'](){const _0x3545de=_0x33f14e;return this[_0x3545de(0x28d)]['getCurrentRevOfUnit'](this[_0x3545de(0x37e)]);}['_incrementRevisionNumber'](){const _0x286238=_0x33f14e;this['_revisionService']['incrementRevOfUnit'](this[_0x286238(0x37e)]);}[_0x33f14e(0x16b)](_0x1ad632){const _0x2ee9f5=_0x33f14e;let _0x15f3d3=this['_transformRemoteChangesetByIMECache'](_0x1ad632);_0x15f3d3=this[_0x2ee9f5(0x325)](_0x15f3d3);let _0x19e26a=(0x0,_0x305d10['sequenceExecute'])(_0x15f3d3[_0x2ee9f5(0x316)],this[_0x2ee9f5(0x1f7)],{'fromCollab':!0x0});if(!_0x19e26a[_0x2ee9f5(0x1b5)]){var _0x3d0e59;throw _0x19e26a[_0x2ee9f5(0x15f)]instanceof Error?_0x19e26a['error']:Error((_0x3d0e59=_0x19e26a[_0x2ee9f5(0x15f)])==null?_0x2ee9f5(0x1f2):_0x3d0e59);}this[_0x2ee9f5(0x187)](_0x15f3d3),this[_0x2ee9f5(0xc6)](_0x15f3d3),this['_transformUndoredo'](_0x1ad632),this[_0x2ee9f5(0x346)](_0x15f3d3),this[_0x2ee9f5(0x2e4)](_0x15f3d3),this[_0x2ee9f5(0x3b7)]();}};let _0x3f62b4=class extends _0xcc4349{constructor(_0x292f38,_0x5db4d0,_0x31c05f,_0x4730c0,_0x42f86d,_0x9b2d6f,_0xf398f2,_0x147d9c,_0x3f3e29,_0x5af352){const _0x4e075f=_0x33f14e;super(_0x292f38,_0x5db4d0,null,[],_0x31c05f,_0xf398f2,_0x9b2d6f,_0x4730c0,_0x5af352),this[_0x4e075f(0x1c7)]=_0x42f86d,this[_0x4e075f(0x356)]=_0x147d9c,this[_0x4e075f(0x15e)]=_0x3f3e29,this[_0x4e075f(0x302)]=_0x5af352,_0x816778(this,_0x4e075f(0x2fb),'synced');}[_0x33f14e(0x221)](_0x983e0f){const _0x3c7d0d=_0x33f14e;let _0x2a471b=this[_0x3c7d0d(0x1c7)][_0x3c7d0d(0x32f)](_0x40e466,this[_0x3c7d0d(0x37e)],this[_0x3c7d0d(0x1aa)],[_0x983e0f],this[_0x3c7d0d(0x1c8)]);return _0x2a471b['_schedule'](),_0x2a471b[_0x3c7d0d(0x335)](),_0x2a471b;}[_0x33f14e(0x217)](_0x2ee81e){const _0x1ca358=_0x33f14e;if(this[_0x1ca358(0x209)](_0x2ee81e))return this['_injector'][_0x1ca358(0x32f)](_0x69d917,this[_0x1ca358(0x37e)],this[_0x1ca358(0x1aa)],null,[],null,[_0x2ee81e],this[_0x1ca358(0x1c8)]);try{let _0x26a60a=this['_transformService'][_0x1ca358(0x141)](_0x2ee81e,[_0x540a4f[_0x1ca358(0x31b)]]);if((0x0,_0x540a4f['isTransformMutationsWithChangesetSuccess'])(_0x26a60a)){let {c1Prime:_0x2e42a3}=_0x26a60a;return this['_executeRemoteChangeset'](_0x2e42a3),this;}throw _0x26a60a['error'];}catch(_0x1c2b76){return this[_0x1ca358(0x356)][_0x1ca358(0x15f)](_0x1c2b76),this[_0x1ca358(0x358)](!0x1);}}[_0x33f14e(0x358)](_0x404a4f){const _0x133b73=_0x33f14e;return this[_0x133b73(0x1c7)][_0x133b73(0x32f)](_0x50a112,this[_0x133b73(0x37e)],this[_0x133b73(0x1aa)],null,[],this[_0x133b73(0x1c8)],_0x404a4f);}[_0x33f14e(0xc4)](_0x5dce4b){const _0x5521b5=_0x33f14e;if(_0x5dce4b['revision']<=this[_0x5521b5(0x203)]())return this;throw Error(_0x5521b5(0x111));}[_0x33f14e(0x159)](){throw Error('[SyncedState]:\x20received\x20rejection.');}['onRemoteRetry'](){return this;}[_0x33f14e(0xb3)](){const _0x4c4824=_0x33f14e;return this[_0x4c4824(0x1c7)][_0x4c4824(0x32f)](_0x18cfb2,this[_0x4c4824(0x37e)],this['type'],null,[],this['_handler']);}['toggleOnline'](){return this;}[_0x33f14e(0x150)](){const _0x1bdf26=_0x33f14e;throw Error(_0x1bdf26(0x168));}[_0x33f14e(0x132)](){const _0xd111fe=_0x33f14e;let _0x339e52=this[_0xd111fe(0x28d)][_0xd111fe(0x15b)](this[_0xd111fe(0x37e)]);return this[_0xd111fe(0x1c8)][_0xd111fe(0xd6)]({'from':_0x339e52,'to':0x0}),this['_injector'][_0xd111fe(0x32f)](_0x69d917,this[_0xd111fe(0x37e)],this[_0xd111fe(0x1aa)],null,[],null,[],this[_0xd111fe(0x1c8)]);}};_0x3f62b4=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x5,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0x6,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x7,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x8,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x9,(0x0,_0x305d10['Optional'])(_0xbd995e))],_0x3f62b4);let _0x40e466=_0x633e0b=class extends _0xcc4349{constructor(_0x335431,_0x1b9f2e,_0x38cd39,_0x369c08,_0x790fbd,_0x26c4df,_0x3be10b,_0x10bdde,_0x4b62d1,_0x86daae,_0x3e6163,_0x193372,_0xbd0fd,_0x36ec8f){const _0x49fe7d=_0x33f14e;super(_0x335431,_0x1b9f2e,null,_0x38cd39,_0x369c08,_0x4b62d1,_0xbd0fd,_0x26c4df,_0x36ec8f),this[_0x49fe7d(0x1c7)]=_0x790fbd,this['_memberService']=_0x3be10b,this['_logService']=_0x10bdde,this['_configService']=_0x86daae,this[_0x49fe7d(0x15e)]=_0x3e6163,this[_0x49fe7d(0x35b)]=_0x193372,_0x816778(this,_0x49fe7d(0x2fb),_0x49fe7d(0x3af)),_0x816778(this,_0x49fe7d(0x1b3),null),_0x816778(this,_0x49fe7d(0x2bb),null);}[_0x33f14e(0x221)](_0x5921de){const _0x3ec400=_0x33f14e;return this[_0x3ec400(0x14e)][_0x3ec400(0xf8)](_0x5921de),this[_0x3ec400(0x335)](),this;}['onRemoteChangeset'](_0x5ed536){const _0x35878b=_0x33f14e;if(this[_0x35878b(0x209)](_0x5ed536))return this['_clearScheduledTask'](),this[_0x35878b(0x1c7)][_0x35878b(0x32f)](_0x69d917,this[_0x35878b(0x37e)],this[_0x35878b(0x1aa)],null,this[_0x35878b(0x14e)],null,[_0x5ed536],this[_0x35878b(0x1c8)]);try{let _0x590395=this['_transformService'][_0x35878b(0x141)](_0x5ed536,this['_pendingMutations']);if((0x0,_0x540a4f[_0x35878b(0x199)])(_0x590395)){let {c1Prime:_0x20fa95,m2Prime:_0xf86bbb}=_0x590395;this[_0x35878b(0x16b)](_0x20fa95);let _0x148eea=this[_0x35878b(0x1c7)][_0x35878b(0x32f)](_0x633e0b,this['unitID'],this[_0x35878b(0x1aa)],_0xf86bbb,this[_0x35878b(0x1c8)]);this[_0x35878b(0x2ab)]();let _0x361943=new Date()[_0x35878b(0x18f)](),_0x24db7a=this[_0x35878b(0x1b3)]?Math['max'](this[_0x35878b(0x1b3)]-_0x361943,0x0):this['_getSendChangesetTimeout']();return _0x148eea[_0x35878b(0x1d6)](_0x24db7a),_0x148eea;}throw _0x590395['error'];}catch(_0x528321){return this[_0x35878b(0x356)][_0x35878b(0x15f)](_0x528321),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x1331f8){const _0x8ea644=_0x33f14e;if(_0x1331f8[_0x8ea644(0x2d1)]<=this[_0x8ea644(0x203)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x38a119=_0x33f14e;throw Error(_0x38a119(0xdd));}[_0x33f14e(0x24f)](){return this;}[_0x33f14e(0xb3)](){const _0x19c476=_0x33f14e;return this['_clearScheduledTask'](),this[_0x19c476(0x1c7)][_0x19c476(0x32f)](_0x18cfb2,this[_0x19c476(0x37e)],this[_0x19c476(0x1aa)],null,this['_pendingMutations'],this[_0x19c476(0x1c8)]);}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x1d6)](_0x364107){const _0xb9b4f2=_0x33f14e;let _0x106b7c=_0x364107==null?this[_0xb9b4f2(0x3ae)]():_0x364107;this[_0xb9b4f2(0x1b3)]=new Date()[_0xb9b4f2(0x18f)]()+_0x106b7c,this[_0xb9b4f2(0x2bb)]=setTimeout(()=>{const _0x29fbff=_0xb9b4f2;this[_0x29fbff(0x2ab)]();let _0x5a7297=null;switch(this[_0x29fbff(0x1aa)]){case _0x305d10['UniverInstanceType'][_0x29fbff(0x22a)]:_0x5a7297=_0x19ee22(this[_0x29fbff(0x14e)],this['unitID'],this[_0x29fbff(0x35b)],this[_0x29fbff(0x28d)],this['_memberService']);break;case _0x305d10[_0x29fbff(0x1c6)][_0x29fbff(0x26e)]:_0x5a7297=this[_0x29fbff(0x14e)][_0x29fbff(0x11e)](_0x3ed38a=>_0x3ed38a['id']===_0x44bc8e[_0x29fbff(0xe8)]['id'])?_0x1fe0b4(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x29fbff(0x28d)],this[_0x29fbff(0xf7)]):_0x19ee22(this[_0x29fbff(0x14e)],this[_0x29fbff(0x37e)],this[_0x29fbff(0x35b)],this[_0x29fbff(0x28d)],this[_0x29fbff(0xf7)]);break;default:throw Error(_0x29fbff(0x16c)+this[_0x29fbff(0x1aa)]+_0x29fbff(0x198));}let {changeset:_0xbb3ba7,pendingMutations:_0x4f36c0}=_0x5a7297;this[_0x29fbff(0x1c8)]['onSendChangeset'](_0xbb3ba7);let _0x575566=_0x4f36c0[_0x29fbff(0x251)]?this['_injector'][_0x29fbff(0x32f)](_0x1f4a11,this[_0x29fbff(0x37e)],this[_0x29fbff(0x1aa)],_0xbb3ba7,_0x4f36c0,this['_handler'],void 0x0):this[_0x29fbff(0x1c7)]['createInstance'](_0x4c5197,this[_0x29fbff(0x37e)],this[_0x29fbff(0x1aa)],_0xbb3ba7,this[_0x29fbff(0x1c8)]);_0x575566[_0x29fbff(0x335)](),this[_0x29fbff(0x1c8)][_0x29fbff(0xbc)](this,_0x575566);},_0x106b7c);}[_0x33f14e(0x3ae)](){const _0x52c51d=_0x33f14e;var _0x2c9ed1;let _0x9107f5=this[_0x52c51d(0x333)][_0x52c51d(0x328)](_0x1cf9ab);return(_0x2c9ed1=_0x9107f5==null?void 0x0:_0x9107f5['sendChangesetTimeout'])==null?0x7d0:_0x2c9ed1;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x33f14e(0x2ab)](){const _0x4c6a10=_0x33f14e;this[_0x4c6a10(0x2bb)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x4c6a10(0x2bb)]=null);}[_0x33f14e(0x358)](_0x563bf9){const _0x3e6f84=_0x33f14e;return this[_0x3e6f84(0x2ab)](),this[_0x3e6f84(0x1c7)][_0x3e6f84(0x32f)](_0x50a112,this[_0x3e6f84(0x37e)],this[_0x3e6f84(0x1aa)],null,this[_0x3e6f84(0x14e)],this[_0x3e6f84(0x1c8)],_0x563bf9);}};_0x40e466=_0x633e0b=_0x47fc4c([_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x6,(0x0,_0x305d10['Inject'])(_0x497a33)),_0xf01086(0x7,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x8,_0x305d10['ICommandService']),_0xf01086(0x9,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0xa,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0xb,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0xc,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x40e466);let _0x4c5197=_0x54fbde=class extends _0xcc4349{constructor(_0x1218ba,_0x28267e,_0x55f598,_0x3c656a,_0x4ee38c,_0x5db4a8,_0x26ae2d,_0x163821,_0x50428d,_0x5a6036,_0x1642c9){const _0x40df2a=_0x33f14e;super(_0x1218ba,_0x28267e,_0x55f598,[],_0x3c656a,_0x26ae2d,_0x5a6036,_0x5db4a8,_0x1642c9),this[_0x40df2a(0x1c7)]=_0x4ee38c,this[_0x40df2a(0x356)]=_0x163821,this['_transformService']=_0x50428d,_0x816778(this,_0x40df2a(0x2fb),_0x40df2a(0xe6)),_0x816778(this,_0x40df2a(0x120),0x0),_0x816778(this,_0x40df2a(0x256),0x0),_0x816778(this,_0x40df2a(0x1a6),void 0x0),_0x816778(this,'_sender',void 0x0);}[_0x33f14e(0x221)](_0x2163db){const _0x528fa8=_0x33f14e;this[_0x528fa8(0x2ab)]();let _0x2b9e46=this[_0x528fa8(0x1c7)][_0x528fa8(0x32f)](_0x1f4a11,this[_0x528fa8(0x37e)],this[_0x528fa8(0x1aa)],this[_0x528fa8(0x110)],[_0x2163db],this[_0x528fa8(0x1c8)],this[_0x528fa8(0x1a6)]);return _0x2b9e46[_0x528fa8(0x335)](),_0x2b9e46;}['onRemoteChangeset'](_0x502162){const _0x370dec=_0x33f14e;if(this[_0x370dec(0x209)](_0x502162))return this[_0x370dec(0x2ab)](),this[_0x370dec(0x1c7)]['createInstance'](_0x69d917,this[_0x370dec(0x37e)],this[_0x370dec(0x1aa)],this[_0x370dec(0x110)],[],null,[_0x502162],this[_0x370dec(0x1c8)]);try{let _0x4f0f84=this[_0x370dec(0x15e)][_0x370dec(0x3be)]([_0x502162],[this[_0x370dec(0x110)]],!0x1);if((0x0,_0x540a4f['isTransformChangesetsSuccess'])(_0x4f0f84)){let {c1Prime:_0x16464e,c2Prime:_0x393897}=_0x4f0f84;this[_0x370dec(0x16b)](_0x16464e[0x0]),_0x393897[0x0][_0x370dec(0x1ac)]=this['_getCurrentRevision'](),this[_0x370dec(0x2ab)]();let _0x481dc8=this[_0x370dec(0x1c7)][_0x370dec(0x32f)](_0x54fbde,this['unitID'],this[_0x370dec(0x1aa)],_0x393897[0x0],this[_0x370dec(0x1c8)]);return _0x481dc8[_0x370dec(0x335)](),_0x481dc8;}throw _0x4f0f84[_0x370dec(0x15f)];}catch(_0x2d13dd){return this[_0x370dec(0x356)]['error'](_0x2d13dd),this[_0x370dec(0x358)](!0x1);}}[_0x33f14e(0xc4)](_0x49abc9){const _0x41ed35=_0x33f14e;this[_0x41ed35(0x2ab)]();let _0x49b5d4=this[_0x41ed35(0x28d)][_0x41ed35(0x15b)](this[_0x41ed35(0x37e)]);if(_0x49abc9['revision']<=_0x49b5d4)return this;if(this[_0x41ed35(0x209)](_0x49abc9))return this[_0x41ed35(0x1c7)][_0x41ed35(0x32f)](_0x69d917,this[_0x41ed35(0x37e)],this[_0x41ed35(0x1aa)],this['_awaitingChangeset'],[],_0x49abc9[_0x41ed35(0x2d1)],[],this[_0x41ed35(0x1c8)]);this['_incrementRevisionNumber']();let _0x5e3bc4=this[_0x41ed35(0x1c7)][_0x41ed35(0x32f)](_0x3f62b4,this[_0x41ed35(0x37e)],this[_0x41ed35(0x1aa)],this[_0x41ed35(0x1c8)]);return _0x5e3bc4['_updateLocalCache'](),_0x5e3bc4;}[_0x33f14e(0x159)](_0x184ea1){const _0x764ea7=_0x33f14e;return this['_onConflict'](!!(_0x184ea1!=null&&_0x184ea1[_0x764ea7(0x3bd)]));}[_0x33f14e(0x24f)](_0x25a9e6){const _0x152643=_0x33f14e;return this['_maxTotalRetryTimeout']>_0x28da41?this['toggleOffline']():(this['_resendTimer']=_0x1ecae5(this['_resendTimeout'],{'timeout':this[_0x152643(0x120)],'reqId':_0x25a9e6[_0x152643(0x1e8)]}),this[_0x152643(0x2ff)]=this['_resendTimer'][_0x152643(0x305)](({reqId:_0x3ce18e,timeout:_0x1c6712})=>{const _0x1ccc4f=_0x152643;this[_0x1ccc4f(0x286)](_0x3ce18e,_0x1c6712);}),this);}[_0x33f14e(0xb3)](){const _0x214b0d=_0x33f14e;return this[_0x214b0d(0x2ab)](),this[_0x214b0d(0x1c7)][_0x214b0d(0x32f)](_0x18cfb2,this[_0x214b0d(0x37e)],this[_0x214b0d(0x1aa)],this[_0x214b0d(0x110)],[],this['_handler']);}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x150)](){const _0x58f9ef=_0x33f14e;this['_handler'][_0x58f9ef(0x152)](this['_awaitingChangeset']);}[_0x33f14e(0x358)](_0x207512){const _0x1d003c=_0x33f14e;return this['_clearScheduledTask'](),this[_0x1d003c(0x1c7)][_0x1d003c(0x32f)](_0x50a112,this[_0x1d003c(0x37e)],this[_0x1d003c(0x1aa)],this['_awaitingChangeset'],[],this['_handler'],_0x207512);}[_0x33f14e(0x286)](_0x509e42,_0x1f36d4){const _0x196667=_0x33f14e;var _0x14def6;_0x509e42===((_0x14def6=this['_awaitingChangeset'])==null?void 0x0:_0x14def6[_0x196667(0x1e8)])&&(this[_0x196667(0x150)](),this[_0x196667(0x120)]=_0x1f36d4===0x0?0x3e8:Math[_0x196667(0x276)](_0x1f36d4*0x2,_0x47612d),this[_0x196667(0x256)]+=this[_0x196667(0x120)]);}[_0x33f14e(0x2ab)](){const _0x55a4fa=_0x33f14e;var _0x48e8bb;(_0x48e8bb=this[_0x55a4fa(0x2ff)])==null||_0x48e8bb[_0x55a4fa(0x38d)](),this[_0x55a4fa(0x120)]=0x0,this[_0x55a4fa(0x256)]=0x0;}};_0x4c5197=_0x54fbde=_0x47fc4c([_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f['RevisionService'])),_0xf01086(0x6,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x7,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x8,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x9,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xa,(0x0,_0x305d10['Optional'])(_0xbd995e))],_0x4c5197);let _0x1f4a11=_0x55bb43=class extends _0xcc4349{constructor(_0x4f18de,_0x5ee346,_0x3c1ed3,_0x171390,_0x1f057b,_0xa767e5,_0x7d422e,_0x3b4b05,_0x39a92b,_0x376e82,_0x25caf9,_0x3c27f4,_0x8052b6){const _0x3d4a39=_0x33f14e;super(_0x4f18de,_0x5ee346,_0x3c1ed3,_0x171390,_0x1f057b,_0x39a92b,_0x3c27f4,_0x3b4b05,_0x8052b6),this[_0x3d4a39(0x1c7)]=_0x7d422e,this['_logService']=_0x376e82,this[_0x3d4a39(0x15e)]=_0x25caf9,this[_0x3d4a39(0x302)]=_0x8052b6,_0x816778(this,_0x3d4a39(0x2fb),_0x3d4a39(0x315)),_0x816778(this,_0x3d4a39(0x120),0x0),_0x816778(this,'_maxTotalRetryTimeout',0x0),_0x816778(this,_0x3d4a39(0x1a6),void 0x0),_0x816778(this,_0x3d4a39(0x2ff),void 0x0),_0xa767e5&&(this[_0x3d4a39(0x1a6)]=_0xa767e5,this[_0x3d4a39(0x2ff)]=this['_resendTimer'][_0x3d4a39(0x305)](({reqId:_0x186cf0,timeout:_0x4aa35f})=>{const _0x445eca=_0x3d4a39;this[_0x445eca(0x286)](_0x186cf0,_0x4aa35f);}));}[_0x33f14e(0x221)](_0x4b7b9){const _0x5ca261=_0x33f14e;return this[_0x5ca261(0x14e)][_0x5ca261(0xf8)](_0x4b7b9),this;}['onRemoteChangeset'](_0x4a5f14){const _0x159de4=_0x33f14e;if(this[_0x159de4(0x209)](_0x4a5f14))return this[_0x159de4(0x2ab)](),this['_injector'][_0x159de4(0x32f)](_0x69d917,this[_0x159de4(0x37e)],this[_0x159de4(0x1aa)],this[_0x159de4(0x110)],this[_0x159de4(0x14e)],null,[_0x4a5f14],this[_0x159de4(0x1c8)]);try{let _0x5173e9=this[_0x159de4(0x15e)][_0x159de4(0x3be)]([_0x4a5f14],[this['_awaitingChangeset']],!0x1);if((0x0,_0x540a4f[_0x159de4(0x13e)])(_0x5173e9)){let {c1Prime:_0x169dde,c2Prime:_0x20ca7a}=_0x5173e9,_0x54fb2c=this[_0x159de4(0x15e)][_0x159de4(0x141)](_0x169dde[0x0],this['_pendingMutations']);if((0x0,_0x540a4f['isTransformMutationsWithChangesetSuccess'])(_0x54fb2c)){let {c1Prime:_0x1908db,m2Prime:_0x482048}=_0x54fb2c;return this[_0x159de4(0x16b)](_0x1908db),_0x20ca7a[0x0][_0x159de4(0x1ac)]=this['_getCurrentRevision'](),this[_0x159de4(0x2ab)](),this['_injector'][_0x159de4(0x32f)](_0x55bb43,this[_0x159de4(0x37e)],this['type'],_0x20ca7a[0x0],_0x482048,this['_handler'],void 0x0);}throw _0x54fb2c[_0x159de4(0x15f)];}throw _0x5173e9[_0x159de4(0x15f)];}catch(_0x501454){return this[_0x159de4(0x356)][_0x159de4(0x15f)](_0x501454),this[_0x159de4(0x358)](!0x1);}}[_0x33f14e(0xc4)](_0x53e550){const _0x3d5577=_0x33f14e;this[_0x3d5577(0x2ab)]();let _0x125298=this[_0x3d5577(0x203)]();if(_0x53e550[_0x3d5577(0x2d1)]<=_0x125298)return this;if(this[_0x3d5577(0x209)](_0x53e550))return this[_0x3d5577(0x1c7)][_0x3d5577(0x32f)](_0x69d917,this[_0x3d5577(0x37e)],this[_0x3d5577(0x1aa)],this[_0x3d5577(0x110)],this[_0x3d5577(0x14e)],_0x53e550[_0x3d5577(0x2d1)],[],this['_handler']);this['_incrementRevisionNumber']();let _0x5c98ba=this[_0x3d5577(0x1c7)][_0x3d5577(0x32f)](_0x40e466,this[_0x3d5577(0x37e)],this[_0x3d5577(0x1aa)],this[_0x3d5577(0x14e)],this[_0x3d5577(0x1c8)]);return _0x5c98ba[_0x3d5577(0x1d6)](),_0x5c98ba[_0x3d5577(0x335)](),_0x5c98ba;}[_0x33f14e(0x159)](_0x4d4bc8){const _0x180fe9=_0x33f14e;return this[_0x180fe9(0x358)](!!(_0x4d4bc8!=null&&_0x4d4bc8[_0x180fe9(0x3bd)]));}[_0x33f14e(0x24f)](_0xc4ad1){const _0x33d45c=_0x33f14e;return this['_maxTotalRetryTimeout']>_0x28da41?this[_0x33d45c(0xb3)]():(this[_0x33d45c(0x1a6)]=_0x1ecae5(this['_resendTimeout'],{'timeout':this[_0x33d45c(0x120)],'reqId':_0xc4ad1['reqId']}),this[_0x33d45c(0x2ff)]=this[_0x33d45c(0x1a6)][_0x33d45c(0x305)](({reqId:_0x1a03ca,timeout:_0x245cfe})=>{this['_resendWithTimeout'](_0x1a03ca,_0x245cfe);}),this);}[_0x33f14e(0xb3)](){const _0x2628a7=_0x33f14e;return this['_clearScheduledTask'](),this[_0x2628a7(0x1c7)]['createInstance'](_0x18cfb2,this[_0x2628a7(0x37e)],this[_0x2628a7(0x1aa)],this['_awaitingChangeset'],this[_0x2628a7(0x14e)],this[_0x2628a7(0x1c8)]);}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x150)](){const _0x2fb49f=_0x33f14e;this[_0x2fb49f(0x1c8)][_0x2fb49f(0x152)](this[_0x2fb49f(0x110)]);}[_0x33f14e(0x358)](_0x30f957){const _0x283785=_0x33f14e;return this[_0x283785(0x2ab)](),this[_0x283785(0x1c7)][_0x283785(0x32f)](_0x50a112,this['unitID'],this['type'],null,this[_0x283785(0x14e)],this[_0x283785(0x1c8)],_0x30f957);}[_0x33f14e(0x286)](_0x3c0cfa,_0x12396d){const _0x227f59=_0x33f14e;var _0x56255e;_0x3c0cfa===((_0x56255e=this[_0x227f59(0x110)])==null?void 0x0:_0x56255e[_0x227f59(0x1e8)])&&(this[_0x227f59(0x150)](),this[_0x227f59(0x120)]=_0x12396d===0x0?0x3e8:Math[_0x227f59(0x276)](_0x12396d*0x2,_0x47612d),this[_0x227f59(0x256)]+=this[_0x227f59(0x120)]);}[_0x33f14e(0x2ab)](){const _0x45eb67=_0x33f14e;var _0x5c0a20;(_0x5c0a20=this[_0x45eb67(0x2ff)])==null||_0x5c0a20[_0x45eb67(0x38d)](),this[_0x45eb67(0x120)]=0x0,this[_0x45eb67(0x256)]=0x0;}};_0x1f4a11=_0x55bb43=_0x47fc4c([_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x8,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0xb,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x1f4a11);let _0x50a112=class extends _0xcc4349{constructor(_0x31787d,_0x15170e,_0x4dba88,_0x3c057d,_0x1a375f,_0x24ef1=!0x1,_0x2ceccc,_0x415cf9,_0x191e4b,_0x4a8efc,_0x16d17a,_0x4a60a5,_0x536dbc){const _0x288f21=_0x33f14e;super(_0x31787d,_0x15170e,_0x4dba88,_0x3c057d,_0x1a375f,_0x415cf9,_0x191e4b,_0x4a8efc,_0x536dbc),this[_0x288f21(0x39a)]=_0x24ef1,this['_permissionService']=_0x2ceccc,this['_localeService']=_0x16d17a,this['_collaborationUIEventService']=_0x4a60a5,this['localCacheService']=_0x536dbc,_0x816778(this,_0x288f21(0x2fb),_0x288f21(0x182)),this[_0x288f21(0x29e)](),this[_0x288f21(0x307)](),this['_disableEditing']();}[_0x33f14e(0x221)](){return this;}['onRemoteChangeset'](){return this;}[_0x33f14e(0xc4)](){return this;}[_0x33f14e(0x159)](){return this;}[_0x33f14e(0x24f)](){return this;}[_0x33f14e(0xb3)](){return this;}[_0x33f14e(0x2ea)](){return this;}[_0x33f14e(0x150)](){const _0x6a83b9=_0x33f14e;throw Error(_0x6a83b9(0x1ed));}['_clearLocalCache'](){const _0x335240=_0x33f14e;var _0x80b8ee;(_0x80b8ee=this[_0x335240(0x179)])==null||_0x80b8ee[_0x335240(0x12a)](this[_0x335240(0x37e)],this[_0x335240(0x1aa)],null,[]);}[_0x33f14e(0x29e)](){const _0x18eb99=_0x33f14e;this[_0x18eb99(0x39a)]?this[_0x18eb99(0x17e)]['emitEvent']({'id':_0x18eb99(0x399)}):this['_collaborationUIEventService']['emitEvent']({'id':_0x18eb99(0x225)});}[_0x33f14e(0xdb)](){const _0x154a12=_0x33f14e;this[_0x154a12(0x27e)][_0x154a12(0x378)](new _0x2b86ea['WorkbookEditablePermission'](this[_0x154a12(0x37e)])['id'],!0x1);}};_0x50a112=_0x47fc4c([_0xf01086(0x6,(0x0,_0x305d10['Inject'])(_0x305d10['IPermissionService'])),_0xf01086(0x7,_0x305d10['ICommandService']),_0xf01086(0x8,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0x9,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0xa,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0xb,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x50a112);let _0x18cfb2=class extends _0xcc4349{constructor(_0x1e418d,_0xf2207f,_0x287bbe,_0xad63d4,_0x1a7cda,_0x38fa44,_0x40a9a8,_0x4f03ac,_0x40d088,_0x23d0c0){const _0x5c2e52=_0x33f14e;super(_0x1e418d,_0xf2207f,_0x287bbe,_0xad63d4,_0x1a7cda,_0x4f03ac,_0x40d088,_0x40a9a8,_0x23d0c0),this[_0x5c2e52(0x1c7)]=_0x38fa44,_0x816778(this,_0x5c2e52(0x2fb),_0x5c2e52(0x15d));}['appendMutation'](_0x220376){const _0x1cd502=_0x33f14e;return this[_0x1cd502(0x14e)][_0x1cd502(0xf8)](_0x220376),this[_0x1cd502(0x335)](),this;}[_0x33f14e(0x217)](_0x1568ef){const _0x1a2f7c=_0x33f14e;throw Error(_0x1a2f7c(0x3a0));}[_0x33f14e(0xc4)](){const _0x54842f=_0x33f14e;throw Error(_0x54842f(0x25b));}[_0x33f14e(0x159)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x33f14e(0x24f)](){return this;}['toggleOffline'](){return this;}[_0x33f14e(0x2ea)](){const _0x1ef93a=_0x33f14e;let {_injector:_0x4fccb1,_pendingMutations:_0x44555f,_awaitingChangeset:_0x5766b0,unitID:_0x5c11bb,_handler:_0x14fdcd,type:_0x55039b}=this,_0x4b2c19=_0xa73d8b(_0x4fccb1,_0x5c11bb,_0x55039b,_0x5766b0,_0x44555f,_0x14fdcd);return _0x4b2c19 instanceof _0x40e466?_0x4b2c19['_schedule']():(_0x4b2c19 instanceof _0x1f4a11||_0x4b2c19 instanceof _0x4c5197)&&_0x4b2c19[_0x1ef93a(0x150)](),_0x4b2c19;}[_0x33f14e(0x150)](){const _0x11a03a=_0x33f14e;throw Error(_0x11a03a(0x357));}};_0x18cfb2=_0x47fc4c([_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x8,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0x9,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x18cfb2);let _0x69d917=class extends _0xcc4349{constructor(_0x2d9350,_0x44417f,_0x19fb88,_0x15cf3d,_0x4d6f16,_0x35c998,_0x215377,_0x5f4305,_0x45c123,_0x279368,_0x113d36,_0x14fd12,_0x2aaa6f,_0x3e05be){const _0x5ea01a=_0x33f14e;super(_0x2d9350,_0x44417f,_0x19fb88,_0x15cf3d,_0x215377,_0x113d36,_0x14fd12,_0x45c123,_0x3e05be),this[_0x5ea01a(0x1ea)]=_0x4d6f16,this[_0x5ea01a(0x319)]=_0x35c998,this['_injector']=_0x5f4305,this['_logService']=_0x279368,this['_transformService']=_0x2aaa6f,this[_0x5ea01a(0x302)]=_0x3e05be,_0x816778(this,_0x5ea01a(0x2fb),_0x5ea01a(0xe9));}[_0x33f14e(0xd5)](_0xe12d30){const _0x3a4a90=_0x33f14e;try{if(this[_0x3a4a90(0x2cf)](_0xe12d30)[_0x3a4a90(0x2e1)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this['_handleRemoteChangesets']([...this[_0x3a4a90(0x319)]][_0x3a4a90(0x1bd)]((_0x4de3bc,_0x56635b)=>_0x4de3bc[_0x3a4a90(0x2d1)]-_0x56635b[_0x3a4a90(0x2d1)]))[_0x3a4a90(0x2e1)])return this[_0x3a4a90(0x319)]=[],this[_0x3a4a90(0x335)](),this['_handler'][_0x3a4a90(0xd6)]({'from':this[_0x3a4a90(0x203)](),'to':0x0}),this;let _0x18d0dc=this[_0x3a4a90(0x110)],_0x485f9a=this[_0x3a4a90(0x14e)],_0x374bdb;if(_0x18d0dc&&_0x485f9a['length']!==0x0)_0x374bdb=this['_injector'][_0x3a4a90(0x32f)](_0x1f4a11,this[_0x3a4a90(0x37e)],this[_0x3a4a90(0x1aa)],_0x18d0dc,_0x485f9a,this['_handler'],void 0x0);else{if(_0x18d0dc&&_0x485f9a['length']===0x0)_0x18d0dc[_0x3a4a90(0x1ac)]=this[_0x3a4a90(0x203)](),_0x374bdb=this[_0x3a4a90(0x1c7)]['createInstance'](_0x4c5197,this['unitID'],this[_0x3a4a90(0x1aa)],_0x18d0dc,this['_handler']);else{if(_0x485f9a[_0x3a4a90(0x251)]!==0x0){let _0x3f02ca=this[_0x3a4a90(0x1c7)]['createInstance'](_0x40e466,this['unitID'],this['type'],_0x485f9a,this[_0x3a4a90(0x1c8)]);_0x3f02ca[_0x3a4a90(0x1d6)](),_0x374bdb=_0x3f02ca;}else _0x374bdb=this['_injector']['createInstance'](_0x3f62b4,this[_0x3a4a90(0x37e)],this[_0x3a4a90(0x1aa)],this[_0x3a4a90(0x1c8)]);}}return _0x374bdb[_0x3a4a90(0x335)](),_0x374bdb;}catch(_0x93055e){return this[_0x3a4a90(0x356)][_0x3a4a90(0x15f)](_0x3a4a90(0x27d),_0x3a4a90(0x1d1),_0x93055e),this['_injector']['createInstance'](_0x50a112,this[_0x3a4a90(0x37e)],this[_0x3a4a90(0x1aa)],this[_0x3a4a90(0x110)],this[_0x3a4a90(0x14e)],this[_0x3a4a90(0x1c8)],!0x1);}}[_0x33f14e(0x2cf)](_0x5bc373){const _0x9b52ac=_0x33f14e;this['_acknowledgeAwaitingIfReady']();for(let _0x34f413=0x0;_0x34f413<_0x5bc373[_0x9b52ac(0x251)];_0x34f413++){let _0x41404d=_0x5bc373[_0x34f413],_0x380e3e=this[_0x9b52ac(0x203)]();if(!(_0x41404d[_0x9b52ac(0x2d1)]<=_0x380e3e)){if(_0x41404d[_0x9b52ac(0x2d1)]>_0x380e3e+0x1)return{'missingChangesets':!0x0};if(this[_0x9b52ac(0x234)](_0x41404d)){this[_0x9b52ac(0xee)]();continue;}this[_0x9b52ac(0x342)](_0x41404d),this[_0x9b52ac(0x275)]();}}return{'missingChangesets':!0x1};}[_0x33f14e(0x342)](_0x77ac01){const _0x2872ed=_0x33f14e;let _0x3f1b89=_0x77ac01,_0x27ac81=this[_0x2872ed(0x110)];if(_0x27ac81){let _0x18b20e=this[_0x2872ed(0x15e)][_0x2872ed(0x3be)]([_0x77ac01],[_0x27ac81],!0x1);if(!(0x0,_0x540a4f[_0x2872ed(0x13e)])(_0x18b20e))throw _0x18b20e[_0x2872ed(0x15f)];_0x3f1b89=_0x18b20e['c1Prime'][0x0],_0x27ac81=_0x18b20e[_0x2872ed(0x22b)][0x0];}let _0x2f245f=this['_pendingMutations'];if(_0x2f245f[_0x2872ed(0x251)]){let _0x5810f0=this[_0x2872ed(0x15e)][_0x2872ed(0x141)](_0x3f1b89,_0x2f245f);if(!(0x0,_0x540a4f[_0x2872ed(0x199)])(_0x5810f0))throw _0x5810f0[_0x2872ed(0x15f)];_0x3f1b89=_0x5810f0['c1Prime'],_0x2f245f=_0x5810f0['m2Prime'];}this[_0x2872ed(0x16b)](_0x3f1b89),_0x27ac81&&(_0x27ac81[_0x2872ed(0x1ac)]=this[_0x2872ed(0x203)]()),this['_awaitingChangeset']=_0x27ac81,this[_0x2872ed(0x14e)]=_0x2f245f;}['_acknowledgeAwaitingIfReady'](){const _0x2762cb=_0x33f14e;if(!this[_0x2762cb(0x110)]||this[_0x2762cb(0x1ea)]==null)return;let _0x3f7964=this[_0x2762cb(0x203)]();if(this[_0x2762cb(0x1ea)]<=_0x3f7964)throw Error(_0x2762cb(0x351)+this['_acknowledgedAwaitingRevision']+'.');this[_0x2762cb(0x1ea)]===_0x3f7964+0x1&&this[_0x2762cb(0xee)]();}['_acknowledgeAwaiting'](){const _0x4122d1=_0x33f14e;this[_0x4122d1(0x3b7)](),this[_0x4122d1(0x110)]=null,this[_0x4122d1(0x1ea)]=null;}[_0x33f14e(0x234)](_0x566903){const _0x10d8d1=_0x33f14e;let _0x3fb967=this[_0x10d8d1(0x110)];return!_0x3fb967||!_0x3fb967[_0x10d8d1(0x39c)]||_0x3fb967[_0x10d8d1(0x1e8)]===null||_0x3fb967[_0x10d8d1(0x1e8)]===void 0x0?!0x1:_0x566903[_0x10d8d1(0x37e)]===_0x3fb967[_0x10d8d1(0x37e)]&&_0x566903[_0x10d8d1(0x39c)]===_0x3fb967['sid']&&_0x566903[_0x10d8d1(0x1e8)]===_0x3fb967[_0x10d8d1(0x1e8)];}[_0x33f14e(0x150)](){const _0x530d79=_0x33f14e;throw Error(_0x530d79(0x220));}[_0x33f14e(0x221)](_0x509a86){const _0x52b199=_0x33f14e;return this[_0x52b199(0x14e)]['push'](_0x509a86),this;}[_0x33f14e(0x217)](_0x4d839f){const _0x132068=_0x33f14e;return this[_0x132068(0x319)]['push'](_0x4d839f),this;}[_0x33f14e(0xc4)](_0x2f2e14){const _0x41a12e=_0x33f14e;if(this[_0x41a12e(0x110)]){let _0x2378fb=this[_0x41a12e(0x203)]();return _0x2f2e14[_0x41a12e(0x2d1)]<=_0x2378fb||(_0x2378fb+0x1===_0x2f2e14[_0x41a12e(0x2d1)]?(this[_0x41a12e(0x3b7)](),this['_awaitingChangeset']=null,this['_acknowledgedAwaitingRevision']=null):this[_0x41a12e(0x1ea)]=_0x2f2e14['revision']),this;}if(_0x2f2e14[_0x41a12e(0x2d1)]<=this[_0x41a12e(0x203)]())return this;throw Error(_0x41a12e(0x130));}['onRemoteRej'](_0x3c6a74){const _0xa98a8c=_0x33f14e;return this[_0xa98a8c(0x358)](!!(_0x3c6a74!=null&&_0x3c6a74['isPermissionRej']));}[_0x33f14e(0x24f)](){return this;}[_0x33f14e(0xb3)](){const _0x568c3a=_0x33f14e;return this[_0x568c3a(0x1c7)][_0x568c3a(0x32f)](_0x18cfb2,this[_0x568c3a(0x37e)],this[_0x568c3a(0x1aa)],this[_0x568c3a(0x110)],this[_0x568c3a(0x14e)],this[_0x568c3a(0x1c8)]);}['toggleOnline'](){return this;}[_0x33f14e(0x358)](_0x11d35e){const _0x2d1728=_0x33f14e;return this[_0x2d1728(0x1c7)][_0x2d1728(0x32f)](_0x50a112,this[_0x2d1728(0x37e)],this[_0x2d1728(0x1aa)],this[_0x2d1728(0x110)],this[_0x2d1728(0x14e)],this[_0x2d1728(0x1c8)],_0x11d35e);}};_0x69d917=_0x47fc4c([_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x8,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x305d10['ICommandService']),_0xf01086(0xb,_0x305d10[_0x33f14e(0xe3)]),_0xf01086(0xc,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x69d917);function _0xa73d8b(_0x226fee,_0x2e4faf,_0x52a65d,_0x137b46,_0x3b13ce,_0x4db61f){const _0x29aeb5=_0x33f14e;return _0x137b46&&_0x3b13ce['length']?_0x226fee[_0x29aeb5(0x32f)](_0x1f4a11,_0x2e4faf,_0x52a65d,_0x137b46,_0x3b13ce,_0x4db61f,void 0x0):_0x137b46?_0x226fee[_0x29aeb5(0x32f)](_0x4c5197,_0x2e4faf,_0x52a65d,_0x137b46,_0x4db61f):_0x3b13ce[_0x29aeb5(0x251)]?_0x226fee[_0x29aeb5(0x32f)](_0x40e466,_0x2e4faf,_0x52a65d,_0x3b13ce,_0x4db61f):_0x226fee[_0x29aeb5(0x32f)](_0x3f62b4,_0x2e4faf,_0x52a65d,_0x4db61f);}let _0x5f0326=class extends _0x305d10[_0x33f14e(0x15a)]{get['state'](){return this['_state'];}constructor(_0x48350c,_0x28bc02,_0x2fb4b4,_0x100c18,_0xb8ec71,_0x4ed3c7,_0x1ad9b1,_0x4af083,_0x18337b,_0x2fd90a,_0xa1c208,_0x5bc666,_0x1fb27e,_0x37d351){const _0x2a13d9=_0x33f14e;super(),this['unitID']=_0x48350c,this[_0x2a13d9(0x20a)]=_0x28bc02,this[_0x2a13d9(0x34a)]=_0x2fb4b4,this[_0x2a13d9(0x1c7)]=_0x100c18,this[_0x2a13d9(0x2ac)]=_0xb8ec71,this[_0x2a13d9(0x35d)]=_0x4ed3c7,this[_0x2a13d9(0x28d)]=_0x1ad9b1,this[_0x2a13d9(0x17a)]=_0x4af083,this[_0x2a13d9(0x35b)]=_0x18337b,this[_0x2a13d9(0x356)]=_0x2fd90a,this[_0x2a13d9(0x1f7)]=_0xa1c208,this[_0x2a13d9(0x27e)]=_0x5bc666,this[_0x2a13d9(0x24a)]=_0x1fb27e,this[_0x2a13d9(0x179)]=_0x37d351,_0x816778(this,_0x2a13d9(0x247),new _0x247d93['BehaviorSubject'](null)),_0x816778(this,_0x2a13d9(0x1a8),this['_state$'][_0x2a13d9(0x172)]()),_0x816778(this,'_state',void 0x0),_0x816778(this,_0x2a13d9(0x1d8),!0x1),_0x816778(this,'_changesetSessionId',''),_0x816778(this,'_changesetReqId',0x0),_0x816778(this,_0x2a13d9(0x363),this[_0x2a13d9(0x1a8)][_0x2a13d9(0x2a9)]((0x0,_0x247d93[_0x2a13d9(0x348)])(_0x3e65ff=>_0x3e65ff?_0x3e65ff[_0x2a13d9(0x2fb)]:'offline'),(0x0,_0x247d93[_0x2a13d9(0x2de)])({'bufferSize':0x1,'refCount':!0x0}))),_0x816778(this,'_transitionLocked',!0x1),_0x816778(this,_0x2a13d9(0x1ec),[]);}async[_0x33f14e(0x32e)](){const _0x515d0a=_0x33f14e;if(this[_0x515d0a(0x204)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x515d0a(0x205)]();}[_0x33f14e(0x2aa)](){const _0x5bb1c3=_0x33f14e;return this[_0x5bb1c3(0x1d8)]=!0x0,(0x0,_0x305d10['toDisposable'])(()=>{const _0x158b35=_0x5bb1c3;this[_0x158b35(0x1d8)]=!0x1,this[_0x158b35(0x134)]();});}[_0x33f14e(0xf9)](_0x287538){const _0x4ad35e=_0x33f14e;this[_0x4ad35e(0x1ad)](_0x287538);}['_updateState'](_0x147681){const _0x1b3758=_0x33f14e;this[_0x1b3758(0x184)]=_0x147681,this[_0x1b3758(0x247)]['next'](_0x147681);}async[_0x33f14e(0x205)](){const _0x5a6a0f=_0x33f14e;if(this['_updateState'](await this[_0x5a6a0f(0x34b)]()),this['_singleActiveUnitService']){var _0x2dfc70;(_0x2dfc70=this[_0x5a6a0f(0x24a)])==null||_0x2dfc70[_0x5a6a0f(0x1f8)](this[_0x5a6a0f(0x37e)]),this[_0x5a6a0f(0x20b)](this[_0x5a6a0f(0x24a)][_0x5a6a0f(0x38f)](this[_0x5a6a0f(0x37e)])[_0x5a6a0f(0x305)](_0x391207=>{const _0x2b2225=_0x5a6a0f;this['_logService'][_0x2b2225(0x31a)](_0x2b2225(0x2f5),_0x2b2225(0xbe),_0x391207),_0x391207===0x1?(this['_eventService'][_0x2b2225(0x118)]({'id':_0x2b2225(0x162)}),this[_0x2b2225(0x27e)]['updatePermissionPoint'](new _0x2b86ea[(_0x2b2225(0xef))](this[_0x2b2225(0x37e)])['id'],!0x1),this[_0x2b2225(0x27e)]['setShowComponents'](!0x1)):(this[_0x2b2225(0x27e)]['updatePermissionPoint'](new _0x2b86ea[(_0x2b2225(0xef))](this[_0x2b2225(0x37e)])['id'],!0x0),this['_permissionService'][_0x2b2225(0x32d)](!0x0));}));}let _0x9426fa=!0x1;return this[_0x5a6a0f(0x20b)](this[_0x5a6a0f(0x20a)]['sessionStatus$'][_0x5a6a0f(0x305)](_0x5dbf7b=>{_0x5dbf7b===0x3?this['_toggleOnline'](_0x9426fa):_0x5dbf7b===0x2&&(_0x9426fa=!0x0,this['_toggleOffline']());})),this[_0x5a6a0f(0x20b)](this['session'][_0x5a6a0f(0x1b0)][_0x5a6a0f(0x305)](_0x1e0c69=>{const _0x28bbef=_0x5a6a0f;try{switch(_0x1e0c69[_0x28bbef(0x2b4)]){case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x30a)]:this[_0x28bbef(0x2a5)]((0x0,_0x540a4f[_0x28bbef(0x3b0)])(_0x1e0c69['data']));break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x24c)]:this[_0x28bbef(0x3b9)](_0x1e0c69['data']);break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x164)]:this[_0x28bbef(0x397)]();break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x370)]:this['_onRemoteRetry'](_0x1e0c69[_0x28bbef(0x23d)]);break;case _0x540a4f['CollaborationEvent'][_0x28bbef(0x163)]:this[_0x28bbef(0x157)](_0x1e0c69[_0x28bbef(0x23d)][_0x28bbef(0x10e)][_0x28bbef(0x348)](_0x36fd5c=>(0x0,_0x540a4f['parseProtocolChangeset'])(_0x36fd5c)));break;case _0x540a4f[_0x28bbef(0x38c)][_0x28bbef(0x344)]:this[_0x28bbef(0x397)]({'isPermissionRej':!0x0});break;case _0x540a4f[_0x28bbef(0x38c)]['UNISCRIPT_RUN']:break;}}catch(_0x2ecce5){throw console[_0x28bbef(0x15f)](_0x28bbef(0x22d),_0x2ecce5),_0x2ecce5;}})),this[_0x5a6a0f(0x184)];}['_unlockTransition'](){const _0x10391c=_0x33f14e;this[_0x10391c(0x3b8)]=!0x1;}[_0x33f14e(0x39e)](){const _0xbdbdf4=_0x33f14e;if(this['_transitionLocked'])throw Error(_0xbdbdf4(0x39f));this[_0xbdbdf4(0x3b8)]=!0x0;}[_0x33f14e(0x1ad)](_0xf5418){const _0x411751=_0x33f14e;this[_0x411751(0x39e)](),this[_0x411751(0x30c)](this[_0x411751(0x184)][_0x411751(0x221)](_0xf5418)),this['_unlockTransition']();}[_0x33f14e(0x2a5)](_0x2a3abb){const _0x505e6b=_0x33f14e;if(!(_0x2a3abb['revision']<=this['_revisionService'][_0x505e6b(0x15b)](this[_0x505e6b(0x37e)]))){if(this[_0x505e6b(0x1d8)]){this['_remoteChangesetQueue'][_0x505e6b(0xf8)](_0x2a3abb);return;}this[_0x505e6b(0x2a3)](_0x2a3abb);}}['_exhaustRemoteChangesetQueue'](){const _0x3acfe6=_0x33f14e;this[_0x3acfe6(0x1ec)][_0x3acfe6(0x1fc)](_0x9ad203=>this[_0x3acfe6(0x2a3)](_0x9ad203)),this[_0x3acfe6(0x1ec)]=[];}[_0x33f14e(0x2a3)](_0x4826fc){const _0x2d7ffb=_0x33f14e;let _0x16486e=this[_0x2d7ffb(0x2ac)][_0x2d7ffb(0x2e2)]['fetchThroughInterceptors'](this[_0x2d7ffb(0x2ac)]['interceptor'][_0x2d7ffb(0x31e)]()[_0x2d7ffb(0x17c)])(_0x4826fc[_0x2d7ffb(0x316)],null)||_0x4826fc[_0x2d7ffb(0x316)],_0x16333d={..._0x4826fc,'mutations':_0x16486e};this['_lockTransition'](),this[_0x2d7ffb(0x30c)](this[_0x2d7ffb(0x184)]['onRemoteChangeset'](_0x16333d)),this[_0x2d7ffb(0x330)]();}[_0x33f14e(0x3b9)](_0x73f62){const _0x386412=_0x33f14e;this['_lockTransition'](),this['_updateState'](this[_0x386412(0x184)][_0x386412(0xc4)](_0x73f62)),this[_0x386412(0x330)]();}[_0x33f14e(0x397)](_0x510a44){const _0x3c609e=_0x33f14e;this[_0x3c609e(0x39e)](),this['_updateState'](this[_0x3c609e(0x184)][_0x3c609e(0x159)](_0x510a44)),this[_0x3c609e(0x330)]();}[_0x33f14e(0x176)](_0x31ab89){const _0x1e2057=_0x33f14e;this[_0x1e2057(0x39e)](),this[_0x1e2057(0x30c)](this[_0x1e2057(0x184)]['onRemoteRetry'](_0x31ab89)),this[_0x1e2057(0x330)]();}[_0x33f14e(0x157)](_0xe7de93){const _0x4eed1e=_0x33f14e;if(!(this[_0x4eed1e(0x184)]instanceof _0x69d917))throw TypeError(_0x4eed1e(0x104));let _0x250858=_0xe7de93[_0x4eed1e(0x348)](_0x4ce8f8=>{const _0x371e77=_0x4eed1e;let _0x7477bd=this['_compressMutationService'][_0x371e77(0x2e2)]['fetchThroughInterceptors'](this[_0x371e77(0x2ac)][_0x371e77(0x2e2)][_0x371e77(0x31e)]()[_0x371e77(0x17c)])(_0x4ce8f8[_0x371e77(0x316)],null)||_0x4ce8f8[_0x371e77(0x316)];return{..._0x4ce8f8,'mutations':_0x7477bd};});this[_0x4eed1e(0x39e)](),this[_0x4eed1e(0x30c)](this[_0x4eed1e(0x184)][_0x4eed1e(0xd5)](_0x250858)),this[_0x4eed1e(0x330)]();}[_0x33f14e(0x2e3)](){const _0x2841d9=_0x33f14e;this[_0x2841d9(0x39e)](),this[_0x2841d9(0x30c)](this[_0x2841d9(0x184)]['toggleOffline']()),this[_0x2841d9(0x330)]();}['_toggleOnline'](_0x424774=!0x1){const _0x2ffbb7=_0x33f14e;this[_0x2ffbb7(0x39e)](),this[_0x2ffbb7(0x30c)](this['_state'][_0x2ffbb7(0x2ea)]()),this['_unlockTransition']();let _0x4c1499=this[_0x2ffbb7(0x184)];_0x424774&&_0x4c1499 instanceof _0x3f62b4&&(this[_0x2ffbb7(0x39e)](),this[_0x2ffbb7(0x30c)](_0x4c1499['fetchMiss']()),this[_0x2ffbb7(0x330)]());}async['_createInitialState'](){return new Promise(_0xf2537b=>{const _0x18f3df=_0x1555;this[_0x18f3df(0x20a)]['sessionStatus$']['pipe']((0x0,_0x247d93[_0x18f3df(0x1df)])(0x1))[_0x18f3df(0x305)](async _0x2eae6c=>{_0xf2537b(await this['_createInitialStateImpl'](_0x2eae6c===0x3));});});}[_0x33f14e(0x122)](){const _0x2c7435=_0x33f14e;let _0x3712dc=this[_0x2c7435(0x37e)];return{'onStateChange':(_0x1536e4,_0x54a205)=>{const _0x3fbb1f=_0x2c7435;if(_0x1536e4!==this['_state'])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x1536e4[_0x3fbb1f(0x2fb)]+'\x0aAfter:\x20'+_0x54a205[_0x3fbb1f(0x2fb)]+_0x3fbb1f(0x33a)+this[_0x3fbb1f(0x184)][_0x3fbb1f(0x2fb)]);this[_0x3fbb1f(0x30c)](_0x54a205);},'onSendChangeset':_0x5a5987=>{const _0x5c7af6=_0x2c7435;_0x5a5987['sid']||(_0x5a5987[_0x5c7af6(0x39c)]=this[_0x5c7af6(0xbf)],_0x5a5987[_0x5c7af6(0x1e8)]=++this[_0x5c7af6(0x10d)]);let _0x556aef={'eventID':_0x540a4f[_0x5c7af6(0x38c)][_0x5c7af6(0x1e6)],'data':{'unitID':_0x5a5987[_0x5c7af6(0x37e)],'unitType':this[_0x5c7af6(0x34a)],'changeset':_0x5a5987,'memberID':this['session'][_0x5c7af6(0x173)]()}};this[_0x5c7af6(0x20a)]['send'](_0x556aef,this[_0x5c7af6(0x37e)]);},'onMissingChangesets':({from:_0x368bc4,to:_0x36239a})=>{const _0x373b84=_0x2c7435;this[_0x373b84(0x356)][_0x373b84(0x31a)](_0x373b84(0x2f5),_0x373b84(0xc7)+_0x368bc4+_0x373b84(0xed)+_0x36239a);let _0x362566={'eventID':_0x540a4f[_0x373b84(0x38c)][_0x373b84(0x228)],'data':{'unitID':_0x3712dc,'unitType':this['_type'],'from':_0x368bc4,'to':_0x36239a}};this[_0x373b84(0x20a)][_0x373b84(0x3a8)](_0x362566,this[_0x373b84(0x37e)]);}};}async[_0x33f14e(0x206)](_0xfde58f){const _0x190550=_0x33f14e;var _0x1a8167,_0x1b9d63,_0x3de2a3;let _0x3cc0f0=await((_0x1a8167=this['_localCacheService'])==null?void 0x0:_0x1a8167['loadOfflineData'](this['unitID'])),_0x1b1ce8=(_0x1b9d63=_0x3cc0f0==null?void 0x0:_0x3cc0f0['mutations'])==null?[]:_0x1b9d63,_0x48dcec=(_0x3de2a3=_0x3cc0f0==null?void 0x0:_0x3cc0f0[_0x190550(0x166)])==null?null:_0x3de2a3,_0x3d4c87=!!(_0x48dcec!=null&&_0x48dcec[_0x190550(0x39c)])&&!!(_0x48dcec!=null&&_0x48dcec['reqId']);this['_changesetSessionId']=_0x3d4c87?_0x48dcec[_0x190550(0x39c)]:(0x0,_0x540a4f[_0x190550(0x3b2)])(),this['_changesetReqId']=_0x3d4c87?_0x48dcec[_0x190550(0x1e8)]:0x0;let _0x2deebc=this[_0x190550(0x37e)];try{this['_replayCachedMutations'](_0x48dcec,_0x1b1ce8);}catch(_0x4b0320){this[_0x190550(0x356)][_0x190550(0x15f)](_0x4b0320);}let _0x2362e9=this['_createHandler']();if(_0xfde58f){let _0x1721b8=_0xa73d8b(this[_0x190550(0x1c7)],_0x2deebc,this[_0x190550(0x34a)],_0x48dcec,_0x1b1ce8,_0x2362e9);return _0x1721b8 instanceof _0x40e466?_0x1721b8['_schedule']():(_0x1721b8 instanceof _0x1f4a11||_0x1721b8 instanceof _0x4c5197)&&_0x1721b8[_0x190550(0x150)](),_0x1721b8;}return this[_0x190550(0x1c7)]['createInstance'](_0x18cfb2,_0x2deebc,this[_0x190550(0x34a)],_0x48dcec,_0x1b1ce8,_0x2362e9);}[_0x33f14e(0x301)](_0x37f8bc,_0x3b78d6){const _0xeabfdd=_0x33f14e;var _0x497d91,_0x1a4130;let _0x5ff08d=this[_0xeabfdd(0x2ac)][_0xeabfdd(0x2e2)][_0xeabfdd(0x322)](this[_0xeabfdd(0x2ac)]['interceptor'][_0xeabfdd(0x31e)]()[_0xeabfdd(0x17c)]);(_0x497d91=_0x5ff08d((_0x37f8bc==null?void 0x0:_0x37f8bc[_0xeabfdd(0x316)])||[],null))==null||_0x497d91[_0xeabfdd(0x1fc)](_0x42edf6=>this['_commandService'][_0xeabfdd(0x1b2)](_0x42edf6['id'],_0x42edf6['params'])),(_0x1a4130=_0x5ff08d(_0x3b78d6||[],null))==null||_0x1a4130[_0xeabfdd(0x1fc)](_0x1c58ac=>this['_commandService']['executeCommand'](_0x1c58ac['id'],_0x1c58ac[_0xeabfdd(0x3c1)]));}};_0x5f0326=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0xf4)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x8,_0x305d10['IUniverInstanceService']),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0xb,_0x305d10[_0x33f14e(0x145)]),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x4e88b2)),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x5f0326);let _0x467d36=class extends _0x5f0326{constructor(_0x544571,_0x3a5456,_0x1b1a40,_0x4efd1b,_0x444e41,_0x2f75e7,_0xf87c02,_0x13b5ab,_0xb888a9,_0x598e74,_0x4765ea,_0x3a8a10,_0x5252bf,_0x19ddcd){const _0xf6920a=_0x33f14e;super(_0x544571,_0x1b1a40,_0x3a5456,_0x4efd1b,_0x444e41,_0x2f75e7,_0xf87c02,_0x13b5ab,_0xb888a9,_0x598e74,_0x4765ea,_0x3a8a10,_0x5252bf,_0x19ddcd),this['unitID']=_0x544571,this[_0xf6920a(0x1aa)]=_0x3a5456,_0x816778(this,'_handlerCallback',null);}[_0x33f14e(0xde)](_0xa4fb7f){const _0xf860ab=_0x33f14e;this[_0xf860ab(0x239)]=_0xa4fb7f;}[_0x33f14e(0x366)](){const _0x6a3d3a=_0x33f14e;this['_handlerCallback']=null,super[_0x6a3d3a(0x366)]();}[_0x33f14e(0x122)](){const _0x2e9403=_0x33f14e;let _0x132b36=super[_0x2e9403(0x122)]();return _0x132b36['onTransformIME']=_0x164cf9=>{const _0x504f60=_0x2e9403;var _0x5bd321,_0x5f3c93;return(_0x5bd321=this[_0x504f60(0x239)])==null||(_0x5f3c93=_0x5bd321['onTransformIME'])==null?void 0x0:_0x5f3c93[_0x504f60(0xdf)](_0x5bd321,_0x164cf9);},_0x132b36[_0x2e9403(0x2f0)]=_0x44db14=>{const _0x794096=_0x2e9403;var _0x1a1c43,_0x759f2c;return(_0x1a1c43=this[_0x794096(0x239)])==null||(_0x759f2c=_0x1a1c43['onTransformState'])==null?void 0x0:_0x759f2c[_0x794096(0xdf)](_0x1a1c43,_0x44db14);},_0x132b36['onTransformSelections']=_0x162037=>{const _0x5e4ef0=_0x2e9403;var _0x57a740,_0x76d7fc;return(_0x57a740=this['_handlerCallback'])==null||(_0x76d7fc=_0x57a740[_0x5e4ef0(0x2c1)])==null?void 0x0:_0x76d7fc['call'](_0x57a740,_0x162037);},_0x132b36[_0x2e9403(0x27f)]=_0x2bf1e1=>{const _0x22fcbf=_0x2e9403;var _0x434002,_0x22825a;return(_0x434002=this['_handlerCallback'])==null||(_0x22825a=_0x434002[_0x22fcbf(0x27f)])==null?void 0x0:_0x22825a['call'](_0x434002,_0x2bf1e1);},_0x132b36[_0x2e9403(0x299)]=_0x239259=>{const _0x1db9fe=_0x2e9403;var _0x1bb411,_0x21b2fb,_0x5114c1;if(!((_0x1bb411=this[_0x1db9fe(0x239)])!=null&&_0x1bb411['onTransformRemoteChangesetByIMECache']))throw Error(_0x1db9fe(0x23c));return(_0x21b2fb=this[_0x1db9fe(0x239)])==null||(_0x5114c1=_0x21b2fb['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x5114c1[_0x1db9fe(0xdf)](_0x21b2fb,_0x239259);},_0x132b36[_0x2e9403(0x395)]=_0x4cc7c5=>{const _0x564051=_0x2e9403;var _0x446837,_0x283e9c,_0x5c4354;if(!((_0x446837=this[_0x564051(0x239)])!=null&&_0x446837[_0x564051(0x395)]))throw Error(_0x564051(0xe0));return(_0x283e9c=this[_0x564051(0x239)])==null||(_0x5c4354=_0x283e9c[_0x564051(0x395)])==null?void 0x0:_0x5c4354[_0x564051(0xdf)](_0x283e9c,_0x4cc7c5);},_0x132b36;}async['_init'](){const _0x1d6439=_0x33f14e;let _0x59ed49=await super[_0x1d6439(0x205)]();return this[_0x1d6439(0x20b)](this[_0x1d6439(0x1f7)][_0x1d6439(0x20c)]((_0x1bf81e,_0x2e8a28)=>{const _0x12af0f=_0x1d6439;if(_0x1bf81e[_0x12af0f(0x1aa)]!==_0x305d10[_0x12af0f(0x244)][_0x12af0f(0xca)]||_0x2e8a28!=null&&_0x2e8a28[_0x12af0f(0x2b2)]||_0x2e8a28!=null&&_0x2e8a28[_0x12af0f(0x16e)]||_0x1bf81e['id']===_0x44bc8e[_0x12af0f(0xe8)]['id'])return;let _0x1a9d8e=_0x1bf81e[_0x12af0f(0x3c1)];if((_0x1a9d8e==null?void 0x0:_0x1a9d8e[_0x12af0f(0x34f)])!==this['unitID'])return;let _0x46207f=_0x1bf81e,_0x4936ca=this['_compressMutationService'][_0x12af0f(0x2e2)][_0x12af0f(0x322)](this[_0x12af0f(0x2ac)]['interceptor'][_0x12af0f(0x31e)]()[_0x12af0f(0x2a2)])([_0x46207f],this[_0x12af0f(0x35b)])||[_0x46207f];this['_onLocalMutation'](_0x4936ca[0x0]);})),_0x59ed49;}};_0x467d36=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10['Inject'])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0xf4)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x8,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x9,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xa,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0xb,_0x305d10['IPermissionService']),_0xf01086(0xc,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x4e88b2)),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x467d36);let _0x3c0dc6=class extends _0x5f0326{constructor(_0x55eaf9,_0x57c0b1,_0x2545e4,_0x4efee9,_0x30b551,_0x42400c,_0x4e1661,_0x460e9e,_0x4dc4f3,_0x39a866,_0x1980d1,_0x14fd69,_0x39f731,_0x449cea,_0x3132a0){const _0x3fed82=_0x33f14e;super(_0x55eaf9,_0x2545e4,_0x57c0b1,_0x4efee9,_0x30b551,_0x42400c,_0x4e1661,_0x4dc4f3,_0x39a866,_0x1980d1,_0x14fd69,_0x39f731,_0x449cea,_0x3132a0),this[_0x3fed82(0x37e)]=_0x55eaf9,this[_0x3fed82(0x1aa)]=_0x57c0b1,this['_sheetTransformSelectionsService']=_0x460e9e;}[_0x33f14e(0x122)](){const _0x544be3=_0x33f14e;let _0x5c1d94=super['_createHandler']();return _0x5c1d94[_0x544be3(0x2c1)]=_0x405843=>this[_0x544be3(0xb1)][_0x544be3(0x2e6)](_0x405843),_0x5c1d94;}async['_init'](){const _0x35c103=_0x33f14e;let _0x27dbbd=await super[_0x35c103(0x205)]();return this[_0x35c103(0x20b)](this[_0x35c103(0x1f7)]['onMutationExecutedForCollab']((_0x565bcc,_0x5c9f3b)=>{const _0x534c3b=_0x35c103;if(_0x565bcc['type']!==_0x305d10[_0x534c3b(0x244)][_0x534c3b(0xca)]||_0x5c9f3b!=null&&_0x5c9f3b['fromCollab']||_0x5c9f3b!=null&&_0x5c9f3b['onlyLocal'])return;let _0x4f16e9=_0x565bcc[_0x534c3b(0x3c1)];if((_0x4f16e9==null?void 0x0:_0x4f16e9['unitId'])!==this[_0x534c3b(0x37e)])return;let _0x22c482=_0x565bcc,_0xa9965f=this[_0x534c3b(0x2ac)][_0x534c3b(0x2e2)][_0x534c3b(0x322)](this[_0x534c3b(0x2ac)][_0x534c3b(0x2e2)][_0x534c3b(0x31e)]()[_0x534c3b(0x2a2)])([_0x22c482],this[_0x534c3b(0x35b)])||[_0x22c482];this[_0x534c3b(0x1ad)](_0xa9965f[0x0]);})),_0x27dbbd;}};_0x3c0dc6=_0x47fc4c([_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x4,(0x0,_0x305d10['Inject'])(_0x540a4f[_0x33f14e(0xf4)])),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)])),_0xf01086(0x6,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x540a4f[_0x33f14e(0x2a4)])),_0xf01086(0x7,(0x0,_0x305d10['Inject'])(_0x2c235d)),_0xf01086(0x8,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696)),_0xf01086(0x9,_0x305d10['IUniverInstanceService']),_0xf01086(0xa,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0xb,_0x305d10['ICommandService']),_0xf01086(0xc,_0x305d10[_0x33f14e(0x145)]),_0xf01086(0xd,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x4e88b2)),_0xf01086(0xe,(0x0,_0x305d10[_0x33f14e(0x235)])(_0xbd995e))],_0x3c0dc6);let _0x515a5c=(0x0,_0x305d10['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function _0x1ab073(_0x182374){const _0x260c5b=_0x33f14e;let _0x4337c1=_0x182374[_0x260c5b(0x23d)],_0x54e37d=JSON[_0x260c5b(0x36d)](_0x4337c1);switch(_0x54e37d[_0x260c5b(0x38a)]){case _0x54f861['CombCmd'][_0x260c5b(0x313)]:case _0x54f861[_0x260c5b(0xb8)][_0x260c5b(0x2f3)]:{let _0x4007bf=_0x54e37d['infoRsp'];return{..._0x54e37d,'data':_0x4007bf,'cmd':_0x54e37d[_0x260c5b(0x38a)]};}case _0x54f861[_0x260c5b(0xb8)]['JOIN']:{let _0x306ff2=_0x54e37d[_0x260c5b(0x327)];return{..._0x54e37d,'data':_0x306ff2,'cmd':_0x54e37d['cmd']};}case _0x54f861[_0x260c5b(0xb8)][_0x260c5b(0x2f8)]:{let _0x1f7842=_0x54e37d[_0x260c5b(0x28e)];switch(_0x1f7842[_0x260c5b(0x2b4)]){case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x344)]:var _0x30ec56;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x30ec56=_0x1f7842[_0x260c5b(0x154)])==null?void 0x0:_0x30ec56['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x24c)]:var _0x5b1fe5;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x5b1fe5=_0x1f7842[_0x260c5b(0x262)])==null?void 0x0:_0x5b1fe5['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)]['NEW_CHANGESETS']:var _0x2558a3;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x2558a3=_0x1f7842[_0x260c5b(0xad)])==null?void 0x0:_0x2558a3['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x164)]:var _0x33f545;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x33f545=_0x1f7842[_0x260c5b(0x2ae)])==null?void 0x0:_0x33f545['cs']},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x370)]:var _0x248ada;return{..._0x54e37d,'data':{..._0x1f7842,'data':(_0x248ada=_0x1f7842['csShouldRetryEvent'])==null?void 0x0:_0x248ada['cs']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x23a)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x295)]},'cmd':_0x54e37d['cmd']};case _0x540a4f['CollaborationEvent']['USERS_ENTER']:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842['joinEvent']},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x341)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0xcb)]},'cmd':_0x54e37d['cmd']};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x391)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x231)]},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x33b)]:case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x153)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x1f4)]},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)]['LIVESHARE_TERMINATE']:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x231)]},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x1d7)]:return{..._0x54e37d,'data':_0x1f7842,'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x291)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x107)]},'cmd':_0x54e37d[_0x260c5b(0x38a)]};case _0x540a4f[_0x260c5b(0x38c)][_0x260c5b(0x272)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x161)]},'cmd':_0x54e37d['cmd']};case _0x540a4f[_0x260c5b(0x38c)]['SHOULD_CLOSE_CONN']:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x227)]},'cmd':_0x54e37d['cmd']};case _0x540a4f['CollaborationEvent'][_0x260c5b(0x343)]:return{..._0x54e37d,'data':{..._0x1f7842,'data':_0x1f7842[_0x260c5b(0x22e)]},'cmd':_0x54e37d['cmd']};default:return _0x54e37d;}}default:return _0x54e37d;}}function _0x2d2ccc(_0x16d3d4){const _0x226dce=_0x33f14e;switch(_0x16d3d4[_0x226dce(0x38a)]){case _0x54f861['CombCmd'][_0x226dce(0x313)]:case _0x54f861['CombCmd'][_0x226dce(0x2f3)]:return JSON[_0x226dce(0x121)]({'cmd':_0x16d3d4[_0x226dce(0x38a)],'routeKey':_0x16d3d4['routeKey']});case _0x54f861[_0x226dce(0xb8)]['INGEST']:{let _0x4a44a0;switch(_0x16d3d4['data'][_0x226dce(0x2b4)]){case _0x540a4f[_0x226dce(0x38c)]['UPDATE_CURSOR']:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)][_0x226dce(0x23a)],'updateCursorEvent':_0x16d3d4[_0x226dce(0x23d)][_0x226dce(0x23d)]};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x341)]:_0x4a44a0={'eventID':_0x540a4f['CollaborationEvent'][_0x226dce(0x341)],'leaveEvent':_0x16d3d4[_0x226dce(0x23d)]['data']};break;case _0x540a4f['CollaborationEvent'][_0x226dce(0x285)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)][_0x226dce(0x285)],'joinEvent':_0x16d3d4['data'][_0x226dce(0x23d)]};break;case _0x540a4f['CollaborationEvent'][_0x226dce(0x391)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)][_0x226dce(0x391)],'liveShareNewHost':_0x16d3d4[_0x226dce(0x23d)][_0x226dce(0x23d)]};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x153)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x16d3d4['data'][_0x226dce(0x23d)]};break;case _0x540a4f['CollaborationEvent'][_0x226dce(0x38b)]:_0x4a44a0={'eventID':_0x540a4f[_0x226dce(0x38c)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x16d3d4[_0x226dce(0x23d)]['data']};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x2eb)]:_0x4a44a0={'eventID':_0x540a4f['CollaborationEvent'][_0x226dce(0x2eb)],'liveShareRequestHost':_0x16d3d4[_0x226dce(0x23d)]['data']};break;case _0x540a4f[_0x226dce(0x38c)][_0x226dce(0x33b)]:_0x4a44a0={'eventID':_0x540a4f['CollaborationEvent'][_0x226dce(0x33b)]};break;default:_0x4a44a0={'eventID':_0x16d3d4['data']['eventID']};}return JSON[_0x226dce(0x121)]({'cmd':_0x16d3d4[_0x226dce(0x38a)],'routeKey':_0x16d3d4[_0x226dce(0x2bf)],'collaMsg':_0x4a44a0});}case _0x54f861[_0x226dce(0xb8)][_0x226dce(0x2b1)]:return JSON['stringify']({'cmd':_0x16d3d4[_0x226dce(0x38a)],'routeKey':_0x16d3d4[_0x226dce(0x2bf)],'joinReq':_0x16d3d4['data']});case _0x54f861[_0x226dce(0xb8)][_0x226dce(0x2e8)]:return JSON[_0x226dce(0x121)]({'cmd':_0x16d3d4['cmd'],'routeKey':_0x16d3d4['routeKey'],'leaveReq':_0x16d3d4['data']});default:throw Error(_0x226dce(0xd4));}}let _0x277be8=(0x0,_0x305d10[_0x33f14e(0x131)])('univer-pro.collaboration-client-socket-service');function _0xc8ac41(_0x4e6baa,_0x58c423,_0xe9982b){const _0x340d43=_0x33f14e;return _0x4e6baa+'/'+_0x58c423+_0x340d43(0x10f)+_0xe9982b+_0x340d43(0x35e);}let _0x4d4d25=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(_0x50775f,_0x42b059,_0x49d67b,_0x43b489,_0x54d43f){const _0x5036a4=_0x33f14e;super(),this['_injector']=_0x50775f,this[_0x5036a4(0x1b1)]=_0x42b059,this[_0x5036a4(0x333)]=_0x49d67b,this[_0x5036a4(0x356)]=_0x43b489,this[_0x5036a4(0x32c)]=_0x54d43f;}[_0x33f14e(0x2c0)](_0xcc5cdd){const _0x53442b=_0x33f14e;let _0x3b0798=this[_0x53442b(0x1c7)][_0x53442b(0x1a5)](_0x3c9fd5[_0x53442b(0x19b)]);if(!_0x3b0798)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x4c7f7f=_0x3b0798[_0x53442b(0xd8)](_0xcc5cdd);if(!_0x4c7f7f)throw Error(_0x53442b(0x1e2));let _0x4d8258=new _0x305d10[(_0x53442b(0x340))](),_0x12a928=new _0x247d93[(_0x53442b(0x2be))]();_0x4d8258[_0x53442b(0x20e)](_0x4c7f7f[_0x53442b(0x25f)][_0x53442b(0x305)](_0x49e964=>_0x12a928[_0x53442b(0x300)](_0x49e964))),_0x4d8258[_0x53442b(0x20e)]((0x0,_0x305d10[_0x53442b(0xcc)])(()=>_0x12a928[_0x53442b(0x109)]()));let _0x44426f=new _0x247d93[(_0x53442b(0x2be))]();_0x4d8258[_0x53442b(0x20e)](_0x4c7f7f[_0x53442b(0x362)][_0x53442b(0x305)](_0x255339=>_0x44426f[_0x53442b(0x300)](_0x255339))),_0x4d8258[_0x53442b(0x20e)]((0x0,_0x305d10[_0x53442b(0xcc)])(()=>_0x44426f[_0x53442b(0x109)]()));let _0x477fe9=new _0x247d93['Subject']();_0x4d8258[_0x53442b(0x20e)](_0x4c7f7f[_0x53442b(0x260)][_0x53442b(0x305)](_0x5946d1=>{let _0x4e7d5d=_0x1ab073(_0x5946d1);_0x477fe9['next'](_0x4e7d5d);})),_0x4d8258[_0x53442b(0x20e)]((0x0,_0x305d10[_0x53442b(0xcc)])(()=>_0x477fe9[_0x53442b(0x109)]()));let _0x2b0553,_0x9cd2f8=()=>{const _0x8a8efc=_0x53442b;_0x44426f['next'](new Event(_0x8a8efc(0x1fb))),_0x12a928['next'](new Event(_0x8a8efc(0x1fb))),_0x2b0553[_0x8a8efc(0xe4)]();};return _0x2b0553={'memberID':'','close$':_0x12a928[_0x53442b(0x172)](),'error$':_0x44426f['asObservable'](),'open$':_0x4c7f7f[_0x53442b(0x197)],'message$':_0x477fe9[_0x53442b(0x172)](),'send':_0xe96e0c=>{const _0x3dc517=_0x53442b;if(_0xe96e0c[_0x3dc517(0x38a)]===_0x54f861[_0x3dc517(0xb8)][_0x3dc517(0x23f)]){if(_0xe96e0c[_0x3dc517(0x23d)]['eventID']===_0x540a4f['CollaborationEvent']['SUBMIT_CHANGESET']){this[_0x3dc517(0x117)](_0x2b0553,_0xe96e0c[_0x3dc517(0x23d)])['catch'](_0x92ab0=>{const _0x46753c=_0x3dc517;this[_0x46753c(0x356)][_0x46753c(0x15f)](_0x92ab0),_0x9cd2f8();});return;}if(_0xe96e0c['data'][_0x3dc517(0x2b4)]===_0x540a4f[_0x3dc517(0x38c)]['FETCH_MISSING']){let _0x47e247=_0xe96e0c['data'];this['_fetchMissChangesets'](_0x47e247)[_0x3dc517(0x181)](_0x30da94=>{const _0x4407bb=_0x3dc517;_0x477fe9[_0x4407bb(0x300)]({'cmd':_0x54f861['CombCmd'][_0x4407bb(0x2f8)],'code':_0x54f861[_0x4407bb(0x372)]['OK'],'routeKey':_0x47e247[_0x4407bb(0x23d)]['unitID'],'routeType':'','data':{'eventID':_0x540a4f['CollaborationEvent'][_0x4407bb(0x163)],'data':{'changesets':_0x30da94}}});})['catch'](_0x278f9f=>{const _0x3401da=_0x3dc517;this[_0x3401da(0x356)][_0x3401da(0x15f)](_0x278f9f),_0x9cd2f8();});return;}}_0x4c7f7f[_0x3dc517(0x3a8)](_0x2d2ccc(_0xe96e0c));},'close':()=>{const _0x25fc8a=_0x53442b;_0x4c7f7f[_0x25fc8a(0xe4)](),_0x4d8258[_0x25fc8a(0x366)]();}},_0x2b0553;}async[_0x33f14e(0x117)](_0x47383a,_0x430ff1){const _0x5913b3=_0x33f14e;var _0x3fc23c;let {unitType:_0x46d76c,unitID:_0x1bd402,changeset:_0x1389ba}=_0x430ff1['data'],_0x5ed2f3={'unitID':_0x1bd402,'memberID':_0x47383a['memberID'],'type':_0x46d76c,'changeset':(0x0,_0x540a4f[_0x5913b3(0x273)])(_0x1389ba)},_0x83a1f9=this[_0x5913b3(0x333)][_0x5913b3(0x328)](_0x1cf9ab),_0x58d1aa=_0xc8ac41((_0x3fc23c=_0x83a1f9==null?void 0x0:_0x83a1f9[_0x5913b3(0x352)])==null?_0x5913b3(0xb0):_0x3fc23c,_0x46d76c,_0x1bd402);try{await this[_0x5913b3(0x1b1)][_0x5913b3(0x2b0)](_0x58d1aa,{'body':_0x5ed2f3});}catch(_0x2c2517){throw this[_0x5913b3(0x356)][_0x5913b3(0x15f)](_0x5913b3(0x243),_0x5913b3(0xf6)),_0x2c2517;}}async[_0x33f14e(0x2fd)](_0x5f071f){const _0x177ba7=_0x33f14e;let {unitID:_0x36beba,from:_0xa3af76,to:_0x47dc60,unitType:_0x5c863d}=_0x5f071f[_0x177ba7(0x23d)];return(await this[_0x177ba7(0x32c)][_0x177ba7(0xea)]({'metadata':void 0x0},{'unitID':_0x36beba,'type':_0x5c863d,'from':_0xa3af76,'to':_0x47dc60}))['changesets'][_0x177ba7(0x348)](_0x52144c=>((_0x52144c[_0x177ba7(0x316)]===null||_0x52144c[_0x177ba7(0x316)]===void 0x0)&&(_0x52144c[_0x177ba7(0x316)]=[]),_0x52144c));}};_0x4d4d25=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10['Inject'])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,(0x0,_0x305d10['Inject'])(_0x3c9fd5[_0x33f14e(0x195)])),_0xf01086(0x2,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x3,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x4,_0x540a4f['ISnapshotServerService'])],_0x4d4d25);let _0x258abc=class extends _0x305d10[_0x33f14e(0x1c2)]{get[_0x33f14e(0x383)](){const _0x39b34d=_0x33f14e;return this['_socket$'][_0x39b34d(0x3a9)]();}constructor(_0x4f2c38,_0x3672d5,_0x22f2c8,_0x4e8835,_0x22ac45,_0x5807a5){const _0x4ab8bc=_0x33f14e;super(),this['_injector']=_0x4f2c38,this[_0x4ab8bc(0x356)]=_0x3672d5,this[_0x4ab8bc(0x333)]=_0x22f2c8,this[_0x4ab8bc(0x2ef)]=_0x4e8835,this[_0x4ab8bc(0x17e)]=_0x22ac45,this[_0x4ab8bc(0x219)]=_0x5807a5,_0x816778(this,_0x4ab8bc(0x12b),new _0x247d93['BehaviorSubject'](void 0x0)),_0x816778(this,'socket$',this[_0x4ab8bc(0x12b)][_0x4ab8bc(0x172)]()),_0x816778(this,_0x4ab8bc(0xb6),null),_0x816778(this,_0x4ab8bc(0x271),new Map()),_0x816778(this,_0x4ab8bc(0x318),new _0x247d93[(_0x4ab8bc(0x288))](0x0)),_0x816778(this,'status$',this['_status$']['asObservable']()),_0x816778(this,_0x4ab8bc(0x3c6),!0x1),_0x816778(this,_0x4ab8bc(0xfd),void 0x0),_0x816778(this,'_retryCount',0x0),_0x816778(this,_0x4ab8bc(0x119),null),_0x816778(this,_0x4ab8bc(0x2e0),void 0x0),_0x816778(this,'_timeoutTimer',void 0x0),this[_0x4ab8bc(0x250)]();}[_0x33f14e(0x250)](){const _0x5f3f9d=_0x33f14e;this['_networkConditionService']&&this[_0x5f3f9d(0x20b)](this[_0x5f3f9d(0x219)]['online$'][_0x5f3f9d(0x305)](_0x543363=>{const _0x129340=_0x5f3f9d;_0x543363&&!this[_0x129340(0x383)]&&this[_0x129340(0x294)](),_0x543363||this[_0x129340(0x26a)]();}));}['dispose'](){const _0x1615c5=_0x33f14e;var _0x3f740f;super['dispose'](),(_0x3f740f=this[_0x1615c5(0x119)])==null||_0x3f740f['unsubscribe'](),this[_0x1615c5(0x119)]=null,this[_0x1615c5(0x32b)](),this[_0x1615c5(0x326)](),this['_clearHeartbeatTimer'](),this['_sessions'][_0x1615c5(0x1fc)](_0x353d8f=>_0x353d8f[_0x1615c5(0x366)]()),this[_0x1615c5(0x271)]['clear'](),this[_0x1615c5(0x318)][_0x1615c5(0x109)]();}async[_0x33f14e(0x1ee)](_0x25298a){const _0x37472a=_0x33f14e;if(this[_0x37472a(0x271)][_0x37472a(0x354)](_0x25298a))return this[_0x37472a(0x271)][_0x37472a(0x1a5)](_0x25298a);this['_tryEnsureSocket']();let _0x41fa3e=this[_0x37472a(0x1c7)][_0x37472a(0x32f)](_0x459c7b,_0x25298a,this[_0x37472a(0x12b)][_0x37472a(0x172)]());return this[_0x37472a(0x271)]['set'](_0x25298a,_0x41fa3e),_0x41fa3e;}[_0x33f14e(0x375)](_0x475652){const _0x34bf5e=_0x33f14e;let _0x4ac40a=this[_0x34bf5e(0x271)][_0x34bf5e(0x1a5)](_0x475652);if(_0x4ac40a&&(this[_0x34bf5e(0x271)][_0x34bf5e(0xc0)](_0x475652),_0x4ac40a[_0x34bf5e(0xe4)]()),!this[_0x34bf5e(0x271)]['size']){var _0x4fdffc;(_0x4fdffc=this['_socket'])==null||_0x4fdffc[_0x34bf5e(0xe4)]();}}[_0x33f14e(0x294)](){const _0x5f0aa2=_0x33f14e;this[_0x5f0aa2(0x278)]=0x0,this[_0x5f0aa2(0x32b)](),this[_0x5f0aa2(0x129)]();}['_clearRetryConnectingTimer'](){const _0x4fdddc=_0x33f14e;this[_0x4fdddc(0xfd)]!=null&&(clearTimeout(this[_0x4fdddc(0xfd)]),this['_retryConnectingTimer']=null);}async[_0x33f14e(0x283)](){const _0x902bd0=_0x33f14e;var _0x40ddb8;let _0x4a315e=this[_0x902bd0(0x333)][_0x902bd0(0x328)](_0x1cf9ab),_0x3c6e4f=(_0x40ddb8=_0x4a315e==null?void 0x0:_0x4a315e[_0x902bd0(0x24e)])==null?_0x3919fe:_0x40ddb8,_0x221223=await this[_0x902bd0(0x2ef)]['createSocket'](_0x3c6e4f);return this[_0x902bd0(0xb6)]=_0x221223,_0x221223;}async[_0x33f14e(0x2bc)](){const _0x4d4255=_0x33f14e;try{var _0x2b857b,_0x20b241;let _0x42b07f=(_0x2b857b=(_0x20b241=this[_0x4d4255(0x383)])==null?this[_0x4d4255(0xb6)]:_0x20b241)==null?await this[_0x4d4255(0x283)]():_0x2b857b;if(_0x42b07f){var _0xf89338;let _0x57d863=_0x42b07f[_0x4d4255(0x3a8)];_0x42b07f[_0x4d4255(0x3a8)]=_0x233604=>(_0x233604[_0x4d4255(0x38a)]!==_0x54f861['CombCmd'][_0x4d4255(0x2e8)]&&this[_0x4d4255(0x1e5)](),_0x57d863['apply'](_0x42b07f,[_0x233604])),(_0xf89338=this[_0x4d4255(0x119)])==null||_0xf89338[_0x4d4255(0x38d)](),this[_0x4d4255(0x119)]=null,this['_socketMessageSubscription']=_0x42b07f[_0x4d4255(0x260)][_0x4d4255(0x305)](_0x2e58f4=>this[_0x4d4255(0xb7)](_0x42b07f,_0x2e58f4)),_0x42b07f[_0x4d4255(0x362)][_0x4d4255(0x2a9)]((0x0,_0x38623c['take'])(0x1))[_0x4d4255(0x305)](_0x542ba3=>this[_0x4d4255(0x356)]['error'](_0x4d4255(0x1c9),_0x542ba3)),_0x42b07f[_0x4d4255(0x197)]['pipe']((0x0,_0x38623c[_0x4d4255(0x1df)])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x42b07f);}),_0x42b07f['close$'][_0x4d4255(0x2a9)]((0x0,_0x38623c[_0x4d4255(0x1df)])(0x1))[_0x4d4255(0x305)](_0x1cfec2=>{const _0x28567f=_0x4d4255;this[_0x28567f(0x356)]['debug'](_0x28567f(0x13d),_0x28567f(0x1cb),_0x1cfec2),this[_0x28567f(0x100)]();});}}catch(_0x29846b){this[_0x4d4255(0x356)][_0x4d4255(0x15f)](_0x29846b),this['_onConnectionFailed']();}}[_0x33f14e(0x3ab)](_0x268aed){const _0x4a7f95=_0x33f14e;this[_0x4a7f95(0x356)][_0x4a7f95(0x31a)](_0x4a7f95(0x13d),_0x4a7f95(0x171)),_0x268aed[_0x4a7f95(0x3a8)]({'cmd':_0x54f861['CombCmd']['HELLO']}),this['_rescheduleHeartbeat']();}[_0x33f14e(0x26a)](){const _0x31844c=_0x33f14e;this[_0x31844c(0x3c6)]=!0x1,this['_candidateSocket']=null,this[_0x31844c(0x318)][_0x31844c(0x300)](0x2),this['_socket$'][_0x31844c(0x300)](null),this['_clearTimeoutTimer'](),this[_0x31844c(0x3b4)]();}[_0x33f14e(0x100)](){const _0x37bfac=_0x33f14e;var _0x228a79;this[_0x37bfac(0x26a)](),this['_retryCount']<((_0x228a79=this[_0x37bfac(0x333)][_0x37bfac(0x328)](_0x37bfac(0x2af)))==null?0x3:_0x228a79)?(this[_0x37bfac(0x17e)]['emitEvent']({'id':_0x37bfac(0x37a)}),this[_0x37bfac(0x129)]()):this[_0x37bfac(0x17e)][_0x37bfac(0x118)]({'id':_0x37bfac(0x237)});}['_tryReconnect'](){const _0x4bf89b=_0x33f14e;var _0x3c3b9a;let _0x43a39e=this[_0x4bf89b(0x278)],_0x2df914=this[_0x4bf89b(0x333)][_0x4bf89b(0x328)](_0x1cf9ab),_0x1f9576=_0x43a39e===0x0?0x0:((_0x3c3b9a=_0x2df914==null?void 0x0:_0x2df914['retryConnectingInterval'])==null?0x4e20:_0x3c3b9a)*0x2**_0x43a39e;this[_0x4bf89b(0xfd)]=setTimeout(()=>{const _0x53c845=_0x4bf89b;clearTimeout(this['_retryConnectingTimer']),this['_retryConnectingTimer']=null,this[_0x53c845(0x2bc)]();},_0x1f9576),this[_0x4bf89b(0x278)]+=0x1;}[_0x33f14e(0xb7)](_0x315926,_0x3d04ab){const _0x5eb43a=_0x33f14e;let {cmd:_0x972762}=_0x3d04ab;_0x972762===_0x54f861[_0x5eb43a(0xb8)]['HELLO']&&!this['_socketReady']&&(_0x315926['memberID']=_0x3d04ab[_0x5eb43a(0x23d)]['memberID'],this[_0x5eb43a(0x12b)][_0x5eb43a(0x300)](_0x315926),this['_status$'][_0x5eb43a(0x300)](0x3),this['_socketReady']=!0x0,this[_0x5eb43a(0xb6)]=null),_0x972762===_0x54f861['CombCmd'][_0x5eb43a(0x313)]&&this[_0x5eb43a(0x326)](),this['_rescheduleHeartbeat']();}[_0x33f14e(0x1e5)](){const _0x450aee=_0x33f14e;var _0x52173f;this[_0x450aee(0x3b4)](),this[_0x450aee(0x2e0)]=setTimeout(()=>this[_0x450aee(0x103)](),(_0x52173f=this[_0x450aee(0x333)][_0x450aee(0x328)](_0x450aee(0xaf)))==null?0x7530:_0x52173f);}[_0x33f14e(0x103)](){const _0x399000=_0x33f14e;this['_socket'][_0x399000(0x3a8)]({'cmd':_0x54f861[_0x399000(0xb8)][_0x399000(0x313)]}),this['_waitForHeartbeatResponse']();}['_waitForHeartbeatResponse'](){const _0xb957fc=_0x33f14e;var _0x2fe230;this[_0xb957fc(0x202)]=setTimeout(()=>this[_0xb957fc(0x100)](),(_0x2fe230=this[_0xb957fc(0x333)][_0xb957fc(0x328)]('HEARTBEAT_TIMEOUT'))==null?_0x5752cb:_0x2fe230);}[_0x33f14e(0x3b4)](){const _0x1b61c9=_0x33f14e;this[_0x1b61c9(0x2e0)]!=null&&(clearTimeout(this[_0x1b61c9(0x2e0)]),this[_0x1b61c9(0x2e0)]=null);}[_0x33f14e(0x326)](){const _0x1dc964=_0x33f14e;this[_0x1dc964(0x202)]!=null&&(clearTimeout(this[_0x1dc964(0x202)]),this[_0x1dc964(0x202)]=null);}};_0x258abc=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x2,_0x305d10['IConfigService']),_0xf01086(0x3,_0x277be8),_0xf01086(0x4,(0x0,_0x305d10['Inject'])(_0x23b696)),_0xf01086(0x5,(0x0,_0x305d10[_0x33f14e(0x235)])(_0x515a5c))],_0x258abc);let _0x37b5a8=class extends _0x305d10['RxDisposable']{constructor(_0x12067b,_0x545860,_0xc0feb2,_0x1c5dd0){const _0x2a7fa6=_0x33f14e;var _0x3b6207;super(),this[_0x2a7fa6(0x1c7)]=_0x12067b,this[_0x2a7fa6(0x26f)]=_0x545860,this['_configService']=_0xc0feb2,this[_0x2a7fa6(0x35b)]=_0x1c5dd0,_0x816778(this,_0x2a7fa6(0x258),new Map()),_0x816778(this,_0x2a7fa6(0x1ef),new _0x247d93[(_0x2a7fa6(0x2be))]()),_0x816778(this,'entityInit$',this[_0x2a7fa6(0x1ef)][_0x2a7fa6(0x172)]()),((_0x3b6207=this['_configService'][_0x2a7fa6(0x328)](_0x2a7fa6(0x2ba)))==null?void 0x0:_0x3b6207['enableCollaboration'])!==!0x1&&this['_init']();}[_0x33f14e(0x366)](){const _0x171884=_0x33f14e;super[_0x171884(0x366)](),this['_entities'][_0x171884(0x1fc)](_0x5c5495=>_0x5c5495[_0x171884(0x366)]()),this['_entities'][_0x171884(0x200)]();}[_0x33f14e(0x1d4)](_0x2336cf){const _0x12c3d4=_0x33f14e;var _0x543a1a;return(_0x543a1a=this[_0x12c3d4(0x258)][_0x12c3d4(0x1a5)](_0x2336cf))==null?null:_0x543a1a;}[_0x33f14e(0x3a6)](_0x176cc7){const _0x1d3249=_0x33f14e;let _0x35e318=this[_0x1d3249(0x1d4)](_0x176cc7);return _0x35e318?(0x0,_0x247d93['of'])(_0x35e318):this[_0x1d3249(0x1ef)][_0x1d3249(0x2a9)]((0x0,_0x38623c['filter'])(_0x11fa1d=>_0x11fa1d['unitID']===_0x176cc7));}[_0x33f14e(0x37b)](_0x2d3432){const _0x1997d5=_0x33f14e;return(0x0,_0x247d93[_0x1997d5(0xe2)])(this[_0x1997d5(0x3a6)](_0x2d3432)['pipe']((0x0,_0x38623c['map'])(()=>void 0x0)));}['_init'](){const _0x486fd6=_0x33f14e;this[_0x486fd6(0x35b)]['getTypeOfUnitAdded$'](_0x305d10['UniverInstanceType']['UNIVER_SHEET'])[_0x486fd6(0x2a9)]((0x0,_0x247d93['takeUntil'])(this[_0x486fd6(0x26d)]),(0x0,_0x38623c[_0x486fd6(0x33f)])(0x10))[_0x486fd6(0x305)](async _0x1ce2f8=>{const _0x66bf0b=_0x486fd6;let _0x13ae7a=_0x1ce2f8['unit']['getUnitId'](),_0x556c02=await this['_startCollaboration'](_0x13ae7a,_0x305d10[_0x66bf0b(0x1c6)]['UNIVER_SHEET']);this[_0x66bf0b(0x258)][_0x66bf0b(0x269)](_0x13ae7a,_0x556c02);}),this[_0x486fd6(0x35b)][_0x486fd6(0xc5)](_0x305d10['UniverInstanceType']['UNIVER_DOC'])[_0x486fd6(0x2a9)]((0x0,_0x247d93[_0x486fd6(0x1f5)])(this[_0x486fd6(0x26d)]),(0x0,_0x38623c[_0x486fd6(0x33f)])(0x10))[_0x486fd6(0x2a9)]((0x0,_0x38623c[_0x486fd6(0x306)])(_0xa9465=>!_0xa9465['unit'][_0x486fd6(0x1e7)]()[_0x486fd6(0x11d)]('__')))['subscribe'](async _0x208ca0=>{const _0x15b124=_0x486fd6;let _0x2e42e8=_0x208ca0[_0x15b124(0x265)]['getUnitId'](),_0x18a30b=await this[_0x15b124(0x380)](_0x2e42e8,_0x305d10[_0x15b124(0x1c6)][_0x15b124(0x26e)]);this[_0x15b124(0x258)][_0x15b124(0x269)](_0x2e42e8,_0x18a30b);}),(0x0,_0x247d93[_0x486fd6(0xff)])(this[_0x486fd6(0x35b)][_0x486fd6(0x2b7)](_0x305d10[_0x486fd6(0x1c6)]['UNIVER_SHEET']),this[_0x486fd6(0x35b)][_0x486fd6(0x2b7)](_0x305d10[_0x486fd6(0x1c6)][_0x486fd6(0x26e)]))['pipe']((0x0,_0x247d93[_0x486fd6(0x1f5)])(this[_0x486fd6(0x26d)]))[_0x486fd6(0x305)](_0x2bd9e2=>{const _0x39f82d=_0x486fd6;let _0x5a77c9=_0x2bd9e2['getUnitId'](),_0x5d29f2=this[_0x39f82d(0x258)][_0x39f82d(0x1a5)](_0x5a77c9);_0x5d29f2&&(_0x5d29f2[_0x39f82d(0x366)](),this[_0x39f82d(0x258)]['delete'](_0x5a77c9));});}async[_0x33f14e(0x380)](_0x5be02a,_0x593418){const _0x4b746d=_0x33f14e;let _0x561d2c=await this[_0x4b746d(0x26f)][_0x4b746d(0x1ee)](_0x5be02a),_0x5488ca=this[_0x4b746d(0x1c7)][_0x4b746d(0x32f)](this[_0x4b746d(0x31c)](_0x593418),_0x5be02a,_0x593418,_0x561d2c);return await _0x5488ca[_0x4b746d(0x32e)](),this['_entityInit$']['next'](_0x5488ca),_0x5488ca;}[_0x33f14e(0x31c)](_0x40b146){const _0x458f5e=_0x33f14e;switch(_0x40b146){case _0x305d10[_0x458f5e(0x1c6)][_0x458f5e(0x26e)]:return _0x467d36;case _0x305d10[_0x458f5e(0x1c6)][_0x458f5e(0x22a)]:return _0x3c0dc6;default:throw Error(_0x458f5e(0x1a4)+_0x40b146);}}};_0x37b5a8=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x258abc)),_0xf01086(0x2,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x3,_0x305d10[_0x33f14e(0x20d)])],_0x37b5a8);var _0x53586=_0x33f14e(0x102),_0x453767='0.25.1';let _0x14ac8f=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(_0x2e0795,_0x46b20c){const _0x2eca24=_0x33f14e;super(),this['_univerInstanceService']=_0x2e0795,this[_0x2eca24(0x333)]=_0x46b20c,this[_0x2eca24(0x205)]();}[_0x33f14e(0x205)](){const _0xd777d1=_0x33f14e;this[_0xd777d1(0x20b)](this['_univerInstanceService'][_0xd777d1(0x167)][_0xd777d1(0x305)](()=>{const _0xb1a424=_0xd777d1;var _0x58839c;let _0x26492c=this[_0xb1a424(0x35b)][_0xb1a424(0x2a8)](),_0x4d40c9=(_0x58839c=this['_configService'][_0xb1a424(0x328)](_0xb1a424(0x279)))==null?_0xb1a424(0x248):_0x58839c;_0x26492c instanceof _0x305d10[_0xb1a424(0x115)]&&(_0x4d40c9=_0x26492c['name']),document[_0xb1a424(0x16d)]=_0x4d40c9;}));}};_0x14ac8f=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x1,_0x305d10[_0x33f14e(0xfb)])],_0x14ac8f);let _0x2ed10f=class{constructor(_0x1a5698,_0x2954f7,_0x3f6356){const _0x37d0a5=_0x33f14e;this[_0x37d0a5(0x333)]=_0x1a5698,this[_0x37d0a5(0x1b1)]=_0x2954f7,this[_0x37d0a5(0x37f)]=_0x3f6356,this['init']();}['init'](){const _0x286b06=_0x33f14e;this[_0x286b06(0x1b1)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x4172eb,_0x8996a6)=>_0x8996a6(_0x4172eb)[_0x286b06(0x2a9)]((0x0,_0x247d93[_0x286b06(0x208)])(async _0xe0bf99=>{const _0x232597=_0x286b06;let _0x9e8196=_0xe0bf99;if(_0x9e8196['status']===0x191){if(typeof window>'u')throw Error(_0x232597(0x2c8));if(window[_0x232597(0x1a3)](this[_0x232597(0x37f)]['t'](_0x232597(0x1de)))){let _0x432592=window[_0x232597(0x1a7)](window['location'][_0x232597(0xf2)]);window['location'][_0x232597(0xf2)]=this[_0x232597(0x36e)]()+'?url='+_0x432592;}}return _0x9e8196;}))});}['_getLoginPath'](){const _0x532ef4=_0x33f14e;var _0x399f1e;let _0xe80474=this['_configService'][_0x532ef4(0x328)](_0x1cf9ab);return(_0x399f1e=_0xe80474==null?void 0x0:_0xe80474[_0x532ef4(0x304)])==null?_0x532ef4(0x292):_0x399f1e;}};_0x2ed10f=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5['HTTPService'])),_0xf01086(0x2,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x35f)]))],_0x2ed10f);let _0xc00d62=class extends _0x305d10[_0x33f14e(0x1c2)]{constructor(_0x18abb9,_0x5d52ea){const _0x30a501=_0x33f14e;super(),this['_HTTPService']=_0x18abb9,this['_configService']=_0x5d52ea,_0x816778(this,_0x30a501(0xb5),!0x1),this[_0x30a501(0x3a2)]();}[_0x33f14e(0x3a2)](){const _0x126224=_0x33f14e;let _0x2d0a1d=this;this[_0x126224(0x20b)](this[_0x126224(0x15c)][_0x126224(0x3c4)]({'priority':0x3e7,'interceptor':(0x0,_0x3c9fd5[_0x126224(0x24b)])({'isMatch'(_0x1de029){const _0x579e2a=_0x126224;var _0x551072;if(_0x1de029[_0x579e2a(0xf3)]===_0x579e2a(0x3a4)&&(_0x551072=_0x1de029[_0x579e2a(0x26b)])!=null&&_0x551072[_0x579e2a(0x29f)]){let {objectID:_0x237936,objectType:_0x3e8a09}=_0x1de029['requestParams'][_0x579e2a(0x29f)]||{};if(!_0x237936||_0x3e8a09===void 0x0)return!0x1;let _0x31ead2=_0x2d0a1d[_0x579e2a(0x11c)]()+'/'+_0x3e8a09+'/object/'+_0x237936+_0x579e2a(0x2ad);if(_0x1de029[_0x579e2a(0x2dd)]===_0x31ead2)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x11a692){const _0x3e680d=_0x126224;var _0x9f5840;return(_0x9f5840=_0x11a692[_0x3e680d(0x26b)])==null?void 0x0:_0x9f5840['body'];},'mergeParamsToRequest'(_0x56fd40,_0x277b3e){const _0x516f12=_0x126224;let _0x37be2d=_0x2d0a1d['_getAPIPrefixPath']()+_0x516f12(0x2b5),_0x2c803d=_0x56fd40[_0x516f12(0x127)]((_0x20ffb1,_0x9b6dee)=>{const _0x1d56aa=_0x516f12;let {unitID:_0x469263,objectID:_0x59c79f,objectType:_0xa52c48,actions:_0x4a2892}=_0x9b6dee;return _0x20ffb1[_0x469263]||(_0x20ffb1[_0x469263]={}),_0x20ffb1[_0x469263][_0x59c79f]||(_0x20ffb1[_0x469263][_0x59c79f]={'objectID':_0x59c79f,'objectType':_0xa52c48,'actions':[]}),_0x20ffb1[_0x469263][_0x59c79f][_0x1d56aa(0x165)]['push'](..._0x4a2892),_0x20ffb1;},{}),_0x20c88b=[];for(let _0x42a549 in _0x2c803d)for(let _0x2e2832 in _0x2c803d[_0x42a549]){let {actions:_0x578042,objectType:_0x19ff73}=_0x2c803d[_0x42a549][_0x2e2832],_0x156375=[...new Set(_0x578042)];_0x20c88b['push']({'unitID':_0x42a549,'objectID':_0x2e2832,'objectType':_0x19ff73,'actions':_0x156375});}return new _0x3c9fd5['HTTPRequest']('POST',_0x37be2d,{'headers':_0x277b3e[_0x516f12(0x144)],'withCredentials':_0x277b3e[_0x516f12(0x1d5)],'responseType':_0x277b3e[_0x516f12(0x14d)],'body':{'requests':_0x20c88b}});}},{'distributeResult'(_0x52d7db,_0x151efc){const _0x2d035f=_0x126224;let {objectActions:_0x52dca3}=_0x52d7db;return _0x151efc[_0x2d035f(0x348)](_0x3799d7=>{const _0x4cee15=_0x2d035f;let {unitID:_0x12ed35,objectID:_0x3d94d6,actions:_0xc63b40}=_0x3799d7,_0xd91932=_0x52dca3[_0x4cee15(0xfa)](_0x4ef514=>_0x4ef514[_0x4cee15(0x37e)]===_0x12ed35&&_0x4ef514[_0x4cee15(0x2fa)]===_0x3d94d6);return{'config':_0x3799d7,'result':{'actions':_0xc63b40[_0x4cee15(0x348)](_0x4c521b=>_0xd91932==null?void 0x0:_0xd91932['actions']['find'](_0x1804b1=>_0x1804b1[_0x4cee15(0x1cd)]===_0x4c521b))[_0x4cee15(0x306)](_0x447a7f=>!!_0x447a7f),'error':_0x52d7db['error']}};});}})}));}[_0x33f14e(0x11c)](){const _0x586b06=_0x33f14e;var _0x539403;let _0x724604=this[_0x586b06(0x333)][_0x586b06(0x328)](_0x1cf9ab);return(_0x539403=_0x724604==null?void 0x0:_0x724604[_0x586b06(0x3bc)])==null?_0x586b06(0x384):_0x539403;}async[_0x33f14e(0x1e0)](_0xd14522){const _0x5bb6ec=_0x33f14e;let _0x46626d=this[_0x5bb6ec(0x11c)]()+'/'+_0xd14522[_0x5bb6ec(0x350)]+'/object';return(await this[_0x5bb6ec(0x15c)][_0x5bb6ec(0x2b0)](_0x46626d,{'body':_0xd14522}))[_0x5bb6ec(0x29f)][_0x5bb6ec(0x2fa)]||'';}async[_0x33f14e(0x1e3)](_0x24914){const _0x52041e=_0x33f14e;let _0x1a24ed=this[_0x52041e(0x11c)]()+'/-/object/list';return(await this[_0x52041e(0x15c)][_0x52041e(0x2b0)](_0x1a24ed,{'body':_0x24914}))[_0x52041e(0x29f)][_0x52041e(0x112)];}async[_0x33f14e(0x12c)](_0x6b8700){const _0xd2e207=_0x33f14e;var _0x2c4bda;let _0x57b8b7=this[_0xd2e207(0x11c)]()+'/'+_0x6b8700[_0xd2e207(0x350)]+'/object/'+_0x6b8700[_0xd2e207(0x2fa)],_0x555946=await this[_0xd2e207(0x15c)]['put'](_0x57b8b7,{'body':_0x6b8700});if((_0x555946==null||(_0x2c4bda=_0x555946[_0xd2e207(0x29f)])==null||(_0x2c4bda=_0x2c4bda[_0xd2e207(0x15f)])==null?void 0x0:_0x2c4bda[_0xd2e207(0x361)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async['allowed'](_0x32f4c1){const _0xfeed1d=_0x33f14e;let _0x1975f6=this[_0xfeed1d(0x11c)]()+'/'+_0x32f4c1[_0xfeed1d(0x350)]+_0xfeed1d(0x101)+_0x32f4c1[_0xfeed1d(0x2fa)]+_0xfeed1d(0x2ad);return(await this[_0xfeed1d(0x15c)]['post'](_0x1975f6,{'body':_0x32f4c1}))['body'][_0xfeed1d(0x165)];}async[_0x33f14e(0x27c)](_0x2be8d8){const _0x4c1c63=_0x33f14e;let _0x15438b=this['_getAPIPrefixPath']()+'/-/object/-/batch_allowed';return(await this[_0x4c1c63(0x15c)]['post'](_0x15438b,{'body':{'requests':_0x2be8d8}}))[_0x4c1c63(0x29f)][_0x4c1c63(0x3a1)];}async[_0x33f14e(0x2c6)](_0x43e5b6){const _0x4e87c6=_0x33f14e;let _0x1f8a94=this[_0x4e87c6(0x11c)]()+'/'+_0x43e5b6[_0x4e87c6(0x350)]+_0x4e87c6(0x128),_0x4d71af=await this['_HTTPService'][_0x4e87c6(0x2b0)](_0x1f8a94,{'body':_0x43e5b6});return{'roles':_0x4d71af[_0x4e87c6(0x29f)][_0x4e87c6(0x1b9)],'actions':_0x4d71af[_0x4e87c6(0x29f)]['actions']};}async[_0x33f14e(0x3c5)](_0x247de3){const _0x3fb585=_0x33f14e;let _0x4f1f85=this['_getAPIPrefixPath']()+_0x3fb585(0x312);await this[_0x3fb585(0x15c)][_0x3fb585(0xc0)](_0x4f1f85,{'params':{'collaboratorID':_0x247de3['collaboratorID'],'objectID':_0x247de3[_0x3fb585(0x2fa)],'unitID':_0x247de3['unitID']}});}async[_0x33f14e(0x2f7)](_0x32a573){const _0x2a8b96=_0x33f14e;let _0x4b760a=this[_0x2a8b96(0x11c)]()+_0x2a8b96(0x312);await this[_0x2a8b96(0x15c)][_0x2a8b96(0xbb)](_0x4b760a,{'body':_0x32a573});}async['createCollaborator'](_0x139f39){const _0x3a784d=_0x33f14e;let _0x4cb686=this['_getAPIPrefixPath']()+_0x3a784d(0x312);await this[_0x3a784d(0x15c)]['post'](_0x4cb686,{'body':_0x139f39});}async[_0x33f14e(0x373)](_0x516e32){const _0x4e018d=_0x33f14e;var _0x4a2e12;let _0x302ff4=this[_0x4e018d(0x11c)]()+_0x4e018d(0x312),_0x3dfb41=await this[_0x4e018d(0x15c)][_0x4e018d(0x1a5)](_0x302ff4,{'params':{'objectID':_0x516e32[_0x4e018d(0x2fa)],'unitID':_0x516e32[_0x4e018d(0x37e)]}});return this[_0x4e018d(0x2d4)]((_0x4a2e12=_0x3dfb41[_0x4e018d(0x29f)][_0x4e018d(0x18e)])==null?!0x1:_0x4a2e12),_0x3dfb41[_0x4e018d(0x29f)][_0x4e018d(0x26c)];}async[_0x33f14e(0x25a)](_0x32aaea){const _0x5226dc=_0x33f14e;let _0xb099aa=this[_0x5226dc(0x11c)]()+'/collaborator';await this['_HTTPService']['put'](_0xb099aa,{'body':_0x32aaea});}[_0x33f14e(0x2d4)](_0x4848fb){const _0x5c2485=_0x33f14e;this[_0x5c2485(0xb5)]=_0x4848fb;}['getCfgEnableObjInherit'](){const _0x1a11a0=_0x33f14e;return this[_0x1a11a0(0xb5)];}};_0xc00d62=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)])),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0xfb)]))],_0xc00d62);function _0x428edd(_0x1629ce){const _0x4ef637=_0x33f14e;return _0x1629ce instanceof Uint8Array||ArrayBuffer[_0x4ef637(0x263)](_0x1629ce)&&_0x1629ce['constructor'][_0x4ef637(0x241)]==='Uint8Array'&&_0x4ef637(0x29d)in _0x1629ce&&_0x1629ce[_0x4ef637(0x29d)]===0x1;}function _0x171b65(_0x4edd66){const _0x2718e2=_0x33f14e;if(typeof _0x4edd66!=_0x2718e2(0x242))throw TypeError(_0x2718e2(0x254)+typeof _0x4edd66);if(!Number[_0x2718e2(0x253)](_0x4edd66)||_0x4edd66<0x0)throw RangeError(_0x2718e2(0x2d9)+_0x4edd66);}function _0x418b3b(_0x7c523b,_0x55dd1d,_0x44e279=''){const _0x1c124a=_0x33f14e;let _0xe1c489=_0x428edd(_0x7c523b),_0x34c259=_0x7c523b==null?void 0x0:_0x7c523b[_0x1c124a(0x251)],_0x4942d1=_0x55dd1d!==void 0x0;if(!_0xe1c489||_0x4942d1&&_0x34c259!==_0x55dd1d){let _0x592dca=_0x44e279&&'\x22'+_0x44e279+'\x22\x20',_0x50f195=_0x4942d1?'\x20of\x20length\x20'+_0x55dd1d:'',_0x421570=_0xe1c489?'length='+_0x34c259:'type='+typeof _0x7c523b,_0x2eafdb=_0x592dca+'expected\x20Uint8Array'+_0x50f195+_0x1c124a(0xc2)+_0x421570;throw _0xe1c489?RangeError(_0x2eafdb):TypeError(_0x2eafdb);}return _0x7c523b;}function _0x5d032b(_0x5d903a){const _0x4fbb70=_0x33f14e;return new Uint32Array(_0x5d903a[_0x4fbb70(0x21e)],_0x5d903a[_0x4fbb70(0x183)],Math[_0x4fbb70(0x2f1)](_0x5d903a[_0x4fbb70(0x21b)]/0x4));}function _0x311a9a(..._0x297522){const _0x10006a=_0x33f14e;for(let _0xd4b5de=0x0;_0xd4b5de<_0x297522[_0x10006a(0x251)];_0xd4b5de++)_0x297522[_0xd4b5de]['fill'](0x0);}let _0x1c5baf=new Uint8Array(new Uint32Array([0x11223344])[_0x33f14e(0x21e)])[0x0]===0x44,_0x34d16d=_0x58d539=>_0x58d539<<0x18&0xff000000|_0x58d539<<0x8&0xff0000|_0x58d539>>>0x8&0xff00|_0x58d539>>>0x18&0xff,_0x59a6c3=_0x1c5baf?_0x6a67f2=>_0x6a67f2:_0x5ef8bc=>{const _0x5e1485=_0x33f14e;for(let _0xdd127f=0x0;_0xdd127f<_0x5ef8bc[_0x5e1485(0x251)];_0xdd127f++)_0x5ef8bc[_0xdd127f]=_0x34d16d(_0x5ef8bc[_0xdd127f]);return _0x5ef8bc;};function _0x46c12c(_0x332432){const _0x4a4249=_0x33f14e;if(typeof _0x332432!=_0x4a4249(0x137))throw TypeError(_0x4a4249(0x320));return new Uint8Array(new TextEncoder()['encode'](_0x332432));}function _0x4fe02a(_0x4fb8d9,_0xd3d7fb){const _0x245e9d=_0x33f14e;return!_0x4fb8d9[_0x245e9d(0x21b)]||!_0xd3d7fb['byteLength']?!0x1:_0x4fb8d9[_0x245e9d(0x21e)]===_0xd3d7fb['buffer']&&_0x4fb8d9['byteOffset']<_0xd3d7fb[_0x245e9d(0x183)]+_0xd3d7fb['byteLength']&&_0xd3d7fb[_0x245e9d(0x183)]<_0x4fb8d9[_0x245e9d(0x183)]+_0x4fb8d9['byteLength'];}function _0x1d2b3a(_0x386435,_0x1d94ef){const _0x5cd6cd=_0x33f14e;if(_0x4fe02a(_0x386435,_0x1d94ef)&&_0x386435[_0x5cd6cd(0x183)]<_0x1d94ef[_0x5cd6cd(0x183)])throw Error(_0x5cd6cd(0x2a1));}function _0x2c1cf3(..._0x5a7d1e){const _0xecf050=_0x33f14e;let _0x4ecea8=0x0;for(let _0x44c206=0x0;_0x44c206<_0x5a7d1e[_0xecf050(0x251)];_0x44c206++){let _0x594cf8=_0x5a7d1e[_0x44c206];_0x418b3b(_0x594cf8),_0x4ecea8+=_0x594cf8[_0xecf050(0x251)];}let _0x3b11c9=new Uint8Array(_0x4ecea8);for(let _0x58dcce=0x0,_0xc2a7ff=0x0;_0x58dcce<_0x5a7d1e[_0xecf050(0x251)];_0x58dcce++){let _0x3933e6=_0x5a7d1e[_0x58dcce];_0x3b11c9[_0xecf050(0x269)](_0x3933e6,_0xc2a7ff),_0xc2a7ff+=_0x3933e6[_0xecf050(0x251)];}return _0x3b11c9;}let _0x556cc6=(_0x404675,_0x134544)=>{const _0x203d9c=_0x33f14e;function _0x5747f3(_0x5e3263,..._0x12191b){const _0x5566ce=_0x1555;if(_0x418b3b(_0x5e3263,void 0x0,_0x5566ce(0xd7)),_0x404675[_0x5566ce(0x1da)]!==void 0x0){let _0x147ff6=_0x12191b[0x0];_0x418b3b(_0x147ff6,_0x404675[_0x5566ce(0x1d9)]?void 0x0:_0x404675[_0x5566ce(0x1da)],_0x5566ce(0x311));}let _0x2387c2=_0x404675[_0x5566ce(0xc3)];_0x2387c2&&_0x12191b[0x1]!==void 0x0&&_0x418b3b(_0x12191b[0x1],void 0x0,_0x5566ce(0x296));let _0x458a2d=_0x134544(_0x5e3263,..._0x12191b),_0x3199b2=(_0x13628b,_0x37bfea)=>{const _0x54a12d=_0x5566ce;if(_0x37bfea!==void 0x0){if(_0x13628b!==0x2)throw Error(_0x54a12d(0x297));_0x418b3b(_0x37bfea,void 0x0,_0x54a12d(0xdc));}},_0x3d1ec5=!0x1;return{'encrypt'(_0x1910ba,_0x2138bc){const _0x19f640=_0x5566ce;if(_0x3d1ec5)throw Error(_0x19f640(0x11b));return _0x3d1ec5=!0x0,_0x418b3b(_0x1910ba),_0x3199b2(_0x458a2d['encrypt'][_0x19f640(0x251)],_0x2138bc),_0x458a2d[_0x19f640(0xd2)](_0x1910ba,_0x2138bc);},'decrypt'(_0x27e610,_0x55e9d7){const _0x33ba45=_0x5566ce;if(_0x418b3b(_0x27e610),_0x2387c2&&_0x27e610['length']<_0x2387c2)throw Error(_0x33ba45(0x1b6)+_0x2387c2);return _0x3199b2(_0x458a2d[_0x33ba45(0x2db)]['length'],_0x55e9d7),_0x458a2d[_0x33ba45(0x2db)](_0x27e610,_0x55e9d7);}};}return Object[_0x203d9c(0x29a)](_0x5747f3,_0x404675),_0x5747f3;};function _0x51c0e7(_0x367d05,_0x156e09,_0x50374d=!0x0){const _0x2ee914=_0x33f14e;if(_0x156e09===void 0x0)return new Uint8Array(_0x367d05);if(_0x418b3b(_0x156e09,void 0x0,_0x2ee914(0xdc)),_0x156e09['length']!==_0x367d05)throw Error(_0x2ee914(0x106)+_0x367d05+',\x20got:\x20'+_0x156e09[_0x2ee914(0x251)]);if(_0x50374d&&!_0x1b8087(_0x156e09))throw Error(_0x2ee914(0x2a0));return _0x156e09;}function _0x1b8087(_0x32371a){const _0x4a5898=_0x33f14e;return _0x32371a[_0x4a5898(0x183)]%0x4==0x0;}function _0x56bb58(_0x289bde){const _0x1dd80f=_0x33f14e;return Uint8Array[_0x1dd80f(0x2ed)](_0x418b3b(_0x289bde));}function _0x30bfa2(_0x1ad07e=0x20){const _0x4f9649=_0x33f14e;_0x171b65(_0x1ad07e);let _0x283931=typeof globalThis==_0x4f9649(0x2d3)?globalThis[_0x4f9649(0x20f)]:null;if(typeof(_0x283931==null?void 0x0:_0x283931[_0x4f9649(0x21f)])!=_0x4f9649(0x1b7))throw Error(_0x4f9649(0x396));return _0x283931[_0x4f9649(0x21f)](new Uint8Array(_0x1ad07e));}function _0x263b43(_0x298449){const _0xcd6641=_0x33f14e;if(![0x10,0x18,0x20][_0xcd6641(0x1c3)](_0x298449[_0xcd6641(0x251)]))throw Error('\x22aes\x20key\x22\x20expected\x20Uint8Array\x20of\x20length\x2016/24/32,\x20got\x20length='+_0x298449[_0xcd6641(0x251)]);}function _0x7874a8(_0x577b0b){return _0x577b0b<<0x1^0x11b&-(_0x577b0b>>0x7);}function _0x24fbde(_0x212551,_0x18063d){let _0x4b67ce=0x0;for(;_0x18063d>0x0;_0x18063d>>=0x1)_0x4b67ce^=_0x212551&-(_0x18063d&0x1),_0x212551=_0x7874a8(_0x212551);return _0x4b67ce;}let _0x495909=((()=>{let _0x3e3caa=new Uint8Array(0x100);for(let _0x54f60=0x0,_0x4eef10=0x1;_0x54f60<0x100;_0x54f60++,_0x4eef10^=_0x7874a8(_0x4eef10))_0x3e3caa[_0x54f60]=_0x4eef10;let _0x421b51=new Uint8Array(0x100);_0x421b51[0x0]=0x63;for(let _0x58fc00=0x0;_0x58fc00<0xff;_0x58fc00++){let _0x5b00b5=_0x3e3caa[0xff-_0x58fc00];_0x5b00b5|=_0x5b00b5<<0x8,_0x421b51[_0x3e3caa[_0x58fc00]]=(_0x5b00b5^_0x5b00b5>>0x4^_0x5b00b5>>0x5^_0x5b00b5>>0x6^_0x5b00b5>>0x7^0x63)&0xff;}return _0x311a9a(_0x3e3caa),_0x421b51;})()),_0x5e2e27=_0x495909['map']((_0x546269,_0x5e1ac3)=>_0x495909[_0x33f14e(0x156)](_0x5e1ac3)),_0x4b0eca=_0x49918e=>_0x49918e<<0x18|_0x49918e>>>0x8,_0x491c17=_0x43c8ca=>_0x43c8ca<<0x8|_0x43c8ca>>>0x18;function _0x448ea5(_0x551bbc,_0x5b4c3c){const _0x7f1941=_0x33f14e;if(_0x551bbc['length']!==0x100)throw Error(_0x7f1941(0x108));let _0xfef964=new Uint32Array(0x100)['map']((_0x445adf,_0x218df1)=>_0x5b4c3c(_0x551bbc[_0x218df1])),_0x38bbc7=_0xfef964['map'](_0x491c17),_0x13531e=_0x38bbc7[_0x7f1941(0x348)](_0x491c17),_0x3d3f91=_0x13531e[_0x7f1941(0x348)](_0x491c17),_0x5532c4=new Uint32Array(0x100*0x100),_0x49f37a=new Uint32Array(0x100*0x100),_0x2255a1=new Uint16Array(0x100*0x100);for(let _0x3b1ed2=0x0;_0x3b1ed2<0x100;_0x3b1ed2++)for(let _0x1294e3=0x0;_0x1294e3<0x100;_0x1294e3++){let _0x15b104=_0x3b1ed2*0x100+_0x1294e3;_0x5532c4[_0x15b104]=_0xfef964[_0x3b1ed2]^_0x38bbc7[_0x1294e3],_0x49f37a[_0x15b104]=_0x13531e[_0x3b1ed2]^_0x3d3f91[_0x1294e3],_0x2255a1[_0x15b104]=_0x551bbc[_0x3b1ed2]<<0x8|_0x551bbc[_0x1294e3];}return{'sbox':_0x551bbc,'sbox2':_0x2255a1,'T0':_0xfef964,'T1':_0x38bbc7,'T2':_0x13531e,'T3':_0x3d3f91,'T01':_0x5532c4,'T23':_0x49f37a};}let _0x293dbb=_0x448ea5(_0x495909,_0x2902ca=>_0x24fbde(_0x2902ca,0x3)<<0x18|_0x2902ca<<0x10|_0x2902ca<<0x8|_0x24fbde(_0x2902ca,0x2)),_0x537c10=_0x448ea5(_0x5e2e27,_0x4fc045=>_0x24fbde(_0x4fc045,0xb)<<0x18|_0x24fbde(_0x4fc045,0xd)<<0x10|_0x24fbde(_0x4fc045,0x9)<<0x8|_0x24fbde(_0x4fc045,0xe)),_0x226114=((()=>{let _0x486650=new Uint8Array(0x10);for(let _0x33e3a5=0x0,_0x1b7807=0x1;_0x33e3a5<0x10;_0x33e3a5++,_0x1b7807=_0x7874a8(_0x1b7807))_0x486650[_0x33e3a5]=_0x1b7807;return _0x486650;})());function _0x4a5a65(_0x3d745c){const _0x1e859b=_0x33f14e;_0x418b3b(_0x3d745c);let _0x403956=_0x3d745c[_0x1e859b(0x251)];_0x263b43(_0x3d745c);let {sbox2:_0x2c4c95}=_0x293dbb,_0x1d4b9c=[];(!_0x1c5baf||!_0x1b8087(_0x3d745c))&&_0x1d4b9c[_0x1e859b(0xf8)](_0x3d745c=_0x56bb58(_0x3d745c));let _0x5c829a=_0x59a6c3(_0x5d032b(_0x3d745c)),_0x37a2e6=_0x5c829a[_0x1e859b(0x251)],_0x543590=_0x34b1d7=>_0x301d15(_0x2c4c95,_0x34b1d7,_0x34b1d7,_0x34b1d7,_0x34b1d7),_0x13e2d4=new Uint32Array(_0x403956+0x1c);_0x13e2d4[_0x1e859b(0x269)](_0x5c829a);for(let _0x35ac1b=_0x37a2e6;_0x35ac1b<_0x13e2d4[_0x1e859b(0x251)];_0x35ac1b++){let _0x1dc5f3=_0x13e2d4[_0x35ac1b-0x1];_0x35ac1b%_0x37a2e6===0x0?_0x1dc5f3=_0x543590(_0x4b0eca(_0x1dc5f3))^_0x226114[_0x35ac1b/_0x37a2e6-0x1]:_0x37a2e6>0x6&&_0x35ac1b%_0x37a2e6===0x4&&(_0x1dc5f3=_0x543590(_0x1dc5f3)),_0x13e2d4[_0x35ac1b]=_0x13e2d4[_0x35ac1b-_0x37a2e6]^_0x1dc5f3;}return _0x311a9a(..._0x1d4b9c),_0x13e2d4;}function _0x5e6e06(_0x44ba81){const _0x4cb9f7=_0x33f14e;let _0x5488d8=_0x4a5a65(_0x44ba81),_0x257850=_0x5488d8[_0x4cb9f7(0x387)](),_0x4d07db=_0x5488d8[_0x4cb9f7(0x251)],{sbox2:_0x5af10f}=_0x293dbb,{T0:_0x4c0780,T1:_0x414836,T2:_0x45f2c6,T3:_0x32f55a}=_0x537c10;for(let _0x2efa85=0x0;_0x2efa85<_0x4d07db;_0x2efa85+=0x4)for(let _0x33058e=0x0;_0x33058e<0x4;_0x33058e++)_0x257850[_0x2efa85+_0x33058e]=_0x5488d8[_0x4d07db-_0x2efa85-0x4+_0x33058e];_0x311a9a(_0x5488d8);for(let _0x425e1e=0x4;_0x425e1e<_0x4d07db-0x4;_0x425e1e++){let _0x258925=_0x257850[_0x425e1e],_0x4608bb=_0x301d15(_0x5af10f,_0x258925,_0x258925,_0x258925,_0x258925);_0x257850[_0x425e1e]=_0x4c0780[_0x4608bb&0xff]^_0x414836[_0x4608bb>>>0x8&0xff]^_0x45f2c6[_0x4608bb>>>0x10&0xff]^_0x32f55a[_0x4608bb>>>0x18];}return _0x257850;}function _0x5ae9ae(_0x18e968,_0x4fd759,_0x5d09e9,_0x18dae6,_0x2a53de,_0x513859){return _0x18e968[_0x5d09e9<<0x8&0xff00|_0x18dae6>>>0x8&0xff]^_0x4fd759[_0x2a53de>>>0x8&0xff00|_0x513859>>>0x18&0xff];}function _0x301d15(_0x3c227e,_0x3e333e,_0x16a39e,_0x21c2ef,_0x59d8a6){return _0x3c227e[_0x3e333e&0xff|_0x16a39e&0xff00]|_0x3c227e[_0x21c2ef>>>0x10&0xff|_0x59d8a6>>>0x10&0xff00]<<0x10;}function _0xf92b88(_0x13ae07,_0x575ad1,_0xb899c5,_0x35f425,_0x497523){const _0x320f03=_0x33f14e;let {sbox2:_0x3a4246,T01:_0x299a77,T23:_0x4fe826}=_0x293dbb,_0x2cbd2f=0x0;_0x575ad1^=_0x13ae07[_0x2cbd2f++],_0xb899c5^=_0x13ae07[_0x2cbd2f++],_0x35f425^=_0x13ae07[_0x2cbd2f++],_0x497523^=_0x13ae07[_0x2cbd2f++];let _0x2e55b1=_0x13ae07[_0x320f03(0x251)]/0x4-0x2;for(let _0x481ea5=0x0;_0x481ea5<_0x2e55b1;_0x481ea5++){let _0x35afc3=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0x575ad1,_0xb899c5,_0x35f425,_0x497523),_0x8ba60=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0xb899c5,_0x35f425,_0x497523,_0x575ad1),_0x2d4193=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0x35f425,_0x497523,_0x575ad1,_0xb899c5),_0x116781=_0x13ae07[_0x2cbd2f++]^_0x5ae9ae(_0x299a77,_0x4fe826,_0x497523,_0x575ad1,_0xb899c5,_0x35f425);_0x575ad1=_0x35afc3,_0xb899c5=_0x8ba60,_0x35f425=_0x2d4193,_0x497523=_0x116781;}return{'s0':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0x575ad1,_0xb899c5,_0x35f425,_0x497523),'s1':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0xb899c5,_0x35f425,_0x497523,_0x575ad1),'s2':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0x35f425,_0x497523,_0x575ad1,_0xb899c5),'s3':_0x13ae07[_0x2cbd2f++]^_0x301d15(_0x3a4246,_0x497523,_0x575ad1,_0xb899c5,_0x35f425)};}function _0x4ee388(_0x31b5cb,_0x3a7a6e,_0x229913,_0x4d74dc,_0x197cc9){const _0x250ebe=_0x33f14e;let {sbox2:_0x130e04,T01:_0x3b26df,T23:_0x201c1d}=_0x537c10,_0x346e81=0x0;_0x3a7a6e^=_0x31b5cb[_0x346e81++],_0x229913^=_0x31b5cb[_0x346e81++],_0x4d74dc^=_0x31b5cb[_0x346e81++],_0x197cc9^=_0x31b5cb[_0x346e81++];let _0xfa28be=_0x31b5cb[_0x250ebe(0x251)]/0x4-0x2;for(let _0x43c988=0x0;_0x43c988<_0xfa28be;_0x43c988++){let _0x15b838=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x3a7a6e,_0x197cc9,_0x4d74dc,_0x229913),_0x268674=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x229913,_0x3a7a6e,_0x197cc9,_0x4d74dc),_0x4e467e=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x4d74dc,_0x229913,_0x3a7a6e,_0x197cc9),_0x1d2882=_0x31b5cb[_0x346e81++]^_0x5ae9ae(_0x3b26df,_0x201c1d,_0x197cc9,_0x4d74dc,_0x229913,_0x3a7a6e);_0x3a7a6e=_0x15b838,_0x229913=_0x268674,_0x4d74dc=_0x4e467e,_0x197cc9=_0x1d2882;}return{'s0':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x3a7a6e,_0x197cc9,_0x4d74dc,_0x229913),'s1':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x229913,_0x3a7a6e,_0x197cc9,_0x4d74dc),'s2':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x4d74dc,_0x229913,_0x3a7a6e,_0x197cc9),'s3':_0x31b5cb[_0x346e81++]^_0x301d15(_0x130e04,_0x197cc9,_0x4d74dc,_0x229913,_0x3a7a6e)};}function _0x15d332(_0x2f48b3){const _0x46a9ac=_0x33f14e;if(_0x418b3b(_0x2f48b3),_0x2f48b3[_0x46a9ac(0x251)]%0x10!=0x0)throw Error(_0x46a9ac(0x143));}function _0x13fc6d(_0x156192,_0x212419,_0x141c0b){const _0x279107=_0x33f14e;_0x418b3b(_0x156192);let _0x3ae676=_0x156192['length'],_0x550ba0=_0x3ae676%0x10;if(!_0x212419&&_0x550ba0!==0x0)throw Error(_0x279107(0x1ab));if(_0x212419){let _0x4b9502=0x10-_0x550ba0;_0x4b9502||(_0x4b9502=0x10),_0x3ae676+=_0x4b9502;}_0x141c0b=_0x51c0e7(_0x3ae676,_0x141c0b),_0x1d2b3a(_0x156192,_0x141c0b),(!_0x1c5baf||!_0x1b8087(_0x156192))&&(_0x156192=_0x56bb58(_0x156192));let _0x383ee8=_0x5d032b(_0x156192);return _0x59a6c3(_0x383ee8),{'b':_0x383ee8,'o':_0x5d032b(_0x141c0b),'out':_0x141c0b};}function _0x102e62(_0x2c4f3f,_0x153cd5){const _0x52c7e2=_0x33f14e;if(!_0x153cd5)return _0x2c4f3f;let _0x3f34b6=_0x2c4f3f[_0x52c7e2(0x251)];if(_0x3f34b6===0x0)throw Error(_0x52c7e2(0x264));let _0x23eac7=_0x2c4f3f[_0x3f34b6-0x1],_0x1be472=0x1;_0x1be472&=_0x23eac7-0x1>>>0x1f^0x1,_0x1be472&=0x10-_0x23eac7>>>0x1f^0x1;for(let _0x546177=0x0;_0x546177<0x10;_0x546177++){let _0xe32456=_0x546177-_0x23eac7>>>0x1f,_0x5f3eea=+((_0x2c4f3f[_0x3f34b6-0x1-_0x546177]^_0x23eac7)===0x0);_0x1be472&=_0x5f3eea|_0xe32456^0x1;}if(!_0x1be472)throw Error(_0x52c7e2(0x2c9));return _0x2c4f3f['subarray'](0x0,_0x3f34b6-_0x23eac7);}function _0x22e445(_0x41458f){const _0x173412=_0x33f14e;let _0xa46640=new Uint8Array(0x10),_0x34e45c=_0x5d032b(_0xa46640);_0xa46640[_0x173412(0x269)](_0x41458f);let _0xbc85b4=0x10-_0x41458f['length'];for(let _0x3d8687=0x10-_0xbc85b4;_0x3d8687<0x10;_0x3d8687++)_0xa46640[_0x3d8687]=_0xbc85b4;return _0x34e45c;}let _0x465838=_0x556cc6({'blockSize':0x10,'nonceLength':0x10},function(_0x1f7dfb,_0x18db80,_0x4901df={}){const _0x5be868=_0x33f14e;let _0x1a626c=!_0x4901df[_0x5be868(0x18a)];return{'encrypt'(_0x2f02aa,_0x476343){const _0x1267af=_0x5be868;let _0x191020=_0x4a5a65(_0x1f7dfb),{b:_0xd08573,o:_0x23f4ca,out:_0x1b7b68}=_0x13fc6d(_0x2f02aa,_0x1a626c,_0x476343),_0x545f79=_0x18db80,_0x283e4b=[_0x191020];(!_0x1c5baf||!_0x1b8087(_0x545f79))&&_0x283e4b[_0x1267af(0xf8)](_0x545f79=_0x56bb58(_0x545f79));let _0x444534=_0x5d032b(_0x545f79);_0x59a6c3(_0x444534);let _0x2a9841=_0x444534[0x0],_0x287266=_0x444534[0x1],_0x30fa47=_0x444534[0x2],_0x18e725=_0x444534[0x3],_0x2165d9=0x0;for(;_0x2165d9+0x4<=_0xd08573['length'];)_0x2a9841^=_0xd08573[_0x2165d9+0x0],_0x287266^=_0xd08573[_0x2165d9+0x1],_0x30fa47^=_0xd08573[_0x2165d9+0x2],_0x18e725^=_0xd08573[_0x2165d9+0x3],{s0:_0x2a9841,s1:_0x287266,s2:_0x30fa47,s3:_0x18e725}=_0xf92b88(_0x191020,_0x2a9841,_0x287266,_0x30fa47,_0x18e725),_0x23f4ca[_0x2165d9++]=_0x2a9841,_0x23f4ca[_0x2165d9++]=_0x287266,_0x23f4ca[_0x2165d9++]=_0x30fa47,_0x23f4ca[_0x2165d9++]=_0x18e725;if(_0x1a626c){let _0x411d31=_0x22e445(_0x2f02aa[_0x1267af(0x180)](_0x2165d9*0x4));_0x59a6c3(_0x411d31),_0x2a9841^=_0x411d31[0x0],_0x287266^=_0x411d31[0x1],_0x30fa47^=_0x411d31[0x2],_0x18e725^=_0x411d31[0x3],{s0:_0x2a9841,s1:_0x287266,s2:_0x30fa47,s3:_0x18e725}=_0xf92b88(_0x191020,_0x2a9841,_0x287266,_0x30fa47,_0x18e725),_0x23f4ca[_0x2165d9++]=_0x2a9841,_0x23f4ca[_0x2165d9++]=_0x287266,_0x23f4ca[_0x2165d9++]=_0x30fa47,_0x23f4ca[_0x2165d9++]=_0x18e725;}return _0x59a6c3(_0x23f4ca),_0x311a9a(..._0x283e4b),_0x1b7b68;},'decrypt'(_0x35814a,_0x5d9dc7){const _0x54fa12=_0x5be868;_0x15d332(_0x35814a);let _0x1fafa6=_0x5e6e06(_0x1f7dfb),_0x41d5d1=_0x18db80,_0x24db72=[_0x1fafa6];(!_0x1c5baf||!_0x1b8087(_0x41d5d1))&&_0x24db72[_0x54fa12(0xf8)](_0x41d5d1=_0x56bb58(_0x41d5d1));let _0x848ff1=_0x5d032b(_0x41d5d1);_0x59a6c3(_0x848ff1),_0x5d9dc7=_0x51c0e7(_0x35814a[_0x54fa12(0x251)],_0x5d9dc7),_0x1d2b3a(_0x35814a,_0x5d9dc7),(!_0x1c5baf||!_0x1b8087(_0x35814a))&&_0x24db72[_0x54fa12(0xf8)](_0x35814a=_0x56bb58(_0x35814a));let _0x45a8da=_0x5d032b(_0x35814a),_0x4870af=_0x5d032b(_0x5d9dc7);_0x59a6c3(_0x45a8da);let _0x11e068=_0x848ff1[0x0],_0x349435=_0x848ff1[0x1],_0x4e5b84=_0x848ff1[0x2],_0x1ec6cb=_0x848ff1[0x3];for(let _0x51008c=0x0;_0x51008c+0x4<=_0x45a8da['length'];){let _0x40773d=_0x11e068,_0x56ba4b=_0x349435,_0x5a432a=_0x4e5b84,_0x4c6094=_0x1ec6cb;_0x11e068=_0x45a8da[_0x51008c+0x0],_0x349435=_0x45a8da[_0x51008c+0x1],_0x4e5b84=_0x45a8da[_0x51008c+0x2],_0x1ec6cb=_0x45a8da[_0x51008c+0x3];let {s0:_0x4c3bfe,s1:_0x43133c,s2:_0x2702cb,s3:_0x360435}=_0x4ee388(_0x1fafa6,_0x11e068,_0x349435,_0x4e5b84,_0x1ec6cb);_0x4870af[_0x51008c++]=_0x4c3bfe^_0x40773d,_0x4870af[_0x51008c++]=_0x43133c^_0x56ba4b,_0x4870af[_0x51008c++]=_0x2702cb^_0x5a432a,_0x4870af[_0x51008c++]=_0x360435^_0x4c6094;}return _0x59a6c3(_0x4870af),_0x311a9a(..._0x24db72),_0x102e62(_0x5d9dc7,_0x1a626c);}};});function _0x4e67f5(_0x231652){const _0x301c48=_0x33f14e;let _0x285e77=atob(_0x231652),_0x58de81=new Uint8Array(_0x285e77[_0x301c48(0x251)]);for(let _0x272039=0x0;_0x272039<_0x285e77['length'];_0x272039++)_0x58de81[_0x272039]=_0x285e77['charCodeAt'](_0x272039);return _0x58de81;}function _0x514985(_0x36c30d){const _0x43d24c=_0x33f14e;let _0x14c376='';for(let _0x3021be=0x0;_0x3021be<_0x36c30d[_0x43d24c(0x251)];_0x3021be++)_0x14c376+=String[_0x43d24c(0x268)](_0x36c30d[_0x3021be]);return btoa(_0x14c376);}function _0x475c8c(_0x458b50,_0x463484){const _0xe92f92=_0x33f14e;let _0x29039a=_0x4e67f5(_0x463484),_0x53af98=_0x30bfa2(0x10);return _0x514985(_0x2c1cf3(_0x53af98,_0x465838(_0x29039a,_0x53af98)[_0xe92f92(0xd2)](_0x46c12c(_0x458b50))));}function _0x3c2bb1(){const _0x1f4e96=_0x33f14e;let _0x48026a=(0x0,_0x5f2569[_0x1f4e96(0x13f)])()['__Key__'];if(typeof window<'u'&&window[_0x1f4e96(0x226)]!==void 0x0&&_0x48026a){let _0x20b244={'time':Math['floor'](Date[_0x1f4e96(0x11f)]()/0x3e8),'domain':location[_0x1f4e96(0x331)]};return _0x475c8c(JSON[_0x1f4e96(0x121)](_0x20b244),_0x48026a);}}let _0x13c7f3=class{constructor(_0x22a4d1){const _0x5d716a=_0x33f14e;this[_0x5d716a(0x1b1)]=_0x22a4d1,this[_0x5d716a(0x390)]();}[_0x33f14e(0x390)](){const _0x4ef6a9=_0x33f14e;this[_0x4ef6a9(0x1b1)][_0x4ef6a9(0x3c4)]({'interceptor':(_0x2e936a,_0x3fe226)=>{const _0x632780=_0x4ef6a9;let _0x3919d9=_0x3c2bb1();return _0x3919d9&&_0x2e936a[_0x632780(0x144)]['set'](_0x632780(0x293),_0x3919d9),_0x3fe226(_0x2e936a);}});}};_0x13c7f3=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)]))],_0x13c7f3);let _0x123c3d=class extends _0x305d10[_0x33f14e(0x15a)]{constructor(_0x35673d,_0x4975a0,_0x5a5731){const _0x59f9b1=_0x33f14e;super(),this['_logService']=_0x35673d,this['_snapshotService']=_0x4975a0,this['_localCacheService']=_0x5a5731,_0x816778(this,_0x59f9b1(0x14f),new _0x247d93['BehaviorSubject'](null)),_0x816778(this,_0x59f9b1(0x2fc),this[_0x59f9b1(0x14f)]['asObservable']());}async['loadUnitOfRevision'](_0x44bd2c,_0x5166c4,_0x2e8b5a){const _0x154ac0=_0x33f14e;this[_0x154ac0(0x14f)][_0x154ac0(0x300)]({'unitId':_0x44bd2c,'type':_0x5166c4});let _0x516a5d=null;switch(_0x5166c4){case _0x305d10[_0x154ac0(0x1c6)][_0x154ac0(0x22a)]:_0x516a5d=await this[_0x154ac0(0xc9)][_0x154ac0(0x2d8)](_0x44bd2c,_0x2e8b5a);break;case _0x305d10[_0x154ac0(0x1c6)][_0x154ac0(0x26e)]:_0x516a5d=await this[_0x154ac0(0xc9)]['loadDoc'](_0x44bd2c,_0x2e8b5a);break;default:this[_0x154ac0(0x356)][_0x154ac0(0x15f)]('[DataLoaderService]',_0x154ac0(0x116));break;}return _0x516a5d;}async[_0x33f14e(0x321)](_0x286e24,_0x50bc54,_0x7a3b7b){const _0x172b05=_0x33f14e;var _0x5db8ee;this['_unitInfo$'][_0x172b05(0x300)]({'unitId':_0x286e24,'type':_0x50bc54,'subUnitId':_0x7a3b7b});let _0xd34f5e=0x0,_0x25d94b=await((_0x5db8ee=this['_localCacheService'])==null?void 0x0:_0x5db8ee[_0x172b05(0x298)](_0x286e24));return _0x25d94b&&(_0x25d94b['awaitingChangeset']||_0x25d94b[_0x172b05(0x316)]['length']!==0x0)&&(_0xd34f5e=_0x25d94b[_0x172b05(0x123)]),_0xd34f5e===0x0&&this[_0x172b05(0x356)][_0x172b05(0x31a)](_0x172b05(0x21d),_0x172b05(0x376)),this[_0x172b05(0x13c)](_0x286e24,_0x50bc54,_0xd34f5e);}};_0x123c3d=_0x47fc4c([_0xf01086(0x0,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x1,(0x0,_0x305d10['Inject'])(_0x540a4f['SnapshotService'])),_0xf01086(0x2,(0x0,_0x305d10['Optional'])(_0xbd995e))],_0x123c3d);let _0x357175=class{constructor(_0x40c8b3,_0x5eb094,_0x4dff0b){const _0x1b8d2b=_0x33f14e;this[_0x1b8d2b(0x1b1)]=_0x40c8b3,this[_0x1b8d2b(0x333)]=_0x5eb094,this[_0x1b8d2b(0x35b)]=_0x4dff0b,_0x816778(this,_0x1b8d2b(0x1a1),0x0),_0x816778(this,_0x1b8d2b(0x18b),new _0x247d93['Subject']()),_0x816778(this,'change$',this[_0x1b8d2b(0x18b)]),_0x816778(this,'_imageSourceCache',new Map());}['setWaitCount'](_0x20bfe3){const _0x5f558e=_0x33f14e;this[_0x5f558e(0x1a1)]=_0x20bfe3,this['_change$'][_0x5f558e(0x300)](_0x20bfe3);}['getImageSourceCache'](_0x59429a,_0x3313fd){const _0x384c5c=_0x33f14e;if(_0x3313fd===_0x5452c7['ImageSourceType'][_0x384c5c(0x274)]){let _0x4288a6=new Image();return _0x4288a6['src']=_0x59429a,_0x4288a6;}return this[_0x384c5c(0x2b3)][_0x384c5c(0x1a5)](_0x59429a);}[_0x33f14e(0x13b)](_0x2e7553,_0x1f3157,_0xaf494a){const _0x1c6b26=_0x33f14e;_0x1f3157===_0x5452c7[_0x1c6b26(0x185)][_0x1c6b26(0x274)]||_0xaf494a==null||this[_0x1c6b26(0x2b3)][_0x1c6b26(0x269)](_0x2e7553,_0xaf494a);}async['getImage'](_0x226330){const _0x5b6281=_0x33f14e;try{let _0x2d106f=this[_0x5b6281(0x136)](this[_0x5b6281(0x323)](),''+_0x226330),_0x4a0622=(await this[_0x5b6281(0x1b1)][_0x5b6281(0x1a5)](_0x2d106f))['body'];if(_0x4a0622[_0x5b6281(0x15f)]&&_0x4a0622['error'][_0x5b6281(0x361)]===_0x54f861[_0x5b6281(0x2c2)]['OK']){let _0x48b7cd=(0x0,_0x305d10[_0x5b6281(0x193)])(_0x4a0622['url'],this['_getDownloadEndpointURL']());return Promise[_0x5b6281(0x388)](_0x48b7cd);}return Promise[_0x5b6281(0x22c)](_0x4a0622['error']);}catch(_0x53d195){return Promise[_0x5b6281(0x22c)](_0x53d195);}}async[_0x33f14e(0x252)](_0x21b4a1){const _0x2bfaab=_0x33f14e;let _0x5914a5='';if(!_0x5452c7[_0x2bfaab(0xf0)][_0x2bfaab(0x1c3)](_0x21b4a1['type']))return this[_0x2bfaab(0x211)](),Promise['reject'](Error(_0x5452c7[_0x2bfaab(0x3ba)][_0x2bfaab(0x17f)]));if(_0x21b4a1[_0x2bfaab(0xe1)]>(0x0,_0x5452c7[_0x2bfaab(0x336)])())return this[_0x2bfaab(0x211)](),Promise[_0x2bfaab(0x22c)](Error(_0x5452c7[_0x2bfaab(0x3ba)][_0x2bfaab(0x339)]));try{let _0x4ce27b=new FormData();_0x4ce27b[_0x2bfaab(0x140)](_0x2bfaab(0x1a9),_0x21b4a1);let _0xc80d1a=this[_0x2bfaab(0x35b)][_0x2bfaab(0x2a8)](),_0x44f53e=_0xc80d1a==null?void 0x0:_0xc80d1a[_0x2bfaab(0x1e7)]();if(!_0x44f53e)throw Error(_0x2bfaab(0x3aa));let _0x487179=this[_0x2bfaab(0x10b)]()+_0x2bfaab(0x36f)+_0x21b4a1[_0x2bfaab(0xe1)][_0x2bfaab(0x2e7)]()+_0x2bfaab(0xeb)+_0x54f861[_0x2bfaab(0x1fa)][_0x2bfaab(0x374)]+_0x2bfaab(0x36a)+encodeURIComponent(_0x44f53e),_0x5e10e1={'body':_0x4ce27b},_0x28ed42=(await this[_0x2bfaab(0x1b1)]['post'](_0x487179,_0x5e10e1))[_0x2bfaab(0x29f)];if(typeof _0x28ed42['FileId']!=_0x2bfaab(0x137))return this[_0x2bfaab(0x211)](),Promise['reject'](Error(_0x5452c7[_0x2bfaab(0x3ba)]['ERROR_IMAGE']));_0x5914a5=_0x28ed42[_0x2bfaab(0x3ac)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(_0x5452c7[_0x2bfaab(0x3ba)][_0x2bfaab(0x105)]));}return new Promise((_0x327bea,_0xd355f2)=>{const _0x3c08a5=_0x2bfaab;let _0x586eba=new FileReader();_0x586eba[_0x3c08a5(0x28a)](_0x21b4a1),_0x586eba[_0x3c08a5(0x2d2)]=_0x39d348=>{const _0xba81e4=_0x3c08a5;var _0x1b98d0;let _0x203f03=(_0x1b98d0=_0x39d348[_0xba81e4(0x27a)])==null?void 0x0:_0x1b98d0['result'];if(_0x203f03==null){this[_0xba81e4(0x211)](),_0xd355f2(Error(_0x5452c7[_0xba81e4(0x3ba)][_0xba81e4(0x105)]));return;}_0x327bea({'imageId':(0x0,_0x305d10['generateRandomId'])(0x6),'imageSourceType':_0x5452c7[_0xba81e4(0x185)][_0xba81e4(0x1a0)],'source':_0x5914a5,'base64Cache':_0x203f03,'status':_0x5452c7[_0xba81e4(0x3ba)][_0xba81e4(0x29c)]}),this[_0xba81e4(0x211)]();};});}[_0x33f14e(0x10b)](){const _0x45c4da=_0x33f14e;var _0x29b74e;let _0x5d9f2a=this[_0x45c4da(0x333)][_0x45c4da(0x328)](_0x1cf9ab);return(_0x29b74e=_0x5d9f2a==null?void 0x0:_0x5d9f2a[_0x45c4da(0x33e)])==null?_0x45c4da(0x223):_0x29b74e;}[_0x33f14e(0x323)](){const _0x43c7af=_0x33f14e;var _0x5ea814;let _0x57c241=this['_configService']['getConfig'](_0x1cf9ab);return(_0x5ea814=_0x57c241==null?void 0x0:_0x57c241[_0x43c7af(0x1ce)])==null?_0x43c7af(0x1c1):_0x5ea814;}[_0x33f14e(0x36b)](){const _0x27d78d=_0x33f14e;var _0x299653;let _0x13e6c0=this[_0x27d78d(0x333)][_0x27d78d(0x328)](_0x1cf9ab);return(_0x299653=_0x13e6c0==null?void 0x0:_0x13e6c0['downloadEndpointUrl'])==null?location['origin']:_0x299653;}[_0x33f14e(0x136)](_0x1ff2a0,_0x3cbbf4){const _0x1119be=_0x33f14e;return _0x1ff2a0[_0x1119be(0xce)](_0x1119be(0x1d3),_0x3cbbf4);}['_decreaseWaiting'](){const _0x5fcd86=_0x33f14e;--this[_0x5fcd86(0x1a1)],this['_change$'][_0x5fcd86(0x300)](this[_0x5fcd86(0x1a1)]);}};_0x357175=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5['HTTPService'])),_0xf01086(0x1,_0x305d10[_0x33f14e(0xfb)]),_0xf01086(0x2,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['IUniverInstanceService']))],_0x357175);let _0x422fbe=class{constructor(_0x28428e,_0x106a8e){const _0x2f9cc9=_0x33f14e;this[_0x2f9cc9(0x333)]=_0x28428e,this[_0x2f9cc9(0x15c)]=_0x106a8e;}[_0x33f14e(0x11c)](){const _0x7a6c92=_0x33f14e;var _0x542a3b;let _0x2228fa=this['_configService'][_0x7a6c92(0x328)](_0x1cf9ab);return(_0x542a3b=_0x2228fa==null?void 0x0:_0x2228fa[_0x7a6c92(0x3bc)])==null?_0x7a6c92(0x384):_0x542a3b;}async[_0x33f14e(0x1e3)](_0x3f7deb){const _0x1c8dd3=_0x33f14e;let _0x29200b=this[_0x1c8dd3(0x11c)]()+_0x1c8dd3(0x312);return{'list':[{'title':_0x1c8dd3(0x14b),'mentions':(await this[_0x1c8dd3(0x15c)][_0x1c8dd3(0x1a5)](_0x29200b,{'params':{'objectID':_0x3f7deb[_0x1c8dd3(0x34f)],'unitID':_0x3f7deb[_0x1c8dd3(0x34f)]}}))['body'][_0x1c8dd3(0x26c)]['map'](_0x53aee7=>({'objectId':_0x53aee7['id'],'name':_0x53aee7[_0x1c8dd3(0x364)]['name'],'metadata':{'icon':_0x53aee7[_0x1c8dd3(0x364)][_0x1c8dd3(0x329)]},'label':_0x53aee7[_0x1c8dd3(0x364)][_0x1c8dd3(0x241)],'objectType':_0x305d10[_0x1c8dd3(0x146)][_0x1c8dd3(0x1eb)]})),'metadata':{},'type':_0x305d10[_0x1c8dd3(0x146)][_0x1c8dd3(0x1eb)]}]};}};_0x422fbe=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['IConfigService'])),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)]))],_0x422fbe);let _0xe87828=class extends _0x305d10['RxDisposable']{constructor(_0x4e337d,_0x3d4281,_0x20736a,_0x5ddcb5,_0x56edf5){const _0x42a37d=_0x33f14e;super(),this['_injector']=_0x4e337d,this[_0x42a37d(0x35b)]=_0x3d4281,this[_0x42a37d(0x27e)]=_0x20736a,this['_collaborationSessionService']=_0x5ddcb5,this[_0x42a37d(0x17e)]=_0x56edf5,this[_0x42a37d(0x245)](),this[_0x42a37d(0x135)]();}['_initCloseConn'](){const _0x24f8f3=_0x33f14e;let _0x2a7826=async _0x33de4a=>{const _0x2bfbee=_0x1555;(await this['_collaborationSessionService'][_0x2bfbee(0x1ee)](_0x33de4a))[_0x2bfbee(0x1b0)][_0x2bfbee(0x2a9)]((0x0,_0x38623c[_0x2bfbee(0x306)])(_0x13c197=>_0x13c197[_0x2bfbee(0x2b4)]===_0x540a4f[_0x2bfbee(0x38c)]['SHOULD_CLOSE_CONN']),(0x0,_0x38623c[_0x2bfbee(0x1f5)])(this[_0x2bfbee(0x26d)]))[_0x2bfbee(0x305)](_0x1c3730=>{const _0x547324=_0x2bfbee;let {reason:_0x18bd97}=_0x1c3730[_0x547324(0x23d)];this[_0x547324(0x17e)][_0x547324(0x118)]({'id':_0x547324(0x261),'data':_0x18bd97}),this[_0x547324(0x27e)][_0x547324(0x378)](new _0x2b86ea[(_0x547324(0xef))](_0x33de4a)['id'],!0x1),this[_0x547324(0x2d0)][_0x547324(0x375)](_0x33de4a);});};(0x0,_0x247d93[_0x24f8f3(0xff)])(this[_0x24f8f3(0x35b)][_0x24f8f3(0xc5)](_0x305d10[_0x24f8f3(0x1c6)][_0x24f8f3(0x22a)]),this['_univerInstanceService'][_0x24f8f3(0xc5)](_0x305d10[_0x24f8f3(0x1c6)][_0x24f8f3(0x26e)]))[_0x24f8f3(0x2a9)]((0x0,_0x38623c[_0x24f8f3(0x348)])(_0x32ace0=>_0x32ace0[_0x24f8f3(0x265)]['getUnitId']()),(0x0,_0x38623c['filter'])(_0x1150ae=>!(0x0,_0x305d10[_0x24f8f3(0x337)])(_0x1150ae)),(0x0,_0x38623c['takeUntil'])(this['dispose$']))[_0x24f8f3(0x305)](_0x1292ac=>{_0x2a7826(_0x1292ac);});}['_initUnitPermissionChange'](){const _0x4df211=_0x33f14e;let _0x1280ea=async _0xdda5a1=>{const _0x2c1839=_0x1555;let _0x4f3350=await this['_collaborationSessionService'][_0x2c1839(0x1ee)](_0xdda5a1),_0x2d7dfb=this[_0x2c1839(0x1c7)][_0x2c1839(0x1a5)](_0x2b86ea[_0x2c1839(0x126)]);_0x4f3350['event$'][_0x2c1839(0x2a9)]((0x0,_0x38623c['filter'])(_0x607d2b=>_0x607d2b[_0x2c1839(0x2b4)]===_0x540a4f[_0x2c1839(0x38c)][_0x2c1839(0x272)]),(0x0,_0x38623c[_0x2c1839(0x1f5)])(this[_0x2c1839(0x26d)]))[_0x2c1839(0x305)](_0xdaf02d=>{const _0x53ff3a=_0x2c1839;let {objectId:_0x17fdda}=_0xdaf02d[_0x53ff3a(0x23d)];_0x17fdda===_0xdda5a1?_0x2d7dfb['initWorkbookPermissionChange'](_0xdda5a1):_0x2d7dfb['refreshPermission'](_0xdda5a1,_0x17fdda);});};(0x0,_0x247d93[_0x4df211(0xff)])(this[_0x4df211(0x35b)][_0x4df211(0xc5)](_0x305d10[_0x4df211(0x1c6)][_0x4df211(0x22a)]))['pipe']((0x0,_0x38623c[_0x4df211(0x348)])(_0x2b4163=>_0x2b4163[_0x4df211(0x265)][_0x4df211(0x1e7)]()),(0x0,_0x38623c[_0x4df211(0x306)])(_0x20b8b0=>!(0x0,_0x305d10[_0x4df211(0x337)])(_0x20b8b0)),(0x0,_0x38623c[_0x4df211(0x1f5)])(this['dispose$']))[_0x4df211(0x305)](_0x5bd506=>{_0x1280ea(_0x5bd506);});}};_0xe87828=_0x47fc4c([_0xf01086(0x0,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10['Injector'])),_0xf01086(0x1,_0x305d10[_0x33f14e(0x20d)]),_0xf01086(0x2,_0x305d10[_0x33f14e(0x145)]),_0xf01086(0x3,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x258abc)),_0xf01086(0x4,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x23b696))],_0xe87828);let _0x1e5545=class{constructor(_0x1ece95,_0x4b593d){this['_configService']=_0x1ece95,this['_httpService']=_0x4b593d;}async[_0x33f14e(0xba)](_0x5b48a1,_0x59e732){const _0x136f4a=_0x33f14e;var _0x281174;let {unitID:_0xccf641,type:_0x12681a,revision:_0x50a20e=0x0}=_0x59e732,_0x35604f=this[_0x136f4a(0x367)]()+'/'+_0x12681a+_0x136f4a(0x10f)+_0xccf641+_0x136f4a(0x1cf)+_0x50a20e,_0x59392b=(await this[_0x136f4a(0x1b1)][_0x136f4a(0x1a5)](_0x35604f))[_0x136f4a(0x29f)],_0xd6a3c7=(_0x281174=_0x59392b[_0x136f4a(0x1f0)])==null?void 0x0:_0x281174[_0x136f4a(0x27b)];if(_0xd6a3c7){let _0x14e4c1=_0xd6a3c7==null?void 0x0:_0xd6a3c7['originalMeta'];_0xd6a3c7[_0x136f4a(0x386)]=_0x540a4f[_0x136f4a(0x19e)][_0x136f4a(0x10c)]((0x0,_0x540a4f[_0x136f4a(0x2ce)])(_0x14e4c1)),Object[_0x136f4a(0xb4)](_0xd6a3c7['sheets'])[_0x136f4a(0x1fc)](([,_0x1a3fd7])=>{const _0x46bc2b=_0x136f4a;let _0x2db636=_0x1a3fd7['originalMeta'];_0x1a3fd7[_0x46bc2b(0x386)]=_0x540a4f['textEncoder'][_0x46bc2b(0x10c)]((0x0,_0x540a4f[_0x46bc2b(0x2ce)])(_0x2db636));});}return _0x59392b;}async['getSheetBlock'](_0x3cdde2,_0x50466a){const _0x3e6fff=_0x33f14e;let {unitID:_0x57d434,type:_0x586cf4,blockID:_0x3c6fd0}=_0x50466a,_0x529cf2=this['_getAPIPrefix']()+'/'+_0x586cf4+'/unit/'+_0x57d434+_0x3e6fff(0x11a)+_0x3c6fd0;return(await this['_httpService'][_0x3e6fff(0x1a5)](_0x529cf2))[_0x3e6fff(0x29f)];}async['getDeserializedSheetBlock'](_0x2bb729,_0x15ee32){const _0x33dcc0=_0x33f14e;let {unitID:_0x4630a9,type:_0x5ca07d,blockID:_0x5667ce}=_0x15ee32,_0x375197=this[_0x33dcc0(0x280)]()+_0x33dcc0(0x11a)+_0x5ca07d+'/unit/'+_0x4630a9+_0x33dcc0(0x11a)+_0x5667ce;return(await this[_0x33dcc0(0x1b1)][_0x33dcc0(0x1a5)](_0x375197))[_0x33dcc0(0x29f)];}async[_0x33f14e(0xea)](_0x460947,_0x2dc1f9){const _0xbe782=_0x33f14e;let {unitID:_0xbd1504,type:_0x4ed046,from:_0x3a5e91,to:_0x228268}=_0x2dc1f9,_0x3572b9=this['_getAPIPrefix']()+'/'+_0x4ed046+_0xbe782(0x10f)+_0xbd1504+_0xbe782(0x1ca)+_0x3a5e91+_0xbe782(0x284)+_0x228268;return(await this[_0xbe782(0x1b1)][_0xbe782(0x1a5)](_0x3572b9))[_0xbe782(0x29f)];}['getSnapshotAPIPath'](){const _0x1fe3aa=_0x33f14e;var _0x52315b;return(_0x52315b=this[_0x1fe3aa(0x333)][_0x1fe3aa(0x328)](_0x1fe3aa(0x133)))==null?this[_0x1fe3aa(0x280)]():_0x52315b;}[_0x33f14e(0x280)](){const _0x279f08=_0x33f14e;var _0x34a89f;let _0x177782=this['_configService'][_0x279f08(0x328)](_0x1cf9ab);return(_0x34a89f=_0x177782==null?void 0x0:_0x177782[_0x279f08(0x17d)])==null?_0x279f08(0x1b8):_0x34a89f;}async['getResourcesRequest'](_0x5275c0,_0x265330){const _0x433aab=_0x33f14e;let _0x4396df=_0x433aab(0x30b)+_0x265330[_0x433aab(0x1aa)]+_0x433aab(0x10f)+_0x265330[_0x433aab(0x37e)]+_0x433aab(0x360);return(await this[_0x433aab(0x1b1)]['get'](_0x4396df,{'params':{'resourceId':JSON[_0x433aab(0x121)](_0x265330[_0x433aab(0x1bc)])}}))[_0x433aab(0x29f)];}[_0x33f14e(0x39b)](){const _0x321541=_0x33f14e;throw Error(_0x321541(0x39d));}[_0x33f14e(0x353)](){const _0x649a62=_0x33f14e;throw Error(_0x649a62(0x39d));}[_0x33f14e(0x314)](){const _0x16bb84=_0x33f14e;throw Error(_0x16bb84(0x39d));}[_0x33f14e(0xc8)](){const _0x412ee8=_0x33f14e;throw Error(_0x412ee8(0x39d));}[_0x33f14e(0x142)](){const _0x19fa8f=_0x33f14e;throw Error(_0x19fa8f(0x39d));}[_0x33f14e(0x1c4)](){const _0x5be01a=_0x33f14e;throw Error(_0x5be01a(0x39d));}};_0x1e5545=_0x47fc4c([_0xf01086(0x0,_0x305d10['IConfigService']),_0xf01086(0x1,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x3c9fd5[_0x33f14e(0x195)]))],_0x1e5545);let _0x15e3f7=class extends _0x305d10['LocalUndoRedoService']{constructor(_0x38b3b3,_0x1bf350,_0x1c892b,_0x2102b2,_0x58b651){super(_0x38b3b3,_0x1bf350,_0x1c892b),this['_transformService']=_0x2102b2,this['_logService']=_0x58b651;}[_0x33f14e(0xf1)](_0x239a59,_0x5d05ea){const _0x53196b=_0x33f14e;let _0x58815f=this[_0x53196b(0x19a)](_0x239a59);if(_0x58815f)try{let _0x4932c3=this[_0x53196b(0x194)](_0x58815f,_0x5d05ea);this[_0x53196b(0xfe)](_0x239a59,_0x4932c3);}catch(_0x2a493f){this[_0x53196b(0x356)][_0x53196b(0x15f)](_0x53196b(0x169),_0x2a493f),this[_0x53196b(0x1ba)](_0x239a59);}let _0x2e9f73=this['_getRedoStack'](_0x239a59);if(_0x2e9f73)try{let _0x348e0e=this[_0x53196b(0x194)](_0x2e9f73,_0x5d05ea);this[_0x53196b(0x1fe)](_0x239a59,_0x348e0e);}catch(_0x4f2302){this['_logService']['error'](_0x4f2302),this[_0x53196b(0x1e4)](_0x239a59);}}[_0x33f14e(0x1ba)](_0x324c21){const _0x245f69=_0x33f14e;let _0x1152cb=this[_0x245f69(0x19a)](_0x324c21);_0x1152cb&&(_0x1152cb[_0x245f69(0x251)]=0x0,this[_0x245f69(0x2a6)]());}[_0x33f14e(0x1e4)](_0x12ec01){const _0x5ad3e4=_0x33f14e;let _0x479218=this[_0x5ad3e4(0xae)](_0x12ec01);_0x479218&&(_0x479218[_0x5ad3e4(0x251)]=0x0,this['_updateStatus']());}[_0x33f14e(0xfe)](_0x1841c7,_0x5408a8){const _0x296419=_0x33f14e;this[_0x296419(0x2bd)][_0x296419(0x269)](_0x1841c7,_0x5408a8),this[_0x296419(0x2a6)]();}[_0x33f14e(0x1fe)](_0x1f060c,_0x3661eb){const _0x1013fd=_0x33f14e;this['_redoStacks'][_0x1013fd(0x269)](_0x1f060c,_0x3661eb),this[_0x1013fd(0x2a6)]();}[_0x33f14e(0x194)](_0x24cbe4,_0x184dc6){const _0xca9fc8=_0x33f14e;let _0x540d23=[],_0x3c739f=_0x184dc6,_0x3b35ac=_0x184dc6;for(let _0x1c72b6=_0x24cbe4[_0xca9fc8(0x251)]-0x1;_0x1c72b6>=0x0;_0x1c72b6--){let {unitID:_0x2d2a38,undoMutations:_0x2850f1,redoMutations:_0x28b70a}=_0x24cbe4[_0x1c72b6],_0xc00b76=this[_0xca9fc8(0x15e)][_0xca9fc8(0x141)](_0x3c739f,_0x2850f1),_0x2552ea=this[_0xca9fc8(0x15e)][_0xca9fc8(0x141)](_0x3b35ac,_0x28b70a);if((0x0,_0x540a4f[_0xca9fc8(0x192)])(_0xc00b76)||(0x0,_0x540a4f[_0xca9fc8(0x192)])(_0x2552ea)){this[_0xca9fc8(0x356)]['error'](_0xca9fc8(0x169),_0xca9fc8(0x139),_0xc00b76,_0x2552ea);break;}_0x3c739f=_0xc00b76[_0xca9fc8(0x2cb)],_0x3b35ac=_0x2552ea[_0xca9fc8(0x2cb)],_0x540d23[_0xca9fc8(0xf8)]({'unitID':_0x2d2a38,'undoMutations':_0xc00b76[_0xca9fc8(0x28c)],'redoMutations':_0x2552ea[_0xca9fc8(0x28c)]});}return _0x540d23[_0xca9fc8(0x289)]();}};_0x15e3f7=_0x47fc4c([_0xf01086(0x0,_0x305d10['IUniverInstanceService']),_0xf01086(0x1,_0x305d10[_0x33f14e(0x213)]),_0xf01086(0x2,_0x305d10[_0x33f14e(0x30d)]),_0xf01086(0x3,_0x540a4f[_0x33f14e(0x257)]),_0xf01086(0x4,_0x305d10['ILogService'])],_0x15e3f7);let _0x36f5ad=class extends _0x305d10[_0x33f14e(0x3bb)]{constructor(_0x455d6b={},_0x52f4d3,_0x37a327,_0x218454){const _0xb9b52b=_0x33f14e;super(),this[_0xb9b52b(0x1af)]=_0x455d6b,this['_logService']=_0x52f4d3,this[_0xb9b52b(0x1c7)]=_0x37a327,this[_0xb9b52b(0x333)]=_0x218454;let {..._0x428045}=(0x0,_0x305d10[_0xb9b52b(0xff)])({},_0x4cbbd4,_0x455d6b);if(!_0x428045[_0xb9b52b(0xd0)])throw Error(_0xb9b52b(0x34e));this['_config']=_0x428045,this[_0xb9b52b(0x333)]['setConfig'](_0x1cf9ab,_0x428045);}[_0x33f14e(0x359)](){const _0xfe01ab=_0x33f14e;this[_0xfe01ab(0x334)](),this['_initDependencies']();}[_0x33f14e(0x334)](){const _0x1c5715=_0x33f14e;var _0x3be1cc,_0x388783;this[_0x1c5715(0x1c7)][_0x1c5715(0x354)](_0x305d10[_0x1c5715(0xe3)])&&this[_0x1c5715(0x356)][_0x1c5715(0x15f)](_0x1c5715(0x34d),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x58e764=(0x0,_0x305d10[_0x1c5715(0x1bb)])([[_0x305d10[_0x1c5715(0xe3)],{'useClass':_0x15e3f7}],[_0x258abc],[_0x497a33],[_0x2c235d],[_0x2ed10f],[_0x13c7f3],[_0x1493d1],[_0xe87828],[_0x23b696],[_0x123c3d],[_0x277be8,{'useClass':this['_config']['socketService']}],[_0x540a4f[_0x1c5715(0x1e9)],{'useClass':_0x1e5545}],[_0x305d10[_0x1c5715(0x369)],{'useClass':_0xc00d62}],[_0x5452c7[_0x1c5715(0x1f1)],{'useClass':_0x357175}],[_0x305d10['IMentionIOService'],{'useClass':_0x422fbe}],[_0x37b5a8],[_0x14ac8f]],(_0x3be1cc=this[_0x1c5715(0x1af)])==null?void 0x0:_0x3be1cc['override']);if(!((_0x388783=this[_0x1c5715(0x1af)])!=null&&_0x388783[_0x1c5715(0x37c)])){let _0x5be32a=_0x58e764[_0x1c5715(0x2d7)](([_0xf2b4d9])=>_0xf2b4d9===_0x4e88b2);_0x5be32a!==-0x1&&_0x58e764[_0x1c5715(0xe5)](_0x5be32a,0x1);}(0x0,_0x305d10[_0x1c5715(0x2e9)])(this[_0x1c5715(0x1c7)],_0x58e764);}[_0x33f14e(0x3ad)](){const _0x3b8be6=_0x33f14e;var _0x4c5e2a,_0x5b11c0;if(this[_0x3b8be6(0x1c7)][_0x3b8be6(0x1a5)](_0x3c9fd5[_0x3b8be6(0x195)])[_0x3b8be6(0x3c4)]({'priority':0x14,'interceptor':(0x0,_0x3c9fd5[_0x3b8be6(0x394)])({'maxParallel':0x6})}),!((_0x4c5e2a=this['_config'])!=null&&_0x4c5e2a['enableOfflineEditing'])){var _0x1d6457;(_0x1d6457=this[_0x3b8be6(0x1c7)][_0x3b8be6(0x1a5)](_0xbd995e,_0x305d10[_0x3b8be6(0x3bf)]['OPTIONAL']))==null||_0x1d6457[_0x3b8be6(0x281)]();}(_0x5b11c0=this[_0x3b8be6(0x1af)])!=null&&_0x5b11c0[_0x3b8be6(0x345)]&&(0x0,_0x305d10[_0x3b8be6(0x218)])(this[_0x3b8be6(0x1c7)],[[_0x2ed10f]]),(0x0,_0x305d10[_0x3b8be6(0x218)])(this['_injector'],[[_0x13c7f3],[_0x37b5a8],[_0xe87828]]);}};_0x816778(_0x36f5ad,_0x33f14e(0x2f4),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),_0x816778(_0x36f5ad,_0x33f14e(0x2c7),_0x53586),_0x816778(_0x36f5ad,_0x33f14e(0xb9),_0x453767),_0x36f5ad=_0x47fc4c([(0x0,_0x305d10[_0x33f14e(0x1ae)])(_0x5f2569[_0x33f14e(0x347)],_0x540a4f[_0x33f14e(0x249)],_0x3c9fd5[_0x33f14e(0x2d5)]),_0xf01086(0x1,_0x305d10[_0x33f14e(0x12e)]),_0xf01086(0x2,(0x0,_0x305d10[_0x33f14e(0x371)])(_0x305d10[_0x33f14e(0x216)])),_0xf01086(0x3,_0x305d10[_0x33f14e(0xfb)])],_0x36f5ad),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x1c0),{'enumerable':!0x0,'get':function(){return _0xc00d62;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x196),{'enumerable':!0x0,'get':function(){return _0x4c5197;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x2a7),{'enumerable':!0x0,'get':function(){return _0x1f4a11;}}),_0x17c4ec[_0x33f14e(0x290)]=_0x1cf9ab,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x17b),{'enumerable':!0x0,'get':function(){return _0x37b5a8;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x33c),{'enumerable':!0x0,'get':function(){return _0x5f0326;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x25c),{'enumerable':!0x0,'get':function(){return _0x357175;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x1be),{'enumerable':!0x0,'get':function(){return _0x459c7b;}}),Object['defineProperty'](_0x17c4ec,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return _0x258abc;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x1f3),{'enumerable':!0x0,'get':function(){return _0x4d4d25;}}),_0x17c4ec['CollaborationStatus']=_0x46a1e9,_0x17c4ec[_0x33f14e(0x3c2)]=_0x29ff30,_0x17c4ec['CollaborationUIEventService']=_0x23b696,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x14c),{'enumerable':!0x0,'get':function(){return _0x15e3f7;}}),_0x17c4ec['CommentService']=_0x1493d1,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x2f2),{'enumerable':!0x0,'get':function(){return _0x50a112;}}),_0x17c4ec[_0x33f14e(0xb2)]=_0x3919fe,_0x17c4ec[_0x33f14e(0x1d2)]=_0x33f14e(0x31f),_0x17c4ec['DEFAULT_WS_SESSION_TICKET_URL']='/universer-api/user/session-ticket',Object['defineProperty'](_0x17c4ec,'DataLoaderService',{'enumerable':!0x0,'get':function(){return _0x123c3d;}}),Object[_0x33f14e(0x267)](_0x17c4ec,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return _0x467d36;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x30e),{'enumerable':!0x0,'get':function(){return _0x69d917;}}),_0x17c4ec[_0x33f14e(0xcd)]=_0x33f14e(0xaf),_0x17c4ec[_0x33f14e(0x3a5)]=_0x33f14e(0x1dd),_0x17c4ec['ICollaborationSocketService']=_0x277be8,_0x17c4ec[_0x33f14e(0x1a2)]=_0xbd995e,_0x17c4ec[_0x33f14e(0x238)]=_0x515a5c,_0x17c4ec[_0x33f14e(0x2dc)]=_0x4e88b2,_0x17c4ec[_0x33f14e(0x1f6)]=0x3e8,_0x17c4ec[_0x33f14e(0x3b6)]=_0x33f14e(0x1f6),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x19f),{'enumerable':!0x0,'get':function(){return _0x497a33;}}),Object['defineProperty'](_0x17c4ec,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return _0x422fbe;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x246),{'enumerable':!0x0,'get':function(){return _0x18cfb2;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x1b4),{'enumerable':!0x0,'get':function(){return _0x40e466;}}),_0x17c4ec['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',_0x17c4ec[_0x33f14e(0x1db)]=_0x33f14e(0x2af),_0x17c4ec[_0x33f14e(0x170)]=_0x475efd,Object['defineProperty'](_0x17c4ec,_0x33f14e(0x355),{'enumerable':!0x0,'get':function(){return _0x3c0dc6;}}),Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x2ee),{'enumerable':!0x0,'get':function(){return _0x2c235d;}}),Object['defineProperty'](_0x17c4ec,_0x33f14e(0x16a),{'enumerable':!0x0,'get':function(){return _0x1e5545;}}),Object[_0x33f14e(0x267)](_0x17c4ec,'SyncedState',{'enumerable':!0x0,'get':function(){return _0x3f62b4;}}),_0x17c4ec[_0x33f14e(0x25d)]=_0x3dfa36,Object[_0x33f14e(0x267)](_0x17c4ec,_0x33f14e(0x18c),{'enumerable':!0x0,'get':function(){return _0x36f5ad;}}),_0x17c4ec[_0x33f14e(0x178)]=_0x1ab073,_0x17c4ec[_0x33f14e(0x3b3)]=_0x3da7c3,_0x17c4ec[_0x33f14e(0x23b)]=_0x2d2ccc;}));function _0x1555(_0x3f1340,_0x3b605f){_0x3f1340=_0x3f1340-0xad;const _0x15e60a=_0x15e6();let _0x155593=_0x15e60a[_0x3f1340];return _0x155593;}function _0x15e6(){const _0x2632fa=['/resources','code','error$','status$','subject','22DvnYpF','dispose','getSnapshotAPIPath','session.room-full','IAuthzIoService','&assign=','_getDownloadEndpointURL','4003310weEBtc','parse','_getLoginPath','?size=','CHANGESET_SHOULD_RETRY','Inject','CmdRspCode','listCollaborators','UnitEmbedded','closeSession','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','4155532fmTslF','updatePermissionPoint','getUnit','SOCKET_FAILED_RETRY','readyForCollab','enableSingleActiveInstanceLock','_removeRoom','unitID','localeService','_startCollaboration','InsertSheetMutation','some','_socket','/universer-api/authz','univer-pro.collaboration-client.single-active-unit-service','originalMeta','slice','resolve','save\x20fail\x20reason\x20is\x20','cmd','LIVESHARE_TERMINATE','CollaborationEvent','unsubscribe','_userManagerService','getUnitStatus$','_initRequestHeader','LIVESHARE_NEW_HOST','removeMember','decorate','ThresholdInterceptorFactory','onTransformRemoteChangesetByStateCache','crypto.getRandomValues\x20must\x20be\x20defined','_onRemoteRejected','_telemetryService','PERMISSION_DENIED','_isPermissionRej','saveSnapshot','sid','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_lockTransition','[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.','[OfflineState]:\x20received\x20changeset.','objectActions','_initMergeInterceptor','333MmaRHw','POST','HEARTBEAT_TIMEOUT_KEY','getCollabEntity$','_collaborationTimeoutTimer','send','getValue','unitId\x20is\x20not\x20found','_onConnectionOpen','FileId','_initDependencies','_getSendChangesetTimeout','pending','parseProtocolChangeset','sessionStatus$','uuidv4','getLocalCacheKey','_clearHeartbeatTimer','UserManagerService','LOCAL_CACHE_INTERVAL_KEY','_incrementRevisionNumber','_transitionLocked','_onRemoteACK','ImageUploadStatusType','Plugin','authzUrl','isPermissionRej','transformChangesets','Quantity','toStringTag','params','CollaborationUIEventId','UniverProCollaboration','registerHTTPInterceptor','deleteCollaborator','_socketReady','newCsEvent','_getRedoStack','HEARTBEAT_INTERVAL','/universer-api/comb','_sheetTransformSelectionsService','DEFAULT_COLLAB_WEB_SOCKET_URL','toggleOffline','entries','_cfgEnableObjInherit','_candidateSocket','_onMessage','CombCmd','version','getUnitOnRev','patch','onStateChange','AWAITING_WITH_PENDING','editing\x20status\x20changed\x20to','_changesetSessionId','delete','9888624IxJtDi',',\x20got\x20','tagLength','onRemoteAck','getTypeOfUnitAdded$','_transformStateCache','fetching\x20missing\x20changesets\x20from\x20','saveChangeset','_snapshotService','MUTATION','leaveEvent','toDisposable','HEARTBEAT_INTERVAL_KEY','replace','OTHER_CLIENTS_EDITING','socketService','rxjs/operators','encrypt','_shouldReportTelemetry','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','onMissedChangesetFetched','onMissingChangesets','key','createSocket','_members$','@univerjs/drawing','_disableEditing','output','[PendingState]:\x20received\x20rejection.','addHandlerCallback','call','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','size','firstValueFrom','IUndoRedoService','close','splice','awaiting','prototype','RichTextEditingMutation','fetch_missing','fetchMissingChangesets','&source=','_sessionStatus$','\x20to\x20','_acknowledgeAwaiting','WorkbookEditablePermission','DRAWING_IMAGE_ALLOW_IMAGE_LIST','transformUndoRedo','href','method','CompressMutationService','mapDocumentTypeToUniverInstanceType','submit\x20changeset\x20error!','_memberService','push','onLocalMutation','find','IConfigService','default','_retryConnectingTimer','_substituteUndoStack','merge','_onConnectionFailed','/object/','@univerjs-pro/collaboration-client','_sendHeartbeat','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ERROR_IMAGE','\x22output\x22\x20expected\x20Uint8Array\x20of\x20length\x20','commentUpdateEvent','Wrong\x20sbox\x20length','complete','updateMember','_getUploadFileURL','encode','_changesetReqId','changesets','/unit/','_awaitingChangeset','[SyncedState]:\x20received\x20acknowledgement.','objects','_instanceService','toPrimitive','Workbook','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_submitChangeset','emitEvent','_socketMessageSubscription','/block/','cannot\x20encrypt()\x20twice\x20with\x20same\x20key\x20+\x20nonce','_getAPIPrefixPath','startsWith','every','now','_resendTimeout','stringify','_createHandler','rev','waitForRoom$','duration','SheetPermissionInitController','reduce','/role','_tryReconnect','updateOfflineData','_socket$','update','Tools','ILogService','getRoom','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','createIdentifier','fetchMiss','SNAPSHOT_URL_KEY','_exhaustRemoteChangesetQueue','_initCloseConn','_replaceFileID','string','8526168AKIcci','transformStack\x20failed!','_clearCollaborationTimeoutTimer','addImageSourceCache','loadUnitOfRevision','[CollaborationSessionService]','isTransformChangesetsSuccess','getGlobalObject','append','transformMutationsWithChangeset','copyFileMeta','aes-(cbc/ecb).decrypt\x20ciphertext\x20should\x20consist\x20of\x20blocks\x20with\x20size\x2016','headers','IPermissionService','MentionType','1896aFnxSu','@univerjs-pro/collaboration','symbol','stopTime','People','CollaborativeUndoRedoService','responseType','_pendingMutations','_unitInfo$','resend','_roomMembers','onSendChangeset','LIVESHARE_OPERATION','permissionRejEvent','members','indexOf','_onFetchMissResult','_onRecvEvent','onRemoteRej','RxDisposable','getCurrentRevOfUnit','_HTTPService','offline','_transformService','error','SUBMIT_CHANGESET_TIMEOUT','updatePermissionObjEvent','OTHER_CLIENT_EDITING','PSEUDO_FETCH_MISSING_RESULT','CHANGESET_REJ','actions','awaitingChangeset','focused$','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationUndoRedoService]','SnapshotServerOverHTTPService','_executeRemoteChangeset','[PendingState]:\x20unhandled\x20univer\x20type:\x20','title','onlyLocal','textRanges','SessionStatus','socket\x20open.','asObservable','getMemberID','getUnitType','isArray','_onRemoteRetry','_event$','deserializeToCombResponse','_localCacheService','_eventService','CollaborationController','COMPRESS_MUTATION_APPLY','snapshotServerUrl','_collaborationUIEventService','ERROR_IMAGE_TYPE','subarray','then','conflict','byteOffset','_state','ImageSourceType','selections','_transformIMECache','unit-cache-','getOwnPropertyDescriptor','disablePadding','_change$','UniverCollaborationClientPlugin','_onCombEvent','cfgEnableObjInherit','getTime','AWAITING','@univerjs-pro/license','isTransformMutationsWithChangesetFailure','resolveWithBasePath','_transformStack','HTTPService','AwaitingState','open$','\x20in\x20_schedule.','isTransformMutationsWithChangesetSuccess','_getUndoStack','ISocketService','deepClone','rxjs','textEncoder','MemberService','UUID','_waitCount','ILocalCacheService','confirm','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','get','_resendTimer','encodeURIComponent','state$','file','type','aec/(cbc-ecb):\x20unpadded\x20plaintext\x20with\x20disabled\x20padding','baseRev','_onLocalMutation','DependentOn','_config','event$','_httpService','executeCommand','_scheduleCompleteTimestamp','PendingState','result','\x22ciphertext\x22\x20expected\x20length\x20bigger\x20than\x20tagLength=','function','/universer-api/snapshot','roles','_clearUndo','mergeOverrideWithDependencies','resourceIDs','sort','CollaborationSession','JOIN_ROOM_FULL','AuthzIoHttpService','/universer-api/file/{fileID}/sign-url','Disposable','includes','getLatestCsReqIdBySid','_startTelemetryCollaborationNewChangeset','UniverInstanceType','_injector','_handler','[CollaborationSessionService]:\x20socket\x20error','/fetchmissing?from=','socket\x20close','PENDING','action','signUrlServerUrl','/rev/','sessionStatus','failed\x20to\x20apply\x20missed\x20changesets!','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','{fileID}','getCollabEntity','withCredentials','_schedule','MSG_FOR_ERROR','_collaborationPaused','varSizeNonce','nonceLength','RETRY_CONNECTING_MAX_COUNT_KEY','ITelemetryService','HEARTBEAT_TIMEOUT','collaboration-client.auth.needGotoLoginAlert','take','create','NOT_COLLAB','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','list','_clearRedo','_rescheduleHeartbeat','SUBMIT_CHANGESET','getUnitId','reqId','ISnapshotServerService','_acknowledgedAwaitingRevision','PERSON','_remoteChangesetQueue','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','_entityInit$','snapshot','IImageIoService','[CollaborationState]:\x20apply\x20error!','CollaborationSocketService','liveShareOperation','takeUntil','LOCAL_CACHE_INTERVAL','_commandService','editingUnit','startTime','FileSource','connection\x20error','forEach','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_substituteRedoStack','_emitMembers','clear','GLOBAL_ROOMS_CNT_EXCEEDS','_timeoutTimer','_getCurrentRevision','state','_init','_createInitialStateImpl','5383noMtrN','concatMap','_checkMissing','session','disposeWithMe','onMutationExecutedForCollab','IUniverInstanceService','add','crypto','session.room-cnt-exceeds','_decreaseWaiting','@univerjs/core','ICommandService','getCurrentSelections','UniverSheets','Injector','onRemoteChangeset','touchDependencies','_networkConditionService','__splitChunk__','byteLength','getMember','[DataLoaderService]','buffer','getRandomValues','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','appendMutation','\x20-\x20','/universer-api/stream/file/upload','_unitID','CONFLICT','location','shouldCloseConn','FETCH_MISSING','session.room-permission-denied','UNIVER_SHEET','c2Prime','reject','Error\x20on\x20receiving\x20event','uniscriptRunEvent','ONLINE','_commentUpdate$','liveShareNewHost','equals','_telemetryInfo','_isEchoedAwaitingChangeset','Optional','onCommentUpdate','SOCKET_FAILED','INetworkConditionService','_handlerCallback','UPDATE_CURSOR','serializeCombRequest','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','data','unknown','INGEST','amd','name','number','[CollaborationSession]','CommandType','_initUnitPermissionChange','OfflineState','_state$','Univer','UniverCollaborationPlugin','_singleActiveUnitService','MergeInterceptorFactory','CHANGESET_ACK','Module','collabWebSocketUrl','onRemoteRetry','_listenToNetworkCondition','length','saveImage','isSafeInteger','number\x20expected,\x20got\x20','synced','_maxTotalRetryTimeout','ITransformService','_entities','JOIN_ROOM_FAILED','putCollaborators','[OfflineState]:\x20received\x20acknowledgement.','CollaborationImageIoService','UnitStatus','UniverDocs','close$','message$','CLOSE_ROOM','csAckEvent','isView','aes/pkcs7:\x20empty\x20ciphertext\x20not\x20allowed','unit','OFFLINE','defineProperty','fromCharCode','set','_onOffline','requestParams','collaborators','dispose$','UNIVER_DOC','_collabSessionService','UniverProLicense','_sessions','UPDATE_PERMISSION_OBJ','parseChangesetToProtocol','BASE64','_acknowledgeAwaitingIfReady','min','memberID','_retryCount','DEFAULT_FILE_NAME','target','workbook','batchAllowed','[FetchMissState]','_permissionService','onSyncEditingCollabCursor','_getAPIPrefix','disableLocalCache','operators','_createSocket','&to=','USERS_ENTER','_resendWithTimeout','getAllMembers','BehaviorSubject','reverse','readAsDataURL','_scheduleCollaborationTimeoutTimer','m2Prime','_revisionService','collaMsg','_onJoinRoomEvent','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','COMMENT_UPDATE','/universer-api/oidc/authpage','x-univer-host','reconnect','updateCursorEvent','AAD','cipher\x20output\x20not\x20supported','loadOfflineData','onTransformRemoteChangesetByIMECache','assign','@univerjs/telemetry','SUCCUSS','BYTES_PER_ELEMENT','_showConflictNotification','body','invalid\x20output,\x20must\x20be\x20aligned','complex\x20overlap\x20of\x20input\x20and\x20output\x20is\x20not\x20supported','COMPRESS_MUTATION_SEND','_applyRemoteChangeset','RevisionService','_onRemoteChangeset','_updateStatus','AwaitingWithPendingState','getFocusedUnit','pipe','pauseCollaboration','_clearScheduledTask','_compressMutationService','/allowed','csRejEvent','RETRY_CONNECTING_MAX_COUNT','post','JOIN','fromCollab','_imageSourceCache','eventID','/-/object/-/batch_allowed','_transformRemoteChangesetByIMECache','getTypeOfUnitDisposed$','_undoRedoService','186340sALHrH','collaboration-client.config','_sendingTimer','_tryEnsureSocket','_undoStacks','Subject','routeKey','_doCreateSocket','onTransformSelections','ErrorCode','subUnitId','692102rHGWmG','collaboration-client.local-cache-service','listRoles','packageName','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','aes/pkcs7:\x20wrong\x20padding','_joinRoom','c1Prime','getWorkbookSelections','getCurrentUser','b64DecodeUnicode','_handleRemoteChangesets','_collaborationSessionService','revision','onload','object','setCfgEnableObjInherit','UniverNetworkPlugin','_transformUndoredo','findIndex','loadSheet','positive\x20integer\x20expected,\x20got\x20','_onUserLeave','decrypt','ISingleActiveUnitService','url','shareReplay','collaboration_new_changeset','_sendHeartbeatTimer','missingChangesets','interceptor','_toggleOffline','_syncEditingCollabCursor','_members','transformSelections','toString','LEAVE','registerDependencies','toggleOnline','LIVESHARE_REQUEST_HOST','3svHPGS','from','SheetTransformSelectionsService','_socketService','onTransformState','floor','ConflictState','HELLO','pluginName','[CollaborationEntity]','telemetry\x20info\x20is\x20not\x20initialized','updateCollaborator','RECV','JOIN_ROOM_PERMISSION_DENIED','objectID','status','unitInfo$','_fetchMissChangesets','@univerjs/network','_sender','next','_replayCachedMutations','localCacheService','_roomCreated$','loginUrlKey','subscribe','filter','_clearLocalCache','JSONX','getSheetId','NEW_CHANGESETS','/universer-api/snapshot/','_updateState','IContextService','FetchingMissState','SetSelectionsOperation','_stopTelemetryCollaborationNewChangeset','nonce','/collaborator','HEARTBEAT','saveSheetBlock','awaiting_with_pending','mutations','userID','_status$','_queuedRemoteChangesets','debug','EmptyMutationInfo','_getCtorByUniverInstanceType','commentUpdate$','getInterceptPoints','/universer-api/uniscript','string\x20expected','loadUnit','fetchThroughInterceptors','_getSignURL','_onUserJoin','_transformRemoteChangesetByStateCache','_clearTimeoutTimer','joinRsp','getConfig','avatar','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_clearRetryConnectingTimer','_snapshotServerService','setShowComponents','init','createInstance','_unlockTransition','hostname','2lnSXlf','_configService','_registerDependencies','_updateLocalCache','getDrawingImageAllowSize','isInternalEditorID','capture','ERROR_EXCEED_SIZE','\x0aCurrent:\x20','LIVESHARE_FETCH_OPERATIONS','CollaborationEntity','roomInfos','uploadFileServerUrl','delay','DisposableCollection','USERS_LEAVE','_transformAndApplyRemoteChangeset','UNISCRIPT_RUN','PERMISSION_REJ','enableAuthServer','_transformSelections','UniverLicensePlugin','map','iterator','_type','_createInitialState','NO_OTHER_CLIENTS_EDITING','[UniverCollaborationClientPlugin]','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','unitId','objectType','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','collabSubmitChangesetUrl','updateSnapshot','has','SheetCollaborationEntity','_logService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_onConflict','onStarting','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','_univerInstanceService','UniverCore','_localeService','/new_changes','LocaleService'];_0x15e6=function(){return _0x2632fa;};return _0x15e6();}
|
|
3
3
|
|
|
4
4
|
// @univerjs-pro/collaboration-client/facade
|
|
5
|
-
function
|
|
5
|
+
function _0x4f16(){const _0x29acf8=['subscribe','status','FUniver','@univerjs/core/facade','DataLoaderService','switchMap','loadUnit','defineProperty','325794JvYJue','toStringTag','values','state','toDisposable','fireEvent','FEnum','get','1070DDCmXa','getUnitId','FEventName','getUniverSheet','@univerjs/core','getOwnPropertyDescriptor','1068KZzCay','CollaborationStatusChanged','waitForRoom$','NOT_COLLAB','_snapshotService','60950nFpDsF','readyForCollab','CollaborationStatus','UniverCore','CollaborationController','loadActiveSheetAsync','MemberService','Event','amd','94208kHjwrE','UniverProCollaboration','subscribeCollaborators','412344huXKZH','_handler','@univerjs-pro/collaboration-client','extend','16qknCHf','17435sMSzOf','object','loadServerUnitOfRevision','loadActiveSheet','2685ODKUVJ','add','FBase','getCollabEntity','28fXpNqk','from','function','_univerInstanceService','getFocusedUnit','createInstance','UniverCoreFacade','[FCollaboration]:\x20this\x20method\x20should\x20be\x20override.','_injector','entityInit$','rxjs','Inject','UniverProCollaborationClient','_collaborationController','loadSheetAsync','pipe','FCollaboration','disposeWithMe','IUniverInstanceService','status$','623331demgjY','registerEventHandler'];_0x4f16=function(){return _0x29acf8;};return _0x4f16();}function _0x2ed8(_0x3fbedd,_0x240bf){_0x3fbedd=_0x3fbedd-0x13b;const _0x4f169a=_0x4f16();let _0x2ed8a6=_0x4f169a[_0x3fbedd];return _0x2ed8a6;}(function(_0x4ea820,_0x3b7886){const _0x2c0583=_0x2ed8,_0x3ca6e2=_0x4ea820();while(!![]){try{const _0x11c233=-parseInt(_0x2c0583(0x140))/0x1+-parseInt(_0x2c0583(0x181))/0x2+-parseInt(_0x2c0583(0x143))/0x3+parseInt(_0x2c0583(0x17c))/0x4*(-parseInt(_0x2c0583(0x14c))/0x5)+parseInt(_0x2c0583(0x16e))/0x6*(parseInt(_0x2c0583(0x150))/0x7)+-parseInt(_0x2c0583(0x147))/0x8*(-parseInt(_0x2c0583(0x164))/0x9)+-parseInt(_0x2c0583(0x176))/0xa*(-parseInt(_0x2c0583(0x148))/0xb);if(_0x11c233===_0x3b7886)break;else _0x3ca6e2['push'](_0x3ca6e2['shift']());}catch(_0x2007a0){_0x3ca6e2['push'](_0x3ca6e2['shift']());}}}(_0x4f16,0x1d3f7),function(_0x3ba047,_0x5c5b1a){const _0xc2a6b8=_0x2ed8;typeof exports==_0xc2a6b8(0x149)&&typeof module<'u'?_0x5c5b1a(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core/facade'),require('@univerjs/core'),require('@univerjs-pro/collaboration'),require('rxjs')):typeof define==_0xc2a6b8(0x152)&&define[_0xc2a6b8(0x13f)]?define(['exports',_0xc2a6b8(0x145),_0xc2a6b8(0x169),_0xc2a6b8(0x17a),'@univerjs-pro/collaboration',_0xc2a6b8(0x15a)],_0x5c5b1a):(_0x3ba047=typeof globalThis<'u'?globalThis:_0x3ba047||self,_0x5c5b1a(_0x3ba047['UniverProCollaborationClientFacade']={},_0x3ba047[_0xc2a6b8(0x15c)],_0x3ba047[_0xc2a6b8(0x156)],_0x3ba047[_0xc2a6b8(0x184)],_0x3ba047[_0xc2a6b8(0x141)],_0x3ba047[_0xc2a6b8(0x15a)]));}(this,function(_0x42c08a,_0x38453c,_0x3f5874,_0x49ed18,_0x2ca723,_0x5b2425){const _0x524525=_0x2ed8;Object['defineProperty'](_0x42c08a,Symbol[_0x524525(0x16f)],{'value':'Module'});var _0x14f7a4=class extends _0x3f5874[_0x524525(0x174)]{get[_0x524525(0x183)](){const _0x82585b=_0x524525;return _0x38453c[_0x82585b(0x183)];}};_0x3f5874[_0x524525(0x174)]['extend'](_0x14f7a4);var _0x20f11a=class extends _0x3f5874['FEventName']{get[_0x524525(0x17d)](){const _0x15d362=_0x524525;return _0x15d362(0x17d);}};_0x3f5874[_0x524525(0x178)][_0x524525(0x146)](_0x20f11a);function _0x44aa76(_0x4856d3,_0x5d5d4f){return function(_0x55ffff,_0x3cef31){_0x5d5d4f(_0x55ffff,_0x3cef31,_0x4856d3);};}function _0xae4797(_0x32b7b5,_0x2c320d,_0x462cd8,_0x4ac79c){const _0x1cd8b2=_0x524525;var _0xb2efa1=arguments['length'],_0x5ce362=_0xb2efa1<0x3?_0x2c320d:_0x4ac79c===null?_0x4ac79c=Object[_0x1cd8b2(0x17b)](_0x2c320d,_0x462cd8):_0x4ac79c,_0xe3d0cb;if(typeof Reflect==_0x1cd8b2(0x149)&&typeof Reflect['decorate']=='function')_0x5ce362=Reflect['decorate'](_0x32b7b5,_0x2c320d,_0x462cd8,_0x4ac79c);else{for(var _0x544419=_0x32b7b5['length']-0x1;_0x544419>=0x0;_0x544419--)(_0xe3d0cb=_0x32b7b5[_0x544419])&&(_0x5ce362=(_0xb2efa1<0x3?_0xe3d0cb(_0x5ce362):_0xb2efa1>0x3?_0xe3d0cb(_0x2c320d,_0x462cd8,_0x5ce362):_0xe3d0cb(_0x2c320d,_0x462cd8))||_0x5ce362);}return _0xb2efa1>0x3&&_0x5ce362&&Object[_0x1cd8b2(0x16d)](_0x2c320d,_0x462cd8,_0x5ce362),_0x5ce362;}let _0x1c820e=class extends _0x3f5874[_0x524525(0x14e)]{constructor(_0x127b57,_0x49b281,_0x20650f,_0x41fd07,_0x4f403a){const _0x2867d9=_0x524525;super(),this[_0x2867d9(0x144)]=_0x127b57,this[_0x2867d9(0x158)]=_0x49b281,this[_0x2867d9(0x153)]=_0x20650f,this['_snapshotService']=_0x41fd07,this[_0x2867d9(0x15d)]=_0x4f403a;}async[_0x524525(0x14b)](){const _0x4ed2e3=_0x524525;return this[_0x4ed2e3(0x13c)]();}async[_0x524525(0x13c)](){const _0xe7c737=_0x524525;throw Error(_0xe7c737(0x157));}async['loadSheet'](_0x379904){const _0x59aaf0=_0x524525;return this[_0x59aaf0(0x15e)](_0x379904);}async['loadSheetAsync'](_0x58bbad,_0x31799a){const _0x58cae0=_0x524525;return await this[_0x58cae0(0x180)]['loadSheet'](_0x58bbad,0x0,_0x31799a)?(await this[_0x58cae0(0x15d)][_0x58cae0(0x182)](_0x58bbad),this[_0x58cae0(0x144)]['getUniverSheet'](_0x58bbad)):null;}[_0x524525(0x142)](_0x19b9ba,_0x5961f8){const _0x17f850=_0x524525;return(0x0,_0x49ed18[_0x17f850(0x172)])(this[_0x17f850(0x158)][_0x17f850(0x175)](_0x38453c[_0x17f850(0x13d)])[_0x17f850(0x17e)](_0x19b9ba)[_0x17f850(0x15f)]((0x0,_0x5b2425[_0x17f850(0x16b)])(_0x7223b7=>_0x7223b7['members$']))['subscribe'](_0x337cfb=>_0x5961f8(Array[_0x17f850(0x151)](_0x337cfb[_0x17f850(0x170)]()))));}['getCollaborationStatus'](_0x5e823e){const _0x5b8782=_0x524525;var _0x3dcf85;let _0x2c8c6d;if(_0x5e823e)_0x2c8c6d=_0x5e823e;else{let _0x1215d7=this['_univerInstanceService'][_0x5b8782(0x154)]();_0x2c8c6d=_0x1215d7==null?void 0x0:_0x1215d7[_0x5b8782(0x177)]();}if(!_0x2c8c6d)return _0x38453c['CollaborationStatus'][_0x5b8782(0x17f)];let _0xd1b217=this['_collaborationController'][_0x5b8782(0x14f)](_0x2c8c6d);return(_0x3dcf85=_0xd1b217==null?void 0x0:_0xd1b217[_0x5b8782(0x171)][_0x5b8782(0x167)])==null?_0x38453c['CollaborationStatus'][_0x5b8782(0x17f)]:_0x3dcf85;}};_0x1c820e=_0xae4797([_0x44aa76(0x1,(0x0,_0x49ed18[_0x524525(0x15b)])(_0x49ed18['Injector'])),_0x44aa76(0x2,_0x49ed18[_0x524525(0x162)]),_0x44aa76(0x3,(0x0,_0x49ed18[_0x524525(0x15b)])(_0x2ca723['SnapshotService'])),_0x44aa76(0x4,(0x0,_0x49ed18[_0x524525(0x15b)])(_0x38453c[_0x524525(0x13b)]))],_0x1c820e);var _0x243ed0=class extends _0x3f5874[_0x524525(0x168)]{['_initialize'](_0x12f827){const _0x5d11db=_0x524525;let _0x306700=_0x12f827['get'](_0x38453c[_0x5d11db(0x13b)]);this[_0x5d11db(0x161)](this[_0x5d11db(0x165)](this['Event'][_0x5d11db(0x17d)],()=>{const _0x3fa8eb=_0x5d11db;let _0xcedb33=new _0x49ed18['DisposableCollection'](),_0x6343d6=_0x306700[_0x3fa8eb(0x159)][_0x3fa8eb(0x166)](_0x2ce3ed=>{const _0x109296=_0x3fa8eb;let _0x4628d1=_0x2ce3ed[_0x109296(0x163)][_0x109296(0x166)](_0x6b54db=>{const _0x24b04c=_0x109296;let _0x4784cb={'unitId':_0x2ce3ed['unitID'],'status':_0x6b54db};this[_0x24b04c(0x173)](this[_0x24b04c(0x13e)]['CollaborationStatusChanged'],_0x4784cb);});_0xcedb33['add']((0x0,_0x49ed18[_0x109296(0x172)])(_0x4628d1));});return _0xcedb33[_0x3fa8eb(0x14d)]((0x0,_0x49ed18[_0x3fa8eb(0x172)])(_0x6343d6)),_0xcedb33;}));}['getCollaboration'](){const _0x31557e=_0x524525;return this['_injector'][_0x31557e(0x155)](_0x1c820e,{'getUniverSheet':_0x1ef89d=>this[_0x31557e(0x179)](_0x1ef89d)});}['loadServerUnit'](_0x56e962,_0xaadb01,_0xf24483){const _0x43e9f4=_0x524525;return this[_0x43e9f4(0x158)]['get'](_0x38453c[_0x43e9f4(0x16a)])[_0x43e9f4(0x16c)](_0x56e962,_0xaadb01,_0xf24483);}[_0x524525(0x14a)](_0x43ae30,_0x1c15ad,_0x54dbb5){const _0x4065b8=_0x524525;return this[_0x4065b8(0x158)][_0x4065b8(0x175)](_0x38453c[_0x4065b8(0x16a)])['loadUnitOfRevision'](_0x43ae30,_0x1c15ad,_0x54dbb5);}};_0x3f5874['FUniver'][_0x524525(0x146)](_0x243ed0),Object['defineProperty'](_0x42c08a,_0x524525(0x160),{'enumerable':!0x0,'get':function(){return _0x1c820e;}});}));
|
|
6
6
|
|
|
7
7
|
// @univerjs-pro/collaboration-client-ui/index
|
|
8
|
-
function _0x3284(_0x1d7484,_0x591fe3){_0x1d7484=_0x1d7484-0x15d;const _0x159e08=_0x159e();let _0x328493=_0x159e08[_0x1d7484];return _0x328493;}function _0x159e(){const _0x4a8e3e=['runOnServer','_refreshCollabCursors','clearTimeout','_draw','_registerRenderDependencies','75148ZxrXbP','React','registerBeforeClose','operators','DocSelectionManagerService','next','collab-text-anchor-','serializeRangeWithSheet','bottom','_blinkTimer','distinctUntilChanged','_localeService','/run/','univerjs-icon\x20univerjs-icon-','_scene','startRow','toString','colorChannel1','InsertColCommandId','map','_initUnhandledRejectionListener','amd','Enter','VIEW_MAIN','collaboration-client-ui.collabStatus.offline','_univerInstanceService','ISnapshotServerService','_drawAnchor','handleMoveRange','getMemberID','CommandType','SheetCollabCursorShape','isFormulaString','loading-multi-icon','collaboration-client-ui.permission.content','_disabled','SheetSkeletonManagerService','UniverCollaborationClientPlugin','trim','USERS_LEAVE','MessageType','_onCursorDelete','parseInt','_beforeCloseService','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','collaboration-client-ui.session.will-retry','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','Success','_removeCollabCursors','_initDependencies','getCellPositionByOffset','_setupBeforeClosingHandler','slice','roomMembers$','round','_showText','CONFLICT','join','clipPath','collaboration-client-ui.collabStatus.conflict','href','_commandService','SYNCED','UniverProCollaborationClient','_clearOtherTimers','_context','FETCH_MISS','_transformService','_lastPointer','isFormulaId','now','_backgroundColor','_logService','collaboration-client-ui.config','getOwnPropertyDescriptor','Injector','assign','collabCursorState$','univer-text-red-500','getCollabCursors$','_startDocCollabCursor','OFFLINE','body','subUnitId','_name','EffectRefRangId','onTransformChange$','includes','Workbook','isActive','_renderManagerService','SetDocZoomRatioOperation','_range','24ylbOrq','UnitStatus','maxFormulaLimit','key','_collabSessionService','decorate','_uiPartsService','beginPath','UniverCollaborationClientUIPlugin','_docTransformStateCacheService','collaboration-client-ui.session.collaboration-timeout','cursorInfo','setActiveRange','mask','collaboration-client-ui.collaboration.single-unit.warning','event$','generateRandomId','getTypeOfUnitAdded$','ThemeService','getCurrentUnitOfType','defineProperty','getStateCache','_syncEditingCollabCursorService','attrs','getOffsetConfig','undoState','status$','_checkCalculationAvailable','unitID','Tools','getActiveSheet','_colorIndex','xlink:href','collaboration-client-ui.collabClient.tooltip.reconnect','svg','collab-text-range-','handleInsertRow','transformRemoteChangeset','_hideTimer','evenodd','TEXT_RANGE_LAYER_INDEX','univer-inline-flex\x20univer-items-center\x20univer-justify-center','univer-border-none\x20univer-bg-transparent','_pointerMoveDisposable','_themeService','UniverSheetsUi','assignAColorForMemberID','[RemoteUniscriptService]:\x20no\x20focused\x20unit','DocIMEInputManagerService','constructor','univer-text-gray-400','backgroundColor','url(#$1','_unitStatus','8861340fiePuv','transformIMECache','mutations','transformSelections','subscribeEvent','12oARdqh','i18nKey','@univerjs/protocol','RemoveColCommandId','514467zcKHUM','ISocketService','_currentUsage','useRef','rxjs/operators','_updateSubUnitFromURLParams','activeSheet$','get','unit','registerComponent','_pollingInterval','_toggleOffline','CanceledError','setParam','univer-text-orange-500','m2Prime','RemoteUniscriptService','lineTo','@univerjs/sheets-ui','RegularPolygon','length','_saveCache','_color','clsx','transformStateCache','onCommandExecuted','SetSelectionsOperation','handleInsertCol','\x20-\x20','_imageIoService','hovered','currentSkeleton$','_maxFormulaLimit','_colorAssignService','_highlightSecond','_entities','getRenderById','sheetId','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','createElement','RxDisposable','_transformPreviousActiveRange','RECT','IConfigService','_revisionService','updateOfflineData','IImageIoService','_monkeyPatchLogService','params','override','idSuffix','debounce','reconnect','_lastResponseTimestamp','BehaviorSubject','max','startsWith','fill','collaboration-client-ui.collabStatus.notCollab','@univerjs/sheets','_registerDependencies','_handleHeartbeatEvent','catch','focused$','collaboration-client-ui.session.connection-failed','_getSaveTimeout','saveOfflineData','_init','createInstance','error','addClipboardHook','InsertRangeMoveRightCommandId','getRelativeToViewportCoord','_collaborationUIEventService','getSheetId','CollaborationSocketService','pipe','restore','_hasFormulaInDirtyRanges','setAlpha','getTypeOfUnitDisposed$','Plugin','onPointerMove$','onPointerLeave$','_docSyncEditingCollabCursorService','_localCacheService','toRgbString','_notificationService','OffLineIcon','red.300','toStringTag','_handleHover','rgba(255,\x20255,\x20255,\x200.01)','ErrorCode','onLocalMutation','UniverInstanceType','FromArray','_memberID','_handleEvent','use','WebBrowserSingleActiveUnitService','ACTIVE_UNIT_EVENT_CHANNEL','removeEventListener','InsertRangeMoveDownCommandId','releaseFormulaLimitUrl','_updateLocalCursor','_unitOnClients','getAncestorScale','UniverProtocol','default','RichTextEditingMutation','MUTATION','@univerjs-pro/collaboration-client-ui','all','clearInterval','preventDefault','1em','collaboration-client-ui.collabStatus.fetchMiss','current','flatMap','size','values','doc.mutation.rich-text-editing','BuiltInUIPart','univer-appearance-none','univer-m-0\x20univer-p-0','deserializeRangeWithSheet','totalFormulasToCalculate','debounceTime','url(#on-line-icon_clip0_910_349)','getSheetBySheetId','code','LocaleService','limitInfo','pulse','univer-text-blue-500','_memberService','IRenderManagerService','_initCommandInterceptor','substring','icon','[CollaborationDataLoaderController]','endColumn','off-line-icon_clip0_910_343','fillText','displayName','exports','moveTo','_selfUnitIDs','currentColor','setInterval','[Unhandled\x20Rejection]:\x20','CollaborationController','enableFrontendLog','IRemoteInstanceService','_urlService','_stopBlinking','_textBubble','_online','LOCAL_CACHE_INTERVAL','application/json','requireSession','_releaseCalculationLimit','combineLatest','socket$','_getFormulaLimitStatus','useCallback','ILocalStorageService','delete','...','source','handleIRemoveRow','_uploadLog','translate(.97)','_docTransformIMECacheService','getRangePointData','_assignedColors','_messageService','_heartbeatTimer','disposeUnit','setShapeProps','_cursor','CLOSE_ROOM','version','CollaborationUIEventService','_initStatusListener','_collaborationSessionService','_offsetY','_collabCursorController','CollaborationDataLoaderController','stageInfo','createSocket','Disposable','getLocalCacheKey','#0B9EFB','executeCommand','_status$','executionId','M7.20007\x201.98384C7.20007\x201.54201\x207.55824\x201.18384\x208.00007\x201.18384C11.7647\x201.18384\x2014.8165\x204.23568\x2014.8165\x208.00032C14.8165\x2011.765\x2011.7647\x2014.8168\x208.00007\x2014.8168C4.23543\x2014.8168\x201.18359\x2011.765\x201.18359\x208.00032C1.18359\x207.55849\x201.54177\x207.20031\x201.98359\x207.20031C2.42542\x207.20031\x202.78359\x207.55849\x202.78359\x208.00032C2.78359\x2010.8813\x205.11909\x2013.2168\x208.00007\x2013.2168C10.8811\x2013.2168\x2013.2165\x2010.8813\x2013.2165\x208.00032C13.2165\x205.11933\x2010.8811\x202.78384\x208.00007\x202.78384C7.55824\x202.78384\x207.20007\x202.42567\x207.20007\x201.98384Z','8904fGUeON','UniverSheets','_setupSubUnitSync','setUndoRedoMutationParamsCache','findNodePositionByCharIndex','_configService','rgb','getCoordByCell','then','HTTPService','exhaustSavingTask','Unknown\x20user','on-line-icon','_collaborationController','_removeClearOtherTimer','collaboration-client-ui.formula.calculation.unable','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','WebURLService','colno','subscribe','Module','DocSkeletonManagerService','button','DesktopCollaborationStatusDisplayController','status','none','has','UniverDocsUi','UniverIcon','getUnhiddenWorksheets','ranges','_collabCursorState$','[LogService\x20Error]:\x20','UniverCore','unload','color','setOffsetY','Inject','HEADER_MENU','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','getConfig','object','_anchorDot','getUnitId','black','yellow.400','newValue','green.600','rxjs','getMember','parse','blue.400','textRanges','_cursors','getMergeData','collaboration-client-ui.permission.title','WebSocketService','selection','_getAnchorBounding','_sheetSkeletonManagerService','span','replace','search','entries','getValue','DependentOn','DocCollaborationEntity','_getSheetObject','_blinkIntervalTimer','find','JOIN_ROOM_FAILED','CollaborationStatus','url(#off-line-icon_clip0_910_343)','roomMembers','getCurrentTypeOfUnit$','_cursorShapes','bind','addEventListener','isTransformMutationsWithChangesetSuccess','DisposableCollection','_startSheetCollabCursor','filter','deepClone','_drawTextRange','_localStorageService','toPrimitive','0.2)','tooltipKey','Error','switchMap','M8.79993\x2014.0166C8.79993\x2014.4585\x208.44176\x2014.8166\x207.99993\x2014.8166C4.23529\x2014.8166\x201.18345\x2011.7648\x201.18345\x208.00017C1.18345\x204.23554\x204.23529\x201.18369\x207.99993\x201.1837C11.7646\x201.1837\x2014.8164\x204.23554\x2014.8164\x208.00017C14.8164\x208.442\x2014.4582\x208.80017\x2014.0164\x208.80017C13.5746\x208.80017\x2013.2164\x208.442\x2013.2164\x208.00017C13.2164\x205.11919\x2010.8809\x202.7837\x207.99993\x202.7837C5.11895\x202.7837\x202.78345\x205.11919\x202.78345\x208.00017C2.78345\x2010.8812\x205.11895\x2013.2166\x207.99993\x2013.2166C8.44176\x2013.2166\x208.79993\x2013.5748\x208.79993\x2014.0166Z','_docSkeletonManagerService','makeDirty','SUBMIT_CHANGESET_TIMEOUT','text','ICommandService','unitId','rgba(','hide','function','@univerjs/engine-formula','NodePositionConvertToRectRange','react/jsx-runtime','_initCommandExecutedListener','forwardRef','SOCKET_FAILED','AWAITING_WITH_PENDING','_cachedData','Warning','_cursorInfo$','getUndoRedoMutationParamsCache','_httpService','_taskIds','transformMutation','searchParams','@univerjs/network','_startBlinking','shift','UniverProCollaborationClientUi','_initResize','removeParam','set','Rect','height','getColor','div','replaceDocRanges','merge','/universer-api/frontend/logs','strokeWidth','getUniverSheetInstance','_docStateChangeManagerService','0.25.0','runRefRangeMutations','fromEvent','saveTaskMap','UniverRpc','_createSocketURL','history','_onRefRangeChange','IMessageService','_getLighterColor','@univerjs/design',',\x200.2)','_config','throttleTime','selections','InsertRowCommandId','children','_scheduleClearOtherTimer','_doCreateSocket','disposeWithMe','_updateCollabCursors','useObservable','@univerjs-pro/collaboration-client','whenReady','push','transformByState','_id','defs','_setFormulaLimitStatus','isTransformMutationFailure','getFocusedUnit','_handleJoinEvent','onPointerEnter$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','univer-h-8\x20univer-w-8\x20univer-rounded-lg','_session','transformMutationsWithChangeset','packageName','UniverDesign','ILogService','unhandledrejection','RefRangeService','getSkeleton','_transformHistoryAndStateStack','true','NOT_COLLAB','sessionStatus$','OTHER_CLIENTS_EDITING','DEFAULT_WS_SESSION_TICKET_URL','startColumn','unshift','UPDATE_CURSOR','2CNMmTX','static','filename','labelPosition','onMouseMove','univer-flex\x20univer-items-center\x20univer-justify-center','row','IUniverInstanceService','data','RevisionService','string','_getMergeRange','resize','measureText','_scheduleHeartbeat','collaboration-client-ui.collabStatus.syncing','_labelPosition','213038UJxsWJ','engine','_drawRectRange','MoveRangeCommandId','_roomMembers$','getUnit','useDependency','108APRupx','Optional','Vector2','complete','location','DOC_RANGE_TYPE','CollaborationSessionService','asObservable','tag','on-line-icon_clip0_910_349','NO_OTHER_CLIENTS_EDITING','with','iterator','editingUnit','collab-rect-range-','endRow','UNIVER_DOC','_initUserListener','stage','SUCCESS','_injector','rgba','getViewport','ONLINE','DocStateChangeManagerService','DeleteRangeMoveUpCommandId','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_updateURLWithCurrentState','/universer-api/license/formula/limit/status','save','highlightSecond','_handleLeaveEvent','post','CollaborationUIEventId','registerRenderModule','indicator','split','functionsExecutedState','subunit','_startCalculationLimit','collaboration-client-ui.formula.calculation.waiting','_entityInit$','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','_initWindowErrorListener','mergeOverrideWithDependencies','entityInit$','UniverProCollaboration','ColorKit','_checkAndWaitForCalculationPermission','setItem','shareReplay','send','collaboration-client-ui.collabStatus.synced','collaboration-client-ui.collaboration.closeRoom','0\x200\x2016\x2016','FormulaExecutedStateType','fillStyle','random','SessionStatus','actions','UNIVER_SHEET','_refRangeService','getColorFromTheme','getFormulaLimitStatusUrl','handleInsertRangeMoveDown','getCurrentSkeleton','handleDeleteRangeMoveLeft','addObjects','contains','arc','symbol','jsx','UniverNetwork','@univerjs/ui','ITransformService','_transformUndoRedoStack','init','defIds','0\x200\x2017\x2016','forEach','IURLService','handleInsertRangeMoveRight','_onCursorUpdate','startFormulaLimitUrl','add','memberID','from','IUIPartsService','getItem','setTimeout','isInternalEditorID','stack','message','jiqing.500','popstate','createIdentifier','width','http://www.w3.org/2000/svg','_scheduleSaving','TEXT','clickable','getSheetObject','_applyCommand','_ensureSubject','getParam','UniverDocs','_send','_toggleOnline','replaceState','IBeforeCloseService','pushState','unsubscribe','highlight','_initEntityListener','20364267rrClKA','mapTo','offsetY','takeUntil','addObject','_dataLoaderService','_hovered','top','_saveTaskMap','DataLoaderService','@univerjs/core','ILocalCacheService','stringify','polite','MemberService','FormulaExecuteStageType','call','_getSessionTicket','_docTransformSelectionsService','/universer-api/license/formula/limit/done','name','_docClipboardService','2812295UMitmv','triggerDblclick','getActiveRange','cursorInfo$','collaboration-client-ui.collaboration.offline-data-not-saved','[Window\x20Error]:\x20','Shape','isArray','UniverEngineRender','START_CALCULATION','disableLocalCache','_initEvent','m1Prime','_eventUnsubscribe','_initStatusComponent','handleDeleteRangeMoveUp','\x20at\x20','_highlight','type','COLORS','redoState','AWAITING','showText','dirtyRanges','dispose','show','syncEditingCollabCursor','Failed','DeleteRangeMoveLeftCommandId','runId','toDisposable','path','_shapes','getCurrentSelections','@univerjs/docs','Tooltip','transform','dispose$','_isBlinkVisible','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','registerRefRange','M0\x200H16V16H0z','UniverUi','CollaborationEvent','drawWith','spin','_hover','prototype','handleIRemoveCol','SetWorksheetActivateCommand','_anchor'];_0x159e=function(){return _0x4a8e3e;};return _0x159e();}(function(_0x1eb146,_0x1e9110){const _0x2c58ba=_0x3284,_0x909702=_0x1eb146();while(!![]){try{const _0xd2d71b=-parseInt(_0x2c58ba(0x3f1))/0x1*(-parseInt(_0x2c58ba(0x319))/0x2)+parseInt(_0x2c58ba(0x261))/0x3*(parseInt(_0x2c58ba(0x331))/0x4)+-parseInt(_0x2c58ba(0x3b9))/0x5+parseInt(_0x2c58ba(0x196))/0x6*(parseInt(_0x2c58ba(0x32a))/0x7)+-parseInt(_0x2c58ba(0x44e))/0x8*(parseInt(_0x2c58ba(0x19a))/0x9)+-parseInt(_0x2c58ba(0x191))/0xa+parseInt(_0x2c58ba(0x3a3))/0xb;if(_0xd2d71b===_0x1e9110)break;else _0x909702['push'](_0x909702['shift']());}catch(_0xc918a9){_0x909702['push'](_0x909702['shift']());}}}(_0x159e,0x6d387),function(_0x29ee37,_0x566145){const _0x1f4ca0=_0x3284;typeof exports==_0x1f4ca0(0x28a)&&typeof module<'u'?_0x566145(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('@univerjs/sheets-ui'),require('@univerjs/protocol')):typeof define=='function'&&define[_0x1f4ca0(0x406)]?define([_0x1f4ca0(0x22c),_0x1f4ca0(0x2fb),_0x1f4ca0(0x3ad),_0x1f4ca0(0x37a),_0x1f4ca0(0x291),_0x1f4ca0(0x19e),_0x1f4ca0(0x2ef),'react',_0x1f4ca0(0x2c7),'@univerjs/rpc',_0x1f4ca0(0x1d5),'@univerjs/engine-render',_0x1f4ca0(0x2d4),'@univerjs/docs-ui','@univerjs/drawing','@univerjs-pro/collaboration',_0x1f4ca0(0x3db),_0x1f4ca0(0x2c5),_0x1f4ca0(0x1ac),_0x1f4ca0(0x198)],_0x566145):(_0x29ee37=typeof globalThis<'u'?globalThis:_0x29ee37||self,_0x566145(_0x29ee37[_0x1f4ca0(0x2d7)]={},_0x29ee37[_0x1f4ca0(0x430)],_0x29ee37[_0x1f4ca0(0x282)],_0x29ee37[_0x1f4ca0(0x3e3)],_0x29ee37[_0x1f4ca0(0x291)],_0x29ee37[_0x1f4ca0(0x291)][_0x1f4ca0(0x3f4)],_0x29ee37[_0x1f4ca0(0x30b)],_0x29ee37[_0x1f4ca0(0x3f2)],_0x29ee37[_0x1f4ca0(0x3f2)],_0x29ee37[_0x1f4ca0(0x2e9)],_0x29ee37[_0x1f4ca0(0x262)],_0x29ee37[_0x1f4ca0(0x3c1)],_0x29ee37[_0x1f4ca0(0x379)],_0x29ee37[_0x1f4ca0(0x27c)],_0x29ee37['UniverDrawing'],_0x29ee37[_0x1f4ca0(0x35f)],_0x29ee37[_0x1f4ca0(0x39a)],_0x29ee37['UniverEngineFormula'],_0x29ee37[_0x1f4ca0(0x188)],_0x29ee37[_0x1f4ca0(0x206)]));}(this,function(_0x4bb0e6,_0x21dc5a,_0x430976,_0x2f7572,_0x31275f,_0xdec434,_0x276ac3,_0x24d445,_0x542830,_0x5c1877,_0x128162,_0x229561,_0x116517,_0x3733f8,_0x4d4293,_0xf33e7d,_0x15b933,_0x4b3ad6,_0x3430f3,_0x2217f1){const _0x2444bc=_0x3284;Object[_0x2444bc(0x16f)](_0x4bb0e6,Symbol[_0x2444bc(0x1f4)],{'value':_0x2444bc(0x275)});function _0x3a795d({ref:_0x3019d2,..._0xf4e6f1}){const _0x1c3ba4=_0x2444bc;let {icon:_0x51ad49,id:_0x42b26d,className:_0x35913f,extend:_0x211a7e,..._0x356721}=_0xf4e6f1,_0x1bf619=(_0x1c3ba4(0x3fe)+_0x42b26d+'\x20'+(_0x35913f||''))[_0x1c3ba4(0x417)](),_0xb21f31=(0x0,_0x24d445[_0x1c3ba4(0x19d)])('_'+_0x53e43b());return _0x42e811(_0x51ad49,''+_0x42b26d,{'defIds':_0x51ad49[_0x1c3ba4(0x37e)],'idSuffix':_0xb21f31[_0x1c3ba4(0x210)]},{'ref':_0x3019d2,'className':_0x1bf619,..._0x356721},_0x211a7e);}function _0x42e811(_0x502101,_0x353188,_0x9b3316,_0x951980,_0xe51767){const _0x14d9b6=_0x2444bc;return(0x0,_0x24d445[_0x14d9b6(0x1c1)])(_0x502101[_0x14d9b6(0x339)],{'key':_0x353188,..._0x5e52e6(_0x502101,_0x9b3316,_0xe51767),..._0x951980},(_0x3e2fb1(_0x502101,_0x9b3316)[_0x14d9b6(0x2f5)]||[])[_0x14d9b6(0x404)]((_0x4af4a6,_0x118044)=>_0x42e811(_0x4af4a6,_0x353188+'-'+_0x502101[_0x14d9b6(0x339)]+'-'+_0x118044,_0x9b3316,void 0x0,_0xe51767)));}function _0x5e52e6(_0x6d547b,_0x533092,_0x45b14c){const _0x50ea17=_0x2444bc;let _0x17e2e2={..._0x6d547b['attrs']};_0x45b14c!=null&&_0x45b14c['colorChannel1']&&_0x17e2e2[_0x50ea17(0x1d3)]===_0x50ea17(0x402)&&(_0x17e2e2[_0x50ea17(0x1d3)]=_0x45b14c[_0x50ea17(0x402)]),_0x6d547b[_0x50ea17(0x339)]===_0x50ea17(0x168)&&_0x17e2e2['id']&&(_0x17e2e2['id']+=_0x533092[_0x50ea17(0x1cc)]),Object[_0x50ea17(0x2a0)](_0x17e2e2)['forEach'](([_0x37c8b0,_0x51305c])=>{const _0x3b641d=_0x50ea17;_0x37c8b0===_0x3b641d(0x168)&&typeof _0x51305c=='string'&&(_0x17e2e2[_0x37c8b0]=_0x51305c['replace'](/url\(#(.*)\)/,_0x3b641d(0x18f)+_0x533092[_0x3b641d(0x1cc)]+')'));});let {defIds:_0x477542}=_0x533092;return!_0x477542||_0x477542[_0x50ea17(0x1ae)]===0x0?_0x17e2e2:(_0x6d547b[_0x50ea17(0x339)]===_0x50ea17(0x1fd)&&_0x17e2e2[_0x50ea17(0x17b)]&&(_0x17e2e2[_0x50ea17(0x17b)]+=_0x533092['idSuffix']),Object[_0x50ea17(0x2a0)](_0x17e2e2)[_0x50ea17(0x380)](([_0x1a23e6,_0x17d16f])=>{const _0x5ad575=_0x50ea17;typeof _0x17d16f==_0x5ad575(0x323)&&(_0x17e2e2[_0x1a23e6]=_0x17d16f['replace'](/url\(#(.*)\)/,_0x5ad575(0x18f)+_0x533092[_0x5ad575(0x1cc)]+')'));}),_0x17e2e2);}function _0x3e2fb1(_0x35dbb6,_0x5ae093){const _0x4da885=_0x2444bc;var _0x391976;let {defIds:_0x34e471}=_0x5ae093;return!_0x34e471||_0x34e471[_0x4da885(0x1ae)]===0x0?_0x35dbb6:_0x35dbb6[_0x4da885(0x339)]==='defs'&&(_0x391976=_0x35dbb6[_0x4da885(0x2f5)])!=null&&_0x391976[_0x4da885(0x1ae)]?{..._0x35dbb6,'children':_0x35dbb6[_0x4da885(0x2f5)][_0x4da885(0x404)](_0x3b5b3c=>typeof _0x3b5b3c[_0x4da885(0x172)]['id']=='string'&&_0x34e471&&_0x34e471[_0x4da885(0x448)](_0x3b5b3c[_0x4da885(0x172)]['id'])?{..._0x3b5b3c,'attrs':{..._0x3b5b3c['attrs'],'id':_0x3b5b3c['attrs']['id']+_0x5ae093[_0x4da885(0x1cc)]}}:_0x3b5b3c)}:_0x35dbb6;}function _0x53e43b(){const _0x1e3f29=_0x2444bc;return Math[_0x1e3f29(0x36a)]()[_0x1e3f29(0x401)](0x24)[_0x1e3f29(0x225)](0x2,0x8);}_0x3a795d[_0x2444bc(0x22b)]=_0x2444bc(0x27d);let _0x57a765={'tag':_0x2444bc(0x17d),'attrs':{'xmlns':_0x2444bc(0x392),'fill':_0x2444bc(0x27a),'viewBox':_0x2444bc(0x367),'width':_0x2444bc(0x20e),'height':_0x2444bc(0x20e)},'children':[{'tag':'g','attrs':{'clipPath':_0x2444bc(0x2a9)},'children':[{'tag':_0x2444bc(0x3d8),'attrs':{'stroke':_0x2444bc(0x22f),'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':_0x2444bc(0x427),'strokeLinejoin':'round','strokeWidth':1.2}}]},{'tag':_0x2444bc(0x300),'attrs':{},'children':[{'tag':_0x2444bc(0x42b),'attrs':{'id':_0x2444bc(0x229)},'children':[{'tag':_0x2444bc(0x3d8),'attrs':{'fill':'white','d':_0x2444bc(0x3e2)}}]}]}],'defIds':['off-line-icon_clip0_910_343']},_0x3b2024=(0x0,_0x24d445[_0x2444bc(0x2c9)])(function(_0x426bdb,_0x5c6cfc){const _0x2414ac=_0x2444bc;return(0x0,_0x24d445[_0x2414ac(0x1c1)])(_0x3a795d,Object[_0x2414ac(0x43d)]({},_0x426bdb,{'id':'off-line-icon','ref':_0x5c6cfc,'icon':_0x57a765}));});_0x3b2024[_0x2444bc(0x22b)]=_0x2444bc(0x1f2);let _0x4c2ef1={'tag':_0x2444bc(0x17d),'attrs':{'xmlns':_0x2444bc(0x392),'fill':_0x2444bc(0x27a),'viewBox':_0x2444bc(0x37f),'width':_0x2444bc(0x20e),'height':_0x2444bc(0x20e)},'children':[{'tag':'g','attrs':{'clipPath':_0x2444bc(0x21b)},'children':[{'tag':_0x2444bc(0x3d8),'attrs':{'stroke':'currentColor','d':_0x2444bc(0x41f),'strokeLinecap':_0x2444bc(0x427),'strokeLinejoin':_0x2444bc(0x427),'strokeWidth':1.2}}]},{'tag':_0x2444bc(0x300),'attrs':{},'children':[{'tag':_0x2444bc(0x42b),'attrs':{'id':_0x2444bc(0x33a)},'children':[{'tag':_0x2444bc(0x3d8),'attrs':{'fill':'white','d':_0x2444bc(0x3e2),'transform':_0x2444bc(0x247)}}]}]}],'defIds':['on-line-icon_clip0_910_349']},_0x2150f0=(0x0,_0x24d445[_0x2444bc(0x2c9)])(function(_0x559f22,_0xc9937a){const _0x45c213=_0x2444bc;return(0x0,_0x24d445[_0x45c213(0x1c1)])(_0x3a795d,Object[_0x45c213(0x43d)]({},_0x559f22,{'id':_0x45c213(0x26d),'ref':_0xc9937a,'icon':_0x4c2ef1}));});_0x2150f0[_0x2444bc(0x22b)]='OnLineIcon';let _0x5a5122={'tag':'svg','attrs':{'xmlns':_0x2444bc(0x392),'fill':_0x2444bc(0x27a),'viewBox':_0x2444bc(0x367),'width':_0x2444bc(0x20e),'height':_0x2444bc(0x20e)},'children':[{'tag':_0x2444bc(0x3d8),'attrs':{'fill':_0x2444bc(0x25c),'d':_0x2444bc(0x2bb),'fillOpacity':0.2,'fillRule':_0x2444bc(0x182),'clipRule':_0x2444bc(0x182)}},{'tag':_0x2444bc(0x3d8),'attrs':{'fill':_0x2444bc(0x25c),'d':_0x2444bc(0x260),'fillRule':_0x2444bc(0x182),'clipRule':'evenodd'}}]},_0x4f2a73=(0x0,_0x24d445[_0x2444bc(0x2c9)])(function(_0x132a57,_0x40100a){const _0x5a0796=_0x2444bc;return(0x0,_0x24d445[_0x5a0796(0x1c1)])(_0x3a795d,Object[_0x5a0796(0x43d)]({},_0x132a57,{'id':_0x5a0796(0x412),'ref':_0x40100a,'icon':_0x5a5122}));});_0x4f2a73[_0x2444bc(0x22b)]='LoadingMultiIcon';function _0x24a6b5(_0x12db70){const _0x1f35b9=_0x2444bc;switch(_0x12db70){case _0x21dc5a['CollaborationStatus'][_0x1f35b9(0x442)]:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x3b2024,{}),'colorClass':_0x1f35b9(0x43f),'i18nKey':_0x1f35b9(0x409),'tooltipKey':_0x1f35b9(0x17c),'clickable':!0x0,'indicator':_0x1f35b9(0x31a)};case _0x21dc5a[_0x1f35b9(0x2a8)][_0x1f35b9(0x429)]:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x3b2024,{}),'colorClass':_0x1f35b9(0x1a8),'i18nKey':_0x1f35b9(0x42c),'clickable':!0x1,'indicator':_0x1f35b9(0x31a)};case _0x21dc5a[_0x1f35b9(0x2a8)][_0x1f35b9(0x433)]:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x4f2a73,{}),'colorClass':_0x1f35b9(0x221),'i18nKey':_0x1f35b9(0x20f),'clickable':!0x1,'indicator':'spin'};case _0x21dc5a[_0x1f35b9(0x2a8)][_0x1f35b9(0x312)]:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x2150f0,{}),'colorClass':_0x1f35b9(0x18d),'i18nKey':_0x1f35b9(0x1d4),'clickable':!0x1,'indicator':_0x1f35b9(0x31a)};case _0x21dc5a['CollaborationStatus'][_0x1f35b9(0x3ce)]:case _0x21dc5a[_0x1f35b9(0x2a8)][_0x1f35b9(0x2cb)]:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x4f2a73,{}),'colorClass':_0x1f35b9(0x221),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x1f35b9(0x3e6)};case _0x21dc5a[_0x1f35b9(0x2a8)]['PENDING']:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x4f2a73,{}),'colorClass':_0x1f35b9(0x221),'i18nKey':_0x1f35b9(0x328),'clickable':!0x1,'indicator':_0x1f35b9(0x3e6)};case _0x21dc5a[_0x1f35b9(0x2a8)][_0x1f35b9(0x42f)]:return{'icon':(0x0,_0x542830[_0x1f35b9(0x378)])(_0x2150f0,{}),'colorClass':'univer-text-green-500','i18nKey':_0x1f35b9(0x365),'clickable':!0x1,'indicator':_0x1f35b9(0x31a)};}}function _0x105682(_0x4da266){const _0x1523e0=_0x2444bc;let {status$:_0x196c58}=_0x4da266,_0x255e61=(0x0,_0x2f7572[_0x1523e0(0x2fa)])(_0x196c58,_0x21dc5a[_0x1523e0(0x2a8)][_0x1523e0(0x312)]),_0x337794=(0x0,_0x2f7572[_0x1523e0(0x330)])(_0x430976[_0x1523e0(0x21e)]),_0x59e88d=(0x0,_0x2f7572[_0x1523e0(0x330)])(_0x21dc5a[_0x1523e0(0x337)]),_0x2c3c79=(0x0,_0x24d445['useMemo'])(()=>_0x24a6b5(_0x255e61),[_0x255e61]),_0x5877bd=_0x255e61!==_0x21dc5a[_0x1523e0(0x2a8)][_0x1523e0(0x442)],_0x59f448=_0x337794['t'](_0x2c3c79[_0x1523e0(0x197)]),_0x3e6c2e=_0x2c3c79['tooltipKey']?_0x337794['t'](_0x2c3c79[_0x1523e0(0x2b8)]):_0x59f448,_0x1421f9=(0x0,_0x24d445[_0x1523e0(0x240)])(()=>{const _0x4620e7=_0x1523e0;_0x5877bd||_0x59e88d[_0x4620e7(0x1ce)]();},[_0x5877bd,_0x59e88d]),_0x3cd1c2=(0x0,_0x24d445[_0x1523e0(0x240)])(_0x236969=>{const _0x1f4a27=_0x1523e0;!_0x5877bd&&(_0x236969['key']===_0x1f4a27(0x407)||_0x236969[_0x1f4a27(0x15e)]==='\x20')&&(_0x236969[_0x1f4a27(0x20d)](),_0x59e88d['reconnect']());},[_0x5877bd,_0x59e88d]),_0x201b7c=(0x0,_0x542830[_0x1523e0(0x378)])('span',{'className':(0x0,_0x276ac3[_0x1523e0(0x1b1)])(_0x1523e0(0x31e),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x2c3c79['colorClass'],{'univer-animate-spin':_0x2c3c79[_0x1523e0(0x354)]===_0x1523e0(0x3e6),'univer-animate-pulse':_0x2c3c79[_0x1523e0(0x354)]===_0x1523e0(0x220)}),'aria-hidden':'true','children':_0x2c3c79[_0x1523e0(0x226)]}),_0x2171c7=(0x0,_0x542830[_0x1523e0(0x378)])(_0x1523e0(0x29d),{'className':(0x0,_0x276ac3[_0x1523e0(0x1b1)])('univer-flex\x20univer-items-center\x20univer-justify-center',_0x1523e0(0x307),'univer-transition-all\x20univer-duration-200',_0x1523e0(0x41d),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x2c3c79[_0x1523e0(0x395)],'univer-cursor-default':!_0x2c3c79[_0x1523e0(0x395)]}),'children':_0x201b7c});return _0x2c3c79[_0x1523e0(0x395)]?(0x0,_0x542830[_0x1523e0(0x378)])(_0x276ac3[_0x1523e0(0x3dc)],{'title':_0x3e6c2e,'placement':'bottom','children':(0x0,_0x542830[_0x1523e0(0x378)])(_0x1523e0(0x277),{'type':'button','onClick':_0x1421f9,'onKeyDown':_0x3cd1c2,'className':(0x0,_0x276ac3[_0x1523e0(0x1b1)])(_0x1523e0(0x184),'univer-border-none\x20univer-bg-transparent',_0x1523e0(0x217),_0x1523e0(0x216)),'aria-label':_0x59f448+_0x1523e0(0x1b6)+_0x3e6c2e,'role':_0x1523e0(0x279),'aria-live':_0x1523e0(0x3b0),'aria-atomic':_0x1523e0(0x311),'children':_0x2171c7})}):(0x0,_0x542830['jsx'])(_0x276ac3['Tooltip'],{'title':_0x3e6c2e,'placement':_0x1523e0(0x3f9),'children':(0x0,_0x542830[_0x1523e0(0x378)])(_0x1523e0(0x2de),{'className':(0x0,_0x276ac3[_0x1523e0(0x1b1)])(_0x1523e0(0x184),_0x1523e0(0x185),_0x1523e0(0x217)),'aria-label':_0x59f448,'role':_0x1523e0(0x279),'aria-live':_0x1523e0(0x3b0),'aria-atomic':'true','children':_0x2171c7})});}function _0x4928e(_0x1883a7){'@babel/helpers - typeof';const _0x430891=_0x2444bc;return _0x4928e=typeof Symbol==_0x430891(0x2c4)&&typeof Symbol[_0x430891(0x33d)]==_0x430891(0x377)?function(_0x3e644f){return typeof _0x3e644f;}:function(_0x3e0191){const _0x16c99=_0x430891;return _0x3e0191&&typeof Symbol=='function'&&_0x3e0191[_0x16c99(0x18c)]===Symbol&&_0x3e0191!==Symbol[_0x16c99(0x3e8)]?_0x16c99(0x377):typeof _0x3e0191;},_0x4928e(_0x1883a7);}function _0x5521b7(_0x2ff827,_0x3834b8){const _0x3888d3=_0x2444bc;if(_0x4928e(_0x2ff827)!=_0x3888d3(0x28a)||!_0x2ff827)return _0x2ff827;var _0x11dce0=_0x2ff827[Symbol[_0x3888d3(0x2b6)]];if(_0x11dce0!==void 0x0){var _0xb45ee5=_0x11dce0[_0x3888d3(0x3b3)](_0x2ff827,_0x3834b8||_0x3888d3(0x207));if(_0x4928e(_0xb45ee5)!=_0x3888d3(0x28a))return _0xb45ee5;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3834b8==='string'?String:Number)(_0x2ff827);}function _0x5b4c5e(_0x3c3124){const _0x3dffe8=_0x2444bc;var _0x3e7b2f=_0x5521b7(_0x3c3124,_0x3dffe8(0x323));return _0x4928e(_0x3e7b2f)==_0x3dffe8(0x377)?_0x3e7b2f:_0x3e7b2f+'';}function _0x34d1c1(_0xa903fc,_0x12820b,_0xa4546d){const _0x3fe7a9=_0x2444bc;return(_0x12820b=_0x5b4c5e(_0x12820b))in _0xa903fc?Object[_0x3fe7a9(0x16f)](_0xa903fc,_0x12820b,{'value':_0xa4546d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xa903fc[_0x12820b]=_0xa4546d,_0xa903fc;}function _0x23d40f(_0x35dffe,_0x12c996){return function(_0x1d9fa4,_0x2db485){_0x12c996(_0x1d9fa4,_0x2db485,_0x35dffe);};}function _0x4e0ded(_0x3b626e,_0x52b7f2,_0xce890e,_0x226ec0){const _0x58071e=_0x2444bc;var _0xbea6a0=arguments['length'],_0x634f85=_0xbea6a0<0x3?_0x52b7f2:_0x226ec0===null?_0x226ec0=Object[_0x58071e(0x43b)](_0x52b7f2,_0xce890e):_0x226ec0,_0x4869dd;if(typeof Reflect==_0x58071e(0x28a)&&typeof Reflect[_0x58071e(0x160)]==_0x58071e(0x2c4))_0x634f85=Reflect[_0x58071e(0x160)](_0x3b626e,_0x52b7f2,_0xce890e,_0x226ec0);else{for(var _0x150903=_0x3b626e[_0x58071e(0x1ae)]-0x1;_0x150903>=0x0;_0x150903--)(_0x4869dd=_0x3b626e[_0x150903])&&(_0x634f85=(_0xbea6a0<0x3?_0x4869dd(_0x634f85):_0xbea6a0>0x3?_0x4869dd(_0x52b7f2,_0xce890e,_0x634f85):_0x4869dd(_0x52b7f2,_0xce890e))||_0x634f85);}return _0xbea6a0>0x3&&_0x634f85&&Object[_0x58071e(0x16f)](_0x52b7f2,_0xce890e,_0x634f85),_0x634f85;}let _0x26c616=class extends _0x430976[_0x2444bc(0x25a)]{constructor(_0xfb85a,_0x155e6b,_0x1b26e5,_0x5d0d0c){const _0x567bd7=_0x2444bc;super(),this['_univerInstanceService']=_0xfb85a,this[_0x567bd7(0x345)]=_0x155e6b,this[_0x567bd7(0x26e)]=_0x1b26e5,this['_uiPartsService']=_0x5d0d0c,_0x34d1c1(this,_0x567bd7(0x25e),new _0x31275f['BehaviorSubject'](_0x21dc5a[_0x567bd7(0x2a8)][_0x567bd7(0x312)])),this[_0x567bd7(0x3c7)](),this[_0x567bd7(0x253)]();}[_0x2444bc(0x253)](){const _0x17c926=_0x2444bc;this['disposeWithMe']((0x0,_0x31275f['merge'])(this[_0x17c926(0x40a)][_0x17c926(0x1d9)],this[_0x17c926(0x40a)]['getCurrentTypeOfUnit$'](_0x430976['UniverInstanceType'][_0x17c926(0x341)]),this[_0x17c926(0x40a)][_0x17c926(0x2ab)](_0x430976['UniverInstanceType'][_0x17c926(0x36d)]))[_0x17c926(0x1e6)]((0x0,_0xdec434[_0x17c926(0x404)])(()=>_0x16d40d(this['_univerInstanceService'])),(0x0,_0xdec434[_0x17c926(0x3fb)])(),(0x0,_0x31275f[_0x17c926(0x2ba)])(_0x442b5f=>_0x442b5f?this[_0x17c926(0x26e)]['getCollabEntity$'](_0x442b5f):(0x0,_0x31275f['of'])(null)),(0x0,_0x31275f[_0x17c926(0x2ba)])(_0xa8931a=>_0xa8931a?_0xa8931a[_0x17c926(0x175)]:(0x0,_0x31275f['of'])(_0x21dc5a[_0x17c926(0x2a8)][_0x17c926(0x312)])))[_0x17c926(0x274)](_0xeb0ea7=>{const _0x26cd2e=_0x17c926;this[_0x26cd2e(0x25e)][_0x26cd2e(0x3f6)](_0xeb0ea7);}));}['_initStatusComponent'](){const _0x5972c0=_0x2444bc;this[_0x5972c0(0x2f8)](this[_0x5972c0(0x161)][_0x5972c0(0x1a3)](_0x2f7572[_0x5972c0(0x215)][_0x5972c0(0x287)],()=>(0x0,_0x2f7572['connectInjector'])(_0x871193({'status$':this[_0x5972c0(0x25e)][_0x5972c0(0x338)]()}),this[_0x5972c0(0x345)])));}};_0x26c616=_0x4e0ded([_0x23d40f(0x0,_0x430976[_0x2444bc(0x320)]),_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x21dc5a[_0x2444bc(0x232)])),_0x23d40f(0x3,_0x2f7572[_0x2444bc(0x388)])],_0x26c616);function _0x16d40d(_0x2b8d3a){const _0x26f772=_0x2444bc;let _0x48bd24=_0x2b8d3a[_0x26f772(0x303)](),_0x16cbef=_0x48bd24==null?void 0x0:_0x48bd24[_0x26f772(0x28c)]();if(_0x16cbef&&!(0x0,_0x430976['isInternalEditorID'])(_0x16cbef))return _0x16cbef;let _0x4527d4=_0x2b8d3a[_0x26f772(0x16e)](_0x430976[_0x26f772(0x1f9)][_0x26f772(0x341)]),_0x578e41=_0x4527d4==null?void 0x0:_0x4527d4[_0x26f772(0x28c)]();if(_0x578e41&&!(0x0,_0x430976[_0x26f772(0x38b)])(_0x578e41))return _0x578e41;let _0x4e28c8=_0x2b8d3a[_0x26f772(0x16e)](_0x430976[_0x26f772(0x1f9)][_0x26f772(0x36d)]);if(_0x4e28c8)return _0x4e28c8[_0x26f772(0x28c)]();let _0x4b6507=_0x2b8d3a['getAllUnitsForType'](_0x430976[_0x26f772(0x1f9)][_0x26f772(0x341)])[_0x26f772(0x2a6)](_0x147459=>!(0x0,_0x430976[_0x26f772(0x38b)])(_0x147459[_0x26f772(0x28c)]()));return _0x4b6507?_0x4b6507[_0x26f772(0x28c)]():null;}function _0x871193(_0x15f8cd){let {status$:_0x281166}=_0x15f8cd;return function(){const _0x3110fa=_0x3284;return(0x0,_0x542830[_0x3110fa(0x378)])(_0x105682,{'status$':_0x281166});};}let _0x26fa78=(0x0,_0x430976[_0x2444bc(0x390)])('uni.network.url-service'),_0x5aec05=class extends _0x430976[_0x2444bc(0x1c2)]{constructor(_0x65e043,_0x218d56,_0x4b66a1,_0x46ac74,_0x89971b){const _0x103585=_0x2444bc;super(),this['_urlService']=_0x65e043,this[_0x103585(0x439)]=_0x218d56,this[_0x103585(0x42e)]=_0x4b66a1,this['_dataLoaderService']=_0x46ac74,_0x89971b?_0x89971b==null||_0x89971b[_0x103585(0x2fc)]()[_0x103585(0x269)](()=>this[_0x103585(0x1dd)]()):(this[_0x103585(0x439)]['debug'](_0x103585(0x227),_0x103585(0x35b)),this[_0x103585(0x1dd)]());}async[_0x2444bc(0x1dd)](){const _0x4fda50=_0x2444bc;let _0x3442cb=this['_urlService'][_0x4fda50(0x399)](_0x4fda50(0x1a2)),_0x1853aa=this[_0x4fda50(0x235)][_0x4fda50(0x399)]('type'),_0x5c3dee=this[_0x4fda50(0x235)]['getParam'](_0x4fda50(0x357));if(!_0x3442cb||!_0x1853aa){this['_logService']['debug'](_0x4fda50(0x227),_0x4fda50(0x288));return;}let _0x4eb750=await this[_0x4fda50(0x3a8)]['loadUnit'](_0x3442cb,Number(_0x1853aa),_0x5c3dee);_0x4eb750&&_0x4eb750 instanceof _0x430976[_0x4fda50(0x449)]&&this[_0x4fda50(0x263)](_0x4eb750);}async[_0x2444bc(0x263)](_0x53aff7){const _0x3a822e=_0x2444bc;await this[_0x3a822e(0x19f)](_0x53aff7),_0x53aff7[_0x3a822e(0x1a0)][_0x3a822e(0x1e6)]((0x0,_0x31275f[_0x3a822e(0x3a6)])(this[_0x3a822e(0x3de)]))[_0x3a822e(0x274)](_0x2f8b16=>{_0x2f8b16&&this['_updateURLWithCurrentState'](_0x2f8b16);}),this['_urlService']['urlChange$'][_0x3a822e(0x1e6)]((0x0,_0x31275f[_0x3a822e(0x3a6)])(this[_0x3a822e(0x3de)]))[_0x3a822e(0x274)](()=>this[_0x3a822e(0x19f)](_0x53aff7));}[_0x2444bc(0x34c)](_0x39d7dc,_0x1426a0=!0x1){const _0x5e5351=_0x2444bc;let _0x7079cf=this[_0x5e5351(0x235)][_0x5e5351(0x399)](_0x5e5351(0x357));_0x39d7dc[_0x5e5351(0x1e4)]()!==_0x7079cf&&this[_0x5e5351(0x235)][_0x5e5351(0x1a7)](_0x5e5351(0x357),_0x39d7dc[_0x5e5351(0x1e4)](),_0x1426a0);}async[_0x2444bc(0x19f)](_0x1c1bff){const _0x2ad9af=_0x2444bc;var _0x407c3e;let _0x1cbe73=this['_urlService'][_0x2ad9af(0x399)](_0x2ad9af(0x357));if(!_0x1cbe73||!_0x1c1bff[_0x2ad9af(0x21c)](_0x1cbe73)){let _0x26299d=_0x1c1bff[_0x2ad9af(0x27e)]()[0x0],_0x139a35=_0x1c1bff[_0x2ad9af(0x21c)](_0x26299d);if(!_0x139a35)return;this[_0x2ad9af(0x34c)](_0x139a35,!0x0),await this[_0x2ad9af(0x42e)]['executeCommand'](_0x128162[_0x2ad9af(0x3ea)]['id'],{'unitId':_0x1c1bff['getUnitId'](),'subUnitId':_0x26299d});return;}((_0x407c3e=_0x1c1bff[_0x2ad9af(0x179)]())==null?void 0x0:_0x407c3e[_0x2ad9af(0x1e4)]())!==_0x1cbe73&&await this[_0x2ad9af(0x42e)][_0x2ad9af(0x25d)](_0x128162['SetWorksheetActivateCommand']['id'],{'unitId':_0x1c1bff[_0x2ad9af(0x28c)](),'subUnitId':_0x1cbe73});}};_0x5aec05=_0x4e0ded([_0x23d40f(0x0,_0x26fa78),_0x23d40f(0x1,_0x430976[_0x2444bc(0x30c)]),_0x23d40f(0x2,_0x430976['ICommandService']),_0x23d40f(0x3,(0x0,_0x430976[_0x2444bc(0x286)])(_0x21dc5a[_0x2444bc(0x3ac)])),_0x23d40f(0x4,(0x0,_0x430976[_0x2444bc(0x332)])(_0x5c1877[_0x2444bc(0x234)]))],_0x5aec05);var _0x50e124=_0x2444bc(0x20a),_0x5a4f5a=_0x2444bc(0x2e5);let _0x1f6f92=class extends _0x430976['RxDisposable']{constructor(_0x1cd060,_0x319172){const _0x557cfb=_0x2444bc;super(),this[_0x557cfb(0x3b8)]=_0x1cd060,this[_0x557cfb(0x1b7)]=_0x319172,this[_0x557cfb(0x1dd)]();}[_0x2444bc(0x1dd)](){const _0x23c557=_0x2444bc;let _0x54a62a=this;this[_0x23c557(0x2f8)](this['_docClipboardService'][_0x23c557(0x1e0)]({'onBeforePasteImage':async _0x5e1337=>{const _0x3f3dad=_0x23c557;let _0x5b69d9=await _0x54a62a[_0x3f3dad(0x1b7)]['saveImage'](_0x5e1337);return _0x5b69d9?{'source':_0x5b69d9[_0x3f3dad(0x244)],'imageSourceType':_0x5b69d9['imageSourceType']}:null;}}));}};_0x1f6f92=_0x4e0ded([_0x23d40f(0x0,_0x3733f8['IDocClipboardService']),_0x23d40f(0x1,_0x4d4293[_0x2444bc(0x1c8)])],_0x1f6f92);let _0x3a71d4=['purple.300',_0x2444bc(0x38e),_0x2444bc(0x290),_0x2444bc(0x1f3),_0x2444bc(0x294),_0x2444bc(0x28e)];var _0x1eb962=class extends _0x430976[_0x2444bc(0x25a)]{constructor(..._0x8a9c39){const _0x54227a=_0x2444bc;super(..._0x8a9c39),_0x34d1c1(this,_0x54227a(0x24a),new Map()),_0x34d1c1(this,_0x54227a(0x17a),0x0);}['assignAColorForMemberID'](_0x1d1843){const _0x2beed5=_0x2444bc;if(this['_assignedColors'][_0x2beed5(0x27b)](_0x1d1843))return this[_0x2beed5(0x24a)]['get'](_0x1d1843);let _0x131a8b=_0x3a71d4[this[_0x2beed5(0x17a)]];return this[_0x2beed5(0x17a)]=(this[_0x2beed5(0x17a)]+0x1)%_0x3a71d4[_0x2beed5(0x1ae)],this[_0x2beed5(0x24a)][_0x2beed5(0x2da)](_0x1d1843,_0x131a8b),_0x131a8b;}};function _0x5bdb80(_0x341230){const _0x27cae5=_0x2444bc;let _0x52ec16='';for(let _0x31e37d of _0x341230){let {startOffset:_0x3df8b4,endOffset:_0x17f2b0,isActive:_0x5e16e7,rangeType:_0x4fec08,segmentId:_0x8c0f46,segmentPage:_0x2c68e8}=_0x31e37d;_0x52ec16[_0x27cae5(0x1ae)]&&(_0x52ec16+=','),_0x52ec16+=_0x3df8b4+':'+_0x17f2b0+':'+(_0x5e16e7?'1':'0')+':'+_0x4fec08+':'+_0x8c0f46+':'+_0x2c68e8;}return _0x52ec16;}function _0x16a883(_0x3cc90b){const _0x3be6b3=_0x2444bc;let _0x11d2c0=_0x3cc90b[_0x3be6b3(0x355)](','),_0xf666f0=[];for(let _0x5c23b8 of _0x11d2c0){let [_0x5bf7ec,_0x48962b,_0x31dae4,_0x48a7ad,_0x23e690,_0x10353f]=_0x5c23b8[_0x3be6b3(0x355)](':');_0xf666f0[_0x3be6b3(0x2fd)]({'startOffset':Number(_0x5bf7ec),'endOffset':Number(_0x48962b),'collapsed':_0x5bf7ec===_0x48962b,'isActive':_0x31dae4==='1','rangeType':_0x48a7ad===_0x430976[_0x3be6b3(0x336)][_0x3be6b3(0x394)]?_0x430976['DOC_RANGE_TYPE'][_0x3be6b3(0x394)]:_0x430976[_0x3be6b3(0x336)][_0x3be6b3(0x1c4)],'segmentId':typeof _0x23e690==_0x3be6b3(0x323)?String(_0x23e690):'','segmentPage':Number(_0x10353f==null?-0x1:_0x10353f)});}return _0xf666f0['some'](_0x4d89e0=>_0x4d89e0[_0x3be6b3(0x44a)])||(_0xf666f0[0x0][_0x3be6b3(0x44a)]=!0x0),_0xf666f0;}var _0x26444f=class extends _0x430976[_0x2444bc(0x1c2)]{constructor(..._0x5187d6){const _0x3cb927=_0x2444bc;super(..._0x5187d6),_0x34d1c1(this,_0x3cb927(0x280),new _0x31275f[(_0x3cb927(0x1d0))](null)),_0x34d1c1(this,_0x3cb927(0x43e),this[_0x3cb927(0x280)][_0x3cb927(0x338)]());}[_0x2444bc(0x3d3)](_0x512165){const _0x215a8c=_0x2444bc;let {unitID:_0x3b2c53,memberID:_0x4eb247,textRanges:_0x1ed206}=_0x512165,_0x808acc=_0x5bdb80(_0x1ed206);if(_0x808acc==='')return;let _0x24a3f9={'unitID':_0x3b2c53,'memberID':_0x4eb247,'selection':_0x808acc};this[_0x215a8c(0x280)][_0x215a8c(0x3f6)](_0x24a3f9);}};let _0x4003a7=class extends _0x430976[_0x2444bc(0x1c2)]{get[_0x2444bc(0x166)](){const _0x953cb0=_0x2444bc;return this[_0x953cb0(0x2ce)][_0x953cb0(0x2a1)]();}get['roomMembers'](){const _0xdd08d9=_0x2444bc;return this[_0xdd08d9(0x32e)][_0xdd08d9(0x2a1)]();}constructor(_0x109665,_0x244a6c,_0x147936,_0x2993a5,_0x53207d,_0xe955e1,_0x23d0ea,_0x493a36,_0x4b0e0d){const _0x18dbfd=_0x2444bc;super(),this[_0x18dbfd(0x177)]=_0x109665,this[_0x18dbfd(0x308)]=_0x244a6c,this[_0x18dbfd(0x345)]=_0x147936,this[_0x18dbfd(0x1bb)]=_0x2993a5,this[_0x18dbfd(0x222)]=_0x53207d,this[_0x18dbfd(0x171)]=_0xe955e1,this['_transformService']=_0x23d0ea,this[_0x18dbfd(0x40a)]=_0x493a36,this[_0x18dbfd(0x42e)]=_0x4b0e0d,_0x34d1c1(this,'_online',!0x1),_0x34d1c1(this,_0x18dbfd(0x1dd),!0x1),_0x34d1c1(this,_0x18dbfd(0x2ce),new _0x31275f[(_0x18dbfd(0x1d0))](new Map())),_0x34d1c1(this,_0x18dbfd(0x3bc),this[_0x18dbfd(0x2ce)][_0x18dbfd(0x338)]()),_0x34d1c1(this,_0x18dbfd(0x32e),new _0x31275f[(_0x18dbfd(0x1d0))]([])),_0x34d1c1(this,_0x18dbfd(0x426),this['_roomMembers$']['pipe']((0x0,_0x31275f[_0x18dbfd(0x21a)])(0x12c))),_0x34d1c1(this,'_updateLocalCursor',(0x0,_0x430976[_0x18dbfd(0x1cd)])(_0x227415=>{const _0x402ef6=_0x18dbfd;let _0x214eb0={'eventID':_0xf33e7d['CollaborationEvent']['UPDATE_CURSOR'],'data':{'unitID':this[_0x402ef6(0x177)],'memberID':this[_0x402ef6(0x308)]['getMemberID'](),'selection':_0x5bdb80(_0x227415)}};this[_0x402ef6(0x308)]['send'](_0x214eb0,this['unitID']);},0x64));}['dispose'](){const _0x588844=_0x2444bc;super['dispose'](),this[_0x588844(0x2ce)][_0x588844(0x3f6)](new Map()),this[_0x588844(0x2ce)]['complete'](),this[_0x588844(0x32e)]['next']([]),this[_0x588844(0x32e)][_0x588844(0x334)]();}[_0x2444bc(0x37d)](){const _0x25248e=_0x2444bc;this[_0x25248e(0x1dd)]||(this[_0x25248e(0x1dd)]=!0x0,this[_0x25248e(0x308)]['sessionStatus$'][_0x25248e(0x1e6)]((0x0,_0x31275f[_0x25248e(0x3a6)])(this['dispose$']))[_0x25248e(0x274)](_0x2f2035=>{const _0x1820ed=_0x25248e;_0x2f2035===_0x21dc5a[_0x1820ed(0x36b)][_0x1820ed(0x348)]?this['_toggleOnline']():this['_toggleOffline']();}),this[_0x25248e(0x308)]['event$'][_0x25248e(0x1e6)]((0x0,_0x31275f[_0x25248e(0x3a6)])(this[_0x25248e(0x3de)]))[_0x25248e(0x274)](_0x1a28e0=>{const _0x12ecd5=_0x25248e;let _0x4551dc=_0x1a28e0['eventID'];_0x4551dc===_0xf33e7d['CollaborationEvent'][_0x12ecd5(0x318)]&&this['_onCursorUpdate'](_0x1a28e0),_0x4551dc===_0xf33e7d[_0x12ecd5(0x3e4)][_0x12ecd5(0x418)]&&this['_onCursorDelete'](_0x1a28e0);}),this['disposeWithMe'](this['_commandService'][_0x25248e(0x1b3)](_0x3264ff=>{const _0x1f72b0=_0x25248e;let _0x4c1222=_0x3264ff[_0x1f72b0(0x1ca)];_0x4c1222!=null&&this['_online']&&_0x3264ff['id']===_0x15b933['SetTextSelectionsOperation']['id']&&_0x4c1222['unitId']===this[_0x1f72b0(0x177)]&&_0x4c1222['isEditing']===!0x1&&_0x4c1222[_0x1f72b0(0x27f)]['length']>0x0&&this['_updateLocalCursor'](_0x4c1222[_0x1f72b0(0x27f)]);})),this['_syncEditingCollabCursorService'][_0x25248e(0x43e)][_0x25248e(0x1e6)]((0x0,_0x31275f[_0x25248e(0x3a6)])(this[_0x25248e(0x3de)]))[_0x25248e(0x274)](_0xfcfdd4=>{const _0x150987=_0x25248e;if((_0xfcfdd4==null?void 0x0:_0xfcfdd4[_0x150987(0x177)])!==this[_0x150987(0x177)])return;let _0x5756d0={'eventID':_0xf33e7d[_0x150987(0x3e4)]['UPDATE_CURSOR'],'data':_0xfcfdd4};this['_onCursorUpdate'](_0x5756d0);}),this[_0x25248e(0x2f8)](this[_0x25248e(0x42e)][_0x25248e(0x1b3)](_0x12a26b=>{const _0x46a3f3=_0x25248e;if(_0x12a26b['params']==null)return;let _0x47879d=_0x12a26b[_0x46a3f3(0x1ca)];if(_0x12a26b['id']!==_0x15b933[_0x46a3f3(0x208)]['id']||_0x47879d[_0x46a3f3(0x2c1)]!==this[_0x46a3f3(0x177)])return;let _0x55e276={'id':_0x46a3f3(0x214),'params':_0x47879d},_0x27aa45=this[_0x46a3f3(0x166)];for(let [_0x15a58e,_0x2ed3bd]of _0x27aa45){let _0x214b99={'id':_0x46a3f3(0x214),'params':{'unitId':this[_0x46a3f3(0x177)],'actions':null,'textRanges':_0x2ed3bd['ranges']}},_0x4c71c4=this['_transformService'][_0x46a3f3(0x2d2)](_0x55e276,_0x214b99,!0x1);if((0x0,_0xf33e7d[_0x46a3f3(0x302)])(_0x4c71c4))throw _0x4c71c4['error'];_0x27aa45[_0x46a3f3(0x2da)](_0x15a58e,{..._0x2ed3bd,'ranges':_0x4c71c4['m2Prime']['params'][_0x46a3f3(0x295)]});}queueMicrotask(()=>{const _0x3e18c7=_0x46a3f3;this[_0x3e18c7(0x2ce)]['next'](_0x27aa45);});})));}[_0x2444bc(0x383)](_0x125371){const _0x113b86=_0x2444bc;var _0x5b35d9,_0x15126e;let {memberID:_0x537d9f,selection:_0x63e7a}=_0x125371[_0x113b86(0x321)],_0x430767=_0x16a883(_0x63e7a),_0x2caac7=(_0x5b35d9=(_0x15126e=this[_0x113b86(0x222)][_0x113b86(0x292)](this[_0x113b86(0x177)],_0x537d9f))==null?void 0x0:_0x15126e[_0x113b86(0x3b7)])==null?_0x113b86(0x26c):_0x5b35d9,_0x27a152={'color':this[_0x113b86(0x1bb)][_0x113b86(0x189)](_0x537d9f),'name':_0x2caac7,'ranges':_0x430767},_0x5f2d43=this[_0x113b86(0x166)];_0x5f2d43[_0x113b86(0x2da)](_0x537d9f,_0x27a152),this[_0x113b86(0x2ce)][_0x113b86(0x3f6)](_0x5f2d43);}[_0x2444bc(0x41a)](_0x40e488){const _0x47e837=_0x2444bc;let {memberID:_0xa37a37}=_0x40e488['data'],_0x4b7899=this[_0x47e837(0x166)];_0x4b7899[_0x47e837(0x242)](_0xa37a37),this[_0x47e837(0x2ce)][_0x47e837(0x3f6)](_0x4b7899);}[_0x2444bc(0x39c)](){const _0x2bc736=_0x2444bc;var _0x225c8a;if(this[_0x2bc736(0x238)]=!0x0,((_0x225c8a=this['_univerInstanceService'][_0x2bc736(0x303)]())==null?void 0x0:_0x225c8a[_0x2bc736(0x28c)]())!==this[_0x2bc736(0x177)])return;let _0x2a01a1=this[_0x2bc736(0x345)][_0x2bc736(0x1a1)](_0x15b933['DocSelectionManagerService'])['getDocRanges']();Array[_0x2bc736(0x3c0)](_0x2a01a1)&&_0x2a01a1[_0x2bc736(0x1ae)]>0x0&&this[_0x2bc736(0x203)](_0x2a01a1);}[_0x2444bc(0x1a5)](){const _0xcaf05b=_0x2444bc;this[_0xcaf05b(0x238)]=!0x1;}};_0x4003a7=_0x4e0ded([_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x3,(0x0,_0x430976[_0x2444bc(0x286)])(_0x1eb962)),_0x23d40f(0x4,(0x0,_0x430976[_0x2444bc(0x286)])(_0x21dc5a['MemberService'])),_0x23d40f(0x5,(0x0,_0x430976[_0x2444bc(0x286)])(_0x26444f)),_0x23d40f(0x6,_0xf33e7d[_0x2444bc(0x37b)]),_0x23d40f(0x7,_0x430976[_0x2444bc(0x320)]),_0x23d40f(0x8,_0x430976[_0x2444bc(0x2c0)])],_0x4003a7);let _0x418cad=()=>{let _0x4d409e=[],_0x29ba8f=!0x1;return _0x4e456b=>{const _0x37ab26=_0x3284;_0x4d409e[_0x37ab26(0x2fd)](_0x4e456b),_0x29ba8f||(_0x29ba8f=!0x0,setTimeout(()=>{_0x4d409e['forEach'](_0x3ed2c2=>_0x3ed2c2()),_0x4d409e=[],_0x29ba8f=!0x1;}));};},_0x282731=class extends _0x430976['RxDisposable']{get[_0x2444bc(0x166)](){const _0x32bc29=_0x2444bc;return this['_cursorInfo$'][_0x32bc29(0x2a1)]();}get[_0x2444bc(0x2aa)](){const _0x73a923=_0x2444bc;return this[_0x73a923(0x32e)]['getValue']();}constructor(_0x11b601,_0x3e514d,_0x432edb,_0x20876d,_0x31c498,_0x302066,_0x141467,_0xe78e9f){const _0x159b34=_0x2444bc;super(),this[_0x159b34(0x177)]=_0x11b601,this[_0x159b34(0x308)]=_0x3e514d,this[_0x159b34(0x345)]=_0x432edb,this[_0x159b34(0x1bb)]=_0x20876d,this[_0x159b34(0x222)]=_0x31c498,this[_0x159b34(0x40a)]=_0x302066,this[_0x159b34(0x42e)]=_0x141467,this['_refRangeService']=_0xe78e9f,_0x34d1c1(this,'_online',!0x1),_0x34d1c1(this,'_init',!0x1),_0x34d1c1(this,_0x159b34(0x2ce),new _0x31275f[(_0x159b34(0x1d0))](new Map())),_0x34d1c1(this,_0x159b34(0x3bc),this[_0x159b34(0x2ce)][_0x159b34(0x338)]()),_0x34d1c1(this,_0x159b34(0x32e),new _0x31275f['BehaviorSubject']([])),_0x34d1c1(this,_0x159b34(0x426),this[_0x159b34(0x32e)][_0x159b34(0x1e6)]((0x0,_0x31275f[_0x159b34(0x21a)])(0x12c))),_0x34d1c1(this,_0x159b34(0x203),(0x0,_0x430976['debounce'])((_0x34c9e1,_0x1d76f4)=>{const _0x17b98c=_0x159b34;let _0x41254d={'eventID':_0xf33e7d[_0x17b98c(0x3e4)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this[_0x17b98c(0x308)][_0x17b98c(0x40e)](),'selection':(0x0,_0x4b3ad6[_0x17b98c(0x3f8)])(_0x34c9e1,_0x1d76f4['range'])}};this[_0x17b98c(0x308)][_0x17b98c(0x364)](_0x41254d,this[_0x17b98c(0x177)]);},0x64));}[_0x2444bc(0x3d1)](){const _0x1c194d=_0x2444bc;super[_0x1c194d(0x3d1)](),this[_0x1c194d(0x2ce)]['next'](new Map()),this[_0x1c194d(0x2ce)][_0x1c194d(0x334)](),this[_0x1c194d(0x32e)][_0x1c194d(0x3f6)]([]),this[_0x1c194d(0x32e)]['complete']();}[_0x2444bc(0x37d)](){const _0x1ed5ea=_0x2444bc;this[_0x1ed5ea(0x1dd)]||(this[_0x1ed5ea(0x1dd)]=!0x0,this[_0x1ed5ea(0x308)][_0x1ed5ea(0x313)][_0x1ed5ea(0x1e6)]((0x0,_0x31275f[_0x1ed5ea(0x3a6)])(this[_0x1ed5ea(0x3de)]))['subscribe'](_0x3b3642=>{const _0x1eda12=_0x1ed5ea;_0x3b3642===_0x21dc5a['SessionStatus']['ONLINE']?this[_0x1eda12(0x39c)]():this['_toggleOffline']();}),this['_session']['event$'][_0x1ed5ea(0x1e6)]((0x0,_0x31275f['takeUntil'])(this[_0x1ed5ea(0x3de)]))[_0x1ed5ea(0x274)](_0x441c5e=>{const _0x152487=_0x1ed5ea;let _0x418de7=_0x441c5e['eventID'];_0x418de7===_0xf33e7d[_0x152487(0x3e4)][_0x152487(0x318)]&&this[_0x152487(0x383)](_0x441c5e),_0x418de7===_0xf33e7d[_0x152487(0x3e4)][_0x152487(0x418)]&&this[_0x152487(0x41a)](_0x441c5e);}),this[_0x1ed5ea(0x2ec)](),this[_0x1ed5ea(0x2f8)](this[_0x1ed5ea(0x42e)]['onCommandExecuted'](_0x1fa793=>{const _0x5a6d08=_0x1ed5ea;if(this[_0x5a6d08(0x238)]&&_0x1fa793['id']===_0x128162[_0x5a6d08(0x1b4)]['id']&&_0x1fa793['params'][_0x5a6d08(0x2c1)]===this[_0x5a6d08(0x177)]){let _0x1ec8e8=_0x1fa793[_0x5a6d08(0x1ca)];this['_updateLocalCursor'](_0x1ec8e8[_0x5a6d08(0x444)],_0x1ec8e8[_0x5a6d08(0x2f3)][0x0]);}})));}[_0x2444bc(0x383)](_0x377ec6){const _0x4f7a19=_0x2444bc;var _0x13d357,_0x2ab38a;let {memberID:_0x47ba2d,selection:_0x1b7f7d}=_0x377ec6[_0x4f7a19(0x321)],{sheetName:_0x24ccfc,range:_0x1810b5}=(0x0,_0x4b3ad6[_0x4f7a19(0x218)])(_0x1b7f7d),_0x321b84={'name':(_0x13d357=(_0x2ab38a=this['_memberService'][_0x4f7a19(0x292)](this[_0x4f7a19(0x177)],_0x47ba2d))==null?void 0x0:_0x2ab38a['name'])==null?'Unknown\x20user':_0x13d357,'range':this[_0x4f7a19(0x324)](_0x24ccfc,_0x1810b5),'sheetID':_0x24ccfc,'color':this['_colorAssignService'][_0x4f7a19(0x189)](_0x47ba2d),'selection':_0x1b7f7d},_0x38dba9=this[_0x4f7a19(0x166)];_0x38dba9[_0x4f7a19(0x2da)](_0x47ba2d,_0x321b84),this[_0x4f7a19(0x2ce)]['next'](_0x38dba9);}['_onCursorDelete'](_0x4ff1a5){const _0x3a9fd9=_0x2444bc;let {memberID:_0x59ce61}=_0x4ff1a5[_0x3a9fd9(0x321)],_0x1a5117=this['cursorInfo'];_0x1a5117[_0x3a9fd9(0x242)](_0x59ce61),this['_cursorInfo$']['next'](_0x1a5117);}[_0x2444bc(0x324)](_0x3d13fa,_0xcc1720){const _0x506b9e=_0x2444bc;var _0x496d0f;let _0x174697=(_0x496d0f=this[_0x506b9e(0x40a)][_0x506b9e(0x2e3)](this[_0x506b9e(0x177)]))==null||(_0x496d0f=_0x496d0f[_0x506b9e(0x21c)](_0x3d13fa))==null?void 0x0:_0x496d0f[_0x506b9e(0x297)]();return(_0x174697==null?void 0x0:_0x174697[_0x506b9e(0x2a6)](_0x5b8419=>_0x430976['Rectangle'][_0x506b9e(0x375)](_0x5b8419,_0xcc1720)))||_0xcc1720;}[_0x2444bc(0x2ec)](){const _0xbf99a2=_0x2444bc;let _0x5392f5=new _0x430976[(_0xbf99a2(0x2b0))](),_0xf7c6ec=_0x418cad(),_0x35544b=()=>{const _0x625a6a=_0xbf99a2;_0x5392f5[_0x625a6a(0x3d1)]();let _0x832263=(_0x5499f2,_0x5ae8a9,_0x4ae3d4,_0x2cbc67)=>{const _0x3e432b=_0x625a6a;let _0x4cf859=[];switch(_0x5499f2['id']){case _0x128162[_0x3e432b(0x446)][_0x3e432b(0x3d5)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x373)])(_0x5499f2,_0x2cbc67);break;case _0x128162[_0x3e432b(0x446)][_0x3e432b(0x34a)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x3c8)])(_0x5499f2,_0x2cbc67);break;case _0x128162[_0x3e432b(0x446)][_0x3e432b(0x403)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x1b5)])(_0x5499f2,_0x2cbc67);break;case _0x128162[_0x3e432b(0x446)][_0x3e432b(0x201)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x371)])(_0x5499f2,_0x2cbc67);break;case _0x128162['EffectRefRangId'][_0x3e432b(0x1e1)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x382)])(_0x5499f2,_0x2cbc67);break;case _0x128162[_0x3e432b(0x446)][_0x3e432b(0x2f4)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x17f)])(_0x5499f2,_0x2cbc67);break;case _0x128162[_0x3e432b(0x446)][_0x3e432b(0x32d)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x40d)])(_0x5499f2,_0x2cbc67);break;case _0x128162['EffectRefRangId'][_0x3e432b(0x199)]:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x3e9)])(_0x5499f2,_0x2cbc67);break;case _0x128162[_0x3e432b(0x446)]['RemoveRowCommandId']:_0x4cf859=(0x0,_0x128162[_0x3e432b(0x245)])(_0x5499f2,_0x2cbc67);break;}let _0x5910b2=(0x0,_0x128162[_0x3e432b(0x2e6)])(_0x4cf859,_0x2cbc67),_0x4b36c2=this[_0x3e432b(0x166)][_0x3e432b(0x1a1)](_0x5ae8a9);if(_0x4b36c2&&_0x5910b2){let _0x476e39={..._0x4b36c2,'range':_0x5910b2};this[_0x3e432b(0x166)][_0x3e432b(0x2da)](_0x5ae8a9,_0x476e39),_0xf7c6ec(()=>{const _0x5b5b7e=_0x3e432b;let _0x13d815=this[_0x5b5b7e(0x36e)][_0x5b5b7e(0x3e1)](_0x5910b2,_0x372c61=>(_0x13d815[_0x5b5b7e(0x3d1)](),_0x832263(_0x372c61,_0x5ae8a9,_0x4ae3d4,_0x5910b2)));_0x5392f5[_0x5b5b7e(0x385)](_0x13d815);});}return{'redos':[],'undos':[]};};this[_0x625a6a(0x166)][_0x625a6a(0x380)]((_0x5c0384,_0x39e40d)=>{const _0xef832f=_0x625a6a;let {range:_0x1305d6,sheetID:_0x59981c}=_0x5c0384,_0x41a45e=this[_0xef832f(0x36e)][_0xef832f(0x3e1)](_0x1305d6,_0x47bc76=>(_0x41a45e[_0xef832f(0x3d1)](),_0x832263(_0x47bc76,_0x39e40d,_0x59981c,_0x1305d6)));_0x5392f5[_0xef832f(0x385)](_0x41a45e);});};this['disposeWithMe']((0x0,_0x430976[_0xbf99a2(0x3d7)])(this[_0xbf99a2(0x2ce)][_0xbf99a2(0x274)](()=>{_0x35544b();})));}[_0x2444bc(0x39c)](){const _0x42a14f=_0x2444bc;var _0x447d74,_0x25d053;if(this[_0x42a14f(0x238)]=!0x0,((_0x447d74=this['_univerInstanceService'][_0x42a14f(0x303)]())==null?void 0x0:_0x447d74[_0x42a14f(0x28c)]())!==this['unitID'])return;let _0x1e3d4b=(_0x25d053=this['_injector'][_0x42a14f(0x1a1)](_0x128162['SheetsSelectionsService'])[_0x42a14f(0x3da)]())==null?void 0x0:_0x25d053[0x0],_0x4ba836=this['_univerInstanceService'][_0x42a14f(0x16e)](_0x430976[_0x42a14f(0x1f9)][_0x42a14f(0x36d)])['getActiveSheet']();_0x1e3d4b&&_0x4ba836&&this[_0x42a14f(0x203)](_0x4ba836['getSheetId'](),_0x1e3d4b);}[_0x2444bc(0x1a5)](){const _0x39d8d5=_0x2444bc;this[_0x39d8d5(0x238)]=!0x1;}};_0x282731=_0x4e0ded([_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x3,(0x0,_0x430976[_0x2444bc(0x286)])(_0x1eb962)),_0x23d40f(0x4,(0x0,_0x430976[_0x2444bc(0x286)])(_0x21dc5a[_0x2444bc(0x3b1)])),_0x23d40f(0x5,_0x430976['IUniverInstanceService']),_0x23d40f(0x6,_0x430976[_0x2444bc(0x2c0)]),_0x23d40f(0x7,(0x0,_0x430976[_0x2444bc(0x286)])(_0x128162[_0x2444bc(0x30e)]))],_0x282731);let _0x35fdec=class extends _0x430976[_0x2444bc(0x1c2)]{constructor(_0x3f485c,_0x5a4069,_0x4c0044){const _0x2320d8=_0x2444bc;super(),this[_0x2320d8(0x40a)]=_0x3f485c,this[_0x2320d8(0x345)]=_0x5a4069,this[_0x2320d8(0x15f)]=_0x4c0044,_0x34d1c1(this,'_entities',new Map()),_0x34d1c1(this,_0x2320d8(0x35a),new _0x31275f['Subject']()),this[_0x2320d8(0x1dd)]();}[_0x2444bc(0x3d1)](){const _0x57c3c2=_0x2444bc;super[_0x57c3c2(0x3d1)](),this[_0x57c3c2(0x35a)]['complete'](),this[_0x57c3c2(0x1bd)][_0x57c3c2(0x380)](_0x1472c5=>_0x1472c5['dispose']());}[_0x2444bc(0x440)](_0x12c378){const _0x3dc597=_0x2444bc;return this['_entities'][_0x3dc597(0x27b)](_0x12c378)?this[_0x3dc597(0x1bd)]['get'](_0x12c378)[_0x3dc597(0x3bc)]:this['_entityInit$'][_0x3dc597(0x1e6)]((0x0,_0x31275f[_0x3dc597(0x2b2)])(_0x147331=>_0x147331[_0x3dc597(0x177)]===_0x12c378),(0x0,_0x31275f[_0x3dc597(0x2ba)])(_0x159710=>_0x159710[_0x3dc597(0x3bc)]));}['_init'](){const _0x439c78=_0x2444bc;this[_0x439c78(0x40a)][_0x439c78(0x16c)](_0x430976[_0x439c78(0x1f9)]['UNIVER_SHEET'])[_0x439c78(0x1e6)]((0x0,_0x31275f[_0x439c78(0x3a6)])(this[_0x439c78(0x3de)]))[_0x439c78(0x274)](async _0x2c7c54=>{const _0xe9739=_0x439c78;let _0x5cb53b=_0x2c7c54[_0xe9739(0x1a2)][_0xe9739(0x28c)](),_0x4df34e=await this['_startSheetCollabCursor'](_0x5cb53b);this['_entityInit$'][_0xe9739(0x3f6)](_0x4df34e),this['_entities'][_0xe9739(0x2da)](_0x5cb53b,_0x4df34e);}),this[_0x439c78(0x40a)][_0x439c78(0x16c)](_0x430976[_0x439c78(0x1f9)]['UNIVER_DOC'])['pipe']((0x0,_0x31275f['takeUntil'])(this[_0x439c78(0x3de)]))['pipe']((0x0,_0x31275f[_0x439c78(0x2b2)])(_0x48f82d=>!_0x48f82d['unit'][_0x439c78(0x28c)]()[_0x439c78(0x1d2)]('__')))[_0x439c78(0x274)](async _0xfccb7d=>{const _0x484e8f=_0x439c78;let {unit:_0x26b552}=_0xfccb7d,_0x1c2efa=_0x26b552[_0x484e8f(0x28c)](),_0x240cfc=await this[_0x484e8f(0x441)](_0x1c2efa);this['_entityInit$']['next'](_0x240cfc),this[_0x484e8f(0x1bd)][_0x484e8f(0x2da)](_0x1c2efa,_0x240cfc);}),(0x0,_0x31275f[_0x439c78(0x2e0)])(this[_0x439c78(0x40a)]['getTypeOfUnitDisposed$'](_0x430976['UniverInstanceType']['UNIVER_DOC']),this[_0x439c78(0x40a)][_0x439c78(0x1ea)](_0x430976['UniverInstanceType'][_0x439c78(0x36d)]))[_0x439c78(0x1e6)]((0x0,_0x31275f['takeUntil'])(this[_0x439c78(0x3de)]))[_0x439c78(0x274)](_0x4560ea=>{const _0x785b69=_0x439c78;let _0x3659bd=_0x4560ea['getUnitId'](),_0x3020dc=this[_0x785b69(0x1bd)]['get'](_0x3659bd);_0x3020dc&&(_0x3020dc['dispose'](),this[_0x785b69(0x1bd)]['delete'](_0x3659bd));});}async[_0x2444bc(0x2b1)](_0x4c0cad){const _0x29fb51=_0x2444bc;let _0x3e860b=await this['_collabSessionService'][_0x29fb51(0x23b)](_0x4c0cad),_0x196c90=this[_0x29fb51(0x345)][_0x29fb51(0x1de)](_0x282731,_0x4c0cad,_0x3e860b);return _0x196c90[_0x29fb51(0x37d)](),_0x196c90;}async[_0x2444bc(0x441)](_0x2de621){const _0x41aa70=_0x2444bc;let _0x49b042=await this[_0x41aa70(0x15f)]['requireSession'](_0x2de621),_0x55d5e7=this[_0x41aa70(0x345)]['createInstance'](_0x4003a7,_0x2de621,_0x49b042);return _0x55d5e7[_0x41aa70(0x37d)](),_0x55d5e7;}};_0x35fdec=_0x4e0ded([_0x23d40f(0x0,_0x430976[_0x2444bc(0x320)]),_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x21dc5a[_0x2444bc(0x337)]))],_0x35fdec);function _0x1db1d9(_0x3ec6ce,_0x124365){const _0xaf4dac=_0x2444bc;var _0x20f5e3,_0xd17be6,_0x3e2fdd;let {radius:_0x388e3b,width:_0x24f051,height:_0x2a7ccf}=_0x124365;_0x388e3b=(_0x20f5e3=_0x388e3b)==null?0x0:_0x20f5e3,_0x24f051=(_0xd17be6=_0x24f051)==null?0x1e:_0xd17be6,_0x2a7ccf=(_0x3e2fdd=_0x2a7ccf)==null?0x1e:_0x3e2fdd;let _0x28ceec=0x0,_0x5a27fd=0x0,_0x4b1119=0x0;_0x28ceec=_0x5a27fd=_0x4b1119=Math['min'](_0x388e3b,_0x24f051/0x2,_0x2a7ccf/0x2),_0x3ec6ce[_0xaf4dac(0x162)](),_0x3ec6ce[_0xaf4dac(0x22d)](_0x28ceec,0x0),_0x3ec6ce['lineTo'](_0x24f051-_0x5a27fd,0x0),_0x3ec6ce[_0xaf4dac(0x376)](_0x24f051-_0x5a27fd,_0x5a27fd,_0x5a27fd,Math['PI']*0x3/0x2,0x0,!0x1),_0x3ec6ce[_0xaf4dac(0x1ab)](_0x24f051,_0x2a7ccf-_0x4b1119),_0x3ec6ce[_0xaf4dac(0x376)](_0x24f051-_0x4b1119,_0x2a7ccf-_0x4b1119,_0x4b1119,0x0,Math['PI']/0x2,!0x1),_0x3ec6ce[_0xaf4dac(0x1ab)](0x0,_0x2a7ccf),_0x3ec6ce[_0xaf4dac(0x1ab)](0x0,_0x28ceec),_0x3ec6ce[_0xaf4dac(0x376)](_0x28ceec,_0x28ceec,_0x28ceec,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x3ec6ce['closePath'](),_0x124365[_0xaf4dac(0x1d3)]&&(_0x3ec6ce['save'](),_0x3ec6ce[_0xaf4dac(0x369)]=_0x124365['fill'],_0x124365['fillRule']===_0xaf4dac(0x182)?_0x3ec6ce[_0xaf4dac(0x1d3)](_0xaf4dac(0x182)):_0x3ec6ce['fill'](),_0x3ec6ce[_0xaf4dac(0x1e7)]());}var _0x24b8cf=class _0x337a06 extends _0x229561[_0x2444bc(0x3bf)]{constructor(_0xf84a76,_0x92bc14){const _0x119add=_0x2444bc;super(_0xf84a76,_0x92bc14),_0x34d1c1(this,'color',void 0x0),_0x34d1c1(this,_0x119add(0x2bf),void 0x0),this[_0x119add(0x284)]=_0x92bc14==null?void 0x0:_0x92bc14[_0x119add(0x284)],this['text']=_0x92bc14==null?void 0x0:_0x92bc14[_0x119add(0x2bf)];}static[_0x2444bc(0x3e5)](_0x16fd25,_0x5555c2){const _0x2ab842=_0x2444bc;let {text:_0x2df792,color:_0x20fd07}=_0x5555c2;_0x16fd25['save'](),_0x16fd25['font']=_0x2ab842(0x1c0);let _0xb30fc2=_0x16fd25['measureText'](_0x2df792)[_0x2ab842(0x391)];if(_0x1db1d9(_0x16fd25,{'height':0x14,'radius':0x4,'width':Math['min'](_0xb30fc2+0x8,0xc8),'fill':_0x20fd07,'evented':!0x1}),_0x16fd25['fillStyle']='#FFF',_0xb30fc2>0xc0){let _0x495ff5='',_0xef3838=0x0;for(let _0xf0a411 of _0x2df792){let _0x5a3153=_0x16fd25[_0x2ab842(0x326)](_0xf0a411)['width'];if(_0xef3838+_0x5a3153<=0xc0-_0x16fd25['measureText']('...')[_0x2ab842(0x391)])_0x495ff5+=_0xf0a411,_0xef3838+=_0x5a3153;else{_0x495ff5+=_0x2ab842(0x243);break;}}_0x16fd25[_0x2ab842(0x22a)](_0x495ff5,0x4,0xf);}else _0x16fd25[_0x2ab842(0x22a)](_0x2df792,0x4,0xf);_0x16fd25[_0x2ab842(0x1e7)]();}[_0x2444bc(0x3ef)](_0x1e9327){const _0x597a3c=_0x2444bc;_0x337a06[_0x597a3c(0x3e5)](_0x1e9327,this);}};let _0xff85b7=_0x2444bc(0x3f7);var _0x1b469c=class{constructor(_0x942eb2,_0x419172,_0x4eb404,_0x3468e8){const _0x32ca68=_0x2444bc;this['_cursor']=_0x942eb2,this[_0x32ca68(0x3ff)]=_0x419172,this['_docSkeleton']=_0x4eb404,this['_document']=_0x3468e8,_0x34d1c1(this,_0x32ca68(0x3d9),[]),_0x34d1c1(this,_0x32ca68(0x3eb),null),_0x34d1c1(this,_0x32ca68(0x237),null),_0x34d1c1(this,'_anchorDot',null),_0x34d1c1(this,'_hideTimer',null),_0x34d1c1(this,_0x32ca68(0x3c6),null),this['_render']();}set['_hover'](_0x1bd91a){const _0x1e2177=_0x2444bc;_0x1bd91a?(this['_anchorDot']&&this['_anchorDot'][_0x1e2177(0x2c3)](),this[_0x1e2177(0x237)]&&this[_0x1e2177(0x237)]['show']()):(this[_0x1e2177(0x28b)]&&this[_0x1e2177(0x28b)]['show'](),this[_0x1e2177(0x237)]&&this['_textBubble'][_0x1e2177(0x2c3)]());}[_0x2444bc(0x3d1)](){const _0x36f9d8=_0x2444bc;for(let _0xebfdfe of this[_0x36f9d8(0x3d9)])_0xebfdfe['dispose']();this[_0x36f9d8(0x237)]&&this[_0x36f9d8(0x237)]['dispose'](),this['_anchorDot']&&this['_anchorDot']['dispose'](),this['_anchor']&&this[_0x36f9d8(0x3eb)][_0x36f9d8(0x3d1)](),this[_0x36f9d8(0x3c6)]&&this[_0x36f9d8(0x3c6)]();}['_render'](){const _0x2d2ca6=_0x2444bc;let {_docSkeleton:_0x247013,_document:_0x199ba8}=this,{color:_0x49ae97,name:_0x3f4f80,ranges:_0xf3a37e}=this[_0x2d2ca6(0x24f)],_0x5a1725=_0x199ba8[_0x2d2ca6(0x173)](),{docsLeft:_0x3f473e,docsTop:_0x3708bc}=_0x5a1725,_0x125dcc=new _0x3733f8['NodePositionConvertToCursor'](_0x5a1725,_0x247013);for(let {startOffset:_0x4e1364,endOffset:_0x57ed1e,rangeType:_0x223e07,segmentId:_0x426e3c,segmentPage:_0x83b598,collapsed:_0x214dfd,isActive:_0x3dc28e}of _0xf3a37e){let _0x54d6ee=_0x247013[_0x2d2ca6(0x265)](_0x4e1364,!0x0,_0x426e3c,_0x83b598),_0x55f911=_0x247013[_0x2d2ca6(0x265)](_0x57ed1e,!0x0,_0x426e3c,_0x83b598);if(_0x55f911==null&&(_0x55f911=_0x247013[_0x2d2ca6(0x265)](_0x57ed1e-0x1,!0x1,_0x426e3c,_0x83b598)),_0x3dc28e){let {contentBoxPointGroup:_0x5f548a}=_0x125dcc[_0x2d2ca6(0x249)](_0x55f911,_0x55f911);if(_0x5f548a[_0x2d2ca6(0x1ae)]===0x0)continue;this[_0x2d2ca6(0x40c)](_0x49ae97,_0x5f548a,_0x3f473e,_0x3708bc,_0x3f4f80),this[_0x2d2ca6(0x3c6)]=this[_0x2d2ca6(0x1f5)]();}if(_0x54d6ee&&_0x55f911){if(_0x223e07===_0x430976[_0x2d2ca6(0x336)][_0x2d2ca6(0x1c4)]){var _0x2eff5f;let {pointGroup:_0x212660}=(_0x2eff5f=new _0x3733f8[(_0x2d2ca6(0x2c6))](_0x5a1725,_0x247013)[_0x2d2ca6(0x249)](_0x54d6ee,_0x55f911))==null?{}:_0x2eff5f;if(_0x212660==null||_0x212660[_0x2d2ca6(0x1ae)]===0x0)continue;this['_drawRectRange'](_0x49ae97,_0x212660,_0x3f473e,_0x3708bc);}else{if(!_0x214dfd){let {borderBoxPointGroup:_0x1a60f4}=_0x125dcc[_0x2d2ca6(0x249)](_0x54d6ee,_0x55f911);if(_0x1a60f4[_0x2d2ca6(0x1ae)]===0x0)continue;this['_drawTextRange'](_0x49ae97,_0x1a60f4,_0x3f473e,_0x3708bc);}}}}}[_0x2444bc(0x40c)](_0x399196,_0x4f570a,_0xcaadd9,_0xedd659,_0x307e37){const _0x409a8e=_0x2444bc;let {left:_0x336118,top:_0x2ada26,height:_0x48a4ea}=this['_getAnchorBounding'](_0x4f570a),_0x207c6b=1.5/this['_getScale'](),_0x2e5a4c=new _0x229561[(_0x409a8e(0x2db))](_0xff85b7+(0x0,_0x430976[_0x409a8e(0x16b)])(0x6),{'left':_0x336118+_0xcaadd9-_0x207c6b,'top':_0x2ada26+_0xedd659,'height':_0x48a4ea,'width':1.5,'fill':_0x399196||(0x0,_0x229561[_0x409a8e(0x2dd)])(_0x430976[_0x409a8e(0x3cc)][_0x409a8e(0x28d)],0x0),'strokeWidth':_0x207c6b,'stroke':_0x409a8e(0x1f6),'evented':!0x0});this[_0x409a8e(0x3eb)]=_0x2e5a4c,this[_0x409a8e(0x3ff)][_0x409a8e(0x3a7)](_0x2e5a4c,_0x3733f8[_0x409a8e(0x183)]);let _0x3f03c5=new _0x229561[(_0x409a8e(0x2db))](_0xff85b7+(0x0,_0x430976[_0x409a8e(0x16b)])(0x6),{'left':_0x336118+_0xcaadd9-_0x207c6b,'top':_0x2ada26+_0xedd659-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x399196||(0x0,_0x229561[_0x409a8e(0x2dd)])(_0x430976[_0x409a8e(0x3cc)][_0x409a8e(0x28d)],0x0),'strokeWidth':0x0,'stroke':_0x399196||(0x0,_0x229561[_0x409a8e(0x2dd)])(_0x430976['COLORS']['black'],0x0),'evented':!0x1});this[_0x409a8e(0x28b)]=_0x3f03c5,this['_scene'][_0x409a8e(0x3a7)](_0x3f03c5,_0x3733f8[_0x409a8e(0x183)]);let _0x255a67=new _0x24b8cf(_0xff85b7+(0x0,_0x430976[_0x409a8e(0x16b)])(0x6),{'left':_0x336118+_0xcaadd9-_0x207c6b,'top':_0x2ada26+_0xedd659-0x14,'text':_0x307e37,'color':_0x399196});this[_0x409a8e(0x237)]=_0x255a67,this[_0x409a8e(0x3ff)][_0x409a8e(0x3a7)](_0x255a67,_0x3733f8[_0x409a8e(0x183)]),this[_0x409a8e(0x3e7)]=!0x1;}[_0x2444bc(0x1f5)](){const _0x1a3264=_0x2444bc;let _0x4f2a04=this[_0x1a3264(0x3eb)][_0x1a3264(0x305)][_0x1a3264(0x195)](()=>{const _0x3c328e=_0x1a3264;this[_0x3c328e(0x3e7)]=!0x0;}),_0x22cf34=this[_0x1a3264(0x3eb)]['onPointerLeave$'][_0x1a3264(0x195)](()=>{const _0x30ba95=_0x1a3264;this[_0x30ba95(0x181)]&&clearTimeout(this[_0x30ba95(0x181)]),this[_0x30ba95(0x181)]=setTimeout(()=>{const _0x1849f9=_0x30ba95;this[_0x1849f9(0x3e7)]=!0x1;},0x7d0);});return()=>{const _0x11865b=_0x1a3264;_0x4f2a04[_0x11865b(0x3a0)](),_0x22cf34[_0x11865b(0x3a0)]();};}[_0x2444bc(0x2b4)](_0x56b9b0,_0x53c124,_0x93b563,_0x351169){const _0x2dc2c9=_0x2444bc;let _0x4f05d1=0.2,_0x3fc9ad=new _0x430976[(_0x2dc2c9(0x360))](_0x56b9b0)[_0x2dc2c9(0x1e9)](_0x4f05d1)['toRgbString'](),_0x5bf9ec=new _0x229561['RegularPolygon'](_0x2dc2c9(0x17e)+(0x0,_0x430976[_0x2dc2c9(0x16b)])(0x6),{'pointsGroup':_0x53c124,'fill':_0x3fc9ad||(0x0,_0x229561[_0x2dc2c9(0x2dd)])(_0x430976['COLORS']['black'],_0x4f05d1),'left':_0x93b563,'top':_0x351169,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x2dc2c9(0x3d9)][_0x2dc2c9(0x2fd)](_0x5bf9ec),this[_0x2dc2c9(0x3ff)][_0x2dc2c9(0x3a7)](_0x5bf9ec,_0x3733f8[_0x2dc2c9(0x183)]);}[_0x2444bc(0x32c)](_0x17be29,_0x4b67ca,_0x129c1b,_0x4a9cb7){const _0xb2ec7b=_0x2444bc;let _0x216998=0.2,_0x45459f=new _0x430976[(_0xb2ec7b(0x360))](_0x17be29)[_0xb2ec7b(0x1e9)](_0x216998)[_0xb2ec7b(0x1f0)](),_0x385b89=new _0x229561[(_0xb2ec7b(0x1ad))](_0xb2ec7b(0x33f)+(0x0,_0x430976[_0xb2ec7b(0x16b)])(0x6),{'pointsGroup':_0x4b67ca,'fill':_0x45459f||(0x0,_0x229561['getColor'])(_0x430976[_0xb2ec7b(0x3cc)][_0xb2ec7b(0x28d)],_0x216998),'left':_0x129c1b,'top':_0x4a9cb7,'evented':!0x1,'debounceParentDirty':!0x1});this[_0xb2ec7b(0x3d9)][_0xb2ec7b(0x2fd)](_0x385b89),this['_scene']['addObject'](_0x385b89,_0x3733f8[_0xb2ec7b(0x183)]);}[_0x2444bc(0x29b)](_0x33c9da){let _0xd5aae8=_0x33c9da[0x0],_0x4806e6=_0xd5aae8[0x0],_0x1e2f91=_0xd5aae8[0x2],{x:_0x5e387b,y:_0x1b3f48}=_0x4806e6,{x:_0x46ea9b,y:_0x190d4b}=_0x1e2f91;return{'left':_0x5e387b,'top':_0x1b3f48,'width':_0x46ea9b-_0x5e387b,'height':_0x190d4b-_0x1b3f48};}['_getScale'](){const _0xdbf45b=_0x2444bc;let {scaleX:_0x333a6b,scaleY:_0xa92b4e}=this['_scene'][_0xdbf45b(0x205)]();return Math[_0xdbf45b(0x1d1)](_0x333a6b,_0xa92b4e);}};let _0x5b9eec=class extends _0x430976[_0x2444bc(0x1c2)]{constructor(_0x16ffa1,_0x4aa429,_0x106b24,_0x3de8aa,_0xf71bdf){const _0x549eaf=_0x2444bc;super(),this[_0x549eaf(0x432)]=_0x16ffa1,this[_0x549eaf(0x2bc)]=_0x4aa429,this['_collabCursorController']=_0x106b24,this[_0x549eaf(0x42e)]=_0x3de8aa,this['_themeService']=_0xf71bdf,_0x34d1c1(this,_0x549eaf(0x2ac),[]),_0x34d1c1(this,'_cursors',[]),this['_init']();}[_0x2444bc(0x1dd)](){const _0x4eaf06=_0x2444bc;let _0x3b830f=this['_context']['unitId'],_0x146819=this[_0x4eaf06(0x2bc)];this['disposeWithMe']((0x0,_0x31275f[_0x4eaf06(0x23d)])([this['_collabCursorController']['getCollabCursors$'](_0x3b830f),this[_0x4eaf06(0x187)]['currentTheme$']])[_0x4eaf06(0x1e6)]((0x0,_0xdec434[_0x4eaf06(0x404)])(([_0x1bd7e4,_0x31a2f6])=>({'skeleton':_0x146819[_0x4eaf06(0x30f)](),'cursors':[..._0x1bd7e4[_0x4eaf06(0x213)]()][_0x4eaf06(0x211)](_0x214cb2=>({..._0x214cb2,'color':this[_0x4eaf06(0x187)]['getColorFromTheme'](_0x214cb2['color'])}))})))[_0x4eaf06(0x274)](_0x199caf=>{const _0x17dd20=_0x4eaf06;if(this[_0x17dd20(0x421)](),_0x199caf){let {skeleton:_0x24326c,cursors:_0x112fed}=_0x199caf;this[_0x17dd20(0x2f9)](_0x24326c,_0x112fed);}})),this[_0x4eaf06(0x2d8)](),this[_0x4eaf06(0x2c8)]();}[_0x2444bc(0x2f9)](_0x2a69c8,_0x37dc3c){const _0x48e0ed=_0x2444bc;let {scene:_0x203e28,mainComponent:_0x1d1bad}=this[_0x48e0ed(0x432)],_0x2a8847=_0x37dc3c[_0x48e0ed(0x404)](_0x5d2383=>new _0x1b469c(_0x5d2383,_0x203e28,_0x2a69c8,_0x1d1bad));this[_0x48e0ed(0x2ac)]=_0x2a8847,this['_cursors']=_0x37dc3c;}[_0x2444bc(0x3ed)](){const _0x5ac839=_0x2444bc;this[_0x5ac839(0x421)]();let {scene:_0x28997f,mainComponent:_0x383f5b}=this['_context'],_0x116fe1=this[_0x5ac839(0x2bc)][_0x5ac839(0x30f)](),_0x181b06=this['_cursors']['map'](_0x3f4ab8=>new _0x1b469c(_0x3f4ab8,_0x28997f,_0x116fe1,_0x383f5b));this[_0x5ac839(0x2ac)]=_0x181b06;}[_0x2444bc(0x421)](){const _0x3e5625=_0x2444bc;this[_0x3e5625(0x2ac)][_0x3e5625(0x380)](_0x40d2fe=>_0x40d2fe['dispose']()),this['_cursorShapes']=[];}[_0x2444bc(0x2c8)](){const _0x3ddb77=_0x2444bc;let _0x546f8e=[_0x3733f8[_0x3ddb77(0x44c)]['id']];this[_0x3ddb77(0x2f8)](this['_commandService'][_0x3ddb77(0x1b3)](_0x15d9a5=>{const _0x119561=_0x3ddb77;_0x546f8e[_0x119561(0x448)](_0x15d9a5['id'])&&_0x15d9a5['params'][_0x119561(0x2c1)]===this[_0x119561(0x432)]['unitId']&&this[_0x119561(0x3ed)]();}));}[_0x2444bc(0x2d8)](){const _0x7242b5=_0x2444bc;this['disposeWithMe']((0x0,_0x430976['fromEventSubject'])(this[_0x7242b5(0x432)][_0x7242b5(0x32b)][_0x7242b5(0x447)])[_0x7242b5(0x1e6)]((0x0,_0xdec434['filter'])(_0x118abd=>_0x118abd['type']===_0x229561['TRANSFORM_CHANGE_OBSERVABLE_TYPE'][_0x7242b5(0x325)]),(0x0,_0xdec434[_0x7242b5(0x2f2)])(0x10))[_0x7242b5(0x274)](()=>{const _0x64f07f=_0x7242b5;this[_0x64f07f(0x3ed)]();}));}};_0x5b9eec=_0x4e0ded([_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x15b933[_0x2444bc(0x276)])),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x35fdec)),_0x23d40f(0x3,_0x430976['ICommandService']),_0x23d40f(0x4,(0x0,_0x430976['Inject'])(_0x430976[_0x2444bc(0x16d)]))],_0x5b9eec);var _0x102c6d=class extends _0x229561['Shape']{constructor(_0xf2b8fa,_0x23a567){const _0x122920=_0x2444bc;if(super(_0xf2b8fa,_0x23a567),_0x34d1c1(this,_0x122920(0x1b0),void 0x0),_0x34d1c1(this,_0x122920(0x3a9),!0x1),_0x34d1c1(this,_0x122920(0x44d),void 0x0),_0x34d1c1(this,'_name',''),_0x34d1c1(this,_0x122920(0x329),'top'),_0x34d1c1(this,'_backgroundColor',void 0x0),_0x34d1c1(this,_0x122920(0x428),void 0x0),_0x34d1c1(this,_0x122920(0x3ca),void 0x0),_0x34d1c1(this,_0x122920(0x1bc),0x4),_0x34d1c1(this,_0x122920(0x3fa),void 0x0),_0x34d1c1(this,_0x122920(0x2a5),void 0x0),_0x34d1c1(this,_0x122920(0x3df),!0x0),_0x34d1c1(this,_0x122920(0x255),0x0),_0x23a567){var _0x4655e1;if(this[_0x122920(0x24e)](_0x23a567),_0x23a567['highlight']&&((_0x4655e1=_0x23a567[_0x122920(0x34f)])==null?this['_highlightSecond']:_0x4655e1)){var _0x454d15;this[_0x122920(0x2d5)]((_0x454d15=_0x23a567['highlightSecond'])==null?this['_highlightSecond']:_0x454d15);}}this['onPointerEnter$'][_0x122920(0x195)](()=>this[_0x122920(0x24e)]({'hovered':!0x0})),this[_0x122920(0x1ed)][_0x122920(0x195)](()=>this[_0x122920(0x24e)]({'hovered':!0x1}));}[_0x2444bc(0x285)](_0x5f2807){const _0x2747b0=_0x2444bc;this[_0x2747b0(0x255)]=_0x5f2807;}[_0x2444bc(0x24e)](_0x9cdf04){const _0x20528e=_0x2444bc;var _0x548e35,_0x1269aa,_0x236820,_0x3778c0,_0x3d6dfb,_0x225c27,_0xc67e3a;this[_0x20528e(0x1b0)]=(_0x548e35=_0x9cdf04[_0x20528e(0x284)])==null?this['_color']:_0x548e35,this[_0x20528e(0x3a9)]=(_0x1269aa=_0x9cdf04[_0x20528e(0x1b8)])==null?this['_hovered']:_0x1269aa,this[_0x20528e(0x44d)]=(_0x236820=_0x9cdf04['range'])==null?this[_0x20528e(0x44d)]:_0x236820,this[_0x20528e(0x445)]=(_0x3778c0=_0x9cdf04['name'])==null?this[_0x20528e(0x445)]:_0x3778c0,this[_0x20528e(0x329)]=(_0x3d6dfb=_0x9cdf04[_0x20528e(0x31c)])==null?this[_0x20528e(0x329)]:_0x3d6dfb,this[_0x20528e(0x438)]=(_0x225c27=_0x9cdf04[_0x20528e(0x18e)])==null?this[_0x20528e(0x438)]:_0x225c27,this['_showText']=(_0xc67e3a=_0x9cdf04[_0x20528e(0x3cf)])==null?this[_0x20528e(0x428)]:_0xc67e3a,_0x9cdf04[_0x20528e(0x34f)]!==void 0x0&&(this[_0x20528e(0x1bc)]=_0x9cdf04[_0x20528e(0x34f)]),_0x9cdf04[_0x20528e(0x3a1)]!==void 0x0&&(this[_0x20528e(0x3ca)]=_0x9cdf04[_0x20528e(0x3a1)]),_0x9cdf04[_0x20528e(0x3a5)]!==void 0x0&&(this['_offsetY']=_0x9cdf04[_0x20528e(0x3a5)]),this[_0x20528e(0x2fe)]({'width':_0x9cdf04[_0x20528e(0x391)],'height':_0x9cdf04[_0x20528e(0x2dc)]});}[_0x2444bc(0x31d)](_0x86f7aa){const _0x15baf6=_0x2444bc;let {row:_0x1e39fc,column:_0x4fcb42}=_0x86f7aa;if(_0x1e39fc>=this['_range'][_0x15baf6(0x400)]&&_0x1e39fc<=this[_0x15baf6(0x44d)]['endRow']&&_0x4fcb42>=this[_0x15baf6(0x44d)][_0x15baf6(0x316)]&&_0x4fcb42<=this['_range'][_0x15baf6(0x228)]){this[_0x15baf6(0x24e)]({'hovered':!0x0});return;}this['setShapeProps']({'hovered':!0x1});}[_0x2444bc(0x2d5)](_0x15158a){const _0xf6c714=_0x2444bc;this[_0xf6c714(0x236)](),this[_0xf6c714(0x3df)]=!0x0,this[_0xf6c714(0x2a5)]=window['setInterval'](()=>{const _0x5d03e9=_0xf6c714;this[_0x5d03e9(0x3df)]=!this['_isBlinkVisible'],this[_0x5d03e9(0x2bd)](!0x0);},0x1f4),this[_0xf6c714(0x3fa)]=window[_0xf6c714(0x38a)](()=>{const _0x8b31b0=_0xf6c714;this[_0x8b31b0(0x236)](),this[_0x8b31b0(0x3df)]=!0x0,this[_0x8b31b0(0x2bd)](!0x0);},_0x15158a*0x3e8);}['_stopBlinking'](){const _0x39ce04=_0x2444bc;this['_blinkIntervalTimer']&&(window['clearInterval'](this[_0x39ce04(0x2a5)]),this[_0x39ce04(0x2a5)]=void 0x0),this[_0x39ce04(0x3fa)]&&(window[_0x39ce04(0x3ee)](this['_blinkTimer']),this[_0x39ce04(0x3fa)]=void 0x0);}[_0x2444bc(0x3ba)](_0x291f26){return!0x1;}['dispose'](){const _0x514cc4=_0x2444bc;this[_0x514cc4(0x236)](),super['dispose']();}[_0x2444bc(0x3ef)](_0xe6dc24){const _0x33e4aa=_0x2444bc;let _0x1f08f2=this['_color'],_0x2f74f6=this[_0x33e4aa(0x438)];if(this[_0x33e4aa(0x3ca)]&&!this[_0x33e4aa(0x3df)]&&(_0x1f08f2=this[_0x33e4aa(0x2ee)](this[_0x33e4aa(0x1b0)]),_0x2f74f6=this['_backgroundColor']?this[_0x33e4aa(0x2ee)](this[_0x33e4aa(0x438)]):void 0x0),_0x229561['Rect'][_0x33e4aa(0x3e5)](_0xe6dc24,{'width':this[_0x33e4aa(0x391)],'height':this['height'],'strokeWidth':this[_0x33e4aa(0x2e2)]||1.5,'stroke':_0x1f08f2,'evented':!0x1,'fill':_0x2f74f6}),this['_hovered']||this['_showText']){var _0x146d02;_0xe6dc24[_0x33e4aa(0x34e)](),_0xe6dc24[_0x33e4aa(0x3dd)](0x1,0x0,0x0,0x1,this[_0x33e4aa(0x391)],(this['_labelPosition']==='bottom'?0x0:-0x14)+((_0x146d02=this[_0x33e4aa(0x255)])==null?0x0:_0x146d02)),_0x24b8cf['drawWith'](_0xe6dc24,{'text':this['_name'],'color':_0x1f08f2}),_0xe6dc24[_0x33e4aa(0x1e7)]();}}[_0x2444bc(0x2ee)](_0x19dbea){const _0x44238a=_0x2444bc;return _0x19dbea[_0x44238a(0x1d2)]('#')?_0x44238a(0x2c2)+Number['parseInt'](_0x19dbea[_0x44238a(0x425)](0x1,0x3),0x10)+',\x20'+Number['parseInt'](_0x19dbea[_0x44238a(0x425)](0x3,0x5),0x10)+',\x20'+Number['parseInt'](_0x19dbea[_0x44238a(0x425)](0x5,0x7),0x10)+_0x44238a(0x2f0):_0x19dbea['startsWith'](_0x44238a(0x346))?_0x19dbea[_0x44238a(0x29e)](/[\d.]+\)$/g,_0x44238a(0x2b7)):_0x19dbea[_0x44238a(0x1d2)](_0x44238a(0x267))?_0x19dbea[_0x44238a(0x29e)](_0x44238a(0x267),_0x44238a(0x346))['replace'](')',_0x44238a(0x2f0)):_0x19dbea;}};let _0x525a2f=class extends _0x430976[_0x2444bc(0x1c2)]{constructor(_0x914a95,_0x2e38f7,_0x3190c6,_0x433f09){const _0x325805=_0x2444bc;super(),this['_context']=_0x914a95,this[_0x325805(0x29c)]=_0x2e38f7,this[_0x325805(0x256)]=_0x3190c6,this[_0x325805(0x187)]=_0x433f09,_0x34d1c1(this,_0x325805(0x296),new Set()),_0x34d1c1(this,_0x325805(0x435),null),_0x34d1c1(this,_0x325805(0x186),null),this[_0x325805(0x1dd)]();}['_init'](){const _0x3620d9=_0x2444bc;this[_0x3620d9(0x29c)][_0x3620d9(0x1b9)][_0x3620d9(0x1e6)]((0x0,_0xdec434[_0x3620d9(0x3a6)])(this['dispose$']),(0x0,_0xdec434['switchMap'])(_0x5c4d34=>{const _0x27f796=_0x3620d9;if(_0x5c4d34){let _0x49f5f7=_0x5c4d34[_0x27f796(0x1bf)];return(0x0,_0x31275f[_0x27f796(0x23d)])(this[_0x27f796(0x256)][_0x27f796(0x440)](this[_0x27f796(0x432)][_0x27f796(0x2c1)]),this[_0x27f796(0x187)]['currentTheme$'])[_0x27f796(0x1e6)]((0x0,_0xdec434[_0x27f796(0x404)])(([_0x11681f,_0x13fb83])=>{const _0x2f4204=_0x27f796;let _0x11149a=new Map();return _0x11681f[_0x2f4204(0x380)]((_0x426986,_0x476c8f)=>{const _0x26eb08=_0x2f4204;if(_0x426986['sheetID']===_0x49f5f7){let _0x2f2941={..._0x426986};_0x2f2941[_0x26eb08(0x284)]=this['_themeService'][_0x26eb08(0x36f)](_0x426986['color']),_0x11149a[_0x26eb08(0x2da)](_0x476c8f,_0x2f2941);}}),{'skeleton':_0x5c4d34,'cursors':_0x11149a};}));}return(0x0,_0x31275f['of'])({'skeleton':null,'cursors':new Map()});}))[_0x3620d9(0x274)](({skeleton:_0x4c5d1f,cursors:_0x295668})=>{const _0x5acd5d=_0x3620d9;this[_0x5acd5d(0x421)](),_0x4c5d1f&&this['_updateCollabCursors'](_0x4c5d1f,_0x295668);}),this[_0x3620d9(0x2f8)](this[_0x3620d9(0x29c)][_0x3620d9(0x1b9)][_0x3620d9(0x1e6)]((0x0,_0xdec434[_0x3620d9(0x3a6)])(this['dispose$']))[_0x3620d9(0x274)](_0x5d48d2=>{const _0x5b4c5c=_0x3620d9;var _0x281213;if(_0x5d48d2==null)return;(_0x281213=this[_0x5b4c5c(0x186)])==null||_0x281213[_0x5b4c5c(0x3a0)](),this[_0x5b4c5c(0x186)]=null;let {skeleton:_0x1f563a}=_0x5d48d2,{scene:_0xeee100}=this['_context'];this[_0x5b4c5c(0x186)]=_0xeee100[_0x5b4c5c(0x1ec)][_0x5b4c5c(0x195)]((0x0,_0x430976['debounce'])(_0x33032e=>{const _0x33ca2e=_0x5b4c5c;var _0x1ff27b,_0xc71957;let {offsetX:_0x4db543,offsetY:_0x1555e1}=_0x33032e,{x:_0x17e122,y:_0x52efdf}=_0xeee100[_0x33ca2e(0x1e2)](_0x229561['Vector2']['FromArray']([_0x4db543,_0x1555e1])),{scaleX:_0x22edbb,scaleY:_0x549485}=_0xeee100[_0x33ca2e(0x205)](),_0x1c17b8=_0xeee100[_0x33ca2e(0x347)](_0x229561['SHEET_VIEWPORT_KEY'][_0x33ca2e(0x408)]),_0x53151e=_0xeee100['getVpScrollXYInfoByPosToVp'](_0x229561[_0x33ca2e(0x333)][_0x33ca2e(0x1fa)]([_0x17e122,_0x52efdf]),_0x1c17b8),_0x4776b7=_0x1f563a[_0x33ca2e(0x423)](_0x4db543,_0x1555e1,_0x22edbb,_0x549485,_0x53151e);((_0x1ff27b=this['_lastPointer'])==null?void 0x0:_0x1ff27b['column'])===_0x4776b7['column']&&((_0xc71957=this[_0x33ca2e(0x435)])==null?void 0x0:_0xc71957['row'])===_0x4776b7[_0x33ca2e(0x31f)]||this[_0x33ca2e(0x296)][_0x33ca2e(0x380)](_0x58f44a=>{_0x58f44a['onMouseMove'](_0x4776b7);});},0x64));})),this[_0x3620d9(0x2f8)]((0x0,_0x430976[_0x3620d9(0x3d7)])(()=>{const _0x3261f1=_0x3620d9;var _0x288191;(_0x288191=this['_pointerMoveDisposable'])==null||_0x288191[_0x3261f1(0x3a0)](),this['_pointerMoveDisposable']=null;}));}['_updateCollabCursors'](_0x4afe52,_0x49c95b){const _0x23d126=_0x2444bc;let _0x258b52=this[_0x23d126(0x29c)][_0x23d126(0x372)]();if(!_0x258b52)return;let _0x4625cb=this['_getSheetObject']();if(!_0x4625cb)return;this[_0x23d126(0x296)][_0x23d126(0x380)](_0x4356f6=>{const _0xd46ea3=_0x23d126;_0x4356f6[_0xd46ea3(0x2bd)]();});let {scene:_0x33275f}=_0x4625cb,_0x52d276=_0x2838a4(Array['from'](_0x49c95b[_0x23d126(0x213)]()))[_0x23d126(0x404)](_0x540fc7=>{const _0x3b00ca=_0x23d126;let {color:_0x2e1680,range:_0x5e33b0,name:_0x297eee,selection:_0x5b5edb,sheetID:_0xad60c0}=_0x540fc7,{startColumn:_0x86c67f,startRow:_0x2423a5,endColumn:_0x32028c,endRow:_0x5616fe}=_0x5e33b0,_0x503262=(0x0,_0x3430f3[_0x3b00ca(0x268)])(_0x2423a5,_0x86c67f,_0x33275f,_0x258b52),_0x143020=(0x0,_0x3430f3['getCoordByCell'])(_0x5616fe,_0x32028c,_0x33275f,_0x258b52),{columnHeaderHeightAndMarginTop:_0x2b4cfb}=_0x258b52,{startX:_0x36a9da,startY:_0x168650}=_0x503262,{endX:_0x2a3fc0,endY:_0xaa0dbc}=_0x143020,_0x2de099=_0x2a3fc0-_0x36a9da,_0x435e01=_0xaa0dbc-_0x168650;return new _0x102c6d(_0x297eee,{'labelPosition':_0x168650-_0x2b4cfb>=0x14?_0x3b00ca(0x3aa):'bottom','sheetID':_0xad60c0,'range':_0x5e33b0,'color':_0x2e1680,'name':_0x297eee,'selection':_0x5b5edb,'left':_0x36a9da,'top':_0x168650,'width':_0x2de099,'height':_0x435e01,'evented':!0x1,'zIndex':0x1389});});_0x33275f[_0x23d126(0x374)](_0x52d276,0x1),this[_0x23d126(0x296)]=new Set(_0x52d276);}[_0x2444bc(0x421)](){const _0x59bdcc=_0x2444bc;var _0x443a93;(_0x443a93=this[_0x59bdcc(0x296)])==null||_0x443a93[_0x59bdcc(0x380)](_0x50f02b=>_0x50f02b[_0x59bdcc(0x3d1)]());}[_0x2444bc(0x2a4)](){const _0x13760d=_0x2444bc;return(0x0,_0x3430f3[_0x13760d(0x396)])(this[_0x13760d(0x432)][_0x13760d(0x1a2)],this[_0x13760d(0x432)]);}};_0x525a2f=_0x4e0ded([_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x3430f3[_0x2444bc(0x415)])),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x35fdec)),_0x23d40f(0x3,(0x0,_0x430976['Inject'])(_0x430976[_0x2444bc(0x16d)]))],_0x525a2f);function _0x2838a4(_0x44886b){const _0x2f637a=_0x2444bc;let _0x393d82=new Map();return _0x44886b[_0x2f637a(0x380)](_0x49add8=>{const _0x2c9a61=_0x2f637a;if(_0x393d82[_0x2c9a61(0x27b)](_0x49add8['selection'])){let _0xdb1be8=_0x393d82[_0x2c9a61(0x1a1)](_0x49add8[_0x2c9a61(0x29a)]);_0xdb1be8[_0x2c9a61(0x3b7)]+=',\x20'+_0x49add8[_0x2c9a61(0x3b7)];}else _0x393d82['set'](_0x49add8[_0x2c9a61(0x29a)],_0x49add8);}),Array[_0x2f637a(0x387)](_0x393d82[_0x2f637a(0x213)]());}let _0x527af8=class extends _0x430976[_0x2444bc(0x25a)]{constructor(_0x472be8,_0x18455b,_0x767221,_0x3016c0,_0x2cc636,_0x1ae0c6){const _0x21f901=_0x2444bc;super(),this[_0x21f901(0x41c)]=_0x472be8,this[_0x21f901(0x1ef)]=_0x18455b,this['_collaborationUIEventService']=_0x767221,this[_0x21f901(0x24b)]=_0x3016c0,this[_0x21f901(0x1f1)]=_0x2cc636,this[_0x21f901(0x3fc)]=_0x1ae0c6,this['_setupBeforeClosingHandler'](),this['_initEvent']();}[_0x2444bc(0x424)](){const _0xc69584=_0x2444bc;this[_0xc69584(0x2f8)](this['_beforeCloseService'][_0xc69584(0x3f3)](()=>{const _0x131547=_0xc69584;if(this[_0x131547(0x1ef)][_0x131547(0x2e8)][_0x131547(0x212)])return this[_0x131547(0x3fc)]['t'](_0x131547(0x3bd));}));}[_0x2444bc(0x3c4)](){const _0x343fc2=_0x2444bc;this[_0x343fc2(0x2f8)](this[_0x343fc2(0x1e3)][_0x343fc2(0x16a)][_0x343fc2(0x274)](_0x1284b2=>{const _0x28338b=_0x343fc2;_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)]['OTHER_CLIENT_EDITING']&&this[_0x28338b(0x24b)][_0x28338b(0x3d2)]({'type':_0x276ac3[_0x28338b(0x419)][_0x28338b(0x2cd)],'content':this[_0x28338b(0x3fc)]['t'](_0x28338b(0x169))}),_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)][_0x28338b(0x250)]&&this[_0x28338b(0x24b)][_0x28338b(0x3d2)]({'type':_0x276ac3[_0x28338b(0x419)][_0x28338b(0x2cd)],'content':this['_localeService']['t'](_0x28338b(0x366))}),_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)]['PERMISSION_DENIED']&&this[_0x28338b(0x1f1)][_0x28338b(0x3d2)]({'title':this[_0x28338b(0x3fc)]['t'](_0x28338b(0x298)),'content':this[_0x28338b(0x3fc)]['t'](_0x28338b(0x413)),'type':'error','duration':0x0}),_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)]['CONFLICT']&&this['_messageService'][_0x28338b(0x3d2)]({'type':_0x276ac3['MessageType'][_0x28338b(0x2b9)],'content':this[_0x28338b(0x3fc)]['t'](_0x28338b(0x366))+'('+_0x1284b2[_0x28338b(0x321)]+')'}),_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)][_0x28338b(0x2a7)]&&this['_messageService'][_0x28338b(0x3d2)]({'type':_0x276ac3[_0x28338b(0x419)][_0x28338b(0x2cd)],'content':this[_0x28338b(0x3fc)]['t'](_0x1284b2[_0x28338b(0x321)]||'')}),_0x1284b2['id']===_0x21dc5a['CollaborationUIEventId']['SOCKET_FAILED_RETRY']&&this[_0x28338b(0x24b)][_0x28338b(0x3d2)]({'type':_0x276ac3[_0x28338b(0x419)]['Warning'],'content':this['_localeService']['t'](_0x28338b(0x41e))}),_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)][_0x28338b(0x2ca)]&&this[_0x28338b(0x24b)][_0x28338b(0x3d2)]({'type':_0x276ac3[_0x28338b(0x419)][_0x28338b(0x2b9)],'content':this[_0x28338b(0x3fc)]['t'](_0x28338b(0x1da))}),_0x1284b2['id']===_0x21dc5a[_0x28338b(0x352)][_0x28338b(0x2be)]&&this['_messageService'][_0x28338b(0x3d2)]({'type':_0x276ac3[_0x28338b(0x419)][_0x28338b(0x2b9)],'content':this[_0x28338b(0x3fc)]['t'](_0x28338b(0x165))});}));}};_0x527af8=_0x4e0ded([_0x23d40f(0x0,_0x2f7572[_0x2444bc(0x39e)]),_0x23d40f(0x1,_0x21dc5a[_0x2444bc(0x3ae)]),_0x23d40f(0x2,(0x0,_0x430976['Inject'])(_0x21dc5a[_0x2444bc(0x252)])),_0x23d40f(0x3,_0x2f7572['IMessageService']),_0x23d40f(0x4,_0x2f7572['INotificationService']),_0x23d40f(0x5,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x21e)]))],_0x527af8);let _0x429e50={},_0x13a006=class{constructor(_0x251220,_0x938dc7){const _0x555ac8=_0x2444bc;this[_0x555ac8(0x434)]=_0x251220,this[_0x555ac8(0x44b)]=_0x938dc7;}[_0x2444bc(0x192)](_0x3afc15){const _0x1dc487=_0x2444bc;this[_0x1dc487(0x37c)](_0x3afc15),this[_0x1dc487(0x1c3)](_0x3afc15);}[_0x2444bc(0x180)](_0x1ef848){const _0x44d937=_0x2444bc;let {unitID:_0x364cb7}=_0x1ef848,{redoCache:_0x2159fe}=this[_0x44d937(0x44b)][_0x44d937(0x1be)](_0x364cb7)[_0x44d937(0x33c)](_0x3733f8[_0x44d937(0x18b)])['getUndoRedoMutationParamsCache']();if(_0x2159fe[_0x44d937(0x1ae)]===0x0)return _0x1ef848;let _0x8c6a22=_0x430976['Tools'][_0x44d937(0x2b3)](_0x1ef848[_0x44d937(0x193)][0x0]);for(let _0x182f1a=0x0;_0x182f1a<_0x2159fe[_0x44d937(0x1ae)];_0x182f1a++){let _0x15e155={'id':_0x44d937(0x214),'params':{..._0x2159fe[_0x182f1a]}},_0x508356=this[_0x44d937(0x434)][_0x44d937(0x2d2)](_0x8c6a22,_0x15e155,!0x1);if((0x0,_0xf33e7d[_0x44d937(0x302)])(_0x508356))throw _0x508356[_0x44d937(0x1df)];_0x8c6a22=_0x508356[_0x44d937(0x3c5)];}return{..._0x430976[_0x44d937(0x178)][_0x44d937(0x2b3)](_0x1ef848),'mutations':[_0x8c6a22]};}['_transformUndoRedoStack'](_0xa5ca4f){const _0x419439=_0x2444bc;let {unitID:_0x1f6c9e}=_0xa5ca4f,_0x11c0d3=this[_0x419439(0x44b)][_0x419439(0x1be)](_0x1f6c9e)[_0x419439(0x33c)](_0x3733f8[_0x419439(0x18b)]),{undoCache:_0x971f99,redoCache:_0x1bfd52}=_0x11c0d3[_0x419439(0x2cf)]();if(_0x971f99['length']===0x0||_0x1bfd52[_0x419439(0x1ae)]===0x0)return;let _0x22d821=[],_0x10ac64=[],_0xcf1766=_0x430976[_0x419439(0x178)][_0x419439(0x2b3)](_0xa5ca4f[_0x419439(0x193)][0x0]),_0xa6bc68=_0x430976['Tools'][_0x419439(0x2b3)](_0xa5ca4f[_0x419439(0x193)][0x0]);for(let _0x17b9d3=_0x971f99['length']-0x1;_0x17b9d3>=0x0;_0x17b9d3--){let _0x1b787c={'id':_0x419439(0x214),'params':{..._0x971f99[_0x17b9d3]}},_0x259357={'id':_0x419439(0x214),'params':{..._0x1bfd52[_0x17b9d3]}},_0x43d63e=this[_0x419439(0x434)][_0x419439(0x2d2)](_0xcf1766,_0x1b787c,!0x1),_0xbe642f=this[_0x419439(0x434)][_0x419439(0x2d2)](_0xa6bc68,_0x259357,!0x1);if((0x0,_0xf33e7d[_0x419439(0x302)])(_0x43d63e))throw _0x43d63e[_0x419439(0x1df)];if((0x0,_0xf33e7d[_0x419439(0x302)])(_0xbe642f))throw _0xbe642f['error'];_0x22d821[_0x419439(0x317)](_0x43d63e[_0x419439(0x1a9)][_0x419439(0x1ca)]),_0x10ac64['unshift'](_0xbe642f['m2Prime']['params']),_0xcf1766=_0x43d63e[_0x419439(0x3c5)],_0xa6bc68=_0xbe642f[_0x419439(0x3c5)];}_0x11c0d3[_0x419439(0x264)]({'undoCache':_0x22d821,'redoCache':_0x10ac64});}[_0x2444bc(0x1c3)](_0x4e9e2b){const _0x1a77ec=_0x2444bc;let {unitID:_0x1b4ebd}=_0x4e9e2b,_0x344432=this[_0x1a77ec(0x44b)][_0x1a77ec(0x1be)](_0x1b4ebd)[_0x1a77ec(0x33c)](_0x3733f8[_0x1a77ec(0x18b)]),_0x290f2b=_0x344432[_0x1a77ec(0x3bb)]();if(_0x290f2b==null)return;let _0x6d997b=[{'id':_0x1a77ec(0x214),'params':{'unitId':_0x4e9e2b[_0x1a77ec(0x177)],'actions':null,'textRanges':[_0x290f2b]}}],_0x5bbc8d=this[_0x1a77ec(0x434)][_0x1a77ec(0x309)](_0x4e9e2b,_0x6d997b);if(!(0x0,_0xf33e7d[_0x1a77ec(0x2af)])(_0x5bbc8d))throw _0x5bbc8d[_0x1a77ec(0x1df)];let _0x6d78fe=_0x5bbc8d[_0x1a77ec(0x1a9)][0x0][_0x1a77ec(0x1ca)]['textRanges'];Array['isArray'](_0x6d78fe)&&_0x6d78fe[_0x1a77ec(0x1ae)]&&_0x344432[_0x1a77ec(0x167)](_0x6d78fe[0x0]);}};_0x13a006=_0x4e0ded([_0x23d40f(0x0,_0xf33e7d[_0x2444bc(0x37b)]),_0x23d40f(0x1,_0x229561[_0x2444bc(0x223)])],_0x13a006);let _0x3640a8=class{constructor(_0x266c6d,_0x381d70,_0x589b07){const _0x1d7b37=_0x2444bc;this[_0x1d7b37(0x345)]=_0x266c6d,this[_0x1d7b37(0x434)]=_0x381d70,this[_0x1d7b37(0x2e4)]=_0x589b07;}[_0x2444bc(0x1b2)](_0x262e10){const _0x1e906b=_0x2444bc;this[_0x1e906b(0x310)](_0x262e10);}['transformRemoteChangeset'](_0x32af8c){const _0x58f2cf=_0x2444bc;let {unitID:_0xe1f1f}=_0x32af8c,{collaboration:_0x238e15}=this[_0x58f2cf(0x2e4)][_0x58f2cf(0x170)](_0xe1f1f);if(_0x238e15[_0x58f2cf(0x1ae)]===0x0)return _0x32af8c;let _0xed4145=_0x430976[_0x58f2cf(0x178)]['deepClone'](_0x32af8c[_0x58f2cf(0x193)][0x0]);for(let _0x4bdb3d=0x0;_0x4bdb3d<_0x238e15['length'];_0x4bdb3d++){let _0x325ec9={'id':_0x58f2cf(0x214),'params':{'unitId':_0x238e15[_0x4bdb3d]['unitId'],..._0x238e15[_0x4bdb3d][_0x58f2cf(0x3cd)]}},_0x512cb3=this[_0x58f2cf(0x434)][_0x58f2cf(0x2d2)](_0xed4145,_0x325ec9,!0x1);if((0x0,_0xf33e7d[_0x58f2cf(0x302)])(_0x512cb3))throw _0x512cb3[_0x58f2cf(0x1df)];_0xed4145=_0x512cb3[_0x58f2cf(0x3c5)];}return{..._0x430976[_0x58f2cf(0x178)]['deepClone'](_0x32af8c),'mutations':[_0xed4145]};}[_0x2444bc(0x310)](_0x4d2b40){const _0x169c01=_0x2444bc;let {unitID:_0x48e162}=_0x4d2b40,{history:_0x30c7e1,collaboration:_0x171275}=this['_docStateChangeManagerService'][_0x169c01(0x170)](_0x48e162);if(_0x30c7e1['length']===0x0&&_0x171275[_0x169c01(0x1ae)]===0x0)return;let _0x50f4e7=[],_0x140bad=[],_0x3f48b5=_0x430976[_0x169c01(0x178)][_0x169c01(0x2b3)](_0x4d2b40[_0x169c01(0x193)][0x0]),_0x1f463e=_0x430976[_0x169c01(0x178)][_0x169c01(0x2b3)](_0x4d2b40[_0x169c01(0x193)][0x0]);for(let _0x3fc204=_0x30c7e1[_0x169c01(0x1ae)]-0x1;_0x3fc204>=0x0;_0x3fc204--){let _0x431771={'id':_0x169c01(0x214),'params':{'unitId':_0x30c7e1[_0x3fc204][_0x169c01(0x2c1)],..._0x30c7e1[_0x3fc204][_0x169c01(0x174)]}},_0x2b0c33={'id':_0x169c01(0x214),'params':{'unitId':_0x30c7e1[_0x3fc204][_0x169c01(0x2c1)],..._0x30c7e1[_0x3fc204][_0x169c01(0x3cd)]}},_0x2ddaa3=this[_0x169c01(0x434)]['transformMutation'](_0x3f48b5,_0x431771,!0x1),_0x477300=this[_0x169c01(0x434)][_0x169c01(0x2d2)](_0x1f463e,_0x2b0c33,!0x1);if((0x0,_0xf33e7d[_0x169c01(0x302)])(_0x2ddaa3))throw _0x2ddaa3[_0x169c01(0x1df)];if((0x0,_0xf33e7d[_0x169c01(0x302)])(_0x477300))throw _0x477300[_0x169c01(0x1df)];_0x50f4e7[_0x169c01(0x317)]({..._0x30c7e1[_0x3fc204],'undoState':_0x2ddaa3[_0x169c01(0x1a9)][_0x169c01(0x1ca)],'redoState':_0x477300[_0x169c01(0x1a9)][_0x169c01(0x1ca)]}),_0x3f48b5=_0x2ddaa3[_0x169c01(0x3c5)],_0x1f463e=_0x477300[_0x169c01(0x3c5)];}_0x3f48b5=_0x430976[_0x169c01(0x178)]['deepClone'](_0x4d2b40[_0x169c01(0x193)][0x0]),_0x1f463e=_0x430976[_0x169c01(0x178)][_0x169c01(0x2b3)](_0x4d2b40[_0x169c01(0x193)][0x0]);for(let _0x34655e=_0x171275[_0x169c01(0x1ae)]-0x1;_0x34655e>=0x0;_0x34655e--){let _0x5b6ade={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x171275[_0x34655e][_0x169c01(0x2c1)],..._0x171275[_0x34655e][_0x169c01(0x174)]}},_0x1f9b83={'id':_0x169c01(0x214),'params':{'unitId':_0x171275[_0x34655e][_0x169c01(0x2c1)],..._0x171275[_0x34655e][_0x169c01(0x3cd)]}},_0x22e150=this[_0x169c01(0x434)][_0x169c01(0x2d2)](_0x3f48b5,_0x5b6ade,!0x1),_0x4a1fc9=this['_transformService'][_0x169c01(0x2d2)](_0x1f463e,_0x1f9b83,!0x1);if((0x0,_0xf33e7d[_0x169c01(0x302)])(_0x22e150))throw _0x22e150[_0x169c01(0x1df)];if((0x0,_0xf33e7d[_0x169c01(0x302)])(_0x4a1fc9))throw _0x4a1fc9['error'];_0x140bad[_0x169c01(0x317)]({..._0x171275[_0x34655e],'undoState':_0x22e150[_0x169c01(0x1a9)]['params'],'redoState':_0x4a1fc9[_0x169c01(0x1a9)]['params']}),_0x3f48b5=_0x22e150[_0x169c01(0x3c5)],_0x1f463e=_0x4a1fc9[_0x169c01(0x3c5)];}this['_docStateChangeManagerService']['setStateCache'](_0x48e162,{'history':_0x50f4e7,'collaboration':_0x140bad});}};_0x3640a8=_0x4e0ded([_0x23d40f(0x0,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x1,_0xf33e7d[_0x2444bc(0x37b)]),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x3733f8['DocStateChangeManagerService']))],_0x3640a8);let _0x225549=class{constructor(_0x124184,_0x4d4613){const _0x20930c=_0x2444bc;this[_0x20930c(0x345)]=_0x124184,this[_0x20930c(0x434)]=_0x4d4613;}[_0x2444bc(0x194)](_0x67fae3){const _0x2ae575=_0x2444bc;var _0x5e29db;let _0x1758b5=this[_0x2ae575(0x345)]['get'](_0x15b933[_0x2ae575(0x3f5)]),_0xe10df6=(_0x5e29db=_0x1758b5['getDocRanges']())==null?[]:_0x5e29db;if(_0xe10df6['length']===0x0)return;let _0x4a3a72=_0x67fae3['unitID'],_0x31f208=[{'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x4a3a72,'actions':null,'textRanges':_0xe10df6}}],_0x46dbc3=this[_0x2ae575(0x434)][_0x2ae575(0x309)](_0x67fae3,_0x31f208);if(!(0x0,_0xf33e7d[_0x2ae575(0x2af)])(_0x46dbc3))throw _0x46dbc3[_0x2ae575(0x1df)];let _0x2cf95e=_0x46dbc3['m2Prime'][0x0]['params']['textRanges'];Array[_0x2ae575(0x3c0)](_0x2cf95e)&&_0x2cf95e[_0x2ae575(0x1ae)]&&_0x1758b5[_0x2ae575(0x2df)](_0x2cf95e,{'unitId':_0x4a3a72,'subUnitId':_0x4a3a72},!0x1);}};_0x225549=_0x4e0ded([_0x23d40f(0x0,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x1,_0xf33e7d[_0x2444bc(0x37b)])],_0x225549);let _0x114747=class extends _0x430976[_0x2444bc(0x25a)]{constructor(_0x332dfc,_0x8bd5a3,_0x14debb,_0xace013,_0x27844d,_0x40891d,_0x27e120,_0x1aa441){const _0x120b4f=_0x2444bc;super(),this[_0x120b4f(0x2e4)]=_0x332dfc,this['_collaborationController']=_0x8bd5a3,this[_0x120b4f(0x248)]=_0x14debb,this[_0x120b4f(0x164)]=_0xace013,this['_docTransformSelectionsService']=_0x27844d,this[_0x120b4f(0x1ee)]=_0x40891d,this['_messageService']=_0x27e120,this[_0x120b4f(0x3fc)]=_0x1aa441,_0x34d1c1(this,'_status$',new _0x31275f[(_0x120b4f(0x1d0))](_0x21dc5a[_0x120b4f(0x2a8)][_0x120b4f(0x312)])),this[_0x120b4f(0x3a2)]();}[_0x2444bc(0x3a2)](){const _0x3be8de=_0x2444bc;this[_0x3be8de(0x2f8)](this[_0x3be8de(0x26e)][_0x3be8de(0x35e)][_0x3be8de(0x274)](_0x3c92bb=>{const _0x2c9485=_0x3be8de;let _0x4fc438=this[_0x2c9485(0x2e4)]['docStateChange$']['subscribe'](_0x37a4e5=>{const _0x5e8107=_0x2c9485;if(_0x37a4e5==null)return;let {unitId:_0x18a4be,redoState:_0x466067,commandId:_0x6b2768}=_0x37a4e5;if(_0x18a4be!==_0x3c92bb['unitID'])return;let _0x24e47f={'id':_0x6b2768,'type':_0x430976[_0x5e8107(0x40f)][_0x5e8107(0x209)],'params':{'unitId':_0x18a4be,'actions':_0x466067[_0x5e8107(0x36c)],'textRanges':null}};_0x3c92bb[_0x5e8107(0x1f8)](_0x24e47f);});_0x3c92bb[_0x2c9485(0x2f8)](_0x4fc438),_0x3c92bb instanceof _0x21dc5a[_0x2c9485(0x2a3)]&&_0x3c92bb['addHandlerCallback']({'onTransformIME':_0x1fa9ae=>this[_0x2c9485(0x248)][_0x2c9485(0x192)](_0x1fa9ae),'onTransformState':_0x1e8108=>this[_0x2c9485(0x164)][_0x2c9485(0x1b2)](_0x1e8108),'onTransformSelections':_0x1bb631=>this[_0x2c9485(0x3b5)][_0x2c9485(0x194)](_0x1bb631),'onSyncEditingCollabCursor':_0x4d7f92=>this[_0x2c9485(0x1ee)][_0x2c9485(0x3d3)](_0x4d7f92),'onTransformRemoteChangesetByIMECache':_0x3fab9f=>this[_0x2c9485(0x248)][_0x2c9485(0x180)](_0x3fab9f),'onTransformRemoteChangesetByStateCache':_0x40ac10=>this['_docTransformStateCacheService'][_0x2c9485(0x180)](_0x40ac10)});}));}};_0x114747=_0x4e0ded([_0x23d40f(0x0,(0x0,_0x430976[_0x2444bc(0x286)])(_0x3733f8[_0x2444bc(0x349)])),_0x23d40f(0x1,(0x0,_0x430976['Inject'])(_0x21dc5a[_0x2444bc(0x232)])),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x13a006)),_0x23d40f(0x3,(0x0,_0x430976[_0x2444bc(0x286)])(_0x3640a8)),_0x23d40f(0x4,(0x0,_0x430976[_0x2444bc(0x286)])(_0x225549)),_0x23d40f(0x5,(0x0,_0x430976[_0x2444bc(0x286)])(_0x26444f)),_0x23d40f(0x6,_0x2f7572[_0x2444bc(0x2ed)]),_0x23d40f(0x7,(0x0,_0x430976['Inject'])(_0x430976[_0x2444bc(0x21e)]))],_0x114747);let _0x4670c5=class extends _0x430976[_0x2444bc(0x25a)]{constructor(_0x253f82,_0x2f45ba,_0x35ecc0,_0x1c0e27){const _0x4513c2=_0x2444bc;super(),this[_0x4513c2(0x345)]=_0x253f82,this['_httpService']=_0x2f45ba,this[_0x4513c2(0x439)]=_0x35ecc0,this[_0x4513c2(0x254)]=_0x1c0e27,_0x34d1c1(this,'_memberID',void 0x0),this[_0x4513c2(0x1dd)]();}[_0x2444bc(0x1dd)](){const _0x27f885=_0x2444bc;this[_0x27f885(0x35c)](),this[_0x27f885(0x405)](),this[_0x27f885(0x1c9)](),this[_0x27f885(0x342)]();}[_0x2444bc(0x342)](){const _0x4a47b4=_0x2444bc;this['disposeWithMe'](this[_0x4a47b4(0x254)][_0x4a47b4(0x23e)]['subscribe'](_0x22b124=>{const _0x5baea1=_0x4a47b4;this['_memberID']=_0x22b124==null?void 0x0:_0x22b124[_0x5baea1(0x386)];}));}[_0x2444bc(0x35c)](){const _0x270397=_0x2444bc;let _0x4dd31b=_0x47a509=>{const _0x37e745=_0x3284;var _0x3ad69b;this[_0x37e745(0x246)]('error',_0x37e745(0x3be)+_0x47a509[_0x37e745(0x38d)]+_0x37e745(0x3c9)+_0x47a509[_0x37e745(0x31b)]+':'+_0x47a509['lineno']+':'+_0x47a509[_0x37e745(0x273)]+'\x0a'+(((_0x3ad69b=_0x47a509[_0x37e745(0x1df)])==null?void 0x0:_0x3ad69b[_0x37e745(0x38c)])||''));};window[_0x270397(0x2ae)]('error',_0x4dd31b),this[_0x270397(0x2f8)](()=>{const _0x4ecdbb=_0x270397;window['removeEventListener'](_0x4ecdbb(0x1df),_0x4dd31b);});}[_0x2444bc(0x405)](){const _0x10ecb5=_0x2444bc;let _0x1af0e6=_0x5d7fda=>{const _0x1882f0=_0x3284;this[_0x1882f0(0x246)](_0x1882f0(0x1df),_0x1882f0(0x231)+_0x5d7fda['reason']);};window['addEventListener']('unhandledrejection',_0x1af0e6),this[_0x10ecb5(0x2f8)](()=>{const _0x1e2737=_0x10ecb5;window[_0x1e2737(0x200)](_0x1e2737(0x30d),_0x1af0e6);});}['_monkeyPatchLogService'](){const _0xd70fb7=_0x2444bc;let _0x61ee82=this[_0xd70fb7(0x439)][_0xd70fb7(0x1df)][_0xd70fb7(0x2ad)](this['_logService']);this[_0xd70fb7(0x439)][_0xd70fb7(0x1df)]=(..._0x3258b3)=>{const _0x56d9b3=_0xd70fb7;let _0x248d49=_0x3258b3[_0x56d9b3(0x404)](_0x14b3f2=>_0x14b3f2 instanceof Error?_0x14b3f2[_0x56d9b3(0x38d)]+'\x0a'+_0x14b3f2[_0x56d9b3(0x38c)]:String(_0x14b3f2))[_0x56d9b3(0x42a)]('\x20');this[_0x56d9b3(0x246)]('error',_0x56d9b3(0x281)+_0x248d49),_0x61ee82(..._0x3258b3);},this[_0xd70fb7(0x2f8)](()=>{const _0x5bcf8c=_0xd70fb7;this[_0x5bcf8c(0x439)][_0x5bcf8c(0x1df)]=_0x61ee82;});}['_uploadLog'](_0x371001,_0x45d3c5){const _0x394c6a=_0x2444bc;try{let _0x2a24cf={'userId':this[_0x394c6a(0x1fb)],'logLabel':_0x371001,'content':_0x45d3c5};this[_0x394c6a(0x2d0)]['post'](_0x394c6a(0x2e1),{'body':_0x2a24cf})[_0x394c6a(0x1d8)](()=>{});}catch{}}};_0x4670c5=_0x4e0ded([_0x23d40f(0x0,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x116517[_0x2444bc(0x26a)])),_0x23d40f(0x2,_0x430976[_0x2444bc(0x30c)]),_0x23d40f(0x3,(0x0,_0x430976[_0x2444bc(0x286)])(_0x21dc5a[_0x2444bc(0x337)]))],_0x4670c5);function _0x4355df(_0x2f424a){const _0x50ada9=_0x2444bc;var _0x2de13a,_0x39ff7b;let _0x2dd384=(_0x2de13a=_0x2f424a[_0x50ada9(0x258)])==null?void 0x0:_0x2de13a[_0x50ada9(0x343)],_0x2b26de=((_0x39ff7b=_0x2f424a['stageInfo'])==null?void 0x0:_0x39ff7b[_0x50ada9(0x219)])||0x0;return _0x2dd384===_0x4b3ad6[_0x50ada9(0x3b2)][_0x50ada9(0x3c2)]&&_0x2b26de>0x0;}function _0x109780(_0x90bfc4){const _0x3c1a18=_0x2444bc;return _0x90bfc4[_0x3c1a18(0x356)]===_0x4b3ad6[_0x3c1a18(0x368)][_0x3c1a18(0x344)];}let _0x351239=class extends _0x430976[_0x2444bc(0x25a)]{constructor(_0x50817d,_0x1c0e57,_0x3933ff,_0xdc5037,_0x2a06ce,_0x290bd8,_0x5a19c4){const _0x42e348=_0x2444bc;super(),this['_messageService']=_0x50817d,this['_commandService']=_0x1c0e57,this[_0x42e348(0x266)]=_0x3933ff,this['_httpService']=_0xdc5037,this[_0x42e348(0x40a)]=_0x2a06ce,this[_0x42e348(0x439)]=_0x290bd8,this['_localeService']=_0x5a19c4,_0x34d1c1(this,_0x42e348(0x1a4),null),_0x34d1c1(this,_0x42e348(0x1ba),0x0),_0x34d1c1(this,'_currentUsage',0x0),_0x34d1c1(this,_0x42e348(0x2d1),[]),_0x34d1c1(this,_0x42e348(0x1cf),0x0),this[_0x42e348(0x224)]();}[_0x2444bc(0x224)](){const _0x1e9a99=_0x2444bc;this[_0x1e9a99(0x2f8)](this[_0x1e9a99(0x42e)]['beforeCommandExecuted']((_0x50a741,_0x421e21)=>{const _0x8684b4=_0x1e9a99;var _0x57836d;if(_0x50a741['id']!==_0x4b3ad6['SetFormulaCalculationStartMutation']['id'])return;let _0x553ca9=_0x50a741[_0x8684b4(0x1ca)];if(this[_0x8684b4(0x1e8)]((_0x57836d=_0x553ca9[_0x8684b4(0x3d0)])==null?[]:_0x57836d)&&!this[_0x8684b4(0x176)]())throw this[_0x8684b4(0x361)](_0x50a741,_0x421e21),this['_showGuardMessage'](),new _0x430976[(_0x8684b4(0x1a6))]();})),this[_0x1e9a99(0x2f8)](this['_commandService']['onCommandExecuted']((_0x122e59,_0x41d8e3)=>{const _0x576e8e=_0x1e9a99;if(_0x122e59['id']!==_0x4b3ad6['SetFormulaCalculationNotificationMutation']['id'])return;let _0x59ffa8=_0x122e59[_0x576e8e(0x1ca)];if(_0x4355df(_0x59ffa8)){let _0x515a09=(0x0,_0x430976[_0x576e8e(0x16b)])();this[_0x576e8e(0x2d1)][_0x576e8e(0x2fd)](_0x515a09),this[_0x576e8e(0x358)](_0x515a09);}else{if(_0x109780(_0x59ffa8)&&this[_0x576e8e(0x2d1)]['length']>0x0){let _0x53959b=this[_0x576e8e(0x2d1)][_0x576e8e(0x2d6)]();this[_0x576e8e(0x23c)](_0x53959b);}}}));}['dispose'](){const _0x5be8d5=_0x2444bc;super[_0x5be8d5(0x3d1)](),this['_clearPolling'](),this[_0x5be8d5(0x2d1)]=[],this[_0x5be8d5(0x19c)]=0x0,this[_0x5be8d5(0x1ba)]=0x0,this[_0x5be8d5(0x1cf)]=0x0;}async['_checkAndWaitForCalculationPermission'](_0x3094c1,_0x59ad59){const _0x29a92e=_0x2444bc;for(let _0x162a86=0x0;_0x162a86<0x1e;_0x162a86++)try{if(await this[_0x29a92e(0x23f)](),this['_checkCalculationAvailable']()){this[_0x29a92e(0x397)](_0x3094c1,_0x59ad59),this[_0x29a92e(0x24b)][_0x29a92e(0x3d2)]({'content':this['_localeService']['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x276ac3[_0x29a92e(0x419)][_0x29a92e(0x420)]});return;}await new Promise(_0x35177c=>{const _0x19f7d5=_0x29a92e;this[_0x19f7d5(0x1a4)]=window[_0x19f7d5(0x38a)](_0x35177c,0x3e8);});}catch(_0x2dc9a1){this['_logService'][_0x29a92e(0x1df)](_0x2dc9a1);}this[_0x29a92e(0x24b)][_0x29a92e(0x3d2)]({'content':this['_localeService']['t'](_0x29a92e(0x270)),'type':_0x276ac3['MessageType']['Error']});}[_0x2444bc(0x397)](_0x97eeb6,_0x51924a){const _0x42d04e=_0x2444bc;try{this[_0x42d04e(0x42e)]['executeCommand'](_0x97eeb6['id'],_0x97eeb6[_0x42d04e(0x1ca)],_0x51924a);}catch(_0x6e3845){this['_logService'][_0x42d04e(0x1df)](_0x6e3845);}}[_0x2444bc(0x301)](_0x594795,_0x142de6){const _0x214a89=_0x2444bc;_0x142de6<this[_0x214a89(0x1cf)]||(this[_0x214a89(0x1cf)]=_0x142de6,this[_0x214a89(0x1ba)]=Number[_0x214a89(0x41b)](_0x594795[_0x214a89(0x15d)]),this[_0x214a89(0x19c)]=Number['parseInt'](_0x594795['currentUsage']));}async[_0x2444bc(0x358)](_0x553897){const _0x4d2247=_0x2444bc;let _0x4740fe=Date['now']();try{var _0x77ba99,_0x4ebd22;let _0x37bc7a=((_0x77ba99=this['_configService'][_0x4d2247(0x289)](_0x21dc5a[_0x4d2247(0x34b)]))==null?void 0x0:_0x77ba99[_0x4d2247(0x384)])||'/universer-api/license/formula/limit/start',_0x47667a=(await this[_0x4d2247(0x2d0)]['post'](_0x37bc7a,{'body':JSON[_0x4d2247(0x3af)]({'taskId':_0x553897})}))[_0x4d2247(0x443)];if(((_0x4ebd22=_0x47667a[_0x4d2247(0x1df)])==null?void 0x0:_0x4ebd22['code'])!==_0x2217f1[_0x4d2247(0x1f7)]['OK'])return;this[_0x4d2247(0x301)](_0x47667a[_0x4d2247(0x21f)],_0x4740fe);}catch(_0x58b817){this[_0x4d2247(0x439)][_0x4d2247(0x1df)](_0x58b817);}}async[_0x2444bc(0x23f)](_0x137ad8){const _0x114ac5=_0x2444bc;let _0x35b49b=Date['now']();try{var _0x5db6f9,_0x359aa5;let _0x3ca5ed=((_0x5db6f9=this[_0x114ac5(0x266)][_0x114ac5(0x289)](_0x21dc5a[_0x114ac5(0x34b)]))==null?void 0x0:_0x5db6f9[_0x114ac5(0x370)])||_0x114ac5(0x34d),_0x3f66dc=_0x137ad8?_0x3ca5ed+'?taskId='+encodeURIComponent(_0x137ad8):_0x3ca5ed,_0x48b557=(await this[_0x114ac5(0x2d0)][_0x114ac5(0x1a1)](_0x3f66dc))[_0x114ac5(0x443)];if(((_0x359aa5=_0x48b557[_0x114ac5(0x1df)])==null?void 0x0:_0x359aa5[_0x114ac5(0x21d)])!==_0x2217f1[_0x114ac5(0x1f7)]['OK'])return;this[_0x114ac5(0x301)](_0x48b557[_0x114ac5(0x21f)],_0x35b49b);}catch(_0x8f5a6a){this[_0x114ac5(0x439)]['error'](_0x8f5a6a);}}async[_0x2444bc(0x23c)](_0x3f0510){const _0x1053e7=_0x2444bc;let _0x51046e=Date[_0x1053e7(0x437)]();try{var _0x3b6420,_0x1ade80;let _0x32d6b4=((_0x3b6420=this[_0x1053e7(0x266)][_0x1053e7(0x289)](_0x21dc5a[_0x1053e7(0x34b)]))==null?void 0x0:_0x3b6420[_0x1053e7(0x202)])||_0x1053e7(0x3b6),_0x25361a=(await this['_httpService'][_0x1053e7(0x351)](_0x32d6b4,{'body':JSON[_0x1053e7(0x3af)]({'taskId':_0x3f0510})}))[_0x1053e7(0x443)];if(((_0x1ade80=_0x25361a[_0x1053e7(0x1df)])==null?void 0x0:_0x1ade80[_0x1053e7(0x21d)])!==_0x2217f1['ErrorCode']['OK'])return;this[_0x1053e7(0x301)](_0x25361a[_0x1053e7(0x21f)],_0x51046e);}catch(_0x4270ae){this[_0x1053e7(0x439)][_0x1053e7(0x1df)](_0x4270ae);}}[_0x2444bc(0x176)](){const _0x4a4966=_0x2444bc;return this[_0x4a4966(0x1ba)]===0x0?!0x0:this[_0x4a4966(0x1ba)]-this['_currentUsage']>0x0;}['_clearPolling'](){const _0x4dcb69=_0x2444bc;this['_pollingInterval']&&(clearTimeout(this[_0x4dcb69(0x1a4)]),this['_pollingInterval']=null);}['_showGuardMessage'](){const _0x5a987b=_0x2444bc;this['_messageService'][_0x5a987b(0x3d2)]({'content':this[_0x5a987b(0x3fc)]['t'](_0x5a987b(0x359)),'type':_0x276ac3[_0x5a987b(0x419)]['Loading']});}[_0x2444bc(0x1e8)](_0x1b1d7b){const _0x24cf56=_0x2444bc;for(let _0x5dd2ab of _0x1b1d7b){let {unitId:_0x5d15c9,sheetId:_0x252560,range:_0x1350f9}=_0x5dd2ab,_0x1553cc=this[_0x24cf56(0x40a)][_0x24cf56(0x32f)](_0x5d15c9);if(!_0x1553cc)continue;let _0x27c43f=_0x1553cc['getSheetBySheetId'](_0x252560);if(!_0x27c43f)continue;let _0x408f9d=_0x27c43f['getCellMatrix']();for(let _0x2b3469=_0x1350f9[_0x24cf56(0x400)];_0x2b3469<=_0x1350f9[_0x24cf56(0x340)];_0x2b3469++)for(let _0x5c3925=_0x1350f9['startColumn'];_0x5c3925<=_0x1350f9[_0x24cf56(0x228)];_0x5c3925++){let _0x4b7d6b=_0x408f9d[_0x24cf56(0x2a1)](_0x2b3469,_0x5c3925);if(_0x4b7d6b&&((0x0,_0x430976[_0x24cf56(0x411)])(_0x4b7d6b['f'])||(0x0,_0x430976[_0x24cf56(0x436)])(_0x4b7d6b['si'])))return!0x0;}}return!0x1;}};_0x351239=_0x4e0ded([_0x23d40f(0x0,(0x0,_0x430976['Inject'])(_0x2f7572[_0x2444bc(0x2ed)])),_0x23d40f(0x1,_0x430976['ICommandService']),_0x23d40f(0x2,_0x430976[_0x2444bc(0x1c5)]),_0x23d40f(0x3,(0x0,_0x430976[_0x2444bc(0x286)])(_0x116517['HTTPService'])),_0x23d40f(0x4,_0x430976[_0x2444bc(0x320)]),_0x23d40f(0x5,_0x430976[_0x2444bc(0x30c)]),_0x23d40f(0x6,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976['LocaleService']))],_0x351239);let _0x4ad146=class extends _0x430976['Disposable']{constructor(_0x59d2db,_0x582eb2,_0x328c06){const _0x21b874=_0x2444bc;super(),this[_0x21b874(0x266)]=_0x59d2db,this[_0x21b874(0x2b5)]=_0x582eb2,this[_0x21b874(0x1c6)]=_0x328c06,_0x34d1c1(this,_0x21b874(0x2cc),new Map()),_0x34d1c1(this,_0x21b874(0x3ab),new Map()),_0x34d1c1(this,'_disabled',!0x1);}[_0x2444bc(0x3c3)](){const _0x5df9f4=_0x2444bc;this[_0x5df9f4(0x414)]=!0x0;}['enableLocalCache'](){const _0x43115e=_0x2444bc;this[_0x43115e(0x414)]=!0x1;}get[_0x2444bc(0x2e8)](){const _0x49f578=_0x2444bc;return this[_0x49f578(0x3ab)];}[_0x2444bc(0x3d1)](){const _0x41b75a=_0x2444bc;this[_0x41b75a(0x26b)]()[_0x41b75a(0x269)](()=>super[_0x41b75a(0x3d1)]());}async['loadOfflineData'](_0x5f41a3){const _0x575256=_0x2444bc;return this['_disabled']?null:this[_0x575256(0x2b5)][_0x575256(0x389)]((0x0,_0x21dc5a[_0x575256(0x25b)])(_0x5f41a3));}async[_0x2444bc(0x1dc)](_0x553853,_0x20ca7e){const _0x5d8a2f=_0x2444bc;return!!this[_0x5d8a2f(0x2b5)][_0x5d8a2f(0x362)](_0x553853,_0x20ca7e);}[_0x2444bc(0x1c7)](_0x20d380,_0x270f0f,_0x5e5fe4,_0x2090b8){const _0x456892=_0x2444bc;let _0x5e5316=this[_0x456892(0x1c6)]['getCurrentRevOfUnit'](_0x20d380);this[_0x456892(0x2cc)][_0x456892(0x2da)](_0x20d380,{'unitID':_0x20d380,'type':_0x270f0f,'awaitingChangeset':_0x5e5fe4,'mutations':_0x2090b8,'rev':_0x5e5316}),this['_saveTaskMap'][_0x456892(0x27b)](_0x20d380)||this['_scheduleSaving'](_0x20d380);}[_0x2444bc(0x393)](_0x351f8f){const _0x2cf14f=_0x2444bc;let _0x5f19ff=this['_getSaveTimeout']();_0x5f19ff===0x0?this[_0x2cf14f(0x1af)](_0x351f8f):this['_saveTaskMap']['set'](_0x351f8f,setTimeout(()=>this['_saveCache'](_0x351f8f),_0x5f19ff));}[_0x2444bc(0x1db)](){const _0x333537=_0x2444bc;var _0x2c46a6;return(_0x2c46a6=this[_0x333537(0x266)][_0x333537(0x289)](_0x21dc5a['LOCAL_CACHE_INTERVAL_KEY']))==null?_0x21dc5a[_0x333537(0x239)]:_0x2c46a6;}[_0x2444bc(0x1af)](_0x1f2df8){const _0x179d18=_0x2444bc;let _0xb1ca48=this[_0x179d18(0x3ab)]['get'](_0x1f2df8);return _0xb1ca48!==void 0x0&&window[_0x179d18(0x3ee)](_0xb1ca48),this[_0x179d18(0x2b5)][_0x179d18(0x362)]((0x0,_0x21dc5a[_0x179d18(0x25b)])(_0x1f2df8),this[_0x179d18(0x2cc)][_0x179d18(0x1a1)](_0x1f2df8))['then'](()=>this[_0x179d18(0x3ab)][_0x179d18(0x242)](_0x1f2df8));}async['exhaustSavingTask'](){const _0x5d5bee=_0x2444bc;let _0x602026=[];this[_0x5d5bee(0x3ab)][_0x5d5bee(0x380)]((_0x30d96f,_0x4e2dcd)=>{const _0x35113e=_0x5d5bee;window['clearTimeout'](_0x30d96f),_0x602026['push'](this[_0x35113e(0x1af)](_0x4e2dcd)[_0x35113e(0x269)](()=>{const _0xcdd645=_0x35113e;this[_0xcdd645(0x3ab)][_0xcdd645(0x242)](_0x4e2dcd);}));}),await Promise[_0x5d5bee(0x20b)](_0x602026);}};_0x4ad146=_0x4e0ded([_0x23d40f(0x0,_0x430976[_0x2444bc(0x1c5)]),_0x23d40f(0x1,_0x430976[_0x2444bc(0x241)]),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0xf33e7d[_0x2444bc(0x322)]))],_0x4ad146);var _0x3159e8=class extends _0x430976['RxDisposable']{constructor(){const _0x33ba25=_0x2444bc;super(),_0x34d1c1(this,'urlChange$',void 0x0),this['urlChange$']=(0x0,_0x31275f[_0x33ba25(0x2e7)])(window,_0x33ba25(0x38f))['pipe']((0x0,_0x31275f['takeUntil'])(this[_0x33ba25(0x3de)]),(0x0,_0x31275f[_0x33ba25(0x363)])({'bufferSize':0x1,'refCount':!0x0}),(0x0,_0x31275f[_0x33ba25(0x3a4)])(void 0x0));}[_0x2444bc(0x1a7)](_0x480673,_0x315f2c,_0x2f9ec1=!0x1){const _0xfb5df1=_0x2444bc;let _0x216565=new URL(window[_0xfb5df1(0x335)][_0xfb5df1(0x42d)]);_0x216565[_0xfb5df1(0x2d3)]['set'](_0x480673,_0x315f2c),_0x2f9ec1?window[_0xfb5df1(0x2eb)][_0xfb5df1(0x39d)]('','',_0x216565[_0xfb5df1(0x401)]()):window[_0xfb5df1(0x2eb)][_0xfb5df1(0x39f)]('','',_0x216565['toString']());}[_0x2444bc(0x2d9)](_0x1889de,_0x3c5203=!0x1){const _0x146e5f=_0x2444bc;let _0x3e5e0b=new URL(window[_0x146e5f(0x335)][_0x146e5f(0x42d)]);_0x3e5e0b[_0x146e5f(0x2d3)]['delete'](_0x1889de),_0x3c5203?window[_0x146e5f(0x2eb)]['replaceState']('','',_0x3e5e0b['toString']()):window['history'][_0x146e5f(0x39f)]('','',_0x3e5e0b['toString']());}['getParam'](_0x48879c){const _0xfd014f=_0x2444bc;var _0x5a76b8;return(_0x5a76b8=new URL(window[_0xfd014f(0x335)]['href'])['searchParams']['get'](_0x48879c))==null?void 0x0:_0x5a76b8;}};let _0x48b1f6=class extends _0x430976[_0x2444bc(0x1eb)]{constructor(_0xd54f0b=_0x429e50,_0x1c6371,_0x240e2b,_0x15b29c){const _0x551ef7=_0x2444bc;super(),this[_0x551ef7(0x2f1)]=_0xd54f0b,this[_0x551ef7(0x44b)]=_0x1c6371,this[_0x551ef7(0x345)]=_0x240e2b,this[_0x551ef7(0x266)]=_0x15b29c;let {..._0x55e85c}=(0x0,_0x430976[_0x551ef7(0x2e0)])({},_0x429e50,this['_config']);this[_0x551ef7(0x266)]['setConfig'](_0x551ef7(0x43a),_0x55e85c);}['onStarting'](){const _0x6fdb1c=_0x2444bc;this[_0x6fdb1c(0x1d6)](),this['_initDependencies']();}['onRendered'](){this['_registerRenderDependencies']();}[_0x2444bc(0x1d6)](){const _0x5d080d=_0x2444bc;var _0x489d5c;let _0x6c7b7e=[[_0x1eb962],[_0x351239],[_0x225549],[_0x13a006],[_0x3640a8],[_0x26444f],[_0x26fa78,{'useClass':_0x3159e8}],[_0x116517[_0x5d080d(0x19b)],{'useClass':_0x116517[_0x5d080d(0x299)]}],[_0x21dc5a[_0x5d080d(0x3ae)],{'useClass':_0x4ad146}],[_0x26c616],[_0x114747],[_0x527af8],[_0x35fdec],[_0x1f6f92],[_0x5aec05]];this['_config']['enableFrontendLog']&&_0x6c7b7e[_0x5d080d(0x2fd)]([_0x4670c5]),(0x0,_0x430976['registerDependencies'])(this[_0x5d080d(0x345)],(0x0,_0x430976[_0x5d080d(0x35d)])(_0x6c7b7e,(_0x489d5c=this[_0x5d080d(0x2f1)])==null?void 0x0:_0x489d5c[_0x5d080d(0x1cb)]));}[_0x2444bc(0x3f0)](){const _0x1e9b5d=_0x2444bc;this[_0x1e9b5d(0x2f8)](this[_0x1e9b5d(0x44b)]['registerRenderModule'](_0x430976['UniverInstanceType'][_0x1e9b5d(0x341)],[_0x5b9eec])),this[_0x1e9b5d(0x2f8)](this[_0x1e9b5d(0x44b)][_0x1e9b5d(0x353)](_0x430976[_0x1e9b5d(0x1f9)][_0x1e9b5d(0x36d)],[_0x525a2f]));}[_0x2444bc(0x422)](){const _0x4e38b0=_0x2444bc;(0x0,_0x430976['touchDependencies'])(this[_0x4e38b0(0x345)],[[_0x35fdec],[_0x26c616],[_0x114747],[_0x527af8],[_0x5aec05],[_0x351239],[_0x1f6f92]]),this[_0x4e38b0(0x2f1)][_0x4e38b0(0x233)]&&(0x0,_0x430976['touchDependencies'])(this['_injector'],[[_0x4670c5]]);}};_0x34d1c1(_0x48b1f6,'pluginName',_0x2444bc(0x271)),_0x34d1c1(_0x48b1f6,_0x2444bc(0x30a),_0x50e124),_0x34d1c1(_0x48b1f6,_0x2444bc(0x251),_0x5a4f5a),_0x48b1f6=_0x4e0ded([(0x0,_0x430976[_0x2444bc(0x2a2)])(_0x21dc5a[_0x2444bc(0x416)]),_0x23d40f(0x1,_0x229561[_0x2444bc(0x223)]),_0x23d40f(0x2,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x3,_0x430976[_0x2444bc(0x1c5)])],_0x48b1f6);let _0x913d6f=class extends _0x21dc5a[_0x2444bc(0x1e5)]{constructor(_0x1c34df,_0x3c8b99,_0x4d0ef7,_0x4667e8,_0x10d3cd){super(_0x1c34df,_0x3c8b99,_0x4d0ef7,_0x4667e8,_0x10d3cd);}async[_0x2444bc(0x259)](_0x3a3c14){const _0x4bfe2e=_0x2444bc;let _0x4dc4c1=await this[_0x4bfe2e(0x3b4)](),_0x5e73ba=this[_0x4bfe2e(0x2ea)](_0x3a3c14,_0x4dc4c1);return this[_0x4bfe2e(0x2f7)](_0x5e73ba);}[_0x2444bc(0x2ea)](_0x165e6a,_0x5aeaff){const _0x19479c=_0x2444bc;let _0x3bfc2f=typeof window>'u'?new URL(_0x165e6a):new URL(_0x165e6a,window[_0x19479c(0x335)]['origin']);_0x3bfc2f[_0x19479c(0x2d3)][_0x19479c(0x2da)]('sessionTicket',_0x5aeaff);let _0x1b8953=typeof window>'u'?new URLSearchParams():new URLSearchParams(window[_0x19479c(0x335)][_0x19479c(0x29f)]);return _0x1b8953[_0x19479c(0x1a1)](_0x19479c(0x3d6))&&_0x3bfc2f['searchParams'][_0x19479c(0x2da)](_0x19479c(0x3d6),_0x1b8953[_0x19479c(0x1a1)](_0x19479c(0x3d6))),_0x3bfc2f[_0x19479c(0x401)]();}async['_getSessionTicket'](){const _0x10b223=_0x2444bc;var _0x190821,_0x1d0adc,_0x5ca18b;let _0x3aded9=this['_configService'][_0x10b223(0x289)](_0x21dc5a[_0x10b223(0x34b)]),_0x1dd6bb=(_0x190821=_0x3aded9==null?void 0x0:_0x3aded9['wsSessionTicketUrl'])==null?_0x21dc5a[_0x10b223(0x315)]:_0x190821;return(_0x1d0adc=(_0x5ca18b=(await this['_httpService']['get'](_0x1dd6bb,{'headers':{'Content-Type':_0x10b223(0x23a)}}))['body'])==null?void 0x0:_0x5ca18b['ticket'])==null?'':_0x1d0adc;}};_0x913d6f=_0x4e0ded([_0x23d40f(0x0,(0x0,_0x430976[_0x2444bc(0x286)])(_0x430976[_0x2444bc(0x43c)])),_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x116517[_0x2444bc(0x26a)])),_0x23d40f(0x2,_0x430976['IConfigService']),_0x23d40f(0x3,_0x430976[_0x2444bc(0x30c)]),_0x23d40f(0x4,_0xf33e7d[_0x2444bc(0x40b)])],_0x913d6f);let _0x448b52=class extends _0x430976[_0x2444bc(0x25a)]{constructor(_0x5c2689,_0x547f65,_0x29fa4a){const _0x4f07b8=_0x2444bc;super(),this['_instanceService']=_0x5c2689,this[_0x4f07b8(0x2d0)]=_0x547f65,this[_0x4f07b8(0x266)]=_0x29fa4a;}async[_0x2444bc(0x3ec)](_0x17a7e6,_0x454c25,_0x53c843,..._0x1615a6){const _0x38b375=_0x2444bc;var _0xd489c0,_0x1881a1,_0xc8870e,_0xe78530;let _0x3245d9=this['_instanceService'][_0x38b375(0x303)]();if(!_0x3245d9)throw Error(_0x38b375(0x18a));let _0x6a997c=((_0xd489c0=this[_0x38b375(0x266)][_0x38b375(0x289)](_0x21dc5a[_0x38b375(0x3e0)]))==null?_0x21dc5a[_0x38b375(0x306)]:_0xd489c0)+'/'+_0x17a7e6+_0x38b375(0x3fd)+_0x454c25,_0x2f5888={'scriptId':_0x17a7e6,'runId':(_0x1881a1=new URL(window[_0x38b375(0x335)][_0x38b375(0x42d)])['searchParams'][_0x38b375(0x1a1)](_0x38b375(0x3d6)))==null?'':_0x1881a1,'function':_0x454c25,'unitId':_0x3245d9[_0x38b375(0x28c)](),'argsOfFunction':JSON[_0x38b375(0x3af)](_0x1615a6),'invokeId':(_0xc8870e=_0x53c843['invokeId'])==null?'':_0xc8870e,'executionId':(_0xe78530=_0x53c843[_0x38b375(0x25f)])==null?'':_0xe78530};try{let _0x234645=await this[_0x38b375(0x2d0)][_0x38b375(0x351)](_0x6a997c,{'body':_0x2f5888});return _0x234645[_0x38b375(0x443)][_0x38b375(0x1df)]&&_0x234645[_0x38b375(0x443)][_0x38b375(0x1df)][_0x38b375(0x21d)]!==_0x2217f1[_0x38b375(0x1f7)]['OK']?_0x38b375(0x3d4):_0x234645[_0x38b375(0x443)]['result'];}catch{return _0x38b375(0x3d4);}}};_0x448b52=_0x4e0ded([_0x23d40f(0x0,_0x430976[_0x2444bc(0x320)]),_0x23d40f(0x1,(0x0,_0x430976[_0x2444bc(0x286)])(_0x116517[_0x2444bc(0x26a)])),_0x23d40f(0x2,_0x430976['IConfigService'])],_0x448b52);let _0x28e364=0x7530,_0xc76825=_0x2444bc(0x1ff);var _0x1d44d0=class extends _0x430976[_0x2444bc(0x25a)]{constructor(){const _0x34d193=_0x2444bc;super(),_0x34d1c1(this,_0x34d193(0x2ff),(0x0,_0x430976[_0x34d193(0x16b)])()),_0x34d1c1(this,_0x34d193(0x22e),new Set()),_0x34d1c1(this,_0x34d193(0x204),new Map()),_0x34d1c1(this,_0x34d193(0x24c),null),_0x34d1c1(this,_0x34d193(0x431),new Map()),_0x34d1c1(this,_0x34d193(0x190),new Map()),this['_init']();}[_0x2444bc(0x3d1)](){const _0x1dd202=_0x2444bc;super[_0x1dd202(0x3d1)](),this[_0x1dd202(0x431)]['forEach']((_0x2a28ea,_0x2400e8)=>this[_0x1dd202(0x26f)](_0x2400e8)),this[_0x1dd202(0x24c)]&&window[_0x1dd202(0x20c)](this['_heartbeatTimer']);}['getUnitStatus$'](_0x122ca9){const _0x57ac07=_0x2444bc;return this[_0x57ac07(0x398)](_0x122ca9)[_0x57ac07(0x1e6)]((0x0,_0x31275f['distinctUntilChanged'])());}[_0x2444bc(0x33e)](_0x2a8f6b){const _0xc74c92=_0x2444bc;this[_0xc74c92(0x22e)][_0xc74c92(0x212)]===0x0&&this[_0xc74c92(0x327)](),this[_0xc74c92(0x22e)][_0xc74c92(0x385)](_0x2a8f6b),this[_0xc74c92(0x39b)]({'type':0x0,'memberID':this[_0xc74c92(0x2ff)],'unitIDs':[_0x2a8f6b],'isForwarded':!0x1});}[_0x2444bc(0x24d)](_0x4cef05){const _0x1ab3cb=_0x2444bc;this[_0x1ab3cb(0x22e)][_0x1ab3cb(0x242)](_0x4cef05),this[_0x1ab3cb(0x22e)][_0x1ab3cb(0x212)]===0x0&&this[_0x1ab3cb(0x24c)]&&window['clearInterval'](this[_0x1ab3cb(0x24c)]);}[_0x2444bc(0x1dd)](){const _0x21c584=_0x2444bc;this['disposeWithMe']((0x0,_0x430976[_0x21c584(0x3d7)])((0x0,_0x31275f[_0x21c584(0x2e7)])(window,'storage')[_0x21c584(0x274)](_0x407a6e=>{const _0x413461=_0x21c584;if(_0x407a6e[_0x413461(0x15e)]!==_0xc76825||!_0x407a6e[_0x413461(0x28f)])return;let _0x151cfa=JSON[_0x413461(0x293)](_0x407a6e[_0x413461(0x28f)]);this[_0x413461(0x1fc)](_0x151cfa);}))),window[_0x21c584(0x2ae)](_0x21c584(0x283),()=>this[_0x21c584(0x39b)]({'type':0x1,'memberID':this[_0x21c584(0x2ff)],'unitIDs':Array['from'](this[_0x21c584(0x22e)])}));}['_handleEvent'](_0x245952){const _0x48e48b=_0x2444bc;switch(_0x245952[_0x48e48b(0x3cb)]){case 0x0:this[_0x48e48b(0x304)](_0x245952);break;case 0x1:this['_handleLeaveEvent'](_0x245952);break;case 0x2:this['_handleHeartbeatEvent'](_0x245952);break;}}[_0x2444bc(0x304)](_0x3379e4){const _0x18876b=_0x2444bc;let {unitIDs:_0x48a4fb,memberID:_0x3f3f78,isForwarded:_0x90156d}=_0x3379e4;_0x48a4fb[_0x18876b(0x380)](_0x5c753e=>{const _0x1234b4=_0x18876b;if(!_0x90156d&&this['_unitOnClients'][_0x1234b4(0x27b)](_0x5c753e)&&this[_0x1234b4(0x398)](_0x5c753e)[_0x1234b4(0x3f6)](_0x21dc5a[_0x1234b4(0x44f)][_0x1234b4(0x314)]),!this[_0x1234b4(0x204)][_0x1234b4(0x27b)](_0x5c753e)||!this[_0x1234b4(0x204)][_0x1234b4(0x1a1)](_0x5c753e)[_0x1234b4(0x27b)](_0x3f3f78)){let _0x574883=this[_0x1234b4(0x204)][_0x1234b4(0x1a1)](_0x5c753e)||new Set();_0x574883[_0x1234b4(0x385)](_0x3f3f78),this[_0x1234b4(0x204)][_0x1234b4(0x2da)](_0x5c753e,_0x574883),this[_0x1234b4(0x2f6)](_0x3f3f78);}}),_0x90156d||this[_0x18876b(0x39b)]({'type':0x0,'memberID':this['_id'],'unitIDs':[...this[_0x18876b(0x22e)]],'isForwarded':!0x0});}[_0x2444bc(0x2f6)](_0x358e39){const _0x5685e1=_0x2444bc;this['_removeClearOtherTimer'](_0x358e39);let _0x2c2b54=window['setTimeout'](()=>{const _0x4ad9d6=_0x3284;this[_0x4ad9d6(0x204)]['forEach'](_0xa84ba8=>{const _0x4406cd=_0x4ad9d6;_0xa84ba8[_0x4406cd(0x242)](_0x358e39);});},_0x28e364*0x2);this[_0x5685e1(0x431)]['set'](_0x358e39,_0x2c2b54);}[_0x2444bc(0x26f)](_0x3ae2b8){const _0x52a044=_0x2444bc;if(this[_0x52a044(0x431)][_0x52a044(0x27b)](_0x3ae2b8)){let _0x46a949=this['_clearOtherTimers']['get'](_0x3ae2b8);_0x46a949&&window[_0x52a044(0x3ee)](_0x46a949),this['_clearOtherTimers'][_0x52a044(0x2da)](_0x3ae2b8,null);}}[_0x2444bc(0x350)](_0x2a22b9){const _0x31d321=_0x2444bc;let {memberID:_0x2ce447,unitIDs:_0x38b72d}=_0x2a22b9;_0x38b72d[_0x31d321(0x380)](_0x1b5c7d=>{const _0x45cfce=_0x31d321;var _0x1cf520;let _0x20972a=this[_0x45cfce(0x204)][_0x45cfce(0x1a1)](_0x1b5c7d);_0x20972a&&(_0x20972a[_0x45cfce(0x242)](_0x2ce447),(_0x1cf520=this['_ensureSubject'](_0x1b5c7d))==null||_0x1cf520['next'](_0x20972a[_0x45cfce(0x212)]===0x0?_0x21dc5a[_0x45cfce(0x44f)][_0x45cfce(0x33b)]:_0x21dc5a[_0x45cfce(0x44f)]['OTHER_CLIENTS_EDITING']));}),this[_0x31d321(0x26f)](_0x2ce447);}[_0x2444bc(0x1d7)](_0x2f268f){const _0x1d2bab=_0x2444bc;this[_0x1d2bab(0x2f6)](_0x2f268f[_0x1d2bab(0x386)]);}[_0x2444bc(0x39b)](_0x1785a5){const _0x1278dd=_0x2444bc;localStorage['setItem'](_0xc76825,JSON[_0x1278dd(0x3af)](_0x1785a5));}[_0x2444bc(0x327)](){const _0x3223e4=_0x2444bc;this[_0x3223e4(0x24c)]=window[_0x3223e4(0x230)](()=>{const _0x1b002f=_0x3223e4;this[_0x1b002f(0x39b)]({'type':0x2,'memberID':this[_0x1b002f(0x2ff)]});},_0x28e364);}[_0x2444bc(0x398)](_0x4b5dac){const _0x3dffaa=_0x2444bc;return this['_unitStatus'][_0x3dffaa(0x27b)](_0x4b5dac)||this[_0x3dffaa(0x190)][_0x3dffaa(0x2da)](_0x4b5dac,new _0x31275f[(_0x3dffaa(0x1d0))](_0x21dc5a[_0x3dffaa(0x44f)]['NO_OTHER_CLIENTS_EDITING'])),this[_0x3dffaa(0x190)][_0x3dffaa(0x1a1)](_0x4b5dac);}};Object[_0x2444bc(0x16f)](_0x4bb0e6,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x913d6f;}}),Object[_0x2444bc(0x16f)](_0x4bb0e6,_0x2444bc(0x257),{'enumerable':!0x0,'get':function(){return _0x5aec05;}}),Object['defineProperty'](_0x4bb0e6,_0x2444bc(0x278),{'enumerable':!0x0,'get':function(){return _0x26c616;}}),_0x4bb0e6[_0x2444bc(0x381)]=_0x26fa78,Object['defineProperty'](_0x4bb0e6,_0x2444bc(0x1aa),{'enumerable':!0x0,'get':function(){return _0x448b52;}}),_0x4bb0e6[_0x2444bc(0x410)]=_0x102c6d,Object[_0x2444bc(0x16f)](_0x4bb0e6,_0x2444bc(0x163),{'enumerable':!0x0,'get':function(){return _0x48b1f6;}}),_0x4bb0e6[_0x2444bc(0x1fe)]=_0x1d44d0,_0x4bb0e6[_0x2444bc(0x272)]=_0x3159e8;}));
|
|
8
|
+
function _0x167c(){const _0x223fe2=['collaboration-client-ui.collabStatus.conflict','InsertRowCommandId','defineProperty','_showText','_startCalculationLimit','endColumn','code','@univerjs/engine-render','_getScale','_imageIoService','handleDeleteRangeMoveUp','SetWorksheetActivateCommand','_initWindowErrorListener','sessionTicket','_startDocCollabCursor','_configService','clearInterval','Failed','params','status','_colorIndex','href','subscribe','attrs','M0\x200H16V16H0z','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','WebSocketService','_transformService','UNIVER_COLLABORATION_CLIENT_WEB_PLUGIN','selections','_clearPolling','split','getLocalCacheKey','url(#$1','div','Tools','collaboration-client-ui.collabStatus.offline','React','getStateCache','serializeRangeWithSheet','_getSaveTimeout','TEXT','_showGuardMessage','_collabSessionService','_getFormulaLimitStatus','_instanceService','isFormulaId','_cursorInfo$','set','_handleLeaveEvent','_anchorDot','size','onPointerMove$','_setFormulaLimitStatus','_drawAnchor','i18nKey','_scheduleSaving','UniverProCollaboration','disableLocalCache','some','_assignedColors','_pollingInterval','_handleEvent','with','UniverCore','then','@univerjs/docs-ui','4PxWpch','univer-border-none\x20univer-bg-transparent','SheetSkeletonManagerService','_id','get','Enter','MUTATION','operators','SetTextSelectionsOperation','COLORS','_doCreateSocket','_injector','DependentOn','_offsetY','ILogService','generateRandomId','includes','setParam','univer-appearance-none','error','UPDATE_CURSOR','_memberService','_createSocketURL','push','sheetID','width','tag','VIEW_MAIN','setShapeProps','_setupSubUnitSync','_updateLocalCursor','DocStateChangeManagerService','distinctUntilChanged','all','pulse','_saveCache','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','clickable','collaboration-client-ui.formula.calculation.unable','fillRule','symbol','useDependency','unshift','START_CALCULATION','executeCommand','_localCacheService','CollaborationSocketService','ISnapshotServerService','ISocketService','MemberService','LocaleService','lineno','unload','stringify','_checkAndWaitForCalculationPermission','_taskIds','univer-inline-flex\x20univer-items-center\x20univer-justify-center','onPointerLeave$','SetFormulaCalculationStartMutation','span','[LogService\x20Error]:\x20','RegularPolygon','debounce','path','\x20-\x20','ticket','getSheetId','NOT_COLLAB','takeUntil','ONLINE','[Window\x20Error]:\x20','loadOfflineData','tooltipKey','forEach','Optional','_toggleOnline','prototype','OFFLINE','m1Prime','wsSessionTicketUrl','univer-m-0\x20univer-p-0','rgba(','_saveTaskMap','TRANSFORM_CHANGE_OBSERVABLE_TYPE','getMemberID','function','_updateCollabCursors','findNodePositionByCharIndex','AWAITING','IMessageService','colorClass','_checkCalculationAvailable','pluginName','functionsExecutedState','docStateChange$','UNIVER_SHEET','_ensureSubject','unsubscribe','getFormulaLimitStatusUrl','_labelPosition','/universer-api/license/formula/limit/start','DocIMEInputManagerService','exports','@univerjs/docs','Error','join','_collaborationController','mutations','@univerjs/protocol','merge','Shape','getAllUnitsForType','#0B9EFB','NO_OTHER_CLIENTS_EDITING','_releaseCalculationLimit','icon','transformMutationsWithChangeset','No\x20unitID\x20or\x20type\x20in\x20URL.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','unhandledrejection','transformMutation','_textBubble','InsertColCommandId','registerDependencies','6044936KmHUQH','disposeWithMe','_initStatusListener','labelPosition','runId','_render','_cursor','collaboration-client-ui.session.will-retry','@univerjs/ui','ILocalStorageService','_cursorShapes','_shapes','_updateURLWithCurrentState','http://www.w3.org/2000/svg','SheetsSelectionsService','closePath','whenReady','startColumn','map','_docTransformIMECacheService','IUniverInstanceService','_beforeCloseService','idSuffix','getCollabCursors$','getActiveSheet','trim','_handleHeartbeatEvent','key','useMemo','saveOfflineData','removeParam','substring','LOCAL_CACHE_INTERVAL_KEY','_init','_send','SetFormulaCalculationNotificationMutation','_hideTimer','onCommandExecuted','editingUnit','fromEvent','setUndoRedoMutationParamsCache','UniverCollaborationClientUIPlugin','sheetId','jiqing.500','colno','spin','fillText','mergeOverrideWithDependencies','_messageService','_eventUnsubscribe','text','origin','univerjs-icon\x20univerjs-icon-','getRelativeToViewportCoord','RichTextEditingMutation','send','Plugin','_docTransformSelectionsService','blue.400','button','CollaborationStatus','next','_httpService','getMergeData','row','registerRefRange','collaboration-client-ui.collabClient.tooltip.reconnect','setOffsetY','FETCH_MISS','offsetY','SUCCESS','body','_drawTextRange','search','searchParams','_getMergeRange','rgba','@univerjs/rpc','CONFLICT','univer-text-red-500','?taskId=','_logService','9RfnPus','assignAColorForMemberID','isArray','DesktopCollaborationStatusDisplayController','_getSheetObject','runOnServer','show','addClipboardHook','getColor','ITransformService','1597475HOqSRl','_highlight','_initEvent','moveTo','JOIN_ROOM_FAILED','hovered','collaboration-client-ui.permission.content','undoState','newValue','off-line-icon_clip0_910_343','collaboration-client-ui.session.collaboration-timeout','getVpScrollXYInfoByPosToVp','_selfUnitIDs','svg','createIdentifier','NodePositionConvertToRectRange','MessageType','type','Success','limitInfo','find','max','getTypeOfUnitAdded$','toDisposable','SessionStatus','HTTPService','getUnhiddenWorksheets','_sheetSkeletonManagerService','_heartbeatTimer','_uiPartsService','InsertRangeMoveDownCommandId','black','getSkeleton','createElement','restore','CanceledError','SetSelectionsOperation','startsWith','random','override','isTransformMutationsWithChangesetSuccess','actions','save','stageInfo','iterator','@univerjs-pro/collaboration-client-ui','_collabCursorController','current','Unknown\x20user','stage','CollaborationEvent','entries','reconnect','/universer-api/license/formula/limit/status','translate(.97)','event$','getCurrentSelections','_draw','_entities','Subject','[Unhandled\x20Rejection]:\x20','_urlService','_stopBlinking','transformIMECache','memberID','Vector2','delete','6IHgnCR','_startSheetCollabCursor','handleIRemoveRow','application/json','source','_refreshCollabCursors','color','length','entityInit$','asObservable','doc.mutation.rich-text-editing','uni.network.url-service','purple.300','getCellPositionByOffset','reason','DisposableCollection','IURLService','_setupBeforeClosingHandler','dispose$','rgba(255,\x20255,\x20255,\x200.01)','_localeService','UniverIcon','SHEET_VIEWPORT_KEY','OffLineIcon','handleInsertRangeMoveDown','_online','OnLineIcon','_cursors','_initStatusComponent','TEXT_RANGE_LAYER_INDEX','currentTheme$','flatMap','UniverCollaborationClientPlugin','registerBeforeClose','isTransformMutationFailure','displayName','unitId','indicator','yellow.400','SOCKET_FAILED','preventDefault','collaboration-client-ui.collabStatus.syncing','_color','exhaustSavingTask','storage','on-line-icon_clip0_910_349','_revisionService','parseInt','location','loadUnit','_transformHistoryAndStateStack','IImageIoService','UniverDesign','_docTransformStateCacheService','_blinkIntervalTimer','imageSourceType','CLOSE_ROOM','DOC_RANGE_TYPE','onPointerEnter$','bold\x2013px\x20Source\x20Han\x20Sans\x20CN','M8.79993\x2014.0166C8.79993\x2014.4585\x208.44176\x2014.8166\x207.99993\x2014.8166C4.23529\x2014.8166\x201.18345\x2011.7648\x201.18345\x208.00017C1.18345\x204.23554\x204.23529\x201.18369\x207.99993\x201.1837C11.7646\x201.1837\x2014.8164\x204.23554\x2014.8164\x208.00017C14.8164\x208.442\x2014.4582\x208.80017\x2014.0164\x208.80017C13.5746\x208.80017\x2013.2164\x208.442\x2013.2164\x208.00017C13.2164\x205.11919\x2010.8809\x202.7837\x207.99993\x202.7837C5.11895\x202.7837\x202.78345\x205.11919\x202.78345\x208.00017C2.78345\x2010.8812\x205.11895\x2013.2166\x207.99993\x2013.2166C8.44176\x2013.2166\x208.79993\x2013.5748\x208.79993\x2014.0166Z','Inject','beginPath','startFormulaLimitUrl','message','activeSheet$','ThemeService','lineTo','_roomMembers$','_scheduleHeartbeat','slice','@univerjs/engine-formula','univer-text-gray-400','_name','UniverDrawing','CollaborationController','filename','handleInsertRangeMoveRight','rgb','addObjects','Workbook','_lastResponseTimestamp','_initResize','string','transform','univer-text-green-500','onStarting','use','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','SOCKET_FAILED_RETRY','startRow','resize','_registerRenderDependencies','_anchor','switchMap','setTimeout','_config','FromArray','DocCollaborationEntity','on-line-icon','DEFAULT_WS_SESSION_TICKET_URL','_initUnhandledRejectionListener','_docSyncEditingCollabCursorService','registerRenderModule','_hover','useCallback','getTypeOfUnitDisposed$','UniverRpc','_onCursorDelete','EffectRefRangId','history','connectInjector','Injector','static','replaceState','LOCAL_CACHE_INTERVAL','collaboration-client-ui.collabStatus.fetchMiss','call','ICommandService','combineLatest','showText','@univerjs/sheets-ui','_monkeyPatchLogService','ILocalCacheService','values','228170BpUUwE','@univerjs/drawing','clipPath','triggerDblclick','disposeUnit','@univerjs-pro/collaboration-client','INotificationService','forwardRef','redoState','getOffsetConfig','mask','urlChange$','UniverEngineRender','saveImage','strokeWidth','IDocClipboardService','WebURLService','useRef','bind','complete','amd','_hasFormulaInDirtyRanges','now','defs','polite','getUnitId','[RemoteUniscriptService]:\x20no\x20focused\x20unit','CollaborationSessionService','onRendered','getParam','IConfigService','663468AQWeUx','highlightSecond','_session','enableFrontendLog','collabCursorState$','pushState','handleInsertCol','0\x200\x2017\x2016','arc','font','replaceDocRanges','subUnitId','bottom','defIds','currentColor','getUndoRedoMutationParamsCache','cursorInfo','deepClone','_currentUsage','backgroundColor','_pointerMoveDisposable','_initCommandInterceptor','_disabled','react','rxjs','react/jsx-runtime','_renderManagerService','isActive','CollaborationUIEventService','colorChannel1','init','debug','roomMembers','_isBlinkVisible','getItem','popstate','roomMembers$','Rect','transformSelections','collaboration-client-ui.collaboration.single-unit.warning','M7.20007\x201.98384C7.20007\x201.54201\x207.55824\x201.18384\x208.00007\x201.18384C11.7647\x201.18384\x2014.8165\x204.23568\x2014.8165\x208.00032C14.8165\x2011.765\x2011.7647\x2014.8168\x208.00007\x2014.8168C4.23543\x2014.8168\x201.18359\x2011.765\x201.18359\x208.00032C1.18359\x207.55849\x201.54177\x207.20031\x201.98359\x207.20031C2.42542\x207.20031\x202.78359\x207.55849\x202.78359\x208.00032C2.78359\x2010.8813\x205.11909\x2013.2168\x208.00007\x2013.2168C10.8811\x2013.2168\x2013.2165\x2010.8813\x2013.2165\x208.00032C13.2165\x205.11933\x2010.8811\x202.78384\x208.00007\x202.78384C7.55824\x202.78384\x207.20007\x202.42567\x207.20007\x201.98384Z','BehaviorSubject','...','UniverProCollaborationClientUi','_handleJoinEvent','23507440bvGlRa','_cachedData','_collabCursorState$','deserializeRangeWithSheet','setStateCache','_initCommandExecutedListener','eventID','_syncEditingCollabCursorService','_notificationService','_onCursorUpdate','textRanges','_drawRectRange','_removeCollabCursors','pipe','transformRemoteChangeset','getConfig','getActiveRange','selection','_handleHover','getColorFromTheme','FormulaExecuteStageType','addEventListener','fillStyle','UnitStatus','_themeService','height','url(#off-line-icon_clip0_910_343)','add','_univerInstanceService','unitID','registerComponent','default','_scene','white','getCoordByCell','post','invokeId','name','subunit','clsx','subscribeEvent','endRow','debounceTime','true','1499178evZyWU','_localStorageService','getMember','/universer-api/frontend/logs','_maxFormulaLimit','from','4274330EPcyqQ','off-line-icon','setInterval','/universer-api/license/formula/limit/done','ColorKit','_initEntityListener','Warning','_transformUndoRedoStack','getFocusedUnit','_blinkTimer','drawWith','replace','Loading','top','touchDependencies','loading-multi-icon','children','xlink:href','DeleteRangeMoveUpCommandId','collaboration-client-ui.permission.title','Disposable','_unitStatus','useObservable','jsx','SheetCollabCursorShape','data','collaboration-client-ui.collabStatus.synced','BuiltInUIPart','univer-flex\x20univer-items-center\x20univer-justify-center','addHandlerCallback','measureText','_getLighterColor','_toggleOffline','RefRangeService','_clearOtherTimers','@univerjs/sheets','setItem','_refRangeService','fill','highlight','LoadingMultiIcon','_applyCommand','syncEditingCollabCursor','_backgroundColor','Tooltip','getRangePointData','@univerjs-pro/collaboration','ranges','_hovered','SUBMIT_CHANGESET_TIMEOUT','getDocRanges','getOwnPropertyDescriptor','getValue','none','_context','saveTaskMap','_uploadLog','WebBrowserSingleActiveUnitService','shift','PERMISSION_DENIED','filter','univer-text-orange-500','ErrorCode','UniverDocsUi','isFormulaString','collaboration-client-ui.session.connection-failed','handleMoveRange','_highlightSecond','1em','setConfig','USERS_LEAVE','evenodd','RxDisposable','transformStateCache','_collaborationSessionService','onTransformChange$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','IRenderManagerService','_docStateChangeManagerService','decorate','getCurrentUnitOfType','OTHER_CLIENTS_EDITING','has','focus:univer-outline-none\x20focus:univer-ring-2\x20focus:univer-ring-primary-500\x20focus:univer-ring-offset-2','cursorInfo$','toString','_document','\x20at\x20','hide','/run/','object','toPrimitive','0.2)','_getSessionTicket',',\x200.2)','[CollaborationDataLoaderController]','makeDirty','DocSkeletonManagerService','isInternalEditorID','requireSession','28FMUDpA','min','parse','_docClipboardService','_memberID','getAncestorScale','PENDING','RECT','_colorAssignService','getUniverSheetInstance','_entityInit$','getCurrentTypeOfUnit$','UniverSheetsUi','_status$','UniverInstanceType','CollaborationUIEventId','getRenderById','addObject','totalFormulasToCalculate','_updateSubUnitFromURLParams','UNIVER_DOC','dispose','_collaborationUIEventService','round','clearTimeout','getSheetBySheetId','Module','_commandService','_scheduleClearOtherTimer','DocSelectionManagerService','UniverProCollaborationClient','_startBlinking','onMouseMove','_unitOnClients','No\x20remote\x20instance\x20service\x20injected.\x20May\x20not\x20syncing\x20edits\x20to\x20the\x20web\x20worker.','setAlpha','_removeClearOtherTimer','_transformPreviousActiveRange','assign','univer-text-blue-500','_range','unit','0.25.1','m2Prime','beforeCommandExecuted','runRefRangeMutations'];_0x167c=function(){return _0x223fe2;};return _0x167c();}function _0x405a(_0x32d589,_0x3c4225){_0x32d589=_0x32d589-0x13e;const _0x167ceb=_0x167c();let _0x405a6e=_0x167ceb[_0x32d589];return _0x405a6e;}(function(_0x2ba2b0,_0x25a278){const _0x5d2637=_0x405a,_0x213447=_0x2ba2b0();while(!![]){try{const _0x24e2c3=parseInt(_0x5d2637(0x2a7))/0x1*(-parseInt(_0x5d2637(0x22a))/0x2)+parseInt(_0x5d2637(0x2c6))/0x3*(-parseInt(_0x5d2637(0x3fa))/0x4)+-parseInt(_0x5d2637(0x1e7))/0x5+-parseInt(_0x5d2637(0x31f))/0x6*(-parseInt(_0x5d2637(0x389))/0x7)+-parseInt(_0x5d2637(0x18b))/0x8+parseInt(_0x5d2637(0x1dd))/0x9*(-parseInt(_0x5d2637(0x325))/0xa)+parseInt(_0x5d2637(0x2f3))/0xb;if(_0x24e2c3===_0x25a278)break;else _0x213447['push'](_0x213447['shift']());}catch(_0x2b64b3){_0x213447['push'](_0x213447['shift']());}}}(_0x167c,0xb1cd9),function(_0x21a902,_0x5e4408){const _0x3af0ae=_0x405a;typeof exports==_0x3af0ae(0x37f)&&typeof module<'u'?_0x5e4408(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/ui'),require('rxjs'),require('rxjs/operators'),require('@univerjs/design'),require('react'),require('react/jsx-runtime'),require('@univerjs/rpc'),require('@univerjs/sheets'),require('@univerjs/engine-render'),require('@univerjs/network'),require('@univerjs/docs-ui'),require('@univerjs/drawing'),require('@univerjs-pro/collaboration'),require('@univerjs/docs'),require('@univerjs/engine-formula'),require('@univerjs/sheets-ui'),require('@univerjs/protocol')):typeof define==_0x3af0ae(0x165)&&define[_0x3af0ae(0x2bb)]?define([_0x3af0ae(0x176),_0x3af0ae(0x2ac),'@univerjs/core',_0x3af0ae(0x193),_0x3af0ae(0x2de),'rxjs/operators','@univerjs/design',_0x3af0ae(0x2dd),_0x3af0ae(0x2df),_0x3af0ae(0x1d8),_0x3af0ae(0x348),_0x3af0ae(0x3be),'@univerjs/network',_0x3af0ae(0x3f9),_0x3af0ae(0x2a8),_0x3af0ae(0x353),_0x3af0ae(0x177),_0x3af0ae(0x271),_0x3af0ae(0x2a3),_0x3af0ae(0x17c)],_0x5e4408):(_0x21a902=typeof globalThis<'u'?globalThis:_0x21a902||self,_0x5e4408(_0x21a902[_0x3af0ae(0x2f1)]={},_0x21a902[_0x3af0ae(0x3a7)],_0x21a902[_0x3af0ae(0x3f7)],_0x21a902['UniverUi'],_0x21a902[_0x3af0ae(0x2de)],_0x21a902[_0x3af0ae(0x2de)][_0x3af0ae(0x401)],_0x21a902[_0x3af0ae(0x25e)],_0x21a902[_0x3af0ae(0x3dc)],_0x21a902[_0x3af0ae(0x3dc)],_0x21a902[_0x3af0ae(0x295)],_0x21a902['UniverSheets'],_0x21a902[_0x3af0ae(0x2b3)],_0x21a902['UniverNetwork'],_0x21a902[_0x3af0ae(0x364)],_0x21a902[_0x3af0ae(0x274)],_0x21a902[_0x3af0ae(0x3f0)],_0x21a902['UniverDocs'],_0x21a902['UniverEngineFormula'],_0x21a902[_0x3af0ae(0x395)],_0x21a902['UniverProtocol']));}(this,function(_0x2f94b9,_0x20efb1,_0x1d062f,_0x25f9de,_0x5df150,_0x231056,_0x36848a,_0xac8e66,_0xd5ac84,_0x1a5bc2,_0x396996,_0xc630f2,_0x287543,_0x1c6b1f,_0x55bfd1,_0x600789,_0x55d528,_0x4f0b10,_0x5c8585,_0x3c5971){const _0x339b6f=_0x405a;Object[_0x339b6f(0x3b9)](_0x2f94b9,Symbol['toStringTag'],{'value':_0x339b6f(0x3a3)});function _0x58c7d5({ref:_0x340379,..._0x2c8674}){const _0x508370=_0x339b6f;let {icon:_0x252d4a,id:_0x35b781,className:_0x2a566b,extend:_0x36ab7a,..._0x30ed38}=_0x2c8674,_0x26b5ba=(_0x508370(0x1bf)+_0x35b781+'\x20'+(_0x2a566b||''))[_0x508370(0x1a4)](),_0x57855d=(0x0,_0xac8e66[_0x508370(0x2b8)])('_'+_0x540173());return _0x5c742c(_0x252d4a,''+_0x35b781,{'defIds':_0x252d4a[_0x508370(0x2d3)],'idSuffix':_0x57855d[_0x508370(0x216)]},{'ref':_0x340379,'className':_0x26b5ba,..._0x30ed38},_0x36ab7a);}function _0x5c742c(_0x2a45bf,_0x235f26,_0x5f1eac,_0x2a4263,_0x2dae54){const _0x41f7e0=_0x339b6f;return(0x0,_0xac8e66[_0x41f7e0(0x208)])(_0x2a45bf[_0x41f7e0(0x414)],{'key':_0x235f26,..._0x28609e(_0x2a45bf,_0x5f1eac,_0x2dae54),..._0x2a4263},(_0x329b43(_0x2a45bf,_0x5f1eac)['children']||[])[_0x41f7e0(0x19d)]((_0x49f1fb,_0x394b46)=>_0x5c742c(_0x49f1fb,_0x235f26+'-'+_0x2a45bf[_0x41f7e0(0x414)]+'-'+_0x394b46,_0x5f1eac,void 0x0,_0x2dae54)));}function _0x28609e(_0x3539c0,_0x21f92f,_0x495fe8){const _0x1ddf3f=_0x339b6f;let _0x616746={..._0x3539c0[_0x1ddf3f(0x3ce)]};_0x495fe8!=null&&_0x495fe8['colorChannel1']&&_0x616746[_0x1ddf3f(0x34b)]==='colorChannel1'&&(_0x616746[_0x1ddf3f(0x34b)]=_0x495fe8[_0x1ddf3f(0x2e3)]),_0x3539c0[_0x1ddf3f(0x414)]==='mask'&&_0x616746['id']&&(_0x616746['id']+=_0x21f92f[_0x1ddf3f(0x1a1)]),Object['entries'](_0x616746)[_0x1ddf3f(0x159)](([_0x2d887c,_0x61cef9])=>{const _0x53ce5c=_0x1ddf3f;_0x2d887c===_0x53ce5c(0x2b1)&&typeof _0x61cef9=='string'&&(_0x616746[_0x2d887c]=_0x61cef9[_0x53ce5c(0x330)](/url\(#(.*)\)/,'url(#$1'+_0x21f92f['idSuffix']+')'));});let {defIds:_0x205f5c}=_0x21f92f;return!_0x205f5c||_0x205f5c[_0x1ddf3f(0x231)]===0x0?_0x616746:(_0x3539c0[_0x1ddf3f(0x414)]===_0x1ddf3f(0x281)&&_0x616746[_0x1ddf3f(0x336)]&&(_0x616746[_0x1ddf3f(0x336)]+=_0x21f92f[_0x1ddf3f(0x1a1)]),Object[_0x1ddf3f(0x21a)](_0x616746)[_0x1ddf3f(0x159)](([_0x563186,_0xb01a06])=>{const _0x2775bc=_0x1ddf3f;typeof _0xb01a06==_0x2775bc(0x27d)&&(_0x616746[_0x563186]=_0xb01a06[_0x2775bc(0x330)](/url\(#(.*)\)/,_0x2775bc(0x3d8)+_0x21f92f[_0x2775bc(0x1a1)]+')'));}),_0x616746);}function _0x329b43(_0x1a60a9,_0x5a0b22){const _0x5cd642=_0x339b6f;var _0x57c42e;let {defIds:_0x40e7df}=_0x5a0b22;return!_0x40e7df||_0x40e7df[_0x5cd642(0x231)]===0x0?_0x1a60a9:_0x1a60a9[_0x5cd642(0x414)]===_0x5cd642(0x2be)&&(_0x57c42e=_0x1a60a9[_0x5cd642(0x335)])!=null&&_0x57c42e['length']?{..._0x1a60a9,'children':_0x1a60a9[_0x5cd642(0x335)][_0x5cd642(0x19d)](_0x4ed2e5=>typeof _0x4ed2e5[_0x5cd642(0x3ce)]['id']=='string'&&_0x40e7df&&_0x40e7df[_0x5cd642(0x40a)](_0x4ed2e5[_0x5cd642(0x3ce)]['id'])?{..._0x4ed2e5,'attrs':{..._0x4ed2e5[_0x5cd642(0x3ce)],'id':_0x4ed2e5['attrs']['id']+_0x5a0b22[_0x5cd642(0x1a1)]}}:_0x4ed2e5)}:_0x1a60a9;}function _0x540173(){const _0x50c330=_0x339b6f;return Math[_0x50c330(0x20d)]()['toString'](0x24)[_0x50c330(0x1aa)](0x2,0x8);}_0x58c7d5[_0x339b6f(0x24d)]=_0x339b6f(0x23f);let _0x472634={'tag':_0x339b6f(0x1f4),'attrs':{'xmlns':_0x339b6f(0x198),'fill':_0x339b6f(0x35a),'viewBox':'0\x200\x2016\x2016','width':_0x339b6f(0x369),'height':_0x339b6f(0x369)},'children':[{'tag':'g','attrs':{'clipPath':_0x339b6f(0x30d)},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'stroke':_0x339b6f(0x2d4),'d':_0x339b6f(0x3d0),'strokeLinecap':_0x339b6f(0x3a0),'strokeLinejoin':_0x339b6f(0x3a0),'strokeWidth':1.2}}]},{'tag':'defs','attrs':{},'children':[{'tag':_0x339b6f(0x2a9),'attrs':{'id':'off-line-icon_clip0_910_343'},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'fill':_0x339b6f(0x314),'d':'M0\x200H16V16H0z'}}]}]}],'defIds':[_0x339b6f(0x1f0)]},_0x3ea82d=(0x0,_0xac8e66[_0x339b6f(0x2ae)])(function(_0xbee988,_0xf5d57){const _0x541897=_0x339b6f;return(0x0,_0xac8e66['createElement'])(_0x58c7d5,Object[_0x541897(0x3af)]({},_0xbee988,{'id':_0x541897(0x326),'ref':_0xf5d57,'icon':_0x472634}));});_0x3ea82d[_0x339b6f(0x24d)]=_0x339b6f(0x241);let _0x5462e4={'tag':'svg','attrs':{'xmlns':_0x339b6f(0x198),'fill':_0x339b6f(0x35a),'viewBox':_0x339b6f(0x2cd),'width':_0x339b6f(0x369),'height':_0x339b6f(0x369)},'children':[{'tag':'g','attrs':{'clipPath':'url(#on-line-icon_clip0_910_349)'},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'stroke':_0x339b6f(0x2d4),'d':_0x339b6f(0x282),'strokeLinecap':_0x339b6f(0x3a0),'strokeLinejoin':_0x339b6f(0x3a0),'strokeWidth':1.2}}]},{'tag':_0x339b6f(0x2be),'attrs':{},'children':[{'tag':_0x339b6f(0x2a9),'attrs':{'id':'on-line-icon_clip0_910_349'},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'fill':_0x339b6f(0x314),'d':_0x339b6f(0x3cf),'transform':_0x339b6f(0x21d)}}]}]}],'defIds':[_0x339b6f(0x257)]},_0x575ca4=(0x0,_0xac8e66[_0x339b6f(0x2ae)])(function(_0x456f49,_0x14a7a2){const _0x54e44c=_0x339b6f;return(0x0,_0xac8e66[_0x54e44c(0x208)])(_0x58c7d5,Object[_0x54e44c(0x3af)]({},_0x456f49,{'id':_0x54e44c(0x28d),'ref':_0x14a7a2,'icon':_0x5462e4}));});_0x575ca4[_0x339b6f(0x24d)]=_0x339b6f(0x244);let _0x5f39e8={'tag':_0x339b6f(0x1f4),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x339b6f(0x35a),'viewBox':'0\x200\x2016\x2016','width':_0x339b6f(0x369),'height':_0x339b6f(0x369)},'children':[{'tag':_0x339b6f(0x14f),'attrs':{'fill':'#0B9EFB','d':_0x339b6f(0x266),'fillOpacity':0.2,'fillRule':_0x339b6f(0x36c),'clipRule':'evenodd'}},{'tag':'path','attrs':{'fill':_0x339b6f(0x180),'d':_0x339b6f(0x2ee),'fillRule':_0x339b6f(0x36c),'clipRule':_0x339b6f(0x36c)}}]},_0x194ce2=(0x0,_0xac8e66['forwardRef'])(function(_0x3cce8c,_0x4e38cc){const _0x2baeb5=_0x339b6f;return(0x0,_0xac8e66[_0x2baeb5(0x208)])(_0x58c7d5,Object[_0x2baeb5(0x3af)]({},_0x3cce8c,{'id':_0x2baeb5(0x334),'ref':_0x4e38cc,'icon':_0x5f39e8}));});_0x194ce2[_0x339b6f(0x24d)]=_0x339b6f(0x34d);function _0x42a252(_0x487fd0){const _0x270753=_0x339b6f;switch(_0x487fd0){case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x15d)]:return{'icon':(0x0,_0xd5ac84['jsx'])(_0x3ea82d,{}),'colorClass':_0x270753(0x1da),'i18nKey':_0x270753(0x3db),'tooltipKey':_0x270753(0x1cd),'clickable':!0x0,'indicator':_0x270753(0x29b)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x1d9)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x3ea82d,{}),'colorClass':_0x270753(0x362),'i18nKey':_0x270753(0x3b7),'clickable':!0x1,'indicator':_0x270753(0x29b)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x1cf)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x194ce2,{}),'colorClass':_0x270753(0x3b0),'i18nKey':_0x270753(0x29e),'clickable':!0x1,'indicator':_0x270753(0x1b8)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x153)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x575ca4,{}),'colorClass':_0x270753(0x272),'i18nKey':'collaboration-client-ui.collabStatus.notCollab','clickable':!0x1,'indicator':_0x270753(0x29b)};case _0x20efb1[_0x270753(0x1c7)][_0x270753(0x168)]:case _0x20efb1['CollaborationStatus']['AWAITING_WITH_PENDING']:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x194ce2,{}),'colorClass':_0x270753(0x3b0),'i18nKey':'collaboration-client-ui.collabStatus.syncing','clickable':!0x1,'indicator':_0x270753(0x1b8)};case _0x20efb1['CollaborationStatus'][_0x270753(0x38f)]:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x194ce2,{}),'colorClass':_0x270753(0x3b0),'i18nKey':_0x270753(0x253),'clickable':!0x1,'indicator':_0x270753(0x1b8)};case _0x20efb1[_0x270753(0x1c7)]['SYNCED']:return{'icon':(0x0,_0xd5ac84[_0x270753(0x33c)])(_0x575ca4,{}),'colorClass':_0x270753(0x27f),'i18nKey':_0x270753(0x33f),'clickable':!0x1,'indicator':_0x270753(0x29b)};}}function _0x4ee0fa(_0x919d0c){const _0x29f38a=_0x339b6f;let {status$:_0x124798}=_0x919d0c,_0x4959e8=(0x0,_0x25f9de[_0x29f38a(0x33b)])(_0x124798,_0x20efb1[_0x29f38a(0x1c7)][_0x29f38a(0x153)]),_0x1f198b=(0x0,_0x25f9de[_0x29f38a(0x423)])(_0x1d062f[_0x29f38a(0x142)]),_0x145c8f=(0x0,_0x25f9de[_0x29f38a(0x423)])(_0x20efb1[_0x29f38a(0x2c2)]),_0x4603c3=(0x0,_0xac8e66[_0x29f38a(0x1a7)])(()=>_0x42a252(_0x4959e8),[_0x4959e8]),_0x518f24=_0x4959e8!==_0x20efb1['CollaborationStatus'][_0x29f38a(0x15d)],_0x43431f=_0x1f198b['t'](_0x4603c3[_0x29f38a(0x3ee)]),_0x158ac2=_0x4603c3[_0x29f38a(0x158)]?_0x1f198b['t'](_0x4603c3['tooltipKey']):_0x43431f,_0x4812e8=(0x0,_0xac8e66[_0x29f38a(0x293)])(()=>{const _0x457ee3=_0x29f38a;_0x518f24||_0x145c8f[_0x457ee3(0x21b)]();},[_0x518f24,_0x145c8f]),_0x4d4334=(0x0,_0xac8e66['useCallback'])(_0x1c7c19=>{const _0x8f0347=_0x29f38a;!_0x518f24&&(_0x1c7c19[_0x8f0347(0x1a6)]===_0x8f0347(0x3ff)||_0x1c7c19['key']==='\x20')&&(_0x1c7c19[_0x8f0347(0x252)](),_0x145c8f[_0x8f0347(0x21b)]());},[_0x518f24,_0x145c8f]),_0x50e7cb=(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x14b),{'className':(0x0,_0x36848a[_0x29f38a(0x31a)])(_0x29f38a(0x341),'univer-text-xl\x20univer-transition-colors\x20univer-duration-200',_0x4603c3[_0x29f38a(0x16a)],{'univer-animate-spin':_0x4603c3[_0x29f38a(0x24f)]===_0x29f38a(0x1b8),'univer-animate-pulse':_0x4603c3[_0x29f38a(0x24f)]===_0x29f38a(0x41c)}),'aria-hidden':_0x29f38a(0x31e),'children':_0x4603c3[_0x29f38a(0x183)]}),_0x1fbe68=(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x14b),{'className':(0x0,_0x36848a[_0x29f38a(0x31a)])('univer-flex\x20univer-items-center\x20univer-justify-center','univer-h-8\x20univer-w-8\x20univer-rounded-lg','univer-transition-all\x20univer-duration-200',_0x29f38a(0x378),'dark:focus:univer-ring-offset-gray-800',{'univer-cursor-pointer\x20hover:univer-bg-gray-100\x20dark:hover:univer-bg-gray-700':_0x4603c3[_0x29f38a(0x41f)],'univer-cursor-default':!_0x4603c3[_0x29f38a(0x41f)]}),'children':_0x50e7cb});return _0x4603c3[_0x29f38a(0x41f)]?(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x36848a[_0x29f38a(0x351)],{'title':_0x158ac2,'placement':_0x29f38a(0x2d2),'children':(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x1c6),{'type':_0x29f38a(0x1c6),'onClick':_0x4812e8,'onKeyDown':_0x4d4334,'className':(0x0,_0x36848a['clsx'])('univer-inline-flex\x20univer-items-center\x20univer-justify-center',_0x29f38a(0x3fb),_0x29f38a(0x160),_0x29f38a(0x40c)),'aria-label':_0x43431f+_0x29f38a(0x150)+_0x158ac2,'role':_0x29f38a(0x3ca),'aria-live':_0x29f38a(0x2bf),'aria-atomic':_0x29f38a(0x31e),'children':_0x1fbe68})}):(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x36848a[_0x29f38a(0x351)],{'title':_0x158ac2,'placement':_0x29f38a(0x2d2),'children':(0x0,_0xd5ac84[_0x29f38a(0x33c)])(_0x29f38a(0x3d9),{'className':(0x0,_0x36848a[_0x29f38a(0x31a)])(_0x29f38a(0x148),_0x29f38a(0x3fb),_0x29f38a(0x160)),'aria-label':_0x43431f,'role':_0x29f38a(0x3ca),'aria-live':_0x29f38a(0x2bf),'aria-atomic':_0x29f38a(0x31e),'children':_0x1fbe68})});}function _0x56888d(_0x4a0f2c){'@babel/helpers - typeof';const _0x94c2ff=_0x339b6f;return _0x56888d=typeof Symbol=='function'&&typeof Symbol[_0x94c2ff(0x213)]==_0x94c2ff(0x422)?function(_0x3d42af){return typeof _0x3d42af;}:function(_0x4f93bd){const _0x1e2f41=_0x94c2ff;return _0x4f93bd&&typeof Symbol==_0x1e2f41(0x165)&&_0x4f93bd['constructor']===Symbol&&_0x4f93bd!==Symbol[_0x1e2f41(0x15c)]?_0x1e2f41(0x422):typeof _0x4f93bd;},_0x56888d(_0x4a0f2c);}function _0x37e4d0(_0x590cf6,_0x1f4740){const _0x21431d=_0x339b6f;if(_0x56888d(_0x590cf6)!=_0x21431d(0x37f)||!_0x590cf6)return _0x590cf6;var _0x24e249=_0x590cf6[Symbol[_0x21431d(0x380)]];if(_0x24e249!==void 0x0){var _0x4c74b4=_0x24e249[_0x21431d(0x29f)](_0x590cf6,_0x1f4740||_0x21431d(0x312));if(_0x56888d(_0x4c74b4)!=_0x21431d(0x37f))return _0x4c74b4;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1f4740===_0x21431d(0x27d)?String:Number)(_0x590cf6);}function _0x1eb7bb(_0x46ec26){const _0x2f25db=_0x339b6f;var _0x2bc9f3=_0x37e4d0(_0x46ec26,_0x2f25db(0x27d));return _0x56888d(_0x2bc9f3)==_0x2f25db(0x422)?_0x2bc9f3:_0x2bc9f3+'';}function _0x1050e7(_0x330a98,_0x2bf9f6,_0xa3e105){const _0xcbf937=_0x339b6f;return(_0x2bf9f6=_0x1eb7bb(_0x2bf9f6))in _0x330a98?Object[_0xcbf937(0x3b9)](_0x330a98,_0x2bf9f6,{'value':_0xa3e105,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x330a98[_0x2bf9f6]=_0xa3e105,_0x330a98;}function _0x21c55a(_0x2d7a36,_0x1a0316){return function(_0x1080df,_0x54ac25){_0x1a0316(_0x1080df,_0x54ac25,_0x2d7a36);};}function _0x8db4f3(_0xe2d024,_0x564045,_0x188b13,_0x5bdbe6){const _0x52b6aa=_0x339b6f;var _0x452096=arguments[_0x52b6aa(0x231)],_0x1b4fb3=_0x452096<0x3?_0x564045:_0x5bdbe6===null?_0x5bdbe6=Object[_0x52b6aa(0x358)](_0x564045,_0x188b13):_0x5bdbe6,_0x3c756c;if(typeof Reflect=='object'&&typeof Reflect[_0x52b6aa(0x374)]==_0x52b6aa(0x165))_0x1b4fb3=Reflect[_0x52b6aa(0x374)](_0xe2d024,_0x564045,_0x188b13,_0x5bdbe6);else{for(var _0x308e28=_0xe2d024[_0x52b6aa(0x231)]-0x1;_0x308e28>=0x0;_0x308e28--)(_0x3c756c=_0xe2d024[_0x308e28])&&(_0x1b4fb3=(_0x452096<0x3?_0x3c756c(_0x1b4fb3):_0x452096>0x3?_0x3c756c(_0x564045,_0x188b13,_0x1b4fb3):_0x3c756c(_0x564045,_0x188b13))||_0x1b4fb3);}return _0x452096>0x3&&_0x1b4fb3&&Object[_0x52b6aa(0x3b9)](_0x564045,_0x188b13,_0x1b4fb3),_0x1b4fb3;}let _0x22b7f5=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x2bb641,_0x2cb03e,_0x2878e6,_0x41af0a){const _0x71cb39=_0x339b6f;super(),this['_univerInstanceService']=_0x2bb641,this[_0x71cb39(0x405)]=_0x2cb03e,this['_collaborationController']=_0x2878e6,this[_0x71cb39(0x204)]=_0x41af0a,_0x1050e7(this,_0x71cb39(0x396),new _0x5df150['BehaviorSubject'](_0x20efb1['CollaborationStatus'][_0x71cb39(0x153)])),this[_0x71cb39(0x246)](),this['_initStatusListener']();}[_0x339b6f(0x18d)](){const _0x577076=_0x339b6f;this['disposeWithMe']((0x0,_0x5df150['merge'])(this['_univerInstanceService']['focused$'],this[_0x577076(0x30f)][_0x577076(0x394)](_0x1d062f[_0x577076(0x397)][_0x577076(0x39d)]),this[_0x577076(0x30f)][_0x577076(0x394)](_0x1d062f[_0x577076(0x397)][_0x577076(0x16f)]))[_0x577076(0x300)]((0x0,_0x231056[_0x577076(0x19d)])(()=>_0x277f5b(this['_univerInstanceService'])),(0x0,_0x231056[_0x577076(0x41a)])(),(0x0,_0x5df150[_0x577076(0x288)])(_0x34f2e6=>_0x34f2e6?this['_collaborationController']['getCollabEntity$'](_0x34f2e6):(0x0,_0x5df150['of'])(null)),(0x0,_0x5df150[_0x577076(0x288)])(_0x599eee=>_0x599eee?_0x599eee['status$']:(0x0,_0x5df150['of'])(_0x20efb1[_0x577076(0x1c7)][_0x577076(0x153)])))[_0x577076(0x3cd)](_0x2ef6af=>{const _0x27aefd=_0x577076;this['_status$'][_0x27aefd(0x1c8)](_0x2ef6af);}));}['_initStatusComponent'](){const _0x2db265=_0x339b6f;this[_0x2db265(0x18c)](this[_0x2db265(0x204)][_0x2db265(0x311)](_0x25f9de[_0x2db265(0x340)]['HEADER_MENU'],()=>(0x0,_0x25f9de[_0x2db265(0x299)])(_0x7a77eb({'status$':this[_0x2db265(0x396)][_0x2db265(0x233)]()}),this[_0x2db265(0x405)])));}};_0x22b7f5=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x275)])),_0x21c55a(0x3,_0x25f9de['IUIPartsService'])],_0x22b7f5);function _0x277f5b(_0x4d1de8){const _0x491849=_0x339b6f;let _0x1dea84=_0x4d1de8[_0x491849(0x32d)](),_0x5ca663=_0x1dea84==null?void 0x0:_0x1dea84[_0x491849(0x2c0)]();if(_0x5ca663&&!(0x0,_0x1d062f[_0x491849(0x387)])(_0x5ca663))return _0x5ca663;let _0x5b52d5=_0x4d1de8[_0x491849(0x375)](_0x1d062f[_0x491849(0x397)][_0x491849(0x39d)]),_0x5c5833=_0x5b52d5==null?void 0x0:_0x5b52d5[_0x491849(0x2c0)]();if(_0x5c5833&&!(0x0,_0x1d062f[_0x491849(0x387)])(_0x5c5833))return _0x5c5833;let _0x4901a6=_0x4d1de8[_0x491849(0x375)](_0x1d062f['UniverInstanceType']['UNIVER_SHEET']);if(_0x4901a6)return _0x4901a6['getUnitId']();let _0xccb35=_0x4d1de8[_0x491849(0x17f)](_0x1d062f['UniverInstanceType'][_0x491849(0x39d)])[_0x491849(0x1fb)](_0x489c9b=>!(0x0,_0x1d062f[_0x491849(0x387)])(_0x489c9b[_0x491849(0x2c0)]()));return _0xccb35?_0xccb35[_0x491849(0x2c0)]():null;}function _0x7a77eb(_0x4cfbd4){let {status$:_0x16a9e3}=_0x4cfbd4;return function(){const _0x536735=_0x405a;return(0x0,_0xd5ac84[_0x536735(0x33c)])(_0x4ee0fa,{'status$':_0x16a9e3});};}let _0x388e4a=(0x0,_0x1d062f[_0x339b6f(0x1f5)])(_0x339b6f(0x235)),_0x8bd3ea=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0xecf6f5,_0x56f05f,_0x3470d7,_0x2a1a67,_0xc62f92){const _0x62c8e5=_0x339b6f;super(),this['_urlService']=_0xecf6f5,this[_0x62c8e5(0x1dc)]=_0x56f05f,this[_0x62c8e5(0x3a4)]=_0x3470d7,this['_dataLoaderService']=_0x2a1a67,_0xc62f92?_0xc62f92==null||_0xc62f92[_0x62c8e5(0x19b)]()[_0x62c8e5(0x3f8)](()=>this[_0x62c8e5(0x1ac)]()):(this['_logService']['debug'](_0x62c8e5(0x384),_0x62c8e5(0x3ab)),this['_init']());}async[_0x339b6f(0x1ac)](){const _0x33de03=_0x339b6f;let _0x1897a8=this['_urlService']['getParam'](_0x33de03(0x3b2)),_0x361235=this[_0x33de03(0x224)][_0x33de03(0x2c4)](_0x33de03(0x1f8)),_0x41f1d3=this[_0x33de03(0x224)][_0x33de03(0x2c4)](_0x33de03(0x319));if(!_0x1897a8||!_0x361235){this[_0x33de03(0x1dc)][_0x33de03(0x2e5)](_0x33de03(0x384),_0x33de03(0x185));return;}let _0x308d4f=await this['_dataLoaderService'][_0x33de03(0x25b)](_0x1897a8,Number(_0x361235),_0x41f1d3);_0x308d4f&&_0x308d4f instanceof _0x1d062f[_0x33de03(0x27a)]&&this[_0x33de03(0x417)](_0x308d4f);}async[_0x339b6f(0x417)](_0x1cd77d){const _0x34c09a=_0x339b6f;await this[_0x34c09a(0x39c)](_0x1cd77d),_0x1cd77d[_0x34c09a(0x26b)][_0x34c09a(0x300)]((0x0,_0x5df150[_0x34c09a(0x154)])(this[_0x34c09a(0x23c)]))[_0x34c09a(0x3cd)](_0x599b4c=>{const _0x212bb4=_0x34c09a;_0x599b4c&&this[_0x212bb4(0x197)](_0x599b4c);}),this[_0x34c09a(0x224)][_0x34c09a(0x2b2)][_0x34c09a(0x300)]((0x0,_0x5df150['takeUntil'])(this[_0x34c09a(0x23c)]))[_0x34c09a(0x3cd)](()=>this[_0x34c09a(0x39c)](_0x1cd77d));}[_0x339b6f(0x197)](_0xce6784,_0x296474=!0x1){const _0x96c48e=_0x339b6f;let _0x354984=this['_urlService'][_0x96c48e(0x2c4)](_0x96c48e(0x319));_0xce6784[_0x96c48e(0x152)]()!==_0x354984&&this[_0x96c48e(0x224)][_0x96c48e(0x40b)](_0x96c48e(0x319),_0xce6784[_0x96c48e(0x152)](),_0x296474);}async[_0x339b6f(0x39c)](_0x13004f){const _0x20f1af=_0x339b6f;var _0x4454a6;let _0x35cb3=this[_0x20f1af(0x224)]['getParam']('subunit');if(!_0x35cb3||!_0x13004f[_0x20f1af(0x3a2)](_0x35cb3)){let _0x4c2661=_0x13004f[_0x20f1af(0x201)]()[0x0],_0x358875=_0x13004f[_0x20f1af(0x3a2)](_0x4c2661);if(!_0x358875)return;this['_updateURLWithCurrentState'](_0x358875,!0x0),await this[_0x20f1af(0x3a4)][_0x20f1af(0x426)](_0x396996[_0x20f1af(0x3c2)]['id'],{'unitId':_0x13004f[_0x20f1af(0x2c0)](),'subUnitId':_0x4c2661});return;}((_0x4454a6=_0x13004f['getActiveSheet']())==null?void 0x0:_0x4454a6[_0x20f1af(0x152)]())!==_0x35cb3&&await this['_commandService'][_0x20f1af(0x426)](_0x396996[_0x20f1af(0x3c2)]['id'],{'unitId':_0x13004f[_0x20f1af(0x2c0)](),'subUnitId':_0x35cb3});}};_0x8bd3ea=_0x8db4f3([_0x21c55a(0x0,_0x388e4a),_0x21c55a(0x1,_0x1d062f[_0x339b6f(0x408)]),_0x21c55a(0x2,_0x1d062f['ICommandService']),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1['DataLoaderService'])),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x15a)])(_0x1a5bc2['IRemoteInstanceService']))],_0x8bd3ea);var _0x5cf5d0=_0x339b6f(0x214),_0x57d268=_0x339b6f(0x3b3);let _0x57c67b=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x53aa11,_0x5b9649){const _0x79eab6=_0x339b6f;super(),this[_0x79eab6(0x38c)]=_0x53aa11,this[_0x79eab6(0x3c0)]=_0x5b9649,this[_0x79eab6(0x1ac)]();}[_0x339b6f(0x1ac)](){const _0x135e2f=_0x339b6f;let _0x11a18e=this;this[_0x135e2f(0x18c)](this['_docClipboardService'][_0x135e2f(0x1e4)]({'onBeforePasteImage':async _0x2dab72=>{const _0x19b5bd=_0x135e2f;let _0x5c997b=await _0x11a18e['_imageIoService'][_0x19b5bd(0x2b4)](_0x2dab72);return _0x5c997b?{'source':_0x5c997b[_0x19b5bd(0x22e)],'imageSourceType':_0x5c997b[_0x19b5bd(0x261)]}:null;}}));}};_0x57c67b=_0x8db4f3([_0x21c55a(0x0,_0x1c6b1f[_0x339b6f(0x2b6)]),_0x21c55a(0x1,_0x55bfd1[_0x339b6f(0x25d)])],_0x57c67b);let _0x1a0ae4=[_0x339b6f(0x236),_0x339b6f(0x1b6),'green.600','red.300',_0x339b6f(0x1c5),_0x339b6f(0x250)];var _0x47fa48=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(..._0x46a497){const _0xd2dd4a=_0x339b6f;super(..._0x46a497),_0x1050e7(this,_0xd2dd4a(0x3f3),new Map()),_0x1050e7(this,_0xd2dd4a(0x3cb),0x0);}['assignAColorForMemberID'](_0x4af2f8){const _0x11e48e=_0x339b6f;if(this[_0x11e48e(0x3f3)][_0x11e48e(0x377)](_0x4af2f8))return this[_0x11e48e(0x3f3)][_0x11e48e(0x3fe)](_0x4af2f8);let _0x2912f3=_0x1a0ae4[this[_0x11e48e(0x3cb)]];return this[_0x11e48e(0x3cb)]=(this['_colorIndex']+0x1)%_0x1a0ae4[_0x11e48e(0x231)],this[_0x11e48e(0x3f3)][_0x11e48e(0x3e7)](_0x4af2f8,_0x2912f3),_0x2912f3;}};function _0x508943(_0x30e04d){let _0x23ab4e='';for(let _0x5183cd of _0x30e04d){let {startOffset:_0x2580d8,endOffset:_0x29318e,isActive:_0x46a557,rangeType:_0x3ab92b,segmentId:_0x52e7d0,segmentPage:_0x268d9b}=_0x5183cd;_0x23ab4e['length']&&(_0x23ab4e+=','),_0x23ab4e+=_0x2580d8+':'+_0x29318e+':'+(_0x46a557?'1':'0')+':'+_0x3ab92b+':'+_0x52e7d0+':'+_0x268d9b;}return _0x23ab4e;}function _0x5283db(_0x4d898d){const _0x53e921=_0x339b6f;let _0x170a31=_0x4d898d[_0x53e921(0x3d6)](','),_0x838153=[];for(let _0x3d2063 of _0x170a31){let [_0x44e79b,_0x4eaa64,_0x3c8633,_0x419eef,_0xd83619,_0x56c15e]=_0x3d2063[_0x53e921(0x3d6)](':');_0x838153[_0x53e921(0x411)]({'startOffset':Number(_0x44e79b),'endOffset':Number(_0x4eaa64),'collapsed':_0x44e79b===_0x4eaa64,'isActive':_0x3c8633==='1','rangeType':_0x419eef===_0x1d062f['DOC_RANGE_TYPE'][_0x53e921(0x3e0)]?_0x1d062f[_0x53e921(0x263)]['TEXT']:_0x1d062f[_0x53e921(0x263)][_0x53e921(0x390)],'segmentId':typeof _0xd83619=='string'?String(_0xd83619):'','segmentPage':Number(_0x56c15e==null?-0x1:_0x56c15e)});}return _0x838153[_0x53e921(0x3f2)](_0x3e4731=>_0x3e4731[_0x53e921(0x2e1)])||(_0x838153[0x0][_0x53e921(0x2e1)]=!0x0),_0x838153;}var _0x2b1e68=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(..._0x16d8bd){const _0x48185c=_0x339b6f;super(..._0x16d8bd),_0x1050e7(this,'_collabCursorState$',new _0x5df150[(_0x48185c(0x2ef))](null)),_0x1050e7(this,_0x48185c(0x2ca),this[_0x48185c(0x2f5)][_0x48185c(0x233)]());}[_0x339b6f(0x34f)](_0x17ae53){const _0x2305c6=_0x339b6f;let {unitID:_0x200e17,memberID:_0x42cf91,textRanges:_0x13b7d2}=_0x17ae53,_0x3ded76=_0x508943(_0x13b7d2);if(_0x3ded76==='')return;let _0x591586={'unitID':_0x200e17,'memberID':_0x42cf91,'selection':_0x3ded76};this[_0x2305c6(0x2f5)][_0x2305c6(0x1c8)](_0x591586);}};let _0x46dd2d=class extends _0x1d062f['RxDisposable']{get[_0x339b6f(0x2d6)](){const _0x1b0df1=_0x339b6f;return this[_0x1b0df1(0x3e6)][_0x1b0df1(0x359)]();}get['roomMembers'](){const _0x36ad9f=_0x339b6f;return this[_0x36ad9f(0x26e)][_0x36ad9f(0x359)]();}constructor(_0xbd439f,_0x6003a4,_0x57469e,_0x578826,_0x4e5efb,_0x11f637,_0x35e397,_0x47789f,_0x2d0b81){const _0x431539=_0x339b6f;super(),this['unitID']=_0xbd439f,this['_session']=_0x6003a4,this[_0x431539(0x405)]=_0x57469e,this[_0x431539(0x391)]=_0x578826,this[_0x431539(0x40f)]=_0x4e5efb,this['_syncEditingCollabCursorService']=_0x11f637,this[_0x431539(0x3d2)]=_0x35e397,this['_univerInstanceService']=_0x47789f,this['_commandService']=_0x2d0b81,_0x1050e7(this,_0x431539(0x243),!0x1),_0x1050e7(this,_0x431539(0x1ac),!0x1),_0x1050e7(this,_0x431539(0x3e6),new _0x5df150['BehaviorSubject'](new Map())),_0x1050e7(this,_0x431539(0x379),this[_0x431539(0x3e6)][_0x431539(0x233)]()),_0x1050e7(this,'_roomMembers$',new _0x5df150[(_0x431539(0x2ef))]([])),_0x1050e7(this,_0x431539(0x2ea),this[_0x431539(0x26e)]['pipe']((0x0,_0x5df150['debounceTime'])(0x12c))),_0x1050e7(this,_0x431539(0x418),(0x0,_0x1d062f[_0x431539(0x14e)])(_0x3d68d4=>{const _0x4ff308=_0x431539;let _0x3f80be={'eventID':_0x600789[_0x4ff308(0x219)]['UPDATE_CURSOR'],'data':{'unitID':this[_0x4ff308(0x310)],'memberID':this[_0x4ff308(0x2c8)][_0x4ff308(0x164)](),'selection':_0x508943(_0x3d68d4)}};this[_0x4ff308(0x2c8)]['send'](_0x3f80be,this[_0x4ff308(0x310)]);},0x64));}[_0x339b6f(0x39e)](){const _0x2df67e=_0x339b6f;super[_0x2df67e(0x39e)](),this[_0x2df67e(0x3e6)][_0x2df67e(0x1c8)](new Map()),this[_0x2df67e(0x3e6)][_0x2df67e(0x2ba)](),this['_roomMembers$'][_0x2df67e(0x1c8)]([]),this[_0x2df67e(0x26e)][_0x2df67e(0x2ba)]();}[_0x339b6f(0x2e4)](){const _0x513a9d=_0x339b6f;this['_init']||(this[_0x513a9d(0x1ac)]=!0x0,this[_0x513a9d(0x2c8)]['sessionStatus$'][_0x513a9d(0x300)]((0x0,_0x5df150['takeUntil'])(this['dispose$']))['subscribe'](_0x590975=>{const _0x2c8c80=_0x513a9d;_0x590975===_0x20efb1[_0x2c8c80(0x1ff)][_0x2c8c80(0x155)]?this[_0x2c8c80(0x15b)]():this[_0x2c8c80(0x345)]();}),this[_0x513a9d(0x2c8)][_0x513a9d(0x21e)][_0x513a9d(0x300)]((0x0,_0x5df150[_0x513a9d(0x154)])(this['dispose$']))[_0x513a9d(0x3cd)](_0x346581=>{const _0x4844ba=_0x513a9d;let _0x3fb39b=_0x346581[_0x4844ba(0x2f9)];_0x3fb39b===_0x600789[_0x4844ba(0x219)][_0x4844ba(0x40e)]&&this[_0x4844ba(0x2fc)](_0x346581),_0x3fb39b===_0x600789['CollaborationEvent'][_0x4844ba(0x36b)]&&this['_onCursorDelete'](_0x346581);}),this[_0x513a9d(0x18c)](this[_0x513a9d(0x3a4)][_0x513a9d(0x1b0)](_0x44442c=>{const _0x1ec7ed=_0x513a9d;let _0x3649aa=_0x44442c[_0x1ec7ed(0x3c9)];_0x3649aa!=null&&this[_0x1ec7ed(0x243)]&&_0x44442c['id']===_0x55d528[_0x1ec7ed(0x402)]['id']&&_0x3649aa['unitId']===this[_0x1ec7ed(0x310)]&&_0x3649aa['isEditing']===!0x1&&_0x3649aa[_0x1ec7ed(0x354)]['length']>0x0&&this[_0x1ec7ed(0x418)](_0x3649aa['ranges']);})),this[_0x513a9d(0x2fa)][_0x513a9d(0x2ca)][_0x513a9d(0x300)]((0x0,_0x5df150['takeUntil'])(this['dispose$']))['subscribe'](_0xa307fc=>{const _0x3353a6=_0x513a9d;if((_0xa307fc==null?void 0x0:_0xa307fc['unitID'])!==this[_0x3353a6(0x310)])return;let _0x337417={'eventID':_0x600789[_0x3353a6(0x219)][_0x3353a6(0x40e)],'data':_0xa307fc};this[_0x3353a6(0x2fc)](_0x337417);}),this[_0x513a9d(0x18c)](this[_0x513a9d(0x3a4)][_0x513a9d(0x1b0)](_0x10ca22=>{const _0x4dc43a=_0x513a9d;if(_0x10ca22[_0x4dc43a(0x3c9)]==null)return;let _0x4b3903=_0x10ca22[_0x4dc43a(0x3c9)];if(_0x10ca22['id']!==_0x55d528[_0x4dc43a(0x1c1)]['id']||_0x4b3903[_0x4dc43a(0x24e)]!==this[_0x4dc43a(0x310)])return;let _0x347be7={'id':_0x4dc43a(0x234),'params':_0x4b3903},_0x559fbc=this['cursorInfo'];for(let [_0x2bcef5,_0x4c37d3]of _0x559fbc){let _0x2a3cc1={'id':'doc.mutation.rich-text-editing','params':{'unitId':this[_0x4dc43a(0x310)],'actions':null,'textRanges':_0x4c37d3[_0x4dc43a(0x354)]}},_0x16653f=this[_0x4dc43a(0x3d2)]['transformMutation'](_0x347be7,_0x2a3cc1,!0x1);if((0x0,_0x600789[_0x4dc43a(0x24c)])(_0x16653f))throw _0x16653f['error'];_0x559fbc[_0x4dc43a(0x3e7)](_0x2bcef5,{..._0x4c37d3,'ranges':_0x16653f[_0x4dc43a(0x3b4)][_0x4dc43a(0x3c9)]['textRanges']});}queueMicrotask(()=>{const _0x3cac36=_0x4dc43a;this[_0x3cac36(0x3e6)][_0x3cac36(0x1c8)](_0x559fbc);});})));}['_onCursorUpdate'](_0x515796){const _0x543538=_0x339b6f;var _0x252b6f,_0x2a4c4b;let {memberID:_0x54b83f,selection:_0x1f6396}=_0x515796[_0x543538(0x33e)],_0x3728e3=_0x5283db(_0x1f6396),_0x3af45b=(_0x252b6f=(_0x2a4c4b=this[_0x543538(0x40f)][_0x543538(0x321)](this[_0x543538(0x310)],_0x54b83f))==null?void 0x0:_0x2a4c4b[_0x543538(0x318)])==null?_0x543538(0x217):_0x252b6f,_0x4824d5={'color':this[_0x543538(0x391)][_0x543538(0x1de)](_0x54b83f),'name':_0x3af45b,'ranges':_0x3728e3},_0x47b93d=this[_0x543538(0x2d6)];_0x47b93d[_0x543538(0x3e7)](_0x54b83f,_0x4824d5),this[_0x543538(0x3e6)][_0x543538(0x1c8)](_0x47b93d);}[_0x339b6f(0x296)](_0x4594e5){const _0x3fc289=_0x339b6f;let {memberID:_0x6ac76}=_0x4594e5[_0x3fc289(0x33e)],_0x53aa6a=this['cursorInfo'];_0x53aa6a[_0x3fc289(0x229)](_0x6ac76),this[_0x3fc289(0x3e6)][_0x3fc289(0x1c8)](_0x53aa6a);}[_0x339b6f(0x15b)](){const _0x379173=_0x339b6f;var _0x1549f7;if(this[_0x379173(0x243)]=!0x0,((_0x1549f7=this[_0x379173(0x30f)][_0x379173(0x32d)]())==null?void 0x0:_0x1549f7[_0x379173(0x2c0)]())!==this['unitID'])return;let _0x450edd=this['_injector'][_0x379173(0x3fe)](_0x55d528[_0x379173(0x3a6)])[_0x379173(0x357)]();Array[_0x379173(0x1df)](_0x450edd)&&_0x450edd[_0x379173(0x231)]>0x0&&this[_0x379173(0x418)](_0x450edd);}['_toggleOffline'](){const _0x3764e2=_0x339b6f;this[_0x3764e2(0x243)]=!0x1;}};_0x46dd2d=_0x8db4f3([_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x47fa48)),_0x21c55a(0x4,(0x0,_0x1d062f['Inject'])(_0x20efb1['MemberService'])),_0x21c55a(0x5,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x2b1e68)),_0x21c55a(0x6,_0x600789[_0x339b6f(0x1e6)]),_0x21c55a(0x7,_0x1d062f['IUniverInstanceService']),_0x21c55a(0x8,_0x1d062f[_0x339b6f(0x2a0)])],_0x46dd2d);let _0x1f9a72=()=>{let _0x72d455=[],_0x308392=!0x1;return _0xb2c1dd=>{_0x72d455['push'](_0xb2c1dd),_0x308392||(_0x308392=!0x0,setTimeout(()=>{const _0x25cf5f=_0x405a;_0x72d455[_0x25cf5f(0x159)](_0x55f75b=>_0x55f75b()),_0x72d455=[],_0x308392=!0x1;}));};},_0x2ae18d=class extends _0x1d062f['RxDisposable']{get[_0x339b6f(0x2d6)](){const _0x221736=_0x339b6f;return this[_0x221736(0x3e6)][_0x221736(0x359)]();}get[_0x339b6f(0x2e6)](){const _0x5b5e3a=_0x339b6f;return this[_0x5b5e3a(0x26e)]['getValue']();}constructor(_0x4c5a2f,_0x482618,_0x253231,_0x35a672,_0x4d1f90,_0x42937a,_0x40d8e1,_0x44a212){const _0x304dd5=_0x339b6f;super(),this[_0x304dd5(0x310)]=_0x4c5a2f,this['_session']=_0x482618,this[_0x304dd5(0x405)]=_0x253231,this['_colorAssignService']=_0x35a672,this[_0x304dd5(0x40f)]=_0x4d1f90,this[_0x304dd5(0x30f)]=_0x42937a,this[_0x304dd5(0x3a4)]=_0x40d8e1,this[_0x304dd5(0x34a)]=_0x44a212,_0x1050e7(this,'_online',!0x1),_0x1050e7(this,_0x304dd5(0x1ac),!0x1),_0x1050e7(this,_0x304dd5(0x3e6),new _0x5df150[(_0x304dd5(0x2ef))](new Map())),_0x1050e7(this,_0x304dd5(0x379),this[_0x304dd5(0x3e6)][_0x304dd5(0x233)]()),_0x1050e7(this,_0x304dd5(0x26e),new _0x5df150['BehaviorSubject']([])),_0x1050e7(this,'roomMembers$',this[_0x304dd5(0x26e)][_0x304dd5(0x300)]((0x0,_0x5df150[_0x304dd5(0x31d)])(0x12c))),_0x1050e7(this,_0x304dd5(0x418),(0x0,_0x1d062f[_0x304dd5(0x14e)])((_0x411668,_0xe97204)=>{const _0x3b4178=_0x304dd5;let _0x58abde={'eventID':_0x600789[_0x3b4178(0x219)]['UPDATE_CURSOR'],'data':{'unitID':this['unitID'],'memberID':this['_session'][_0x3b4178(0x164)](),'selection':(0x0,_0x4f0b10[_0x3b4178(0x3de)])(_0x411668,_0xe97204['range'])}};this[_0x3b4178(0x2c8)][_0x3b4178(0x1c2)](_0x58abde,this[_0x3b4178(0x310)]);},0x64));}['dispose'](){const _0x546bf0=_0x339b6f;super[_0x546bf0(0x39e)](),this['_cursorInfo$'][_0x546bf0(0x1c8)](new Map()),this[_0x546bf0(0x3e6)][_0x546bf0(0x2ba)](),this['_roomMembers$'][_0x546bf0(0x1c8)]([]),this[_0x546bf0(0x26e)][_0x546bf0(0x2ba)]();}['init'](){const _0x824305=_0x339b6f;this['_init']||(this['_init']=!0x0,this[_0x824305(0x2c8)]['sessionStatus$']['pipe']((0x0,_0x5df150['takeUntil'])(this[_0x824305(0x23c)]))[_0x824305(0x3cd)](_0x209100=>{const _0x10f85c=_0x824305;_0x209100===_0x20efb1[_0x10f85c(0x1ff)][_0x10f85c(0x155)]?this[_0x10f85c(0x15b)]():this[_0x10f85c(0x345)]();}),this['_session'][_0x824305(0x21e)]['pipe']((0x0,_0x5df150['takeUntil'])(this[_0x824305(0x23c)]))[_0x824305(0x3cd)](_0x407948=>{const _0x25e592=_0x824305;let _0x29aa2b=_0x407948[_0x25e592(0x2f9)];_0x29aa2b===_0x600789[_0x25e592(0x219)][_0x25e592(0x40e)]&&this['_onCursorUpdate'](_0x407948),_0x29aa2b===_0x600789[_0x25e592(0x219)]['USERS_LEAVE']&&this['_onCursorDelete'](_0x407948);}),this['_onRefRangeChange'](),this[_0x824305(0x18c)](this['_commandService'][_0x824305(0x1b0)](_0x5736bd=>{const _0x5bee4b=_0x824305;if(this[_0x5bee4b(0x243)]&&_0x5736bd['id']===_0x396996[_0x5bee4b(0x20b)]['id']&&_0x5736bd[_0x5bee4b(0x3c9)]['unitId']===this['unitID']){let _0x50d59b=_0x5736bd[_0x5bee4b(0x3c9)];this[_0x5bee4b(0x418)](_0x50d59b[_0x5bee4b(0x2d1)],_0x50d59b[_0x5bee4b(0x3d4)][0x0]);}})));}[_0x339b6f(0x2fc)](_0x483dc4){const _0x45512a=_0x339b6f;var _0x43608b,_0x302a31;let {memberID:_0x37a3a6,selection:_0x2c0e65}=_0x483dc4[_0x45512a(0x33e)],{sheetName:_0x538475,range:_0x78f254}=(0x0,_0x4f0b10[_0x45512a(0x2f6)])(_0x2c0e65),_0x4bb234={'name':(_0x43608b=(_0x302a31=this[_0x45512a(0x40f)][_0x45512a(0x321)](this[_0x45512a(0x310)],_0x37a3a6))==null?void 0x0:_0x302a31[_0x45512a(0x318)])==null?_0x45512a(0x217):_0x43608b,'range':this[_0x45512a(0x1d6)](_0x538475,_0x78f254),'sheetID':_0x538475,'color':this['_colorAssignService'][_0x45512a(0x1de)](_0x37a3a6),'selection':_0x2c0e65},_0x10180c=this['cursorInfo'];_0x10180c[_0x45512a(0x3e7)](_0x37a3a6,_0x4bb234),this[_0x45512a(0x3e6)][_0x45512a(0x1c8)](_0x10180c);}['_onCursorDelete'](_0x374889){const _0x148773=_0x339b6f;let {memberID:_0x2f8f29}=_0x374889['data'],_0x10ff30=this['cursorInfo'];_0x10ff30[_0x148773(0x229)](_0x2f8f29),this['_cursorInfo$']['next'](_0x10ff30);}[_0x339b6f(0x1d6)](_0x119823,_0x439905){const _0x25cb9c=_0x339b6f;var _0x363eb8;let _0x54cc58=(_0x363eb8=this[_0x25cb9c(0x30f)][_0x25cb9c(0x392)](this[_0x25cb9c(0x310)]))==null||(_0x363eb8=_0x363eb8['getSheetBySheetId'](_0x119823))==null?void 0x0:_0x363eb8[_0x25cb9c(0x1ca)]();return(_0x54cc58==null?void 0x0:_0x54cc58[_0x25cb9c(0x1fb)](_0x3084d4=>_0x1d062f['Rectangle']['contains'](_0x3084d4,_0x439905)))||_0x439905;}['_onRefRangeChange'](){const _0xdf8b9=_0x339b6f;let _0x54ea51=new _0x1d062f[(_0xdf8b9(0x239))](),_0x488e7a=_0x1f9a72(),_0x26c0f4=()=>{const _0x520e3e=_0xdf8b9;_0x54ea51[_0x520e3e(0x39e)]();let _0x1ff0b6=(_0x55465a,_0x260a6e,_0xa0efd1,_0x3ca4b1)=>{const _0x36fc85=_0x520e3e;let _0x2d36e1=[];switch(_0x55465a['id']){case _0x396996['EffectRefRangId']['DeleteRangeMoveLeftCommandId']:_0x2d36e1=(0x0,_0x396996['handleDeleteRangeMoveLeft'])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x337)]:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x3c1)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x189)]:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x2cc)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x205)]:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x242)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['InsertRangeMoveRightCommandId']:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x277)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)][_0x36fc85(0x3b8)]:_0x2d36e1=(0x0,_0x396996['handleInsertRow'])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['MoveRangeCommandId']:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x367)])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['RemoveColCommandId']:_0x2d36e1=(0x0,_0x396996['handleIRemoveCol'])(_0x55465a,_0x3ca4b1);break;case _0x396996[_0x36fc85(0x297)]['RemoveRowCommandId']:_0x2d36e1=(0x0,_0x396996[_0x36fc85(0x22c)])(_0x55465a,_0x3ca4b1);break;}let _0x269372=(0x0,_0x396996[_0x36fc85(0x3b6)])(_0x2d36e1,_0x3ca4b1),_0x83c5a3=this['cursorInfo'][_0x36fc85(0x3fe)](_0x260a6e);if(_0x83c5a3&&_0x269372){let _0x3f6acf={..._0x83c5a3,'range':_0x269372};this[_0x36fc85(0x2d6)][_0x36fc85(0x3e7)](_0x260a6e,_0x3f6acf),_0x488e7a(()=>{const _0x106381=_0x36fc85;let _0x323e48=this[_0x106381(0x34a)][_0x106381(0x1cc)](_0x269372,_0x4091c8=>(_0x323e48['dispose'](),_0x1ff0b6(_0x4091c8,_0x260a6e,_0xa0efd1,_0x269372)));_0x54ea51[_0x106381(0x30e)](_0x323e48);});}return{'redos':[],'undos':[]};};this[_0x520e3e(0x2d6)][_0x520e3e(0x159)]((_0x7b165,_0x17309c)=>{const _0x4fa7ab=_0x520e3e;let {range:_0x2e4952,sheetID:_0x29a4c0}=_0x7b165,_0x59ae70=this[_0x4fa7ab(0x34a)]['registerRefRange'](_0x2e4952,_0x53de25=>(_0x59ae70[_0x4fa7ab(0x39e)](),_0x1ff0b6(_0x53de25,_0x17309c,_0x29a4c0,_0x2e4952)));_0x54ea51[_0x4fa7ab(0x30e)](_0x59ae70);});};this[_0xdf8b9(0x18c)]((0x0,_0x1d062f[_0xdf8b9(0x1fe)])(this[_0xdf8b9(0x3e6)][_0xdf8b9(0x3cd)](()=>{_0x26c0f4();})));}[_0x339b6f(0x15b)](){const _0x4b67db=_0x339b6f;var _0x1c631f,_0xe8961d;if(this[_0x4b67db(0x243)]=!0x0,((_0x1c631f=this[_0x4b67db(0x30f)]['getFocusedUnit']())==null?void 0x0:_0x1c631f[_0x4b67db(0x2c0)]())!==this[_0x4b67db(0x310)])return;let _0xdb17f8=(_0xe8961d=this[_0x4b67db(0x405)]['get'](_0x396996[_0x4b67db(0x199)])[_0x4b67db(0x21f)]())==null?void 0x0:_0xe8961d[0x0],_0x2a7916=this[_0x4b67db(0x30f)][_0x4b67db(0x375)](_0x1d062f[_0x4b67db(0x397)]['UNIVER_SHEET'])[_0x4b67db(0x1a3)]();_0xdb17f8&&_0x2a7916&&this[_0x4b67db(0x418)](_0x2a7916[_0x4b67db(0x152)](),_0xdb17f8);}[_0x339b6f(0x345)](){const _0x273fb9=_0x339b6f;this[_0x273fb9(0x243)]=!0x1;}};_0x2ae18d=_0x8db4f3([_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x3,(0x0,_0x1d062f['Inject'])(_0x47fa48)),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x141)])),_0x21c55a(0x5,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x6,_0x1d062f[_0x339b6f(0x2a0)]),_0x21c55a(0x7,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x396996[_0x339b6f(0x346)]))],_0x2ae18d);let _0xe35be2=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x15123c,_0x4fa4e5,_0x47b97f){const _0xae22e5=_0x339b6f;super(),this['_univerInstanceService']=_0x15123c,this[_0xae22e5(0x405)]=_0x4fa4e5,this[_0xae22e5(0x3e2)]=_0x47b97f,_0x1050e7(this,_0xae22e5(0x221),new Map()),_0x1050e7(this,_0xae22e5(0x393),new _0x5df150[(_0xae22e5(0x222))]()),this['_init']();}[_0x339b6f(0x39e)](){const _0x15a95a=_0x339b6f;super[_0x15a95a(0x39e)](),this[_0x15a95a(0x393)][_0x15a95a(0x2ba)](),this[_0x15a95a(0x221)][_0x15a95a(0x159)](_0x186d63=>_0x186d63[_0x15a95a(0x39e)]());}[_0x339b6f(0x1a2)](_0x36517a){const _0x2475ea=_0x339b6f;return this['_entities'][_0x2475ea(0x377)](_0x36517a)?this[_0x2475ea(0x221)]['get'](_0x36517a)['cursorInfo$']:this[_0x2475ea(0x393)][_0x2475ea(0x300)]((0x0,_0x5df150[_0x2475ea(0x361)])(_0x36093e=>_0x36093e[_0x2475ea(0x310)]===_0x36517a),(0x0,_0x5df150['switchMap'])(_0xf3926d=>_0xf3926d[_0x2475ea(0x379)]));}['_init'](){const _0x4f1eeb=_0x339b6f;this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x1fd)](_0x1d062f['UniverInstanceType']['UNIVER_SHEET'])[_0x4f1eeb(0x300)]((0x0,_0x5df150[_0x4f1eeb(0x154)])(this[_0x4f1eeb(0x23c)]))['subscribe'](async _0x5d4ae4=>{const _0x3ab1e2=_0x4f1eeb;let _0x12e4ed=_0x5d4ae4['unit'][_0x3ab1e2(0x2c0)](),_0x5d2bef=await this[_0x3ab1e2(0x22b)](_0x12e4ed);this[_0x3ab1e2(0x393)][_0x3ab1e2(0x1c8)](_0x5d2bef),this[_0x3ab1e2(0x221)]['set'](_0x12e4ed,_0x5d2bef);}),this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x1fd)](_0x1d062f[_0x4f1eeb(0x397)]['UNIVER_DOC'])[_0x4f1eeb(0x300)]((0x0,_0x5df150[_0x4f1eeb(0x154)])(this[_0x4f1eeb(0x23c)]))[_0x4f1eeb(0x300)]((0x0,_0x5df150['filter'])(_0x1a9263=>!_0x1a9263[_0x4f1eeb(0x3b2)][_0x4f1eeb(0x2c0)]()[_0x4f1eeb(0x20c)]('__')))['subscribe'](async _0x329967=>{const _0x3b66d4=_0x4f1eeb;let {unit:_0x365638}=_0x329967,_0xa8c036=_0x365638[_0x3b66d4(0x2c0)](),_0x52a41c=await this[_0x3b66d4(0x3c5)](_0xa8c036);this['_entityInit$']['next'](_0x52a41c),this[_0x3b66d4(0x221)][_0x3b66d4(0x3e7)](_0xa8c036,_0x52a41c);}),(0x0,_0x5df150[_0x4f1eeb(0x17d)])(this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x294)](_0x1d062f[_0x4f1eeb(0x397)][_0x4f1eeb(0x39d)]),this[_0x4f1eeb(0x30f)][_0x4f1eeb(0x294)](_0x1d062f[_0x4f1eeb(0x397)]['UNIVER_SHEET']))[_0x4f1eeb(0x300)]((0x0,_0x5df150[_0x4f1eeb(0x154)])(this[_0x4f1eeb(0x23c)]))['subscribe'](_0x109259=>{const _0xaf0aa7=_0x4f1eeb;let _0x3b93a5=_0x109259[_0xaf0aa7(0x2c0)](),_0x4ab989=this[_0xaf0aa7(0x221)]['get'](_0x3b93a5);_0x4ab989&&(_0x4ab989[_0xaf0aa7(0x39e)](),this[_0xaf0aa7(0x221)][_0xaf0aa7(0x229)](_0x3b93a5));});}async['_startSheetCollabCursor'](_0x5701ed){const _0x5d9d80=_0x339b6f;let _0x5514f1=await this['_collabSessionService'][_0x5d9d80(0x388)](_0x5701ed),_0x2a8885=this['_injector']['createInstance'](_0x2ae18d,_0x5701ed,_0x5514f1);return _0x2a8885[_0x5d9d80(0x2e4)](),_0x2a8885;}async[_0x339b6f(0x3c5)](_0x101c4d){const _0x491adb=_0x339b6f;let _0xe292be=await this[_0x491adb(0x3e2)][_0x491adb(0x388)](_0x101c4d),_0x4669bf=this[_0x491adb(0x405)]['createInstance'](_0x46dd2d,_0x101c4d,_0xe292be);return _0x4669bf[_0x491adb(0x2e4)](),_0x4669bf;}};_0xe35be2=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f['Injector'])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x2c2)]))],_0xe35be2);function _0x5d9e82(_0x5a5d46,_0x145505){const _0x52f867=_0x339b6f;var _0xdf41fa,_0x326d10,_0x90207e;let {radius:_0x29999e,width:_0x463dc5,height:_0x57b60b}=_0x145505;_0x29999e=(_0xdf41fa=_0x29999e)==null?0x0:_0xdf41fa,_0x463dc5=(_0x326d10=_0x463dc5)==null?0x1e:_0x326d10,_0x57b60b=(_0x90207e=_0x57b60b)==null?0x1e:_0x90207e;let _0x6f8f2c=0x0,_0x569592=0x0,_0x24489b=0x0;_0x6f8f2c=_0x569592=_0x24489b=Math[_0x52f867(0x38a)](_0x29999e,_0x463dc5/0x2,_0x57b60b/0x2),_0x5a5d46[_0x52f867(0x268)](),_0x5a5d46[_0x52f867(0x1ea)](_0x6f8f2c,0x0),_0x5a5d46[_0x52f867(0x26d)](_0x463dc5-_0x569592,0x0),_0x5a5d46[_0x52f867(0x2ce)](_0x463dc5-_0x569592,_0x569592,_0x569592,Math['PI']*0x3/0x2,0x0,!0x1),_0x5a5d46[_0x52f867(0x26d)](_0x463dc5,_0x57b60b-_0x24489b),_0x5a5d46['arc'](_0x463dc5-_0x24489b,_0x57b60b-_0x24489b,_0x24489b,0x0,Math['PI']/0x2,!0x1),_0x5a5d46['lineTo'](0x0,_0x57b60b),_0x5a5d46[_0x52f867(0x26d)](0x0,_0x6f8f2c),_0x5a5d46[_0x52f867(0x2ce)](_0x6f8f2c,_0x6f8f2c,_0x6f8f2c,Math['PI'],Math['PI']*0x3/0x2,!0x1),_0x5a5d46[_0x52f867(0x19a)](),_0x145505[_0x52f867(0x34b)]&&(_0x5a5d46[_0x52f867(0x211)](),_0x5a5d46[_0x52f867(0x309)]=_0x145505[_0x52f867(0x34b)],_0x145505[_0x52f867(0x421)]===_0x52f867(0x36c)?_0x5a5d46['fill'](_0x52f867(0x36c)):_0x5a5d46[_0x52f867(0x34b)](),_0x5a5d46['restore']());}var _0x34d0f3=class _0x4c44ce extends _0xc630f2[_0x339b6f(0x17e)]{constructor(_0x4c487c,_0x3ae490){const _0x44a19d=_0x339b6f;super(_0x4c487c,_0x3ae490),_0x1050e7(this,'color',void 0x0),_0x1050e7(this,_0x44a19d(0x1bd),void 0x0),this[_0x44a19d(0x230)]=_0x3ae490==null?void 0x0:_0x3ae490[_0x44a19d(0x230)],this['text']=_0x3ae490==null?void 0x0:_0x3ae490[_0x44a19d(0x1bd)];}static['drawWith'](_0x27860b,_0x2972c4){const _0x24fb60=_0x339b6f;let {text:_0x13437a,color:_0x1a7bea}=_0x2972c4;_0x27860b[_0x24fb60(0x211)](),_0x27860b[_0x24fb60(0x2cf)]=_0x24fb60(0x265);let _0x3a2e98=_0x27860b[_0x24fb60(0x343)](_0x13437a)[_0x24fb60(0x413)];if(_0x5d9e82(_0x27860b,{'height':0x14,'radius':0x4,'width':Math[_0x24fb60(0x38a)](_0x3a2e98+0x8,0xc8),'fill':_0x1a7bea,'evented':!0x1}),_0x27860b[_0x24fb60(0x309)]='#FFF',_0x3a2e98>0xc0){let _0x4a8fe7='',_0x5935da=0x0;for(let _0x4ccdef of _0x13437a){let _0x24c898=_0x27860b[_0x24fb60(0x343)](_0x4ccdef)[_0x24fb60(0x413)];if(_0x5935da+_0x24c898<=0xc0-_0x27860b[_0x24fb60(0x343)](_0x24fb60(0x2f0))[_0x24fb60(0x413)])_0x4a8fe7+=_0x4ccdef,_0x5935da+=_0x24c898;else{_0x4a8fe7+='...';break;}}_0x27860b[_0x24fb60(0x1b9)](_0x4a8fe7,0x4,0xf);}else _0x27860b['fillText'](_0x13437a,0x4,0xf);_0x27860b[_0x24fb60(0x209)]();}[_0x339b6f(0x220)](_0x5803ab){const _0x52ea1e=_0x339b6f;_0x4c44ce[_0x52ea1e(0x32f)](_0x5803ab,this);}};let _0x91abee='collab-text-anchor-';var _0x338f74=class{constructor(_0x5e9087,_0xc05dc4,_0x31697b,_0x592f1b){const _0x183fdd=_0x339b6f;this[_0x183fdd(0x191)]=_0x5e9087,this[_0x183fdd(0x313)]=_0xc05dc4,this['_docSkeleton']=_0x31697b,this[_0x183fdd(0x37b)]=_0x592f1b,_0x1050e7(this,_0x183fdd(0x196),[]),_0x1050e7(this,_0x183fdd(0x287),null),_0x1050e7(this,_0x183fdd(0x188),null),_0x1050e7(this,_0x183fdd(0x3e9),null),_0x1050e7(this,_0x183fdd(0x1af),null),_0x1050e7(this,_0x183fdd(0x1bc),null),this[_0x183fdd(0x190)]();}set[_0x339b6f(0x292)](_0x22f37c){const _0x63e7c8=_0x339b6f;_0x22f37c?(this[_0x63e7c8(0x3e9)]&&this[_0x63e7c8(0x3e9)][_0x63e7c8(0x37d)](),this['_textBubble']&&this[_0x63e7c8(0x188)][_0x63e7c8(0x1e3)]()):(this[_0x63e7c8(0x3e9)]&&this[_0x63e7c8(0x3e9)][_0x63e7c8(0x1e3)](),this[_0x63e7c8(0x188)]&&this[_0x63e7c8(0x188)][_0x63e7c8(0x37d)]());}[_0x339b6f(0x39e)](){const _0x19f252=_0x339b6f;for(let _0x204e7f of this[_0x19f252(0x196)])_0x204e7f[_0x19f252(0x39e)]();this['_textBubble']&&this['_textBubble'][_0x19f252(0x39e)](),this[_0x19f252(0x3e9)]&&this[_0x19f252(0x3e9)][_0x19f252(0x39e)](),this[_0x19f252(0x287)]&&this['_anchor']['dispose'](),this['_eventUnsubscribe']&&this[_0x19f252(0x1bc)]();}[_0x339b6f(0x190)](){const _0x5e98aa=_0x339b6f;let {_docSkeleton:_0x1e82a5,_document:_0x42e02b}=this,{color:_0x4e3ff4,name:_0x467f6d,ranges:_0x158c5a}=this[_0x5e98aa(0x191)],_0x1ba043=_0x42e02b[_0x5e98aa(0x2b0)](),{docsLeft:_0x7b334c,docsTop:_0x2e3919}=_0x1ba043,_0x112c69=new _0x1c6b1f['NodePositionConvertToCursor'](_0x1ba043,_0x1e82a5);for(let {startOffset:_0xf8b5b1,endOffset:_0x5d8d77,rangeType:_0x4292a7,segmentId:_0x5daebb,segmentPage:_0x349a6d,collapsed:_0x50c225,isActive:_0x5362b5}of _0x158c5a){let _0x362aef=_0x1e82a5['findNodePositionByCharIndex'](_0xf8b5b1,!0x0,_0x5daebb,_0x349a6d),_0x50ad21=_0x1e82a5[_0x5e98aa(0x167)](_0x5d8d77,!0x0,_0x5daebb,_0x349a6d);if(_0x50ad21==null&&(_0x50ad21=_0x1e82a5[_0x5e98aa(0x167)](_0x5d8d77-0x1,!0x1,_0x5daebb,_0x349a6d)),_0x5362b5){let {contentBoxPointGroup:_0x39fc84}=_0x112c69[_0x5e98aa(0x352)](_0x50ad21,_0x50ad21);if(_0x39fc84[_0x5e98aa(0x231)]===0x0)continue;this[_0x5e98aa(0x3ed)](_0x4e3ff4,_0x39fc84,_0x7b334c,_0x2e3919,_0x467f6d),this[_0x5e98aa(0x1bc)]=this[_0x5e98aa(0x305)]();}if(_0x362aef&&_0x50ad21){if(_0x4292a7===_0x1d062f['DOC_RANGE_TYPE'][_0x5e98aa(0x390)]){var _0x5f275d;let {pointGroup:_0x51e215}=(_0x5f275d=new _0x1c6b1f[(_0x5e98aa(0x1f6))](_0x1ba043,_0x1e82a5)[_0x5e98aa(0x352)](_0x362aef,_0x50ad21))==null?{}:_0x5f275d;if(_0x51e215==null||_0x51e215['length']===0x0)continue;this[_0x5e98aa(0x2fe)](_0x4e3ff4,_0x51e215,_0x7b334c,_0x2e3919);}else{if(!_0x50c225){let {borderBoxPointGroup:_0x25b057}=_0x112c69[_0x5e98aa(0x352)](_0x362aef,_0x50ad21);if(_0x25b057[_0x5e98aa(0x231)]===0x0)continue;this[_0x5e98aa(0x1d3)](_0x4e3ff4,_0x25b057,_0x7b334c,_0x2e3919);}}}}}[_0x339b6f(0x3ed)](_0x56916f,_0x4f1579,_0x1b85a5,_0x1cae80,_0x8fd2ed){const _0x35111d=_0x339b6f;let {left:_0x2fb7c9,top:_0x3ee6ff,height:_0x90ae99}=this['_getAnchorBounding'](_0x4f1579),_0x18d432=1.5/this[_0x35111d(0x3bf)](),_0x29a359=new _0xc630f2[(_0x35111d(0x2eb))](_0x91abee+(0x0,_0x1d062f[_0x35111d(0x409)])(0x6),{'left':_0x2fb7c9+_0x1b85a5-_0x18d432,'top':_0x3ee6ff+_0x1cae80,'height':_0x90ae99,'width':1.5,'fill':_0x56916f||(0x0,_0xc630f2[_0x35111d(0x1e5)])(_0x1d062f[_0x35111d(0x403)][_0x35111d(0x206)],0x0),'strokeWidth':_0x18d432,'stroke':_0x35111d(0x23d),'evented':!0x0});this[_0x35111d(0x287)]=_0x29a359,this[_0x35111d(0x313)]['addObject'](_0x29a359,_0x1c6b1f[_0x35111d(0x247)]);let _0xf01dc0=new _0xc630f2[(_0x35111d(0x2eb))](_0x91abee+(0x0,_0x1d062f[_0x35111d(0x409)])(0x6),{'left':_0x2fb7c9+_0x1b85a5-_0x18d432,'top':_0x3ee6ff+_0x1cae80-0x4/0x2,'height':0x4,'width':0x4,'fill':_0x56916f||(0x0,_0xc630f2[_0x35111d(0x1e5)])(_0x1d062f[_0x35111d(0x403)]['black'],0x0),'strokeWidth':0x0,'stroke':_0x56916f||(0x0,_0xc630f2['getColor'])(_0x1d062f[_0x35111d(0x403)][_0x35111d(0x206)],0x0),'evented':!0x1});this[_0x35111d(0x3e9)]=_0xf01dc0,this[_0x35111d(0x313)][_0x35111d(0x39a)](_0xf01dc0,_0x1c6b1f[_0x35111d(0x247)]);let _0x3f32b2=new _0x34d0f3(_0x91abee+(0x0,_0x1d062f[_0x35111d(0x409)])(0x6),{'left':_0x2fb7c9+_0x1b85a5-_0x18d432,'top':_0x3ee6ff+_0x1cae80-0x14,'text':_0x8fd2ed,'color':_0x56916f});this['_textBubble']=_0x3f32b2,this[_0x35111d(0x313)][_0x35111d(0x39a)](_0x3f32b2,_0x1c6b1f['TEXT_RANGE_LAYER_INDEX']),this[_0x35111d(0x292)]=!0x1;}[_0x339b6f(0x305)](){const _0x2b9ef2=_0x339b6f;let _0x187e89=this['_anchor']['onPointerEnter$'][_0x2b9ef2(0x31b)](()=>{const _0x4e7203=_0x2b9ef2;this[_0x4e7203(0x292)]=!0x0;}),_0x29ef8e=this[_0x2b9ef2(0x287)][_0x2b9ef2(0x149)][_0x2b9ef2(0x31b)](()=>{const _0x1e4380=_0x2b9ef2;this[_0x1e4380(0x1af)]&&clearTimeout(this[_0x1e4380(0x1af)]),this[_0x1e4380(0x1af)]=setTimeout(()=>{const _0xf19f7a=_0x1e4380;this[_0xf19f7a(0x292)]=!0x1;},0x7d0);});return()=>{const _0x1003d6=_0x2b9ef2;_0x187e89[_0x1003d6(0x171)](),_0x29ef8e[_0x1003d6(0x171)]();};}[_0x339b6f(0x1d3)](_0x2080d9,_0x48d8a1,_0x566d0b,_0xe5c0c1){const _0x4d9430=_0x339b6f;let _0x54cdd8=0.2,_0x34d3c9=new _0x1d062f[(_0x4d9430(0x329))](_0x2080d9)[_0x4d9430(0x3ac)](_0x54cdd8)['toRgbString'](),_0x39ebf6=new _0xc630f2[(_0x4d9430(0x14d))]('collab-text-range-'+(0x0,_0x1d062f[_0x4d9430(0x409)])(0x6),{'pointsGroup':_0x48d8a1,'fill':_0x34d3c9||(0x0,_0xc630f2[_0x4d9430(0x1e5)])(_0x1d062f[_0x4d9430(0x403)][_0x4d9430(0x206)],_0x54cdd8),'left':_0x566d0b,'top':_0xe5c0c1,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x4d9430(0x196)][_0x4d9430(0x411)](_0x39ebf6),this['_scene'][_0x4d9430(0x39a)](_0x39ebf6,_0x1c6b1f['TEXT_RANGE_LAYER_INDEX']);}[_0x339b6f(0x2fe)](_0x255656,_0x5750bf,_0x5bcdd7,_0x41bb2a){const _0x1d6606=_0x339b6f;let _0x3d38e3=0.2,_0x5e9ae9=new _0x1d062f[(_0x1d6606(0x329))](_0x255656)[_0x1d6606(0x3ac)](_0x3d38e3)['toRgbString'](),_0x9964be=new _0xc630f2[(_0x1d6606(0x14d))]('collab-rect-range-'+(0x0,_0x1d062f[_0x1d6606(0x409)])(0x6),{'pointsGroup':_0x5750bf,'fill':_0x5e9ae9||(0x0,_0xc630f2[_0x1d6606(0x1e5)])(_0x1d062f[_0x1d6606(0x403)][_0x1d6606(0x206)],_0x3d38e3),'left':_0x5bcdd7,'top':_0x41bb2a,'evented':!0x1,'debounceParentDirty':!0x1});this[_0x1d6606(0x196)]['push'](_0x9964be),this[_0x1d6606(0x313)]['addObject'](_0x9964be,_0x1c6b1f[_0x1d6606(0x247)]);}['_getAnchorBounding'](_0x20680e){let _0x4602fd=_0x20680e[0x0],_0x5c4761=_0x4602fd[0x0],_0x40effb=_0x4602fd[0x2],{x:_0x16f44a,y:_0x5e0f32}=_0x5c4761,{x:_0x592753,y:_0xf3348a}=_0x40effb;return{'left':_0x16f44a,'top':_0x5e0f32,'width':_0x592753-_0x16f44a,'height':_0xf3348a-_0x5e0f32};}[_0x339b6f(0x3bf)](){const _0x198b39=_0x339b6f;let {scaleX:_0x2c2852,scaleY:_0x265997}=this['_scene'][_0x198b39(0x38e)]();return Math[_0x198b39(0x1fc)](_0x2c2852,_0x265997);}};let _0x1993ee=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x88c1a5,_0x193bf8,_0x27b4a7,_0x723228,_0x12da7f){const _0x4ad199=_0x339b6f;super(),this['_context']=_0x88c1a5,this['_docSkeletonManagerService']=_0x193bf8,this[_0x4ad199(0x215)]=_0x27b4a7,this[_0x4ad199(0x3a4)]=_0x723228,this[_0x4ad199(0x30b)]=_0x12da7f,_0x1050e7(this,'_cursorShapes',[]),_0x1050e7(this,_0x4ad199(0x245),[]),this['_init']();}['_init'](){const _0x5d2460=_0x339b6f;let _0x44aa23=this[_0x5d2460(0x35b)]['unitId'],_0x4af419=this['_docSkeletonManagerService'];this[_0x5d2460(0x18c)]((0x0,_0x5df150[_0x5d2460(0x2a1)])([this['_collabCursorController'][_0x5d2460(0x1a2)](_0x44aa23),this[_0x5d2460(0x30b)][_0x5d2460(0x248)]])['pipe']((0x0,_0x231056[_0x5d2460(0x19d)])(([_0x2b6632,_0x1fafed])=>({'skeleton':_0x4af419[_0x5d2460(0x207)](),'cursors':[..._0x2b6632[_0x5d2460(0x2a6)]()][_0x5d2460(0x249)](_0x28a922=>({..._0x28a922,'color':this[_0x5d2460(0x30b)][_0x5d2460(0x306)](_0x28a922[_0x5d2460(0x230)])}))})))[_0x5d2460(0x3cd)](_0x4d0912=>{const _0x11d5c5=_0x5d2460;if(this[_0x11d5c5(0x2ff)](),_0x4d0912){let {skeleton:_0xf23851,cursors:_0x3aa0fc}=_0x4d0912;this[_0x11d5c5(0x166)](_0xf23851,_0x3aa0fc);}})),this[_0x5d2460(0x27c)](),this[_0x5d2460(0x2f8)]();}[_0x339b6f(0x166)](_0x36a711,_0x1255cd){const _0x32fcfa=_0x339b6f;let {scene:_0x4fdbe4,mainComponent:_0x296da2}=this[_0x32fcfa(0x35b)],_0x5db0fc=_0x1255cd['map'](_0x648431=>new _0x338f74(_0x648431,_0x4fdbe4,_0x36a711,_0x296da2));this['_cursorShapes']=_0x5db0fc,this['_cursors']=_0x1255cd;}[_0x339b6f(0x22f)](){const _0x21436e=_0x339b6f;this[_0x21436e(0x2ff)]();let {scene:_0xa93df9,mainComponent:_0x1747cb}=this[_0x21436e(0x35b)],_0x2c45af=this['_docSkeletonManagerService'][_0x21436e(0x207)](),_0x19c356=this[_0x21436e(0x245)][_0x21436e(0x19d)](_0x428f1b=>new _0x338f74(_0x428f1b,_0xa93df9,_0x2c45af,_0x1747cb));this[_0x21436e(0x195)]=_0x19c356;}[_0x339b6f(0x2ff)](){const _0x4cfbc6=_0x339b6f;this[_0x4cfbc6(0x195)][_0x4cfbc6(0x159)](_0x5770df=>_0x5770df['dispose']()),this[_0x4cfbc6(0x195)]=[];}[_0x339b6f(0x2f8)](){const _0x3c3358=_0x339b6f;let _0x2ab33d=[_0x1c6b1f['SetDocZoomRatioOperation']['id']];this[_0x3c3358(0x18c)](this[_0x3c3358(0x3a4)][_0x3c3358(0x1b0)](_0x3661ca=>{const _0x1e1b5f=_0x3c3358;_0x2ab33d[_0x1e1b5f(0x40a)](_0x3661ca['id'])&&_0x3661ca[_0x1e1b5f(0x3c9)][_0x1e1b5f(0x24e)]===this[_0x1e1b5f(0x35b)][_0x1e1b5f(0x24e)]&&this['_refreshCollabCursors']();}));}[_0x339b6f(0x27c)](){const _0x241846=_0x339b6f;this[_0x241846(0x18c)]((0x0,_0x1d062f['fromEventSubject'])(this['_context']['engine'][_0x241846(0x370)])[_0x241846(0x300)]((0x0,_0x231056[_0x241846(0x361)])(_0x3115ed=>_0x3115ed['type']===_0xc630f2[_0x241846(0x163)][_0x241846(0x285)]),(0x0,_0x231056['throttleTime'])(0x10))[_0x241846(0x3cd)](()=>{const _0x2f5ceb=_0x241846;this[_0x2f5ceb(0x22f)]();}));}};_0x1993ee=_0x8db4f3([_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x55d528[_0x339b6f(0x386)])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0xe35be2)),_0x21c55a(0x3,_0x1d062f[_0x339b6f(0x2a0)]),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x26c)]))],_0x1993ee);var _0x56d40a=class extends _0xc630f2[_0x339b6f(0x17e)]{constructor(_0x3e708d,_0x5a1a75){const _0x1cf65c=_0x339b6f;if(super(_0x3e708d,_0x5a1a75),_0x1050e7(this,_0x1cf65c(0x254),void 0x0),_0x1050e7(this,'_hovered',!0x1),_0x1050e7(this,_0x1cf65c(0x3b1),void 0x0),_0x1050e7(this,_0x1cf65c(0x273),''),_0x1050e7(this,_0x1cf65c(0x173),'top'),_0x1050e7(this,_0x1cf65c(0x350),void 0x0),_0x1050e7(this,_0x1cf65c(0x3ba),void 0x0),_0x1050e7(this,_0x1cf65c(0x1e8),void 0x0),_0x1050e7(this,_0x1cf65c(0x368),0x4),_0x1050e7(this,_0x1cf65c(0x32e),void 0x0),_0x1050e7(this,_0x1cf65c(0x260),void 0x0),_0x1050e7(this,_0x1cf65c(0x2e7),!0x0),_0x1050e7(this,_0x1cf65c(0x407),0x0),_0x5a1a75){var _0x321109;if(this[_0x1cf65c(0x416)](_0x5a1a75),_0x5a1a75['highlight']&&((_0x321109=_0x5a1a75['highlightSecond'])==null?this['_highlightSecond']:_0x321109)){var _0x6ed8a8;this[_0x1cf65c(0x3a8)]((_0x6ed8a8=_0x5a1a75[_0x1cf65c(0x2c7)])==null?this[_0x1cf65c(0x368)]:_0x6ed8a8);}}this[_0x1cf65c(0x264)][_0x1cf65c(0x31b)](()=>this[_0x1cf65c(0x416)]({'hovered':!0x0})),this[_0x1cf65c(0x149)][_0x1cf65c(0x31b)](()=>this[_0x1cf65c(0x416)]({'hovered':!0x1}));}[_0x339b6f(0x1ce)](_0x467224){const _0x5df469=_0x339b6f;this[_0x5df469(0x407)]=_0x467224;}[_0x339b6f(0x416)](_0x4837e5){const _0x38d849=_0x339b6f;var _0x1e6750,_0x24f204,_0x25c658,_0x12e507,_0x70cf99,_0x570556,_0x32d3dc;this[_0x38d849(0x254)]=(_0x1e6750=_0x4837e5['color'])==null?this[_0x38d849(0x254)]:_0x1e6750,this[_0x38d849(0x355)]=(_0x24f204=_0x4837e5[_0x38d849(0x1ec)])==null?this[_0x38d849(0x355)]:_0x24f204,this[_0x38d849(0x3b1)]=(_0x25c658=_0x4837e5['range'])==null?this[_0x38d849(0x3b1)]:_0x25c658,this[_0x38d849(0x273)]=(_0x12e507=_0x4837e5['name'])==null?this[_0x38d849(0x273)]:_0x12e507,this[_0x38d849(0x173)]=(_0x70cf99=_0x4837e5[_0x38d849(0x18e)])==null?this[_0x38d849(0x173)]:_0x70cf99,this[_0x38d849(0x350)]=(_0x570556=_0x4837e5[_0x38d849(0x2d9)])==null?this[_0x38d849(0x350)]:_0x570556,this[_0x38d849(0x3ba)]=(_0x32d3dc=_0x4837e5[_0x38d849(0x2a2)])==null?this[_0x38d849(0x3ba)]:_0x32d3dc,_0x4837e5[_0x38d849(0x2c7)]!==void 0x0&&(this[_0x38d849(0x368)]=_0x4837e5['highlightSecond']),_0x4837e5[_0x38d849(0x34c)]!==void 0x0&&(this[_0x38d849(0x1e8)]=_0x4837e5['highlight']),_0x4837e5[_0x38d849(0x1d0)]!==void 0x0&&(this[_0x38d849(0x407)]=_0x4837e5[_0x38d849(0x1d0)]),this['transformByState']({'width':_0x4837e5[_0x38d849(0x413)],'height':_0x4837e5[_0x38d849(0x30c)]});}[_0x339b6f(0x3a9)](_0x474513){const _0x5494fb=_0x339b6f;let {row:_0x467bc4,column:_0x50747f}=_0x474513;if(_0x467bc4>=this[_0x5494fb(0x3b1)][_0x5494fb(0x284)]&&_0x467bc4<=this[_0x5494fb(0x3b1)][_0x5494fb(0x31c)]&&_0x50747f>=this[_0x5494fb(0x3b1)][_0x5494fb(0x19c)]&&_0x50747f<=this[_0x5494fb(0x3b1)][_0x5494fb(0x3bc)]){this[_0x5494fb(0x416)]({'hovered':!0x0});return;}this[_0x5494fb(0x416)]({'hovered':!0x1});}['_startBlinking'](_0x5e6455){const _0x1b948b=_0x339b6f;this[_0x1b948b(0x225)](),this[_0x1b948b(0x2e7)]=!0x0,this[_0x1b948b(0x260)]=window[_0x1b948b(0x327)](()=>{const _0x4b6939=_0x1b948b;this[_0x4b6939(0x2e7)]=!this[_0x4b6939(0x2e7)],this[_0x4b6939(0x385)](!0x0);},0x1f4),this[_0x1b948b(0x32e)]=window[_0x1b948b(0x289)](()=>{const _0x35cab0=_0x1b948b;this[_0x35cab0(0x225)](),this[_0x35cab0(0x2e7)]=!0x0,this[_0x35cab0(0x385)](!0x0);},_0x5e6455*0x3e8);}[_0x339b6f(0x225)](){const _0x3fbba5=_0x339b6f;this['_blinkIntervalTimer']&&(window[_0x3fbba5(0x3c7)](this[_0x3fbba5(0x260)]),this['_blinkIntervalTimer']=void 0x0),this[_0x3fbba5(0x32e)]&&(window[_0x3fbba5(0x3a1)](this[_0x3fbba5(0x32e)]),this[_0x3fbba5(0x32e)]=void 0x0);}[_0x339b6f(0x2aa)](_0xfea44a){return!0x1;}[_0x339b6f(0x39e)](){const _0x20c5fc=_0x339b6f;this[_0x20c5fc(0x225)](),super['dispose']();}['_draw'](_0x7283e3){const _0x3ff28d=_0x339b6f;let _0x9a3419=this[_0x3ff28d(0x254)],_0x50c91b=this['_backgroundColor'];if(this[_0x3ff28d(0x1e8)]&&!this[_0x3ff28d(0x2e7)]&&(_0x9a3419=this['_getLighterColor'](this['_color']),_0x50c91b=this[_0x3ff28d(0x350)]?this[_0x3ff28d(0x344)](this['_backgroundColor']):void 0x0),_0xc630f2[_0x3ff28d(0x2eb)][_0x3ff28d(0x32f)](_0x7283e3,{'width':this[_0x3ff28d(0x413)],'height':this[_0x3ff28d(0x30c)],'strokeWidth':this[_0x3ff28d(0x2b5)]||1.5,'stroke':_0x9a3419,'evented':!0x1,'fill':_0x50c91b}),this[_0x3ff28d(0x355)]||this[_0x3ff28d(0x3ba)]){var _0x127c4c;_0x7283e3[_0x3ff28d(0x211)](),_0x7283e3[_0x3ff28d(0x27e)](0x1,0x0,0x0,0x1,this[_0x3ff28d(0x413)],(this[_0x3ff28d(0x173)]===_0x3ff28d(0x2d2)?0x0:-0x14)+((_0x127c4c=this[_0x3ff28d(0x407)])==null?0x0:_0x127c4c)),_0x34d0f3['drawWith'](_0x7283e3,{'text':this[_0x3ff28d(0x273)],'color':_0x9a3419}),_0x7283e3['restore']();}}[_0x339b6f(0x344)](_0x139957){const _0xda22b3=_0x339b6f;return _0x139957[_0xda22b3(0x20c)]('#')?_0xda22b3(0x161)+Number[_0xda22b3(0x259)](_0x139957[_0xda22b3(0x270)](0x1,0x3),0x10)+',\x20'+Number[_0xda22b3(0x259)](_0x139957[_0xda22b3(0x270)](0x3,0x5),0x10)+',\x20'+Number[_0xda22b3(0x259)](_0x139957[_0xda22b3(0x270)](0x5,0x7),0x10)+_0xda22b3(0x383):_0x139957['startsWith'](_0xda22b3(0x1d7))?_0x139957[_0xda22b3(0x330)](/[\d.]+\)$/g,_0xda22b3(0x381)):_0x139957[_0xda22b3(0x20c)](_0xda22b3(0x278))?_0x139957[_0xda22b3(0x330)](_0xda22b3(0x278),'rgba')['replace'](')',_0xda22b3(0x383)):_0x139957;}};let _0x4439c2=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(_0x5aa858,_0x197dc1,_0x5a883e,_0x26aca5){const _0x156d70=_0x339b6f;super(),this[_0x156d70(0x35b)]=_0x5aa858,this[_0x156d70(0x202)]=_0x197dc1,this['_collabCursorController']=_0x5a883e,this[_0x156d70(0x30b)]=_0x26aca5,_0x1050e7(this,_0x156d70(0x245),new Set()),_0x1050e7(this,'_lastPointer',null),_0x1050e7(this,_0x156d70(0x2da),null),this[_0x156d70(0x1ac)]();}[_0x339b6f(0x1ac)](){const _0x46f89f=_0x339b6f;this[_0x46f89f(0x202)]['currentSkeleton$']['pipe']((0x0,_0x231056[_0x46f89f(0x154)])(this['dispose$']),(0x0,_0x231056[_0x46f89f(0x288)])(_0x4fd524=>{const _0x3d20e5=_0x46f89f;if(_0x4fd524){let _0x387ebe=_0x4fd524[_0x3d20e5(0x1b5)];return(0x0,_0x5df150[_0x3d20e5(0x2a1)])(this['_collabCursorController'][_0x3d20e5(0x1a2)](this[_0x3d20e5(0x35b)][_0x3d20e5(0x24e)]),this['_themeService'][_0x3d20e5(0x248)])[_0x3d20e5(0x300)]((0x0,_0x231056['map'])(([_0x99b821,_0x307797])=>{const _0xb0baf0=_0x3d20e5;let _0x2fca83=new Map();return _0x99b821[_0xb0baf0(0x159)]((_0x489573,_0x36777f)=>{const _0x29b216=_0xb0baf0;if(_0x489573[_0x29b216(0x412)]===_0x387ebe){let _0x1cd818={..._0x489573};_0x1cd818[_0x29b216(0x230)]=this[_0x29b216(0x30b)][_0x29b216(0x306)](_0x489573[_0x29b216(0x230)]),_0x2fca83[_0x29b216(0x3e7)](_0x36777f,_0x1cd818);}}),{'skeleton':_0x4fd524,'cursors':_0x2fca83};}));}return(0x0,_0x5df150['of'])({'skeleton':null,'cursors':new Map()});}))[_0x46f89f(0x3cd)](({skeleton:_0x7162d7,cursors:_0x133604})=>{const _0x197001=_0x46f89f;this[_0x197001(0x2ff)](),_0x7162d7&&this['_updateCollabCursors'](_0x7162d7,_0x133604);}),this[_0x46f89f(0x18c)](this[_0x46f89f(0x202)]['currentSkeleton$'][_0x46f89f(0x300)]((0x0,_0x231056[_0x46f89f(0x154)])(this[_0x46f89f(0x23c)]))[_0x46f89f(0x3cd)](_0x50839a=>{const _0x493c5f=_0x46f89f;var _0x2f34ac;if(_0x50839a==null)return;(_0x2f34ac=this['_pointerMoveDisposable'])==null||_0x2f34ac[_0x493c5f(0x171)](),this[_0x493c5f(0x2da)]=null;let {skeleton:_0x5247f3}=_0x50839a,{scene:_0x38f524}=this[_0x493c5f(0x35b)];this[_0x493c5f(0x2da)]=_0x38f524[_0x493c5f(0x3eb)][_0x493c5f(0x31b)]((0x0,_0x1d062f[_0x493c5f(0x14e)])(_0x1c54a6=>{const _0x5598dd=_0x493c5f;var _0x482523,_0x4d0e83;let {offsetX:_0x3f9d5c,offsetY:_0x46f13d}=_0x1c54a6,{x:_0x537712,y:_0x25a320}=_0x38f524[_0x5598dd(0x1c0)](_0xc630f2[_0x5598dd(0x228)][_0x5598dd(0x28b)]([_0x3f9d5c,_0x46f13d])),{scaleX:_0x198e67,scaleY:_0x34a0a6}=_0x38f524[_0x5598dd(0x38e)](),_0x2d0742=_0x38f524['getViewport'](_0xc630f2[_0x5598dd(0x240)][_0x5598dd(0x415)]),_0x1a9fcc=_0x38f524[_0x5598dd(0x1f2)](_0xc630f2[_0x5598dd(0x228)][_0x5598dd(0x28b)]([_0x537712,_0x25a320]),_0x2d0742),_0x587547=_0x5247f3[_0x5598dd(0x237)](_0x3f9d5c,_0x46f13d,_0x198e67,_0x34a0a6,_0x1a9fcc);((_0x482523=this['_lastPointer'])==null?void 0x0:_0x482523['column'])===_0x587547['column']&&((_0x4d0e83=this['_lastPointer'])==null?void 0x0:_0x4d0e83[_0x5598dd(0x1cb)])===_0x587547[_0x5598dd(0x1cb)]||this[_0x5598dd(0x245)][_0x5598dd(0x159)](_0x13efa7=>{_0x13efa7['onMouseMove'](_0x587547);});},0x64));})),this[_0x46f89f(0x18c)]((0x0,_0x1d062f[_0x46f89f(0x1fe)])(()=>{const _0x1b7df1=_0x46f89f;var _0x765cc5;(_0x765cc5=this['_pointerMoveDisposable'])==null||_0x765cc5[_0x1b7df1(0x171)](),this[_0x1b7df1(0x2da)]=null;}));}['_updateCollabCursors'](_0x2e0e6f,_0x2d2c15){const _0x31fa6f=_0x339b6f;let _0x2fd09d=this[_0x31fa6f(0x202)]['getCurrentSkeleton']();if(!_0x2fd09d)return;let _0x5adae6=this['_getSheetObject']();if(!_0x5adae6)return;this['_cursors'][_0x31fa6f(0x159)](_0xf7ff08=>{const _0xe76bcc=_0x31fa6f;_0xf7ff08[_0xe76bcc(0x385)]();});let {scene:_0x5e06d3}=_0x5adae6,_0x170198=_0x14305e(Array[_0x31fa6f(0x324)](_0x2d2c15[_0x31fa6f(0x2a6)]()))['map'](_0x50635c=>{const _0x57ae3d=_0x31fa6f;let {color:_0x42d82c,range:_0x1136ce,name:_0x1305bc,selection:_0x3c2f0e,sheetID:_0x124f96}=_0x50635c,{startColumn:_0x1336f2,startRow:_0x17c438,endColumn:_0x18d925,endRow:_0x4bbe1f}=_0x1136ce,_0x24974a=(0x0,_0x5c8585[_0x57ae3d(0x315)])(_0x17c438,_0x1336f2,_0x5e06d3,_0x2fd09d),_0x3836df=(0x0,_0x5c8585['getCoordByCell'])(_0x4bbe1f,_0x18d925,_0x5e06d3,_0x2fd09d),{columnHeaderHeightAndMarginTop:_0x1b1d91}=_0x2fd09d,{startX:_0x34d5fd,startY:_0x145d84}=_0x24974a,{endX:_0x207e7d,endY:_0x73a516}=_0x3836df,_0x5855e3=_0x207e7d-_0x34d5fd,_0x5da4bd=_0x73a516-_0x145d84;return new _0x56d40a(_0x1305bc,{'labelPosition':_0x145d84-_0x1b1d91>=0x14?_0x57ae3d(0x332):_0x57ae3d(0x2d2),'sheetID':_0x124f96,'range':_0x1136ce,'color':_0x42d82c,'name':_0x1305bc,'selection':_0x3c2f0e,'left':_0x34d5fd,'top':_0x145d84,'width':_0x5855e3,'height':_0x5da4bd,'evented':!0x1,'zIndex':0x1389});});_0x5e06d3[_0x31fa6f(0x279)](_0x170198,0x1),this[_0x31fa6f(0x245)]=new Set(_0x170198);}[_0x339b6f(0x2ff)](){const _0x5b1665=_0x339b6f;var _0x213afd;(_0x213afd=this[_0x5b1665(0x245)])==null||_0x213afd[_0x5b1665(0x159)](_0x56189b=>_0x56189b[_0x5b1665(0x39e)]());}[_0x339b6f(0x1e1)](){const _0x20b7e6=_0x339b6f;return(0x0,_0x5c8585['getSheetObject'])(this[_0x20b7e6(0x35b)]['unit'],this['_context']);}};_0x4439c2=_0x8db4f3([_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x5c8585[_0x339b6f(0x3fc)])),_0x21c55a(0x2,(0x0,_0x1d062f['Inject'])(_0xe35be2)),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x26c)]))],_0x4439c2);function _0x14305e(_0x214043){const _0x258499=_0x339b6f;let _0x58d0d4=new Map();return _0x214043['forEach'](_0x363679=>{const _0x2a4324=_0x405a;if(_0x58d0d4[_0x2a4324(0x377)](_0x363679['selection'])){let _0xeff4e8=_0x58d0d4[_0x2a4324(0x3fe)](_0x363679[_0x2a4324(0x304)]);_0xeff4e8[_0x2a4324(0x318)]+=',\x20'+_0x363679[_0x2a4324(0x318)];}else _0x58d0d4[_0x2a4324(0x3e7)](_0x363679[_0x2a4324(0x304)],_0x363679);}),Array[_0x258499(0x324)](_0x58d0d4[_0x258499(0x2a6)]());}let _0x1e8c36=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x2c6cb4,_0x1d891d,_0x277eb8,_0x5d25d7,_0x4eb37b,_0x4da8f8){const _0x35db21=_0x339b6f;super(),this[_0x35db21(0x1a0)]=_0x2c6cb4,this[_0x35db21(0x427)]=_0x1d891d,this[_0x35db21(0x39f)]=_0x277eb8,this[_0x35db21(0x1bb)]=_0x5d25d7,this[_0x35db21(0x2fb)]=_0x4eb37b,this['_localeService']=_0x4da8f8,this[_0x35db21(0x23b)](),this[_0x35db21(0x1e9)]();}[_0x339b6f(0x23b)](){const _0x4734a0=_0x339b6f;this[_0x4734a0(0x18c)](this[_0x4734a0(0x1a0)][_0x4734a0(0x24b)](()=>{const _0x11f2ef=_0x4734a0;if(this[_0x11f2ef(0x427)][_0x11f2ef(0x35c)][_0x11f2ef(0x3ea)])return this[_0x11f2ef(0x23e)]['t']('collaboration-client-ui.collaboration.offline-data-not-saved');}));}[_0x339b6f(0x1e9)](){const _0x381047=_0x339b6f;this[_0x381047(0x18c)](this['_collaborationUIEventService'][_0x381047(0x21e)][_0x381047(0x3cd)](_0x5d6460=>{const _0x5b3aad=_0x381047;_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)]['OTHER_CLIENT_EDITING']&&this[_0x5b3aad(0x1bb)]['show']({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x32b)],'content':this['_localeService']['t'](_0x5b3aad(0x2ed))}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x262)]&&this[_0x5b3aad(0x1bb)][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x32b)],'content':this[_0x5b3aad(0x23e)]['t']('collaboration-client-ui.collaboration.closeRoom')}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x360)]&&this[_0x5b3aad(0x2fb)][_0x5b3aad(0x1e3)]({'title':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x338)),'content':this['_localeService']['t'](_0x5b3aad(0x1ed)),'type':_0x5b3aad(0x40d),'duration':0x0}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x1d9)]&&this[_0x5b3aad(0x1bb)][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x178)],'content':this['_localeService']['t']('collaboration-client-ui.collaboration.closeRoom')+'('+_0x5d6460[_0x5b3aad(0x33e)]+')'}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x1eb)]&&this['_messageService']['show']({'type':_0x36848a['MessageType'][_0x5b3aad(0x32b)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5d6460['data']||'')}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x283)]&&this[_0x5b3aad(0x1bb)][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x32b)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x192))}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x251)]&&this[_0x5b3aad(0x1bb)]['show']({'type':_0x36848a['MessageType'][_0x5b3aad(0x178)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x366))}),_0x5d6460['id']===_0x20efb1[_0x5b3aad(0x398)][_0x5b3aad(0x356)]&&this['_messageService'][_0x5b3aad(0x1e3)]({'type':_0x36848a[_0x5b3aad(0x1f7)][_0x5b3aad(0x178)],'content':this[_0x5b3aad(0x23e)]['t'](_0x5b3aad(0x1f1))});}));}};_0x1e8c36=_0x8db4f3([_0x21c55a(0x0,_0x25f9de['IBeforeCloseService']),_0x21c55a(0x1,_0x20efb1[_0x339b6f(0x2a5)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x2e2)])),_0x21c55a(0x3,_0x25f9de[_0x339b6f(0x169)]),_0x21c55a(0x4,_0x25f9de[_0x339b6f(0x2ad)]),_0x21c55a(0x5,(0x0,_0x1d062f['Inject'])(_0x1d062f[_0x339b6f(0x142)]))],_0x1e8c36);let _0x5f31b3={},_0x2f9daa=class{constructor(_0x2741df,_0x327435){const _0x39b9b8=_0x339b6f;this[_0x39b9b8(0x3d2)]=_0x2741df,this[_0x39b9b8(0x2e0)]=_0x327435;}[_0x339b6f(0x226)](_0x324f4a){const _0x2b67e7=_0x339b6f;this[_0x2b67e7(0x32c)](_0x324f4a),this[_0x2b67e7(0x3ae)](_0x324f4a);}[_0x339b6f(0x301)](_0x11bec9){const _0x47b126=_0x339b6f;let {unitID:_0x2ba42f}=_0x11bec9,{redoCache:_0x3ad925}=this['_renderManagerService']['getRenderById'](_0x2ba42f)['with'](_0x1c6b1f[_0x47b126(0x175)])['getUndoRedoMutationParamsCache']();if(_0x3ad925['length']===0x0)return _0x11bec9;let _0x3e60ea=_0x1d062f[_0x47b126(0x3da)][_0x47b126(0x2d7)](_0x11bec9[_0x47b126(0x17b)][0x0]);for(let _0x205a35=0x0;_0x205a35<_0x3ad925[_0x47b126(0x231)];_0x205a35++){let _0x47dda1={'id':_0x47b126(0x234),'params':{..._0x3ad925[_0x205a35]}},_0x57de10=this[_0x47b126(0x3d2)][_0x47b126(0x187)](_0x3e60ea,_0x47dda1,!0x1);if((0x0,_0x600789[_0x47b126(0x24c)])(_0x57de10))throw _0x57de10[_0x47b126(0x40d)];_0x3e60ea=_0x57de10[_0x47b126(0x15e)];}return{..._0x1d062f['Tools'][_0x47b126(0x2d7)](_0x11bec9),'mutations':[_0x3e60ea]};}[_0x339b6f(0x32c)](_0x492b3b){const _0x401a07=_0x339b6f;let {unitID:_0x38365e}=_0x492b3b,_0x23485d=this[_0x401a07(0x2e0)][_0x401a07(0x399)](_0x38365e)[_0x401a07(0x3f6)](_0x1c6b1f[_0x401a07(0x175)]),{undoCache:_0x39a1ce,redoCache:_0x43534f}=_0x23485d[_0x401a07(0x2d5)]();if(_0x39a1ce['length']===0x0||_0x43534f[_0x401a07(0x231)]===0x0)return;let _0x38b57e=[],_0x9ca92f=[],_0xd57ea7=_0x1d062f['Tools'][_0x401a07(0x2d7)](_0x492b3b[_0x401a07(0x17b)][0x0]),_0x216629=_0x1d062f['Tools'][_0x401a07(0x2d7)](_0x492b3b['mutations'][0x0]);for(let _0x736289=_0x39a1ce[_0x401a07(0x231)]-0x1;_0x736289>=0x0;_0x736289--){let _0x5a09a0={'id':_0x401a07(0x234),'params':{..._0x39a1ce[_0x736289]}},_0x577f11={'id':_0x401a07(0x234),'params':{..._0x43534f[_0x736289]}},_0x242413=this[_0x401a07(0x3d2)][_0x401a07(0x187)](_0xd57ea7,_0x5a09a0,!0x1),_0x577c45=this[_0x401a07(0x3d2)][_0x401a07(0x187)](_0x216629,_0x577f11,!0x1);if((0x0,_0x600789[_0x401a07(0x24c)])(_0x242413))throw _0x242413['error'];if((0x0,_0x600789[_0x401a07(0x24c)])(_0x577c45))throw _0x577c45['error'];_0x38b57e[_0x401a07(0x424)](_0x242413[_0x401a07(0x3b4)][_0x401a07(0x3c9)]),_0x9ca92f[_0x401a07(0x424)](_0x577c45[_0x401a07(0x3b4)][_0x401a07(0x3c9)]),_0xd57ea7=_0x242413['m1Prime'],_0x216629=_0x577c45[_0x401a07(0x15e)];}_0x23485d[_0x401a07(0x1b3)]({'undoCache':_0x38b57e,'redoCache':_0x9ca92f});}['_transformPreviousActiveRange'](_0x49d48b){const _0x5e088e=_0x339b6f;let {unitID:_0x2159e1}=_0x49d48b,_0x5d9a60=this[_0x5e088e(0x2e0)]['getRenderById'](_0x2159e1)[_0x5e088e(0x3f6)](_0x1c6b1f[_0x5e088e(0x175)]),_0x44a3af=_0x5d9a60[_0x5e088e(0x303)]();if(_0x44a3af==null)return;let _0x17f4ca=[{'id':_0x5e088e(0x234),'params':{'unitId':_0x49d48b[_0x5e088e(0x310)],'actions':null,'textRanges':[_0x44a3af]}}],_0x4ec8b=this[_0x5e088e(0x3d2)][_0x5e088e(0x184)](_0x49d48b,_0x17f4ca);if(!(0x0,_0x600789['isTransformMutationsWithChangesetSuccess'])(_0x4ec8b))throw _0x4ec8b[_0x5e088e(0x40d)];let _0x191347=_0x4ec8b[_0x5e088e(0x3b4)][0x0][_0x5e088e(0x3c9)]['textRanges'];Array[_0x5e088e(0x1df)](_0x191347)&&_0x191347[_0x5e088e(0x231)]&&_0x5d9a60['setActiveRange'](_0x191347[0x0]);}};_0x2f9daa=_0x8db4f3([_0x21c55a(0x0,_0x600789[_0x339b6f(0x1e6)]),_0x21c55a(0x1,_0xc630f2['IRenderManagerService'])],_0x2f9daa);let _0x426fe9=class{constructor(_0x392e73,_0x3ddf02,_0x411458){const _0x3b9d28=_0x339b6f;this[_0x3b9d28(0x405)]=_0x392e73,this[_0x3b9d28(0x3d2)]=_0x3ddf02,this[_0x3b9d28(0x373)]=_0x411458;}[_0x339b6f(0x36e)](_0x6a4abd){const _0x298426=_0x339b6f;this[_0x298426(0x25c)](_0x6a4abd);}[_0x339b6f(0x301)](_0x481db4){const _0x437648=_0x339b6f;let {unitID:_0xc15899}=_0x481db4,{collaboration:_0x29d757}=this[_0x437648(0x373)][_0x437648(0x3dd)](_0xc15899);if(_0x29d757[_0x437648(0x231)]===0x0)return _0x481db4;let _0x56b176=_0x1d062f[_0x437648(0x3da)]['deepClone'](_0x481db4[_0x437648(0x17b)][0x0]);for(let _0x2fc5a8=0x0;_0x2fc5a8<_0x29d757[_0x437648(0x231)];_0x2fc5a8++){let _0x5d2ed4={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x29d757[_0x2fc5a8][_0x437648(0x24e)],..._0x29d757[_0x2fc5a8]['redoState']}},_0x25f5db=this[_0x437648(0x3d2)][_0x437648(0x187)](_0x56b176,_0x5d2ed4,!0x1);if((0x0,_0x600789['isTransformMutationFailure'])(_0x25f5db))throw _0x25f5db[_0x437648(0x40d)];_0x56b176=_0x25f5db[_0x437648(0x15e)];}return{..._0x1d062f[_0x437648(0x3da)][_0x437648(0x2d7)](_0x481db4),'mutations':[_0x56b176]};}[_0x339b6f(0x25c)](_0x1c965a){const _0x3aeea4=_0x339b6f;let {unitID:_0x2ea3df}=_0x1c965a,{history:_0x1fcceb,collaboration:_0x11ac62}=this['_docStateChangeManagerService'][_0x3aeea4(0x3dd)](_0x2ea3df);if(_0x1fcceb[_0x3aeea4(0x231)]===0x0&&_0x11ac62['length']===0x0)return;let _0x4286ad=[],_0x52c9d3=[],_0x4febd4=_0x1d062f[_0x3aeea4(0x3da)]['deepClone'](_0x1c965a[_0x3aeea4(0x17b)][0x0]),_0x22c69c=_0x1d062f[_0x3aeea4(0x3da)][_0x3aeea4(0x2d7)](_0x1c965a['mutations'][0x0]);for(let _0x1b98f9=_0x1fcceb[_0x3aeea4(0x231)]-0x1;_0x1b98f9>=0x0;_0x1b98f9--){let _0x2a4586={'id':_0x3aeea4(0x234),'params':{'unitId':_0x1fcceb[_0x1b98f9][_0x3aeea4(0x24e)],..._0x1fcceb[_0x1b98f9]['undoState']}},_0x8bd0ae={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x1fcceb[_0x1b98f9][_0x3aeea4(0x24e)],..._0x1fcceb[_0x1b98f9][_0x3aeea4(0x2af)]}},_0x52f0b5=this[_0x3aeea4(0x3d2)][_0x3aeea4(0x187)](_0x4febd4,_0x2a4586,!0x1),_0x545380=this['_transformService'][_0x3aeea4(0x187)](_0x22c69c,_0x8bd0ae,!0x1);if((0x0,_0x600789['isTransformMutationFailure'])(_0x52f0b5))throw _0x52f0b5['error'];if((0x0,_0x600789[_0x3aeea4(0x24c)])(_0x545380))throw _0x545380[_0x3aeea4(0x40d)];_0x4286ad['unshift']({..._0x1fcceb[_0x1b98f9],'undoState':_0x52f0b5[_0x3aeea4(0x3b4)][_0x3aeea4(0x3c9)],'redoState':_0x545380[_0x3aeea4(0x3b4)][_0x3aeea4(0x3c9)]}),_0x4febd4=_0x52f0b5[_0x3aeea4(0x15e)],_0x22c69c=_0x545380[_0x3aeea4(0x15e)];}_0x4febd4=_0x1d062f[_0x3aeea4(0x3da)][_0x3aeea4(0x2d7)](_0x1c965a[_0x3aeea4(0x17b)][0x0]),_0x22c69c=_0x1d062f[_0x3aeea4(0x3da)][_0x3aeea4(0x2d7)](_0x1c965a[_0x3aeea4(0x17b)][0x0]);for(let _0x21ab90=_0x11ac62[_0x3aeea4(0x231)]-0x1;_0x21ab90>=0x0;_0x21ab90--){let _0x372d9f={'id':_0x3aeea4(0x234),'params':{'unitId':_0x11ac62[_0x21ab90][_0x3aeea4(0x24e)],..._0x11ac62[_0x21ab90][_0x3aeea4(0x1ee)]}},_0x4b4554={'id':'doc.mutation.rich-text-editing','params':{'unitId':_0x11ac62[_0x21ab90][_0x3aeea4(0x24e)],..._0x11ac62[_0x21ab90][_0x3aeea4(0x2af)]}},_0x53801d=this['_transformService'][_0x3aeea4(0x187)](_0x4febd4,_0x372d9f,!0x1),_0x3291c5=this[_0x3aeea4(0x3d2)][_0x3aeea4(0x187)](_0x22c69c,_0x4b4554,!0x1);if((0x0,_0x600789[_0x3aeea4(0x24c)])(_0x53801d))throw _0x53801d[_0x3aeea4(0x40d)];if((0x0,_0x600789[_0x3aeea4(0x24c)])(_0x3291c5))throw _0x3291c5['error'];_0x52c9d3[_0x3aeea4(0x424)]({..._0x11ac62[_0x21ab90],'undoState':_0x53801d['m2Prime'][_0x3aeea4(0x3c9)],'redoState':_0x3291c5[_0x3aeea4(0x3b4)][_0x3aeea4(0x3c9)]}),_0x4febd4=_0x53801d[_0x3aeea4(0x15e)],_0x22c69c=_0x3291c5['m1Prime'];}this[_0x3aeea4(0x373)][_0x3aeea4(0x2f7)](_0x2ea3df,{'history':_0x4286ad,'collaboration':_0x52c9d3});}};_0x426fe9=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f['Injector'])),_0x21c55a(0x1,_0x600789[_0x339b6f(0x1e6)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1c6b1f[_0x339b6f(0x419)]))],_0x426fe9);let _0x330553=class{constructor(_0x390cb1,_0x3697b3){const _0x38e567=_0x339b6f;this[_0x38e567(0x405)]=_0x390cb1,this[_0x38e567(0x3d2)]=_0x3697b3;}[_0x339b6f(0x2ec)](_0xd35342){const _0x1e3021=_0x339b6f;var _0x44d473;let _0x22b9d1=this[_0x1e3021(0x405)][_0x1e3021(0x3fe)](_0x55d528[_0x1e3021(0x3a6)]),_0x31d66f=(_0x44d473=_0x22b9d1[_0x1e3021(0x357)]())==null?[]:_0x44d473;if(_0x31d66f[_0x1e3021(0x231)]===0x0)return;let _0x124374=_0xd35342[_0x1e3021(0x310)],_0x3b5423=[{'id':_0x1e3021(0x234),'params':{'unitId':_0x124374,'actions':null,'textRanges':_0x31d66f}}],_0x1a0c05=this['_transformService'][_0x1e3021(0x184)](_0xd35342,_0x3b5423);if(!(0x0,_0x600789[_0x1e3021(0x20f)])(_0x1a0c05))throw _0x1a0c05[_0x1e3021(0x40d)];let _0x31b3a3=_0x1a0c05['m2Prime'][0x0][_0x1e3021(0x3c9)][_0x1e3021(0x2fd)];Array[_0x1e3021(0x1df)](_0x31b3a3)&&_0x31b3a3[_0x1e3021(0x231)]&&_0x22b9d1[_0x1e3021(0x2d0)](_0x31b3a3,{'unitId':_0x124374,'subUnitId':_0x124374},!0x1);}};_0x330553=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f['Inject'])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x1,_0x600789[_0x339b6f(0x1e6)])],_0x330553);let _0x3a0d44=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x4d3551,_0x55b83a,_0x49d61e,_0x24f92c,_0x17eda3,_0x46d60f,_0x5cf45c,_0x5e5aef){const _0x300022=_0x339b6f;super(),this[_0x300022(0x373)]=_0x4d3551,this[_0x300022(0x17a)]=_0x55b83a,this[_0x300022(0x19e)]=_0x49d61e,this[_0x300022(0x25f)]=_0x24f92c,this[_0x300022(0x1c4)]=_0x17eda3,this[_0x300022(0x290)]=_0x46d60f,this[_0x300022(0x1bb)]=_0x5cf45c,this[_0x300022(0x23e)]=_0x5e5aef,_0x1050e7(this,_0x300022(0x396),new _0x5df150[(_0x300022(0x2ef))](_0x20efb1[_0x300022(0x1c7)][_0x300022(0x153)])),this['_initEntityListener']();}[_0x339b6f(0x32a)](){const _0x1537af=_0x339b6f;this[_0x1537af(0x18c)](this[_0x1537af(0x17a)][_0x1537af(0x232)][_0x1537af(0x3cd)](_0x499291=>{const _0x191c11=_0x1537af;let _0x1ada58=this[_0x191c11(0x373)][_0x191c11(0x16e)][_0x191c11(0x3cd)](_0x22e692=>{const _0xa29cb9=_0x191c11;if(_0x22e692==null)return;let {unitId:_0x25e4a6,redoState:_0x355919,commandId:_0x4d83bf}=_0x22e692;if(_0x25e4a6!==_0x499291[_0xa29cb9(0x310)])return;let _0x5b364a={'id':_0x4d83bf,'type':_0x1d062f['CommandType'][_0xa29cb9(0x400)],'params':{'unitId':_0x25e4a6,'actions':_0x355919[_0xa29cb9(0x210)],'textRanges':null}};_0x499291['onLocalMutation'](_0x5b364a);});_0x499291[_0x191c11(0x18c)](_0x1ada58),_0x499291 instanceof _0x20efb1[_0x191c11(0x28c)]&&_0x499291[_0x191c11(0x342)]({'onTransformIME':_0x3a9e1c=>this['_docTransformIMECacheService'][_0x191c11(0x226)](_0x3a9e1c),'onTransformState':_0x5016b6=>this['_docTransformStateCacheService'][_0x191c11(0x36e)](_0x5016b6),'onTransformSelections':_0x3f489f=>this[_0x191c11(0x1c4)][_0x191c11(0x2ec)](_0x3f489f),'onSyncEditingCollabCursor':_0x311b8a=>this[_0x191c11(0x290)]['syncEditingCollabCursor'](_0x311b8a),'onTransformRemoteChangesetByIMECache':_0x8ef852=>this[_0x191c11(0x19e)][_0x191c11(0x301)](_0x8ef852),'onTransformRemoteChangesetByStateCache':_0x386cfe=>this[_0x191c11(0x25f)][_0x191c11(0x301)](_0x386cfe)});}));}};_0x3a0d44=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1c6b1f[_0x339b6f(0x419)])),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x275)])),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x2f9daa)),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x426fe9)),_0x21c55a(0x4,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x330553)),_0x21c55a(0x5,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x2b1e68)),_0x21c55a(0x6,_0x25f9de[_0x339b6f(0x169)]),_0x21c55a(0x7,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x142)]))],_0x3a0d44);let _0x133a91=class extends _0x1d062f['Disposable']{constructor(_0x4f2ef7,_0x29c3ed,_0x246272,_0x422068){const _0x1e3785=_0x339b6f;super(),this['_injector']=_0x4f2ef7,this[_0x1e3785(0x1c9)]=_0x29c3ed,this[_0x1e3785(0x1dc)]=_0x246272,this[_0x1e3785(0x36f)]=_0x422068,_0x1050e7(this,'_memberID',void 0x0),this[_0x1e3785(0x1ac)]();}[_0x339b6f(0x1ac)](){const _0x1ce168=_0x339b6f;this[_0x1ce168(0x3c3)](),this[_0x1ce168(0x28f)](),this[_0x1ce168(0x2a4)](),this['_initUserListener']();}['_initUserListener'](){const _0x309475=_0x339b6f;this[_0x309475(0x18c)](this['_collaborationSessionService']['socket$']['subscribe'](_0x3056fb=>{const _0x106ba0=_0x309475;this[_0x106ba0(0x38d)]=_0x3056fb==null?void 0x0:_0x3056fb[_0x106ba0(0x227)];}));}['_initWindowErrorListener'](){const _0x3698d9=_0x339b6f;let _0x274490=_0x5d59e0=>{const _0xafe2b0=_0x405a;var _0x774674;this[_0xafe2b0(0x35d)](_0xafe2b0(0x40d),_0xafe2b0(0x156)+_0x5d59e0[_0xafe2b0(0x26a)]+_0xafe2b0(0x37c)+_0x5d59e0[_0xafe2b0(0x276)]+':'+_0x5d59e0[_0xafe2b0(0x143)]+':'+_0x5d59e0[_0xafe2b0(0x1b7)]+'\x0a'+(((_0x774674=_0x5d59e0['error'])==null?void 0x0:_0x774674['stack'])||''));};window[_0x3698d9(0x308)](_0x3698d9(0x40d),_0x274490),this[_0x3698d9(0x18c)](()=>{const _0x13d66b=_0x3698d9;window['removeEventListener'](_0x13d66b(0x40d),_0x274490);});}[_0x339b6f(0x28f)](){const _0x397889=_0x339b6f;let _0x3c52eb=_0x418a8a=>{const _0x3983ff=_0x405a;this['_uploadLog'](_0x3983ff(0x40d),_0x3983ff(0x223)+_0x418a8a[_0x3983ff(0x238)]);};window['addEventListener'](_0x397889(0x186),_0x3c52eb),this[_0x397889(0x18c)](()=>{window['removeEventListener']('unhandledrejection',_0x3c52eb);});}['_monkeyPatchLogService'](){const _0x2d8a4c=_0x339b6f;let _0x36803a=this[_0x2d8a4c(0x1dc)]['error'][_0x2d8a4c(0x2b9)](this['_logService']);this[_0x2d8a4c(0x1dc)][_0x2d8a4c(0x40d)]=(..._0x42bbb2)=>{const _0xf54ba0=_0x2d8a4c;let _0x4af86a=_0x42bbb2['map'](_0x2307ab=>_0x2307ab instanceof Error?_0x2307ab['message']+'\x0a'+_0x2307ab['stack']:String(_0x2307ab))[_0xf54ba0(0x179)]('\x20');this[_0xf54ba0(0x35d)](_0xf54ba0(0x40d),_0xf54ba0(0x14c)+_0x4af86a),_0x36803a(..._0x42bbb2);},this[_0x2d8a4c(0x18c)](()=>{const _0x85405d=_0x2d8a4c;this[_0x85405d(0x1dc)]['error']=_0x36803a;});}[_0x339b6f(0x35d)](_0x27fe6c,_0x1066b8){const _0xae86ce=_0x339b6f;try{let _0x2f9a91={'userId':this['_memberID'],'logLabel':_0x27fe6c,'content':_0x1066b8};this[_0xae86ce(0x1c9)][_0xae86ce(0x316)](_0xae86ce(0x322),{'body':_0x2f9a91})['catch'](()=>{});}catch{}}};_0x133a91=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x408)]),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x20efb1[_0x339b6f(0x2c2)]))],_0x133a91);function _0x17896e(_0xfb011e){const _0x3197ca=_0x339b6f;var _0x49ce74,_0x1f3606;let _0x57f78e=(_0x49ce74=_0xfb011e['stageInfo'])==null?void 0x0:_0x49ce74[_0x3197ca(0x218)],_0x3c1ec6=((_0x1f3606=_0xfb011e[_0x3197ca(0x212)])==null?void 0x0:_0x1f3606[_0x3197ca(0x39b)])||0x0;return _0x57f78e===_0x4f0b10[_0x3197ca(0x307)][_0x3197ca(0x425)]&&_0x3c1ec6>0x0;}function _0x5a7335(_0x3f5daf){const _0x3d4c3f=_0x339b6f;return _0x3f5daf[_0x3d4c3f(0x16d)]===_0x4f0b10['FormulaExecutedStateType'][_0x3d4c3f(0x1d1)];}let _0x21999d=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x30a0b3,_0x55ebcc,_0x3a59fd,_0x19214a,_0x14de31,_0x2923c0,_0x1aa21d){const _0x541a86=_0x339b6f;super(),this[_0x541a86(0x1bb)]=_0x30a0b3,this['_commandService']=_0x55ebcc,this[_0x541a86(0x3c6)]=_0x3a59fd,this[_0x541a86(0x1c9)]=_0x19214a,this[_0x541a86(0x30f)]=_0x14de31,this[_0x541a86(0x1dc)]=_0x2923c0,this[_0x541a86(0x23e)]=_0x1aa21d,_0x1050e7(this,_0x541a86(0x3f4),null),_0x1050e7(this,'_maxFormulaLimit',0x0),_0x1050e7(this,_0x541a86(0x2d8),0x0),_0x1050e7(this,_0x541a86(0x147),[]),_0x1050e7(this,_0x541a86(0x27b),0x0),this[_0x541a86(0x2db)]();}[_0x339b6f(0x2db)](){const _0xbfe04f=_0x339b6f;this['disposeWithMe'](this[_0xbfe04f(0x3a4)][_0xbfe04f(0x3b5)]((_0xc26415,_0x428a76)=>{const _0x2e75e9=_0xbfe04f;var _0x3f751a;if(_0xc26415['id']!==_0x4f0b10[_0x2e75e9(0x14a)]['id'])return;let _0xd83a07=_0xc26415[_0x2e75e9(0x3c9)];if(this[_0x2e75e9(0x2bc)]((_0x3f751a=_0xd83a07['dirtyRanges'])==null?[]:_0x3f751a)&&!this[_0x2e75e9(0x16b)]())throw this[_0x2e75e9(0x146)](_0xc26415,_0x428a76),this[_0x2e75e9(0x3e1)](),new _0x1d062f[(_0x2e75e9(0x20a))]();})),this[_0xbfe04f(0x18c)](this[_0xbfe04f(0x3a4)][_0xbfe04f(0x1b0)]((_0x1e0401,_0x28bf6c)=>{const _0x19148e=_0xbfe04f;if(_0x1e0401['id']!==_0x4f0b10[_0x19148e(0x1ae)]['id'])return;let _0x4078f4=_0x1e0401['params'];if(_0x17896e(_0x4078f4)){let _0x30277b=(0x0,_0x1d062f[_0x19148e(0x409)])();this[_0x19148e(0x147)][_0x19148e(0x411)](_0x30277b),this[_0x19148e(0x3bb)](_0x30277b);}else{if(_0x5a7335(_0x4078f4)&&this[_0x19148e(0x147)][_0x19148e(0x231)]>0x0){let _0x50360f=this[_0x19148e(0x147)][_0x19148e(0x35f)]();this[_0x19148e(0x182)](_0x50360f);}}}));}['dispose'](){const _0xd414e=_0x339b6f;super['dispose'](),this[_0xd414e(0x3d5)](),this[_0xd414e(0x147)]=[],this[_0xd414e(0x2d8)]=0x0,this[_0xd414e(0x323)]=0x0,this['_lastResponseTimestamp']=0x0;}async['_checkAndWaitForCalculationPermission'](_0x390f1b,_0x3b5382){const _0xa7b8ec=_0x339b6f;for(let _0x11e5a1=0x0;_0x11e5a1<0x1e;_0x11e5a1++)try{if(await this[_0xa7b8ec(0x3e3)](),this[_0xa7b8ec(0x16b)]()){this[_0xa7b8ec(0x34e)](_0x390f1b,_0x3b5382),this[_0xa7b8ec(0x1bb)][_0xa7b8ec(0x1e3)]({'content':this[_0xa7b8ec(0x23e)]['t']('collaboration-client-ui.formula.calculation.started'),'type':_0x36848a[_0xa7b8ec(0x1f7)][_0xa7b8ec(0x1f9)]});return;}await new Promise(_0x4e3076=>{const _0x4f5742=_0xa7b8ec;this[_0x4f5742(0x3f4)]=window[_0x4f5742(0x289)](_0x4e3076,0x3e8);});}catch(_0x35adf5){this[_0xa7b8ec(0x1dc)][_0xa7b8ec(0x40d)](_0x35adf5);}this[_0xa7b8ec(0x1bb)][_0xa7b8ec(0x1e3)]({'content':this[_0xa7b8ec(0x23e)]['t'](_0xa7b8ec(0x420)),'type':_0x36848a[_0xa7b8ec(0x1f7)]['Error']});}[_0x339b6f(0x34e)](_0x50289c,_0x515fcd){const _0xdc331e=_0x339b6f;try{this[_0xdc331e(0x3a4)]['executeCommand'](_0x50289c['id'],_0x50289c[_0xdc331e(0x3c9)],_0x515fcd);}catch(_0x5781db){this[_0xdc331e(0x1dc)][_0xdc331e(0x40d)](_0x5781db);}}[_0x339b6f(0x3ec)](_0x576e10,_0x2b5826){const _0x59959a=_0x339b6f;_0x2b5826<this[_0x59959a(0x27b)]||(this[_0x59959a(0x27b)]=_0x2b5826,this[_0x59959a(0x323)]=Number['parseInt'](_0x576e10['maxFormulaLimit']),this[_0x59959a(0x2d8)]=Number['parseInt'](_0x576e10['currentUsage']));}async[_0x339b6f(0x3bb)](_0x573beb){const _0x3e4852=_0x339b6f;let _0x5dabb5=Date['now']();try{var _0x294206,_0x67fa1d;let _0x5ea973=((_0x294206=this[_0x3e4852(0x3c6)]['getConfig'](_0x20efb1[_0x3e4852(0x371)]))==null?void 0x0:_0x294206[_0x3e4852(0x269)])||_0x3e4852(0x174),_0x3f9928=(await this['_httpService'][_0x3e4852(0x316)](_0x5ea973,{'body':JSON[_0x3e4852(0x145)]({'taskId':_0x573beb})}))[_0x3e4852(0x1d2)];if(((_0x67fa1d=_0x3f9928['error'])==null?void 0x0:_0x67fa1d[_0x3e4852(0x3bd)])!==_0x3c5971[_0x3e4852(0x363)]['OK'])return;this[_0x3e4852(0x3ec)](_0x3f9928[_0x3e4852(0x1fa)],_0x5dabb5);}catch(_0x12de09){this[_0x3e4852(0x1dc)][_0x3e4852(0x40d)](_0x12de09);}}async[_0x339b6f(0x3e3)](_0x3ee990){const _0x145f6c=_0x339b6f;let _0x2d030c=Date[_0x145f6c(0x2bd)]();try{var _0x3e14ff,_0x2b7697;let _0x3e3cdd=((_0x3e14ff=this[_0x145f6c(0x3c6)][_0x145f6c(0x302)](_0x20efb1['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3e14ff[_0x145f6c(0x172)])||_0x145f6c(0x21c),_0x329c79=_0x3ee990?_0x3e3cdd+_0x145f6c(0x1db)+encodeURIComponent(_0x3ee990):_0x3e3cdd,_0xa3e691=(await this[_0x145f6c(0x1c9)]['get'](_0x329c79))['body'];if(((_0x2b7697=_0xa3e691['error'])==null?void 0x0:_0x2b7697['code'])!==_0x3c5971['ErrorCode']['OK'])return;this[_0x145f6c(0x3ec)](_0xa3e691['limitInfo'],_0x2d030c);}catch(_0x422d86){this['_logService'][_0x145f6c(0x40d)](_0x422d86);}}async['_releaseCalculationLimit'](_0x21580d){const _0x35351e=_0x339b6f;let _0x36d994=Date[_0x35351e(0x2bd)]();try{var _0x3f794f,_0x37d715;let _0x2b4d27=((_0x3f794f=this['_configService'][_0x35351e(0x302)](_0x20efb1['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3f794f['releaseFormulaLimitUrl'])||_0x35351e(0x328),_0x452eb3=(await this[_0x35351e(0x1c9)][_0x35351e(0x316)](_0x2b4d27,{'body':JSON[_0x35351e(0x145)]({'taskId':_0x21580d})}))[_0x35351e(0x1d2)];if(((_0x37d715=_0x452eb3[_0x35351e(0x40d)])==null?void 0x0:_0x37d715[_0x35351e(0x3bd)])!==_0x3c5971[_0x35351e(0x363)]['OK'])return;this[_0x35351e(0x3ec)](_0x452eb3[_0x35351e(0x1fa)],_0x36d994);}catch(_0x485fb2){this[_0x35351e(0x1dc)][_0x35351e(0x40d)](_0x485fb2);}}[_0x339b6f(0x16b)](){const _0x3ea46e=_0x339b6f;return this['_maxFormulaLimit']===0x0?!0x0:this[_0x3ea46e(0x323)]-this[_0x3ea46e(0x2d8)]>0x0;}['_clearPolling'](){const _0x353f22=_0x339b6f;this[_0x353f22(0x3f4)]&&(clearTimeout(this[_0x353f22(0x3f4)]),this['_pollingInterval']=null);}[_0x339b6f(0x3e1)](){const _0x488816=_0x339b6f;this[_0x488816(0x1bb)][_0x488816(0x1e3)]({'content':this[_0x488816(0x23e)]['t']('collaboration-client-ui.formula.calculation.waiting'),'type':_0x36848a['MessageType'][_0x488816(0x331)]});}['_hasFormulaInDirtyRanges'](_0xa44bb7){const _0x1fe6cf=_0x339b6f;for(let _0x13c7af of _0xa44bb7){let {unitId:_0x4f2220,sheetId:_0x3da177,range:_0xaf59d6}=_0x13c7af,_0x169b36=this[_0x1fe6cf(0x30f)]['getUnit'](_0x4f2220);if(!_0x169b36)continue;let _0x2a0af4=_0x169b36[_0x1fe6cf(0x3a2)](_0x3da177);if(!_0x2a0af4)continue;let _0x40b502=_0x2a0af4['getCellMatrix']();for(let _0x548f29=_0xaf59d6[_0x1fe6cf(0x284)];_0x548f29<=_0xaf59d6[_0x1fe6cf(0x31c)];_0x548f29++)for(let _0xb8748d=_0xaf59d6[_0x1fe6cf(0x19c)];_0xb8748d<=_0xaf59d6[_0x1fe6cf(0x3bc)];_0xb8748d++){let _0x1cf628=_0x40b502[_0x1fe6cf(0x359)](_0x548f29,_0xb8748d);if(_0x1cf628&&((0x0,_0x1d062f[_0x1fe6cf(0x365)])(_0x1cf628['f'])||(0x0,_0x1d062f[_0x1fe6cf(0x3e5)])(_0x1cf628['si'])))return!0x0;}}return!0x1;}};_0x21999d=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f['Inject'])(_0x25f9de[_0x339b6f(0x169)])),_0x21c55a(0x1,_0x1d062f[_0x339b6f(0x2a0)]),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x2c5)]),_0x21c55a(0x3,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x4,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x5,_0x1d062f['ILogService']),_0x21c55a(0x6,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x142)]))],_0x21999d);let _0x4e1f85=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x40be25,_0x41b3f6,_0x81d36e){const _0x1697ae=_0x339b6f;super(),this[_0x1697ae(0x3c6)]=_0x40be25,this['_localStorageService']=_0x41b3f6,this[_0x1697ae(0x258)]=_0x81d36e,_0x1050e7(this,_0x1697ae(0x2f4),new Map()),_0x1050e7(this,_0x1697ae(0x162),new Map()),_0x1050e7(this,_0x1697ae(0x2dc),!0x1);}[_0x339b6f(0x3f1)](){const _0x258f87=_0x339b6f;this[_0x258f87(0x2dc)]=!0x0;}['enableLocalCache'](){const _0x296eee=_0x339b6f;this[_0x296eee(0x2dc)]=!0x1;}get['saveTaskMap'](){return this['_saveTaskMap'];}[_0x339b6f(0x39e)](){const _0x3b42ce=_0x339b6f;this[_0x3b42ce(0x255)]()['then'](()=>super[_0x3b42ce(0x39e)]());}async[_0x339b6f(0x157)](_0x4f5397){const _0x4573d5=_0x339b6f;return this[_0x4573d5(0x2dc)]?null:this[_0x4573d5(0x320)][_0x4573d5(0x2e8)]((0x0,_0x20efb1['getLocalCacheKey'])(_0x4f5397));}async[_0x339b6f(0x1a8)](_0x3bc5db,_0x325d69){const _0x293bc2=_0x339b6f;return!!this[_0x293bc2(0x320)]['setItem'](_0x3bc5db,_0x325d69);}['updateOfflineData'](_0x482b61,_0x4d8a2e,_0x21323b,_0x2b5610){const _0x6a839f=_0x339b6f;let _0x454a52=this[_0x6a839f(0x258)]['getCurrentRevOfUnit'](_0x482b61);this['_cachedData'][_0x6a839f(0x3e7)](_0x482b61,{'unitID':_0x482b61,'type':_0x4d8a2e,'awaitingChangeset':_0x21323b,'mutations':_0x2b5610,'rev':_0x454a52}),this['_saveTaskMap'][_0x6a839f(0x377)](_0x482b61)||this[_0x6a839f(0x3ef)](_0x482b61);}['_scheduleSaving'](_0x58979e){const _0x5391d4=_0x339b6f;let _0x222a48=this[_0x5391d4(0x3df)]();_0x222a48===0x0?this[_0x5391d4(0x41d)](_0x58979e):this[_0x5391d4(0x162)][_0x5391d4(0x3e7)](_0x58979e,setTimeout(()=>this[_0x5391d4(0x41d)](_0x58979e),_0x222a48));}[_0x339b6f(0x3df)](){const _0x20bb51=_0x339b6f;var _0x27bd96;return(_0x27bd96=this[_0x20bb51(0x3c6)][_0x20bb51(0x302)](_0x20efb1[_0x20bb51(0x1ab)]))==null?_0x20efb1[_0x20bb51(0x29d)]:_0x27bd96;}[_0x339b6f(0x41d)](_0x2e3e75){const _0x1a1b7e=_0x339b6f;let _0x1737cd=this['_saveTaskMap'][_0x1a1b7e(0x3fe)](_0x2e3e75);return _0x1737cd!==void 0x0&&window[_0x1a1b7e(0x3a1)](_0x1737cd),this[_0x1a1b7e(0x320)][_0x1a1b7e(0x349)]((0x0,_0x20efb1[_0x1a1b7e(0x3d7)])(_0x2e3e75),this[_0x1a1b7e(0x2f4)][_0x1a1b7e(0x3fe)](_0x2e3e75))[_0x1a1b7e(0x3f8)](()=>this[_0x1a1b7e(0x162)][_0x1a1b7e(0x229)](_0x2e3e75));}async[_0x339b6f(0x255)](){const _0x1f3270=_0x339b6f;let _0x139d1a=[];this['_saveTaskMap'][_0x1f3270(0x159)]((_0xf8f7ac,_0xd565f7)=>{const _0x21add5=_0x1f3270;window[_0x21add5(0x3a1)](_0xf8f7ac),_0x139d1a['push'](this[_0x21add5(0x41d)](_0xd565f7)[_0x21add5(0x3f8)](()=>{const _0x1f9ec6=_0x21add5;this[_0x1f9ec6(0x162)][_0x1f9ec6(0x229)](_0xd565f7);}));}),await Promise[_0x1f3270(0x41b)](_0x139d1a);}};_0x4e1f85=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x2c5)]),_0x21c55a(0x1,_0x1d062f[_0x339b6f(0x194)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x600789['RevisionService']))],_0x4e1f85);var _0x5af43f=class extends _0x1d062f[_0x339b6f(0x36d)]{constructor(){const _0x4e9cec=_0x339b6f;super(),_0x1050e7(this,_0x4e9cec(0x2b2),void 0x0),this[_0x4e9cec(0x2b2)]=(0x0,_0x5df150[_0x4e9cec(0x1b2)])(window,_0x4e9cec(0x2e9))[_0x4e9cec(0x300)]((0x0,_0x5df150[_0x4e9cec(0x154)])(this[_0x4e9cec(0x23c)]),(0x0,_0x5df150['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}),(0x0,_0x5df150['mapTo'])(void 0x0));}[_0x339b6f(0x40b)](_0x24d715,_0x532df0,_0x7906d1=!0x1){const _0x2a020d=_0x339b6f;let _0x3ae342=new URL(window[_0x2a020d(0x25a)][_0x2a020d(0x3cc)]);_0x3ae342[_0x2a020d(0x1d5)]['set'](_0x24d715,_0x532df0),_0x7906d1?window[_0x2a020d(0x298)][_0x2a020d(0x29c)]('','',_0x3ae342['toString']()):window[_0x2a020d(0x298)]['pushState']('','',_0x3ae342[_0x2a020d(0x37a)]());}[_0x339b6f(0x1a9)](_0x10c93f,_0xb876c4=!0x1){const _0x8f7c21=_0x339b6f;let _0x22e2cc=new URL(window[_0x8f7c21(0x25a)][_0x8f7c21(0x3cc)]);_0x22e2cc[_0x8f7c21(0x1d5)]['delete'](_0x10c93f),_0xb876c4?window[_0x8f7c21(0x298)][_0x8f7c21(0x29c)]('','',_0x22e2cc['toString']()):window[_0x8f7c21(0x298)][_0x8f7c21(0x2cb)]('','',_0x22e2cc[_0x8f7c21(0x37a)]());}[_0x339b6f(0x2c4)](_0x58cbb6){const _0x549918=_0x339b6f;var _0x3acb4c;return(_0x3acb4c=new URL(window['location'][_0x549918(0x3cc)])[_0x549918(0x1d5)]['get'](_0x58cbb6))==null?void 0x0:_0x3acb4c;}};let _0x1034bb=class extends _0x1d062f[_0x339b6f(0x1c3)]{constructor(_0x510131=_0x5f31b3,_0x4fe85b,_0x56ac43,_0x3c2cbe){const _0x57bd53=_0x339b6f;super(),this[_0x57bd53(0x28a)]=_0x510131,this[_0x57bd53(0x2e0)]=_0x4fe85b,this[_0x57bd53(0x405)]=_0x56ac43,this['_configService']=_0x3c2cbe;let {..._0x104912}=(0x0,_0x1d062f[_0x57bd53(0x17d)])({},_0x5f31b3,this[_0x57bd53(0x28a)]);this[_0x57bd53(0x3c6)][_0x57bd53(0x36a)]('collaboration-client-ui.config',_0x104912);}[_0x339b6f(0x280)](){this['_registerDependencies'](),this['_initDependencies']();}[_0x339b6f(0x2c3)](){const _0x12ec53=_0x339b6f;this[_0x12ec53(0x286)]();}['_registerDependencies'](){const _0x2c820e=_0x339b6f;var _0x3ddf31;let _0x258ac9=[[_0x47fa48],[_0x21999d],[_0x330553],[_0x2f9daa],[_0x426fe9],[_0x2b1e68],[_0x388e4a,{'useClass':_0x5af43f}],[_0x287543[_0x2c820e(0x140)],{'useClass':_0x287543[_0x2c820e(0x3d1)]}],[_0x20efb1[_0x2c820e(0x2a5)],{'useClass':_0x4e1f85}],[_0x22b7f5],[_0x3a0d44],[_0x1e8c36],[_0xe35be2],[_0x57c67b],[_0x8bd3ea]];this['_config'][_0x2c820e(0x2c9)]&&_0x258ac9[_0x2c820e(0x411)]([_0x133a91]),(0x0,_0x1d062f[_0x2c820e(0x18a)])(this[_0x2c820e(0x405)],(0x0,_0x1d062f[_0x2c820e(0x1ba)])(_0x258ac9,(_0x3ddf31=this[_0x2c820e(0x28a)])==null?void 0x0:_0x3ddf31[_0x2c820e(0x20e)]));}[_0x339b6f(0x286)](){const _0x290e17=_0x339b6f;this[_0x290e17(0x18c)](this[_0x290e17(0x2e0)][_0x290e17(0x291)](_0x1d062f[_0x290e17(0x397)]['UNIVER_DOC'],[_0x1993ee])),this[_0x290e17(0x18c)](this['_renderManagerService'][_0x290e17(0x291)](_0x1d062f['UniverInstanceType'][_0x290e17(0x16f)],[_0x4439c2]));}['_initDependencies'](){const _0x3e2b75=_0x339b6f;(0x0,_0x1d062f['touchDependencies'])(this['_injector'],[[_0xe35be2],[_0x22b7f5],[_0x3a0d44],[_0x1e8c36],[_0x8bd3ea],[_0x21999d],[_0x57c67b]]),this[_0x3e2b75(0x28a)][_0x3e2b75(0x2c9)]&&(0x0,_0x1d062f[_0x3e2b75(0x333)])(this['_injector'],[[_0x133a91]]);}};_0x1050e7(_0x1034bb,_0x339b6f(0x16c),_0x339b6f(0x3d3)),_0x1050e7(_0x1034bb,'packageName',_0x5cf5d0),_0x1050e7(_0x1034bb,'version',_0x57d268),_0x1034bb=_0x8db4f3([(0x0,_0x1d062f[_0x339b6f(0x406)])(_0x20efb1[_0x339b6f(0x24a)]),_0x21c55a(0x1,_0xc630f2[_0x339b6f(0x372)]),_0x21c55a(0x2,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x3,_0x1d062f['IConfigService'])],_0x1034bb);let _0x272630=class extends _0x20efb1[_0x339b6f(0x13e)]{constructor(_0x34ae52,_0x1dccbf,_0x479aff,_0x78ff83,_0x42a52a){super(_0x34ae52,_0x1dccbf,_0x479aff,_0x78ff83,_0x42a52a);}async['createSocket'](_0x41ecea){const _0x103502=_0x339b6f;let _0x5708db=await this[_0x103502(0x382)](),_0x1d3f80=this[_0x103502(0x410)](_0x41ecea,_0x5708db);return this[_0x103502(0x404)](_0x1d3f80);}[_0x339b6f(0x410)](_0x31dbc4,_0x5fe916){const _0x151b2a=_0x339b6f;let _0x37c2c9=typeof window>'u'?new URL(_0x31dbc4):new URL(_0x31dbc4,window['location'][_0x151b2a(0x1be)]);_0x37c2c9['searchParams'][_0x151b2a(0x3e7)](_0x151b2a(0x3c4),_0x5fe916);let _0x4c6049=typeof window>'u'?new URLSearchParams():new URLSearchParams(window['location'][_0x151b2a(0x1d4)]);return _0x4c6049[_0x151b2a(0x3fe)]('runId')&&_0x37c2c9[_0x151b2a(0x1d5)][_0x151b2a(0x3e7)](_0x151b2a(0x18f),_0x4c6049['get'](_0x151b2a(0x18f))),_0x37c2c9[_0x151b2a(0x37a)]();}async[_0x339b6f(0x382)](){const _0x4a5a91=_0x339b6f;var _0x3922eb,_0x3fe6b7,_0x2a1109;let _0x3a0bfe=this[_0x4a5a91(0x3c6)][_0x4a5a91(0x302)](_0x20efb1[_0x4a5a91(0x371)]),_0x43c228=(_0x3922eb=_0x3a0bfe==null?void 0x0:_0x3a0bfe[_0x4a5a91(0x15f)])==null?_0x20efb1[_0x4a5a91(0x28e)]:_0x3922eb;return(_0x3fe6b7=(_0x2a1109=(await this[_0x4a5a91(0x1c9)][_0x4a5a91(0x3fe)](_0x43c228,{'headers':{'Content-Type':_0x4a5a91(0x22d)}}))[_0x4a5a91(0x1d2)])==null?void 0x0:_0x2a1109[_0x4a5a91(0x151)])==null?'':_0x3fe6b7;}};_0x272630=_0x8db4f3([_0x21c55a(0x0,(0x0,_0x1d062f['Inject'])(_0x1d062f[_0x339b6f(0x29a)])),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x2c5)]),_0x21c55a(0x3,_0x1d062f[_0x339b6f(0x408)]),_0x21c55a(0x4,_0x600789[_0x339b6f(0x13f)])],_0x272630);let _0x264939=class extends _0x1d062f[_0x339b6f(0x339)]{constructor(_0x78d6b8,_0x59c109,_0x5ea0f9){const _0x2acd9f=_0x339b6f;super(),this[_0x2acd9f(0x3e4)]=_0x78d6b8,this[_0x2acd9f(0x1c9)]=_0x59c109,this[_0x2acd9f(0x3c6)]=_0x5ea0f9;}async[_0x339b6f(0x1e2)](_0x20db91,_0x3b491e,_0xb436de,..._0x3ddf4e){const _0x4ab4a9=_0x339b6f;var _0x383e2d,_0x49d2bb,_0x4ab72f,_0x153b2a;let _0x3859d7=this['_instanceService'][_0x4ab4a9(0x32d)]();if(!_0x3859d7)throw Error(_0x4ab4a9(0x2c1));let _0x229bb9=((_0x383e2d=this[_0x4ab4a9(0x3c6)][_0x4ab4a9(0x302)](_0x20efb1[_0x4ab4a9(0x41e)]))==null?_0x20efb1['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']:_0x383e2d)+'/'+_0x20db91+_0x4ab4a9(0x37e)+_0x3b491e,_0x3a8c20={'scriptId':_0x20db91,'runId':(_0x49d2bb=new URL(window['location']['href'])[_0x4ab4a9(0x1d5)][_0x4ab4a9(0x3fe)](_0x4ab4a9(0x18f)))==null?'':_0x49d2bb,'function':_0x3b491e,'unitId':_0x3859d7[_0x4ab4a9(0x2c0)](),'argsOfFunction':JSON['stringify'](_0x3ddf4e),'invokeId':(_0x4ab72f=_0xb436de[_0x4ab4a9(0x317)])==null?'':_0x4ab72f,'executionId':(_0x153b2a=_0xb436de['executionId'])==null?'':_0x153b2a};try{let _0x479385=await this[_0x4ab4a9(0x1c9)][_0x4ab4a9(0x316)](_0x229bb9,{'body':_0x3a8c20});return _0x479385[_0x4ab4a9(0x1d2)][_0x4ab4a9(0x40d)]&&_0x479385[_0x4ab4a9(0x1d2)][_0x4ab4a9(0x40d)][_0x4ab4a9(0x3bd)]!==_0x3c5971[_0x4ab4a9(0x363)]['OK']?'Failed':_0x479385[_0x4ab4a9(0x1d2)]['result'];}catch{return _0x4ab4a9(0x3c8);}}};_0x264939=_0x8db4f3([_0x21c55a(0x0,_0x1d062f[_0x339b6f(0x19f)]),_0x21c55a(0x1,(0x0,_0x1d062f[_0x339b6f(0x267)])(_0x287543[_0x339b6f(0x200)])),_0x21c55a(0x2,_0x1d062f[_0x339b6f(0x2c5)])],_0x264939);let _0x892552=0x7530,_0x45da45='ACTIVE_UNIT_EVENT_CHANNEL';var _0x37c832=class extends _0x1d062f['Disposable']{constructor(){const _0xb8a7b8=_0x339b6f;super(),_0x1050e7(this,'_id',(0x0,_0x1d062f[_0xb8a7b8(0x409)])()),_0x1050e7(this,_0xb8a7b8(0x1f3),new Set()),_0x1050e7(this,'_unitOnClients',new Map()),_0x1050e7(this,_0xb8a7b8(0x203),null),_0x1050e7(this,_0xb8a7b8(0x347),new Map()),_0x1050e7(this,_0xb8a7b8(0x33a),new Map()),this[_0xb8a7b8(0x1ac)]();}[_0x339b6f(0x39e)](){const _0x5b3f01=_0x339b6f;super[_0x5b3f01(0x39e)](),this['_clearOtherTimers']['forEach']((_0x59f2cd,_0x73fe19)=>this[_0x5b3f01(0x3ad)](_0x73fe19)),this[_0x5b3f01(0x203)]&&window['clearInterval'](this['_heartbeatTimer']);}['getUnitStatus$'](_0x26d66c){const _0x4504a4=_0x339b6f;return this[_0x4504a4(0x170)](_0x26d66c)['pipe']((0x0,_0x5df150[_0x4504a4(0x41a)])());}[_0x339b6f(0x1b1)](_0x3eebfb){const _0x4e406e=_0x339b6f;this[_0x4e406e(0x1f3)][_0x4e406e(0x3ea)]===0x0&&this['_scheduleHeartbeat'](),this[_0x4e406e(0x1f3)][_0x4e406e(0x30e)](_0x3eebfb),this[_0x4e406e(0x1ad)]({'type':0x0,'memberID':this[_0x4e406e(0x3fd)],'unitIDs':[_0x3eebfb],'isForwarded':!0x1});}[_0x339b6f(0x2ab)](_0x4ed507){const _0x1f72ba=_0x339b6f;this[_0x1f72ba(0x1f3)][_0x1f72ba(0x229)](_0x4ed507),this[_0x1f72ba(0x1f3)][_0x1f72ba(0x3ea)]===0x0&&this[_0x1f72ba(0x203)]&&window[_0x1f72ba(0x3c7)](this[_0x1f72ba(0x203)]);}[_0x339b6f(0x1ac)](){const _0x63c9f7=_0x339b6f;this[_0x63c9f7(0x18c)]((0x0,_0x1d062f['toDisposable'])((0x0,_0x5df150[_0x63c9f7(0x1b2)])(window,_0x63c9f7(0x256))[_0x63c9f7(0x3cd)](_0x1092af=>{const _0x48a88e=_0x63c9f7;if(_0x1092af['key']!==_0x45da45||!_0x1092af[_0x48a88e(0x1ef)])return;let _0x51d47a=JSON[_0x48a88e(0x38b)](_0x1092af[_0x48a88e(0x1ef)]);this['_handleEvent'](_0x51d47a);}))),window[_0x63c9f7(0x308)](_0x63c9f7(0x144),()=>this[_0x63c9f7(0x1ad)]({'type':0x1,'memberID':this[_0x63c9f7(0x3fd)],'unitIDs':Array[_0x63c9f7(0x324)](this['_selfUnitIDs'])}));}[_0x339b6f(0x3f5)](_0x136b73){const _0x2c96be=_0x339b6f;switch(_0x136b73[_0x2c96be(0x1f8)]){case 0x0:this['_handleJoinEvent'](_0x136b73);break;case 0x1:this[_0x2c96be(0x3e8)](_0x136b73);break;case 0x2:this[_0x2c96be(0x1a5)](_0x136b73);break;}}[_0x339b6f(0x2f2)](_0x4d85b7){const _0x154e0d=_0x339b6f;let {unitIDs:_0x38e7d1,memberID:_0x29262d,isForwarded:_0x58e6fa}=_0x4d85b7;_0x38e7d1[_0x154e0d(0x159)](_0x4c1d9a=>{const _0x37d5a2=_0x154e0d;if(!_0x58e6fa&&this[_0x37d5a2(0x3aa)]['has'](_0x4c1d9a)&&this[_0x37d5a2(0x170)](_0x4c1d9a)[_0x37d5a2(0x1c8)](_0x20efb1[_0x37d5a2(0x30a)]['OTHER_CLIENTS_EDITING']),!this['_unitOnClients'][_0x37d5a2(0x377)](_0x4c1d9a)||!this['_unitOnClients'][_0x37d5a2(0x3fe)](_0x4c1d9a)[_0x37d5a2(0x377)](_0x29262d)){let _0x3f27b1=this['_unitOnClients'][_0x37d5a2(0x3fe)](_0x4c1d9a)||new Set();_0x3f27b1[_0x37d5a2(0x30e)](_0x29262d),this[_0x37d5a2(0x3aa)]['set'](_0x4c1d9a,_0x3f27b1),this[_0x37d5a2(0x3a5)](_0x29262d);}}),_0x58e6fa||this['_send']({'type':0x0,'memberID':this[_0x154e0d(0x3fd)],'unitIDs':[...this[_0x154e0d(0x1f3)]],'isForwarded':!0x0});}[_0x339b6f(0x3a5)](_0x3ff0be){const _0x252997=_0x339b6f;this[_0x252997(0x3ad)](_0x3ff0be);let _0x4b5d6d=window['setTimeout'](()=>{this['_unitOnClients']['forEach'](_0x30959a=>{const _0x1db19f=_0x405a;_0x30959a[_0x1db19f(0x229)](_0x3ff0be);});},_0x892552*0x2);this['_clearOtherTimers'][_0x252997(0x3e7)](_0x3ff0be,_0x4b5d6d);}['_removeClearOtherTimer'](_0x2e04f2){const _0x2eaa34=_0x339b6f;if(this[_0x2eaa34(0x347)]['has'](_0x2e04f2)){let _0x3721b4=this[_0x2eaa34(0x347)][_0x2eaa34(0x3fe)](_0x2e04f2);_0x3721b4&&window['clearTimeout'](_0x3721b4),this[_0x2eaa34(0x347)][_0x2eaa34(0x3e7)](_0x2e04f2,null);}}[_0x339b6f(0x3e8)](_0x213d5b){let {memberID:_0x3bb102,unitIDs:_0x514b85}=_0x213d5b;_0x514b85['forEach'](_0x148de8=>{const _0x39fbcb=_0x405a;var _0x27b79f;let _0x4303b4=this[_0x39fbcb(0x3aa)][_0x39fbcb(0x3fe)](_0x148de8);_0x4303b4&&(_0x4303b4[_0x39fbcb(0x229)](_0x3bb102),(_0x27b79f=this[_0x39fbcb(0x170)](_0x148de8))==null||_0x27b79f[_0x39fbcb(0x1c8)](_0x4303b4[_0x39fbcb(0x3ea)]===0x0?_0x20efb1['UnitStatus'][_0x39fbcb(0x181)]:_0x20efb1[_0x39fbcb(0x30a)][_0x39fbcb(0x376)]));}),this['_removeClearOtherTimer'](_0x3bb102);}['_handleHeartbeatEvent'](_0x435986){const _0x3950e1=_0x339b6f;this[_0x3950e1(0x3a5)](_0x435986[_0x3950e1(0x227)]);}[_0x339b6f(0x1ad)](_0x17120c){const _0x191d1c=_0x339b6f;localStorage[_0x191d1c(0x349)](_0x45da45,JSON['stringify'](_0x17120c));}[_0x339b6f(0x26f)](){const _0x59135f=_0x339b6f;this[_0x59135f(0x203)]=window['setInterval'](()=>{this['_send']({'type':0x2,'memberID':this['_id']});},_0x892552);}['_ensureSubject'](_0x3c1f12){const _0x46dcb6=_0x339b6f;return this['_unitStatus'][_0x46dcb6(0x377)](_0x3c1f12)||this[_0x46dcb6(0x33a)][_0x46dcb6(0x3e7)](_0x3c1f12,new _0x5df150['BehaviorSubject'](_0x20efb1[_0x46dcb6(0x30a)][_0x46dcb6(0x181)])),this['_unitStatus'][_0x46dcb6(0x3fe)](_0x3c1f12);}};Object['defineProperty'](_0x2f94b9,'BrowserCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x272630;}}),Object[_0x339b6f(0x3b9)](_0x2f94b9,'CollaborationDataLoaderController',{'enumerable':!0x0,'get':function(){return _0x8bd3ea;}}),Object[_0x339b6f(0x3b9)](_0x2f94b9,_0x339b6f(0x1e0),{'enumerable':!0x0,'get':function(){return _0x22b7f5;}}),_0x2f94b9[_0x339b6f(0x23a)]=_0x388e4a,Object[_0x339b6f(0x3b9)](_0x2f94b9,'RemoteUniscriptService',{'enumerable':!0x0,'get':function(){return _0x264939;}}),_0x2f94b9[_0x339b6f(0x33d)]=_0x56d40a,Object[_0x339b6f(0x3b9)](_0x2f94b9,_0x339b6f(0x1b4),{'enumerable':!0x0,'get':function(){return _0x1034bb;}}),_0x2f94b9[_0x339b6f(0x35e)]=_0x37c832,_0x2f94b9[_0x339b6f(0x2b7)]=_0x5af43f;}));
|
|
9
9
|
|
|
10
10
|
// @univerjs-pro/collaboration-client-ui/facade
|
|
11
|
-
(function(
|
|
11
|
+
(function(_0x22b8de,_0x2babc2){var _0x5e3977=_0x2f1f,_0x5ee611=_0x22b8de();while(!![]){try{var _0x228ff5=-parseInt(_0x5e3977(0x158))/0x1*(-parseInt(_0x5e3977(0x15f))/0x2)+parseInt(_0x5e3977(0x15c))/0x3+-parseInt(_0x5e3977(0x167))/0x4+parseInt(_0x5e3977(0x159))/0x5*(-parseInt(_0x5e3977(0x161))/0x6)+-parseInt(_0x5e3977(0x157))/0x7*(parseInt(_0x5e3977(0x16a))/0x8)+parseInt(_0x5e3977(0x166))/0x9*(parseInt(_0x5e3977(0x16b))/0xa)+parseInt(_0x5e3977(0x165))/0xb*(-parseInt(_0x5e3977(0x15e))/0xc);if(_0x228ff5===_0x2babc2)break;else _0x5ee611['push'](_0x5ee611['shift']());}catch(_0x46553b){_0x5ee611['push'](_0x5ee611['shift']());}}}(_0x8f91,0xe0d0a),function(_0x5d091b,_0x5eaff9){var _0x2b7024=_0x2f1f;typeof exports=='object'&&typeof module<'u'?_0x5eaff9(require('@univerjs-pro/collaboration-client-ui'),require('@univerjs/core/facade')):typeof define==_0x2b7024(0x163)&&define['amd']?define([_0x2b7024(0x162),_0x2b7024(0x15d)],_0x5eaff9):(_0x5d091b=typeof globalThis<'u'?globalThis:_0x5d091b||self,_0x5eaff9(_0x5d091b['UniverProCollaborationClientUi'],_0x5d091b[_0x2b7024(0x160)]));}(this,function(_0x6666ba,_0x2ffba3){var _0x311bbe=_0x2f1f,_0x770ef=class extends _0x2ffba3[_0x311bbe(0x15a)]{[_0x311bbe(0x164)](_0x4499f7,_0xedda6a,..._0x5f59f0){var _0x4be054=_0x311bbe;return this[_0x4be054(0x168)][_0x4be054(0x15b)](_0x6666ba[_0x4be054(0x169)])[_0x4be054(0x164)](_0x4499f7,_0xedda6a,{},..._0x5f59f0);}};_0x2ffba3[_0x311bbe(0x15a)]['extend'](_0x770ef);}));function _0x2f1f(_0x267db5,_0x3317b5){_0x267db5=_0x267db5-0x157;var _0x8f910c=_0x8f91();var _0x2f1f95=_0x8f910c[_0x267db5];return _0x2f1f95;}function _0x8f91(){var _0x5712e5=['get','3901194UmKOzs','@univerjs/core/facade','63156xrYCpl','2304974zlEXoP','UniverCoreFacade','3094350keoueN','@univerjs-pro/collaboration-client-ui','function','runOnServer','671oiWppv','6702840HeQbWC','3519400ILKMfu','_injector','RemoteUniscriptService','9880GeJCyM','10QILhHh','252tkiwZd','1jlNsZg','10AysPbk','FUniver'];_0x8f91=function(){return _0x5712e5;};return _0x8f91();}
|
|
12
12
|
|
|
13
13
|
// index
|
|
14
14
|
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("@univerjs-pro/collaboration"),require("@univerjs-pro/collaboration-client"),require("@univerjs-pro/collaboration-client-ui"),require("@univerjs-pro/collaboration-client/lib/facade")):typeof define=="function"&&define.amd?define(["exports","@univerjs-pro/collaboration","@univerjs-pro/collaboration-client","@univerjs-pro/collaboration-client-ui","@univerjs-pro/collaboration-client/lib/facade"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.UniverPresetDocsCollaboration={},e.UniverProCollaboration,e.UniverProCollaborationClient,e.UniverProCollaborationClientUi))})(this,(function(e,i,l,t){"use strict";function a(n){const r=new URL(n,window.location.origin);switch(r.protocol){case"https:":r.protocol="wss:";break;case"http:":r.protocol="ws:";break}return r.toString()}function s(n={}){const{universerEndpoint:r}=n,o=r!=null?r:`${window.location.protocol}//${window.location.host}`;return{plugins:[i.UniverCollaborationPlugin,[l.UniverCollaborationClientPlugin,{socketService:t.BrowserCollaborationSocketService,enableOfflineEditing:!0,enableSingleActiveInstanceLock:!0,enableAuthServer:!0,authzUrl:`${o}/universer-api/authz`,snapshotServerUrl:`${o}/universer-api/snapshot`,collabSubmitChangesetUrl:`${o}/universer-api/comb`,collabWebSocketUrl:a(`${o}/universer-api/comb/connect`),loginUrlKey:`${o}/universer-api/oidc/authpage`,uploadFileServerUrl:`${o}/universer-api/stream/file/upload`,signUrlServerUrl:`${o}/universer-api/file/{fileID}/sign-url`,downloadEndpointUrl:`${o}/`,wsSessionTicketUrl:`${o}/universer-api/user/session-ticket`,sendChangesetTimeout:200}],t.UniverCollaborationClientUIPlugin]}}e.UniverDocsCollaborationPreset=s,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|