@univerjs-pro/collaboration-client 0.23.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +13 -13
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x57c5d2=_0x2622;(function(_0x5d3e7c,_0x332645){const _0x433653=_0x2622,_0x44d39d=_0x5d3e7c();while(!![]){try{const _0x76337=parseInt(_0x433653(0x3b4))/0x1+parseInt(_0x433653(0x27e))/0x2*(-parseInt(_0x433653(0x2d8))/0x3)+-parseInt(_0x433653(0x18f))/0x4*(parseInt(_0x433653(0x149))/0x5)+-parseInt(_0x433653(0x393))/0x6+-parseInt(_0x433653(0x3ac))/0x7+-parseInt(_0x433653(0x32a))/0x8+-parseInt(_0x433653(0x2e6))/0x9*(-parseInt(_0x433653(0x3b7))/0xa);if(_0x76337===_0x332645)break;else _0x44d39d['push'](_0x44d39d['shift']());}catch(_0x4459f0){_0x44d39d['push'](_0x44d39d['shift']());}}}(_0xe13a,0x8a960),Object[_0x57c5d2(0x3a7)](exports,Symbol[_0x57c5d2(0x19b)],{'value':'Module'}));let e=require(`@univerjs-pro/collaboration`),t=require(`@univerjs/core`),n=require(`@univerjs/docs`),r=require(`@univerjs/sheets`),i=require(`rxjs`),a=require(`@univerjs/protocol`),o=require(`@univerjs/telemetry`),s=require(`rxjs/operators`),c=require(`@univerjs/network`),l=require(`@univerjs-pro/license`),u=require(`@univerjs/drawing`),d=require(`@noble/ciphers/aes.js`),f=require(`@noble/ciphers/utils.js`);const p=_0x57c5d2(0x380),m=0x4e20;function ee(_0x5cfb1d){const _0x17a19e=_0x57c5d2;return JSON[_0x17a19e(0x14e)](_0x5cfb1d)[_0x17a19e(0x19d)];}function h(_0x2db788){'@babel/helpers - typeof';const _0x12a71f=_0x57c5d2;return h=typeof Symbol==_0x12a71f(0x30e)&&typeof Symbol[_0x12a71f(0x2d2)]=='symbol'?function(_0x44661f){return typeof _0x44661f;}:function(_0x5d81ca){const _0x3c7ae2=_0x12a71f;return _0x5d81ca&&typeof Symbol=='function'&&_0x5d81ca['constructor']===Symbol&&_0x5d81ca!==Symbol[_0x3c7ae2(0x1d5)]?'symbol':typeof _0x5d81ca;},h(_0x2db788);}function te(_0x324f2e,_0x37fab4){const _0x55726b=_0x57c5d2;if(h(_0x324f2e)!='object'||!_0x324f2e)return _0x324f2e;var _0x1733e3=_0x324f2e[Symbol['toPrimitive']];if(_0x1733e3!==void 0x0){var _0x2f5be0=_0x1733e3['call'](_0x324f2e,_0x37fab4||_0x55726b(0x2a4));if(h(_0x2f5be0)!='object')return _0x2f5be0;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x37fab4==='string'?String:Number)(_0x324f2e);}function ne(_0x438e24){const _0x8ec463=_0x57c5d2;var _0x33f196=te(_0x438e24,_0x8ec463(0x1e6));return h(_0x33f196)==_0x8ec463(0x2f5)?_0x33f196:_0x33f196+'';}function g(_0x4ea9ac,_0x276033,_0x4f7952){const _0x9b464f=_0x57c5d2;return(_0x276033=ne(_0x276033))in _0x4ea9ac?Object[_0x9b464f(0x3a7)](_0x4ea9ac,_0x276033,{'value':_0x4f7952,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4ea9ac[_0x276033]=_0x4f7952,_0x4ea9ac;}let re=function(_0x555186){const _0x374c9c=_0x57c5d2;return _0x555186[_0x374c9c(0x121)]=_0x374c9c(0x121),_0x555186[_0x374c9c(0x38a)]=_0x374c9c(0x38a),_0x555186[_0x374c9c(0x398)]=_0x374c9c(0x398),_0x555186[_0x374c9c(0x2d4)]=_0x374c9c(0x2d4),_0x555186['JOIN_ROOM_FAILED']=_0x374c9c(0x139),_0x555186[_0x374c9c(0x20a)]=_0x374c9c(0x20a),_0x555186['SOCKET_FAILED']=_0x374c9c(0x297),_0x555186[_0x374c9c(0x14b)]=_0x374c9c(0x14b),_0x555186;}({});var _=class{constructor(){const _0x1c6102=_0x57c5d2;g(this,_0x1c6102(0x317),new i[(_0x1c6102(0x3dc))]()),g(this,'event$',this['_event$'][_0x1c6102(0x3d2)]());}[_0x57c5d2(0x1d2)](_0x237e85){const _0x1a1e59=_0x57c5d2;this[_0x1a1e59(0x317)][_0x1a1e59(0x227)](_0x237e85);}},v=class{constructor(){const _0x36e206=_0x57c5d2;g(this,_0x36e206(0x17a),new i[(_0x36e206(0x3dc))]()),g(this,_0x36e206(0x130),this['_commentUpdate$'][_0x36e206(0x3d2)]());}['onCommentUpdate'](_0x5c0e71){const _0x18b70d=_0x57c5d2;this[_0x18b70d(0x17a)][_0x18b70d(0x227)](_0x5c0e71);}};function y(_0x2f8bd6,_0x577a80){return function(_0x4e0a54,_0x34649d){_0x577a80(_0x4e0a54,_0x34649d,_0x2f8bd6);};}function b(_0x30fccf,_0x92c6d3,_0x5b7dd1,_0x5d352c){const _0x3f74c9=_0x57c5d2;var _0x15a829=arguments[_0x3f74c9(0x19d)],_0x412094=_0x15a829<0x3?_0x92c6d3:_0x5d352c===null?_0x5d352c=Object[_0x3f74c9(0x1ee)](_0x92c6d3,_0x5b7dd1):_0x5d352c,_0xd0ca63;if(typeof Reflect=='object'&&typeof Reflect[_0x3f74c9(0x25a)]==_0x3f74c9(0x30e))_0x412094=Reflect[_0x3f74c9(0x25a)](_0x30fccf,_0x92c6d3,_0x5b7dd1,_0x5d352c);else{for(var _0xa5bb92=_0x30fccf['length']-0x1;_0xa5bb92>=0x0;_0xa5bb92--)(_0xd0ca63=_0x30fccf[_0xa5bb92])&&(_0x412094=(_0x15a829<0x3?_0xd0ca63(_0x412094):_0x15a829>0x3?_0xd0ca63(_0x92c6d3,_0x5b7dd1,_0x412094):_0xd0ca63(_0x92c6d3,_0x5b7dd1))||_0x412094);}return _0x15a829>0x3&&_0x412094&&Object['defineProperty'](_0x92c6d3,_0x5b7dd1,_0x412094),_0x412094;}let x=class extends t[_0x57c5d2(0x2a1)]{constructor(_0x7f2304,_0x2b83aa){const _0xa12069=_0x57c5d2;super(),this[_0xa12069(0x2ff)]=_0x7f2304,this[_0xa12069(0x182)]=_0x2b83aa,g(this,_0xa12069(0x3c1),new Map()),g(this,_0xa12069(0x3cf),new i[(_0xa12069(0x3dc))]()),this[_0xa12069(0x242)]((0x0,i[_0xa12069(0x20e)])(this[_0xa12069(0x2ff)]['getTypeOfUnitDisposed$'](t[_0xa12069(0x279)][_0xa12069(0x363)])[_0xa12069(0x134)]((0x0,s[_0xa12069(0x2ab)])(_0x495879=>_0x495879[_0xa12069(0x2cf)]())),this[_0xa12069(0x2ff)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0xa12069(0x3a1)])[_0xa12069(0x134)]((0x0,s[_0xa12069(0x2ab)])(_0x3e5bfe=>_0x3e5bfe[_0xa12069(0x2cf)]())))[_0xa12069(0x2b5)](_0xa4c3bb=>this[_0xa12069(0x148)](_0xa4c3bb)));}[_0x57c5d2(0x341)](_0x1ffb75){const _0x16dbec=_0x57c5d2;return this[_0x16dbec(0x3c1)]['has'](_0x1ffb75)?(0x0,i['of'])(this[_0x16dbec(0x3c1)]['get'](_0x1ffb75)):this['_roomCreated$'][_0x16dbec(0x134)]((0x0,s[_0x16dbec(0x2ab)])(_0x13c557=>{const _0x4b99d4=_0x16dbec;if(_0x13c557===_0x1ffb75)return this[_0x4b99d4(0x3c1)][_0x4b99d4(0x337)](_0x13c557);}));}[_0x57c5d2(0x146)](_0x3bb8db){this['_userManagerService']['setCurrentUser'](_0x3bb8db);}[_0x57c5d2(0x213)](){const _0x1f1162=_0x57c5d2;return this[_0x1f1162(0x182)][_0x1f1162(0x213)]();}['updateMember'](_0x24efa3,_0x16af9f){const _0x472bc6=_0x57c5d2;let _0x50c1b3=this[_0x472bc6(0x3c1)][_0x472bc6(0x337)](_0x24efa3);_0x50c1b3||(_0x50c1b3=new ie(),this['_roomMembers']['set'](_0x24efa3,_0x50c1b3),this['_roomCreated$'][_0x472bc6(0x227)](_0x24efa3)),_0x50c1b3[_0x472bc6(0x125)](_0x16af9f);}[_0x57c5d2(0x1e8)](_0x2bdf25,_0x3ec6de){const _0x280888=_0x57c5d2;let _0x4ce3ed=this['_roomMembers']['get'](_0x2bdf25);_0x4ce3ed&&_0x4ce3ed[_0x280888(0x1e8)](_0x3ec6de);}[_0x57c5d2(0x389)](_0x559882){const _0x30cdc0=_0x57c5d2;return this[_0x30cdc0(0x3c1)][_0x30cdc0(0x337)](_0x559882);}[_0x57c5d2(0x2a0)](_0x2a6d2d,_0x52d808){const _0x2462e0=_0x57c5d2;let _0x2cf578=this[_0x2462e0(0x3c1)][_0x2462e0(0x337)](_0x2a6d2d);if(_0x2cf578)return _0x2cf578[_0x2462e0(0x2a0)](_0x52d808);}[_0x57c5d2(0x148)](_0xbcaf3d){const _0x6d34ac=_0x57c5d2;let _0x119c94=this[_0x6d34ac(0x3c1)][_0x6d34ac(0x337)](_0xbcaf3d);_0x119c94&&(_0x119c94[_0x6d34ac(0x173)](),this[_0x6d34ac(0x3c1)]['delete'](_0xbcaf3d));}['dispose'](){const _0x557b32=_0x57c5d2;this['_roomMembers'][_0x557b32(0x2ee)](_0x301f6d=>_0x301f6d[_0x557b32(0x173)]()),this['_roomMembers'][_0x557b32(0x186)](),this[_0x557b32(0x3cf)][_0x557b32(0x273)]();}};x=b([y(0x0,t['IUniverInstanceService']),y(0x1,(0x0,t['Inject'])(t[_0x57c5d2(0x226)]))],x);function _0x2622(_0x51027c,_0x35c97c){_0x51027c=_0x51027c-0x113;const _0xe13a7=_0xe13a();let _0x262290=_0xe13a7[_0x51027c];return _0x262290;}var ie=class extends t[_0x57c5d2(0x2a1)]{constructor(..._0x254421){const _0x4c44e6=_0x57c5d2;super(..._0x254421),g(this,_0x4c44e6(0x3ad),new Map()),g(this,_0x4c44e6(0x1fa),new i[(_0x4c44e6(0x2b3))](this[_0x4c44e6(0x3ad)])),g(this,'members$',this[_0x4c44e6(0x1fa)]['asObservable']());}[_0x57c5d2(0x173)](){const _0x4c2463=_0x57c5d2;this['_members']['clear'](),this[_0x4c2463(0x1fa)][_0x4c2463(0x273)]();}['updateMember'](_0x463558){const _0x146bb5=_0x57c5d2;this['_members']['set'](_0x463558[_0x146bb5(0x2c4)],_0x463558),this['_emitMembers']();}['removeMember'](_0x2ac1ee){const _0x4a07eb=_0x57c5d2;this[_0x4a07eb(0x3ad)][_0x4a07eb(0x31e)](_0x2ac1ee),this[_0x4a07eb(0x2e3)]();}[_0x57c5d2(0x2a0)](_0x152891){const _0x3a50dc=_0x57c5d2;return this['_members'][_0x3a50dc(0x337)](_0x152891);}[_0x57c5d2(0x28f)](){const _0x3db70c=_0x57c5d2;return Array[_0x3db70c(0x1a3)](this[_0x3db70c(0x3ad)]['values']());}[_0x57c5d2(0x2e3)](){const _0x346698=_0x57c5d2;this[_0x346698(0x1fa)][_0x346698(0x227)](this[_0x346698(0x3ad)]);}};let ae=function(_0x5071a0){const _0xde0fb6=_0x57c5d2;return _0x5071a0[_0x5071a0[_0xde0fb6(0x307)]=0x0]='IDLE',_0x5071a0[_0x5071a0['JOINING']=0x1]=_0xde0fb6(0x13d),_0x5071a0[_0x5071a0[_0xde0fb6(0x24a)]=0x2]=_0xde0fb6(0x24a),_0x5071a0[_0x5071a0[_0xde0fb6(0x15a)]=0x3]=_0xde0fb6(0x15a),_0x5071a0;}({});const oe={[a['CmdRspCode'][_0x57c5d2(0x308)]]:_0x57c5d2(0x143),[a[_0x57c5d2(0x1a4)][_0x57c5d2(0x1c5)]]:_0x57c5d2(0x3af),[a['CmdRspCode'][_0x57c5d2(0x1c6)]]:'session.room-not-exists',[a[_0x57c5d2(0x1a4)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x57c5d2(0x31d),[a['CmdRspCode'][_0x57c5d2(0x208)]]:_0x57c5d2(0x39f)};let S=class extends t[_0x57c5d2(0x11d)]{get['sessionStatus'](){const _0x5ece99=_0x57c5d2;return this['_sessionStatus$'][_0x5ece99(0x32c)]();}constructor(_0x2ff097,_0xd26524,_0x5249e1,_0x461f84,_0x5b06a9,_0x3ee984,_0x458233,_0x3662ff){const _0x116adb=_0x57c5d2;super(),this[_0x116adb(0x3ce)]=_0x2ff097,this[_0x116adb(0x2c0)]=_0x5249e1,this[_0x116adb(0x228)]=_0x461f84,this['_memberService']=_0x5b06a9,this[_0x116adb(0x353)]=_0x3ee984,this['_collaborationUIEventService']=_0x458233,this['_telemetryService']=_0x3662ff,g(this,_0x116adb(0x21d),new i[(_0x116adb(0x2b3))](0x0)),g(this,'sessionStatus$',this['_sessionStatus$'][_0x116adb(0x3d2)]()),g(this,'_event$',new i['Subject']()),g(this,_0x116adb(0x224),this[_0x116adb(0x317)][_0x116adb(0x3d2)]()),g(this,_0x116adb(0x113),void 0x0),g(this,'_socketMessageSubscription',void 0x0),g(this,_0x116adb(0x1bc),void 0x0),g(this,_0x116adb(0x11b),!0x1),g(this,_0x116adb(0x23a),null),this[_0x116adb(0x11b)]=!!this['_telemetryService'],_0xd26524['pipe']((0x0,i[_0x116adb(0x210)])(this[_0x116adb(0x25b)]))[_0x116adb(0x2b5)](_0x51302f=>{const _0x535414=_0x116adb;if(_0x51302f!==void 0x0){if(this[_0x535414(0x113)]=_0x51302f,_0x51302f)this[_0x535414(0x189)](_0x51302f),this['_socketMessageSubscription']=_0x51302f[_0x535414(0x39e)][_0x535414(0x2b5)](_0x5449a0=>{const _0x253dbe=_0x535414;_0x5449a0['routeKey']===this[_0x253dbe(0x3ce)]&&this[_0x253dbe(0x2de)](_0x5449a0);});else{var _0x4e3bf6;this[_0x535414(0x1cd)](),this[_0x535414(0x21d)][_0x535414(0x227)](0x2),(_0x4e3bf6=this['_socketMessageSubscription'])==null||_0x4e3bf6[_0x535414(0x272)](),this[_0x535414(0x3b9)]=null;}}});}[_0x57c5d2(0x281)](){const _0x2a5ea3=_0x57c5d2;var _0x29ef95,_0x1897a7;return(_0x29ef95=(_0x1897a7=this['_socket'])==null?void 0x0:_0x1897a7[_0x2a5ea3(0x2c4)])==null?null:_0x29ef95;}['dispose'](){const _0x56ee4b=_0x57c5d2;super[_0x56ee4b(0x173)](),this[_0x56ee4b(0x3ca)](),this[_0x56ee4b(0x25b)][_0x56ee4b(0x227)](),this[_0x56ee4b(0x25b)][_0x56ee4b(0x273)]();}[_0x57c5d2(0x3ca)](){const _0x14eb9e=_0x57c5d2;var _0x329c90,_0x5eacd0;this['_throwTelemetryCollaborationNewChangeset'](),(_0x329c90=this[_0x14eb9e(0x113)])==null||_0x329c90[_0x14eb9e(0x169)]({'cmd':a[_0x14eb9e(0x201)]['LEAVE'],'data':{'roomID':this[_0x14eb9e(0x3ce)]}}),(_0x5eacd0=this[_0x14eb9e(0x113)])==null||_0x5eacd0[_0x14eb9e(0x3ca)](),this[_0x14eb9e(0x317)]['complete'](),this[_0x14eb9e(0x21d)][_0x14eb9e(0x273)]();}[_0x57c5d2(0x2de)](_0x3cce14){const _0x2dddf2=_0x57c5d2;_0x3cce14[_0x2dddf2(0x131)]===a['CombCmd']['JOIN']?this[_0x2dddf2(0x36d)](_0x3cce14):_0x3cce14[_0x2dddf2(0x131)]===a[_0x2dddf2(0x201)]['RECV']&&this[_0x2dddf2(0x38c)](_0x3cce14);}[_0x57c5d2(0x189)](_0x4b9cc2){const _0x301e04=_0x57c5d2;this['_sessionStatus$'][_0x301e04(0x227)](0x1),_0x4b9cc2[_0x301e04(0x169)]({'cmd':a[_0x301e04(0x201)]['JOIN'],'routeKey':this[_0x301e04(0x3ce)],'routeType':'','data':{'rooms':[{'roomID':this[_0x301e04(0x3ce)]}]}});}['_onJoinRoomEvent'](_0x8773a4){const _0x10de34=_0x57c5d2;var _0x3931ee;if(_0x8773a4[_0x10de34(0x283)]in oe){this['_collaborationUIEventService'][_0x10de34(0x1d2)]({'id':'JOIN_ROOM_FAILED','data':oe[_0x8773a4[_0x10de34(0x283)]]}),this[_0x10de34(0x21d)][_0x10de34(0x227)](0x2);return;}this[_0x10de34(0x21d)][_0x10de34(0x227)](0x3);let _0x1731f3=(_0x3931ee=_0x8773a4[_0x10de34(0x33e)][_0x10de34(0x123)][this[_0x10de34(0x3ce)]])==null?void 0x0:_0x3931ee['members'];_0x1731f3&&_0x1731f3[_0x10de34(0x2ee)](_0x24a975=>this['_memberService'][_0x10de34(0x125)](this[_0x10de34(0x3ce)],_0x24a975));}[_0x57c5d2(0x38c)](_0x50a477){const _0x714e28=_0x57c5d2;try{let _0x2a8a26=_0x50a477[_0x714e28(0x33e)];switch(_0x2a8a26[_0x714e28(0x2d7)]){case e[_0x714e28(0x136)][_0x714e28(0x3e8)]:this[_0x714e28(0x22a)](_0x2a8a26),this[_0x714e28(0x317)][_0x714e28(0x227)](_0x2a8a26);break;case e[_0x714e28(0x136)][_0x714e28(0x352)]:this['_onUserLeave'](_0x2a8a26),this[_0x714e28(0x317)][_0x714e28(0x227)](_0x2a8a26);break;case e[_0x714e28(0x136)][_0x714e28(0x2d6)]:case e[_0x714e28(0x136)][_0x714e28(0x302)]:this['_stopTelemetryCollaborationNewChangeset'](),this[_0x714e28(0x3e9)](),this['_event$'][_0x714e28(0x227)](_0x2a8a26);break;case e[_0x714e28(0x136)][_0x714e28(0x1fd)]:this[_0x714e28(0x2c0)][_0x714e28(0x28a)](_0x714e28(0x3a9)+JSON['stringify'](_0x2a8a26)),this[_0x714e28(0x317)]['next'](_0x2a8a26);break;case e[_0x714e28(0x136)][_0x714e28(0x31f)]:this[_0x714e28(0x353)][_0x714e28(0x278)](_0x2a8a26[_0x714e28(0x33e)]),this[_0x714e28(0x317)][_0x714e28(0x227)](_0x2a8a26);break;default:this[_0x714e28(0x317)]['next'](_0x2a8a26);}}catch(_0x28fede){this[_0x714e28(0x2c0)][_0x714e28(0x28a)](_0x28fede,_0x50a477);}}[_0x57c5d2(0x22a)](_0x59ed4d){const _0x31705b=_0x57c5d2;this[_0x31705b(0x33b)]['updateMember'](this[_0x31705b(0x3ce)],_0x59ed4d[_0x31705b(0x33e)]);}[_0x57c5d2(0x191)](_0x57b737){const _0x3da405=_0x57c5d2;this[_0x3da405(0x33b)][_0x3da405(0x1e8)](this[_0x3da405(0x3ce)],_0x57b737['data']['memberID']);}async[_0x57c5d2(0x169)](_0x5db4a3,_0x395053){const _0x41d8f8=_0x57c5d2;if(this[_0x41d8f8(0x345)]!==0x3||!this[_0x41d8f8(0x113)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{_0x5db4a3[_0x41d8f8(0x2d7)]===e['CollaborationEvent'][_0x41d8f8(0x3ed)]&&(this[_0x41d8f8(0x145)](),this[_0x41d8f8(0x2bc)](_0x5db4a3)),this[_0x41d8f8(0x113)]['send']({'cmd':a[_0x41d8f8(0x201)]['INGEST'],'routeKey':_0x395053,'routeType':'','data':_0x5db4a3});}catch(_0xaac16d){this[_0x41d8f8(0x2c0)][_0x41d8f8(0x28a)](_0xaac16d);}}[_0x57c5d2(0x145)](){const _0x3e2e9f=_0x57c5d2;var _0x13e54e;this[_0x3e2e9f(0x1bc)]=setTimeout(()=>{const _0x46b3b7=_0x3e2e9f;this[_0x46b3b7(0x1bc)]=null,this['_collaborationUIEventService'][_0x46b3b7(0x1d2)]({'id':_0x46b3b7(0x14b)});},(_0x13e54e=this[_0x3e2e9f(0x228)][_0x3e2e9f(0x269)]('HEARTBEAT_TIMEOUT'))==null?m:_0x13e54e);}[_0x57c5d2(0x3e9)](){const _0x5bd614=_0x57c5d2;this[_0x5bd614(0x1bc)]&&(clearTimeout(this[_0x5bd614(0x1bc)]),this[_0x5bd614(0x1bc)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x2063a3){const _0x595b7e=_0x57c5d2;if(!this[_0x595b7e(0x11b)])return;let {data:_0x176b9f}=_0x2063a3,{unitID:_0x1fb2cf,changeset:_0x490089}=_0x176b9f,{mutations:_0x2016f9,type:_0xa0fbe1}=_0x490089;this[_0x595b7e(0x23a)]={'unitId':_0x1fb2cf,'type':_0xa0fbe1,'startTime':performance[_0x595b7e(0x16f)](),'stopTime':0x0,'duration':0x0,'size':ee(_0x2016f9)};}['_stopTelemetryCollaborationNewChangeset'](){const _0x211c73=_0x57c5d2;if(this[_0x211c73(0x11b)]){if(!this[_0x211c73(0x23a)]){this[_0x211c73(0x2c0)][_0x211c73(0x28a)]('[CollaborationSession]',_0x211c73(0x37a));return;}this['_telemetryInfo'][_0x211c73(0x2ae)]=performance[_0x211c73(0x16f)](),this[_0x211c73(0x23a)][_0x211c73(0x202)]=this[_0x211c73(0x23a)][_0x211c73(0x2ae)]-this[_0x211c73(0x23a)][_0x211c73(0x2df)],this[_0x211c73(0x24e)]['capture']('collaboration_new_changeset',this[_0x211c73(0x23a)]),this[_0x211c73(0x23a)]=null;}}[_0x57c5d2(0x1cd)](){const _0x1c1134=_0x57c5d2;this[_0x1c1134(0x23a)]=null;}};S=b([y(0x2,t[_0x57c5d2(0x1c4)]),y(0x3,t['IConfigService']),y(0x4,(0x0,t[_0x57c5d2(0x175)])(x)),y(0x5,(0x0,t[_0x57c5d2(0x175)])(v)),y(0x6,(0x0,t[_0x57c5d2(0x175)])(_)),y(0x7,(0x0,t[_0x57c5d2(0x342)])(o[_0x57c5d2(0x33c)]))],S);const C=(0x0,t[_0x57c5d2(0x234)])('collaboration-client.local-cache-service');function se(_0x22b283){const _0x346acb=_0x57c5d2;return _0x346acb(0x15c)+_0x22b283;}function ce(_0x4fd199){const _0x4cb242=_0x57c5d2;let {unitID:_0x233e9c,mutations:_0x4fe540}=_0x4fd199;return{'unitId':_0x233e9c,'subUnitId':_0x4fe540[_0x4cb242(0x19d)]>0x0?_0x4fe540[0x0][_0x4cb242(0x2e0)][_0x4cb242(0x2d9)]:null};}let w=class{constructor(_0x2a7b62,_0x5d564d,_0x875ca6){const _0x431628=_0x57c5d2;this[_0x431628(0x2ac)]=_0x2a7b62,this[_0x431628(0x12c)]=_0x5d564d,this['_instanceService']=_0x875ca6;}['transformSelections'](_0x1f9e48){const _0x56c543=_0x57c5d2;var _0x41693b,_0x364e86;let _0x39a3f6=this[_0x56c543(0x2ac)][_0x56c543(0x337)](r[_0x56c543(0x3b3)]),{unitId:_0x636459,subUnitId:_0x210216}=ce(_0x1f9e48),_0xec117d=_0x39a3f6==null?void 0x0:_0x39a3f6[_0x56c543(0x2c3)](_0x636459)[_0x56c543(0x31a)](),_0x517411=(_0x41693b=this[_0x56c543(0x37f)][_0x56c543(0x301)](_0x636459))==null||(_0x41693b=_0x41693b['getActiveSheet']())==null?void 0x0:_0x41693b[_0x56c543(0x1b9)]();if(_0xec117d[_0x56c543(0x19d)]===0x0||!_0x636459||!_0x210216)return;let _0x13a018=[{'id':r['SetSelectionsOperation']['id'],'params':{'unitId':_0x636459,'subUnitId':_0x517411,'selections':t[_0x56c543(0x276)]['deepClone'](_0xec117d)}}],_0x2f4c3c=this[_0x56c543(0x12c)][_0x56c543(0x348)](_0x1f9e48,_0x13a018);if(!(0x0,e[_0x56c543(0x375)])(_0x2f4c3c))throw _0x2f4c3c[_0x56c543(0x28a)];let _0x27bf12=(_0x364e86=_0x2f4c3c[_0x56c543(0x3ea)][0x0])==null||(_0x364e86=_0x364e86['params'])==null?void 0x0:_0x364e86['selections'];if(Array[_0x56c543(0x1cf)](_0x27bf12)&&_0x27bf12[_0x56c543(0x19d)]){if(_0x27bf12['length']===_0x13a018[0x0][_0x56c543(0x2e0)][_0x56c543(0x370)][_0x56c543(0x19d)]&&_0x27bf12[_0x56c543(0x263)]((_0x2eef21,_0x11c0cd)=>t['Rectangle'][_0x56c543(0x1f8)](_0x2eef21[_0x56c543(0x34f)],_0x13a018[0x0][_0x56c543(0x2e0)]['selections'][_0x11c0cd][_0x56c543(0x34f)])))return;this[_0x56c543(0x2ac)]['get'](t[_0x56c543(0x25f)])['executeCommand'](r[_0x56c543(0x3bf)]['id'],{'unitId':_0x636459,'subUnitId':_0x517411,'selections':_0x27bf12});}}};w=b([y(0x0,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x2f8)])),y(0x1,e['ITransformService']),y(0x2,t[_0x57c5d2(0x19e)])],w);const T=(0x0,t[_0x57c5d2(0x234)])('univer-pro.collaboration-client.single-active-unit-service');let le=function(_0xc2eab8){const _0x59875a=_0x57c5d2;return _0xc2eab8[_0xc2eab8[_0x59875a(0x2a9)]=0x0]=_0x59875a(0x2a9),_0xc2eab8[_0xc2eab8[_0x59875a(0x2e9)]=0x1]='OTHER_CLIENTS_EDITING',_0xc2eab8;}({});const E=_0x57c5d2(0x25e);Symbol(E);const ue={};function de(_0x1b79b7){const _0x1ef14e=_0x57c5d2;var _0x4d3b90;return!!((_0x4d3b90=_0x1b79b7[_0x1ef14e(0x2e0)])!=null&&_0x4d3b90[_0x1ef14e(0x1a5)]);}const fe=new Set([r['InsertSheetMutation']['id']]);function pe(_0x40546e,_0x5d1a49,_0x3146d1,_0x33ca13,_0x541a09){const _0x5c8a24=_0x57c5d2;var _0x40b738,_0x100485,_0x3b0a4f,_0x22cb28;let _0x424f0f=[];for(let _0x63bad3 of _0x40546e){if(fe[_0x5c8a24(0x35f)](_0x63bad3['id'])){if(_0x424f0f[_0x5c8a24(0x19d)]>0x0)break;_0x424f0f['push'](_0x63bad3);break;}if(de(_0x63bad3)){if(_0x424f0f[_0x5c8a24(0x19d)]>0x0)break;_0x424f0f[_0x5c8a24(0x357)](_0x63bad3);break;}_0x424f0f[_0x5c8a24(0x357)](_0x63bad3);}let _0x13e8a5=(_0x40b738=(_0x100485=_0x541a09[_0x5c8a24(0x213)]())==null?void 0x0:_0x100485[_0x5c8a24(0x3dd)])==null?_0x5c8a24(0x1dc):_0x40b738,_0x20c6df=(_0x3b0a4f=(_0x22cb28=_0x541a09['getCurrentUser']())==null?void 0x0:_0x22cb28[_0x5c8a24(0x2c4)])==null?_0x5c8a24(0x1dc):_0x3b0a4f;return{'changeset':{'unitID':_0x5d1a49,'type':(0x0,e[_0x5c8a24(0x2b4)])(_0x3146d1['getUnitType'](_0x5d1a49)),'baseRev':_0x33ca13[_0x5c8a24(0x21a)](_0x5d1a49),'revision':0x0,'userID':_0x13e8a5,'memberID':_0x20c6df,'mutations':_0x424f0f},'pendingMutations':_0x40546e[_0x5c8a24(0x36b)](_0x424f0f[_0x5c8a24(0x19d)])};}function me(_0x583779,_0x188f0f,_0x4cd89e,_0x304d60,_0x14d0d5){const _0x24f13a=_0x57c5d2;var _0xdf747c,_0x1f5815,_0x55f728,_0x1eabd3;let _0xb7f7bb=[_0x583779[_0x24f13a(0x147)]((_0x387ec9,_0x1f38fd)=>{const _0x2a4f04=_0x24f13a;var _0x641206;let {id:_0x3ea4bc}=_0x387ec9,{id:_0x36ba61,type:_0x2e5fa6}=_0x1f38fd,_0x1a393a=(_0x641206=_0x387ec9[_0x2a4f04(0x2e0)])==null?{'actions':null}:_0x641206,_0x1538e3=_0x1f38fd[_0x2a4f04(0x2e0)];if(_0x3ea4bc&&_0x3ea4bc!==_0x36ba61)throw Error('Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20'+_0x3ea4bc+_0x2a4f04(0x183)+_0x36ba61+'.');return{..._0x387ec9,'id':_0x36ba61,'type':_0x2e5fa6,'params':{'unitId':_0x1538e3[_0x2a4f04(0x241)],'textRanges':_0x1538e3['textRanges'],'actions':t[_0x2a4f04(0x1f4)][_0x2a4f04(0x240)](_0x1a393a[_0x2a4f04(0x1f2)],_0x1538e3[_0x2a4f04(0x1f2)])}};},{})],_0x181b6a=(_0xdf747c=(_0x1f5815=_0x14d0d5['getCurrentUser']())==null?void 0x0:_0x1f5815[_0x24f13a(0x3dd)])==null?'unknown':_0xdf747c,_0x2479d5=(_0x55f728=(_0x1eabd3=_0x14d0d5[_0x24f13a(0x213)]())==null?void 0x0:_0x1eabd3[_0x24f13a(0x2c4)])==null?_0x24f13a(0x1dc):_0x55f728;return{'changeset':{'unitID':_0x188f0f,'type':(0x0,e[_0x24f13a(0x2b4)])(_0x4cd89e[_0x24f13a(0x3a2)](_0x188f0f)),'baseRev':_0x304d60['getCurrentRevOfUnit'](_0x188f0f),'revision':0x0,'userID':_0x181b6a,'memberID':_0x2479d5,'mutations':_0xb7f7bb},'pendingMutations':[]};}function he(_0x3d2472,_0x328735){const _0x3d4721=_0x57c5d2;let _0x580d00=new i[(_0x3d4721(0x1e4))](0x1);return setTimeout(()=>_0x580d00['next'](_0x328735),_0x3d2472),_0x580d00[_0x3d4721(0x3d2)]()[_0x3d4721(0x134)]((0x0,i[_0x3d4721(0x394)])(0x1));}var D,O,ge;let _e=function(_0x4aadf9){const _0x16726b=_0x57c5d2;return _0x4aadf9['NOT_COLLAB']='not_collab',_0x4aadf9[_0x16726b(0x181)]=_0x16726b(0x118),_0x4aadf9[_0x16726b(0x37e)]=_0x16726b(0x3e1),_0x4aadf9[_0x16726b(0x3f0)]=_0x16726b(0x38e),_0x4aadf9['AWAITING_WITH_PENDING']=_0x16726b(0x309),_0x4aadf9[_0x16726b(0x3cd)]=_0x16726b(0x244),_0x4aadf9['CONFLICT']=_0x16726b(0x231),_0x4aadf9[_0x16726b(0x24a)]='offline',_0x4aadf9;}({});const ve=0x4e20,ye=0x2bf20;var k=class{constructor(_0x35b907,_0x5cbe82,_0x3d0617,_0xc06c21,_0x3aa567,_0x4bd7d3,_0x2a12ae,_0x18b1db,_0x56e22f){const _0x548887=_0x57c5d2;this[_0x548887(0x3e7)]=_0x35b907,this[_0x548887(0x3d4)]=_0x5cbe82,this['_handler']=_0x3aa567,this[_0x548887(0x326)]=_0x4bd7d3,this[_0x548887(0x3db)]=_0x2a12ae,this[_0x548887(0x383)]=_0x18b1db,this['_localCacheService']=_0x56e22f,g(this,'_awaitingChangeset',null),g(this,_0x548887(0x160),[]),this['_awaitingChangeset']=_0x3d0617,this[_0x548887(0x160)]=_0xc06c21;}[_0x57c5d2(0x3bb)](_0x9f112f){const _0x448559=_0x57c5d2;let _0x40da6a=this['_revisionService']['getCurrentRevOfUnit'](this[_0x448559(0x3e7)]);return _0x9f112f['revision']>_0x40da6a+0x1?(this['_handler'][_0x448559(0x339)]({'from':_0x40da6a,'to':_0x9f112f[_0x448559(0x39a)]-0x1}),!0x0):!0x1;}[_0x57c5d2(0x29a)](_0x873c0a){const _0x44ae45=_0x57c5d2;this[_0x44ae45(0x3db)][_0x44ae45(0x289)](this[_0x44ae45(0x3e7)],_0x873c0a);}['_transformSelections'](_0x3bac7b){const _0x4aee0a=_0x57c5d2;var _0x38b9c5,_0x178b58;(_0x38b9c5=(_0x178b58=this[_0x4aee0a(0x267)])[_0x4aee0a(0x158)])==null||_0x38b9c5[_0x4aee0a(0x1ed)](_0x178b58,_0x3bac7b);}[_0x57c5d2(0x2af)](_0x5aa31c){const _0x515785=_0x57c5d2;var _0x1218f9,_0x404f49;return(_0x1218f9=(_0x404f49=this[_0x515785(0x267)])[_0x515785(0x306)])==null?void 0x0:_0x1218f9[_0x515785(0x1ed)](_0x404f49,_0x5aa31c);}[_0x57c5d2(0x1fc)](_0x2648ed){const _0x1039c6=_0x57c5d2;var _0x184cae,_0x45c8b3;return(_0x184cae=(_0x45c8b3=this[_0x1039c6(0x267)])[_0x1039c6(0x3b0)])==null?void 0x0:_0x184cae[_0x1039c6(0x1ed)](_0x45c8b3,_0x2648ed);}[_0x57c5d2(0x2bf)](_0x264ec3){const _0x47d27c=_0x57c5d2;var _0x457565,_0x243fb4,_0x4196bd;return(_0x457565=(_0x243fb4=(_0x4196bd=this[_0x47d27c(0x267)])[_0x47d27c(0x19f)])==null?void 0x0:_0x243fb4[_0x47d27c(0x1ed)](_0x4196bd,_0x264ec3))==null?_0x264ec3:_0x457565;}[_0x57c5d2(0x36f)](_0xed19ad){const _0x50914e=_0x57c5d2;var _0x451b22,_0x2349da,_0x2ce99a;return(_0x451b22=(_0x2349da=(_0x2ce99a=this['_handler'])[_0x50914e(0x30d)])==null?void 0x0:_0x2349da[_0x50914e(0x1ed)](_0x2ce99a,_0xed19ad))==null?_0xed19ad:_0x451b22;}[_0x57c5d2(0x251)](_0x266cdb){const _0x55c3e4=_0x57c5d2;if(this[_0x55c3e4(0x3d4)]===t[_0x55c3e4(0x279)]['UNIVER_DOC']){let {unitID:_0xde363a,mutations:_0x32625e,memberID:_0x3765fd}=_0x266cdb,_0x101fd9=_0x32625e[_0x55c3e4(0x19d)]>0x0?_0x32625e[0x0]['params'][_0x55c3e4(0x23b)]:[];if(Array['isArray'](_0x101fd9)&&_0x101fd9[_0x55c3e4(0x19d)]>0x0){var _0x2069c6,_0x10060b;(_0x2069c6=(_0x10060b=this['_handler'])[_0x55c3e4(0x319)])==null||_0x2069c6[_0x55c3e4(0x1ed)](_0x10060b,{'unitID':_0xde363a,'memberID':_0x3765fd,'textRanges':_0x101fd9});}}}[_0x57c5d2(0x29d)](){const _0x3205b9=_0x57c5d2;var _0x223825;(_0x223825=this[_0x3205b9(0x2db)])==null||_0x223825[_0x3205b9(0x258)](this[_0x3205b9(0x3e7)],this[_0x3205b9(0x3d4)],this[_0x3205b9(0x31b)],this[_0x3205b9(0x160)]);}[_0x57c5d2(0x2a6)](){const _0x4c6795=_0x57c5d2;return this['_revisionService'][_0x4c6795(0x21a)](this[_0x4c6795(0x3e7)]);}[_0x57c5d2(0x200)](){const _0x2e72eb=_0x57c5d2;this[_0x2e72eb(0x383)]['incrementRevOfUnit'](this[_0x2e72eb(0x3e7)]);}[_0x57c5d2(0x369)](_0x2b9740){const _0x2095d0=_0x57c5d2;let _0x10ffe6=this[_0x2095d0(0x2bf)](_0x2b9740);_0x10ffe6=this[_0x2095d0(0x36f)](_0x10ffe6);let _0x37399f=(0x0,t[_0x2095d0(0x1ab)])(_0x10ffe6[_0x2095d0(0x15d)],this['_commandService'],{'fromCollab':!0x0});if(!_0x37399f[_0x2095d0(0x36c)]){var _0x126276;throw _0x37399f[_0x2095d0(0x28a)]instanceof Error?_0x37399f[_0x2095d0(0x28a)]:Error((_0x126276=_0x37399f[_0x2095d0(0x28a)])==null?_0x2095d0(0x15e):_0x126276);}this[_0x2095d0(0x2af)](_0x10ffe6),this[_0x2095d0(0x1fc)](_0x10ffe6),this[_0x2095d0(0x29a)](_0x2b9740),this[_0x2095d0(0x37b)](_0x10ffe6),this[_0x2095d0(0x251)](_0x10ffe6),this[_0x2095d0(0x200)]();}};let A=class extends k{constructor(_0x16fdc4,_0x3695e5,_0x1fa081,_0x551437,_0x50ed4b,_0x4758c1,_0x36b72e,_0x262e63,_0x3f3b20,_0x48d018){const _0x5b505b=_0x57c5d2;super(_0x16fdc4,_0x3695e5,null,[],_0x1fa081,_0x36b72e,_0x4758c1,_0x551437,_0x48d018),this[_0x5b505b(0x2ac)]=_0x50ed4b,this[_0x5b505b(0x2c0)]=_0x262e63,this[_0x5b505b(0x12c)]=_0x3f3b20,this['localCacheService']=_0x48d018,g(this,'status',_0x5b505b(0x118));}[_0x57c5d2(0x3d5)](_0x43ea58){const _0x55c4a1=_0x57c5d2;let _0x308cf9=this['_injector']['createInstance'](j,this['unitID'],this[_0x55c4a1(0x3d4)],[_0x43ea58],this[_0x55c4a1(0x267)]);return _0x308cf9['_schedule'](),_0x308cf9['_updateLocalCache'](),_0x308cf9;}[_0x57c5d2(0x350)](_0x4dae87){const _0x6f2bff=_0x57c5d2;if(this[_0x6f2bff(0x3bb)](_0x4dae87))return this[_0x6f2bff(0x2ac)][_0x6f2bff(0x362)](I,this[_0x6f2bff(0x3e7)],this[_0x6f2bff(0x3d4)],null,[],null,[_0x4dae87],this[_0x6f2bff(0x267)]);try{let _0x4348d5=this[_0x6f2bff(0x12c)][_0x6f2bff(0x348)](_0x4dae87,[e[_0x6f2bff(0x331)]]);if((0x0,e[_0x6f2bff(0x375)])(_0x4348d5)){let {c1Prime:_0x522359}=_0x4348d5;return this[_0x6f2bff(0x369)](_0x522359),this;}throw _0x4348d5[_0x6f2bff(0x28a)];}catch(_0x21070b){return this[_0x6f2bff(0x2c0)]['error'](_0x21070b),this[_0x6f2bff(0x3de)](!0x1);}}[_0x57c5d2(0x3de)](_0x476499){const _0xcb2f35=_0x57c5d2;return this[_0xcb2f35(0x2ac)][_0xcb2f35(0x362)](P,this[_0xcb2f35(0x3e7)],this[_0xcb2f35(0x3d4)],null,[],this[_0xcb2f35(0x267)],_0x476499);}[_0x57c5d2(0x336)](_0x1f0fac){const _0x4831ac=_0x57c5d2;if(_0x1f0fac[_0x4831ac(0x39a)]<=this[_0x4831ac(0x2a6)]())return this;throw Error(_0x4831ac(0x220));}[_0x57c5d2(0x12e)](){const _0x4603f1=_0x57c5d2;throw Error(_0x4603f1(0x2be));}[_0x57c5d2(0x271)](){return this;}[_0x57c5d2(0x340)](){const _0x37f2da=_0x57c5d2;return this[_0x37f2da(0x2ac)][_0x37f2da(0x362)](F,this[_0x37f2da(0x3e7)],this[_0x37f2da(0x3d4)],null,[],this['_handler']);}[_0x57c5d2(0x396)](){return this;}['resend'](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57c5d2(0x24d)](){const _0x3a60f3=_0x57c5d2;let _0xdb0b3c=this[_0x3a60f3(0x383)][_0x3a60f3(0x21a)](this[_0x3a60f3(0x3e7)]);return this[_0x3a60f3(0x267)]['onMissingChangesets']({'from':_0xdb0b3c,'to':0x0}),this['_injector'][_0x3a60f3(0x362)](I,this[_0x3a60f3(0x3e7)],this[_0x3a60f3(0x3d4)],null,[],null,[],this[_0x3a60f3(0x267)]);}};A=b([y(0x3,(0x0,t[_0x57c5d2(0x175)])(e['RevisionService'])),y(0x4,(0x0,t[_0x57c5d2(0x175)])(t['Injector'])),y(0x5,t[_0x57c5d2(0x34d)]),y(0x6,t[_0x57c5d2(0x25f)]),y(0x7,t[_0x57c5d2(0x1c4)]),y(0x8,e[_0x57c5d2(0x3da)]),y(0x9,(0x0,t[_0x57c5d2(0x342)])(C))],A);let j=D=class extends k{constructor(_0x4ae15f,_0x459417,_0x486c3f,_0x505e27,_0x369948,_0x4898ef,_0x1fa045,_0x250e12,_0x47abbd,_0x3194f8,_0x42ea32,_0x1891c7,_0x16ff9f,_0x2b6b37){const _0x17cfb5=_0x57c5d2;super(_0x4ae15f,_0x459417,null,_0x486c3f,_0x505e27,_0x47abbd,_0x16ff9f,_0x4898ef,_0x2b6b37),this[_0x17cfb5(0x2ac)]=_0x369948,this[_0x17cfb5(0x33b)]=_0x1fa045,this['_logService']=_0x250e12,this[_0x17cfb5(0x228)]=_0x3194f8,this['_transformService']=_0x42ea32,this[_0x17cfb5(0x2ff)]=_0x1891c7,g(this,_0x17cfb5(0x245),_0x17cfb5(0x3e1)),g(this,'_scheduleCompleteTimestamp',null),g(this,_0x17cfb5(0x30c),null);}[_0x57c5d2(0x3d5)](_0xdc3a53){const _0x54c264=_0x57c5d2;return this[_0x54c264(0x160)]['push'](_0xdc3a53),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x4e3921){const _0x4f5076=_0x57c5d2;if(this['_checkMissing'](_0x4e3921))return this[_0x4f5076(0x2cc)](),this['_injector'][_0x4f5076(0x362)](I,this['unitID'],this[_0x4f5076(0x3d4)],null,this['_pendingMutations'],null,[_0x4e3921],this[_0x4f5076(0x267)]);try{let _0x27a700=this['_transformService']['transformMutationsWithChangeset'](_0x4e3921,this[_0x4f5076(0x160)]);if((0x0,e[_0x4f5076(0x375)])(_0x27a700)){let {c1Prime:_0x456664,m2Prime:_0xc653e4}=_0x27a700;this[_0x4f5076(0x369)](_0x456664);let _0x3e35d8=this[_0x4f5076(0x2ac)][_0x4f5076(0x362)](D,this[_0x4f5076(0x3e7)],this[_0x4f5076(0x3d4)],_0xc653e4,this[_0x4f5076(0x267)]);this[_0x4f5076(0x2cc)]();let _0xc85263=new Date()['getTime'](),_0x4128f1=this['_scheduleCompleteTimestamp']?Math[_0x4f5076(0x270)](this[_0x4f5076(0x358)]-_0xc85263,0x0):this['_getSendChangesetTimeout']();return _0x3e35d8[_0x4f5076(0x248)](_0x4128f1),_0x3e35d8;}throw _0x27a700[_0x4f5076(0x28a)];}catch(_0x2e1344){return this['_logService'][_0x4f5076(0x28a)](_0x2e1344),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x3c57c5){const _0x371688=_0x57c5d2;if(_0x3c57c5[_0x371688(0x39a)]<=this[_0x371688(0x2a6)]())return this;throw Error(_0x371688(0x28b));}[_0x57c5d2(0x12e)](){throw Error('[PendingState]:\x20received\x20rejection.');}[_0x57c5d2(0x271)](){return this;}[_0x57c5d2(0x340)](){const _0x464b33=_0x57c5d2;return this['_clearScheduledTask'](),this[_0x464b33(0x2ac)][_0x464b33(0x362)](F,this[_0x464b33(0x3e7)],this[_0x464b33(0x3d4)],null,this[_0x464b33(0x160)],this[_0x464b33(0x267)]);}['toggleOnline'](){return this;}[_0x57c5d2(0x248)](_0x33d73e){const _0x246ae0=_0x57c5d2;let _0x259273=_0x33d73e==null?this[_0x246ae0(0x156)]():_0x33d73e;this[_0x246ae0(0x358)]=new Date()[_0x246ae0(0x198)]()+_0x259273,this[_0x246ae0(0x30c)]=setTimeout(()=>{const _0x2f98cc=_0x246ae0;this[_0x2f98cc(0x2cc)]();let _0xb0369c=null;switch(this['type']){case t[_0x2f98cc(0x279)][_0x2f98cc(0x363)]:_0xb0369c=pe(this['_pendingMutations'],this['unitID'],this[_0x2f98cc(0x2ff)],this[_0x2f98cc(0x383)],this[_0x2f98cc(0x33b)]);break;case t[_0x2f98cc(0x279)]['UNIVER_DOC']:_0xb0369c=this[_0x2f98cc(0x160)][_0x2f98cc(0x263)](_0x186794=>_0x186794['id']===n[_0x2f98cc(0x275)]['id'])?me(this[_0x2f98cc(0x160)],this[_0x2f98cc(0x3e7)],this[_0x2f98cc(0x2ff)],this[_0x2f98cc(0x383)],this['_memberService']):pe(this[_0x2f98cc(0x160)],this[_0x2f98cc(0x3e7)],this[_0x2f98cc(0x2ff)],this['_revisionService'],this['_memberService']);break;default:throw Error('[PendingState]:\x20unhandled\x20univer\x20type:\x20'+this[_0x2f98cc(0x3d4)]+_0x2f98cc(0x150));}let {changeset:_0xa9c0e3,pendingMutations:_0x5950ba}=_0xb0369c;this[_0x2f98cc(0x267)][_0x2f98cc(0x3d0)](_0xa9c0e3);let _0x20e638=_0x5950ba['length']?this[_0x2f98cc(0x2ac)][_0x2f98cc(0x362)](N,this['unitID'],this[_0x2f98cc(0x3d4)],_0xa9c0e3,_0x5950ba,this[_0x2f98cc(0x267)],void 0x0):this['_injector'][_0x2f98cc(0x362)](M,this[_0x2f98cc(0x3e7)],this[_0x2f98cc(0x3d4)],_0xa9c0e3,this[_0x2f98cc(0x267)]);_0x20e638[_0x2f98cc(0x29d)](),this[_0x2f98cc(0x267)][_0x2f98cc(0x1e0)](this,_0x20e638);},_0x259273);}[_0x57c5d2(0x156)](){const _0x29c8b7=_0x57c5d2;var _0x468d99;let _0x552ee6=this[_0x29c8b7(0x228)][_0x29c8b7(0x269)](E);return(_0x468d99=_0x552ee6==null?void 0x0:_0x552ee6[_0x29c8b7(0x17e)])==null?0x7d0:_0x468d99;}[_0x57c5d2(0x3a3)](){const _0x2ba877=_0x57c5d2;throw Error(_0x2ba877(0x3d6));}[_0x57c5d2(0x2cc)](){const _0x1d1539=_0x57c5d2;this[_0x1d1539(0x30c)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x1d1539(0x30c)]=null);}[_0x57c5d2(0x3de)](_0x3b2b6f){const _0xffa3da=_0x57c5d2;return this['_clearScheduledTask'](),this[_0xffa3da(0x2ac)][_0xffa3da(0x362)](P,this[_0xffa3da(0x3e7)],this[_0xffa3da(0x3d4)],null,this[_0xffa3da(0x160)],this[_0xffa3da(0x267)],_0x3b2b6f);}};j=D=b([y(0x4,(0x0,t[_0x57c5d2(0x175)])(t['Injector'])),y(0x5,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x387)])),y(0x6,(0x0,t[_0x57c5d2(0x175)])(x)),y(0x7,t['ILogService']),y(0x8,t[_0x57c5d2(0x25f)]),y(0x9,t['IConfigService']),y(0xa,e[_0x57c5d2(0x3da)]),y(0xb,t[_0x57c5d2(0x19e)]),y(0xc,t[_0x57c5d2(0x34d)]),y(0xd,(0x0,t[_0x57c5d2(0x342)])(C))],j);let M=O=class extends k{constructor(_0x5baf0c,_0x4a7468,_0x383b0a,_0x4e3205,_0xcee1ff,_0x2b4b00,_0x35bde5,_0x4396e4,_0x3e5af5,_0x1a15f3,_0x4ea3ba){const _0x1d7d8e=_0x57c5d2;super(_0x5baf0c,_0x4a7468,_0x383b0a,[],_0x4e3205,_0x35bde5,_0x1a15f3,_0x2b4b00,_0x4ea3ba),this['_injector']=_0xcee1ff,this[_0x1d7d8e(0x2c0)]=_0x4396e4,this['_transformService']=_0x3e5af5,g(this,'status','awaiting'),g(this,_0x1d7d8e(0x2f0),0x0),g(this,_0x1d7d8e(0x320),0x0),g(this,_0x1d7d8e(0x26d),void 0x0),g(this,_0x1d7d8e(0x295),void 0x0);}[_0x57c5d2(0x3d5)](_0x1a1f9f){const _0x53be96=_0x57c5d2;this[_0x53be96(0x2cc)]();let _0x50d982=this[_0x53be96(0x2ac)][_0x53be96(0x362)](N,this[_0x53be96(0x3e7)],this[_0x53be96(0x3d4)],this[_0x53be96(0x31b)],[_0x1a1f9f],this[_0x53be96(0x267)],this[_0x53be96(0x26d)]);return _0x50d982['_updateLocalCache'](),_0x50d982;}[_0x57c5d2(0x350)](_0x5b44d5){const _0x81fd8d=_0x57c5d2;if(this['_checkMissing'](_0x5b44d5))return this['_clearScheduledTask'](),this['_injector'][_0x81fd8d(0x362)](I,this[_0x81fd8d(0x3e7)],this[_0x81fd8d(0x3d4)],this[_0x81fd8d(0x31b)],[],null,[_0x5b44d5],this[_0x81fd8d(0x267)]);try{let _0x6a3875=this[_0x81fd8d(0x12c)][_0x81fd8d(0x135)]([_0x5b44d5],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x81fd8d(0x13e)])(_0x6a3875)){let {c1Prime:_0x31bba0,c2Prime:_0x363add}=_0x6a3875;this[_0x81fd8d(0x369)](_0x31bba0[0x0]),_0x363add[0x0][_0x81fd8d(0x209)]=this['_getCurrentRevision'](),this[_0x81fd8d(0x2cc)]();let _0x14ccc7=this[_0x81fd8d(0x2ac)][_0x81fd8d(0x362)](O,this['unitID'],this[_0x81fd8d(0x3d4)],_0x363add[0x0],this[_0x81fd8d(0x267)]);return _0x14ccc7[_0x81fd8d(0x29d)](),_0x14ccc7;}throw _0x6a3875[_0x81fd8d(0x28a)];}catch(_0xf5b058){return this[_0x81fd8d(0x2c0)][_0x81fd8d(0x28a)](_0xf5b058),this[_0x81fd8d(0x3de)](!0x1);}}[_0x57c5d2(0x336)](_0x45dfef){const _0x264650=_0x57c5d2;this[_0x264650(0x2cc)]();let _0x5ddc82=this['_revisionService'][_0x264650(0x21a)](this[_0x264650(0x3e7)]);if(_0x45dfef[_0x264650(0x39a)]<=_0x5ddc82)return this;if(this[_0x264650(0x3bb)](_0x45dfef))return this[_0x264650(0x2ac)][_0x264650(0x362)](I,this['unitID'],this['type'],this[_0x264650(0x31b)],[],_0x45dfef['revision'],[],this[_0x264650(0x267)]);this[_0x264650(0x200)]();let _0x76ab7c=this['_injector']['createInstance'](A,this['unitID'],this[_0x264650(0x3d4)],this[_0x264650(0x267)]);return _0x76ab7c[_0x264650(0x29d)](),_0x76ab7c;}['onRemoteRej'](_0x3cb3d5){const _0x3c122a=_0x57c5d2;return this[_0x3c122a(0x3de)](!!(_0x3cb3d5!=null&&_0x3cb3d5[_0x3c122a(0x3f2)]));}[_0x57c5d2(0x271)](_0x219e23){const _0x2804b9=_0x57c5d2;return this[_0x2804b9(0x320)]>ye?this[_0x2804b9(0x340)]():(this[_0x2804b9(0x26d)]=he(this[_0x2804b9(0x2f0)],{'timeout':this[_0x2804b9(0x2f0)],'reqId':_0x219e23[_0x2804b9(0x37d)]}),this[_0x2804b9(0x295)]=this[_0x2804b9(0x26d)][_0x2804b9(0x2b5)](({reqId:_0xc7bad3,timeout:_0x3bd45a})=>{const _0x525431=_0x2804b9;this[_0x525431(0x378)](_0xc7bad3,_0x3bd45a);}),this);}[_0x57c5d2(0x340)](){const _0x161193=_0x57c5d2;return this[_0x161193(0x2cc)](),this['_injector'][_0x161193(0x362)](F,this['unitID'],this[_0x161193(0x3d4)],this[_0x161193(0x31b)],[],this[_0x161193(0x267)]);}[_0x57c5d2(0x396)](){return this;}['resend'](){const _0x41eb9a=_0x57c5d2;this[_0x41eb9a(0x267)][_0x41eb9a(0x3d0)](this['_awaitingChangeset']);}[_0x57c5d2(0x3de)](_0x2d2ecc){const _0x161c0c=_0x57c5d2;return this[_0x161c0c(0x2cc)](),this[_0x161c0c(0x2ac)]['createInstance'](P,this['unitID'],this[_0x161c0c(0x3d4)],this[_0x161c0c(0x31b)],[],this[_0x161c0c(0x267)],_0x2d2ecc);}['_resendWithTimeout'](_0x727fd1,_0x34cbde){const _0x419710=_0x57c5d2;var _0x42e161;_0x727fd1===((_0x42e161=this[_0x419710(0x31b)])==null?void 0x0:_0x42e161[_0x419710(0x37d)])&&(this['resend'](),this[_0x419710(0x2f0)]=_0x34cbde===0x0?0x3e8:Math['min'](_0x34cbde*0x2,ve),this['_maxTotalRetryTimeout']+=this['_resendTimeout']);}[_0x57c5d2(0x2cc)](){const _0x350b87=_0x57c5d2;var _0x575970;(_0x575970=this['_sender'])==null||_0x575970[_0x350b87(0x272)](),this['_resendTimeout']=0x0,this[_0x350b87(0x320)]=0x0;}};M=O=b([y(0x4,(0x0,t['Inject'])(t[_0x57c5d2(0x2f8)])),y(0x5,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x387)])),y(0x6,t['ICommandService']),y(0x7,t[_0x57c5d2(0x1c4)]),y(0x8,e[_0x57c5d2(0x3da)]),y(0x9,t[_0x57c5d2(0x34d)]),y(0xa,(0x0,t[_0x57c5d2(0x342)])(C))],M);let N=ge=class extends k{constructor(_0x2ad828,_0x42c8b4,_0x3a2ff3,_0x350111,_0x3b666a,_0xa6e0f4,_0x126430,_0x44f6c6,_0x37fdd0,_0x82ed71,_0x2cf7d8,_0x19fcfe,_0x22ec8f){const _0x4855bf=_0x57c5d2;super(_0x2ad828,_0x42c8b4,_0x3a2ff3,_0x350111,_0x3b666a,_0x37fdd0,_0x19fcfe,_0x44f6c6,_0x22ec8f),this[_0x4855bf(0x2ac)]=_0x126430,this[_0x4855bf(0x2c0)]=_0x82ed71,this[_0x4855bf(0x12c)]=_0x2cf7d8,this[_0x4855bf(0x32b)]=_0x22ec8f,g(this,_0x4855bf(0x245),_0x4855bf(0x309)),g(this,_0x4855bf(0x2f0),0x0),g(this,_0x4855bf(0x320),0x0),g(this,_0x4855bf(0x26d),void 0x0),g(this,_0x4855bf(0x295),void 0x0),_0xa6e0f4&&(this['_resendTimer']=_0xa6e0f4,this['_sender']=this[_0x4855bf(0x26d)][_0x4855bf(0x2b5)](({reqId:_0x488769,timeout:_0x249d47})=>{this['_resendWithTimeout'](_0x488769,_0x249d47);}));}[_0x57c5d2(0x3d5)](_0x25e7bc){const _0x328930=_0x57c5d2;return this[_0x328930(0x160)][_0x328930(0x357)](_0x25e7bc),this;}[_0x57c5d2(0x350)](_0x59cb0f){const _0x26dc8c=_0x57c5d2;if(this[_0x26dc8c(0x3bb)](_0x59cb0f))return this[_0x26dc8c(0x2cc)](),this[_0x26dc8c(0x2ac)][_0x26dc8c(0x362)](I,this[_0x26dc8c(0x3e7)],this[_0x26dc8c(0x3d4)],this[_0x26dc8c(0x31b)],this[_0x26dc8c(0x160)],null,[_0x59cb0f],this[_0x26dc8c(0x267)]);try{let _0x58195c=this['_transformService']['transformChangesets']([_0x59cb0f],[this[_0x26dc8c(0x31b)]],!0x1);if((0x0,e[_0x26dc8c(0x13e)])(_0x58195c)){let {c1Prime:_0x5e2134,c2Prime:_0x4107a2}=_0x58195c,_0x10f226=this['_transformService']['transformMutationsWithChangeset'](_0x5e2134[0x0],this['_pendingMutations']);if((0x0,e[_0x26dc8c(0x375)])(_0x10f226)){let {c1Prime:_0x3de8ba,m2Prime:_0x16f290}=_0x10f226;return this[_0x26dc8c(0x369)](_0x3de8ba),_0x4107a2[0x0]['baseRev']=this[_0x26dc8c(0x2a6)](),this[_0x26dc8c(0x2cc)](),this[_0x26dc8c(0x2ac)][_0x26dc8c(0x362)](ge,this[_0x26dc8c(0x3e7)],this['type'],_0x4107a2[0x0],_0x16f290,this[_0x26dc8c(0x267)],void 0x0);}throw _0x10f226['error'];}throw _0x58195c[_0x26dc8c(0x28a)];}catch(_0x472d65){return this['_logService'][_0x26dc8c(0x28a)](_0x472d65),this['_onConflict'](!0x1);}}[_0x57c5d2(0x336)](_0x1ae55f){const _0x42a203=_0x57c5d2;this[_0x42a203(0x2cc)]();let _0xb296d6=this[_0x42a203(0x2a6)]();if(_0x1ae55f[_0x42a203(0x39a)]<=_0xb296d6)return this;if(this['_checkMissing'](_0x1ae55f))return this[_0x42a203(0x2ac)][_0x42a203(0x362)](I,this[_0x42a203(0x3e7)],this[_0x42a203(0x3d4)],this[_0x42a203(0x31b)],this[_0x42a203(0x160)],_0x1ae55f[_0x42a203(0x39a)],[],this[_0x42a203(0x267)]);this[_0x42a203(0x200)]();let _0x30eb0c=this[_0x42a203(0x2ac)][_0x42a203(0x362)](j,this[_0x42a203(0x3e7)],this['type'],this[_0x42a203(0x160)],this[_0x42a203(0x267)]);return _0x30eb0c[_0x42a203(0x248)](),_0x30eb0c[_0x42a203(0x29d)](),_0x30eb0c;}[_0x57c5d2(0x12e)](_0x17d51e){const _0xcc9999=_0x57c5d2;return this[_0xcc9999(0x3de)](!!(_0x17d51e!=null&&_0x17d51e[_0xcc9999(0x3f2)]));}[_0x57c5d2(0x271)](_0x3d7536){const _0x50828b=_0x57c5d2;return this[_0x50828b(0x320)]>ye?this[_0x50828b(0x340)]():(this[_0x50828b(0x26d)]=he(this['_resendTimeout'],{'timeout':this[_0x50828b(0x2f0)],'reqId':_0x3d7536['reqId']}),this[_0x50828b(0x295)]=this[_0x50828b(0x26d)][_0x50828b(0x2b5)](({reqId:_0x55e7c3,timeout:_0xafa29b})=>{const _0x287b7e=_0x50828b;this[_0x287b7e(0x378)](_0x55e7c3,_0xafa29b);}),this);}[_0x57c5d2(0x340)](){const _0x4a93d7=_0x57c5d2;return this['_clearScheduledTask'](),this[_0x4a93d7(0x2ac)]['createInstance'](F,this[_0x4a93d7(0x3e7)],this[_0x4a93d7(0x3d4)],this['_awaitingChangeset'],this[_0x4a93d7(0x160)],this[_0x4a93d7(0x267)]);}[_0x57c5d2(0x396)](){return this;}[_0x57c5d2(0x3a3)](){const _0x3f6744=_0x57c5d2;this['_handler'][_0x3f6744(0x3d0)](this[_0x3f6744(0x31b)]);}[_0x57c5d2(0x3de)](_0x1582bb){const _0x28d7f7=_0x57c5d2;return this[_0x28d7f7(0x2cc)](),this['_injector']['createInstance'](P,this[_0x28d7f7(0x3e7)],this[_0x28d7f7(0x3d4)],null,this[_0x28d7f7(0x160)],this['_handler'],_0x1582bb);}['_resendWithTimeout'](_0xbb0e2b,_0x148c9a){const _0x492574=_0x57c5d2;var _0x429262;_0xbb0e2b===((_0x429262=this['_awaitingChangeset'])==null?void 0x0:_0x429262[_0x492574(0x37d)])&&(this[_0x492574(0x3a3)](),this[_0x492574(0x2f0)]=_0x148c9a===0x0?0x3e8:Math[_0x492574(0x2fc)](_0x148c9a*0x2,ve),this[_0x492574(0x320)]+=this['_resendTimeout']);}[_0x57c5d2(0x2cc)](){const _0x58c8e8=_0x57c5d2;var _0x4ed23c;(_0x4ed23c=this[_0x58c8e8(0x295)])==null||_0x4ed23c[_0x58c8e8(0x272)](),this['_resendTimeout']=0x0,this[_0x58c8e8(0x320)]=0x0;}};N=ge=b([y(0x6,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x2f8)])),y(0x7,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x387)])),y(0x8,t[_0x57c5d2(0x25f)]),y(0x9,t[_0x57c5d2(0x1c4)]),y(0xa,e[_0x57c5d2(0x3da)]),y(0xb,t['IUndoRedoService']),y(0xc,(0x0,t[_0x57c5d2(0x342)])(C))],N);let P=class extends k{constructor(_0x467ad5,_0x3f5676,_0xb10899,_0x2bb4c1,_0x2076cd,_0x281cf6=!0x1,_0x475346,_0x57a07c,_0x1fd667,_0x5e0438,_0xd50916,_0x3885f9,_0x2c1aad){const _0x2f8e93=_0x57c5d2;super(_0x467ad5,_0x3f5676,_0xb10899,_0x2bb4c1,_0x2076cd,_0x57a07c,_0x1fd667,_0x5e0438,_0x2c1aad),this[_0x2f8e93(0x26a)]=_0x281cf6,this['_permissionService']=_0x475346,this[_0x2f8e93(0x3e2)]=_0xd50916,this[_0x2f8e93(0x205)]=_0x3885f9,this[_0x2f8e93(0x32b)]=_0x2c1aad,g(this,_0x2f8e93(0x245),_0x2f8e93(0x231)),this[_0x2f8e93(0x3bd)](),this['_clearLocalCache'](),this['_disableEditing']();}[_0x57c5d2(0x3d5)](){return this;}['onRemoteChangeset'](){return this;}[_0x57c5d2(0x336)](){return this;}[_0x57c5d2(0x12e)](){return this;}[_0x57c5d2(0x271)](){return this;}[_0x57c5d2(0x340)](){return this;}[_0x57c5d2(0x396)](){return this;}[_0x57c5d2(0x3a3)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x57c5d2(0x12f)](){const _0x9c2079=_0x57c5d2;var _0x1ecb2d;(_0x1ecb2d=this[_0x9c2079(0x2db)])==null||_0x1ecb2d[_0x9c2079(0x258)](this['unitID'],this[_0x9c2079(0x3d4)],null,[]);}['_showConflictNotification'](){const _0x4d9425=_0x57c5d2;this[_0x4d9425(0x26a)]?this[_0x4d9425(0x205)]['emitEvent']({'id':_0x4d9425(0x38a)}):this[_0x4d9425(0x205)][_0x4d9425(0x1d2)]({'id':_0x4d9425(0x398)});}[_0x57c5d2(0x2c2)](){const _0x5e05de=_0x57c5d2;this[_0x5e05de(0x252)][_0x5e05de(0x305)](new r[(_0x5e05de(0x332))](this[_0x5e05de(0x3e7)])['id'],!0x1);}};P=b([y(0x6,(0x0,t[_0x57c5d2(0x175)])(t['IPermissionService'])),y(0x7,t[_0x57c5d2(0x25f)]),y(0x8,t[_0x57c5d2(0x34d)]),y(0x9,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x387)])),y(0xa,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x178)])),y(0xb,(0x0,t[_0x57c5d2(0x175)])(_)),y(0xc,(0x0,t['Optional'])(C))],P);function _0xe13a(){const _0x5cbcdf=['liveShareNewHost','encodeURIComponent','_executeRemoteChangeset','utf8ToBytes','slice','result','_onJoinRoomEvent','ERROR_IMAGE','_transformRemoteChangesetByStateCache','selections','initWorkbookPermissionChange','_state$','_toggleOnline','_sendHeartbeat','isTransformMutationsWithChangesetSuccess','setConfig','_replaceFileID','_resendWithTimeout','pluginName','telemetry\x20info\x20is\x20not\x20initialized','_transformSelections','Workbook','reqId','PENDING','_instanceService','ws://127.0.0.1:8000/universer-api/comb/connect','/unit/','BASE64','_revisionService','_collabSessionService','csRejEvent','listCollaborators','RevisionService','_socketService','getRoom','PERMISSION_DENIED','sid','_onRecvEvent','append','awaiting','_acknowledgedAwaitingRevision','addHandlerCallback','/-/object/-/batch_allowed','getFocusedUnit','3255834zMNebr','take','changesets','toggleOnline','_waitCount','CONFLICT','_tryEnsureSocket','revision','randomBytes','POST','_submitChangeset','message$','session.room-cnt-exceeds','_waitForHeartbeatResponse','UNIVER_DOC','getUnitType','resend','post','_socket$','submit\x20changeset\x20error!','defineProperty','body','save\x20fail\x20reason\x20is\x20','uploadFileServerUrl','getTypeOfUnitDisposed$','3972962eTbJgg','_members','_getAPIPrefixPath','session.room-full','onTransformState','batchAllowed','fromCollab','SheetsSelectionsService','37poHABE','__Key__','setWaitCount','40BBpXjy','cbc','_socketMessageSubscription','HEARTBEAT_TIMEOUT','_checkMissing','LocalUndoRedoService','_showConflictNotification','setCfgEnableObjInherit','SetSelectionsOperation','liveShareOperation','_roomMembers','?size=','getSnapshotAPIPath','univer-pro.collaboration-client.network-condition.service','/-/object/list','_clearRetryConnectingTimer','readyForCollab','getImage','CollaborationUIEventService','close','IImageIoService','collabWebSocketUrl','FETCH_MISS','_unitID','_roomCreated$','onSendChangeset','getImageSourceCache','asObservable','floor','type','appendMutation','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','_queuedRemoteChangesets','AuthzIoHttpService','debug','ITransformService','_undoRedoService','Subject','userID','_onConflict','routeKey','toString','pending','_localeService','_onRemoteRejected','HTTPRequest','_acknowledgeAwaiting','MemberService','unitID','USERS_ENTER','_clearCollaborationTimeoutTimer','m2Prime','CollaborationUIEventId','fetchMissingChangesets','SUBMIT_CHANGESET','updateSnapshot','enableSingleActiveInstanceLock','AWAITING','version','isPermissionRej','ErrorCode','_socket','_doCreateSocket','SHOULD_CLOSE_CONN','action','ISingleActiveUnitService','synced','ImageUploadStatusType','\x0aAfter:\x20','_shouldReportTelemetry','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','RxDisposable','uuidv4','_eventService','PERSON','OTHER_CLIENT_EDITING','loadUnitOfRevision','roomInfos','missingChangesets','updateMember','signUrlServerUrl','_transformAndApplyRemoteChangeset','getGlobalObject','PSEUDO_FETCH_MISSING_RESULT','refreshPermission','c1Prime','_transformService','_initCloseConn','onRemoteRej','_clearLocalCache','commentUpdate$','cmd','open$','subject','pipe','transformChangesets','CollaborationEvent','registerHTTPInterceptor','_updateState','JOIN_ROOM_FAILED','DocCollaborationEntity','HEARTBEAT_TIMEOUT_KEY','_init','JOINING','isTransformChangesetsSuccess','loadDoc','_replayCachedMutations','init','UNIVER_COLLABORATION_CLIENT_PLUGIN','session.join-failed','src','_scheduleCollaborationTimeoutTimer','setCurrentUser','reduce','_removeRoom','3415iJGEhE','href','SUBMIT_CHANGESET_TIMEOUT','SnapshotService','hostname','stringify','CHANGESET_REJ','\x20in\x20_schedule.','IPermissionService','size','avatar','name','HEARTBEAT_INTERVAL','_getSendChangesetTimeout','_toggleOffline','onTransformSelections','allowed','ONLINE','/universer-api/authz','unit-cache-','mutations','[CollaborationState]:\x20apply\x20error!','override','_pendingMutations','socketService','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','_onOffline','SUCCUSS','target','snapshot','[DataLoaderService]','send','_initDependencies','parse','_unlockTransition','collabSubmitChangesetUrl','/fetchmissing?from=','now','resolveWithBasePath','ILocalCacheService','resourceIDs','dispose','_applyRemoteChangeset','Inject','[FetchMissState]','_lockTransition','LocaleService','rev','_commentUpdate$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_registerDependencies','[UniverCollaborationClientPlugin]','sendChangesetTimeout','packageName','shareReplay','SYNCED','_userManagerService','\x20-\x20','/universer-api/oidc/authpage','_remoteChangesetQueue','clear','/universer-api/uniscript','_onFetchMissResult','_joinRoom','connection\x20error','mergeOverrideWithDependencies','joinRsp','collaMsg','isTransformMutationsWithChangesetFailure','1604gysCHK','status$','_onUserLeave','editingUnit','sessionStatus$','FileSource','_getUploadFileURL','reject','/role','getTime','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','saveSheetBlock','toStringTag','MentionType','length','IUniverInstanceService','onTransformRemoteChangesetByIMECache','state$','session','_retryCount','from','CmdRspCode','__splitChunk__','workbook','_singleActiveUnitService','_entities','_clearUndo','permissionRejEvent','sequenceExecute','getCfgEnableObjInherit','requireSession','_initMergeInterceptor','_httpService','_transformStack','method','SNAPSHOT_URL_KEY','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','add','_onConnectionOpen','enableAuthServer','concatBytes','/resources','getSheetId','LEAVE','change$','_collaborationTimeoutTimer','IMentionIOService','closeSession','UniverCollaborationClientPlugin','enableCollaboration','origin','url','_exhaustRemoteChangesetQueue','ILogService','JOIN_ROOM_FULL','JOIN_ROOM_NOT_EXISTS','requestParams','/object','DataLoaderService','&to=','unit','_onRemoteChangeset','_throwTelemetryCollaborationNewChangeset','_sendHeartbeatTimer','isArray','AwaitingWithPendingState','FETCH_MISSING','emitEvent','getCollabEntity$','error$','prototype','_clearHeartbeatTimer','sort','UniverLicensePlugin','_updateStatus','/universer-api/snapshot/','CompressMutationService','unknown','originalMeta','SyncedState','_transitionLocked','onStateChange','CollaborationSession','AwaitingState','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','ReplaySubject','parseProtocolChangeset','string','getLocalCacheKey','removeMember','uniscriptRunEvent','LIVESHARE_NEW_HOST','c2Prime','/rev/','call','getOwnPropertyDescriptor','onlyLocal','@univerjs-pro/collaboration-client','LOCAL_CACHE_INTERVAL_KEY','actions','[CollaborationEntity]','JSONX','DEFAULT_FILE_NAME','createSocket','_snapshotService','equals','getCollabEntity','_members$','saveImage','_transformStateCache','MSG_FOR_ERROR','downloadEndpointUrl','DEFAULT_WS_SESSION_TICKET_URL','_incrementRevisionNumber','CombCmd','duration','_onRemoteRetry','confirm','_collaborationUIEventService','_onLocalMutation','ThresholdInterceptorFactory','GLOBAL_ROOMS_CNT_EXCEEDS','baseRev','SOCKET_FAILED_RETRY','CommentService','CollaborationStatus','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','merge','UPDATE_CURSOR','takeUntil','updatePermissionObjEvent','_networkConditionService','getCurrentUser','_getDownloadEndpointURL','_acknowledgeAwaitingIfReady','_getAPIPrefix','SheetTransformSelectionsService','create','joinEvent','getCurrentRevOfUnit','deleteCollaborator','[CollaborationSessionService]:\x20socket\x20error','_sessionStatus$','[CollaborationSession]','_fetchMissChangesets','[SyncedState]:\x20received\x20acknowledgement.','/universer-api/comb','_getLoginPath','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','event$','univer-pro.collaboration-client-socket-service','UserManagerService','next','_configService','location','_onUserJoin','DRAWING_IMAGE_ALLOW_IMAGE_LIST','HEARTBEAT','IContextService','DisposableCollection','UPDATE_PERMISSION_OBJ','_onConnectionFailed','conflict','_redoStacks','put','createIdentifier','Quantity','unitInfo$','snapshotServerUrl','getDeserializedSheetBlock','_clearTimeoutTimer','_telemetryInfo','textRanges','charCodeAt','readAsDataURL','findIndex','apply','compose','unitId','disposeWithMe','_undoStacks','fetch_missing','status','_candidateSocket','HELLO','_schedule','headers','OFFLINE','updateCursorEvent','list','fetchMiss','_telemetryService','Failed\x20to\x20update\x20permission\x20point','transformSelections','_syncEditingCollabCursor','_permissionService','online$','x-univer-host','_collaborationSessionService','b64DecodeUnicode','_createHandler','updateOfflineData','find','decorate','dispose$','_compressMutationService','saveSnapshot','collaboration-client.config','ICommandService','/collaborator','getUnitOnRev','\x20to\x20','every','_isEchoedAwaitingChangeset','/universer-api/stream/file/upload','pauseCollaboration','_handler','getResourcesRequest','getConfig','_isPermissionRej','shouldCloseConn','_createInitialState','_resendTimer','interceptor','authzUrl','max','onRemoteRetry','unsubscribe','complete','textEncoder','RichTextEditingMutation','Tools','socket\x20close','onCommentUpdate','UniverInstanceType','LOCAL_CACHE_INTERVAL','ImageSourceType','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','parseChangesetToProtocol','1019308fylRNS','OfflineState','&assign=','getMemberID','reverse','code','encode','?url=','fetchThroughInterceptors','awaitingChangeset','getInterceptPoints','transformUndoRedo','error','[PendingState]:\x20received\x20acknowledgement.','MUTATION','UNISCRIPT_RUN','LIVESHARE_OPERATION','getAllMembers','then','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','Univer','Error\x20on\x20receiving\x20event','loadOfflineData','_sender','_onRemoteACK','SOCKET_FAILED','startsWith','patch','_transformUndoredo','/block/','toDisposable','_updateLocalCache','_substituteRedoStack','/universer-api/file/{fileID}/sign-url','getMember','Disposable','addImageSourceCache','ISnapshotServerService','default','_getUndoStack','_getCurrentRevision','ERROR_IMAGE_TYPE','SheetCollaborationEntity','NO_OTHER_CLIENTS_EDITING','_createSocket','map','_injector','_timeoutTimer','stopTime','_transformIMECache','_sessions','_startCollaboration','onMissedChangesetFetched','BehaviorSubject','mapDocumentTypeToUniverInstanceType','subscribe','LIVESHARE_FETCH_OPERATIONS','_cfgEnableObjInherit','responseType','concatMap','objectID','_substituteUndoStack','_startTelemetryCollaborationNewChangeset','onload','[SyncedState]:\x20received\x20rejection.','_transformRemoteChangesetByIMECache','_logService','catch','_disableEditing','getWorkbookSelections','memberID','/object/','roles','SheetPermissionInitController','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','UniverCollaborationPlugin','[OfflineState]:\x20received\x20rejection.','LIVESHARE_REQUEST_HOST','_clearScheduledTask','encrypt','_handleRemoteChangesets','getUnitId','_HTTPService','setShowComponents','iterator','focused$','CLOSE_ROOM','0.23.0','CHANGESET_ACK','eventID','3ddplYn','subUnitId','MentionIoHttpService','_localCacheService','onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.','executeCommand','_onCombEvent','startTime','params','csShouldRetryEvent','_imageSourceCache','_emitMembers','onMutationExecutedForCollab','/allowed','8070534SdgMpO','CollaborationController','COMPRESS_MUTATION_SEND','OTHER_CLIENTS_EDITING','commentUpdateEvent','_initUnitPermissionChange','SnapshotServerOverHTTPService','_changesetReqId','forEach','_sheetTransformSelectionsService','_resendTimeout','_decreaseWaiting','close$','_tryReconnect','_changesetSessionId','symbol','_unitInfo$','_getSignURL','Injector','COMPRESS_MUTATION_APPLY','LIVESHARE_TERMINATE','&source=','min','getDrawingImageAllowSize','SessionStatus','_univerInstanceService','serializeCombRequest','getUnit','CHANGESET_SHOULD_RETRY','[CollaborationSessionService]','resolve','updatePermissionPoint','onTransformIME','IDLE','FAIL','awaiting_with_pending','CommandType','_change$','_sendingTimer','onTransformRemoteChangesetByStateCache','function','fetching\x20missing\x20changesets\x20from\x20','getSheetBlock','HTTPService','reconnect','IConfigService','set','CollaborationSessionService','[CollaborationUndoRedoService]','_event$','_getCtorByUniverInstanceType','onSyncEditingCollabCursor','getCurrentSelections','_awaitingChangeset','localeService','session.room-permission-denied','delete','COMMENT_UPDATE','_maxTotalRetryTimeout','includes','_createInitialStateImpl','NEW_CHANGESETS','HEARTBEAT_INTERVAL_KEY','_state','_commandService','offline','{fileID}','_handlerCallback','9004408rWulGs','localCacheService','getValue','saveChangeset','objectType','_entityInit$','FetchingMissState','EmptyMutationInfo','WorkbookEditablePermission','filter','file','_collaborationPaused','onRemoteAck','get','RETRY_CONNECTING_MAX_COUNT','onMissingChangesets','_socketReady','_memberService','ITelemetryService','CollaborationImageIoService','data','DependentOn','toggleOffline','waitForRoom$','Optional','getLatestCsReqIdBySid','_listenToNetworkCondition','sessionStatus','transformStack\x20failed!','auth.needGotoLoginAlert','transformMutationsWithChangeset','/universer-api/user/session-ticket','replace','_status$','RETRY_CONNECTING_MAX_COUNT_KEY','IUndoRedoService','getTypeOfUnitAdded$','range','onRemoteChangeset','collaborators','USERS_LEAVE','_commentService','createCollaborator','RECV','_config','push','_scheduleCompleteTimestamp','_rescheduleHeartbeat','/universer-api/snapshot','\x0aCurrent:\x20','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_type','UniverNetworkPlugin','has','_initRequestHeader','_retryConnectingTimer','createInstance','UNIVER_SHEET','touchDependencies','collaboratorID','_clearRedo'];_0xe13a=function(){return _0x5cbcdf;};return _0xe13a();}let F=class extends k{constructor(_0x214d81,_0x70fce5,_0x52e972,_0x15dd11,_0x35fa0f,_0x39c2af,_0x4a6f2c,_0x5d54c7,_0xe27b1a,_0x251812){const _0x169026=_0x57c5d2;super(_0x214d81,_0x70fce5,_0x52e972,_0x15dd11,_0x35fa0f,_0x5d54c7,_0xe27b1a,_0x4a6f2c,_0x251812),this[_0x169026(0x2ac)]=_0x39c2af,g(this,_0x169026(0x245),_0x169026(0x327));}[_0x57c5d2(0x3d5)](_0x194ba6){const _0x1b6009=_0x57c5d2;return this[_0x1b6009(0x160)][_0x1b6009(0x357)](_0x194ba6),this[_0x1b6009(0x29d)](),this;}[_0x57c5d2(0x350)](_0x45e247){throw Error('[OfflineState]:\x20received\x20changeset.');}['onRemoteAck'](){throw Error('[OfflineState]:\x20received\x20acknowledgement.');}[_0x57c5d2(0x12e)](){const _0x21a7d2=_0x57c5d2;throw Error(_0x21a7d2(0x2ca));}[_0x57c5d2(0x271)](){return this;}[_0x57c5d2(0x340)](){return this;}[_0x57c5d2(0x396)](){const _0x132c08=_0x57c5d2;let {_injector:_0x1b35cc,_pendingMutations:_0x5eea26,_awaitingChangeset:_0x1fd3f1,unitID:_0x570062,_handler:_0x57ce20,type:_0x1f93a9}=this,_0x91aafd=be(_0x1b35cc,_0x570062,_0x1f93a9,_0x1fd3f1,_0x5eea26,_0x57ce20);return _0x91aafd instanceof j?_0x91aafd[_0x132c08(0x248)]():(_0x91aafd instanceof N||_0x91aafd instanceof M)&&_0x91aafd[_0x132c08(0x3a3)](),_0x91aafd;}['resend'](){const _0x12e5b0=_0x57c5d2;throw Error(_0x12e5b0(0x162));}};F=b([y(0x5,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x2f8)])),y(0x6,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x387)])),y(0x7,t[_0x57c5d2(0x25f)]),y(0x8,t[_0x57c5d2(0x34d)]),y(0x9,(0x0,t[_0x57c5d2(0x342)])(C))],F);let I=class extends k{constructor(_0x47bbde,_0x327948,_0x347048,_0x43cccc,_0x20a383,_0x514d87,_0x1e77b4,_0x4fa30d,_0x359827,_0xe7527f,_0x41d78a,_0xa194ae,_0x4b8fa4,_0x278237){const _0x1d721f=_0x57c5d2;super(_0x47bbde,_0x327948,_0x347048,_0x43cccc,_0x1e77b4,_0x41d78a,_0xa194ae,_0x359827,_0x278237),this[_0x1d721f(0x38f)]=_0x20a383,this['_queuedRemoteChangesets']=_0x514d87,this[_0x1d721f(0x2ac)]=_0x4fa30d,this['_logService']=_0xe7527f,this[_0x1d721f(0x12c)]=_0x4b8fa4,this[_0x1d721f(0x32b)]=_0x278237,g(this,'status',_0x1d721f(0x244));}[_0x57c5d2(0x2b2)](_0x56593d){const _0xe9e6ca=_0x57c5d2;try{if(this[_0xe9e6ca(0x2ce)](_0x56593d)[_0xe9e6ca(0x124)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0xe9e6ca(0x2ce)]([...this[_0xe9e6ca(0x3d7)]][_0xe9e6ca(0x1d7)]((_0x511b59,_0x4147aa)=>_0x511b59[_0xe9e6ca(0x39a)]-_0x4147aa['revision']))['missingChangesets'])return this[_0xe9e6ca(0x3d7)]=[],this[_0xe9e6ca(0x29d)](),this['_handler'][_0xe9e6ca(0x339)]({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xfa6409=this[_0xe9e6ca(0x31b)],_0x25388f=this[_0xe9e6ca(0x160)],_0x4978d8;if(_0xfa6409&&_0x25388f[_0xe9e6ca(0x19d)]!==0x0)_0x4978d8=this['_injector']['createInstance'](N,this[_0xe9e6ca(0x3e7)],this[_0xe9e6ca(0x3d4)],_0xfa6409,_0x25388f,this[_0xe9e6ca(0x267)],void 0x0);else{if(_0xfa6409&&_0x25388f[_0xe9e6ca(0x19d)]===0x0)_0xfa6409[_0xe9e6ca(0x209)]=this[_0xe9e6ca(0x2a6)](),_0x4978d8=this[_0xe9e6ca(0x2ac)]['createInstance'](M,this[_0xe9e6ca(0x3e7)],this['type'],_0xfa6409,this['_handler']);else{if(_0x25388f[_0xe9e6ca(0x19d)]!==0x0){let _0x349ce9=this[_0xe9e6ca(0x2ac)][_0xe9e6ca(0x362)](j,this['unitID'],this['type'],_0x25388f,this[_0xe9e6ca(0x267)]);_0x349ce9['_schedule'](),_0x4978d8=_0x349ce9;}else _0x4978d8=this[_0xe9e6ca(0x2ac)][_0xe9e6ca(0x362)](A,this['unitID'],this['type'],this[_0xe9e6ca(0x267)]);}}return _0x4978d8[_0xe9e6ca(0x29d)](),_0x4978d8;}catch(_0x2f4a17){return this[_0xe9e6ca(0x2c0)]['error'](_0xe9e6ca(0x176),'failed\x20to\x20apply\x20missed\x20changesets!',_0x2f4a17),this[_0xe9e6ca(0x2ac)][_0xe9e6ca(0x362)](P,this[_0xe9e6ca(0x3e7)],this['type'],this[_0xe9e6ca(0x31b)],this[_0xe9e6ca(0x160)],this[_0xe9e6ca(0x267)],!0x1);}}['_handleRemoteChangesets'](_0x5f3962){const _0x559e68=_0x57c5d2;this['_acknowledgeAwaitingIfReady']();for(let _0x379afd=0x0;_0x379afd<_0x5f3962[_0x559e68(0x19d)];_0x379afd++){let _0x4679c9=_0x5f3962[_0x379afd],_0x35774e=this[_0x559e68(0x2a6)]();if(!(_0x4679c9['revision']<=_0x35774e)){if(_0x4679c9[_0x559e68(0x39a)]>_0x35774e+0x1)return{'missingChangesets':!0x0};if(this[_0x559e68(0x264)](_0x4679c9)){this[_0x559e68(0x3e5)]();continue;}this['_transformAndApplyRemoteChangeset'](_0x4679c9),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x57c5d2(0x127)](_0x326dd2){const _0x3370f4=_0x57c5d2;let _0x126162=_0x326dd2,_0x571325=this[_0x3370f4(0x31b)];if(_0x571325){let _0x4ea6b7=this[_0x3370f4(0x12c)]['transformChangesets']([_0x326dd2],[_0x571325],!0x1);if(!(0x0,e[_0x3370f4(0x13e)])(_0x4ea6b7))throw _0x4ea6b7['error'];_0x126162=_0x4ea6b7[_0x3370f4(0x12b)][0x0],_0x571325=_0x4ea6b7[_0x3370f4(0x1eb)][0x0];}let _0xa48d10=this[_0x3370f4(0x160)];if(_0xa48d10['length']){let _0x4a4480=this['_transformService'][_0x3370f4(0x348)](_0x126162,_0xa48d10);if(!(0x0,e[_0x3370f4(0x375)])(_0x4a4480))throw _0x4a4480[_0x3370f4(0x28a)];_0x126162=_0x4a4480[_0x3370f4(0x12b)],_0xa48d10=_0x4a4480[_0x3370f4(0x3ea)];}this[_0x3370f4(0x369)](_0x126162),_0x571325&&(_0x571325[_0x3370f4(0x209)]=this[_0x3370f4(0x2a6)]()),this[_0x3370f4(0x31b)]=_0x571325,this[_0x3370f4(0x160)]=_0xa48d10;}[_0x57c5d2(0x215)](){const _0x4d8515=_0x57c5d2;if(!this[_0x4d8515(0x31b)]||this['_acknowledgedAwaitingRevision']==null)return;let _0xd1b785=this[_0x4d8515(0x2a6)]();if(this['_acknowledgedAwaitingRevision']<=_0xd1b785)throw Error(_0x4d8515(0x11c)+this[_0x4d8515(0x38f)]+'.');this['_acknowledgedAwaitingRevision']===_0xd1b785+0x1&&this['_acknowledgeAwaiting']();}['_acknowledgeAwaiting'](){const _0x5c5faf=_0x57c5d2;this[_0x5c5faf(0x200)](),this['_awaitingChangeset']=null,this[_0x5c5faf(0x38f)]=null;}[_0x57c5d2(0x264)](_0x3eb48d){const _0x4db884=_0x57c5d2;let _0x4e104b=this['_awaitingChangeset'];return!_0x4e104b||!_0x4e104b[_0x4db884(0x38b)]||_0x4e104b[_0x4db884(0x37d)]===null||_0x4e104b['reqId']===void 0x0?!0x1:_0x3eb48d[_0x4db884(0x3e7)]===_0x4e104b[_0x4db884(0x3e7)]&&_0x3eb48d['sid']===_0x4e104b[_0x4db884(0x38b)]&&_0x3eb48d[_0x4db884(0x37d)]===_0x4e104b[_0x4db884(0x37d)];}[_0x57c5d2(0x3a3)](){const _0x149a31=_0x57c5d2;throw Error(_0x149a31(0x27c));}[_0x57c5d2(0x3d5)](_0x44b0ae){const _0x37f4ea=_0x57c5d2;return this[_0x37f4ea(0x160)][_0x37f4ea(0x357)](_0x44b0ae),this;}[_0x57c5d2(0x350)](_0x303ff8){const _0x1e143e=_0x57c5d2;return this[_0x1e143e(0x3d7)][_0x1e143e(0x357)](_0x303ff8),this;}[_0x57c5d2(0x336)](_0x1267a1){const _0x2b396c=_0x57c5d2;if(this[_0x2b396c(0x31b)]){let _0x1c6a3c=this['_getCurrentRevision']();return _0x1267a1[_0x2b396c(0x39a)]<=_0x1c6a3c||(_0x1c6a3c+0x1===_0x1267a1[_0x2b396c(0x39a)]?(this[_0x2b396c(0x200)](),this[_0x2b396c(0x31b)]=null,this[_0x2b396c(0x38f)]=null):this[_0x2b396c(0x38f)]=_0x1267a1[_0x2b396c(0x39a)]),this;}if(_0x1267a1[_0x2b396c(0x39a)]<=this[_0x2b396c(0x2a6)]())return this;throw Error(_0x2b396c(0x1e3));}['onRemoteRej'](_0x5dcbfc){const _0x277b2b=_0x57c5d2;return this[_0x277b2b(0x3de)](!!(_0x5dcbfc!=null&&_0x5dcbfc[_0x277b2b(0x3f2)]));}[_0x57c5d2(0x271)](){return this;}['toggleOffline'](){const _0x2e1f10=_0x57c5d2;return this[_0x2e1f10(0x2ac)][_0x2e1f10(0x362)](F,this[_0x2e1f10(0x3e7)],this[_0x2e1f10(0x3d4)],this['_awaitingChangeset'],this[_0x2e1f10(0x160)],this[_0x2e1f10(0x267)]);}['toggleOnline'](){return this;}[_0x57c5d2(0x3de)](_0x4fc0c7){const _0x5b5ca0=_0x57c5d2;return this[_0x5b5ca0(0x2ac)][_0x5b5ca0(0x362)](P,this[_0x5b5ca0(0x3e7)],this['type'],this[_0x5b5ca0(0x31b)],this[_0x5b5ca0(0x160)],this['_handler'],_0x4fc0c7);}};I=b([y(0x7,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x2f8)])),y(0x8,(0x0,t[_0x57c5d2(0x175)])(e['RevisionService'])),y(0x9,t[_0x57c5d2(0x1c4)]),y(0xa,t['ICommandService']),y(0xb,t['IUndoRedoService']),y(0xc,e[_0x57c5d2(0x3da)]),y(0xd,(0x0,t['Optional'])(C))],I);function be(_0x1fc27c,_0x29d41f,_0x198f5f,_0x7c18da,_0x2f72cc,_0x131df0){const _0x5b3953=_0x57c5d2;return _0x7c18da&&_0x2f72cc[_0x5b3953(0x19d)]?_0x1fc27c[_0x5b3953(0x362)](N,_0x29d41f,_0x198f5f,_0x7c18da,_0x2f72cc,_0x131df0,void 0x0):_0x7c18da?_0x1fc27c[_0x5b3953(0x362)](M,_0x29d41f,_0x198f5f,_0x7c18da,_0x131df0):_0x2f72cc[_0x5b3953(0x19d)]?_0x1fc27c[_0x5b3953(0x362)](j,_0x29d41f,_0x198f5f,_0x2f72cc,_0x131df0):_0x1fc27c[_0x5b3953(0x362)](A,_0x29d41f,_0x198f5f,_0x131df0);}let L=class extends t[_0x57c5d2(0x11d)]{get['state'](){const _0xfe138e=_0x57c5d2;return this[_0xfe138e(0x325)];}constructor(_0x1d9ed9,_0x31c283,_0x1e8ac5,_0x34a98e,_0x3a83d5,_0x2d728e,_0x1b70aa,_0x301328,_0x33046f,_0x42adea,_0x545ad3,_0x1f27b7,_0x2d5291,_0x20f1a1){const _0x2cca0e=_0x57c5d2;super(),this[_0x2cca0e(0x3e7)]=_0x1d9ed9,this[_0x2cca0e(0x1a1)]=_0x31c283,this[_0x2cca0e(0x35d)]=_0x1e8ac5,this[_0x2cca0e(0x2ac)]=_0x34a98e,this[_0x2cca0e(0x25c)]=_0x3a83d5,this[_0x2cca0e(0x3e2)]=_0x2d728e,this['_revisionService']=_0x1b70aa,this[_0x2cca0e(0x11f)]=_0x301328,this[_0x2cca0e(0x2ff)]=_0x33046f,this[_0x2cca0e(0x2c0)]=_0x42adea,this[_0x2cca0e(0x326)]=_0x545ad3,this['_permissionService']=_0x1f27b7,this['_singleActiveUnitService']=_0x2d5291,this[_0x2cca0e(0x2db)]=_0x20f1a1,g(this,_0x2cca0e(0x372),new i[(_0x2cca0e(0x2b3))](null)),g(this,_0x2cca0e(0x1a0),this[_0x2cca0e(0x372)][_0x2cca0e(0x3d2)]()),g(this,_0x2cca0e(0x325),void 0x0),g(this,'_collaborationPaused',!0x1),g(this,_0x2cca0e(0x2f4),''),g(this,'_changesetReqId',0x0),g(this,_0x2cca0e(0x190),this[_0x2cca0e(0x1a0)][_0x2cca0e(0x134)]((0x0,i[_0x2cca0e(0x2ab)])(_0x3f5b07=>_0x3f5b07?_0x3f5b07[_0x2cca0e(0x245)]:_0x2cca0e(0x327)),(0x0,i[_0x2cca0e(0x180)])(0x1))),g(this,_0x2cca0e(0x1df),!0x1),g(this,'_remoteChangesetQueue',[]);}async[_0x57c5d2(0x141)](){if(this['state'])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this['_init']();}[_0x57c5d2(0x266)](){const _0x533a90=_0x57c5d2;return this[_0x533a90(0x335)]=!0x0,(0x0,t[_0x533a90(0x29c)])(()=>{const _0x3d77cf=_0x533a90;this[_0x3d77cf(0x335)]=!0x1,this[_0x3d77cf(0x1c3)]();});}['onLocalMutation'](_0x45ddf0){const _0x175599=_0x57c5d2;this[_0x175599(0x206)](_0x45ddf0);}[_0x57c5d2(0x138)](_0x3ae0e8){const _0x57ff65=_0x57c5d2;this['_state']=_0x3ae0e8,this[_0x57ff65(0x372)]['next'](_0x3ae0e8);}async[_0x57c5d2(0x13c)](){const _0x464fa2=_0x57c5d2;if(this[_0x464fa2(0x138)](await this['_createInitialState']()),this[_0x464fa2(0x1a7)]){var _0x53e9a1;(_0x53e9a1=this[_0x464fa2(0x1a7)])==null||_0x53e9a1[_0x464fa2(0x192)](this[_0x464fa2(0x3e7)]),this[_0x464fa2(0x242)](this[_0x464fa2(0x1a7)]['getUnitStatus$'](this[_0x464fa2(0x3e7)])['subscribe'](_0xa91500=>{const _0x19f11a=_0x464fa2;this[_0x19f11a(0x2c0)]['debug'](_0x19f11a(0x1f3),'editing\x20status\x20changed\x20to',_0xa91500),_0xa91500===0x1?(this[_0x19f11a(0x11f)]['emitEvent']({'id':'OTHER_CLIENT_EDITING'}),this['_permissionService']['updatePermissionPoint'](new r[(_0x19f11a(0x332))](this[_0x19f11a(0x3e7)])['id'],!0x1),this[_0x19f11a(0x252)][_0x19f11a(0x2d1)](!0x1)):(this[_0x19f11a(0x252)][_0x19f11a(0x305)](new r[(_0x19f11a(0x332))](this[_0x19f11a(0x3e7)])['id'],!0x0),this[_0x19f11a(0x252)][_0x19f11a(0x2d1)](!0x0));}));}let _0x24f794=!0x1;return this[_0x464fa2(0x242)](this[_0x464fa2(0x1a1)][_0x464fa2(0x193)][_0x464fa2(0x2b5)](_0x132107=>{const _0x1b9d5b=_0x464fa2;_0x132107===0x3?this[_0x1b9d5b(0x373)](_0x24f794):_0x132107===0x2&&(_0x24f794=!0x0,this[_0x1b9d5b(0x157)]());})),this[_0x464fa2(0x242)](this[_0x464fa2(0x1a1)][_0x464fa2(0x224)]['subscribe'](_0x393160=>{const _0x572c08=_0x464fa2;try{switch(_0x393160[_0x572c08(0x2d7)]){case e['CollaborationEvent'][_0x572c08(0x323)]:this['_onRemoteChangeset']((0x0,e[_0x572c08(0x1e5)])(_0x393160[_0x572c08(0x33e)]));break;case e['CollaborationEvent']['CHANGESET_ACK']:this[_0x572c08(0x296)](_0x393160[_0x572c08(0x33e)]);break;case e[_0x572c08(0x136)][_0x572c08(0x14f)]:this['_onRemoteRejected']();break;case e[_0x572c08(0x136)]['CHANGESET_SHOULD_RETRY']:this[_0x572c08(0x203)](_0x393160[_0x572c08(0x33e)]);break;case e[_0x572c08(0x136)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x572c08(0x188)](_0x393160['data'][_0x572c08(0x395)]['map'](_0x1d3286=>(0x0,e[_0x572c08(0x1e5)])(_0x1d3286)));break;case e['CollaborationEvent']['PERMISSION_REJ']:this[_0x572c08(0x3e3)]({'isPermissionRej':!0x0});break;case e[_0x572c08(0x136)][_0x572c08(0x28d)]:break;}}catch(_0x5e7053){throw console[_0x572c08(0x28a)](_0x572c08(0x293),_0x5e7053),_0x5e7053;}})),this[_0x464fa2(0x325)];}[_0x57c5d2(0x16c)](){const _0x48c43a=_0x57c5d2;this[_0x48c43a(0x1df)]=!0x1;}[_0x57c5d2(0x177)](){const _0x19947c=_0x57c5d2;if(this['_transitionLocked'])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[_0x19947c(0x1df)]=!0x0;}[_0x57c5d2(0x206)](_0x333ac9){const _0x44c8e6=_0x57c5d2;this['_lockTransition'](),this[_0x44c8e6(0x138)](this[_0x44c8e6(0x325)][_0x44c8e6(0x3d5)](_0x333ac9)),this[_0x44c8e6(0x16c)]();}[_0x57c5d2(0x1cc)](_0x2d8e97){const _0x52c36b=_0x57c5d2;if(!(_0x2d8e97[_0x52c36b(0x39a)]<=this[_0x52c36b(0x383)]['getCurrentRevOfUnit'](this[_0x52c36b(0x3e7)]))){if(this['_collaborationPaused']){this[_0x52c36b(0x185)][_0x52c36b(0x357)](_0x2d8e97);return;}this['_applyRemoteChangeset'](_0x2d8e97);}}['_exhaustRemoteChangesetQueue'](){const _0x37dfa1=_0x57c5d2;this[_0x37dfa1(0x185)][_0x37dfa1(0x2ee)](_0x4dfa57=>this[_0x37dfa1(0x174)](_0x4dfa57)),this['_remoteChangesetQueue']=[];}[_0x57c5d2(0x174)](_0x1efef0){const _0x5e10f3=_0x57c5d2;let _0x54fe7f=this[_0x5e10f3(0x25c)]['interceptor'][_0x5e10f3(0x286)](this['_compressMutationService'][_0x5e10f3(0x26e)][_0x5e10f3(0x288)]()[_0x5e10f3(0x2f9)])(_0x1efef0[_0x5e10f3(0x15d)],null)||_0x1efef0['mutations'],_0x275baf={..._0x1efef0,'mutations':_0x54fe7f};this[_0x5e10f3(0x177)](),this[_0x5e10f3(0x138)](this[_0x5e10f3(0x325)]['onRemoteChangeset'](_0x275baf)),this[_0x5e10f3(0x16c)]();}[_0x57c5d2(0x296)](_0x3967e0){const _0x11b320=_0x57c5d2;this[_0x11b320(0x177)](),this[_0x11b320(0x138)](this[_0x11b320(0x325)][_0x11b320(0x336)](_0x3967e0)),this[_0x11b320(0x16c)]();}['_onRemoteRejected'](_0x5194c9){const _0x15baf4=_0x57c5d2;this[_0x15baf4(0x177)](),this['_updateState'](this[_0x15baf4(0x325)][_0x15baf4(0x12e)](_0x5194c9)),this[_0x15baf4(0x16c)]();}[_0x57c5d2(0x203)](_0x1fc0d7){const _0x4abd8c=_0x57c5d2;this[_0x4abd8c(0x177)](),this[_0x4abd8c(0x138)](this['_state'][_0x4abd8c(0x271)](_0x1fc0d7)),this[_0x4abd8c(0x16c)]();}['_onFetchMissResult'](_0x3dbf36){const _0x167053=_0x57c5d2;if(!(this[_0x167053(0x325)]instanceof I))throw TypeError(_0x167053(0x163));let _0x2813cb=_0x3dbf36[_0x167053(0x2ab)](_0x3b4ffa=>{const _0x273d21=_0x167053;let _0x569024=this['_compressMutationService'][_0x273d21(0x26e)]['fetchThroughInterceptors'](this[_0x273d21(0x25c)][_0x273d21(0x26e)]['getInterceptPoints']()['COMPRESS_MUTATION_APPLY'])(_0x3b4ffa[_0x273d21(0x15d)],null)||_0x3b4ffa[_0x273d21(0x15d)];return{..._0x3b4ffa,'mutations':_0x569024};});this['_lockTransition'](),this[_0x167053(0x138)](this[_0x167053(0x325)][_0x167053(0x2b2)](_0x2813cb)),this[_0x167053(0x16c)]();}[_0x57c5d2(0x157)](){const _0x179b36=_0x57c5d2;this[_0x179b36(0x177)](),this[_0x179b36(0x138)](this[_0x179b36(0x325)][_0x179b36(0x340)]()),this['_unlockTransition']();}[_0x57c5d2(0x373)](_0x293de3=!0x1){const _0x468544=_0x57c5d2;this[_0x468544(0x177)](),this[_0x468544(0x138)](this[_0x468544(0x325)][_0x468544(0x396)]()),this[_0x468544(0x16c)]();let _0x1827b2=this[_0x468544(0x325)];_0x293de3&&_0x1827b2 instanceof A&&(this[_0x468544(0x177)](),this[_0x468544(0x138)](_0x1827b2[_0x468544(0x24d)]()),this['_unlockTransition']());}async[_0x57c5d2(0x26c)](){return new Promise(_0x4d83cb=>{const _0x17be82=_0x2622;this[_0x17be82(0x1a1)]['sessionStatus$'][_0x17be82(0x134)]((0x0,i[_0x17be82(0x394)])(0x1))[_0x17be82(0x2b5)](async _0xc9689f=>{const _0x1ed1e7=_0x17be82;_0x4d83cb(await this[_0x1ed1e7(0x322)](_0xc9689f===0x3));});});}[_0x57c5d2(0x257)](){let _0x784c40=this['unitID'];return{'onStateChange':(_0x3f7b93,_0x2be423)=>{const _0x109a34=_0x2622;if(_0x3f7b93!==this[_0x109a34(0x325)])throw Error(_0x109a34(0x1b3)+_0x3f7b93['status']+_0x109a34(0x11a)+_0x2be423[_0x109a34(0x245)]+_0x109a34(0x35b)+this[_0x109a34(0x325)][_0x109a34(0x245)]);this['_updateState'](_0x2be423);},'onSendChangeset':_0x1376d0=>{const _0x5dfdd1=_0x2622;_0x1376d0[_0x5dfdd1(0x38b)]||(_0x1376d0[_0x5dfdd1(0x38b)]=this[_0x5dfdd1(0x2f4)],_0x1376d0[_0x5dfdd1(0x37d)]=++this[_0x5dfdd1(0x2ed)]);let _0x4adfe9={'eventID':e[_0x5dfdd1(0x136)][_0x5dfdd1(0x3ed)],'data':{'unitID':_0x1376d0['unitID'],'unitType':this[_0x5dfdd1(0x35d)],'changeset':_0x1376d0,'memberID':this[_0x5dfdd1(0x1a1)][_0x5dfdd1(0x281)]()}};this[_0x5dfdd1(0x1a1)][_0x5dfdd1(0x169)](_0x4adfe9,this[_0x5dfdd1(0x3e7)]);},'onMissingChangesets':({from:_0x54dbf4,to:_0x585900})=>{const _0x3a6a53=_0x2622;this[_0x3a6a53(0x2c0)][_0x3a6a53(0x3d9)](_0x3a6a53(0x1f3),_0x3a6a53(0x30f)+_0x54dbf4+_0x3a6a53(0x262)+_0x585900);let _0x24d892={'eventID':e[_0x3a6a53(0x136)][_0x3a6a53(0x1d1)],'data':{'unitID':_0x784c40,'unitType':this[_0x3a6a53(0x35d)],'from':_0x54dbf4,'to':_0x585900}};this['session']['send'](_0x24d892,this['unitID']);}};}async['_createInitialStateImpl'](_0x5f1a59){const _0x42b8ba=_0x57c5d2;var _0x52e64e,_0x54e197,_0x385709;let _0xdd73a=await((_0x52e64e=this['_localCacheService'])==null?void 0x0:_0x52e64e[_0x42b8ba(0x294)](this[_0x42b8ba(0x3e7)])),_0x2934b6=(_0x54e197=_0xdd73a==null?void 0x0:_0xdd73a[_0x42b8ba(0x15d)])==null?[]:_0x54e197,_0x4b7c1d=(_0x385709=_0xdd73a==null?void 0x0:_0xdd73a[_0x42b8ba(0x287)])==null?null:_0x385709,_0xcf5b76=!!(_0x4b7c1d!=null&&_0x4b7c1d[_0x42b8ba(0x38b)])&&!!(_0x4b7c1d!=null&&_0x4b7c1d[_0x42b8ba(0x37d)]);this[_0x42b8ba(0x2f4)]=_0xcf5b76?_0x4b7c1d['sid']:(0x0,e[_0x42b8ba(0x11e)])(),this[_0x42b8ba(0x2ed)]=_0xcf5b76?_0x4b7c1d[_0x42b8ba(0x37d)]:0x0;let _0x143cf3=this[_0x42b8ba(0x3e7)];try{this[_0x42b8ba(0x140)](_0x4b7c1d,_0x2934b6);}catch(_0x43408f){this['_logService']['error'](_0x43408f);}let _0x37d7da=this[_0x42b8ba(0x257)]();if(_0x5f1a59){let _0x4c41b9=be(this['_injector'],_0x143cf3,this['_type'],_0x4b7c1d,_0x2934b6,_0x37d7da);return _0x4c41b9 instanceof j?_0x4c41b9[_0x42b8ba(0x248)]():(_0x4c41b9 instanceof N||_0x4c41b9 instanceof M)&&_0x4c41b9[_0x42b8ba(0x3a3)](),_0x4c41b9;}return this[_0x42b8ba(0x2ac)]['createInstance'](F,_0x143cf3,this[_0x42b8ba(0x35d)],_0x4b7c1d,_0x2934b6,_0x37d7da);}[_0x57c5d2(0x140)](_0x5159f6,_0x20aa62){const _0x4a7ccd=_0x57c5d2;var _0x2eabe3,_0x40de77;let _0x405cb7=this[_0x4a7ccd(0x25c)][_0x4a7ccd(0x26e)][_0x4a7ccd(0x286)](this['_compressMutationService']['interceptor']['getInterceptPoints']()[_0x4a7ccd(0x2f9)]);(_0x2eabe3=_0x405cb7((_0x5159f6==null?void 0x0:_0x5159f6[_0x4a7ccd(0x15d)])||[],null))==null||_0x2eabe3[_0x4a7ccd(0x2ee)](_0x45506b=>this['_commandService'][_0x4a7ccd(0x2dd)](_0x45506b['id'],_0x45506b[_0x4a7ccd(0x2e0)])),(_0x40de77=_0x405cb7(_0x20aa62||[],null))==null||_0x40de77['forEach'](_0x1ca451=>this[_0x4a7ccd(0x326)]['executeCommand'](_0x1ca451['id'],_0x1ca451[_0x4a7ccd(0x2e0)]));}};L=b([y(0x3,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x2f8)])),y(0x4,(0x0,t[_0x57c5d2(0x175)])(e['CompressMutationService'])),y(0x5,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x178)])),y(0x6,(0x0,t['Inject'])(e['RevisionService'])),y(0x7,(0x0,t[_0x57c5d2(0x175)])(_)),y(0x8,t['IUniverInstanceService']),y(0x9,t[_0x57c5d2(0x1c4)]),y(0xa,t[_0x57c5d2(0x25f)]),y(0xb,t['IPermissionService']),y(0xc,(0x0,t[_0x57c5d2(0x342)])(T)),y(0xd,(0x0,t[_0x57c5d2(0x342)])(C))],L);let R=class extends L{constructor(_0x50109e,_0x33df6f,_0x3bd35e,_0x15d301,_0x1142eb,_0x44fa0d,_0x40595b,_0x3ca507,_0x395e77,_0xbc8e51,_0x147926,_0x3c45a6,_0x2343d1,_0x53f9bd){const _0xc396e3=_0x57c5d2;super(_0x50109e,_0x3bd35e,_0x33df6f,_0x15d301,_0x1142eb,_0x44fa0d,_0x40595b,_0x3ca507,_0x395e77,_0xbc8e51,_0x147926,_0x3c45a6,_0x2343d1,_0x53f9bd),this[_0xc396e3(0x3e7)]=_0x50109e,this[_0xc396e3(0x3d4)]=_0x33df6f,g(this,_0xc396e3(0x329),null);}[_0x57c5d2(0x390)](_0x3750bf){const _0x2eff83=_0x57c5d2;this[_0x2eff83(0x329)]=_0x3750bf;}[_0x57c5d2(0x173)](){const _0x39e6d5=_0x57c5d2;this[_0x39e6d5(0x329)]=null,super['dispose']();}[_0x57c5d2(0x257)](){const _0x2d4010=_0x57c5d2;let _0xc6361b=super[_0x2d4010(0x257)]();return _0xc6361b['onTransformIME']=_0x10978f=>{const _0xaa87ca=_0x2d4010;var _0x392dc6,_0x57e39f;return(_0x392dc6=this['_handlerCallback'])==null||(_0x57e39f=_0x392dc6[_0xaa87ca(0x306)])==null?void 0x0:_0x57e39f[_0xaa87ca(0x1ed)](_0x392dc6,_0x10978f);},_0xc6361b[_0x2d4010(0x3b0)]=_0x123702=>{const _0x255711=_0x2d4010;var _0x5f4ec9,_0x17aedb;return(_0x5f4ec9=this[_0x255711(0x329)])==null||(_0x17aedb=_0x5f4ec9[_0x255711(0x3b0)])==null?void 0x0:_0x17aedb[_0x255711(0x1ed)](_0x5f4ec9,_0x123702);},_0xc6361b[_0x2d4010(0x158)]=_0x2ebea0=>{const _0x402d71=_0x2d4010;var _0x2a5bb1,_0xbe3ac7;return(_0x2a5bb1=this[_0x402d71(0x329)])==null||(_0xbe3ac7=_0x2a5bb1[_0x402d71(0x158)])==null?void 0x0:_0xbe3ac7[_0x402d71(0x1ed)](_0x2a5bb1,_0x2ebea0);},_0xc6361b['onSyncEditingCollabCursor']=_0x89a8e3=>{const _0x1bcbb1=_0x2d4010;var _0x1345b3,_0x476b05;return(_0x1345b3=this[_0x1bcbb1(0x329)])==null||(_0x476b05=_0x1345b3[_0x1bcbb1(0x319)])==null?void 0x0:_0x476b05[_0x1bcbb1(0x1ed)](_0x1345b3,_0x89a8e3);},_0xc6361b[_0x2d4010(0x19f)]=_0xbbb490=>{const _0x27ea24=_0x2d4010;var _0x494283,_0x47ffe4,_0x25804f;if(!((_0x494283=this[_0x27ea24(0x329)])!=null&&_0x494283[_0x27ea24(0x19f)]))throw Error('onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x47ffe4=this[_0x27ea24(0x329)])==null||(_0x25804f=_0x47ffe4['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x25804f['call'](_0x47ffe4,_0xbbb490);},_0xc6361b[_0x2d4010(0x30d)]=_0x573500=>{const _0x560a85=_0x2d4010;var _0x445f6b,_0xd341c1,_0x2e312d;if(!((_0x445f6b=this[_0x560a85(0x329)])!=null&&_0x445f6b[_0x560a85(0x30d)]))throw Error(_0x560a85(0x2dc));return(_0xd341c1=this[_0x560a85(0x329)])==null||(_0x2e312d=_0xd341c1[_0x560a85(0x30d)])==null?void 0x0:_0x2e312d[_0x560a85(0x1ed)](_0xd341c1,_0x573500);},_0xc6361b;}async[_0x57c5d2(0x13c)](){const _0x595834=_0x57c5d2;let _0x1052b1=await super[_0x595834(0x13c)]();return this['disposeWithMe'](this['_commandService'][_0x595834(0x2e4)]((_0x4b4310,_0x476281)=>{const _0x4a6c64=_0x595834;if(_0x4b4310['type']!==t[_0x4a6c64(0x30a)][_0x4a6c64(0x28c)]||_0x476281!=null&&_0x476281[_0x4a6c64(0x3b2)]||_0x476281!=null&&_0x476281[_0x4a6c64(0x1ef)]||_0x4b4310['id']===n[_0x4a6c64(0x275)]['id'])return;let _0x1384a1=_0x4b4310[_0x4a6c64(0x2e0)];if((_0x1384a1==null?void 0x0:_0x1384a1[_0x4a6c64(0x241)])!==this[_0x4a6c64(0x3e7)])return;let _0x3562f2=_0x4b4310,_0x584962=this[_0x4a6c64(0x25c)][_0x4a6c64(0x26e)][_0x4a6c64(0x286)](this[_0x4a6c64(0x25c)][_0x4a6c64(0x26e)][_0x4a6c64(0x288)]()[_0x4a6c64(0x2e8)])([_0x3562f2],this[_0x4a6c64(0x2ff)])||[_0x3562f2];this['_onLocalMutation'](_0x584962[0x0]);})),_0x1052b1;}};R=b([y(0x3,(0x0,t['Inject'])(t['Injector'])),y(0x4,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x1db)])),y(0x5,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x178)])),y(0x6,(0x0,t['Inject'])(e[_0x57c5d2(0x387)])),y(0x7,(0x0,t[_0x57c5d2(0x175)])(_)),y(0x8,t[_0x57c5d2(0x19e)]),y(0x9,t[_0x57c5d2(0x1c4)]),y(0xa,t['ICommandService']),y(0xb,t[_0x57c5d2(0x151)]),y(0xc,(0x0,t[_0x57c5d2(0x342)])(T)),y(0xd,(0x0,t[_0x57c5d2(0x342)])(C))],R);let z=class extends L{constructor(_0x54aca9,_0x298427,_0x421931,_0x4255ba,_0x1b9e06,_0x418c3d,_0x128e9c,_0x28b06b,_0x4c4edf,_0x446747,_0x37a834,_0x4b4315,_0x3ca1f2,_0x40aee6,_0x1c0d04){const _0x1f78a0=_0x57c5d2;super(_0x54aca9,_0x421931,_0x298427,_0x4255ba,_0x1b9e06,_0x418c3d,_0x128e9c,_0x4c4edf,_0x446747,_0x37a834,_0x4b4315,_0x3ca1f2,_0x40aee6,_0x1c0d04),this[_0x1f78a0(0x3e7)]=_0x54aca9,this[_0x1f78a0(0x3d4)]=_0x298427,this['_sheetTransformSelectionsService']=_0x28b06b;}['_createHandler'](){const _0x59cdeb=_0x57c5d2;let _0x3d3314=super[_0x59cdeb(0x257)]();return _0x3d3314[_0x59cdeb(0x158)]=_0x2ce3e5=>this[_0x59cdeb(0x2ef)][_0x59cdeb(0x250)](_0x2ce3e5),_0x3d3314;}async[_0x57c5d2(0x13c)](){const _0x2605ac=_0x57c5d2;let _0x261264=await super[_0x2605ac(0x13c)]();return this[_0x2605ac(0x242)](this[_0x2605ac(0x326)]['onMutationExecutedForCollab']((_0x5b546f,_0x54a9ed)=>{const _0x3a88d9=_0x2605ac;if(_0x5b546f['type']!==t[_0x3a88d9(0x30a)]['MUTATION']||_0x54a9ed!=null&&_0x54a9ed[_0x3a88d9(0x3b2)]||_0x54a9ed!=null&&_0x54a9ed[_0x3a88d9(0x1ef)])return;let _0x3f5a0f=_0x5b546f[_0x3a88d9(0x2e0)];if((_0x3f5a0f==null?void 0x0:_0x3f5a0f[_0x3a88d9(0x241)])!==this[_0x3a88d9(0x3e7)])return;let _0x45af5a=_0x5b546f,_0x8fbd9a=this['_compressMutationService']['interceptor'][_0x3a88d9(0x286)](this[_0x3a88d9(0x25c)][_0x3a88d9(0x26e)][_0x3a88d9(0x288)]()[_0x3a88d9(0x2e8)])([_0x45af5a],this['_univerInstanceService'])||[_0x45af5a];this[_0x3a88d9(0x206)](_0x8fbd9a[0x0]);})),_0x261264;}};z=b([y(0x3,(0x0,t['Inject'])(t[_0x57c5d2(0x2f8)])),y(0x4,(0x0,t[_0x57c5d2(0x175)])(e[_0x57c5d2(0x1db)])),y(0x5,(0x0,t['Inject'])(t[_0x57c5d2(0x178)])),y(0x6,(0x0,t[_0x57c5d2(0x175)])(e['RevisionService'])),y(0x7,(0x0,t[_0x57c5d2(0x175)])(w)),y(0x8,(0x0,t[_0x57c5d2(0x175)])(_)),y(0x9,t[_0x57c5d2(0x19e)]),y(0xa,t[_0x57c5d2(0x1c4)]),y(0xb,t[_0x57c5d2(0x25f)]),y(0xc,t[_0x57c5d2(0x151)]),y(0xd,(0x0,t['Optional'])(T)),y(0xe,(0x0,t[_0x57c5d2(0x342)])(C))],z);const xe=(0x0,t[_0x57c5d2(0x234)])(_0x57c5d2(0x3c4));function Se(_0x591ceb){const _0x37ae1e=_0x57c5d2;let _0x3888a7=_0x591ceb[_0x37ae1e(0x33e)],_0xbac829=JSON[_0x37ae1e(0x16b)](_0x3888a7);switch(_0xbac829[_0x37ae1e(0x131)]){case a[_0x37ae1e(0x201)]['HEARTBEAT']:case a[_0x37ae1e(0x201)][_0x37ae1e(0x247)]:{let _0x3d1e14=_0xbac829['infoRsp'];return{..._0xbac829,'data':_0x3d1e14,'cmd':_0xbac829[_0x37ae1e(0x131)]};}case a[_0x37ae1e(0x201)]['JOIN']:{let _0x33c2b3=_0xbac829[_0x37ae1e(0x18c)];return{..._0xbac829,'data':_0x33c2b3,'cmd':_0xbac829[_0x37ae1e(0x131)]};}case a[_0x37ae1e(0x201)][_0x37ae1e(0x355)]:{let _0x51e9e7=_0xbac829[_0x37ae1e(0x18d)];switch(_0x51e9e7[_0x37ae1e(0x2d7)]){case e[_0x37ae1e(0x136)]['PERMISSION_REJ']:var _0x374444;return{..._0xbac829,'data':{..._0x51e9e7,'data':(_0x374444=_0x51e9e7[_0x37ae1e(0x1aa)])==null?void 0x0:_0x374444['cs']},'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)][_0x37ae1e(0x2d6)]:var _0x3e5672;return{..._0xbac829,'data':{..._0x51e9e7,'data':(_0x3e5672=_0x51e9e7['csAckEvent'])==null?void 0x0:_0x3e5672['cs']},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e[_0x37ae1e(0x136)][_0x37ae1e(0x323)]:var _0x4a2789;return{..._0xbac829,'data':{..._0x51e9e7,'data':(_0x4a2789=_0x51e9e7['newCsEvent'])==null?void 0x0:_0x4a2789['cs']},'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)][_0x37ae1e(0x14f)]:var _0x30e1b2;return{..._0xbac829,'data':{..._0x51e9e7,'data':(_0x30e1b2=_0x51e9e7[_0x37ae1e(0x385)])==null?void 0x0:_0x30e1b2['cs']},'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)]['CHANGESET_SHOULD_RETRY']:var _0x5e7119;return{..._0xbac829,'data':{..._0x51e9e7,'data':(_0x5e7119=_0x51e9e7[_0x37ae1e(0x2e1)])==null?void 0x0:_0x5e7119['cs']},'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)][_0x37ae1e(0x20f)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x24b)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e[_0x37ae1e(0x136)][_0x37ae1e(0x3e8)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x219)]},'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)]['USERS_LEAVE']:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7['leaveEvent']},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x367)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e['CollaborationEvent'][_0x37ae1e(0x2b6)]:case e[_0x37ae1e(0x136)][_0x37ae1e(0x28e)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x3c0)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e[_0x37ae1e(0x136)][_0x37ae1e(0x2fa)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x367)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e['CollaborationEvent']['MSG_FOR_ERROR']:return{..._0xbac829,'data':_0x51e9e7,'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)]['COMMENT_UPDATE']:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x2ea)]},'cmd':_0xbac829['cmd']};case e[_0x37ae1e(0x136)][_0x37ae1e(0x22f)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x211)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e['CollaborationEvent'][_0x37ae1e(0x115)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x26b)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};case e[_0x37ae1e(0x136)][_0x37ae1e(0x28d)]:return{..._0xbac829,'data':{..._0x51e9e7,'data':_0x51e9e7[_0x37ae1e(0x1e9)]},'cmd':_0xbac829[_0x37ae1e(0x131)]};default:return _0xbac829;}}default:return _0xbac829;}}function Ce(_0x4bb548){const _0x38a771=_0x57c5d2;switch(_0x4bb548['cmd']){case a[_0x38a771(0x201)][_0x38a771(0x22c)]:case a[_0x38a771(0x201)][_0x38a771(0x247)]:return JSON[_0x38a771(0x14e)]({'cmd':_0x4bb548[_0x38a771(0x131)],'routeKey':_0x4bb548[_0x38a771(0x3df)]});case a[_0x38a771(0x201)]['INGEST']:{let _0x471a95;switch(_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x2d7)]){case e[_0x38a771(0x136)][_0x38a771(0x20f)]:_0x471a95={'eventID':e[_0x38a771(0x136)][_0x38a771(0x20f)],'updateCursorEvent':_0x4bb548['data'][_0x38a771(0x33e)]};break;case e[_0x38a771(0x136)]['USERS_LEAVE']:_0x471a95={'eventID':e[_0x38a771(0x136)]['USERS_LEAVE'],'leaveEvent':_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x33e)]};break;case e[_0x38a771(0x136)][_0x38a771(0x3e8)]:_0x471a95={'eventID':e[_0x38a771(0x136)][_0x38a771(0x3e8)],'joinEvent':_0x4bb548['data'][_0x38a771(0x33e)]};break;case e[_0x38a771(0x136)][_0x38a771(0x1ea)]:_0x471a95={'eventID':e[_0x38a771(0x136)][_0x38a771(0x1ea)],'liveShareNewHost':_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x33e)]};break;case e[_0x38a771(0x136)][_0x38a771(0x28e)]:_0x471a95={'eventID':e[_0x38a771(0x136)][_0x38a771(0x28e)],'liveShareOperation':_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x33e)]};break;case e[_0x38a771(0x136)][_0x38a771(0x2fa)]:_0x471a95={'eventID':e[_0x38a771(0x136)][_0x38a771(0x2fa)],'liveShareTerminate':_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x33e)]};break;case e['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x471a95={'eventID':e[_0x38a771(0x136)][_0x38a771(0x2cb)],'liveShareRequestHost':_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x33e)]};break;case e[_0x38a771(0x136)][_0x38a771(0x2b6)]:_0x471a95={'eventID':e['CollaborationEvent'][_0x38a771(0x2b6)]};break;default:_0x471a95={'eventID':_0x4bb548[_0x38a771(0x33e)][_0x38a771(0x2d7)]};}return JSON[_0x38a771(0x14e)]({'cmd':_0x4bb548[_0x38a771(0x131)],'routeKey':_0x4bb548['routeKey'],'collaMsg':_0x471a95});}case a[_0x38a771(0x201)]['JOIN']:return JSON[_0x38a771(0x14e)]({'cmd':_0x4bb548['cmd'],'routeKey':_0x4bb548['routeKey'],'joinReq':_0x4bb548[_0x38a771(0x33e)]});case a['CombCmd'][_0x38a771(0x1ba)]:return JSON[_0x38a771(0x14e)]({'cmd':_0x4bb548[_0x38a771(0x131)],'routeKey':_0x4bb548[_0x38a771(0x3df)],'leaveReq':_0x4bb548['data']});default:throw Error(_0x38a771(0x20d));}}const B=(0x0,t[_0x57c5d2(0x234)])(_0x57c5d2(0x225));function we(_0x3d37f4,_0x37c7a6,_0x18d600){const _0x4e37fd=_0x57c5d2;return _0x3d37f4+'/'+_0x37c7a6+_0x4e37fd(0x381)+_0x18d600+'/new_changes';}let V=class extends t[_0x57c5d2(0x2a1)]{constructor(_0x49fec9,_0x3e0622,_0x4d3415,_0x14934a,_0x50827d){const _0x588fa3=_0x57c5d2;super(),this['_injector']=_0x49fec9,this[_0x588fa3(0x1af)]=_0x3e0622,this[_0x588fa3(0x228)]=_0x4d3415,this[_0x588fa3(0x2c0)]=_0x14934a,this['_snapshotServerService']=_0x50827d;}[_0x57c5d2(0x114)](_0x4b4467){const _0x12a580=_0x57c5d2;let _0x1ef86d=this['_injector'][_0x12a580(0x337)](c['ISocketService']);if(!_0x1ef86d)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x57df22=_0x1ef86d[_0x12a580(0x1f6)](_0x4b4467);if(!_0x57df22)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x3b3ca4=new t[(_0x12a580(0x22e))](),_0x36c170=new i[(_0x12a580(0x3dc))]();_0x3b3ca4[_0x12a580(0x1b4)](_0x57df22[_0x12a580(0x2f2)][_0x12a580(0x2b5)](_0x43987d=>_0x36c170[_0x12a580(0x227)](_0x43987d))),_0x3b3ca4['add']((0x0,t[_0x12a580(0x29c)])(()=>_0x36c170[_0x12a580(0x273)]()));let _0x2dd232=new i['Subject']();_0x3b3ca4[_0x12a580(0x1b4)](_0x57df22[_0x12a580(0x1d4)][_0x12a580(0x2b5)](_0x52a5ec=>_0x2dd232[_0x12a580(0x227)](_0x52a5ec))),_0x3b3ca4[_0x12a580(0x1b4)]((0x0,t['toDisposable'])(()=>_0x2dd232[_0x12a580(0x273)]()));let _0x38332c=new i['Subject']();_0x3b3ca4[_0x12a580(0x1b4)](_0x57df22['message$'][_0x12a580(0x2b5)](_0x934c3d=>{const _0x57bab6=_0x12a580;let _0x3b3333=Se(_0x934c3d);_0x38332c[_0x57bab6(0x227)](_0x3b3333);})),_0x3b3ca4[_0x12a580(0x1b4)]((0x0,t[_0x12a580(0x29c)])(()=>_0x38332c[_0x12a580(0x273)]()));let _0x44d944,_0x41f2c6=()=>{const _0x50f8f0=_0x12a580;_0x2dd232[_0x50f8f0(0x227)](new Event(_0x50f8f0(0x18a))),_0x36c170[_0x50f8f0(0x227)](new Event('connection\x20error')),_0x44d944[_0x50f8f0(0x3ca)]();};return _0x44d944={'memberID':'','close$':_0x36c170[_0x12a580(0x3d2)](),'error$':_0x2dd232['asObservable'](),'open$':_0x57df22[_0x12a580(0x132)],'message$':_0x38332c[_0x12a580(0x3d2)](),'send':_0x3da86e=>{const _0x1252cf=_0x12a580;if(_0x3da86e[_0x1252cf(0x131)]===a[_0x1252cf(0x201)]['INGEST']){if(_0x3da86e[_0x1252cf(0x33e)][_0x1252cf(0x2d7)]===e[_0x1252cf(0x136)]['SUBMIT_CHANGESET']){this[_0x1252cf(0x39d)](_0x44d944,_0x3da86e['data'])[_0x1252cf(0x2c1)](_0x5c2a91=>{const _0x12a510=_0x1252cf;this[_0x12a510(0x2c0)]['error'](_0x5c2a91),_0x41f2c6();});return;}if(_0x3da86e[_0x1252cf(0x33e)][_0x1252cf(0x2d7)]===e[_0x1252cf(0x136)][_0x1252cf(0x1d1)]){let _0xc9bdc2=_0x3da86e[_0x1252cf(0x33e)];this[_0x1252cf(0x21f)](_0xc9bdc2)[_0x1252cf(0x290)](_0x150c3a=>{const _0x16941f=_0x1252cf;_0x38332c[_0x16941f(0x227)]({'cmd':a[_0x16941f(0x201)][_0x16941f(0x355)],'code':a[_0x16941f(0x1a4)]['OK'],'routeKey':_0xc9bdc2[_0x16941f(0x33e)][_0x16941f(0x3e7)],'routeType':'','data':{'eventID':e[_0x16941f(0x136)][_0x16941f(0x129)],'data':{'changesets':_0x150c3a}}});})[_0x1252cf(0x2c1)](_0x3de1f5=>{const _0x2c7d09=_0x1252cf;this[_0x2c7d09(0x2c0)][_0x2c7d09(0x28a)](_0x3de1f5),_0x41f2c6();});return;}}_0x57df22[_0x1252cf(0x169)](Ce(_0x3da86e));},'close':()=>{const _0xc7c6bc=_0x12a580;_0x57df22['close'](),_0x3b3ca4[_0xc7c6bc(0x173)]();}},_0x44d944;}async[_0x57c5d2(0x39d)](_0x5796c5,_0x18074f){const _0x2ba234=_0x57c5d2;var _0x591d18;let {unitType:_0x1aefc9,unitID:_0x2213ab,changeset:_0x37321d}=_0x18074f[_0x2ba234(0x33e)],_0x38ec4e={'unitID':_0x2213ab,'memberID':_0x5796c5[_0x2ba234(0x2c4)],'type':_0x1aefc9,'changeset':(0x0,e[_0x2ba234(0x27d)])(_0x37321d)},_0x2f3b75=this['_configService'][_0x2ba234(0x269)](E),_0x564b13=we((_0x591d18=_0x2f3b75==null?void 0x0:_0x2f3b75[_0x2ba234(0x16d)])==null?_0x2ba234(0x221):_0x591d18,_0x1aefc9,_0x2213ab);try{await this['_httpService'][_0x2ba234(0x3a4)](_0x564b13,{'body':_0x38ec4e});}catch(_0x2440b3){throw this['_logService'][_0x2ba234(0x28a)](_0x2ba234(0x21e),_0x2ba234(0x3a6)),_0x2440b3;}}async[_0x57c5d2(0x21f)](_0x5c5c93){const _0x2e0b27=_0x57c5d2;let {unitID:_0x2659a4,from:_0x4125f5,to:_0x1f8beb,unitType:_0x76a64f}=_0x5c5c93['data'];return(await this['_snapshotServerService'][_0x2e0b27(0x3ec)]({'metadata':void 0x0},{'unitID':_0x2659a4,'type':_0x76a64f,'from':_0x4125f5,'to':_0x1f8beb}))[_0x2e0b27(0x395)]['map'](_0x5e6f1f=>((_0x5e6f1f[_0x2e0b27(0x15d)]===null||_0x5e6f1f['mutations']===void 0x0)&&(_0x5e6f1f[_0x2e0b27(0x15d)]=[]),_0x5e6f1f));}};V=b([y(0x0,(0x0,t[_0x57c5d2(0x175)])(t['Injector'])),y(0x1,(0x0,t[_0x57c5d2(0x175)])(c[_0x57c5d2(0x311)])),y(0x2,t[_0x57c5d2(0x313)]),y(0x3,t[_0x57c5d2(0x1c4)]),y(0x4,e[_0x57c5d2(0x2a3)])],V);let H=class extends t['Disposable']{get['_socket'](){const _0x28a3f7=_0x57c5d2;return this['_socket$'][_0x28a3f7(0x32c)]();}constructor(_0x3359a2,_0x5904ff,_0x543794,_0x4ef18e,_0x573eaf,_0x570b5a){const _0x2ed090=_0x57c5d2;super(),this[_0x2ed090(0x2ac)]=_0x3359a2,this[_0x2ed090(0x2c0)]=_0x5904ff,this[_0x2ed090(0x228)]=_0x543794,this[_0x2ed090(0x388)]=_0x4ef18e,this[_0x2ed090(0x205)]=_0x573eaf,this[_0x2ed090(0x212)]=_0x570b5a,g(this,_0x2ed090(0x3a5),new i[(_0x2ed090(0x2b3))](void 0x0)),g(this,'socket$',this['_socket$'][_0x2ed090(0x3d2)]()),g(this,_0x2ed090(0x246),null),g(this,_0x2ed090(0x2b0),new Map()),g(this,'_status$',new i['BehaviorSubject'](0x0)),g(this,'status$',this[_0x2ed090(0x34b)]['asObservable']()),g(this,'_socketReady',!0x1),g(this,_0x2ed090(0x361),void 0x0),g(this,_0x2ed090(0x1a2),0x0),g(this,'_sendHeartbeatTimer',void 0x0),g(this,_0x2ed090(0x2ad),void 0x0),this[_0x2ed090(0x344)]();}[_0x57c5d2(0x344)](){const _0x3d88af=_0x57c5d2;this[_0x3d88af(0x212)]&&this['disposeWithMe'](this[_0x3d88af(0x212)][_0x3d88af(0x253)][_0x3d88af(0x2b5)](_0x5ea7cd=>{const _0x32020f=_0x3d88af;_0x5ea7cd&&!this['_socket']&&this[_0x32020f(0x312)](),_0x5ea7cd||this['_onOffline']();}));}[_0x57c5d2(0x173)](){const _0x79f6d0=_0x57c5d2;super[_0x79f6d0(0x173)](),this['_clearRetryConnectingTimer'](),this[_0x79f6d0(0x239)](),this[_0x79f6d0(0x1d6)](),this[_0x79f6d0(0x2b0)][_0x79f6d0(0x2ee)](_0x1e65f5=>_0x1e65f5[_0x79f6d0(0x173)]()),this[_0x79f6d0(0x2b0)][_0x79f6d0(0x186)](),this['_status$']['complete']();}async[_0x57c5d2(0x1ad)](_0x88b9b9){const _0x698b57=_0x57c5d2;if(this['_sessions'][_0x698b57(0x35f)](_0x88b9b9))return this[_0x698b57(0x2b0)][_0x698b57(0x337)](_0x88b9b9);this['_tryEnsureSocket']();let _0x10fdbd=this[_0x698b57(0x2ac)]['createInstance'](S,_0x88b9b9,this[_0x698b57(0x3a5)][_0x698b57(0x3d2)]());return this[_0x698b57(0x2b0)][_0x698b57(0x314)](_0x88b9b9,_0x10fdbd),_0x10fdbd;}[_0x57c5d2(0x1be)](_0x19b1fd){const _0x2fdb78=_0x57c5d2;let _0x1f3b56=this[_0x2fdb78(0x2b0)][_0x2fdb78(0x337)](_0x19b1fd);if(_0x1f3b56&&(this[_0x2fdb78(0x2b0)][_0x2fdb78(0x31e)](_0x19b1fd),_0x1f3b56[_0x2fdb78(0x3ca)]()),!this[_0x2fdb78(0x2b0)]['size']){var _0x2438dd;(_0x2438dd=this[_0x2fdb78(0x113)])==null||_0x2438dd['close']();}}[_0x57c5d2(0x312)](){const _0x3eee18=_0x57c5d2;this['_retryCount']=0x0,this[_0x3eee18(0x3c6)](),this['_tryReconnect']();}[_0x57c5d2(0x3c6)](){const _0x3e5b4a=_0x57c5d2;this[_0x3e5b4a(0x361)]!=null&&(clearTimeout(this[_0x3e5b4a(0x361)]),this[_0x3e5b4a(0x361)]=null);}async[_0x57c5d2(0x2aa)](){const _0x2e4b70=_0x57c5d2;var _0x44e5c2;let _0x101ae0=this[_0x2e4b70(0x228)][_0x2e4b70(0x269)](E),_0x278de5=(_0x44e5c2=_0x101ae0==null?void 0x0:_0x101ae0[_0x2e4b70(0x3cc)])==null?p:_0x44e5c2,_0x5ee6e4=await this[_0x2e4b70(0x388)][_0x2e4b70(0x1f6)](_0x278de5);return this['_candidateSocket']=_0x5ee6e4,_0x5ee6e4;}async['_tryEnsureSocket'](){const _0x349aa7=_0x57c5d2;try{var _0x2fb2e4,_0x3829c1;let _0x4283a8=(_0x2fb2e4=(_0x3829c1=this[_0x349aa7(0x113)])==null?this['_candidateSocket']:_0x3829c1)==null?await this['_createSocket']():_0x2fb2e4;if(_0x4283a8){let _0x53c787=_0x4283a8[_0x349aa7(0x169)];_0x4283a8[_0x349aa7(0x169)]=_0x310976=>(_0x310976[_0x349aa7(0x131)]!==a[_0x349aa7(0x201)][_0x349aa7(0x1ba)]&&this[_0x349aa7(0x359)](),_0x53c787[_0x349aa7(0x23f)](_0x4283a8,[_0x310976])),_0x4283a8['message$']['subscribe'](_0x5e3c3a=>this['_onMessage'](_0x4283a8,_0x5e3c3a)),_0x4283a8[_0x349aa7(0x1d4)][_0x349aa7(0x134)]((0x0,s[_0x349aa7(0x394)])(0x1))['subscribe'](_0x15ab2c=>this['_logService'][_0x349aa7(0x28a)](_0x349aa7(0x21c),_0x15ab2c)),_0x4283a8[_0x349aa7(0x132)][_0x349aa7(0x134)]((0x0,s[_0x349aa7(0x394)])(0x1))['subscribe'](()=>{this['_onConnectionOpen'](_0x4283a8);}),_0x4283a8['close$'][_0x349aa7(0x134)]((0x0,s[_0x349aa7(0x394)])(0x1))[_0x349aa7(0x2b5)](_0x23bdba=>{const _0x4a4764=_0x349aa7;this[_0x4a4764(0x2c0)][_0x4a4764(0x3d9)]('[CollaborationSessionService]',_0x4a4764(0x277),_0x23bdba),this['_onConnectionFailed']();});}}catch(_0x42a988){this[_0x349aa7(0x2c0)]['error'](_0x42a988),this[_0x349aa7(0x230)]();}}[_0x57c5d2(0x1b5)](_0x3dc6e1){const _0xac25cc=_0x57c5d2;this['_logService'][_0xac25cc(0x3d9)](_0xac25cc(0x303),'socket\x20open.'),_0x3dc6e1[_0xac25cc(0x169)]({'cmd':a['CombCmd'][_0xac25cc(0x247)]}),this['_rescheduleHeartbeat']();}[_0x57c5d2(0x164)](){const _0x5349b6=_0x57c5d2;this[_0x5349b6(0x33a)]=!0x1,this['_candidateSocket']=null,this[_0x5349b6(0x34b)][_0x5349b6(0x227)](0x2),this['_socket$'][_0x5349b6(0x227)](null),this[_0x5349b6(0x239)](),this['_clearHeartbeatTimer']();}[_0x57c5d2(0x230)](){const _0x35658e=_0x57c5d2;var _0x1469c4;this[_0x35658e(0x164)](),this[_0x35658e(0x1a2)]<((_0x1469c4=this[_0x35658e(0x228)][_0x35658e(0x269)](_0x35658e(0x338)))==null?0x3:_0x1469c4)?(this[_0x35658e(0x205)][_0x35658e(0x1d2)]({'id':_0x35658e(0x20a)}),this['_tryReconnect']()):this[_0x35658e(0x205)]['emitEvent']({'id':_0x35658e(0x297)});}[_0x57c5d2(0x2f3)](){const _0x21c6db=_0x57c5d2;var _0x33edf6;let _0x16c7b9=this[_0x21c6db(0x1a2)],_0x139c50=this[_0x21c6db(0x228)][_0x21c6db(0x269)](E),_0xb6b86=_0x16c7b9===0x0?0x0:((_0x33edf6=_0x139c50==null?void 0x0:_0x139c50['retryConnectingInterval'])==null?0x4e20:_0x33edf6)*0x2**_0x16c7b9;this['_retryConnectingTimer']=setTimeout(()=>{const _0x11640e=_0x21c6db;clearTimeout(this[_0x11640e(0x361)]),this['_retryConnectingTimer']=null,this[_0x11640e(0x399)]();},_0xb6b86),this[_0x21c6db(0x1a2)]+=0x1;}['_onMessage'](_0x1f315a,_0x2b10a6){const _0x409a8b=_0x57c5d2;let {cmd:_0x588153}=_0x2b10a6;_0x588153===a[_0x409a8b(0x201)]['HELLO']&&!this[_0x409a8b(0x33a)]&&(_0x1f315a[_0x409a8b(0x2c4)]=_0x2b10a6[_0x409a8b(0x33e)][_0x409a8b(0x2c4)],this[_0x409a8b(0x3a5)][_0x409a8b(0x227)](_0x1f315a),this[_0x409a8b(0x34b)][_0x409a8b(0x227)](0x3),this['_socketReady']=!0x0,this['_candidateSocket']=null),_0x588153===a[_0x409a8b(0x201)]['HEARTBEAT']&&this[_0x409a8b(0x239)](),this[_0x409a8b(0x359)]();}[_0x57c5d2(0x359)](){const _0x422694=_0x57c5d2;var _0x492e69;this[_0x422694(0x1d6)](),this[_0x422694(0x1ce)]=setTimeout(()=>this[_0x422694(0x374)](),(_0x492e69=this['_configService'][_0x422694(0x269)]('HEARTBEAT_INTERVAL'))==null?0x7530:_0x492e69);}[_0x57c5d2(0x374)](){const _0x3b15e5=_0x57c5d2;this['_socket'][_0x3b15e5(0x169)]({'cmd':a[_0x3b15e5(0x201)]['HEARTBEAT']}),this[_0x3b15e5(0x3a0)]();}[_0x57c5d2(0x3a0)](){const _0x444732=_0x57c5d2;var _0x2fe1f0;this[_0x444732(0x2ad)]=setTimeout(()=>this['_onConnectionFailed'](),(_0x2fe1f0=this['_configService'][_0x444732(0x269)](_0x444732(0x3ba)))==null?m:_0x2fe1f0);}['_clearHeartbeatTimer'](){const _0x34472d=_0x57c5d2;this[_0x34472d(0x1ce)]!=null&&(clearTimeout(this[_0x34472d(0x1ce)]),this[_0x34472d(0x1ce)]=null);}[_0x57c5d2(0x239)](){const _0x140826=_0x57c5d2;this[_0x140826(0x2ad)]!=null&&(clearTimeout(this[_0x140826(0x2ad)]),this[_0x140826(0x2ad)]=null);}};H=b([y(0x0,(0x0,t['Inject'])(t[_0x57c5d2(0x2f8)])),y(0x1,t[_0x57c5d2(0x1c4)]),y(0x2,t[_0x57c5d2(0x313)]),y(0x3,B),y(0x4,(0x0,t[_0x57c5d2(0x175)])(_)),y(0x5,(0x0,t[_0x57c5d2(0x342)])(xe))],H);let U=class extends t['RxDisposable']{constructor(_0x35da80,_0x28a1c0,_0x32a292,_0x4054d9){const _0x4f6167=_0x57c5d2;var _0x5abb4c;super(),this[_0x4f6167(0x2ac)]=_0x35da80,this['_collabSessionService']=_0x28a1c0,this[_0x4f6167(0x228)]=_0x32a292,this[_0x4f6167(0x2ff)]=_0x4054d9,g(this,_0x4f6167(0x1a8),new Map()),g(this,'_entityInit$',new i[(_0x4f6167(0x3dc))]()),g(this,'entityInit$',this[_0x4f6167(0x32f)][_0x4f6167(0x3d2)]()),((_0x5abb4c=this[_0x4f6167(0x228)][_0x4f6167(0x269)](_0x4f6167(0x25e)))==null?void 0x0:_0x5abb4c[_0x4f6167(0x1c0)])!==!0x1&&this[_0x4f6167(0x13c)]();}[_0x57c5d2(0x173)](){const _0x3e05bf=_0x57c5d2;super[_0x3e05bf(0x173)](),this[_0x3e05bf(0x1a8)][_0x3e05bf(0x2ee)](_0x2ab763=>_0x2ab763[_0x3e05bf(0x173)]()),this['_entities'][_0x3e05bf(0x186)]();}[_0x57c5d2(0x1f9)](_0x5e202f){const _0x3b0ff9=_0x57c5d2;var _0x1bfd53;return(_0x1bfd53=this['_entities'][_0x3b0ff9(0x337)](_0x5e202f))==null?null:_0x1bfd53;}[_0x57c5d2(0x1d3)](_0xf7ce1b){const _0x54de8e=_0x57c5d2;let _0x49f9d5=this[_0x54de8e(0x1f9)](_0xf7ce1b);return _0x49f9d5?(0x0,i['of'])(_0x49f9d5):this['_entityInit$'][_0x54de8e(0x134)]((0x0,s[_0x54de8e(0x333)])(_0x1c9ef4=>_0x1c9ef4['unitID']===_0xf7ce1b));}[_0x57c5d2(0x3c7)](_0x5206e3){const _0xb54321=_0x57c5d2;return(0x0,i['firstValueFrom'])(this[_0xb54321(0x1d3)](_0x5206e3)['pipe']((0x0,s[_0xb54321(0x2ab)])(()=>void 0x0)));}[_0x57c5d2(0x13c)](){const _0x96bfe8=_0x57c5d2;this[_0x96bfe8(0x2ff)][_0x96bfe8(0x34e)](t[_0x96bfe8(0x279)][_0x96bfe8(0x363)])['pipe']((0x0,i[_0x96bfe8(0x210)])(this[_0x96bfe8(0x25b)]),(0x0,s['delay'])(0x10))[_0x96bfe8(0x2b5)](async _0x36c07a=>{const _0x334bc7=_0x96bfe8;let _0xe53fb4=_0x36c07a['unit'][_0x334bc7(0x2cf)](),_0x907a30=await this[_0x334bc7(0x2b1)](_0xe53fb4,t[_0x334bc7(0x279)][_0x334bc7(0x363)]);this[_0x334bc7(0x1a8)][_0x334bc7(0x314)](_0xe53fb4,_0x907a30);}),this[_0x96bfe8(0x2ff)][_0x96bfe8(0x34e)](t[_0x96bfe8(0x279)][_0x96bfe8(0x3a1)])['pipe']((0x0,i[_0x96bfe8(0x210)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x96bfe8(0x134)]((0x0,s[_0x96bfe8(0x333)])(_0x7b5695=>!_0x7b5695['unit']['getUnitId']()[_0x96bfe8(0x298)]('__')))[_0x96bfe8(0x2b5)](async _0x4d1aa2=>{const _0x4c1cd5=_0x96bfe8;let _0x4bcf0f=_0x4d1aa2[_0x4c1cd5(0x1cb)]['getUnitId'](),_0x5c345f=await this[_0x4c1cd5(0x2b1)](_0x4bcf0f,t[_0x4c1cd5(0x279)][_0x4c1cd5(0x3a1)]);this[_0x4c1cd5(0x1a8)][_0x4c1cd5(0x314)](_0x4bcf0f,_0x5c345f);}),(0x0,i[_0x96bfe8(0x20e)])(this[_0x96bfe8(0x2ff)][_0x96bfe8(0x3ab)](t[_0x96bfe8(0x279)][_0x96bfe8(0x363)]),this[_0x96bfe8(0x2ff)][_0x96bfe8(0x3ab)](t[_0x96bfe8(0x279)][_0x96bfe8(0x3a1)]))[_0x96bfe8(0x134)]((0x0,i['takeUntil'])(this['dispose$']))[_0x96bfe8(0x2b5)](_0x908c56=>{const _0x57c47a=_0x96bfe8;let _0x59fa03=_0x908c56['getUnitId'](),_0xd8ae28=this['_entities'][_0x57c47a(0x337)](_0x59fa03);_0xd8ae28&&(_0xd8ae28['dispose'](),this['_entities']['delete'](_0x59fa03));});}async[_0x57c5d2(0x2b1)](_0xf2f49c,_0x38ec26){const _0x374945=_0x57c5d2;let _0x2b0e11=await this[_0x374945(0x384)][_0x374945(0x1ad)](_0xf2f49c),_0x54ca29=this[_0x374945(0x2ac)][_0x374945(0x362)](this[_0x374945(0x318)](_0x38ec26),_0xf2f49c,_0x38ec26,_0x2b0e11);return await _0x54ca29[_0x374945(0x141)](),this[_0x374945(0x32f)][_0x374945(0x227)](_0x54ca29),_0x54ca29;}[_0x57c5d2(0x318)](_0x30058e){const _0x3140f8=_0x57c5d2;switch(_0x30058e){case t[_0x3140f8(0x279)][_0x3140f8(0x3a1)]:return R;case t[_0x3140f8(0x279)][_0x3140f8(0x363)]:return z;default:throw Error(_0x3140f8(0x2c8)+_0x30058e);}}};U=b([y(0x0,(0x0,t['Inject'])(t['Injector'])),y(0x1,(0x0,t[_0x57c5d2(0x175)])(H)),y(0x2,t[_0x57c5d2(0x313)]),y(0x3,t[_0x57c5d2(0x19e)])],U);var Te=_0x57c5d2(0x1f0),Ee=_0x57c5d2(0x2d5);let De=class extends t[_0x57c5d2(0x2a1)]{constructor(_0x5b90d9,_0x1173d){const _0x5d4706=_0x57c5d2;super(),this[_0x5d4706(0x2ff)]=_0x5b90d9,this[_0x5d4706(0x228)]=_0x1173d,this[_0x5d4706(0x13c)]();}['_init'](){const _0x1be69c=_0x57c5d2;this[_0x1be69c(0x242)](this[_0x1be69c(0x2ff)][_0x1be69c(0x2d3)][_0x1be69c(0x2b5)](()=>{const _0x1aecb6=_0x1be69c;var _0x5072de;let _0x27e347=this[_0x1aecb6(0x2ff)]['getFocusedUnit'](),_0x2838fd=(_0x5072de=this[_0x1aecb6(0x228)]['getConfig'](_0x1aecb6(0x1f5)))==null?_0x1aecb6(0x292):_0x5072de;_0x27e347 instanceof t[_0x1aecb6(0x37c)]&&(_0x2838fd=_0x27e347[_0x1aecb6(0x154)]),document['title']=_0x2838fd;}));}};De=b([y(0x0,t[_0x57c5d2(0x19e)]),y(0x1,t[_0x57c5d2(0x313)])],De);let W=class{constructor(_0x53a81e,_0x1cc6ec,_0x632687){const _0x5846c7=_0x57c5d2;this[_0x5846c7(0x228)]=_0x53a81e,this[_0x5846c7(0x1af)]=_0x1cc6ec,this[_0x5846c7(0x31c)]=_0x632687,this[_0x5846c7(0x141)]();}[_0x57c5d2(0x141)](){const _0x2779e2=_0x57c5d2;this['_httpService'][_0x2779e2(0x137)]({'priority':0x1,'interceptor':(_0xea8e3,_0x517fe2)=>_0x517fe2(_0xea8e3)[_0x2779e2(0x134)]((0x0,i[_0x2779e2(0x2b9)])(async _0x2f03d9=>{const _0x3dad51=_0x2779e2;let _0x562c72=_0x2f03d9;if(_0x562c72[_0x3dad51(0x245)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x3dad51(0x204)](this[_0x3dad51(0x31c)]['t'](_0x3dad51(0x347)))){let _0xf304bb=window[_0x3dad51(0x368)](window[_0x3dad51(0x229)][_0x3dad51(0x14a)]);window['location'][_0x3dad51(0x14a)]=this['_getLoginPath']()+_0x3dad51(0x285)+_0xf304bb;}}return _0x562c72;}))});}[_0x57c5d2(0x222)](){const _0x396300=_0x57c5d2;var _0x44883d;let _0x3084d3=this[_0x396300(0x228)][_0x396300(0x269)](E);return(_0x44883d=_0x3084d3==null?void 0x0:_0x3084d3['loginUrlKey'])==null?_0x396300(0x184):_0x44883d;}};W=b([y(0x0,t['IConfigService']),y(0x1,(0x0,t[_0x57c5d2(0x175)])(c[_0x57c5d2(0x311)])),y(0x2,(0x0,t['Inject'])(t[_0x57c5d2(0x178)]))],W);let G=class extends t[_0x57c5d2(0x2a1)]{constructor(_0x597eee,_0x1350b4){const _0x2e557a=_0x57c5d2;super(),this[_0x2e557a(0x2d0)]=_0x597eee,this[_0x2e557a(0x228)]=_0x1350b4,g(this,_0x2e557a(0x2b7),!0x1),this[_0x2e557a(0x1ae)]();}[_0x57c5d2(0x1ae)](){const _0x3c6dc0=_0x57c5d2;let _0x47d0a9=this;this[_0x3c6dc0(0x242)](this[_0x3c6dc0(0x2d0)][_0x3c6dc0(0x137)]({'priority':0x3e7,'interceptor':(0x0,c['MergeInterceptorFactory'])({'isMatch'(_0x241bc6){const _0x34a3eb=_0x3c6dc0;var _0x5d4a17;if(_0x241bc6[_0x34a3eb(0x1b1)]===_0x34a3eb(0x39c)&&(_0x5d4a17=_0x241bc6['requestParams'])!=null&&_0x5d4a17[_0x34a3eb(0x3a8)]){let {objectID:_0x33b086,objectType:_0x496c95}=_0x241bc6[_0x34a3eb(0x1c7)][_0x34a3eb(0x3a8)]||{};if(!_0x33b086||_0x496c95===void 0x0)return!0x1;let _0x4c2045=_0x47d0a9[_0x34a3eb(0x3ae)]()+'/'+_0x496c95+_0x34a3eb(0x2c5)+_0x33b086+_0x34a3eb(0x2e5);if(_0x241bc6[_0x34a3eb(0x1c2)]===_0x4c2045)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x505254){const _0x56b034=_0x3c6dc0;var _0x202590;return(_0x202590=_0x505254[_0x56b034(0x1c7)])==null?void 0x0:_0x202590['body'];},'mergeParamsToRequest'(_0xbd2071,_0xe59c43){const _0x11e81a=_0x3c6dc0;let _0x58a6d6=_0x47d0a9[_0x11e81a(0x3ae)]()+_0x11e81a(0x391),_0x200dc0=_0xbd2071[_0x11e81a(0x147)]((_0x36fcfc,_0x3dc00a)=>{const _0x1e1aaa=_0x11e81a;let {unitID:_0x253bf4,objectID:_0x2c27b9,objectType:_0x4d50a7,actions:_0x2656fa}=_0x3dc00a;return _0x36fcfc[_0x253bf4]||(_0x36fcfc[_0x253bf4]={}),_0x36fcfc[_0x253bf4][_0x2c27b9]||(_0x36fcfc[_0x253bf4][_0x2c27b9]={'objectID':_0x2c27b9,'objectType':_0x4d50a7,'actions':[]}),_0x36fcfc[_0x253bf4][_0x2c27b9][_0x1e1aaa(0x1f2)][_0x1e1aaa(0x357)](..._0x2656fa),_0x36fcfc;},{}),_0x2b070b=[];for(let _0x321218 in _0x200dc0)for(let _0x335f4e in _0x200dc0[_0x321218]){let {actions:_0x101635,objectType:_0xa08be5}=_0x200dc0[_0x321218][_0x335f4e],_0x126c35=[...new Set(_0x101635)];_0x2b070b[_0x11e81a(0x357)]({'unitID':_0x321218,'objectID':_0x335f4e,'objectType':_0xa08be5,'actions':_0x126c35});}return new c[(_0x11e81a(0x3e4))]('POST',_0x58a6d6,{'headers':_0xe59c43[_0x11e81a(0x249)],'withCredentials':_0xe59c43['withCredentials'],'responseType':_0xe59c43[_0x11e81a(0x2b8)],'body':{'requests':_0x2b070b}});}},{'distributeResult'(_0x60c6d1,_0x3a3f46){const _0x1c28a6=_0x3c6dc0;let {objectActions:_0x377bbf}=_0x60c6d1;return _0x3a3f46[_0x1c28a6(0x2ab)](_0x4472f7=>{const _0x1e28a1=_0x1c28a6;let {unitID:_0x31e77f,objectID:_0x20d7ed,actions:_0x3e849b}=_0x4472f7,_0x38002d=_0x377bbf[_0x1e28a1(0x259)](_0x3f5091=>_0x3f5091[_0x1e28a1(0x3e7)]===_0x31e77f&&_0x3f5091[_0x1e28a1(0x2ba)]===_0x20d7ed);return{'config':_0x4472f7,'result':{'actions':_0x3e849b['map'](_0x1a72bb=>_0x38002d==null?void 0x0:_0x38002d[_0x1e28a1(0x1f2)][_0x1e28a1(0x259)](_0x177d36=>_0x177d36[_0x1e28a1(0x116)]===_0x1a72bb))[_0x1e28a1(0x333)](_0x560b68=>!!_0x560b68),'error':_0x60c6d1[_0x1e28a1(0x28a)]}};});}})}));}[_0x57c5d2(0x3ae)](){const _0x573c22=_0x57c5d2;var _0x216321;let _0x383231=this[_0x573c22(0x228)][_0x573c22(0x269)](E);return(_0x216321=_0x383231==null?void 0x0:_0x383231[_0x573c22(0x26f)])==null?_0x573c22(0x15b):_0x216321;}async[_0x57c5d2(0x218)](_0x366dc8){const _0x39c41b=_0x57c5d2;let _0x3be9cc=this[_0x39c41b(0x3ae)]()+'/'+_0x366dc8[_0x39c41b(0x32e)]+_0x39c41b(0x1c8);return(await this[_0x39c41b(0x2d0)][_0x39c41b(0x3a4)](_0x3be9cc,{'body':_0x366dc8}))[_0x39c41b(0x3a8)][_0x39c41b(0x2ba)]||'';}async[_0x57c5d2(0x24c)](_0x20cc86){const _0x2b9814=_0x57c5d2;let _0x3fc9ca=this[_0x2b9814(0x3ae)]()+_0x2b9814(0x3c5);return(await this[_0x2b9814(0x2d0)][_0x2b9814(0x3a4)](_0x3fc9ca,{'body':_0x20cc86}))[_0x2b9814(0x3a8)]['objects'];}async['update'](_0x327524){const _0x3d88b9=_0x57c5d2;var _0x27e777;let _0x32b05a=this[_0x3d88b9(0x3ae)]()+'/'+_0x327524[_0x3d88b9(0x32e)]+_0x3d88b9(0x2c5)+_0x327524[_0x3d88b9(0x2ba)],_0x29ee3e=await this[_0x3d88b9(0x2d0)][_0x3d88b9(0x233)](_0x32b05a,{'body':_0x327524});if((_0x29ee3e==null||(_0x27e777=_0x29ee3e[_0x3d88b9(0x3a8)])==null||(_0x27e777=_0x27e777[_0x3d88b9(0x28a)])==null?void 0x0:_0x27e777[_0x3d88b9(0x283)])!==0x1)throw Error(_0x3d88b9(0x24f));}async[_0x57c5d2(0x159)](_0x5d674e){const _0x51381c=_0x57c5d2;let _0x41aa94=this[_0x51381c(0x3ae)]()+'/'+_0x5d674e['objectType']+_0x51381c(0x2c5)+_0x5d674e[_0x51381c(0x2ba)]+_0x51381c(0x2e5);return(await this[_0x51381c(0x2d0)][_0x51381c(0x3a4)](_0x41aa94,{'body':_0x5d674e}))[_0x51381c(0x3a8)][_0x51381c(0x1f2)];}async[_0x57c5d2(0x3b1)](_0x1f6257){const _0x73ae44=_0x57c5d2;let _0x107168=this[_0x73ae44(0x3ae)]()+_0x73ae44(0x391);return(await this[_0x73ae44(0x2d0)]['post'](_0x107168,{'body':{'requests':_0x1f6257}}))['body']['objectActions'];}async['listRoles'](_0x1f84b5){const _0x328381=_0x57c5d2;let _0x1cd436=this['_getAPIPrefixPath']()+'/'+_0x1f84b5[_0x328381(0x32e)]+_0x328381(0x197),_0x3fd03f=await this['_HTTPService'][_0x328381(0x3a4)](_0x1cd436,{'body':_0x1f84b5});return{'roles':_0x3fd03f['body'][_0x328381(0x2c6)],'actions':_0x3fd03f[_0x328381(0x3a8)]['actions']};}async[_0x57c5d2(0x21b)](_0x19ca6f){const _0x3087c6=_0x57c5d2;let _0x3f5d0d=this[_0x3087c6(0x3ae)]()+_0x3087c6(0x260);await this['_HTTPService'][_0x3087c6(0x31e)](_0x3f5d0d,{'params':{'collaboratorID':_0x19ca6f[_0x3087c6(0x365)],'objectID':_0x19ca6f[_0x3087c6(0x2ba)],'unitID':_0x19ca6f[_0x3087c6(0x3e7)]}});}async['updateCollaborator'](_0x3dee83){const _0x3c539b=_0x57c5d2;let _0x536244=this[_0x3c539b(0x3ae)]()+_0x3c539b(0x260);await this[_0x3c539b(0x2d0)][_0x3c539b(0x299)](_0x536244,{'body':_0x3dee83});}async[_0x57c5d2(0x354)](_0x28ccec){const _0x4cc82e=_0x57c5d2;let _0x4c9f6e=this[_0x4cc82e(0x3ae)]()+_0x4cc82e(0x260);await this[_0x4cc82e(0x2d0)][_0x4cc82e(0x3a4)](_0x4c9f6e,{'body':_0x28ccec});}async[_0x57c5d2(0x386)](_0x48b431){const _0x3b6a4d=_0x57c5d2;var _0x2a7d4f;let _0x443be9=this[_0x3b6a4d(0x3ae)]()+_0x3b6a4d(0x260),_0x365ed7=await this[_0x3b6a4d(0x2d0)][_0x3b6a4d(0x337)](_0x443be9,{'params':{'objectID':_0x48b431[_0x3b6a4d(0x2ba)],'unitID':_0x48b431[_0x3b6a4d(0x3e7)]}});return this['setCfgEnableObjInherit']((_0x2a7d4f=_0x365ed7[_0x3b6a4d(0x3a8)]['cfgEnableObjInherit'])==null?!0x1:_0x2a7d4f),_0x365ed7[_0x3b6a4d(0x3a8)][_0x3b6a4d(0x351)];}async['putCollaborators'](_0x1b551f){const _0x36d79f=_0x57c5d2;let _0x1ff1e1=this[_0x36d79f(0x3ae)]()+'/collaborator';await this['_HTTPService'][_0x36d79f(0x233)](_0x1ff1e1,{'body':_0x1b551f});}[_0x57c5d2(0x3be)](_0x3ca466){this['_cfgEnableObjInherit']=_0x3ca466;}[_0x57c5d2(0x1ac)](){const _0x55a8c2=_0x57c5d2;return this[_0x55a8c2(0x2b7)];}};G=b([y(0x0,(0x0,t['Inject'])(c[_0x57c5d2(0x311)])),y(0x1,(0x0,t[_0x57c5d2(0x175)])(t['IConfigService']))],G);function Oe(_0x404cdd){const _0x42b811=_0x57c5d2;let _0x5bab26=atob(_0x404cdd),_0x5ea99f=new Uint8Array(_0x5bab26[_0x42b811(0x19d)]);for(let _0x5b1412=0x0;_0x5b1412<_0x5bab26['length'];_0x5b1412++)_0x5ea99f[_0x5b1412]=_0x5bab26[_0x42b811(0x23c)](_0x5b1412);return _0x5ea99f;}function ke(_0x2baf15){let _0x703ae0='';for(let _0x242d13=0x0;_0x242d13<_0x2baf15['length'];_0x242d13++)_0x703ae0+=String['fromCharCode'](_0x2baf15[_0x242d13]);return btoa(_0x703ae0);}function Ae(_0x525675,_0x32aca6){const _0x43f4ae=_0x57c5d2;let _0x1fa227=Oe(_0x32aca6),_0x2b4b84=(0x0,f[_0x43f4ae(0x39b)])(0x10);return ke((0x0,f[_0x43f4ae(0x1b7)])(_0x2b4b84,(0x0,d[_0x43f4ae(0x3b8)])(_0x1fa227,_0x2b4b84)[_0x43f4ae(0x2cd)]((0x0,f[_0x43f4ae(0x36a)])(_0x525675))));}function je(){const _0x3b63c1=_0x57c5d2;let _0xd608f4=(0x0,l[_0x3b63c1(0x128)])()[_0x3b63c1(0x3b5)];if(typeof window<'u'&&window[_0x3b63c1(0x229)]!==void 0x0&&_0xd608f4){let _0x5cd637={'time':Math[_0x3b63c1(0x3d3)](Date[_0x3b63c1(0x16f)]()/0x3e8),'domain':location[_0x3b63c1(0x14d)]};return Ae(JSON[_0x3b63c1(0x14e)](_0x5cd637),_0xd608f4);}}let K=class{constructor(_0x3fe406){const _0x26bfac=_0x57c5d2;this[_0x26bfac(0x1af)]=_0x3fe406,this[_0x26bfac(0x360)]();}['_initRequestHeader'](){const _0x4e4a81=_0x57c5d2;this[_0x4e4a81(0x1af)][_0x4e4a81(0x137)]({'interceptor':(_0x29e081,_0x18b583)=>{const _0x3fcc58=_0x4e4a81;let _0x33f93c=je();return _0x33f93c&&_0x29e081[_0x3fcc58(0x249)]['set'](_0x3fcc58(0x254),_0x33f93c),_0x18b583(_0x29e081);}});}};K=b([y(0x0,(0x0,t[_0x57c5d2(0x175)])(c[_0x57c5d2(0x311)]))],K);let q=class extends t[_0x57c5d2(0x11d)]{constructor(_0x119016,_0x59d77a,_0x134ee3){const _0x52a423=_0x57c5d2;super(),this[_0x52a423(0x2c0)]=_0x119016,this[_0x52a423(0x1f7)]=_0x59d77a,this[_0x52a423(0x2db)]=_0x134ee3,g(this,'_unitInfo$',new i['BehaviorSubject'](null)),g(this,_0x52a423(0x236),this['_unitInfo$'][_0x52a423(0x3d2)]());}async[_0x57c5d2(0x122)](_0x1550a7,_0x943551,_0x2545ad){const _0x594545=_0x57c5d2;this[_0x594545(0x2f6)][_0x594545(0x227)]({'unitId':_0x1550a7,'type':_0x943551});let _0x19c960=null;switch(_0x943551){case t[_0x594545(0x279)][_0x594545(0x363)]:_0x19c960=await this[_0x594545(0x1f7)]['loadSheet'](_0x1550a7,_0x2545ad);break;case t[_0x594545(0x279)]['UNIVER_DOC']:_0x19c960=await this[_0x594545(0x1f7)][_0x594545(0x13f)](_0x1550a7,_0x2545ad);break;default:this[_0x594545(0x2c0)]['error']('[DataLoaderService]','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x19c960;}async['loadUnit'](_0x2c57ad,_0x3e758e,_0x3eb4fc){const _0x69805f=_0x57c5d2;var _0x1a4bf8;this[_0x69805f(0x2f6)][_0x69805f(0x227)]({'unitId':_0x2c57ad,'type':_0x3e758e,'subUnitId':_0x3eb4fc});let _0x4ced6d=0x0,_0x27b591=await((_0x1a4bf8=this[_0x69805f(0x2db)])==null?void 0x0:_0x1a4bf8[_0x69805f(0x294)](_0x2c57ad));return _0x27b591&&(_0x27b591[_0x69805f(0x287)]||_0x27b591[_0x69805f(0x15d)]['length']!==0x0)&&(_0x4ced6d=_0x27b591[_0x69805f(0x179)]),_0x4ced6d===0x0&&this[_0x69805f(0x2c0)][_0x69805f(0x3d9)](_0x69805f(0x168),_0x69805f(0x291)),this[_0x69805f(0x122)](_0x2c57ad,_0x3e758e,_0x4ced6d);}};q=b([y(0x0,t[_0x57c5d2(0x1c4)]),y(0x1,(0x0,t['Inject'])(e[_0x57c5d2(0x14c)])),y(0x2,(0x0,t[_0x57c5d2(0x342)])(C))],q);let J=class{constructor(_0x284e6f,_0x2835a0,_0x151584){const _0x2a29fe=_0x57c5d2;this[_0x2a29fe(0x1af)]=_0x284e6f,this[_0x2a29fe(0x228)]=_0x2835a0,this[_0x2a29fe(0x2ff)]=_0x151584,g(this,_0x2a29fe(0x397),0x0),g(this,_0x2a29fe(0x30b),new i[(_0x2a29fe(0x3dc))]()),g(this,_0x2a29fe(0x1bb),this['_change$']),g(this,'_imageSourceCache',new Map());}[_0x57c5d2(0x3b6)](_0x41d489){const _0x31c366=_0x57c5d2;this[_0x31c366(0x397)]=_0x41d489,this[_0x31c366(0x30b)][_0x31c366(0x227)](_0x41d489);}[_0x57c5d2(0x3d1)](_0x575a6f,_0x3c94e7){const _0x51168c=_0x57c5d2;if(_0x3c94e7===u[_0x51168c(0x27b)][_0x51168c(0x382)]){let _0x2aea0c=new Image();return _0x2aea0c[_0x51168c(0x144)]=_0x575a6f,_0x2aea0c;}return this['_imageSourceCache'][_0x51168c(0x337)](_0x575a6f);}[_0x57c5d2(0x2a2)](_0x2a5ab0,_0x73cc6e,_0x3d2484){const _0x598b99=_0x57c5d2;_0x73cc6e===u[_0x598b99(0x27b)][_0x598b99(0x382)]||_0x3d2484==null||this[_0x598b99(0x2e2)][_0x598b99(0x314)](_0x2a5ab0,_0x3d2484);}async[_0x57c5d2(0x3c8)](_0x140f1e){const _0x438281=_0x57c5d2;try{let _0x27bec5=this[_0x438281(0x377)](this[_0x438281(0x2f7)](),''+_0x140f1e),_0x3cf7a4=(await this[_0x438281(0x1af)][_0x438281(0x337)](_0x27bec5))[_0x438281(0x3a8)];if(_0x3cf7a4['error']&&_0x3cf7a4['error'][_0x438281(0x283)]===a[_0x438281(0x3f3)]['OK']){let _0x22b72e=(0x0,t[_0x438281(0x170)])(_0x3cf7a4[_0x438281(0x1c2)],this[_0x438281(0x214)]());return Promise[_0x438281(0x304)](_0x22b72e);}return Promise[_0x438281(0x196)](_0x3cf7a4[_0x438281(0x28a)]);}catch(_0x1a0114){return Promise['reject'](_0x1a0114);}}async[_0x57c5d2(0x1fb)](_0x4eaae6){const _0x219308=_0x57c5d2;let _0x84f3a0='';if(!u[_0x219308(0x22b)][_0x219308(0x321)](_0x4eaae6[_0x219308(0x3d4)]))return this[_0x219308(0x2f1)](),Promise[_0x219308(0x196)](Error(u[_0x219308(0x119)][_0x219308(0x2a7)]));if(_0x4eaae6[_0x219308(0x152)]>(0x0,u[_0x219308(0x2fd)])())return this[_0x219308(0x2f1)](),Promise['reject'](Error(u[_0x219308(0x119)]['ERROR_EXCEED_SIZE']));try{let _0x14c798=new FormData();_0x14c798[_0x219308(0x38d)](_0x219308(0x334),_0x4eaae6);let _0x87aaa7=this[_0x219308(0x2ff)][_0x219308(0x392)](),_0x485651=_0x87aaa7==null?void 0x0:_0x87aaa7['getUnitId']();if(!_0x485651)throw Error('unitId\x20is\x20not\x20found');let _0x26ea1d=this[_0x219308(0x195)]()+_0x219308(0x3c2)+_0x4eaae6['size'][_0x219308(0x3e0)]()+_0x219308(0x2fb)+a[_0x219308(0x194)]['UnitEmbedded']+_0x219308(0x280)+encodeURIComponent(_0x485651),_0x1facb0={'body':_0x14c798},_0x489aa0=(await this[_0x219308(0x1af)][_0x219308(0x3a4)](_0x26ea1d,_0x1facb0))[_0x219308(0x3a8)];if(typeof _0x489aa0['FileId']!='string')return this['_decreaseWaiting'](),Promise[_0x219308(0x196)](Error(u[_0x219308(0x119)]['ERROR_IMAGE']));_0x84f3a0=_0x489aa0['FileId'];}catch{return this[_0x219308(0x2f1)](),Promise[_0x219308(0x196)](Error(u['ImageUploadStatusType'][_0x219308(0x36e)]));}return new Promise((_0x25ba35,_0x598535)=>{const _0x4f35b4=_0x219308;let _0x18caa1=new FileReader();_0x18caa1[_0x4f35b4(0x23d)](_0x4eaae6),_0x18caa1[_0x4f35b4(0x2bd)]=_0x206d52=>{const _0x35f41a=_0x4f35b4;var _0x44aa74;let _0x48e061=(_0x44aa74=_0x206d52[_0x35f41a(0x166)])==null?void 0x0:_0x44aa74[_0x35f41a(0x36c)];if(_0x48e061==null){this['_decreaseWaiting'](),_0x598535(Error(u['ImageUploadStatusType'][_0x35f41a(0x36e)]));return;}_0x25ba35({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':u[_0x35f41a(0x27b)]['UUID'],'source':_0x84f3a0,'base64Cache':_0x48e061,'status':u[_0x35f41a(0x119)][_0x35f41a(0x165)]}),this[_0x35f41a(0x2f1)]();};});}['_getUploadFileURL'](){const _0x4b54a8=_0x57c5d2;var _0x2216f0;let _0x352206=this['_configService'][_0x4b54a8(0x269)](E);return(_0x2216f0=_0x352206==null?void 0x0:_0x352206[_0x4b54a8(0x3aa)])==null?_0x4b54a8(0x265):_0x2216f0;}['_getSignURL'](){const _0x54daa8=_0x57c5d2;var _0x498fc4;let _0x419e57=this[_0x54daa8(0x228)]['getConfig'](E);return(_0x498fc4=_0x419e57==null?void 0x0:_0x419e57[_0x54daa8(0x126)])==null?_0x54daa8(0x29f):_0x498fc4;}[_0x57c5d2(0x214)](){const _0x5d5f40=_0x57c5d2;var _0x1cabb9;let _0x1fbf07=this[_0x5d5f40(0x228)][_0x5d5f40(0x269)](E);return(_0x1cabb9=_0x1fbf07==null?void 0x0:_0x1fbf07[_0x5d5f40(0x1fe)])==null?location[_0x5d5f40(0x1c1)]:_0x1cabb9;}[_0x57c5d2(0x377)](_0xd8911e,_0x5112fe){const _0x415e54=_0x57c5d2;return _0xd8911e[_0x415e54(0x34a)](_0x415e54(0x328),_0x5112fe);}[_0x57c5d2(0x2f1)](){const _0x1bab2c=_0x57c5d2;--this[_0x1bab2c(0x397)],this['_change$'][_0x1bab2c(0x227)](this['_waitCount']);}};J=b([y(0x0,(0x0,t[_0x57c5d2(0x175)])(c[_0x57c5d2(0x311)])),y(0x1,t[_0x57c5d2(0x313)]),y(0x2,(0x0,t[_0x57c5d2(0x175)])(t['IUniverInstanceService']))],J);let Y=class{constructor(_0x4d6789,_0x1f4bf7){const _0x1ccda3=_0x57c5d2;this[_0x1ccda3(0x228)]=_0x4d6789,this[_0x1ccda3(0x2d0)]=_0x1f4bf7;}[_0x57c5d2(0x3ae)](){const _0x25a94e=_0x57c5d2;var _0x6f9fab;let _0x1fd77a=this[_0x25a94e(0x228)][_0x25a94e(0x269)](E);return(_0x6f9fab=_0x1fd77a==null?void 0x0:_0x1fd77a[_0x25a94e(0x26f)])==null?_0x25a94e(0x15b):_0x6f9fab;}async[_0x57c5d2(0x24c)](_0x22cc08){const _0x2484e4=_0x57c5d2;let _0x2d4825=this[_0x2484e4(0x3ae)]()+_0x2484e4(0x260);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x2484e4(0x337)](_0x2d4825,{'params':{'objectID':_0x22cc08[_0x2484e4(0x241)],'unitID':_0x22cc08['unitId']}}))[_0x2484e4(0x3a8)]['collaborators'][_0x2484e4(0x2ab)](_0x5ecb50=>({'objectId':_0x5ecb50['id'],'name':_0x5ecb50[_0x2484e4(0x133)]['name'],'metadata':{'icon':_0x5ecb50[_0x2484e4(0x133)][_0x2484e4(0x153)]},'label':_0x5ecb50[_0x2484e4(0x133)]['name'],'objectType':t[_0x2484e4(0x19c)][_0x2484e4(0x120)]})),'metadata':{},'type':t[_0x2484e4(0x19c)]['PERSON']}]};}};Y=b([y(0x0,(0x0,t[_0x57c5d2(0x175)])(t['IConfigService'])),y(0x1,(0x0,t[_0x57c5d2(0x175)])(c['HTTPService']))],Y);let X=class extends t[_0x57c5d2(0x11d)]{constructor(_0x3afeee,_0x1503c6,_0x11a2cb,_0x5a0e03,_0x49bad1){const _0x442c60=_0x57c5d2;super(),this['_injector']=_0x3afeee,this['_univerInstanceService']=_0x1503c6,this[_0x442c60(0x252)]=_0x11a2cb,this[_0x442c60(0x255)]=_0x5a0e03,this[_0x442c60(0x205)]=_0x49bad1,this[_0x442c60(0x2eb)](),this['_initCloseConn']();}[_0x57c5d2(0x12d)](){const _0xea6059=_0x57c5d2;let _0x209b8d=async _0x40e40d=>{const _0x41fbee=_0x2622;(await this['_collaborationSessionService']['requireSession'](_0x40e40d))[_0x41fbee(0x224)]['pipe']((0x0,s['filter'])(_0x20043a=>_0x20043a[_0x41fbee(0x2d7)]===e[_0x41fbee(0x136)][_0x41fbee(0x115)]),(0x0,s[_0x41fbee(0x210)])(this['dispose$']))['subscribe'](_0x229d06=>{const _0x3efdf9=_0x41fbee;let {reason:_0x13c6df}=_0x229d06[_0x3efdf9(0x33e)];this[_0x3efdf9(0x205)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x13c6df}),this[_0x3efdf9(0x252)][_0x3efdf9(0x305)](new r[(_0x3efdf9(0x332))](_0x40e40d)['id'],!0x1),this[_0x3efdf9(0x255)][_0x3efdf9(0x1be)](_0x40e40d);});};(0x0,i[_0xea6059(0x20e)])(this[_0xea6059(0x2ff)][_0xea6059(0x34e)](t[_0xea6059(0x279)]['UNIVER_SHEET']),this[_0xea6059(0x2ff)]['getTypeOfUnitAdded$'](t[_0xea6059(0x279)][_0xea6059(0x3a1)]))['pipe']((0x0,s[_0xea6059(0x2ab)])(_0xe04df8=>_0xe04df8['unit'][_0xea6059(0x2cf)]()),(0x0,s[_0xea6059(0x333)])(_0x40004f=>!(0x0,t['isInternalEditorID'])(_0x40004f)),(0x0,s[_0xea6059(0x210)])(this[_0xea6059(0x25b)]))[_0xea6059(0x2b5)](_0x494d4d=>{_0x209b8d(_0x494d4d);});}[_0x57c5d2(0x2eb)](){const _0x3aafdf=_0x57c5d2;let _0x129f42=async _0x34994d=>{const _0x5e7953=_0x2622;let _0x333867=await this[_0x5e7953(0x255)][_0x5e7953(0x1ad)](_0x34994d),_0x4b7979=this[_0x5e7953(0x2ac)][_0x5e7953(0x337)](r[_0x5e7953(0x2c7)]);_0x333867[_0x5e7953(0x224)][_0x5e7953(0x134)]((0x0,s['filter'])(_0x4cd5dc=>_0x4cd5dc['eventID']===e[_0x5e7953(0x136)][_0x5e7953(0x22f)]),(0x0,s[_0x5e7953(0x210)])(this['dispose$']))['subscribe'](_0x150778=>{const _0x1aa88a=_0x5e7953;let {objectId:_0x5982dd}=_0x150778[_0x1aa88a(0x33e)];_0x5982dd===_0x34994d?_0x4b7979[_0x1aa88a(0x371)](_0x34994d):_0x4b7979[_0x1aa88a(0x12a)](_0x34994d,_0x5982dd);});};(0x0,i[_0x3aafdf(0x20e)])(this[_0x3aafdf(0x2ff)][_0x3aafdf(0x34e)](t[_0x3aafdf(0x279)][_0x3aafdf(0x363)]))['pipe']((0x0,s[_0x3aafdf(0x2ab)])(_0x4fc01a=>_0x4fc01a[_0x3aafdf(0x1cb)][_0x3aafdf(0x2cf)]()),(0x0,s['filter'])(_0x1351fb=>!(0x0,t['isInternalEditorID'])(_0x1351fb)),(0x0,s[_0x3aafdf(0x210)])(this[_0x3aafdf(0x25b)]))['subscribe'](_0x516f89=>{_0x129f42(_0x516f89);});}};X=b([y(0x0,(0x0,t[_0x57c5d2(0x175)])(t[_0x57c5d2(0x2f8)])),y(0x1,t[_0x57c5d2(0x19e)]),y(0x2,t['IPermissionService']),y(0x3,(0x0,t[_0x57c5d2(0x175)])(H)),y(0x4,(0x0,t[_0x57c5d2(0x175)])(_))],X);let Z=class{constructor(_0x118830,_0x3b5bbf){const _0xfdff0=_0x57c5d2;this[_0xfdff0(0x228)]=_0x118830,this['_httpService']=_0x3b5bbf;}async[_0x57c5d2(0x261)](_0x1651ed,_0x420a56){const _0x21358f=_0x57c5d2;var _0x538c77;let {unitID:_0x1564ae,type:_0x2f256b,revision:_0x59b7a6=0x0}=_0x420a56,_0x53a987=this[_0x21358f(0x3c3)]()+'/'+_0x2f256b+_0x21358f(0x381)+_0x1564ae+_0x21358f(0x1ec)+_0x59b7a6,_0x4a3c0b=(await this['_httpService']['get'](_0x53a987))[_0x21358f(0x3a8)],_0x4e24d1=(_0x538c77=_0x4a3c0b[_0x21358f(0x167)])==null?void 0x0:_0x538c77[_0x21358f(0x1a6)];if(_0x4e24d1){let _0x43597e=_0x4e24d1==null?void 0x0:_0x4e24d1['originalMeta'];_0x4e24d1[_0x21358f(0x1dd)]=e[_0x21358f(0x274)][_0x21358f(0x284)]((0x0,e[_0x21358f(0x256)])(_0x43597e)),Object['entries'](_0x4e24d1['sheets'])[_0x21358f(0x2ee)](([,_0x58046a])=>{const _0x51a1a4=_0x21358f;let _0x46256c=_0x58046a[_0x51a1a4(0x1dd)];_0x58046a[_0x51a1a4(0x1dd)]=e[_0x51a1a4(0x274)][_0x51a1a4(0x284)]((0x0,e[_0x51a1a4(0x256)])(_0x46256c));});}return _0x4a3c0b;}async[_0x57c5d2(0x310)](_0x85fdde,_0x57ebc0){const _0x1819da=_0x57c5d2;let {unitID:_0x4fc9ab,type:_0x58e794,blockID:_0x1a93a2}=_0x57ebc0,_0x22e7b3=this[_0x1819da(0x216)]()+'/'+_0x58e794+'/unit/'+_0x4fc9ab+'/block/'+_0x1a93a2;return(await this[_0x1819da(0x1af)][_0x1819da(0x337)](_0x22e7b3))['body'];}async[_0x57c5d2(0x238)](_0x20e987,_0x2f601d){const _0x4af671=_0x57c5d2;let {unitID:_0x551ca1,type:_0x38dfcb,blockID:_0x2c5ace}=_0x2f601d,_0x454e60=this[_0x4af671(0x216)]()+_0x4af671(0x29b)+_0x38dfcb+'/unit/'+_0x551ca1+_0x4af671(0x29b)+_0x2c5ace;return(await this['_httpService'][_0x4af671(0x337)](_0x454e60))[_0x4af671(0x3a8)];}async[_0x57c5d2(0x3ec)](_0x398442,_0x1b1aef){const _0x4ef44c=_0x57c5d2;let {unitID:_0x335ed0,type:_0x16e992,from:_0x568b6e,to:_0x2064b2}=_0x1b1aef,_0x50ba46=this[_0x4ef44c(0x216)]()+'/'+_0x16e992+_0x4ef44c(0x381)+_0x335ed0+_0x4ef44c(0x16e)+_0x568b6e+_0x4ef44c(0x1ca)+_0x2064b2;return(await this[_0x4ef44c(0x1af)]['get'](_0x50ba46))[_0x4ef44c(0x3a8)];}[_0x57c5d2(0x3c3)](){const _0x4c201e=_0x57c5d2;var _0x123f9d;return(_0x123f9d=this[_0x4c201e(0x228)][_0x4c201e(0x269)](_0x4c201e(0x1b2)))==null?this[_0x4c201e(0x216)]():_0x123f9d;}['_getAPIPrefix'](){const _0x464bff=_0x57c5d2;var _0xb692cd;let _0x5af568=this['_configService'][_0x464bff(0x269)](E);return(_0xb692cd=_0x5af568==null?void 0x0:_0x5af568[_0x464bff(0x237)])==null?_0x464bff(0x35a):_0xb692cd;}async[_0x57c5d2(0x268)](_0x38272f,_0x146413){const _0x1c344a=_0x57c5d2;let _0x45af51=_0x1c344a(0x1da)+_0x146413[_0x1c344a(0x3d4)]+_0x1c344a(0x381)+_0x146413[_0x1c344a(0x3e7)]+_0x1c344a(0x1b8);return(await this[_0x1c344a(0x1af)][_0x1c344a(0x337)](_0x45af51,{'params':{'resourceId':JSON['stringify'](_0x146413[_0x1c344a(0x172)])}}))['body'];}[_0x57c5d2(0x25d)](){const _0x4a755e=_0x57c5d2;throw Error(_0x4a755e(0x17b));}[_0x57c5d2(0x3ee)](){const _0x5c55b2=_0x57c5d2;throw Error(_0x5c55b2(0x17b));}[_0x57c5d2(0x19a)](){const _0x29f2fe=_0x57c5d2;throw Error(_0x29f2fe(0x17b));}[_0x57c5d2(0x32d)](){const _0x4511ce=_0x57c5d2;throw Error(_0x4511ce(0x17b));}['copyFileMeta'](){const _0x4a1ebf=_0x57c5d2;throw Error(_0x4a1ebf(0x17b));}[_0x57c5d2(0x343)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=b([y(0x0,t[_0x57c5d2(0x313)]),y(0x1,(0x0,t['Inject'])(c['HTTPService']))],Z);let Q=class extends t[_0x57c5d2(0x3bc)]{constructor(_0x397a13,_0x199224,_0x21c5d6,_0xe52fc0,_0x193fe0){super(_0x397a13,_0x199224,_0x21c5d6),this['_transformService']=_0xe52fc0,this['_logService']=_0x193fe0;}['transformUndoRedo'](_0x52a412,_0x3af202){const _0xd43d06=_0x57c5d2;let _0x4adaa0=this['_getUndoStack'](_0x52a412);if(_0x4adaa0)try{let _0x53e635=this[_0xd43d06(0x1b0)](_0x4adaa0,_0x3af202);this[_0xd43d06(0x2bb)](_0x52a412,_0x53e635);}catch(_0x3bd447){this[_0xd43d06(0x2c0)][_0xd43d06(0x28a)]('[CollaborationUndoRedoService]',_0x3bd447),this[_0xd43d06(0x1a9)](_0x52a412);}let _0x358f0f=this['_getRedoStack'](_0x52a412);if(_0x358f0f)try{let _0xb41fd8=this[_0xd43d06(0x1b0)](_0x358f0f,_0x3af202);this[_0xd43d06(0x29e)](_0x52a412,_0xb41fd8);}catch(_0x2c7d1d){this[_0xd43d06(0x2c0)][_0xd43d06(0x28a)](_0x2c7d1d),this[_0xd43d06(0x366)](_0x52a412);}}[_0x57c5d2(0x1a9)](_0x3f2b21){const _0x32b8d4=_0x57c5d2;let _0x2a125c=this[_0x32b8d4(0x2a5)](_0x3f2b21);_0x2a125c&&(_0x2a125c[_0x32b8d4(0x19d)]=0x0,this['_updateStatus']());}[_0x57c5d2(0x366)](_0x54b722){const _0x4a9e37=_0x57c5d2;let _0x2cea87=this['_getRedoStack'](_0x54b722);_0x2cea87&&(_0x2cea87['length']=0x0,this[_0x4a9e37(0x1d9)]());}[_0x57c5d2(0x2bb)](_0x34b3cc,_0x17aa5e){const _0x55f833=_0x57c5d2;this[_0x55f833(0x243)][_0x55f833(0x314)](_0x34b3cc,_0x17aa5e),this[_0x55f833(0x1d9)]();}[_0x57c5d2(0x29e)](_0x14c5a0,_0x2d9bdd){const _0x1f093d=_0x57c5d2;this[_0x1f093d(0x232)][_0x1f093d(0x314)](_0x14c5a0,_0x2d9bdd),this[_0x1f093d(0x1d9)]();}[_0x57c5d2(0x1b0)](_0x5afc48,_0xcf2962){const _0x52468a=_0x57c5d2;let _0x14d498=[],_0x565dd2=_0xcf2962,_0x194300=_0xcf2962;for(let _0x2dde2b=_0x5afc48[_0x52468a(0x19d)]-0x1;_0x2dde2b>=0x0;_0x2dde2b--){let {unitID:_0x200432,undoMutations:_0x3047a0,redoMutations:_0x5e7fbc}=_0x5afc48[_0x2dde2b],_0x177dd3=this[_0x52468a(0x12c)][_0x52468a(0x348)](_0x565dd2,_0x3047a0),_0x4757c8=this['_transformService'][_0x52468a(0x348)](_0x194300,_0x5e7fbc);if((0x0,e[_0x52468a(0x18e)])(_0x177dd3)||(0x0,e[_0x52468a(0x18e)])(_0x4757c8)){this['_logService']['error'](_0x52468a(0x316),_0x52468a(0x346),_0x177dd3,_0x4757c8);break;}_0x565dd2=_0x177dd3[_0x52468a(0x12b)],_0x194300=_0x4757c8[_0x52468a(0x12b)],_0x14d498[_0x52468a(0x357)]({'unitID':_0x200432,'undoMutations':_0x177dd3[_0x52468a(0x3ea)],'redoMutations':_0x4757c8['m2Prime']});}return _0x14d498[_0x52468a(0x282)]();}};Q=b([y(0x0,t['IUniverInstanceService']),y(0x1,t[_0x57c5d2(0x25f)]),y(0x2,t[_0x57c5d2(0x22d)]),y(0x3,e[_0x57c5d2(0x3da)]),y(0x4,t[_0x57c5d2(0x1c4)])],Q);let $=class extends t['Plugin']{constructor(_0x4f6d24={},_0x2c6847,_0x4ab3f1,_0x31c1c6){const _0x1b57c3=_0x57c5d2;super(),this[_0x1b57c3(0x356)]=_0x4f6d24,this[_0x1b57c3(0x2c0)]=_0x2c6847,this[_0x1b57c3(0x2ac)]=_0x4ab3f1,this[_0x1b57c3(0x228)]=_0x31c1c6;let {..._0x52aadd}=(0x0,t[_0x1b57c3(0x20e)])({},ue,_0x4f6d24);if(!_0x52aadd[_0x1b57c3(0x161)])throw Error(_0x1b57c3(0x223));this[_0x1b57c3(0x356)]=_0x52aadd,this['_configService'][_0x1b57c3(0x376)](E,_0x52aadd);}['onStarting'](){const _0x48e163=_0x57c5d2;this[_0x48e163(0x17c)](),this[_0x48e163(0x16a)]();}[_0x57c5d2(0x17c)](){const _0x234166=_0x57c5d2;var _0x363fb5,_0x4901ea;this[_0x234166(0x2ac)][_0x234166(0x35f)](t[_0x234166(0x34d)])&&this[_0x234166(0x2c0)]['error'](_0x234166(0x17d),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x15e90e=(0x0,t[_0x234166(0x18b)])([[t[_0x234166(0x34d)],{'useClass':Q}],[H],[x],[w],[W],[K],[v],[X],[_],[q],[B,{'useClass':this[_0x234166(0x356)][_0x234166(0x161)]}],[e[_0x234166(0x2a3)],{'useClass':Z}],[t['IAuthzIoService'],{'useClass':G}],[u[_0x234166(0x3cb)],{'useClass':J}],[t[_0x234166(0x1bd)],{'useClass':Y}],[U],[De]],(_0x363fb5=this[_0x234166(0x356)])==null?void 0x0:_0x363fb5[_0x234166(0x15f)]);if(!((_0x4901ea=this[_0x234166(0x356)])!=null&&_0x4901ea[_0x234166(0x3ef)])){let _0x4e8836=_0x15e90e[_0x234166(0x23e)](([_0x227df4])=>_0x227df4===T);_0x4e8836!==-0x1&&_0x15e90e['splice'](_0x4e8836,0x1);}(0x0,t['registerDependencies'])(this[_0x234166(0x2ac)],_0x15e90e);}['_initDependencies'](){const _0x110218=_0x57c5d2;var _0x346084,_0x1edf52;if(this[_0x110218(0x2ac)][_0x110218(0x337)](c[_0x110218(0x311)])[_0x110218(0x137)]({'priority':0x14,'interceptor':(0x0,c[_0x110218(0x207)])({'maxParallel':0x6})}),!((_0x346084=this[_0x110218(0x356)])!=null&&_0x346084['enableOfflineEditing'])){var _0x3ff9c9;(_0x3ff9c9=this[_0x110218(0x2ac)][_0x110218(0x337)](C,t[_0x110218(0x235)]['OPTIONAL']))==null||_0x3ff9c9['disableLocalCache']();}(_0x1edf52=this['_config'])!=null&&_0x1edf52[_0x110218(0x1b6)]&&(0x0,t[_0x110218(0x364)])(this[_0x110218(0x2ac)],[[W]]),(0x0,t[_0x110218(0x364)])(this[_0x110218(0x2ac)],[[K],[U],[X]]);}};g($,_0x57c5d2(0x379),_0x57c5d2(0x142)),g($,_0x57c5d2(0x17f),Te),g($,_0x57c5d2(0x3f1),Ee),$=b([(0x0,t[_0x57c5d2(0x33f)])(l[_0x57c5d2(0x1d8)],e[_0x57c5d2(0x2c9)],c[_0x57c5d2(0x35e)]),y(0x1,t[_0x57c5d2(0x1c4)]),y(0x2,(0x0,t[_0x57c5d2(0x175)])(t['Injector'])),y(0x3,t[_0x57c5d2(0x313)])],$),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x3d8),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x1e2),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x1d0),{'enumerable':!0x0,'get':function(){return N;}}),exports['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']=E,Object['defineProperty'](exports,_0x57c5d2(0x2e7),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x57c5d2(0x3a7)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object['defineProperty'](exports,_0x57c5d2(0x33d),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x1e1),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x57c5d2(0x315),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x57c5d2(0x3a7)](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x57c5d2(0x20c)]=_e,exports[_0x57c5d2(0x3eb)]=re,exports[_0x57c5d2(0x3c9)]=_,Object[_0x57c5d2(0x3a7)](exports,'CollaborativeUndoRedoService',{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x57c5d2(0x20b)]=v,Object['defineProperty'](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return P;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=p,exports[_0x57c5d2(0x199)]=_0x57c5d2(0x187),exports[_0x57c5d2(0x1ff)]=_0x57c5d2(0x349),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x1c9),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x57c5d2(0x13a),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x57c5d2(0x330),{'enumerable':!0x0,'get':function(){return I;}}),exports[_0x57c5d2(0x324)]=_0x57c5d2(0x155),exports[_0x57c5d2(0x13b)]=_0x57c5d2(0x3ba),exports['ICollaborationSocketService']=B,exports[_0x57c5d2(0x171)]=C,exports['INetworkConditionService']=xe,exports[_0x57c5d2(0x117)]=T,exports[_0x57c5d2(0x27a)]=0x3e8,exports[_0x57c5d2(0x1f1)]='LOCAL_CACHE_INTERVAL',Object['defineProperty'](exports,_0x57c5d2(0x3e6),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x2da),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x27f),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x57c5d2(0x3a7)](exports,'PendingState',{'enumerable':!0x0,'get':function(){return j;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x57c5d2(0x35c),exports[_0x57c5d2(0x34c)]=_0x57c5d2(0x338),exports[_0x57c5d2(0x2fe)]=ae,Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x2a8),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x217),{'enumerable':!0x0,'get':function(){return w;}}),Object['defineProperty'](exports,_0x57c5d2(0x2ec),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x1de),{'enumerable':!0x0,'get':function(){return A;}}),exports['UnitStatus']=le,Object[_0x57c5d2(0x3a7)](exports,_0x57c5d2(0x1bf),{'enumerable':!0x0,'get':function(){return $;}}),exports['deserializeToCombResponse']=Se,exports[_0x57c5d2(0x1e7)]=se,exports[_0x57c5d2(0x300)]=Ce;
|
|
1
|
+
const _0x639d9b=_0x5037;(function(_0x18cc11,_0x412258){const _0x2b9b3f=_0x5037,_0x50d7f4=_0x18cc11();while(!![]){try{const _0x429ab7=-parseInt(_0x2b9b3f(0x367))/0x1+parseInt(_0x2b9b3f(0x299))/0x2+parseInt(_0x2b9b3f(0x39e))/0x3*(-parseInt(_0x2b9b3f(0x2e3))/0x4)+parseInt(_0x2b9b3f(0x315))/0x5+parseInt(_0x2b9b3f(0x1ae))/0x6*(parseInt(_0x2b9b3f(0x15c))/0x7)+parseInt(_0x2b9b3f(0x23b))/0x8*(parseInt(_0x2b9b3f(0x17b))/0x9)+-parseInt(_0x2b9b3f(0x3c9))/0xa*(parseInt(_0x2b9b3f(0x3b2))/0xb);if(_0x429ab7===_0x412258)break;else _0x50d7f4['push'](_0x50d7f4['shift']());}catch(_0x33f814){_0x50d7f4['push'](_0x50d7f4['shift']());}}}(_0x3751,0x8ebb6),Object[_0x639d9b(0x3ba)](exports,Symbol[_0x639d9b(0x366)],{'value':_0x639d9b(0x166)}));let e=require(`@univerjs-pro/collaboration`),t=require(`@univerjs/core`),n=require(`@univerjs/docs`),r=require(`@univerjs/sheets`),i=require(`rxjs`),a=require(`@univerjs/protocol`),o=require(`@univerjs/telemetry`),s=require(`rxjs/operators`),c=require(`@univerjs/network`),l=require(`@univerjs-pro/license`),u=require(`@univerjs/drawing`),d=require(`@noble/ciphers/aes.js`),f=require(`@noble/ciphers/utils.js`);const p=_0x639d9b(0x343),m=0x4e20;function ee(_0x3bad6b){const _0x152503=_0x639d9b;return JSON[_0x152503(0x139)](_0x3bad6b)['length'];}function h(_0x57f8a4){'@babel/helpers - typeof';const _0x4c5632=_0x639d9b;return h=typeof Symbol==_0x4c5632(0x223)&&typeof Symbol['iterator']==_0x4c5632(0x261)?function(_0x408125){return typeof _0x408125;}:function(_0x99586a){const _0x487d67=_0x4c5632;return _0x99586a&&typeof Symbol==_0x487d67(0x223)&&_0x99586a[_0x487d67(0x307)]===Symbol&&_0x99586a!==Symbol[_0x487d67(0x316)]?_0x487d67(0x261):typeof _0x99586a;},h(_0x57f8a4);}function te(_0x13c6b7,_0x4b9d4a){const _0xb6afff=_0x639d9b;if(h(_0x13c6b7)!=_0xb6afff(0x167)||!_0x13c6b7)return _0x13c6b7;var _0x3a1e24=_0x13c6b7[Symbol[_0xb6afff(0x199)]];if(_0x3a1e24!==void 0x0){var _0xf8e895=_0x3a1e24[_0xb6afff(0x16e)](_0x13c6b7,_0x4b9d4a||_0xb6afff(0x2b4));if(h(_0xf8e895)!='object')return _0xf8e895;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b9d4a===_0xb6afff(0x1d2)?String:Number)(_0x13c6b7);}function ne(_0x5220d6){const _0x5be97e=_0x639d9b;var _0x2d936e=te(_0x5220d6,_0x5be97e(0x1d2));return h(_0x2d936e)=='symbol'?_0x2d936e:_0x2d936e+'';}function g(_0x357ebc,_0xc5c25c,_0x28cca3){const _0x189778=_0x639d9b;return(_0xc5c25c=ne(_0xc5c25c))in _0x357ebc?Object[_0x189778(0x3ba)](_0x357ebc,_0xc5c25c,{'value':_0x28cca3,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x357ebc[_0xc5c25c]=_0x28cca3,_0x357ebc;}let re=function(_0x4a1c5d){const _0x44f4ca=_0x639d9b;return _0x4a1c5d[_0x44f4ca(0x2f0)]=_0x44f4ca(0x2f0),_0x4a1c5d[_0x44f4ca(0x341)]=_0x44f4ca(0x341),_0x4a1c5d[_0x44f4ca(0x296)]=_0x44f4ca(0x296),_0x4a1c5d['CLOSE_ROOM']=_0x44f4ca(0x2dd),_0x4a1c5d['JOIN_ROOM_FAILED']=_0x44f4ca(0x1f3),_0x4a1c5d[_0x44f4ca(0x314)]=_0x44f4ca(0x314),_0x4a1c5d['SOCKET_FAILED']=_0x44f4ca(0x161),_0x4a1c5d[_0x44f4ca(0x3a7)]='SUBMIT_CHANGESET_TIMEOUT',_0x4a1c5d;}({});var _=class{constructor(){const _0xeecf09=_0x639d9b;g(this,_0xeecf09(0x3c1),new i[(_0xeecf09(0x352))]()),g(this,_0xeecf09(0x32e),this[_0xeecf09(0x3c1)][_0xeecf09(0x2a5)]());}[_0x639d9b(0x2f7)](_0x2afd09){const _0x469fc4=_0x639d9b;this[_0x469fc4(0x3c1)][_0x469fc4(0x268)](_0x2afd09);}},v=class{constructor(){const _0x3e2d87=_0x639d9b;g(this,_0x3e2d87(0x1f1),new i[(_0x3e2d87(0x352))]()),g(this,_0x3e2d87(0x266),this[_0x3e2d87(0x1f1)][_0x3e2d87(0x2a5)]());}[_0x639d9b(0x1ba)](_0x2ca164){const _0x217d8f=_0x639d9b;this[_0x217d8f(0x1f1)][_0x217d8f(0x268)](_0x2ca164);}};function y(_0x53127c,_0x5d4fa3){return function(_0x48d5c1,_0x54c095){_0x5d4fa3(_0x48d5c1,_0x54c095,_0x53127c);};}function b(_0x256726,_0x27b139,_0x24496c,_0x3eccd2){const _0x510469=_0x639d9b;var _0x4d2110=arguments[_0x510469(0x346)],_0x3f5c5a=_0x4d2110<0x3?_0x27b139:_0x3eccd2===null?_0x3eccd2=Object[_0x510469(0x32a)](_0x27b139,_0x24496c):_0x3eccd2,_0x31be37;if(typeof Reflect=='object'&&typeof Reflect[_0x510469(0x201)]==_0x510469(0x223))_0x3f5c5a=Reflect[_0x510469(0x201)](_0x256726,_0x27b139,_0x24496c,_0x3eccd2);else{for(var _0x222348=_0x256726[_0x510469(0x346)]-0x1;_0x222348>=0x0;_0x222348--)(_0x31be37=_0x256726[_0x222348])&&(_0x3f5c5a=(_0x4d2110<0x3?_0x31be37(_0x3f5c5a):_0x4d2110>0x3?_0x31be37(_0x27b139,_0x24496c,_0x3f5c5a):_0x31be37(_0x27b139,_0x24496c))||_0x3f5c5a);}return _0x4d2110>0x3&&_0x3f5c5a&&Object[_0x510469(0x3ba)](_0x27b139,_0x24496c,_0x3f5c5a),_0x3f5c5a;}let x=class extends t[_0x639d9b(0x2a6)]{constructor(_0x5173ef,_0x50c006){const _0x14437c=_0x639d9b;super(),this['_univerInstanceService']=_0x5173ef,this['_userManagerService']=_0x50c006,g(this,_0x14437c(0x1e7),new Map()),g(this,'_roomCreated$',new i[(_0x14437c(0x352))]()),this['disposeWithMe']((0x0,i[_0x14437c(0x229)])(this[_0x14437c(0x350)][_0x14437c(0x1f4)](t[_0x14437c(0x279)][_0x14437c(0x1f5)])[_0x14437c(0x355)]((0x0,s['map'])(_0xcf8e03=>_0xcf8e03[_0x14437c(0x264)]())),this[_0x14437c(0x350)][_0x14437c(0x1f4)](t[_0x14437c(0x279)]['UNIVER_DOC'])[_0x14437c(0x355)]((0x0,s[_0x14437c(0x39c)])(_0x56fd0a=>_0x56fd0a[_0x14437c(0x264)]())))[_0x14437c(0x196)](_0x1b0e27=>this[_0x14437c(0x227)](_0x1b0e27)));}['waitForRoom$'](_0x174693){const _0x5828e7=_0x639d9b;return this[_0x5828e7(0x1e7)][_0x5828e7(0x1dc)](_0x174693)?(0x0,i['of'])(this['_roomMembers']['get'](_0x174693)):this[_0x5828e7(0x108)][_0x5828e7(0x355)]((0x0,s['map'])(_0x15165b=>{const _0x452c14=_0x5828e7;if(_0x15165b===_0x174693)return this[_0x452c14(0x1e7)][_0x452c14(0x1a8)](_0x15165b);}));}[_0x639d9b(0x3af)](_0x1b6d3f){const _0x5eed51=_0x639d9b;this[_0x5eed51(0x207)][_0x5eed51(0x3af)](_0x1b6d3f);}[_0x639d9b(0x18a)](){const _0x59f66e=_0x639d9b;return this[_0x59f66e(0x207)][_0x59f66e(0x18a)]();}[_0x639d9b(0x12f)](_0x2ac098,_0x5113e5){const _0x5b3918=_0x639d9b;let _0x49924b=this[_0x5b3918(0x1e7)][_0x5b3918(0x1a8)](_0x2ac098);_0x49924b||(_0x49924b=new ie(),this[_0x5b3918(0x1e7)][_0x5b3918(0x29c)](_0x2ac098,_0x49924b),this[_0x5b3918(0x108)][_0x5b3918(0x268)](_0x2ac098)),_0x49924b[_0x5b3918(0x12f)](_0x5113e5);}[_0x639d9b(0x14d)](_0x34bb5d,_0x30ddb3){const _0x19ed25=_0x639d9b;let _0x3170c2=this[_0x19ed25(0x1e7)][_0x19ed25(0x1a8)](_0x34bb5d);_0x3170c2&&_0x3170c2[_0x19ed25(0x14d)](_0x30ddb3);}['getRoom'](_0x140bc7){const _0x12e8b8=_0x639d9b;return this[_0x12e8b8(0x1e7)][_0x12e8b8(0x1a8)](_0x140bc7);}[_0x639d9b(0x18d)](_0x61bb9a,_0x575ddc){const _0x560723=_0x639d9b;let _0x6af9ea=this[_0x560723(0x1e7)][_0x560723(0x1a8)](_0x61bb9a);if(_0x6af9ea)return _0x6af9ea[_0x560723(0x18d)](_0x575ddc);}[_0x639d9b(0x227)](_0x952237){const _0x3d47d4=_0x639d9b;let _0x118094=this['_roomMembers'][_0x3d47d4(0x1a8)](_0x952237);_0x118094&&(_0x118094[_0x3d47d4(0x36f)](),this[_0x3d47d4(0x1e7)]['delete'](_0x952237));}[_0x639d9b(0x36f)](){const _0x1b1eff=_0x639d9b;this[_0x1b1eff(0x1e7)]['forEach'](_0x5dc7a6=>_0x5dc7a6['dispose']()),this[_0x1b1eff(0x1e7)][_0x1b1eff(0x1df)](),this[_0x1b1eff(0x108)][_0x1b1eff(0x15f)]();}};x=b([y(0x0,t[_0x639d9b(0x21e)]),y(0x1,(0x0,t['Inject'])(t['UserManagerService']))],x);function _0x5037(_0x527a53,_0x2d855b){_0x527a53=_0x527a53-0x101;const _0x37513d=_0x3751();let _0x50376d=_0x37513d[_0x527a53];return _0x50376d;}var ie=class extends t[_0x639d9b(0x2a6)]{constructor(..._0x16ec3f){const _0x550245=_0x639d9b;super(..._0x16ec3f),g(this,_0x550245(0x172),new Map()),g(this,'_members$',new i[(_0x550245(0x2aa))](this[_0x550245(0x172)])),g(this,_0x550245(0x3be),this['_members$'][_0x550245(0x2a5)]());}[_0x639d9b(0x36f)](){const _0x5d7bae=_0x639d9b;this[_0x5d7bae(0x172)][_0x5d7bae(0x1df)](),this[_0x5d7bae(0x1ab)][_0x5d7bae(0x15f)]();}[_0x639d9b(0x12f)](_0x1b9b15){const _0x567a00=_0x639d9b;this['_members'][_0x567a00(0x29c)](_0x1b9b15[_0x567a00(0x2a7)],_0x1b9b15),this['_emitMembers']();}[_0x639d9b(0x14d)](_0x4b0556){const _0x57e6ea=_0x639d9b;this[_0x57e6ea(0x172)][_0x57e6ea(0x14b)](_0x4b0556),this[_0x57e6ea(0x2e2)]();}[_0x639d9b(0x18d)](_0x5a7cf5){const _0x37bafd=_0x639d9b;return this[_0x37bafd(0x172)][_0x37bafd(0x1a8)](_0x5a7cf5);}[_0x639d9b(0x157)](){const _0x25edd7=_0x639d9b;return Array['from'](this[_0x25edd7(0x172)][_0x25edd7(0x27c)]());}[_0x639d9b(0x2e2)](){const _0x13ae66=_0x639d9b;this[_0x13ae66(0x1ab)][_0x13ae66(0x268)](this[_0x13ae66(0x172)]);}};let ae=function(_0x55cb5f){const _0x1d94c0=_0x639d9b;return _0x55cb5f[_0x55cb5f[_0x1d94c0(0x215)]=0x0]=_0x1d94c0(0x215),_0x55cb5f[_0x55cb5f[_0x1d94c0(0x144)]=0x1]=_0x1d94c0(0x144),_0x55cb5f[_0x55cb5f[_0x1d94c0(0x392)]=0x2]=_0x1d94c0(0x392),_0x55cb5f[_0x55cb5f[_0x1d94c0(0x147)]=0x3]=_0x1d94c0(0x147),_0x55cb5f;}({});const oe={[a[_0x639d9b(0x200)]['FAIL']]:_0x639d9b(0x34d),[a[_0x639d9b(0x200)][_0x639d9b(0x1e9)]]:'session.room-full',[a['CmdRspCode'][_0x639d9b(0x381)]]:'session.room-not-exists',[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:'session.room-permission-denied',[a['CmdRspCode']['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x639d9b(0x30d)};let S=class extends t[_0x639d9b(0x19b)]{get['sessionStatus'](){const _0xa3fd5e=_0x639d9b;return this['_sessionStatus$'][_0xa3fd5e(0x331)]();}constructor(_0x275d77,_0xb99aa8,_0x1c52f2,_0x4e6007,_0x218276,_0x59bebd,_0xdeb577,_0x5f48be){const _0x3177ee=_0x639d9b;super(),this['_unitID']=_0x275d77,this[_0x3177ee(0x353)]=_0x1c52f2,this[_0x3177ee(0x364)]=_0x4e6007,this[_0x3177ee(0x1c3)]=_0x218276,this[_0x3177ee(0x205)]=_0x59bebd,this[_0x3177ee(0x15e)]=_0xdeb577,this['_telemetryService']=_0x5f48be,g(this,'_sessionStatus$',new i['BehaviorSubject'](0x0)),g(this,_0x3177ee(0x103),this[_0x3177ee(0x285)]['asObservable']()),g(this,_0x3177ee(0x3c1),new i[(_0x3177ee(0x352))]()),g(this,_0x3177ee(0x32e),this[_0x3177ee(0x3c1)][_0x3177ee(0x2a5)]()),g(this,_0x3177ee(0x151),void 0x0),g(this,'_socketMessageSubscription',void 0x0),g(this,_0x3177ee(0x270),void 0x0),g(this,_0x3177ee(0x363),!0x1),g(this,'_telemetryInfo',null),this[_0x3177ee(0x363)]=!!this['_telemetryService'],_0xb99aa8[_0x3177ee(0x355)]((0x0,i[_0x3177ee(0x221)])(this['dispose$']))['subscribe'](_0x2edb98=>{const _0x5ddaf2=_0x3177ee;if(_0x2edb98!==void 0x0){if(this['_socket']=_0x2edb98,_0x2edb98)this[_0x5ddaf2(0x385)](_0x2edb98),this[_0x5ddaf2(0x120)]=_0x2edb98['message$'][_0x5ddaf2(0x196)](_0x2526c6=>{const _0x32fdb0=_0x5ddaf2;_0x2526c6['routeKey']===this[_0x32fdb0(0x168)]&&this[_0x32fdb0(0x395)](_0x2526c6);});else{var _0xfe5c0d;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5ddaf2(0x285)][_0x5ddaf2(0x268)](0x2),(_0xfe5c0d=this[_0x5ddaf2(0x120)])==null||_0xfe5c0d[_0x5ddaf2(0x1c2)](),this[_0x5ddaf2(0x120)]=null;}}});}[_0x639d9b(0x33e)](){const _0x379cd4=_0x639d9b;var _0x3a0899,_0x337243;return(_0x3a0899=(_0x337243=this[_0x379cd4(0x151)])==null?void 0x0:_0x337243['memberID'])==null?null:_0x3a0899;}[_0x639d9b(0x36f)](){const _0x35c8ea=_0x639d9b;super[_0x35c8ea(0x36f)](),this['close'](),this[_0x35c8ea(0x219)]['next'](),this[_0x35c8ea(0x219)][_0x35c8ea(0x15f)]();}[_0x639d9b(0x178)](){const _0x24d66d=_0x639d9b;var _0x26f88c,_0x11b3c4;this[_0x24d66d(0x38f)](),(_0x26f88c=this[_0x24d66d(0x151)])==null||_0x26f88c[_0x24d66d(0x284)]({'cmd':a['CombCmd'][_0x24d66d(0x23f)],'data':{'roomID':this['_unitID']}}),(_0x11b3c4=this[_0x24d66d(0x151)])==null||_0x11b3c4['close'](),this[_0x24d66d(0x3c1)][_0x24d66d(0x15f)](),this[_0x24d66d(0x285)]['complete']();}[_0x639d9b(0x395)](_0x443bdd){const _0x43e50d=_0x639d9b;_0x443bdd['cmd']===a['CombCmd']['JOIN']?this[_0x43e50d(0x1e3)](_0x443bdd):_0x443bdd[_0x43e50d(0x131)]===a[_0x43e50d(0x118)][_0x43e50d(0x150)]&&this[_0x43e50d(0x230)](_0x443bdd);}[_0x639d9b(0x385)](_0x31af14){const _0x313adc=_0x639d9b;this[_0x313adc(0x285)][_0x313adc(0x268)](0x1),_0x31af14[_0x313adc(0x284)]({'cmd':a['CombCmd'][_0x313adc(0x325)],'routeKey':this['_unitID'],'routeType':'','data':{'rooms':[{'roomID':this[_0x313adc(0x168)]}]}});}[_0x639d9b(0x1e3)](_0x2d3880){const _0x55c933=_0x639d9b;var _0x43d797;if(_0x2d3880[_0x55c933(0x319)]in oe){this[_0x55c933(0x15e)]['emitEvent']({'id':_0x55c933(0x1f3),'data':oe[_0x2d3880[_0x55c933(0x319)]]}),this[_0x55c933(0x285)]['next'](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0xb04819=(_0x43d797=_0x2d3880[_0x55c933(0x398)]['roomInfos'][this[_0x55c933(0x168)]])==null?void 0x0:_0x43d797['members'];_0xb04819&&_0xb04819[_0x55c933(0x3c4)](_0x2c0ff6=>this[_0x55c933(0x1c3)]['updateMember'](this[_0x55c933(0x168)],_0x2c0ff6));}[_0x639d9b(0x230)](_0x37b0de){const _0x5dcd2c=_0x639d9b;try{let _0x223c3f=_0x37b0de['data'];switch(_0x223c3f[_0x5dcd2c(0x34c)]){case e[_0x5dcd2c(0x1b0)][_0x5dcd2c(0x228)]:this[_0x5dcd2c(0x24e)](_0x223c3f),this['_event$'][_0x5dcd2c(0x268)](_0x223c3f);break;case e['CollaborationEvent'][_0x5dcd2c(0x358)]:this[_0x5dcd2c(0x18c)](_0x223c3f),this[_0x5dcd2c(0x3c1)]['next'](_0x223c3f);break;case e[_0x5dcd2c(0x1b0)]['CHANGESET_ACK']:case e['CollaborationEvent'][_0x5dcd2c(0x260)]:this[_0x5dcd2c(0x2bf)](),this[_0x5dcd2c(0x1f7)](),this['_event$']['next'](_0x223c3f);break;case e[_0x5dcd2c(0x1b0)]['MSG_FOR_ERROR']:this[_0x5dcd2c(0x353)][_0x5dcd2c(0x36e)](_0x5dcd2c(0x216)+JSON[_0x5dcd2c(0x139)](_0x223c3f)),this[_0x5dcd2c(0x3c1)][_0x5dcd2c(0x268)](_0x223c3f);break;case e[_0x5dcd2c(0x1b0)][_0x5dcd2c(0x1a7)]:this[_0x5dcd2c(0x205)][_0x5dcd2c(0x1ba)](_0x223c3f['data']),this[_0x5dcd2c(0x3c1)][_0x5dcd2c(0x268)](_0x223c3f);break;default:this[_0x5dcd2c(0x3c1)]['next'](_0x223c3f);}}catch(_0x10c0d3){this[_0x5dcd2c(0x353)][_0x5dcd2c(0x36e)](_0x10c0d3,_0x37b0de);}}[_0x639d9b(0x24e)](_0x126529){const _0x59732a=_0x639d9b;this[_0x59732a(0x1c3)][_0x59732a(0x12f)](this[_0x59732a(0x168)],_0x126529[_0x59732a(0x398)]);}['_onUserLeave'](_0x2643d5){const _0x1dd400=_0x639d9b;this[_0x1dd400(0x1c3)][_0x1dd400(0x14d)](this[_0x1dd400(0x168)],_0x2643d5['data'][_0x1dd400(0x2a7)]);}async[_0x639d9b(0x284)](_0x5d77c8,_0x3d6dc7){const _0x2088e4=_0x639d9b;if(this['sessionStatus']!==0x3||!this[_0x2088e4(0x151)])throw Error(_0x2088e4(0x29e));try{_0x5d77c8[_0x2088e4(0x34c)]===e[_0x2088e4(0x1b0)][_0x2088e4(0x126)]&&(this[_0x2088e4(0x18f)](),this[_0x2088e4(0x1fd)](_0x5d77c8)),this['_socket']['send']({'cmd':a[_0x2088e4(0x118)][_0x2088e4(0x30c)],'routeKey':_0x3d6dc7,'routeType':'','data':_0x5d77c8});}catch(_0x21e444){this[_0x2088e4(0x353)][_0x2088e4(0x36e)](_0x21e444);}}[_0x639d9b(0x18f)](){const _0x552268=_0x639d9b;var _0x338480;this['_collaborationTimeoutTimer']=setTimeout(()=>{const _0x281c1a=_0x5037;this[_0x281c1a(0x270)]=null,this['_collaborationUIEventService']['emitEvent']({'id':_0x281c1a(0x3a7)});},(_0x338480=this[_0x552268(0x364)]['getConfig'](_0x552268(0x111)))==null?m:_0x338480);}[_0x639d9b(0x1f7)](){const _0x4dfd69=_0x639d9b;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x4dfd69(0x270)]),this[_0x4dfd69(0x270)]=null);}[_0x639d9b(0x1fd)](_0x15f21a){const _0x524b06=_0x639d9b;if(!this[_0x524b06(0x363)])return;let {data:_0x31e92e}=_0x15f21a,{unitID:_0xac5441,changeset:_0x4348da}=_0x31e92e,{mutations:_0x1feeae,type:_0x44138c}=_0x4348da;this[_0x524b06(0x1fa)]={'unitId':_0xac5441,'type':_0x44138c,'startTime':performance[_0x524b06(0x135)](),'stopTime':0x0,'duration':0x0,'size':ee(_0x1feeae)};}[_0x639d9b(0x2bf)](){const _0x34cedd=_0x639d9b;if(this['_shouldReportTelemetry']){if(!this['_telemetryInfo']){this[_0x34cedd(0x353)][_0x34cedd(0x36e)](_0x34cedd(0x12b),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo'][_0x34cedd(0x387)]=performance['now'](),this[_0x34cedd(0x1fa)]['duration']=this[_0x34cedd(0x1fa)][_0x34cedd(0x387)]-this[_0x34cedd(0x1fa)][_0x34cedd(0x194)],this['_telemetryService'][_0x34cedd(0x2be)](_0x34cedd(0x32b),this[_0x34cedd(0x1fa)]),this[_0x34cedd(0x1fa)]=null;}}[_0x639d9b(0x38f)](){this['_telemetryInfo']=null;}};S=b([y(0x2,t[_0x639d9b(0x1b7)]),y(0x3,t['IConfigService']),y(0x4,(0x0,t[_0x639d9b(0x11e)])(x)),y(0x5,(0x0,t['Inject'])(v)),y(0x6,(0x0,t['Inject'])(_)),y(0x7,(0x0,t[_0x639d9b(0x240)])(o['ITelemetryService']))],S);const C=(0x0,t[_0x639d9b(0x1a6)])('collaboration-client.local-cache-service');function se(_0x4994db){const _0x42b655=_0x639d9b;return _0x42b655(0x2cf)+_0x4994db;}function ce(_0x34c6bd){const _0x138b92=_0x639d9b;let {unitID:_0x1b37ea,mutations:_0x568b1d}=_0x34c6bd;return{'unitId':_0x1b37ea,'subUnitId':_0x568b1d[_0x138b92(0x346)]>0x0?_0x568b1d[0x0][_0x138b92(0x13b)][_0x138b92(0x195)]:null};}let w=class{constructor(_0x2580c2,_0x402457,_0x183a38){const _0x7f7a9a=_0x639d9b;this[_0x7f7a9a(0x22b)]=_0x2580c2,this['_transformService']=_0x402457,this['_instanceService']=_0x183a38;}['transformSelections'](_0x256c1a){const _0x12a2f8=_0x639d9b;var _0x310c4d,_0x3d8c4d;let _0x57b653=this['_injector'][_0x12a2f8(0x1a8)](r[_0x12a2f8(0x1ec)]),{unitId:_0x434936,subUnitId:_0x479bb3}=ce(_0x256c1a),_0x5e35c9=_0x57b653==null?void 0x0:_0x57b653['getWorkbookSelections'](_0x434936)[_0x12a2f8(0x30b)](),_0xc6f301=(_0x310c4d=this[_0x12a2f8(0x210)][_0x12a2f8(0x1fc)](_0x434936))==null||(_0x310c4d=_0x310c4d[_0x12a2f8(0x22d)]())==null?void 0x0:_0x310c4d[_0x12a2f8(0x1aa)]();if(_0x5e35c9[_0x12a2f8(0x346)]===0x0||!_0x434936||!_0x479bb3)return;let _0x10cd0e=[{'id':r[_0x12a2f8(0x28e)]['id'],'params':{'unitId':_0x434936,'subUnitId':_0xc6f301,'selections':t['Tools'][_0x12a2f8(0x35c)](_0x5e35c9)}}],_0x4a9f79=this[_0x12a2f8(0x297)][_0x12a2f8(0x2ce)](_0x256c1a,_0x10cd0e);if(!(0x0,e[_0x12a2f8(0x3d3)])(_0x4a9f79))throw _0x4a9f79['error'];let _0x39e329=(_0x3d8c4d=_0x4a9f79['m2Prime'][0x0])==null||(_0x3d8c4d=_0x3d8c4d[_0x12a2f8(0x13b)])==null?void 0x0:_0x3d8c4d[_0x12a2f8(0x335)];if(Array[_0x12a2f8(0x3a3)](_0x39e329)&&_0x39e329['length']){if(_0x39e329[_0x12a2f8(0x346)]===_0x10cd0e[0x0][_0x12a2f8(0x13b)]['selections'][_0x12a2f8(0x346)]&&_0x39e329['every']((_0x21c375,_0x234765)=>t[_0x12a2f8(0x1a9)][_0x12a2f8(0x3d9)](_0x21c375[_0x12a2f8(0x281)],_0x10cd0e[0x0][_0x12a2f8(0x13b)][_0x12a2f8(0x335)][_0x234765][_0x12a2f8(0x281)])))return;this[_0x12a2f8(0x22b)][_0x12a2f8(0x1a8)](t['ICommandService'])[_0x12a2f8(0x218)](r[_0x12a2f8(0x28e)]['id'],{'unitId':_0x434936,'subUnitId':_0xc6f301,'selections':_0x39e329});}}};w=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,e[_0x639d9b(0x1c4)]),y(0x2,t[_0x639d9b(0x21e)])],w);const T=(0x0,t[_0x639d9b(0x1a6)])('univer-pro.collaboration-client.single-active-unit-service');let le=function(_0x19688a){return _0x19688a[_0x19688a['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x19688a[_0x19688a['OTHER_CLIENTS_EDITING']=0x1]='OTHER_CLIENTS_EDITING',_0x19688a;}({});const E=_0x639d9b(0x262);Symbol(E);const ue={};function de(_0x1ee8ce){const _0x1df5b7=_0x639d9b;var _0x5238e2;return!!((_0x5238e2=_0x1ee8ce[_0x1df5b7(0x13b)])!=null&&_0x5238e2['__splitChunk__']);}const fe=new Set([r[_0x639d9b(0x375)]['id']]);function pe(_0x5d1078,_0xa68cd5,_0x4c5806,_0x11c208,_0x125138){const _0x38c363=_0x639d9b;var _0x427389,_0x40bf1f,_0x439aa9,_0x5d0f16;let _0x395496=[];for(let _0x4d6cca of _0x5d1078){if(fe[_0x38c363(0x1dc)](_0x4d6cca['id'])){if(_0x395496[_0x38c363(0x346)]>0x0)break;_0x395496[_0x38c363(0x1a4)](_0x4d6cca);break;}if(de(_0x4d6cca)){if(_0x395496[_0x38c363(0x346)]>0x0)break;_0x395496[_0x38c363(0x1a4)](_0x4d6cca);break;}_0x395496[_0x38c363(0x1a4)](_0x4d6cca);}let _0x3044d4=(_0x427389=(_0x40bf1f=_0x125138[_0x38c363(0x18a)]())==null?void 0x0:_0x40bf1f[_0x38c363(0x356)])==null?'unknown':_0x427389,_0x13a468=(_0x439aa9=(_0x5d0f16=_0x125138[_0x38c363(0x18a)]())==null?void 0x0:_0x5d0f16[_0x38c363(0x2a7)])==null?'unknown':_0x439aa9;return{'changeset':{'unitID':_0xa68cd5,'type':(0x0,e[_0x38c363(0x3b5)])(_0x4c5806[_0x38c363(0x1e4)](_0xa68cd5)),'baseRev':_0x11c208[_0x38c363(0x2c0)](_0xa68cd5),'revision':0x0,'userID':_0x3044d4,'memberID':_0x13a468,'mutations':_0x395496},'pendingMutations':_0x5d1078[_0x38c363(0x323)](_0x395496[_0x38c363(0x346)])};}function me(_0x2e6ab3,_0x3a9b4d,_0x15e7bb,_0x426e22,_0x524d63){const _0x388147=_0x639d9b;var _0x5e59ab,_0x9c14fb,_0x1a810d,_0xf39043;let _0x56e0bb=[_0x2e6ab3[_0x388147(0x1ea)]((_0x23726f,_0x483b29)=>{const _0x2b1239=_0x388147;var _0x1aaeb1;let {id:_0xf7b583}=_0x23726f,{id:_0x5def84,type:_0x335773}=_0x483b29,_0x193dd9=(_0x1aaeb1=_0x23726f[_0x2b1239(0x13b)])==null?{'actions':null}:_0x1aaeb1,_0x415c16=_0x483b29[_0x2b1239(0x13b)];if(_0xf7b583&&_0xf7b583!==_0x5def84)throw Error(_0x2b1239(0x3da)+_0xf7b583+'\x20-\x20'+_0x5def84+'.');return{..._0x23726f,'id':_0x5def84,'type':_0x335773,'params':{'unitId':_0x415c16[_0x2b1239(0x3bc)],'textRanges':_0x415c16[_0x2b1239(0x1fb)],'actions':t[_0x2b1239(0x391)][_0x2b1239(0x1f9)](_0x193dd9[_0x2b1239(0x39a)],_0x415c16[_0x2b1239(0x39a)])}};},{})],_0x39a242=(_0x5e59ab=(_0x9c14fb=_0x524d63[_0x388147(0x18a)]())==null?void 0x0:_0x9c14fb[_0x388147(0x356)])==null?_0x388147(0x2eb):_0x5e59ab,_0xff33ac=(_0x1a810d=(_0xf39043=_0x524d63[_0x388147(0x18a)]())==null?void 0x0:_0xf39043[_0x388147(0x2a7)])==null?_0x388147(0x2eb):_0x1a810d;return{'changeset':{'unitID':_0x3a9b4d,'type':(0x0,e[_0x388147(0x3b5)])(_0x15e7bb[_0x388147(0x1e4)](_0x3a9b4d)),'baseRev':_0x426e22[_0x388147(0x2c0)](_0x3a9b4d),'revision':0x0,'userID':_0x39a242,'memberID':_0xff33ac,'mutations':_0x56e0bb},'pendingMutations':[]};}function he(_0x3c2389,_0x159bc4){const _0x2a69a4=_0x639d9b;let _0x188609=new i[(_0x2a69a4(0x101))](0x1);return setTimeout(()=>_0x188609[_0x2a69a4(0x268)](_0x159bc4),_0x3c2389),_0x188609[_0x2a69a4(0x2a5)]()['pipe']((0x0,i[_0x2a69a4(0x14e)])(0x1));}var D,O,ge;let _e=function(_0x5c2158){const _0x4d2e1d=_0x639d9b;return _0x5c2158[_0x4d2e1d(0x13c)]=_0x4d2e1d(0x2e7),_0x5c2158[_0x4d2e1d(0x2ee)]=_0x4d2e1d(0x1a3),_0x5c2158[_0x4d2e1d(0x136)]=_0x4d2e1d(0x179),_0x5c2158['AWAITING']=_0x4d2e1d(0x113),_0x5c2158[_0x4d2e1d(0x1cf)]=_0x4d2e1d(0x2dc),_0x5c2158[_0x4d2e1d(0x2c8)]='fetch_missing',_0x5c2158[_0x4d2e1d(0x296)]=_0x4d2e1d(0x242),_0x5c2158['OFFLINE']=_0x4d2e1d(0x2d6),_0x5c2158;}({});const ve=0x4e20,ye=0x2bf20;var k=class{constructor(_0x4d2996,_0x38ef88,_0x25b5c2,_0x5338d3,_0x54411b,_0xbaf120,_0x54a518,_0x29a6f5,_0xe8e85c){const _0x2f2eef=_0x639d9b;this[_0x2f2eef(0x211)]=_0x4d2996,this['type']=_0x38ef88,this[_0x2f2eef(0x25a)]=_0x54411b,this[_0x2f2eef(0x286)]=_0xbaf120,this[_0x2f2eef(0x32c)]=_0x54a518,this[_0x2f2eef(0x3cd)]=_0x29a6f5,this[_0x2f2eef(0x24c)]=_0xe8e85c,g(this,_0x2f2eef(0x359),null),g(this,_0x2f2eef(0x337),[]),this['_awaitingChangeset']=_0x25b5c2,this[_0x2f2eef(0x337)]=_0x5338d3;}['_checkMissing'](_0x29ad6f){const _0x1bad6b=_0x639d9b;let _0xd7cd62=this[_0x1bad6b(0x3cd)][_0x1bad6b(0x2c0)](this[_0x1bad6b(0x211)]);return _0x29ad6f[_0x1bad6b(0x3d2)]>_0xd7cd62+0x1?(this[_0x1bad6b(0x25a)][_0x1bad6b(0x37b)]({'from':_0xd7cd62,'to':_0x29ad6f[_0x1bad6b(0x3d2)]-0x1}),!0x0):!0x1;}[_0x639d9b(0x2f5)](_0x3b2b28){const _0x345903=_0x639d9b;this[_0x345903(0x32c)][_0x345903(0x2b8)](this[_0x345903(0x211)],_0x3b2b28);}['_transformSelections'](_0x51c6a2){const _0x5cdb0a=_0x639d9b;var _0x44b73d,_0x20def6;(_0x44b73d=(_0x20def6=this[_0x5cdb0a(0x25a)])[_0x5cdb0a(0x102)])==null||_0x44b73d[_0x5cdb0a(0x16e)](_0x20def6,_0x51c6a2);}[_0x639d9b(0x1bd)](_0x286c06){const _0x1288be=_0x639d9b;var _0x5961a6,_0x23b9bd;return(_0x5961a6=(_0x23b9bd=this[_0x1288be(0x25a)])[_0x1288be(0x25f)])==null?void 0x0:_0x5961a6[_0x1288be(0x16e)](_0x23b9bd,_0x286c06);}[_0x639d9b(0x377)](_0x57eb19){const _0x58fc20=_0x639d9b;var _0x269765,_0x266386;return(_0x269765=(_0x266386=this[_0x58fc20(0x25a)])[_0x58fc20(0x283)])==null?void 0x0:_0x269765[_0x58fc20(0x16e)](_0x266386,_0x57eb19);}['_transformRemoteChangesetByIMECache'](_0x494131){const _0xc4bc58=_0x639d9b;var _0x4bf2ef,_0x3c22ff,_0x24301a;return(_0x4bf2ef=(_0x3c22ff=(_0x24301a=this[_0xc4bc58(0x25a)])[_0xc4bc58(0x3db)])==null?void 0x0:_0x3c22ff[_0xc4bc58(0x16e)](_0x24301a,_0x494131))==null?_0x494131:_0x4bf2ef;}[_0x639d9b(0x2c3)](_0x1531a7){const _0x5b71d8=_0x639d9b;var _0xbaa93d,_0x3084a2,_0x12c0cf;return(_0xbaa93d=(_0x3084a2=(_0x12c0cf=this[_0x5b71d8(0x25a)])[_0x5b71d8(0x105)])==null?void 0x0:_0x3084a2['call'](_0x12c0cf,_0x1531a7))==null?_0x1531a7:_0xbaa93d;}[_0x639d9b(0x2ff)](_0x377f64){const _0x3b6d12=_0x639d9b;if(this[_0x3b6d12(0x291)]===t[_0x3b6d12(0x279)][_0x3b6d12(0x3c3)]){let {unitID:_0x5c0664,mutations:_0x1e7284,memberID:_0x62be1e}=_0x377f64,_0x73d79d=_0x1e7284[_0x3b6d12(0x346)]>0x0?_0x1e7284[0x0][_0x3b6d12(0x13b)][_0x3b6d12(0x1fb)]:[];if(Array['isArray'](_0x73d79d)&&_0x73d79d[_0x3b6d12(0x346)]>0x0){var _0x442719,_0x37e3bd;(_0x442719=(_0x37e3bd=this[_0x3b6d12(0x25a)])[_0x3b6d12(0x1c8)])==null||_0x442719[_0x3b6d12(0x16e)](_0x37e3bd,{'unitID':_0x5c0664,'memberID':_0x62be1e,'textRanges':_0x73d79d});}}}[_0x639d9b(0x308)](){const _0x3447bb=_0x639d9b;var _0x562a75;(_0x562a75=this['_localCacheService'])==null||_0x562a75[_0x3447bb(0x197)](this[_0x3447bb(0x211)],this['type'],this['_awaitingChangeset'],this[_0x3447bb(0x337)]);}[_0x639d9b(0x365)](){const _0x2a88a8=_0x639d9b;return this[_0x2a88a8(0x3cd)][_0x2a88a8(0x2c0)](this['unitID']);}[_0x639d9b(0x1be)](){const _0x3eeae7=_0x639d9b;this['_revisionService'][_0x3eeae7(0x256)](this[_0x3eeae7(0x211)]);}[_0x639d9b(0x360)](_0x526cea){const _0x5aa7e6=_0x639d9b;let _0x39d53a=this[_0x5aa7e6(0x21b)](_0x526cea);_0x39d53a=this[_0x5aa7e6(0x2c3)](_0x39d53a);let _0x2cc324=(0x0,t[_0x5aa7e6(0x173)])(_0x39d53a['mutations'],this[_0x5aa7e6(0x286)],{'fromCollab':!0x0});if(!_0x2cc324[_0x5aa7e6(0x241)]){var _0x8c3593;throw _0x2cc324[_0x5aa7e6(0x36e)]instanceof Error?_0x2cc324['error']:Error((_0x8c3593=_0x2cc324[_0x5aa7e6(0x36e)])==null?_0x5aa7e6(0x2bd):_0x8c3593);}this['_transformIMECache'](_0x39d53a),this[_0x5aa7e6(0x377)](_0x39d53a),this['_transformUndoredo'](_0x526cea),this[_0x5aa7e6(0x2f6)](_0x39d53a),this['_syncEditingCollabCursor'](_0x39d53a),this[_0x5aa7e6(0x1be)]();}};function _0x3751(){const _0x41b580=['[CollaborationState]:\x20apply\x20error!','capture','_stopTelemetryCollaborationNewChangeset','getCurrentRevOfUnit','isTransformChangesetsSuccess','objectActions','_transformRemoteChangesetByStateCache','[OfflineState]:\x20received\x20acknowledgement.','UniverLicensePlugin','UniverCollaborationPlugin','getTypeOfUnitAdded$','FETCH_MISS','COMPRESS_MUTATION_APPLY','[CollaborationSessionService]','originalMeta','csAckEvent','status$','transformMutationsWithChangeset','unit-cache-','unitInfo$','_resendTimeout','_toggleOffline','createInstance','saveChangeset','_HTTPService','offline','_sender','LocalUndoRedoService','requireSession','_remoteChangesetQueue','CollaborationEntity','awaiting_with_pending','CLOSE_ROOM','catch','_timeoutTimer','parseChangesetToProtocol','_onConnectionFailed','_emitMembers','212964AatjAe','_replaceFileID','LocaleService','permissionRejEvent','not_collab','/universer-api/file/{fileID}/sign-url','confirm','SyncedState','unknown','ICommandService','_sendingTimer','SYNCED','/universer-api/authz','OTHER_CLIENT_EDITING','_handleRemoteChangesets','IPermissionService','DocCollaborationEntity','IAuthzIoService','_transformUndoredo','_transformSelections','emitEvent','open$','init','_permissionService','/universer-api/user/session-ticket','/collaborator','getImage','/-/object/-/batch_allowed','_syncEditingCollabCursor','_getSendChangesetTimeout','saveSnapshot','_clearLocalCache','ERROR_EXCEED_SIZE','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','create','refreshPermission','constructor','_updateLocalCache','WorkbookEditablePermission','ConflictState','getCurrentSelections','INGEST','session.room-cnt-exceeds','readAsDataURL','Injector','_rescheduleHeartbeat','resend','concatBytes','[PendingState]:\x20received\x20rejection.','SOCKET_FAILED_RETRY','396010asrBOy','prototype','LIVESHARE_OPERATION','FileId','code','origin','POST','_imageSourceCache','_change$','_initMergeInterceptor','_getUndoStack','_retryCount','&assign=','_onRemoteACK','slice','setShowComponents','JOIN','fetch_missing','socketService','/universer-api/snapshot/','parseProtocolChangeset','getOwnPropertyDescriptor','collaboration_new_changeset','_undoRedoService','/object/','event$','{fileID}','joinEvent','getValue','_getCtorByUniverInstanceType','SheetCollaborationEntity','_getAPIPrefixPath','selections','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','_pendingMutations','setCfgEnableObjInherit','DEFAULT_COLLAB_WEB_SOCKET_URL','utf8ToBytes','csRejEvent','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','PendingState','getMemberID','list','_changesetSessionId','PERMISSION_DENIED','LIVESHARE_FETCH_OPERATIONS','ws://127.0.0.1:8000/universer-api/comb/connect','HTTPService','/new_changes','length','IContextService','getFocusedUnit','registerDependencies','_getAPIPrefix','interceptor','eventID','session.join-failed','IMentionIOService','/block/','_univerInstanceService','RevisionService','Subject','_logService','CollaborationSession','pipe','userID','downloadEndpointUrl','USERS_LEAVE','_awaitingChangeset','isPermissionRej','_singleActiveUnitService','deepClone','_scheduleCompleteTimestamp','LIVESHARE_REQUEST_HOST','_localeService','_executeRemoteChangeset','_clearRetryConnectingTimer','CompressMutationService','_shouldReportTelemetry','_configService','_getCurrentRevision','toStringTag','574927Lfwsbp','_clearHeartbeatTimer','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_exhaustRemoteChangesetQueue','PERMISSION_REJ','_socketService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','dispose','CommentService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','getSheetBlock','ErrorCode','HEARTBEAT','InsertSheetMutation','PERSON','_transformStateCache','HEARTBEAT_INTERVAL','MentionType','getCollabEntity','onMissingChangesets','joinRsp','baseRev','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','RETRY_CONNECTING_MAX_COUNT_KEY','onMissedChangesetFetched','JOIN_ROOM_NOT_EXISTS','add','deleteCollaborator','_state$','_joinRoom','concatMap','stopTime','encrypt','state','_acknowledgeAwaiting','fetchMiss','unitId\x20is\x20not\x20found','0.24.0','requestParams','_throwTelemetryCollaborationNewChangeset','_getLoginPath','JSONX','OFFLINE','min','status','_onCombEvent','hostname','_substituteRedoStack','data','/universer-api/oidc/authpage','actions','collabWebSocketUrl','map','_acknowledgedAwaitingRevision','33IgWxrF','socket$','transformSelections','CommandType','_snapshotService','isArray','CollaborationController','createSocket','sort','SUBMIT_CHANGESET_TIMEOUT','&to=','_getSignURL','filter','override','delay','onlyLocal','_showConflictNotification','setCurrentUser','infoRsp','_changesetReqId','22YDGecR','_entityInit$','CollaborationUIEventService','mapDocumentTypeToUniverInstanceType','target','_snapshotServerService','roles','\x20to\x20','defineProperty','onRemoteChangeset','unitId','updatePermissionPoint','members$','CollaborationStatus','reqId','_event$','CollaborationUIEventId','UNIVER_DOC','forEach','FetchingMissState','_getUploadFileURL','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','workbook','638410SShMZk','authzUrl','_listenToNetworkCondition','&source=','_revisionService','avatar','editingUnit','enableCollaboration','saveImage','revision','isTransformMutationsWithChangesetSuccess','_resendWithTimeout','location','getInterceptPoints','_getDownloadEndpointURL','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','equals','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','onTransformRemoteChangesetByIMECache','isTransformMutationsWithChangesetFailure','updateCollaborator','_submitChangeset','ReplaySubject','onTransformSelections','sessionStatus$','unit','onTransformRemoteChangesetByStateCache','_clearUndo','FETCH_MISSING','_roomCreated$','fromCollab','_config','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','localeService','People','collaboratorID','socket\x20open.','generateRandomId','HEARTBEAT_TIMEOUT','_state','awaiting','getConfig','fetchThroughInterceptors','UPDATE_CURSOR','deserializeToCombResponse','CombCmd','post','routeKey','_init','changesets','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','Inject','putCollaborators','_socketMessageSubscription','replace','DependentOn','ISocketService','DisposableCollection','_unitInfo$','SUBMIT_CHANGESET','_onConnectionOpen','_collabSessionService','ISnapshotServerService','getResourcesRequest','[CollaborationSession]','MergeInterceptorFactory','state$','AwaitingState','updateMember','univer-pro.collaboration-client.network-condition.service','cmd','_isEchoedAwaitingChangeset','_queuedRemoteChangesets','_onMessage','now','PENDING','onMutationExecutedForCollab','UniverNetworkPlugin','stringify','objects','params','NOT_COLLAB','onRemoteRej','socket\x20close','_status$','online$','_clearScheduledTask','SheetPermissionInitController','snapshotServerUrl','JOINING','headers','CHANGESET_REJ','ONLINE','retryConnectingInterval','focused$','connection\x20error','delete','_checkMissing','removeMember','take','UNISCRIPT_RUN','RECV','_socket','_tryEnsureSocket','then','encode','?size=','shareReplay','getAllMembers','message$','_handlerCallback','onSendChangeset','batchAllowed','2418927YezrUV','/universer-api/comb','_collaborationUIEventService','complete','_compressMutationService','SOCKET_FAILED','HELLO','_disableEditing','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','action','Module','object','_unitID','patch','toString','uniscriptRunEvent','leaveEvent','AwaitingWithPendingState','call','_createSocket','setWaitCount','_socket$','_members','sequenceExecute','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','registerHTTPInterceptor','AuthzIoHttpService','LOCAL_CACHE_INTERVAL','close','pending','randomBytes','4041VCVhFx','CollaborationSocketService','collabSubmitChangesetUrl','file','_updateState','b64DecodeUnicode','[FetchMissState]','@univerjs-pro/collaboration-client','ImageUploadStatusType','_toggleOnline','onTransformRemoteChangesetByIMECache\x20callback\x20is\x20not\x20added\x20yet.','IUndoRedoService','[CollaborationSessionService]:\x20socket\x20error','append','SnapshotService','getCurrentUser','_onOffline','_onUserLeave','getMember','awaitingChangeset','_scheduleCollaborationTimeoutTimer','SheetTransformSelectionsService','addImageSourceCache','toDisposable','isInternalEditorID','startTime','subUnitId','subscribe','updateOfflineData','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','toPrimitive','method','RxDisposable','_onFetchMissResult','_candidateSocket','_transitionLocked','/object','_decreaseWaiting','liveShareNewHost','packageName','synced','push','/universer-api/uniscript','createIdentifier','COMMENT_UPDATE','get','Rectangle','getSheetId','_members$','HTTPRequest','error$','6BHcRde','debug','CollaborationEvent','/role','getSnapshotAPIPath','PSEUDO_FETCH_MISSING_RESULT','_substituteUndoStack','_httpService','UniverCollaborationClientPlugin','ILogService','_sessions','initWorkbookPermissionChange','onCommentUpdate','toggleOnline','_initRequestHeader','_transformIMECache','_incrementRevisionNumber','every','name','\x0aAfter:\x20','unsubscribe','_memberService','ITransformService','_sendHeartbeatTimer','_eventService','[CollaborationUndoRedoService]','onSyncEditingCollabCursor','_registerDependencies','getCollabEntity$','close$','_socketReady','onRemoteAck','NEW_CHANGESETS','AWAITING_WITH_PENDING','_waitForHeartbeatResponse','closeSession','string','shouldCloseConn','_startCollaboration','getUnitStatus$','OfflineState','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','missingChangesets','CHANGESET_ACK','DEFAULT_FILE_NAME','loginUrlKey','has','serializeCombRequest','reverse','clear','put','ISingleActiveUnitService','/-/object/list','_onJoinRoomEvent','getUnitType','[OfflineState]:\x20received\x20changeset.','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_roomMembers','_onLocalMutation','JOIN_ROOM_FULL','reduce','_isPermissionRej','SheetsSelectionsService','getDrawingImageAllowSize','_collaborationPaused','[CollaborationEntity]','_initCloseConn','_commentUpdate$','copyFileMeta','JOIN_ROOM_FAILED','getTypeOfUnitDisposed$','UNIVER_SHEET','__Key__','_clearCollaborationTimeoutTimer','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','compose','_telemetryInfo','textRanges','getUnit','_startTelemetryCollaborationNewChangeset','getImageSourceCache','onRemoteRetry','CmdRspCode','decorate','splice','href','?url=','_commentService','find','_userManagerService','_lockTransition','IConfigService','allowed','_acknowledgeAwaitingIfReady','FileSource','_networkConditionService','body','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','_instanceService','unitID','UNIVER_COLLABORATION_CLIENT_PLUGIN','size','collaborators','IDLE','save\x20fail\x20reason\x20is\x20','loadUnit','executeCommand','dispose$','_onRemoteChangeset','_transformRemoteChangesetByIMECache','[DataLoaderService]','_maxTotalRetryTimeout','IUniverInstanceService','version','ImageSourceType','takeUntil','ILocalCacheService','function','listRoles','LIVESHARE_NEW_HOST','enableSingleActiveInstanceLock','_removeRoom','USERS_ENTER','merge','cbc','_injector','/allowed','getActiveSheet','mergeOverrideWithDependencies','_clearRedo','_onRecvEvent','toggleOffline','failed\x20to\x20apply\x20missed\x20changesets!','x-univer-host','withCredentials','subject','HEARTBEAT_TIMEOUT_KEY','responseType','_entities','_updateStatus','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','6760jnhInn','getTime','_collaborationSessionService','includes','LEAVE','Optional','result','conflict','getLatestCsReqIdBySid','transformChangesets','LIVESHARE_TERMINATE','COMPRESS_MUTATION_SEND','_replayCachedMutations','_createHandler','sid','m2Prime','_type','_localCacheService','ERROR_IMAGE','_onUserJoin','startsWith','localCacheService','/universer-api/stream/file/upload','_retryConnectingTimer','appendMutation','SHOULD_CLOSE_CONN','getLocalCacheKey','incrementRevOfUnit','_cfgEnableObjInherit','fetchMissingChangesets','reconnect','_handler','_clearTimeoutTimer','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','getUnitOnRev','session','onTransformIME','CHANGESET_SHOULD_RETRY','symbol','collaboration-client.config','onStarting','getUnitId','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','commentUpdate$','_transformAndApplyRemoteChangeset','next','auth.needGotoLoginAlert','loadSheet','MSG_FOR_ERROR','SnapshotServerOverHTTPService','editing\x20status\x20changed\x20to','url','_resendTimer','_collaborationTimeoutTimer','_initUnitPermissionChange','_getRedoStack','addHandlerCallback','_onRemoteRejected','_tryReconnect','disableLocalCache','pauseCollaboration','_unlockTransition','UniverInstanceType','floor','disposeWithMe','values','resolveWithBasePath','_schedule','MUTATION','ICollaborationSocketService','range','_waitCount','onTransformState','send','_sessionStatus$','_commandService','objectID','collaMsg','SessionStatus','[PendingState]:\x20unhandled\x20univer\x20type:\x20','MemberService','mutations','_initDependencies','SetSelectionsOperation','objectType','title','type','UUID','updateSnapshot','c1Prime','updateCursorEvent','CONFLICT','_transformService','univer-pro.collaboration-client-socket-service','2137444unMyNR','commentUpdateEvent','IImageIoService','set','SUCCUSS','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','submit\x20changeset\x20error!','_onConflict','[SyncedState]:\x20received\x20rejection.','reject','fetching\x20missing\x20changesets\x20from\x20','_transformStack','asObservable','Disposable','memberID','_doCreateSocket','_onRemoteRetry','BehaviorSubject','getDeserializedSheetBlock','_createInitialStateImpl','CollaborativeUndoRedoService','Quantity','enableOfflineEditing','UPDATE_PERMISSION_OBJ','newCsEvent','RETRY_CONNECTING_MAX_COUNT','enableAuthServer','default','Plugin','/unit/','loadOfflineData','transformUndoRedo','INetworkConditionService','change$','touchDependencies','_sheetTransformSelectionsService'];_0x3751=function(){return _0x41b580;};return _0x3751();}let A=class extends k{constructor(_0x22a79d,_0x32f5c3,_0x3efc82,_0x30a90c,_0x5a3f0b,_0x89a106,_0x285128,_0x38f8cd,_0x5eb520,_0x2033be){const _0x52d579=_0x639d9b;super(_0x22a79d,_0x32f5c3,null,[],_0x3efc82,_0x285128,_0x89a106,_0x30a90c,_0x2033be),this[_0x52d579(0x22b)]=_0x5a3f0b,this[_0x52d579(0x353)]=_0x38f8cd,this[_0x52d579(0x297)]=_0x5eb520,this[_0x52d579(0x250)]=_0x2033be,g(this,_0x52d579(0x394),_0x52d579(0x1a3));}['appendMutation'](_0x5bd1d2){const _0x54033d=_0x639d9b;let _0x2ca5bf=this[_0x54033d(0x22b)][_0x54033d(0x2d3)](j,this[_0x54033d(0x211)],this[_0x54033d(0x291)],[_0x5bd1d2],this[_0x54033d(0x25a)]);return _0x2ca5bf['_schedule'](),_0x2ca5bf[_0x54033d(0x308)](),_0x2ca5bf;}[_0x639d9b(0x3bb)](_0x366fac){const _0x13334a=_0x639d9b;if(this['_checkMissing'](_0x366fac))return this['_injector'][_0x13334a(0x2d3)](I,this[_0x13334a(0x211)],this[_0x13334a(0x291)],null,[],null,[_0x366fac],this['_handler']);try{let _0x2aac46=this[_0x13334a(0x297)][_0x13334a(0x2ce)](_0x366fac,[e['EmptyMutationInfo']]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x2aac46)){let {c1Prime:_0xe576e7}=_0x2aac46;return this[_0x13334a(0x360)](_0xe576e7),this;}throw _0x2aac46['error'];}catch(_0xd02b4d){return this[_0x13334a(0x353)][_0x13334a(0x36e)](_0xd02b4d),this[_0x13334a(0x2a0)](!0x1);}}['_onConflict'](_0x48fc35){const _0x2ecd36=_0x639d9b;return this[_0x2ecd36(0x22b)]['createInstance'](P,this[_0x2ecd36(0x211)],this[_0x2ecd36(0x291)],null,[],this[_0x2ecd36(0x25a)],_0x48fc35);}[_0x639d9b(0x1cd)](_0x3339a7){const _0x26d7e5=_0x639d9b;if(_0x3339a7['revision']<=this[_0x26d7e5(0x365)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}[_0x639d9b(0x13d)](){const _0x4b02e1=_0x639d9b;throw Error(_0x4b02e1(0x2a1));}['onRemoteRetry'](){return this;}[_0x639d9b(0x231)](){const _0x49d867=_0x639d9b;return this[_0x49d867(0x22b)][_0x49d867(0x2d3)](F,this['unitID'],this[_0x49d867(0x291)],null,[],this[_0x49d867(0x25a)]);}[_0x639d9b(0x1bb)](){return this;}[_0x639d9b(0x311)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x639d9b(0x38b)](){const _0x4d537a=_0x639d9b;let _0x210c31=this[_0x4d537a(0x3cd)][_0x4d537a(0x2c0)](this[_0x4d537a(0x211)]);return this[_0x4d537a(0x25a)][_0x4d537a(0x37b)]({'from':_0x210c31,'to':0x0}),this[_0x4d537a(0x22b)][_0x4d537a(0x2d3)](I,this[_0x4d537a(0x211)],this['type'],null,[],null,[],this[_0x4d537a(0x25a)]);}};A=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0x4,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x5,t[_0x639d9b(0x186)]),y(0x6,t[_0x639d9b(0x2ec)]),y(0x7,t[_0x639d9b(0x1b7)]),y(0x8,e['ITransformService']),y(0x9,(0x0,t[_0x639d9b(0x240)])(C))],A);let j=D=class extends k{constructor(_0x13e11f,_0x4f1faa,_0xe5fb65,_0x193a7e,_0x235dbd,_0x4a6b1f,_0x242f0e,_0x24085b,_0x3fdb6f,_0x12256a,_0x5b1aa6,_0x139779,_0x25b0be,_0x16e518){const _0x21b31b=_0x639d9b;super(_0x13e11f,_0x4f1faa,null,_0xe5fb65,_0x193a7e,_0x3fdb6f,_0x25b0be,_0x4a6b1f,_0x16e518),this['_injector']=_0x235dbd,this[_0x21b31b(0x1c3)]=_0x242f0e,this[_0x21b31b(0x353)]=_0x24085b,this[_0x21b31b(0x364)]=_0x12256a,this[_0x21b31b(0x297)]=_0x5b1aa6,this[_0x21b31b(0x350)]=_0x139779,g(this,'status',_0x21b31b(0x179)),g(this,_0x21b31b(0x35d),null),g(this,_0x21b31b(0x2ed),null);}['appendMutation'](_0x6c41e9){const _0x3ca1be=_0x639d9b;return this[_0x3ca1be(0x337)][_0x3ca1be(0x1a4)](_0x6c41e9),this[_0x3ca1be(0x308)](),this;}[_0x639d9b(0x3bb)](_0x337c5c){const _0x3875dc=_0x639d9b;if(this[_0x3875dc(0x14c)](_0x337c5c))return this[_0x3875dc(0x141)](),this[_0x3875dc(0x22b)][_0x3875dc(0x2d3)](I,this[_0x3875dc(0x211)],this[_0x3875dc(0x291)],null,this[_0x3875dc(0x337)],null,[_0x337c5c],this[_0x3875dc(0x25a)]);try{let _0xdb34f1=this[_0x3875dc(0x297)][_0x3875dc(0x2ce)](_0x337c5c,this['_pendingMutations']);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0xdb34f1)){let {c1Prime:_0x3f1641,m2Prime:_0x5254b8}=_0xdb34f1;this['_executeRemoteChangeset'](_0x3f1641);let _0x266c61=this[_0x3875dc(0x22b)]['createInstance'](D,this[_0x3875dc(0x211)],this[_0x3875dc(0x291)],_0x5254b8,this[_0x3875dc(0x25a)]);this['_clearScheduledTask']();let _0x405ed3=new Date()[_0x3875dc(0x23c)](),_0x7c62a5=this[_0x3875dc(0x35d)]?Math['max'](this[_0x3875dc(0x35d)]-_0x405ed3,0x0):this[_0x3875dc(0x300)]();return _0x266c61[_0x3875dc(0x27e)](_0x7c62a5),_0x266c61;}throw _0xdb34f1[_0x3875dc(0x36e)];}catch(_0xd877e8){return this['_logService'][_0x3875dc(0x36e)](_0xd877e8),this[_0x3875dc(0x2a0)](!0x1);}}['onRemoteAck'](_0x13c840){const _0x20adf3=_0x639d9b;if(_0x13c840[_0x20adf3(0x3d2)]<=this[_0x20adf3(0x365)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x639d9b(0x13d)](){const _0x530ed5=_0x639d9b;throw Error(_0x530ed5(0x313));}[_0x639d9b(0x1ff)](){return this;}[_0x639d9b(0x231)](){const _0x4ea5f0=_0x639d9b;return this[_0x4ea5f0(0x141)](),this[_0x4ea5f0(0x22b)]['createInstance'](F,this[_0x4ea5f0(0x211)],this[_0x4ea5f0(0x291)],null,this['_pendingMutations'],this[_0x4ea5f0(0x25a)]);}['toggleOnline'](){return this;}[_0x639d9b(0x27e)](_0x7b2286){const _0x82d3dd=_0x639d9b;let _0x19b6df=_0x7b2286==null?this[_0x82d3dd(0x300)]():_0x7b2286;this[_0x82d3dd(0x35d)]=new Date()[_0x82d3dd(0x23c)]()+_0x19b6df,this[_0x82d3dd(0x2ed)]=setTimeout(()=>{const _0x239d18=_0x82d3dd;this['_clearScheduledTask']();let _0x4bb6ab=null;switch(this['type']){case t[_0x239d18(0x279)][_0x239d18(0x1f5)]:_0x4bb6ab=pe(this[_0x239d18(0x337)],this[_0x239d18(0x211)],this[_0x239d18(0x350)],this['_revisionService'],this[_0x239d18(0x1c3)]);break;case t['UniverInstanceType'][_0x239d18(0x3c3)]:_0x4bb6ab=this[_0x239d18(0x337)][_0x239d18(0x1bf)](_0x250462=>_0x250462['id']===n['RichTextEditingMutation']['id'])?me(this[_0x239d18(0x337)],this['unitID'],this[_0x239d18(0x350)],this[_0x239d18(0x3cd)],this[_0x239d18(0x1c3)]):pe(this[_0x239d18(0x337)],this[_0x239d18(0x211)],this[_0x239d18(0x350)],this['_revisionService'],this[_0x239d18(0x1c3)]);break;default:throw Error(_0x239d18(0x28a)+this[_0x239d18(0x291)]+'\x20in\x20_schedule.');}let {changeset:_0x493dc5,pendingMutations:_0x43f70a}=_0x4bb6ab;this['_handler'][_0x239d18(0x15a)](_0x493dc5);let _0x2c470a=_0x43f70a['length']?this[_0x239d18(0x22b)][_0x239d18(0x2d3)](N,this[_0x239d18(0x211)],this[_0x239d18(0x291)],_0x493dc5,_0x43f70a,this[_0x239d18(0x25a)],void 0x0):this['_injector'][_0x239d18(0x2d3)](M,this[_0x239d18(0x211)],this[_0x239d18(0x291)],_0x493dc5,this['_handler']);_0x2c470a[_0x239d18(0x308)](),this[_0x239d18(0x25a)]['onStateChange'](this,_0x2c470a);},_0x19b6df);}[_0x639d9b(0x300)](){const _0x48cd4e=_0x639d9b;var _0x39a936;let _0xa6905b=this[_0x48cd4e(0x364)]['getConfig'](E);return(_0x39a936=_0xa6905b==null?void 0x0:_0xa6905b['sendChangesetTimeout'])==null?0x7d0:_0x39a936;}[_0x639d9b(0x311)](){const _0x2e3cc8=_0x639d9b;throw Error(_0x2e3cc8(0x33c));}[_0x639d9b(0x141)](){const _0x1f7154=_0x639d9b;this[_0x1f7154(0x2ed)]!=null&&(clearTimeout(this[_0x1f7154(0x2ed)]),this[_0x1f7154(0x2ed)]=null);}['_onConflict'](_0x63f4c6){const _0x35ff10=_0x639d9b;return this['_clearScheduledTask'](),this['_injector'][_0x35ff10(0x2d3)](P,this[_0x35ff10(0x211)],this['type'],null,this['_pendingMutations'],this[_0x35ff10(0x25a)],_0x63f4c6);}};j=D=b([y(0x4,(0x0,t['Inject'])(t[_0x639d9b(0x30f)])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(x)),y(0x7,t['ILogService']),y(0x8,t[_0x639d9b(0x2ec)]),y(0x9,t['IConfigService']),y(0xa,e[_0x639d9b(0x1c4)]),y(0xb,t['IUniverInstanceService']),y(0xc,t[_0x639d9b(0x186)]),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],j);let M=O=class extends k{constructor(_0x200427,_0x27a2dc,_0x250625,_0x25b2a8,_0x229f0a,_0x1ce3de,_0x37d4aa,_0x386f7b,_0x2921a1,_0x31d652,_0x432e4c){const _0x2b304c=_0x639d9b;super(_0x200427,_0x27a2dc,_0x250625,[],_0x25b2a8,_0x37d4aa,_0x31d652,_0x1ce3de,_0x432e4c),this[_0x2b304c(0x22b)]=_0x229f0a,this[_0x2b304c(0x353)]=_0x386f7b,this[_0x2b304c(0x297)]=_0x2921a1,g(this,'status','awaiting'),g(this,_0x2b304c(0x2d1),0x0),g(this,_0x2b304c(0x21d),0x0),g(this,_0x2b304c(0x26f),void 0x0),g(this,_0x2b304c(0x2d7),void 0x0);}[_0x639d9b(0x253)](_0x53b6ea){const _0x52204c=_0x639d9b;this['_clearScheduledTask']();let _0x147fc8=this['_injector'][_0x52204c(0x2d3)](N,this[_0x52204c(0x211)],this[_0x52204c(0x291)],this[_0x52204c(0x359)],[_0x53b6ea],this[_0x52204c(0x25a)],this[_0x52204c(0x26f)]);return _0x147fc8[_0x52204c(0x308)](),_0x147fc8;}[_0x639d9b(0x3bb)](_0x2496a8){const _0x473fb6=_0x639d9b;if(this[_0x473fb6(0x14c)](_0x2496a8))return this[_0x473fb6(0x141)](),this[_0x473fb6(0x22b)][_0x473fb6(0x2d3)](I,this[_0x473fb6(0x211)],this[_0x473fb6(0x291)],this[_0x473fb6(0x359)],[],null,[_0x2496a8],this['_handler']);try{let _0x473e9b=this[_0x473fb6(0x297)][_0x473fb6(0x244)]([_0x2496a8],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x473fb6(0x2c1)])(_0x473e9b)){let {c1Prime:_0xe582e5,c2Prime:_0x19473c}=_0x473e9b;this[_0x473fb6(0x360)](_0xe582e5[0x0]),_0x19473c[0x0][_0x473fb6(0x37d)]=this[_0x473fb6(0x365)](),this[_0x473fb6(0x141)]();let _0x40f235=this[_0x473fb6(0x22b)][_0x473fb6(0x2d3)](O,this[_0x473fb6(0x211)],this['type'],_0x19473c[0x0],this[_0x473fb6(0x25a)]);return _0x40f235[_0x473fb6(0x308)](),_0x40f235;}throw _0x473e9b[_0x473fb6(0x36e)];}catch(_0x12b405){return this[_0x473fb6(0x353)][_0x473fb6(0x36e)](_0x12b405),this[_0x473fb6(0x2a0)](!0x1);}}['onRemoteAck'](_0x6be7f4){const _0x311fb2=_0x639d9b;this[_0x311fb2(0x141)]();let _0x29fa9b=this[_0x311fb2(0x3cd)]['getCurrentRevOfUnit'](this[_0x311fb2(0x211)]);if(_0x6be7f4[_0x311fb2(0x3d2)]<=_0x29fa9b)return this;if(this['_checkMissing'](_0x6be7f4))return this[_0x311fb2(0x22b)][_0x311fb2(0x2d3)](I,this[_0x311fb2(0x211)],this['type'],this['_awaitingChangeset'],[],_0x6be7f4[_0x311fb2(0x3d2)],[],this[_0x311fb2(0x25a)]);this[_0x311fb2(0x1be)]();let _0x3e0d16=this['_injector'][_0x311fb2(0x2d3)](A,this['unitID'],this[_0x311fb2(0x291)],this[_0x311fb2(0x25a)]);return _0x3e0d16[_0x311fb2(0x308)](),_0x3e0d16;}[_0x639d9b(0x13d)](_0x27ef62){const _0x5a8f0b=_0x639d9b;return this[_0x5a8f0b(0x2a0)](!!(_0x27ef62!=null&&_0x27ef62[_0x5a8f0b(0x35a)]));}['onRemoteRetry'](_0x237e41){const _0x399ecd=_0x639d9b;return this[_0x399ecd(0x21d)]>ye?this[_0x399ecd(0x231)]():(this[_0x399ecd(0x26f)]=he(this[_0x399ecd(0x2d1)],{'timeout':this[_0x399ecd(0x2d1)],'reqId':_0x237e41[_0x399ecd(0x3c0)]}),this['_sender']=this['_resendTimer'][_0x399ecd(0x196)](({reqId:_0x56e94c,timeout:_0x57a973})=>{const _0x2075a0=_0x399ecd;this[_0x2075a0(0x3d4)](_0x56e94c,_0x57a973);}),this);}[_0x639d9b(0x231)](){const _0x58d264=_0x639d9b;return this[_0x58d264(0x141)](),this[_0x58d264(0x22b)][_0x58d264(0x2d3)](F,this['unitID'],this[_0x58d264(0x291)],this[_0x58d264(0x359)],[],this['_handler']);}['toggleOnline'](){return this;}[_0x639d9b(0x311)](){const _0x18fc1c=_0x639d9b;this[_0x18fc1c(0x25a)]['onSendChangeset'](this[_0x18fc1c(0x359)]);}['_onConflict'](_0xf2f455){const _0x2e4946=_0x639d9b;return this[_0x2e4946(0x141)](),this[_0x2e4946(0x22b)][_0x2e4946(0x2d3)](P,this['unitID'],this[_0x2e4946(0x291)],this['_awaitingChangeset'],[],this[_0x2e4946(0x25a)],_0xf2f455);}[_0x639d9b(0x3d4)](_0x55c81e,_0x59dda5){const _0x205b1e=_0x639d9b;var _0x30b9f6;_0x55c81e===((_0x30b9f6=this[_0x205b1e(0x359)])==null?void 0x0:_0x30b9f6[_0x205b1e(0x3c0)])&&(this['resend'](),this[_0x205b1e(0x2d1)]=_0x59dda5===0x0?0x3e8:Math[_0x205b1e(0x393)](_0x59dda5*0x2,ve),this[_0x205b1e(0x21d)]+=this[_0x205b1e(0x2d1)]);}[_0x639d9b(0x141)](){const _0x3338f9=_0x639d9b;var _0x4fded2;(_0x4fded2=this[_0x3338f9(0x2d7)])==null||_0x4fded2[_0x3338f9(0x1c2)](),this[_0x3338f9(0x2d1)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};M=O=b([y(0x4,(0x0,t['Inject'])(t[_0x639d9b(0x30f)])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0x6,t[_0x639d9b(0x2ec)]),y(0x7,t['ILogService']),y(0x8,e['ITransformService']),y(0x9,t[_0x639d9b(0x186)]),y(0xa,(0x0,t['Optional'])(C))],M);let N=ge=class extends k{constructor(_0x495d86,_0x1d783e,_0x1c554b,_0x2dd1a6,_0x3ad988,_0x3c4cfa,_0x306637,_0x114c95,_0x31f0d8,_0x166a4a,_0x136fc5,_0x5eda55,_0x3f1e83){const _0x4b4e1e=_0x639d9b;super(_0x495d86,_0x1d783e,_0x1c554b,_0x2dd1a6,_0x3ad988,_0x31f0d8,_0x5eda55,_0x114c95,_0x3f1e83),this[_0x4b4e1e(0x22b)]=_0x306637,this['_logService']=_0x166a4a,this[_0x4b4e1e(0x297)]=_0x136fc5,this[_0x4b4e1e(0x250)]=_0x3f1e83,g(this,_0x4b4e1e(0x394),_0x4b4e1e(0x2dc)),g(this,_0x4b4e1e(0x2d1),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x4b4e1e(0x26f),void 0x0),g(this,_0x4b4e1e(0x2d7),void 0x0),_0x3c4cfa&&(this['_resendTimer']=_0x3c4cfa,this[_0x4b4e1e(0x2d7)]=this['_resendTimer']['subscribe'](({reqId:_0x304dec,timeout:_0x404a9e})=>{const _0x16be6d=_0x4b4e1e;this[_0x16be6d(0x3d4)](_0x304dec,_0x404a9e);}));}[_0x639d9b(0x253)](_0x522661){const _0x49f808=_0x639d9b;return this[_0x49f808(0x337)][_0x49f808(0x1a4)](_0x522661),this;}[_0x639d9b(0x3bb)](_0x2e7bbf){const _0x419c28=_0x639d9b;if(this['_checkMissing'](_0x2e7bbf))return this[_0x419c28(0x141)](),this[_0x419c28(0x22b)][_0x419c28(0x2d3)](I,this['unitID'],this[_0x419c28(0x291)],this[_0x419c28(0x359)],this[_0x419c28(0x337)],null,[_0x2e7bbf],this['_handler']);try{let _0x4ee86d=this[_0x419c28(0x297)][_0x419c28(0x244)]([_0x2e7bbf],[this[_0x419c28(0x359)]],!0x1);if((0x0,e[_0x419c28(0x2c1)])(_0x4ee86d)){let {c1Prime:_0xc05470,c2Prime:_0x54f435}=_0x4ee86d,_0x305742=this[_0x419c28(0x297)]['transformMutationsWithChangeset'](_0xc05470[0x0],this[_0x419c28(0x337)]);if((0x0,e[_0x419c28(0x3d3)])(_0x305742)){let {c1Prime:_0x1a162d,m2Prime:_0x3cd8c5}=_0x305742;return this[_0x419c28(0x360)](_0x1a162d),_0x54f435[0x0]['baseRev']=this[_0x419c28(0x365)](),this[_0x419c28(0x141)](),this['_injector'][_0x419c28(0x2d3)](ge,this[_0x419c28(0x211)],this[_0x419c28(0x291)],_0x54f435[0x0],_0x3cd8c5,this[_0x419c28(0x25a)],void 0x0);}throw _0x305742['error'];}throw _0x4ee86d['error'];}catch(_0x3c51ad){return this[_0x419c28(0x353)][_0x419c28(0x36e)](_0x3c51ad),this[_0x419c28(0x2a0)](!0x1);}}[_0x639d9b(0x1cd)](_0x560763){const _0x40de90=_0x639d9b;this[_0x40de90(0x141)]();let _0x2a01d1=this[_0x40de90(0x365)]();if(_0x560763['revision']<=_0x2a01d1)return this;if(this[_0x40de90(0x14c)](_0x560763))return this['_injector'][_0x40de90(0x2d3)](I,this[_0x40de90(0x211)],this[_0x40de90(0x291)],this['_awaitingChangeset'],this['_pendingMutations'],_0x560763['revision'],[],this[_0x40de90(0x25a)]);this[_0x40de90(0x1be)]();let _0x8509a6=this[_0x40de90(0x22b)]['createInstance'](j,this['unitID'],this[_0x40de90(0x291)],this[_0x40de90(0x337)],this[_0x40de90(0x25a)]);return _0x8509a6[_0x40de90(0x27e)](),_0x8509a6[_0x40de90(0x308)](),_0x8509a6;}[_0x639d9b(0x13d)](_0x3d429d){const _0xf1d41=_0x639d9b;return this['_onConflict'](!!(_0x3d429d!=null&&_0x3d429d[_0xf1d41(0x35a)]));}[_0x639d9b(0x1ff)](_0x5b499a){const _0x2c0e38=_0x639d9b;return this[_0x2c0e38(0x21d)]>ye?this[_0x2c0e38(0x231)]():(this[_0x2c0e38(0x26f)]=he(this[_0x2c0e38(0x2d1)],{'timeout':this[_0x2c0e38(0x2d1)],'reqId':_0x5b499a[_0x2c0e38(0x3c0)]}),this['_sender']=this[_0x2c0e38(0x26f)][_0x2c0e38(0x196)](({reqId:_0x27f39d,timeout:_0x8f5d56})=>{const _0x1425a9=_0x2c0e38;this[_0x1425a9(0x3d4)](_0x27f39d,_0x8f5d56);}),this);}[_0x639d9b(0x231)](){const _0x398f92=_0x639d9b;return this[_0x398f92(0x141)](),this[_0x398f92(0x22b)][_0x398f92(0x2d3)](F,this[_0x398f92(0x211)],this['type'],this[_0x398f92(0x359)],this['_pendingMutations'],this[_0x398f92(0x25a)]);}[_0x639d9b(0x1bb)](){return this;}[_0x639d9b(0x311)](){const _0x4de24b=_0x639d9b;this[_0x4de24b(0x25a)]['onSendChangeset'](this[_0x4de24b(0x359)]);}[_0x639d9b(0x2a0)](_0x447940){const _0x232698=_0x639d9b;return this[_0x232698(0x141)](),this[_0x232698(0x22b)]['createInstance'](P,this[_0x232698(0x211)],this[_0x232698(0x291)],null,this[_0x232698(0x337)],this[_0x232698(0x25a)],_0x447940);}['_resendWithTimeout'](_0x3d55bb,_0x51a0d1){const _0x5e4afb=_0x639d9b;var _0x4f2da5;_0x3d55bb===((_0x4f2da5=this['_awaitingChangeset'])==null?void 0x0:_0x4f2da5[_0x5e4afb(0x3c0)])&&(this[_0x5e4afb(0x311)](),this[_0x5e4afb(0x2d1)]=_0x51a0d1===0x0?0x3e8:Math[_0x5e4afb(0x393)](_0x51a0d1*0x2,ve),this[_0x5e4afb(0x21d)]+=this['_resendTimeout']);}[_0x639d9b(0x141)](){var _0x213f88;(_0x213f88=this['_sender'])==null||_0x213f88['unsubscribe'](),this['_resendTimeout']=0x0,this['_maxTotalRetryTimeout']=0x0;}};N=ge=b([y(0x6,(0x0,t['Inject'])(t[_0x639d9b(0x30f)])),y(0x7,(0x0,t['Inject'])(e[_0x639d9b(0x351)])),y(0x8,t['ICommandService']),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,e[_0x639d9b(0x1c4)]),y(0xb,t['IUndoRedoService']),y(0xc,(0x0,t[_0x639d9b(0x240)])(C))],N);let P=class extends k{constructor(_0x829297,_0x47782d,_0x1d3aa4,_0x4c3fe6,_0x5d7262,_0x386968=!0x1,_0x3e3be1,_0x5ca9e6,_0x2d4c22,_0x3ee3eb,_0x20efce,_0x4819ef,_0x3092ca){const _0x5e2877=_0x639d9b;super(_0x829297,_0x47782d,_0x1d3aa4,_0x4c3fe6,_0x5d7262,_0x5ca9e6,_0x2d4c22,_0x3ee3eb,_0x3092ca),this[_0x5e2877(0x1eb)]=_0x386968,this[_0x5e2877(0x2fa)]=_0x3e3be1,this[_0x5e2877(0x35f)]=_0x20efce,this[_0x5e2877(0x15e)]=_0x4819ef,this[_0x5e2877(0x250)]=_0x3092ca,g(this,'status',_0x5e2877(0x242)),this['_showConflictNotification'](),this[_0x5e2877(0x302)](),this[_0x5e2877(0x163)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x639d9b(0x1cd)](){return this;}[_0x639d9b(0x13d)](){return this;}['onRemoteRetry'](){return this;}[_0x639d9b(0x231)](){return this;}[_0x639d9b(0x1bb)](){return this;}['resend'](){const _0x1a389f=_0x639d9b;throw Error(_0x1a389f(0x1f8));}[_0x639d9b(0x302)](){const _0x5850c0=_0x639d9b;var _0x5d0c2d;(_0x5d0c2d=this['_localCacheService'])==null||_0x5d0c2d[_0x5850c0(0x197)](this[_0x5850c0(0x211)],this[_0x5850c0(0x291)],null,[]);}[_0x639d9b(0x3ae)](){const _0x54ba7d=_0x639d9b;this[_0x54ba7d(0x1eb)]?this[_0x54ba7d(0x15e)][_0x54ba7d(0x2f7)]({'id':_0x54ba7d(0x341)}):this['_collaborationUIEventService'][_0x54ba7d(0x2f7)]({'id':_0x54ba7d(0x296)});}['_disableEditing'](){const _0x248000=_0x639d9b;this[_0x248000(0x2fa)][_0x248000(0x3bd)](new r[(_0x248000(0x309))](this[_0x248000(0x211)])['id'],!0x1);}};P=b([y(0x6,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x2f2)])),y(0x7,t[_0x639d9b(0x2ec)]),y(0x8,t[_0x639d9b(0x186)]),y(0x9,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0xa,(0x0,t['Inject'])(t[_0x639d9b(0x2e5)])),y(0xb,(0x0,t['Inject'])(_)),y(0xc,(0x0,t['Optional'])(C))],P);let F=class extends k{constructor(_0x50b1d7,_0x3f1925,_0x28ac17,_0x228cd7,_0x43f590,_0x197368,_0x17c003,_0x495db7,_0x14da45,_0x2a10db){const _0x20ec16=_0x639d9b;super(_0x50b1d7,_0x3f1925,_0x28ac17,_0x228cd7,_0x43f590,_0x495db7,_0x14da45,_0x17c003,_0x2a10db),this[_0x20ec16(0x22b)]=_0x197368,g(this,_0x20ec16(0x394),'offline');}[_0x639d9b(0x253)](_0x545c76){const _0x123713=_0x639d9b;return this[_0x123713(0x337)][_0x123713(0x1a4)](_0x545c76),this[_0x123713(0x308)](),this;}[_0x639d9b(0x3bb)](_0x1bdd95){const _0x3b265d=_0x639d9b;throw Error(_0x3b265d(0x1e5));}[_0x639d9b(0x1cd)](){const _0x5c6972=_0x639d9b;throw Error(_0x5c6972(0x2c4));}[_0x639d9b(0x13d)](){throw Error('[OfflineState]:\x20received\x20rejection.');}[_0x639d9b(0x1ff)](){return this;}[_0x639d9b(0x231)](){return this;}[_0x639d9b(0x1bb)](){const _0x144c9e=_0x639d9b;let {_injector:_0x2b7c7e,_pendingMutations:_0xaeaf2b,_awaitingChangeset:_0x3e3662,unitID:_0x5d9bd0,_handler:_0x5a23a4,type:_0x528b77}=this,_0x31f3f8=be(_0x2b7c7e,_0x5d9bd0,_0x528b77,_0x3e3662,_0xaeaf2b,_0x5a23a4);return _0x31f3f8 instanceof j?_0x31f3f8[_0x144c9e(0x27e)]():(_0x31f3f8 instanceof N||_0x31f3f8 instanceof M)&&_0x31f3f8['resend'](),_0x31f3f8;}[_0x639d9b(0x311)](){const _0x4eeb96=_0x639d9b;throw Error(_0x4eeb96(0x25c));}};F=b([y(0x5,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x7,t['ICommandService']),y(0x8,t[_0x639d9b(0x186)]),y(0x9,(0x0,t[_0x639d9b(0x240)])(C))],F);let I=class extends k{constructor(_0x47f438,_0x434768,_0x2c915a,_0x16b19c,_0x175239,_0x11ab3f,_0x4dc573,_0x574fce,_0x13a9c2,_0x525e53,_0x565513,_0x541f2f,_0xf8c75c,_0x5a3f89){const _0x56aaf6=_0x639d9b;super(_0x47f438,_0x434768,_0x2c915a,_0x16b19c,_0x4dc573,_0x565513,_0x541f2f,_0x13a9c2,_0x5a3f89),this['_acknowledgedAwaitingRevision']=_0x175239,this[_0x56aaf6(0x133)]=_0x11ab3f,this[_0x56aaf6(0x22b)]=_0x574fce,this[_0x56aaf6(0x353)]=_0x525e53,this['_transformService']=_0xf8c75c,this['localCacheService']=_0x5a3f89,g(this,'status',_0x56aaf6(0x326));}[_0x639d9b(0x380)](_0x3a0a2a){const _0x589e8e=_0x639d9b;try{if(this['_handleRemoteChangesets'](_0x3a0a2a)[_0x589e8e(0x1d8)])throw Error(_0x589e8e(0x1e6));if(this['_handleRemoteChangesets']([...this[_0x589e8e(0x133)]][_0x589e8e(0x3a6)]((_0x1591e2,_0x5bd010)=>_0x1591e2[_0x589e8e(0x3d2)]-_0x5bd010[_0x589e8e(0x3d2)]))[_0x589e8e(0x1d8)])return this[_0x589e8e(0x133)]=[],this[_0x589e8e(0x308)](),this[_0x589e8e(0x25a)]['onMissingChangesets']({'from':this[_0x589e8e(0x365)](),'to':0x0}),this;let _0x59e80a=this['_awaitingChangeset'],_0x36a036=this[_0x589e8e(0x337)],_0x251268;if(_0x59e80a&&_0x36a036['length']!==0x0)_0x251268=this[_0x589e8e(0x22b)]['createInstance'](N,this['unitID'],this[_0x589e8e(0x291)],_0x59e80a,_0x36a036,this[_0x589e8e(0x25a)],void 0x0);else{if(_0x59e80a&&_0x36a036[_0x589e8e(0x346)]===0x0)_0x59e80a[_0x589e8e(0x37d)]=this[_0x589e8e(0x365)](),_0x251268=this[_0x589e8e(0x22b)][_0x589e8e(0x2d3)](M,this['unitID'],this[_0x589e8e(0x291)],_0x59e80a,this[_0x589e8e(0x25a)]);else{if(_0x36a036[_0x589e8e(0x346)]!==0x0){let _0x3669a5=this['_injector'][_0x589e8e(0x2d3)](j,this['unitID'],this['type'],_0x36a036,this[_0x589e8e(0x25a)]);_0x3669a5['_schedule'](),_0x251268=_0x3669a5;}else _0x251268=this[_0x589e8e(0x22b)][_0x589e8e(0x2d3)](A,this[_0x589e8e(0x211)],this['type'],this[_0x589e8e(0x25a)]);}}return _0x251268[_0x589e8e(0x308)](),_0x251268;}catch(_0x5aed8d){return this[_0x589e8e(0x353)][_0x589e8e(0x36e)](_0x589e8e(0x181),_0x589e8e(0x232),_0x5aed8d),this['_injector']['createInstance'](P,this[_0x589e8e(0x211)],this[_0x589e8e(0x291)],this['_awaitingChangeset'],this[_0x589e8e(0x337)],this[_0x589e8e(0x25a)],!0x1);}}[_0x639d9b(0x2f1)](_0x48d571){const _0x223739=_0x639d9b;this[_0x223739(0x20b)]();for(let _0x17882c=0x0;_0x17882c<_0x48d571[_0x223739(0x346)];_0x17882c++){let _0x4956d3=_0x48d571[_0x17882c],_0x49fc25=this[_0x223739(0x365)]();if(!(_0x4956d3['revision']<=_0x49fc25)){if(_0x4956d3[_0x223739(0x3d2)]>_0x49fc25+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x4956d3)){this['_acknowledgeAwaiting']();continue;}this[_0x223739(0x267)](_0x4956d3),this[_0x223739(0x20b)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x4bcecf){const _0x161278=_0x639d9b;let _0x55c000=_0x4bcecf,_0x3690d5=this[_0x161278(0x359)];if(_0x3690d5){let _0x436d01=this[_0x161278(0x297)][_0x161278(0x244)]([_0x4bcecf],[_0x3690d5],!0x1);if(!(0x0,e[_0x161278(0x2c1)])(_0x436d01))throw _0x436d01['error'];_0x55c000=_0x436d01[_0x161278(0x294)][0x0],_0x3690d5=_0x436d01['c2Prime'][0x0];}let _0x3b9198=this[_0x161278(0x337)];if(_0x3b9198[_0x161278(0x346)]){let _0x112d36=this[_0x161278(0x297)]['transformMutationsWithChangeset'](_0x55c000,_0x3b9198);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x112d36))throw _0x112d36[_0x161278(0x36e)];_0x55c000=_0x112d36[_0x161278(0x294)],_0x3b9198=_0x112d36[_0x161278(0x24a)];}this[_0x161278(0x360)](_0x55c000),_0x3690d5&&(_0x3690d5[_0x161278(0x37d)]=this[_0x161278(0x365)]()),this[_0x161278(0x359)]=_0x3690d5,this[_0x161278(0x337)]=_0x3b9198;}[_0x639d9b(0x20b)](){const _0x5c5e1f=_0x639d9b;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x1b88b4=this[_0x5c5e1f(0x365)]();if(this['_acknowledgedAwaitingRevision']<=_0x1b88b4)throw Error('[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20'+this['_acknowledgedAwaitingRevision']+'.');this[_0x5c5e1f(0x39d)]===_0x1b88b4+0x1&&this[_0x5c5e1f(0x38a)]();}[_0x639d9b(0x38a)](){const _0xdab8da=_0x639d9b;this[_0xdab8da(0x1be)](),this[_0xdab8da(0x359)]=null,this[_0xdab8da(0x39d)]=null;}[_0x639d9b(0x132)](_0x40ff5e){const _0x223497=_0x639d9b;let _0x384f2e=this[_0x223497(0x359)];return!_0x384f2e||!_0x384f2e[_0x223497(0x249)]||_0x384f2e['reqId']===null||_0x384f2e[_0x223497(0x3c0)]===void 0x0?!0x1:_0x40ff5e['unitID']===_0x384f2e[_0x223497(0x211)]&&_0x40ff5e[_0x223497(0x249)]===_0x384f2e[_0x223497(0x249)]&&_0x40ff5e[_0x223497(0x3c0)]===_0x384f2e[_0x223497(0x3c0)];}[_0x639d9b(0x311)](){const _0x25525f=_0x639d9b;throw Error(_0x25525f(0x174));}[_0x639d9b(0x253)](_0x24396a){const _0x8231e1=_0x639d9b;return this[_0x8231e1(0x337)][_0x8231e1(0x1a4)](_0x24396a),this;}[_0x639d9b(0x3bb)](_0x1421d2){const _0x1118f6=_0x639d9b;return this['_queuedRemoteChangesets'][_0x1118f6(0x1a4)](_0x1421d2),this;}[_0x639d9b(0x1cd)](_0x5698e0){const _0x5d4f82=_0x639d9b;if(this[_0x5d4f82(0x359)]){let _0x2c410e=this[_0x5d4f82(0x365)]();return _0x5698e0[_0x5d4f82(0x3d2)]<=_0x2c410e||(_0x2c410e+0x1===_0x5698e0[_0x5d4f82(0x3d2)]?(this[_0x5d4f82(0x1be)](),this['_awaitingChangeset']=null,this[_0x5d4f82(0x39d)]=null):this['_acknowledgedAwaitingRevision']=_0x5698e0[_0x5d4f82(0x3d2)]),this;}if(_0x5698e0[_0x5d4f82(0x3d2)]<=this['_getCurrentRevision']())return this;throw Error(_0x5d4f82(0x371));}[_0x639d9b(0x13d)](_0x3a8495){const _0x4d2351=_0x639d9b;return this[_0x4d2351(0x2a0)](!!(_0x3a8495!=null&&_0x3a8495[_0x4d2351(0x35a)]));}[_0x639d9b(0x1ff)](){return this;}[_0x639d9b(0x231)](){const _0x4e388a=_0x639d9b;return this[_0x4e388a(0x22b)]['createInstance'](F,this[_0x4e388a(0x211)],this['type'],this[_0x4e388a(0x359)],this[_0x4e388a(0x337)],this[_0x4e388a(0x25a)]);}[_0x639d9b(0x1bb)](){return this;}[_0x639d9b(0x2a0)](_0x3b9fdc){const _0x461a95=_0x639d9b;return this[_0x461a95(0x22b)][_0x461a95(0x2d3)](P,this[_0x461a95(0x211)],this[_0x461a95(0x291)],this[_0x461a95(0x359)],this[_0x461a95(0x337)],this['_handler'],_0x3b9fdc);}};I=b([y(0x7,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x8,(0x0,t[_0x639d9b(0x11e)])(e['RevisionService'])),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,t[_0x639d9b(0x2ec)]),y(0xb,t['IUndoRedoService']),y(0xc,e[_0x639d9b(0x1c4)]),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],I);function be(_0x19abbd,_0x1094c3,_0x4bfb6c,_0x34c089,_0x5bb941,_0x20d01c){const _0x5935d0=_0x639d9b;return _0x34c089&&_0x5bb941[_0x5935d0(0x346)]?_0x19abbd[_0x5935d0(0x2d3)](N,_0x1094c3,_0x4bfb6c,_0x34c089,_0x5bb941,_0x20d01c,void 0x0):_0x34c089?_0x19abbd[_0x5935d0(0x2d3)](M,_0x1094c3,_0x4bfb6c,_0x34c089,_0x20d01c):_0x5bb941[_0x5935d0(0x346)]?_0x19abbd[_0x5935d0(0x2d3)](j,_0x1094c3,_0x4bfb6c,_0x5bb941,_0x20d01c):_0x19abbd[_0x5935d0(0x2d3)](A,_0x1094c3,_0x4bfb6c,_0x20d01c);}let L=class extends t[_0x639d9b(0x19b)]{get[_0x639d9b(0x389)](){const _0x206bee=_0x639d9b;return this[_0x206bee(0x112)];}constructor(_0x29faa6,_0x425089,_0x4a8935,_0x51931c,_0x2c1f04,_0x10e65a,_0x14aa4b,_0x594fde,_0x1d12d9,_0x2db0da,_0x25cd8c,_0x34d1cb,_0x44f715,_0x69e84d){const _0x14f1fa=_0x639d9b;super(),this[_0x14f1fa(0x211)]=_0x29faa6,this[_0x14f1fa(0x25e)]=_0x425089,this[_0x14f1fa(0x24b)]=_0x4a8935,this[_0x14f1fa(0x22b)]=_0x51931c,this[_0x14f1fa(0x160)]=_0x2c1f04,this[_0x14f1fa(0x35f)]=_0x10e65a,this[_0x14f1fa(0x3cd)]=_0x14aa4b,this[_0x14f1fa(0x1c6)]=_0x594fde,this[_0x14f1fa(0x350)]=_0x1d12d9,this['_logService']=_0x2db0da,this[_0x14f1fa(0x286)]=_0x25cd8c,this['_permissionService']=_0x34d1cb,this[_0x14f1fa(0x35b)]=_0x44f715,this['_localCacheService']=_0x69e84d,g(this,_0x14f1fa(0x384),new i['BehaviorSubject'](null)),g(this,'state$',this[_0x14f1fa(0x384)][_0x14f1fa(0x2a5)]()),g(this,'_state',void 0x0),g(this,'_collaborationPaused',!0x1),g(this,_0x14f1fa(0x340),''),g(this,_0x14f1fa(0x3b1),0x0),g(this,_0x14f1fa(0x2cd),this[_0x14f1fa(0x12d)][_0x14f1fa(0x355)]((0x0,i[_0x14f1fa(0x39c)])(_0x3dd783=>_0x3dd783?_0x3dd783[_0x14f1fa(0x394)]:_0x14f1fa(0x2d6)),(0x0,i[_0x14f1fa(0x156)])(0x1))),g(this,_0x14f1fa(0x19e),!0x1),g(this,_0x14f1fa(0x2da),[]);}async[_0x639d9b(0x2f9)](){const _0xab892=_0x639d9b;if(this[_0xab892(0x389)])throw Error(_0xab892(0x10b));await this[_0xab892(0x11b)]();}[_0x639d9b(0x277)](){const _0x16e191=_0x639d9b;return this[_0x16e191(0x1ee)]=!0x0,(0x0,t[_0x16e191(0x192)])(()=>{const _0xc0c0ca=_0x16e191;this['_collaborationPaused']=!0x1,this[_0xc0c0ca(0x36a)]();});}['onLocalMutation'](_0x2ab80d){const _0xcb5f0c=_0x639d9b;this[_0xcb5f0c(0x1e8)](_0x2ab80d);}[_0x639d9b(0x17f)](_0x58f3dc){const _0x28f345=_0x639d9b;this[_0x28f345(0x112)]=_0x58f3dc,this[_0x28f345(0x384)][_0x28f345(0x268)](_0x58f3dc);}async['_init'](){const _0x204bfb=_0x639d9b;if(this[_0x204bfb(0x17f)](await this['_createInitialState']()),this[_0x204bfb(0x35b)]){var _0x461a07;(_0x461a07=this['_singleActiveUnitService'])==null||_0x461a07[_0x204bfb(0x3cf)](this['unitID']),this[_0x204bfb(0x27b)](this[_0x204bfb(0x35b)][_0x204bfb(0x1d5)](this[_0x204bfb(0x211)])[_0x204bfb(0x196)](_0xf96dd9=>{const _0x688d9e=_0x204bfb;this[_0x688d9e(0x353)][_0x688d9e(0x1af)](_0x688d9e(0x1ef),_0x688d9e(0x26d),_0xf96dd9),_0xf96dd9===0x1?(this[_0x688d9e(0x1c6)][_0x688d9e(0x2f7)]({'id':_0x688d9e(0x2f0)}),this['_permissionService']['updatePermissionPoint'](new r[(_0x688d9e(0x309))](this[_0x688d9e(0x211)])['id'],!0x1),this[_0x688d9e(0x2fa)][_0x688d9e(0x324)](!0x1)):(this['_permissionService'][_0x688d9e(0x3bd)](new r[(_0x688d9e(0x309))](this[_0x688d9e(0x211)])['id'],!0x0),this['_permissionService'][_0x688d9e(0x324)](!0x0));}));}let _0x266955=!0x1;return this[_0x204bfb(0x27b)](this[_0x204bfb(0x25e)][_0x204bfb(0x103)]['subscribe'](_0x3d9d12=>{const _0x55e247=_0x204bfb;_0x3d9d12===0x3?this[_0x55e247(0x184)](_0x266955):_0x3d9d12===0x2&&(_0x266955=!0x0,this[_0x55e247(0x2d2)]());})),this[_0x204bfb(0x27b)](this[_0x204bfb(0x25e)][_0x204bfb(0x32e)][_0x204bfb(0x196)](_0x386ca0=>{const _0x3f80d0=_0x204bfb;try{switch(_0x386ca0['eventID']){case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x1ce)]:this[_0x3f80d0(0x21a)]((0x0,e[_0x3f80d0(0x329)])(_0x386ca0[_0x3f80d0(0x398)]));break;case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x1d9)]:this[_0x3f80d0(0x322)](_0x386ca0[_0x3f80d0(0x398)]);break;case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x146)]:this[_0x3f80d0(0x274)]();break;case e['CollaborationEvent'][_0x3f80d0(0x260)]:this[_0x3f80d0(0x2a9)](_0x386ca0[_0x3f80d0(0x398)]);break;case e['CollaborationEvent']['PSEUDO_FETCH_MISSING_RESULT']:this[_0x3f80d0(0x19c)](_0x386ca0[_0x3f80d0(0x398)][_0x3f80d0(0x11c)][_0x3f80d0(0x39c)](_0x5c81f0=>(0x0,e[_0x3f80d0(0x329)])(_0x5c81f0)));break;case e[_0x3f80d0(0x1b0)]['PERMISSION_REJ']:this[_0x3f80d0(0x274)]({'isPermissionRej':!0x0});break;case e[_0x3f80d0(0x1b0)][_0x3f80d0(0x14f)]:break;}}catch(_0x4de7db){throw console[_0x3f80d0(0x36e)]('Error\x20on\x20receiving\x20event',_0x4de7db),_0x4de7db;}})),this[_0x204bfb(0x112)];}['_unlockTransition'](){const _0x19c0b2=_0x639d9b;this[_0x19c0b2(0x19e)]=!0x1;}[_0x639d9b(0x208)](){const _0x422c80=_0x639d9b;if(this['_transitionLocked'])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[_0x422c80(0x19e)]=!0x0;}[_0x639d9b(0x1e8)](_0x1ce118){const _0x3955d5=_0x639d9b;this[_0x3955d5(0x208)](),this[_0x3955d5(0x17f)](this['_state'][_0x3955d5(0x253)](_0x1ce118)),this[_0x3955d5(0x278)]();}[_0x639d9b(0x21a)](_0x3f6c15){const _0x4b4afc=_0x639d9b;if(!(_0x3f6c15['revision']<=this[_0x4b4afc(0x3cd)][_0x4b4afc(0x2c0)](this['unitID']))){if(this[_0x4b4afc(0x1ee)]){this[_0x4b4afc(0x2da)]['push'](_0x3f6c15);return;}this['_applyRemoteChangeset'](_0x3f6c15);}}[_0x639d9b(0x36a)](){const _0x455946=_0x639d9b;this[_0x455946(0x2da)][_0x455946(0x3c4)](_0x409272=>this['_applyRemoteChangeset'](_0x409272)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x444ad4){const _0x587b0f=_0x639d9b;let _0x51b1b8=this['_compressMutationService']['interceptor'][_0x587b0f(0x115)](this['_compressMutationService'][_0x587b0f(0x34b)][_0x587b0f(0x3d6)]()['COMPRESS_MUTATION_APPLY'])(_0x444ad4[_0x587b0f(0x28c)],null)||_0x444ad4[_0x587b0f(0x28c)],_0x202bf2={..._0x444ad4,'mutations':_0x51b1b8};this[_0x587b0f(0x208)](),this[_0x587b0f(0x17f)](this['_state'][_0x587b0f(0x3bb)](_0x202bf2)),this[_0x587b0f(0x278)]();}[_0x639d9b(0x322)](_0x9152a2){const _0x417aff=_0x639d9b;this[_0x417aff(0x208)](),this['_updateState'](this[_0x417aff(0x112)][_0x417aff(0x1cd)](_0x9152a2)),this[_0x417aff(0x278)]();}['_onRemoteRejected'](_0x3acbf6){const _0x218337=_0x639d9b;this[_0x218337(0x208)](),this[_0x218337(0x17f)](this[_0x218337(0x112)]['onRemoteRej'](_0x3acbf6)),this[_0x218337(0x278)]();}[_0x639d9b(0x2a9)](_0x488b1e){const _0x2caa28=_0x639d9b;this[_0x2caa28(0x208)](),this[_0x2caa28(0x17f)](this['_state'][_0x2caa28(0x1ff)](_0x488b1e)),this[_0x2caa28(0x278)]();}[_0x639d9b(0x19c)](_0x2e43b2){const _0x46ad78=_0x639d9b;if(!(this[_0x46ad78(0x112)]instanceof I))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x46002a=_0x2e43b2[_0x46ad78(0x39c)](_0x5ebccd=>{const _0x12e1bb=_0x46ad78;let _0x48a1df=this['_compressMutationService'][_0x12e1bb(0x34b)][_0x12e1bb(0x115)](this[_0x12e1bb(0x160)][_0x12e1bb(0x34b)][_0x12e1bb(0x3d6)]()[_0x12e1bb(0x2c9)])(_0x5ebccd[_0x12e1bb(0x28c)],null)||_0x5ebccd[_0x12e1bb(0x28c)];return{..._0x5ebccd,'mutations':_0x48a1df};});this[_0x46ad78(0x208)](),this['_updateState'](this[_0x46ad78(0x112)][_0x46ad78(0x380)](_0x46002a)),this['_unlockTransition']();}['_toggleOffline'](){const _0x69fd8b=_0x639d9b;this[_0x69fd8b(0x208)](),this[_0x69fd8b(0x17f)](this['_state'][_0x69fd8b(0x231)]()),this[_0x69fd8b(0x278)]();}[_0x639d9b(0x184)](_0x111f04=!0x1){const _0xae4a3e=_0x639d9b;this[_0xae4a3e(0x208)](),this[_0xae4a3e(0x17f)](this['_state']['toggleOnline']()),this[_0xae4a3e(0x278)]();let _0x36f189=this['_state'];_0x111f04&&_0x36f189 instanceof A&&(this[_0xae4a3e(0x208)](),this[_0xae4a3e(0x17f)](_0x36f189[_0xae4a3e(0x38b)]()),this[_0xae4a3e(0x278)]());}async['_createInitialState'](){return new Promise(_0x1924c7=>{const _0x3a38b8=_0x5037;this[_0x3a38b8(0x25e)]['sessionStatus$'][_0x3a38b8(0x355)]((0x0,i[_0x3a38b8(0x14e)])(0x1))['subscribe'](async _0x3e591a=>{_0x1924c7(await this['_createInitialStateImpl'](_0x3e591a===0x3));});});}[_0x639d9b(0x248)](){const _0x303a25=_0x639d9b;let _0x157b54=this[_0x303a25(0x211)];return{'onStateChange':(_0x122c7c,_0x347965)=>{const _0x3aaff1=_0x303a25;if(_0x122c7c!==this[_0x3aaff1(0x112)])throw Error(_0x3aaff1(0x3d8)+_0x122c7c['status']+_0x3aaff1(0x1c1)+_0x347965['status']+'\x0aCurrent:\x20'+this[_0x3aaff1(0x112)]['status']);this[_0x3aaff1(0x17f)](_0x347965);},'onSendChangeset':_0x10ecd9=>{const _0x54b573=_0x303a25;_0x10ecd9[_0x54b573(0x249)]||(_0x10ecd9[_0x54b573(0x249)]=this[_0x54b573(0x340)],_0x10ecd9[_0x54b573(0x3c0)]=++this['_changesetReqId']);let _0x4bbcf1={'eventID':e['CollaborationEvent'][_0x54b573(0x126)],'data':{'unitID':_0x10ecd9[_0x54b573(0x211)],'unitType':this[_0x54b573(0x24b)],'changeset':_0x10ecd9,'memberID':this[_0x54b573(0x25e)]['getMemberID']()}};this[_0x54b573(0x25e)][_0x54b573(0x284)](_0x4bbcf1,this['unitID']);},'onMissingChangesets':({from:_0x24477f,to:_0x14b966})=>{const _0x587a72=_0x303a25;this[_0x587a72(0x353)][_0x587a72(0x1af)](_0x587a72(0x1ef),_0x587a72(0x2a3)+_0x24477f+_0x587a72(0x3b9)+_0x14b966);let _0x2fba4b={'eventID':e[_0x587a72(0x1b0)]['FETCH_MISSING'],'data':{'unitID':_0x157b54,'unitType':this['_type'],'from':_0x24477f,'to':_0x14b966}};this[_0x587a72(0x25e)][_0x587a72(0x284)](_0x2fba4b,this[_0x587a72(0x211)]);}};}async[_0x639d9b(0x2ac)](_0x5b64f8){const _0x3ae80a=_0x639d9b;var _0xc2c702,_0x554a16,_0x46d99e;let _0x309b9b=await((_0xc2c702=this['_localCacheService'])==null?void 0x0:_0xc2c702[_0x3ae80a(0x2b7)](this[_0x3ae80a(0x211)])),_0x32ab19=(_0x554a16=_0x309b9b==null?void 0x0:_0x309b9b[_0x3ae80a(0x28c)])==null?[]:_0x554a16,_0x1f8dc3=(_0x46d99e=_0x309b9b==null?void 0x0:_0x309b9b[_0x3ae80a(0x18e)])==null?null:_0x46d99e,_0xa4bb18=!!(_0x1f8dc3!=null&&_0x1f8dc3[_0x3ae80a(0x249)])&&!!(_0x1f8dc3!=null&&_0x1f8dc3[_0x3ae80a(0x3c0)]);this[_0x3ae80a(0x340)]=_0xa4bb18?_0x1f8dc3[_0x3ae80a(0x249)]:(0x0,e['uuidv4'])(),this['_changesetReqId']=_0xa4bb18?_0x1f8dc3[_0x3ae80a(0x3c0)]:0x0;let _0x188d3e=this[_0x3ae80a(0x211)];try{this[_0x3ae80a(0x247)](_0x1f8dc3,_0x32ab19);}catch(_0x2ca3f8){this['_logService'][_0x3ae80a(0x36e)](_0x2ca3f8);}let _0x306c68=this[_0x3ae80a(0x248)]();if(_0x5b64f8){let _0x5dc3ed=be(this['_injector'],_0x188d3e,this['_type'],_0x1f8dc3,_0x32ab19,_0x306c68);return _0x5dc3ed instanceof j?_0x5dc3ed[_0x3ae80a(0x27e)]():(_0x5dc3ed instanceof N||_0x5dc3ed instanceof M)&&_0x5dc3ed[_0x3ae80a(0x311)](),_0x5dc3ed;}return this[_0x3ae80a(0x22b)][_0x3ae80a(0x2d3)](F,_0x188d3e,this['_type'],_0x1f8dc3,_0x32ab19,_0x306c68);}['_replayCachedMutations'](_0x1ed893,_0x1e0639){const _0x3f0c04=_0x639d9b;var _0x15cf9f,_0x9e24c1;let _0x3248e6=this[_0x3f0c04(0x160)][_0x3f0c04(0x34b)]['fetchThroughInterceptors'](this['_compressMutationService'][_0x3f0c04(0x34b)][_0x3f0c04(0x3d6)]()[_0x3f0c04(0x2c9)]);(_0x15cf9f=_0x3248e6((_0x1ed893==null?void 0x0:_0x1ed893[_0x3f0c04(0x28c)])||[],null))==null||_0x15cf9f[_0x3f0c04(0x3c4)](_0x485caa=>this[_0x3f0c04(0x286)][_0x3f0c04(0x218)](_0x485caa['id'],_0x485caa[_0x3f0c04(0x13b)])),(_0x9e24c1=_0x3248e6(_0x1e0639||[],null))==null||_0x9e24c1[_0x3f0c04(0x3c4)](_0x474c19=>this[_0x3f0c04(0x286)][_0x3f0c04(0x218)](_0x474c19['id'],_0x474c19[_0x3f0c04(0x13b)]));}};L=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x4,(0x0,t['Inject'])(e[_0x639d9b(0x362)])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x2e5)])),y(0x6,(0x0,t['Inject'])(e['RevisionService'])),y(0x7,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x8,t[_0x639d9b(0x21e)]),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,t[_0x639d9b(0x2ec)]),y(0xb,t[_0x639d9b(0x2f2)]),y(0xc,(0x0,t[_0x639d9b(0x240)])(T)),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],L);let R=class extends L{constructor(_0x570f09,_0x3c30d9,_0x5b1b9d,_0x28a3f8,_0x51eaf5,_0x4c2758,_0x180f74,_0xba5ec9,_0x18c222,_0x395a1f,_0x3da716,_0x542f9c,_0x554ce7,_0x182bf3){const _0x5b0368=_0x639d9b;super(_0x570f09,_0x5b1b9d,_0x3c30d9,_0x28a3f8,_0x51eaf5,_0x4c2758,_0x180f74,_0xba5ec9,_0x18c222,_0x395a1f,_0x3da716,_0x542f9c,_0x554ce7,_0x182bf3),this['unitID']=_0x570f09,this[_0x5b0368(0x291)]=_0x3c30d9,g(this,_0x5b0368(0x159),null);}[_0x639d9b(0x273)](_0x1a7b33){const _0x4ae010=_0x639d9b;this[_0x4ae010(0x159)]=_0x1a7b33;}['dispose'](){const _0x43754c=_0x639d9b;this[_0x43754c(0x159)]=null,super[_0x43754c(0x36f)]();}[_0x639d9b(0x248)](){const _0x57330c=_0x639d9b;let _0x5a4916=super[_0x57330c(0x248)]();return _0x5a4916[_0x57330c(0x25f)]=_0x3b4203=>{const _0x99a627=_0x57330c;var _0x110f43,_0x2a65b9;return(_0x110f43=this[_0x99a627(0x159)])==null||(_0x2a65b9=_0x110f43[_0x99a627(0x25f)])==null?void 0x0:_0x2a65b9[_0x99a627(0x16e)](_0x110f43,_0x3b4203);},_0x5a4916[_0x57330c(0x283)]=_0x49b83a=>{const _0x1c742d=_0x57330c;var _0x48a071,_0x11fc6b;return(_0x48a071=this[_0x1c742d(0x159)])==null||(_0x11fc6b=_0x48a071[_0x1c742d(0x283)])==null?void 0x0:_0x11fc6b[_0x1c742d(0x16e)](_0x48a071,_0x49b83a);},_0x5a4916[_0x57330c(0x102)]=_0x2d9883=>{const _0x4b30b0=_0x57330c;var _0x3b1961,_0x3c19a7;return(_0x3b1961=this['_handlerCallback'])==null||(_0x3c19a7=_0x3b1961[_0x4b30b0(0x102)])==null?void 0x0:_0x3c19a7[_0x4b30b0(0x16e)](_0x3b1961,_0x2d9883);},_0x5a4916[_0x57330c(0x1c8)]=_0x4f7308=>{const _0x3c9281=_0x57330c;var _0x358f05,_0x38bd1e;return(_0x358f05=this[_0x3c9281(0x159)])==null||(_0x38bd1e=_0x358f05[_0x3c9281(0x1c8)])==null?void 0x0:_0x38bd1e[_0x3c9281(0x16e)](_0x358f05,_0x4f7308);},_0x5a4916['onTransformRemoteChangesetByIMECache']=_0x3f808c=>{const _0xc5dbb4=_0x57330c;var _0x3d5f0e,_0x45fd62,_0x125ea4;if(!((_0x3d5f0e=this[_0xc5dbb4(0x159)])!=null&&_0x3d5f0e['onTransformRemoteChangesetByIMECache']))throw Error(_0xc5dbb4(0x185));return(_0x45fd62=this[_0xc5dbb4(0x159)])==null||(_0x125ea4=_0x45fd62[_0xc5dbb4(0x3db)])==null?void 0x0:_0x125ea4[_0xc5dbb4(0x16e)](_0x45fd62,_0x3f808c);},_0x5a4916[_0x57330c(0x105)]=_0x43762c=>{const _0x581205=_0x57330c;var _0x4e0b68,_0x1b9a8a,_0x4e2217;if(!((_0x4e0b68=this['_handlerCallback'])!=null&&_0x4e0b68[_0x581205(0x105)]))throw Error('onTransformRemoteChangesetByStateCache\x20callback\x20is\x20not\x20added\x20yet.');return(_0x1b9a8a=this[_0x581205(0x159)])==null||(_0x4e2217=_0x1b9a8a[_0x581205(0x105)])==null?void 0x0:_0x4e2217['call'](_0x1b9a8a,_0x43762c);},_0x5a4916;}async[_0x639d9b(0x11b)](){const _0x47ff25=_0x639d9b;let _0x2816fe=await super['_init']();return this['disposeWithMe'](this['_commandService'][_0x47ff25(0x137)]((_0x54ecc3,_0x203513)=>{const _0x427ca3=_0x47ff25;if(_0x54ecc3[_0x427ca3(0x291)]!==t[_0x427ca3(0x3a1)][_0x427ca3(0x27f)]||_0x203513!=null&&_0x203513[_0x427ca3(0x109)]||_0x203513!=null&&_0x203513[_0x427ca3(0x3ad)]||_0x54ecc3['id']===n['RichTextEditingMutation']['id'])return;let _0x22186a=_0x54ecc3[_0x427ca3(0x13b)];if((_0x22186a==null?void 0x0:_0x22186a[_0x427ca3(0x3bc)])!==this['unitID'])return;let _0x3493cb=_0x54ecc3,_0x22d482=this[_0x427ca3(0x160)][_0x427ca3(0x34b)][_0x427ca3(0x115)](this[_0x427ca3(0x160)][_0x427ca3(0x34b)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x3493cb],this[_0x427ca3(0x350)])||[_0x3493cb];this[_0x427ca3(0x1e8)](_0x22d482[0x0]);})),_0x2816fe;}};R=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x4,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x362)])),y(0x5,(0x0,t['Inject'])(t['LocaleService'])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x7,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x8,t[_0x639d9b(0x21e)]),y(0x9,t[_0x639d9b(0x1b7)]),y(0xa,t[_0x639d9b(0x2ec)]),y(0xb,t['IPermissionService']),y(0xc,(0x0,t[_0x639d9b(0x240)])(T)),y(0xd,(0x0,t[_0x639d9b(0x240)])(C))],R);let z=class extends L{constructor(_0x2cf58d,_0x35863d,_0xdd6237,_0x1dc197,_0x192183,_0x3dfa0c,_0x418777,_0x10a929,_0xddcc2f,_0x838496,_0x2d041b,_0x56c55e,_0xc8d064,_0x3d5b17,_0x2a64b2){const _0x2880b4=_0x639d9b;super(_0x2cf58d,_0xdd6237,_0x35863d,_0x1dc197,_0x192183,_0x3dfa0c,_0x418777,_0xddcc2f,_0x838496,_0x2d041b,_0x56c55e,_0xc8d064,_0x3d5b17,_0x2a64b2),this[_0x2880b4(0x211)]=_0x2cf58d,this[_0x2880b4(0x291)]=_0x35863d,this['_sheetTransformSelectionsService']=_0x10a929;}[_0x639d9b(0x248)](){const _0x1b59ab=_0x639d9b;let _0x216944=super[_0x1b59ab(0x248)]();return _0x216944['onTransformSelections']=_0x5accfc=>this[_0x1b59ab(0x2bc)][_0x1b59ab(0x3a0)](_0x5accfc),_0x216944;}async[_0x639d9b(0x11b)](){const _0x2bf967=_0x639d9b;let _0xc9e8ac=await super[_0x2bf967(0x11b)]();return this[_0x2bf967(0x27b)](this[_0x2bf967(0x286)]['onMutationExecutedForCollab']((_0x25e265,_0x4f0d13)=>{const _0x1671b0=_0x2bf967;if(_0x25e265['type']!==t[_0x1671b0(0x3a1)][_0x1671b0(0x27f)]||_0x4f0d13!=null&&_0x4f0d13[_0x1671b0(0x109)]||_0x4f0d13!=null&&_0x4f0d13[_0x1671b0(0x3ad)])return;let _0x11ba88=_0x25e265[_0x1671b0(0x13b)];if((_0x11ba88==null?void 0x0:_0x11ba88['unitId'])!==this[_0x1671b0(0x211)])return;let _0x5e2170=_0x25e265,_0x412939=this[_0x1671b0(0x160)][_0x1671b0(0x34b)][_0x1671b0(0x115)](this[_0x1671b0(0x160)][_0x1671b0(0x34b)]['getInterceptPoints']()[_0x1671b0(0x246)])([_0x5e2170],this[_0x1671b0(0x350)])||[_0x5e2170];this[_0x1671b0(0x1e8)](_0x412939[0x0]);})),_0xc9e8ac;}};z=b([y(0x3,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),y(0x5,(0x0,t[_0x639d9b(0x11e)])(t['LocaleService'])),y(0x6,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x351)])),y(0x7,(0x0,t[_0x639d9b(0x11e)])(w)),y(0x8,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x9,t['IUniverInstanceService']),y(0xa,t[_0x639d9b(0x1b7)]),y(0xb,t[_0x639d9b(0x2ec)]),y(0xc,t['IPermissionService']),y(0xd,(0x0,t[_0x639d9b(0x240)])(T)),y(0xe,(0x0,t[_0x639d9b(0x240)])(C))],z);const xe=(0x0,t[_0x639d9b(0x1a6)])(_0x639d9b(0x130));function Se(_0x3a2649){const _0x49dc47=_0x639d9b;let _0x246099=_0x3a2649[_0x49dc47(0x398)],_0x3e2d29=JSON['parse'](_0x246099);switch(_0x3e2d29[_0x49dc47(0x131)]){case a[_0x49dc47(0x118)]['HEARTBEAT']:case a['CombCmd']['HELLO']:{let _0x4afc8a=_0x3e2d29[_0x49dc47(0x3b0)];return{..._0x3e2d29,'data':_0x4afc8a,'cmd':_0x3e2d29[_0x49dc47(0x131)]};}case a[_0x49dc47(0x118)][_0x49dc47(0x325)]:{let _0x40b51b=_0x3e2d29[_0x49dc47(0x37c)];return{..._0x3e2d29,'data':_0x40b51b,'cmd':_0x3e2d29['cmd']};}case a['CombCmd'][_0x49dc47(0x150)]:{let _0x31c037=_0x3e2d29[_0x49dc47(0x288)];switch(_0x31c037[_0x49dc47(0x34c)]){case e[_0x49dc47(0x1b0)][_0x49dc47(0x36b)]:var _0x1957ca;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0x1957ca=_0x31c037[_0x49dc47(0x2e6)])==null?void 0x0:_0x1957ca['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x1d9)]:var _0xda690e;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0xda690e=_0x31c037[_0x49dc47(0x2cc)])==null?void 0x0:_0xda690e['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x1ce)]:var _0x1af437;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0x1af437=_0x31c037[_0x49dc47(0x2b1)])==null?void 0x0:_0x1af437['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x146)]:var _0x2320a3;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0x2320a3=_0x31c037[_0x49dc47(0x33b)])==null?void 0x0:_0x2320a3['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x260)]:var _0xc20d24;return{..._0x3e2d29,'data':{..._0x31c037,'data':(_0xc20d24=_0x31c037['csShouldRetryEvent'])==null?void 0x0:_0xc20d24['cs']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x116)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x295)]},'cmd':_0x3e2d29['cmd']};case e[_0x49dc47(0x1b0)][_0x49dc47(0x228)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x330)]},'cmd':_0x3e2d29['cmd']};case e[_0x49dc47(0x1b0)]['USERS_LEAVE']:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x16c)]},'cmd':_0x3e2d29['cmd']};case e['CollaborationEvent'][_0x49dc47(0x225)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x1a1)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)]['LIVESHARE_FETCH_OPERATIONS']:case e['CollaborationEvent'][_0x49dc47(0x317)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037['liveShareOperation']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e['CollaborationEvent'][_0x49dc47(0x245)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x1a1)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e['CollaborationEvent'][_0x49dc47(0x26b)]:return{..._0x3e2d29,'data':_0x31c037,'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e['CollaborationEvent'][_0x49dc47(0x1a7)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x29a)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x2b0)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037['updatePermissionObjEvent']},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)][_0x49dc47(0x254)]:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x1d3)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};case e[_0x49dc47(0x1b0)]['UNISCRIPT_RUN']:return{..._0x3e2d29,'data':{..._0x31c037,'data':_0x31c037[_0x49dc47(0x16b)]},'cmd':_0x3e2d29[_0x49dc47(0x131)]};default:return _0x3e2d29;}}default:return _0x3e2d29;}}function Ce(_0xf9e975){const _0x553b99=_0x639d9b;switch(_0xf9e975['cmd']){case a[_0x553b99(0x118)][_0x553b99(0x374)]:case a['CombCmd']['HELLO']:return JSON['stringify']({'cmd':_0xf9e975[_0x553b99(0x131)],'routeKey':_0xf9e975['routeKey']});case a[_0x553b99(0x118)][_0x553b99(0x30c)]:{let _0x4c1466;switch(_0xf9e975['data'][_0x553b99(0x34c)]){case e[_0x553b99(0x1b0)][_0x553b99(0x116)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x116)],'updateCursorEvent':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e['CollaborationEvent'][_0x553b99(0x358)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)]['USERS_LEAVE'],'leaveEvent':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e['CollaborationEvent'][_0x553b99(0x228)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x228)],'joinEvent':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e[_0x553b99(0x1b0)][_0x553b99(0x225)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x225)],'liveShareNewHost':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e[_0x553b99(0x1b0)]['LIVESHARE_OPERATION']:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x317)],'liveShareOperation':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e[_0x553b99(0x1b0)][_0x553b99(0x245)]:_0x4c1466={'eventID':e[_0x553b99(0x1b0)][_0x553b99(0x245)],'liveShareTerminate':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x398)]};break;case e['CollaborationEvent']['LIVESHARE_REQUEST_HOST']:_0x4c1466={'eventID':e['CollaborationEvent'][_0x553b99(0x35e)],'liveShareRequestHost':_0xf9e975['data']['data']};break;case e['CollaborationEvent'][_0x553b99(0x342)]:_0x4c1466={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x4c1466={'eventID':_0xf9e975[_0x553b99(0x398)][_0x553b99(0x34c)]};}return JSON[_0x553b99(0x139)]({'cmd':_0xf9e975[_0x553b99(0x131)],'routeKey':_0xf9e975['routeKey'],'collaMsg':_0x4c1466});}case a[_0x553b99(0x118)][_0x553b99(0x325)]:return JSON['stringify']({'cmd':_0xf9e975[_0x553b99(0x131)],'routeKey':_0xf9e975[_0x553b99(0x11a)],'joinReq':_0xf9e975[_0x553b99(0x398)]});case a[_0x553b99(0x118)][_0x553b99(0x23f)]:return JSON['stringify']({'cmd':_0xf9e975['cmd'],'routeKey':_0xf9e975[_0x553b99(0x11a)],'leaveReq':_0xf9e975['data']});default:throw Error(_0x553b99(0x1d7));}}const B=(0x0,t['createIdentifier'])(_0x639d9b(0x298));function we(_0x4f9114,_0x348f87,_0x3385d0){const _0x58e928=_0x639d9b;return _0x4f9114+'/'+_0x348f87+_0x58e928(0x2b6)+_0x3385d0+_0x58e928(0x345);}let V=class extends t['Disposable']{constructor(_0x5c218f,_0x4c2cfc,_0x214ee1,_0x59e00d,_0x5e5ffe){const _0x1d88f9=_0x639d9b;super(),this[_0x1d88f9(0x22b)]=_0x5c218f,this[_0x1d88f9(0x1b5)]=_0x4c2cfc,this[_0x1d88f9(0x364)]=_0x214ee1,this[_0x1d88f9(0x353)]=_0x59e00d,this[_0x1d88f9(0x3b7)]=_0x5e5ffe;}[_0x639d9b(0x2a8)](_0x1964c7){const _0x265e7f=_0x639d9b;let _0x59f717=this[_0x265e7f(0x22b)][_0x265e7f(0x1a8)](c[_0x265e7f(0x123)]);if(!_0x59f717)throw Error(_0x265e7f(0x164));let _0x539b56=_0x59f717[_0x265e7f(0x3a5)](_0x1964c7);if(!_0x539b56)throw Error(_0x265e7f(0x3c7));let _0x38bea1=new t[(_0x265e7f(0x124))](),_0x2be8d1=new i[(_0x265e7f(0x352))]();_0x38bea1[_0x265e7f(0x382)](_0x539b56[_0x265e7f(0x1cb)][_0x265e7f(0x196)](_0x220d2c=>_0x2be8d1['next'](_0x220d2c))),_0x38bea1[_0x265e7f(0x382)]((0x0,t[_0x265e7f(0x192)])(()=>_0x2be8d1[_0x265e7f(0x15f)]()));let _0x211553=new i[(_0x265e7f(0x352))]();_0x38bea1['add'](_0x539b56[_0x265e7f(0x1ad)][_0x265e7f(0x196)](_0x3f2c5a=>_0x211553[_0x265e7f(0x268)](_0x3f2c5a))),_0x38bea1[_0x265e7f(0x382)]((0x0,t[_0x265e7f(0x192)])(()=>_0x211553[_0x265e7f(0x15f)]()));let _0x1c1268=new i[(_0x265e7f(0x352))]();_0x38bea1[_0x265e7f(0x382)](_0x539b56['message$'][_0x265e7f(0x196)](_0x16da8f=>{const _0x573379=_0x265e7f;let _0x551fc0=Se(_0x16da8f);_0x1c1268[_0x573379(0x268)](_0x551fc0);})),_0x38bea1[_0x265e7f(0x382)]((0x0,t[_0x265e7f(0x192)])(()=>_0x1c1268['complete']()));let _0x54f35b,_0xf9ad0e=()=>{const _0x327d8d=_0x265e7f;_0x211553['next'](new Event(_0x327d8d(0x14a))),_0x2be8d1[_0x327d8d(0x268)](new Event('connection\x20error')),_0x54f35b[_0x327d8d(0x178)]();};return _0x54f35b={'memberID':'','close$':_0x2be8d1[_0x265e7f(0x2a5)](),'error$':_0x211553[_0x265e7f(0x2a5)](),'open$':_0x539b56[_0x265e7f(0x2f8)],'message$':_0x1c1268[_0x265e7f(0x2a5)](),'send':_0x488d81=>{const _0x57a546=_0x265e7f;if(_0x488d81[_0x57a546(0x131)]===a[_0x57a546(0x118)][_0x57a546(0x30c)]){if(_0x488d81[_0x57a546(0x398)][_0x57a546(0x34c)]===e[_0x57a546(0x1b0)][_0x57a546(0x126)]){this[_0x57a546(0x3de)](_0x54f35b,_0x488d81[_0x57a546(0x398)])[_0x57a546(0x2de)](_0x95278b=>{const _0x3b1082=_0x57a546;this['_logService'][_0x3b1082(0x36e)](_0x95278b),_0xf9ad0e();});return;}if(_0x488d81[_0x57a546(0x398)][_0x57a546(0x34c)]===e[_0x57a546(0x1b0)][_0x57a546(0x107)]){let _0x2e3cef=_0x488d81['data'];this['_fetchMissChangesets'](_0x2e3cef)[_0x57a546(0x153)](_0x3c009a=>{const _0x1b3dee=_0x57a546;_0x1c1268[_0x1b3dee(0x268)]({'cmd':a[_0x1b3dee(0x118)][_0x1b3dee(0x150)],'code':a['CmdRspCode']['OK'],'routeKey':_0x2e3cef[_0x1b3dee(0x398)]['unitID'],'routeType':'','data':{'eventID':e[_0x1b3dee(0x1b0)][_0x1b3dee(0x1b3)],'data':{'changesets':_0x3c009a}}});})[_0x57a546(0x2de)](_0x51134d=>{const _0x5e4852=_0x57a546;this[_0x5e4852(0x353)][_0x5e4852(0x36e)](_0x51134d),_0xf9ad0e();});return;}}_0x539b56[_0x57a546(0x284)](Ce(_0x488d81));},'close':()=>{const _0x4168a5=_0x265e7f;_0x539b56[_0x4168a5(0x178)](),_0x38bea1[_0x4168a5(0x36f)]();}},_0x54f35b;}async[_0x639d9b(0x3de)](_0x28f0d1,_0x526089){const _0x33499d=_0x639d9b;var _0x10777e;let {unitType:_0x271a33,unitID:_0x120db8,changeset:_0x1e8dd6}=_0x526089[_0x33499d(0x398)],_0x18c795={'unitID':_0x120db8,'memberID':_0x28f0d1['memberID'],'type':_0x271a33,'changeset':(0x0,e[_0x33499d(0x2e0)])(_0x1e8dd6)},_0x211fc2=this[_0x33499d(0x364)]['getConfig'](E),_0x442428=we((_0x10777e=_0x211fc2==null?void 0x0:_0x211fc2[_0x33499d(0x17d)])==null?_0x33499d(0x15d):_0x10777e,_0x271a33,_0x120db8);try{await this[_0x33499d(0x1b5)][_0x33499d(0x119)](_0x442428,{'body':_0x18c795});}catch(_0x850088){throw this[_0x33499d(0x353)]['error'](_0x33499d(0x12b),_0x33499d(0x29f)),_0x850088;}}async['_fetchMissChangesets'](_0x547ede){const _0x2eb54d=_0x639d9b;let {unitID:_0xa205a9,from:_0x4254dc,to:_0x1a993b,unitType:_0x47429e}=_0x547ede[_0x2eb54d(0x398)];return(await this[_0x2eb54d(0x3b7)][_0x2eb54d(0x258)]({'metadata':void 0x0},{'unitID':_0xa205a9,'type':_0x47429e,'from':_0x4254dc,'to':_0x1a993b}))[_0x2eb54d(0x11c)][_0x2eb54d(0x39c)](_0x508a99=>((_0x508a99[_0x2eb54d(0x28c)]===null||_0x508a99[_0x2eb54d(0x28c)]===void 0x0)&&(_0x508a99['mutations']=[]),_0x508a99));}};V=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)])),y(0x2,t['IConfigService']),y(0x3,t[_0x639d9b(0x1b7)]),y(0x4,e[_0x639d9b(0x129)])],V);let H=class extends t[_0x639d9b(0x2a6)]{get[_0x639d9b(0x151)](){const _0x33d7d3=_0x639d9b;return this[_0x33d7d3(0x171)]['getValue']();}constructor(_0x24bbc6,_0x3d9d29,_0xeb9104,_0x1488bc,_0x12d923,_0x1e17b9){const _0x116e45=_0x639d9b;super(),this[_0x116e45(0x22b)]=_0x24bbc6,this[_0x116e45(0x353)]=_0x3d9d29,this['_configService']=_0xeb9104,this['_socketService']=_0x1488bc,this[_0x116e45(0x15e)]=_0x12d923,this[_0x116e45(0x20d)]=_0x1e17b9,g(this,_0x116e45(0x171),new i[(_0x116e45(0x2aa))](void 0x0)),g(this,_0x116e45(0x39f),this[_0x116e45(0x171)][_0x116e45(0x2a5)]()),g(this,'_candidateSocket',null),g(this,_0x116e45(0x1b8),new Map()),g(this,_0x116e45(0x13f),new i[(_0x116e45(0x2aa))](0x0)),g(this,_0x116e45(0x2cd),this[_0x116e45(0x13f)][_0x116e45(0x2a5)]()),g(this,'_socketReady',!0x1),g(this,_0x116e45(0x252),void 0x0),g(this,_0x116e45(0x320),0x0),g(this,'_socketMessageSubscription',null),g(this,_0x116e45(0x1c5),void 0x0),g(this,'_timeoutTimer',void 0x0),this[_0x116e45(0x3cb)]();}[_0x639d9b(0x3cb)](){const _0x367c9b=_0x639d9b;this['_networkConditionService']&&this[_0x367c9b(0x27b)](this[_0x367c9b(0x20d)][_0x367c9b(0x140)][_0x367c9b(0x196)](_0x2f8f53=>{const _0x4006b8=_0x367c9b;_0x2f8f53&&!this[_0x4006b8(0x151)]&&this['reconnect'](),_0x2f8f53||this['_onOffline']();}));}[_0x639d9b(0x36f)](){const _0x3cd10f=_0x639d9b;var _0x1a3f4e;super[_0x3cd10f(0x36f)](),(_0x1a3f4e=this[_0x3cd10f(0x120)])==null||_0x1a3f4e[_0x3cd10f(0x1c2)](),this['_socketMessageSubscription']=null,this[_0x3cd10f(0x361)](),this[_0x3cd10f(0x25b)](),this[_0x3cd10f(0x368)](),this[_0x3cd10f(0x1b8)]['forEach'](_0x103d23=>_0x103d23[_0x3cd10f(0x36f)]()),this[_0x3cd10f(0x1b8)][_0x3cd10f(0x1df)](),this[_0x3cd10f(0x13f)][_0x3cd10f(0x15f)]();}async['requireSession'](_0x3a0c16){const _0xff1502=_0x639d9b;if(this[_0xff1502(0x1b8)][_0xff1502(0x1dc)](_0x3a0c16))return this[_0xff1502(0x1b8)][_0xff1502(0x1a8)](_0x3a0c16);this[_0xff1502(0x152)]();let _0x5f67ac=this['_injector'][_0xff1502(0x2d3)](S,_0x3a0c16,this[_0xff1502(0x171)]['asObservable']());return this[_0xff1502(0x1b8)][_0xff1502(0x29c)](_0x3a0c16,_0x5f67ac),_0x5f67ac;}[_0x639d9b(0x1d1)](_0x5a11b0){const _0x26f94e=_0x639d9b;let _0x36682b=this[_0x26f94e(0x1b8)][_0x26f94e(0x1a8)](_0x5a11b0);if(_0x36682b&&(this['_sessions'][_0x26f94e(0x14b)](_0x5a11b0),_0x36682b[_0x26f94e(0x178)]()),!this[_0x26f94e(0x1b8)][_0x26f94e(0x213)]){var _0x163fa4;(_0x163fa4=this[_0x26f94e(0x151)])==null||_0x163fa4[_0x26f94e(0x178)]();}}[_0x639d9b(0x259)](){const _0x4596ca=_0x639d9b;this[_0x4596ca(0x320)]=0x0,this[_0x4596ca(0x361)](),this['_tryReconnect']();}[_0x639d9b(0x361)](){const _0x64c49=_0x639d9b;this[_0x64c49(0x252)]!=null&&(clearTimeout(this[_0x64c49(0x252)]),this[_0x64c49(0x252)]=null);}async[_0x639d9b(0x16f)](){const _0x339e7e=_0x639d9b;var _0x31f8c5;let _0x4e1ce5=this[_0x339e7e(0x364)][_0x339e7e(0x114)](E),_0x3180bb=(_0x31f8c5=_0x4e1ce5==null?void 0x0:_0x4e1ce5[_0x339e7e(0x39b)])==null?p:_0x31f8c5,_0x172847=await this[_0x339e7e(0x36c)]['createSocket'](_0x3180bb);return this['_candidateSocket']=_0x172847,_0x172847;}async[_0x639d9b(0x152)](){const _0x2a3068=_0x639d9b;try{var _0x4ab86a,_0x388d02;let _0x5eb283=(_0x4ab86a=(_0x388d02=this[_0x2a3068(0x151)])==null?this[_0x2a3068(0x19d)]:_0x388d02)==null?await this[_0x2a3068(0x16f)]():_0x4ab86a;if(_0x5eb283){var _0x12cdb5;let _0x3d1c83=_0x5eb283[_0x2a3068(0x284)];_0x5eb283[_0x2a3068(0x284)]=_0x1929d7=>(_0x1929d7[_0x2a3068(0x131)]!==a[_0x2a3068(0x118)]['LEAVE']&&this['_rescheduleHeartbeat'](),_0x3d1c83['apply'](_0x5eb283,[_0x1929d7])),(_0x12cdb5=this[_0x2a3068(0x120)])==null||_0x12cdb5[_0x2a3068(0x1c2)](),this[_0x2a3068(0x120)]=null,this[_0x2a3068(0x120)]=_0x5eb283[_0x2a3068(0x158)][_0x2a3068(0x196)](_0x5c869e=>this[_0x2a3068(0x134)](_0x5eb283,_0x5c869e)),_0x5eb283[_0x2a3068(0x1ad)][_0x2a3068(0x355)]((0x0,s[_0x2a3068(0x14e)])(0x1))[_0x2a3068(0x196)](_0x1bedfd=>this[_0x2a3068(0x353)][_0x2a3068(0x36e)](_0x2a3068(0x187),_0x1bedfd)),_0x5eb283['open$']['pipe']((0x0,s[_0x2a3068(0x14e)])(0x1))['subscribe'](()=>{const _0x39e2ea=_0x2a3068;this[_0x39e2ea(0x127)](_0x5eb283);}),_0x5eb283['close$'][_0x2a3068(0x355)]((0x0,s['take'])(0x1))['subscribe'](_0x17ea5b=>{const _0x23cf45=_0x2a3068;this[_0x23cf45(0x353)][_0x23cf45(0x1af)](_0x23cf45(0x2ca),_0x23cf45(0x13e),_0x17ea5b),this[_0x23cf45(0x2e1)]();});}}catch(_0xc72747){this[_0x2a3068(0x353)][_0x2a3068(0x36e)](_0xc72747),this[_0x2a3068(0x2e1)]();}}[_0x639d9b(0x127)](_0x192d6a){const _0x3d1801=_0x639d9b;this[_0x3d1801(0x353)][_0x3d1801(0x1af)](_0x3d1801(0x2ca),_0x3d1801(0x10f)),_0x192d6a[_0x3d1801(0x284)]({'cmd':a[_0x3d1801(0x118)][_0x3d1801(0x162)]}),this[_0x3d1801(0x310)]();}[_0x639d9b(0x18b)](){const _0x55de5d=_0x639d9b;this[_0x55de5d(0x1cc)]=!0x1,this['_candidateSocket']=null,this['_status$']['next'](0x2),this['_socket$'][_0x55de5d(0x268)](null),this['_clearTimeoutTimer'](),this[_0x55de5d(0x368)]();}[_0x639d9b(0x2e1)](){const _0x53190f=_0x639d9b;var _0x30ddbd;this[_0x53190f(0x18b)](),this['_retryCount']<((_0x30ddbd=this[_0x53190f(0x364)][_0x53190f(0x114)](_0x53190f(0x2b2)))==null?0x3:_0x30ddbd)?(this['_collaborationUIEventService']['emitEvent']({'id':_0x53190f(0x314)}),this[_0x53190f(0x275)]()):this[_0x53190f(0x15e)]['emitEvent']({'id':_0x53190f(0x161)});}[_0x639d9b(0x275)](){const _0x5eb3fc=_0x639d9b;var _0x109c25;let _0x16e2af=this[_0x5eb3fc(0x320)],_0xf8110a=this['_configService']['getConfig'](E),_0x57b1d6=_0x16e2af===0x0?0x0:((_0x109c25=_0xf8110a==null?void 0x0:_0xf8110a[_0x5eb3fc(0x148)])==null?0x4e20:_0x109c25)*0x2**_0x16e2af;this['_retryConnectingTimer']=setTimeout(()=>{const _0x1a7bd3=_0x5eb3fc;clearTimeout(this[_0x1a7bd3(0x252)]),this[_0x1a7bd3(0x252)]=null,this[_0x1a7bd3(0x152)]();},_0x57b1d6),this[_0x5eb3fc(0x320)]+=0x1;}[_0x639d9b(0x134)](_0x22c198,_0x4ffa87){const _0xac8494=_0x639d9b;let {cmd:_0x480130}=_0x4ffa87;_0x480130===a[_0xac8494(0x118)][_0xac8494(0x162)]&&!this[_0xac8494(0x1cc)]&&(_0x22c198[_0xac8494(0x2a7)]=_0x4ffa87[_0xac8494(0x398)][_0xac8494(0x2a7)],this['_socket$']['next'](_0x22c198),this[_0xac8494(0x13f)]['next'](0x3),this[_0xac8494(0x1cc)]=!0x0,this['_candidateSocket']=null),_0x480130===a[_0xac8494(0x118)][_0xac8494(0x374)]&&this['_clearTimeoutTimer'](),this['_rescheduleHeartbeat']();}[_0x639d9b(0x310)](){const _0x4af894=_0x639d9b;var _0x525eb2;this['_clearHeartbeatTimer'](),this[_0x4af894(0x1c5)]=setTimeout(()=>this['_sendHeartbeat'](),(_0x525eb2=this['_configService']['getConfig'](_0x4af894(0x378)))==null?0x7530:_0x525eb2);}['_sendHeartbeat'](){const _0x507b71=_0x639d9b;this[_0x507b71(0x151)]['send']({'cmd':a[_0x507b71(0x118)][_0x507b71(0x374)]}),this[_0x507b71(0x1d0)]();}[_0x639d9b(0x1d0)](){const _0x3299a9=_0x639d9b;var _0x476a23;this[_0x3299a9(0x2df)]=setTimeout(()=>this[_0x3299a9(0x2e1)](),(_0x476a23=this[_0x3299a9(0x364)][_0x3299a9(0x114)]('HEARTBEAT_TIMEOUT'))==null?m:_0x476a23);}[_0x639d9b(0x368)](){const _0x42c5b6=_0x639d9b;this[_0x42c5b6(0x1c5)]!=null&&(clearTimeout(this[_0x42c5b6(0x1c5)]),this['_sendHeartbeatTimer']=null);}[_0x639d9b(0x25b)](){const _0xf62b35=_0x639d9b;this['_timeoutTimer']!=null&&(clearTimeout(this[_0xf62b35(0x2df)]),this[_0xf62b35(0x2df)]=null);}};H=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,t[_0x639d9b(0x1b7)]),y(0x2,t[_0x639d9b(0x209)]),y(0x3,B),y(0x4,(0x0,t[_0x639d9b(0x11e)])(_)),y(0x5,(0x0,t[_0x639d9b(0x240)])(xe))],H);let U=class extends t[_0x639d9b(0x19b)]{constructor(_0x4ddc55,_0x499bdf,_0x1dfc06,_0x111415){const _0x23d9c0=_0x639d9b;var _0x1da121;super(),this[_0x23d9c0(0x22b)]=_0x4ddc55,this[_0x23d9c0(0x128)]=_0x499bdf,this[_0x23d9c0(0x364)]=_0x1dfc06,this[_0x23d9c0(0x350)]=_0x111415,g(this,'_entities',new Map()),g(this,_0x23d9c0(0x3b3),new i[(_0x23d9c0(0x352))]()),g(this,'entityInit$',this[_0x23d9c0(0x3b3)]['asObservable']()),((_0x1da121=this[_0x23d9c0(0x364)][_0x23d9c0(0x114)]('collaboration-client.config'))==null?void 0x0:_0x1da121[_0x23d9c0(0x3d0)])!==!0x1&&this[_0x23d9c0(0x11b)]();}[_0x639d9b(0x36f)](){const _0x31a4c1=_0x639d9b;super['dispose'](),this[_0x31a4c1(0x238)][_0x31a4c1(0x3c4)](_0x19e729=>_0x19e729[_0x31a4c1(0x36f)]()),this[_0x31a4c1(0x238)][_0x31a4c1(0x1df)]();}[_0x639d9b(0x37a)](_0x1615e1){const _0x55a77b=_0x639d9b;var _0x3c1d4b;return(_0x3c1d4b=this[_0x55a77b(0x238)][_0x55a77b(0x1a8)](_0x1615e1))==null?null:_0x3c1d4b;}[_0x639d9b(0x1ca)](_0x393ea5){const _0x3ad74f=_0x639d9b;let _0x2c3a65=this[_0x3ad74f(0x37a)](_0x393ea5);return _0x2c3a65?(0x0,i['of'])(_0x2c3a65):this['_entityInit$'][_0x3ad74f(0x355)]((0x0,s[_0x3ad74f(0x3aa)])(_0x28848d=>_0x28848d[_0x3ad74f(0x211)]===_0x393ea5));}['readyForCollab'](_0x1102ea){const _0x350c23=_0x639d9b;return(0x0,i['firstValueFrom'])(this[_0x350c23(0x1ca)](_0x1102ea)[_0x350c23(0x355)]((0x0,s[_0x350c23(0x39c)])(()=>void 0x0)));}[_0x639d9b(0x11b)](){const _0x41dd02=_0x639d9b;this[_0x41dd02(0x350)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x41dd02(0x1f5)])['pipe']((0x0,i['takeUntil'])(this[_0x41dd02(0x219)]),(0x0,s[_0x41dd02(0x3ac)])(0x10))[_0x41dd02(0x196)](async _0x55fb33=>{const _0x23eaa8=_0x41dd02;let _0x26d27e=_0x55fb33['unit'][_0x23eaa8(0x264)](),_0x38a6a5=await this[_0x23eaa8(0x1d4)](_0x26d27e,t[_0x23eaa8(0x279)][_0x23eaa8(0x1f5)]);this['_entities'][_0x23eaa8(0x29c)](_0x26d27e,_0x38a6a5);}),this['_univerInstanceService'][_0x41dd02(0x2c7)](t[_0x41dd02(0x279)][_0x41dd02(0x3c3)])['pipe']((0x0,i[_0x41dd02(0x221)])(this[_0x41dd02(0x219)]),(0x0,s[_0x41dd02(0x3ac)])(0x10))['pipe']((0x0,s[_0x41dd02(0x3aa)])(_0x2531bc=>!_0x2531bc['unit'][_0x41dd02(0x264)]()[_0x41dd02(0x24f)]('__')))[_0x41dd02(0x196)](async _0x3fcc52=>{const _0x5de2fe=_0x41dd02;let _0x5beb50=_0x3fcc52[_0x5de2fe(0x104)]['getUnitId'](),_0x5b4907=await this[_0x5de2fe(0x1d4)](_0x5beb50,t[_0x5de2fe(0x279)][_0x5de2fe(0x3c3)]);this[_0x5de2fe(0x238)][_0x5de2fe(0x29c)](_0x5beb50,_0x5b4907);}),(0x0,i[_0x41dd02(0x229)])(this['_univerInstanceService'][_0x41dd02(0x1f4)](t[_0x41dd02(0x279)][_0x41dd02(0x1f5)]),this[_0x41dd02(0x350)]['getTypeOfUnitDisposed$'](t[_0x41dd02(0x279)]['UNIVER_DOC']))[_0x41dd02(0x355)]((0x0,i['takeUntil'])(this['dispose$']))[_0x41dd02(0x196)](_0x5feb10=>{const _0x309c88=_0x41dd02;let _0x26e9e8=_0x5feb10[_0x309c88(0x264)](),_0x25999e=this[_0x309c88(0x238)][_0x309c88(0x1a8)](_0x26e9e8);_0x25999e&&(_0x25999e[_0x309c88(0x36f)](),this[_0x309c88(0x238)][_0x309c88(0x14b)](_0x26e9e8));});}async['_startCollaboration'](_0x3ed97c,_0x31b5a0){const _0x1c5cde=_0x639d9b;let _0x423b3c=await this[_0x1c5cde(0x128)][_0x1c5cde(0x2d9)](_0x3ed97c),_0x2794f8=this['_injector'][_0x1c5cde(0x2d3)](this[_0x1c5cde(0x332)](_0x31b5a0),_0x3ed97c,_0x31b5a0,_0x423b3c);return await _0x2794f8[_0x1c5cde(0x2f9)](),this[_0x1c5cde(0x3b3)]['next'](_0x2794f8),_0x2794f8;}[_0x639d9b(0x332)](_0x134d9a){const _0x35d53b=_0x639d9b;switch(_0x134d9a){case t[_0x35d53b(0x279)][_0x35d53b(0x3c3)]:return R;case t[_0x35d53b(0x279)][_0x35d53b(0x1f5)]:return z;default:throw Error(_0x35d53b(0x37e)+_0x134d9a);}}};U=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(H)),y(0x2,t[_0x639d9b(0x209)]),y(0x3,t['IUniverInstanceService'])],U);var Te=_0x639d9b(0x182),Ee=_0x639d9b(0x38d);let De=class extends t[_0x639d9b(0x2a6)]{constructor(_0x5eaa5a,_0x370b73){const _0x558ef8=_0x639d9b;super(),this[_0x558ef8(0x350)]=_0x5eaa5a,this['_configService']=_0x370b73,this['_init']();}[_0x639d9b(0x11b)](){const _0x5bb974=_0x639d9b;this[_0x5bb974(0x27b)](this[_0x5bb974(0x350)][_0x5bb974(0x149)][_0x5bb974(0x196)](()=>{const _0x3b7e32=_0x5bb974;var _0x1fccff;let _0x165270=this['_univerInstanceService'][_0x3b7e32(0x348)](),_0x43153a=(_0x1fccff=this[_0x3b7e32(0x364)][_0x3b7e32(0x114)](_0x3b7e32(0x1da)))==null?'Univer':_0x1fccff;_0x165270 instanceof t['Workbook']&&(_0x43153a=_0x165270[_0x3b7e32(0x1c0)]),document[_0x3b7e32(0x290)]=_0x43153a;}));}};De=b([y(0x0,t[_0x639d9b(0x21e)]),y(0x1,t[_0x639d9b(0x209)])],De);let W=class{constructor(_0x3446f1,_0x4b8744,_0x27fba4){const _0x58aae0=_0x639d9b;this[_0x58aae0(0x364)]=_0x3446f1,this[_0x58aae0(0x1b5)]=_0x4b8744,this[_0x58aae0(0x10c)]=_0x27fba4,this[_0x58aae0(0x2f9)]();}[_0x639d9b(0x2f9)](){const _0x324718=_0x639d9b;this[_0x324718(0x1b5)][_0x324718(0x175)]({'priority':0x1,'interceptor':(_0x482075,_0x48762f)=>_0x48762f(_0x482075)[_0x324718(0x355)]((0x0,i[_0x324718(0x386)])(async _0x47a01b=>{const _0x385306=_0x324718;let _0x350cd4=_0x47a01b;if(_0x350cd4[_0x385306(0x394)]===0x191){if(typeof window>'u')throw Error(_0x385306(0x336));if(window[_0x385306(0x2e9)](this[_0x385306(0x10c)]['t'](_0x385306(0x269)))){let _0x30db80=window['encodeURIComponent'](window[_0x385306(0x3d5)][_0x385306(0x203)]);window[_0x385306(0x3d5)]['href']=this['_getLoginPath']()+_0x385306(0x204)+_0x30db80;}}return _0x350cd4;}))});}[_0x639d9b(0x390)](){const _0xd5f4b3=_0x639d9b;var _0x5e1a1d;let _0x2715bc=this[_0xd5f4b3(0x364)][_0xd5f4b3(0x114)](E);return(_0x5e1a1d=_0x2715bc==null?void 0x0:_0x2715bc[_0xd5f4b3(0x1db)])==null?_0xd5f4b3(0x399):_0x5e1a1d;}};W=b([y(0x0,t[_0x639d9b(0x209)]),y(0x1,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)])),y(0x2,(0x0,t[_0x639d9b(0x11e)])(t['LocaleService']))],W);let G=class extends t['Disposable']{constructor(_0x4e7686,_0x446ab5){const _0x3eab18=_0x639d9b;super(),this[_0x3eab18(0x2d5)]=_0x4e7686,this[_0x3eab18(0x364)]=_0x446ab5,g(this,_0x3eab18(0x257),!0x1),this[_0x3eab18(0x31e)]();}[_0x639d9b(0x31e)](){const _0x1b8c3c=_0x639d9b;let _0x263468=this;this[_0x1b8c3c(0x27b)](this[_0x1b8c3c(0x2d5)][_0x1b8c3c(0x175)]({'priority':0x3e7,'interceptor':(0x0,c[_0x1b8c3c(0x12c)])({'isMatch'(_0x49df65){const _0x50ad28=_0x1b8c3c;var _0x5345a0;if(_0x49df65[_0x50ad28(0x19a)]===_0x50ad28(0x31b)&&(_0x5345a0=_0x49df65['requestParams'])!=null&&_0x5345a0[_0x50ad28(0x20e)]){let {objectID:_0xf29b27,objectType:_0x373acc}=_0x49df65[_0x50ad28(0x38e)][_0x50ad28(0x20e)]||{};if(!_0xf29b27||_0x373acc===void 0x0)return!0x1;let _0xe37557=_0x263468['_getAPIPrefixPath']()+'/'+_0x373acc+_0x50ad28(0x32d)+_0xf29b27+'/allowed';if(_0x49df65[_0x50ad28(0x26e)]===_0xe37557)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x4f0bb0){var _0x3710b7;return(_0x3710b7=_0x4f0bb0['requestParams'])==null?void 0x0:_0x3710b7['body'];},'mergeParamsToRequest'(_0xbf0bf7,_0x5959ad){const _0x4053af=_0x1b8c3c;let _0x1230c9=_0x263468['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x15df73=_0xbf0bf7['reduce']((_0x5b9c4d,_0x2beb4b)=>{const _0x508d82=_0x5037;let {unitID:_0x2b85a5,objectID:_0x12c688,objectType:_0x374c31,actions:_0x300d9a}=_0x2beb4b;return _0x5b9c4d[_0x2b85a5]||(_0x5b9c4d[_0x2b85a5]={}),_0x5b9c4d[_0x2b85a5][_0x12c688]||(_0x5b9c4d[_0x2b85a5][_0x12c688]={'objectID':_0x12c688,'objectType':_0x374c31,'actions':[]}),_0x5b9c4d[_0x2b85a5][_0x12c688][_0x508d82(0x39a)][_0x508d82(0x1a4)](..._0x300d9a),_0x5b9c4d;},{}),_0x1e3b93=[];for(let _0x529b4c in _0x15df73)for(let _0x439fd9 in _0x15df73[_0x529b4c]){let {actions:_0x2b0c4a,objectType:_0x334b8e}=_0x15df73[_0x529b4c][_0x439fd9],_0x1dc3b6=[...new Set(_0x2b0c4a)];_0x1e3b93['push']({'unitID':_0x529b4c,'objectID':_0x439fd9,'objectType':_0x334b8e,'actions':_0x1dc3b6});}return new c[(_0x4053af(0x1ac))](_0x4053af(0x31b),_0x1230c9,{'headers':_0x5959ad[_0x4053af(0x145)],'withCredentials':_0x5959ad[_0x4053af(0x234)],'responseType':_0x5959ad[_0x4053af(0x237)],'body':{'requests':_0x1e3b93}});}},{'distributeResult'(_0x3113fa,_0x3debd4){const _0x4f20aa=_0x1b8c3c;let {objectActions:_0x4a1285}=_0x3113fa;return _0x3debd4[_0x4f20aa(0x39c)](_0x20381e=>{const _0x5e7701=_0x4f20aa;let {unitID:_0x124110,objectID:_0x2a5b75,actions:_0x34783e}=_0x20381e,_0x38c462=_0x4a1285['find'](_0x1147f7=>_0x1147f7['unitID']===_0x124110&&_0x1147f7['objectID']===_0x2a5b75);return{'config':_0x20381e,'result':{'actions':_0x34783e['map'](_0x5d2950=>_0x38c462==null?void 0x0:_0x38c462['actions'][_0x5e7701(0x206)](_0x47f292=>_0x47f292[_0x5e7701(0x165)]===_0x5d2950))[_0x5e7701(0x3aa)](_0x556a88=>!!_0x556a88),'error':_0x3113fa[_0x5e7701(0x36e)]}};});}})}));}[_0x639d9b(0x334)](){const _0x2f7ab4=_0x639d9b;var _0x3f4b75;let _0x275f79=this['_configService'][_0x2f7ab4(0x114)](E);return(_0x3f4b75=_0x275f79==null?void 0x0:_0x275f79[_0x2f7ab4(0x3ca)])==null?_0x2f7ab4(0x2ef):_0x3f4b75;}async[_0x639d9b(0x305)](_0x143f8e){const _0x244c93=_0x639d9b;let _0x58d064=this['_getAPIPrefixPath']()+'/'+_0x143f8e[_0x244c93(0x28f)]+_0x244c93(0x19f);return(await this[_0x244c93(0x2d5)][_0x244c93(0x119)](_0x58d064,{'body':_0x143f8e}))[_0x244c93(0x20e)][_0x244c93(0x287)]||'';}async[_0x639d9b(0x33f)](_0x45dd59){const _0x220660=_0x639d9b;let _0x20bd4d=this[_0x220660(0x334)]()+_0x220660(0x1e2);return(await this[_0x220660(0x2d5)][_0x220660(0x119)](_0x20bd4d,{'body':_0x45dd59}))[_0x220660(0x20e)][_0x220660(0x13a)];}async['update'](_0x4883b2){const _0x18d018=_0x639d9b;var _0x277d80;let _0x5ad85c=this['_getAPIPrefixPath']()+'/'+_0x4883b2[_0x18d018(0x28f)]+_0x18d018(0x32d)+_0x4883b2['objectID'],_0x410e51=await this[_0x18d018(0x2d5)][_0x18d018(0x1e0)](_0x5ad85c,{'body':_0x4883b2});if((_0x410e51==null||(_0x277d80=_0x410e51['body'])==null||(_0x277d80=_0x277d80[_0x18d018(0x36e)])==null?void 0x0:_0x277d80[_0x18d018(0x319)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async[_0x639d9b(0x20a)](_0x3a2346){const _0x45ffc3=_0x639d9b;let _0x43850f=this[_0x45ffc3(0x334)]()+'/'+_0x3a2346['objectType']+_0x45ffc3(0x32d)+_0x3a2346[_0x45ffc3(0x287)]+_0x45ffc3(0x22c);return(await this[_0x45ffc3(0x2d5)][_0x45ffc3(0x119)](_0x43850f,{'body':_0x3a2346}))['body'][_0x45ffc3(0x39a)];}async[_0x639d9b(0x15b)](_0x32dee5){const _0x55f3ac=_0x639d9b;let _0x20ac66=this[_0x55f3ac(0x334)]()+_0x55f3ac(0x2fe);return(await this[_0x55f3ac(0x2d5)][_0x55f3ac(0x119)](_0x20ac66,{'body':{'requests':_0x32dee5}}))[_0x55f3ac(0x20e)][_0x55f3ac(0x2c2)];}async[_0x639d9b(0x224)](_0x41d73f){const _0x1b5d7a=_0x639d9b;let _0x608f7c=this['_getAPIPrefixPath']()+'/'+_0x41d73f['objectType']+_0x1b5d7a(0x1b1),_0x240698=await this[_0x1b5d7a(0x2d5)][_0x1b5d7a(0x119)](_0x608f7c,{'body':_0x41d73f});return{'roles':_0x240698['body'][_0x1b5d7a(0x3b8)],'actions':_0x240698[_0x1b5d7a(0x20e)]['actions']};}async[_0x639d9b(0x383)](_0x494aa3){const _0x363ae3=_0x639d9b;let _0x454a3f=this[_0x363ae3(0x334)]()+'/collaborator';await this[_0x363ae3(0x2d5)][_0x363ae3(0x14b)](_0x454a3f,{'params':{'collaboratorID':_0x494aa3[_0x363ae3(0x10e)],'objectID':_0x494aa3[_0x363ae3(0x287)],'unitID':_0x494aa3['unitID']}});}async[_0x639d9b(0x3dd)](_0x3ffdf8){const _0xd9e0be=_0x639d9b;let _0x35742d=this[_0xd9e0be(0x334)]()+_0xd9e0be(0x2fc);await this[_0xd9e0be(0x2d5)][_0xd9e0be(0x169)](_0x35742d,{'body':_0x3ffdf8});}async['createCollaborator'](_0x3a88fc){const _0xf95c1c=_0x639d9b;let _0x1d2846=this[_0xf95c1c(0x334)]()+_0xf95c1c(0x2fc);await this[_0xf95c1c(0x2d5)][_0xf95c1c(0x119)](_0x1d2846,{'body':_0x3a88fc});}async['listCollaborators'](_0x31f324){const _0x31c3df=_0x639d9b;var _0x50dcd0;let _0x5a0b29=this['_getAPIPrefixPath']()+_0x31c3df(0x2fc),_0x19eb12=await this[_0x31c3df(0x2d5)][_0x31c3df(0x1a8)](_0x5a0b29,{'params':{'objectID':_0x31f324[_0x31c3df(0x287)],'unitID':_0x31f324[_0x31c3df(0x211)]}});return this[_0x31c3df(0x338)]((_0x50dcd0=_0x19eb12[_0x31c3df(0x20e)]['cfgEnableObjInherit'])==null?!0x1:_0x50dcd0),_0x19eb12[_0x31c3df(0x20e)][_0x31c3df(0x214)];}async[_0x639d9b(0x11f)](_0x1b21ea){const _0xc34c67=_0x639d9b;let _0x4e0b1b=this[_0xc34c67(0x334)]()+_0xc34c67(0x2fc);await this[_0xc34c67(0x2d5)][_0xc34c67(0x1e0)](_0x4e0b1b,{'body':_0x1b21ea});}[_0x639d9b(0x338)](_0x562902){const _0x270259=_0x639d9b;this[_0x270259(0x257)]=_0x562902;}['getCfgEnableObjInherit'](){const _0x1eadc0=_0x639d9b;return this[_0x1eadc0(0x257)];}};G=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(t['IConfigService']))],G);function Oe(_0x3510b3){const _0x48bf5d=_0x639d9b;let _0x3706c8=atob(_0x3510b3),_0x5ecea5=new Uint8Array(_0x3706c8[_0x48bf5d(0x346)]);for(let _0x2f5b99=0x0;_0x2f5b99<_0x3706c8['length'];_0x2f5b99++)_0x5ecea5[_0x2f5b99]=_0x3706c8['charCodeAt'](_0x2f5b99);return _0x5ecea5;}function ke(_0x482fe4){let _0x3dcc69='';for(let _0x366a92=0x0;_0x366a92<_0x482fe4['length'];_0x366a92++)_0x3dcc69+=String['fromCharCode'](_0x482fe4[_0x366a92]);return btoa(_0x3dcc69);}function Ae(_0x32922c,_0x1da3f1){const _0x1b8e28=_0x639d9b;let _0x39354d=Oe(_0x1da3f1),_0x156984=(0x0,f[_0x1b8e28(0x17a)])(0x10);return ke((0x0,f[_0x1b8e28(0x312)])(_0x156984,(0x0,d[_0x1b8e28(0x22a)])(_0x39354d,_0x156984)[_0x1b8e28(0x388)]((0x0,f[_0x1b8e28(0x33a)])(_0x32922c))));}function je(){const _0x4b765f=_0x639d9b;let _0xdd4c68=(0x0,l['getGlobalObject'])()[_0x4b765f(0x1f6)];if(typeof window<'u'&&window[_0x4b765f(0x3d5)]!==void 0x0&&_0xdd4c68){let _0x43506c={'time':Math[_0x4b765f(0x27a)](Date[_0x4b765f(0x135)]()/0x3e8),'domain':location[_0x4b765f(0x396)]};return Ae(JSON[_0x4b765f(0x139)](_0x43506c),_0xdd4c68);}}let K=class{constructor(_0xaa9f62){const _0x11d80f=_0x639d9b;this['_httpService']=_0xaa9f62,this[_0x11d80f(0x1bc)]();}['_initRequestHeader'](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x43dfca,_0x23f2ee)=>{const _0x3991e1=_0x5037;let _0x2772e0=je();return _0x2772e0&&_0x43dfca[_0x3991e1(0x145)][_0x3991e1(0x29c)](_0x3991e1(0x233),_0x2772e0),_0x23f2ee(_0x43dfca);}});}};K=b([y(0x0,(0x0,t['Inject'])(c[_0x639d9b(0x344)]))],K);let q=class extends t[_0x639d9b(0x19b)]{constructor(_0x104713,_0x2601bb,_0xb93cdd){const _0x5a5978=_0x639d9b;super(),this[_0x5a5978(0x353)]=_0x104713,this['_snapshotService']=_0x2601bb,this[_0x5a5978(0x24c)]=_0xb93cdd,g(this,_0x5a5978(0x125),new i['BehaviorSubject'](null)),g(this,_0x5a5978(0x2d0),this[_0x5a5978(0x125)]['asObservable']());}async['loadUnitOfRevision'](_0x6a4c7b,_0x4d8621,_0x400157){const _0x56db26=_0x639d9b;this[_0x56db26(0x125)][_0x56db26(0x268)]({'unitId':_0x6a4c7b,'type':_0x4d8621});let _0x497de8=null;switch(_0x4d8621){case t[_0x56db26(0x279)][_0x56db26(0x1f5)]:_0x497de8=await this[_0x56db26(0x3a2)][_0x56db26(0x26a)](_0x6a4c7b,_0x400157);break;case t[_0x56db26(0x279)][_0x56db26(0x3c3)]:_0x497de8=await this[_0x56db26(0x3a2)]['loadDoc'](_0x6a4c7b,_0x400157);break;default:this['_logService'][_0x56db26(0x36e)](_0x56db26(0x21c),_0x56db26(0x11d));break;}return _0x497de8;}async[_0x639d9b(0x217)](_0x1a3169,_0x1b3bb4,_0x4405cd){const _0x53c0e4=_0x639d9b;var _0x32df7f;this['_unitInfo$'][_0x53c0e4(0x268)]({'unitId':_0x1a3169,'type':_0x1b3bb4,'subUnitId':_0x4405cd});let _0x13bf1f=0x0,_0x21fcf7=await((_0x32df7f=this[_0x53c0e4(0x24c)])==null?void 0x0:_0x32df7f['loadOfflineData'](_0x1a3169));return _0x21fcf7&&(_0x21fcf7[_0x53c0e4(0x18e)]||_0x21fcf7['mutations'][_0x53c0e4(0x346)]!==0x0)&&(_0x13bf1f=_0x21fcf7['rev']),_0x13bf1f===0x0&&this['_logService'][_0x53c0e4(0x1af)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this['loadUnitOfRevision'](_0x1a3169,_0x1b3bb4,_0x13bf1f);}};q=b([y(0x0,t[_0x639d9b(0x1b7)]),y(0x1,(0x0,t[_0x639d9b(0x11e)])(e[_0x639d9b(0x189)])),y(0x2,(0x0,t['Optional'])(C))],q);let J=class{constructor(_0x2f2370,_0x2b91ba,_0x5c067e){const _0x51a989=_0x639d9b;this[_0x51a989(0x1b5)]=_0x2f2370,this['_configService']=_0x2b91ba,this[_0x51a989(0x350)]=_0x5c067e,g(this,_0x51a989(0x282),0x0),g(this,_0x51a989(0x31d),new i[(_0x51a989(0x352))]()),g(this,_0x51a989(0x2ba),this[_0x51a989(0x31d)]),g(this,_0x51a989(0x31c),new Map());}[_0x639d9b(0x170)](_0x36c586){const _0x52737f=_0x639d9b;this[_0x52737f(0x282)]=_0x36c586,this[_0x52737f(0x31d)]['next'](_0x36c586);}[_0x639d9b(0x1fe)](_0x1856e4,_0x407f23){const _0x3d4596=_0x639d9b;if(_0x407f23===u[_0x3d4596(0x220)]['BASE64']){let _0x4b6a9b=new Image();return _0x4b6a9b['src']=_0x1856e4,_0x4b6a9b;}return this['_imageSourceCache'][_0x3d4596(0x1a8)](_0x1856e4);}[_0x639d9b(0x191)](_0x352eb4,_0x31fb05,_0x5b1fe2){const _0x2e4b7b=_0x639d9b;_0x31fb05===u['ImageSourceType']['BASE64']||_0x5b1fe2==null||this[_0x2e4b7b(0x31c)][_0x2e4b7b(0x29c)](_0x352eb4,_0x5b1fe2);}async[_0x639d9b(0x2fd)](_0x39c40b){const _0x19aea0=_0x639d9b;try{let _0x778a4b=this[_0x19aea0(0x2e4)](this['_getSignURL'](),''+_0x39c40b),_0x36be85=(await this['_httpService'][_0x19aea0(0x1a8)](_0x778a4b))[_0x19aea0(0x20e)];if(_0x36be85[_0x19aea0(0x36e)]&&_0x36be85['error'][_0x19aea0(0x319)]===a[_0x19aea0(0x373)]['OK']){let _0x4da414=(0x0,t[_0x19aea0(0x27d)])(_0x36be85[_0x19aea0(0x26e)],this[_0x19aea0(0x3d7)]());return Promise['resolve'](_0x4da414);}return Promise[_0x19aea0(0x2a2)](_0x36be85[_0x19aea0(0x36e)]);}catch(_0xffeded){return Promise[_0x19aea0(0x2a2)](_0xffeded);}}async[_0x639d9b(0x3d1)](_0x4b8783){const _0x3ba95b=_0x639d9b;let _0x321dc8='';if(!u[_0x3ba95b(0x369)][_0x3ba95b(0x23e)](_0x4b8783[_0x3ba95b(0x291)]))return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)]['ERROR_IMAGE_TYPE']));if(_0x4b8783[_0x3ba95b(0x213)]>(0x0,u[_0x3ba95b(0x1ed)])())return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)][_0x3ba95b(0x303)]));try{let _0x27d8c1=new FormData();_0x27d8c1[_0x3ba95b(0x188)](_0x3ba95b(0x17e),_0x4b8783);let _0x188b0c=this[_0x3ba95b(0x350)][_0x3ba95b(0x348)](),_0xbe53a1=_0x188b0c==null?void 0x0:_0x188b0c[_0x3ba95b(0x264)]();if(!_0xbe53a1)throw Error(_0x3ba95b(0x38c));let _0x42aeea=this[_0x3ba95b(0x3c6)]()+_0x3ba95b(0x155)+_0x4b8783[_0x3ba95b(0x213)][_0x3ba95b(0x16a)]()+_0x3ba95b(0x3cc)+a[_0x3ba95b(0x20c)]['UnitEmbedded']+_0x3ba95b(0x321)+encodeURIComponent(_0xbe53a1),_0x2b8d5e={'body':_0x27d8c1},_0x56bf08=(await this['_httpService'][_0x3ba95b(0x119)](_0x42aeea,_0x2b8d5e))['body'];if(typeof _0x56bf08['FileId']!='string')return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)]['ERROR_IMAGE']));_0x321dc8=_0x56bf08[_0x3ba95b(0x318)];}catch{return this[_0x3ba95b(0x1a0)](),Promise[_0x3ba95b(0x2a2)](Error(u[_0x3ba95b(0x183)]['ERROR_IMAGE']));}return new Promise((_0x5dcd09,_0x3ee31c)=>{const _0x5afe26=_0x3ba95b;let _0xa0f46b=new FileReader();_0xa0f46b[_0x5afe26(0x30e)](_0x4b8783),_0xa0f46b['onload']=_0x2cbd60=>{const _0x3dbf1f=_0x5afe26;var _0xa0f18b;let _0x361c82=(_0xa0f18b=_0x2cbd60[_0x3dbf1f(0x3b6)])==null?void 0x0:_0xa0f18b['result'];if(_0x361c82==null){this['_decreaseWaiting'](),_0x3ee31c(Error(u[_0x3dbf1f(0x183)][_0x3dbf1f(0x24d)]));return;}_0x5dcd09({'imageId':(0x0,t[_0x3dbf1f(0x110)])(0x6),'imageSourceType':u['ImageSourceType'][_0x3dbf1f(0x292)],'source':_0x321dc8,'base64Cache':_0x361c82,'status':u[_0x3dbf1f(0x183)][_0x3dbf1f(0x29d)]}),this[_0x3dbf1f(0x1a0)]();};});}[_0x639d9b(0x3c6)](){const _0x473a9d=_0x639d9b;var _0x4adc00;let _0x20113d=this['_configService'][_0x473a9d(0x114)](E);return(_0x4adc00=_0x20113d==null?void 0x0:_0x20113d['uploadFileServerUrl'])==null?_0x473a9d(0x251):_0x4adc00;}[_0x639d9b(0x3a9)](){const _0x16c5d1=_0x639d9b;var _0x16ed61;let _0x33d628=this[_0x16c5d1(0x364)][_0x16c5d1(0x114)](E);return(_0x16ed61=_0x33d628==null?void 0x0:_0x33d628['signUrlServerUrl'])==null?_0x16c5d1(0x2e8):_0x16ed61;}['_getDownloadEndpointURL'](){const _0x22e64b=_0x639d9b;var _0x5c186e;let _0x3cfd1b=this[_0x22e64b(0x364)][_0x22e64b(0x114)](E);return(_0x5c186e=_0x3cfd1b==null?void 0x0:_0x3cfd1b[_0x22e64b(0x357)])==null?location[_0x22e64b(0x31a)]:_0x5c186e;}['_replaceFileID'](_0xeaf126,_0x412935){const _0x46c420=_0x639d9b;return _0xeaf126[_0x46c420(0x121)](_0x46c420(0x32f),_0x412935);}[_0x639d9b(0x1a0)](){const _0x21ea48=_0x639d9b;--this[_0x21ea48(0x282)],this['_change$'][_0x21ea48(0x268)](this['_waitCount']);}};J=b([y(0x0,(0x0,t['Inject'])(c[_0x639d9b(0x344)])),y(0x1,t['IConfigService']),y(0x2,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x21e)]))],J);let Y=class{constructor(_0xd857e2,_0x2339bd){const _0x2008c5=_0x639d9b;this[_0x2008c5(0x364)]=_0xd857e2,this[_0x2008c5(0x2d5)]=_0x2339bd;}[_0x639d9b(0x334)](){const _0x52079d=_0x639d9b;var _0x4ccd7d;let _0x474e80=this[_0x52079d(0x364)]['getConfig'](E);return(_0x4ccd7d=_0x474e80==null?void 0x0:_0x474e80[_0x52079d(0x3ca)])==null?_0x52079d(0x2ef):_0x4ccd7d;}async[_0x639d9b(0x33f)](_0x35cc46){const _0x8d30a2=_0x639d9b;let _0x1af2f0=this[_0x8d30a2(0x334)]()+_0x8d30a2(0x2fc);return{'list':[{'title':_0x8d30a2(0x10d),'mentions':(await this['_HTTPService'][_0x8d30a2(0x1a8)](_0x1af2f0,{'params':{'objectID':_0x35cc46[_0x8d30a2(0x3bc)],'unitID':_0x35cc46[_0x8d30a2(0x3bc)]}}))[_0x8d30a2(0x20e)][_0x8d30a2(0x214)][_0x8d30a2(0x39c)](_0x206474=>({'objectId':_0x206474['id'],'name':_0x206474[_0x8d30a2(0x235)]['name'],'metadata':{'icon':_0x206474[_0x8d30a2(0x235)][_0x8d30a2(0x3ce)]},'label':_0x206474[_0x8d30a2(0x235)][_0x8d30a2(0x1c0)],'objectType':t[_0x8d30a2(0x379)][_0x8d30a2(0x376)]})),'metadata':{},'type':t[_0x8d30a2(0x379)][_0x8d30a2(0x376)]}]};}};Y=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x209)])),y(0x1,(0x0,t[_0x639d9b(0x11e)])(c[_0x639d9b(0x344)]))],Y);let X=class extends t[_0x639d9b(0x19b)]{constructor(_0x387882,_0x1af8ec,_0x332cee,_0x3ec89b,_0x405e5b){const _0x2f49b5=_0x639d9b;super(),this[_0x2f49b5(0x22b)]=_0x387882,this[_0x2f49b5(0x350)]=_0x1af8ec,this[_0x2f49b5(0x2fa)]=_0x332cee,this[_0x2f49b5(0x23d)]=_0x3ec89b,this['_collaborationUIEventService']=_0x405e5b,this[_0x2f49b5(0x271)](),this[_0x2f49b5(0x1f0)]();}[_0x639d9b(0x1f0)](){const _0x175beb=_0x639d9b;let _0x5b5bb6=async _0x3be5ef=>{const _0x20d033=_0x5037;(await this[_0x20d033(0x23d)][_0x20d033(0x2d9)](_0x3be5ef))[_0x20d033(0x32e)][_0x20d033(0x355)]((0x0,s['filter'])(_0x21e999=>_0x21e999['eventID']===e[_0x20d033(0x1b0)][_0x20d033(0x254)]),(0x0,s[_0x20d033(0x221)])(this[_0x20d033(0x219)]))[_0x20d033(0x196)](_0xb204a7=>{const _0x27cdca=_0x20d033;let {reason:_0x21c073}=_0xb204a7[_0x27cdca(0x398)];this[_0x27cdca(0x15e)][_0x27cdca(0x2f7)]({'id':'CLOSE_ROOM','data':_0x21c073}),this[_0x27cdca(0x2fa)]['updatePermissionPoint'](new r['WorkbookEditablePermission'](_0x3be5ef)['id'],!0x1),this[_0x27cdca(0x23d)][_0x27cdca(0x1d1)](_0x3be5ef);});};(0x0,i[_0x175beb(0x229)])(this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x175beb(0x1f5)]),this[_0x175beb(0x350)][_0x175beb(0x2c7)](t[_0x175beb(0x279)]['UNIVER_DOC']))[_0x175beb(0x355)]((0x0,s['map'])(_0x79f0d4=>_0x79f0d4['unit']['getUnitId']()),(0x0,s[_0x175beb(0x3aa)])(_0x2ad3e1=>!(0x0,t['isInternalEditorID'])(_0x2ad3e1)),(0x0,s['takeUntil'])(this[_0x175beb(0x219)]))['subscribe'](_0x2601b9=>{_0x5b5bb6(_0x2601b9);});}[_0x639d9b(0x271)](){const _0x1c2232=_0x639d9b;let _0x5e1ea3=async _0x8763f9=>{const _0x3dd04a=_0x5037;let _0x303d73=await this[_0x3dd04a(0x23d)]['requireSession'](_0x8763f9),_0x19e9c3=this[_0x3dd04a(0x22b)]['get'](r[_0x3dd04a(0x142)]);_0x303d73[_0x3dd04a(0x32e)][_0x3dd04a(0x355)]((0x0,s['filter'])(_0x4238c0=>_0x4238c0['eventID']===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s[_0x3dd04a(0x221)])(this[_0x3dd04a(0x219)]))[_0x3dd04a(0x196)](_0x353f38=>{const _0x65f5a2=_0x3dd04a;let {objectId:_0xad2dc3}=_0x353f38['data'];_0xad2dc3===_0x8763f9?_0x19e9c3[_0x65f5a2(0x1b9)](_0x8763f9):_0x19e9c3[_0x65f5a2(0x306)](_0x8763f9,_0xad2dc3);});};(0x0,i[_0x1c2232(0x229)])(this[_0x1c2232(0x350)][_0x1c2232(0x2c7)](t['UniverInstanceType'][_0x1c2232(0x1f5)]))[_0x1c2232(0x355)]((0x0,s[_0x1c2232(0x39c)])(_0x408d6b=>_0x408d6b[_0x1c2232(0x104)]['getUnitId']()),(0x0,s['filter'])(_0x553171=>!(0x0,t[_0x1c2232(0x193)])(_0x553171)),(0x0,s[_0x1c2232(0x221)])(this[_0x1c2232(0x219)]))[_0x1c2232(0x196)](_0x2c0025=>{_0x5e1ea3(_0x2c0025);});}};X=b([y(0x0,(0x0,t[_0x639d9b(0x11e)])(t['Injector'])),y(0x1,t['IUniverInstanceService']),y(0x2,t[_0x639d9b(0x2f2)]),y(0x3,(0x0,t[_0x639d9b(0x11e)])(H)),y(0x4,(0x0,t[_0x639d9b(0x11e)])(_))],X);let Z=class{constructor(_0x14d409,_0x23241f){const _0x14c7d6=_0x639d9b;this[_0x14c7d6(0x364)]=_0x14d409,this[_0x14c7d6(0x1b5)]=_0x23241f;}async[_0x639d9b(0x25d)](_0x1c0300,_0xcfe4f1){const _0xdd5c3f=_0x639d9b;var _0x464eaa;let {unitID:_0x36ca25,type:_0x5bc0c2,revision:_0x198332=0x0}=_0xcfe4f1,_0x90741f=this[_0xdd5c3f(0x1b2)]()+'/'+_0x5bc0c2+_0xdd5c3f(0x2b6)+_0x36ca25+'/rev/'+_0x198332,_0x413593=(await this[_0xdd5c3f(0x1b5)][_0xdd5c3f(0x1a8)](_0x90741f))[_0xdd5c3f(0x20e)],_0x40925b=(_0x464eaa=_0x413593['snapshot'])==null?void 0x0:_0x464eaa[_0xdd5c3f(0x3c8)];if(_0x40925b){let _0x4c3fa2=_0x40925b==null?void 0x0:_0x40925b[_0xdd5c3f(0x2cb)];_0x40925b['originalMeta']=e['textEncoder'][_0xdd5c3f(0x154)]((0x0,e['b64DecodeUnicode'])(_0x4c3fa2)),Object['entries'](_0x40925b['sheets'])[_0xdd5c3f(0x3c4)](([,_0x5d726f])=>{const _0x4c43c6=_0xdd5c3f;let _0x64461e=_0x5d726f['originalMeta'];_0x5d726f[_0x4c43c6(0x2cb)]=e['textEncoder'][_0x4c43c6(0x154)]((0x0,e[_0x4c43c6(0x180)])(_0x64461e));});}return _0x413593;}async[_0x639d9b(0x372)](_0x19aca1,_0x2b8ed5){const _0x3fcae9=_0x639d9b;let {unitID:_0x15ef6a,type:_0x150f57,blockID:_0x318d69}=_0x2b8ed5,_0x2d68a9=this[_0x3fcae9(0x34a)]()+'/'+_0x150f57+'/unit/'+_0x15ef6a+_0x3fcae9(0x34f)+_0x318d69;return(await this[_0x3fcae9(0x1b5)][_0x3fcae9(0x1a8)](_0x2d68a9))['body'];}async[_0x639d9b(0x2ab)](_0x43376c,_0x5e6505){const _0x251eb3=_0x639d9b;let {unitID:_0xc53744,type:_0x276dad,blockID:_0x2848f7}=_0x5e6505,_0x42b70c=this[_0x251eb3(0x34a)]()+_0x251eb3(0x34f)+_0x276dad+'/unit/'+_0xc53744+_0x251eb3(0x34f)+_0x2848f7;return(await this[_0x251eb3(0x1b5)][_0x251eb3(0x1a8)](_0x42b70c))['body'];}async[_0x639d9b(0x258)](_0x3cee26,_0x14a58a){const _0x5eaeac=_0x639d9b;let {unitID:_0x259be1,type:_0x3a53bd,from:_0x38824b,to:_0x166a34}=_0x14a58a,_0x31c3a8=this['_getAPIPrefix']()+'/'+_0x3a53bd+_0x5eaeac(0x2b6)+_0x259be1+'/fetchmissing?from='+_0x38824b+_0x5eaeac(0x3a8)+_0x166a34;return(await this['_httpService'][_0x5eaeac(0x1a8)](_0x31c3a8))[_0x5eaeac(0x20e)];}[_0x639d9b(0x1b2)](){const _0xe4feab=_0x639d9b;var _0x5f34c7;return(_0x5f34c7=this[_0xe4feab(0x364)][_0xe4feab(0x114)]('SNAPSHOT_URL_KEY'))==null?this[_0xe4feab(0x34a)]():_0x5f34c7;}['_getAPIPrefix'](){const _0x8b9d88=_0x639d9b;var _0x19c3fe;let _0x43c7ac=this[_0x8b9d88(0x364)][_0x8b9d88(0x114)](E);return(_0x19c3fe=_0x43c7ac==null?void 0x0:_0x43c7ac[_0x8b9d88(0x143)])==null?'/universer-api/snapshot':_0x19c3fe;}async[_0x639d9b(0x12a)](_0x435284,_0x383618){const _0x4e3565=_0x639d9b;let _0x5334d6=_0x4e3565(0x328)+_0x383618['type']+_0x4e3565(0x2b6)+_0x383618['unitID']+'/resources';return(await this[_0x4e3565(0x1b5)][_0x4e3565(0x1a8)](_0x5334d6,{'params':{'resourceId':JSON[_0x4e3565(0x139)](_0x383618['resourceIDs'])}}))[_0x4e3565(0x20e)];}[_0x639d9b(0x301)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x639d9b(0x293)](){const _0x1eca8e=_0x639d9b;throw Error(_0x1eca8e(0x304));}['saveSheetBlock'](){const _0xf8de7e=_0x639d9b;throw Error(_0xf8de7e(0x304));}[_0x639d9b(0x2d4)](){const _0x1181ef=_0x639d9b;throw Error(_0x1181ef(0x304));}[_0x639d9b(0x1f2)](){const _0x571362=_0x639d9b;throw Error(_0x571362(0x304));}[_0x639d9b(0x243)](){const _0x309658=_0x639d9b;throw Error(_0x309658(0x304));}};Z=b([y(0x0,t[_0x639d9b(0x209)]),y(0x1,(0x0,t['Inject'])(c[_0x639d9b(0x344)]))],Z);let Q=class extends t[_0x639d9b(0x2d8)]{constructor(_0x1b9a7f,_0x5e33de,_0x307ff0,_0x1e24a6,_0xe45b21){const _0x3953aa=_0x639d9b;super(_0x1b9a7f,_0x5e33de,_0x307ff0),this['_transformService']=_0x1e24a6,this[_0x3953aa(0x353)]=_0xe45b21;}[_0x639d9b(0x2b8)](_0x2e5a0d,_0x57d721){const _0xeaea70=_0x639d9b;let _0x4450b8=this[_0xeaea70(0x31f)](_0x2e5a0d);if(_0x4450b8)try{let _0x70830b=this[_0xeaea70(0x2a4)](_0x4450b8,_0x57d721);this[_0xeaea70(0x1b4)](_0x2e5a0d,_0x70830b);}catch(_0x2a0d19){this[_0xeaea70(0x353)][_0xeaea70(0x36e)](_0xeaea70(0x1c7),_0x2a0d19),this[_0xeaea70(0x106)](_0x2e5a0d);}let _0x25917a=this[_0xeaea70(0x272)](_0x2e5a0d);if(_0x25917a)try{let _0x4f5c3d=this[_0xeaea70(0x2a4)](_0x25917a,_0x57d721);this['_substituteRedoStack'](_0x2e5a0d,_0x4f5c3d);}catch(_0x48935a){this[_0xeaea70(0x353)][_0xeaea70(0x36e)](_0x48935a),this[_0xeaea70(0x22f)](_0x2e5a0d);}}[_0x639d9b(0x106)](_0x2f77f0){const _0x53a936=_0x639d9b;let _0x43cf1c=this[_0x53a936(0x31f)](_0x2f77f0);_0x43cf1c&&(_0x43cf1c['length']=0x0,this[_0x53a936(0x239)]());}[_0x639d9b(0x22f)](_0xb03da9){const _0x4412f6=_0x639d9b;let _0x3b48be=this[_0x4412f6(0x272)](_0xb03da9);_0x3b48be&&(_0x3b48be['length']=0x0,this['_updateStatus']());}[_0x639d9b(0x1b4)](_0x4b0f46,_0x3b6ac1){const _0x172210=_0x639d9b;this['_undoStacks'][_0x172210(0x29c)](_0x4b0f46,_0x3b6ac1),this[_0x172210(0x239)]();}[_0x639d9b(0x397)](_0x2b61ad,_0x53346b){const _0x4c59ce=_0x639d9b;this['_redoStacks'][_0x4c59ce(0x29c)](_0x2b61ad,_0x53346b),this[_0x4c59ce(0x239)]();}[_0x639d9b(0x2a4)](_0x44f1f7,_0x3081f0){const _0x550c1=_0x639d9b;let _0x34f794=[],_0x506596=_0x3081f0,_0x545b31=_0x3081f0;for(let _0x43055f=_0x44f1f7[_0x550c1(0x346)]-0x1;_0x43055f>=0x0;_0x43055f--){let {unitID:_0x2e8a9e,undoMutations:_0x107b23,redoMutations:_0x106ca2}=_0x44f1f7[_0x43055f],_0xd645c7=this['_transformService'][_0x550c1(0x2ce)](_0x506596,_0x107b23),_0x3cde92=this[_0x550c1(0x297)][_0x550c1(0x2ce)](_0x545b31,_0x106ca2);if((0x0,e[_0x550c1(0x3dc)])(_0xd645c7)||(0x0,e[_0x550c1(0x3dc)])(_0x3cde92)){this[_0x550c1(0x353)][_0x550c1(0x36e)](_0x550c1(0x1c7),'transformStack\x20failed!',_0xd645c7,_0x3cde92);break;}_0x506596=_0xd645c7[_0x550c1(0x294)],_0x545b31=_0x3cde92['c1Prime'],_0x34f794[_0x550c1(0x1a4)]({'unitID':_0x2e8a9e,'undoMutations':_0xd645c7[_0x550c1(0x24a)],'redoMutations':_0x3cde92[_0x550c1(0x24a)]});}return _0x34f794[_0x550c1(0x1de)]();}};Q=b([y(0x0,t['IUniverInstanceService']),y(0x1,t[_0x639d9b(0x2ec)]),y(0x2,t[_0x639d9b(0x347)]),y(0x3,e['ITransformService']),y(0x4,t['ILogService'])],Q);let $=class extends t[_0x639d9b(0x2b5)]{constructor(_0x28ac52={},_0x448ac7,_0x61d58d,_0x35d0bb){const _0x2630ee=_0x639d9b;super(),this[_0x2630ee(0x10a)]=_0x28ac52,this[_0x2630ee(0x353)]=_0x448ac7,this['_injector']=_0x61d58d,this[_0x2630ee(0x364)]=_0x35d0bb;let {..._0x360651}=(0x0,t[_0x2630ee(0x229)])({},ue,_0x28ac52);if(!_0x360651[_0x2630ee(0x327)])throw Error(_0x2630ee(0x265));this[_0x2630ee(0x10a)]=_0x360651,this[_0x2630ee(0x364)]['setConfig'](E,_0x360651);}[_0x639d9b(0x263)](){const _0x4f7e48=_0x639d9b;this['_registerDependencies'](),this[_0x4f7e48(0x28d)]();}[_0x639d9b(0x1c9)](){const _0x323073=_0x639d9b;var _0x4f1170,_0x2fca0d;this['_injector'][_0x323073(0x1dc)](t['IUndoRedoService'])&&this[_0x323073(0x353)][_0x323073(0x36e)]('[UniverCollaborationClientPlugin]',_0x323073(0x23a));let _0x17aec7=(0x0,t[_0x323073(0x22e)])([[t[_0x323073(0x186)],{'useClass':Q}],[H],[x],[w],[W],[K],[v],[X],[_],[q],[B,{'useClass':this[_0x323073(0x10a)][_0x323073(0x327)]}],[e[_0x323073(0x129)],{'useClass':Z}],[t[_0x323073(0x2f4)],{'useClass':G}],[u[_0x323073(0x29b)],{'useClass':J}],[t[_0x323073(0x34e)],{'useClass':Y}],[U],[De]],(_0x4f1170=this[_0x323073(0x10a)])==null?void 0x0:_0x4f1170[_0x323073(0x3ab)]);if(!((_0x2fca0d=this[_0x323073(0x10a)])!=null&&_0x2fca0d[_0x323073(0x226)])){let _0x2c08ec=_0x17aec7['findIndex'](([_0x32d517])=>_0x32d517===T);_0x2c08ec!==-0x1&&_0x17aec7[_0x323073(0x202)](_0x2c08ec,0x1);}(0x0,t[_0x323073(0x349)])(this[_0x323073(0x22b)],_0x17aec7);}[_0x639d9b(0x28d)](){const _0x3aa78d=_0x639d9b;var _0x3f46ab,_0x3fe9fd;if(this[_0x3aa78d(0x22b)][_0x3aa78d(0x1a8)](c[_0x3aa78d(0x344)])[_0x3aa78d(0x175)]({'priority':0x14,'interceptor':(0x0,c['ThresholdInterceptorFactory'])({'maxParallel':0x6})}),!((_0x3f46ab=this[_0x3aa78d(0x10a)])!=null&&_0x3f46ab[_0x3aa78d(0x2af)])){var _0x569038;(_0x569038=this[_0x3aa78d(0x22b)]['get'](C,t[_0x3aa78d(0x2ae)]['OPTIONAL']))==null||_0x569038[_0x3aa78d(0x276)]();}(_0x3fe9fd=this[_0x3aa78d(0x10a)])!=null&&_0x3fe9fd[_0x3aa78d(0x2b3)]&&(0x0,t[_0x3aa78d(0x2bb)])(this[_0x3aa78d(0x22b)],[[W]]),(0x0,t[_0x3aa78d(0x2bb)])(this['_injector'],[[K],[U],[X]]);}};g($,'pluginName',_0x639d9b(0x212)),g($,_0x639d9b(0x1a2),Te),g($,_0x639d9b(0x21f),Ee),$=b([(0x0,t[_0x639d9b(0x122)])(l[_0x639d9b(0x2c5)],e[_0x639d9b(0x2c6)],c[_0x639d9b(0x138)]),y(0x1,t[_0x639d9b(0x1b7)]),y(0x2,(0x0,t[_0x639d9b(0x11e)])(t[_0x639d9b(0x30f)])),y(0x3,t['IConfigService'])],$),Object['defineProperty'](exports,_0x639d9b(0x176),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x12e),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,_0x639d9b(0x16d),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x639d9b(0x36d)]=E,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x3a4),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x639d9b(0x2db),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x639d9b(0x3ba)](exports,'CollaborationImageIoService',{'enumerable':!0x0,'get':function(){return J;}}),Object['defineProperty'](exports,_0x639d9b(0x354),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x639d9b(0x3ba)](exports,'CollaborationSessionService',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x17c),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x639d9b(0x3bf)]=_e,exports[_0x639d9b(0x3c2)]=re,exports[_0x639d9b(0x3b4)]=_,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x2ad),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x639d9b(0x370)]=v,Object['defineProperty'](exports,_0x639d9b(0x30a),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x639d9b(0x339)]=p,exports[_0x639d9b(0x198)]=_0x639d9b(0x1a5),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x639d9b(0x2fb),Object[_0x639d9b(0x3ba)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x2f3),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x3c5),{'enumerable':!0x0,'get':function(){return I;}}),exports['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',exports[_0x639d9b(0x236)]=_0x639d9b(0x111),exports[_0x639d9b(0x280)]=B,exports[_0x639d9b(0x222)]=C,exports[_0x639d9b(0x2b9)]=xe,exports[_0x639d9b(0x1e1)]=T,exports[_0x639d9b(0x177)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']=_0x639d9b(0x177),Object['defineProperty'](exports,_0x639d9b(0x28b),{'enumerable':!0x0,'get':function(){return x;}}),Object['defineProperty'](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x639d9b(0x1d6),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x33d),{'enumerable':!0x0,'get':function(){return j;}}),exports[_0x639d9b(0x20f)]='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x639d9b(0x37f)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x639d9b(0x289)]=ae,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x333),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,_0x639d9b(0x190),{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x26c),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x2ea),{'enumerable':!0x0,'get':function(){return A;}}),exports['UnitStatus']=le,Object[_0x639d9b(0x3ba)](exports,_0x639d9b(0x1b6),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x639d9b(0x117)]=Se,exports[_0x639d9b(0x255)]=se,exports[_0x639d9b(0x1dd)]=Ce;
|