@univerjs-pro/collaboration-client 1.0.0-alpha.4 → 1.0.0-alpha.6
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/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.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/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.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/id-ID.js +1 -1
- package/lib/es/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.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-HK.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/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.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/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.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-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/de-DE.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/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.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/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.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-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +14 -14
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x85662d=_0x342d;(function(_0x354854,_0x1b6066){const _0x5b9b99=_0x342d,_0x7577be=_0x354854();while(!![]){try{const _0x5d5748=-parseInt(_0x5b9b99(0x28f))/0x1+parseInt(_0x5b9b99(0x32f))/0x2+parseInt(_0x5b9b99(0x39c))/0x3*(parseInt(_0x5b9b99(0x3fe))/0x4)+-parseInt(_0x5b9b99(0x372))/0x5+parseInt(_0x5b9b99(0x41a))/0x6+-parseInt(_0x5b9b99(0x472))/0x7*(-parseInt(_0x5b9b99(0x3cd))/0x8)+parseInt(_0x5b9b99(0x31c))/0x9*(-parseInt(_0x5b9b99(0x2b4))/0xa);if(_0x5d5748===_0x1b6066)break;else _0x7577be['push'](_0x7577be['shift']());}catch(_0x451f5b){_0x7577be['push'](_0x7577be['shift']());}}}(_0x1d52,0xa8362),Object['defineProperty'](exports,Symbol[_0x85662d(0x345)],{'value':_0x85662d(0x4cd)}));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-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m='collaboration-client.config',ee={},te=_0x85662d(0x38b),ne=0x4e20;function re(_0x24db35){const _0x3d6c3f=_0x85662d;return JSON['stringify'](_0x24db35)[_0x3d6c3f(0x45a)];}function h(_0x5a7a71){'@babel/helpers - typeof';const _0x25861b=_0x85662d;return h=typeof Symbol==_0x25861b(0x297)&&typeof Symbol[_0x25861b(0x300)]=='symbol'?function(_0x2c3fee){return typeof _0x2c3fee;}:function(_0x1a2322){const _0x4e2096=_0x25861b;return _0x1a2322&&typeof Symbol==_0x4e2096(0x297)&&_0x1a2322[_0x4e2096(0x4f8)]===Symbol&&_0x1a2322!==Symbol[_0x4e2096(0x442)]?_0x4e2096(0x433):typeof _0x1a2322;},h(_0x5a7a71);}function ie(_0x1c95e5,_0x48d91a){const _0x11365d=_0x85662d;if(h(_0x1c95e5)!=_0x11365d(0x316)||!_0x1c95e5)return _0x1c95e5;var _0x1d56fb=_0x1c95e5[Symbol[_0x11365d(0x403)]];if(_0x1d56fb!==void 0x0){var _0x2ffe91=_0x1d56fb[_0x11365d(0x380)](_0x1c95e5,_0x48d91a||_0x11365d(0x1e8));if(h(_0x2ffe91)!='object')return _0x2ffe91;throw TypeError(_0x11365d(0x466));}return(_0x48d91a==='string'?String:Number)(_0x1c95e5);}function ae(_0xf01706){const _0x1d9b91=_0x85662d;var _0x4707d5=ie(_0xf01706,_0x1d9b91(0x1dc));return h(_0x4707d5)=='symbol'?_0x4707d5:_0x4707d5+'';}function g(_0x1bd518,_0x1ea489,_0x1e55af){const _0x5db8ec=_0x85662d;return(_0x1ea489=ae(_0x1ea489))in _0x1bd518?Object[_0x5db8ec(0x4bf)](_0x1bd518,_0x1ea489,{'value':_0x1e55af,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd518[_0x1ea489]=_0x1e55af,_0x1bd518;}let oe=function(_0x20f15e){const _0xd4d47=_0x85662d;return _0x20f15e[_0xd4d47(0x4c4)]='OTHER_CLIENT_EDITING',_0x20f15e[_0xd4d47(0x2a7)]=_0xd4d47(0x2a7),_0x20f15e[_0xd4d47(0x374)]=_0xd4d47(0x374),_0x20f15e[_0xd4d47(0x446)]=_0xd4d47(0x446),_0x20f15e[_0xd4d47(0x1c9)]='JOIN_ROOM_FAILED',_0x20f15e[_0xd4d47(0x3e3)]=_0xd4d47(0x3e3),_0x20f15e[_0xd4d47(0x22f)]=_0xd4d47(0x22f),_0x20f15e[_0xd4d47(0x2a2)]=_0xd4d47(0x2a2),_0x20f15e;}({});var _=class{constructor(){const _0x7c36c2=_0x85662d;g(this,'_event$',new i[(_0x7c36c2(0x439))]()),g(this,_0x7c36c2(0x25d),this[_0x7c36c2(0x289)][_0x7c36c2(0x2dd)]());}[_0x85662d(0x3ae)](_0x5e5c7b){this['_event$']['next'](_0x5e5c7b);}},se=class{constructor(){const _0x53b488=_0x85662d;g(this,_0x53b488(0x215),new i[(_0x53b488(0x439))]()),g(this,_0x53b488(0x3e8),this[_0x53b488(0x215)]['asObservable']());}['onCommentUpdate'](_0x4f2871){const _0x305db6=_0x85662d;this[_0x305db6(0x215)][_0x305db6(0x49a)](_0x4f2871);}};function v(_0x5bfead,_0x5ba5b5){return function(_0x2091ec,_0x1d5600){_0x5ba5b5(_0x2091ec,_0x1d5600,_0x5bfead);};}function y(_0x5a92f0,_0x3d07b0,_0x3e95b4,_0x1e9a8f){const _0x2fbf8e=_0x85662d;var _0x508c23=arguments[_0x2fbf8e(0x45a)],_0x4c1295=_0x508c23<0x3?_0x3d07b0:_0x1e9a8f===null?_0x1e9a8f=Object[_0x2fbf8e(0x4ac)](_0x3d07b0,_0x3e95b4):_0x1e9a8f,_0x5771a6;if(typeof Reflect==_0x2fbf8e(0x316)&&typeof Reflect[_0x2fbf8e(0x3a6)]==_0x2fbf8e(0x297))_0x4c1295=Reflect[_0x2fbf8e(0x3a6)](_0x5a92f0,_0x3d07b0,_0x3e95b4,_0x1e9a8f);else{for(var _0x14ed8d=_0x5a92f0['length']-0x1;_0x14ed8d>=0x0;_0x14ed8d--)(_0x5771a6=_0x5a92f0[_0x14ed8d])&&(_0x4c1295=(_0x508c23<0x3?_0x5771a6(_0x4c1295):_0x508c23>0x3?_0x5771a6(_0x3d07b0,_0x3e95b4,_0x4c1295):_0x5771a6(_0x3d07b0,_0x3e95b4))||_0x4c1295);}return _0x508c23>0x3&&_0x4c1295&&Object[_0x2fbf8e(0x4bf)](_0x3d07b0,_0x3e95b4,_0x4c1295),_0x4c1295;}let b=class extends t[_0x85662d(0x304)]{constructor(_0x2eaea4,_0x21c400){const _0x4f7c9e=_0x85662d;super(),this['_univerInstanceService']=_0x2eaea4,this[_0x4f7c9e(0x2f3)]=_0x21c400,g(this,'_roomMembers',new Map()),g(this,_0x4f7c9e(0x2ac),new i[(_0x4f7c9e(0x439))]()),this[_0x4f7c9e(0x221)]((0x0,i[_0x4f7c9e(0x22e)])(this[_0x4f7c9e(0x22a)][_0x4f7c9e(0x4b8)](t[_0x4f7c9e(0x378)]['UNIVER_SHEET'])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x4e5a0e=>_0x4e5a0e[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x39f)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0xf5fc77=>_0xf5fc77[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x4b5)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x16111a=>_0x16111a[_0x4f7c9e(0x3b9)]())),this[_0x4f7c9e(0x22a)][_0x4f7c9e(0x4b8)](t[_0x4f7c9e(0x378)][_0x4f7c9e(0x440)])[_0x4f7c9e(0x4bd)]((0x0,s[_0x4f7c9e(0x3fc)])(_0x31d578=>_0x31d578['getUnitId']())))['subscribe'](_0x396b7a=>this[_0x4f7c9e(0x41f)](_0x396b7a)));}[_0x85662d(0x3e6)](_0x349c05){const _0x54433b=_0x85662d;return this['_roomMembers'][_0x54433b(0x4ca)](_0x349c05)?(0x0,i['of'])(this[_0x54433b(0x35f)][_0x54433b(0x39b)](_0x349c05)):this['_roomCreated$'][_0x54433b(0x4bd)]((0x0,s[_0x54433b(0x3fc)])(_0x2ec3ac=>{const _0xe8e7cc=_0x54433b;if(_0x2ec3ac===_0x349c05)return this[_0xe8e7cc(0x35f)][_0xe8e7cc(0x39b)](_0x2ec3ac);}));}[_0x85662d(0x3d2)](_0x210e79){const _0x19b25f=_0x85662d;this[_0x19b25f(0x2f3)][_0x19b25f(0x3d2)](_0x210e79);}[_0x85662d(0x4f7)](){const _0x5b9620=_0x85662d;return this[_0x5b9620(0x2f3)]['getCurrentUser']();}['updateMember'](_0x4dcf4d,_0xa373c5){const _0x5a7588=_0x85662d;let _0x8b4912=this['_roomMembers'][_0x5a7588(0x39b)](_0x4dcf4d);_0x8b4912||(_0x8b4912=new ce(),this[_0x5a7588(0x35f)][_0x5a7588(0x43f)](_0x4dcf4d,_0x8b4912),this[_0x5a7588(0x2ac)][_0x5a7588(0x49a)](_0x4dcf4d)),_0x8b4912['updateMember'](_0xa373c5);}['removeMember'](_0x5b4a29,_0x3aa0c4){const _0x300c82=_0x85662d;let _0x93c9d3=this[_0x300c82(0x35f)][_0x300c82(0x39b)](_0x5b4a29);_0x93c9d3&&_0x93c9d3[_0x300c82(0x3e0)](_0x3aa0c4);}[_0x85662d(0x4de)](_0x1774e2){const _0x194d95=_0x85662d;return this[_0x194d95(0x35f)]['get'](_0x1774e2);}[_0x85662d(0x3c8)](_0x2f0c3c,_0xc4fc1){const _0x53e1f6=_0x85662d;let _0x55992b=this[_0x53e1f6(0x35f)][_0x53e1f6(0x39b)](_0x2f0c3c);if(_0x55992b)return _0x55992b[_0x53e1f6(0x3c8)](_0xc4fc1);}[_0x85662d(0x41f)](_0x264c0c){const _0x40d458=_0x85662d;let _0x28f7d2=this[_0x40d458(0x35f)]['get'](_0x264c0c);_0x28f7d2&&(_0x28f7d2['dispose'](),this[_0x40d458(0x35f)]['delete'](_0x264c0c));}['dispose'](){const _0x244602=_0x85662d;this[_0x244602(0x35f)]['forEach'](_0x3ff220=>_0x3ff220[_0x244602(0x469)]()),this[_0x244602(0x35f)][_0x244602(0x214)](),this[_0x244602(0x2ac)]['complete']();}};b=y([v(0x0,t['IUniverInstanceService']),v(0x1,(0x0,t['Inject'])(t[_0x85662d(0x43e)]))],b);var ce=class extends t[_0x85662d(0x304)]{constructor(..._0x4f28f0){const _0x17b095=_0x85662d;super(..._0x4f28f0),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x17b095(0x475))](this['_members'])),g(this,_0x17b095(0x213),this[_0x17b095(0x4d4)][_0x17b095(0x2dd)]());}['dispose'](){const _0x45a590=_0x85662d;this[_0x45a590(0x283)][_0x45a590(0x214)](),this['_members$'][_0x45a590(0x3ab)]();}[_0x85662d(0x23b)](_0x1f94ae){const _0x2637eb=_0x85662d;this[_0x2637eb(0x283)][_0x2637eb(0x43f)](_0x1f94ae['memberID'],_0x1f94ae),this[_0x2637eb(0x381)]();}[_0x85662d(0x3e0)](_0x542615){const _0x2be152=_0x85662d;this['_members'][_0x2be152(0x36e)](_0x542615),this['_emitMembers']();}[_0x85662d(0x3c8)](_0x36fafc){const _0x258bce=_0x85662d;return this[_0x258bce(0x283)][_0x258bce(0x39b)](_0x36fafc);}[_0x85662d(0x363)](){const _0xf44e0e=_0x85662d;return Array['from'](this[_0xf44e0e(0x283)][_0xf44e0e(0x28c)]());}[_0x85662d(0x381)](){const _0x452e68=_0x85662d;this['_members$'][_0x452e68(0x49a)](this['_members']);}};function le(_0x54b37b,_0x458aaa){const _0x6c6741=_0x85662d;if(de(_0x54b37b))return _0x458aaa;if(_0x458aaa['eventID']===e[_0x6c6741(0x3fb)][_0x6c6741(0x4c6)]){var _0x222952;let _0x4c8367=ge(_0x54b37b),_0x25fe97=_0x458aaa;return{..._0x25fe97,'data':{..._0x25fe97[_0x6c6741(0x28a)],'unitID':_0x54b37b[_0x6c6741(0x1f0)][_0x6c6741(0x420)],'unitType':(_0x222952=_0x54b37b[_0x6c6741(0x1f0)]['unitType'])==null?_0x25fe97[_0x6c6741(0x28a)][_0x6c6741(0x369)]:_0x222952,'changeset':_0x4c8367[_0x6c6741(0x253)](_0x25fe97['data']['changeset'],_e(_0x54b37b))}};}if(_0x458aaa[_0x6c6741(0x336)]===e[_0x6c6741(0x3fb)][_0x6c6741(0x415)]){var _0x3ebbf3;let _0x48840f=_0x458aaa;return{..._0x48840f,'data':{..._0x48840f['data'],'unitID':_0x54b37b[_0x6c6741(0x1f0)][_0x6c6741(0x420)],'unitType':(_0x3ebbf3=_0x54b37b['target']['unitType'])==null?_0x48840f['data'][_0x6c6741(0x369)]:_0x3ebbf3}};}return _0x458aaa;}function ue(_0x67a866,_0x3ce6a5){const _0x2d0496=_0x85662d;if(de(_0x67a866))return[_0x3ce6a5];switch(_0x3ce6a5[_0x2d0496(0x336)]){case e[_0x2d0496(0x3fb)][_0x2d0496(0x2ae)]:return[fe(_0x67a866,_0x3ce6a5)];case e[_0x2d0496(0x3fb)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x67a866,_0x3ce6a5)];case e[_0x2d0496(0x3fb)]['CHANGESET_SHOULD_RETRY']:return[pe(_0x67a866,_0x3ce6a5)];default:return[_0x3ce6a5];}}function de(_0xa9e9ec){const _0x26a648=_0x85662d;return _0xa9e9ec[_0x26a648(0x1f0)]['endpoint']==null&&_0xa9e9ec['target'][_0x26a648(0x420)]===_0xa9e9ec[_0x26a648(0x329)]&&!_0xa9e9ec['changeset'];}function fe(_0x4292bd,_0x3494cf){const _0x462c7f=_0x85662d;return{..._0x3494cf,'data':(0x0,e[_0x462c7f(0x1e0)])(he(_0x4292bd,(0x0,e[_0x462c7f(0x486)])(_0x3494cf[_0x462c7f(0x28a)])))};}function pe(_0x35cb33,_0x43a235){const _0x4bbe00=_0x85662d;return{..._0x43a235,'data':he(_0x35cb33,_0x43a235[_0x4bbe00(0x28a)])};}function me(_0x2ab5ab,_0xf792ad){const _0x25033f=_0x85662d;let _0x7e5c64=_0xf792ad[_0x25033f(0x28a)];return{..._0xf792ad,'data':{..._0x7e5c64,'changesets':_0x7e5c64[_0x25033f(0x251)]['map'](_0x3f34da=>(0x0,e['parseChangesetToProtocol'])(he(_0x2ab5ab,(0x0,e[_0x25033f(0x486)])(_0x3f34da))))}};}function he(_0x204f70,_0x35c46d){const _0x2c4345=_0x85662d;return ge(_0x204f70)[_0x2c4345(0x3be)](_0x35c46d,_e(_0x204f70));}function ge(_0x2b6eb0){const _0x3cb2ba=_0x85662d;if(!_0x2b6eb0[_0x3cb2ba(0x45c)])throw Error(_0x3cb2ba(0x4e5));return _0x2b6eb0[_0x3cb2ba(0x45c)];}function _e(_0x41bb38){const _0x1b7e77=_0x85662d;return{'localUnitId':_0x41bb38[_0x1b7e77(0x329)],'unitType':_0x41bb38['unitType'],'target':_0x41bb38['target']};}let ve=function(_0x579976){const _0x5c5f88=_0x85662d;return _0x579976[_0x579976[_0x5c5f88(0x46d)]=0x0]=_0x5c5f88(0x46d),_0x579976[_0x579976[_0x5c5f88(0x3b3)]=0x1]=_0x5c5f88(0x3b3),_0x579976[_0x579976[_0x5c5f88(0x4c0)]=0x2]=_0x5c5f88(0x4c0),_0x579976[_0x579976['ONLINE']=0x3]=_0x5c5f88(0x389),_0x579976;}({});function _0x342d(_0x5e7c8a,_0x37e7a8){_0x5e7c8a=_0x5e7c8a-0x1c8;const _0x1d52f7=_0x1d52();let _0x342d5f=_0x1d52f7[_0x5e7c8a];return _0x342d5f;}const ye={[a[_0x85662d(0x25c)][_0x85662d(0x2e1)]]:_0x85662d(0x322),[a[_0x85662d(0x25c)][_0x85662d(0x1f2)]]:_0x85662d(0x1de),[a[_0x85662d(0x25c)][_0x85662d(0x3b4)]]:_0x85662d(0x375),[a['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x85662d(0x2cb),[a[_0x85662d(0x25c)][_0x85662d(0x26e)]]:'session.room-cnt-exceeds'};let x=class extends t[_0x85662d(0x42c)]{get[_0x85662d(0x4b6)](){return this['_sessionStatus$']['getValue']();}constructor(_0x14e86b,_0x5e97c0,_0x1283bd,_0x4f71c7,_0x2a3137,_0x3e9456,_0x3c3e17,_0x13975b){const _0x270c16=_0x85662d;super(),this[_0x270c16(0x3ce)]=_0x14e86b,this[_0x270c16(0x29f)]=_0x1283bd,this['_configService']=_0x4f71c7,this[_0x270c16(0x2fe)]=_0x2a3137,this[_0x270c16(0x3f6)]=_0x3e9456,this[_0x270c16(0x46e)]=_0x3c3e17,this[_0x270c16(0x4da)]=_0x13975b,g(this,_0x270c16(0x202),new i[(_0x270c16(0x475))](0x0)),g(this,_0x270c16(0x332),this[_0x270c16(0x202)]['asObservable']()),g(this,'_event$',new i['Subject']()),g(this,_0x270c16(0x25d),this[_0x270c16(0x289)][_0x270c16(0x2dd)]()),g(this,_0x270c16(0x1e5),void 0x0),g(this,_0x270c16(0x217),void 0x0),g(this,_0x270c16(0x4d8),void 0x0),g(this,_0x270c16(0x2d9),!0x1),g(this,_0x270c16(0x3dc),null),this[_0x270c16(0x2d9)]=!!this[_0x270c16(0x4da)],_0x5e97c0[_0x270c16(0x4bd)]((0x0,i[_0x270c16(0x2fc)])(this[_0x270c16(0x3df)]))[_0x270c16(0x46c)](_0x424b02=>{const _0x5eebd4=_0x270c16;if(_0x424b02!==void 0x0){if(this[_0x5eebd4(0x1e5)]=_0x424b02,_0x424b02)this['_joinRoom'](_0x424b02),this[_0x5eebd4(0x217)]=_0x424b02[_0x5eebd4(0x21b)]['subscribe'](_0x2bea40=>{const _0x923a93=_0x5eebd4;_0x2bea40[_0x923a93(0x349)]===this[_0x923a93(0x3ce)]['target'][_0x923a93(0x420)]&&this[_0x923a93(0x30b)](_0x2bea40);});else{var _0x1fb32b;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x5eebd4(0x202)][_0x5eebd4(0x49a)](0x2),(_0x1fb32b=this[_0x5eebd4(0x217)])==null||_0x1fb32b[_0x5eebd4(0x269)](),this[_0x5eebd4(0x217)]=null;}}});}[_0x85662d(0x4b7)](){const _0x4a49f2=_0x85662d;var _0x15707c,_0x5bf16f;return(_0x15707c=(_0x5bf16f=this['_socket'])==null?void 0x0:_0x5bf16f[_0x4a49f2(0x4e4)])==null?null:_0x15707c;}[_0x85662d(0x469)](){const _0x21484b=_0x85662d;super['dispose'](),this[_0x21484b(0x418)](),this[_0x21484b(0x3df)][_0x21484b(0x49a)](),this['dispose$']['complete']();}[_0x85662d(0x418)](){const _0x40f522=_0x85662d;var _0x3f8ef5;this[_0x40f522(0x2af)](),(_0x3f8ef5=this[_0x40f522(0x1e5)])==null||_0x3f8ef5[_0x40f522(0x48b)]({'cmd':a[_0x40f522(0x44a)]['LEAVE'],'data':{'roomID':this[_0x40f522(0x3ce)][_0x40f522(0x1f0)][_0x40f522(0x420)]}}),this[_0x40f522(0x289)][_0x40f522(0x3ab)](),this['_sessionStatus$'][_0x40f522(0x3ab)]();}[_0x85662d(0x30b)](_0x3f6e80){const _0x1fe370=_0x85662d;_0x3f6e80['cmd']===a[_0x1fe370(0x44a)][_0x1fe370(0x1e7)]?this['_onJoinRoomEvent'](_0x3f6e80):_0x3f6e80[_0x1fe370(0x348)]===a[_0x1fe370(0x44a)]['RECV']&&this[_0x1fe370(0x33c)](_0x3f6e80);}['_joinRoom'](_0x50b030){const _0x1a3f35=_0x85662d;this[_0x1a3f35(0x202)]['next'](0x1),_0x50b030[_0x1a3f35(0x48b)]({'cmd':a[_0x1a3f35(0x44a)][_0x1a3f35(0x1e7)],'routeKey':this['_identity'][_0x1a3f35(0x1f0)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x1a3f35(0x1f0)][_0x1a3f35(0x420)]}]}});}['_onJoinRoomEvent'](_0x5e0b27){const _0x53a725=_0x85662d;var _0x4da6cc;if(_0x5e0b27['code']in ye){this[_0x53a725(0x46e)][_0x53a725(0x3ae)]({'id':_0x53a725(0x1c9),'data':ye[_0x5e0b27[_0x53a725(0x1d4)]]}),this[_0x53a725(0x202)]['next'](0x2);return;}this[_0x53a725(0x202)][_0x53a725(0x49a)](0x3);let _0x11bb27=(_0x4da6cc=_0x5e0b27['data'][_0x53a725(0x4d2)][this[_0x53a725(0x3ce)][_0x53a725(0x1f0)][_0x53a725(0x420)]])==null?void 0x0:_0x4da6cc[_0x53a725(0x49d)];_0x11bb27&&_0x11bb27[_0x53a725(0x30f)](_0x475390=>this[_0x53a725(0x2fe)]['updateMember'](this[_0x53a725(0x3ce)][_0x53a725(0x329)],_0x475390));}[_0x85662d(0x33c)](_0x16c3f1){const _0x37c573=_0x85662d;try{let _0x77342f=ue(this[_0x37c573(0x3ce)],_0x16c3f1[_0x37c573(0x28a)]);for(let _0xde405a of _0x77342f)switch(_0xde405a[_0x37c573(0x336)]){case e[_0x37c573(0x3fb)]['USERS_ENTER']:this[_0x37c573(0x44d)](_0xde405a),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x2fb)]:this[_0x37c573(0x1e2)](_0xde405a),this[_0x37c573(0x289)]['next'](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x410)]:case e[_0x37c573(0x3fb)]['CHANGESET_SHOULD_RETRY']:this[_0x37c573(0x260)](),this[_0x37c573(0x480)](),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x4c3)]:this[_0x37c573(0x29f)][_0x37c573(0x3cc)]('save\x20fail\x20reason\x20is\x20'+JSON[_0x37c573(0x407)](_0xde405a)),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;case e[_0x37c573(0x3fb)][_0x37c573(0x267)]:this[_0x37c573(0x3f6)][_0x37c573(0x3ca)](_0xde405a['data']),this[_0x37c573(0x289)][_0x37c573(0x49a)](_0xde405a);break;default:this[_0x37c573(0x289)]['next'](_0xde405a);}}catch(_0x2f5627){this[_0x37c573(0x29f)][_0x37c573(0x3cc)](_0x2f5627,_0x16c3f1);}}[_0x85662d(0x44d)](_0x5223f9){const _0x597338=_0x85662d;this['_memberService'][_0x597338(0x23b)](this['_identity'][_0x597338(0x329)],_0x5223f9[_0x597338(0x28a)]);}[_0x85662d(0x1e2)](_0x37c003){const _0x44265b=_0x85662d;this[_0x44265b(0x2fe)][_0x44265b(0x3e0)](this[_0x44265b(0x3ce)][_0x44265b(0x329)],_0x37c003[_0x44265b(0x28a)][_0x44265b(0x4e4)]);}async[_0x85662d(0x48b)](_0x2bfaa3,_0xbf53ee){const _0x5dd9ad=_0x85662d;if(this['sessionStatus']!==0x3||!this[_0x5dd9ad(0x1e5)])throw Error(_0x5dd9ad(0x2c1));try{let _0x5a2874=le(this['_identity'],_0x2bfaa3);_0x5a2874['eventID']===e[_0x5dd9ad(0x3fb)][_0x5dd9ad(0x4c6)]&&(this[_0x5dd9ad(0x422)](),this[_0x5dd9ad(0x3b0)](_0x5a2874)),this[_0x5dd9ad(0x1e5)]['send']({'cmd':a[_0x5dd9ad(0x44a)][_0x5dd9ad(0x205)],'routeKey':this[_0x5dd9ad(0x3ce)]['target'][_0x5dd9ad(0x420)],'routeType':'','data':_0x5a2874});}catch(_0x3046bf){this['_logService'][_0x5dd9ad(0x3cc)](_0x3046bf);}}[_0x85662d(0x422)](){const _0x569e76=_0x85662d;var _0x4f35c8;this[_0x569e76(0x4d8)]=setTimeout(()=>{const _0x4bc15b=_0x569e76;this[_0x4bc15b(0x4d8)]=null,this[_0x4bc15b(0x46e)]['emitEvent']({'id':_0x4bc15b(0x2a2)});},(_0x4f35c8=this[_0x569e76(0x377)][_0x569e76(0x262)](_0x569e76(0x258)))==null?ne:_0x4f35c8);}[_0x85662d(0x480)](){const _0x5b8e1d=_0x85662d;this['_collaborationTimeoutTimer']&&(clearTimeout(this[_0x5b8e1d(0x4d8)]),this[_0x5b8e1d(0x4d8)]=null);}['_startTelemetryCollaborationNewChangeset'](_0x177a6c){const _0x3ef665=_0x85662d;if(!this['_shouldReportTelemetry'])return;let {data:_0xb141e0}=_0x177a6c,{unitID:_0x2d969b,changeset:_0x5dd049}=_0xb141e0,{mutations:_0x13ad5d,type:_0x26ecbc}=_0x5dd049;this[_0x3ef665(0x3dc)]={'unitId':_0x2d969b,'type':_0x26ecbc,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':re(_0x13ad5d)};}[_0x85662d(0x260)](){const _0x3b6d08=_0x85662d;if(this[_0x3b6d08(0x2d9)]){if(!this[_0x3b6d08(0x3dc)]){this[_0x3b6d08(0x29f)][_0x3b6d08(0x3cc)]('[CollaborationSession]',_0x3b6d08(0x492));return;}this[_0x3b6d08(0x3dc)][_0x3b6d08(0x4b2)]=performance[_0x3b6d08(0x1d2)](),this['_telemetryInfo'][_0x3b6d08(0x1f6)]=this[_0x3b6d08(0x3dc)][_0x3b6d08(0x4b2)]-this['_telemetryInfo'][_0x3b6d08(0x47a)],this[_0x3b6d08(0x4da)][_0x3b6d08(0x219)](_0x3b6d08(0x261),this[_0x3b6d08(0x3dc)]),this[_0x3b6d08(0x3dc)]=null;}}['_throwTelemetryCollaborationNewChangeset'](){const _0x11faa2=_0x85662d;this[_0x11faa2(0x3dc)]=null;}};x=y([v(0x2,t['ILogService']),v(0x3,t[_0x85662d(0x29d)]),v(0x4,(0x0,t[_0x85662d(0x340)])(b)),v(0x5,(0x0,t[_0x85662d(0x340)])(se)),v(0x6,(0x0,t[_0x85662d(0x340)])(_)),v(0x7,(0x0,t[_0x85662d(0x32e)])(o[_0x85662d(0x37f)]))],x);const S=(0x0,t[_0x85662d(0x3ea)])(_0x85662d(0x498));function be(_0x1b4fbf){const _0x481aef=_0x85662d;return _0x481aef(0x353)+_0x1b4fbf;}function xe(_0x36455f){const _0x1c0822=_0x85662d;let {unitID:_0x221150,mutations:_0x59d52e}=_0x36455f;return{'unitId':_0x221150,'subUnitId':_0x59d52e[_0x1c0822(0x45a)]>0x0?_0x59d52e[0x0][_0x1c0822(0x3c0)][_0x1c0822(0x31f)]:null};}let C=class{constructor(_0x1786c8,_0x3b7cee,_0x272c95){const _0x5ec1b8=_0x85662d;this[_0x5ec1b8(0x3f3)]=_0x1786c8,this[_0x5ec1b8(0x30e)]=_0x3b7cee,this[_0x5ec1b8(0x25e)]=_0x272c95;}[_0x85662d(0x45e)](_0x1b3058){const _0x450ce6=_0x85662d;var _0x849711,_0x13d25e;let _0xb4289d=this[_0x450ce6(0x3f3)][_0x450ce6(0x39b)](r['SheetsSelectionsService']),{unitId:_0x2b9576,subUnitId:_0x41a4a3}=xe(_0x1b3058),_0x323260=_0xb4289d==null?void 0x0:_0xb4289d['getWorkbookSelections'](_0x2b9576)[_0x450ce6(0x291)](),_0x4e678a=(_0x849711=this['_instanceService'][_0x450ce6(0x445)](_0x2b9576))==null||(_0x849711=_0x849711[_0x450ce6(0x42b)]())==null?void 0x0:_0x849711[_0x450ce6(0x3ed)]();if(_0x323260[_0x450ce6(0x45a)]===0x0||!_0x2b9576||!_0x41a4a3)return;let _0x39fce1=[{'id':r[_0x450ce6(0x1f9)]['id'],'params':{'unitId':_0x2b9576,'subUnitId':_0x4e678a,'selections':t[_0x450ce6(0x39e)][_0x450ce6(0x1db)](_0x323260)}}],_0x5f503b=this['_transformService'][_0x450ce6(0x3cf)](_0x1b3058,_0x39fce1);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5f503b))throw _0x5f503b[_0x450ce6(0x3cc)];let _0x5bc9f1=(_0x13d25e=_0x5f503b['m2Prime'][0x0])==null||(_0x13d25e=_0x13d25e[_0x450ce6(0x3c0)])==null?void 0x0:_0x13d25e[_0x450ce6(0x278)];if(Array[_0x450ce6(0x24f)](_0x5bc9f1)&&_0x5bc9f1[_0x450ce6(0x45a)]){if(_0x5bc9f1[_0x450ce6(0x45a)]===_0x39fce1[0x0][_0x450ce6(0x3c0)][_0x450ce6(0x278)]['length']&&_0x5bc9f1[_0x450ce6(0x2c0)]((_0x260d1f,_0x157667)=>t[_0x450ce6(0x3d8)][_0x450ce6(0x2d5)](_0x260d1f[_0x450ce6(0x34d)],_0x39fce1[0x0][_0x450ce6(0x3c0)][_0x450ce6(0x278)][_0x157667]['range'])))return;this[_0x450ce6(0x3f3)][_0x450ce6(0x39b)](t[_0x450ce6(0x448)])[_0x450ce6(0x227)](r[_0x450ce6(0x1f9)]['id'],{'unitId':_0x2b9576,'subUnitId':_0x4e678a,'selections':_0x5bc9f1});}}};C=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,e[_0x85662d(0x301)]),v(0x2,t[_0x85662d(0x33e)])],C);const w=(0x0,t['createIdentifier'])(_0x85662d(0x3e1));let Se=function(_0x20e66a){const _0x1e2e0c=_0x85662d;return _0x20e66a[_0x20e66a[_0x1e2e0c(0x4ed)]=0x0]=_0x1e2e0c(0x4ed),_0x20e66a[_0x20e66a[_0x1e2e0c(0x42f)]=0x1]='OTHER_CLIENTS_EDITING',_0x20e66a;}({});function Ce(_0x5ba452){const _0x4f0a89=_0x85662d;var _0x3483d4;return!!((_0x3483d4=_0x5ba452[_0x4f0a89(0x3c0)])!=null&&_0x3483d4['__splitChunk__']);}const we=new Set([r[_0x85662d(0x3f7)]['id']]),Te=new Set([c['AddSlidePageMutation']['id'],c['EnsureSlideMasterPageMutation']['id'],c[_0x85662d(0x2ea)]['id'],c['RemoveSlidePageMutation']['id']]);function Ee(_0x19396e,_0x2eb7cf=we){const _0x4cb637=_0x85662d;let _0x30bef3=[];for(let _0x5962b2 of _0x19396e){if(_0x2eb7cf['has'](_0x5962b2['id'])){if(_0x30bef3['length']>0x0)break;_0x30bef3[_0x4cb637(0x4e6)](_0x5962b2);break;}if(Ce(_0x5962b2)){if(_0x30bef3[_0x4cb637(0x45a)]>0x0)break;_0x30bef3['push'](_0x5962b2);break;}_0x30bef3[_0x4cb637(0x4e6)](_0x5962b2);}return _0x30bef3;}function T(_0x3511b2,_0x12f96f,_0x39a384,_0x262410,_0x414db6){const _0x52937f=_0x85662d;var _0x3a2453,_0x599788,_0x3c25f8,_0x1410b1;let _0x1178c4=Ee(_0x3511b2),_0xc87791=(_0x3a2453=(_0x599788=_0x414db6['getCurrentUser']())==null?void 0x0:_0x599788[_0x52937f(0x302)])==null?_0x52937f(0x3f4):_0x3a2453,_0x3fcd7f=(_0x3c25f8=(_0x1410b1=_0x414db6[_0x52937f(0x4f7)]())==null?void 0x0:_0x1410b1[_0x52937f(0x4e4)])==null?'unknown':_0x3c25f8;return{'changeset':{'unitID':_0x12f96f,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x39a384['getUnitType'](_0x12f96f)),'baseRev':_0x262410[_0x52937f(0x337)](_0x12f96f),'revision':0x0,'userID':_0xc87791,'memberID':_0x3fcd7f,'mutations':_0x1178c4},'pendingMutations':_0x3511b2[_0x52937f(0x409)](_0x1178c4['length'])};}function De(_0x121dc4,_0x5b0137,_0x1a082a,_0x4b90e4,_0x2a248b){const _0x58c454=_0x85662d;var _0x370158,_0x32b6b5,_0x19d190,_0x4b55ee;let _0x524389=Ee(_0x121dc4,Te),_0x54dd61=(_0x370158=(_0x32b6b5=_0x2a248b[_0x58c454(0x4f7)]())==null?void 0x0:_0x32b6b5[_0x58c454(0x302)])==null?_0x58c454(0x3f4):_0x370158,_0x5be3b8=(_0x19d190=(_0x4b55ee=_0x2a248b[_0x58c454(0x4f7)]())==null?void 0x0:_0x4b55ee[_0x58c454(0x4e4)])==null?'unknown':_0x19d190;return{'changeset':{'unitID':_0x5b0137,'type':(0x0,e[_0x58c454(0x444)])(_0x1a082a[_0x58c454(0x238)](_0x5b0137)),'baseRev':_0x4b90e4[_0x58c454(0x337)](_0x5b0137),'revision':0x0,'userID':_0x54dd61,'memberID':_0x5be3b8,'mutations':_0x524389},'pendingMutations':_0x121dc4[_0x58c454(0x409)](_0x524389[_0x58c454(0x45a)])};}function Oe(_0x14e24f,_0x6013d1,_0x3daf4a,_0x42fc0e,_0x5f12c3){const _0x52b4a7=_0x85662d;var _0x464b25,_0x3bddf0,_0x1e57ad,_0x1632ae;let _0x5bfc17=_0x14e24f[_0x52b4a7(0x399)]((_0x583380,_0x27b5c3)=>{const _0x5e5b5c=_0x52b4a7;let _0x2beb24=_0x583380[_0x583380[_0x5e5b5c(0x45a)]-0x1],{id:_0x8e721b}=_0x2beb24==null?{}:_0x2beb24,{id:_0x216782,type:_0x3235f3}=_0x27b5c3,_0x15cc0d=_0x27b5c3['params'];if(_0x8e721b&&_0x8e721b!==_0x216782)throw Error(_0x5e5b5c(0x447)+_0x8e721b+_0x5e5b5c(0x2de)+_0x216782+'.');if(!_0x2beb24)return[{'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d[_0x5e5b5c(0x240)],'actions':_0x15cc0d['actions']}}];let _0x30c3fb=_0x2beb24[_0x5e5b5c(0x3c0)];return ke(_0x30c3fb,_0x15cc0d)?[..._0x583380[_0x5e5b5c(0x409)](0x0,-0x1),{..._0x2beb24,'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d[_0x5e5b5c(0x240)],'actions':t[_0x5e5b5c(0x339)][_0x5e5b5c(0x3bb)](_0x30c3fb[_0x5e5b5c(0x470)],_0x15cc0d[_0x5e5b5c(0x470)])}}]:[..._0x583380,{'id':_0x216782,'type':_0x3235f3,'params':{'unitId':_0x15cc0d[_0x5e5b5c(0x420)],'textRanges':_0x15cc0d['textRanges'],'actions':_0x15cc0d[_0x5e5b5c(0x470)]}}];},[]),_0x2e0262=(_0x464b25=(_0x3bddf0=_0x5f12c3[_0x52b4a7(0x4f7)]())==null?void 0x0:_0x3bddf0[_0x52b4a7(0x302)])==null?'unknown':_0x464b25,_0x12e0e9=(_0x1e57ad=(_0x1632ae=_0x5f12c3[_0x52b4a7(0x4f7)]())==null?void 0x0:_0x1632ae[_0x52b4a7(0x4e4)])==null?'unknown':_0x1e57ad;return{'changeset':{'unitID':_0x6013d1,'type':(0x0,e['mapDocumentTypeToUniverInstanceType'])(_0x3daf4a[_0x52b4a7(0x238)](_0x6013d1)),'baseRev':_0x42fc0e['getCurrentRevOfUnit'](_0x6013d1),'revision':0x0,'userID':_0x2e0262,'memberID':_0x12e0e9,'mutations':_0x5bfc17},'pendingMutations':_0x14e24f[_0x52b4a7(0x409)](_0x14e24f['length'])};}function ke(_0x556153,_0x50abed){const _0x54105e=_0x85662d;return!Ae(_0x556153)&&!Ae(_0x50abed)&&je(_0x556153[_0x54105e(0x470)],_0x50abed[_0x54105e(0x470)]);}function Ae(_0x5c1ba4){const _0x1cfd7b=_0x85662d;return _0x5c1ba4[_0x1cfd7b(0x460)]!==void 0x0;}function je(_0x62b585,_0x381daa){return Me(_0x62b585)&&Me(_0x381daa)&&!Pe(_0x62b585)&&!Pe(_0x381daa)&&!Ne(_0x62b585)&&!Ne(_0x381daa);}function Me(_0xee7391){const _0x25fbd4=_0x85662d;return Fe(_0xee7391)['some'](_0x18db19=>E(_0x18db19)&&_0x18db19['et']===_0x25fbd4(0x23a));}function Ne(_0x575607){const _0x143de3=_0x85662d;return Fe(_0x575607)[_0x143de3(0x450)](_0x26169a=>Array[_0x143de3(0x24f)](_0x26169a)||typeof _0x26169a==_0x143de3(0x1dc)||typeof _0x26169a==_0x143de3(0x24d));}function Pe(_0xa85a2d){const _0x9446e8=_0x85662d;return Fe(_0xa85a2d)[_0x9446e8(0x450)](_0x52f9de=>!E(_0x52f9de)||_0x52f9de['et']!==_0x9446e8(0x23a)||!Array[_0x9446e8(0x24f)](_0x52f9de['e'])?!0x1:_0x52f9de['e'][_0x9446e8(0x450)](_0x25bdec=>!E(_0x25bdec)||!E(_0x25bdec[_0x9446e8(0x2a6)])?!0x1:Object[_0x9446e8(0x442)]['hasOwnProperty']['call'](_0x25bdec['body'],_0x9446e8(0x21a))||Object[_0x9446e8(0x442)][_0x9446e8(0x47d)][_0x9446e8(0x380)](_0x25bdec[_0x9446e8(0x2a6)],_0x9446e8(0x310))||Object['prototype'][_0x9446e8(0x47d)][_0x9446e8(0x380)](_0x25bdec[_0x9446e8(0x2a6)],_0x9446e8(0x2bc))));}function Fe(_0x24e9a7){const _0x42b4d6=_0x85662d;if(!Array['isArray'](_0x24e9a7))return[];let _0x52a0a6=_0x24e9a7[_0x42b4d6(0x314)]('body')?_0x24e9a7:_0x24e9a7['find'](_0x2dac03=>Array[_0x42b4d6(0x24f)](_0x2dac03)&&_0x2dac03[_0x42b4d6(0x314)]('body'));if(!Array[_0x42b4d6(0x24f)](_0x52a0a6))return[];let _0x561241=_0x52a0a6[_0x42b4d6(0x4a4)]('body');return _0x561241===-0x1?[]:_0x52a0a6['slice'](_0x561241+0x1);}function E(_0x2e22a0){const _0x13f534=_0x85662d;return typeof _0x2e22a0==_0x13f534(0x316)&&!!_0x2e22a0&&!Array[_0x13f534(0x24f)](_0x2e22a0);}function Ie(_0xf8e76a,_0x33604d){const _0x59b6b3=_0x85662d;let _0x4a5dac=new i[(_0x59b6b3(0x392))](0x1);return setTimeout(()=>_0x4a5dac[_0x59b6b3(0x49a)](_0x33604d),_0xf8e76a),_0x4a5dac[_0x59b6b3(0x2dd)]()[_0x59b6b3(0x4bd)]((0x0,i[_0x59b6b3(0x3e5)])(0x1));}var Le,Re,ze;function _0x1d52(){const _0x1154c0=['[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','isTransformChangesetsSuccess','toPrimitive','offline','loadBase','mutations','stringify','ERROR_IMAGE','slice','signUrlServerUrl','getTime','getValue','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','list','method','CHANGESET_ACK','onSendChangeset','packageName','retryConnectingTimer','SNAPSHOT_URL_KEY','FETCH_MISSING','WorkbookEditablePermission','uniscriptRunEvent','close','_networkConditionService','8108040VJQwsy','SHOULD_CLOSE_CONN','_imageSourceCache','endpointKey','_registerDependencies','_removeRoom','unitId','candidateSocket','_scheduleCollaborationTimeoutTimer','sendHeartbeatTimer','_unlockTransition','DocCollaborationEntity','AWAITING_WITH_PENDING','socketReady','_getConfig','_singleActiveUnitService','parse','getActiveSheet','RxDisposable','ThresholdInterceptorFactory','[CollaborationEntity]','OTHER_CLIENTS_EDITING','liveShareNewHost','_waitForHeartbeatResponse','incrementRevOfUnit','symbol','reject','_updateStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','updateOfflineData','touchDependencies','Subject','\x20to\x20','COMPRESS_MUTATION_SEND','accept','UnitEmbedded','UserManagerService','set','UNIVER_BASE','fromCollab','prototype','encode','mapDocumentTypeToUniverInstanceType','getUnit','CLOSE_ROOM','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','ICommandService','requestParams','CombCmd','/new_changes','toggleOnline','_onUserJoin','_cfgEnableObjInherit','_acknowledgedAwaitingRevision','some','getLatestCsReqIdBySid','?size=','_unitLoaded$','_getLoginPath','toggleOffline','override','confirm','_tryEnsureSocket','_sessionChannels','length','isTransformMutationsWithChangesetSuccess','changeset','joinRsp','transformSelections','_onLocalMutation','isCompositionEnd','result','[SyncedState]:\x20received\x20rejection.','permissionRejEvent','_resendWithTimeout','updateCursorEvent','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_status$','transformUndoRedo','dispose','avatar','SheetCollaborationEntity','subscribe','IDLE','_collaborationUIEventService','revision','actions','max','89565bnoltP','_onFetchMissResult','getInterceptPoints','BehaviorSubject','SlideCollaborationEntity','subject','_changesetReqId','_transformStateCache','startTime','UPDATE_CURSOR','endpoint','hasOwnProperty','_getSignURL','HELLO','_clearCollaborationTimeoutTimer','originalMeta','roles','loadDoc','_sendHeartbeat','snapshotServerUrl','parseProtocolChangeset','MentionIoHttpService','collaborators','ImageSourceType','PERMISSION_REJ','send','collaboration-client.auth.needGotoLoginAlert','addHandlerCallback','Error\x20on\x20receiving\x20event','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','socket$','_getCurrentRevision','telemetry\x20info\x20is\x20not\x20initialized','_transformRemoteChangesetByStateCache','apply','[CollaborationSessionService]','_transitionLocked','href','collaboration-client.local-cache-service','DRAWING_IMAGE_ALLOW_IMAGE_LIST','next','saveImage','enableOfflineEditing','members','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_handler','_fetchMissChangesets','setCfgEnableObjInherit','_clearHeartbeatTimer','_clearScheduledTask','indexOf','catch','readyForCollab','onSyncEditingCollabCursor','isPermissionRej','registerHTTPInterceptor','loadBoard','LIVESHARE_TERMINATE','getOwnPropertyDescriptor','_replaceFileID','SyncedState','saveChangeset','textEncoder','PSEUDO_FETCH_MISSING_RESULT','stopTime','_pendingMutations','/collaborator','UNIVER_BOARD','sessionStatus','getMemberID','getTypeOfUnitDisposed$','awaitingChangeset','_toggleOnline','setConfig','create','pipe','awaiting_with_pending','defineProperty','OFFLINE','saveAttachment','SheetTransformSelectionsService','MSG_FOR_ERROR','OTHER_CLIENT_EDITING','CompressMutationService','SUBMIT_CHANGESET','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','batchAllowed','file','has','CollaborationAttachmentIoService','[CollaborationState]:\x20apply\x20error!','Module','URL','ISingleActiveUnitService','snapshot','SessionStatus','roomInfos','UNIVER_SHEET','_members$','find','close$','LOCAL_CACHE_INTERVAL_KEY','_collaborationTimeoutTimer','_tryReconnect','_telemetryService','[UniverCollaborationClientPlugin]','Univer','_createInitialState','getRoom','_transformStack','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','fetch_missing','enableSingleActiveInstanceLock','_type','memberID','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','push','concatMap','_isEchoedAwaitingChangeset','_onConnectionOpen','&assign=','[OfflineState]:\x20received\x20rejection.','refreshPermission','NO_OTHER_CLIENTS_EDITING','backupOfflineData','CHANGESET_REJ','&to=','_updateLocalCache','onTransformIME','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','IPermissionService','entityInit$','_onMessage','getCurrentUser','constructor','charCodeAt','JOIN_ROOM_FAILED','RichTextEditingMutation','_undoStacks','_showConflictNotification','IImageIoService','reqId','session','conflict','_queuedRemoteChangesets','now','randomBytes','code','uuidv4','ImageUploadStatusType','update','RETRY_CONNECTING_MAX_COUNT','_sender','closeSession','deepClone','string','fromCharCode','session.room-full','onMissedChangesetFetched','parseChangesetToProtocol','univer-pro.collaboration-client-adapter-service','_onUserLeave','_getUndoStack','_createInitialStateImpl','_socket','getTypeOfUnitAdded$','JOIN','default','listRoles','[CollaborationSessionService]:\x20socket\x20error','Plugin','ICollaborationSocketService','RECV','downloadEndpointUrl','[PendingState]:\x20received\x20rejection.','target','MemberService','JOIN_ROOM_FULL','updatePermissionObjEvent','_localCacheService','fetchThroughInterceptors','duration','IAuthzIoService','getSheetBlock','SetSelectionsOperation','action','_awaitingChangeset','MergeInterceptorFactory','_onConnectionFailed','onlyLocal','objectType','CollaborationUIEventService','_createSocket','_sessionStatus$','_clearTimeoutTimer','_transformRemoteChangesetByIMECache','INGEST','OPTIONAL','isInternalEditorID','ERROR_IMAGE_TYPE','listCollaborators','infoRsp','LIVESHARE_OPERATION','_scheduleCompleteTimestamp','docStateChange$','disableLocalCache','_onOffline','enableAuthServer','_transformIMECache','type','members$','clear','_commentUpdate$','_change$','_socketMessageSubscription','deleteCollaborator','capture','tables','message$','_remoteChangesetQueue','putCollaborators','splice','ERROR_EXCEED_SIZE','_resolveSessionIdentity','disposeWithMe','_clearRetryConnectingTimer','open$','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_decreaseWaiting','shareReplay','executeCommand','pauseCollaboration','loginUrlKey','_univerInstanceService','localCacheService','IMentionIOService','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','merge','SOCKET_FAILED','_onRemoteACK','_getUploadFileURL','requireSession','ErrorCode','state','getGlobalObject','DependentOn','c1Prime','getUnitType','name','text-x','updateMember','_permissionService','_onRemoteRejected','missingChangesets','\x0aAfter:\x20','textRanges','AwaitingWithPendingState','MUTATION','_state$','reconnect','cfgEnableObjInherit','ISnapshotServerService','/unit/','not_collab','IUndoRedoService','_checkMissing','onTransformRemoteChangesetByStateCache','c2Prime','number','patch','isArray','_resendTimeout','changesets','/universer-api/snapshot','toRemote','updateCollaborator','PERSON','trim','_handlerCallback','HEARTBEAT_TIMEOUT','_clearUndo','_toggleOffline','_adapter','CmdRspCode','event$','_instanceService','_sheetTransformSelectionsService','_stopTelemetryCollaborationNewChangeset','collaboration_new_changeset','getConfig','onStarting','loadOfflineData','_sendingTimer','serializeCombRequest','COMMENT_UPDATE','@univerjs-pro/collaboration-client','unsubscribe','url','getFocusedUnit','_resendTimer','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','GLOBAL_ROOMS_CNT_EXCEEDS','_incrementRevisionNumber','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LEAVE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationUndoRedoService]','responseType','RevisionService','getCollabEntity','replace','selections','getCfgEnableObjInherit','updatePermissionPoint','onTransformState','onRemoteChangeset','FileSource','sort','status$','unit','/universer-api/authz','onRemoteRetry','_members','localeService','LocaleService','collabWebSocketUrl','isTransformMutationsWithChangesetFailure','socket\x20open.','_event$','data','collabSubmitChangesetUrl','values','objects','_httpService','221537fCDPhn','BASE64','getCurrentSelections','leaveEvent','/object/','_initMergeInterceptor','CollaborationEntity','objectID','function','FetchingMissState','CollaborativeUndoRedoService','_rescheduleHeartbeat','allowed','socketMessageSubscription','IConfigService','_config','_logService','registerDependencies','LIVESHARE_REQUEST_HOST','SUBMIT_CHANGESET_TIMEOUT','_getSendChangesetTimeout','_createHandler','timeoutTimer','body','PERMISSION_DENIED','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_sessions','loadSlide','upload','_roomCreated$','/-/object/-/batch_allowed','NEW_CHANGESETS','_throwTelemetryCollaborationNewChangeset','_changesetSessionId','DEFAULT_WS_SESSION_TICKET_URL','_onRemoteRetry','unitInfo$','120BeDBcS','put','cbc','unitLoaded$','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','HEARTBEAT','fetchMissingChangesets','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','blockRanges','_getSocketChannel','_acknowledgeAwaitingIfReady','appendMutation','every','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','_compressMutationService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','maxSize','workbook','editing\x20status\x20changed\x20to','_hasSessionsForEndpoint','headers','CHANGESET_SHOULD_RETRY','filter','session.room-permission-denied','__Key__','_undoRedoService','newCsEvent','UNIVER_SLIDE','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','_isPermissionRej','_startCollaboration','delay','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','equals','add','_getRedoStack','_clearLocalCache','_shouldReportTelemetry','toString','focused$','UniverCollaborationClientPlugin','asObservable','\x20-\x20','ILocalCacheService','append','FAIL','_state','saveSnapshot','generateRandomId','resolve','_docStateChangeManagerService','pluginName','createInstance','[PendingState]:\x20received\x20acknowledgement.','MoveSlidePageMutation','floor','LIVESHARE_FETCH_OPERATIONS','_onConflict','status','resend','_collabSessionService','objectActions','enableCollaboration','_userManagerService','authzUrl','transformStack\x20failed!','_waitCount','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','m2Prime','HEARTBEAT_TIMEOUT_KEY','_lockTransition','USERS_LEAVE','takeUntil','retryCount','_memberService','UNISCRIPT_RUN','iterator','ITransformService','userID','_getDownloadEndpointURL','Disposable','ISocketService','_getAPIPrefixPath','_schedule','FileId','PENDING','CommandType','_onCombEvent','_initDependencies','init','_transformService','forEach','columnGroups','_eventService','_initCloseConn','interceptor','includes','HTTPService','object','[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.','failed\x20to\x20apply\x20missed\x20changesets!','min','AWAITING','_exhaustRemoteChangesetQueue','950769OuYusP','_entityInit$','resolveWithBasePath','subUnitId','pending','_handleRemoteChangesets','session.join-failed','HEARTBEAT_INTERVAL','&source=','_snapshotService','/universer-api/stream/file/upload','findIndex','_collaborationSessionService','localUnitId','INetworkConditionService','x-univer-host','/-/object/list','_onRemoteChangeset','Optional','2108692WCTwsY','Injector','submit\x20changeset\x20error!','sessionStatus$','getResourcesRequest','_initUnitPermissionChange','OfflineState','eventID','getCurrentRevOfUnit','Failed\x20to\x20update\x20permission\x20point','JSONX','/fetchmissing?from=','_collaborationPaused','_onRecvEvent','_entities','IUniverInstanceService','[SyncedState]:\x20received\x20acknowledgement.','Inject','baseRev','entries','onStateChange','_unitInfo$','toStringTag','sendChangesetTimeout','onRemoteAck','cmd','routeKey','version','DataLoaderService','_maxTotalRetryTimeout','range','error$','RETRY_CONNECTING_MAX_COUNT_KEY','awaiting','COMPRESS_MUTATION_APPLY','_revisionService','unit-cache-','DocStateChangeManagerService','_pendingSessions','_localeService','unitID','_getAPIPrefix','fetchMiss','USERS_ENTER','People','_transformUndoredo','CollaborationSessionService','getCollabEntity$','_roomMembers','addImageSourceCache','AuthzIoHttpService','size','getAllMembers','_socketService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','SUCCUSS','reverse','SheetPermissionInitController','unitType','/universer-api/comb','_initRequestHeader','_upload','b64DecodeUnicode','delete','getLocalCacheKey','_disableEditing','LIVESHARE_NEW_HOST','2310160vueqIW','MentionType','CONFLICT','session.room-not-exists','onload','_configService','UniverInstanceType','FETCH_MISS','getDrawingImageAllowSize','saveSheetBlock','/role','loadUnitOfRevision','_applyRemoteChangeset','ITelemetryService','call','_emitMembers','_updateState','[CollaborationSession]','createCollaborator','/block/','?url=','createSocket','onRemoteRej','ONLINE','CollaborationImageIoService','ws://127.0.0.1:8000/universer-api/comb/connect','_init','CommentService','BaseCollaborationEntity','CollaborationSocketService','retryConnectingInterval','uploadFileServerUrl','ReplaySubject','/universer-api/snapshot/','_submitChangeset','joinEvent','withCredentials','connection\x20error','readAsDataURL','reduce','PendingState','get','84tofDBn','_getCtorByUniverInstanceType','Tools','UNIVER_DOC','sid','_redoStacks','origin','_executeRemoteChangeset','ILogService','{fileID}','decorate','resolveUnit','sheets','debug','_HTTPService','complete','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','unitId\x20is\x20not\x20found','emitEvent','mergeOverrideWithDependencies','_startTelemetryCollaborationNewChangeset','UUID','onMutationExecutedForCollab','JOINING','JOIN_ROOM_NOT_EXISTS','hostname','then','fetching\x20missing\x20changesets\x20from\x20','getDeserializedSheetBlock','getUnitId','startsWith','compose','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','socket\x20close','toLocal','_transformAndApplyRemoteChangeset','params','setShowComponents','getSnapshotAPIPath','location','initWorkbookPermissionChange','onMissingChangesets','setWaitCount','/rev/','getMember','/allowed','onCommentUpdate','_socketChannels','error','120DxLhzl','_identity','transformMutationsWithChangeset','DEFAULT_FILE_NAME','[OfflineState]:\x20received\x20acknowledgement.','setCurrentUser','deserializeToCombResponse','post','_commandService','toDisposable','_createSession','Rectangle','_transformSelections','onTransformSelections','POST','_telemetryInfo','_acknowledgeAwaiting','onTransformRemoteChangesetByIMECache','dispose$','removeMember','univer-pro.collaboration-client.single-active-unit-service','attachment','SOCKET_FAILED_RETRY','copyFileMeta','take','waitForRoom$','DEFAULT_COLLAB_WEB_SOCKET_URL','commentUpdate$','[FetchMissState]','createIdentifier','state$','LOCAL_CACHE_INTERVAL','getSheetId','synced','socketService','[OfflineState]:\x20received\x20changeset.','getUploadOptions','_replayCachedMutations','_injector','unknown','CollaborationSession','_commentService','InsertSheetMutation','LocalUndoRedoService','src','getImageSourceCache','CollaborationEvent','map','firstValueFrom','6092kMoHoF','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','resourceIDs'];_0x1d52=function(){return _0x1154c0;};return _0x1d52();}let Be=function(_0x1441f3){const _0x162a54=_0x85662d;return _0x1441f3['NOT_COLLAB']=_0x162a54(0x248),_0x1441f3['SYNCED']=_0x162a54(0x3ee),_0x1441f3[_0x162a54(0x309)]=_0x162a54(0x320),_0x1441f3[_0x162a54(0x31a)]=_0x162a54(0x350),_0x1441f3[_0x162a54(0x426)]=_0x162a54(0x4be),_0x1441f3[_0x162a54(0x379)]=_0x162a54(0x4e1),_0x1441f3[_0x162a54(0x374)]=_0x162a54(0x1d0),_0x1441f3[_0x162a54(0x4c0)]='offline',_0x1441f3;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0xc838c2,_0x2d826d,_0x25bea0,_0x24e9ed,_0x565391,_0x117c2c,_0x2f13d0,_0x4fcb08,_0x179e21){const _0xf0381a=_0x85662d;this['unitID']=_0xc838c2,this[_0xf0381a(0x212)]=_0x2d826d,this[_0xf0381a(0x49f)]=_0x565391,this['_commandService']=_0x117c2c,this[_0xf0381a(0x2cd)]=_0x2f13d0,this[_0xf0381a(0x352)]=_0x4fcb08,this[_0xf0381a(0x1f4)]=_0x179e21,g(this,'_awaitingChangeset',null),g(this,_0xf0381a(0x4b3),[]),this[_0xf0381a(0x1fb)]=_0x25bea0,this[_0xf0381a(0x4b3)]=_0x24e9ed;}[_0x85662d(0x24a)](_0x578e7f){const _0x3471ce=_0x85662d;let _0x48c9fd=this[_0x3471ce(0x352)][_0x3471ce(0x337)](this[_0x3471ce(0x357)]);return _0x578e7f[_0x3471ce(0x46f)]>_0x48c9fd+0x1?(this[_0x3471ce(0x49f)][_0x3471ce(0x3c5)]({'from':_0x48c9fd,'to':_0x578e7f[_0x3471ce(0x46f)]-0x1}),!0x0):!0x1;}[_0x85662d(0x35c)](_0x4ad0bc){const _0x31b955=_0x85662d;this[_0x31b955(0x2cd)][_0x31b955(0x468)](this[_0x31b955(0x357)],_0x4ad0bc);}[_0x85662d(0x3d9)](_0x1eeded){const _0x3695fd=_0x85662d;var _0x4bb343,_0x339c1f;(_0x4bb343=(_0x339c1f=this['_handler'])[_0x3695fd(0x3da)])==null||_0x4bb343[_0x3695fd(0x380)](_0x339c1f,_0x1eeded);}[_0x85662d(0x211)](_0x24249e){const _0x4bed15=_0x85662d;var _0x59f67b,_0x177f39;return(_0x59f67b=(_0x177f39=this[_0x4bed15(0x49f)])[_0x4bed15(0x4f2)])==null?void 0x0:_0x59f67b[_0x4bed15(0x380)](_0x177f39,_0x24249e);}['_transformStateCache'](_0x5e511e){const _0x46135a=_0x85662d;var _0x5b6c50,_0x57c3c8;return(_0x5b6c50=(_0x57c3c8=this[_0x46135a(0x49f)])[_0x46135a(0x27b)])==null?void 0x0:_0x5b6c50[_0x46135a(0x380)](_0x57c3c8,_0x5e511e);}[_0x85662d(0x204)](_0x53824a){const _0xc1123e=_0x85662d;var _0x2152ee,_0x358ce4,_0x27fc64;return(_0x2152ee=(_0x358ce4=(_0x27fc64=this[_0xc1123e(0x49f)])[_0xc1123e(0x3de)])==null?void 0x0:_0x358ce4[_0xc1123e(0x380)](_0x27fc64,_0x53824a))==null?_0x53824a:_0x2152ee;}[_0x85662d(0x493)](_0x3fb48c){const _0x336b02=_0x85662d;var _0x261281,_0x42c88a,_0x3486f3;return(_0x261281=(_0x42c88a=(_0x3486f3=this['_handler'])[_0x336b02(0x24b)])==null?void 0x0:_0x42c88a[_0x336b02(0x380)](_0x3486f3,_0x3fb48c))==null?_0x3fb48c:_0x261281;}['_syncEditingCollabCursor'](_0x37ed7b){const _0x3ed8e0=_0x85662d;if(this['type']===t[_0x3ed8e0(0x378)][_0x3ed8e0(0x39f)]){let {unitID:_0x2f56a5,mutations:_0x15b152,memberID:_0x48ca32}=_0x37ed7b,_0x2cde3f=_0x15b152[_0x3ed8e0(0x45a)]>0x0?_0x15b152[0x0]['params'][_0x3ed8e0(0x240)]:[];if(Array[_0x3ed8e0(0x24f)](_0x2cde3f)&&_0x2cde3f[_0x3ed8e0(0x45a)]>0x0){var _0x13cbe2,_0x202759;(_0x13cbe2=(_0x202759=this[_0x3ed8e0(0x49f)])[_0x3ed8e0(0x4a7)])==null||_0x13cbe2[_0x3ed8e0(0x380)](_0x202759,{'unitID':_0x2f56a5,'memberID':_0x48ca32,'textRanges':_0x2cde3f});}}}[_0x85662d(0x4f1)](){const _0x39d3ef=_0x85662d;var _0x383e55;(_0x383e55=this[_0x39d3ef(0x1f4)])==null||_0x383e55[_0x39d3ef(0x437)](this[_0x39d3ef(0x357)],this[_0x39d3ef(0x212)],this[_0x39d3ef(0x1fb)],this['_pendingMutations']);}[_0x85662d(0x491)](){const _0x18cfb7=_0x85662d;return this[_0x18cfb7(0x352)]['getCurrentRevOfUnit'](this[_0x18cfb7(0x357)]);}['_incrementRevisionNumber'](){const _0x33910d=_0x85662d;this[_0x33910d(0x352)][_0x33910d(0x432)](this[_0x33910d(0x357)]);}[_0x85662d(0x3a3)](_0x4ff8c6){const _0x39e184=_0x85662d;let _0x41ea66=this[_0x39e184(0x204)](_0x4ff8c6);_0x41ea66=this[_0x39e184(0x493)](_0x41ea66);let _0x196ca9=(0x0,t['sequenceExecute'])(_0x41ea66[_0x39e184(0x406)],this[_0x39e184(0x3d5)],{'fromCollab':!0x0});if(!_0x196ca9['result']){var _0x3861b5;throw _0x196ca9[_0x39e184(0x3cc)]instanceof Error?_0x196ca9[_0x39e184(0x3cc)]:Error((_0x3861b5=_0x196ca9['error'])==null?_0x39e184(0x4cc):_0x3861b5);}this[_0x39e184(0x211)](_0x41ea66),this[_0x39e184(0x479)](_0x41ea66),this[_0x39e184(0x35c)](_0x4ff8c6),this[_0x39e184(0x3d9)](_0x41ea66),this['_syncEditingCollabCursor'](_0x41ea66),this[_0x39e184(0x26f)]();}};let O=class extends D{constructor(_0x3d2298,_0x518483,_0x2e843a,_0x1a7ca0,_0x590178,_0x1d786b,_0x1b5214,_0x3e500d,_0x3cb6ce,_0x2769b8){const _0x11170d=_0x85662d;super(_0x3d2298,_0x518483,null,[],_0x2e843a,_0x1b5214,_0x1d786b,_0x1a7ca0,_0x2769b8),this[_0x11170d(0x3f3)]=_0x590178,this[_0x11170d(0x29f)]=_0x3e500d,this['_transformService']=_0x3cb6ce,this[_0x11170d(0x22b)]=_0x2769b8,g(this,_0x11170d(0x2ee),_0x11170d(0x3ee));}[_0x85662d(0x2bf)](_0x2d12e9){const _0x17143=_0x85662d;let _0x5b93ad=this[_0x17143(0x3f3)]['createInstance'](k,this['unitID'],this[_0x17143(0x212)],[_0x2d12e9],this['_handler']);return _0x5b93ad[_0x17143(0x307)](),_0x5b93ad[_0x17143(0x4f1)](),_0x5b93ad;}[_0x85662d(0x27c)](_0x47edea){const _0x8cc0eb=_0x85662d;if(this[_0x8cc0eb(0x24a)](_0x47edea))return this['_injector'][_0x8cc0eb(0x2e8)](P,this['unitID'],this[_0x8cc0eb(0x212)],null,[],null,[_0x47edea],this[_0x8cc0eb(0x49f)]);try{let _0x138a4a=this[_0x8cc0eb(0x30e)][_0x8cc0eb(0x3cf)](_0x47edea,[e['EmptyMutationInfo']]);if((0x0,e[_0x8cc0eb(0x45b)])(_0x138a4a)){let {c1Prime:_0x46b20a}=_0x138a4a;return this[_0x8cc0eb(0x3a3)](_0x46b20a),this;}throw _0x138a4a[_0x8cc0eb(0x3cc)];}catch(_0x34aa49){return this[_0x8cc0eb(0x29f)]['error'](_0x34aa49),this['_onConflict'](!0x1);}}[_0x85662d(0x2ed)](_0x2d5ab7){const _0x3bf647=_0x85662d;return this['_injector'][_0x3bf647(0x2e8)](M,this['unitID'],this[_0x3bf647(0x212)],null,[],this[_0x3bf647(0x49f)],_0x2d5ab7);}[_0x85662d(0x347)](_0x2994e1){const _0x44bb66=_0x85662d;if(_0x2994e1['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x44bb66(0x33f));}['onRemoteRej'](){const _0x197e1b=_0x85662d;throw Error(_0x197e1b(0x462));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){const _0x1c6763=_0x85662d;return this['_injector'][_0x1c6763(0x2e8)](N,this['unitID'],this['type'],null,[],this[_0x1c6763(0x49f)]);}[_0x85662d(0x44c)](){return this;}['resend'](){const _0x4c62df=_0x85662d;throw Error(_0x4c62df(0x365));}[_0x85662d(0x359)](){const _0x3bec8a=_0x85662d;let _0x3abc4e=this[_0x3bec8a(0x352)][_0x3bec8a(0x337)](this['unitID']);return this[_0x3bec8a(0x49f)]['onMissingChangesets']({'from':_0x3abc4e,'to':0x0}),this['_injector']['createInstance'](P,this['unitID'],this['type'],null,[],null,[],this['_handler']);}};O=y([v(0x3,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t[_0x85662d(0x249)]),v(0x6,t[_0x85662d(0x448)]),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,e[_0x85662d(0x301)]),v(0x9,(0x0,t[_0x85662d(0x32e)])(S))],O);let k=Le=class extends D{constructor(_0x466e92,_0x47d668,_0x334847,_0x5ae941,_0x5b71d6,_0xa29e0c,_0x3a17e0,_0x132981,_0x352a16,_0x23c788,_0x30a858,_0x4c94e2,_0x1f8d7b,_0x20d605){const _0x113fb0=_0x85662d;super(_0x466e92,_0x47d668,null,_0x334847,_0x5ae941,_0x352a16,_0x1f8d7b,_0xa29e0c,_0x20d605),this['_injector']=_0x5b71d6,this[_0x113fb0(0x2fe)]=_0x3a17e0,this[_0x113fb0(0x29f)]=_0x132981,this[_0x113fb0(0x377)]=_0x23c788,this[_0x113fb0(0x30e)]=_0x30a858,this[_0x113fb0(0x22a)]=_0x4c94e2,g(this,_0x113fb0(0x2ee),_0x113fb0(0x320)),g(this,_0x113fb0(0x20c),null),g(this,_0x113fb0(0x265),null);}['appendMutation'](_0x5eaaef){const _0x564277=_0x85662d;return this[_0x564277(0x4b3)]['push'](_0x5eaaef),this[_0x564277(0x4f1)](),this;}[_0x85662d(0x27c)](_0x1dae4a){const _0x194c7b=_0x85662d;if(this[_0x194c7b(0x24a)](_0x1dae4a))return this[_0x194c7b(0x4a3)](),this['_injector'][_0x194c7b(0x2e8)](P,this[_0x194c7b(0x357)],this[_0x194c7b(0x212)],null,this[_0x194c7b(0x4b3)],null,[_0x1dae4a],this[_0x194c7b(0x49f)]);try{let _0x5f315d=this[_0x194c7b(0x30e)][_0x194c7b(0x3cf)](_0x1dae4a,this[_0x194c7b(0x4b3)]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x5f315d)){let {c1Prime:_0x1c67ed,m2Prime:_0x446013}=_0x5f315d;this[_0x194c7b(0x3a3)](_0x1c67ed);let _0x39f3b6=this[_0x194c7b(0x3f3)][_0x194c7b(0x2e8)](Le,this[_0x194c7b(0x357)],this[_0x194c7b(0x212)],_0x446013,this[_0x194c7b(0x49f)]);this['_clearScheduledTask']();let _0xdf4dbe=new Date()[_0x194c7b(0x40b)](),_0x57eff0=this[_0x194c7b(0x20c)]?Math[_0x194c7b(0x471)](this[_0x194c7b(0x20c)]-_0xdf4dbe,0x0):this[_0x194c7b(0x2a3)]();return _0x39f3b6[_0x194c7b(0x307)](_0x57eff0),_0x39f3b6;}throw _0x5f315d[_0x194c7b(0x3cc)];}catch(_0x1abdf1){return this[_0x194c7b(0x29f)][_0x194c7b(0x3cc)](_0x1abdf1),this[_0x194c7b(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x53b507){const _0x502737=_0x85662d;if(_0x53b507[_0x502737(0x46f)]<=this[_0x502737(0x491)]())return this;throw Error(_0x502737(0x2e9));}[_0x85662d(0x388)](){const _0x16b99b=_0x85662d;throw Error(_0x16b99b(0x1ef));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){const _0x28ab60=_0x85662d;return this['_clearScheduledTask'](),this[_0x28ab60(0x3f3)][_0x28ab60(0x2e8)](N,this['unitID'],this[_0x28ab60(0x212)],null,this[_0x28ab60(0x4b3)],this[_0x28ab60(0x49f)]);}['toggleOnline'](){return this;}[_0x85662d(0x307)](_0x3941e9){const _0x3d68e0=_0x85662d;let _0x9a6a56=_0x3941e9==null?this[_0x3d68e0(0x2a3)]():_0x3941e9;this[_0x3d68e0(0x20c)]=new Date()[_0x3d68e0(0x40b)]()+_0x9a6a56,this[_0x3d68e0(0x265)]=setTimeout(()=>{const _0x9e1a3b=_0x3d68e0;this[_0x9e1a3b(0x4a3)]();let _0x440044=null;switch(this[_0x9e1a3b(0x212)]){case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x4d3)]:_0x440044=T(this[_0x9e1a3b(0x4b3)],this['unitID'],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x39f)]:_0x440044=this[_0x9e1a3b(0x4b3)][_0x9e1a3b(0x2c0)](_0xeac230=>_0xeac230['id']===n[_0x9e1a3b(0x1ca)]['id'])?Oe(this['_pendingMutations'],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this['_memberService']):T(this['_pendingMutations'],this['unitID'],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x2cf)]:_0x440044=De(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this['_univerInstanceService'],this['_revisionService'],this[_0x9e1a3b(0x2fe)]);break;case t[_0x9e1a3b(0x378)][_0x9e1a3b(0x4b5)]:_0x440044=T(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this['_memberService']);break;case t['UniverInstanceType']['UNIVER_BASE']:_0x440044=T(this[_0x9e1a3b(0x4b3)],this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x22a)],this[_0x9e1a3b(0x352)],this[_0x9e1a3b(0x2fe)]);break;default:throw Error(_0x9e1a3b(0x272)+this[_0x9e1a3b(0x212)]+'\x20in\x20_schedule.');}let {changeset:_0x4a6487,pendingMutations:_0x3d5532}=_0x440044;this[_0x9e1a3b(0x49f)]['onSendChangeset'](_0x4a6487);let _0x2d6cee=_0x3d5532[_0x9e1a3b(0x45a)]?this[_0x9e1a3b(0x3f3)][_0x9e1a3b(0x2e8)](j,this[_0x9e1a3b(0x357)],this['type'],_0x4a6487,_0x3d5532,this['_handler'],void 0x0):this[_0x9e1a3b(0x3f3)]['createInstance'](A,this[_0x9e1a3b(0x357)],this[_0x9e1a3b(0x212)],_0x4a6487,this['_handler']);_0x2d6cee['_updateLocalCache'](),this[_0x9e1a3b(0x49f)][_0x9e1a3b(0x343)](this,_0x2d6cee);},_0x9a6a56);}[_0x85662d(0x2a3)](){const _0x5dbcf5=_0x85662d;var _0x1b5f70;let _0x5e61eb=this[_0x5dbcf5(0x377)][_0x5dbcf5(0x262)](m);return(_0x1b5f70=_0x5e61eb==null?void 0x0:_0x5e61eb[_0x5dbcf5(0x346)])==null?0x7d0:_0x1b5f70;}[_0x85662d(0x2ef)](){const _0x3ae44b=_0x85662d;throw Error(_0x3ae44b(0x48f));}[_0x85662d(0x4a3)](){const _0x2e6703=_0x85662d;this[_0x2e6703(0x265)]!=null&&(clearTimeout(this[_0x2e6703(0x265)]),this[_0x2e6703(0x265)]=null);}['_onConflict'](_0x3e775f){const _0x1ba8e7=_0x85662d;return this['_clearScheduledTask'](),this[_0x1ba8e7(0x3f3)]['createInstance'](M,this[_0x1ba8e7(0x357)],this['type'],null,this[_0x1ba8e7(0x4b3)],this['_handler'],_0x3e775f);}};k=Le=y([v(0x4,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x5,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x6,(0x0,t[_0x85662d(0x340)])(b)),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,t[_0x85662d(0x448)]),v(0x9,t[_0x85662d(0x29d)]),v(0xa,e[_0x85662d(0x301)]),v(0xb,t['IUniverInstanceService']),v(0xc,t[_0x85662d(0x249)]),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],k);let A=Re=class extends D{constructor(_0x4a5d22,_0x1291ca,_0x353be1,_0x40ad7c,_0x2f3804,_0x27a40a,_0xba29b3,_0x4a7c9a,_0x2a7fc3,_0x2b56f8,_0x3f38c4){const _0x1982c4=_0x85662d;super(_0x4a5d22,_0x1291ca,_0x353be1,[],_0x40ad7c,_0xba29b3,_0x2b56f8,_0x27a40a,_0x3f38c4),this[_0x1982c4(0x3f3)]=_0x2f3804,this[_0x1982c4(0x29f)]=_0x4a7c9a,this[_0x1982c4(0x30e)]=_0x2a7fc3,g(this,_0x1982c4(0x2ee),_0x1982c4(0x350)),g(this,'_resendTimeout',0x0),g(this,_0x1982c4(0x34c),0x0),g(this,_0x1982c4(0x26c),void 0x0),g(this,_0x1982c4(0x1d9),void 0x0);}['appendMutation'](_0x23b656){const _0xfdb959=_0x85662d;this[_0xfdb959(0x4a3)]();let _0x99ab43=this['_injector'][_0xfdb959(0x2e8)](j,this[_0xfdb959(0x357)],this[_0xfdb959(0x212)],this[_0xfdb959(0x1fb)],[_0x23b656],this['_handler'],this[_0xfdb959(0x26c)]);return _0x99ab43[_0xfdb959(0x4f1)](),_0x99ab43;}[_0x85662d(0x27c)](_0x212899){const _0x43e39f=_0x85662d;if(this['_checkMissing'](_0x212899))return this[_0x43e39f(0x4a3)](),this[_0x43e39f(0x3f3)][_0x43e39f(0x2e8)](P,this['unitID'],this[_0x43e39f(0x212)],this[_0x43e39f(0x1fb)],[],null,[_0x212899],this[_0x43e39f(0x49f)]);try{let _0x16608b=this['_transformService']['transformChangesets']([_0x212899],[this[_0x43e39f(0x1fb)]],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x16608b)){let {c1Prime:_0x4f679a,c2Prime:_0x7b0f41}=_0x16608b;this[_0x43e39f(0x3a3)](_0x4f679a[0x0]),_0x7b0f41[0x0][_0x43e39f(0x341)]=this[_0x43e39f(0x491)](),this['_clearScheduledTask']();let _0x49bd94=this[_0x43e39f(0x3f3)][_0x43e39f(0x2e8)](Re,this['unitID'],this['type'],_0x7b0f41[0x0],this['_handler']);return _0x49bd94[_0x43e39f(0x4f1)](),_0x49bd94;}throw _0x16608b[_0x43e39f(0x3cc)];}catch(_0x46e1b2){return this[_0x43e39f(0x29f)]['error'](_0x46e1b2),this[_0x43e39f(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x2a54e4){const _0x4d3e04=_0x85662d;this['_clearScheduledTask']();let _0x53c638=this['_revisionService'][_0x4d3e04(0x337)](this[_0x4d3e04(0x357)]);if(_0x2a54e4[_0x4d3e04(0x46f)]<=_0x53c638)return this;if(this[_0x4d3e04(0x24a)](_0x2a54e4))return this['_injector']['createInstance'](P,this['unitID'],this[_0x4d3e04(0x212)],this[_0x4d3e04(0x1fb)],[],_0x2a54e4[_0x4d3e04(0x46f)],[],this[_0x4d3e04(0x49f)]);this[_0x4d3e04(0x26f)]();let _0x3f755f=this[_0x4d3e04(0x3f3)][_0x4d3e04(0x2e8)](O,this[_0x4d3e04(0x357)],this[_0x4d3e04(0x212)],this['_handler']);return _0x3f755f['_updateLocalCache'](),_0x3f755f;}[_0x85662d(0x388)](_0x5a709d){const _0x23f836=_0x85662d;return this[_0x23f836(0x2ed)](!!(_0x5a709d!=null&&_0x5a709d[_0x23f836(0x4a8)]));}['onRemoteRetry'](_0xd4eee6){const _0x3e6c2f=_0x85662d;return this[_0x3e6c2f(0x34c)]>He?this[_0x3e6c2f(0x455)]():(this[_0x3e6c2f(0x26c)]=Ie(this[_0x3e6c2f(0x250)],{'timeout':this['_resendTimeout'],'reqId':_0xd4eee6[_0x3e6c2f(0x1ce)]}),this[_0x3e6c2f(0x1d9)]=this[_0x3e6c2f(0x26c)][_0x3e6c2f(0x46c)](({reqId:_0x5222f9,timeout:_0x3b9f76})=>{const _0x638a68=_0x3e6c2f;this[_0x638a68(0x464)](_0x5222f9,_0x3b9f76);}),this);}[_0x85662d(0x455)](){const _0x29f898=_0x85662d;return this[_0x29f898(0x4a3)](),this['_injector'][_0x29f898(0x2e8)](N,this['unitID'],this[_0x29f898(0x212)],this[_0x29f898(0x1fb)],[],this['_handler']);}[_0x85662d(0x44c)](){return this;}[_0x85662d(0x2ef)](){const _0x5271fd=_0x85662d;this[_0x5271fd(0x49f)][_0x5271fd(0x411)](this[_0x5271fd(0x1fb)]);}[_0x85662d(0x2ed)](_0x31309b){const _0x171438=_0x85662d;return this[_0x171438(0x4a3)](),this[_0x171438(0x3f3)][_0x171438(0x2e8)](M,this[_0x171438(0x357)],this['type'],this['_awaitingChangeset'],[],this[_0x171438(0x49f)],_0x31309b);}['_resendWithTimeout'](_0xdfb237,_0x1c4662){const _0x5b836d=_0x85662d;var _0x16bf59;_0xdfb237===((_0x16bf59=this[_0x5b836d(0x1fb)])==null?void 0x0:_0x16bf59[_0x5b836d(0x1ce)])&&(this[_0x5b836d(0x2ef)](),this[_0x5b836d(0x250)]=_0x1c4662===0x0?0x3e8:Math[_0x5b836d(0x319)](_0x1c4662*0x2,Ve),this[_0x5b836d(0x34c)]+=this[_0x5b836d(0x250)]);}['_clearScheduledTask'](){const _0x1f3ae5=_0x85662d;var _0x1aafb0;(_0x1aafb0=this[_0x1f3ae5(0x1d9)])==null||_0x1aafb0[_0x1f3ae5(0x269)](),this['_resendTimeout']=0x0,this[_0x1f3ae5(0x34c)]=0x0;}};A=Re=y([v(0x4,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x5,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x6,t[_0x85662d(0x448)]),v(0x7,t[_0x85662d(0x3a4)]),v(0x8,e[_0x85662d(0x301)]),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x85662d(0x32e)])(S))],A);let j=ze=class extends D{constructor(_0x1fefc8,_0xf49f71,_0x219a22,_0x3442c7,_0x37bdfa,_0x504780,_0x3419a8,_0x3a3275,_0x1fe20c,_0x101a35,_0x3f6ff5,_0x5b8b72,_0x31214f){const _0x3bd3f5=_0x85662d;super(_0x1fefc8,_0xf49f71,_0x219a22,_0x3442c7,_0x37bdfa,_0x1fe20c,_0x5b8b72,_0x3a3275,_0x31214f),this[_0x3bd3f5(0x3f3)]=_0x3419a8,this[_0x3bd3f5(0x29f)]=_0x101a35,this[_0x3bd3f5(0x30e)]=_0x3f6ff5,this[_0x3bd3f5(0x22b)]=_0x31214f,g(this,_0x3bd3f5(0x2ee),_0x3bd3f5(0x4be)),g(this,_0x3bd3f5(0x250),0x0),g(this,_0x3bd3f5(0x34c),0x0),g(this,_0x3bd3f5(0x26c),void 0x0),g(this,_0x3bd3f5(0x1d9),void 0x0),_0x504780&&(this[_0x3bd3f5(0x26c)]=_0x504780,this[_0x3bd3f5(0x1d9)]=this[_0x3bd3f5(0x26c)][_0x3bd3f5(0x46c)](({reqId:_0x3ecc62,timeout:_0x2dc785})=>{const _0xb8bff2=_0x3bd3f5;this[_0xb8bff2(0x464)](_0x3ecc62,_0x2dc785);}));}[_0x85662d(0x2bf)](_0x203c69){const _0x37edb5=_0x85662d;return this[_0x37edb5(0x4b3)][_0x37edb5(0x4e6)](_0x203c69),this;}[_0x85662d(0x27c)](_0x54138c){const _0x453294=_0x85662d;if(this[_0x453294(0x24a)](_0x54138c))return this['_clearScheduledTask'](),this[_0x453294(0x3f3)]['createInstance'](P,this[_0x453294(0x357)],this[_0x453294(0x212)],this['_awaitingChangeset'],this['_pendingMutations'],null,[_0x54138c],this[_0x453294(0x49f)]);try{let _0x4c321b=this[_0x453294(0x30e)]['transformChangesets']([_0x54138c],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x453294(0x402)])(_0x4c321b)){let {c1Prime:_0x5e3433,c2Prime:_0x3da3e0}=_0x4c321b,_0x550a3e=this[_0x453294(0x30e)]['transformMutationsWithChangeset'](_0x5e3433[0x0],this[_0x453294(0x4b3)]);if((0x0,e[_0x453294(0x45b)])(_0x550a3e)){let {c1Prime:_0x4eefdf,m2Prime:_0x366c26}=_0x550a3e;return this[_0x453294(0x3a3)](_0x4eefdf),_0x3da3e0[0x0][_0x453294(0x341)]=this[_0x453294(0x491)](),this[_0x453294(0x4a3)](),this['_injector']['createInstance'](ze,this[_0x453294(0x357)],this[_0x453294(0x212)],_0x3da3e0[0x0],_0x366c26,this[_0x453294(0x49f)],void 0x0);}throw _0x550a3e[_0x453294(0x3cc)];}throw _0x4c321b[_0x453294(0x3cc)];}catch(_0x3c382e){return this[_0x453294(0x29f)][_0x453294(0x3cc)](_0x3c382e),this[_0x453294(0x2ed)](!0x1);}}[_0x85662d(0x347)](_0x405957){const _0x297626=_0x85662d;this[_0x297626(0x4a3)]();let _0x16197d=this['_getCurrentRevision']();if(_0x405957[_0x297626(0x46f)]<=_0x16197d)return this;if(this[_0x297626(0x24a)](_0x405957))return this[_0x297626(0x3f3)][_0x297626(0x2e8)](P,this['unitID'],this[_0x297626(0x212)],this[_0x297626(0x1fb)],this[_0x297626(0x4b3)],_0x405957['revision'],[],this[_0x297626(0x49f)]);this[_0x297626(0x26f)]();let _0x555a1b=this[_0x297626(0x3f3)][_0x297626(0x2e8)](k,this[_0x297626(0x357)],this[_0x297626(0x212)],this['_pendingMutations'],this[_0x297626(0x49f)]);return _0x555a1b[_0x297626(0x307)](),_0x555a1b[_0x297626(0x4f1)](),_0x555a1b;}['onRemoteRej'](_0x3b3d66){const _0x23fafb=_0x85662d;return this[_0x23fafb(0x2ed)](!!(_0x3b3d66!=null&&_0x3b3d66[_0x23fafb(0x4a8)]));}[_0x85662d(0x282)](_0x5dda80){const _0x45306f=_0x85662d;return this[_0x45306f(0x34c)]>He?this[_0x45306f(0x455)]():(this[_0x45306f(0x26c)]=Ie(this[_0x45306f(0x250)],{'timeout':this[_0x45306f(0x250)],'reqId':_0x5dda80[_0x45306f(0x1ce)]}),this['_sender']=this[_0x45306f(0x26c)]['subscribe'](({reqId:_0x28ae47,timeout:_0x23d20a})=>{this['_resendWithTimeout'](_0x28ae47,_0x23d20a);}),this);}[_0x85662d(0x455)](){const _0x1c0951=_0x85662d;return this['_clearScheduledTask'](),this[_0x1c0951(0x3f3)][_0x1c0951(0x2e8)](N,this[_0x1c0951(0x357)],this[_0x1c0951(0x212)],this[_0x1c0951(0x1fb)],this[_0x1c0951(0x4b3)],this[_0x1c0951(0x49f)]);}[_0x85662d(0x44c)](){return this;}['resend'](){const _0x45c1fb=_0x85662d;this[_0x45c1fb(0x49f)]['onSendChangeset'](this[_0x45c1fb(0x1fb)]);}[_0x85662d(0x2ed)](_0x3de8d0){const _0x1c574a=_0x85662d;return this['_clearScheduledTask'](),this[_0x1c574a(0x3f3)][_0x1c574a(0x2e8)](M,this[_0x1c574a(0x357)],this[_0x1c574a(0x212)],null,this[_0x1c574a(0x4b3)],this['_handler'],_0x3de8d0);}[_0x85662d(0x464)](_0x2d126c,_0x1c1272){const _0x53b388=_0x85662d;var _0x2ea59f;_0x2d126c===((_0x2ea59f=this['_awaitingChangeset'])==null?void 0x0:_0x2ea59f['reqId'])&&(this['resend'](),this[_0x53b388(0x250)]=_0x1c1272===0x0?0x3e8:Math[_0x53b388(0x319)](_0x1c1272*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x53b388(0x250)]);}[_0x85662d(0x4a3)](){const _0x31ea6=_0x85662d;var _0x5bf2a1;(_0x5bf2a1=this[_0x31ea6(0x1d9)])==null||_0x5bf2a1[_0x31ea6(0x269)](),this[_0x31ea6(0x250)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};j=ze=y([v(0x6,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x7,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x8,t['ICommandService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,e[_0x85662d(0x301)]),v(0xb,t[_0x85662d(0x249)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(S))],j);let M=class extends D{constructor(_0x1874f6,_0x4575f7,_0x3ae217,_0xe93c79,_0x3fcac9,_0x31cc3b=!0x1,_0x4174c6,_0x55651c,_0x36a980,_0x2215b7,_0xef4348,_0x3259c8,_0x3ec51f){const _0xc65fa5=_0x85662d;super(_0x1874f6,_0x4575f7,_0x3ae217,_0xe93c79,_0x3fcac9,_0x55651c,_0x36a980,_0x2215b7,_0x3ec51f),this[_0xc65fa5(0x2d1)]=_0x31cc3b,this[_0xc65fa5(0x23c)]=_0x4174c6,this[_0xc65fa5(0x356)]=_0xef4348,this[_0xc65fa5(0x46e)]=_0x3259c8,this[_0xc65fa5(0x22b)]=_0x3ec51f,g(this,_0xc65fa5(0x2ee),'conflict'),this[_0xc65fa5(0x1cc)](),this['_clearLocalCache'](),this[_0xc65fa5(0x370)]();}['appendMutation'](){return this;}[_0x85662d(0x27c)](){return this;}['onRemoteAck'](){return this;}[_0x85662d(0x388)](){return this;}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){return this;}['toggleOnline'](){return this;}[_0x85662d(0x2ef)](){const _0x4f6297=_0x85662d;throw Error(_0x4f6297(0x2f7));}[_0x85662d(0x2d8)](){const _0x11e066=_0x85662d;var _0x1709e6,_0x26b989,_0x59e4ba;(_0x1709e6=this[_0x11e066(0x1f4)])==null||(_0x26b989=_0x1709e6[_0x11e066(0x4ee)])==null||(_0x26b989=_0x26b989['call'](_0x1709e6,this[_0x11e066(0x357)],_0x11e066(0x1d0)))==null||_0x26b989[_0x11e066(0x4a5)](()=>void 0x0),(_0x59e4ba=this[_0x11e066(0x1f4)])==null||_0x59e4ba[_0x11e066(0x437)](this[_0x11e066(0x357)],this[_0x11e066(0x212)],null,[]);}['_showConflictNotification'](){const _0x4e800c=_0x85662d;this['_isPermissionRej']?this[_0x4e800c(0x46e)][_0x4e800c(0x3ae)]({'id':_0x4e800c(0x2a7)}):this[_0x4e800c(0x46e)][_0x4e800c(0x3ae)]({'id':_0x4e800c(0x374)});}[_0x85662d(0x370)](){const _0x3ee06c=_0x85662d;this['_permissionService']['updatePermissionPoint'](new r[(_0x3ee06c(0x416))](this[_0x3ee06c(0x357)])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x4f4)])),v(0x7,t[_0x85662d(0x448)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0xa,(0x0,t[_0x85662d(0x340)])(t['LocaleService'])),v(0xb,(0x0,t[_0x85662d(0x340)])(_)),v(0xc,(0x0,t[_0x85662d(0x32e)])(S))],M);let N=class extends D{constructor(_0xf2acc5,_0x6d5f02,_0x5c1511,_0x3a753c,_0x205007,_0x3b6f69,_0x3de831,_0x880355,_0xec1c7f,_0x342960){const _0x367289=_0x85662d;super(_0xf2acc5,_0x6d5f02,_0x5c1511,_0x3a753c,_0x205007,_0x880355,_0xec1c7f,_0x3de831,_0x342960),this['_injector']=_0x3b6f69,g(this,_0x367289(0x2ee),_0x367289(0x404));}[_0x85662d(0x2bf)](_0x19415c){const _0x1725e6=_0x85662d;return this[_0x1725e6(0x4b3)][_0x1725e6(0x4e6)](_0x19415c),this[_0x1725e6(0x4f1)](),this;}[_0x85662d(0x27c)](_0x44ec48){const _0xa028ae=_0x85662d;throw Error(_0xa028ae(0x3f0));}[_0x85662d(0x347)](){const _0x3e95ec=_0x85662d;throw Error(_0x3e95ec(0x3d1));}[_0x85662d(0x388)](){const _0xe53cec=_0x85662d;throw Error(_0xe53cec(0x4eb));}[_0x85662d(0x282)](){return this;}[_0x85662d(0x455)](){return this;}[_0x85662d(0x44c)](){let {_injector:_0x4de471,_pendingMutations:_0x1a801e,_awaitingChangeset:_0x21c6c6,unitID:_0x533519,_handler:_0x485c55,type:_0x577655}=this,_0x5e453d=Ue(_0x4de471,_0x533519,_0x577655,_0x21c6c6,_0x1a801e,_0x485c55);return _0x5e453d instanceof k?_0x5e453d['_schedule']():(_0x5e453d instanceof j||_0x5e453d instanceof A)&&_0x5e453d['resend'](),_0x5e453d;}[_0x85662d(0x2ef)](){const _0x528e1d=_0x85662d;throw Error(_0x528e1d(0x3ff));}};N=y([v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,t[_0x85662d(0x448)]),v(0x8,t[_0x85662d(0x249)]),v(0x9,(0x0,t[_0x85662d(0x32e)])(S))],N);let P=class extends D{constructor(_0x31c6de,_0x59a597,_0x1fc1b3,_0x253bd7,_0x353f2d,_0x55cbef,_0x4c0be4,_0x4a71f3,_0x16231b,_0x3b4177,_0x242323,_0x5d4ff6,_0x55f2de,_0x2b0066){const _0x541849=_0x85662d;super(_0x31c6de,_0x59a597,_0x1fc1b3,_0x253bd7,_0x4c0be4,_0x242323,_0x5d4ff6,_0x16231b,_0x2b0066),this[_0x541849(0x44f)]=_0x353f2d,this['_queuedRemoteChangesets']=_0x55cbef,this[_0x541849(0x3f3)]=_0x4a71f3,this[_0x541849(0x29f)]=_0x3b4177,this[_0x541849(0x30e)]=_0x55f2de,this[_0x541849(0x22b)]=_0x2b0066,g(this,'status',_0x541849(0x4e1));}[_0x85662d(0x1df)](_0x35035f){const _0x1e4c96=_0x85662d;try{if(this[_0x1e4c96(0x321)](_0x35035f)[_0x1e4c96(0x23e)])throw Error(_0x1e4c96(0x2b8));if(this[_0x1e4c96(0x321)]([...this[_0x1e4c96(0x1d1)]][_0x1e4c96(0x27e)]((_0x4ffee2,_0x529daf)=>_0x4ffee2[_0x1e4c96(0x46f)]-_0x529daf[_0x1e4c96(0x46f)]))[_0x1e4c96(0x23e)])return this[_0x1e4c96(0x1d1)]=[],this[_0x1e4c96(0x4f1)](),this['_handler']['onMissingChangesets']({'from':this['_getCurrentRevision'](),'to':0x0}),this;let _0xed8984=this[_0x1e4c96(0x1fb)],_0x3f8b7a=this['_pendingMutations'],_0x4ce654;if(_0xed8984&&_0x3f8b7a[_0x1e4c96(0x45a)]!==0x0)_0x4ce654=this[_0x1e4c96(0x3f3)]['createInstance'](j,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],_0xed8984,_0x3f8b7a,this[_0x1e4c96(0x49f)],void 0x0);else{if(_0xed8984&&_0x3f8b7a[_0x1e4c96(0x45a)]===0x0)_0xed8984[_0x1e4c96(0x341)]=this[_0x1e4c96(0x491)](),_0x4ce654=this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](A,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],_0xed8984,this[_0x1e4c96(0x49f)]);else{if(_0x3f8b7a[_0x1e4c96(0x45a)]!==0x0){let _0x2337f7=this['_injector'][_0x1e4c96(0x2e8)](k,this['unitID'],this['type'],_0x3f8b7a,this[_0x1e4c96(0x49f)]);_0x2337f7[_0x1e4c96(0x307)](),_0x4ce654=_0x2337f7;}else _0x4ce654=this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](O,this['unitID'],this['type'],this['_handler']);}}return _0x4ce654[_0x1e4c96(0x4f1)](),_0x4ce654;}catch(_0x477167){return this['_logService']['error'](_0x1e4c96(0x3e9),_0x1e4c96(0x318),_0x477167),this[_0x1e4c96(0x3f3)][_0x1e4c96(0x2e8)](M,this[_0x1e4c96(0x357)],this[_0x1e4c96(0x212)],this[_0x1e4c96(0x1fb)],this[_0x1e4c96(0x4b3)],this[_0x1e4c96(0x49f)],!0x1);}}[_0x85662d(0x321)](_0x10b83c){const _0x4b7cbe=_0x85662d;this[_0x4b7cbe(0x2be)]();for(let _0x180730=0x0;_0x180730<_0x10b83c['length'];_0x180730++){let _0x97fb14=_0x10b83c[_0x180730],_0x55b4e8=this[_0x4b7cbe(0x491)]();if(!(_0x97fb14[_0x4b7cbe(0x46f)]<=_0x55b4e8)){if(_0x97fb14['revision']>_0x55b4e8+0x1)return{'missingChangesets':!0x0};if(this[_0x4b7cbe(0x4e8)](_0x97fb14)){this['_acknowledgeAwaiting']();continue;}this[_0x4b7cbe(0x3bf)](_0x97fb14),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x1211ac){const _0x34194d=_0x85662d;let _0x4d1bc9=_0x1211ac,_0x2f3f0a=this[_0x34194d(0x1fb)];if(_0x2f3f0a){let _0x244fa2=this['_transformService']['transformChangesets']([_0x1211ac],[_0x2f3f0a],!0x1);if(!(0x0,e[_0x34194d(0x402)])(_0x244fa2))throw _0x244fa2[_0x34194d(0x3cc)];_0x4d1bc9=_0x244fa2[_0x34194d(0x237)][0x0],_0x2f3f0a=_0x244fa2[_0x34194d(0x24c)][0x0];}let _0x18bf99=this[_0x34194d(0x4b3)];if(_0x18bf99[_0x34194d(0x45a)]){let _0x34ee54=this['_transformService'][_0x34194d(0x3cf)](_0x4d1bc9,_0x18bf99);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x34ee54))throw _0x34ee54[_0x34194d(0x3cc)];_0x4d1bc9=_0x34ee54[_0x34194d(0x237)],_0x18bf99=_0x34ee54[_0x34194d(0x2f8)];}this[_0x34194d(0x3a3)](_0x4d1bc9),_0x2f3f0a&&(_0x2f3f0a[_0x34194d(0x341)]=this[_0x34194d(0x491)]()),this[_0x34194d(0x1fb)]=_0x2f3f0a,this['_pendingMutations']=_0x18bf99;}[_0x85662d(0x2be)](){const _0x27231b=_0x85662d;if(!this['_awaitingChangeset']||this[_0x27231b(0x44f)]==null)return;let _0x4797d1=this[_0x27231b(0x491)]();if(this[_0x27231b(0x44f)]<=_0x4797d1)throw Error(_0x27231b(0x2d4)+this[_0x27231b(0x44f)]+'.');this[_0x27231b(0x44f)]===_0x4797d1+0x1&&this[_0x27231b(0x3dd)]();}['_acknowledgeAwaiting'](){const _0x23b911=_0x85662d;this['_incrementRevisionNumber'](),this[_0x23b911(0x1fb)]=null,this[_0x23b911(0x44f)]=null;}[_0x85662d(0x4e8)](_0x14783f){const _0x53a5f7=_0x85662d;let _0x1b2f76=this['_awaitingChangeset'];return!_0x1b2f76||!_0x1b2f76[_0x53a5f7(0x3a0)]||_0x1b2f76[_0x53a5f7(0x1ce)]===null||_0x1b2f76[_0x53a5f7(0x1ce)]===void 0x0?!0x1:_0x14783f[_0x53a5f7(0x357)]===_0x1b2f76[_0x53a5f7(0x357)]&&_0x14783f[_0x53a5f7(0x3a0)]===_0x1b2f76['sid']&&_0x14783f['reqId']===_0x1b2f76['reqId'];}[_0x85662d(0x2ef)](){const _0x3ede61=_0x85662d;throw Error(_0x3ede61(0x436));}['appendMutation'](_0x47006e){const _0x2bd76a=_0x85662d;return this['_pendingMutations'][_0x2bd76a(0x4e6)](_0x47006e),this;}[_0x85662d(0x27c)](_0x24c8c4){const _0xc61f8b=_0x85662d;return this[_0xc61f8b(0x1d1)][_0xc61f8b(0x4e6)](_0x24c8c4),this;}[_0x85662d(0x347)](_0x56543a){const _0x51943f=_0x85662d;if(this[_0x51943f(0x1fb)]){let _0x5d3ac7=this[_0x51943f(0x491)]();return _0x56543a['revision']<=_0x5d3ac7||(_0x5d3ac7+0x1===_0x56543a[_0x51943f(0x46f)]?(this[_0x51943f(0x26f)](),this[_0x51943f(0x1fb)]=null,this[_0x51943f(0x44f)]=null):this[_0x51943f(0x44f)]=_0x56543a[_0x51943f(0x46f)]),this;}if(_0x56543a['revision']<=this['_getCurrentRevision']())return this;throw Error(_0x51943f(0x2bb));}[_0x85662d(0x388)](_0x5ad611){const _0x59ba8e=_0x85662d;return this[_0x59ba8e(0x2ed)](!!(_0x5ad611!=null&&_0x5ad611['isPermissionRej']));}[_0x85662d(0x282)](){return this;}['toggleOffline'](){const _0x8144d5=_0x85662d;return this[_0x8144d5(0x3f3)][_0x8144d5(0x2e8)](N,this[_0x8144d5(0x357)],this['type'],this[_0x8144d5(0x1fb)],this[_0x8144d5(0x4b3)],this[_0x8144d5(0x49f)]);}[_0x85662d(0x44c)](){return this;}['_onConflict'](_0x33aa67){const _0x5db760=_0x85662d;return this[_0x5db760(0x3f3)]['createInstance'](M,this[_0x5db760(0x357)],this[_0x5db760(0x212)],this[_0x5db760(0x1fb)],this[_0x5db760(0x4b3)],this['_handler'],_0x33aa67);}};P=y([v(0x7,(0x0,t['Inject'])(t['Injector'])),v(0x8,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t[_0x85662d(0x249)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t['Optional'])(S))],P);function Ue(_0x594975,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x3387b1,_0x1af369){const _0x3efcea=_0x85662d;return _0x40be76&&_0x3387b1[_0x3efcea(0x45a)]?_0x594975[_0x3efcea(0x2e8)](j,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x3387b1,_0x1af369,void 0x0):_0x40be76?_0x594975[_0x3efcea(0x2e8)](A,_0x40d9f3,_0x1ddfe9,_0x40be76,_0x1af369):_0x3387b1['length']?_0x594975[_0x3efcea(0x2e8)](k,_0x40d9f3,_0x1ddfe9,_0x3387b1,_0x1af369):_0x594975[_0x3efcea(0x2e8)](O,_0x40d9f3,_0x1ddfe9,_0x1af369);}let F=class extends t['RxDisposable']{get[_0x85662d(0x234)](){return this['_state'];}constructor(_0x3203eb,_0x285f6d,_0x483616,_0x4e1fc7,_0x2880c3,_0x14a7dd,_0x27e8c3,_0x54bb26,_0x4a8011,_0x420587,_0x2359b1,_0xa6bd0f,_0x343f3e,_0x1c4f1b){const _0x1ea154=_0x85662d;super(),this[_0x1ea154(0x357)]=_0x3203eb,this[_0x1ea154(0x1cf)]=_0x285f6d,this[_0x1ea154(0x4e3)]=_0x483616,this['_injector']=_0x4e1fc7,this['_compressMutationService']=_0x2880c3,this[_0x1ea154(0x356)]=_0x14a7dd,this[_0x1ea154(0x352)]=_0x27e8c3,this[_0x1ea154(0x311)]=_0x54bb26,this[_0x1ea154(0x22a)]=_0x4a8011,this['_logService']=_0x420587,this[_0x1ea154(0x3d5)]=_0x2359b1,this[_0x1ea154(0x23c)]=_0xa6bd0f,this[_0x1ea154(0x429)]=_0x343f3e,this[_0x1ea154(0x1f4)]=_0x1c4f1b,g(this,'_state$',new i[(_0x1ea154(0x475))](null)),g(this,_0x1ea154(0x3eb),this[_0x1ea154(0x243)]['asObservable']()),g(this,_0x1ea154(0x2e2),void 0x0),g(this,_0x1ea154(0x33b),!0x1),g(this,_0x1ea154(0x2b0),''),g(this,_0x1ea154(0x478),0x0),g(this,'status$',this[_0x1ea154(0x3eb)][_0x1ea154(0x4bd)]((0x0,i['map'])(_0x169a73=>_0x169a73?_0x169a73[_0x1ea154(0x2ee)]:_0x1ea154(0x404)),(0x0,i[_0x1ea154(0x226)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x1ea154(0x496),!0x1),g(this,_0x1ea154(0x21c),[]);}async[_0x85662d(0x30d)](){const _0x14ccf0=_0x85662d;if(this[_0x14ccf0(0x234)])throw Error(_0x14ccf0(0x3bc));await this[_0x14ccf0(0x38c)]();}[_0x85662d(0x228)](){const _0x30a88e=_0x85662d;return this[_0x30a88e(0x33b)]=!0x0,(0x0,t[_0x30a88e(0x3d6)])(()=>{const _0x41b8b3=_0x30a88e;this[_0x41b8b3(0x33b)]=!0x1,this[_0x41b8b3(0x31b)]();});}['onLocalMutation'](_0x5804b8){const _0x5028e4=_0x85662d;this[_0x5028e4(0x45f)](_0x5804b8);}['_updateState'](_0x1d6637){const _0x59068a=_0x85662d;this[_0x59068a(0x2e2)]=_0x1d6637,this['_state$'][_0x59068a(0x49a)](_0x1d6637);}async[_0x85662d(0x38c)](){const _0x410be0=_0x85662d;if(this[_0x410be0(0x382)](await this[_0x410be0(0x4dd)]()),this[_0x410be0(0x429)]){var _0x46982b;(_0x46982b=this[_0x410be0(0x429)])==null||_0x46982b['editingUnit'](this[_0x410be0(0x357)]),this[_0x410be0(0x221)](this[_0x410be0(0x429)]['getUnitStatus$'](this[_0x410be0(0x357)])[_0x410be0(0x46c)](_0x4dcf52=>{const _0x2e0238=_0x410be0;this[_0x2e0238(0x29f)][_0x2e0238(0x3a9)](_0x2e0238(0x42e),_0x2e0238(0x2c6),_0x4dcf52),_0x4dcf52===0x1?(this[_0x2e0238(0x311)][_0x2e0238(0x3ae)]({'id':_0x2e0238(0x4c4)}),this[_0x2e0238(0x23c)][_0x2e0238(0x27a)](new r[(_0x2e0238(0x416))](this['unitID'])['id'],!0x1),this[_0x2e0238(0x23c)][_0x2e0238(0x3c1)](!0x1)):(this[_0x2e0238(0x23c)][_0x2e0238(0x27a)](new r[(_0x2e0238(0x416))](this[_0x2e0238(0x357)])['id'],!0x0),this[_0x2e0238(0x23c)][_0x2e0238(0x3c1)](!0x0));}));}let _0x5856e9=!0x1;return this['disposeWithMe'](this[_0x410be0(0x1cf)][_0x410be0(0x332)][_0x410be0(0x46c)](_0x3d8e82=>{const _0x50bb3f=_0x410be0;_0x3d8e82===0x3?this[_0x50bb3f(0x4ba)](_0x5856e9):_0x3d8e82===0x2&&(_0x5856e9=!0x0,this[_0x50bb3f(0x25a)]());})),this[_0x410be0(0x221)](this[_0x410be0(0x1cf)]['event$'][_0x410be0(0x46c)](_0xa1e891=>{const _0xa9ec1a=_0x410be0;try{switch(_0xa1e891[_0xa9ec1a(0x336)]){case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x2ae)]:this[_0xa9ec1a(0x32d)]((0x0,e[_0xa9ec1a(0x486)])(_0xa1e891[_0xa9ec1a(0x28a)]));break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x410)]:this[_0xa9ec1a(0x230)](_0xa1e891[_0xa9ec1a(0x28a)]);break;case e['CollaborationEvent'][_0xa9ec1a(0x4ef)]:this[_0xa9ec1a(0x23d)]();break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x2c9)]:this[_0xa9ec1a(0x2b2)](_0xa1e891[_0xa9ec1a(0x28a)]);break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x4b1)]:this['_onFetchMissResult'](_0xa1e891['data'][_0xa9ec1a(0x251)][_0xa9ec1a(0x3fc)](_0x2d509d=>(0x0,e['parseProtocolChangeset'])(_0x2d509d)));break;case e[_0xa9ec1a(0x3fb)][_0xa9ec1a(0x48a)]:this[_0xa9ec1a(0x23d)]({'isPermissionRej':!0x0});break;case e[_0xa9ec1a(0x3fb)]['UNISCRIPT_RUN']:break;}}catch(_0x247068){throw console[_0xa9ec1a(0x3cc)](_0xa9ec1a(0x48e),_0x247068),_0x247068;}})),this[_0x410be0(0x2e2)];}[_0x85662d(0x424)](){const _0x148400=_0x85662d;this[_0x148400(0x496)]=!0x1;}['_lockTransition'](){const _0x301d45=_0x85662d;if(this['_transitionLocked'])throw Error(_0x301d45(0x317));this[_0x301d45(0x496)]=!0x0;}[_0x85662d(0x45f)](_0x55b940){const _0x4f2dce=_0x85662d;this['_lockTransition'](),this[_0x4f2dce(0x382)](this[_0x4f2dce(0x2e2)]['appendMutation'](_0x55b940)),this['_unlockTransition']();}[_0x85662d(0x32d)](_0x262d9a){const _0x10c84e=_0x85662d;if(!(_0x262d9a[_0x10c84e(0x46f)]<=this[_0x10c84e(0x352)][_0x10c84e(0x337)](this[_0x10c84e(0x357)]))){if(this[_0x10c84e(0x33b)]){this['_remoteChangesetQueue'][_0x10c84e(0x4e6)](_0x262d9a);return;}this[_0x10c84e(0x37e)](_0x262d9a);}}['_exhaustRemoteChangesetQueue'](){const _0x50f2ae=_0x85662d;this['_remoteChangesetQueue'][_0x50f2ae(0x30f)](_0x3a711b=>this['_applyRemoteChangeset'](_0x3a711b)),this[_0x50f2ae(0x21c)]=[];}[_0x85662d(0x37e)](_0x4ef358){const _0x42fa09=_0x85662d;let _0x19bce5=this[_0x42fa09(0x2c2)][_0x42fa09(0x313)][_0x42fa09(0x1f5)](this['_compressMutationService']['interceptor'][_0x42fa09(0x474)]()['COMPRESS_MUTATION_APPLY'])(_0x4ef358[_0x42fa09(0x406)],null)||_0x4ef358[_0x42fa09(0x406)],_0x3a21ce={..._0x4ef358,'mutations':_0x19bce5};this[_0x42fa09(0x2fa)](),this[_0x42fa09(0x382)](this['_state'][_0x42fa09(0x27c)](_0x3a21ce)),this['_unlockTransition']();}[_0x85662d(0x230)](_0x4d9755){const _0x33c434=_0x85662d;this[_0x33c434(0x2fa)](),this[_0x33c434(0x382)](this[_0x33c434(0x2e2)]['onRemoteAck'](_0x4d9755)),this[_0x33c434(0x424)]();}[_0x85662d(0x23d)](_0x1b037a){const _0x241b92=_0x85662d;this['_lockTransition'](),this['_updateState'](this[_0x241b92(0x2e2)][_0x241b92(0x388)](_0x1b037a)),this[_0x241b92(0x424)]();}[_0x85662d(0x2b2)](_0x25faec){const _0x1da11a=_0x85662d;this[_0x1da11a(0x2fa)](),this[_0x1da11a(0x382)](this[_0x1da11a(0x2e2)][_0x1da11a(0x282)](_0x25faec)),this[_0x1da11a(0x424)]();}[_0x85662d(0x473)](_0x2a88c9){const _0x289ca5=_0x85662d;if(!(this['_state']instanceof P))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x23cd29=_0x2a88c9['map'](_0x58218f=>{const _0xf63e92=_0x342d;let _0x1318a9=this[_0xf63e92(0x2c2)][_0xf63e92(0x313)][_0xf63e92(0x1f5)](this[_0xf63e92(0x2c2)][_0xf63e92(0x313)][_0xf63e92(0x474)]()[_0xf63e92(0x351)])(_0x58218f[_0xf63e92(0x406)],null)||_0x58218f[_0xf63e92(0x406)];return{..._0x58218f,'mutations':_0x1318a9};});this[_0x289ca5(0x2fa)](),this[_0x289ca5(0x382)](this[_0x289ca5(0x2e2)]['onMissedChangesetFetched'](_0x23cd29)),this[_0x289ca5(0x424)]();}[_0x85662d(0x25a)](){const _0x1bf2b8=_0x85662d;this[_0x1bf2b8(0x2fa)](),this[_0x1bf2b8(0x382)](this[_0x1bf2b8(0x2e2)]['toggleOffline']()),this[_0x1bf2b8(0x424)]();}[_0x85662d(0x4ba)](_0x41696c=!0x1){const _0x48e54e=_0x85662d;this[_0x48e54e(0x2fa)](),this[_0x48e54e(0x382)](this[_0x48e54e(0x2e2)][_0x48e54e(0x44c)]()),this[_0x48e54e(0x424)]();let _0x544837=this[_0x48e54e(0x2e2)];_0x41696c&&_0x544837 instanceof O&&(this[_0x48e54e(0x2fa)](),this[_0x48e54e(0x382)](_0x544837[_0x48e54e(0x359)]()),this['_unlockTransition']());}async[_0x85662d(0x4dd)](){return new Promise(_0xea8d2c=>{const _0x5ac276=_0x342d;this[_0x5ac276(0x1cf)][_0x5ac276(0x332)][_0x5ac276(0x4bd)]((0x0,i[_0x5ac276(0x3e5)])(0x1))['subscribe'](async _0x4a4758=>{const _0x4c2320=_0x5ac276;_0xea8d2c(await this[_0x4c2320(0x1e4)](_0x4a4758===0x3));});});}[_0x85662d(0x2a4)](){const _0x34bd20=_0x85662d;let _0x441eca=this[_0x34bd20(0x357)];return{'onStateChange':(_0x17eb35,_0x370427)=>{const _0x2e5848=_0x34bd20;if(_0x17eb35!==this['_state'])throw Error(_0x2e5848(0x2d0)+_0x17eb35['status']+_0x2e5848(0x23f)+_0x370427[_0x2e5848(0x2ee)]+'\x0aCurrent:\x20'+this[_0x2e5848(0x2e2)]['status']);this[_0x2e5848(0x382)](_0x370427);},'onSendChangeset':_0x3a5511=>{const _0x5f0507=_0x34bd20;_0x3a5511[_0x5f0507(0x3a0)]||(_0x3a5511[_0x5f0507(0x3a0)]=this[_0x5f0507(0x2b0)],_0x3a5511[_0x5f0507(0x1ce)]=++this['_changesetReqId']);let _0x27db60={'eventID':e[_0x5f0507(0x3fb)][_0x5f0507(0x4c6)],'data':{'unitID':_0x3a5511['unitID'],'unitType':this[_0x5f0507(0x4e3)],'changeset':_0x3a5511,'memberID':this['session']['getMemberID']()}};this[_0x5f0507(0x1cf)][_0x5f0507(0x48b)](_0x27db60,this[_0x5f0507(0x357)]);},'onMissingChangesets':({from:_0x425153,to:_0x52504b})=>{const _0x1bb8bb=_0x34bd20;this[_0x1bb8bb(0x29f)][_0x1bb8bb(0x3a9)](_0x1bb8bb(0x42e),_0x1bb8bb(0x3b7)+_0x425153+_0x1bb8bb(0x43a)+_0x52504b);let _0x285e63={'eventID':e[_0x1bb8bb(0x3fb)][_0x1bb8bb(0x415)],'data':{'unitID':_0x441eca,'unitType':this[_0x1bb8bb(0x4e3)],'from':_0x425153,'to':_0x52504b}};this[_0x1bb8bb(0x1cf)][_0x1bb8bb(0x48b)](_0x285e63,this[_0x1bb8bb(0x357)]);}};}async[_0x85662d(0x1e4)](_0x25b1eb){const _0xa4f607=_0x85662d;var _0x3aa7ad,_0x4c3892,_0x2c3571;let _0x15da24=await((_0x3aa7ad=this[_0xa4f607(0x1f4)])==null?void 0x0:_0x3aa7ad[_0xa4f607(0x264)](this[_0xa4f607(0x357)])),_0x4c27b0=(_0x4c3892=_0x15da24==null?void 0x0:_0x15da24[_0xa4f607(0x406)])==null?[]:_0x4c3892,_0x124f62=(_0x2c3571=_0x15da24==null?void 0x0:_0x15da24[_0xa4f607(0x4b9)])==null?null:_0x2c3571,_0x528572=!!(_0x124f62!=null&&_0x124f62[_0xa4f607(0x3a0)])&&!!(_0x124f62!=null&&_0x124f62[_0xa4f607(0x1ce)]);this[_0xa4f607(0x2b0)]=_0x528572?_0x124f62[_0xa4f607(0x3a0)]:(0x0,e[_0xa4f607(0x1d5)])(),this['_changesetReqId']=_0x528572?_0x124f62[_0xa4f607(0x1ce)]:0x0;let _0xfce9c=this['unitID'];try{this['_replayCachedMutations'](_0x124f62,_0x4c27b0);}catch(_0x5707ef){this[_0xa4f607(0x29f)][_0xa4f607(0x3cc)](_0x5707ef);}let _0x2f64f1=this['_createHandler']();if(_0x25b1eb){let _0x1fe9e7=Ue(this['_injector'],_0xfce9c,this['_type'],_0x124f62,_0x4c27b0,_0x2f64f1);return _0x1fe9e7 instanceof k?_0x1fe9e7[_0xa4f607(0x307)]():(_0x1fe9e7 instanceof j||_0x1fe9e7 instanceof A)&&_0x1fe9e7[_0xa4f607(0x2ef)](),_0x1fe9e7;}return this[_0xa4f607(0x3f3)][_0xa4f607(0x2e8)](N,_0xfce9c,this['_type'],_0x124f62,_0x4c27b0,_0x2f64f1);}[_0x85662d(0x3f2)](_0x113d82,_0x18ee28){const _0x16e0d2=_0x85662d;var _0x20e27b,_0x27566f;let _0xb5d7cf=this[_0x16e0d2(0x2c2)][_0x16e0d2(0x313)][_0x16e0d2(0x1f5)](this['_compressMutationService'][_0x16e0d2(0x313)]['getInterceptPoints']()[_0x16e0d2(0x351)]);(_0x20e27b=_0xb5d7cf((_0x113d82==null?void 0x0:_0x113d82[_0x16e0d2(0x406)])||[],null))==null||_0x20e27b[_0x16e0d2(0x30f)](_0xbf9634=>this[_0x16e0d2(0x3d5)]['executeCommand'](_0xbf9634['id'],_0xbf9634['params'])),(_0x27566f=_0xb5d7cf(_0x18ee28||[],null))==null||_0x27566f['forEach'](_0x3bd521=>this[_0x16e0d2(0x3d5)]['executeCommand'](_0x3bd521['id'],_0x3bd521[_0x16e0d2(0x3c0)]));}};F=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],F);let I=class extends F{constructor(_0x2f831b,_0x28db75,_0x18fe7e,_0x2e57ca,_0x137184,_0x1bf174,_0x1afaf4,_0x43427e,_0x1d091b,_0x4bde49,_0x3d7c52,_0x36e97b,_0x4be2b9,_0xc8267a,_0x10f527){const _0x1f3141=_0x85662d;super(_0x2f831b,_0x18fe7e,_0x28db75,_0x2e57ca,_0x137184,_0x1bf174,_0x1afaf4,_0x43427e,_0x1d091b,_0x4bde49,_0x3d7c52,_0x36e97b,_0xc8267a,_0x10f527),this['unitID']=_0x2f831b,this['type']=_0x28db75,this[_0x1f3141(0x2e6)]=_0x4be2b9,g(this,_0x1f3141(0x257),null);}[_0x85662d(0x48d)](_0x7c8cb9){const _0x212956=_0x85662d;this[_0x212956(0x257)]=_0x7c8cb9;}[_0x85662d(0x469)](){const _0x13207c=_0x85662d;this[_0x13207c(0x257)]=null,super['dispose']();}[_0x85662d(0x2a4)](){const _0x1887c4=_0x85662d;let _0x33e700=super[_0x1887c4(0x2a4)]();return _0x33e700[_0x1887c4(0x4f2)]=_0x2c1444=>{const _0x466153=_0x1887c4;var _0x30556d,_0x5068a5;return(_0x30556d=this[_0x466153(0x257)])==null||(_0x5068a5=_0x30556d[_0x466153(0x4f2)])==null?void 0x0:_0x5068a5[_0x466153(0x380)](_0x30556d,_0x2c1444);},_0x33e700['onTransformState']=_0x25674d=>{const _0xbbc431=_0x1887c4;var _0x47c5af,_0x48535d;return(_0x47c5af=this[_0xbbc431(0x257)])==null||(_0x48535d=_0x47c5af['onTransformState'])==null?void 0x0:_0x48535d[_0xbbc431(0x380)](_0x47c5af,_0x25674d);},_0x33e700[_0x1887c4(0x3da)]=_0x53ef1c=>{const _0x1a4bcf=_0x1887c4;var _0x5b98d9,_0x5dda8a;return(_0x5b98d9=this[_0x1a4bcf(0x257)])==null||(_0x5dda8a=_0x5b98d9[_0x1a4bcf(0x3da)])==null?void 0x0:_0x5dda8a[_0x1a4bcf(0x380)](_0x5b98d9,_0x53ef1c);},_0x33e700[_0x1887c4(0x4a7)]=_0x4b943d=>{const _0x546254=_0x1887c4;var _0x338553,_0x1c48fe;return(_0x338553=this[_0x546254(0x257)])==null||(_0x1c48fe=_0x338553['onSyncEditingCollabCursor'])==null?void 0x0:_0x1c48fe[_0x546254(0x380)](_0x338553,_0x4b943d);},_0x33e700[_0x1887c4(0x3de)]=_0x63cbf7=>{const _0x10fac2=_0x1887c4;var _0x3c080e,_0x16acc0,_0x45125b;return(_0x3c080e=(_0x16acc0=this[_0x10fac2(0x257)])==null||(_0x45125b=_0x16acc0[_0x10fac2(0x3de)])==null?void 0x0:_0x45125b[_0x10fac2(0x380)](_0x16acc0,_0x63cbf7))==null?_0x63cbf7:_0x3c080e;},_0x33e700[_0x1887c4(0x24b)]=_0x57807c=>{const _0x5b1dfc=_0x1887c4;var _0x44fb89,_0x495b44,_0x2b7ad4;return(_0x44fb89=(_0x495b44=this[_0x5b1dfc(0x257)])==null||(_0x2b7ad4=_0x495b44[_0x5b1dfc(0x24b)])==null?void 0x0:_0x2b7ad4['call'](_0x495b44,_0x57807c))==null?_0x57807c:_0x44fb89;},_0x33e700;}async['_init'](){const _0x3dc897=_0x85662d;let _0xd65abe=await super[_0x3dc897(0x38c)]();return this[_0x3dc897(0x221)](this[_0x3dc897(0x2e6)][_0x3dc897(0x20d)][_0x3dc897(0x46c)](_0x2128d2=>{const _0xc4a4b3=_0x3dc897;if(_0x2128d2==null||_0x2128d2['unitId']!==this[_0xc4a4b3(0x357)])return;let {commandId:_0x3b5593,redoState:_0x2740b7,unitId:_0x160110}=_0x2128d2,_0x1b0dd3={'id':_0x3b5593,'type':t[_0xc4a4b3(0x30a)][_0xc4a4b3(0x242)],'params':{'unitId':_0x160110,'actions':_0x2740b7[_0xc4a4b3(0x470)],'textRanges':null}};this[_0xc4a4b3(0x45f)](_0x1b0dd3);})),this['disposeWithMe'](this[_0x3dc897(0x3d5)]['onMutationExecutedForCollab']((_0x39903a,_0x1d2911)=>{const _0x2378b4=_0x3dc897;if(_0x39903a[_0x2378b4(0x212)]!==t[_0x2378b4(0x30a)][_0x2378b4(0x242)]||_0x1d2911!=null&&_0x1d2911[_0x2378b4(0x441)]||_0x1d2911!=null&&_0x1d2911[_0x2378b4(0x1fe)]||_0x39903a['id']===n['RichTextEditingMutation']['id'])return;let _0x1bd386=_0x39903a[_0x2378b4(0x3c0)];if((_0x1bd386==null?void 0x0:_0x1bd386[_0x2378b4(0x420)])!==this['unitID'])return;let _0x24afcf=_0x39903a,_0x1951ba=this[_0x2378b4(0x2c2)][_0x2378b4(0x313)]['fetchThroughInterceptors'](this[_0x2378b4(0x2c2)][_0x2378b4(0x313)]['getInterceptPoints']()[_0x2378b4(0x43b)])([_0x24afcf],this[_0x2378b4(0x22a)])||[_0x24afcf];this[_0x2378b4(0x45f)](_0x1951ba[0x0]);})),_0xd65abe;}};I=y([v(0x3,(0x0,t['Inject'])(t['Injector'])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t['Inject'])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e['RevisionService'])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t['ICommandService']),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x340)])(n[_0x85662d(0x354)])),v(0xd,(0x0,t[_0x85662d(0x32e)])(w)),v(0xe,(0x0,t[_0x85662d(0x32e)])(S))],I);let L=class extends F{constructor(_0x39b4de,_0x4e59b,_0x80140f,_0x3a1a7c,_0x409168,_0x309193,_0x4beb47,_0x82aac3,_0x3c8eab,_0x3a33c8,_0x3cf8a6,_0x187837,_0x11ec8a,_0x212ab5){const _0x3fc9f4=_0x85662d;super(_0x39b4de,_0x80140f,_0x4e59b,_0x3a1a7c,_0x409168,_0x309193,_0x4beb47,_0x82aac3,_0x3c8eab,_0x3a33c8,_0x3cf8a6,_0x187837,_0x11ec8a,_0x212ab5),this['unitID']=_0x39b4de,this[_0x3fc9f4(0x212)]=_0x4e59b;}async[_0x85662d(0x38c)](){const _0xe51cf7=_0x85662d;let _0x38b765=await super[_0xe51cf7(0x38c)]();return this['disposeWithMe'](this[_0xe51cf7(0x3d5)][_0xe51cf7(0x3b2)]((_0x1e04e0,_0x442959)=>{const _0x19e8f6=_0xe51cf7;if(_0x1e04e0[_0x19e8f6(0x212)]!==t[_0x19e8f6(0x30a)][_0x19e8f6(0x242)]||_0x442959!=null&&_0x442959['fromCollab']||_0x442959!=null&&_0x442959[_0x19e8f6(0x1fe)])return;let _0xebf4c5=_0x1e04e0['params'];if((_0xebf4c5==null?void 0x0:_0xebf4c5['unitId'])!==this[_0x19e8f6(0x357)])return;let _0x2adff2=_0x1e04e0,_0x407574=this['_compressMutationService'][_0x19e8f6(0x313)][_0x19e8f6(0x1f5)](this[_0x19e8f6(0x2c2)][_0x19e8f6(0x313)]['getInterceptPoints']()[_0x19e8f6(0x43b)])([_0x2adff2],this[_0x19e8f6(0x22a)])||[_0x2adff2];this[_0x19e8f6(0x45f)](_0x407574[0x0]);})),_0x38b765;}};L=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],L);let R=class extends F{constructor(_0x201036,_0x5e6df,_0x543b5c,_0x2a63a4,_0x258151,_0x340b48,_0x42a299,_0x2b98b6,_0xc1044,_0x295b00,_0x45d8b7,_0x7f7880,_0x3403aa,_0x1bc354,_0x79a51b){const _0x2b70a9=_0x85662d;super(_0x201036,_0x543b5c,_0x5e6df,_0x2a63a4,_0x258151,_0x340b48,_0x42a299,_0xc1044,_0x295b00,_0x45d8b7,_0x7f7880,_0x3403aa,_0x1bc354,_0x79a51b),this[_0x2b70a9(0x357)]=_0x201036,this['type']=_0x5e6df,this['_sheetTransformSelectionsService']=_0x2b98b6;}[_0x85662d(0x2a4)](){const _0x25fa9d=_0x85662d;let _0x2a46c7=super[_0x25fa9d(0x2a4)]();return _0x2a46c7[_0x25fa9d(0x3da)]=_0x144d1d=>this[_0x25fa9d(0x25f)][_0x25fa9d(0x45e)](_0x144d1d),_0x2a46c7;}async[_0x85662d(0x38c)](){const _0xe82cd5=_0x85662d;let _0x22a1a4=await super[_0xe82cd5(0x38c)]();return this['disposeWithMe'](this[_0xe82cd5(0x3d5)][_0xe82cd5(0x3b2)]((_0x5df824,_0xcdbec7)=>{const _0x3a22b7=_0xe82cd5;if(_0x5df824['type']!==t[_0x3a22b7(0x30a)][_0x3a22b7(0x242)]||_0xcdbec7!=null&&_0xcdbec7['fromCollab']||_0xcdbec7!=null&&_0xcdbec7[_0x3a22b7(0x1fe)])return;let _0x322a3d=_0x5df824[_0x3a22b7(0x3c0)];if((_0x322a3d==null?void 0x0:_0x322a3d[_0x3a22b7(0x420)])!==this[_0x3a22b7(0x357)])return;let _0x2e1f26=_0x5df824,_0x1baff6=this[_0x3a22b7(0x2c2)][_0x3a22b7(0x313)]['fetchThroughInterceptors'](this[_0x3a22b7(0x2c2)][_0x3a22b7(0x313)][_0x3a22b7(0x474)]()[_0x3a22b7(0x43b)])([_0x2e1f26],this['_univerInstanceService'])||[_0x2e1f26];this[_0x3a22b7(0x45f)](_0x1baff6[0x0]);})),_0x22a1a4;}};R=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t['Injector'])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t[_0x85662d(0x340)])(t['LocaleService'])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(C)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x85662d(0x33e)]),v(0xa,t[_0x85662d(0x3a4)]),v(0xb,t[_0x85662d(0x448)]),v(0xc,t[_0x85662d(0x4f4)]),v(0xd,(0x0,t[_0x85662d(0x32e)])(w)),v(0xe,(0x0,t['Optional'])(S))],R);let z=class extends F{constructor(_0x10cb60,_0x2cc04a,_0x26a626,_0x3a526d,_0x4829d8,_0x487fa6,_0x2334da,_0x293e7e,_0x28c414,_0x52a39a,_0x680143,_0x5d3585,_0xd4c9a3,_0xf3398a){const _0x2d0686=_0x85662d;super(_0x10cb60,_0x26a626,_0x2cc04a,_0x3a526d,_0x4829d8,_0x487fa6,_0x2334da,_0x293e7e,_0x28c414,_0x52a39a,_0x680143,_0x5d3585,_0xd4c9a3,_0xf3398a),this['unitID']=_0x10cb60,this[_0x2d0686(0x212)]=_0x2cc04a;}async['_init'](){const _0x5ef7e2=_0x85662d;let _0x450f76=await super[_0x5ef7e2(0x38c)]();return this[_0x5ef7e2(0x221)](this[_0x5ef7e2(0x3d5)][_0x5ef7e2(0x3b2)]((_0x2257de,_0x389d11)=>{const _0x1e09be=_0x5ef7e2;if(_0x2257de['type']!==t[_0x1e09be(0x30a)][_0x1e09be(0x242)]||_0x389d11!=null&&_0x389d11[_0x1e09be(0x441)]||_0x389d11!=null&&_0x389d11['onlyLocal'])return;let _0x12f044=_0x2257de[_0x1e09be(0x3c0)];if((_0x12f044==null?void 0x0:_0x12f044[_0x1e09be(0x420)])!==this[_0x1e09be(0x357)])return;let _0x2896d0=_0x2257de,_0x4d904c=this[_0x1e09be(0x2c2)][_0x1e09be(0x313)][_0x1e09be(0x1f5)](this['_compressMutationService'][_0x1e09be(0x313)]['getInterceptPoints']()[_0x1e09be(0x43b)])([_0x2896d0],this[_0x1e09be(0x22a)])||[_0x2896d0];this['_onLocalMutation'](_0x4d904c[0x0]);})),_0x450f76;}};z=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x4c5)])),v(0x5,(0x0,t['Inject'])(t[_0x85662d(0x285)])),v(0x6,(0x0,t[_0x85662d(0x340)])(e[_0x85662d(0x275)])),v(0x7,(0x0,t[_0x85662d(0x340)])(_)),v(0x8,t[_0x85662d(0x33e)]),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t[_0x85662d(0x32e)])(S))],z);let B=class extends F{constructor(_0x2afecc,_0x6fd30a,_0x155104,_0x1cd296,_0x2b1b69,_0x53fec6,_0x59867b,_0x1fc6a7,_0x21c02f,_0x479919,_0x3b42ca,_0x382319,_0x4116f6,_0xa07762){const _0x664d2f=_0x85662d;super(_0x2afecc,_0x155104,_0x6fd30a,_0x1cd296,_0x2b1b69,_0x53fec6,_0x59867b,_0x1fc6a7,_0x21c02f,_0x479919,_0x3b42ca,_0x382319,_0x4116f6,_0xa07762),this[_0x664d2f(0x357)]=_0x2afecc,this[_0x664d2f(0x212)]=_0x6fd30a;}async['_init'](){const _0x2ea372=_0x85662d;let _0x4efeaa=await super[_0x2ea372(0x38c)]();return this['disposeWithMe'](this[_0x2ea372(0x3d5)][_0x2ea372(0x3b2)]((_0x4d4ac8,_0xe689ae)=>{const _0x3ce779=_0x2ea372;if(_0x4d4ac8[_0x3ce779(0x212)]!==t[_0x3ce779(0x30a)][_0x3ce779(0x242)]||_0xe689ae!=null&&_0xe689ae[_0x3ce779(0x441)]||_0xe689ae!=null&&_0xe689ae[_0x3ce779(0x1fe)])return;let _0xf986a3=_0x4d4ac8[_0x3ce779(0x3c0)];if((_0xf986a3==null?void 0x0:_0xf986a3['unitId'])!==this[_0x3ce779(0x357)])return;let _0x23d545=_0x4d4ac8,_0x1885bb=this[_0x3ce779(0x2c2)][_0x3ce779(0x313)]['fetchThroughInterceptors'](this[_0x3ce779(0x2c2)][_0x3ce779(0x313)][_0x3ce779(0x474)]()['COMPRESS_MUTATION_SEND'])([_0x23d545],this[_0x3ce779(0x22a)])||[_0x23d545];this[_0x3ce779(0x45f)](_0x1885bb[0x0]);})),_0x4efeaa;}};B=y([v(0x3,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x4,(0x0,t['Inject'])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)])),v(0x6,(0x0,t['Inject'])(e[_0x85662d(0x275)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x85662d(0x33e)]),v(0x9,t[_0x85662d(0x3a4)]),v(0xa,t[_0x85662d(0x448)]),v(0xb,t[_0x85662d(0x4f4)]),v(0xc,(0x0,t[_0x85662d(0x32e)])(w)),v(0xd,(0x0,t['Optional'])(S))],B);const We=(0x0,t['createIdentifier'])('univer-pro.collaboration-client.network-condition.service');function Ge(_0xed36fc){const _0x23340e=_0x85662d;let _0x58b2a5=_0xed36fc[_0x23340e(0x28a)],_0x49294c=JSON[_0x23340e(0x42a)](_0x58b2a5);switch(_0x49294c['cmd']){case a['CombCmd'][_0x23340e(0x2b9)]:case a[_0x23340e(0x44a)][_0x23340e(0x47f)]:{let _0x3de02e=_0x49294c[_0x23340e(0x20a)];return{..._0x49294c,'data':_0x3de02e,'cmd':_0x49294c[_0x23340e(0x348)]};}case a[_0x23340e(0x44a)][_0x23340e(0x1e7)]:{let _0x17c244=_0x49294c[_0x23340e(0x45d)];return{..._0x49294c,'data':_0x17c244,'cmd':_0x49294c[_0x23340e(0x348)]};}case a[_0x23340e(0x44a)][_0x23340e(0x1ed)]:{let _0x567b37=_0x49294c['collaMsg'];switch(_0x567b37[_0x23340e(0x336)]){case e['CollaborationEvent'][_0x23340e(0x48a)]:var _0x2e507c;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x2e507c=_0x567b37[_0x23340e(0x463)])==null?void 0x0:_0x2e507c['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x410)]:var _0x39bdcc;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x39bdcc=_0x567b37['csAckEvent'])==null?void 0x0:_0x39bdcc['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2ae)]:var _0x413b6c;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x413b6c=_0x567b37[_0x23340e(0x2ce)])==null?void 0x0:_0x413b6c['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x4ef)]:var _0x5e1df5;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x5e1df5=_0x567b37['csRejEvent'])==null?void 0x0:_0x5e1df5['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2c9)]:var _0x192f0a;return{..._0x49294c,'data':{..._0x567b37,'data':(_0x192f0a=_0x567b37['csShouldRetryEvent'])==null?void 0x0:_0x192f0a['cs']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x47b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x465)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x35a)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x395)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e['CollaborationEvent'][_0x23340e(0x2fb)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x292)]},'cmd':_0x49294c['cmd']};case e['CollaborationEvent'][_0x23340e(0x371)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x430)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x2ec)]:case e[_0x23340e(0x3fb)][_0x23340e(0x20b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['liveShareOperation']},'cmd':_0x49294c['cmd']};case e[_0x23340e(0x3fb)]['LIVESHARE_TERMINATE']:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x430)]},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x4c3)]:return{..._0x49294c,'data':_0x567b37,'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)][_0x23340e(0x267)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['commentUpdateEvent']},'cmd':_0x49294c[_0x23340e(0x348)]};case e[_0x23340e(0x3fb)]['UPDATE_PERMISSION_OBJ']:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x1f3)]},'cmd':_0x49294c['cmd']};case e[_0x23340e(0x3fb)][_0x23340e(0x41b)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37['shouldCloseConn']},'cmd':_0x49294c[_0x23340e(0x348)]};case e['CollaborationEvent'][_0x23340e(0x2ff)]:return{..._0x49294c,'data':{..._0x567b37,'data':_0x567b37[_0x23340e(0x417)]},'cmd':_0x49294c[_0x23340e(0x348)]};default:return _0x49294c;}}default:return _0x49294c;}}function Ke(_0x558e5a){const _0x57b409=_0x85662d;switch(_0x558e5a[_0x57b409(0x348)]){case a[_0x57b409(0x44a)]['HEARTBEAT']:case a[_0x57b409(0x44a)]['HELLO']:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a['routeKey']});case a[_0x57b409(0x44a)][_0x57b409(0x205)]:{let _0x111596;switch(_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x336)]){case e[_0x57b409(0x3fb)]['UPDATE_CURSOR']:_0x111596={'eventID':e[_0x57b409(0x3fb)]['UPDATE_CURSOR'],'updateCursorEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x2fb)]:_0x111596={'eventID':e[_0x57b409(0x3fb)]['USERS_LEAVE'],'leaveEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)]['USERS_ENTER']:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x35a)],'joinEvent':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x371)]:_0x111596={'eventID':e[_0x57b409(0x3fb)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e[_0x57b409(0x3fb)][_0x57b409(0x20b)]:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x20b)],'liveShareOperation':_0x558e5a[_0x57b409(0x28a)][_0x57b409(0x28a)]};break;case e['CollaborationEvent'][_0x57b409(0x4ab)]:_0x111596={'eventID':e[_0x57b409(0x3fb)][_0x57b409(0x4ab)],'liveShareTerminate':_0x558e5a['data'][_0x57b409(0x28a)]};break;case e['CollaborationEvent'][_0x57b409(0x2a1)]:_0x111596={'eventID':e['CollaborationEvent'][_0x57b409(0x2a1)],'liveShareRequestHost':_0x558e5a[_0x57b409(0x28a)]['data']};break;case e['CollaborationEvent'][_0x57b409(0x2ec)]:_0x111596={'eventID':e['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x111596={'eventID':_0x558e5a['data'][_0x57b409(0x336)]};}return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a[_0x57b409(0x349)],'collaMsg':_0x111596});}case a[_0x57b409(0x44a)][_0x57b409(0x1e7)]:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a[_0x57b409(0x348)],'routeKey':_0x558e5a[_0x57b409(0x349)],'joinReq':_0x558e5a[_0x57b409(0x28a)]});case a[_0x57b409(0x44a)][_0x57b409(0x271)]:return JSON[_0x57b409(0x407)]({'cmd':_0x558e5a['cmd'],'routeKey':_0x558e5a[_0x57b409(0x349)],'leaveReq':_0x558e5a[_0x57b409(0x28a)]});default:throw Error('[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!');}}const qe=(0x0,t['createIdentifier'])('univer-pro.collaboration-client-socket-service');function Je(_0x110675,_0x398042,_0x2ac39){const _0x2fd9ab=_0x85662d;return _0x110675+'/'+_0x398042+'/unit/'+_0x2ac39+_0x2fd9ab(0x44b);}let Ye=class extends t[_0x85662d(0x304)]{constructor(_0x34618c,_0xd81207,_0x1b09d4,_0x25629b,_0x5122b9){const _0x1ec8b0=_0x85662d;super(),this[_0x1ec8b0(0x3f3)]=_0x34618c,this[_0x1ec8b0(0x28e)]=_0xd81207,this[_0x1ec8b0(0x377)]=_0x1b09d4,this['_logService']=_0x25629b,this['_snapshotServerService']=_0x5122b9;}['_doCreateSocket'](_0x268d5c){const _0x3fdb23=_0x85662d;let _0x31c007=this[_0x3fdb23(0x3f3)][_0x3fdb23(0x39b)](l[_0x3fdb23(0x305)]);if(!_0x31c007)throw Error(_0x3fdb23(0x26d));let _0x171e67=_0x31c007[_0x3fdb23(0x387)](_0x268d5c);if(!_0x171e67)throw Error(_0x3fdb23(0x401));let _0x429a2f=new t['DisposableCollection'](),_0x519e34=new i['Subject']();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67[_0x3fdb23(0x4d6)][_0x3fdb23(0x46c)](_0x2a814b=>_0x519e34[_0x3fdb23(0x49a)](_0x2a814b))),_0x429a2f[_0x3fdb23(0x2d6)]((0x0,t['toDisposable'])(()=>_0x519e34[_0x3fdb23(0x3ab)]()));let _0x41a523=new i[(_0x3fdb23(0x439))]();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67['error$'][_0x3fdb23(0x46c)](_0xdafcec=>_0x41a523[_0x3fdb23(0x49a)](_0xdafcec))),_0x429a2f[_0x3fdb23(0x2d6)]((0x0,t['toDisposable'])(()=>_0x41a523[_0x3fdb23(0x3ab)]()));let _0x53b5b1=new i[(_0x3fdb23(0x439))]();_0x429a2f[_0x3fdb23(0x2d6)](_0x171e67[_0x3fdb23(0x21b)][_0x3fdb23(0x46c)](_0x535f25=>{const _0x59f4cf=_0x3fdb23;let _0x5d76ee=Ge(_0x535f25);_0x53b5b1[_0x59f4cf(0x49a)](_0x5d76ee);})),_0x429a2f['add']((0x0,t[_0x3fdb23(0x3d6)])(()=>_0x53b5b1[_0x3fdb23(0x3ab)]()));let _0x4b48d0,_0x3d4fcc=()=>{const _0x82917e=_0x3fdb23;_0x41a523[_0x82917e(0x49a)](new Event(_0x82917e(0x397))),_0x519e34[_0x82917e(0x49a)](new Event(_0x82917e(0x397))),_0x4b48d0[_0x82917e(0x418)]();};return _0x4b48d0={'memberID':'','close$':_0x519e34[_0x3fdb23(0x2dd)](),'error$':_0x41a523['asObservable'](),'open$':_0x171e67['open$'],'message$':_0x53b5b1['asObservable'](),'send':_0x4811b1=>{const _0xf99d0b=_0x3fdb23;if(_0x4811b1[_0xf99d0b(0x348)]===a['CombCmd'][_0xf99d0b(0x205)]){if(_0x4811b1[_0xf99d0b(0x28a)][_0xf99d0b(0x336)]===e[_0xf99d0b(0x3fb)]['SUBMIT_CHANGESET']){this[_0xf99d0b(0x394)](_0x4b48d0,_0x4811b1[_0xf99d0b(0x28a)])[_0xf99d0b(0x4a5)](_0x2f1ca3=>{const _0x468693=_0xf99d0b;this[_0x468693(0x29f)][_0x468693(0x3cc)](_0x2f1ca3),_0x3d4fcc();});return;}if(_0x4811b1[_0xf99d0b(0x28a)][_0xf99d0b(0x336)]===e[_0xf99d0b(0x3fb)][_0xf99d0b(0x415)]){let _0x5aa5d2=_0x4811b1['data'];this[_0xf99d0b(0x4a0)](_0x5aa5d2)[_0xf99d0b(0x3b6)](_0x3591ff=>{const _0x3497c1=_0xf99d0b;_0x53b5b1[_0x3497c1(0x49a)]({'cmd':a[_0x3497c1(0x44a)][_0x3497c1(0x1ed)],'code':a['CmdRspCode']['OK'],'routeKey':_0x5aa5d2[_0x3497c1(0x28a)][_0x3497c1(0x357)],'routeType':'','data':{'eventID':e[_0x3497c1(0x3fb)][_0x3497c1(0x4b1)],'data':{'changesets':_0x3591ff}}});})[_0xf99d0b(0x4a5)](_0x29610e=>{const _0xc11f58=_0xf99d0b;this[_0xc11f58(0x29f)]['error'](_0x29610e),_0x3d4fcc();});return;}}_0x171e67[_0xf99d0b(0x48b)](Ke(_0x4811b1));},'close':()=>{_0x171e67['close'](),_0x429a2f['dispose']();}},_0x4b48d0;}async[_0x85662d(0x394)](_0x28278a,_0x15adde){const _0x2b7d35=_0x85662d;var _0x355e14;let {unitType:_0x24b931,unitID:_0x22b9ad,changeset:_0xd012c4}=_0x15adde[_0x2b7d35(0x28a)],_0xf91cc8={'unitID':_0x22b9ad,'memberID':_0x28278a[_0x2b7d35(0x4e4)],'type':_0x24b931,'changeset':(0x0,e[_0x2b7d35(0x1e0)])(_0xd012c4)},_0x17eb62=this[_0x2b7d35(0x377)][_0x2b7d35(0x262)](m),_0x5eb89d=Je((_0x355e14=_0x17eb62==null?void 0x0:_0x17eb62[_0x2b7d35(0x28b)])==null?_0x2b7d35(0x36a):_0x355e14,_0x24b931,_0x22b9ad);try{await this['_httpService'][_0x2b7d35(0x3d4)](_0x5eb89d,{'body':_0xf91cc8});}catch(_0x10c4ec){throw this[_0x2b7d35(0x29f)]['error'](_0x2b7d35(0x383),_0x2b7d35(0x331)),_0x10c4ec;}}async['_fetchMissChangesets'](_0x473ca8){const _0x2227d4=_0x85662d;let {unitID:_0x4fe467,from:_0x3209e1,to:_0x329c48,unitType:_0x10a0a5}=_0x473ca8['data'];return(await this['_snapshotServerService'][_0x2227d4(0x2ba)]({'metadata':void 0x0},{'unitID':_0x4fe467,'type':_0x10a0a5,'from':_0x3209e1,'to':_0x329c48}))[_0x2227d4(0x251)][_0x2227d4(0x3fc)](_0x10e69e=>((_0x10e69e[_0x2227d4(0x406)]===null||_0x10e69e['mutations']===void 0x0)&&(_0x10e69e[_0x2227d4(0x406)]=[]),_0x10e69e));}};Ye=y([v(0x0,(0x0,t['Inject'])(t[_0x85662d(0x330)])),v(0x1,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)])),v(0x2,t[_0x85662d(0x29d)]),v(0x3,t[_0x85662d(0x3a4)]),v(0x4,e[_0x85662d(0x246)])],Ye);const Xe=(0x0,t['createIdentifier'])(_0x85662d(0x1e1));function Ze(_0x103215={}){const _0x54db85=_0x85662d;return _0x103215[_0x54db85(0x3a7)]?{'resolveUnit':_0x103215[_0x54db85(0x3a7)]}:{'resolveUnit':_0x19d810=>({'target':{'unitId':_0x19d810[_0x54db85(0x420)],'unitType':_0x19d810[_0x54db85(0x369)]}})};}function Qe(_0x2ea9a7,_0x14cd62,_0x558b4b){const _0x395a6c=_0x85662d;var _0x4b3217;let _0x16b5ee=_0x558b4b[_0x395a6c(0x1f0)]['endpoint'];if(_0x16b5ee!=null&&_0x16b5ee[_0x395a6c(0x256)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x558b4b[_0x395a6c(0x1f0)][_0x395a6c(0x420)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0x2ea9a7,'unitType':_0x14cd62,'target':{'endpoint':_0x16b5ee,'unitId':_0x558b4b['target'][_0x395a6c(0x420)],'unitType':(_0x4b3217=_0x558b4b['target'][_0x395a6c(0x369)])==null?_0x14cd62:_0x4b3217},'changeset':_0x558b4b['changeset']};}let V=class extends t[_0x85662d(0x304)]{constructor(_0x5d153e,_0x55cfd8,_0x597a05,_0x5141d5,_0x59de15,_0x1ca5b1,_0x58da8d){const _0x44e921=_0x85662d;super(),this['_injector']=_0x5d153e,this[_0x44e921(0x29f)]=_0x55cfd8,this[_0x44e921(0x377)]=_0x597a05,this[_0x44e921(0x364)]=_0x5141d5,this[_0x44e921(0x46e)]=_0x59de15,this['_adapter']=_0x1ca5b1,this[_0x44e921(0x419)]=_0x58da8d,g(this,_0x44e921(0x2a9),new Map()),g(this,_0x44e921(0x355),new Map()),g(this,_0x44e921(0x459),new Map()),g(this,'_socketChannels',new Map()),g(this,'socket$',this[_0x44e921(0x2bd)](void 0x0)[_0x44e921(0x490)][_0x44e921(0x2dd)]()),g(this,'_status$',new i[(_0x44e921(0x475))](0x0)),g(this,_0x44e921(0x27f),this[_0x44e921(0x467)][_0x44e921(0x2dd)]()),this['_listenToNetworkCondition']();}['_listenToNetworkCondition'](){const _0x44908a=_0x85662d;this['_networkConditionService']&&this[_0x44908a(0x221)](this[_0x44908a(0x419)]['online$']['subscribe'](_0xddd348=>{const _0x5f1f71=_0x44908a;_0xddd348&&this[_0x5f1f71(0x244)](),_0xddd348||this[_0x5f1f71(0x3cb)][_0x5f1f71(0x30f)](_0xb3ad80=>this[_0x5f1f71(0x20f)](_0xb3ad80));}));}[_0x85662d(0x469)](){const _0x3bcb56=_0x85662d;super[_0x3bcb56(0x469)](),this[_0x3bcb56(0x3cb)][_0x3bcb56(0x30f)](_0x32b3e9=>{const _0x965835=_0x3bcb56;var _0xf2fddf,_0x3e5a81;(_0xf2fddf=_0x32b3e9['socketMessageSubscription'])==null||_0xf2fddf['unsubscribe'](),_0x32b3e9[_0x965835(0x29c)]=null,this[_0x965835(0x222)](_0x32b3e9),this['_clearTimeoutTimer'](_0x32b3e9),this['_clearHeartbeatTimer'](_0x32b3e9),(_0x3e5a81=_0x32b3e9['socket$'][_0x965835(0x40c)]())==null||_0x3e5a81[_0x965835(0x418)](),_0x32b3e9['socket$'][_0x965835(0x3ab)]();}),this[_0x3bcb56(0x3cb)][_0x3bcb56(0x214)](),this[_0x3bcb56(0x2a9)][_0x3bcb56(0x30f)](_0xc731ce=>_0xc731ce[_0x3bcb56(0x469)]()),this[_0x3bcb56(0x2a9)][_0x3bcb56(0x214)](),this['_sessionChannels']['clear'](),this[_0x3bcb56(0x467)][_0x3bcb56(0x3ab)]();}async[_0x85662d(0x232)](_0x23df54,_0x55e65d){const _0x115e0c=_0x85662d;if(this[_0x115e0c(0x2a9)][_0x115e0c(0x4ca)](_0x23df54))return this['_sessions'][_0x115e0c(0x39b)](_0x23df54);let _0x2a17ee=this['_pendingSessions'][_0x115e0c(0x39b)](_0x23df54);if(_0x2a17ee)return _0x2a17ee;let _0x563551=this[_0x115e0c(0x3d7)](_0x23df54,_0x55e65d);this[_0x115e0c(0x355)]['set'](_0x23df54,_0x563551);try{return await _0x563551;}finally{this[_0x115e0c(0x355)]['delete'](_0x23df54);}}async['_createSession'](_0x453533,_0x2886b7){const _0x10cc0c=_0x85662d;let _0x441c06=await this[_0x10cc0c(0x220)](_0x453533,_0x2886b7),_0x5c1d55=this[_0x10cc0c(0x2bd)](_0x441c06['target'][_0x10cc0c(0x47c)]);this[_0x10cc0c(0x458)](_0x5c1d55);let _0x4690ab=this[_0x10cc0c(0x3f3)]['createInstance'](x,_0x441c06,_0x5c1d55[_0x10cc0c(0x490)][_0x10cc0c(0x2dd)]());return this[_0x10cc0c(0x2a9)][_0x10cc0c(0x43f)](_0x453533,_0x4690ab),this[_0x10cc0c(0x459)]['set'](_0x453533,_0x5c1d55[_0x10cc0c(0x41d)]),_0x4690ab;}[_0x85662d(0x1da)](_0x370b23){const _0x469d6e=_0x85662d;let _0x2ccc5f=this[_0x469d6e(0x2a9)]['get'](_0x370b23),_0x2b763c=this[_0x469d6e(0x459)][_0x469d6e(0x39b)](_0x370b23);if(_0x2ccc5f&&(this[_0x469d6e(0x2a9)][_0x469d6e(0x36e)](_0x370b23),this[_0x469d6e(0x459)][_0x469d6e(0x36e)](_0x370b23),_0x2ccc5f[_0x469d6e(0x418)]()),_0x2b763c&&!this[_0x469d6e(0x2c7)](_0x2b763c)){var _0x32cca5;let _0x4fd0c9=this['_socketChannels'][_0x469d6e(0x39b)](_0x2b763c);_0x4fd0c9==null||(_0x32cca5=_0x4fd0c9['socket$'][_0x469d6e(0x40c)]())==null||_0x32cca5[_0x469d6e(0x418)]();}}[_0x85662d(0x244)](){const _0x46bf77=_0x85662d;(this[_0x46bf77(0x3cb)]['size']?[...this['_socketChannels'][_0x46bf77(0x28c)]()]:[this[_0x46bf77(0x2bd)](void 0x0)])['forEach'](_0x598a0e=>{const _0x19d902=_0x46bf77;_0x598a0e[_0x19d902(0x2fd)]=0x0,this[_0x19d902(0x222)](_0x598a0e),this[_0x19d902(0x4d9)](_0x598a0e);});}[_0x85662d(0x222)](_0x2333a2){const _0x2a6678=_0x85662d;_0x2333a2[_0x2a6678(0x413)]!=null&&(clearTimeout(_0x2333a2['retryConnectingTimer']),_0x2333a2['retryConnectingTimer']=null);}async[_0x85662d(0x201)](_0x1907cd){const _0x207184=_0x85662d;var _0x446faf,_0x3a4879;let _0x164bb4=this[_0x207184(0x377)]['getConfig'](m),_0x50c7b4=(_0x446faf=(_0x3a4879=_0x1907cd[_0x207184(0x47c)])==null?_0x164bb4==null?void 0x0:_0x164bb4[_0x207184(0x286)]:_0x3a4879)==null?te:_0x446faf,_0x5f2eff=await this[_0x207184(0x364)][_0x207184(0x387)](_0x50c7b4);return _0x1907cd['candidateSocket']=_0x5f2eff,_0x5f2eff;}async[_0x85662d(0x458)](_0x1f1059){const _0x38fb05=_0x85662d;try{var _0x4464b3,_0x2a014c;let _0x1b033a=(_0x4464b3=(_0x2a014c=_0x1f1059[_0x38fb05(0x490)][_0x38fb05(0x40c)]())==null?_0x1f1059['candidateSocket']:_0x2a014c)==null?await this[_0x38fb05(0x201)](_0x1f1059):_0x4464b3;if(_0x1b033a){var _0x360d7f;let _0xeabb99=_0x1b033a[_0x38fb05(0x48b)];_0x1b033a[_0x38fb05(0x48b)]=_0x1d9697=>(_0x1d9697[_0x38fb05(0x348)]!==a['CombCmd'][_0x38fb05(0x271)]&&this['_rescheduleHeartbeat'](_0x1f1059),_0xeabb99[_0x38fb05(0x494)](_0x1b033a,[_0x1d9697])),(_0x360d7f=_0x1f1059['socketMessageSubscription'])==null||_0x360d7f['unsubscribe'](),_0x1f1059[_0x38fb05(0x29c)]=null,_0x1f1059[_0x38fb05(0x29c)]=_0x1b033a[_0x38fb05(0x21b)][_0x38fb05(0x46c)](_0x4b38af=>this[_0x38fb05(0x4f6)](_0x1f1059,_0x1b033a,_0x4b38af)),_0x1b033a[_0x38fb05(0x34e)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))['subscribe'](_0x2e51fa=>this[_0x38fb05(0x29f)][_0x38fb05(0x3cc)](_0x38fb05(0x1ea),_0x2e51fa)),_0x1b033a[_0x38fb05(0x223)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))[_0x38fb05(0x46c)](()=>{const _0x399268=_0x38fb05;this[_0x399268(0x4e9)](_0x1f1059,_0x1b033a);}),_0x1b033a[_0x38fb05(0x4d6)][_0x38fb05(0x4bd)]((0x0,s[_0x38fb05(0x3e5)])(0x1))[_0x38fb05(0x46c)](_0x1bcf6=>{const _0xd34ffc=_0x38fb05;this[_0xd34ffc(0x29f)]['debug'](_0xd34ffc(0x495),_0xd34ffc(0x3bd),_0x1bcf6),this[_0xd34ffc(0x1fd)](_0x1f1059);});}}catch(_0x4be0e5){this[_0x38fb05(0x29f)][_0x38fb05(0x3cc)](_0x4be0e5),this[_0x38fb05(0x1fd)](_0x1f1059);}}[_0x85662d(0x4e9)](_0xaad9a1,_0x1ed70e){const _0x2de4d3=_0x85662d;this[_0x2de4d3(0x29f)][_0x2de4d3(0x3a9)](_0x2de4d3(0x495),_0x2de4d3(0x288)),_0x1ed70e[_0x2de4d3(0x48b)]({'cmd':a[_0x2de4d3(0x44a)][_0x2de4d3(0x47f)]}),this[_0x2de4d3(0x29a)](_0xaad9a1);}[_0x85662d(0x20f)](_0x101697){const _0x251b47=_0x85662d;_0x101697[_0x251b47(0x427)]=!0x1,_0x101697[_0x251b47(0x421)]=null,this[_0x251b47(0x467)]['next'](0x2),_0x101697[_0x251b47(0x490)][_0x251b47(0x49a)](null),this[_0x251b47(0x203)](_0x101697),this[_0x251b47(0x4a2)](_0x101697);}[_0x85662d(0x1fd)](_0x18415f){const _0x47c791=_0x85662d;var _0x5c723c;this[_0x47c791(0x20f)](_0x18415f),this[_0x47c791(0x2c7)](_0x18415f[_0x47c791(0x41d)])&&(_0x18415f[_0x47c791(0x2fd)]<((_0x5c723c=this[_0x47c791(0x377)][_0x47c791(0x262)]('RETRY_CONNECTING_MAX_COUNT'))==null?0x3:_0x5c723c)?(this[_0x47c791(0x46e)][_0x47c791(0x3ae)]({'id':_0x47c791(0x3e3)}),this[_0x47c791(0x4d9)](_0x18415f)):this[_0x47c791(0x46e)][_0x47c791(0x3ae)]({'id':_0x47c791(0x22f)}));}[_0x85662d(0x4d9)](_0x38bec7){const _0x537dab=_0x85662d;var _0x5a0216;let _0x15655a=_0x38bec7[_0x537dab(0x2fd)],_0x3621af=this[_0x537dab(0x377)]['getConfig'](m),_0x376094=_0x15655a===0x0?0x0:((_0x5a0216=_0x3621af==null?void 0x0:_0x3621af[_0x537dab(0x390)])==null?0x4e20:_0x5a0216)*0x2**_0x15655a;_0x38bec7[_0x537dab(0x413)]=setTimeout(()=>{const _0x4ad548=_0x537dab;clearTimeout(_0x38bec7['retryConnectingTimer']),_0x38bec7[_0x4ad548(0x413)]=null,this['_tryEnsureSocket'](_0x38bec7);},_0x376094),_0x38bec7[_0x537dab(0x2fd)]+=0x1;}async['_resolveSessionIdentity'](_0x5d19db,_0x58faea){const _0x35dcf4=_0x85662d;return Qe(_0x5d19db,_0x58faea,await this[_0x35dcf4(0x25b)][_0x35dcf4(0x3a7)]({'unitId':_0x5d19db,'unitType':_0x58faea}));}[_0x85662d(0x4f6)](_0x49de8e,_0x1d1058,_0x878bf7){const _0x504d9c=_0x85662d;let {cmd:_0x14e1d9}=_0x878bf7;_0x14e1d9===a[_0x504d9c(0x44a)]['HELLO']&&!_0x49de8e[_0x504d9c(0x427)]&&(_0x1d1058[_0x504d9c(0x4e4)]=_0x878bf7['data'][_0x504d9c(0x4e4)],_0x49de8e[_0x504d9c(0x490)][_0x504d9c(0x49a)](_0x1d1058),this[_0x504d9c(0x467)][_0x504d9c(0x49a)](0x3),_0x49de8e['socketReady']=!0x0,_0x49de8e['candidateSocket']=null),_0x14e1d9===a[_0x504d9c(0x44a)][_0x504d9c(0x2b9)]&&this['_clearTimeoutTimer'](_0x49de8e),this['_rescheduleHeartbeat'](_0x49de8e);}[_0x85662d(0x2c7)](_0x14cb3d){const _0x1629cf=_0x85662d;return[...this[_0x1629cf(0x459)]['values']()][_0x1629cf(0x450)](_0x477064=>_0x477064===_0x14cb3d);}[_0x85662d(0x2bd)](_0x1a1443){const _0x266fdd=_0x85662d;let _0xcc9fa7=_0x1a1443==null?'':_0x1a1443,_0x351c32=this[_0x266fdd(0x3cb)][_0x266fdd(0x39b)](_0xcc9fa7);if(_0x351c32)return _0x351c32;let _0x1accff={'endpointKey':_0xcc9fa7,'endpoint':_0x1a1443,'socket$':new i[(_0x266fdd(0x475))](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x266fdd(0x43f)](_0xcc9fa7,_0x1accff),_0x1accff;}[_0x85662d(0x29a)](_0x509299){const _0xb9d244=_0x85662d;var _0x4cf77f;this[_0xb9d244(0x4a2)](_0x509299),_0x509299[_0xb9d244(0x423)]=setTimeout(()=>this['_sendHeartbeat'](_0x509299),(_0x4cf77f=this[_0xb9d244(0x377)][_0xb9d244(0x262)](_0xb9d244(0x323)))==null?0x7530:_0x4cf77f);}[_0x85662d(0x484)](_0x4a6f7a){const _0x149830=_0x85662d;_0x4a6f7a[_0x149830(0x490)]['getValue']()[_0x149830(0x48b)]({'cmd':a[_0x149830(0x44a)][_0x149830(0x2b9)]}),this[_0x149830(0x431)](_0x4a6f7a);}[_0x85662d(0x431)](_0x2f7fb5){const _0x1778ad=_0x85662d;var _0x3006e3;_0x2f7fb5['timeoutTimer']=setTimeout(()=>this[_0x1778ad(0x1fd)](_0x2f7fb5),(_0x3006e3=this[_0x1778ad(0x377)]['getConfig'](_0x1778ad(0x258)))==null?ne:_0x3006e3);}[_0x85662d(0x4a2)](_0x50f9fc){const _0x146377=_0x85662d;_0x50f9fc['sendHeartbeatTimer']!=null&&(clearTimeout(_0x50f9fc[_0x146377(0x423)]),_0x50f9fc[_0x146377(0x423)]=null);}[_0x85662d(0x203)](_0xa8493f){const _0x376aaa=_0x85662d;_0xa8493f['timeoutTimer']!=null&&(clearTimeout(_0xa8493f['timeoutTimer']),_0xa8493f[_0x376aaa(0x2a5)]=null);}};V=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,t[_0x85662d(0x3a4)]),v(0x2,t[_0x85662d(0x29d)]),v(0x3,qe),v(0x4,(0x0,t[_0x85662d(0x340)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x85662d(0x32e)])(We))],V);let H=class extends t[_0x85662d(0x42c)]{constructor(_0x161da1,_0x7bcefd,_0x3c9068,_0xad26ae){const _0x537b38=_0x85662d;var _0x1e843f;super(),this[_0x537b38(0x3f3)]=_0x161da1,this[_0x537b38(0x2f0)]=_0x7bcefd,this[_0x537b38(0x377)]=_0x3c9068,this[_0x537b38(0x22a)]=_0xad26ae,g(this,_0x537b38(0x33d),new Map()),g(this,_0x537b38(0x31d),new i['Subject']()),g(this,_0x537b38(0x4f5),this[_0x537b38(0x31d)][_0x537b38(0x2dd)]()),((_0x1e843f=this[_0x537b38(0x377)][_0x537b38(0x262)]('collaboration-client.config'))==null?void 0x0:_0x1e843f[_0x537b38(0x2f2)])!==!0x1&&this[_0x537b38(0x38c)]();}[_0x85662d(0x469)](){const _0x361664=_0x85662d;super[_0x361664(0x469)](),this['_entities']['forEach'](_0x1315fa=>_0x1315fa[_0x361664(0x469)]()),this[_0x361664(0x33d)][_0x361664(0x214)]();}[_0x85662d(0x276)](_0x12665b){const _0x464a8b=_0x85662d;var _0x32e8b8;return(_0x32e8b8=this[_0x464a8b(0x33d)]['get'](_0x12665b))==null?null:_0x32e8b8;}[_0x85662d(0x35e)](_0x807d59){const _0x55a555=_0x85662d;let _0x36be4c=this[_0x55a555(0x276)](_0x807d59);return _0x36be4c?(0x0,i['of'])(_0x36be4c):this[_0x55a555(0x31d)][_0x55a555(0x4bd)]((0x0,s[_0x55a555(0x2ca)])(_0x2b5e54=>_0x2b5e54[_0x55a555(0x357)]===_0x807d59));}[_0x85662d(0x4a6)](_0x3ffc8f){const _0x5cfd3c=_0x85662d;return(0x0,i[_0x5cfd3c(0x3fd)])(this[_0x5cfd3c(0x35e)](_0x3ffc8f)['pipe']((0x0,s[_0x5cfd3c(0x3fc)])(()=>void 0x0)));}[_0x85662d(0x38c)](){const _0x4cc06a=_0x85662d;this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)]['UNIVER_SHEET'])[_0x4cc06a(0x4bd)]((0x0,i['takeUntil'])(this[_0x4cc06a(0x3df)]),(0x0,s['delay'])(0x10))[_0x4cc06a(0x46c)](async _0x5f2f4b=>{const _0x4ecb30=_0x4cc06a;let _0x54eb96=_0x5f2f4b[_0x4ecb30(0x280)][_0x4ecb30(0x3b9)](),_0x3962db=await this[_0x4ecb30(0x2d2)](_0x54eb96,t[_0x4ecb30(0x378)]['UNIVER_SHEET']);this[_0x4ecb30(0x33d)][_0x4ecb30(0x43f)](_0x54eb96,_0x3962db);}),this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)][_0x4cc06a(0x39f)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x4cc06a(0x4bd)]((0x0,s[_0x4cc06a(0x2ca)])(_0x12287f=>!_0x12287f[_0x4cc06a(0x280)][_0x4cc06a(0x3b9)]()[_0x4cc06a(0x3ba)]('__')))[_0x4cc06a(0x46c)](async _0x219e73=>{const _0x4da646=_0x4cc06a;let _0x52e79f=_0x219e73[_0x4da646(0x280)][_0x4da646(0x3b9)](),_0xcd9fb7=await this[_0x4da646(0x2d2)](_0x52e79f,t[_0x4da646(0x378)][_0x4da646(0x39f)]);this[_0x4da646(0x33d)]['set'](_0x52e79f,_0xcd9fb7);}),this['_univerInstanceService'][_0x4cc06a(0x1e6)](t[_0x4cc06a(0x378)][_0x4cc06a(0x2cf)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this[_0x4cc06a(0x3df)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x114a9d=>{const _0x19bbd=_0x4cc06a;let _0x304dbd=_0x114a9d[_0x19bbd(0x280)][_0x19bbd(0x3b9)](),_0x4b2abc=await this['_startCollaboration'](_0x304dbd,t['UniverInstanceType'][_0x19bbd(0x2cf)]);this[_0x19bbd(0x33d)][_0x19bbd(0x43f)](_0x304dbd,_0x4b2abc);}),this['_univerInstanceService']['getTypeOfUnitAdded$'](t[_0x4cc06a(0x378)]['UNIVER_BOARD'])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this['dispose$']),(0x0,s[_0x4cc06a(0x2d3)])(0x10))[_0x4cc06a(0x46c)](async _0x37cf3c=>{const _0x1b984d=_0x4cc06a;let _0xf72355=_0x37cf3c[_0x1b984d(0x280)][_0x1b984d(0x3b9)](),_0x56617f=await this['_startCollaboration'](_0xf72355,t[_0x1b984d(0x378)][_0x1b984d(0x4b5)]);this[_0x1b984d(0x33d)][_0x1b984d(0x43f)](_0xf72355,_0x56617f);}),this[_0x4cc06a(0x22a)][_0x4cc06a(0x1e6)](t['UniverInstanceType'][_0x4cc06a(0x440)])[_0x4cc06a(0x4bd)]((0x0,i[_0x4cc06a(0x2fc)])(this[_0x4cc06a(0x3df)]),(0x0,s[_0x4cc06a(0x2d3)])(0x10))[_0x4cc06a(0x46c)](async _0xbd7d47=>{const _0x534ef5=_0x4cc06a;let _0x5c0bb3=_0xbd7d47[_0x534ef5(0x280)][_0x534ef5(0x3b9)](),_0x368eca=await this[_0x534ef5(0x2d2)](_0x5c0bb3,t[_0x534ef5(0x378)][_0x534ef5(0x440)]);this[_0x534ef5(0x33d)][_0x534ef5(0x43f)](_0x5c0bb3,_0x368eca);}),(0x0,i[_0x4cc06a(0x22e)])(this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType'][_0x4cc06a(0x4d3)]),this[_0x4cc06a(0x22a)]['getTypeOfUnitDisposed$'](t[_0x4cc06a(0x378)]['UNIVER_DOC']),this[_0x4cc06a(0x22a)][_0x4cc06a(0x4b8)](t[_0x4cc06a(0x378)]['UNIVER_SLIDE']),this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType']['UNIVER_BOARD']),this['_univerInstanceService'][_0x4cc06a(0x4b8)](t['UniverInstanceType'][_0x4cc06a(0x440)]))['pipe']((0x0,i['takeUntil'])(this[_0x4cc06a(0x3df)]))['subscribe'](_0x3f23aa=>{const _0x5eafbd=_0x4cc06a;let _0x2b4191=_0x3f23aa[_0x5eafbd(0x3b9)](),_0x40c863=this[_0x5eafbd(0x33d)][_0x5eafbd(0x39b)](_0x2b4191);_0x40c863&&(_0x40c863['dispose'](),this[_0x5eafbd(0x33d)][_0x5eafbd(0x36e)](_0x2b4191));});}async[_0x85662d(0x2d2)](_0x354b4a,_0x59f2e3){const _0x1f119f=_0x85662d;let _0x597c0f=await this['_collabSessionService'][_0x1f119f(0x232)](_0x354b4a),_0x159db4=this[_0x1f119f(0x3f3)][_0x1f119f(0x2e8)](this[_0x1f119f(0x39d)](_0x59f2e3),_0x354b4a,_0x59f2e3,_0x597c0f);return await _0x159db4['init'](),this[_0x1f119f(0x31d)]['next'](_0x159db4),_0x159db4;}[_0x85662d(0x39d)](_0x5e58a8){const _0x1d4763=_0x85662d;switch(_0x5e58a8){case t[_0x1d4763(0x378)][_0x1d4763(0x39f)]:return I;case t[_0x1d4763(0x378)][_0x1d4763(0x4d3)]:return R;case t[_0x1d4763(0x378)][_0x1d4763(0x2cf)]:return z;case t[_0x1d4763(0x378)][_0x1d4763(0x4b5)]:return B;case t[_0x1d4763(0x378)][_0x1d4763(0x440)]:return L;default:throw Error(_0x1d4763(0x49e)+_0x5e58a8);}}};H=y([v(0x0,(0x0,t['Inject'])(t[_0x85662d(0x330)])),v(0x1,(0x0,t[_0x85662d(0x340)])(V)),v(0x2,t[_0x85662d(0x29d)]),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x85662d(0x268),et='1.0.0-alpha.4';let tt=class extends t[_0x85662d(0x304)]{constructor(_0x385521,_0x1566b1){super(),this['_univerInstanceService']=_0x385521,this['_configService']=_0x1566b1,this['_init']();}['_init'](){const _0x462d28=_0x85662d;this[_0x462d28(0x221)](this['_univerInstanceService'][_0x462d28(0x2db)][_0x462d28(0x46c)](()=>{const _0x43d430=_0x462d28;var _0x419251;let _0x163300=this[_0x43d430(0x22a)][_0x43d430(0x26b)](),_0x45656b=(_0x419251=this[_0x43d430(0x377)][_0x43d430(0x262)](_0x43d430(0x3d0)))==null?_0x43d430(0x4dc):_0x419251;_0x163300 instanceof t['Workbook']&&(_0x45656b=_0x163300[_0x43d430(0x239)]),document['title']=_0x45656b;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['IConfigService'])],tt);let nt=function(_0x3e29ec){const _0x54b78d=_0x85662d;return _0x3e29ec[_0x54b78d(0x4ce)]=_0x54b78d(0x4ce),_0x3e29ec[_0x54b78d(0x3b1)]=_0x54b78d(0x3b1),_0x3e29ec['BASE64']=_0x54b78d(0x290),_0x3e29ec;}({});const rt=(0x0,t['createIdentifier'])('base-ui.attachment-io.service');let U=class{constructor(_0x27a9e9,_0x535eef,_0x5e00a8){const _0x2bd9e8=_0x85662d;this[_0x2bd9e8(0x28e)]=_0x27a9e9,this[_0x2bd9e8(0x377)]=_0x535eef,this[_0x2bd9e8(0x22a)]=_0x5e00a8;}[_0x85662d(0x3f1)](){const _0x542a7b=_0x85662d;var _0x85c2e;return(_0x85c2e=this[_0x542a7b(0x428)]()[_0x542a7b(0x3e2)])==null?{}:_0x85c2e;}async[_0x85662d(0x4c1)](_0x4c3087){const _0x2ff425=_0x85662d;let _0x5bc593=this[_0x2ff425(0x3f1)]();if(it(_0x4c3087,_0x5bc593),_0x5bc593[_0x2ff425(0x2ab)])return _0x5bc593[_0x2ff425(0x2ab)](_0x4c3087);let _0x3772c8=await this[_0x2ff425(0x36c)](_0x4c3087);return{'id':_0x3772c8,'name':_0x4c3087['name'],'mimeType':_0x4c3087[_0x2ff425(0x212)],'size':_0x4c3087[_0x2ff425(0x362)],'sourceType':_0x2ff425(0x3b1),'source':_0x3772c8};}async[_0x85662d(0x36c)](_0x3b9962){const _0x3f3aa2=_0x85662d;let _0x3e080e=this[_0x3f3aa2(0x22a)][_0x3f3aa2(0x26b)](),_0x2221ad=_0x3e080e==null?void 0x0:_0x3e080e[_0x3f3aa2(0x3b9)]();if(!_0x2221ad)throw Error(_0x3f3aa2(0x4f3));let _0x3a525d=new FormData();_0x3a525d[_0x3f3aa2(0x2e0)]('file',_0x3b9962);let _0x1ef508=this[_0x3f3aa2(0x231)]()+_0x3f3aa2(0x452)+_0x3b9962[_0x3f3aa2(0x362)][_0x3f3aa2(0x2da)]()+_0x3f3aa2(0x324)+a[_0x3f3aa2(0x27d)]['UnitEmbedded']+'&assign='+encodeURIComponent(_0x2221ad),_0x10d654=(await this['_httpService']['post'](_0x1ef508,{'body':_0x3a525d}))['body'][_0x3f3aa2(0x308)];if(typeof _0x10d654!=_0x3f3aa2(0x1dc)||!_0x10d654)throw Error(_0x3f3aa2(0x22d));return _0x10d654;}[_0x85662d(0x231)](){var _0x5622d5;return(_0x5622d5=this['_getConfig']()['uploadFileServerUrl'])==null?'/universer-api/stream/file/upload':_0x5622d5;}[_0x85662d(0x428)](){const _0x145549=_0x85662d;var _0x43b5d1;return(_0x43b5d1=this[_0x145549(0x377)]['getConfig']('collaboration-client.config'))==null?{}:_0x43b5d1;}};U=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService'])),v(0x1,(0x0,t[_0x85662d(0x340)])(t['IConfigService'])),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x33e)]))],U);function it(_0x2875ab,_0x353ae9){const _0x1afe23=_0x85662d;var _0x320c44;if(_0x353ae9[_0x1afe23(0x2c4)]!=null&&_0x2875ab[_0x1afe23(0x362)]>_0x353ae9[_0x1afe23(0x2c4)])throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.');if((_0x320c44=_0x353ae9[_0x1afe23(0x43c)])!=null&&_0x320c44[_0x1afe23(0x45a)]&&!_0x353ae9[_0x1afe23(0x43c)][_0x1afe23(0x450)](_0x471d06=>_0x2875ab[_0x1afe23(0x212)]===_0x471d06||_0x2875ab[_0x1afe23(0x239)]['endsWith'](_0x471d06)||_0x471d06['endsWith']('/*')&&_0x2875ab['type'][_0x1afe23(0x3ba)](_0x471d06[_0x1afe23(0x409)](0x0,-0x1))))throw Error(_0x1afe23(0x3ac));}let W=class{constructor(_0x3b3ab,_0x39d027,_0x378b6d){const _0x5923be=_0x85662d;this['_configService']=_0x3b3ab,this[_0x5923be(0x28e)]=_0x39d027,this[_0x5923be(0x284)]=_0x378b6d,this[_0x5923be(0x30d)]();}[_0x85662d(0x30d)](){const _0x5b9db6=_0x85662d;this[_0x5b9db6(0x28e)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x343d22,_0x4cc6ee)=>_0x4cc6ee(_0x343d22)[_0x5b9db6(0x4bd)]((0x0,i[_0x5b9db6(0x4e7)])(async _0x3ec9ba=>{const _0x4cc76e=_0x5b9db6;let _0x101d10=_0x3ec9ba;if(_0x101d10['status']===0x191){if(typeof window>'u')throw Error(_0x4cc76e(0x4c7));if(window[_0x4cc76e(0x457)](this['localeService']['t'](_0x4cc76e(0x48c)))){let _0x3129ef=window['encodeURIComponent'](window['location'][_0x4cc76e(0x497)]);window['location'][_0x4cc76e(0x497)]=this[_0x4cc76e(0x454)]()+_0x4cc76e(0x386)+_0x3129ef;}}return _0x101d10;}))});}[_0x85662d(0x454)](){const _0x14acae=_0x85662d;var _0x32ed67;let _0xd60b38=this[_0x14acae(0x377)][_0x14acae(0x262)](m);return(_0x32ed67=_0xd60b38==null?void 0x0:_0xd60b38[_0x14acae(0x229)])==null?'/universer-api/oidc/authpage':_0x32ed67;}};W=y([v(0x0,t[_0x85662d(0x29d)]),v(0x1,(0x0,t['Inject'])(l[_0x85662d(0x315)])),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x285)]))],W);let G=class extends t[_0x85662d(0x304)]{constructor(_0x4b4b6b,_0x267724){const _0x3e37f2=_0x85662d;super(),this[_0x3e37f2(0x3aa)]=_0x4b4b6b,this['_configService']=_0x267724,g(this,_0x3e37f2(0x44e),!0x1),this[_0x3e37f2(0x294)]();}[_0x85662d(0x294)](){const _0x2ce24f=_0x85662d;let _0x412e74=this;this[_0x2ce24f(0x221)](this[_0x2ce24f(0x3aa)][_0x2ce24f(0x4a9)]({'priority':0x3e7,'interceptor':(0x0,l[_0x2ce24f(0x1fc)])({'isMatch'(_0x4ba2ae){const _0x57a3e4=_0x2ce24f;var _0xc097b6;if(_0x4ba2ae[_0x57a3e4(0x40f)]==='POST'&&(_0xc097b6=_0x4ba2ae[_0x57a3e4(0x449)])!=null&&_0xc097b6[_0x57a3e4(0x2a6)]){let {objectID:_0x40731a,objectType:_0x1bde77}=_0x4ba2ae['requestParams'][_0x57a3e4(0x2a6)]||{};if(!_0x40731a||_0x1bde77===void 0x0)return!0x1;let _0x133434=_0x412e74[_0x57a3e4(0x306)]()+'/'+_0x1bde77+_0x57a3e4(0x293)+_0x40731a+_0x57a3e4(0x3c9);if(_0x4ba2ae[_0x57a3e4(0x26a)]===_0x133434)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2a6fbb){const _0x44e6c0=_0x2ce24f;var _0x2d7671;return(_0x2d7671=_0x2a6fbb[_0x44e6c0(0x449)])==null?void 0x0:_0x2d7671['body'];},'mergeParamsToRequest'(_0x39eb1a,_0x488565){const _0x3da612=_0x2ce24f;let _0x448f68=_0x412e74[_0x3da612(0x306)]()+_0x3da612(0x2ad),_0x6c91be=_0x39eb1a[_0x3da612(0x399)]((_0x7190ee,_0x330e7e)=>{const _0x6fbfc8=_0x3da612;let {unitID:_0x3d962b,objectID:_0x4dfc6b,objectType:_0x56446f,actions:_0xcd3c3d}=_0x330e7e;return _0x7190ee[_0x3d962b]||(_0x7190ee[_0x3d962b]={}),_0x7190ee[_0x3d962b][_0x4dfc6b]||(_0x7190ee[_0x3d962b][_0x4dfc6b]={'objectID':_0x4dfc6b,'objectType':_0x56446f,'actions':[]}),_0x7190ee[_0x3d962b][_0x4dfc6b][_0x6fbfc8(0x470)][_0x6fbfc8(0x4e6)](..._0xcd3c3d),_0x7190ee;},{}),_0xa8f753=[];for(let _0x2ee7e1 in _0x6c91be)for(let _0x1084a3 in _0x6c91be[_0x2ee7e1]){let {actions:_0x12b2dd,objectType:_0x58278e}=_0x6c91be[_0x2ee7e1][_0x1084a3],_0x200239=[...new Set(_0x12b2dd)];_0xa8f753['push']({'unitID':_0x2ee7e1,'objectID':_0x1084a3,'objectType':_0x58278e,'actions':_0x200239});}return new l['HTTPRequest'](_0x3da612(0x3db),_0x448f68,{'headers':_0x488565['headers'],'withCredentials':_0x488565[_0x3da612(0x396)],'responseType':_0x488565[_0x3da612(0x274)],'body':{'requests':_0xa8f753}});}},{'distributeResult'(_0xbed74b,_0x4b743c){const _0x20bf68=_0x2ce24f;let {objectActions:_0x45a286}=_0xbed74b;return _0x4b743c[_0x20bf68(0x3fc)](_0x2e9a7b=>{const _0x38e508=_0x20bf68;let {unitID:_0x8e9a7,objectID:_0x58559d,actions:_0x21af16}=_0x2e9a7b,_0x5c8326=_0x45a286[_0x38e508(0x4d5)](_0x212ba2=>_0x212ba2['unitID']===_0x8e9a7&&_0x212ba2[_0x38e508(0x296)]===_0x58559d);return{'config':_0x2e9a7b,'result':{'actions':_0x21af16[_0x38e508(0x3fc)](_0x47e84e=>_0x5c8326==null?void 0x0:_0x5c8326['actions'][_0x38e508(0x4d5)](_0x54dd64=>_0x54dd64[_0x38e508(0x1fa)]===_0x47e84e))[_0x38e508(0x2ca)](_0x29bb98=>!!_0x29bb98),'error':_0xbed74b[_0x38e508(0x3cc)]}};});}})}));}[_0x85662d(0x306)](){const _0x3ab698=_0x85662d;var _0x559a4d;let _0x50ad83=this[_0x3ab698(0x377)][_0x3ab698(0x262)](m);return(_0x559a4d=_0x50ad83==null?void 0x0:_0x50ad83[_0x3ab698(0x2f4)])==null?'/universer-api/authz':_0x559a4d;}async[_0x85662d(0x4bc)](_0x261fb0){const _0x1dcbe9=_0x85662d;let _0xd7458d=this['_getAPIPrefixPath']()+'/'+_0x261fb0[_0x1dcbe9(0x1ff)]+'/object';return(await this[_0x1dcbe9(0x3aa)][_0x1dcbe9(0x3d4)](_0xd7458d,{'body':_0x261fb0}))[_0x1dcbe9(0x2a6)][_0x1dcbe9(0x296)]||'';}async[_0x85662d(0x40e)](_0x55a3df){const _0x59ee93=_0x85662d;let _0x310990=this[_0x59ee93(0x306)]()+_0x59ee93(0x32c);return(await this[_0x59ee93(0x3aa)][_0x59ee93(0x3d4)](_0x310990,{'body':_0x55a3df}))[_0x59ee93(0x2a6)][_0x59ee93(0x28d)];}async[_0x85662d(0x1d7)](_0x3a081b){const _0x5286f6=_0x85662d;var _0x4c46ea;let _0x3108e2=this[_0x5286f6(0x306)]()+'/'+_0x3a081b[_0x5286f6(0x1ff)]+'/object/'+_0x3a081b[_0x5286f6(0x296)],_0xd2eda0=await this[_0x5286f6(0x3aa)][_0x5286f6(0x2b5)](_0x3108e2,{'body':_0x3a081b});if((_0xd2eda0==null||(_0x4c46ea=_0xd2eda0['body'])==null||(_0x4c46ea=_0x4c46ea[_0x5286f6(0x3cc)])==null?void 0x0:_0x4c46ea[_0x5286f6(0x1d4)])!==0x1)throw Error(_0x5286f6(0x338));}async[_0x85662d(0x29b)](_0x5e3667){const _0x5e4ee8=_0x85662d;let _0x266e2e=this[_0x5e4ee8(0x306)]()+'/'+_0x5e3667[_0x5e4ee8(0x1ff)]+_0x5e4ee8(0x293)+_0x5e3667[_0x5e4ee8(0x296)]+_0x5e4ee8(0x3c9);return(await this[_0x5e4ee8(0x3aa)][_0x5e4ee8(0x3d4)](_0x266e2e,{'body':_0x5e3667}))[_0x5e4ee8(0x2a6)][_0x5e4ee8(0x470)];}async[_0x85662d(0x4c8)](_0xc87ac8){const _0x2841e9=_0x85662d;let _0x41b1e8=this[_0x2841e9(0x306)]()+_0x2841e9(0x2ad);return(await this[_0x2841e9(0x3aa)]['post'](_0x41b1e8,{'body':{'requests':_0xc87ac8}}))[_0x2841e9(0x2a6)][_0x2841e9(0x2f1)];}async[_0x85662d(0x1e9)](_0x29ac78){const _0x45f7f4=_0x85662d;let _0x11b125=this[_0x45f7f4(0x306)]()+'/'+_0x29ac78[_0x45f7f4(0x1ff)]+_0x45f7f4(0x37c),_0x1a6b23=await this[_0x45f7f4(0x3aa)][_0x45f7f4(0x3d4)](_0x11b125,{'body':_0x29ac78});return{'roles':_0x1a6b23[_0x45f7f4(0x2a6)][_0x45f7f4(0x482)],'actions':_0x1a6b23[_0x45f7f4(0x2a6)]['actions']};}async[_0x85662d(0x218)](_0x1d900a){const _0x174d67=_0x85662d;let _0x3071a2=this[_0x174d67(0x306)]()+'/collaborator';await this['_HTTPService'][_0x174d67(0x36e)](_0x3071a2,{'params':{'collaboratorID':_0x1d900a['collaboratorID'],'objectID':_0x1d900a[_0x174d67(0x296)],'unitID':_0x1d900a[_0x174d67(0x357)]}});}async[_0x85662d(0x254)](_0x1a7e9a){const _0x38f54c=_0x85662d;let _0x56b74e=this[_0x38f54c(0x306)]()+_0x38f54c(0x4b4);await this['_HTTPService'][_0x38f54c(0x24e)](_0x56b74e,{'body':_0x1a7e9a});}async[_0x85662d(0x384)](_0xb7240e){const _0x5b20f6=_0x85662d;let _0x3633af=this[_0x5b20f6(0x306)]()+'/collaborator';await this['_HTTPService'][_0x5b20f6(0x3d4)](_0x3633af,{'body':_0xb7240e});}async[_0x85662d(0x209)](_0x494507){const _0x739d83=_0x85662d;var _0x5b00ce;let _0x3340ab=this['_getAPIPrefixPath']()+_0x739d83(0x4b4),_0x48ebd7=await this[_0x739d83(0x3aa)][_0x739d83(0x39b)](_0x3340ab,{'params':{'objectID':_0x494507['objectID'],'unitID':_0x494507['unitID']}});return this[_0x739d83(0x4a1)]((_0x5b00ce=_0x48ebd7[_0x739d83(0x2a6)][_0x739d83(0x245)])==null?!0x1:_0x5b00ce),_0x48ebd7['body'][_0x739d83(0x488)];}async[_0x85662d(0x21d)](_0x17666b){const _0x8a3bba=_0x85662d;let _0x8b538f=this[_0x8a3bba(0x306)]()+_0x8a3bba(0x4b4);await this[_0x8a3bba(0x3aa)]['put'](_0x8b538f,{'body':_0x17666b});}['setCfgEnableObjInherit'](_0x2d432c){const _0x4f41a2=_0x85662d;this[_0x4f41a2(0x44e)]=_0x2d432c;}[_0x85662d(0x279)](){const _0x58249c=_0x85662d;return this[_0x58249c(0x44e)];}};G=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)])),v(0x1,(0x0,t['Inject'])(t[_0x85662d(0x29d)]))],G);function at(_0x42061c){const _0x1804f5=_0x85662d;let _0x444529=atob(_0x42061c),_0x318dfd=new Uint8Array(_0x444529[_0x1804f5(0x45a)]);for(let _0x3016de=0x0;_0x3016de<_0x444529[_0x1804f5(0x45a)];_0x3016de++)_0x318dfd[_0x3016de]=_0x444529[_0x1804f5(0x1c8)](_0x3016de);return _0x318dfd;}function ot(_0x1da944){const _0x41d3f9=_0x85662d;let _0x275574='';for(let _0x3d62dc=0x0;_0x3d62dc<_0x1da944[_0x41d3f9(0x45a)];_0x3d62dc++)_0x275574+=String[_0x41d3f9(0x1dd)](_0x1da944[_0x3d62dc]);return btoa(_0x275574);}function st(_0x17ace0,_0x2d9146){const _0x1f5dcd=_0x85662d;let _0xec8330=at(_0x2d9146),_0x4efe8d=(0x0,f[_0x1f5dcd(0x1d3)])(0x10);return ot((0x0,f['concatBytes'])(_0x4efe8d,(0x0,d[_0x1f5dcd(0x2b6)])(_0xec8330,_0x4efe8d)['encrypt']((0x0,f['utf8ToBytes'])(_0x17ace0))));}function ct(){const _0x2ede1b=_0x85662d;let _0x24b808=(0x0,u[_0x2ede1b(0x235)])()[_0x2ede1b(0x2cc)];if(typeof window<'u'&&window[_0x2ede1b(0x3c3)]!==void 0x0&&_0x24b808){let _0x539360={'time':Math[_0x2ede1b(0x2eb)](Date[_0x2ede1b(0x1d2)]()/0x3e8),'domain':location[_0x2ede1b(0x3b5)]};return st(JSON['stringify'](_0x539360),_0x24b808);}}let K=class{constructor(_0x44c064){const _0x251cc6=_0x85662d;this[_0x251cc6(0x28e)]=_0x44c064,this[_0x251cc6(0x36b)]();}[_0x85662d(0x36b)](){const _0x2c5943=_0x85662d;this['_httpService'][_0x2c5943(0x4a9)]({'interceptor':(_0x215837,_0x1c71b7)=>{const _0xb165e8=_0x2c5943;let _0x4ffb97=ct();return _0x4ffb97&&_0x215837[_0xb165e8(0x2c8)][_0xb165e8(0x43f)](_0xb165e8(0x32b),_0x4ffb97),_0x1c71b7(_0x215837);}});}};K=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService']))],K);let q=class extends t[_0x85662d(0x42c)]{constructor(_0x580b7a,_0x52a4fc,_0x368210){const _0x51e38c=_0x85662d;super(),this[_0x51e38c(0x29f)]=_0x580b7a,this[_0x51e38c(0x325)]=_0x52a4fc,this['_localCacheService']=_0x368210,g(this,_0x51e38c(0x344),new i['BehaviorSubject'](null)),g(this,_0x51e38c(0x453),new i[(_0x51e38c(0x439))]()),g(this,_0x51e38c(0x2b3),this['_unitInfo$']['asObservable']()),g(this,_0x51e38c(0x2b7),this[_0x51e38c(0x453)][_0x51e38c(0x2dd)]());}['dispose'](){const _0x34c467=_0x85662d;super[_0x34c467(0x469)](),this[_0x34c467(0x453)][_0x34c467(0x3ab)](),this[_0x34c467(0x344)][_0x34c467(0x3ab)]();}async[_0x85662d(0x37d)](_0x1e12d7,_0x9f891b,_0x25af12,_0x321c22){const _0x2d2ec4=_0x85662d;this[_0x2d2ec4(0x344)][_0x2d2ec4(0x49a)]({'unitId':_0x1e12d7,'type':_0x9f891b,'subUnitId':_0x321c22});let _0x5bd4e6=null;switch(_0x9f891b){case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x4d3)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)]['loadSheet'](_0x1e12d7,_0x25af12,void 0x0,{'initialSubUnitId':_0x321c22});break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x39f)]:_0x5bd4e6=await this['_snapshotService'][_0x2d2ec4(0x483)](_0x1e12d7,_0x25af12);break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x2cf)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)][_0x2d2ec4(0x2aa)](_0x1e12d7,_0x25af12);break;case t['UniverInstanceType'][_0x2d2ec4(0x4b5)]:_0x5bd4e6=await this[_0x2d2ec4(0x325)][_0x2d2ec4(0x4aa)](_0x1e12d7,_0x25af12);break;case t[_0x2d2ec4(0x378)][_0x2d2ec4(0x440)]:_0x5bd4e6=await this['_snapshotService'][_0x2d2ec4(0x405)](_0x1e12d7,_0x25af12);break;default:this[_0x2d2ec4(0x29f)][_0x2d2ec4(0x3cc)]('[DataLoaderService]',_0x2d2ec4(0x40d));break;}return _0x5bd4e6&&this[_0x2d2ec4(0x453)][_0x2d2ec4(0x49a)](_0x5bd4e6),_0x5bd4e6;}async['loadUnit'](_0x4d2002,_0x2b9d51,_0x2d5d23){const _0x517d5d=_0x85662d;var _0x41bbe8;this['_unitInfo$'][_0x517d5d(0x49a)]({'unitId':_0x4d2002,'type':_0x2b9d51,'subUnitId':_0x2d5d23});let _0x533efa=0x0,_0x390efc=await((_0x41bbe8=this[_0x517d5d(0x1f4)])==null?void 0x0:_0x41bbe8[_0x517d5d(0x264)](_0x4d2002));return _0x390efc&&(_0x390efc[_0x517d5d(0x4b9)]||_0x390efc[_0x517d5d(0x406)][_0x517d5d(0x45a)]!==0x0)&&(_0x533efa=_0x390efc['rev']),_0x533efa===0x0&&this[_0x517d5d(0x29f)][_0x517d5d(0x3a9)]('[DataLoaderService]','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.'),this[_0x517d5d(0x37d)](_0x4d2002,_0x2b9d51,_0x533efa,_0x2d5d23);}};q=y([v(0x0,t[_0x85662d(0x3a4)]),v(0x1,(0x0,t[_0x85662d(0x340)])(e['SnapshotService'])),v(0x2,(0x0,t['Optional'])(S))],q);let J=class{constructor(_0x218d5d,_0x5c1667,_0x56f0f3){const _0x2bbbf6=_0x85662d;this[_0x2bbbf6(0x28e)]=_0x218d5d,this['_configService']=_0x5c1667,this['_univerInstanceService']=_0x56f0f3,g(this,_0x2bbbf6(0x2f6),0x0),g(this,_0x2bbbf6(0x216),new i[(_0x2bbbf6(0x439))]()),g(this,'change$',this['_change$']),g(this,_0x2bbbf6(0x41c),new Map());}[_0x85662d(0x3c6)](_0x5f3547){const _0x3cca59=_0x85662d;this[_0x3cca59(0x2f6)]=_0x5f3547,this[_0x3cca59(0x216)][_0x3cca59(0x49a)](_0x5f3547);}[_0x85662d(0x3fa)](_0x86cc3e,_0x19360a){const _0xb8b351=_0x85662d;if(_0x19360a===t[_0xb8b351(0x489)]['BASE64']){let _0x2e4ec4=new Image();return _0x2e4ec4[_0xb8b351(0x3f9)]=_0x86cc3e,_0x2e4ec4;}return this['_imageSourceCache'][_0xb8b351(0x39b)](_0x86cc3e);}[_0x85662d(0x360)](_0x258225,_0x142f43,_0x22d9cc){const _0xc9861c=_0x85662d;_0x142f43===t[_0xc9861c(0x489)][_0xc9861c(0x290)]||_0x22d9cc==null||this[_0xc9861c(0x41c)]['set'](_0x258225,_0x22d9cc);}async['getImage'](_0x4035c3){const _0x294322=_0x85662d;try{let _0x395b7f=this[_0x294322(0x4ad)](this[_0x294322(0x47e)](),''+_0x4035c3),_0x23a4f0=(await this[_0x294322(0x28e)][_0x294322(0x39b)](_0x395b7f))[_0x294322(0x2a6)];if(_0x23a4f0[_0x294322(0x3cc)]&&_0x23a4f0[_0x294322(0x3cc)][_0x294322(0x1d4)]===a[_0x294322(0x233)]['OK']){let _0x382ed2=(0x0,t[_0x294322(0x31e)])(_0x23a4f0[_0x294322(0x26a)],this[_0x294322(0x303)]());return Promise[_0x294322(0x2e5)](_0x382ed2);}return Promise[_0x294322(0x434)](_0x23a4f0[_0x294322(0x3cc)]);}catch(_0x1900a4){return Promise['reject'](_0x1900a4);}}async[_0x85662d(0x49b)](_0xa3767b){const _0x315da3=_0x85662d;let _0x38f4d7='';if(!p[_0x315da3(0x499)]['includes'](_0xa3767b['type']))return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x208)]));if(_0xa3767b[_0x315da3(0x362)]>(0x0,p[_0x315da3(0x37a)])())return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x21f)]));try{let _0x5d7a33=new FormData();_0x5d7a33[_0x315da3(0x2e0)](_0x315da3(0x4c9),_0xa3767b);let _0x321ae4=this[_0x315da3(0x22a)][_0x315da3(0x26b)](),_0x1df79e=_0x321ae4==null?void 0x0:_0x321ae4['getUnitId']();if(!_0x1df79e)throw Error(_0x315da3(0x3ad));let _0x243c8=this[_0x315da3(0x231)]()+_0x315da3(0x452)+_0xa3767b[_0x315da3(0x362)][_0x315da3(0x2da)]()+_0x315da3(0x324)+a[_0x315da3(0x27d)][_0x315da3(0x43d)]+_0x315da3(0x4ea)+encodeURIComponent(_0x1df79e),_0x10d974={'body':_0x5d7a33},_0x4a8c01=(await this[_0x315da3(0x28e)][_0x315da3(0x3d4)](_0x243c8,_0x10d974))['body'];if(typeof _0x4a8c01[_0x315da3(0x308)]!=_0x315da3(0x1dc))return this['_decreaseWaiting'](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)]['ERROR_IMAGE']));_0x38f4d7=_0x4a8c01[_0x315da3(0x308)];}catch{return this[_0x315da3(0x225)](),Promise[_0x315da3(0x434)](Error(t[_0x315da3(0x1d6)][_0x315da3(0x408)]));}return new Promise((_0x445f76,_0xabcc69)=>{const _0x4e35a0=_0x315da3;let _0x586ab7=new FileReader();_0x586ab7[_0x4e35a0(0x398)](_0xa3767b),_0x586ab7[_0x4e35a0(0x376)]=_0x270491=>{const _0x1cd786=_0x4e35a0;var _0x57c965;let _0x5923eb=(_0x57c965=_0x270491[_0x1cd786(0x1f0)])==null?void 0x0:_0x57c965[_0x1cd786(0x461)];if(_0x5923eb==null){this[_0x1cd786(0x225)](),_0xabcc69(Error(t[_0x1cd786(0x1d6)][_0x1cd786(0x408)]));return;}_0x445f76({'imageId':(0x0,t[_0x1cd786(0x2e4)])(0x6),'imageSourceType':t[_0x1cd786(0x489)]['UUID'],'source':_0x38f4d7,'base64Cache':_0x5923eb,'status':t[_0x1cd786(0x1d6)][_0x1cd786(0x366)]}),this['_decreaseWaiting']();};});}[_0x85662d(0x231)](){const _0x4d7ea0=_0x85662d;var _0x1f4adf;let _0x3c6e07=this[_0x4d7ea0(0x377)][_0x4d7ea0(0x262)](m);return(_0x1f4adf=_0x3c6e07==null?void 0x0:_0x3c6e07[_0x4d7ea0(0x391)])==null?_0x4d7ea0(0x326):_0x1f4adf;}[_0x85662d(0x47e)](){const _0x3d2596=_0x85662d;var _0x50e230;let _0x12dcc4=this['_configService'][_0x3d2596(0x262)](m);return(_0x50e230=_0x12dcc4==null?void 0x0:_0x12dcc4[_0x3d2596(0x40a)])==null?'/universer-api/file/{fileID}/sign-url':_0x50e230;}[_0x85662d(0x303)](){const _0x2deb8c=_0x85662d;var _0x290fa7;let _0x3849ee=this[_0x2deb8c(0x377)]['getConfig'](m);return(_0x290fa7=_0x3849ee==null?void 0x0:_0x3849ee[_0x2deb8c(0x1ee)])==null?location[_0x2deb8c(0x3a2)]:_0x290fa7;}['_replaceFileID'](_0x7de463,_0x2e060c){const _0x52bab0=_0x85662d;return _0x7de463[_0x52bab0(0x277)](_0x52bab0(0x3a5),_0x2e060c);}['_decreaseWaiting'](){const _0x57b04c=_0x85662d;--this['_waitCount'],this['_change$'][_0x57b04c(0x49a)](this['_waitCount']);}};J=y([v(0x0,(0x0,t[_0x85662d(0x340)])(l['HTTPService'])),v(0x1,t[_0x85662d(0x29d)]),v(0x2,(0x0,t['Inject'])(t[_0x85662d(0x33e)]))],J);let Y=class{constructor(_0x5202b0,_0x2f9fb6){const _0x2c8481=_0x85662d;this[_0x2c8481(0x377)]=_0x5202b0,this[_0x2c8481(0x3aa)]=_0x2f9fb6;}[_0x85662d(0x306)](){const _0x8d697e=_0x85662d;var _0x2ab710;let _0x31dda9=this[_0x8d697e(0x377)][_0x8d697e(0x262)](m);return(_0x2ab710=_0x31dda9==null?void 0x0:_0x31dda9[_0x8d697e(0x2f4)])==null?_0x8d697e(0x281):_0x2ab710;}async['list'](_0x5af184){const _0x21c584=_0x85662d;let _0x2cd81d=this[_0x21c584(0x306)]()+_0x21c584(0x4b4);return{'list':[{'title':_0x21c584(0x35b),'mentions':(await this[_0x21c584(0x3aa)][_0x21c584(0x39b)](_0x2cd81d,{'params':{'objectID':_0x5af184['unitId'],'unitID':_0x5af184[_0x21c584(0x420)]}}))[_0x21c584(0x2a6)][_0x21c584(0x488)][_0x21c584(0x3fc)](_0x537678=>({'objectId':_0x537678['id'],'name':_0x537678[_0x21c584(0x477)][_0x21c584(0x239)],'metadata':{'icon':_0x537678['subject'][_0x21c584(0x46a)]},'label':_0x537678[_0x21c584(0x477)][_0x21c584(0x239)],'objectType':t['MentionType'][_0x21c584(0x255)]})),'metadata':{},'type':t[_0x21c584(0x373)][_0x21c584(0x255)]}]};}};Y=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t['IConfigService'])),v(0x1,(0x0,t[_0x85662d(0x340)])(l[_0x85662d(0x315)]))],Y);let X=class extends t[_0x85662d(0x42c)]{constructor(_0x492ad9,_0x208316,_0x59f5f5,_0x1a3f80,_0x1a181b){const _0x20940e=_0x85662d;super(),this['_injector']=_0x492ad9,this[_0x20940e(0x22a)]=_0x208316,this[_0x20940e(0x23c)]=_0x59f5f5,this[_0x20940e(0x328)]=_0x1a3f80,this[_0x20940e(0x46e)]=_0x1a181b,this['_initUnitPermissionChange'](),this[_0x20940e(0x312)]();}[_0x85662d(0x312)](){const _0x4d8152=_0x85662d;let _0x431d=async _0x175f7a=>{const _0x270acd=_0x342d;(await this[_0x270acd(0x328)][_0x270acd(0x232)](_0x175f7a))[_0x270acd(0x25d)][_0x270acd(0x4bd)]((0x0,s['filter'])(_0x198487=>_0x198487['eventID']===e[_0x270acd(0x3fb)][_0x270acd(0x41b)]),(0x0,s[_0x270acd(0x2fc)])(this[_0x270acd(0x3df)]))[_0x270acd(0x46c)](_0x14c30e=>{const _0x149b9e=_0x270acd;let {reason:_0x20aaaa}=_0x14c30e[_0x149b9e(0x28a)];this[_0x149b9e(0x46e)][_0x149b9e(0x3ae)]({'id':_0x149b9e(0x446),'data':_0x20aaaa}),this[_0x149b9e(0x23c)]['updatePermissionPoint'](new r[(_0x149b9e(0x416))](_0x175f7a)['id'],!0x1),this[_0x149b9e(0x328)][_0x149b9e(0x1da)](_0x175f7a);});};(0x0,i[_0x4d8152(0x22e)])(this[_0x4d8152(0x22a)][_0x4d8152(0x1e6)](t[_0x4d8152(0x378)][_0x4d8152(0x4d3)]),this[_0x4d8152(0x22a)]['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x4d8152(0x39f)]),this[_0x4d8152(0x22a)]['getTypeOfUnitAdded$'](t[_0x4d8152(0x378)]['UNIVER_BOARD']),this[_0x4d8152(0x22a)][_0x4d8152(0x1e6)](t[_0x4d8152(0x378)]['UNIVER_BASE']))[_0x4d8152(0x4bd)]((0x0,s[_0x4d8152(0x3fc)])(_0x2929eb=>_0x2929eb[_0x4d8152(0x280)][_0x4d8152(0x3b9)]()),(0x0,s[_0x4d8152(0x2ca)])(_0x386e05=>!(0x0,t[_0x4d8152(0x207)])(_0x386e05)),(0x0,s[_0x4d8152(0x2fc)])(this['dispose$']))['subscribe'](_0x40a1a9=>{_0x431d(_0x40a1a9);});}[_0x85662d(0x334)](){const _0x324ade=_0x85662d;let _0x9d20fc=async _0x3ac512=>{const _0x36aabe=_0x342d;let _0x41e5b8=await this['_collaborationSessionService'][_0x36aabe(0x232)](_0x3ac512),_0x3a0041=this[_0x36aabe(0x3f3)][_0x36aabe(0x39b)](r[_0x36aabe(0x368)]);_0x41e5b8[_0x36aabe(0x25d)][_0x36aabe(0x4bd)]((0x0,s[_0x36aabe(0x2ca)])(_0x55abd4=>_0x55abd4[_0x36aabe(0x336)]===e['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,s['takeUntil'])(this[_0x36aabe(0x3df)]))[_0x36aabe(0x46c)](_0x23800a=>{const _0x3f599d=_0x36aabe;let {objectId:_0x3a629a}=_0x23800a[_0x3f599d(0x28a)];_0x3a629a===_0x3ac512?_0x3a0041[_0x3f599d(0x3c4)](_0x3ac512):_0x3a0041[_0x3f599d(0x4ec)](_0x3ac512,_0x3a629a);});};(0x0,i['merge'])(this['_univerInstanceService'][_0x324ade(0x1e6)](t[_0x324ade(0x378)][_0x324ade(0x4d3)]))[_0x324ade(0x4bd)]((0x0,s['map'])(_0x322edb=>_0x322edb['unit']['getUnitId']()),(0x0,s[_0x324ade(0x2ca)])(_0xf139a=>!(0x0,t[_0x324ade(0x207)])(_0xf139a)),(0x0,s['takeUntil'])(this[_0x324ade(0x3df)]))[_0x324ade(0x46c)](_0x15954b=>{_0x9d20fc(_0x15954b);});}};X=y([v(0x0,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x1,t[_0x85662d(0x33e)]),v(0x2,t[_0x85662d(0x4f4)]),v(0x3,(0x0,t[_0x85662d(0x340)])(V)),v(0x4,(0x0,t[_0x85662d(0x340)])(_))],X);let Z=class{constructor(_0x1c2b8d,_0x5e60bb){const _0x4dd761=_0x85662d;this[_0x4dd761(0x377)]=_0x1c2b8d,this['_httpService']=_0x5e60bb;}async['getUnitOnRev'](_0x43c215,_0x249ce4){const _0x3c6bf6=_0x85662d;var _0x17eb76;let {unitID:_0x4c0342,type:_0x4c2bf9,revision:_0x36f710=0x0}=_0x249ce4,_0x185348=this[_0x3c6bf6(0x3c2)]()+'/'+_0x4c2bf9+'/unit/'+_0x4c0342+_0x3c6bf6(0x3c7)+_0x36f710,_0x214d42=(await this[_0x3c6bf6(0x28e)]['get'](_0x185348))[_0x3c6bf6(0x2a6)],_0x13caa8=(_0x17eb76=_0x214d42[_0x3c6bf6(0x4d0)])==null?void 0x0:_0x17eb76[_0x3c6bf6(0x2c5)];if(_0x13caa8){let _0x2476db=_0x13caa8==null?void 0x0:_0x13caa8[_0x3c6bf6(0x481)];_0x13caa8[_0x3c6bf6(0x481)]=e[_0x3c6bf6(0x4b0)][_0x3c6bf6(0x443)]((0x0,e[_0x3c6bf6(0x36d)])(_0x2476db)),Object[_0x3c6bf6(0x342)](_0x13caa8[_0x3c6bf6(0x3a8)])[_0x3c6bf6(0x30f)](([,_0x3a913c])=>{const _0xd77f3e=_0x3c6bf6;let _0x341bf2=_0x3a913c[_0xd77f3e(0x481)];_0x3a913c['originalMeta']=e['textEncoder']['encode']((0x0,e[_0xd77f3e(0x36d)])(_0x341bf2));});}return _0x214d42;}async[_0x85662d(0x1f8)](_0x44ffe8,_0x38137a){const _0x5dc77b=_0x85662d;let {unitID:_0x5a72e7,type:_0x5608d7,blockID:_0x3934ad}=_0x38137a,_0x46bf16=this[_0x5dc77b(0x358)]()+'/'+_0x5608d7+_0x5dc77b(0x247)+_0x5a72e7+_0x5dc77b(0x385)+_0x3934ad;return(await this[_0x5dc77b(0x28e)]['get'](_0x46bf16))[_0x5dc77b(0x2a6)];}async[_0x85662d(0x3b8)](_0x52396c,_0x338904){const _0x4e53fc=_0x85662d;let {unitID:_0x5d3611,type:_0x340df3,blockID:_0x3b6aae}=_0x338904,_0x55de11=this[_0x4e53fc(0x358)]()+'/block/'+_0x340df3+_0x4e53fc(0x247)+_0x5d3611+_0x4e53fc(0x385)+_0x3b6aae;return(await this['_httpService'][_0x4e53fc(0x39b)](_0x55de11))['body'];}async[_0x85662d(0x2ba)](_0x26965f,_0x3a6c88){const _0x30d6cf=_0x85662d;let {unitID:_0x2b4174,type:_0x3c8dfb,from:_0x493d6a,to:_0x5ce97e}=_0x3a6c88,_0x25c49b=this[_0x30d6cf(0x358)]()+'/'+_0x3c8dfb+'/unit/'+_0x2b4174+_0x30d6cf(0x33a)+_0x493d6a+_0x30d6cf(0x4f0)+_0x5ce97e;return(await this[_0x30d6cf(0x28e)]['get'](_0x25c49b))[_0x30d6cf(0x2a6)];}['getSnapshotAPIPath'](){const _0x52c476=_0x85662d;var _0x1b68ab;return(_0x1b68ab=this['_configService'][_0x52c476(0x262)](_0x52c476(0x414)))==null?this[_0x52c476(0x358)]():_0x1b68ab;}[_0x85662d(0x358)](){const _0x190235=_0x85662d;var _0xac2528;let _0x3f8634=this['_configService'][_0x190235(0x262)](m);return(_0xac2528=_0x3f8634==null?void 0x0:_0x3f8634[_0x190235(0x485)])==null?_0x190235(0x252):_0xac2528;}async[_0x85662d(0x333)](_0x36b0d9,_0x109395){const _0x55aabb=_0x85662d;let _0x4a9740=_0x55aabb(0x393)+_0x109395[_0x55aabb(0x212)]+_0x55aabb(0x247)+_0x109395[_0x55aabb(0x357)]+'/resources';return(await this[_0x55aabb(0x28e)][_0x55aabb(0x39b)](_0x4a9740,{'params':{'resourceId':JSON['stringify'](_0x109395[_0x55aabb(0x400)])}}))[_0x55aabb(0x2a6)];}[_0x85662d(0x2e3)](){const _0x24ebbc=_0x85662d;throw Error(_0x24ebbc(0x270));}['updateSnapshot'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x85662d(0x37b)](){const _0x49ba45=_0x85662d;throw Error(_0x49ba45(0x270));}[_0x85662d(0x4af)](){const _0x4423ad=_0x85662d;throw Error(_0x4423ad(0x270));}[_0x85662d(0x3e4)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x85662d(0x451)](){const _0x2d16b0=_0x85662d;throw Error(_0x2d16b0(0x270));}};Z=y([v(0x0,t[_0x85662d(0x29d)]),v(0x1,(0x0,t[_0x85662d(0x340)])(l['HTTPService']))],Z);let Q=class extends t[_0x85662d(0x3f8)]{constructor(_0x11a669,_0x473311,_0x21acbf,_0x5a4e2d,_0x4b3604){const _0x14b28a=_0x85662d;super(_0x11a669,_0x473311,_0x21acbf),this[_0x14b28a(0x30e)]=_0x5a4e2d,this[_0x14b28a(0x29f)]=_0x4b3604;}['transformUndoRedo'](_0x109fda,_0x32889d){const _0x184735=_0x85662d;let _0x11217f=this[_0x184735(0x1e3)](_0x109fda);if(_0x11217f)try{let _0xa5b222=this[_0x184735(0x4df)](_0x11217f,_0x32889d);this['_substituteUndoStack'](_0x109fda,_0xa5b222);}catch(_0x3dc90c){this[_0x184735(0x29f)][_0x184735(0x3cc)]('[CollaborationUndoRedoService]',_0x3dc90c),this[_0x184735(0x259)](_0x109fda);}let _0xfc7357=this[_0x184735(0x2d7)](_0x109fda);if(_0xfc7357)try{let _0x4e8ed8=this[_0x184735(0x4df)](_0xfc7357,_0x32889d);this['_substituteRedoStack'](_0x109fda,_0x4e8ed8);}catch(_0x33e197){this[_0x184735(0x29f)]['error'](_0x33e197),this['_clearRedo'](_0x109fda);}}[_0x85662d(0x259)](_0x2463ba){const _0x38b9db=_0x85662d;let _0x2187be=this['_getUndoStack'](_0x2463ba);_0x2187be&&(_0x2187be[_0x38b9db(0x45a)]=0x0,this[_0x38b9db(0x435)]());}['_clearRedo'](_0x41400f){const _0x3af4a4=_0x85662d;let _0x297c5e=this[_0x3af4a4(0x2d7)](_0x41400f);_0x297c5e&&(_0x297c5e[_0x3af4a4(0x45a)]=0x0,this[_0x3af4a4(0x435)]());}['_substituteUndoStack'](_0x2de000,_0x38a8c6){const _0x55615d=_0x85662d;this[_0x55615d(0x1cb)][_0x55615d(0x43f)](_0x2de000,_0x38a8c6),this[_0x55615d(0x435)]();}['_substituteRedoStack'](_0x1704db,_0xa0a85){const _0x1c2ec1=_0x85662d;this[_0x1c2ec1(0x3a1)][_0x1c2ec1(0x43f)](_0x1704db,_0xa0a85),this[_0x1c2ec1(0x435)]();}['_transformStack'](_0x148843,_0x4eb93b){const _0x19cafc=_0x85662d;let _0x25d00a=[],_0x14c3be=_0x4eb93b,_0x3c1983=_0x4eb93b;for(let _0x52015c=_0x148843[_0x19cafc(0x45a)]-0x1;_0x52015c>=0x0;_0x52015c--){let {unitID:_0x118abb,undoMutations:_0x184bdc,redoMutations:_0x4db6e9}=_0x148843[_0x52015c],_0x1d881f=this[_0x19cafc(0x30e)]['transformMutationsWithChangeset'](_0x14c3be,_0x184bdc),_0x267f27=this[_0x19cafc(0x30e)][_0x19cafc(0x3cf)](_0x3c1983,_0x4db6e9);if((0x0,e[_0x19cafc(0x287)])(_0x1d881f)||(0x0,e[_0x19cafc(0x287)])(_0x267f27)){this[_0x19cafc(0x29f)][_0x19cafc(0x3cc)](_0x19cafc(0x273),_0x19cafc(0x2f5),_0x1d881f,_0x267f27);break;}_0x14c3be=_0x1d881f[_0x19cafc(0x237)],_0x3c1983=_0x267f27[_0x19cafc(0x237)],_0x25d00a[_0x19cafc(0x4e6)]({'unitID':_0x118abb,'undoMutations':_0x1d881f[_0x19cafc(0x2f8)],'redoMutations':_0x267f27[_0x19cafc(0x2f8)]});}return _0x25d00a[_0x19cafc(0x367)]();}};Q=y([v(0x0,t[_0x85662d(0x33e)]),v(0x1,t[_0x85662d(0x448)]),v(0x2,t['IContextService']),v(0x3,e['ITransformService']),v(0x4,t[_0x85662d(0x3a4)])],Q);let $=class extends t[_0x85662d(0x1eb)]{constructor(_0x50d56e=ee,_0x46ab32,_0x3f3208,_0x1ff1ec){const _0xd6580f=_0x85662d;super(),this[_0xd6580f(0x29e)]=_0x50d56e,this[_0xd6580f(0x29f)]=_0x46ab32,this[_0xd6580f(0x3f3)]=_0x3f3208,this['_configService']=_0x1ff1ec;let {..._0x2068ee}=(0x0,t[_0xd6580f(0x22e)])({},ee,this[_0xd6580f(0x29e)]);if(!_0x2068ee['socketService'])throw Error(_0xd6580f(0x2a8));this[_0xd6580f(0x29e)]=_0x2068ee,this['_configService'][_0xd6580f(0x4bb)](m,_0x2068ee);}[_0x85662d(0x263)](){const _0x5ccb15=_0x85662d;this[_0x5ccb15(0x41e)](),this[_0x5ccb15(0x30c)]();}[_0x85662d(0x41e)](){const _0x5f1a1b=_0x85662d;var _0x1322f7,_0x5166f0;this[_0x5f1a1b(0x3f3)][_0x5f1a1b(0x4ca)](t[_0x5f1a1b(0x249)])&&this[_0x5f1a1b(0x29f)]['error'](_0x5f1a1b(0x4db),_0x5f1a1b(0x4e0));let _0x5c33a7=(0x0,t[_0x5f1a1b(0x3af)])([[t[_0x5f1a1b(0x249)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0x5f1a1b(0x29e)][_0x5f1a1b(0x3ef)]}],[e[_0x5f1a1b(0x246)],{'useClass':Z}],[t[_0x5f1a1b(0x1f7)],{'useClass':G}],[t[_0x5f1a1b(0x1cd)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x5f1a1b(0x22c)],{'useClass':Y}],[H],[tt]],(_0x1322f7=this[_0x5f1a1b(0x29e)])==null?void 0x0:_0x1322f7[_0x5f1a1b(0x456)]);if(!((_0x5166f0=this[_0x5f1a1b(0x29e)])!=null&&_0x5166f0[_0x5f1a1b(0x4e2)])){let _0x478dd7=_0x5c33a7[_0x5f1a1b(0x327)](([_0x27de6c])=>_0x27de6c===w);_0x478dd7!==-0x1&&_0x5c33a7[_0x5f1a1b(0x21e)](_0x478dd7,0x1);}(0x0,t[_0x5f1a1b(0x2a0)])(this['_injector'],_0x5c33a7);}['_initDependencies'](){const _0x8a8588=_0x85662d;var _0x11a3ca,_0x5bb54a;if(this[_0x8a8588(0x3f3)]['get'](l[_0x8a8588(0x315)])[_0x8a8588(0x4a9)]({'priority':0x14,'interceptor':(0x0,l[_0x8a8588(0x42d)])({'maxParallel':0x6})}),!((_0x11a3ca=this['_config'])!=null&&_0x11a3ca[_0x8a8588(0x49c)])){var _0x5a120d;(_0x5a120d=this[_0x8a8588(0x3f3)]['get'](S,t['Quantity'][_0x8a8588(0x206)]))==null||_0x5a120d[_0x8a8588(0x20e)]();}(_0x5bb54a=this[_0x8a8588(0x29e)])!=null&&_0x5bb54a[_0x8a8588(0x210)]&&(0x0,t['touchDependencies'])(this[_0x8a8588(0x3f3)],[[W]]),(0x0,t[_0x8a8588(0x438)])(this[_0x8a8588(0x3f3)],[[K],[H],[X]]);}};g($,_0x85662d(0x2e7),'UNIVER_COLLABORATION_CLIENT_PLUGIN'),g($,_0x85662d(0x412),$e),g($,_0x85662d(0x34a),et),$=y([(0x0,t[_0x85662d(0x236)])(u['UniverLicensePlugin'],e['UniverCollaborationPlugin'],l['UniverNetworkPlugin']),v(0x1,t['ILogService']),v(0x2,(0x0,t[_0x85662d(0x340)])(t[_0x85662d(0x330)])),v(0x3,t[_0x85662d(0x29d)])],$),exports['AttachmentSourceType']=nt,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x361),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x85662d(0x4bf)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x241),{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,_0x85662d(0x38e),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x85662d(0x4bf)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x85662d(0x2c3)]=m,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x4cb),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x85662d(0x4bf)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x295),{'enumerable':!0x0,'get':function(){return F;}}),Object['defineProperty'](exports,_0x85662d(0x38a),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x3f5),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x35d),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x38f),{'enumerable':!0x0,'get':function(){return Ye;}}),exports['CollaborationStatus']=Be,exports['CollaborationUIEventId']=oe,exports[_0x85662d(0x200)]=_,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x299),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x85662d(0x38d)]=se,Object[_0x85662d(0x4bf)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return M;}}),exports[_0x85662d(0x3e7)]=te,exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']='/universer-api/uniscript',exports[_0x85662d(0x2b1)]='/universer-api/user/session-ticket',Object['defineProperty'](exports,_0x85662d(0x34b),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x425),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x298),{'enumerable':!0x0,'get':function(){return P;}}),exports['HEARTBEAT_INTERVAL_KEY']=_0x85662d(0x323),exports[_0x85662d(0x2f9)]=_0x85662d(0x258),exports['IAttachmentIoService']=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x85662d(0x1ec)]=qe,exports[_0x85662d(0x2df)]=S,exports[_0x85662d(0x32a)]=We,exports[_0x85662d(0x4cf)]=w,exports[_0x85662d(0x3ec)]=0x3e8,exports[_0x85662d(0x4d7)]='LOCAL_CACHE_INTERVAL',Object[_0x85662d(0x4bf)](exports,_0x85662d(0x1f1),{'enumerable':!0x0,'get':function(){return b;}}),Object['defineProperty'](exports,_0x85662d(0x487),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x335),{'enumerable':!0x0,'get':function(){return N;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x39a),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x85662d(0x224),exports[_0x85662d(0x34f)]=_0x85662d(0x1d8),exports[_0x85662d(0x4d1)]=ve,Object['defineProperty'](exports,_0x85662d(0x46b),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x4c2),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x85662d(0x4bf)](exports,_0x85662d(0x476),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object['defineProperty'](exports,_0x85662d(0x4ae),{'enumerable':!0x0,'get':function(){return O;}}),exports['UnitStatus']=Se,Object[_0x85662d(0x4bf)](exports,_0x85662d(0x2dc),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x85662d(0x3d3)]=Ge,exports[_0x85662d(0x36f)]=be,exports[_0x85662d(0x266)]=Ke;
|
|
1
|
+
const _0x5a7686=_0x5741;(function(_0x3ed621,_0x375178){const _0x300a5e=_0x5741,_0x245da6=_0x3ed621();while(!![]){try{const _0xe07164=parseInt(_0x300a5e(0xfb))/0x1+-parseInt(_0x300a5e(0x136))/0x2+-parseInt(_0x300a5e(0x2ce))/0x3+parseInt(_0x300a5e(0x391))/0x4*(parseInt(_0x300a5e(0x2fa))/0x5)+parseInt(_0x300a5e(0x185))/0x6+-parseInt(_0x300a5e(0x15a))/0x7*(parseInt(_0x300a5e(0x1da))/0x8)+parseInt(_0x300a5e(0x36d))/0x9;if(_0xe07164===_0x375178)break;else _0x245da6['push'](_0x245da6['shift']());}catch(_0x1ace8d){_0x245da6['push'](_0x245da6['shift']());}}}(_0x37aa,0x59dc2),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x5a7686(0x14d)}));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-pro/slides'),l=require('@univerjs/network'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x5a7686(0x159),ee={},te=_0x5a7686(0x172),ne=0x4e20;function re(_0x53d7fe){const _0xed14d0=_0x5a7686;return JSON['stringify'](_0x53d7fe)[_0xed14d0(0x225)];}function h(_0x5c886d){'@babel/helpers - typeof';const _0x318a9e=_0x5a7686;return h=typeof Symbol==_0x318a9e(0x137)&&typeof Symbol['iterator']==_0x318a9e(0x372)?function(_0x200a9c){return typeof _0x200a9c;}:function(_0x35d4d6){const _0x4663fd=_0x318a9e;return _0x35d4d6&&typeof Symbol==_0x4663fd(0x137)&&_0x35d4d6[_0x4663fd(0x169)]===Symbol&&_0x35d4d6!==Symbol[_0x4663fd(0x31c)]?_0x4663fd(0x372):typeof _0x35d4d6;},h(_0x5c886d);}function ie(_0x5b590b,_0x3564cd){const _0x5538b3=_0x5a7686;if(h(_0x5b590b)!=_0x5538b3(0x32b)||!_0x5b590b)return _0x5b590b;var _0xb32292=_0x5b590b[Symbol[_0x5538b3(0x2e5)]];if(_0xb32292!==void 0x0){var _0x4bc327=_0xb32292[_0x5538b3(0x259)](_0x5b590b,_0x3564cd||_0x5538b3(0x288));if(h(_0x4bc327)!=_0x5538b3(0x32b))return _0x4bc327;throw TypeError(_0x5538b3(0x7e));}return(_0x3564cd===_0x5538b3(0x354)?String:Number)(_0x5b590b);}function ae(_0x17afdd){const _0x3ab301=_0x5a7686;var _0x360b02=ie(_0x17afdd,_0x3ab301(0x354));return h(_0x360b02)==_0x3ab301(0x372)?_0x360b02:_0x360b02+'';}function g(_0x4e5318,_0x333f3d,_0x4df28b){const _0x4d8b58=_0x5a7686;return(_0x333f3d=ae(_0x333f3d))in _0x4e5318?Object[_0x4d8b58(0xd8)](_0x4e5318,_0x333f3d,{'value':_0x4df28b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4e5318[_0x333f3d]=_0x4df28b,_0x4e5318;}let oe=function(_0x17ab7d){const _0x33755d=_0x5a7686;return _0x17ab7d[_0x33755d(0x130)]='OTHER_CLIENT_EDITING',_0x17ab7d['PERMISSION_DENIED']=_0x33755d(0x1a8),_0x17ab7d[_0x33755d(0x276)]=_0x33755d(0x276),_0x17ab7d[_0x33755d(0x192)]=_0x33755d(0x192),_0x17ab7d['JOIN_ROOM_FAILED']=_0x33755d(0x230),_0x17ab7d[_0x33755d(0x181)]=_0x33755d(0x181),_0x17ab7d[_0x33755d(0x199)]=_0x33755d(0x199),_0x17ab7d[_0x33755d(0x374)]=_0x33755d(0x374),_0x17ab7d;}({});var _=class{constructor(){const _0x2468f0=_0x5a7686;g(this,_0x2468f0(0x25f),new i['Subject']()),g(this,_0x2468f0(0x127),this['_event$']['asObservable']());}[_0x5a7686(0x388)](_0xf17539){const _0x1d7360=_0x5a7686;this['_event$'][_0x1d7360(0x1eb)](_0xf17539);}},se=class{constructor(){const _0x28e2a=_0x5a7686;g(this,'_commentUpdate$',new i[(_0x28e2a(0x340))]()),g(this,_0x28e2a(0x19d),this[_0x28e2a(0x2ba)][_0x28e2a(0xea)]());}[_0x5a7686(0x2a5)](_0x10fbee){const _0x1e3a57=_0x5a7686;this['_commentUpdate$'][_0x1e3a57(0x1eb)](_0x10fbee);}};function v(_0x1c0871,_0x3c2a88){return function(_0x2e732d,_0x18e2cc){_0x3c2a88(_0x2e732d,_0x18e2cc,_0x1c0871);};}function y(_0x48aef3,_0x5260d0,_0x554538,_0x2e7241){const _0x1d5ebc=_0x5a7686;var _0xa1ac62=arguments[_0x1d5ebc(0x225)],_0x5123bd=_0xa1ac62<0x3?_0x5260d0:_0x2e7241===null?_0x2e7241=Object['getOwnPropertyDescriptor'](_0x5260d0,_0x554538):_0x2e7241,_0x25bf26;if(typeof Reflect=='object'&&typeof Reflect[_0x1d5ebc(0x342)]=='function')_0x5123bd=Reflect[_0x1d5ebc(0x342)](_0x48aef3,_0x5260d0,_0x554538,_0x2e7241);else{for(var _0x4f47b8=_0x48aef3[_0x1d5ebc(0x225)]-0x1;_0x4f47b8>=0x0;_0x4f47b8--)(_0x25bf26=_0x48aef3[_0x4f47b8])&&(_0x5123bd=(_0xa1ac62<0x3?_0x25bf26(_0x5123bd):_0xa1ac62>0x3?_0x25bf26(_0x5260d0,_0x554538,_0x5123bd):_0x25bf26(_0x5260d0,_0x554538))||_0x5123bd);}return _0xa1ac62>0x3&&_0x5123bd&&Object[_0x1d5ebc(0xd8)](_0x5260d0,_0x554538,_0x5123bd),_0x5123bd;}let b=class extends t[_0x5a7686(0x117)]{constructor(_0x7afd07,_0x155ef4){const _0x577483=_0x5a7686;super(),this[_0x577483(0x104)]=_0x7afd07,this[_0x577483(0x17e)]=_0x155ef4,g(this,'_roomMembers',new Map()),g(this,_0x577483(0xfc),new i[(_0x577483(0x340))]()),this[_0x577483(0x17d)]((0x0,i[_0x577483(0x316)])(this['_univerInstanceService'][_0x577483(0x16b)](t[_0x577483(0x2e9)][_0x577483(0xa2)])[_0x577483(0xf8)]((0x0,s['map'])(_0x53ce26=>_0x53ce26[_0x577483(0x250)]())),this['_univerInstanceService'][_0x577483(0x16b)](t[_0x577483(0x2e9)]['UNIVER_DOC'])['pipe']((0x0,s[_0x577483(0x350)])(_0x84bd48=>_0x84bd48[_0x577483(0x250)]())),this[_0x577483(0x104)]['getTypeOfUnitDisposed$'](t[_0x577483(0x2e9)][_0x577483(0x320)])[_0x577483(0xf8)]((0x0,s[_0x577483(0x350)])(_0x20c9f1=>_0x20c9f1[_0x577483(0x250)]())),this[_0x577483(0x104)]['getTypeOfUnitDisposed$'](t[_0x577483(0x2e9)][_0x577483(0x27f)])['pipe']((0x0,s[_0x577483(0x350)])(_0x313c11=>_0x313c11['getUnitId']())))[_0x577483(0x24b)](_0x248410=>this[_0x577483(0x1ff)](_0x248410)));}[_0x5a7686(0x327)](_0x29e702){const _0x3bd5b2=_0x5a7686;return this[_0x3bd5b2(0x1b6)]['has'](_0x29e702)?(0x0,i['of'])(this[_0x3bd5b2(0x1b6)][_0x3bd5b2(0x1b7)](_0x29e702)):this[_0x3bd5b2(0xfc)][_0x3bd5b2(0xf8)]((0x0,s[_0x3bd5b2(0x350)])(_0x4b0fcb=>{const _0x5aec48=_0x3bd5b2;if(_0x4b0fcb===_0x29e702)return this['_roomMembers'][_0x5aec48(0x1b7)](_0x4b0fcb);}));}[_0x5a7686(0x9e)](_0x4e7a66){const _0x5389a3=_0x5a7686;this['_userManagerService'][_0x5389a3(0x9e)](_0x4e7a66);}[_0x5a7686(0x7a)](){const _0xa00f16=_0x5a7686;return this[_0xa00f16(0x17e)][_0xa00f16(0x7a)]();}[_0x5a7686(0xd1)](_0x1df353,_0x344841){const _0xa11beb=_0x5a7686;let _0x28a56b=this['_roomMembers'][_0xa11beb(0x1b7)](_0x1df353);_0x28a56b||(_0x28a56b=new ce(),this[_0xa11beb(0x1b6)][_0xa11beb(0x22c)](_0x1df353,_0x28a56b),this[_0xa11beb(0xfc)][_0xa11beb(0x1eb)](_0x1df353)),_0x28a56b[_0xa11beb(0xd1)](_0x344841);}[_0x5a7686(0x18d)](_0x337d05,_0x3a3257){const _0x1deea8=_0x5a7686;let _0x4b8c94=this[_0x1deea8(0x1b6)][_0x1deea8(0x1b7)](_0x337d05);_0x4b8c94&&_0x4b8c94['removeMember'](_0x3a3257);}[_0x5a7686(0xda)](_0x6b7742){const _0x2084b4=_0x5a7686;return this[_0x2084b4(0x1b6)]['get'](_0x6b7742);}['getMember'](_0xd9851d,_0xd5d0ac){const _0x2022e8=_0x5a7686;let _0x2d198f=this[_0x2022e8(0x1b6)][_0x2022e8(0x1b7)](_0xd9851d);if(_0x2d198f)return _0x2d198f[_0x2022e8(0x348)](_0xd5d0ac);}[_0x5a7686(0x1ff)](_0x5d4b09){const _0x1c8f61=_0x5a7686;let _0xda0db6=this[_0x1c8f61(0x1b6)][_0x1c8f61(0x1b7)](_0x5d4b09);_0xda0db6&&(_0xda0db6[_0x1c8f61(0x177)](),this['_roomMembers'][_0x1c8f61(0x36f)](_0x5d4b09));}[_0x5a7686(0x177)](){const _0x541d6d=_0x5a7686;this['_roomMembers'][_0x541d6d(0x1de)](_0x48cfd2=>_0x48cfd2[_0x541d6d(0x177)]()),this[_0x541d6d(0x1b6)][_0x541d6d(0x384)](),this[_0x541d6d(0xfc)]['complete']();}};b=y([v(0x0,t[_0x5a7686(0x2d4)]),v(0x1,(0x0,t['Inject'])(t['UserManagerService']))],b);var ce=class extends t[_0x5a7686(0x117)]{constructor(..._0x5f39bb){const _0x501aef=_0x5a7686;super(..._0x5f39bb),g(this,_0x501aef(0x365),new Map()),g(this,_0x501aef(0x2cc),new i[(_0x501aef(0x334))](this[_0x501aef(0x365)])),g(this,_0x501aef(0x243),this[_0x501aef(0x2cc)][_0x501aef(0xea)]());}[_0x5a7686(0x177)](){const _0x1dc478=_0x5a7686;this['_members'][_0x1dc478(0x384)](),this['_members$'][_0x1dc478(0x1fa)]();}[_0x5a7686(0xd1)](_0x58fb16){const _0x10a6fb=_0x5a7686;this[_0x10a6fb(0x365)]['set'](_0x58fb16[_0x10a6fb(0x30d)],_0x58fb16),this[_0x10a6fb(0x1f5)]();}[_0x5a7686(0x18d)](_0x392d22){const _0x36a2a3=_0x5a7686;this[_0x36a2a3(0x365)]['delete'](_0x392d22),this[_0x36a2a3(0x1f5)]();}[_0x5a7686(0x348)](_0x11427e){const _0x13de1b=_0x5a7686;return this[_0x13de1b(0x365)][_0x13de1b(0x1b7)](_0x11427e);}[_0x5a7686(0x182)](){const _0x5a8b17=_0x5a7686;return Array['from'](this[_0x5a8b17(0x365)][_0x5a8b17(0x2c5)]());}[_0x5a7686(0x1f5)](){const _0x42c5a1=_0x5a7686;this[_0x42c5a1(0x2cc)][_0x42c5a1(0x1eb)](this[_0x42c5a1(0x365)]);}};function le(_0x1594b8,_0x4d7935){const _0x25394b=_0x5a7686;if(de(_0x1594b8))return _0x4d7935;if(_0x4d7935[_0x25394b(0x25a)]===e[_0x25394b(0xd2)][_0x25394b(0x186)]){var _0x482800;let _0x14c8bb=ge(_0x1594b8),_0xe6c503=_0x4d7935;return{..._0xe6c503,'data':{..._0xe6c503[_0x25394b(0x21f)],'unitID':_0x1594b8[_0x25394b(0xbd)][_0x25394b(0x135)],'unitType':(_0x482800=_0x1594b8[_0x25394b(0xbd)][_0x25394b(0x29c)])==null?_0xe6c503[_0x25394b(0x21f)][_0x25394b(0x29c)]:_0x482800,'changeset':_0x14c8bb[_0x25394b(0x162)](_0xe6c503[_0x25394b(0x21f)][_0x25394b(0x1cd)],_e(_0x1594b8))}};}if(_0x4d7935[_0x25394b(0x25a)]===e['CollaborationEvent'][_0x25394b(0x224)]){var _0x46dc61;let _0x23b53f=_0x4d7935;return{..._0x23b53f,'data':{..._0x23b53f['data'],'unitID':_0x1594b8[_0x25394b(0xbd)][_0x25394b(0x135)],'unitType':(_0x46dc61=_0x1594b8['target'][_0x25394b(0x29c)])==null?_0x23b53f[_0x25394b(0x21f)]['unitType']:_0x46dc61}};}return _0x4d7935;}function ue(_0x5393b2,_0x1b177){const _0x5c39ce=_0x5a7686;if(de(_0x5393b2))return[_0x1b177];switch(_0x1b177[_0x5c39ce(0x25a)]){case e[_0x5c39ce(0xd2)]['NEW_CHANGESETS']:return[fe(_0x5393b2,_0x1b177)];case e['CollaborationEvent'][_0x5c39ce(0x201)]:return[me(_0x5393b2,_0x1b177)];case e[_0x5c39ce(0xd2)][_0x5c39ce(0x11a)]:return[pe(_0x5393b2,_0x1b177)];default:return[_0x1b177];}}function de(_0x19b990){const _0x21f8f8=_0x5a7686;return _0x19b990[_0x21f8f8(0xbd)][_0x21f8f8(0x1cb)]==null&&_0x19b990[_0x21f8f8(0xbd)][_0x21f8f8(0x135)]===_0x19b990[_0x21f8f8(0x2a0)]&&!_0x19b990[_0x21f8f8(0x1cd)];}function fe(_0x516618,_0x2fa698){const _0x19b5ab=_0x5a7686;return{..._0x2fa698,'data':(0x0,e[_0x19b5ab(0x2ab)])(he(_0x516618,(0x0,e[_0x19b5ab(0x12b)])(_0x2fa698[_0x19b5ab(0x21f)])))};}function pe(_0x45eb52,_0x52b000){const _0x293c26=_0x5a7686;return{..._0x52b000,'data':he(_0x45eb52,_0x52b000[_0x293c26(0x21f)])};}function me(_0x34c65c,_0x3f8373){const _0x429947=_0x5a7686;let _0x59c35e=_0x3f8373[_0x429947(0x21f)];return{..._0x3f8373,'data':{..._0x59c35e,'changesets':_0x59c35e[_0x429947(0x2f8)][_0x429947(0x350)](_0x27e273=>(0x0,e[_0x429947(0x2ab)])(he(_0x34c65c,(0x0,e[_0x429947(0x12b)])(_0x27e273))))}};}function he(_0x49019c,_0x533ae0){const _0x5d32b4=_0x5a7686;return ge(_0x49019c)[_0x5d32b4(0x29d)](_0x533ae0,_e(_0x49019c));}function ge(_0x174987){const _0x4fc794=_0x5a7686;if(!_0x174987[_0x4fc794(0x1cd)])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x174987[_0x4fc794(0x1cd)];}function _e(_0x4520a8){const _0x3f4dfb=_0x5a7686;return{'localUnitId':_0x4520a8['localUnitId'],'unitType':_0x4520a8['unitType'],'target':_0x4520a8[_0x3f4dfb(0xbd)]};}let ve=function(_0x14460e){const _0x2a73b1=_0x5a7686;return _0x14460e[_0x14460e[_0x2a73b1(0x156)]=0x0]='IDLE',_0x14460e[_0x14460e[_0x2a73b1(0x309)]=0x1]=_0x2a73b1(0x309),_0x14460e[_0x14460e[_0x2a73b1(0xf6)]=0x2]=_0x2a73b1(0xf6),_0x14460e[_0x14460e[_0x2a73b1(0x369)]=0x3]=_0x2a73b1(0x369),_0x14460e;}({});const ye={[a[_0x5a7686(0x1ae)][_0x5a7686(0x361)]]:_0x5a7686(0x306),[a[_0x5a7686(0x1ae)][_0x5a7686(0x1cc)]]:_0x5a7686(0x248),[a[_0x5a7686(0x1ae)]['JOIN_ROOM_NOT_EXISTS']]:'session.room-not-exists',[a['CmdRspCode'][_0x5a7686(0x2b8)]]:_0x5a7686(0x318),[a[_0x5a7686(0x1ae)][_0x5a7686(0x142)]]:_0x5a7686(0x246)};let x=class extends t[_0x5a7686(0x1a2)]{get[_0x5a7686(0x378)](){const _0x48a8d2=_0x5a7686;return this[_0x48a8d2(0x2d7)][_0x48a8d2(0x1d1)]();}constructor(_0x594433,_0x3eb18d,_0x37571a,_0x1ce11e,_0x27dd40,_0x37baee,_0x1a7ca4,_0x19ece4){const _0x1f3a5e=_0x5a7686;super(),this[_0x1f3a5e(0x286)]=_0x594433,this['_logService']=_0x37571a,this[_0x1f3a5e(0x16d)]=_0x1ce11e,this['_memberService']=_0x27dd40,this[_0x1f3a5e(0x123)]=_0x37baee,this[_0x1f3a5e(0x12c)]=_0x1a7ca4,this['_telemetryService']=_0x19ece4,g(this,_0x1f3a5e(0x2d7),new i['BehaviorSubject'](0x0)),g(this,_0x1f3a5e(0x1d7),this[_0x1f3a5e(0x2d7)]['asObservable']()),g(this,_0x1f3a5e(0x25f),new i[(_0x1f3a5e(0x340))]()),g(this,_0x1f3a5e(0x127),this[_0x1f3a5e(0x25f)][_0x1f3a5e(0xea)]()),g(this,_0x1f3a5e(0x105),void 0x0),g(this,_0x1f3a5e(0x95),void 0x0),g(this,'_collaborationTimeoutTimer',void 0x0),g(this,_0x1f3a5e(0x14b),!0x1),g(this,_0x1f3a5e(0x1d5),null),this['_shouldReportTelemetry']=!!this[_0x1f3a5e(0x17b)],_0x3eb18d[_0x1f3a5e(0xf8)]((0x0,i[_0x1f3a5e(0x27c)])(this[_0x1f3a5e(0x211)]))[_0x1f3a5e(0x24b)](_0x5c71bc=>{const _0x4c577d=_0x1f3a5e;if(_0x5c71bc!==void 0x0){if(this[_0x4c577d(0x105)]=_0x5c71bc,_0x5c71bc)this[_0x4c577d(0x328)](_0x5c71bc),this[_0x4c577d(0x95)]=_0x5c71bc['message$'][_0x4c577d(0x24b)](_0x380e93=>{const _0x414195=_0x4c577d;_0x380e93[_0x414195(0x2d6)]===this[_0x414195(0x286)][_0x414195(0xbd)][_0x414195(0x135)]&&this[_0x414195(0x2be)](_0x380e93);});else{var _0x3aa3f0;this[_0x4c577d(0x183)](),this[_0x4c577d(0x2d7)][_0x4c577d(0x1eb)](0x2),(_0x3aa3f0=this[_0x4c577d(0x95)])==null||_0x3aa3f0[_0x4c577d(0x393)](),this['_socketMessageSubscription']=null;}}});}[_0x5a7686(0x2f5)](){const _0x164b6e=_0x5a7686;var _0x3706ce,_0x5cab5b;return(_0x3706ce=(_0x5cab5b=this[_0x164b6e(0x105)])==null?void 0x0:_0x5cab5b[_0x164b6e(0x30d)])==null?null:_0x3706ce;}[_0x5a7686(0x177)](){const _0x13c5bc=_0x5a7686;super[_0x13c5bc(0x177)](),this['close'](),this['dispose$'][_0x13c5bc(0x1eb)](),this[_0x13c5bc(0x211)][_0x13c5bc(0x1fa)]();}[_0x5a7686(0x240)](){const _0x4d3876=_0x5a7686;var _0x5dd92f;this[_0x4d3876(0x183)](),(_0x5dd92f=this[_0x4d3876(0x105)])==null||_0x5dd92f[_0x4d3876(0x29f)]({'cmd':a[_0x4d3876(0x180)][_0x4d3876(0xe6)],'data':{'roomID':this[_0x4d3876(0x286)][_0x4d3876(0xbd)][_0x4d3876(0x135)]}}),this[_0x4d3876(0x25f)][_0x4d3876(0x1fa)](),this['_sessionStatus$']['complete']();}[_0x5a7686(0x2be)](_0x2b7181){const _0x291e9e=_0x5a7686;_0x2b7181['cmd']===a[_0x291e9e(0x180)]['JOIN']?this[_0x291e9e(0xa7)](_0x2b7181):_0x2b7181[_0x291e9e(0x29e)]===a[_0x291e9e(0x180)][_0x291e9e(0x38f)]&&this[_0x291e9e(0x20e)](_0x2b7181);}[_0x5a7686(0x328)](_0x16ae38){const _0x5ba81c=_0x5a7686;this[_0x5ba81c(0x2d7)][_0x5ba81c(0x1eb)](0x1),_0x16ae38['send']({'cmd':a[_0x5ba81c(0x180)]['JOIN'],'routeKey':this[_0x5ba81c(0x286)]['target'][_0x5ba81c(0x135)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5ba81c(0x286)][_0x5ba81c(0xbd)][_0x5ba81c(0x135)]}]}});}['_onJoinRoomEvent'](_0x1ddb14){const _0xc4d197=_0x5a7686;var _0x32d786;if(_0x1ddb14[_0xc4d197(0x2b5)]in ye){this[_0xc4d197(0x12c)][_0xc4d197(0x388)]({'id':_0xc4d197(0x230),'data':ye[_0x1ddb14['code']]}),this[_0xc4d197(0x2d7)][_0xc4d197(0x1eb)](0x2);return;}this['_sessionStatus$'][_0xc4d197(0x1eb)](0x3);let _0x734e3=(_0x32d786=_0x1ddb14[_0xc4d197(0x21f)]['roomInfos'][this[_0xc4d197(0x286)]['target']['unitId']])==null?void 0x0:_0x32d786['members'];_0x734e3&&_0x734e3[_0xc4d197(0x1de)](_0x8fc0e8=>this[_0xc4d197(0x1a4)]['updateMember'](this[_0xc4d197(0x286)]['localUnitId'],_0x8fc0e8));}['_onRecvEvent'](_0x9c20c2){const _0x4d09ab=_0x5a7686;try{let _0x24c2e5=ue(this['_identity'],_0x9c20c2['data']);for(let _0xc91419 of _0x24c2e5)switch(_0xc91419[_0x4d09ab(0x25a)]){case e[_0x4d09ab(0xd2)]['USERS_ENTER']:this[_0x4d09ab(0x147)](_0xc91419),this['_event$']['next'](_0xc91419);break;case e['CollaborationEvent']['USERS_LEAVE']:this[_0x4d09ab(0xaa)](_0xc91419),this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);break;case e[_0x4d09ab(0xd2)]['CHANGESET_ACK']:case e[_0x4d09ab(0xd2)]['CHANGESET_SHOULD_RETRY']:this[_0x4d09ab(0x2e1)](),this[_0x4d09ab(0x1db)](),this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);break;case e[_0x4d09ab(0xd2)][_0x4d09ab(0x314)]:this[_0x4d09ab(0x8f)]['error'](_0x4d09ab(0x35d)+JSON[_0x4d09ab(0x121)](_0xc91419)),this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);break;case e[_0x4d09ab(0xd2)][_0x4d09ab(0x120)]:this[_0x4d09ab(0x123)][_0x4d09ab(0x2a5)](_0xc91419[_0x4d09ab(0x21f)]),this['_event$'][_0x4d09ab(0x1eb)](_0xc91419);break;default:this[_0x4d09ab(0x25f)][_0x4d09ab(0x1eb)](_0xc91419);}}catch(_0x2792a3){this['_logService'][_0x4d09ab(0x36a)](_0x2792a3,_0x9c20c2);}}['_onUserJoin'](_0x3c8d1b){const _0x10542a=_0x5a7686;this[_0x10542a(0x1a4)]['updateMember'](this[_0x10542a(0x286)]['localUnitId'],_0x3c8d1b[_0x10542a(0x21f)]);}['_onUserLeave'](_0x5a46ac){const _0x45ec72=_0x5a7686;this[_0x45ec72(0x1a4)]['removeMember'](this['_identity']['localUnitId'],_0x5a46ac['data'][_0x45ec72(0x30d)]);}async[_0x5a7686(0x29f)](_0x276613,_0x376cf5){const _0x422f62=_0x5a7686;if(this[_0x422f62(0x378)]!==0x3||!this[_0x422f62(0x105)])throw Error(_0x422f62(0x2f4));try{let _0x1cefdc=le(this[_0x422f62(0x286)],_0x276613);_0x1cefdc[_0x422f62(0x25a)]===e[_0x422f62(0xd2)]['SUBMIT_CHANGESET']&&(this[_0x422f62(0x34f)](),this['_startTelemetryCollaborationNewChangeset'](_0x1cefdc)),this[_0x422f62(0x105)][_0x422f62(0x29f)]({'cmd':a[_0x422f62(0x180)][_0x422f62(0x92)],'routeKey':this[_0x422f62(0x286)][_0x422f62(0xbd)][_0x422f62(0x135)],'routeType':'','data':_0x1cefdc});}catch(_0x2c786a){this['_logService'][_0x422f62(0x36a)](_0x2c786a);}}['_scheduleCollaborationTimeoutTimer'](){const _0x249275=_0x5a7686;var _0x15028a;this[_0x249275(0x2f9)]=setTimeout(()=>{const _0x429ad9=_0x249275;this[_0x429ad9(0x2f9)]=null,this[_0x429ad9(0x12c)]['emitEvent']({'id':_0x429ad9(0x374)});},(_0x15028a=this[_0x249275(0x16d)]['getConfig'](_0x249275(0xe4)))==null?ne:_0x15028a);}[_0x5a7686(0x1db)](){const _0x372766=_0x5a7686;this[_0x372766(0x2f9)]&&(clearTimeout(this[_0x372766(0x2f9)]),this[_0x372766(0x2f9)]=null);}[_0x5a7686(0xc6)](_0x6ca1bc){const _0x1e1447=_0x5a7686;if(!this[_0x1e1447(0x14b)])return;let {data:_0x30a3a7}=_0x6ca1bc,{unitID:_0x4bdaca,changeset:_0x77d920}=_0x30a3a7,{mutations:_0x117924,type:_0x20d4a6}=_0x77d920;this[_0x1e1447(0x1d5)]={'unitId':_0x4bdaca,'type':_0x20d4a6,'startTime':performance[_0x1e1447(0x379)](),'stopTime':0x0,'duration':0x0,'size':re(_0x117924)};}[_0x5a7686(0x2e1)](){const _0x25be91=_0x5a7686;if(this[_0x25be91(0x14b)]){if(!this['_telemetryInfo']){this[_0x25be91(0x8f)][_0x25be91(0x36a)]('[CollaborationSession]',_0x25be91(0x291));return;}this['_telemetryInfo'][_0x25be91(0x26e)]=performance[_0x25be91(0x379)](),this['_telemetryInfo']['duration']=this[_0x25be91(0x1d5)]['stopTime']-this[_0x25be91(0x1d5)][_0x25be91(0x30c)],this[_0x25be91(0x17b)][_0x25be91(0x307)](_0x25be91(0x333),this[_0x25be91(0x1d5)]),this[_0x25be91(0x1d5)]=null;}}[_0x5a7686(0x183)](){const _0x484793=_0x5a7686;this[_0x484793(0x1d5)]=null;}};x=y([v(0x2,t[_0x5a7686(0x2c2)]),v(0x3,t[_0x5a7686(0x298)]),v(0x4,(0x0,t['Inject'])(b)),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(se)),v(0x6,(0x0,t['Inject'])(_)),v(0x7,(0x0,t[_0x5a7686(0xa3)])(o[_0x5a7686(0x33f)]))],x);const S=(0x0,t['createIdentifier'])(_0x5a7686(0x26c));function be(_0x679705){const _0x258c57=_0x5a7686;return _0x258c57(0x205)+_0x679705;}function xe(_0x86f0a6){const _0x5d34ed=_0x5a7686;let {unitID:_0x108fe4,mutations:_0xa5a435}=_0x86f0a6;return{'unitId':_0x108fe4,'subUnitId':_0xa5a435[_0x5d34ed(0x225)]>0x0?_0xa5a435[0x0][_0x5d34ed(0x274)][_0x5d34ed(0xdc)]:null};}let C=class{constructor(_0x20ab09,_0x426764,_0x5d9c56){const _0x342b0a=_0x5a7686;this[_0x342b0a(0x271)]=_0x20ab09,this[_0x342b0a(0x19c)]=_0x426764,this[_0x342b0a(0x275)]=_0x5d9c56;}[_0x5a7686(0x303)](_0x3b6752){const _0x33f1e1=_0x5a7686;var _0x597d21,_0x50b929;let _0x3782f4=this[_0x33f1e1(0x271)][_0x33f1e1(0x1b7)](r['SheetsSelectionsService']),{unitId:_0x57c60c,subUnitId:_0x5b5d2c}=xe(_0x3b6752),_0x43bfc7=_0x3782f4==null?void 0x0:_0x3782f4[_0x33f1e1(0xa6)](_0x57c60c)[_0x33f1e1(0x140)](),_0x1412a5=(_0x597d21=this['_instanceService'][_0x33f1e1(0xcc)](_0x57c60c))==null||(_0x597d21=_0x597d21[_0x33f1e1(0x1be)]())==null?void 0x0:_0x597d21[_0x33f1e1(0x38b)]();if(_0x43bfc7[_0x33f1e1(0x225)]===0x0||!_0x57c60c||!_0x5b5d2c)return;let _0xa60e43=[{'id':r[_0x33f1e1(0x7f)]['id'],'params':{'unitId':_0x57c60c,'subUnitId':_0x1412a5,'selections':t[_0x33f1e1(0x143)][_0x33f1e1(0x1d8)](_0x43bfc7)}}],_0x5c483d=this[_0x33f1e1(0x19c)][_0x33f1e1(0x1ab)](_0x3b6752,_0xa60e43);if(!(0x0,e[_0x33f1e1(0x2b4)])(_0x5c483d))throw _0x5c483d[_0x33f1e1(0x36a)];let _0x174160=(_0x50b929=_0x5c483d['m2Prime'][0x0])==null||(_0x50b929=_0x50b929[_0x33f1e1(0x274)])==null?void 0x0:_0x50b929['selections'];if(Array[_0x33f1e1(0x2dc)](_0x174160)&&_0x174160[_0x33f1e1(0x225)]){if(_0x174160['length']===_0xa60e43[0x0][_0x33f1e1(0x274)][_0x33f1e1(0x1c6)][_0x33f1e1(0x225)]&&_0x174160[_0x33f1e1(0xcb)]((_0x20bc88,_0x182c8e)=>t['Rectangle'][_0x33f1e1(0x154)](_0x20bc88['range'],_0xa60e43[0x0][_0x33f1e1(0x274)][_0x33f1e1(0x1c6)][_0x182c8e][_0x33f1e1(0x190)])))return;this[_0x33f1e1(0x271)][_0x33f1e1(0x1b7)](t[_0x33f1e1(0x170)])['executeCommand'](r[_0x33f1e1(0x7f)]['id'],{'unitId':_0x57c60c,'subUnitId':_0x1412a5,'selections':_0x174160});}}};C=y([v(0x0,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x1,e[_0x5a7686(0x296)]),v(0x2,t[_0x5a7686(0x2d4)])],C);const w=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x101));let Se=function(_0x475bef){const _0x6df819=_0x5a7686;return _0x475bef[_0x475bef['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x6df819(0x360),_0x475bef[_0x475bef['OTHER_CLIENTS_EDITING']=0x1]=_0x6df819(0x2cb),_0x475bef;}({});function Ce(_0x4685c5){const _0x15c0a4=_0x5a7686;var _0x149b2c;return!!((_0x149b2c=_0x4685c5[_0x15c0a4(0x274)])!=null&&_0x149b2c[_0x15c0a4(0x1e9)]);}const we=new Set([r[_0x5a7686(0xc7)]['id']]),Te=new Set([c[_0x5a7686(0x15c)]['id'],c[_0x5a7686(0x24d)]['id'],c['MoveSlidePageMutation']['id'],c[_0x5a7686(0xa4)]['id']]);function Ee(_0x35e230,_0x5c7e0b=we){const _0x572a90=_0x5a7686;let _0x495ec9=[];for(let _0x7c6117 of _0x35e230){if(_0x5c7e0b[_0x572a90(0xbf)](_0x7c6117['id'])){if(_0x495ec9[_0x572a90(0x225)]>0x0)break;_0x495ec9[_0x572a90(0x244)](_0x7c6117);break;}if(Ce(_0x7c6117)){if(_0x495ec9['length']>0x0)break;_0x495ec9[_0x572a90(0x244)](_0x7c6117);break;}_0x495ec9[_0x572a90(0x244)](_0x7c6117);}return _0x495ec9;}function T(_0x483f27,_0x29523e,_0x566d10,_0x1f6280,_0x17092e){const _0x1b1f29=_0x5a7686;var _0x30f48c,_0x1819e7,_0x3e8dcc,_0x1611c8;let _0x298c67=Ee(_0x483f27),_0x520a3c=(_0x30f48c=(_0x1819e7=_0x17092e[_0x1b1f29(0x7a)]())==null?void 0x0:_0x1819e7['userID'])==null?'unknown':_0x30f48c,_0x514ebf=(_0x3e8dcc=(_0x1611c8=_0x17092e['getCurrentUser']())==null?void 0x0:_0x1611c8['memberID'])==null?_0x1b1f29(0x2c6):_0x3e8dcc;return{'changeset':{'unitID':_0x29523e,'type':(0x0,e[_0x1b1f29(0x124)])(_0x566d10[_0x1b1f29(0x21d)](_0x29523e)),'baseRev':_0x1f6280[_0x1b1f29(0x2de)](_0x29523e),'revision':0x0,'userID':_0x520a3c,'memberID':_0x514ebf,'mutations':_0x298c67},'pendingMutations':_0x483f27[_0x1b1f29(0x184)](_0x298c67[_0x1b1f29(0x225)])};}function De(_0xa626e5,_0x377aaa,_0x228c7b,_0xa1a53c,_0x1e3653){const _0x47216f=_0x5a7686;var _0x4a6f91,_0x29c496,_0x4edb3c,_0x272ebb;let _0x25a324=Ee(_0xa626e5,Te),_0x549a2c=(_0x4a6f91=(_0x29c496=_0x1e3653[_0x47216f(0x7a)]())==null?void 0x0:_0x29c496['userID'])==null?_0x47216f(0x2c6):_0x4a6f91,_0x4686c7=(_0x4edb3c=(_0x272ebb=_0x1e3653[_0x47216f(0x7a)]())==null?void 0x0:_0x272ebb[_0x47216f(0x30d)])==null?'unknown':_0x4edb3c;return{'changeset':{'unitID':_0x377aaa,'type':(0x0,e[_0x47216f(0x124)])(_0x228c7b[_0x47216f(0x21d)](_0x377aaa)),'baseRev':_0xa1a53c['getCurrentRevOfUnit'](_0x377aaa),'revision':0x0,'userID':_0x549a2c,'memberID':_0x4686c7,'mutations':_0x25a324},'pendingMutations':_0xa626e5[_0x47216f(0x184)](_0x25a324['length'])};}function Oe(_0x2d7afa,_0x578788,_0x40c772,_0x309f97,_0x41f747){const _0x85d6d6=_0x5a7686;var _0x134bc0,_0x44c0ad,_0x90eb79,_0x204fd6;let _0x5e3fda=_0x2d7afa[_0x85d6d6(0xec)]((_0x9b8a31,_0x3e968a)=>{const _0x195c57=_0x85d6d6;let _0x302ec2=_0x9b8a31[_0x9b8a31['length']-0x1],{id:_0x26c10c}=_0x302ec2==null?{}:_0x302ec2,{id:_0xdf45e,type:_0x2a85e4}=_0x3e968a,_0x223db2=_0x3e968a[_0x195c57(0x274)];if(_0x26c10c&&_0x26c10c!==_0xdf45e)throw Error(_0x195c57(0x15d)+_0x26c10c+_0x195c57(0x13a)+_0xdf45e+'.');if(!_0x302ec2)return[{'id':_0xdf45e,'type':_0x2a85e4,'params':{'unitId':_0x223db2['unitId'],'textRanges':_0x223db2[_0x195c57(0x362)],'actions':_0x223db2[_0x195c57(0xa0)]}}];let _0x21d97d=_0x302ec2[_0x195c57(0x274)];return ke(_0x21d97d,_0x223db2)?[..._0x9b8a31[_0x195c57(0x184)](0x0,-0x1),{..._0x302ec2,'id':_0xdf45e,'type':_0x2a85e4,'params':{'unitId':_0x223db2['unitId'],'textRanges':_0x223db2[_0x195c57(0x362)],'actions':t[_0x195c57(0x363)][_0x195c57(0xe5)](_0x21d97d['actions'],_0x223db2[_0x195c57(0xa0)])}}]:[..._0x9b8a31,{'id':_0xdf45e,'type':_0x2a85e4,'params':{'unitId':_0x223db2[_0x195c57(0x135)],'textRanges':_0x223db2[_0x195c57(0x362)],'actions':_0x223db2[_0x195c57(0xa0)]}}];},[]),_0x5bf4c9=(_0x134bc0=(_0x44c0ad=_0x41f747[_0x85d6d6(0x7a)]())==null?void 0x0:_0x44c0ad[_0x85d6d6(0xa5)])==null?_0x85d6d6(0x2c6):_0x134bc0,_0x5638eb=(_0x90eb79=(_0x204fd6=_0x41f747['getCurrentUser']())==null?void 0x0:_0x204fd6['memberID'])==null?_0x85d6d6(0x2c6):_0x90eb79;return{'changeset':{'unitID':_0x578788,'type':(0x0,e[_0x85d6d6(0x124)])(_0x40c772[_0x85d6d6(0x21d)](_0x578788)),'baseRev':_0x309f97[_0x85d6d6(0x2de)](_0x578788),'revision':0x0,'userID':_0x5bf4c9,'memberID':_0x5638eb,'mutations':_0x5e3fda},'pendingMutations':_0x2d7afa[_0x85d6d6(0x184)](_0x2d7afa['length'])};}function ke(_0x223100,_0x49b259){const _0x5213e5=_0x5a7686;return!Ae(_0x223100)&&!Ae(_0x49b259)&&je(_0x223100[_0x5213e5(0xa0)],_0x49b259[_0x5213e5(0xa0)]);}function Ae(_0x1f7069){const _0x129c8d=_0x5a7686;return _0x1f7069[_0x129c8d(0x25d)]!==void 0x0;}function je(_0x48ee46,_0xba826d){return Me(_0x48ee46)&&Me(_0xba826d)&&!Pe(_0x48ee46)&&!Pe(_0xba826d)&&!Ne(_0x48ee46)&&!Ne(_0xba826d);}function Me(_0x2b0a95){const _0x1f0302=_0x5a7686;return Fe(_0x2b0a95)[_0x1f0302(0x165)](_0x2060f0=>E(_0x2060f0)&&_0x2060f0['et']===_0x1f0302(0xb4));}function Ne(_0x1a92b5){const _0x3a7970=_0x5a7686;return Fe(_0x1a92b5)[_0x3a7970(0x165)](_0x2baf3c=>Array['isArray'](_0x2baf3c)||typeof _0x2baf3c==_0x3a7970(0x354)||typeof _0x2baf3c==_0x3a7970(0x25c));}function Pe(_0x520ca9){const _0x48f41e=_0x5a7686;return Fe(_0x520ca9)[_0x48f41e(0x165)](_0x4fd5f7=>!E(_0x4fd5f7)||_0x4fd5f7['et']!==_0x48f41e(0xb4)||!Array[_0x48f41e(0x2dc)](_0x4fd5f7['e'])?!0x1:_0x4fd5f7['e'][_0x48f41e(0x165)](_0xe4002e=>!E(_0xe4002e)||!E(_0xe4002e['body'])?!0x1:Object['prototype'][_0x48f41e(0x23c)][_0x48f41e(0x259)](_0xe4002e[_0x48f41e(0x30b)],_0x48f41e(0xef))||Object[_0x48f41e(0x31c)]['hasOwnProperty'][_0x48f41e(0x259)](_0xe4002e['body'],_0x48f41e(0xd9))||Object['prototype'][_0x48f41e(0x23c)][_0x48f41e(0x259)](_0xe4002e['body'],_0x48f41e(0x17f))));}function Fe(_0x5cb6b5){const _0x4a3feb=_0x5a7686;if(!Array[_0x4a3feb(0x2dc)](_0x5cb6b5))return[];let _0x44b795=_0x5cb6b5['includes']('body')?_0x5cb6b5:_0x5cb6b5[_0x4a3feb(0x158)](_0x385775=>Array['isArray'](_0x385775)&&_0x385775[_0x4a3feb(0xc8)](_0x4a3feb(0x30b)));if(!Array[_0x4a3feb(0x2dc)](_0x44b795))return[];let _0x41440c=_0x44b795[_0x4a3feb(0x28b)](_0x4a3feb(0x30b));return _0x41440c===-0x1?[]:_0x44b795[_0x4a3feb(0x184)](_0x41440c+0x1);}function E(_0x425f56){const _0x41c1be=_0x5a7686;return typeof _0x425f56=='object'&&!!_0x425f56&&!Array[_0x41c1be(0x2dc)](_0x425f56);}function Ie(_0x2d13ff,_0x5698ba){const _0x4eb5c2=_0x5a7686;let _0xda58dc=new i[(_0x4eb5c2(0x115))](0x1);return setTimeout(()=>_0xda58dc[_0x4eb5c2(0x1eb)](_0x5698ba),_0x2d13ff),_0xda58dc['asObservable']()['pipe']((0x0,i[_0x4eb5c2(0x1a5)])(0x1));}var Le,Re,ze;let Be=function(_0x431896){const _0x581f6f=_0x5a7686;return _0x431896['NOT_COLLAB']=_0x581f6f(0x26a),_0x431896[_0x581f6f(0x203)]='synced',_0x431896[_0x581f6f(0xad)]='pending',_0x431896['AWAITING']=_0x581f6f(0x310),_0x431896['AWAITING_WITH_PENDING']=_0x581f6f(0xf5),_0x431896['FETCH_MISS']=_0x581f6f(0x33a),_0x431896['CONFLICT']=_0x581f6f(0x2af),_0x431896[_0x581f6f(0xf6)]='offline',_0x431896;}({});const Ve=0x4e20,He=0x2bf20;var D=class{constructor(_0x34ceff,_0x2b9c8e,_0x29ffd2,_0x4c7a81,_0x7bc787,_0x241fbc,_0x78e9d1,_0x253dab,_0x407fa1){const _0x44b71c=_0x5a7686;this['unitID']=_0x34ceff,this['type']=_0x2b9c8e,this[_0x44b71c(0x277)]=_0x7bc787,this[_0x44b71c(0x10d)]=_0x241fbc,this[_0x44b71c(0x347)]=_0x78e9d1,this[_0x44b71c(0x302)]=_0x253dab,this['_localCacheService']=_0x407fa1,g(this,_0x44b71c(0x1e6),null),g(this,_0x44b71c(0x34e),[]),this['_awaitingChangeset']=_0x29ffd2,this[_0x44b71c(0x34e)]=_0x4c7a81;}[_0x5a7686(0x2b6)](_0x46e58a){const _0x4cc654=_0x5a7686;let _0x44e028=this[_0x4cc654(0x302)][_0x4cc654(0x2de)](this[_0x4cc654(0x17c)]);return _0x46e58a[_0x4cc654(0x1d4)]>_0x44e028+0x1?(this[_0x4cc654(0x277)][_0x4cc654(0x32f)]({'from':_0x44e028,'to':_0x46e58a[_0x4cc654(0x1d4)]-0x1}),!0x0):!0x1;}[_0x5a7686(0x84)](_0x14759a){const _0x35c920=_0x5a7686;this[_0x35c920(0x347)][_0x35c920(0xae)](this['unitID'],_0x14759a);}[_0x5a7686(0x1e7)](_0x14ce54){const _0xf0f46d=_0x5a7686;var _0x38bf4f,_0xa865c3;(_0x38bf4f=(_0xa865c3=this['_handler'])[_0xf0f46d(0xb8)])==null||_0x38bf4f[_0xf0f46d(0x259)](_0xa865c3,_0x14ce54);}[_0x5a7686(0x20c)](_0x2c7406){const _0x3837b=_0x5a7686;var _0x18227c,_0x4b619b;return(_0x18227c=(_0x4b619b=this['_handler'])[_0x3837b(0x2c7)])==null?void 0x0:_0x18227c[_0x3837b(0x259)](_0x4b619b,_0x2c7406);}['_transformStateCache'](_0x50b29c){const _0x59add8=_0x5a7686;var _0x366d26,_0x353caf;return(_0x366d26=(_0x353caf=this['_handler'])[_0x59add8(0x32e)])==null?void 0x0:_0x366d26['call'](_0x353caf,_0x50b29c);}[_0x5a7686(0x97)](_0x53217a){const _0x4a144d=_0x5a7686;var _0x58aa52,_0x54be06,_0x2d79ec;return(_0x58aa52=(_0x54be06=(_0x2d79ec=this[_0x4a144d(0x277)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x54be06['call'](_0x2d79ec,_0x53217a))==null?_0x53217a:_0x58aa52;}[_0x5a7686(0x11b)](_0x3754ed){const _0x2e622c=_0x5a7686;var _0x329d8a,_0x6d5129,_0x424288;return(_0x329d8a=(_0x6d5129=(_0x424288=this[_0x2e622c(0x277)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x6d5129[_0x2e622c(0x259)](_0x424288,_0x3754ed))==null?_0x3754ed:_0x329d8a;}['_syncEditingCollabCursor'](_0x4304c1){const _0x17f742=_0x5a7686;if(this[_0x17f742(0x234)]===t[_0x17f742(0x2e9)][_0x17f742(0x301)]){let {unitID:_0x18712c,mutations:_0x51ed33,memberID:_0x3e1926}=_0x4304c1,_0x32dedf=_0x51ed33['length']>0x0?_0x51ed33[0x0][_0x17f742(0x274)][_0x17f742(0x362)]:[];if(Array['isArray'](_0x32dedf)&&_0x32dedf[_0x17f742(0x225)]>0x0){var _0x3e6421,_0x420be1;(_0x3e6421=(_0x420be1=this[_0x17f742(0x277)])['onSyncEditingCollabCursor'])==null||_0x3e6421[_0x17f742(0x259)](_0x420be1,{'unitID':_0x18712c,'memberID':_0x3e1926,'textRanges':_0x32dedf});}}}['_updateLocalCache'](){const _0x56021a=_0x5a7686;var _0x51fc20;(_0x51fc20=this['_localCacheService'])==null||_0x51fc20[_0x56021a(0x2fb)](this['unitID'],this[_0x56021a(0x234)],this[_0x56021a(0x1e6)],this[_0x56021a(0x34e)]);}['_getCurrentRevision'](){const _0x55f7ab=_0x5a7686;return this['_revisionService']['getCurrentRevOfUnit'](this[_0x55f7ab(0x17c)]);}[_0x5a7686(0x106)](){const _0x5b275a=_0x5a7686;this['_revisionService'][_0x5b275a(0x353)](this['unitID']);}[_0x5a7686(0x390)](_0x14d13f){const _0x4922d4=_0x5a7686;let _0x2271af=this[_0x4922d4(0x97)](_0x14d13f);_0x2271af=this[_0x4922d4(0x11b)](_0x2271af);let _0x154d5d=(0x0,t['sequenceExecute'])(_0x2271af[_0x4922d4(0x1c7)],this['_commandService'],{'fromCollab':!0x0});if(!_0x154d5d['result']){var _0x4300fb;throw _0x154d5d[_0x4922d4(0x36a)]instanceof Error?_0x154d5d[_0x4922d4(0x36a)]:Error((_0x4300fb=_0x154d5d[_0x4922d4(0x36a)])==null?_0x4922d4(0x150):_0x4300fb);}this[_0x4922d4(0x20c)](_0x2271af),this[_0x4922d4(0x221)](_0x2271af),this[_0x4922d4(0x84)](_0x14d13f),this['_transformSelections'](_0x2271af),this[_0x4922d4(0x228)](_0x2271af),this[_0x4922d4(0x106)]();}};let O=class extends D{constructor(_0x40eb05,_0x3b89cf,_0x143b84,_0x452c01,_0x2012e4,_0x24f4b5,_0x431218,_0x3a8e85,_0x45a4f5,_0x526f1d){const _0x69b6a9=_0x5a7686;super(_0x40eb05,_0x3b89cf,null,[],_0x143b84,_0x431218,_0x24f4b5,_0x452c01,_0x526f1d),this[_0x69b6a9(0x271)]=_0x2012e4,this['_logService']=_0x3a8e85,this['_transformService']=_0x45a4f5,this[_0x69b6a9(0xc5)]=_0x526f1d,g(this,'status',_0x69b6a9(0x273));}[_0x5a7686(0x2d5)](_0x7a76dd){const _0x58dbf1=_0x5a7686;let _0x49aedd=this['_injector']['createInstance'](k,this[_0x58dbf1(0x17c)],this[_0x58dbf1(0x234)],[_0x7a76dd],this[_0x58dbf1(0x277)]);return _0x49aedd[_0x58dbf1(0x202)](),_0x49aedd[_0x58dbf1(0xe7)](),_0x49aedd;}['onRemoteChangeset'](_0x35e42e){const _0x2660fe=_0x5a7686;if(this['_checkMissing'](_0x35e42e))return this[_0x2660fe(0x271)][_0x2660fe(0x313)](P,this[_0x2660fe(0x17c)],this[_0x2660fe(0x234)],null,[],null,[_0x35e42e],this[_0x2660fe(0x277)]);try{let _0x1521e3=this[_0x2660fe(0x19c)][_0x2660fe(0x1ab)](_0x35e42e,[e[_0x2660fe(0x31d)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x1521e3)){let {c1Prime:_0x4c2df0}=_0x1521e3;return this[_0x2660fe(0x390)](_0x4c2df0),this;}throw _0x1521e3[_0x2660fe(0x36a)];}catch(_0xa80f5b){return this[_0x2660fe(0x8f)][_0x2660fe(0x36a)](_0xa80f5b),this[_0x2660fe(0x34c)](!0x1);}}[_0x5a7686(0x34c)](_0x58760f){const _0x272e01=_0x5a7686;return this['_injector'][_0x272e01(0x313)](M,this[_0x272e01(0x17c)],this[_0x272e01(0x234)],null,[],this[_0x272e01(0x277)],_0x58760f);}[_0x5a7686(0x2a3)](_0x249955){const _0xe0ba4f=_0x5a7686;if(_0x249955[_0xe0ba4f(0x1d4)]<=this[_0xe0ba4f(0xac)]())return this;throw Error(_0xe0ba4f(0x376));}['onRemoteRej'](){const _0x1d6cd2=_0x5a7686;throw Error(_0x1d6cd2(0x1ec));}[_0x5a7686(0x212)](){return this;}['toggleOffline'](){const _0x5d8506=_0x5a7686;return this['_injector'][_0x5d8506(0x313)](N,this[_0x5d8506(0x17c)],this[_0x5d8506(0x234)],null,[],this[_0x5d8506(0x277)]);}[_0x5a7686(0x81)](){return this;}[_0x5a7686(0x1ba)](){throw Error('[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.');}['fetchMiss'](){const _0x2abfa0=_0x5a7686;let _0x41611a=this[_0x2abfa0(0x302)][_0x2abfa0(0x2de)](this['unitID']);return this[_0x2abfa0(0x277)][_0x2abfa0(0x32f)]({'from':_0x41611a,'to':0x0}),this['_injector']['createInstance'](P,this[_0x2abfa0(0x17c)],this[_0x2abfa0(0x234)],null,[],null,[],this[_0x2abfa0(0x277)]);}};O=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x4,(0x0,t['Inject'])(t['Injector'])),v(0x5,t[_0x5a7686(0x1fe)]),v(0x6,t['ICommandService']),v(0x7,t[_0x5a7686(0x2c2)]),v(0x8,e[_0x5a7686(0x296)]),v(0x9,(0x0,t[_0x5a7686(0xa3)])(S))],O);let k=Le=class extends D{constructor(_0x458e4c,_0x30c48e,_0x963c1e,_0x72066,_0xc0a827,_0x31a86e,_0x6e7b2,_0xf19e48,_0x436678,_0x4fc19e,_0x20e3d6,_0x1b5948,_0x12c793,_0x27a3cb){const _0xf9b40c=_0x5a7686;super(_0x458e4c,_0x30c48e,null,_0x963c1e,_0x72066,_0x436678,_0x12c793,_0x31a86e,_0x27a3cb),this['_injector']=_0xc0a827,this[_0xf9b40c(0x1a4)]=_0x6e7b2,this[_0xf9b40c(0x8f)]=_0xf19e48,this[_0xf9b40c(0x16d)]=_0x4fc19e,this[_0xf9b40c(0x19c)]=_0x20e3d6,this[_0xf9b40c(0x104)]=_0x1b5948,g(this,'status',_0xf9b40c(0x218)),g(this,'_scheduleCompleteTimestamp',null),g(this,_0xf9b40c(0x2c4),null);}[_0x5a7686(0x2d5)](_0x1ccb6a){const _0x5d18e1=_0x5a7686;return this['_pendingMutations'][_0x5d18e1(0x244)](_0x1ccb6a),this[_0x5d18e1(0xe7)](),this;}['onRemoteChangeset'](_0x249ad4){const _0x3b3f8b=_0x5a7686;if(this[_0x3b3f8b(0x2b6)](_0x249ad4))return this[_0x3b3f8b(0x98)](),this[_0x3b3f8b(0x271)][_0x3b3f8b(0x313)](P,this[_0x3b3f8b(0x17c)],this[_0x3b3f8b(0x234)],null,this[_0x3b3f8b(0x34e)],null,[_0x249ad4],this[_0x3b3f8b(0x277)]);try{let _0x5eeeb0=this[_0x3b3f8b(0x19c)][_0x3b3f8b(0x1ab)](_0x249ad4,this[_0x3b3f8b(0x34e)]);if((0x0,e[_0x3b3f8b(0x2b4)])(_0x5eeeb0)){let {c1Prime:_0x513c88,m2Prime:_0x30b5cd}=_0x5eeeb0;this[_0x3b3f8b(0x390)](_0x513c88);let _0x4ca1c4=this[_0x3b3f8b(0x271)][_0x3b3f8b(0x313)](Le,this[_0x3b3f8b(0x17c)],this[_0x3b3f8b(0x234)],_0x30b5cd,this[_0x3b3f8b(0x277)]);this[_0x3b3f8b(0x98)]();let _0xde98e3=new Date()[_0x3b3f8b(0xa9)](),_0x4e3d73=this[_0x3b3f8b(0x161)]?Math[_0x3b3f8b(0x1dd)](this[_0x3b3f8b(0x161)]-_0xde98e3,0x0):this[_0x3b3f8b(0xca)]();return _0x4ca1c4[_0x3b3f8b(0x202)](_0x4e3d73),_0x4ca1c4;}throw _0x5eeeb0[_0x3b3f8b(0x36a)];}catch(_0x2a9e71){return this[_0x3b3f8b(0x8f)][_0x3b3f8b(0x36a)](_0x2a9e71),this['_onConflict'](!0x1);}}[_0x5a7686(0x2a3)](_0x4ddbf9){const _0x549ee3=_0x5a7686;if(_0x4ddbf9[_0x549ee3(0x1d4)]<=this[_0x549ee3(0xac)]())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}[_0x5a7686(0x8d)](){const _0x2cd8e2=_0x5a7686;throw Error(_0x2cd8e2(0x91));}['onRemoteRetry'](){return this;}[_0x5a7686(0x21e)](){const _0x129dce=_0x5a7686;return this[_0x129dce(0x98)](),this[_0x129dce(0x271)][_0x129dce(0x313)](N,this[_0x129dce(0x17c)],this[_0x129dce(0x234)],null,this[_0x129dce(0x34e)],this[_0x129dce(0x277)]);}[_0x5a7686(0x81)](){return this;}['_schedule'](_0x3268b5){const _0x261c2d=_0x5a7686;let _0x5573cb=_0x3268b5==null?this[_0x261c2d(0xca)]():_0x3268b5;this[_0x261c2d(0x161)]=new Date()[_0x261c2d(0xa9)]()+_0x5573cb,this[_0x261c2d(0x2c4)]=setTimeout(()=>{const _0x35a357=_0x261c2d;this[_0x35a357(0x98)]();let _0x299fd4=null;switch(this['type']){case t[_0x35a357(0x2e9)][_0x35a357(0xa2)]:_0x299fd4=T(this['_pendingMutations'],this[_0x35a357(0x17c)],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]);break;case t['UniverInstanceType'][_0x35a357(0x301)]:_0x299fd4=this[_0x35a357(0x34e)][_0x35a357(0xcb)](_0x32f135=>_0x32f135['id']===n[_0x35a357(0x209)]['id'])?Oe(this[_0x35a357(0x34e)],this[_0x35a357(0x17c)],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]):T(this[_0x35a357(0x34e)],this['unitID'],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]);break;case t[_0x35a357(0x2e9)][_0x35a357(0x319)]:_0x299fd4=De(this['_pendingMutations'],this['unitID'],this[_0x35a357(0x104)],this['_revisionService'],this[_0x35a357(0x1a4)]);break;case t[_0x35a357(0x2e9)][_0x35a357(0x320)]:_0x299fd4=T(this[_0x35a357(0x34e)],this[_0x35a357(0x17c)],this['_univerInstanceService'],this[_0x35a357(0x302)],this['_memberService']);break;case t[_0x35a357(0x2e9)][_0x35a357(0x27f)]:_0x299fd4=T(this['_pendingMutations'],this[_0x35a357(0x17c)],this[_0x35a357(0x104)],this[_0x35a357(0x302)],this[_0x35a357(0x1a4)]);break;default:throw Error(_0x35a357(0x329)+this[_0x35a357(0x234)]+'\x20in\x20_schedule.');}let {changeset:_0x25c849,pendingMutations:_0x102d93}=_0x299fd4;this[_0x35a357(0x277)]['onSendChangeset'](_0x25c849);let _0x52e27d=_0x102d93['length']?this[_0x35a357(0x271)][_0x35a357(0x313)](j,this[_0x35a357(0x17c)],this[_0x35a357(0x234)],_0x25c849,_0x102d93,this['_handler'],void 0x0):this[_0x35a357(0x271)][_0x35a357(0x313)](A,this[_0x35a357(0x17c)],this[_0x35a357(0x234)],_0x25c849,this[_0x35a357(0x277)]);_0x52e27d[_0x35a357(0xe7)](),this[_0x35a357(0x277)][_0x35a357(0x31b)](this,_0x52e27d);},_0x5573cb);}[_0x5a7686(0xca)](){const _0x329e4c=_0x5a7686;var _0x56a5e1;let _0x503034=this[_0x329e4c(0x16d)][_0x329e4c(0x34b)](m);return(_0x56a5e1=_0x503034==null?void 0x0:_0x503034[_0x329e4c(0x12a)])==null?0x7d0:_0x56a5e1;}[_0x5a7686(0x1ba)](){const _0x26a7fa=_0x5a7686;throw Error(_0x26a7fa(0x125));}[_0x5a7686(0x98)](){const _0x1dad88=_0x5a7686;this['_sendingTimer']!=null&&(clearTimeout(this[_0x1dad88(0x2c4)]),this[_0x1dad88(0x2c4)]=null);}['_onConflict'](_0xc8ba6b){const _0x1864e3=_0x5a7686;return this[_0x1864e3(0x98)](),this[_0x1864e3(0x271)][_0x1864e3(0x313)](M,this['unitID'],this[_0x1864e3(0x234)],null,this[_0x1864e3(0x34e)],this['_handler'],_0xc8ba6b);}};k=Le=y([v(0x4,(0x0,t[_0x5a7686(0x1c9)])(t['Injector'])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(e['RevisionService'])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(b)),v(0x7,t[_0x5a7686(0x2c2)]),v(0x8,t[_0x5a7686(0x170)]),v(0x9,t[_0x5a7686(0x298)]),v(0xa,e[_0x5a7686(0x296)]),v(0xb,t[_0x5a7686(0x2d4)]),v(0xc,t[_0x5a7686(0x1fe)]),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],k);let A=Re=class extends D{constructor(_0x3074b3,_0x32ca7b,_0x4a8240,_0x4eb02a,_0x1dc165,_0x4055cf,_0x44e3f4,_0x321407,_0x11a31a,_0x49a439,_0x34bc94){const _0x288f8c=_0x5a7686;super(_0x3074b3,_0x32ca7b,_0x4a8240,[],_0x4eb02a,_0x44e3f4,_0x49a439,_0x4055cf,_0x34bc94),this[_0x288f8c(0x271)]=_0x1dc165,this['_logService']=_0x321407,this['_transformService']=_0x11a31a,g(this,_0x288f8c(0x385),_0x288f8c(0x310)),g(this,_0x288f8c(0x1d3),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x288f8c(0x164),void 0x0),g(this,_0x288f8c(0x264),void 0x0);}[_0x5a7686(0x2d5)](_0x41be6e){const _0x5b0583=_0x5a7686;this[_0x5b0583(0x98)]();let _0x28c0c6=this[_0x5b0583(0x271)][_0x5b0583(0x313)](j,this[_0x5b0583(0x17c)],this[_0x5b0583(0x234)],this[_0x5b0583(0x1e6)],[_0x41be6e],this[_0x5b0583(0x277)],this[_0x5b0583(0x164)]);return _0x28c0c6['_updateLocalCache'](),_0x28c0c6;}['onRemoteChangeset'](_0x48366d){const _0x4cb9b8=_0x5a7686;if(this['_checkMissing'](_0x48366d))return this[_0x4cb9b8(0x98)](),this[_0x4cb9b8(0x271)][_0x4cb9b8(0x313)](P,this[_0x4cb9b8(0x17c)],this[_0x4cb9b8(0x234)],this['_awaitingChangeset'],[],null,[_0x48366d],this['_handler']);try{let _0x51f4d6=this[_0x4cb9b8(0x19c)]['transformChangesets']([_0x48366d],[this['_awaitingChangeset']],!0x1);if((0x0,e[_0x4cb9b8(0x129)])(_0x51f4d6)){let {c1Prime:_0x4879b2,c2Prime:_0x3c075d}=_0x51f4d6;this[_0x4cb9b8(0x390)](_0x4879b2[0x0]),_0x3c075d[0x0][_0x4cb9b8(0x349)]=this[_0x4cb9b8(0xac)](),this['_clearScheduledTask']();let _0x40d0f8=this[_0x4cb9b8(0x271)][_0x4cb9b8(0x313)](Re,this[_0x4cb9b8(0x17c)],this['type'],_0x3c075d[0x0],this[_0x4cb9b8(0x277)]);return _0x40d0f8['_updateLocalCache'](),_0x40d0f8;}throw _0x51f4d6[_0x4cb9b8(0x36a)];}catch(_0x575b6a){return this[_0x4cb9b8(0x8f)][_0x4cb9b8(0x36a)](_0x575b6a),this[_0x4cb9b8(0x34c)](!0x1);}}['onRemoteAck'](_0x33e42d){const _0x3c209f=_0x5a7686;this['_clearScheduledTask']();let _0x3d8e73=this[_0x3c209f(0x302)]['getCurrentRevOfUnit'](this[_0x3c209f(0x17c)]);if(_0x33e42d[_0x3c209f(0x1d4)]<=_0x3d8e73)return this;if(this['_checkMissing'](_0x33e42d))return this[_0x3c209f(0x271)][_0x3c209f(0x313)](P,this[_0x3c209f(0x17c)],this[_0x3c209f(0x234)],this['_awaitingChangeset'],[],_0x33e42d[_0x3c209f(0x1d4)],[],this['_handler']);this[_0x3c209f(0x106)]();let _0x5bb2b2=this['_injector']['createInstance'](O,this[_0x3c209f(0x17c)],this[_0x3c209f(0x234)],this[_0x3c209f(0x277)]);return _0x5bb2b2['_updateLocalCache'](),_0x5bb2b2;}[_0x5a7686(0x8d)](_0x43d656){return this['_onConflict'](!!(_0x43d656!=null&&_0x43d656['isPermissionRej']));}[_0x5a7686(0x212)](_0x12afd0){const _0x46133b=_0x5a7686;return this[_0x46133b(0x33d)]>He?this[_0x46133b(0x21e)]():(this[_0x46133b(0x164)]=Ie(this[_0x46133b(0x1d3)],{'timeout':this[_0x46133b(0x1d3)],'reqId':_0x12afd0[_0x46133b(0x2a2)]}),this['_sender']=this[_0x46133b(0x164)][_0x46133b(0x24b)](({reqId:_0x2d8ba,timeout:_0xe481a7})=>{const _0x4fe6ce=_0x46133b;this[_0x4fe6ce(0x2d2)](_0x2d8ba,_0xe481a7);}),this);}[_0x5a7686(0x21e)](){const _0x2ddb4f=_0x5a7686;return this[_0x2ddb4f(0x98)](),this[_0x2ddb4f(0x271)]['createInstance'](N,this[_0x2ddb4f(0x17c)],this[_0x2ddb4f(0x234)],this[_0x2ddb4f(0x1e6)],[],this[_0x2ddb4f(0x277)]);}['toggleOnline'](){return this;}[_0x5a7686(0x1ba)](){const _0x25e312=_0x5a7686;this[_0x25e312(0x277)]['onSendChangeset'](this[_0x25e312(0x1e6)]);}['_onConflict'](_0x271898){const _0x1884d2=_0x5a7686;return this['_clearScheduledTask'](),this[_0x1884d2(0x271)][_0x1884d2(0x313)](M,this[_0x1884d2(0x17c)],this[_0x1884d2(0x234)],this[_0x1884d2(0x1e6)],[],this[_0x1884d2(0x277)],_0x271898);}[_0x5a7686(0x2d2)](_0x52bf22,_0x338ace){const _0x3a9e06=_0x5a7686;var _0x38fbb2;_0x52bf22===((_0x38fbb2=this['_awaitingChangeset'])==null?void 0x0:_0x38fbb2[_0x3a9e06(0x2a2)])&&(this[_0x3a9e06(0x1ba)](),this['_resendTimeout']=_0x338ace===0x0?0x3e8:Math[_0x3a9e06(0x317)](_0x338ace*0x2,Ve),this[_0x3a9e06(0x33d)]+=this[_0x3a9e06(0x1d3)]);}[_0x5a7686(0x98)](){const _0x2e4258=_0x5a7686;var _0x1397be;(_0x1397be=this['_sender'])==null||_0x1397be[_0x2e4258(0x393)](),this[_0x2e4258(0x1d3)]=0x0,this[_0x2e4258(0x33d)]=0x0;}};A=Re=y([v(0x4,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x6,t[_0x5a7686(0x170)]),v(0x7,t[_0x5a7686(0x2c2)]),v(0x8,e[_0x5a7686(0x296)]),v(0x9,t[_0x5a7686(0x1fe)]),v(0xa,(0x0,t[_0x5a7686(0xa3)])(S))],A);let j=ze=class extends D{constructor(_0x200a74,_0x4c8c1b,_0x189d05,_0x43b3d3,_0x4fdcef,_0x195dfb,_0x4c09a5,_0x57800d,_0x453d4d,_0x8f42a3,_0x3dcecf,_0x24ac22,_0x34ea82){const _0x471e05=_0x5a7686;super(_0x200a74,_0x4c8c1b,_0x189d05,_0x43b3d3,_0x4fdcef,_0x453d4d,_0x24ac22,_0x57800d,_0x34ea82),this['_injector']=_0x4c09a5,this['_logService']=_0x8f42a3,this[_0x471e05(0x19c)]=_0x3dcecf,this[_0x471e05(0xc5)]=_0x34ea82,g(this,_0x471e05(0x385),_0x471e05(0xf5)),g(this,'_resendTimeout',0x0),g(this,_0x471e05(0x33d),0x0),g(this,'_resendTimer',void 0x0),g(this,_0x471e05(0x264),void 0x0),_0x195dfb&&(this['_resendTimer']=_0x195dfb,this[_0x471e05(0x264)]=this[_0x471e05(0x164)][_0x471e05(0x24b)](({reqId:_0x35656e,timeout:_0x12094c})=>{const _0x2fe6b2=_0x471e05;this[_0x2fe6b2(0x2d2)](_0x35656e,_0x12094c);}));}['appendMutation'](_0x4bed63){const _0x27f308=_0x5a7686;return this[_0x27f308(0x34e)][_0x27f308(0x244)](_0x4bed63),this;}['onRemoteChangeset'](_0x4b4ec6){const _0x212a4c=_0x5a7686;if(this[_0x212a4c(0x2b6)](_0x4b4ec6))return this['_clearScheduledTask'](),this[_0x212a4c(0x271)][_0x212a4c(0x313)](P,this[_0x212a4c(0x17c)],this[_0x212a4c(0x234)],this[_0x212a4c(0x1e6)],this[_0x212a4c(0x34e)],null,[_0x4b4ec6],this[_0x212a4c(0x277)]);try{let _0x2cb301=this['_transformService'][_0x212a4c(0x12d)]([_0x4b4ec6],[this[_0x212a4c(0x1e6)]],!0x1);if((0x0,e[_0x212a4c(0x129)])(_0x2cb301)){let {c1Prime:_0x1a5598,c2Prime:_0x279064}=_0x2cb301,_0x4923af=this[_0x212a4c(0x19c)][_0x212a4c(0x1ab)](_0x1a5598[0x0],this[_0x212a4c(0x34e)]);if((0x0,e[_0x212a4c(0x2b4)])(_0x4923af)){let {c1Prime:_0x157732,m2Prime:_0x402003}=_0x4923af;return this['_executeRemoteChangeset'](_0x157732),_0x279064[0x0]['baseRev']=this[_0x212a4c(0xac)](),this[_0x212a4c(0x98)](),this['_injector'][_0x212a4c(0x313)](ze,this['unitID'],this[_0x212a4c(0x234)],_0x279064[0x0],_0x402003,this[_0x212a4c(0x277)],void 0x0);}throw _0x4923af[_0x212a4c(0x36a)];}throw _0x2cb301[_0x212a4c(0x36a)];}catch(_0x27df4a){return this['_logService']['error'](_0x27df4a),this[_0x212a4c(0x34c)](!0x1);}}[_0x5a7686(0x2a3)](_0x20f119){const _0x3a3679=_0x5a7686;this[_0x3a3679(0x98)]();let _0x3c9e2c=this[_0x3a3679(0xac)]();if(_0x20f119[_0x3a3679(0x1d4)]<=_0x3c9e2c)return this;if(this[_0x3a3679(0x2b6)](_0x20f119))return this[_0x3a3679(0x271)]['createInstance'](P,this[_0x3a3679(0x17c)],this[_0x3a3679(0x234)],this[_0x3a3679(0x1e6)],this[_0x3a3679(0x34e)],_0x20f119['revision'],[],this['_handler']);this[_0x3a3679(0x106)]();let _0x47be76=this['_injector']['createInstance'](k,this[_0x3a3679(0x17c)],this['type'],this[_0x3a3679(0x34e)],this['_handler']);return _0x47be76['_schedule'](),_0x47be76['_updateLocalCache'](),_0x47be76;}['onRemoteRej'](_0x2a5f65){const _0x2cf8d8=_0x5a7686;return this[_0x2cf8d8(0x34c)](!!(_0x2a5f65!=null&&_0x2a5f65[_0x2cf8d8(0xdd)]));}[_0x5a7686(0x212)](_0x44a4df){const _0x1046e6=_0x5a7686;return this[_0x1046e6(0x33d)]>He?this[_0x1046e6(0x21e)]():(this[_0x1046e6(0x164)]=Ie(this[_0x1046e6(0x1d3)],{'timeout':this[_0x1046e6(0x1d3)],'reqId':_0x44a4df[_0x1046e6(0x2a2)]}),this[_0x1046e6(0x264)]=this[_0x1046e6(0x164)][_0x1046e6(0x24b)](({reqId:_0x1ac892,timeout:_0x3061a8})=>{const _0x385ab4=_0x1046e6;this[_0x385ab4(0x2d2)](_0x1ac892,_0x3061a8);}),this);}[_0x5a7686(0x21e)](){const _0x28fbbc=_0x5a7686;return this['_clearScheduledTask'](),this['_injector']['createInstance'](N,this[_0x28fbbc(0x17c)],this[_0x28fbbc(0x234)],this[_0x28fbbc(0x1e6)],this[_0x28fbbc(0x34e)],this[_0x28fbbc(0x277)]);}[_0x5a7686(0x81)](){return this;}[_0x5a7686(0x1ba)](){const _0xfaba10=_0x5a7686;this[_0xfaba10(0x277)][_0xfaba10(0x18b)](this[_0xfaba10(0x1e6)]);}['_onConflict'](_0xbe8869){const _0x4224ad=_0x5a7686;return this[_0x4224ad(0x98)](),this[_0x4224ad(0x271)][_0x4224ad(0x313)](M,this[_0x4224ad(0x17c)],this['type'],null,this['_pendingMutations'],this[_0x4224ad(0x277)],_0xbe8869);}[_0x5a7686(0x2d2)](_0x5b88f7,_0x124553){const _0x493dd9=_0x5a7686;var _0x263e4b;_0x5b88f7===((_0x263e4b=this['_awaitingChangeset'])==null?void 0x0:_0x263e4b[_0x493dd9(0x2a2)])&&(this[_0x493dd9(0x1ba)](),this['_resendTimeout']=_0x124553===0x0?0x3e8:Math['min'](_0x124553*0x2,Ve),this[_0x493dd9(0x33d)]+=this[_0x493dd9(0x1d3)]);}[_0x5a7686(0x98)](){const _0x2bf854=_0x5a7686;var _0x2cf177;(_0x2cf177=this[_0x2bf854(0x264)])==null||_0x2cf177[_0x2bf854(0x393)](),this[_0x2bf854(0x1d3)]=0x0,this[_0x2bf854(0x33d)]=0x0;}};function _0x37aa(){const _0xa47838=['hasOwnProperty','toString','_waitCount','parse','close','_lockTransition','ERROR_IMAGE','members$','push','url','session.room-cnt-exceeds','fromCollab','session.room-full','PERMISSION_REJ','loadSheet','subscribe','ImageUploadStatusType','EnsureSlideMasterPageMutation','_state$','entries','getUnitId','createSocket','setCfgEnableObjInherit','_clearTimeoutTimer','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','MUTATION','_socketChannels','size','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','call','eventID','/universer-api/comb','number','isCompositionEnd','_onRemoteRetry','_event$','objects','upload','_HTTPService','liveShareNewHost','_sender','LIVESHARE_FETCH_OPERATIONS','csAckEvent','LIVESHARE_OPERATION','HEARTBEAT_TIMEOUT_KEY','_getAPIPrefixPath','not_collab','&assign=','collaboration-client.local-cache-service','/-/object/-/batch_allowed','stopTime','SnapshotServerOverHTTPService','/universer-api/snapshot/','_injector','HEARTBEAT_INTERVAL_KEY','synced','params','_instanceService','CONFLICT','_handler','AwaitingWithPendingState','[UniverCollaborationClientPlugin]','csShouldRetryEvent','sendHeartbeatTimer','takeUntil','\x0aCurrent:\x20','_undoStacks','UNIVER_BASE','resolveUnit','_onRemoteRejected','setShowComponents','_registerDependencies','focused$','error$','_identity','_getRedoStack','default','_permissionService','href','indexOf','UNISCRIPT_RUN','b64DecodeUnicode','socket\x20close','_changesetSessionId','_showConflictNotification','telemetry\x20info\x20is\x20not\x20initialized','deleteCollaborator','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','getCollabEntity$','requireSession','ITransformService','INetworkConditionService','IConfigService','/universer-api/file/{fileID}/sign-url','_startCollaboration','refreshPermission','unitType','toLocal','cmd','send','localUnitId','origin','reqId','onRemoteAck','Quantity','onCommentUpdate','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','_localCacheService','_docStateChangeManagerService','COLLABORATION_ENDPOINT_INVALID','_adapter','parseChangesetToProtocol','csRejEvent','_createInitialState','_onRemoteChangeset','conflict','_getConfig','_exhaustRemoteChangesetQueue','saveSheetBlock','state$','isTransformMutationsWithChangesetSuccess','code','_checkMissing','&source=','JOIN_ROOM_PERMISSION_DENIED','/new_changes','_commentUpdate$','CollaborationSessionService','_isPermissionRej','entityInit$','_onCombEvent','CollaborationStatus','_doCreateSocket','_updateState','ILogService','m2Prime','_sendingTimer','values','unknown','onTransformIME','univer-pro.collaboration-client-adapter-service','CollaborationSocketService','SheetCollaborationEntity','OTHER_CLIENTS_EDITING','_members$','leaveEvent','1637961IbohND','base-ui.attachment-io.service','onload','ERROR_EXCEED_SIZE','_resendWithTimeout','CommandType','IUniverInstanceService','appendMutation','routeKey','_sessionStatus$','_clearRetryConnectingTimer','RevisionService','enableCollaboration','onMutationExecutedForCollab','isArray','_replaceFileID','getCurrentRevOfUnit','_updateStatus','updatePermissionObjEvent','_stopTelemetryCollaborationNewChangeset','status$','_status$','_eventService','toPrimitive','FileSource','socket\x20open.','infoRsp','UniverInstanceType','socketReady','onTransformRemoteChangesetByStateCache','_substituteUndoStack','enableAuthServer','\x20to\x20','CompressMutationService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_sessions','encode','_unitLoaded$','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','getMemberID','action','resourceIDs','changesets','_collaborationTimeoutTimer','15lesqNq','updateOfflineData','_acknowledgeAwaitingIfReady','_onConnectionOpen','_createInitialStateImpl','_upload','fetchMiss','UNIVER_DOC','_revisionService','transformSelections','Injector','UPDATE_PERMISSION_OBJ','session.join-failed','capture','method','JOINING','override','body','startTime','memberID','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_handleRemoteChangesets','awaiting','[DataLoaderService]','_waitForHeartbeatResponse','createInstance','MSG_FOR_ERROR','state','merge','min','session.room-permission-denied','UNIVER_SLIDE','createCollaborator','onStateChange','prototype','EmptyMutationInfo','RETRY_CONNECTING_MAX_COUNT','[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.','UNIVER_BOARD','collabSubmitChangesetUrl','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','/fetchmissing?from=','_acknowledgedAwaitingRevision','joinRsp','?url=','waitForRoom$','_joinRoom','[PendingState]:\x20unhandled\x20univer\x20type:\x20','LOCAL_CACHE_INTERVAL_KEY','object','src','disableLocalCache','onTransformState','onMissingChangesets','socket$','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','BaseCollaborationEntity','collaboration_new_changeset','BehaviorSubject','isTransformMutationsWithChangesetFailure','_cfgEnableObjInherit','LocaleService','Plugin','ThresholdInterceptorFactory','fetch_missing','AuthzIoHttpService','liveShareOperation','_maxTotalRetryTimeout','CollaborationEntity','ITelemetryService','Subject','SyncedState','decorate','_networkConditionService','_onMessage','confirm','UUID','_undoRedoService','getMember','baseRev','sid','getConfig','_onConflict','IMentionIOService','_pendingMutations','_scheduleCollaborationTimeoutTimer','map','Workbook','ILocalCacheService','incrementRevOfUnit','string','getUnitStatus$','_clearRedo','update','ErrorCode','readyForCollab','_tryReconnect','_collabSessionService','onTransformRemoteChangesetByIMECache','save\x20fail\x20reason\x20is\x20','HTTPService','_snapshotService','NO_OTHER_CLIENTS_EDITING','FAIL','textRanges','JSONX','createIdentifier','_members','fetchThroughInterceptors','close$','NEW_CHANGESETS','ONLINE','error','univer-pro.collaboration-client-socket-service','_handlerCallback','3775464tvZPtE','missingChangesets','delete','initWorkbookPermissionChange','result','symbol','editing\x20status\x20changed\x20to','SUBMIT_CHANGESET_TIMEOUT','_applyRemoteChangeset','[SyncedState]:\x20received\x20acknowledgement.','MentionIoHttpService','sessionStatus','now','_onLocalMutation','joinEvent','loadUnit','getCollabEntity','_tryEnsureSocket','CollaborationUIEventService','_isEchoedAwaitingChangeset','_entityInit$','_sessionChannels','originalMeta','clear','status','resolve','ISnapshotServerService','emitEvent','_onOffline','DEFAULT_WS_SESSION_TICKET_URL','getSheetId','subject','retryConnectingTimer','_getUploadFileURL','RECV','_executeRemoteChangeset','23988MmyGUo','OfflineState','unsubscribe','_createHandler','_initRequestHeader','getCurrentUser','_initCloseConn','loadSlide','timeoutTimer','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','SetSelectionsOperation','HEARTBEAT','toggleOnline','SlideCollaborationEntity','DocCollaborationEntity','_transformUndoredo','endsWith','init','URL','commentUpdateEvent','trim','_type','_change$','_httpService','onRemoteRej','/universer-api/user/session-ticket','_logService','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','[PendingState]:\x20received\x20rejection.','INGEST','file','getLocalCacheKey','_socketMessageSubscription','authzUrl','_transformRemoteChangesetByIMECache','_clearScheduledTask','connection\x20error','_config','[CollaborationEntity]','/unit/','pauseCollaboration','setCurrentUser','post','actions','getImage','UNIVER_SHEET','Optional','RemoveSlidePageMutation','userID','getWorkbookSelections','_onJoinRoomEvent','cfgEnableObjInherit','getTime','_onUserLeave','_transitionLocked','_getCurrentRevision','PENDING','transformUndoRedo','/object/','_initUnitPermissionChange','[CollaborationUndoRedoService]','getSheetBlock','CHANGESET_REJ','text-x','_snapshotServerService','putCollaborators','updateCursorEvent','onTransformSelections','saveChangeset','snapshotServerUrl','LIVESHARE_NEW_HOST','_queuedRemoteChangesets','target','_listenToNetworkCondition','has','closeSession','ImageSourceType','getDrawingImageAllowSize','_decreaseWaiting','objectID','localCacheService','_startTelemetryCollaborationNewChangeset','InsertSheetMutation','includes','HEARTBEAT_INTERVAL','_getSendChangesetTimeout','every','getUnit','delay','IPermissionService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','UPDATE_CURSOR','updateMember','CollaborationEvent','fromCharCode','HELLO','/block/','_unlockTransition','/-/object/list','defineProperty','columnGroups','getRoom','retryCount','subUnitId','isPermissionRej','create','_localeService','batchAllowed','candidateSocket','_getDownloadEndpointURL','_initDependencies','HEARTBEAT_TIMEOUT','compose','LEAVE','_updateLocalCache','x-univer-host','_onFetchMissResult','asObservable','onMissedChangesetFetched','reduce','loadBoard','IImageIoService','tables','fetching\x20missing\x20changesets\x20from\x20','DEFAULT_FILE_NAME','FetchingMissState','_collaborationSessionService','headers','awaiting_with_pending','OFFLINE','HTTPRequest','pipe','socketMessageSubscription','/object','481710VXzHgT','_roomCreated$','/universer-api/oidc/authpage','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','collabWebSocketUrl','_toggleOnline','univer-pro.collaboration-client.single-active-unit-service','LOCAL_CACHE_INTERVAL','/rev/','_univerInstanceService','_socket','_incrementRevisionNumber','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','location','uploadFileServerUrl','UniverNetworkPlugin','_createSocket','_commandService','1.0.0-alpha.6','LIVESHARE_REQUEST_HOST','_submitChangeset','People','_createSession','objectType','_fetchMissChangesets','ReplaySubject','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','Disposable','session','floor','CHANGESET_SHOULD_RETRY','_transformRemoteChangesetByStateCache','_getSignURL','_initMergeInterceptor','onlyLocal','_changesetReqId','COMMENT_UPDATE','stringify','[CollaborationSessionService]','_commentService','mapDocumentTypeToUniverInstanceType','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','sheets','event$','_collaborationPaused','isTransformChangesetsSuccess','sendChangesetTimeout','parseProtocolChangeset','_collaborationUIEventService','transformChangesets','workbook','downloadEndpointUrl','OTHER_CLIENT_EDITING','snapshot','collaboratorID','UnitStatus','loadBase','unitId','533138gMLIMW','function','BASE64','_disableEditing','\x20-\x20','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','concatBytes','Univer','CollaborationImageIoService','ISingleActiveUnitService','getCurrentSelections','SHOULD_CLOSE_CONN','GLOBAL_ROOMS_CNT_EXCEEDS','Tools','[FetchMissState]','mergeOverrideWithDependencies','COMPRESS_MUTATION_APPLY','_onUserJoin','_resolveSessionIdentity','/resources','updateSnapshot','_shouldReportTelemetry','UniverCollaborationPlugin','Module','DocStateChangeManagerService','_singleActiveUnitService','[CollaborationState]:\x20apply\x20error!','attachment','OPTIONAL','IAuthzIoService','equals','unitId\x20is\x20not\x20found','IDLE','c1Prime','find','collaboration-client.config','14ldZJIV','getFocusedUnit','AddSlidePageMutation','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','list','[OfflineState]:\x20received\x20rejection.','/collaborator','_scheduleCompleteTimestamp','toRemote','_rescheduleHeartbeat','_resendTimer','some','toDisposable','PendingState','packageName','constructor','IAttachmentIoService','getTypeOfUnitDisposed$','message$','_configService','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','version','ICommandService','_state','ws://127.0.0.1:8000/universer-api/comb/connect','ICollaborationSocketService','RETRY_CONNECTING_MAX_COUNT_KEY','SnapshotService','&to=','dispose','CollaborativeUndoRedoService','CollaborationAttachmentIoService','/role','_telemetryService','unitID','disposeWithMe','_userManagerService','blockRanges','CombCmd','SOCKET_FAILED_RETRY','getAllMembers','_throwTelemetryCollaborationNewChangeset','slice','2078274vfQylp','SUBMIT_CHANGESET','[CollaborationSession]','socketService','MergeInterceptorFactory','filter','onSendChangeset','/allowed','removeMember','_pendingSessions','put','range','startsWith','CLOSE_ROOM','getInterceptPoints','_init','_compressMutationService','getDeserializedSheetBlock','ISocketService','catch','SOCKET_FAILED','UnitEmbedded','_imageSourceCache','_transformService','commentUpdate$','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','withCredentials','_getAPIPrefix','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','RxDisposable','responseType','_memberService','take','randomBytes','retryConnectingInterval','PERMISSION_DENIED','loadUnitOfRevision','SheetTransformSelectionsService','transformMutationsWithChangeset','copyFileMeta','touchDependencies','CmdRspCode','/universer-api/authz','debug','_sheetTransformSelectionsService','_substituteRedoStack','isInternalEditorID','requestParams','setConfig','_roomMembers','get','permissionRejEvent','/universer-api/stream/file/upload','resend','_clearHeartbeatTimer','loginUrlKey','name','getActiveSheet','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','submit\x20changeset\x20error!','saveAttachment','newCsEvent','unit','_unitInfo$','_entities','selections','mutations','fetchMissingChangesets','Inject','shouldCloseConn','endpoint','JOIN_ROOM_FULL','changeset','WorkbookEditablePermission','rev','getTypeOfUnitAdded$','getValue','hostname','_resendTimeout','revision','_telemetryInfo','firstValueFrom','sessionStatus$','deepClone','_clearLocalCache','339816RqshnW','_clearCollaborationTimeoutTimer','enableSingleActiveInstanceLock','max','forEach','_transformStack','getUploadOptions','loadOfflineData','executeCommand','registerHTTPInterceptor','COMPRESS_MUTATION_SEND','_getCtorByUniverInstanceType','_awaitingChangeset','_transformSelections','setWaitCount','__splitChunk__','JOIN','next','[SyncedState]:\x20received\x20rejection.','localeService','CommentService','{fileID}','_onRemoteACK','onRemoteChangeset','add','CollaborationSession','accept','_emitMembers','FileId','_acknowledgeAwaiting','roles','addHandlerCallback','complete','_hasSessionsForEndpoint','append','patch','IUndoRedoService','_removeRoom','open$','PSEUDO_FETCH_MISSING_RESULT','_schedule','SYNCED','DependentOn','unit-cache-','onSyncEditingCollabCursor','saveSnapshot','?size=','RichTextEditingMutation','textEncoder','objectActions','_transformIMECache','_socketService','_onRecvEvent','_onConnectionFailed','interceptor','dispose$','onRemoteRetry','LIVESHARE_TERMINATE','docStateChange$','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','MentionType','online$','pending','ConflictState','[CollaborationSessionService]:\x20socket\x20error','collaMsg','reject','getUnitType','toggleOffline','data','CHANGESET_ACK','_transformStateCache','addImageSourceCache','_replayCachedMutations','FETCH_MISSING','length','UNIVER_COLLABORATION_CLIENT_PLUGIN','getSnapshotAPIPath','_syncEditingCollabCursor','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','onStarting','endpointKey','set','pluginName','collaborators','updatePermissionPoint','JOIN_ROOM_FAILED','AwaitingState','[OfflineState]:\x20received\x20acknowledgement.','_transformAndApplyRemoteChangeset','type','_toggleOffline','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','USERS_ENTER','USERS_LEAVE','loadDoc','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','_getSocketChannel'];_0x37aa=function(){return _0xa47838;};return _0x37aa();}j=ze=y([v(0x6,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x7,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x8,t[_0x5a7686(0x170)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,e[_0x5a7686(0x296)]),v(0xb,t[_0x5a7686(0x1fe)]),v(0xc,(0x0,t[_0x5a7686(0xa3)])(S))],j);let M=class extends D{constructor(_0x5e031e,_0x58fc8a,_0x2486d5,_0x13008b,_0x4d0e6e,_0x595c1e=!0x1,_0x23b1a2,_0x5ba1e5,_0x41912c,_0x132afb,_0x515232,_0x23f2dc,_0xad89ee){const _0x3d7fcc=_0x5a7686;super(_0x5e031e,_0x58fc8a,_0x2486d5,_0x13008b,_0x4d0e6e,_0x5ba1e5,_0x41912c,_0x132afb,_0xad89ee),this[_0x3d7fcc(0x2bc)]=_0x595c1e,this['_permissionService']=_0x23b1a2,this['_localeService']=_0x515232,this[_0x3d7fcc(0x12c)]=_0x23f2dc,this[_0x3d7fcc(0xc5)]=_0xad89ee,g(this,_0x3d7fcc(0x385),_0x3d7fcc(0x2af)),this[_0x3d7fcc(0x290)](),this[_0x3d7fcc(0x1d9)](),this[_0x3d7fcc(0x139)]();}['appendMutation'](){return this;}[_0x5a7686(0x1f1)](){return this;}[_0x5a7686(0x2a3)](){return this;}[_0x5a7686(0x8d)](){return this;}[_0x5a7686(0x212)](){return this;}[_0x5a7686(0x21e)](){return this;}[_0x5a7686(0x81)](){return this;}['resend'](){const _0x463783=_0x5a7686;throw Error(_0x463783(0x293));}[_0x5a7686(0x1d9)](){const _0x23b779=_0x5a7686;var _0x49fb19,_0x4167e5,_0x150f23;(_0x49fb19=this[_0x23b779(0x2a7)])==null||(_0x4167e5=_0x49fb19['backupOfflineData'])==null||(_0x4167e5=_0x4167e5['call'](_0x49fb19,this[_0x23b779(0x17c)],_0x23b779(0x2af)))==null||_0x4167e5[_0x23b779(0x198)](()=>void 0x0),(_0x150f23=this[_0x23b779(0x2a7)])==null||_0x150f23[_0x23b779(0x2fb)](this['unitID'],this[_0x23b779(0x234)],null,[]);}[_0x5a7686(0x290)](){const _0x20432b=_0x5a7686;this[_0x20432b(0x2bc)]?this[_0x20432b(0x12c)][_0x20432b(0x388)]({'id':_0x20432b(0x1a8)}):this[_0x20432b(0x12c)]['emitEvent']({'id':_0x20432b(0x276)});}[_0x5a7686(0x139)](){const _0x14ab05=_0x5a7686;this[_0x14ab05(0x289)][_0x14ab05(0x22f)](new r[(_0x14ab05(0x1ce))](this['unitID'])['id'],!0x1);}};M=y([v(0x6,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0xce)])),v(0x7,t[_0x5a7686(0x170)]),v(0x8,t[_0x5a7686(0x1fe)]),v(0x9,(0x0,t['Inject'])(e[_0x5a7686(0x2d9)])),v(0xa,(0x0,t['Inject'])(t[_0x5a7686(0x337)])),v(0xb,(0x0,t[_0x5a7686(0x1c9)])(_)),v(0xc,(0x0,t[_0x5a7686(0xa3)])(S))],M);let N=class extends D{constructor(_0x4b9fa2,_0x3eeee2,_0x250b03,_0x372c81,_0x2fff40,_0x427f00,_0x10aa53,_0xb92928,_0x38f7e5,_0x35d0cd){const _0x38fbba=_0x5a7686;super(_0x4b9fa2,_0x3eeee2,_0x250b03,_0x372c81,_0x2fff40,_0xb92928,_0x38f7e5,_0x10aa53,_0x35d0cd),this[_0x38fbba(0x271)]=_0x427f00,g(this,_0x38fbba(0x385),'offline');}[_0x5a7686(0x2d5)](_0x15124a){const _0xa6257c=_0x5a7686;return this['_pendingMutations'][_0xa6257c(0x244)](_0x15124a),this['_updateLocalCache'](),this;}[_0x5a7686(0x1f1)](_0x2af568){throw Error('[OfflineState]:\x20received\x20changeset.');}[_0x5a7686(0x2a3)](){const _0x212e12=_0x5a7686;throw Error(_0x212e12(0x232));}[_0x5a7686(0x8d)](){const _0x3f8aa8=_0x5a7686;throw Error(_0x3f8aa8(0x15f));}['onRemoteRetry'](){return this;}[_0x5a7686(0x21e)](){return this;}[_0x5a7686(0x81)](){const _0x4da606=_0x5a7686;let {_injector:_0x3995d5,_pendingMutations:_0x51eb4a,_awaitingChangeset:_0x138836,unitID:_0x53598a,_handler:_0x5f20bb,type:_0x5f1761}=this,_0x1b00af=Ue(_0x3995d5,_0x53598a,_0x5f1761,_0x138836,_0x51eb4a,_0x5f20bb);return _0x1b00af instanceof k?_0x1b00af['_schedule']():(_0x1b00af instanceof j||_0x1b00af instanceof A)&&_0x1b00af[_0x4da606(0x1ba)](),_0x1b00af;}['resend'](){const _0x40ab22=_0x5a7686;throw Error(_0x40ab22(0x229));}};N=y([v(0x5,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x6,(0x0,t['Inject'])(e[_0x5a7686(0x2d9)])),v(0x7,t['ICommandService']),v(0x8,t[_0x5a7686(0x1fe)]),v(0x9,(0x0,t[_0x5a7686(0xa3)])(S))],N);let P=class extends D{constructor(_0x10fb30,_0x43a82f,_0x1129b5,_0x38feaa,_0x1269a6,_0xbbaf1f,_0x1697fa,_0x175b91,_0xdeee79,_0x699ee2,_0x37127e,_0x1f60d0,_0x3e51a5,_0x4cba1e){const _0xd18a2b=_0x5a7686;super(_0x10fb30,_0x43a82f,_0x1129b5,_0x38feaa,_0x1697fa,_0x37127e,_0x1f60d0,_0xdeee79,_0x4cba1e),this['_acknowledgedAwaitingRevision']=_0x1269a6,this[_0xd18a2b(0xbc)]=_0xbbaf1f,this[_0xd18a2b(0x271)]=_0x175b91,this[_0xd18a2b(0x8f)]=_0x699ee2,this[_0xd18a2b(0x19c)]=_0x3e51a5,this['localCacheService']=_0x4cba1e,g(this,'status',_0xd18a2b(0x33a));}['onMissedChangesetFetched'](_0x13c12c){const _0xd17e60=_0x5a7686;try{if(this['_handleRemoteChangesets'](_0x13c12c)[_0xd17e60(0x36e)])throw Error(_0xd17e60(0xcf));if(this[_0xd17e60(0x30f)]([...this['_queuedRemoteChangesets']]['sort']((_0x28d87d,_0x22f161)=>_0x28d87d['revision']-_0x22f161['revision']))[_0xd17e60(0x36e)])return this['_queuedRemoteChangesets']=[],this[_0xd17e60(0xe7)](),this['_handler']['onMissingChangesets']({'from':this[_0xd17e60(0xac)](),'to':0x0}),this;let _0x369c9a=this[_0xd17e60(0x1e6)],_0x3676a6=this['_pendingMutations'],_0x25e58d;if(_0x369c9a&&_0x3676a6[_0xd17e60(0x225)]!==0x0)_0x25e58d=this['_injector'][_0xd17e60(0x313)](j,this['unitID'],this[_0xd17e60(0x234)],_0x369c9a,_0x3676a6,this['_handler'],void 0x0);else{if(_0x369c9a&&_0x3676a6[_0xd17e60(0x225)]===0x0)_0x369c9a[_0xd17e60(0x349)]=this[_0xd17e60(0xac)](),_0x25e58d=this[_0xd17e60(0x271)]['createInstance'](A,this[_0xd17e60(0x17c)],this[_0xd17e60(0x234)],_0x369c9a,this['_handler']);else{if(_0x3676a6[_0xd17e60(0x225)]!==0x0){let _0x37e596=this[_0xd17e60(0x271)][_0xd17e60(0x313)](k,this['unitID'],this['type'],_0x3676a6,this[_0xd17e60(0x277)]);_0x37e596[_0xd17e60(0x202)](),_0x25e58d=_0x37e596;}else _0x25e58d=this['_injector'][_0xd17e60(0x313)](O,this[_0xd17e60(0x17c)],this['type'],this[_0xd17e60(0x277)]);}}return _0x25e58d[_0xd17e60(0xe7)](),_0x25e58d;}catch(_0x294a8c){return this[_0xd17e60(0x8f)]['error'](_0xd17e60(0x144),'failed\x20to\x20apply\x20missed\x20changesets!',_0x294a8c),this[_0xd17e60(0x271)][_0xd17e60(0x313)](M,this[_0xd17e60(0x17c)],this[_0xd17e60(0x234)],this['_awaitingChangeset'],this[_0xd17e60(0x34e)],this[_0xd17e60(0x277)],!0x1);}}[_0x5a7686(0x30f)](_0x3070ba){const _0x4c43d6=_0x5a7686;this[_0x4c43d6(0x2fc)]();for(let _0x20368e=0x0;_0x20368e<_0x3070ba[_0x4c43d6(0x225)];_0x20368e++){let _0x5222f9=_0x3070ba[_0x20368e],_0x4ce939=this['_getCurrentRevision']();if(!(_0x5222f9[_0x4c43d6(0x1d4)]<=_0x4ce939)){if(_0x5222f9[_0x4c43d6(0x1d4)]>_0x4ce939+0x1)return{'missingChangesets':!0x0};if(this[_0x4c43d6(0x380)](_0x5222f9)){this[_0x4c43d6(0x1f7)]();continue;}this[_0x4c43d6(0x233)](_0x5222f9),this[_0x4c43d6(0x2fc)]();}}return{'missingChangesets':!0x1};}[_0x5a7686(0x233)](_0x1251eb){const _0x2e91a2=_0x5a7686;let _0x1f2c2c=_0x1251eb,_0x56c2d2=this[_0x2e91a2(0x1e6)];if(_0x56c2d2){let _0x3b41b5=this[_0x2e91a2(0x19c)][_0x2e91a2(0x12d)]([_0x1251eb],[_0x56c2d2],!0x1);if(!(0x0,e['isTransformChangesetsSuccess'])(_0x3b41b5))throw _0x3b41b5['error'];_0x1f2c2c=_0x3b41b5[_0x2e91a2(0x157)][0x0],_0x56c2d2=_0x3b41b5['c2Prime'][0x0];}let _0x298137=this[_0x2e91a2(0x34e)];if(_0x298137[_0x2e91a2(0x225)]){let _0x47fb02=this[_0x2e91a2(0x19c)]['transformMutationsWithChangeset'](_0x1f2c2c,_0x298137);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x47fb02))throw _0x47fb02[_0x2e91a2(0x36a)];_0x1f2c2c=_0x47fb02[_0x2e91a2(0x157)],_0x298137=_0x47fb02[_0x2e91a2(0x2c3)];}this[_0x2e91a2(0x390)](_0x1f2c2c),_0x56c2d2&&(_0x56c2d2[_0x2e91a2(0x349)]=this[_0x2e91a2(0xac)]()),this[_0x2e91a2(0x1e6)]=_0x56c2d2,this[_0x2e91a2(0x34e)]=_0x298137;}[_0x5a7686(0x2fc)](){const _0x3236c7=_0x5a7686;if(!this[_0x3236c7(0x1e6)]||this[_0x3236c7(0x324)]==null)return;let _0x1d3aef=this[_0x3236c7(0xac)]();if(this[_0x3236c7(0x324)]<=_0x1d3aef)throw Error(_0x3236c7(0x254)+this[_0x3236c7(0x324)]+'.');this['_acknowledgedAwaitingRevision']===_0x1d3aef+0x1&&this['_acknowledgeAwaiting']();}[_0x5a7686(0x1f7)](){const _0x4c661d=_0x5a7686;this['_incrementRevisionNumber'](),this[_0x4c661d(0x1e6)]=null,this[_0x4c661d(0x324)]=null;}[_0x5a7686(0x380)](_0x3d310e){const _0x59809a=_0x5a7686;let _0x5292b6=this[_0x59809a(0x1e6)];return!_0x5292b6||!_0x5292b6[_0x59809a(0x34a)]||_0x5292b6['reqId']===null||_0x5292b6[_0x59809a(0x2a2)]===void 0x0?!0x1:_0x3d310e['unitID']===_0x5292b6[_0x59809a(0x17c)]&&_0x3d310e[_0x59809a(0x34a)]===_0x5292b6[_0x59809a(0x34a)]&&_0x3d310e[_0x59809a(0x2a2)]===_0x5292b6[_0x59809a(0x2a2)];}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x5a7686(0x2d5)](_0x1a1d17){const _0x1763c1=_0x5a7686;return this[_0x1763c1(0x34e)][_0x1763c1(0x244)](_0x1a1d17),this;}[_0x5a7686(0x1f1)](_0xc60568){const _0x36dd86=_0x5a7686;return this[_0x36dd86(0xbc)]['push'](_0xc60568),this;}['onRemoteAck'](_0xedb419){const _0x23f777=_0x5a7686;if(this[_0x23f777(0x1e6)]){let _0x3b8c21=this[_0x23f777(0xac)]();return _0xedb419['revision']<=_0x3b8c21||(_0x3b8c21+0x1===_0xedb419[_0x23f777(0x1d4)]?(this['_incrementRevisionNumber'](),this[_0x23f777(0x1e6)]=null,this['_acknowledgedAwaitingRevision']=null):this[_0x23f777(0x324)]=_0xedb419[_0x23f777(0x1d4)]),this;}if(_0xedb419[_0x23f777(0x1d4)]<=this['_getCurrentRevision']())return this;throw Error(_0x23f777(0x107));}[_0x5a7686(0x8d)](_0x257294){const _0x5bdf22=_0x5a7686;return this['_onConflict'](!!(_0x257294!=null&&_0x257294[_0x5bdf22(0xdd)]));}[_0x5a7686(0x212)](){return this;}['toggleOffline'](){const _0xfe111e=_0x5a7686;return this[_0xfe111e(0x271)][_0xfe111e(0x313)](N,this['unitID'],this[_0xfe111e(0x234)],this[_0xfe111e(0x1e6)],this[_0xfe111e(0x34e)],this['_handler']);}[_0x5a7686(0x81)](){return this;}[_0x5a7686(0x34c)](_0xbb5517){const _0x35bd4f=_0x5a7686;return this[_0x35bd4f(0x271)][_0x35bd4f(0x313)](M,this[_0x35bd4f(0x17c)],this[_0x35bd4f(0x234)],this[_0x35bd4f(0x1e6)],this[_0x35bd4f(0x34e)],this[_0x35bd4f(0x277)],_0xbb5517);}};P=y([v(0x7,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x8,(0x0,t[_0x5a7686(0x1c9)])(e['RevisionService'])),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t['ICommandService']),v(0xb,t[_0x5a7686(0x1fe)]),v(0xc,e[_0x5a7686(0x296)]),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],P);function Ue(_0x4947d9,_0x2af1a5,_0x2ebed8,_0x997dd8,_0x4343ec,_0xdcf2da){const _0x20c40c=_0x5a7686;return _0x997dd8&&_0x4343ec[_0x20c40c(0x225)]?_0x4947d9['createInstance'](j,_0x2af1a5,_0x2ebed8,_0x997dd8,_0x4343ec,_0xdcf2da,void 0x0):_0x997dd8?_0x4947d9['createInstance'](A,_0x2af1a5,_0x2ebed8,_0x997dd8,_0xdcf2da):_0x4343ec[_0x20c40c(0x225)]?_0x4947d9[_0x20c40c(0x313)](k,_0x2af1a5,_0x2ebed8,_0x4343ec,_0xdcf2da):_0x4947d9[_0x20c40c(0x313)](O,_0x2af1a5,_0x2ebed8,_0xdcf2da);}let F=class extends t[_0x5a7686(0x1a2)]{get[_0x5a7686(0x315)](){const _0x49756d=_0x5a7686;return this[_0x49756d(0x171)];}constructor(_0x15025f,_0x2a8b3d,_0x2b9d9c,_0x21cacc,_0x5b3e64,_0x54d534,_0x4b1802,_0x36334f,_0x1d6b21,_0x538919,_0x68a46c,_0x52aa44,_0x514758,_0x159aca){const _0x41ad33=_0x5a7686;super(),this['unitID']=_0x15025f,this[_0x41ad33(0x118)]=_0x2a8b3d,this[_0x41ad33(0x8a)]=_0x2b9d9c,this[_0x41ad33(0x271)]=_0x21cacc,this[_0x41ad33(0x195)]=_0x5b3e64,this[_0x41ad33(0xdf)]=_0x54d534,this['_revisionService']=_0x4b1802,this[_0x41ad33(0x2e4)]=_0x36334f,this[_0x41ad33(0x104)]=_0x1d6b21,this['_logService']=_0x538919,this[_0x41ad33(0x10d)]=_0x68a46c,this['_permissionService']=_0x52aa44,this[_0x41ad33(0x14f)]=_0x514758,this[_0x41ad33(0x2a7)]=_0x159aca,g(this,_0x41ad33(0x24e),new i[(_0x41ad33(0x334))](null)),g(this,_0x41ad33(0x2b3),this[_0x41ad33(0x24e)][_0x41ad33(0xea)]()),g(this,_0x41ad33(0x171),void 0x0),g(this,_0x41ad33(0x128),!0x1),g(this,'_changesetSessionId',''),g(this,_0x41ad33(0x11f),0x0),g(this,'status$',this['state$'][_0x41ad33(0xf8)]((0x0,i[_0x41ad33(0x350)])(_0x44b655=>_0x44b655?_0x44b655[_0x41ad33(0x385)]:'offline'),(0x0,i['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),g(this,'_transitionLocked',!0x1),g(this,'_remoteChangesetQueue',[]);}async[_0x5a7686(0x86)](){const _0x146cb0=_0x5a7686;if(this[_0x146cb0(0x315)])throw Error(_0x146cb0(0x236));await this[_0x146cb0(0x194)]();}[_0x5a7686(0x9d)](){const _0x14c6a2=_0x5a7686;return this[_0x14c6a2(0x128)]=!0x0,(0x0,t[_0x14c6a2(0x166)])(()=>{const _0x32e449=_0x14c6a2;this[_0x32e449(0x128)]=!0x1,this[_0x32e449(0x2b1)]();});}['onLocalMutation'](_0x2ab7bb){const _0x11f447=_0x5a7686;this[_0x11f447(0x37a)](_0x2ab7bb);}[_0x5a7686(0x2c1)](_0x1b0651){const _0x2df104=_0x5a7686;this[_0x2df104(0x171)]=_0x1b0651,this[_0x2df104(0x24e)][_0x2df104(0x1eb)](_0x1b0651);}async['_init'](){const _0x56dda6=_0x5a7686;if(this['_updateState'](await this['_createInitialState']()),this[_0x56dda6(0x14f)]){var _0x550bef;(_0x550bef=this['_singleActiveUnitService'])==null||_0x550bef['editingUnit'](this[_0x56dda6(0x17c)]),this[_0x56dda6(0x17d)](this[_0x56dda6(0x14f)][_0x56dda6(0x355)](this[_0x56dda6(0x17c)])[_0x56dda6(0x24b)](_0x3acf33=>{const _0x21dc0a=_0x56dda6;this[_0x21dc0a(0x8f)][_0x21dc0a(0x1b0)]('[CollaborationEntity]',_0x21dc0a(0x373),_0x3acf33),_0x3acf33===0x1?(this[_0x21dc0a(0x2e4)]['emitEvent']({'id':_0x21dc0a(0x130)}),this[_0x21dc0a(0x289)][_0x21dc0a(0x22f)](new r['WorkbookEditablePermission'](this[_0x21dc0a(0x17c)])['id'],!0x1),this[_0x21dc0a(0x289)][_0x21dc0a(0x282)](!0x1)):(this[_0x21dc0a(0x289)][_0x21dc0a(0x22f)](new r[(_0x21dc0a(0x1ce))](this[_0x21dc0a(0x17c)])['id'],!0x0),this['_permissionService'][_0x21dc0a(0x282)](!0x0));}));}let _0x3adf20=!0x1;return this[_0x56dda6(0x17d)](this[_0x56dda6(0x118)][_0x56dda6(0x1d7)][_0x56dda6(0x24b)](_0x12ecc5=>{const _0x46634b=_0x56dda6;_0x12ecc5===0x3?this[_0x46634b(0x100)](_0x3adf20):_0x12ecc5===0x2&&(_0x3adf20=!0x0,this[_0x46634b(0x235)]());})),this[_0x56dda6(0x17d)](this['session'][_0x56dda6(0x127)][_0x56dda6(0x24b)](_0x3209af=>{const _0x235e3b=_0x56dda6;try{switch(_0x3209af['eventID']){case e['CollaborationEvent'][_0x235e3b(0x368)]:this[_0x235e3b(0x2ae)]((0x0,e[_0x235e3b(0x12b)])(_0x3209af[_0x235e3b(0x21f)]));break;case e['CollaborationEvent'][_0x235e3b(0x220)]:this[_0x235e3b(0x1f0)](_0x3209af['data']);break;case e['CollaborationEvent'][_0x235e3b(0xb3)]:this[_0x235e3b(0x281)]();break;case e[_0x235e3b(0xd2)][_0x235e3b(0x11a)]:this[_0x235e3b(0x25e)](_0x3209af[_0x235e3b(0x21f)]);break;case e[_0x235e3b(0xd2)][_0x235e3b(0x201)]:this[_0x235e3b(0xe9)](_0x3209af[_0x235e3b(0x21f)]['changesets']['map'](_0x5cafee=>(0x0,e[_0x235e3b(0x12b)])(_0x5cafee)));break;case e[_0x235e3b(0xd2)][_0x235e3b(0x249)]:this[_0x235e3b(0x281)]({'isPermissionRej':!0x0});break;case e[_0x235e3b(0xd2)][_0x235e3b(0x28c)]:break;}}catch(_0xa5dc9){throw console[_0x235e3b(0x36a)]('Error\x20on\x20receiving\x20event',_0xa5dc9),_0xa5dc9;}})),this[_0x56dda6(0x171)];}['_unlockTransition'](){this['_transitionLocked']=!0x1;}[_0x5a7686(0x241)](){const _0x558c3b=_0x5a7686;if(this[_0x558c3b(0xab)])throw Error(_0x558c3b(0x31f));this[_0x558c3b(0xab)]=!0x0;}['_onLocalMutation'](_0x4cc172){const _0x407bf0=_0x5a7686;this['_lockTransition'](),this[_0x407bf0(0x2c1)](this[_0x407bf0(0x171)][_0x407bf0(0x2d5)](_0x4cc172)),this[_0x407bf0(0xd6)]();}[_0x5a7686(0x2ae)](_0x3b0e20){const _0x200716=_0x5a7686;if(!(_0x3b0e20[_0x200716(0x1d4)]<=this[_0x200716(0x302)][_0x200716(0x2de)](this[_0x200716(0x17c)]))){if(this['_collaborationPaused']){this['_remoteChangesetQueue'][_0x200716(0x244)](_0x3b0e20);return;}this[_0x200716(0x375)](_0x3b0e20);}}[_0x5a7686(0x2b1)](){const _0x572c7b=_0x5a7686;this['_remoteChangesetQueue'][_0x572c7b(0x1de)](_0x36e497=>this[_0x572c7b(0x375)](_0x36e497)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x4d88ce){const _0x3d0b7f=_0x5a7686;let _0x299cd4=this['_compressMutationService']['interceptor'][_0x3d0b7f(0x366)](this[_0x3d0b7f(0x195)][_0x3d0b7f(0x210)][_0x3d0b7f(0x193)]()[_0x3d0b7f(0x146)])(_0x4d88ce[_0x3d0b7f(0x1c7)],null)||_0x4d88ce['mutations'],_0x1500f1={..._0x4d88ce,'mutations':_0x299cd4};this[_0x3d0b7f(0x241)](),this['_updateState'](this[_0x3d0b7f(0x171)][_0x3d0b7f(0x1f1)](_0x1500f1)),this[_0x3d0b7f(0xd6)]();}[_0x5a7686(0x1f0)](_0x47c35a){const _0x19b897=_0x5a7686;this[_0x19b897(0x241)](),this[_0x19b897(0x2c1)](this['_state'][_0x19b897(0x2a3)](_0x47c35a)),this[_0x19b897(0xd6)]();}[_0x5a7686(0x281)](_0x36a8f7){const _0x517a94=_0x5a7686;this['_lockTransition'](),this[_0x517a94(0x2c1)](this[_0x517a94(0x171)][_0x517a94(0x8d)](_0x36a8f7)),this[_0x517a94(0xd6)]();}[_0x5a7686(0x25e)](_0x462200){const _0x24290a=_0x5a7686;this[_0x24290a(0x241)](),this[_0x24290a(0x2c1)](this[_0x24290a(0x171)][_0x24290a(0x212)](_0x462200)),this['_unlockTransition']();}[_0x5a7686(0xe9)](_0x2d501e){const _0x25df76=_0x5a7686;if(!(this[_0x25df76(0x171)]instanceof P))throw TypeError(_0x25df76(0x322));let _0x87b853=_0x2d501e[_0x25df76(0x350)](_0x37d592=>{const _0x444fd1=_0x25df76;let _0x23b560=this[_0x444fd1(0x195)][_0x444fd1(0x210)]['fetchThroughInterceptors'](this[_0x444fd1(0x195)][_0x444fd1(0x210)]['getInterceptPoints']()[_0x444fd1(0x146)])(_0x37d592[_0x444fd1(0x1c7)],null)||_0x37d592[_0x444fd1(0x1c7)];return{..._0x37d592,'mutations':_0x23b560};});this[_0x25df76(0x241)](),this[_0x25df76(0x2c1)](this[_0x25df76(0x171)][_0x25df76(0xeb)](_0x87b853)),this[_0x25df76(0xd6)]();}[_0x5a7686(0x235)](){const _0x4f72f2=_0x5a7686;this[_0x4f72f2(0x241)](),this[_0x4f72f2(0x2c1)](this[_0x4f72f2(0x171)][_0x4f72f2(0x21e)]()),this[_0x4f72f2(0xd6)]();}[_0x5a7686(0x100)](_0x361525=!0x1){const _0x53ba67=_0x5a7686;this[_0x53ba67(0x241)](),this['_updateState'](this[_0x53ba67(0x171)]['toggleOnline']()),this[_0x53ba67(0xd6)]();let _0x47f9ed=this[_0x53ba67(0x171)];_0x361525&&_0x47f9ed instanceof O&&(this[_0x53ba67(0x241)](),this[_0x53ba67(0x2c1)](_0x47f9ed[_0x53ba67(0x300)]()),this[_0x53ba67(0xd6)]());}async[_0x5a7686(0x2ad)](){return new Promise(_0xd7b60=>{const _0x42ab5e=_0x5741;this[_0x42ab5e(0x118)][_0x42ab5e(0x1d7)][_0x42ab5e(0xf8)]((0x0,i[_0x42ab5e(0x1a5)])(0x1))[_0x42ab5e(0x24b)](async _0x154425=>{const _0x4b9812=_0x42ab5e;_0xd7b60(await this[_0x4b9812(0x2fe)](_0x154425===0x3));});});}['_createHandler'](){let _0xcd833a=this['unitID'];return{'onStateChange':(_0x33c6ee,_0x3bce9e)=>{const _0x3d1605=_0x5741;if(_0x33c6ee!==this[_0x3d1605(0x171)])throw Error(_0x3d1605(0x1bf)+_0x33c6ee[_0x3d1605(0x385)]+'\x0aAfter:\x20'+_0x3bce9e['status']+_0x3d1605(0x27d)+this[_0x3d1605(0x171)][_0x3d1605(0x385)]);this['_updateState'](_0x3bce9e);},'onSendChangeset':_0x262e4e=>{const _0x45ebc1=_0x5741;_0x262e4e[_0x45ebc1(0x34a)]||(_0x262e4e[_0x45ebc1(0x34a)]=this['_changesetSessionId'],_0x262e4e['reqId']=++this['_changesetReqId']);let _0xb758ad={'eventID':e[_0x45ebc1(0xd2)][_0x45ebc1(0x186)],'data':{'unitID':_0x262e4e['unitID'],'unitType':this[_0x45ebc1(0x8a)],'changeset':_0x262e4e,'memberID':this[_0x45ebc1(0x118)][_0x45ebc1(0x2f5)]()}};this[_0x45ebc1(0x118)][_0x45ebc1(0x29f)](_0xb758ad,this[_0x45ebc1(0x17c)]);},'onMissingChangesets':({from:_0x27c851,to:_0x5e5347})=>{const _0x216657=_0x5741;this[_0x216657(0x8f)][_0x216657(0x1b0)](_0x216657(0x9b),_0x216657(0xf0)+_0x27c851+_0x216657(0x2ee)+_0x5e5347);let _0x5f9d6f={'eventID':e[_0x216657(0xd2)][_0x216657(0x224)],'data':{'unitID':_0xcd833a,'unitType':this['_type'],'from':_0x27c851,'to':_0x5e5347}};this[_0x216657(0x118)][_0x216657(0x29f)](_0x5f9d6f,this['unitID']);}};}async[_0x5a7686(0x2fe)](_0x4369fa){const _0x297875=_0x5a7686;var _0x2ac6d5,_0x5a6f4b,_0xe0c2a3;let _0x5a766a=await((_0x2ac6d5=this[_0x297875(0x2a7)])==null?void 0x0:_0x2ac6d5['loadOfflineData'](this[_0x297875(0x17c)])),_0xec46e1=(_0x5a6f4b=_0x5a766a==null?void 0x0:_0x5a766a[_0x297875(0x1c7)])==null?[]:_0x5a6f4b,_0x16b50f=(_0xe0c2a3=_0x5a766a==null?void 0x0:_0x5a766a['awaitingChangeset'])==null?null:_0xe0c2a3,_0x5ce141=!!(_0x16b50f!=null&&_0x16b50f['sid'])&&!!(_0x16b50f!=null&&_0x16b50f[_0x297875(0x2a2)]);this[_0x297875(0x28f)]=_0x5ce141?_0x16b50f[_0x297875(0x34a)]:(0x0,e['uuidv4'])(),this[_0x297875(0x11f)]=_0x5ce141?_0x16b50f[_0x297875(0x2a2)]:0x0;let _0x4dfc96=this[_0x297875(0x17c)];try{this[_0x297875(0x223)](_0x16b50f,_0xec46e1);}catch(_0x117003){this[_0x297875(0x8f)]['error'](_0x117003);}let _0x4d80af=this[_0x297875(0x394)]();if(_0x4369fa){let _0x82a21f=Ue(this['_injector'],_0x4dfc96,this[_0x297875(0x8a)],_0x16b50f,_0xec46e1,_0x4d80af);return _0x82a21f instanceof k?_0x82a21f['_schedule']():(_0x82a21f instanceof j||_0x82a21f instanceof A)&&_0x82a21f[_0x297875(0x1ba)](),_0x82a21f;}return this[_0x297875(0x271)][_0x297875(0x313)](N,_0x4dfc96,this[_0x297875(0x8a)],_0x16b50f,_0xec46e1,_0x4d80af);}['_replayCachedMutations'](_0x5d06c5,_0x1ad601){const _0x1a8133=_0x5a7686;var _0x1abf58,_0x309722;let _0x42d856=this[_0x1a8133(0x195)][_0x1a8133(0x210)][_0x1a8133(0x366)](this['_compressMutationService'][_0x1a8133(0x210)][_0x1a8133(0x193)]()[_0x1a8133(0x146)]);(_0x1abf58=_0x42d856((_0x5d06c5==null?void 0x0:_0x5d06c5['mutations'])||[],null))==null||_0x1abf58[_0x1a8133(0x1de)](_0x44685a=>this[_0x1a8133(0x10d)]['executeCommand'](_0x44685a['id'],_0x44685a[_0x1a8133(0x274)])),(_0x309722=_0x42d856(_0x1ad601||[],null))==null||_0x309722[_0x1a8133(0x1de)](_0x3a4b3b=>this[_0x1a8133(0x10d)][_0x1a8133(0x1e2)](_0x3a4b3b['id'],_0x3a4b3b[_0x1a8133(0x274)]));}};F=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t['Injector'])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],F);let I=class extends F{constructor(_0x4273bc,_0x4b6ef,_0xaee9b6,_0x4f9750,_0x3b972c,_0x3f5a5e,_0x14f988,_0x4cbe68,_0x19531c,_0x1e538a,_0xfbf6fb,_0x5a42a2,_0x1b5d3a,_0x166217,_0x1b7f1d){const _0x279126=_0x5a7686;super(_0x4273bc,_0xaee9b6,_0x4b6ef,_0x4f9750,_0x3b972c,_0x3f5a5e,_0x14f988,_0x4cbe68,_0x19531c,_0x1e538a,_0xfbf6fb,_0x5a42a2,_0x166217,_0x1b7f1d),this['unitID']=_0x4273bc,this[_0x279126(0x234)]=_0x4b6ef,this[_0x279126(0x2a8)]=_0x1b5d3a,g(this,_0x279126(0x36c),null);}[_0x5a7686(0x1f9)](_0x5f05f9){const _0x446ff1=_0x5a7686;this[_0x446ff1(0x36c)]=_0x5f05f9;}[_0x5a7686(0x177)](){const _0x3948e4=_0x5a7686;this['_handlerCallback']=null,super[_0x3948e4(0x177)]();}[_0x5a7686(0x394)](){const _0x165e1a=_0x5a7686;let _0x4cfc6d=super[_0x165e1a(0x394)]();return _0x4cfc6d[_0x165e1a(0x2c7)]=_0x5715c5=>{const _0x23a0d9=_0x165e1a;var _0x19e32b,_0x3356a0;return(_0x19e32b=this[_0x23a0d9(0x36c)])==null||(_0x3356a0=_0x19e32b[_0x23a0d9(0x2c7)])==null?void 0x0:_0x3356a0[_0x23a0d9(0x259)](_0x19e32b,_0x5715c5);},_0x4cfc6d[_0x165e1a(0x32e)]=_0xc0e09d=>{const _0x458117=_0x165e1a;var _0x560966,_0x30f072;return(_0x560966=this['_handlerCallback'])==null||(_0x30f072=_0x560966[_0x458117(0x32e)])==null?void 0x0:_0x30f072[_0x458117(0x259)](_0x560966,_0xc0e09d);},_0x4cfc6d[_0x165e1a(0xb8)]=_0x2760da=>{const _0x1b361e=_0x165e1a;var _0x482ecb,_0x546479;return(_0x482ecb=this[_0x1b361e(0x36c)])==null||(_0x546479=_0x482ecb[_0x1b361e(0xb8)])==null?void 0x0:_0x546479[_0x1b361e(0x259)](_0x482ecb,_0x2760da);},_0x4cfc6d[_0x165e1a(0x206)]=_0x5aa408=>{const _0x242641=_0x165e1a;var _0x5bec35,_0x3d2d0a;return(_0x5bec35=this[_0x242641(0x36c)])==null||(_0x3d2d0a=_0x5bec35['onSyncEditingCollabCursor'])==null?void 0x0:_0x3d2d0a[_0x242641(0x259)](_0x5bec35,_0x5aa408);},_0x4cfc6d[_0x165e1a(0x35c)]=_0x20051a=>{const _0x495d6f=_0x165e1a;var _0x5c3b79,_0x207d60,_0x421518;return(_0x5c3b79=(_0x207d60=this[_0x495d6f(0x36c)])==null||(_0x421518=_0x207d60[_0x495d6f(0x35c)])==null?void 0x0:_0x421518[_0x495d6f(0x259)](_0x207d60,_0x20051a))==null?_0x20051a:_0x5c3b79;},_0x4cfc6d[_0x165e1a(0x2eb)]=_0xc8623e=>{const _0x4c207a=_0x165e1a;var _0xb2dda4,_0x419b69,_0x4eba45;return(_0xb2dda4=(_0x419b69=this[_0x4c207a(0x36c)])==null||(_0x4eba45=_0x419b69['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x4eba45[_0x4c207a(0x259)](_0x419b69,_0xc8623e))==null?_0xc8623e:_0xb2dda4;},_0x4cfc6d;}async['_init'](){const _0x161671=_0x5a7686;let _0x5ddb54=await super[_0x161671(0x194)]();return this[_0x161671(0x17d)](this[_0x161671(0x2a8)][_0x161671(0x214)][_0x161671(0x24b)](_0x215574=>{const _0x5a268b=_0x161671;if(_0x215574==null||_0x215574[_0x5a268b(0x135)]!==this[_0x5a268b(0x17c)])return;let {commandId:_0x46d691,redoState:_0x1ced45,unitId:_0x9e2ca1}=_0x215574,_0x46a44c={'id':_0x46d691,'type':t['CommandType'][_0x5a268b(0x255)],'params':{'unitId':_0x9e2ca1,'actions':_0x1ced45['actions'],'textRanges':null}};this[_0x5a268b(0x37a)](_0x46a44c);})),this[_0x161671(0x17d)](this[_0x161671(0x10d)][_0x161671(0x2db)]((_0x1cfd6e,_0xb8869)=>{const _0x5047df=_0x161671;if(_0x1cfd6e[_0x5047df(0x234)]!==t[_0x5047df(0x2d3)]['MUTATION']||_0xb8869!=null&&_0xb8869[_0x5047df(0x247)]||_0xb8869!=null&&_0xb8869['onlyLocal']||_0x1cfd6e['id']===n[_0x5047df(0x209)]['id'])return;let _0x556300=_0x1cfd6e[_0x5047df(0x274)];if((_0x556300==null?void 0x0:_0x556300[_0x5047df(0x135)])!==this[_0x5047df(0x17c)])return;let _0x142b6d=_0x1cfd6e,_0xb2db94=this[_0x5047df(0x195)][_0x5047df(0x210)][_0x5047df(0x366)](this['_compressMutationService'][_0x5047df(0x210)][_0x5047df(0x193)]()[_0x5047df(0x1e4)])([_0x142b6d],this[_0x5047df(0x104)])||[_0x142b6d];this[_0x5047df(0x37a)](_0xb2db94[0x0]);})),_0x5ddb54;}};I=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t['Inject'])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t[_0x5a7686(0x1c9)])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t[_0x5a7686(0xce)]),v(0xc,(0x0,t[_0x5a7686(0x1c9)])(n[_0x5a7686(0x14e)])),v(0xd,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xe,(0x0,t[_0x5a7686(0xa3)])(S))],I);let L=class extends F{constructor(_0x526cc8,_0x3cb7e5,_0x6022a5,_0x342e60,_0x235dad,_0x50be14,_0x211724,_0x21c934,_0x18af8d,_0x573979,_0xa016b1,_0x42044d,_0x4e06f9,_0x899ffc){const _0x4e43ad=_0x5a7686;super(_0x526cc8,_0x6022a5,_0x3cb7e5,_0x342e60,_0x235dad,_0x50be14,_0x211724,_0x21c934,_0x18af8d,_0x573979,_0xa016b1,_0x42044d,_0x4e06f9,_0x899ffc),this[_0x4e43ad(0x17c)]=_0x526cc8,this['type']=_0x3cb7e5;}async['_init'](){const _0x5cdf63=_0x5a7686;let _0x3bd156=await super['_init']();return this['disposeWithMe'](this[_0x5cdf63(0x10d)]['onMutationExecutedForCollab']((_0x4bde3a,_0x1456f2)=>{const _0xbb9c93=_0x5cdf63;if(_0x4bde3a[_0xbb9c93(0x234)]!==t[_0xbb9c93(0x2d3)][_0xbb9c93(0x255)]||_0x1456f2!=null&&_0x1456f2[_0xbb9c93(0x247)]||_0x1456f2!=null&&_0x1456f2['onlyLocal'])return;let _0x3c73a1=_0x4bde3a['params'];if((_0x3c73a1==null?void 0x0:_0x3c73a1[_0xbb9c93(0x135)])!==this['unitID'])return;let _0x4cfeb9=_0x4bde3a,_0x1db913=this[_0xbb9c93(0x195)][_0xbb9c93(0x210)]['fetchThroughInterceptors'](this[_0xbb9c93(0x195)][_0xbb9c93(0x210)][_0xbb9c93(0x193)]()[_0xbb9c93(0x1e4)])([_0x4cfeb9],this[_0xbb9c93(0x104)])||[_0x4cfeb9];this[_0xbb9c93(0x37a)](_0x1db913[0x0]);})),_0x3bd156;}};L=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t['Inject'])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],L);let R=class extends F{constructor(_0x1b517d,_0x3acaa1,_0x1899e4,_0xa6ac3a,_0x289e82,_0x2b9388,_0x59de08,_0x152294,_0x45dd01,_0x33e226,_0x56e419,_0x327984,_0x59762f,_0xb355ee,_0x147ac0){const _0x946674=_0x5a7686;super(_0x1b517d,_0x1899e4,_0x3acaa1,_0xa6ac3a,_0x289e82,_0x2b9388,_0x59de08,_0x45dd01,_0x33e226,_0x56e419,_0x327984,_0x59762f,_0xb355ee,_0x147ac0),this[_0x946674(0x17c)]=_0x1b517d,this[_0x946674(0x234)]=_0x3acaa1,this['_sheetTransformSelectionsService']=_0x152294;}[_0x5a7686(0x394)](){const _0x22a140=_0x5a7686;let _0x1fb2a4=super[_0x22a140(0x394)]();return _0x1fb2a4[_0x22a140(0xb8)]=_0x4955f9=>this[_0x22a140(0x1b1)][_0x22a140(0x303)](_0x4955f9),_0x1fb2a4;}async[_0x5a7686(0x194)](){const _0x4dbcb6=_0x5a7686;let _0x34588a=await super[_0x4dbcb6(0x194)]();return this[_0x4dbcb6(0x17d)](this[_0x4dbcb6(0x10d)][_0x4dbcb6(0x2db)]((_0x43450a,_0x9e1a27)=>{const _0x233ff5=_0x4dbcb6;if(_0x43450a[_0x233ff5(0x234)]!==t[_0x233ff5(0x2d3)][_0x233ff5(0x255)]||_0x9e1a27!=null&&_0x9e1a27[_0x233ff5(0x247)]||_0x9e1a27!=null&&_0x9e1a27[_0x233ff5(0x11e)])return;let _0x1cba69=_0x43450a[_0x233ff5(0x274)];if((_0x1cba69==null?void 0x0:_0x1cba69[_0x233ff5(0x135)])!==this[_0x233ff5(0x17c)])return;let _0x41d2fc=_0x43450a,_0x3be898=this['_compressMutationService'][_0x233ff5(0x210)][_0x233ff5(0x366)](this[_0x233ff5(0x195)][_0x233ff5(0x210)][_0x233ff5(0x193)]()['COMPRESS_MUTATION_SEND'])([_0x41d2fc],this[_0x233ff5(0x104)])||[_0x41d2fc];this[_0x233ff5(0x37a)](_0x3be898[0x0]);})),_0x34588a;}};R=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t['Inject'])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2d9)])),v(0x7,(0x0,t['Inject'])(C)),v(0x8,(0x0,t['Inject'])(_)),v(0x9,t[_0x5a7686(0x2d4)]),v(0xa,t[_0x5a7686(0x2c2)]),v(0xb,t[_0x5a7686(0x170)]),v(0xc,t[_0x5a7686(0xce)]),v(0xd,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xe,(0x0,t[_0x5a7686(0xa3)])(S))],R);let z=class extends F{constructor(_0x304f02,_0x28ec71,_0x1e98a4,_0x18af92,_0x55dc1d,_0x511b5f,_0x5ec6a6,_0x34a866,_0x484d09,_0x3443f7,_0x53a136,_0xad8d03,_0x1a703e,_0x4f5b39){const _0xb2af16=_0x5a7686;super(_0x304f02,_0x1e98a4,_0x28ec71,_0x18af92,_0x55dc1d,_0x511b5f,_0x5ec6a6,_0x34a866,_0x484d09,_0x3443f7,_0x53a136,_0xad8d03,_0x1a703e,_0x4f5b39),this[_0xb2af16(0x17c)]=_0x304f02,this['type']=_0x28ec71;}async[_0x5a7686(0x194)](){const _0x332de4=_0x5a7686;let _0x2b4ee7=await super[_0x332de4(0x194)]();return this[_0x332de4(0x17d)](this['_commandService']['onMutationExecutedForCollab']((_0x59cba4,_0x1b6620)=>{const _0x322417=_0x332de4;if(_0x59cba4[_0x322417(0x234)]!==t[_0x322417(0x2d3)][_0x322417(0x255)]||_0x1b6620!=null&&_0x1b6620[_0x322417(0x247)]||_0x1b6620!=null&&_0x1b6620[_0x322417(0x11e)])return;let _0x202d70=_0x59cba4[_0x322417(0x274)];if((_0x202d70==null?void 0x0:_0x202d70['unitId'])!==this[_0x322417(0x17c)])return;let _0xc4957f=_0x59cba4,_0x19e1da=this['_compressMutationService']['interceptor'][_0x322417(0x366)](this[_0x322417(0x195)]['interceptor'][_0x322417(0x193)]()[_0x322417(0x1e4)])([_0xc4957f],this['_univerInstanceService'])||[_0xc4957f];this['_onLocalMutation'](_0x19e1da[0x0]);})),_0x2b4ee7;}};z=y([v(0x3,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x337)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x5a7686(0x2d4)]),v(0x9,t['ILogService']),v(0xa,t[_0x5a7686(0x170)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t['Optional'])(S))],z);let B=class extends F{constructor(_0x155b8b,_0x54bbd0,_0x39c0ae,_0x4d1cfd,_0x52e485,_0xfb27b9,_0x59fdcc,_0x1fed3e,_0x413b26,_0x318765,_0x3749ca,_0x35d460,_0x697a8b,_0x2740fd){const _0x4c3a86=_0x5a7686;super(_0x155b8b,_0x39c0ae,_0x54bbd0,_0x4d1cfd,_0x52e485,_0xfb27b9,_0x59fdcc,_0x1fed3e,_0x413b26,_0x318765,_0x3749ca,_0x35d460,_0x697a8b,_0x2740fd),this['unitID']=_0x155b8b,this[_0x4c3a86(0x234)]=_0x54bbd0;}async[_0x5a7686(0x194)](){const _0x1f3805=_0x5a7686;let _0x17a7b6=await super[_0x1f3805(0x194)]();return this[_0x1f3805(0x17d)](this['_commandService'][_0x1f3805(0x2db)]((_0x246c43,_0x496f50)=>{const _0x1eb305=_0x1f3805;if(_0x246c43[_0x1eb305(0x234)]!==t['CommandType'][_0x1eb305(0x255)]||_0x496f50!=null&&_0x496f50['fromCollab']||_0x496f50!=null&&_0x496f50[_0x1eb305(0x11e)])return;let _0x38aae0=_0x246c43[_0x1eb305(0x274)];if((_0x38aae0==null?void 0x0:_0x38aae0[_0x1eb305(0x135)])!==this['unitID'])return;let _0x252f4b=_0x246c43,_0x59306f=this['_compressMutationService'][_0x1eb305(0x210)][_0x1eb305(0x366)](this[_0x1eb305(0x195)][_0x1eb305(0x210)][_0x1eb305(0x193)]()[_0x1eb305(0x1e4)])([_0x252f4b],this[_0x1eb305(0x104)])||[_0x252f4b];this[_0x1eb305(0x37a)](_0x59306f[0x0]);})),_0x17a7b6;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x5a7686(0x304)])),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x2ef)])),v(0x5,(0x0,t[_0x5a7686(0x1c9)])(t['LocaleService'])),v(0x6,(0x0,t[_0x5a7686(0x1c9)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x5a7686(0x2c2)]),v(0xa,t['ICommandService']),v(0xb,t[_0x5a7686(0xce)]),v(0xc,(0x0,t[_0x5a7686(0xa3)])(w)),v(0xd,(0x0,t[_0x5a7686(0xa3)])(S))],B);const We=(0x0,t[_0x5a7686(0x364)])('univer-pro.collaboration-client.network-condition.service');function Ge(_0x2e3592){const _0x4b35b3=_0x5a7686;let _0x4d96b8=_0x2e3592[_0x4b35b3(0x21f)],_0x1c104c=JSON[_0x4b35b3(0x23f)](_0x4d96b8);switch(_0x1c104c[_0x4b35b3(0x29e)]){case a['CombCmd'][_0x4b35b3(0x80)]:case a[_0x4b35b3(0x180)][_0x4b35b3(0xd4)]:{let _0x5940b9=_0x1c104c[_0x4b35b3(0x2e8)];return{..._0x1c104c,'data':_0x5940b9,'cmd':_0x1c104c[_0x4b35b3(0x29e)]};}case a[_0x4b35b3(0x180)]['JOIN']:{let _0x208dc9=_0x1c104c[_0x4b35b3(0x325)];return{..._0x1c104c,'data':_0x208dc9,'cmd':_0x1c104c[_0x4b35b3(0x29e)]};}case a[_0x4b35b3(0x180)][_0x4b35b3(0x38f)]:{let _0x136c0e=_0x1c104c[_0x4b35b3(0x21b)];switch(_0x136c0e[_0x4b35b3(0x25a)]){case e[_0x4b35b3(0xd2)][_0x4b35b3(0x249)]:var _0x1b9ada;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x1b9ada=_0x136c0e[_0x4b35b3(0x1b8)])==null?void 0x0:_0x1b9ada['cs']},'cmd':_0x1c104c['cmd']};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x220)]:var _0x5d1313;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x5d1313=_0x136c0e[_0x4b35b3(0x266)])==null?void 0x0:_0x5d1313['cs']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x368)]:var _0x33b183;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x33b183=_0x136c0e[_0x4b35b3(0x1c2)])==null?void 0x0:_0x33b183['cs']},'cmd':_0x1c104c['cmd']};case e['CollaborationEvent'][_0x4b35b3(0xb3)]:var _0x26f6ce;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x26f6ce=_0x136c0e[_0x4b35b3(0x2ac)])==null?void 0x0:_0x26f6ce['cs']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x11a)]:var _0x40d546;return{..._0x1c104c,'data':{..._0x136c0e,'data':(_0x40d546=_0x136c0e[_0x4b35b3(0x27a)])==null?void 0x0:_0x40d546['cs']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0xd0)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0xb7)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e['CollaborationEvent']['USERS_ENTER']:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x37b)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x238)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x2cd)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0xbb)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x263)]},'cmd':_0x1c104c['cmd']};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x265)]:case e[_0x4b35b3(0xd2)][_0x4b35b3(0x267)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x33c)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e['CollaborationEvent'][_0x4b35b3(0x213)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e['liveShareNewHost']},'cmd':_0x1c104c['cmd']};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x314)]:return{..._0x1c104c,'data':_0x136c0e,'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e['CollaborationEvent'][_0x4b35b3(0x120)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x88)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x305)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x2e0)]},'cmd':_0x1c104c['cmd']};case e['CollaborationEvent'][_0x4b35b3(0x141)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e[_0x4b35b3(0x1ca)]},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};case e[_0x4b35b3(0xd2)][_0x4b35b3(0x28c)]:return{..._0x1c104c,'data':{..._0x136c0e,'data':_0x136c0e['uniscriptRunEvent']},'cmd':_0x1c104c[_0x4b35b3(0x29e)]};default:return _0x1c104c;}}default:return _0x1c104c;}}function Ke(_0x5730ac){const _0x14a44b=_0x5a7686;switch(_0x5730ac['cmd']){case a[_0x14a44b(0x180)][_0x14a44b(0x80)]:case a[_0x14a44b(0x180)][_0x14a44b(0xd4)]:return JSON[_0x14a44b(0x121)]({'cmd':_0x5730ac[_0x14a44b(0x29e)],'routeKey':_0x5730ac[_0x14a44b(0x2d6)]});case a['CombCmd'][_0x14a44b(0x92)]:{let _0x3c16d1;switch(_0x5730ac[_0x14a44b(0x21f)]['eventID']){case e[_0x14a44b(0xd2)][_0x14a44b(0xd0)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0xd0)],'updateCursorEvent':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e['CollaborationEvent'][_0x14a44b(0x238)]:_0x3c16d1={'eventID':e['CollaborationEvent'][_0x14a44b(0x238)],'leaveEvent':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e[_0x14a44b(0xd2)][_0x14a44b(0x237)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0x237)],'joinEvent':_0x5730ac[_0x14a44b(0x21f)]['data']};break;case e[_0x14a44b(0xd2)][_0x14a44b(0xbb)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0xbb)],'liveShareNewHost':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e[_0x14a44b(0xd2)][_0x14a44b(0x267)]:_0x3c16d1={'eventID':e['CollaborationEvent']['LIVESHARE_OPERATION'],'liveShareOperation':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e['CollaborationEvent']['LIVESHARE_TERMINATE']:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x21f)]};break;case e['CollaborationEvent'][_0x14a44b(0x10f)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0x10f)],'liveShareRequestHost':_0x5730ac[_0x14a44b(0x21f)]['data']};break;case e[_0x14a44b(0xd2)][_0x14a44b(0x265)]:_0x3c16d1={'eventID':e[_0x14a44b(0xd2)][_0x14a44b(0x265)]};break;default:_0x3c16d1={'eventID':_0x5730ac[_0x14a44b(0x21f)][_0x14a44b(0x25a)]};}return JSON[_0x14a44b(0x121)]({'cmd':_0x5730ac['cmd'],'routeKey':_0x5730ac[_0x14a44b(0x2d6)],'collaMsg':_0x3c16d1});}case a[_0x14a44b(0x180)][_0x14a44b(0x1ea)]:return JSON[_0x14a44b(0x121)]({'cmd':_0x5730ac[_0x14a44b(0x29e)],'routeKey':_0x5730ac['routeKey'],'joinReq':_0x5730ac[_0x14a44b(0x21f)]});case a[_0x14a44b(0x180)][_0x14a44b(0xe6)]:return JSON['stringify']({'cmd':_0x5730ac[_0x14a44b(0x29e)],'routeKey':_0x5730ac['routeKey'],'leaveReq':_0x5730ac[_0x14a44b(0x21f)]});default:throw Error(_0x14a44b(0x16e));}}const qe=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x36b));function Je(_0xaa2cc,_0x189e94,_0x4cea2c){const _0x471c5a=_0x5a7686;return _0xaa2cc+'/'+_0x189e94+_0x471c5a(0x9c)+_0x4cea2c+_0x471c5a(0x2b9);}let Ye=class extends t[_0x5a7686(0x117)]{constructor(_0x2f875d,_0x2f7157,_0x179096,_0x4b09e3,_0x313e54){const _0x544e74=_0x5a7686;super(),this[_0x544e74(0x271)]=_0x2f875d,this[_0x544e74(0x8c)]=_0x2f7157,this[_0x544e74(0x16d)]=_0x179096,this[_0x544e74(0x8f)]=_0x4b09e3,this[_0x544e74(0xb5)]=_0x313e54;}[_0x5a7686(0x2c0)](_0x4f3235){const _0x1bbad2=_0x5a7686;let _0x5de049=this[_0x1bbad2(0x271)][_0x1bbad2(0x1b7)](l[_0x1bbad2(0x197)]);if(!_0x5de049)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x164810=_0x5de049[_0x1bbad2(0x251)](_0x4f3235);if(!_0x164810)throw Error(_0x1bbad2(0x2a6));let _0x2ed2a2=new t['DisposableCollection'](),_0x327c18=new i[(_0x1bbad2(0x340))]();_0x2ed2a2[_0x1bbad2(0x1f2)](_0x164810[_0x1bbad2(0x367)][_0x1bbad2(0x24b)](_0x5a3277=>_0x327c18['next'](_0x5a3277))),_0x2ed2a2[_0x1bbad2(0x1f2)]((0x0,t[_0x1bbad2(0x166)])(()=>_0x327c18[_0x1bbad2(0x1fa)]()));let _0x541d7d=new i[(_0x1bbad2(0x340))]();_0x2ed2a2[_0x1bbad2(0x1f2)](_0x164810['error$'][_0x1bbad2(0x24b)](_0x43f9ca=>_0x541d7d['next'](_0x43f9ca))),_0x2ed2a2[_0x1bbad2(0x1f2)]((0x0,t[_0x1bbad2(0x166)])(()=>_0x541d7d[_0x1bbad2(0x1fa)]()));let _0x31ed64=new i[(_0x1bbad2(0x340))]();_0x2ed2a2[_0x1bbad2(0x1f2)](_0x164810[_0x1bbad2(0x16c)][_0x1bbad2(0x24b)](_0x3e49a8=>{const _0x363d8e=_0x1bbad2;let _0x319c70=Ge(_0x3e49a8);_0x31ed64[_0x363d8e(0x1eb)](_0x319c70);})),_0x2ed2a2[_0x1bbad2(0x1f2)]((0x0,t['toDisposable'])(()=>_0x31ed64[_0x1bbad2(0x1fa)]()));let _0x5e4449,_0x91eff6=()=>{const _0x528b40=_0x1bbad2;_0x541d7d[_0x528b40(0x1eb)](new Event(_0x528b40(0x99))),_0x327c18[_0x528b40(0x1eb)](new Event(_0x528b40(0x99))),_0x5e4449['close']();};return _0x5e4449={'memberID':'','close$':_0x327c18[_0x1bbad2(0xea)](),'error$':_0x541d7d[_0x1bbad2(0xea)](),'open$':_0x164810['open$'],'message$':_0x31ed64[_0x1bbad2(0xea)](),'send':_0x31f789=>{const _0x1089c6=_0x1bbad2;if(_0x31f789[_0x1089c6(0x29e)]===a[_0x1089c6(0x180)][_0x1089c6(0x92)]){if(_0x31f789[_0x1089c6(0x21f)][_0x1089c6(0x25a)]===e[_0x1089c6(0xd2)][_0x1089c6(0x186)]){this['_submitChangeset'](_0x5e4449,_0x31f789[_0x1089c6(0x21f)])[_0x1089c6(0x198)](_0x3c6cd6=>{const _0xe0fe84=_0x1089c6;this['_logService'][_0xe0fe84(0x36a)](_0x3c6cd6),_0x91eff6();});return;}if(_0x31f789['data'][_0x1089c6(0x25a)]===e[_0x1089c6(0xd2)][_0x1089c6(0x224)]){let _0x436f16=_0x31f789['data'];this[_0x1089c6(0x114)](_0x436f16)['then'](_0x401c1b=>{const _0x524362=_0x1089c6;_0x31ed64[_0x524362(0x1eb)]({'cmd':a[_0x524362(0x180)][_0x524362(0x38f)],'code':a[_0x524362(0x1ae)]['OK'],'routeKey':_0x436f16[_0x524362(0x21f)][_0x524362(0x17c)],'routeType':'','data':{'eventID':e[_0x524362(0xd2)]['PSEUDO_FETCH_MISSING_RESULT'],'data':{'changesets':_0x401c1b}}});})['catch'](_0x1a251c=>{const _0x42d45f=_0x1089c6;this['_logService'][_0x42d45f(0x36a)](_0x1a251c),_0x91eff6();});return;}}_0x164810[_0x1089c6(0x29f)](Ke(_0x31f789));},'close':()=>{const _0x28a07e=_0x1bbad2;_0x164810[_0x28a07e(0x240)](),_0x2ed2a2[_0x28a07e(0x177)]();}},_0x5e4449;}async[_0x5a7686(0x110)](_0x4eb18d,_0x43b568){const _0x4fc138=_0x5a7686;var _0x5776ee;let {unitType:_0x22cecf,unitID:_0x5f2613,changeset:_0x501cfd}=_0x43b568[_0x4fc138(0x21f)],_0x5cadbf={'unitID':_0x5f2613,'memberID':_0x4eb18d[_0x4fc138(0x30d)],'type':_0x22cecf,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x501cfd)},_0x57489a=this[_0x4fc138(0x16d)]['getConfig'](m),_0x576556=Je((_0x5776ee=_0x57489a==null?void 0x0:_0x57489a[_0x4fc138(0x321)])==null?_0x4fc138(0x25b):_0x5776ee,_0x22cecf,_0x5f2613);try{await this['_httpService'][_0x4fc138(0x9f)](_0x576556,{'body':_0x5cadbf});}catch(_0x5817a0){throw this[_0x4fc138(0x8f)]['error'](_0x4fc138(0x187),_0x4fc138(0x1c0)),_0x5817a0;}}async[_0x5a7686(0x114)](_0x4f3b17){const _0x1c85d6=_0x5a7686;let {unitID:_0x580db4,from:_0x30e9ce,to:_0x1354dc,unitType:_0x3d977f}=_0x4f3b17['data'];return(await this['_snapshotServerService'][_0x1c85d6(0x1c8)]({'metadata':void 0x0},{'unitID':_0x580db4,'type':_0x3d977f,'from':_0x30e9ce,'to':_0x1354dc}))[_0x1c85d6(0x2f8)]['map'](_0x307400=>((_0x307400[_0x1c85d6(0x1c7)]===null||_0x307400[_0x1c85d6(0x1c7)]===void 0x0)&&(_0x307400[_0x1c85d6(0x1c7)]=[]),_0x307400));}};Ye=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x2,t['IConfigService']),v(0x3,t[_0x5a7686(0x2c2)]),v(0x4,e[_0x5a7686(0x387)])],Ye);const Xe=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x2c8));function Ze(_0x57dbe6={}){const _0x36c809=_0x5a7686;return _0x57dbe6[_0x36c809(0x280)]?{'resolveUnit':_0x57dbe6['resolveUnit']}:{'resolveUnit':_0x1f097e=>({'target':{'unitId':_0x1f097e[_0x36c809(0x135)],'unitType':_0x1f097e[_0x36c809(0x29c)]}})};}function Qe(_0x48cf37,_0x2967cb,_0x219301){const _0xce6850=_0x5a7686;var _0x4eb876;let _0x34255a=_0x219301[_0xce6850(0xbd)][_0xce6850(0x1cb)];if(_0x34255a!=null&&_0x34255a[_0xce6850(0x89)]()==='')throw Error(_0xce6850(0x2a9));if(!_0x219301[_0xce6850(0xbd)][_0xce6850(0x135)])throw Error(_0xce6850(0x215));return{'localUnitId':_0x48cf37,'unitType':_0x2967cb,'target':{'endpoint':_0x34255a,'unitId':_0x219301[_0xce6850(0xbd)][_0xce6850(0x135)],'unitType':(_0x4eb876=_0x219301['target']['unitType'])==null?_0x2967cb:_0x4eb876},'changeset':_0x219301['changeset']};}let V=class extends t[_0x5a7686(0x117)]{constructor(_0x3784da,_0x42d536,_0x24a6e2,_0x3aa7ef,_0x3e2b61,_0x3360ae,_0x8b57e2){const _0x15d9fa=_0x5a7686;super(),this['_injector']=_0x3784da,this[_0x15d9fa(0x8f)]=_0x42d536,this[_0x15d9fa(0x16d)]=_0x24a6e2,this[_0x15d9fa(0x20d)]=_0x3aa7ef,this[_0x15d9fa(0x12c)]=_0x3e2b61,this[_0x15d9fa(0x2aa)]=_0x3360ae,this[_0x15d9fa(0x343)]=_0x8b57e2,g(this,'_sessions',new Map()),g(this,_0x15d9fa(0x18e),new Map()),g(this,'_sessionChannels',new Map()),g(this,_0x15d9fa(0x256),new Map()),g(this,'socket$',this['_getSocketChannel'](void 0x0)['socket$'][_0x15d9fa(0xea)]()),g(this,_0x15d9fa(0x2e3),new i[(_0x15d9fa(0x334))](0x0)),g(this,_0x15d9fa(0x2e2),this['_status$']['asObservable']()),this[_0x15d9fa(0xbe)]();}[_0x5a7686(0xbe)](){const _0x551eec=_0x5a7686;this['_networkConditionService']&&this[_0x551eec(0x17d)](this['_networkConditionService'][_0x551eec(0x217)]['subscribe'](_0x120d09=>{const _0x5074c0=_0x551eec;_0x120d09&&this['reconnect'](),_0x120d09||this[_0x5074c0(0x256)]['forEach'](_0x1bf7f0=>this[_0x5074c0(0x389)](_0x1bf7f0));}));}[_0x5a7686(0x177)](){const _0x133e55=_0x5a7686;super[_0x133e55(0x177)](),this[_0x133e55(0x256)][_0x133e55(0x1de)](_0x4688d3=>{const _0x205686=_0x133e55;var _0x447ee5,_0x22e85a;(_0x447ee5=_0x4688d3[_0x205686(0xf9)])==null||_0x447ee5[_0x205686(0x393)](),_0x4688d3['socketMessageSubscription']=null,this[_0x205686(0x2d8)](_0x4688d3),this[_0x205686(0x253)](_0x4688d3),this[_0x205686(0x1bb)](_0x4688d3),(_0x22e85a=_0x4688d3['socket$'][_0x205686(0x1d1)]())==null||_0x22e85a[_0x205686(0x240)](),_0x4688d3[_0x205686(0x330)][_0x205686(0x1fa)]();}),this[_0x133e55(0x256)][_0x133e55(0x384)](),this[_0x133e55(0x2f1)][_0x133e55(0x1de)](_0x581ef6=>_0x581ef6[_0x133e55(0x177)]()),this[_0x133e55(0x2f1)]['clear'](),this[_0x133e55(0x382)][_0x133e55(0x384)](),this[_0x133e55(0x2e3)][_0x133e55(0x1fa)]();}async[_0x5a7686(0x295)](_0x263382,_0x879c87){const _0x40e611=_0x5a7686;if(this[_0x40e611(0x2f1)][_0x40e611(0xbf)](_0x263382))return this['_sessions'][_0x40e611(0x1b7)](_0x263382);let _0x535b78=this[_0x40e611(0x18e)][_0x40e611(0x1b7)](_0x263382);if(_0x535b78)return _0x535b78;let _0x49f367=this[_0x40e611(0x112)](_0x263382,_0x879c87);this[_0x40e611(0x18e)][_0x40e611(0x22c)](_0x263382,_0x49f367);try{return await _0x49f367;}finally{this[_0x40e611(0x18e)]['delete'](_0x263382);}}async['_createSession'](_0x409946,_0x56a252){const _0x24bf5e=_0x5a7686;let _0xfb500d=await this[_0x24bf5e(0x148)](_0x409946,_0x56a252),_0x4f67d2=this[_0x24bf5e(0x23b)](_0xfb500d['target'][_0x24bf5e(0x1cb)]);this[_0x24bf5e(0x37e)](_0x4f67d2);let _0x426892=this[_0x24bf5e(0x271)][_0x24bf5e(0x313)](x,_0xfb500d,_0x4f67d2['socket$'][_0x24bf5e(0xea)]());return this[_0x24bf5e(0x2f1)][_0x24bf5e(0x22c)](_0x409946,_0x426892),this[_0x24bf5e(0x382)][_0x24bf5e(0x22c)](_0x409946,_0x4f67d2[_0x24bf5e(0x22b)]),_0x426892;}['closeSession'](_0x139310){const _0x27cc45=_0x5a7686;let _0x360ddc=this[_0x27cc45(0x2f1)][_0x27cc45(0x1b7)](_0x139310),_0x54b042=this[_0x27cc45(0x382)]['get'](_0x139310);if(_0x360ddc&&(this[_0x27cc45(0x2f1)][_0x27cc45(0x36f)](_0x139310),this[_0x27cc45(0x382)][_0x27cc45(0x36f)](_0x139310),_0x360ddc[_0x27cc45(0x240)]()),_0x54b042&&!this[_0x27cc45(0x1fb)](_0x54b042)){var _0xd81916;let _0x36e4de=this[_0x27cc45(0x256)][_0x27cc45(0x1b7)](_0x54b042);_0x36e4de==null||(_0xd81916=_0x36e4de['socket$']['getValue']())==null||_0xd81916[_0x27cc45(0x240)]();}}['reconnect'](){const _0x26d4d8=_0x5a7686;(this[_0x26d4d8(0x256)][_0x26d4d8(0x257)]?[...this[_0x26d4d8(0x256)]['values']()]:[this[_0x26d4d8(0x23b)](void 0x0)])[_0x26d4d8(0x1de)](_0x188b53=>{const _0x408af4=_0x26d4d8;_0x188b53[_0x408af4(0xdb)]=0x0,this[_0x408af4(0x2d8)](_0x188b53),this['_tryReconnect'](_0x188b53);});}[_0x5a7686(0x2d8)](_0x185d9c){const _0x2e7776=_0x5a7686;_0x185d9c[_0x2e7776(0x38d)]!=null&&(clearTimeout(_0x185d9c[_0x2e7776(0x38d)]),_0x185d9c['retryConnectingTimer']=null);}async[_0x5a7686(0x10c)](_0x49710f){const _0x49162d=_0x5a7686;var _0x44dff1,_0x1979cd;let _0x32c0b2=this['_configService'][_0x49162d(0x34b)](m),_0x57be82=(_0x44dff1=(_0x1979cd=_0x49710f[_0x49162d(0x1cb)])==null?_0x32c0b2==null?void 0x0:_0x32c0b2[_0x49162d(0xff)]:_0x1979cd)==null?te:_0x44dff1,_0x2e07d3=await this[_0x49162d(0x20d)]['createSocket'](_0x57be82);return _0x49710f['candidateSocket']=_0x2e07d3,_0x2e07d3;}async[_0x5a7686(0x37e)](_0x410a7d){const _0x102939=_0x5a7686;try{var _0x2c7e9b,_0x5a7f87;let _0x33f8ab=(_0x2c7e9b=(_0x5a7f87=_0x410a7d[_0x102939(0x330)][_0x102939(0x1d1)]())==null?_0x410a7d[_0x102939(0xe1)]:_0x5a7f87)==null?await this[_0x102939(0x10c)](_0x410a7d):_0x2c7e9b;if(_0x33f8ab){var _0x470e75;let _0x3e9b92=_0x33f8ab['send'];_0x33f8ab[_0x102939(0x29f)]=_0x14d1b9=>(_0x14d1b9[_0x102939(0x29e)]!==a['CombCmd'][_0x102939(0xe6)]&&this[_0x102939(0x163)](_0x410a7d),_0x3e9b92['apply'](_0x33f8ab,[_0x14d1b9])),(_0x470e75=_0x410a7d[_0x102939(0xf9)])==null||_0x470e75[_0x102939(0x393)](),_0x410a7d[_0x102939(0xf9)]=null,_0x410a7d[_0x102939(0xf9)]=_0x33f8ab[_0x102939(0x16c)][_0x102939(0x24b)](_0xa424d1=>this['_onMessage'](_0x410a7d,_0x33f8ab,_0xa424d1)),_0x33f8ab[_0x102939(0x285)][_0x102939(0xf8)]((0x0,s['take'])(0x1))[_0x102939(0x24b)](_0x446408=>this[_0x102939(0x8f)][_0x102939(0x36a)](_0x102939(0x21a),_0x446408)),_0x33f8ab[_0x102939(0x200)]['pipe']((0x0,s[_0x102939(0x1a5)])(0x1))[_0x102939(0x24b)](()=>{this['_onConnectionOpen'](_0x410a7d,_0x33f8ab);}),_0x33f8ab['close$'][_0x102939(0xf8)]((0x0,s[_0x102939(0x1a5)])(0x1))[_0x102939(0x24b)](_0x198616=>{const _0x13a79d=_0x102939;this['_logService'][_0x13a79d(0x1b0)](_0x13a79d(0x122),_0x13a79d(0x28e),_0x198616),this[_0x13a79d(0x20f)](_0x410a7d);});}}catch(_0x36f211){this[_0x102939(0x8f)][_0x102939(0x36a)](_0x36f211),this[_0x102939(0x20f)](_0x410a7d);}}[_0x5a7686(0x2fd)](_0x37e378,_0x46fb12){const _0x2289cb=_0x5a7686;this[_0x2289cb(0x8f)]['debug'](_0x2289cb(0x122),_0x2289cb(0x2e7)),_0x46fb12[_0x2289cb(0x29f)]({'cmd':a[_0x2289cb(0x180)][_0x2289cb(0xd4)]}),this[_0x2289cb(0x163)](_0x37e378);}[_0x5a7686(0x389)](_0x3a818a){const _0x49c44a=_0x5a7686;_0x3a818a[_0x49c44a(0x2ea)]=!0x1,_0x3a818a[_0x49c44a(0xe1)]=null,this[_0x49c44a(0x2e3)][_0x49c44a(0x1eb)](0x2),_0x3a818a[_0x49c44a(0x330)]['next'](null),this[_0x49c44a(0x253)](_0x3a818a),this[_0x49c44a(0x1bb)](_0x3a818a);}[_0x5a7686(0x20f)](_0x4353aa){const _0x203544=_0x5a7686;var _0x424d0d;this[_0x203544(0x389)](_0x4353aa),this[_0x203544(0x1fb)](_0x4353aa['endpointKey'])&&(_0x4353aa[_0x203544(0xdb)]<((_0x424d0d=this[_0x203544(0x16d)][_0x203544(0x34b)](_0x203544(0x31e)))==null?0x3:_0x424d0d)?(this[_0x203544(0x12c)][_0x203544(0x388)]({'id':_0x203544(0x181)}),this[_0x203544(0x35a)](_0x4353aa)):this[_0x203544(0x12c)][_0x203544(0x388)]({'id':_0x203544(0x199)}));}[_0x5a7686(0x35a)](_0xa3a944){const _0x40f632=_0x5a7686;var _0x4c591f;let _0x3b9a4f=_0xa3a944[_0x40f632(0xdb)],_0x525848=this[_0x40f632(0x16d)]['getConfig'](m),_0x3021c9=_0x3b9a4f===0x0?0x0:((_0x4c591f=_0x525848==null?void 0x0:_0x525848[_0x40f632(0x1a7)])==null?0x4e20:_0x4c591f)*0x2**_0x3b9a4f;_0xa3a944[_0x40f632(0x38d)]=setTimeout(()=>{const _0xea96c9=_0x40f632;clearTimeout(_0xa3a944[_0xea96c9(0x38d)]),_0xa3a944['retryConnectingTimer']=null,this['_tryEnsureSocket'](_0xa3a944);},_0x3021c9),_0xa3a944['retryCount']+=0x1;}async[_0x5a7686(0x148)](_0x396b5a,_0x322715){const _0x2d1b0b=_0x5a7686;return Qe(_0x396b5a,_0x322715,await this[_0x2d1b0b(0x2aa)][_0x2d1b0b(0x280)]({'unitId':_0x396b5a,'unitType':_0x322715}));}[_0x5a7686(0x344)](_0x575a55,_0x36d763,_0x522f8e){const _0x56913c=_0x5a7686;let {cmd:_0x44228b}=_0x522f8e;_0x44228b===a[_0x56913c(0x180)][_0x56913c(0xd4)]&&!_0x575a55['socketReady']&&(_0x36d763[_0x56913c(0x30d)]=_0x522f8e['data'][_0x56913c(0x30d)],_0x575a55[_0x56913c(0x330)][_0x56913c(0x1eb)](_0x36d763),this['_status$'][_0x56913c(0x1eb)](0x3),_0x575a55[_0x56913c(0x2ea)]=!0x0,_0x575a55['candidateSocket']=null),_0x44228b===a['CombCmd'][_0x56913c(0x80)]&&this['_clearTimeoutTimer'](_0x575a55),this['_rescheduleHeartbeat'](_0x575a55);}[_0x5a7686(0x1fb)](_0x4c1267){const _0x3172fe=_0x5a7686;return[...this[_0x3172fe(0x382)]['values']()][_0x3172fe(0x165)](_0x416702=>_0x416702===_0x4c1267);}[_0x5a7686(0x23b)](_0x3ecd18){const _0x2684c1=_0x5a7686;let _0x110444=_0x3ecd18==null?'':_0x3ecd18,_0x4acef6=this['_socketChannels'][_0x2684c1(0x1b7)](_0x110444);if(_0x4acef6)return _0x4acef6;let _0x36814d={'endpointKey':_0x110444,'endpoint':_0x3ecd18,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x2684c1(0x22c)](_0x110444,_0x36814d),_0x36814d;}[_0x5a7686(0x163)](_0x2bc293){const _0x343da1=_0x5a7686;var _0x5e1152;this[_0x343da1(0x1bb)](_0x2bc293),_0x2bc293['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2bc293),(_0x5e1152=this['_configService'][_0x343da1(0x34b)](_0x343da1(0xc9)))==null?0x7530:_0x5e1152);}['_sendHeartbeat'](_0x3ba396){const _0x335e0e=_0x5a7686;_0x3ba396[_0x335e0e(0x330)][_0x335e0e(0x1d1)]()['send']({'cmd':a[_0x335e0e(0x180)][_0x335e0e(0x80)]}),this['_waitForHeartbeatResponse'](_0x3ba396);}[_0x5a7686(0x312)](_0x393746){const _0x100243=_0x5a7686;var _0x3d1d22;_0x393746[_0x100243(0x7d)]=setTimeout(()=>this[_0x100243(0x20f)](_0x393746),(_0x3d1d22=this[_0x100243(0x16d)]['getConfig'](_0x100243(0xe4)))==null?ne:_0x3d1d22);}['_clearHeartbeatTimer'](_0x4faa06){const _0x4f48a5=_0x5a7686;_0x4faa06[_0x4f48a5(0x27b)]!=null&&(clearTimeout(_0x4faa06[_0x4f48a5(0x27b)]),_0x4faa06[_0x4f48a5(0x27b)]=null);}[_0x5a7686(0x253)](_0x18e742){const _0x341580=_0x5a7686;_0x18e742[_0x341580(0x7d)]!=null&&(clearTimeout(_0x18e742[_0x341580(0x7d)]),_0x18e742[_0x341580(0x7d)]=null);}};V=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,t[_0x5a7686(0x2c2)]),v(0x2,t[_0x5a7686(0x298)]),v(0x3,qe),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x5a7686(0xa3)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x3ed476,_0x37c38b,_0x25222f,_0x851906){const _0x214d5f=_0x5a7686;var _0x1c5067;super(),this[_0x214d5f(0x271)]=_0x3ed476,this[_0x214d5f(0x35b)]=_0x37c38b,this[_0x214d5f(0x16d)]=_0x25222f,this[_0x214d5f(0x104)]=_0x851906,g(this,'_entities',new Map()),g(this,'_entityInit$',new i[(_0x214d5f(0x340))]()),g(this,_0x214d5f(0x2bd),this[_0x214d5f(0x381)][_0x214d5f(0xea)]()),((_0x1c5067=this[_0x214d5f(0x16d)]['getConfig'](_0x214d5f(0x159)))==null?void 0x0:_0x1c5067[_0x214d5f(0x2da)])!==!0x1&&this['_init']();}[_0x5a7686(0x177)](){const _0x58e4f1=_0x5a7686;super[_0x58e4f1(0x177)](),this['_entities'][_0x58e4f1(0x1de)](_0x594d54=>_0x594d54['dispose']()),this[_0x58e4f1(0x1c5)][_0x58e4f1(0x384)]();}['getCollabEntity'](_0xfd7be1){const _0x13ffa8=_0x5a7686;var _0xea993c;return(_0xea993c=this[_0x13ffa8(0x1c5)][_0x13ffa8(0x1b7)](_0xfd7be1))==null?null:_0xea993c;}[_0x5a7686(0x294)](_0x238239){const _0x34fd7b=_0x5a7686;let _0xcbb7b0=this[_0x34fd7b(0x37d)](_0x238239);return _0xcbb7b0?(0x0,i['of'])(_0xcbb7b0):this['_entityInit$'][_0x34fd7b(0xf8)]((0x0,s[_0x34fd7b(0x18a)])(_0x2e63e5=>_0x2e63e5[_0x34fd7b(0x17c)]===_0x238239));}[_0x5a7686(0x359)](_0x5e85ad){const _0x2022a6=_0x5a7686;return(0x0,i[_0x2022a6(0x1d6)])(this[_0x2022a6(0x294)](_0x5e85ad)['pipe']((0x0,s['map'])(()=>void 0x0)));}['_init'](){const _0x2336ee=_0x5a7686;this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)]['UNIVER_SHEET'])[_0x2336ee(0xf8)]((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0x24b)](async _0x5f313c=>{const _0x3bdd29=_0x2336ee;let _0x4cee59=_0x5f313c[_0x3bdd29(0x1c3)][_0x3bdd29(0x250)](),_0x51c0f3=await this[_0x3bdd29(0x29a)](_0x4cee59,t['UniverInstanceType']['UNIVER_SHEET']);this[_0x3bdd29(0x1c5)]['set'](_0x4cee59,_0x51c0f3);}),this[_0x2336ee(0x104)]['getTypeOfUnitAdded$'](t[_0x2336ee(0x2e9)][_0x2336ee(0x301)])[_0x2336ee(0xf8)]((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0xf8)]((0x0,s['filter'])(_0x1d2340=>!_0x1d2340[_0x2336ee(0x1c3)][_0x2336ee(0x250)]()[_0x2336ee(0x191)]('__')))[_0x2336ee(0x24b)](async _0x59b740=>{const _0x55517a=_0x2336ee;let _0xe172b2=_0x59b740[_0x55517a(0x1c3)]['getUnitId'](),_0x1041a1=await this[_0x55517a(0x29a)](_0xe172b2,t[_0x55517a(0x2e9)]['UNIVER_DOC']);this[_0x55517a(0x1c5)][_0x55517a(0x22c)](_0xe172b2,_0x1041a1);}),this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)][_0x2336ee(0x319)])['pipe']((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s['delay'])(0x10))[_0x2336ee(0x24b)](async _0x148b4b=>{const _0x90c8dd=_0x2336ee;let _0x183b7f=_0x148b4b[_0x90c8dd(0x1c3)][_0x90c8dd(0x250)](),_0x12c4a7=await this['_startCollaboration'](_0x183b7f,t['UniverInstanceType'][_0x90c8dd(0x319)]);this[_0x90c8dd(0x1c5)]['set'](_0x183b7f,_0x12c4a7);}),this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)][_0x2336ee(0x320)])['pipe']((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0x24b)](async _0x189457=>{const _0x931ae9=_0x2336ee;let _0x2e0dd4=_0x189457[_0x931ae9(0x1c3)]['getUnitId'](),_0x259212=await this[_0x931ae9(0x29a)](_0x2e0dd4,t[_0x931ae9(0x2e9)]['UNIVER_BOARD']);this[_0x931ae9(0x1c5)][_0x931ae9(0x22c)](_0x2e0dd4,_0x259212);}),this[_0x2336ee(0x104)][_0x2336ee(0x1d0)](t[_0x2336ee(0x2e9)]['UNIVER_BASE'])['pipe']((0x0,i['takeUntil'])(this[_0x2336ee(0x211)]),(0x0,s[_0x2336ee(0xcd)])(0x10))[_0x2336ee(0x24b)](async _0x2d580b=>{const _0x102f13=_0x2336ee;let _0x10260c=_0x2d580b[_0x102f13(0x1c3)][_0x102f13(0x250)](),_0x576434=await this['_startCollaboration'](_0x10260c,t[_0x102f13(0x2e9)][_0x102f13(0x27f)]);this[_0x102f13(0x1c5)][_0x102f13(0x22c)](_0x10260c,_0x576434);}),(0x0,i['merge'])(this[_0x2336ee(0x104)]['getTypeOfUnitDisposed$'](t[_0x2336ee(0x2e9)][_0x2336ee(0xa2)]),this[_0x2336ee(0x104)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x2336ee(0x301)]),this[_0x2336ee(0x104)]['getTypeOfUnitDisposed$'](t[_0x2336ee(0x2e9)][_0x2336ee(0x319)]),this['_univerInstanceService']['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x2336ee(0x320)]),this[_0x2336ee(0x104)][_0x2336ee(0x16b)](t[_0x2336ee(0x2e9)][_0x2336ee(0x27f)]))[_0x2336ee(0xf8)]((0x0,i[_0x2336ee(0x27c)])(this[_0x2336ee(0x211)]))[_0x2336ee(0x24b)](_0x545b1b=>{const _0x1777bb=_0x2336ee;let _0x3f06ce=_0x545b1b[_0x1777bb(0x250)](),_0x3cbede=this[_0x1777bb(0x1c5)][_0x1777bb(0x1b7)](_0x3f06ce);_0x3cbede&&(_0x3cbede[_0x1777bb(0x177)](),this[_0x1777bb(0x1c5)][_0x1777bb(0x36f)](_0x3f06ce));});}async[_0x5a7686(0x29a)](_0x4ec5d8,_0xafe29d){const _0x29bf56=_0x5a7686;let _0x3cf2b8=await this[_0x29bf56(0x35b)]['requireSession'](_0x4ec5d8),_0xbd095a=this[_0x29bf56(0x271)]['createInstance'](this[_0x29bf56(0x1e5)](_0xafe29d),_0x4ec5d8,_0xafe29d,_0x3cf2b8);return await _0xbd095a[_0x29bf56(0x86)](),this[_0x29bf56(0x381)][_0x29bf56(0x1eb)](_0xbd095a),_0xbd095a;}['_getCtorByUniverInstanceType'](_0x20bb95){const _0x35ca1b=_0x5a7686;switch(_0x20bb95){case t['UniverInstanceType']['UNIVER_DOC']:return I;case t[_0x35ca1b(0x2e9)][_0x35ca1b(0xa2)]:return R;case t[_0x35ca1b(0x2e9)]['UNIVER_SLIDE']:return z;case t[_0x35ca1b(0x2e9)][_0x35ca1b(0x320)]:return B;case t[_0x35ca1b(0x2e9)]['UNIVER_BASE']:return L;default:throw Error(_0x35ca1b(0x13b)+_0x20bb95);}}};H=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(V)),v(0x2,t['IConfigService']),v(0x3,t['IUniverInstanceService'])],H);var $e='@univerjs-pro/collaboration-client',et=_0x5a7686(0x10e);let tt=class extends t[_0x5a7686(0x117)]{constructor(_0x20e22a,_0x318e63){const _0x2df0c9=_0x5a7686;super(),this[_0x2df0c9(0x104)]=_0x20e22a,this[_0x2df0c9(0x16d)]=_0x318e63,this['_init']();}[_0x5a7686(0x194)](){const _0x42dc65=_0x5a7686;this[_0x42dc65(0x17d)](this[_0x42dc65(0x104)][_0x42dc65(0x284)]['subscribe'](()=>{const _0x1ab15c=_0x42dc65;var _0x70f8dd;let _0xff5b1d=this[_0x1ab15c(0x104)][_0x1ab15c(0x15b)](),_0xdd0041=(_0x70f8dd=this[_0x1ab15c(0x16d)][_0x1ab15c(0x34b)](_0x1ab15c(0xf1)))==null?_0x1ab15c(0x13d):_0x70f8dd;_0xff5b1d instanceof t[_0x1ab15c(0x351)]&&(_0xdd0041=_0xff5b1d[_0x1ab15c(0x1bd)]),document['title']=_0xdd0041;}));}};tt=y([v(0x0,t[_0x5a7686(0x2d4)]),v(0x1,t[_0x5a7686(0x298)])],tt);let nt=function(_0x31af7e){const _0x215841=_0x5a7686;return _0x31af7e[_0x215841(0x87)]=_0x215841(0x87),_0x31af7e['UUID']=_0x215841(0x346),_0x31af7e[_0x215841(0x138)]=_0x215841(0x138),_0x31af7e;}({});const rt=(0x0,t[_0x5a7686(0x364)])(_0x5a7686(0x2cf));let U=class{constructor(_0x142b17,_0x3628e7,_0x44f402){const _0x3e88ab=_0x5a7686;this['_httpService']=_0x142b17,this[_0x3e88ab(0x16d)]=_0x3628e7,this[_0x3e88ab(0x104)]=_0x44f402;}[_0x5a7686(0x1e0)](){const _0x4c73b9=_0x5a7686;var _0x462294;return(_0x462294=this[_0x4c73b9(0x2b0)]()[_0x4c73b9(0x151)])==null?{}:_0x462294;}async[_0x5a7686(0x1c1)](_0x7c5d86){const _0x28a5b9=_0x5a7686;let _0x21277a=this[_0x28a5b9(0x1e0)]();if(it(_0x7c5d86,_0x21277a),_0x21277a['upload'])return _0x21277a[_0x28a5b9(0x261)](_0x7c5d86);let _0x25505f=await this[_0x28a5b9(0x2ff)](_0x7c5d86);return{'id':_0x25505f,'name':_0x7c5d86[_0x28a5b9(0x1bd)],'mimeType':_0x7c5d86[_0x28a5b9(0x234)],'size':_0x7c5d86[_0x28a5b9(0x257)],'sourceType':_0x28a5b9(0x346),'source':_0x25505f};}async[_0x5a7686(0x2ff)](_0x576e8f){const _0x200cc2=_0x5a7686;let _0x20ec15=this[_0x200cc2(0x104)][_0x200cc2(0x15b)](),_0x326d97=_0x20ec15==null?void 0x0:_0x20ec15[_0x200cc2(0x250)]();if(!_0x326d97)throw Error(_0x200cc2(0x23a));let _0x2026b3=new FormData();_0x2026b3[_0x200cc2(0x1fc)](_0x200cc2(0x93),_0x576e8f);let _0x43b528=this[_0x200cc2(0x38e)]()+_0x200cc2(0x208)+_0x576e8f['size'][_0x200cc2(0x23d)]()+'&source='+a[_0x200cc2(0x2e6)][_0x200cc2(0x19a)]+_0x200cc2(0x26b)+encodeURIComponent(_0x326d97),_0x238a62=(await this[_0x200cc2(0x8c)]['post'](_0x43b528,{'body':_0x2026b3}))[_0x200cc2(0x30b)][_0x200cc2(0x1f6)];if(typeof _0x238a62!='string'||!_0x238a62)throw Error(_0x200cc2(0x108));return _0x238a62;}[_0x5a7686(0x38e)](){const _0x3d0782=_0x5a7686;var _0x86d4d4;return(_0x86d4d4=this[_0x3d0782(0x2b0)]()[_0x3d0782(0x10a)])==null?'/universer-api/stream/file/upload':_0x86d4d4;}[_0x5a7686(0x2b0)](){const _0x8ca138=_0x5a7686;var _0x460afd;return(_0x460afd=this[_0x8ca138(0x16d)][_0x8ca138(0x34b)]('collaboration-client.config'))==null?{}:_0x460afd;}};U=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(t['IConfigService'])),v(0x2,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x2d4)]))],U);function it(_0x24c15d,_0x50d3cd){const _0x510c5f=_0x5a7686;var _0x5a63af;if(_0x50d3cd['maxSize']!=null&&_0x24c15d[_0x510c5f(0x257)]>_0x50d3cd['maxSize'])throw Error(_0x510c5f(0x116));if((_0x5a63af=_0x50d3cd[_0x510c5f(0x1f4)])!=null&&_0x5a63af['length']&&!_0x50d3cd[_0x510c5f(0x1f4)]['some'](_0x5b0aeb=>_0x24c15d[_0x510c5f(0x234)]===_0x5b0aeb||_0x24c15d[_0x510c5f(0x1bd)][_0x510c5f(0x85)](_0x5b0aeb)||_0x5b0aeb[_0x510c5f(0x85)]('/*')&&_0x24c15d['type']['startsWith'](_0x5b0aeb[_0x510c5f(0x184)](0x0,-0x1))))throw Error('[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.');}let W=class{constructor(_0x210d4d,_0x572c60,_0x5c0769){const _0x458a6c=_0x5a7686;this[_0x458a6c(0x16d)]=_0x210d4d,this[_0x458a6c(0x8c)]=_0x572c60,this[_0x458a6c(0x1ed)]=_0x5c0769,this[_0x458a6c(0x86)]();}['init'](){const _0x26455c=_0x5a7686;this[_0x26455c(0x8c)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x153706,_0x29dc01)=>_0x29dc01(_0x153706)[_0x26455c(0xf8)]((0x0,i['concatMap'])(async _0x1cc9cf=>{const _0x2cf724=_0x26455c;let _0x8ca35a=_0x1cc9cf;if(_0x8ca35a[_0x2cf724(0x385)]===0x191){if(typeof window>'u')throw Error(_0x2cf724(0xfe));if(window[_0x2cf724(0x345)](this[_0x2cf724(0x1ed)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x201036=window['encodeURIComponent'](window[_0x2cf724(0x109)]['href']);window['location'][_0x2cf724(0x28a)]=this['_getLoginPath']()+_0x2cf724(0x326)+_0x201036;}}return _0x8ca35a;}))});}['_getLoginPath'](){const _0x23b1bb=_0x5a7686;var _0x4c2db6;let _0x36143c=this[_0x23b1bb(0x16d)]['getConfig'](m);return(_0x4c2db6=_0x36143c==null?void 0x0:_0x36143c[_0x23b1bb(0x1bc)])==null?_0x23b1bb(0xfd):_0x4c2db6;}};W=y([v(0x0,t[_0x5a7686(0x298)]),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x2,(0x0,t['Inject'])(t[_0x5a7686(0x337)]))],W);let G=class extends t['Disposable']{constructor(_0x4fd73a,_0x501f18){const _0x111675=_0x5a7686;super(),this[_0x111675(0x262)]=_0x4fd73a,this[_0x111675(0x16d)]=_0x501f18,g(this,_0x111675(0x336),!0x1),this[_0x111675(0x11d)]();}[_0x5a7686(0x11d)](){const _0x430f17=_0x5a7686;let _0x5beea8=this;this[_0x430f17(0x17d)](this[_0x430f17(0x262)][_0x430f17(0x1e3)]({'priority':0x3e7,'interceptor':(0x0,l[_0x430f17(0x189)])({'isMatch'(_0xb522f4){const _0x113de5=_0x430f17;var _0x32f339;if(_0xb522f4[_0x113de5(0x308)]==='POST'&&(_0x32f339=_0xb522f4['requestParams'])!=null&&_0x32f339[_0x113de5(0x30b)]){let {objectID:_0x34506b,objectType:_0x36f50b}=_0xb522f4[_0x113de5(0x1b4)][_0x113de5(0x30b)]||{};if(!_0x34506b||_0x36f50b===void 0x0)return!0x1;let _0x56249a=_0x5beea8[_0x113de5(0x269)]()+'/'+_0x36f50b+'/object/'+_0x34506b+'/allowed';if(_0xb522f4[_0x113de5(0x245)]===_0x56249a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x252e47){var _0x5783da;return(_0x5783da=_0x252e47['requestParams'])==null?void 0x0:_0x5783da['body'];},'mergeParamsToRequest'(_0x582491,_0x5996ae){const _0x4ad5c0=_0x430f17;let _0x35319c=_0x5beea8[_0x4ad5c0(0x269)]()+'/-/object/-/batch_allowed',_0x439313=_0x582491[_0x4ad5c0(0xec)]((_0x15d846,_0x375260)=>{const _0xe7c485=_0x4ad5c0;let {unitID:_0x2e155,objectID:_0x30eba4,objectType:_0x2c45c4,actions:_0x1ce1a5}=_0x375260;return _0x15d846[_0x2e155]||(_0x15d846[_0x2e155]={}),_0x15d846[_0x2e155][_0x30eba4]||(_0x15d846[_0x2e155][_0x30eba4]={'objectID':_0x30eba4,'objectType':_0x2c45c4,'actions':[]}),_0x15d846[_0x2e155][_0x30eba4]['actions'][_0xe7c485(0x244)](..._0x1ce1a5),_0x15d846;},{}),_0x24f678=[];for(let _0x166f98 in _0x439313)for(let _0x2e0573 in _0x439313[_0x166f98]){let {actions:_0x3af77f,objectType:_0x123e81}=_0x439313[_0x166f98][_0x2e0573],_0x2ae95a=[...new Set(_0x3af77f)];_0x24f678[_0x4ad5c0(0x244)]({'unitID':_0x166f98,'objectID':_0x2e0573,'objectType':_0x123e81,'actions':_0x2ae95a});}return new l[(_0x4ad5c0(0xf7))]('POST',_0x35319c,{'headers':_0x5996ae[_0x4ad5c0(0xf4)],'withCredentials':_0x5996ae[_0x4ad5c0(0x19f)],'responseType':_0x5996ae[_0x4ad5c0(0x1a3)],'body':{'requests':_0x24f678}});}},{'distributeResult'(_0x37690a,_0x4f222f){const _0xdf151b=_0x430f17;let {objectActions:_0x951481}=_0x37690a;return _0x4f222f[_0xdf151b(0x350)](_0x2b8343=>{const _0x70e2f7=_0xdf151b;let {unitID:_0x3a6086,objectID:_0x4268c0,actions:_0x5054dc}=_0x2b8343,_0x4e06c6=_0x951481[_0x70e2f7(0x158)](_0x298d85=>_0x298d85[_0x70e2f7(0x17c)]===_0x3a6086&&_0x298d85[_0x70e2f7(0xc4)]===_0x4268c0);return{'config':_0x2b8343,'result':{'actions':_0x5054dc[_0x70e2f7(0x350)](_0x411a5f=>_0x4e06c6==null?void 0x0:_0x4e06c6['actions']['find'](_0x39159f=>_0x39159f[_0x70e2f7(0x2f6)]===_0x411a5f))[_0x70e2f7(0x18a)](_0x249434=>!!_0x249434),'error':_0x37690a['error']}};});}})}));}[_0x5a7686(0x269)](){const _0x36dca3=_0x5a7686;var _0x2e8a82;let _0x1245f2=this[_0x36dca3(0x16d)][_0x36dca3(0x34b)](m);return(_0x2e8a82=_0x1245f2==null?void 0x0:_0x1245f2[_0x36dca3(0x96)])==null?_0x36dca3(0x1af):_0x2e8a82;}async[_0x5a7686(0xde)](_0x2ea26b){const _0xadda45=_0x5a7686;let _0x5afdd4=this[_0xadda45(0x269)]()+'/'+_0x2ea26b[_0xadda45(0x113)]+_0xadda45(0xfa);return(await this['_HTTPService'][_0xadda45(0x9f)](_0x5afdd4,{'body':_0x2ea26b}))[_0xadda45(0x30b)][_0xadda45(0xc4)]||'';}async['list'](_0x4e5742){const _0x4c8087=_0x5a7686;let _0x223451=this[_0x4c8087(0x269)]()+_0x4c8087(0xd7);return(await this['_HTTPService'][_0x4c8087(0x9f)](_0x223451,{'body':_0x4e5742}))[_0x4c8087(0x30b)][_0x4c8087(0x260)];}async[_0x5a7686(0x357)](_0x3a9e12){const _0x3dd3dd=_0x5a7686;var _0x5cf206;let _0x55b431=this['_getAPIPrefixPath']()+'/'+_0x3a9e12[_0x3dd3dd(0x113)]+_0x3dd3dd(0xaf)+_0x3a9e12[_0x3dd3dd(0xc4)],_0x2125d3=await this['_HTTPService'][_0x3dd3dd(0x18f)](_0x55b431,{'body':_0x3a9e12});if((_0x2125d3==null||(_0x5cf206=_0x2125d3[_0x3dd3dd(0x30b)])==null||(_0x5cf206=_0x5cf206[_0x3dd3dd(0x36a)])==null?void 0x0:_0x5cf206[_0x3dd3dd(0x2b5)])!==0x1)throw Error('Failed\x20to\x20update\x20permission\x20point');}async['allowed'](_0x5c4374){const _0x1f113d=_0x5a7686;let _0x261fc9=this[_0x1f113d(0x269)]()+'/'+_0x5c4374['objectType']+_0x1f113d(0xaf)+_0x5c4374['objectID']+_0x1f113d(0x18c);return(await this[_0x1f113d(0x262)][_0x1f113d(0x9f)](_0x261fc9,{'body':_0x5c4374}))[_0x1f113d(0x30b)][_0x1f113d(0xa0)];}async[_0x5a7686(0xe0)](_0x236523){const _0x2c53d0=_0x5a7686;let _0xaf9f1b=this[_0x2c53d0(0x269)]()+_0x2c53d0(0x26d);return(await this[_0x2c53d0(0x262)]['post'](_0xaf9f1b,{'body':{'requests':_0x236523}}))[_0x2c53d0(0x30b)][_0x2c53d0(0x20b)];}async['listRoles'](_0x220028){const _0x3bb995=_0x5a7686;let _0x3fe658=this['_getAPIPrefixPath']()+'/'+_0x220028['objectType']+_0x3bb995(0x17a),_0x462c8a=await this[_0x3bb995(0x262)][_0x3bb995(0x9f)](_0x3fe658,{'body':_0x220028});return{'roles':_0x462c8a[_0x3bb995(0x30b)][_0x3bb995(0x1f8)],'actions':_0x462c8a['body'][_0x3bb995(0xa0)]};}async[_0x5a7686(0x292)](_0x345cf4){const _0x3a90fe=_0x5a7686;let _0x164961=this[_0x3a90fe(0x269)]()+_0x3a90fe(0x160);await this[_0x3a90fe(0x262)]['delete'](_0x164961,{'params':{'collaboratorID':_0x345cf4[_0x3a90fe(0x132)],'objectID':_0x345cf4[_0x3a90fe(0xc4)],'unitID':_0x345cf4[_0x3a90fe(0x17c)]}});}async['updateCollaborator'](_0x6ae06f){const _0x21a628=_0x5a7686;let _0x39fd2d=this[_0x21a628(0x269)]()+_0x21a628(0x160);await this[_0x21a628(0x262)][_0x21a628(0x1fd)](_0x39fd2d,{'body':_0x6ae06f});}async[_0x5a7686(0x31a)](_0x231216){const _0x1f2558=_0x5a7686;let _0x29b1a5=this[_0x1f2558(0x269)]()+_0x1f2558(0x160);await this[_0x1f2558(0x262)][_0x1f2558(0x9f)](_0x29b1a5,{'body':_0x231216});}async['listCollaborators'](_0x15b1d3){const _0x510895=_0x5a7686;var _0x43405e;let _0x29ba8e=this['_getAPIPrefixPath']()+_0x510895(0x160),_0xed5c5=await this[_0x510895(0x262)]['get'](_0x29ba8e,{'params':{'objectID':_0x15b1d3[_0x510895(0xc4)],'unitID':_0x15b1d3[_0x510895(0x17c)]}});return this[_0x510895(0x252)]((_0x43405e=_0xed5c5[_0x510895(0x30b)][_0x510895(0xa8)])==null?!0x1:_0x43405e),_0xed5c5[_0x510895(0x30b)][_0x510895(0x22e)];}async[_0x5a7686(0xb6)](_0x4db67a){const _0x2cc259=_0x5a7686;let _0x202bc1=this[_0x2cc259(0x269)]()+'/collaborator';await this[_0x2cc259(0x262)][_0x2cc259(0x18f)](_0x202bc1,{'body':_0x4db67a});}['setCfgEnableObjInherit'](_0x252eb3){const _0x5a2652=_0x5a7686;this[_0x5a2652(0x336)]=_0x252eb3;}['getCfgEnableObjInherit'](){return this['_cfgEnableObjInherit'];}};G=y([v(0x0,(0x0,t['Inject'])(l[_0x5a7686(0x35e)])),v(0x1,(0x0,t['Inject'])(t[_0x5a7686(0x298)]))],G);function at(_0x4c7553){const _0x472cb6=_0x5a7686;let _0x440dfb=atob(_0x4c7553),_0x39c1a1=new Uint8Array(_0x440dfb[_0x472cb6(0x225)]);for(let _0x6c457b=0x0;_0x6c457b<_0x440dfb[_0x472cb6(0x225)];_0x6c457b++)_0x39c1a1[_0x6c457b]=_0x440dfb['charCodeAt'](_0x6c457b);return _0x39c1a1;}function ot(_0x59b31e){const _0xf35ee=_0x5a7686;let _0x3d420c='';for(let _0x12c4e=0x0;_0x12c4e<_0x59b31e['length'];_0x12c4e++)_0x3d420c+=String[_0xf35ee(0xd3)](_0x59b31e[_0x12c4e]);return btoa(_0x3d420c);}function st(_0x3db569,_0x3ae5a2){const _0x31bc4c=_0x5a7686;let _0x264d79=at(_0x3ae5a2),_0x330189=(0x0,f[_0x31bc4c(0x1a6)])(0x10);return ot((0x0,f[_0x31bc4c(0x13c)])(_0x330189,(0x0,d['cbc'])(_0x264d79,_0x330189)['encrypt']((0x0,f['utf8ToBytes'])(_0x3db569))));}function ct(){const _0xbcaf11=_0x5a7686;let _0x140fac=(0x0,u['getGlobalObject'])()['__Key__'];if(typeof window<'u'&&window[_0xbcaf11(0x109)]!==void 0x0&&_0x140fac){let _0x55a286={'time':Math[_0xbcaf11(0x119)](Date[_0xbcaf11(0x379)]()/0x3e8),'domain':location[_0xbcaf11(0x1d2)]};return st(JSON[_0xbcaf11(0x121)](_0x55a286),_0x140fac);}}let K=class{constructor(_0x53e031){const _0x5a3367=_0x5a7686;this[_0x5a3367(0x8c)]=_0x53e031,this[_0x5a3367(0x79)]();}['_initRequestHeader'](){const _0x27d328=_0x5a7686;this[_0x27d328(0x8c)][_0x27d328(0x1e3)]({'interceptor':(_0x3addc1,_0x1dca2e)=>{const _0x1835fa=_0x27d328;let _0x2ab3b5=ct();return _0x2ab3b5&&_0x3addc1[_0x1835fa(0xf4)][_0x1835fa(0x22c)](_0x1835fa(0xe8),_0x2ab3b5),_0x1dca2e(_0x3addc1);}});}};K=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)]))],K);let q=class extends t[_0x5a7686(0x1a2)]{constructor(_0x7a32e3,_0x144fb4,_0x60b2b7){const _0xe33946=_0x5a7686;super(),this['_logService']=_0x7a32e3,this[_0xe33946(0x35f)]=_0x144fb4,this[_0xe33946(0x2a7)]=_0x60b2b7,g(this,_0xe33946(0x1c4),new i['BehaviorSubject'](null)),g(this,_0xe33946(0x2f3),new i[(_0xe33946(0x340))]()),g(this,'unitInfo$',this[_0xe33946(0x1c4)][_0xe33946(0xea)]()),g(this,'unitLoaded$',this['_unitLoaded$'][_0xe33946(0xea)]());}[_0x5a7686(0x177)](){const _0x281f7b=_0x5a7686;super['dispose'](),this[_0x281f7b(0x2f3)]['complete'](),this[_0x281f7b(0x1c4)]['complete']();}async[_0x5a7686(0x1a9)](_0x15ecb3,_0x343f60,_0x2cc56f,_0x57e7aa){const _0x403e58=_0x5a7686;this[_0x403e58(0x1c4)]['next']({'unitId':_0x15ecb3,'type':_0x343f60,'subUnitId':_0x57e7aa});let _0x282c0b=null;switch(_0x343f60){case t[_0x403e58(0x2e9)][_0x403e58(0xa2)]:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0x24a)](_0x15ecb3,_0x2cc56f,void 0x0,{'initialSubUnitId':_0x57e7aa});break;case t[_0x403e58(0x2e9)]['UNIVER_DOC']:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0x239)](_0x15ecb3,_0x2cc56f);break;case t[_0x403e58(0x2e9)][_0x403e58(0x319)]:_0x282c0b=await this['_snapshotService'][_0x403e58(0x7c)](_0x15ecb3,_0x2cc56f);break;case t[_0x403e58(0x2e9)][_0x403e58(0x320)]:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0xed)](_0x15ecb3,_0x2cc56f);break;case t[_0x403e58(0x2e9)]['UNIVER_BASE']:_0x282c0b=await this[_0x403e58(0x35f)][_0x403e58(0x134)](_0x15ecb3,_0x2cc56f);break;default:this[_0x403e58(0x8f)][_0x403e58(0x36a)](_0x403e58(0x311),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');break;}return _0x282c0b&&this[_0x403e58(0x2f3)][_0x403e58(0x1eb)](_0x282c0b),_0x282c0b;}async[_0x5a7686(0x37c)](_0x2dd77c,_0x329234,_0x220c0a){const _0x19b100=_0x5a7686;var _0x2a7bfd;this['_unitInfo$'][_0x19b100(0x1eb)]({'unitId':_0x2dd77c,'type':_0x329234,'subUnitId':_0x220c0a});let _0x4f178d=0x0,_0x303221=await((_0x2a7bfd=this[_0x19b100(0x2a7)])==null?void 0x0:_0x2a7bfd[_0x19b100(0x1e1)](_0x2dd77c));return _0x303221&&(_0x303221['awaitingChangeset']||_0x303221[_0x19b100(0x1c7)]['length']!==0x0)&&(_0x4f178d=_0x303221[_0x19b100(0x1cf)]),_0x4f178d===0x0&&this[_0x19b100(0x8f)]['debug'](_0x19b100(0x311),_0x19b100(0x2f0)),this[_0x19b100(0x1a9)](_0x2dd77c,_0x329234,_0x4f178d,_0x220c0a);}};q=y([v(0x0,t[_0x5a7686(0x2c2)]),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(e[_0x5a7686(0x175)])),v(0x2,(0x0,t[_0x5a7686(0xa3)])(S))],q);let J=class{constructor(_0x4ccf1a,_0x542e6a,_0x333cd0){const _0x4fd2eb=_0x5a7686;this[_0x4fd2eb(0x8c)]=_0x4ccf1a,this['_configService']=_0x542e6a,this['_univerInstanceService']=_0x333cd0,g(this,_0x4fd2eb(0x23e),0x0),g(this,_0x4fd2eb(0x8b),new i[(_0x4fd2eb(0x340))]()),g(this,'change$',this[_0x4fd2eb(0x8b)]),g(this,_0x4fd2eb(0x19b),new Map());}[_0x5a7686(0x1e8)](_0x118df1){const _0x555147=_0x5a7686;this[_0x555147(0x23e)]=_0x118df1,this[_0x555147(0x8b)][_0x555147(0x1eb)](_0x118df1);}['getImageSourceCache'](_0x443fc4,_0x27b899){const _0xf94a43=_0x5a7686;if(_0x27b899===t['ImageSourceType'][_0xf94a43(0x138)]){let _0xbcbed6=new Image();return _0xbcbed6[_0xf94a43(0x32c)]=_0x443fc4,_0xbcbed6;}return this[_0xf94a43(0x19b)][_0xf94a43(0x1b7)](_0x443fc4);}[_0x5a7686(0x222)](_0x271a00,_0x4ba376,_0x456d9c){const _0xbc4f92=_0x5a7686;_0x4ba376===t[_0xbc4f92(0xc1)][_0xbc4f92(0x138)]||_0x456d9c==null||this[_0xbc4f92(0x19b)][_0xbc4f92(0x22c)](_0x271a00,_0x456d9c);}async[_0x5a7686(0xa1)](_0x5aaedd){const _0x2ce1ea=_0x5a7686;try{let _0x5cebf6=this[_0x2ce1ea(0x2dd)](this[_0x2ce1ea(0x11c)](),''+_0x5aaedd),_0x2e6c1b=(await this[_0x2ce1ea(0x8c)]['get'](_0x5cebf6))[_0x2ce1ea(0x30b)];if(_0x2e6c1b[_0x2ce1ea(0x36a)]&&_0x2e6c1b[_0x2ce1ea(0x36a)][_0x2ce1ea(0x2b5)]===a[_0x2ce1ea(0x358)]['OK']){let _0x170edf=(0x0,t['resolveWithBasePath'])(_0x2e6c1b['url'],this[_0x2ce1ea(0xe2)]());return Promise[_0x2ce1ea(0x386)](_0x170edf);}return Promise[_0x2ce1ea(0x21c)](_0x2e6c1b[_0x2ce1ea(0x36a)]);}catch(_0x4d1377){return Promise[_0x2ce1ea(0x21c)](_0x4d1377);}}async['saveImage'](_0x5cfaeb){const _0x4aae5a=_0x5a7686;let _0x581d6c='';if(!p[_0x4aae5a(0x30e)][_0x4aae5a(0xc8)](_0x5cfaeb['type']))return this['_decreaseWaiting'](),Promise[_0x4aae5a(0x21c)](Error(t[_0x4aae5a(0x24c)]['ERROR_IMAGE_TYPE']));if(_0x5cfaeb[_0x4aae5a(0x257)]>(0x0,p[_0x4aae5a(0xc2)])())return this[_0x4aae5a(0xc3)](),Promise[_0x4aae5a(0x21c)](Error(t['ImageUploadStatusType'][_0x4aae5a(0x2d1)]));try{let _0x39597e=new FormData();_0x39597e[_0x4aae5a(0x1fc)](_0x4aae5a(0x93),_0x5cfaeb);let _0x1b6667=this['_univerInstanceService'][_0x4aae5a(0x15b)](),_0xf14d01=_0x1b6667==null?void 0x0:_0x1b6667[_0x4aae5a(0x250)]();if(!_0xf14d01)throw Error(_0x4aae5a(0x155));let _0xdb4ef6=this['_getUploadFileURL']()+_0x4aae5a(0x208)+_0x5cfaeb[_0x4aae5a(0x257)][_0x4aae5a(0x23d)]()+_0x4aae5a(0x2b7)+a[_0x4aae5a(0x2e6)][_0x4aae5a(0x19a)]+_0x4aae5a(0x26b)+encodeURIComponent(_0xf14d01),_0x21473c={'body':_0x39597e},_0x17f187=(await this[_0x4aae5a(0x8c)]['post'](_0xdb4ef6,_0x21473c))[_0x4aae5a(0x30b)];if(typeof _0x17f187[_0x4aae5a(0x1f6)]!='string')return this['_decreaseWaiting'](),Promise[_0x4aae5a(0x21c)](Error(t[_0x4aae5a(0x24c)]['ERROR_IMAGE']));_0x581d6c=_0x17f187[_0x4aae5a(0x1f6)];}catch{return this[_0x4aae5a(0xc3)](),Promise[_0x4aae5a(0x21c)](Error(t[_0x4aae5a(0x24c)]['ERROR_IMAGE']));}return new Promise((_0x34ee90,_0x3610ff)=>{const _0x461461=_0x4aae5a;let _0x3ee6ee=new FileReader();_0x3ee6ee['readAsDataURL'](_0x5cfaeb),_0x3ee6ee[_0x461461(0x2d0)]=_0x28e928=>{const _0xe74e0e=_0x461461;var _0x3ee7a7;let _0x574ea1=(_0x3ee7a7=_0x28e928[_0xe74e0e(0xbd)])==null?void 0x0:_0x3ee7a7[_0xe74e0e(0x371)];if(_0x574ea1==null){this[_0xe74e0e(0xc3)](),_0x3610ff(Error(t[_0xe74e0e(0x24c)][_0xe74e0e(0x242)]));return;}_0x34ee90({'imageId':(0x0,t['generateRandomId'])(0x6),'imageSourceType':t['ImageSourceType'][_0xe74e0e(0x346)],'source':_0x581d6c,'base64Cache':_0x574ea1,'status':t['ImageUploadStatusType']['SUCCUSS']}),this[_0xe74e0e(0xc3)]();};});}[_0x5a7686(0x38e)](){const _0x414f75=_0x5a7686;var _0x3eef53;let _0x28ceb9=this[_0x414f75(0x16d)][_0x414f75(0x34b)](m);return(_0x3eef53=_0x28ceb9==null?void 0x0:_0x28ceb9[_0x414f75(0x10a)])==null?_0x414f75(0x1b9):_0x3eef53;}[_0x5a7686(0x11c)](){const _0x48bffd=_0x5a7686;var _0x388b78;let _0x546613=this[_0x48bffd(0x16d)][_0x48bffd(0x34b)](m);return(_0x388b78=_0x546613==null?void 0x0:_0x546613['signUrlServerUrl'])==null?_0x48bffd(0x299):_0x388b78;}[_0x5a7686(0xe2)](){const _0x439372=_0x5a7686;var _0x474fae;let _0xe904f6=this[_0x439372(0x16d)][_0x439372(0x34b)](m);return(_0x474fae=_0xe904f6==null?void 0x0:_0xe904f6[_0x439372(0x12f)])==null?location[_0x439372(0x2a1)]:_0x474fae;}[_0x5a7686(0x2dd)](_0x60286c,_0xa8371){const _0x22c97e=_0x5a7686;return _0x60286c['replace'](_0x22c97e(0x1ef),_0xa8371);}[_0x5a7686(0xc3)](){const _0x41f75a=_0x5a7686;--this[_0x41f75a(0x23e)],this[_0x41f75a(0x8b)][_0x41f75a(0x1eb)](this[_0x41f75a(0x23e)]);}};J=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)])),v(0x1,t[_0x5a7686(0x298)]),v(0x2,(0x0,t['Inject'])(t[_0x5a7686(0x2d4)]))],J);let Y=class{constructor(_0x2a86df,_0x5168dc){const _0x3d0b47=_0x5a7686;this[_0x3d0b47(0x16d)]=_0x2a86df,this[_0x3d0b47(0x262)]=_0x5168dc;}[_0x5a7686(0x269)](){const _0x186bef=_0x5a7686;var _0x131e64;let _0xc9b8=this[_0x186bef(0x16d)][_0x186bef(0x34b)](m);return(_0x131e64=_0xc9b8==null?void 0x0:_0xc9b8[_0x186bef(0x96)])==null?_0x186bef(0x1af):_0x131e64;}async[_0x5a7686(0x15e)](_0x16860d){const _0x55eb94=_0x5a7686;let _0x1bfd3c=this[_0x55eb94(0x269)]()+'/collaborator';return{'list':[{'title':_0x55eb94(0x111),'mentions':(await this[_0x55eb94(0x262)][_0x55eb94(0x1b7)](_0x1bfd3c,{'params':{'objectID':_0x16860d[_0x55eb94(0x135)],'unitID':_0x16860d[_0x55eb94(0x135)]}}))[_0x55eb94(0x30b)][_0x55eb94(0x22e)][_0x55eb94(0x350)](_0x2a2037=>({'objectId':_0x2a2037['id'],'name':_0x2a2037[_0x55eb94(0x38c)][_0x55eb94(0x1bd)],'metadata':{'icon':_0x2a2037[_0x55eb94(0x38c)]['avatar']},'label':_0x2a2037[_0x55eb94(0x38c)][_0x55eb94(0x1bd)],'objectType':t[_0x55eb94(0x216)]['PERSON']})),'metadata':{},'type':t['MentionType']['PERSON']}]};}};Y=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x298)])),v(0x1,(0x0,t['Inject'])(l[_0x5a7686(0x35e)]))],Y);function _0x5741(_0x53d8f0,_0x18c440){_0x53d8f0=_0x53d8f0-0x79;const _0x37aa3b=_0x37aa();let _0x5741a3=_0x37aa3b[_0x53d8f0];return _0x5741a3;}let X=class extends t[_0x5a7686(0x1a2)]{constructor(_0x314749,_0x191bfd,_0x22b9fe,_0x48d775,_0x8f63c7){const _0x4c1beb=_0x5a7686;super(),this[_0x4c1beb(0x271)]=_0x314749,this[_0x4c1beb(0x104)]=_0x191bfd,this[_0x4c1beb(0x289)]=_0x22b9fe,this[_0x4c1beb(0xf3)]=_0x48d775,this[_0x4c1beb(0x12c)]=_0x8f63c7,this[_0x4c1beb(0xb0)](),this[_0x4c1beb(0x7b)]();}[_0x5a7686(0x7b)](){const _0x4c44ad=_0x5a7686;let _0x9dfbdf=async _0x372abb=>{const _0x3b1a68=_0x5741;(await this['_collaborationSessionService'][_0x3b1a68(0x295)](_0x372abb))['event$'][_0x3b1a68(0xf8)]((0x0,s['filter'])(_0xed810d=>_0xed810d[_0x3b1a68(0x25a)]===e[_0x3b1a68(0xd2)][_0x3b1a68(0x141)]),(0x0,s['takeUntil'])(this['dispose$']))[_0x3b1a68(0x24b)](_0x38fc45=>{const _0x5d98d6=_0x3b1a68;let {reason:_0x3cf3f1}=_0x38fc45['data'];this[_0x5d98d6(0x12c)]['emitEvent']({'id':_0x5d98d6(0x192),'data':_0x3cf3f1}),this[_0x5d98d6(0x289)][_0x5d98d6(0x22f)](new r[(_0x5d98d6(0x1ce))](_0x372abb)['id'],!0x1),this[_0x5d98d6(0xf3)][_0x5d98d6(0xc0)](_0x372abb);});};(0x0,i[_0x4c44ad(0x316)])(this[_0x4c44ad(0x104)][_0x4c44ad(0x1d0)](t[_0x4c44ad(0x2e9)][_0x4c44ad(0xa2)]),this['_univerInstanceService'][_0x4c44ad(0x1d0)](t[_0x4c44ad(0x2e9)][_0x4c44ad(0x301)]),this[_0x4c44ad(0x104)][_0x4c44ad(0x1d0)](t[_0x4c44ad(0x2e9)]['UNIVER_BOARD']),this[_0x4c44ad(0x104)]['getTypeOfUnitAdded$'](t[_0x4c44ad(0x2e9)][_0x4c44ad(0x27f)]))['pipe']((0x0,s['map'])(_0x4dd30e=>_0x4dd30e[_0x4c44ad(0x1c3)][_0x4c44ad(0x250)]()),(0x0,s['filter'])(_0x4bf832=>!(0x0,t[_0x4c44ad(0x1b3)])(_0x4bf832)),(0x0,s[_0x4c44ad(0x27c)])(this[_0x4c44ad(0x211)]))[_0x4c44ad(0x24b)](_0xadc150=>{_0x9dfbdf(_0xadc150);});}[_0x5a7686(0xb0)](){const _0x1b23ab=_0x5a7686;let _0xa44b5f=async _0x4a9635=>{const _0x2b745d=_0x5741;let _0x439634=await this[_0x2b745d(0xf3)][_0x2b745d(0x295)](_0x4a9635),_0x5410bf=this[_0x2b745d(0x271)][_0x2b745d(0x1b7)](r['SheetPermissionInitController']);_0x439634[_0x2b745d(0x127)][_0x2b745d(0xf8)]((0x0,s[_0x2b745d(0x18a)])(_0xec9d39=>_0xec9d39[_0x2b745d(0x25a)]===e[_0x2b745d(0xd2)][_0x2b745d(0x305)]),(0x0,s[_0x2b745d(0x27c)])(this[_0x2b745d(0x211)]))[_0x2b745d(0x24b)](_0x5ebb16=>{const _0x19ed78=_0x2b745d;let {objectId:_0x3a4356}=_0x5ebb16[_0x19ed78(0x21f)];_0x3a4356===_0x4a9635?_0x5410bf[_0x19ed78(0x370)](_0x4a9635):_0x5410bf[_0x19ed78(0x29b)](_0x4a9635,_0x3a4356);});};(0x0,i[_0x1b23ab(0x316)])(this[_0x1b23ab(0x104)][_0x1b23ab(0x1d0)](t[_0x1b23ab(0x2e9)][_0x1b23ab(0xa2)]))[_0x1b23ab(0xf8)]((0x0,s[_0x1b23ab(0x350)])(_0x4e609d=>_0x4e609d[_0x1b23ab(0x1c3)][_0x1b23ab(0x250)]()),(0x0,s['filter'])(_0x80ac54=>!(0x0,t[_0x1b23ab(0x1b3)])(_0x80ac54)),(0x0,s[_0x1b23ab(0x27c)])(this['dispose$']))[_0x1b23ab(0x24b)](_0x25193b=>{_0xa44b5f(_0x25193b);});}};X=y([v(0x0,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x5a7686(0xce)]),v(0x3,(0x0,t[_0x5a7686(0x1c9)])(V)),v(0x4,(0x0,t[_0x5a7686(0x1c9)])(_))],X);let Z=class{constructor(_0x5e6573,_0x59067e){const _0x1cbe67=_0x5a7686;this[_0x1cbe67(0x16d)]=_0x5e6573,this[_0x1cbe67(0x8c)]=_0x59067e;}async['getUnitOnRev'](_0x547ff5,_0x155de5){const _0x4121c9=_0x5a7686;var _0x271dd9;let {unitID:_0x3972d7,type:_0x397b3c,revision:_0x47dfc1=0x0}=_0x155de5,_0x1fe954=this['getSnapshotAPIPath']()+'/'+_0x397b3c+_0x4121c9(0x9c)+_0x3972d7+_0x4121c9(0x103)+_0x47dfc1,_0x50d599=(await this[_0x4121c9(0x8c)][_0x4121c9(0x1b7)](_0x1fe954))[_0x4121c9(0x30b)],_0x587919=(_0x271dd9=_0x50d599[_0x4121c9(0x131)])==null?void 0x0:_0x271dd9[_0x4121c9(0x12e)];if(_0x587919){let _0x5e23e9=_0x587919==null?void 0x0:_0x587919[_0x4121c9(0x383)];_0x587919[_0x4121c9(0x383)]=e[_0x4121c9(0x20a)][_0x4121c9(0x2f2)]((0x0,e[_0x4121c9(0x28d)])(_0x5e23e9)),Object[_0x4121c9(0x24f)](_0x587919[_0x4121c9(0x126)])[_0x4121c9(0x1de)](([,_0x2fc43a])=>{const _0xa4adb9=_0x4121c9;let _0x21276a=_0x2fc43a['originalMeta'];_0x2fc43a[_0xa4adb9(0x383)]=e[_0xa4adb9(0x20a)][_0xa4adb9(0x2f2)]((0x0,e[_0xa4adb9(0x28d)])(_0x21276a));});}return _0x50d599;}async[_0x5a7686(0xb2)](_0x5ac4e6,_0x53e41b){const _0x674496=_0x5a7686;let {unitID:_0x4aa913,type:_0x189b66,blockID:_0x59f4fc}=_0x53e41b,_0x4c3a93=this[_0x674496(0x1a0)]()+'/'+_0x189b66+_0x674496(0x9c)+_0x4aa913+_0x674496(0xd5)+_0x59f4fc;return(await this[_0x674496(0x8c)][_0x674496(0x1b7)](_0x4c3a93))[_0x674496(0x30b)];}async[_0x5a7686(0x196)](_0x121c04,_0xd05dd9){const _0x2d30ba=_0x5a7686;let {unitID:_0x4a22df,type:_0x295fcd,blockID:_0x627db4}=_0xd05dd9,_0x263ce2=this[_0x2d30ba(0x1a0)]()+_0x2d30ba(0xd5)+_0x295fcd+'/unit/'+_0x4a22df+_0x2d30ba(0xd5)+_0x627db4;return(await this[_0x2d30ba(0x8c)][_0x2d30ba(0x1b7)](_0x263ce2))['body'];}async[_0x5a7686(0x1c8)](_0x19d7c2,_0x5d9f38){const _0x4e7892=_0x5a7686;let {unitID:_0x4faf0e,type:_0x31b281,from:_0x425a97,to:_0x2b77cf}=_0x5d9f38,_0x17da41=this[_0x4e7892(0x1a0)]()+'/'+_0x31b281+_0x4e7892(0x9c)+_0x4faf0e+_0x4e7892(0x323)+_0x425a97+_0x4e7892(0x176)+_0x2b77cf;return(await this[_0x4e7892(0x8c)][_0x4e7892(0x1b7)](_0x17da41))[_0x4e7892(0x30b)];}[_0x5a7686(0x227)](){const _0x23a74b=_0x5a7686;var _0x4ec057;return(_0x4ec057=this[_0x23a74b(0x16d)]['getConfig']('SNAPSHOT_URL_KEY'))==null?this[_0x23a74b(0x1a0)]():_0x4ec057;}[_0x5a7686(0x1a0)](){const _0x553c73=_0x5a7686;var _0x116ebf;let _0x5a2973=this[_0x553c73(0x16d)][_0x553c73(0x34b)](m);return(_0x116ebf=_0x5a2973==null?void 0x0:_0x5a2973[_0x553c73(0xba)])==null?'/universer-api/snapshot':_0x116ebf;}async['getResourcesRequest'](_0x37fbc1,_0x2c87f7){const _0x44fe23=_0x5a7686;let _0x1af360=_0x44fe23(0x270)+_0x2c87f7[_0x44fe23(0x234)]+_0x44fe23(0x9c)+_0x2c87f7[_0x44fe23(0x17c)]+_0x44fe23(0x149);return(await this[_0x44fe23(0x8c)]['get'](_0x1af360,{'params':{'resourceId':JSON[_0x44fe23(0x121)](_0x2c87f7[_0x44fe23(0x2f7)])}}))[_0x44fe23(0x30b)];}[_0x5a7686(0x207)](){const _0x33f9d6=_0x5a7686;throw Error(_0x33f9d6(0x1a1));}[_0x5a7686(0x14a)](){const _0x38d549=_0x5a7686;throw Error(_0x38d549(0x1a1));}[_0x5a7686(0x2b2)](){const _0x1a005e=_0x5a7686;throw Error(_0x1a005e(0x1a1));}[_0x5a7686(0xb9)](){const _0x46cbb3=_0x5a7686;throw Error(_0x46cbb3(0x1a1));}[_0x5a7686(0x1ac)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}['getLatestCsReqIdBySid'](){const _0x3dc55a=_0x5a7686;throw Error(_0x3dc55a(0x1a1));}};Z=y([v(0x0,t[_0x5a7686(0x298)]),v(0x1,(0x0,t[_0x5a7686(0x1c9)])(l[_0x5a7686(0x35e)]))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0xb83aa5,_0x361346,_0x3dd997,_0x7eeb2c,_0x522aa2){const _0x384a26=_0x5a7686;super(_0xb83aa5,_0x361346,_0x3dd997),this[_0x384a26(0x19c)]=_0x7eeb2c,this[_0x384a26(0x8f)]=_0x522aa2;}[_0x5a7686(0xae)](_0x19691d,_0x3e4722){const _0x4d0b13=_0x5a7686;let _0xafba09=this['_getUndoStack'](_0x19691d);if(_0xafba09)try{let _0x3d7259=this[_0x4d0b13(0x1df)](_0xafba09,_0x3e4722);this['_substituteUndoStack'](_0x19691d,_0x3d7259);}catch(_0x5016e9){this[_0x4d0b13(0x8f)][_0x4d0b13(0x36a)](_0x4d0b13(0xb1),_0x5016e9),this['_clearUndo'](_0x19691d);}let _0x4414e1=this[_0x4d0b13(0x287)](_0x19691d);if(_0x4414e1)try{let _0x3c1d82=this[_0x4d0b13(0x1df)](_0x4414e1,_0x3e4722);this[_0x4d0b13(0x1b2)](_0x19691d,_0x3c1d82);}catch(_0x321d73){this['_logService'][_0x4d0b13(0x36a)](_0x321d73),this[_0x4d0b13(0x356)](_0x19691d);}}['_clearUndo'](_0x38b867){const _0x2a74d7=_0x5a7686;let _0x21da11=this['_getUndoStack'](_0x38b867);_0x21da11&&(_0x21da11[_0x2a74d7(0x225)]=0x0,this['_updateStatus']());}['_clearRedo'](_0x3cff1a){const _0x4abeab=_0x5a7686;let _0x346582=this[_0x4abeab(0x287)](_0x3cff1a);_0x346582&&(_0x346582[_0x4abeab(0x225)]=0x0,this[_0x4abeab(0x2df)]());}[_0x5a7686(0x2ec)](_0x5acdb3,_0x21f060){const _0x27dcb6=_0x5a7686;this[_0x27dcb6(0x27e)][_0x27dcb6(0x22c)](_0x5acdb3,_0x21f060),this[_0x27dcb6(0x2df)]();}['_substituteRedoStack'](_0x573db8,_0x579c02){const _0x33ae85=_0x5a7686;this['_redoStacks'][_0x33ae85(0x22c)](_0x573db8,_0x579c02),this[_0x33ae85(0x2df)]();}[_0x5a7686(0x1df)](_0x2c3af3,_0x1722d9){const _0x53db2d=_0x5a7686;let _0x323226=[],_0x513765=_0x1722d9,_0x3c5c98=_0x1722d9;for(let _0x5131e3=_0x2c3af3[_0x53db2d(0x225)]-0x1;_0x5131e3>=0x0;_0x5131e3--){let {unitID:_0x29072,undoMutations:_0x482938,redoMutations:_0x34a076}=_0x2c3af3[_0x5131e3],_0x5e66c3=this[_0x53db2d(0x19c)][_0x53db2d(0x1ab)](_0x513765,_0x482938),_0x3d5e0e=this['_transformService'][_0x53db2d(0x1ab)](_0x3c5c98,_0x34a076);if((0x0,e[_0x53db2d(0x335)])(_0x5e66c3)||(0x0,e[_0x53db2d(0x335)])(_0x3d5e0e)){this[_0x53db2d(0x8f)][_0x53db2d(0x36a)](_0x53db2d(0xb1),'transformStack\x20failed!',_0x5e66c3,_0x3d5e0e);break;}_0x513765=_0x5e66c3['c1Prime'],_0x3c5c98=_0x3d5e0e[_0x53db2d(0x157)],_0x323226['push']({'unitID':_0x29072,'undoMutations':_0x5e66c3[_0x53db2d(0x2c3)],'redoMutations':_0x3d5e0e[_0x53db2d(0x2c3)]});}return _0x323226['reverse']();}};Q=y([v(0x0,t[_0x5a7686(0x2d4)]),v(0x1,t[_0x5a7686(0x170)]),v(0x2,t['IContextService']),v(0x3,e[_0x5a7686(0x296)]),v(0x4,t[_0x5a7686(0x2c2)])],Q);let $=class extends t[_0x5a7686(0x338)]{constructor(_0x13134b=ee,_0x2a9879,_0x58c354,_0x16e429){const _0x3d5124=_0x5a7686;super(),this['_config']=_0x13134b,this[_0x3d5124(0x8f)]=_0x2a9879,this[_0x3d5124(0x271)]=_0x58c354,this[_0x3d5124(0x16d)]=_0x16e429;let {..._0x2d41cd}=(0x0,t[_0x3d5124(0x316)])({},ee,this['_config']);if(!_0x2d41cd[_0x3d5124(0x188)])throw Error(_0x3d5124(0x258));this[_0x3d5124(0x9a)]=_0x2d41cd,this[_0x3d5124(0x16d)][_0x3d5124(0x1b5)](m,_0x2d41cd);}[_0x5a7686(0x22a)](){const _0x41eb5e=_0x5a7686;this[_0x41eb5e(0x283)](),this[_0x41eb5e(0xe3)]();}[_0x5a7686(0x283)](){const _0x4a2cfc=_0x5a7686;var _0x434e39,_0x221124;this[_0x4a2cfc(0x271)]['has'](t[_0x4a2cfc(0x1fe)])&&this[_0x4a2cfc(0x8f)][_0x4a2cfc(0x36a)](_0x4a2cfc(0x279),_0x4a2cfc(0x19e));let _0x35f6f5=(0x0,t[_0x4a2cfc(0x145)])([[t[_0x4a2cfc(0x1fe)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[C],[W],[K],[se],[X],[_],[q],[qe,{'useClass':this[_0x4a2cfc(0x9a)][_0x4a2cfc(0x188)]}],[e[_0x4a2cfc(0x387)],{'useClass':Z}],[t[_0x4a2cfc(0x153)],{'useClass':G}],[t[_0x4a2cfc(0xee)],{'useClass':J}],[rt,{'useClass':U}],[t[_0x4a2cfc(0x34d)],{'useClass':Y}],[H],[tt]],(_0x434e39=this['_config'])==null?void 0x0:_0x434e39[_0x4a2cfc(0x30a)]);if(!((_0x221124=this[_0x4a2cfc(0x9a)])!=null&&_0x221124[_0x4a2cfc(0x1dc)])){let _0x33e6f7=_0x35f6f5['findIndex'](([_0x33f7d3])=>_0x33f7d3===w);_0x33e6f7!==-0x1&&_0x35f6f5['splice'](_0x33e6f7,0x1);}(0x0,t['registerDependencies'])(this['_injector'],_0x35f6f5);}['_initDependencies'](){const _0x1fa883=_0x5a7686;var _0x43c9c8,_0x1b7f0a;if(this[_0x1fa883(0x271)]['get'](l['HTTPService'])[_0x1fa883(0x1e3)]({'priority':0x14,'interceptor':(0x0,l[_0x1fa883(0x339)])({'maxParallel':0x6})}),!((_0x43c9c8=this['_config'])!=null&&_0x43c9c8['enableOfflineEditing'])){var _0x586718;(_0x586718=this[_0x1fa883(0x271)][_0x1fa883(0x1b7)](S,t[_0x1fa883(0x2a4)][_0x1fa883(0x152)]))==null||_0x586718[_0x1fa883(0x32d)]();}(_0x1b7f0a=this[_0x1fa883(0x9a)])!=null&&_0x1b7f0a[_0x1fa883(0x2ed)]&&(0x0,t['touchDependencies'])(this[_0x1fa883(0x271)],[[W]]),(0x0,t[_0x1fa883(0x1ad)])(this[_0x1fa883(0x271)],[[K],[H],[X]]);}};g($,_0x5a7686(0x22d),_0x5a7686(0x226)),g($,_0x5a7686(0x168),$e),g($,_0x5a7686(0x16f),et),$=y([(0x0,t[_0x5a7686(0x204)])(u['UniverLicensePlugin'],e[_0x5a7686(0x14c)],l[_0x5a7686(0x10b)]),v(0x1,t[_0x5a7686(0x2c2)]),v(0x2,(0x0,t[_0x5a7686(0x1c9)])(t[_0x5a7686(0x304)])),v(0x3,t[_0x5a7686(0x298)])],$),exports['AttachmentSourceType']=nt,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x33b),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x5a7686(0x231),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x278),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x332),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x5a7686(0xd8)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),exports[_0x5a7686(0x331)]=m,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x179),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x5a7686(0xd8)](exports,'CollaborationController',{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x33e),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x13e),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x1f3),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x2bb),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x2c9),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x5a7686(0x2bf)]=Be,exports['CollaborationUIEventId']=oe,exports[_0x5a7686(0x37f)]=_,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x178),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x5a7686(0x1ee)]=se,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x219),{'enumerable':!0x0,'get':function(){return M;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=te,exports[_0x5a7686(0x90)]='/universer-api/uniscript',exports[_0x5a7686(0x38a)]=_0x5a7686(0x8e),Object[_0x5a7686(0xd8)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x83),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x5a7686(0xf2),{'enumerable':!0x0,'get':function(){return P;}}),exports[_0x5a7686(0x272)]='HEARTBEAT_INTERVAL',exports[_0x5a7686(0x268)]=_0x5a7686(0xe4),exports[_0x5a7686(0x16a)]=rt,exports['ICollaborationClientAdapterService']=Xe,exports[_0x5a7686(0x173)]=qe,exports[_0x5a7686(0x352)]=S,exports[_0x5a7686(0x297)]=We,exports[_0x5a7686(0x13f)]=w,exports[_0x5a7686(0x102)]=0x3e8,exports[_0x5a7686(0x32a)]=_0x5a7686(0x102),Object[_0x5a7686(0xd8)](exports,'MemberService',{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x377),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x392),{'enumerable':!0x0,'get':function(){return N;}}),Object['defineProperty'](exports,_0x5a7686(0x167),{'enumerable':!0x0,'get':function(){return k;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']='REMOTE_UNISCRIPT_EXECUTION_ENDPOINT',exports[_0x5a7686(0x174)]='RETRY_CONNECTING_MAX_COUNT',exports['SessionStatus']=ve,Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x2ca),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x1aa),{'enumerable':!0x0,'get':function(){return C;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x82),{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x26f),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x5a7686(0xd8)](exports,_0x5a7686(0x341),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x5a7686(0x133)]=Se,Object[_0x5a7686(0xd8)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports['deserializeToCombResponse']=Ge,exports[_0x5a7686(0x94)]=be,exports['serializeCombRequest']=Ke;
|