@univerjs-pro/collaboration-client 1.0.0-beta.0 → 1.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/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/types/facade/f-collaboration.d.ts +14 -0
- package/lib/types/services/undoredo/collaborative-undoredo.service.d.ts +2 -2
- 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 +15 -15
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x528acf=_0x3420;(function(_0x4a67ee,_0x3c70ab){const _0x16651c=_0x3420,_0x2d2836=_0x4a67ee();while(!![]){try{const _0x5ee8ee=-parseInt(_0x16651c(0x153))/0x1+-parseInt(_0x16651c(0x1e3))/0x2+-parseInt(_0x16651c(0x296))/0x3+-parseInt(_0x16651c(0x399))/0x4*(parseInt(_0x16651c(0x12d))/0x5)+parseInt(_0x16651c(0x3f2))/0x6+-parseInt(_0x16651c(0x2b4))/0x7*(-parseInt(_0x16651c(0x375))/0x8)+parseInt(_0x16651c(0x151))/0x9;if(_0x5ee8ee===_0x3c70ab)break;else _0x2d2836['push'](_0x2d2836['shift']());}catch(_0x4855ab){_0x2d2836['push'](_0x2d2836['shift']());}}}(_0x2879,0x9a53d),Object['defineProperty'](exports,Symbol[_0x528acf(0x21e)],{'value':_0x528acf(0x3ca)}));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=_0x528acf(0x18f),ee={};function te(_0x4edb2e){const _0x3c3372=_0x528acf;return JSON[_0x3c3372(0x29e)](_0x4edb2e)[_0x3c3372(0x347)];}function h(_0x102d76){'@babel/helpers - typeof';const _0x15db64=_0x528acf;return h=typeof Symbol==_0x15db64(0x157)&&typeof Symbol[_0x15db64(0x41c)]=='symbol'?function(_0x4ec713){return typeof _0x4ec713;}:function(_0x2c079c){const _0x1d65f1=_0x15db64;return _0x2c079c&&typeof Symbol==_0x1d65f1(0x157)&&_0x2c079c[_0x1d65f1(0x333)]===Symbol&&_0x2c079c!==Symbol['prototype']?_0x1d65f1(0x2ee):typeof _0x2c079c;},h(_0x102d76);}function ne(_0x31f805,_0x4fc4cb){const _0x5c1bbe=_0x528acf;if(h(_0x31f805)!=_0x5c1bbe(0x170)||!_0x31f805)return _0x31f805;var _0x1f58df=_0x31f805[Symbol['toPrimitive']];if(_0x1f58df!==void 0x0){var _0x46416e=_0x1f58df[_0x5c1bbe(0x1ca)](_0x31f805,_0x4fc4cb||_0x5c1bbe(0x3a3));if(h(_0x46416e)!=_0x5c1bbe(0x170))return _0x46416e;throw TypeError(_0x5c1bbe(0x19b));}return(_0x4fc4cb===_0x5c1bbe(0x259)?String:Number)(_0x31f805);}function re(_0x5a3871){const _0x2061b9=_0x528acf;var _0x5074cf=ne(_0x5a3871,_0x2061b9(0x259));return h(_0x5074cf)==_0x2061b9(0x2ee)?_0x5074cf:_0x5074cf+'';}function g(_0x2011ba,_0xada599,_0x5c925b){return(_0xada599=re(_0xada599))in _0x2011ba?Object['defineProperty'](_0x2011ba,_0xada599,{'value':_0x5c925b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2011ba[_0xada599]=_0x5c925b,_0x2011ba;}let ie=function(_0x214582){const _0x397054=_0x528acf;return _0x214582[_0x397054(0x17a)]=_0x397054(0x17a),_0x214582[_0x397054(0x147)]=_0x397054(0x147),_0x214582['CONFLICT']=_0x397054(0x39c),_0x214582[_0x397054(0x280)]='CLOSE_ROOM',_0x214582['JOIN_ROOM_FAILED']=_0x397054(0x1ab),_0x214582[_0x397054(0x25b)]=_0x397054(0x25b),_0x214582[_0x397054(0x132)]=_0x397054(0x132),_0x214582[_0x397054(0x194)]='SUBMIT_CHANGESET_TIMEOUT',_0x214582;}({});var _=class{constructor(){const _0x52a90f=_0x528acf;g(this,_0x52a90f(0x29a),new i[(_0x52a90f(0x1bf))]()),g(this,_0x52a90f(0x115),this['_event$'][_0x52a90f(0x1db)]());}[_0x528acf(0x237)](_0x3dd837){const _0x27b6d8=_0x528acf;this[_0x27b6d8(0x29a)]['next'](_0x3dd837);}},ae=class{constructor(){const _0x4aad5f=_0x528acf;g(this,_0x4aad5f(0x1aa),new i[(_0x4aad5f(0x1bf))]()),g(this,_0x4aad5f(0x39f),this['_commentUpdate$'][_0x4aad5f(0x1db)]());}['onCommentUpdate'](_0x1bdde1){const _0x2c3880=_0x528acf;this[_0x2c3880(0x1aa)][_0x2c3880(0x307)](_0x1bdde1);}};function v(_0x3b2c23,_0x46997e){return function(_0x1f5f83,_0x2bcc85){_0x46997e(_0x1f5f83,_0x2bcc85,_0x3b2c23);};}function y(_0x56ca19,_0x433376,_0x156417,_0x9c7234){const _0x168582=_0x528acf;var _0x25ac78=arguments['length'],_0x4b8cd2=_0x25ac78<0x3?_0x433376:_0x9c7234===null?_0x9c7234=Object['getOwnPropertyDescriptor'](_0x433376,_0x156417):_0x9c7234,_0x138406;if(typeof Reflect==_0x168582(0x170)&&typeof Reflect[_0x168582(0x3a4)]==_0x168582(0x157))_0x4b8cd2=Reflect[_0x168582(0x3a4)](_0x56ca19,_0x433376,_0x156417,_0x9c7234);else{for(var _0x44cb97=_0x56ca19[_0x168582(0x347)]-0x1;_0x44cb97>=0x0;_0x44cb97--)(_0x138406=_0x56ca19[_0x44cb97])&&(_0x4b8cd2=(_0x25ac78<0x3?_0x138406(_0x4b8cd2):_0x25ac78>0x3?_0x138406(_0x433376,_0x156417,_0x4b8cd2):_0x138406(_0x433376,_0x156417))||_0x4b8cd2);}return _0x25ac78>0x3&&_0x4b8cd2&&Object[_0x168582(0x2b7)](_0x433376,_0x156417,_0x4b8cd2),_0x4b8cd2;}let b=class extends t[_0x528acf(0x23e)]{constructor(_0x5e18d2){const _0x2b0ea7=_0x528acf;super(),this['_univerInstanceService']=_0x5e18d2,g(this,_0x2b0ea7(0x28c),new Map()),g(this,_0x2b0ea7(0x149),new i[(_0x2b0ea7(0x1bf))]()),this[_0x2b0ea7(0x3a2)]((0x0,i[_0x2b0ea7(0x1c3)])(this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t[_0x2b0ea7(0x274)][_0x2b0ea7(0x2df)])['pipe']((0x0,s['map'])(_0xf291c1=>_0xf291c1['getUnitId']())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t[_0x2b0ea7(0x274)][_0x2b0ea7(0x214)])[_0x2b0ea7(0x3cf)]((0x0,s['map'])(_0x181d5d=>_0x181d5d[_0x2b0ea7(0x1bb)]())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t['UniverInstanceType'][_0x2b0ea7(0x1eb)])[_0x2b0ea7(0x3cf)]((0x0,s[_0x2b0ea7(0x1f4)])(_0x35559b=>_0x35559b[_0x2b0ea7(0x1bb)]())),this[_0x2b0ea7(0x416)][_0x2b0ea7(0x20f)](t['UniverInstanceType'][_0x2b0ea7(0x15a)])[_0x2b0ea7(0x3cf)]((0x0,s['map'])(_0x498c23=>_0x498c23['getUnitId']())))['subscribe'](_0x10d21d=>this[_0x2b0ea7(0x365)](_0x10d21d)));}['waitForRoom$'](_0x29136e){const _0x59d31f=_0x528acf;return this[_0x59d31f(0x28c)][_0x59d31f(0x2b6)](_0x29136e)?(0x0,i['of'])(this[_0x59d31f(0x28c)][_0x59d31f(0x1b0)](_0x29136e)):this[_0x59d31f(0x149)][_0x59d31f(0x3cf)]((0x0,s['map'])(_0x2830ed=>{if(_0x2830ed===_0x29136e)return this['_roomMembers']['get'](_0x2830ed);}));}[_0x528acf(0x205)](_0x14af28,_0x5706ba){const _0x1924ad=_0x528acf;let _0x3a38a2=this[_0x1924ad(0x28c)]['get'](_0x14af28);_0x3a38a2||(_0x3a38a2=new oe(),this[_0x1924ad(0x28c)]['set'](_0x14af28,_0x3a38a2),this[_0x1924ad(0x149)][_0x1924ad(0x307)](_0x14af28)),_0x3a38a2['updateMember'](_0x5706ba);}[_0x528acf(0x317)](_0x3f4bed,_0x29fca4){const _0xa19f58=_0x528acf;let _0x347377=this[_0xa19f58(0x28c)][_0xa19f58(0x1b0)](_0x3f4bed);_0x347377&&_0x347377[_0xa19f58(0x317)](_0x29fca4);}[_0x528acf(0x34d)](_0x29d166){const _0x3625be=_0x528acf;return this[_0x3625be(0x28c)][_0x3625be(0x1b0)](_0x29d166);}[_0x528acf(0x39b)](_0x2d3e14,_0x367eca){const _0x38e17a=_0x528acf;let _0x1e6fb6=this[_0x38e17a(0x28c)][_0x38e17a(0x1b0)](_0x2d3e14);if(_0x1e6fb6)return _0x1e6fb6[_0x38e17a(0x39b)](_0x367eca);}[_0x528acf(0x365)](_0x51be2c){const _0x8762d0=_0x528acf;let _0x5e2b1a=this[_0x8762d0(0x28c)][_0x8762d0(0x1b0)](_0x51be2c);_0x5e2b1a&&(_0x5e2b1a[_0x8762d0(0x1fb)](),this[_0x8762d0(0x28c)][_0x8762d0(0x166)](_0x51be2c));}['dispose'](){const _0x2f8d72=_0x528acf;this[_0x2f8d72(0x28c)]['forEach'](_0xb5b03b=>_0xb5b03b[_0x2f8d72(0x1fb)]()),this['_roomMembers'][_0x2f8d72(0x3fc)](),this[_0x2f8d72(0x149)]['complete']();}};b=y([v(0x0,t[_0x528acf(0x3a7)])],b);var oe=class extends t[_0x528acf(0x23e)]{constructor(..._0x40820e){const _0xf1a9a=_0x528acf;super(..._0x40820e),g(this,_0xf1a9a(0x1dd),new Map()),g(this,_0xf1a9a(0x2c3),new i['BehaviorSubject'](this[_0xf1a9a(0x1dd)])),g(this,_0xf1a9a(0x40c),this[_0xf1a9a(0x2c3)][_0xf1a9a(0x1db)]());}[_0x528acf(0x1fb)](){const _0x15bac2=_0x528acf;this[_0x15bac2(0x1dd)][_0x15bac2(0x3fc)](),this['_members$'][_0x15bac2(0x13b)]();}['updateMember'](_0x6431cb){const _0x1587c4=_0x528acf;this[_0x1587c4(0x1dd)][_0x1587c4(0x18b)](_0x6431cb[_0x1587c4(0x2c4)],_0x6431cb),this[_0x1587c4(0x39d)]();}[_0x528acf(0x317)](_0x597a62){const _0x5cb798=_0x528acf;this['_members'][_0x5cb798(0x166)](_0x597a62),this['_emitMembers']();}[_0x528acf(0x39b)](_0x53d28b){const _0x243d41=_0x528acf;return this[_0x243d41(0x1dd)][_0x243d41(0x1b0)](_0x53d28b);}['getAllMembers'](){const _0x5501d2=_0x528acf;return Array[_0x5501d2(0x164)](this[_0x5501d2(0x1dd)][_0x5501d2(0x364)]());}[_0x528acf(0x39d)](){const _0x2436b7=_0x528acf;this[_0x2436b7(0x2c3)]['next'](this[_0x2436b7(0x1dd)]);}};function se(_0xc585c1,_0xb3225){const _0x1905c5=_0x528acf;if(le(_0xc585c1))return _0xb3225;if(_0xb3225[_0x1905c5(0x1f0)]===e[_0x1905c5(0x330)][_0x1905c5(0x1a7)]){let _0x59a6f2=me(_0xc585c1),_0x1b0c70=_0xb3225;return{..._0x1b0c70,'data':{..._0x1b0c70[_0x1905c5(0x325)],'unitID':_0xc585c1[_0x1905c5(0x245)]['unitId'],'unitType':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x37d)]??_0x1b0c70[_0x1905c5(0x325)]['unitType'],'changeset':_0x59a6f2[_0x1905c5(0x190)](_0x1b0c70[_0x1905c5(0x325)]['changeset'],he(_0xc585c1))}};}if(_0xb3225[_0x1905c5(0x1f0)]===e[_0x1905c5(0x330)][_0x1905c5(0x29c)]){let _0x4a0365=_0xb3225;return{..._0x4a0365,'data':{..._0x4a0365[_0x1905c5(0x325)],'unitID':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x236)],'unitType':_0xc585c1[_0x1905c5(0x245)][_0x1905c5(0x37d)]??_0x4a0365[_0x1905c5(0x325)][_0x1905c5(0x37d)]}};}return _0xb3225;}function ce(_0x111626,_0x5ba87d){const _0x36fa9e=_0x528acf;if(le(_0x111626))return[_0x5ba87d];switch(_0x5ba87d[_0x36fa9e(0x1f0)]){case e[_0x36fa9e(0x330)][_0x36fa9e(0x173)]:return[ue(_0x111626,_0x5ba87d)];case e['CollaborationEvent'][_0x36fa9e(0x40f)]:return[fe(_0x111626,_0x5ba87d)];case e[_0x36fa9e(0x330)][_0x36fa9e(0x2bf)]:return[de(_0x111626,_0x5ba87d)];default:return[_0x5ba87d];}}function le(_0x4da99b){const _0xf01e22=_0x528acf;return _0x4da99b[_0xf01e22(0x245)][_0xf01e22(0x243)]==null&&_0x4da99b[_0xf01e22(0x245)][_0xf01e22(0x236)]===_0x4da99b[_0xf01e22(0x313)]&&!_0x4da99b['changeset'];}function ue(_0x60d27b,_0x3e11b4){const _0x58f8d2=_0x528acf;return{..._0x3e11b4,'data':(0x0,e[_0x58f8d2(0x293)])(pe(_0x60d27b,(0x0,e['parseProtocolChangeset'])(_0x3e11b4[_0x58f8d2(0x325)])))};}function de(_0x225c3b,_0x4cdf4d){const _0x24eda2=_0x528acf;return{..._0x4cdf4d,'data':pe(_0x225c3b,_0x4cdf4d[_0x24eda2(0x325)])};}function fe(_0xd11733,_0xdeffaf){const _0x1666b6=_0x528acf;let _0xde6810=_0xdeffaf['data'];return{..._0xdeffaf,'data':{..._0xde6810,'changesets':_0xde6810[_0x1666b6(0x18d)]['map'](_0x3e5a4e=>(0x0,e[_0x1666b6(0x293)])(pe(_0xd11733,(0x0,e['parseProtocolChangeset'])(_0x3e5a4e))))}};}function pe(_0x47b186,_0x3d953c){const _0x1654ac=_0x528acf;return me(_0x47b186)[_0x1654ac(0x32d)](_0x3d953c,he(_0x47b186));}function me(_0x462759){const _0x1961f0=_0x528acf;if(!_0x462759[_0x1961f0(0x2f0)])throw Error(_0x1961f0(0x3af));return _0x462759['changeset'];}function he(_0x3be285){const _0x46fcf5=_0x528acf;return{'localUnitId':_0x3be285['localUnitId'],'unitType':_0x3be285[_0x46fcf5(0x37d)],'target':_0x3be285[_0x46fcf5(0x245)]};}let ge=function(_0x229ec6){const _0x131e7d=_0x528acf;return _0x229ec6[_0x229ec6[_0x131e7d(0x3ef)]=0x0]=_0x131e7d(0x3ef),_0x229ec6[_0x229ec6['JOINING']=0x1]=_0x131e7d(0x344),_0x229ec6[_0x229ec6[_0x131e7d(0x1fe)]=0x2]='OFFLINE',_0x229ec6[_0x229ec6['ONLINE']=0x3]=_0x131e7d(0x143),_0x229ec6;}({});const _e={[a[_0x528acf(0x1a6)]['FAIL']]:_0x528acf(0x336),[a[_0x528acf(0x1a6)]['JOIN_ROOM_FULL']]:_0x528acf(0x253),[a[_0x528acf(0x1a6)][_0x528acf(0x304)]]:'session.room-not-exists',[a[_0x528acf(0x1a6)][_0x528acf(0x2ec)]]:_0x528acf(0x1ad),[a[_0x528acf(0x1a6)][_0x528acf(0x198)]]:'session.room-cnt-exceeds'};let ve=class extends t[_0x528acf(0x1b1)]{get[_0x528acf(0xfd)](){const _0x118535=_0x528acf;return this[_0x118535(0x2b1)][_0x118535(0x193)]();}constructor(_0x2a8fbc,_0x2a8aba,_0x5dc8a7,_0x503c28,_0x1f1b42,_0x4a026d,_0x59e5fb,_0x54b609){const _0x550209=_0x528acf;super(),this[_0x550209(0x1b9)]=_0x2a8fbc,this[_0x550209(0x320)]=_0x5dc8a7,this['_configService']=_0x503c28,this[_0x550209(0x39a)]=_0x1f1b42,this[_0x550209(0x3bb)]=_0x4a026d,this[_0x550209(0x102)]=_0x59e5fb,this[_0x550209(0x361)]=_0x54b609,g(this,_0x550209(0x2b1),new i[(_0x550209(0x1ef))](0x0)),g(this,_0x550209(0x341),this[_0x550209(0x2b1)][_0x550209(0x1db)]()),g(this,_0x550209(0x29a),new i[(_0x550209(0x1bf))]()),g(this,'event$',this['_event$'][_0x550209(0x1db)]()),g(this,_0x550209(0x377),void 0x0),g(this,_0x550209(0x285),void 0x0),g(this,_0x550209(0x180),void 0x0),g(this,'_shouldReportTelemetry',!0x1),g(this,_0x550209(0x23a),null),this[_0x550209(0x1a3)]=!!this[_0x550209(0x361)],_0x2a8aba[_0x550209(0x3cf)]((0x0,i[_0x550209(0x25a)])(this[_0x550209(0x2b0)]))[_0x550209(0x367)](_0x455567=>{const _0x4cdf18=_0x550209;if(_0x455567!==void 0x0){if(this[_0x4cdf18(0x377)]=_0x455567,_0x455567)this[_0x4cdf18(0x251)](_0x455567),this[_0x4cdf18(0x285)]=_0x455567['message$']['subscribe'](_0x26aafb=>{const _0x2bec49=_0x4cdf18;_0x26aafb['routeKey']===this[_0x2bec49(0x1b9)]['target'][_0x2bec49(0x236)]&&this['_onCombEvent'](_0x26aafb);});else{var _0x1cb097;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x4cdf18(0x2b1)][_0x4cdf18(0x307)](0x2),(_0x1cb097=this[_0x4cdf18(0x285)])==null||_0x1cb097[_0x4cdf18(0x282)](),this['_socketMessageSubscription']=null;}}});}[_0x528acf(0x376)](){const _0x4f6f75=_0x528acf;var _0x4a1ae3;return((_0x4a1ae3=this['_socket'])==null?void 0x0:_0x4a1ae3[_0x4f6f75(0x2c4)])??null;}[_0x528acf(0x1fb)](){const _0x135909=_0x528acf;super['dispose'](),this['close'](),this[_0x135909(0x2b0)][_0x135909(0x307)](),this[_0x135909(0x2b0)][_0x135909(0x13b)]();}[_0x528acf(0x11c)](){const _0x3a73cd=_0x528acf;var _0x5df8d8;this[_0x3a73cd(0x2a0)](),(_0x5df8d8=this['_socket'])==null||_0x5df8d8[_0x3a73cd(0x2ef)]({'cmd':a[_0x3a73cd(0x110)][_0x3a73cd(0x427)],'data':{'roomID':this[_0x3a73cd(0x1b9)][_0x3a73cd(0x245)]['unitId']}}),this['_event$'][_0x3a73cd(0x13b)](),this['_sessionStatus$'][_0x3a73cd(0x13b)]();}['_onCombEvent'](_0x3bddcc){const _0x4d98aa=_0x528acf;_0x3bddcc[_0x4d98aa(0x138)]===a[_0x4d98aa(0x110)][_0x4d98aa(0x22f)]?this[_0x4d98aa(0x3bd)](_0x3bddcc):_0x3bddcc['cmd']===a[_0x4d98aa(0x110)][_0x4d98aa(0x398)]&&this[_0x4d98aa(0x340)](_0x3bddcc);}[_0x528acf(0x251)](_0x4d1dc6){const _0x5abf8f=_0x528acf;this[_0x5abf8f(0x2b1)][_0x5abf8f(0x307)](0x1),_0x4d1dc6[_0x5abf8f(0x2ef)]({'cmd':a[_0x5abf8f(0x110)][_0x5abf8f(0x22f)],'routeKey':this[_0x5abf8f(0x1b9)][_0x5abf8f(0x245)][_0x5abf8f(0x236)],'routeType':'','data':{'rooms':[{'roomID':this['_identity']['target']['unitId']}]}});}[_0x528acf(0x3bd)](_0x45fa50){const _0x34c680=_0x528acf;var _0x37f401;if(_0x45fa50[_0x34c680(0x381)]in _e){this[_0x34c680(0x102)]['emitEvent']({'id':_0x34c680(0x1ab),'data':_e[_0x45fa50[_0x34c680(0x381)]]}),this[_0x34c680(0x2b1)][_0x34c680(0x307)](0x2);return;}this[_0x34c680(0x2b1)][_0x34c680(0x307)](0x3);let _0x294313=(_0x37f401=_0x45fa50[_0x34c680(0x325)][_0x34c680(0x1c2)][this[_0x34c680(0x1b9)][_0x34c680(0x245)]['unitId']])==null?void 0x0:_0x37f401[_0x34c680(0x419)];_0x294313&&_0x294313[_0x34c680(0x2d9)](_0x490ba0=>this[_0x34c680(0x39a)][_0x34c680(0x205)](this[_0x34c680(0x1b9)][_0x34c680(0x313)],_0x490ba0));}[_0x528acf(0x340)](_0x12fd04){const _0x37510b=_0x528acf;try{let _0x1b2d6b=ce(this[_0x37510b(0x1b9)],_0x12fd04[_0x37510b(0x325)]);for(let _0x463aaf of _0x1b2d6b)switch(_0x463aaf[_0x37510b(0x1f0)]){case e[_0x37510b(0x330)][_0x37510b(0x1d0)]:this[_0x37510b(0x29d)](_0x463aaf),this[_0x37510b(0x29a)]['next'](_0x463aaf);break;case e['CollaborationEvent'][_0x37510b(0x131)]:this['_onUserLeave'](_0x463aaf),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x41f)]:case e[_0x37510b(0x330)][_0x37510b(0x2bf)]:this[_0x37510b(0x17e)](),this[_0x37510b(0x106)](),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x1d5)]:this[_0x37510b(0x320)][_0x37510b(0x2d2)](_0x37510b(0x324)+JSON[_0x37510b(0x29e)](_0x463aaf)),this['_event$'][_0x37510b(0x307)](_0x463aaf);break;case e[_0x37510b(0x330)][_0x37510b(0x41e)]:this[_0x37510b(0x3bb)]['onCommentUpdate'](_0x463aaf['data']),this[_0x37510b(0x29a)][_0x37510b(0x307)](_0x463aaf);break;default:this['_event$']['next'](_0x463aaf);}}catch(_0x4a5269){this['_logService'][_0x37510b(0x2d2)](_0x4a5269,_0x12fd04);}}[_0x528acf(0x29d)](_0x5c01b9){const _0x326ee1=_0x528acf;this[_0x326ee1(0x39a)][_0x326ee1(0x205)](this['_identity'][_0x326ee1(0x313)],_0x5c01b9[_0x326ee1(0x325)]);}[_0x528acf(0x113)](_0x22d499){const _0x1b254f=_0x528acf;this[_0x1b254f(0x39a)]['removeMember'](this['_identity'][_0x1b254f(0x313)],_0x22d499[_0x1b254f(0x325)][_0x1b254f(0x2c4)]);}async[_0x528acf(0x2ef)](_0xbfe90b,_0x313a18){const _0x1ae583=_0x528acf;if(this['sessionStatus']!==0x3||!this[_0x1ae583(0x377)])throw Error(_0x1ae583(0x25d));try{let _0x346aed=se(this[_0x1ae583(0x1b9)],_0xbfe90b);_0x346aed['eventID']===e[_0x1ae583(0x330)][_0x1ae583(0x1a7)]&&(this['_scheduleCollaborationTimeoutTimer'](),this['_startTelemetryCollaborationNewChangeset'](_0x346aed)),this['_socket'][_0x1ae583(0x2ef)]({'cmd':a['CombCmd'][_0x1ae583(0x37e)],'routeKey':this['_identity']['target'][_0x1ae583(0x236)],'routeType':'','data':_0x346aed});}catch(_0x2fc94b){this[_0x1ae583(0x320)]['error'](_0x2fc94b);}}[_0x528acf(0x269)](){const _0xfbaef8=_0x528acf;this[_0xfbaef8(0x180)]=setTimeout(()=>{const _0x32d877=_0xfbaef8;this[_0x32d877(0x180)]=null,this[_0x32d877(0x102)][_0x32d877(0x237)]({'id':_0x32d877(0x194)});},this['_configService'][_0xfbaef8(0x25f)]('HEARTBEAT_TIMEOUT')??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x17566e=_0x528acf;this[_0x17566e(0x180)]&&=(clearTimeout(this[_0x17566e(0x180)]),null);}[_0x528acf(0x209)](_0x18f5e9){const _0x3b804d=_0x528acf;if(!this[_0x3b804d(0x1a3)])return;let {data:_0x1986eb}=_0x18f5e9,{unitID:_0x50d4ef,changeset:_0x57a3db}=_0x1986eb,{mutations:_0x9d6c0b,type:_0x3d7ef6}=_0x57a3db;this[_0x3b804d(0x23a)]={'unitId':_0x50d4ef,'type':_0x3d7ef6,'startTime':performance[_0x3b804d(0x107)](),'stopTime':0x0,'duration':0x0,'size':te(_0x9d6c0b)};}['_stopTelemetryCollaborationNewChangeset'](){const _0xb5039d=_0x528acf;if(this[_0xb5039d(0x1a3)]){if(!this['_telemetryInfo']){this['_logService']['error']('[CollaborationSession]',_0xb5039d(0x3f1));return;}this[_0xb5039d(0x23a)][_0xb5039d(0x303)]=performance['now'](),this[_0xb5039d(0x23a)]['duration']=this[_0xb5039d(0x23a)]['stopTime']-this['_telemetryInfo']['startTime'],this[_0xb5039d(0x361)][_0xb5039d(0x160)](_0xb5039d(0x393),this[_0xb5039d(0x23a)]),this['_telemetryInfo']=null;}}[_0x528acf(0x2a0)](){const _0x3a92b3=_0x528acf;this[_0x3a92b3(0x23a)]=null;}};ve=y([v(0x2,t[_0x528acf(0x30e)]),v(0x3,t[_0x528acf(0x295)]),v(0x4,(0x0,t[_0x528acf(0x17f)])(b)),v(0x5,(0x0,t[_0x528acf(0x17f)])(ae)),v(0x6,(0x0,t[_0x528acf(0x17f)])(_)),v(0x7,(0x0,t[_0x528acf(0x3ad)])(o[_0x528acf(0x371)]))],ve);const x=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x41a));function ye(_0x4e641c){return'unit-cache-'+_0x4e641c;}function be(_0x402c93){const _0x4e2c81=_0x528acf;let {unitID:_0xb22f3e,mutations:_0x2c8104}=_0x402c93;return{'unitId':_0xb22f3e,'subUnitId':_0x2c8104[_0x4e2c81(0x347)]>0x0?_0x2c8104[0x0][_0x4e2c81(0x351)][_0x4e2c81(0x311)]:null};}let S=class{constructor(_0x32ab0f,_0x50b2e3,_0xb13655){const _0x43686b=_0x528acf;this[_0x43686b(0x1d6)]=_0x32ab0f,this['_transformService']=_0x50b2e3,this[_0x43686b(0x10e)]=_0xb13655;}[_0x528acf(0x2f2)](_0x3f5269){const _0x4cde07=_0x528acf;var _0x30d051,_0x16f665;let _0x381a16=this[_0x4cde07(0x1d6)][_0x4cde07(0x1b0)](r[_0x4cde07(0x26f)]),{unitId:_0x1b6194,subUnitId:_0x5a702a}=be(_0x3f5269),_0x5dd7f9=_0x381a16==null?void 0x0:_0x381a16[_0x4cde07(0x135)](_0x1b6194)['getCurrentSelections'](),_0x16bef3=(_0x30d051=this[_0x4cde07(0x10e)][_0x4cde07(0x38b)](_0x1b6194))==null||(_0x30d051=_0x30d051[_0x4cde07(0x11d)]())==null?void 0x0:_0x30d051[_0x4cde07(0x127)]();if(_0x5dd7f9['length']===0x0||!_0x1b6194||!_0x5a702a)return;let _0x34816e=[{'id':r[_0x4cde07(0x413)]['id'],'params':{'unitId':_0x1b6194,'subUnitId':_0x16bef3,'selections':t['Tools']['deepClone'](_0x5dd7f9)}}],_0x338ce8=this[_0x4cde07(0x414)][_0x4cde07(0x2d4)](_0x3f5269,_0x34816e);if(!(0x0,e[_0x4cde07(0x18a)])(_0x338ce8))throw _0x338ce8[_0x4cde07(0x2d2)];let _0x22f9fd=(_0x16f665=_0x338ce8[_0x4cde07(0x3a6)][0x0])==null||(_0x16f665=_0x16f665[_0x4cde07(0x351)])==null?void 0x0:_0x16f665['selections'];if(Array[_0x4cde07(0x1f3)](_0x22f9fd)&&_0x22f9fd[_0x4cde07(0x347)]){if(_0x22f9fd['length']===_0x34816e[0x0][_0x4cde07(0x351)][_0x4cde07(0x185)][_0x4cde07(0x347)]&&_0x22f9fd[_0x4cde07(0x1f6)]((_0x4e762f,_0xd96bfd)=>t[_0x4cde07(0x3b1)]['equals'](_0x4e762f['range'],_0x34816e[0x0][_0x4cde07(0x351)][_0x4cde07(0x185)][_0xd96bfd]['range'])))return;this[_0x4cde07(0x1d6)][_0x4cde07(0x1b0)](t[_0x4cde07(0x14e)])[_0x4cde07(0x2cc)](r[_0x4cde07(0x413)]['id'],{'unitId':_0x1b6194,'subUnitId':_0x16bef3,'selections':_0x22f9fd});}}};S=y([v(0x0,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x1,e[_0x528acf(0x27c)]),v(0x2,t[_0x528acf(0x3a7)])],S);const C=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x411));let xe=function(_0x45b270){const _0x4b3968=_0x528acf;return _0x45b270[_0x45b270['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4b3968(0x244),_0x45b270[_0x45b270['OTHER_CLIENTS_EDITING']=0x1]=_0x4b3968(0x225),_0x45b270;}({});function Se(_0x4ae883){const _0x308dd9=_0x528acf;var _0x5bb35e;return!!((_0x5bb35e=_0x4ae883['params'])!=null&&_0x5bb35e[_0x308dd9(0x1a9)]);}const Ce=new Set([r[_0x528acf(0x2b5)]['id']]),we=new Set([c[_0x528acf(0x25c)]['id'],c[_0x528acf(0x35e)]['id'],c[_0x528acf(0x167)]['id'],c[_0x528acf(0x331)]['id']]);function Te(_0x6f17ac,_0x5bb356=Ce){const _0x1877c5=_0x528acf;let _0x187a32=[];for(let _0xa7a34f of _0x6f17ac){if(_0x5bb356['has'](_0xa7a34f['id'])){if(_0x187a32['length']>0x0)break;_0x187a32['push'](_0xa7a34f);break;}if(Se(_0xa7a34f)){if(_0x187a32[_0x1877c5(0x347)]>0x0)break;_0x187a32[_0x1877c5(0x19e)](_0xa7a34f);break;}_0x187a32[_0x1877c5(0x19e)](_0xa7a34f);}return _0x187a32;}function w(_0x3cbc35,_0x3252c0,_0x435b13,_0xe043e7,_0x43a80b){const _0x11274b=_0x528acf;let _0x2bddad=Te(_0x3cbc35),_0x5c58dc=_0x43a80b[_0x11274b(0x26a)](),_0x218ac8=(_0x5c58dc==null?void 0x0:_0x5c58dc[_0x11274b(0x2af)])??_0x11274b(0x3e5),_0xa77322=(_0x5c58dc==null?void 0x0:_0x5c58dc[_0x11274b(0x2c4)])??'unknown';return{'changeset':{'unitID':_0x3252c0,'type':(0x0,e[_0x11274b(0x130)])(_0x435b13[_0x11274b(0x24d)](_0x3252c0)),'baseRev':_0xe043e7[_0x11274b(0x1b2)](_0x3252c0),'revision':0x0,'userID':_0x218ac8,'memberID':_0xa77322,'mutations':_0x2bddad},'pendingMutations':_0x3cbc35['slice'](_0x2bddad['length'])};}function _0x2879(){const _0x55fd41=['/rev/','stopTime','JOIN_ROOM_NOT_EXISTS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','baseRev','next','_onConnectionOpen','/universer-api/user/session-ticket','getFocusedUnit','isPermissionRej','floor','_isPermissionRej','ILogService','onTransformIME','_clearUndo','subUnitId','SheetTransformSelectionsService','localUnitId','saveSheetBlock','Quantity','SheetPermissionInitController','removeMember','includes','getUnitStatus$','_getAPIPrefixPath','c1Prime','endsWith','_permissionService','_localCacheService','DependentOn','_logService','onMissingChangesets','localCacheService','file','save\x20fail\x20reason\x20is\x20','data','_sheetTransformSelectionsService','appendMutation','indexOf','_onConnectionFailed','permissionRejEvent','upload','_waitCount','toLocal','_createInitialState','getLocalCacheKey','CollaborationEvent','RemoveSlidePageMutation','Error\x20on\x20receiving\x20event','constructor','MemberService','apply','session.join-failed','submit\x20changeset\x20error!','getImageSourceCache','_onRemoteRetry','UnitEmbedded','/-/object/list','subject','createInstance','entries','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_onRecvEvent','sessionStatus$','UNIVER_PDF','_getLoginPath','JOINING','_clearRetryConnectingTimer','_docStateChangeManagerService','length','joinEvent','_initMergeInterceptor','incrementRevOfUnit','backupOfflineData','_showConflictNotification','getRoom','touchDependencies','_handler','LIVESHARE_OPERATION','params','IPermissionService','some','OfflineState','_getUploadFileURL','_listenToNetworkCondition','_queuedRemoteChangesets','HTTPRequest','newCsEvent','origin','UPDATE_CURSOR','textEncoder','_clearTimeoutTimer','EnsureSlideMasterPageMutation','pauseCollaboration','_pendingSessions','_telemetryService','\x0aAfter:\x20','collaborators','values','_removeRoom','objectType','subscribe','shareReplay','?url=','Plugin','fetchMiss','socket$','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','LIVESHARE_REQUEST_HOST','signUrlServerUrl','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','ITelemetryService','HEARTBEAT_TIMEOUT','FileSource','close$','1192MYHqWv','getMemberID','_socket','FetchingMissState','onStateChange','toggleOffline','univer-pro.collaboration-client-adapter-service','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','unitType','INGEST','_pendingMutations','src','code','isInternalEditorID','connection\x20error','fetching\x20missing\x20changesets\x20from\x20','collaMsg','collaboration-client.auth.needGotoLoginAlert','enableAuthServer','location','_singleActiveUnitService','message$','getUnit','_collabSessionService','getUploadOptions','putCollaborators','onSyncEditingCollabCursor','LIVESHARE_NEW_HOST','_updateState','unitInfo$','collaboration_new_changeset','\x20-\x20','_sendingTimer','avatar','onMissedChangesetFetched','RECV','4877596MBTiYB','_memberService','getMember','CONFLICT','_emitMembers','put','commentUpdate$','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','CompressMutationService','disposeWithMe','default','decorate','b64DecodeUnicode','m2Prime','IUniverInstanceService','RETRY_CONNECTING_MAX_COUNT_KEY','sort','loginUrlKey','_getSignURL','add','Optional','timeoutTimer','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','ICollaborationClientAdapterService','Rectangle','prototype','x-univer-host','collaboratorID','IMentionIOService','updatePermissionObjEvent','_isEchoedAwaitingChangeset','MentionType','socketMessageSubscription','/block/','_commentService','WorkbookEditablePermission','_onJoinRoomEvent','UniverNetworkPlugin','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','init','_resendTimeout','fetchThroughInterceptors','title','_config','_onMessage','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','csRejEvent','CollaborationStatus','DRAWING_IMAGE_ALLOW_IMAGE_LIST','Module','[CollaborationEntity]','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','_tryEnsureSocket','packageName','pipe','{fileID}','[CollaborationSessionService]:\x20socket\x20error','_onConflict','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','COMPRESS_MUTATION_SEND','change$','BaseCollaborationEntity','href','ThresholdInterceptorFactory','awaiting','resolveUnit','getUnitOnRev','toDisposable','getImage','_registerDependencies','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','endpointKey','saveSnapshot','not_collab','commentUpdateEvent','_toggleOffline','unknown','update','_socketChannels','updatePermissionPoint','serializeCombRequest','getInterceptPoints','number','[DataLoaderService]','catch','LIVESHARE_TERMINATE','IDLE','HTTPService','telemetry\x20info\x20is\x20not\x20initialized','1071354PgVMIM','_sessions','requestParams','onTransformSelections','sendChangesetTimeout','_imageSourceCache','onRemoteRej','_schedule','MUTATION','[PendingState]:\x20received\x20acknowledgement.','clear','reverse','getAttachmentUrl','candidateSocket','generateRandomId','onTransformRemoteChangesetByIMECache','authzUrl','_clearScheduledTask','enableOfflineEditing','loadBase','unitId\x20is\x20not\x20found','_transformAndApplyRemoteChangeset','closeSession','reject','isTransformChangesetsSuccess','reconnect','members$','POST','docStateChange$','PSEUDO_FETCH_MISSING_RESULT','COMPRESS_MUTATION_APPLY','univer-pro.collaboration-client.single-active-unit-service','_resendWithTimeout','SetSelectionsOperation','_transformService','override','_univerInstanceService','DisposableCollection','_unitLoaded$','members','collaboration-client.local-cache-service','_incrementRevisionNumber','iterator','createCollaborator','COMMENT_UPDATE','CHANGESET_ACK','&assign=','retryConnectingTimer','status$','_revisionService','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','PERMISSION_REJ','LEAVE','_configService','copyFileMeta','/universer-api/snapshot','sessionStatus','_transformStateCache','deserializeToCombResponse','awaiting_with_pending','_getSendChangesetTimeout','_collaborationUIEventService','_onLocalMutation','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','CollaborationImageIoService','_clearCollaborationTimeoutTimer','now','_clearRedo','setWaitCount','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','registerHTTPInterceptor','_remoteChangesetQueue','transformChangesets','_instanceService','patch','CombCmd','UNIVER_SLIDE','toggleOnline','_onUserLeave','open$','event$','shouldCloseConn','cbc','fromCollab','\x20in\x20_schedule.','[UniverCollaborationClientPlugin]','IAttachmentIoService','close','getActiveSheet','_unlockTransition','UNISCRIPT_RUN','SYNCED','action','socket\x20close','_createHandler','_maxTotalRetryTimeout','loadUnitOfRevision','snapshot','getSheetId','workbook','_initRequestHeader','/object/','__Key__','NOT_COLLAB','5KzHtSW','mergeOverrideWithDependencies','_transformUndoredo','mapDocumentTypeToUniverInstanceType','USERS_LEAVE','SOCKET_FAILED','method','_transformIMECache','getWorkbookSelections','originalMeta','objects','cmd','PendingState','getCollabEntity','complete','interceptor','joinRsp','_resendTimer','_cfgEnableObjInherit','body','EmptyMutationInfo','list','ONLINE','setConfig','CollaborationSession','RETRY_CONNECTING_MAX_COUNT','PERMISSION_DENIED','_waitForHeartbeatResponse','_roomCreated$','hasOwnProperty','toString','univer-pro.collaboration-client.network-condition.service','_replayCachedMutations','ICommandService','ISnapshotServerService','onStarting','29136708TnemfT','entityInit$','1233014BOEafq','transformUndoRedo','IAuthzIoService','CollaborationController','function','_tryReconnect','_changesetReqId','UNIVER_BASE','mutations','_transformSelections','encode','getCfgEnableObjInherit','[PendingState]:\x20unhandled\x20univer\x20type:\x20','capture','socketService','conflict','enableSingleActiveInstanceLock','from','collabSubmitChangesetUrl','delete','MoveSlidePageMutation','find','[FetchMissState]','LOCAL_CACHE_INTERVAL','ISingleActiveUnitService','routeKey','CollaborationAttachmentIoService','SessionStatus','UNIVER_COLLABORATION_CLIENT_PLUGIN','object','_createSocket','onload','NEW_CHANGESETS','_entityInit$','replace','retryCount','DEFAULT_FILE_NAME','_sessionChannels','unitID','OTHER_CLIENT_EDITING','take','reqId','_replaceFileID','_stopTelemetryCollaborationNewChangeset','Inject','_collaborationTimeoutTimer','_getCurrentRevision','_sender','confirm','loadUnit','selections','_transformRemoteChangesetByIMECache','/unit/','_onFetchMissResult','UUID','isTransformMutationsWithChangesetSuccess','set','headers','changesets','[PendingState]:\x20received\x20rejection.','collaboration-client.config','toRemote','type','utf8ToBytes','getValue','SUBMIT_CHANGESET_TIMEOUT','startsWith','batchAllowed','DEFAULT_WS_SESSION_TICKET_URL','GLOBAL_ROOMS_CNT_EXCEEDS','LocaleService','_adapter','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverLicensePlugin','Injector','push','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','_updateLocalCache','UserManagerService','retryConnectingInterval','_shouldReportTelemetry','fetch_missing','/collaborator','CmdRspCode','SUBMIT_CHANGESET','_initUnitPermissionChange','__splitChunk__','_commentUpdate$','JOIN_ROOM_FAILED','ImageUploadStatusType','session.room-permission-denied','[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.','_type','get','RxDisposable','getCurrentRevOfUnit','/universer-api/snapshot/','cfgEnableObjInherit','objectActions','CommandType','_substituteRedoStack','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_identity','session','getUnitId','_decreaseWaiting','_hasSessionsForEndpoint','_snapshotService','Subject','name','MergeInterceptorFactory','roomInfos','merge','error$','compose','_acknowledgeAwaitingIfReady','parse','_entities','tables','call','_clearHeartbeatTimer','_getDownloadEndpointURL','RichTextEditingMutation','localeService','DocCollaborationEntity','USERS_ENTER','requireSession','ErrorCode','1.0.0-beta.0','_getConfig','MSG_FOR_ERROR','_injector','socketReady','resolveWithBasePath','deleteCollaborator','@univerjs-pro/collaboration-client','asObservable','getTypeOfUnitAdded$','_members','LIVESHARE_FETCH_OPERATIONS','CommentService','filter','refreshPermission','ImageSourceType','500070dvlzQu','status','_networkConditionService','SNAPSHOT_URL_KEY','HEARTBEAT_INTERVAL_KEY','_startCollaboration','SUCCUSS','_createInitialStateImpl','UNIVER_BOARD','getTime','_eventService','[OfflineState]:\x20received\x20acknowledgement.','BehaviorSubject','eventID','CollaborationSessionService','_awaitingChangeset','isArray','map','parseProtocolChangeset','every','/universer-api/stream/file/upload','sendHeartbeatTimer','&source=','_initDependencies','dispose','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','IUndoRedoService','OFFLINE','_httpService','addImageSourceCache','delay','setCfgEnableObjInherit','_state','getSheetBlock','updateMember','_collaborationSessionService','PdfCollaborationEntity','append','_startTelemetryCollaborationNewChangeset','MentionIoHttpService','/role','_status$','unit','_localeService','getTypeOfUnitDisposed$','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','onRemoteChangeset','_change$','setShowComponents','UNIVER_DOC','/universer-api/authz','ERROR_IMAGE','[OfflineState]:\x20received\x20changeset.','_getAPIPrefix','ws://127.0.0.1:8000/universer-api/comb/connect','loadBoard','missingChangesets','_syncEditingCollabCursor','_toggleOnline','toStringTag','sheets','CollaborationSocketService','_updateStatus','_transitionLocked','_changesetSessionId','_HTTPService','OTHER_CLIENTS_EDITING','_sendHeartbeat','updateOfflineData','_onRemoteChangeset','_redoStacks','_handleRemoteChangesets','_resolveSessionIdentity','_state$','initWorkbookPermissionChange','readAsDataURL','JOIN','editingUnit','_acknowledgeAwaiting','editing\x20status\x20changed\x20to','SnapshotService','_undoRedoService','_getRedoStack','unitId','emitEvent','downloadEndpointUrl','revision','_telemetryInfo','/-/object/-/batch_allowed','socket\x20open.','_checkMissing','Disposable','_exhaustRemoteChangesetQueue','PERSON','createSocket','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','endpoint','NO_OTHER_CLIENTS_EDITING','target','FileId','trim','online$','_transformStack','onSendChangeset','_createSession','post','getUnitType','url','onlyLocal','_init','_joinRoom','_clearLocalCache','session.room-full','PENDING','updateCollaborator','snapshotServerUrl','CollaborativeUndoRedoService','c2Prime','string','takeUntil','SOCKET_FAILED_RETRY','AddSlidePageMutation','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','CollaborationUIEventId','getConfig','_substituteUndoStack','[CollaborationState]:\x20apply\x20error!','allowed','liveShareOperation','debug','UniverCollaborationPlugin','state','fromCharCode','blockRanges','_scheduleCollaborationTimeoutTimer','getCurrentUser','ILocalCacheService','CHANGESET_REJ','registerDependencies','_disableEditing','SheetsSelectionsService','min','pending','LOCAL_CACHE_INTERVAL_KEY','/universer-api/uniscript','UniverInstanceType','leaveEvent','attachment','loadOfflineData','getGlobalObject','ERROR_EXCEED_SIZE','[CollaborationUndoRedoService]','_socketService','ITransformService','JSONX','awaitingChangeset','fetchMissingChangesets','CLOSE_ROOM','uploadFileServerUrl','unsubscribe','splice','resolve','_socketMessageSubscription','isTransformMutationsWithChangesetFailure','then','addHandlerCallback','onTransformRemoteChangesetByStateCache','HELLO','/universer-api/oidc/authpage','_roomMembers','_commandService','saveImage','textRanges','objectID','_submitChangeset','UniverCollaborationClientPlugin','parseChangesetToProtocol','AwaitingWithPendingState','IConfigService','338511QMXgfH','getSnapshotAPIPath','_getUndoStack','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_event$','getCollabEntity$','FETCH_MISSING','_onUserJoin','stringify','ERROR_IMAGE_TYPE','_throwTelemetryCollaborationNewChangeset','responseType','_fetchMissChangesets','[CollaborationSessionService]','resend','_getSocketChannel','/universer-api/file/{fileID}/sign-url','concatMap','HEARTBEAT_INTERVAL','_transformRemoteChangesetByStateCache','?size=','createIdentifier','_initCloseConn','_onOffline','_userManagerService','userID','dispose$','_sessionStatus$','/object','focused$','1477fSlcbp','InsertSheetMutation','has','defineProperty','RevisionService','ISocketService','saveAttachment','roles','onRemoteRetry','SHOULD_CLOSE_CONN','disableLocalCache','CHANGESET_SHOULD_RETRY','Failed\x20to\x20update\x20permission\x20point','liveShareNewHost','synced','_members$','memberID','HEARTBEAT','onMutationExecutedForCollab','size','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','sid','_onRemoteRejected','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','executeCommand','encrypt','_executeRemoteChangeset','reduce','DocStateChangeManagerService','_snapshotServerService','error','_unitInfo$','transformMutationsWithChangeset','_lockTransition','_applyRemoteChangeset','infoRsp','resourceIDs','forEach','onTransformState','/allowed','_handlerCallback','[OfflineState]:\x20received\x20rejection.','_acknowledgedAwaitingRevision','UNIVER_SHEET','onRemoteAck','OPTIONAL','INetworkConditionService','ReplaySubject','Univer','loadDoc','HEARTBEAT_TIMEOUT_KEY','_undoStacks','csAckEvent','[SyncedState]:\x20received\x20rejection.','loadPdf','&to=','JOIN_ROOM_PERMISSION_DENIED','result','symbol','send','changeset','AWAITING_WITH_PENDING','transformSelections','_collaborationPaused','_onRemoteACK','SheetCollaborationEntity','_scheduleCompleteTimestamp','BoardCollaborationEntity','actions','_compressMutationService','FETCH_MISS','text-x','_getCtorByUniverInstanceType','accept','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','CollaborationEntity','create','slice'];_0x2879=function(){return _0x55fd41;};return _0x2879();}const Ee=w;function De(_0x375c9a,_0x112bee,_0x161abc,_0x595247,_0xcf886e){const _0x44f5d3=_0x528acf;let _0x2cf6a9=Te(_0x375c9a,we),_0xed3166=_0xcf886e[_0x44f5d3(0x26a)](),_0x11ab08=(_0xed3166==null?void 0x0:_0xed3166['userID'])??_0x44f5d3(0x3e5),_0x1040c9=(_0xed3166==null?void 0x0:_0xed3166[_0x44f5d3(0x2c4)])??_0x44f5d3(0x3e5);return{'changeset':{'unitID':_0x112bee,'type':(0x0,e[_0x44f5d3(0x130)])(_0x161abc[_0x44f5d3(0x24d)](_0x112bee)),'baseRev':_0x595247[_0x44f5d3(0x1b2)](_0x112bee),'revision':0x0,'userID':_0x11ab08,'memberID':_0x1040c9,'mutations':_0x2cf6a9},'pendingMutations':_0x375c9a[_0x44f5d3(0x301)](_0x2cf6a9[_0x44f5d3(0x347)])};}function Oe(_0x837a43,_0x2996cb,_0x4ec1fd,_0x3b854e,_0x2c35da){const _0x33238f=_0x528acf;let _0x4218b2=_0x837a43[_0x33238f(0x2cf)]((_0x23a23c,_0x2bc545)=>{const _0x55f8ae=_0x33238f;let _0x5d902d=_0x23a23c[_0x23a23c[_0x55f8ae(0x347)]-0x1],{id:_0x52957e}=_0x5d902d??{},{id:_0x502f93,type:_0x29662b}=_0x2bc545,_0x94ddfb=_0x2bc545['params'];if(_0x52957e&&_0x52957e!==_0x502f93)throw Error(_0x55f8ae(0x2fe)+_0x52957e+_0x55f8ae(0x394)+_0x502f93+'.');if(!_0x5d902d)return[{'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb['unitId'],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':_0x94ddfb[_0x55f8ae(0x2f8)]}}];let _0x5457ac=_0x5d902d[_0x55f8ae(0x351)];return ke(_0x5457ac,_0x94ddfb)?[..._0x23a23c[_0x55f8ae(0x301)](0x0,-0x1),{..._0x5d902d,'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb[_0x55f8ae(0x236)],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':t[_0x55f8ae(0x27d)][_0x55f8ae(0x1c5)](_0x5457ac[_0x55f8ae(0x2f8)],_0x94ddfb[_0x55f8ae(0x2f8)])}}]:[..._0x23a23c,{'id':_0x502f93,'type':_0x29662b,'params':{'unitId':_0x94ddfb[_0x55f8ae(0x236)],'textRanges':_0x94ddfb[_0x55f8ae(0x28f)],'actions':_0x94ddfb[_0x55f8ae(0x2f8)]}}];},[]),_0x39b08f=_0x2c35da['getCurrentUser'](),_0x4d581a=(_0x39b08f==null?void 0x0:_0x39b08f['userID'])??_0x33238f(0x3e5),_0x293a3d=(_0x39b08f==null?void 0x0:_0x39b08f[_0x33238f(0x2c4)])??_0x33238f(0x3e5);return{'changeset':{'unitID':_0x2996cb,'type':(0x0,e[_0x33238f(0x130)])(_0x4ec1fd['getUnitType'](_0x2996cb)),'baseRev':_0x3b854e['getCurrentRevOfUnit'](_0x2996cb),'revision':0x0,'userID':_0x4d581a,'memberID':_0x293a3d,'mutations':_0x4218b2},'pendingMutations':_0x837a43[_0x33238f(0x301)](_0x837a43[_0x33238f(0x347)])};}function ke(_0x2c4ecd,_0x4ce8b5){const _0x199aa6=_0x528acf;return!Ae(_0x2c4ecd)&&!Ae(_0x4ce8b5)&&je(_0x2c4ecd[_0x199aa6(0x2f8)],_0x4ce8b5['actions']);}function Ae(_0x2340d7){return _0x2340d7['isCompositionEnd']!==void 0x0;}function je(_0x41d327,_0x5ee523){return Me(_0x41d327)&&Me(_0x5ee523)&&!Pe(_0x41d327)&&!Pe(_0x5ee523)&&!Ne(_0x41d327)&&!Ne(_0x5ee523);}function Me(_0x14f9e1){const _0x1205da=_0x528acf;return Fe(_0x14f9e1)['some'](_0x33b518=>T(_0x33b518)&&_0x33b518['et']===_0x1205da(0x2fb));}function Ne(_0x506205){const _0x41b22d=_0x528acf;return Fe(_0x506205)[_0x41b22d(0x353)](_0x42439a=>Array[_0x41b22d(0x1f3)](_0x42439a)||typeof _0x42439a==_0x41b22d(0x259)||typeof _0x42439a==_0x41b22d(0x3eb));}function Pe(_0x791f53){const _0x4dea94=_0x528acf;return Fe(_0x791f53)[_0x4dea94(0x353)](_0x12e657=>!T(_0x12e657)||_0x12e657['et']!==_0x4dea94(0x2fb)||!Array[_0x4dea94(0x1f3)](_0x12e657['e'])?!0x1:_0x12e657['e']['some'](_0x4f5593=>!T(_0x4f5593)||!T(_0x4f5593[_0x4dea94(0x140)])?!0x1:Object[_0x4dea94(0x3b2)][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593['body'],_0x4dea94(0x1c9))||Object[_0x4dea94(0x3b2)][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593[_0x4dea94(0x140)],'columnGroups')||Object['prototype'][_0x4dea94(0x14a)][_0x4dea94(0x1ca)](_0x4f5593[_0x4dea94(0x140)],_0x4dea94(0x268))));}function Fe(_0x500ed5){const _0xf6d384=_0x528acf;if(!Array['isArray'](_0x500ed5))return[];let _0x4947e5=_0x500ed5['includes'](_0xf6d384(0x140))?_0x500ed5:_0x500ed5['find'](_0x43536e=>Array[_0xf6d384(0x1f3)](_0x43536e)&&_0x43536e[_0xf6d384(0x318)](_0xf6d384(0x140)));if(!Array[_0xf6d384(0x1f3)](_0x4947e5))return[];let _0x42078d=_0x4947e5[_0xf6d384(0x328)](_0xf6d384(0x140));return _0x42078d===-0x1?[]:_0x4947e5[_0xf6d384(0x301)](_0x42078d+0x1);}function T(_0x4c6ac8){const _0xa2b76f=_0x528acf;return typeof _0x4c6ac8==_0xa2b76f(0x170)&&!!_0x4c6ac8&&!Array[_0xa2b76f(0x1f3)](_0x4c6ac8);}function Ie(_0xa3c632,_0x4d0055){const _0x2b4e84=_0x528acf;let _0x49d420=new i[(_0x2b4e84(0x2e3))](0x1);return setTimeout(()=>_0x49d420[_0x2b4e84(0x307)](_0x4d0055),_0xa3c632),_0x49d420['asObservable']()[_0x2b4e84(0x3cf)]((0x0,i[_0x2b4e84(0x17b)])(0x1));}var Le,Re,ze;let Be=function(_0x3e61b3){const _0x45e160=_0x528acf;return _0x3e61b3[_0x45e160(0x12c)]=_0x45e160(0x3e2),_0x3e61b3[_0x45e160(0x120)]=_0x45e160(0x2c2),_0x3e61b3[_0x45e160(0x254)]='pending',_0x3e61b3['AWAITING']='awaiting',_0x3e61b3[_0x45e160(0x2f1)]=_0x45e160(0x100),_0x3e61b3[_0x45e160(0x2fa)]=_0x45e160(0x1a4),_0x3e61b3['CONFLICT']=_0x45e160(0x162),_0x3e61b3[_0x45e160(0x1fe)]='offline',_0x3e61b3;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x498ecb,_0x4bb260,_0x32a7b0,_0x4731b6,_0x4467b4,_0x32493d,_0x492bce,_0x12303f,_0xb44235){const _0x269d5c=_0x528acf;this[_0x269d5c(0x179)]=_0x498ecb,this[_0x269d5c(0x191)]=_0x4bb260,this[_0x269d5c(0x34f)]=_0x4467b4,this[_0x269d5c(0x28d)]=_0x32493d,this[_0x269d5c(0x234)]=_0x492bce,this[_0x269d5c(0x423)]=_0x12303f,this[_0x269d5c(0x31e)]=_0xb44235,g(this,_0x269d5c(0x1f2),null),g(this,_0x269d5c(0x37f),[]),this[_0x269d5c(0x1f2)]=_0x32a7b0,this[_0x269d5c(0x37f)]=_0x4731b6;}[_0x528acf(0x23d)](_0x373acf){const _0x244490=_0x528acf;let _0x230062=this[_0x244490(0x423)][_0x244490(0x1b2)](this['unitID']);return _0x373acf[_0x244490(0x239)]>_0x230062+0x1?(this[_0x244490(0x34f)][_0x244490(0x321)]({'from':_0x230062,'to':_0x373acf[_0x244490(0x239)]-0x1}),!0x0):!0x1;}[_0x528acf(0x12f)](_0x417467){const _0x4fdf96=_0x528acf;this[_0x4fdf96(0x234)][_0x4fdf96(0x154)](this[_0x4fdf96(0x179)],_0x417467);}[_0x528acf(0x15c)](_0x34716d){const _0x418d65=_0x528acf;var _0x1667cf,_0x3b993c;(_0x1667cf=(_0x3b993c=this['_handler'])[_0x418d65(0x3f5)])==null||_0x1667cf['call'](_0x3b993c,_0x34716d);}[_0x528acf(0x134)](_0x1ceea5){const _0x447536=_0x528acf;var _0x5c203d,_0x5ef042;return(_0x5c203d=(_0x5ef042=this[_0x447536(0x34f)])['onTransformIME'])==null?void 0x0:_0x5c203d[_0x447536(0x1ca)](_0x5ef042,_0x1ceea5);}[_0x528acf(0xfe)](_0x385131){const _0x4097ce=_0x528acf;var _0xc21a1,_0x9fe71c;return(_0xc21a1=(_0x9fe71c=this[_0x4097ce(0x34f)])[_0x4097ce(0x2da)])==null?void 0x0:_0xc21a1[_0x4097ce(0x1ca)](_0x9fe71c,_0x385131);}[_0x528acf(0x186)](_0x225fe4){const _0x17f382=_0x528acf;var _0x4da8f8,_0x29e26d;return((_0x4da8f8=(_0x29e26d=this[_0x17f382(0x34f)])[_0x17f382(0x401)])==null?void 0x0:_0x4da8f8['call'](_0x29e26d,_0x225fe4))??_0x225fe4;}[_0x528acf(0x2a9)](_0x598e7a){const _0xea21fd=_0x528acf;var _0x1b73c2,_0x386c11;return((_0x1b73c2=(_0x386c11=this[_0xea21fd(0x34f)])[_0xea21fd(0x289)])==null?void 0x0:_0x1b73c2[_0xea21fd(0x1ca)](_0x386c11,_0x598e7a))??_0x598e7a;}[_0x528acf(0x21c)](_0x462c97){const _0x26b83f=_0x528acf;if(this[_0x26b83f(0x191)]===t['UniverInstanceType'][_0x26b83f(0x214)]){let {unitID:_0x2218ff,mutations:_0x374ba5,memberID:_0x2adf6f}=_0x462c97,_0x109573=_0x374ba5['length']>0x0?_0x374ba5[0x0][_0x26b83f(0x351)]['textRanges']:[];if(Array[_0x26b83f(0x1f3)](_0x109573)&&_0x109573[_0x26b83f(0x347)]>0x0){var _0xb76a40,_0x5e4fdf;(_0xb76a40=(_0x5e4fdf=this[_0x26b83f(0x34f)])[_0x26b83f(0x38f)])==null||_0xb76a40['call'](_0x5e4fdf,{'unitID':_0x2218ff,'memberID':_0x2adf6f,'textRanges':_0x109573});}}}[_0x528acf(0x1a0)](){const _0x1692ef=_0x528acf;var _0x4c4ae6;(_0x4c4ae6=this[_0x1692ef(0x31e)])==null||_0x4c4ae6[_0x1692ef(0x227)](this[_0x1692ef(0x179)],this[_0x1692ef(0x191)],this[_0x1692ef(0x1f2)],this[_0x1692ef(0x37f)]);}[_0x528acf(0x181)](){const _0x39d002=_0x528acf;return this[_0x39d002(0x423)][_0x39d002(0x1b2)](this[_0x39d002(0x179)]);}[_0x528acf(0x41b)](){const _0x130c21=_0x528acf;this[_0x130c21(0x423)][_0x130c21(0x34a)](this[_0x130c21(0x179)]);}[_0x528acf(0x2ce)](_0x4d7ace){const _0x2de14f=_0x528acf;let _0x161f62=this[_0x2de14f(0x186)](_0x4d7ace);_0x161f62=this['_transformRemoteChangesetByStateCache'](_0x161f62);let _0x25668e=(0x0,t['sequenceExecute'])(_0x161f62[_0x2de14f(0x15b)],this[_0x2de14f(0x28d)],{'fromCollab':!0x0});if(!_0x25668e[_0x2de14f(0x2ed)])throw _0x25668e[_0x2de14f(0x2d2)]instanceof Error?_0x25668e[_0x2de14f(0x2d2)]:Error(_0x25668e[_0x2de14f(0x2d2)]??_0x2de14f(0x261));this[_0x2de14f(0x134)](_0x161f62),this[_0x2de14f(0xfe)](_0x161f62),this[_0x2de14f(0x12f)](_0x4d7ace),this[_0x2de14f(0x15c)](_0x161f62),this[_0x2de14f(0x21c)](_0x161f62),this[_0x2de14f(0x41b)]();}};let D=class extends E{constructor(_0x436b46,_0x570f40,_0x40a612,_0x54a233,_0x40309b,_0x3100da,_0x183d1d,_0x379a7e,_0x2dafd6,_0x5653c6){const _0x24abb7=_0x528acf;super(_0x436b46,_0x570f40,null,[],_0x40a612,_0x183d1d,_0x3100da,_0x54a233,_0x5653c6),this[_0x24abb7(0x1d6)]=_0x40309b,this[_0x24abb7(0x320)]=_0x379a7e,this[_0x24abb7(0x414)]=_0x2dafd6,this[_0x24abb7(0x322)]=_0x5653c6,g(this,_0x24abb7(0x1e4),'synced');}[_0x528acf(0x327)](_0x2f0855){const _0x454c2e=_0x528acf;let _0x553429=this[_0x454c2e(0x1d6)]['createInstance'](O,this['unitID'],this[_0x454c2e(0x191)],[_0x2f0855],this[_0x454c2e(0x34f)]);return _0x553429[_0x454c2e(0x3f9)](),_0x553429[_0x454c2e(0x1a0)](),_0x553429;}[_0x528acf(0x211)](_0x245846){const _0x59effc=_0x528acf;if(this[_0x59effc(0x23d)](_0x245846))return this[_0x59effc(0x1d6)]['createInstance'](N,this['unitID'],this[_0x59effc(0x191)],null,[],null,[_0x245846],this[_0x59effc(0x34f)]);try{let _0x2fd238=this[_0x59effc(0x414)]['transformMutationsWithChangeset'](_0x245846,[e[_0x59effc(0x141)]]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x2fd238)){let {c1Prime:_0x4ce42f}=_0x2fd238;return this['_executeRemoteChangeset'](_0x4ce42f),this;}throw _0x2fd238[_0x59effc(0x2d2)];}catch(_0x44385d){return this[_0x59effc(0x320)][_0x59effc(0x2d2)](_0x44385d),this[_0x59effc(0x3d2)](!0x1);}}['_onConflict'](_0x1ace7b){const _0x4db1c6=_0x528acf;return this['_injector']['createInstance'](j,this[_0x4db1c6(0x179)],this[_0x4db1c6(0x191)],null,[],this[_0x4db1c6(0x34f)],_0x1ace7b);}[_0x528acf(0x2e0)](_0x5542b0){const _0x3d8eb0=_0x528acf;if(_0x5542b0[_0x3d8eb0(0x239)]<=this[_0x3d8eb0(0x181)]())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x592bd8=_0x528acf;throw Error(_0x592bd8(0x2e9));}[_0x528acf(0x2bc)](){return this;}[_0x528acf(0x37a)](){const _0x11d34c=_0x528acf;return this[_0x11d34c(0x1d6)][_0x11d34c(0x33d)](M,this['unitID'],this[_0x11d34c(0x191)],null,[],this[_0x11d34c(0x34f)]);}['toggleOnline'](){return this;}['resend'](){const _0x1750c6=_0x528acf;throw Error(_0x1750c6(0x242));}[_0x528acf(0x36b)](){const _0x3a9db9=_0x528acf;let _0x1afd01=this[_0x3a9db9(0x423)][_0x3a9db9(0x1b2)](this['unitID']);return this[_0x3a9db9(0x34f)]['onMissingChangesets']({'from':_0x1afd01,'to':0x0}),this[_0x3a9db9(0x1d6)]['createInstance'](N,this[_0x3a9db9(0x179)],this[_0x3a9db9(0x191)],null,[],null,[],this[_0x3a9db9(0x34f)]);}};D=y([v(0x3,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x5,t['IUndoRedoService']),v(0x6,t[_0x528acf(0x14e)]),v(0x7,t[_0x528acf(0x30e)]),v(0x8,e['ITransformService']),v(0x9,(0x0,t[_0x528acf(0x3ad)])(x))],D);let O=Le=class extends E{constructor(_0x17014e,_0x32250e,_0x46b3dc,_0x17c797,_0x4934be,_0x2fac22,_0x325635,_0x595237,_0x2f6b69,_0x43c4f5,_0x242770,_0x2722f3,_0x2353e3,_0x5c3bc8){const _0x432951=_0x528acf;super(_0x17014e,_0x32250e,null,_0x46b3dc,_0x17c797,_0x2f6b69,_0x2353e3,_0x2fac22,_0x5c3bc8),this[_0x432951(0x1d6)]=_0x4934be,this['_userManagerService']=_0x325635,this[_0x432951(0x320)]=_0x595237,this[_0x432951(0xfa)]=_0x43c4f5,this[_0x432951(0x414)]=_0x242770,this['_univerInstanceService']=_0x2722f3,g(this,_0x432951(0x1e4),_0x432951(0x271)),g(this,_0x432951(0x2f6),null),g(this,'_sendingTimer',null);}[_0x528acf(0x327)](_0x5cdc84){const _0x42f3c4=_0x528acf;return this[_0x42f3c4(0x37f)][_0x42f3c4(0x19e)](_0x5cdc84),this['_updateLocalCache'](),this;}[_0x528acf(0x211)](_0x444c1b){const _0x1382c7=_0x528acf;if(this[_0x1382c7(0x23d)](_0x444c1b))return this[_0x1382c7(0x403)](),this[_0x1382c7(0x1d6)][_0x1382c7(0x33d)](N,this[_0x1382c7(0x179)],this[_0x1382c7(0x191)],null,this['_pendingMutations'],null,[_0x444c1b],this['_handler']);try{let _0x35ec44=this[_0x1382c7(0x414)][_0x1382c7(0x2d4)](_0x444c1b,this[_0x1382c7(0x37f)]);if((0x0,e[_0x1382c7(0x18a)])(_0x35ec44)){let {c1Prime:_0x15ce32,m2Prime:_0xe7213b}=_0x35ec44;this[_0x1382c7(0x2ce)](_0x15ce32);let _0x40756f=this[_0x1382c7(0x1d6)][_0x1382c7(0x33d)](Le,this[_0x1382c7(0x179)],this[_0x1382c7(0x191)],_0xe7213b,this[_0x1382c7(0x34f)]);this[_0x1382c7(0x403)]();let _0x17a312=new Date()['getTime'](),_0x4d549b=this[_0x1382c7(0x2f6)]?Math['max'](this[_0x1382c7(0x2f6)]-_0x17a312,0x0):this[_0x1382c7(0x101)]();return _0x40756f[_0x1382c7(0x3f9)](_0x4d549b),_0x40756f;}throw _0x35ec44[_0x1382c7(0x2d2)];}catch(_0x5161ec){return this[_0x1382c7(0x320)][_0x1382c7(0x2d2)](_0x5161ec),this[_0x1382c7(0x3d2)](!0x1);}}[_0x528acf(0x2e0)](_0x11662f){const _0xee4d51=_0x528acf;if(_0x11662f[_0xee4d51(0x239)]<=this[_0xee4d51(0x181)]())return this;throw Error(_0xee4d51(0x3fb));}[_0x528acf(0x3f8)](){const _0x190bbc=_0x528acf;throw Error(_0x190bbc(0x18e));}[_0x528acf(0x2bc)](){return this;}['toggleOffline'](){const _0x477d06=_0x528acf;return this['_clearScheduledTask'](),this[_0x477d06(0x1d6)][_0x477d06(0x33d)](M,this[_0x477d06(0x179)],this[_0x477d06(0x191)],null,this[_0x477d06(0x37f)],this[_0x477d06(0x34f)]);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x3f9)](_0x3bee0f){const _0x99cdd9=_0x528acf;let _0x3b8f59=_0x3bee0f??this[_0x99cdd9(0x101)]();this[_0x99cdd9(0x2f6)]=new Date()[_0x99cdd9(0x1ec)]()+_0x3b8f59,this['_sendingTimer']=setTimeout(()=>{const _0xebdfaa=_0x99cdd9;this[_0xebdfaa(0x403)]();let _0x2b2e23=null;switch(this['type']){case t[_0xebdfaa(0x274)][_0xebdfaa(0x2df)]:_0x2b2e23=w(this['_pendingMutations'],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x214)]:_0x2b2e23=this[_0xebdfaa(0x37f)][_0xebdfaa(0x1f6)](_0x2f6bab=>_0x2f6bab['id']===n[_0xebdfaa(0x1cd)]['id'])?Oe(this[_0xebdfaa(0x37f)],this['unitID'],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this['_userManagerService']):w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this['_userManagerService']);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x111)]:_0x2b2e23=De(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x342)]:_0x2b2e23=Ee(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this[_0xebdfaa(0x416)],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t['UniverInstanceType'][_0xebdfaa(0x1eb)]:_0x2b2e23=w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this[_0xebdfaa(0x423)],this[_0xebdfaa(0x2ae)]);break;case t[_0xebdfaa(0x274)][_0xebdfaa(0x15a)]:_0x2b2e23=w(this[_0xebdfaa(0x37f)],this[_0xebdfaa(0x179)],this['_univerInstanceService'],this['_revisionService'],this[_0xebdfaa(0x2ae)]);break;default:throw Error(_0xebdfaa(0x15f)+this[_0xebdfaa(0x191)]+_0xebdfaa(0x119));}let {changeset:_0x59fff6,pendingMutations:_0x269cab}=_0x2b2e23;this[_0xebdfaa(0x34f)][_0xebdfaa(0x24a)](_0x59fff6);let _0x8a8076=_0x269cab[_0xebdfaa(0x347)]?this[_0xebdfaa(0x1d6)][_0xebdfaa(0x33d)](A,this[_0xebdfaa(0x179)],this['type'],_0x59fff6,_0x269cab,this[_0xebdfaa(0x34f)],void 0x0):this[_0xebdfaa(0x1d6)][_0xebdfaa(0x33d)](k,this[_0xebdfaa(0x179)],this['type'],_0x59fff6,this[_0xebdfaa(0x34f)]);_0x8a8076['_updateLocalCache'](),this['_handler'][_0xebdfaa(0x379)](this,_0x8a8076);},_0x3b8f59);}[_0x528acf(0x101)](){const _0x27b14c=_0x528acf;let _0x1c75b3=this[_0x27b14c(0xfa)][_0x27b14c(0x25f)](m);return(_0x1c75b3==null?void 0x0:_0x1c75b3[_0x27b14c(0x3f6)])??0x7d0;}[_0x528acf(0x2a4)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x528acf(0x403)](){const _0x3b85d7=_0x528acf;this[_0x3b85d7(0x395)]!=null&&(clearTimeout(this[_0x3b85d7(0x395)]),this[_0x3b85d7(0x395)]=null);}['_onConflict'](_0x4b7b24){const _0x9963c6=_0x528acf;return this['_clearScheduledTask'](),this[_0x9963c6(0x1d6)][_0x9963c6(0x33d)](j,this['unitID'],this[_0x9963c6(0x191)],null,this[_0x9963c6(0x37f)],this[_0x9963c6(0x34f)],_0x4b7b24);}};O=Le=y([v(0x4,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x6,(0x0,t['Inject'])(t[_0x528acf(0x1a1)])),v(0x7,t[_0x528acf(0x30e)]),v(0x8,t[_0x528acf(0x14e)]),v(0x9,t['IConfigService']),v(0xa,e[_0x528acf(0x27c)]),v(0xb,t[_0x528acf(0x3a7)]),v(0xc,t[_0x528acf(0x1fd)]),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],O);let k=Re=class extends E{constructor(_0x3b2b4a,_0x23dacc,_0x598d76,_0x399965,_0x118d0d,_0xe2bfe5,_0xd86ed2,_0x536eab,_0x1f8c66,_0x53efc0,_0x8cb309){const _0x1fd1e3=_0x528acf;super(_0x3b2b4a,_0x23dacc,_0x598d76,[],_0x399965,_0xd86ed2,_0x53efc0,_0xe2bfe5,_0x8cb309),this[_0x1fd1e3(0x1d6)]=_0x118d0d,this[_0x1fd1e3(0x320)]=_0x536eab,this['_transformService']=_0x1f8c66,g(this,_0x1fd1e3(0x1e4),_0x1fd1e3(0x3d9)),g(this,'_resendTimeout',0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x1fd1e3(0x13e),void 0x0),g(this,_0x1fd1e3(0x182),void 0x0);}[_0x528acf(0x327)](_0x4ee19b){const _0x5b8065=_0x528acf;this['_clearScheduledTask']();let _0x33b138=this['_injector'][_0x5b8065(0x33d)](A,this['unitID'],this[_0x5b8065(0x191)],this[_0x5b8065(0x1f2)],[_0x4ee19b],this[_0x5b8065(0x34f)],this[_0x5b8065(0x13e)]);return _0x33b138[_0x5b8065(0x1a0)](),_0x33b138;}['onRemoteChangeset'](_0x2aa797){const _0x196910=_0x528acf;if(this[_0x196910(0x23d)](_0x2aa797))return this[_0x196910(0x403)](),this[_0x196910(0x1d6)][_0x196910(0x33d)](N,this[_0x196910(0x179)],this[_0x196910(0x191)],this['_awaitingChangeset'],[],null,[_0x2aa797],this['_handler']);try{let _0x473bdd=this['_transformService'][_0x196910(0x10d)]([_0x2aa797],[this[_0x196910(0x1f2)]],!0x1);if((0x0,e[_0x196910(0x40a)])(_0x473bdd)){let {c1Prime:_0x5d32ff,c2Prime:_0x84ef68}=_0x473bdd;this[_0x196910(0x2ce)](_0x5d32ff[0x0]),_0x84ef68[0x0][_0x196910(0x306)]=this[_0x196910(0x181)](),this[_0x196910(0x403)]();let _0x2be3a4=this['_injector']['createInstance'](Re,this[_0x196910(0x179)],this[_0x196910(0x191)],_0x84ef68[0x0],this[_0x196910(0x34f)]);return _0x2be3a4[_0x196910(0x1a0)](),_0x2be3a4;}throw _0x473bdd['error'];}catch(_0x3daaec){return this['_logService'][_0x196910(0x2d2)](_0x3daaec),this[_0x196910(0x3d2)](!0x1);}}[_0x528acf(0x2e0)](_0x47aeab){const _0x1438c6=_0x528acf;this[_0x1438c6(0x403)]();let _0x29e265=this[_0x1438c6(0x423)][_0x1438c6(0x1b2)](this[_0x1438c6(0x179)]);if(_0x47aeab['revision']<=_0x29e265)return this;if(this[_0x1438c6(0x23d)](_0x47aeab))return this[_0x1438c6(0x1d6)][_0x1438c6(0x33d)](N,this[_0x1438c6(0x179)],this['type'],this[_0x1438c6(0x1f2)],[],_0x47aeab[_0x1438c6(0x239)],[],this[_0x1438c6(0x34f)]);this[_0x1438c6(0x41b)]();let _0x40480f=this[_0x1438c6(0x1d6)][_0x1438c6(0x33d)](D,this[_0x1438c6(0x179)],this['type'],this['_handler']);return _0x40480f[_0x1438c6(0x1a0)](),_0x40480f;}[_0x528acf(0x3f8)](_0x248f9f){const _0x3502bb=_0x528acf;return this[_0x3502bb(0x3d2)](!!(_0x248f9f!=null&&_0x248f9f['isPermissionRej']));}['onRemoteRetry'](_0x1696a3){const _0x1554f1=_0x528acf;return this['_maxTotalRetryTimeout']>He?this[_0x1554f1(0x37a)]():(this['_resendTimer']=Ie(this[_0x1554f1(0x3c1)],{'timeout':this['_resendTimeout'],'reqId':_0x1696a3[_0x1554f1(0x17c)]}),this['_sender']=this[_0x1554f1(0x13e)][_0x1554f1(0x367)](({reqId:_0x5c74b8,timeout:_0x52114c})=>{const _0x149b5e=_0x1554f1;this[_0x149b5e(0x412)](_0x5c74b8,_0x52114c);}),this);}[_0x528acf(0x37a)](){const _0x36cebf=_0x528acf;return this[_0x36cebf(0x403)](),this[_0x36cebf(0x1d6)][_0x36cebf(0x33d)](M,this['unitID'],this[_0x36cebf(0x191)],this[_0x36cebf(0x1f2)],[],this[_0x36cebf(0x34f)]);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){const _0x4e61de=_0x528acf;this['_handler'][_0x4e61de(0x24a)](this[_0x4e61de(0x1f2)]);}['_onConflict'](_0x4693fe){const _0x156d05=_0x528acf;return this[_0x156d05(0x403)](),this['_injector'][_0x156d05(0x33d)](j,this['unitID'],this['type'],this[_0x156d05(0x1f2)],[],this['_handler'],_0x4693fe);}[_0x528acf(0x412)](_0xb408e4,_0x237bec){const _0x4575a0=_0x528acf;var _0x38d28a;_0xb408e4===((_0x38d28a=this[_0x4575a0(0x1f2)])==null?void 0x0:_0x38d28a['reqId'])&&(this['resend'](),this[_0x4575a0(0x3c1)]=_0x237bec===0x0?0x3e8:Math[_0x4575a0(0x270)](_0x237bec*0x2,Ve),this[_0x4575a0(0x124)]+=this[_0x4575a0(0x3c1)]);}[_0x528acf(0x403)](){const _0x2216e3=_0x528acf;var _0x5b2bbc;(_0x5b2bbc=this[_0x2216e3(0x182)])==null||_0x5b2bbc[_0x2216e3(0x282)](),this['_resendTimeout']=0x0,this[_0x2216e3(0x124)]=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x6,t['ICommandService']),v(0x7,t[_0x528acf(0x30e)]),v(0x8,e[_0x528acf(0x27c)]),v(0x9,t[_0x528acf(0x1fd)]),v(0xa,(0x0,t[_0x528acf(0x3ad)])(x))],k);let A=ze=class extends E{constructor(_0x131c11,_0x1a7a17,_0x495180,_0x3a4264,_0x5450a4,_0x465ed8,_0x1e9046,_0x26a25b,_0x2a9b7b,_0x2253e4,_0x271084,_0x537b94,_0x641816){const _0x103a25=_0x528acf;super(_0x131c11,_0x1a7a17,_0x495180,_0x3a4264,_0x5450a4,_0x2a9b7b,_0x537b94,_0x26a25b,_0x641816),this[_0x103a25(0x1d6)]=_0x1e9046,this[_0x103a25(0x320)]=_0x2253e4,this[_0x103a25(0x414)]=_0x271084,this['localCacheService']=_0x641816,g(this,_0x103a25(0x1e4),_0x103a25(0x100)),g(this,_0x103a25(0x3c1),0x0),g(this,'_maxTotalRetryTimeout',0x0),g(this,_0x103a25(0x13e),void 0x0),g(this,_0x103a25(0x182),void 0x0),_0x465ed8&&(this[_0x103a25(0x13e)]=_0x465ed8,this[_0x103a25(0x182)]=this[_0x103a25(0x13e)][_0x103a25(0x367)](({reqId:_0x526e96,timeout:_0x2c5e1f})=>{this['_resendWithTimeout'](_0x526e96,_0x2c5e1f);}));}[_0x528acf(0x327)](_0x1e274e){const _0x23e1ea=_0x528acf;return this[_0x23e1ea(0x37f)]['push'](_0x1e274e),this;}[_0x528acf(0x211)](_0x63bc9f){const _0x57563c=_0x528acf;if(this[_0x57563c(0x23d)](_0x63bc9f))return this[_0x57563c(0x403)](),this[_0x57563c(0x1d6)][_0x57563c(0x33d)](N,this['unitID'],this['type'],this[_0x57563c(0x1f2)],this[_0x57563c(0x37f)],null,[_0x63bc9f],this['_handler']);try{let _0x5cfba2=this[_0x57563c(0x414)][_0x57563c(0x10d)]([_0x63bc9f],[this[_0x57563c(0x1f2)]],!0x1);if((0x0,e[_0x57563c(0x40a)])(_0x5cfba2)){let {c1Prime:_0x2181ea,c2Prime:_0x22ecf8}=_0x5cfba2,_0x2c8800=this[_0x57563c(0x414)][_0x57563c(0x2d4)](_0x2181ea[0x0],this[_0x57563c(0x37f)]);if((0x0,e[_0x57563c(0x18a)])(_0x2c8800)){let {c1Prime:_0x5549bd,m2Prime:_0x52bf1f}=_0x2c8800;return this[_0x57563c(0x2ce)](_0x5549bd),_0x22ecf8[0x0][_0x57563c(0x306)]=this[_0x57563c(0x181)](),this[_0x57563c(0x403)](),this[_0x57563c(0x1d6)][_0x57563c(0x33d)](ze,this['unitID'],this[_0x57563c(0x191)],_0x22ecf8[0x0],_0x52bf1f,this[_0x57563c(0x34f)],void 0x0);}throw _0x2c8800[_0x57563c(0x2d2)];}throw _0x5cfba2[_0x57563c(0x2d2)];}catch(_0x4eb764){return this[_0x57563c(0x320)][_0x57563c(0x2d2)](_0x4eb764),this[_0x57563c(0x3d2)](!0x1);}}['onRemoteAck'](_0x3419e0){const _0x3080f6=_0x528acf;this[_0x3080f6(0x403)]();let _0x30e319=this[_0x3080f6(0x181)]();if(_0x3419e0['revision']<=_0x30e319)return this;if(this[_0x3080f6(0x23d)](_0x3419e0))return this['_injector'][_0x3080f6(0x33d)](N,this[_0x3080f6(0x179)],this[_0x3080f6(0x191)],this[_0x3080f6(0x1f2)],this[_0x3080f6(0x37f)],_0x3419e0[_0x3080f6(0x239)],[],this['_handler']);this[_0x3080f6(0x41b)]();let _0x1b5211=this[_0x3080f6(0x1d6)]['createInstance'](O,this['unitID'],this['type'],this[_0x3080f6(0x37f)],this[_0x3080f6(0x34f)]);return _0x1b5211[_0x3080f6(0x3f9)](),_0x1b5211[_0x3080f6(0x1a0)](),_0x1b5211;}['onRemoteRej'](_0x2b16ab){const _0x469ce9=_0x528acf;return this[_0x469ce9(0x3d2)](!!(_0x2b16ab!=null&&_0x2b16ab[_0x469ce9(0x30b)]));}['onRemoteRetry'](_0x5dc763){const _0x4d9e85=_0x528acf;return this[_0x4d9e85(0x124)]>He?this[_0x4d9e85(0x37a)]():(this[_0x4d9e85(0x13e)]=Ie(this['_resendTimeout'],{'timeout':this[_0x4d9e85(0x3c1)],'reqId':_0x5dc763[_0x4d9e85(0x17c)]}),this[_0x4d9e85(0x182)]=this['_resendTimer']['subscribe'](({reqId:_0x24b137,timeout:_0x265510})=>{const _0x12611b=_0x4d9e85;this[_0x12611b(0x412)](_0x24b137,_0x265510);}),this);}[_0x528acf(0x37a)](){const _0x399044=_0x528acf;return this[_0x399044(0x403)](),this['_injector'][_0x399044(0x33d)](M,this[_0x399044(0x179)],this[_0x399044(0x191)],this[_0x399044(0x1f2)],this[_0x399044(0x37f)],this['_handler']);}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){const _0x4d1289=_0x528acf;this[_0x4d1289(0x34f)][_0x4d1289(0x24a)](this[_0x4d1289(0x1f2)]);}[_0x528acf(0x3d2)](_0x62f3ed){const _0x28fdd1=_0x528acf;return this[_0x28fdd1(0x403)](),this[_0x28fdd1(0x1d6)][_0x28fdd1(0x33d)](j,this[_0x28fdd1(0x179)],this[_0x28fdd1(0x191)],null,this[_0x28fdd1(0x37f)],this['_handler'],_0x62f3ed);}[_0x528acf(0x412)](_0x134499,_0x5efc84){const _0x1d132e=_0x528acf;var _0x13823a;_0x134499===((_0x13823a=this[_0x1d132e(0x1f2)])==null?void 0x0:_0x13823a[_0x1d132e(0x17c)])&&(this[_0x1d132e(0x2a4)](),this[_0x1d132e(0x3c1)]=_0x5efc84===0x0?0x3e8:Math[_0x1d132e(0x270)](_0x5efc84*0x2,Ve),this['_maxTotalRetryTimeout']+=this[_0x1d132e(0x3c1)]);}[_0x528acf(0x403)](){const _0x1b6860=_0x528acf;var _0x31c09;(_0x31c09=this[_0x1b6860(0x182)])==null||_0x31c09['unsubscribe'](),this[_0x1b6860(0x3c1)]=0x0,this[_0x1b6860(0x124)]=0x0;}};A=ze=y([v(0x6,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x8,t[_0x528acf(0x14e)]),v(0x9,t['ILogService']),v(0xa,e['ITransformService']),v(0xb,t['IUndoRedoService']),v(0xc,(0x0,t[_0x528acf(0x3ad)])(x))],A);let j=class extends E{constructor(_0x511a09,_0x3b5d97,_0x215ee5,_0x3af35d,_0x3498db,_0x7f7e36=!0x1,_0x19392d,_0x8f3bc0,_0x3d1ea3,_0x1c1ae8,_0x441ba8,_0x27070f,_0x2fbb15){const _0xd2b78e=_0x528acf;super(_0x511a09,_0x3b5d97,_0x215ee5,_0x3af35d,_0x3498db,_0x8f3bc0,_0x3d1ea3,_0x1c1ae8,_0x2fbb15),this['_isPermissionRej']=_0x7f7e36,this[_0xd2b78e(0x31d)]=_0x19392d,this[_0xd2b78e(0x20e)]=_0x441ba8,this[_0xd2b78e(0x102)]=_0x27070f,this[_0xd2b78e(0x322)]=_0x2fbb15,g(this,_0xd2b78e(0x1e4),_0xd2b78e(0x162)),this['_showConflictNotification'](),this[_0xd2b78e(0x252)](),this[_0xd2b78e(0x26e)]();}[_0x528acf(0x327)](){return this;}[_0x528acf(0x211)](){return this;}[_0x528acf(0x2e0)](){return this;}[_0x528acf(0x3f8)](){return this;}[_0x528acf(0x2bc)](){return this;}['toggleOffline'](){return this;}[_0x528acf(0x112)](){return this;}[_0x528acf(0x2a4)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x528acf(0x252)](){const _0x4362d9=_0x528acf;var _0x3f9e29,_0x37dfc6,_0x3c4e4b;(_0x3f9e29=this['_localCacheService'])==null||(_0x37dfc6=_0x3f9e29[_0x4362d9(0x34b)])==null||(_0x37dfc6=_0x37dfc6['call'](_0x3f9e29,this[_0x4362d9(0x179)],_0x4362d9(0x162)))==null||_0x37dfc6[_0x4362d9(0x3ed)](()=>void 0x0),(_0x3c4e4b=this[_0x4362d9(0x31e)])==null||_0x3c4e4b[_0x4362d9(0x227)](this[_0x4362d9(0x179)],this[_0x4362d9(0x191)],null,[]);}[_0x528acf(0x34c)](){const _0x2a0626=_0x528acf;this[_0x2a0626(0x30d)]?this[_0x2a0626(0x102)][_0x2a0626(0x237)]({'id':_0x2a0626(0x147)}):this[_0x2a0626(0x102)][_0x2a0626(0x237)]({'id':'CONFLICT'});}[_0x528acf(0x26e)](){const _0x5bd1f=_0x528acf;this[_0x5bd1f(0x31d)]['updatePermissionPoint'](new r[(_0x5bd1f(0x3bc))](this[_0x5bd1f(0x179)])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x352)])),v(0x7,t[_0x528acf(0x14e)]),v(0x8,t[_0x528acf(0x1fd)]),v(0x9,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0xa,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0xb,(0x0,t[_0x528acf(0x17f)])(_)),v(0xc,(0x0,t['Optional'])(x))],j);let M=class extends E{constructor(_0xcc0f4,_0x30fffe,_0x1fa270,_0x5e2744,_0x2e96ec,_0x215094,_0x241d93,_0xccbfac,_0x163da9,_0x24e4e6){const _0x8b021c=_0x528acf;super(_0xcc0f4,_0x30fffe,_0x1fa270,_0x5e2744,_0x2e96ec,_0xccbfac,_0x163da9,_0x241d93,_0x24e4e6),this[_0x8b021c(0x1d6)]=_0x215094,g(this,_0x8b021c(0x1e4),'offline');}['appendMutation'](_0x5d016d){const _0x5efdc4=_0x528acf;return this[_0x5efdc4(0x37f)][_0x5efdc4(0x19e)](_0x5d016d),this[_0x5efdc4(0x1a0)](),this;}[_0x528acf(0x211)](_0x329561){const _0x4a7062=_0x528acf;throw Error(_0x4a7062(0x217));}[_0x528acf(0x2e0)](){const _0x2e9d93=_0x528acf;throw Error(_0x2e9d93(0x1ee));}[_0x528acf(0x3f8)](){const _0x20c931=_0x528acf;throw Error(_0x20c931(0x2dd));}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x528acf(0x112)](){const _0x5187fd=_0x528acf;let {_injector:_0x2fe556,_pendingMutations:_0x31d5e1,_awaitingChangeset:_0x325ca5,unitID:_0x186132,_handler:_0x866c5b,type:_0x207062}=this,_0x15fca6=Ue(_0x2fe556,_0x186132,_0x207062,_0x325ca5,_0x31d5e1,_0x866c5b);return _0x15fca6 instanceof O?_0x15fca6['_schedule']():(_0x15fca6 instanceof A||_0x15fca6 instanceof k)&&_0x15fca6[_0x5187fd(0x2a4)](),_0x15fca6;}[_0x528acf(0x2a4)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x6,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x7,t['ICommandService']),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Optional'])(x))],M);let N=class extends E{constructor(_0x4b2a38,_0x4ac808,_0x1dd280,_0x3ac3d4,_0x4a3ddb,_0x581df2,_0x33b35c,_0x1c7398,_0x402f25,_0x2a2c3f,_0x2ba46d,_0x3e069e,_0x53e151,_0x2f4a6f){const _0x4b1399=_0x528acf;super(_0x4b2a38,_0x4ac808,_0x1dd280,_0x3ac3d4,_0x33b35c,_0x2ba46d,_0x3e069e,_0x402f25,_0x2f4a6f),this['_acknowledgedAwaitingRevision']=_0x4a3ddb,this[_0x4b1399(0x357)]=_0x581df2,this[_0x4b1399(0x1d6)]=_0x1c7398,this[_0x4b1399(0x320)]=_0x2a2c3f,this[_0x4b1399(0x414)]=_0x53e151,this[_0x4b1399(0x322)]=_0x2f4a6f,g(this,_0x4b1399(0x1e4),_0x4b1399(0x1a4));}[_0x528acf(0x397)](_0x3bbefd){const _0x22ddaf=_0x528acf;try{if(this[_0x22ddaf(0x22a)](_0x3bbefd)['missingChangesets'])throw Error(_0x22ddaf(0x424));if(this[_0x22ddaf(0x22a)]([...this[_0x22ddaf(0x357)]][_0x22ddaf(0x3a9)]((_0x3a6c13,_0x4d4103)=>_0x3a6c13[_0x22ddaf(0x239)]-_0x4d4103[_0x22ddaf(0x239)]))[_0x22ddaf(0x21b)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x22ddaf(0x34f)][_0x22ddaf(0x321)]({'from':this[_0x22ddaf(0x181)](),'to':0x0}),this;let _0x40bd47=this['_awaitingChangeset'],_0x1e41f8=this[_0x22ddaf(0x37f)],_0x1d07d9;if(_0x40bd47&&_0x1e41f8['length']!==0x0)_0x1d07d9=this['_injector'][_0x22ddaf(0x33d)](A,this[_0x22ddaf(0x179)],this[_0x22ddaf(0x191)],_0x40bd47,_0x1e41f8,this[_0x22ddaf(0x34f)],void 0x0);else{if(_0x40bd47&&_0x1e41f8[_0x22ddaf(0x347)]===0x0)_0x40bd47[_0x22ddaf(0x306)]=this[_0x22ddaf(0x181)](),_0x1d07d9=this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](k,this['unitID'],this[_0x22ddaf(0x191)],_0x40bd47,this['_handler']);else{if(_0x1e41f8[_0x22ddaf(0x347)]!==0x0){let _0x584eff=this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](O,this[_0x22ddaf(0x179)],this[_0x22ddaf(0x191)],_0x1e41f8,this[_0x22ddaf(0x34f)]);_0x584eff[_0x22ddaf(0x3f9)](),_0x1d07d9=_0x584eff;}else _0x1d07d9=this['_injector'][_0x22ddaf(0x33d)](D,this['unitID'],this[_0x22ddaf(0x191)],this['_handler']);}}return _0x1d07d9[_0x22ddaf(0x1a0)](),_0x1d07d9;}catch(_0x378d75){return this['_logService'][_0x22ddaf(0x2d2)](_0x22ddaf(0x169),'failed\x20to\x20apply\x20missed\x20changesets!',_0x378d75),this[_0x22ddaf(0x1d6)][_0x22ddaf(0x33d)](j,this[_0x22ddaf(0x179)],this['type'],this['_awaitingChangeset'],this[_0x22ddaf(0x37f)],this[_0x22ddaf(0x34f)],!0x1);}}[_0x528acf(0x22a)](_0x20699c){const _0x477acb=_0x528acf;this[_0x477acb(0x1c6)]();for(let _0x140729=0x0;_0x140729<_0x20699c[_0x477acb(0x347)];_0x140729++){let _0x28ac65=_0x20699c[_0x140729],_0xe8f6f=this[_0x477acb(0x181)]();if(!(_0x28ac65['revision']<=_0xe8f6f)){if(_0x28ac65[_0x477acb(0x239)]>_0xe8f6f+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x28ac65)){this[_0x477acb(0x231)]();continue;}this[_0x477acb(0x407)](_0x28ac65),this[_0x477acb(0x1c6)]();}}return{'missingChangesets':!0x1};}['_transformAndApplyRemoteChangeset'](_0x455624){const _0x2c8d66=_0x528acf;let _0x2336df=_0x455624,_0xd9712c=this[_0x2c8d66(0x1f2)];if(_0xd9712c){let _0x4179fd=this[_0x2c8d66(0x414)][_0x2c8d66(0x10d)]([_0x455624],[_0xd9712c],!0x1);if(!(0x0,e[_0x2c8d66(0x40a)])(_0x4179fd))throw _0x4179fd['error'];_0x2336df=_0x4179fd[_0x2c8d66(0x31b)][0x0],_0xd9712c=_0x4179fd[_0x2c8d66(0x258)][0x0];}let _0x3b9db5=this[_0x2c8d66(0x37f)];if(_0x3b9db5[_0x2c8d66(0x347)]){let _0x31fca3=this[_0x2c8d66(0x414)][_0x2c8d66(0x2d4)](_0x2336df,_0x3b9db5);if(!(0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x31fca3))throw _0x31fca3[_0x2c8d66(0x2d2)];_0x2336df=_0x31fca3['c1Prime'],_0x3b9db5=_0x31fca3[_0x2c8d66(0x3a6)];}this['_executeRemoteChangeset'](_0x2336df),_0xd9712c&&(_0xd9712c[_0x2c8d66(0x306)]=this['_getCurrentRevision']()),this['_awaitingChangeset']=_0xd9712c,this[_0x2c8d66(0x37f)]=_0x3b9db5;}[_0x528acf(0x1c6)](){const _0x24a05d=_0x528acf;if(!this[_0x24a05d(0x1f2)]||this[_0x24a05d(0x2de)]==null)return;let _0x131c4e=this[_0x24a05d(0x181)]();if(this[_0x24a05d(0x2de)]<=_0x131c4e)throw Error(_0x24a05d(0x370)+this[_0x24a05d(0x2de)]+'.');this[_0x24a05d(0x2de)]===_0x131c4e+0x1&&this['_acknowledgeAwaiting']();}[_0x528acf(0x231)](){const _0x2a555e=_0x528acf;this[_0x2a555e(0x41b)](),this[_0x2a555e(0x1f2)]=null,this[_0x2a555e(0x2de)]=null;}[_0x528acf(0x3b7)](_0x452a63){const _0x2c2195=_0x528acf;let _0x2c8db4=this['_awaitingChangeset'];return!_0x2c8db4||!_0x2c8db4[_0x2c2195(0x2c9)]||_0x2c8db4[_0x2c2195(0x17c)]===null||_0x2c8db4[_0x2c2195(0x17c)]===void 0x0?!0x1:_0x452a63['unitID']===_0x2c8db4['unitID']&&_0x452a63[_0x2c2195(0x2c9)]===_0x2c8db4[_0x2c2195(0x2c9)]&&_0x452a63[_0x2c2195(0x17c)]===_0x2c8db4['reqId'];}[_0x528acf(0x2a4)](){const _0x41328b=_0x528acf;throw Error(_0x41328b(0x3c6));}[_0x528acf(0x327)](_0x17c9e3){const _0x26f902=_0x528acf;return this[_0x26f902(0x37f)][_0x26f902(0x19e)](_0x17c9e3),this;}['onRemoteChangeset'](_0x58e257){const _0x28b911=_0x528acf;return this[_0x28b911(0x357)]['push'](_0x58e257),this;}['onRemoteAck'](_0x3484ee){const _0x4c5b48=_0x528acf;if(this[_0x4c5b48(0x1f2)]){let _0x26ad82=this['_getCurrentRevision']();return _0x3484ee['revision']<=_0x26ad82||(_0x26ad82+0x1===_0x3484ee[_0x4c5b48(0x239)]?(this[_0x4c5b48(0x41b)](),this[_0x4c5b48(0x1f2)]=null,this[_0x4c5b48(0x2de)]=null):this[_0x4c5b48(0x2de)]=_0x3484ee['revision']),this;}if(_0x3484ee[_0x4c5b48(0x239)]<=this[_0x4c5b48(0x181)]())return this;throw Error(_0x4c5b48(0x3bf));}[_0x528acf(0x3f8)](_0x52c45a){const _0x2ce7ed=_0x528acf;return this[_0x2ce7ed(0x3d2)](!!(_0x52c45a!=null&&_0x52c45a[_0x2ce7ed(0x30b)]));}['onRemoteRetry'](){return this;}[_0x528acf(0x37a)](){const _0x56d628=_0x528acf;return this[_0x56d628(0x1d6)]['createInstance'](M,this[_0x56d628(0x179)],this[_0x56d628(0x191)],this[_0x56d628(0x1f2)],this['_pendingMutations'],this[_0x56d628(0x34f)]);}[_0x528acf(0x112)](){return this;}['_onConflict'](_0x46eb91){const _0x2eb1f2=_0x528acf;return this['_injector'][_0x2eb1f2(0x33d)](j,this['unitID'],this[_0x2eb1f2(0x191)],this[_0x2eb1f2(0x1f2)],this[_0x2eb1f2(0x37f)],this['_handler'],_0x46eb91);}};N=y([v(0x7,(0x0,t['Inject'])(t[_0x528acf(0x19d)])),v(0x8,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x1fd)]),v(0xc,e['ITransformService']),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],N);function Ue(_0x34ec82,_0x21ef8b,_0x5aabe4,_0x2752df,_0x487b64,_0x216b4a){const _0x2e175a=_0x528acf;return _0x2752df&&_0x487b64[_0x2e175a(0x347)]?_0x34ec82[_0x2e175a(0x33d)](A,_0x21ef8b,_0x5aabe4,_0x2752df,_0x487b64,_0x216b4a,void 0x0):_0x2752df?_0x34ec82['createInstance'](k,_0x21ef8b,_0x5aabe4,_0x2752df,_0x216b4a):_0x487b64[_0x2e175a(0x347)]?_0x34ec82[_0x2e175a(0x33d)](O,_0x21ef8b,_0x5aabe4,_0x487b64,_0x216b4a):_0x34ec82['createInstance'](D,_0x21ef8b,_0x5aabe4,_0x216b4a);}let P=class extends t[_0x528acf(0x1b1)]{get[_0x528acf(0x266)](){return this['_state'];}constructor(_0x3952ca,_0x1fcb7b,_0x2ddfbe,_0x4efa62,_0x21d27d,_0x77d175,_0x569f26,_0x49473e,_0x1ade82,_0x1aa611,_0x201c91,_0x58d997,_0x140a8a,_0x170557){const _0x149e5c=_0x528acf;super(),this['unitID']=_0x3952ca,this[_0x149e5c(0x1ba)]=_0x1fcb7b,this[_0x149e5c(0x1af)]=_0x2ddfbe,this[_0x149e5c(0x1d6)]=_0x4efa62,this[_0x149e5c(0x2f9)]=_0x21d27d,this[_0x149e5c(0x20e)]=_0x77d175,this['_revisionService']=_0x569f26,this[_0x149e5c(0x1ed)]=_0x49473e,this[_0x149e5c(0x416)]=_0x1ade82,this[_0x149e5c(0x320)]=_0x1aa611,this[_0x149e5c(0x28d)]=_0x201c91,this['_permissionService']=_0x58d997,this['_singleActiveUnitService']=_0x140a8a,this[_0x149e5c(0x31e)]=_0x170557,g(this,_0x149e5c(0x22c),new i['BehaviorSubject'](null)),g(this,'state$',this[_0x149e5c(0x22c)][_0x149e5c(0x1db)]()),g(this,'_state',void 0x0),g(this,_0x149e5c(0x2f3),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,_0x149e5c(0x422),this['state$']['pipe']((0x0,i['map'])(_0x10c455=>_0x10c455?_0x10c455[_0x149e5c(0x1e4)]:'offline'),(0x0,i[_0x149e5c(0x368)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,'_transitionLocked',!0x1),g(this,_0x149e5c(0x10c),[]);}async[_0x528acf(0x3c0)](){const _0x136595=_0x528acf;if(this[_0x136595(0x266)])throw Error('[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.');await this[_0x136595(0x250)]();}[_0x528acf(0x35f)](){const _0x187658=_0x528acf;return this[_0x187658(0x2f3)]=!0x0,(0x0,t[_0x187658(0x3dc)])(()=>{const _0xebed32=_0x187658;this[_0xebed32(0x2f3)]=!0x1,this[_0xebed32(0x23f)]();});}['onLocalMutation'](_0x4a8278){const _0x40c80c=_0x528acf;this[_0x40c80c(0x103)](_0x4a8278);}['_updateState'](_0x1f2201){const _0x39ceb0=_0x528acf;this[_0x39ceb0(0x203)]=_0x1f2201,this['_state$'][_0x39ceb0(0x307)](_0x1f2201);}async['_init'](){const _0xa376c7=_0x528acf;if(this[_0xa376c7(0x391)](await this[_0xa376c7(0x32e)]()),this['_singleActiveUnitService']){var _0x4beee8;(_0x4beee8=this['_singleActiveUnitService'])==null||_0x4beee8[_0xa376c7(0x230)](this[_0xa376c7(0x179)]),this[_0xa376c7(0x3a2)](this[_0xa376c7(0x389)][_0xa376c7(0x319)](this[_0xa376c7(0x179)])['subscribe'](_0x1f30cd=>{const _0x51b8e0=_0xa376c7;this['_logService'][_0x51b8e0(0x264)](_0x51b8e0(0x3cb),_0x51b8e0(0x232),_0x1f30cd),_0x1f30cd===0x1?(this[_0x51b8e0(0x1ed)]['emitEvent']({'id':_0x51b8e0(0x17a)}),this[_0x51b8e0(0x31d)][_0x51b8e0(0x3e8)](new r[(_0x51b8e0(0x3bc))](this['unitID'])['id'],!0x1),this[_0x51b8e0(0x31d)][_0x51b8e0(0x213)](!0x1)):(this['_permissionService']['updatePermissionPoint'](new r[(_0x51b8e0(0x3bc))](this['unitID'])['id'],!0x0),this[_0x51b8e0(0x31d)][_0x51b8e0(0x213)](!0x0));}));}let _0x4e208c=!0x1;return this['disposeWithMe'](this[_0xa376c7(0x1ba)][_0xa376c7(0x341)][_0xa376c7(0x367)](_0x5d5426=>{const _0x4ee27f=_0xa376c7;_0x5d5426===0x3?this[_0x4ee27f(0x21d)](_0x4e208c):_0x5d5426===0x2&&(_0x4e208c=!0x0,this[_0x4ee27f(0x3e4)]());})),this[_0xa376c7(0x3a2)](this['session']['event$'][_0xa376c7(0x367)](_0x1ae289=>{const _0x3a46e7=_0xa376c7;try{switch(_0x1ae289[_0x3a46e7(0x1f0)]){case e[_0x3a46e7(0x330)][_0x3a46e7(0x173)]:this[_0x3a46e7(0x228)]((0x0,e[_0x3a46e7(0x1f5)])(_0x1ae289[_0x3a46e7(0x325)]));break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x41f)]:this[_0x3a46e7(0x2f4)](_0x1ae289[_0x3a46e7(0x325)]);break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x26c)]:this['_onRemoteRejected']();break;case e['CollaborationEvent'][_0x3a46e7(0x2bf)]:this[_0x3a46e7(0x339)](_0x1ae289[_0x3a46e7(0x325)]);break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x40f)]:this[_0x3a46e7(0x188)](_0x1ae289[_0x3a46e7(0x325)]['changesets'][_0x3a46e7(0x1f4)](_0x1c9e5d=>(0x0,e[_0x3a46e7(0x1f5)])(_0x1c9e5d)));break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x426)]:this[_0x3a46e7(0x2ca)]({'isPermissionRej':!0x0});break;case e[_0x3a46e7(0x330)][_0x3a46e7(0x11f)]:break;}}catch(_0x46dbb7){throw console[_0x3a46e7(0x2d2)](_0x3a46e7(0x332),_0x46dbb7),_0x46dbb7;}})),this['_state'];}[_0x528acf(0x11e)](){const _0x114f74=_0x528acf;this[_0x114f74(0x222)]=!0x1;}[_0x528acf(0x2d5)](){const _0x977688=_0x528acf;if(this['_transitionLocked'])throw Error(_0x977688(0x1ae));this[_0x977688(0x222)]=!0x0;}['_onLocalMutation'](_0x40e90c){const _0x333104=_0x528acf;this['_lockTransition'](),this[_0x333104(0x391)](this['_state']['appendMutation'](_0x40e90c)),this['_unlockTransition']();}[_0x528acf(0x228)](_0x1db831){const _0x537de6=_0x528acf;if(!(_0x1db831[_0x537de6(0x239)]<=this[_0x537de6(0x423)][_0x537de6(0x1b2)](this[_0x537de6(0x179)]))){if(this[_0x537de6(0x2f3)]){this[_0x537de6(0x10c)][_0x537de6(0x19e)](_0x1db831);return;}this[_0x537de6(0x2d6)](_0x1db831);}}['_exhaustRemoteChangesetQueue'](){const _0x234b40=_0x528acf;this['_remoteChangesetQueue'][_0x234b40(0x2d9)](_0x37521c=>this['_applyRemoteChangeset'](_0x37521c)),this[_0x234b40(0x10c)]=[];}[_0x528acf(0x2d6)](_0x4bae0f){const _0xa91aa0=_0x528acf;let _0x4e22c3=this[_0xa91aa0(0x2f9)][_0xa91aa0(0x13c)][_0xa91aa0(0x3c2)](this[_0xa91aa0(0x2f9)][_0xa91aa0(0x13c)][_0xa91aa0(0x3ea)]()[_0xa91aa0(0x410)])(_0x4bae0f['mutations'],null)||_0x4bae0f[_0xa91aa0(0x15b)],_0x2d3c2c={..._0x4bae0f,'mutations':_0x4e22c3};this['_lockTransition'](),this['_updateState'](this[_0xa91aa0(0x203)][_0xa91aa0(0x211)](_0x2d3c2c)),this['_unlockTransition']();}[_0x528acf(0x2f4)](_0x261442){const _0x7be48e=_0x528acf;this[_0x7be48e(0x2d5)](),this['_updateState'](this[_0x7be48e(0x203)][_0x7be48e(0x2e0)](_0x261442)),this[_0x7be48e(0x11e)]();}[_0x528acf(0x2ca)](_0x807682){const _0x406f8d=_0x528acf;this[_0x406f8d(0x2d5)](),this[_0x406f8d(0x391)](this[_0x406f8d(0x203)]['onRemoteRej'](_0x807682)),this[_0x406f8d(0x11e)]();}[_0x528acf(0x339)](_0x3dae11){const _0x383625=_0x528acf;this[_0x383625(0x2d5)](),this[_0x383625(0x391)](this['_state'][_0x383625(0x2bc)](_0x3dae11)),this[_0x383625(0x11e)]();}[_0x528acf(0x188)](_0xfd8ea0){const _0x124da8=_0x528acf;if(!(this[_0x124da8(0x203)]instanceof N))throw TypeError(_0x124da8(0x2c8));let _0x16a537=_0xfd8ea0[_0x124da8(0x1f4)](_0x4b7ef1=>{const _0x21fd10=_0x124da8;let _0x310af3=this[_0x21fd10(0x2f9)]['interceptor']['fetchThroughInterceptors'](this[_0x21fd10(0x2f9)][_0x21fd10(0x13c)][_0x21fd10(0x3ea)]()['COMPRESS_MUTATION_APPLY'])(_0x4b7ef1[_0x21fd10(0x15b)],null)||_0x4b7ef1['mutations'];return{..._0x4b7ef1,'mutations':_0x310af3};});this[_0x124da8(0x2d5)](),this['_updateState'](this[_0x124da8(0x203)][_0x124da8(0x397)](_0x16a537)),this[_0x124da8(0x11e)]();}[_0x528acf(0x3e4)](){const _0x5d2b3b=_0x528acf;this['_lockTransition'](),this[_0x5d2b3b(0x391)](this['_state'][_0x5d2b3b(0x37a)]()),this[_0x5d2b3b(0x11e)]();}[_0x528acf(0x21d)](_0x12efa1=!0x1){const _0x3bb775=_0x528acf;this['_lockTransition'](),this[_0x3bb775(0x391)](this['_state'][_0x3bb775(0x112)]()),this[_0x3bb775(0x11e)]();let _0x240b6f=this[_0x3bb775(0x203)];_0x12efa1&&_0x240b6f instanceof D&&(this[_0x3bb775(0x2d5)](),this[_0x3bb775(0x391)](_0x240b6f['fetchMiss']()),this[_0x3bb775(0x11e)]());}async['_createInitialState'](){return new Promise(_0x362788=>{const _0x2424e5=_0x3420;this[_0x2424e5(0x1ba)][_0x2424e5(0x341)][_0x2424e5(0x3cf)]((0x0,i[_0x2424e5(0x17b)])(0x1))['subscribe'](async _0x51104c=>{const _0x34e19c=_0x2424e5;_0x362788(await this[_0x34e19c(0x1ea)](_0x51104c===0x3));});});}[_0x528acf(0x123)](){const _0x467626=_0x528acf;let _0x59d620=this[_0x467626(0x179)];return{'onStateChange':(_0x38dd48,_0x5cc45e)=>{const _0x1c5176=_0x467626;if(_0x38dd48!==this['_state'])throw Error(_0x1c5176(0x3a0)+_0x38dd48['status']+_0x1c5176(0x362)+_0x5cc45e['status']+'\x0aCurrent:\x20'+this[_0x1c5176(0x203)][_0x1c5176(0x1e4)]);this[_0x1c5176(0x391)](_0x5cc45e);},'onSendChangeset':_0x151393=>{const _0x176fe9=_0x467626;_0x151393[_0x176fe9(0x2c9)]||(_0x151393[_0x176fe9(0x2c9)]=this[_0x176fe9(0x223)],_0x151393[_0x176fe9(0x17c)]=++this['_changesetReqId']);let _0x5f17e6={'eventID':e[_0x176fe9(0x330)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x151393[_0x176fe9(0x179)],'unitType':this[_0x176fe9(0x1af)],'changeset':_0x151393,'memberID':this[_0x176fe9(0x1ba)][_0x176fe9(0x376)]()}};this[_0x176fe9(0x1ba)][_0x176fe9(0x2ef)](_0x5f17e6,this['unitID']);},'onMissingChangesets':({from:_0xce1e6b,to:_0x34e9ba})=>{const _0x41691c=_0x467626;this[_0x41691c(0x320)][_0x41691c(0x264)]('[CollaborationEntity]',_0x41691c(0x384)+_0xce1e6b+'\x20to\x20'+_0x34e9ba);let _0x4eafaa={'eventID':e[_0x41691c(0x330)][_0x41691c(0x29c)],'data':{'unitID':_0x59d620,'unitType':this[_0x41691c(0x1af)],'from':_0xce1e6b,'to':_0x34e9ba}};this[_0x41691c(0x1ba)][_0x41691c(0x2ef)](_0x4eafaa,this['unitID']);}};}async['_createInitialStateImpl'](_0x431df2){const _0x30e60d=_0x528acf;var _0x1d07d4;let _0x33ace6=await((_0x1d07d4=this['_localCacheService'])==null?void 0x0:_0x1d07d4[_0x30e60d(0x277)](this[_0x30e60d(0x179)])),_0x57d9d0=(_0x33ace6==null?void 0x0:_0x33ace6[_0x30e60d(0x15b)])??[],_0x5c4957=(_0x33ace6==null?void 0x0:_0x33ace6[_0x30e60d(0x27e)])??null,_0x22c06b=!!(_0x5c4957!=null&&_0x5c4957[_0x30e60d(0x2c9)])&&!!(_0x5c4957!=null&&_0x5c4957[_0x30e60d(0x17c)]);this[_0x30e60d(0x223)]=_0x22c06b?_0x5c4957['sid']:(0x0,e['uuidv4'])(),this[_0x30e60d(0x159)]=_0x22c06b?_0x5c4957['reqId']:0x0;let _0x6c1663=this[_0x30e60d(0x179)];try{this['_replayCachedMutations'](_0x5c4957,_0x57d9d0);}catch(_0x2b384b){this['_logService'][_0x30e60d(0x2d2)](_0x2b384b);}let _0x34eba8=this[_0x30e60d(0x123)]();if(_0x431df2){let _0x35bd2d=Ue(this[_0x30e60d(0x1d6)],_0x6c1663,this[_0x30e60d(0x1af)],_0x5c4957,_0x57d9d0,_0x34eba8);return _0x35bd2d instanceof O?_0x35bd2d[_0x30e60d(0x3f9)]():(_0x35bd2d instanceof A||_0x35bd2d instanceof k)&&_0x35bd2d[_0x30e60d(0x2a4)](),_0x35bd2d;}return this[_0x30e60d(0x1d6)][_0x30e60d(0x33d)](M,_0x6c1663,this[_0x30e60d(0x1af)],_0x5c4957,_0x57d9d0,_0x34eba8);}[_0x528acf(0x14d)](_0x28eaec,_0x4f93d4){const _0xc62b26=_0x528acf;var _0x2f4322,_0x49db1d;let _0x660d16=this[_0xc62b26(0x2f9)][_0xc62b26(0x13c)][_0xc62b26(0x3c2)](this['_compressMutationService'][_0xc62b26(0x13c)][_0xc62b26(0x3ea)]()['COMPRESS_MUTATION_APPLY']);(_0x2f4322=_0x660d16((_0x28eaec==null?void 0x0:_0x28eaec[_0xc62b26(0x15b)])||[],null))==null||_0x2f4322[_0xc62b26(0x2d9)](_0x3fea36=>this[_0xc62b26(0x28d)][_0xc62b26(0x2cc)](_0x3fea36['id'],_0x3fea36[_0xc62b26(0x351)])),(_0x49db1d=_0x660d16(_0x4f93d4||[],null))==null||_0x49db1d['forEach'](_0x51f01e=>this['_commandService'][_0xc62b26(0x2cc)](_0x51f01e['id'],_0x51f01e[_0xc62b26(0x351)]));}};P=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],P);let F=class extends P{constructor(_0x25d83b,_0x2307c3,_0x30e00a,_0x38e4c5,_0x3de6e4,_0x2e13e6,_0x5526e1,_0x2f88d8,_0x2d80af,_0x5b73dc,_0xa08b9d,_0x159c04,_0x5468e7,_0x13e01b,_0x416906){const _0x39ba0c=_0x528acf;super(_0x25d83b,_0x30e00a,_0x2307c3,_0x38e4c5,_0x3de6e4,_0x2e13e6,_0x5526e1,_0x2f88d8,_0x2d80af,_0x5b73dc,_0xa08b9d,_0x159c04,_0x13e01b,_0x416906),this[_0x39ba0c(0x179)]=_0x25d83b,this[_0x39ba0c(0x191)]=_0x2307c3,this[_0x39ba0c(0x346)]=_0x5468e7,g(this,_0x39ba0c(0x2dc),null);}[_0x528acf(0x288)](_0x570d32){const _0x2990f1=_0x528acf;this[_0x2990f1(0x2dc)]=_0x570d32;}[_0x528acf(0x1fb)](){const _0x218822=_0x528acf;this[_0x218822(0x2dc)]=null,super[_0x218822(0x1fb)]();}['_createHandler'](){const _0xbeb63d=_0x528acf;let _0x1def40=super[_0xbeb63d(0x123)]();return _0x1def40[_0xbeb63d(0x30f)]=_0x4d5d1a=>{const _0x275541=_0xbeb63d;var _0x37fba7,_0x49dd9f;return(_0x37fba7=this[_0x275541(0x2dc)])==null||(_0x49dd9f=_0x37fba7[_0x275541(0x30f)])==null?void 0x0:_0x49dd9f[_0x275541(0x1ca)](_0x37fba7,_0x4d5d1a);},_0x1def40[_0xbeb63d(0x2da)]=_0x356030=>{const _0x204db4=_0xbeb63d;var _0x3cc083,_0x18c79a;return(_0x3cc083=this[_0x204db4(0x2dc)])==null||(_0x18c79a=_0x3cc083[_0x204db4(0x2da)])==null?void 0x0:_0x18c79a[_0x204db4(0x1ca)](_0x3cc083,_0x356030);},_0x1def40['onTransformSelections']=_0x3f4e76=>{const _0x5db76c=_0xbeb63d;var _0x1ba8c9,_0x11b2ac;return(_0x1ba8c9=this['_handlerCallback'])==null||(_0x11b2ac=_0x1ba8c9[_0x5db76c(0x3f5)])==null?void 0x0:_0x11b2ac['call'](_0x1ba8c9,_0x3f4e76);},_0x1def40[_0xbeb63d(0x38f)]=_0x497cf1=>{const _0xd7426b=_0xbeb63d;var _0x3c1e15,_0x42610e;return(_0x3c1e15=this[_0xd7426b(0x2dc)])==null||(_0x42610e=_0x3c1e15[_0xd7426b(0x38f)])==null?void 0x0:_0x42610e[_0xd7426b(0x1ca)](_0x3c1e15,_0x497cf1);},_0x1def40[_0xbeb63d(0x401)]=_0x43b16f=>{const _0x335e65=_0xbeb63d;var _0x17cb08,_0x3043bb;return((_0x17cb08=this[_0x335e65(0x2dc)])==null||(_0x3043bb=_0x17cb08['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3043bb[_0x335e65(0x1ca)](_0x17cb08,_0x43b16f))??_0x43b16f;},_0x1def40[_0xbeb63d(0x289)]=_0x58f8b9=>{const _0xb34985=_0xbeb63d;var _0x1a26e5,_0x3dace8;return((_0x1a26e5=this['_handlerCallback'])==null||(_0x3dace8=_0x1a26e5[_0xb34985(0x289)])==null?void 0x0:_0x3dace8[_0xb34985(0x1ca)](_0x1a26e5,_0x58f8b9))??_0x58f8b9;},_0x1def40;}async[_0x528acf(0x250)](){const _0x536533=_0x528acf;let _0x299a02=await super[_0x536533(0x250)]();return this[_0x536533(0x3a2)](this['_docStateChangeManagerService'][_0x536533(0x40e)][_0x536533(0x367)](_0x1100d0=>{const _0x1d4327=_0x536533;if(_0x1100d0==null||_0x1100d0[_0x1d4327(0x236)]!==this['unitID'])return;let {commandId:_0x4216cf,redoState:_0x2766c6,unitId:_0x3bd604}=_0x1100d0,_0x1370c8={'id':_0x4216cf,'type':t[_0x1d4327(0x1b6)][_0x1d4327(0x3fa)],'params':{'unitId':_0x3bd604,'actions':_0x2766c6['actions'],'textRanges':null}};this[_0x1d4327(0x103)](_0x1370c8);})),this[_0x536533(0x3a2)](this[_0x536533(0x28d)]['onMutationExecutedForCollab']((_0x26a87b,_0x3ee58a)=>{const _0x15d79b=_0x536533;if(_0x26a87b['type']!==t['CommandType'][_0x15d79b(0x3fa)]||_0x3ee58a!=null&&_0x3ee58a['fromCollab']||_0x3ee58a!=null&&_0x3ee58a[_0x15d79b(0x24f)]||_0x26a87b['id']===n[_0x15d79b(0x1cd)]['id'])return;let _0x507edb=_0x26a87b[_0x15d79b(0x351)];if((_0x507edb==null?void 0x0:_0x507edb['unitId'])!==this['unitID'])return;let _0x365ead=_0x26a87b,_0x37babb=this[_0x15d79b(0x2f9)][_0x15d79b(0x13c)][_0x15d79b(0x3c2)](this[_0x15d79b(0x2f9)][_0x15d79b(0x13c)][_0x15d79b(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x365ead],this['_univerInstanceService'])||[_0x365ead];this[_0x15d79b(0x103)](_0x37babb[0x0]);})),_0x299a02;}};F=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t['Inject'])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Inject'])(n[_0x528acf(0x2d0)])),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t['Optional'])(x))],F);let I=class extends P{constructor(_0x130bb5,_0x2a8aa4,_0x6baec3,_0x20f327,_0x250a3a,_0x399be3,_0x591cff,_0x2ce568,_0x5a1360,_0x3d00c8,_0x4e0390,_0x4762e5,_0x2a539d,_0x1a5001){const _0x391f25=_0x528acf;super(_0x130bb5,_0x6baec3,_0x2a8aa4,_0x20f327,_0x250a3a,_0x399be3,_0x591cff,_0x2ce568,_0x5a1360,_0x3d00c8,_0x4e0390,_0x4762e5,_0x2a539d,_0x1a5001),this[_0x391f25(0x179)]=_0x130bb5,this[_0x391f25(0x191)]=_0x2a8aa4;}async['_init'](){const _0x2307d6=_0x528acf;let _0x2d6556=await super['_init']();return this['disposeWithMe'](this[_0x2307d6(0x28d)]['onMutationExecutedForCollab']((_0x5d6d19,_0xc0fdf1)=>{const _0x27a80e=_0x2307d6;if(_0x5d6d19['type']!==t['CommandType'][_0x27a80e(0x3fa)]||_0xc0fdf1!=null&&_0xc0fdf1[_0x27a80e(0x118)]||_0xc0fdf1!=null&&_0xc0fdf1[_0x27a80e(0x24f)])return;let _0x13376b=_0x5d6d19[_0x27a80e(0x351)];if((_0x13376b==null?void 0x0:_0x13376b[_0x27a80e(0x236)])!==this[_0x27a80e(0x179)])return;let _0x1960d5=_0x5d6d19,_0xc6a622=this['_compressMutationService'][_0x27a80e(0x13c)][_0x27a80e(0x3c2)](this[_0x27a80e(0x2f9)][_0x27a80e(0x13c)][_0x27a80e(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x1960d5],this['_univerInstanceService'])||[_0x1960d5];this['_onLocalMutation'](_0xc6a622[0x0]);})),_0x2d6556;}};I=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e['CompressMutationService'])),v(0x5,(0x0,t['Inject'])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t['IPermissionService']),v(0xc,(0x0,t[_0x528acf(0x3ad)])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],I);let L=class extends P{constructor(_0x322c64,_0x3fbb0b,_0x4f6119,_0x7bb873,_0x2d9ad4,_0x54cd66,_0x4954b6,_0x49d04f,_0x130991,_0xfd4f60,_0x451b6a,_0x42631e,_0x504ead,_0x1a3399,_0x57f426){const _0x40fd96=_0x528acf;super(_0x322c64,_0x4f6119,_0x3fbb0b,_0x7bb873,_0x2d9ad4,_0x54cd66,_0x4954b6,_0x130991,_0xfd4f60,_0x451b6a,_0x42631e,_0x504ead,_0x1a3399,_0x57f426),this[_0x40fd96(0x179)]=_0x322c64,this[_0x40fd96(0x191)]=_0x3fbb0b,this[_0x40fd96(0x326)]=_0x49d04f;}[_0x528acf(0x123)](){const _0x385b6d=_0x528acf;let _0x59adb7=super['_createHandler']();return _0x59adb7[_0x385b6d(0x3f5)]=_0x1da569=>this[_0x385b6d(0x326)][_0x385b6d(0x2f2)](_0x1da569),_0x59adb7;}async[_0x528acf(0x250)](){const _0xe93c1d=_0x528acf;let _0x286fa1=await super[_0xe93c1d(0x250)]();return this[_0xe93c1d(0x3a2)](this[_0xe93c1d(0x28d)]['onMutationExecutedForCollab']((_0x53b07a,_0x493eed)=>{const _0x28575f=_0xe93c1d;if(_0x53b07a[_0x28575f(0x191)]!==t[_0x28575f(0x1b6)][_0x28575f(0x3fa)]||_0x493eed!=null&&_0x493eed[_0x28575f(0x118)]||_0x493eed!=null&&_0x493eed[_0x28575f(0x24f)])return;let _0x59d1f4=_0x53b07a['params'];if((_0x59d1f4==null?void 0x0:_0x59d1f4[_0x28575f(0x236)])!==this[_0x28575f(0x179)])return;let _0x8c60d6=_0x53b07a,_0x1f1f13=this['_compressMutationService'][_0x28575f(0x13c)][_0x28575f(0x3c2)](this[_0x28575f(0x2f9)]['interceptor'][_0x28575f(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x8c60d6],this['_univerInstanceService'])||[_0x8c60d6];this[_0x28575f(0x103)](_0x1f1f13[0x0]);})),_0x286fa1;}};L=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(S)),v(0x8,(0x0,t[_0x528acf(0x17f)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t[_0x528acf(0x30e)]),v(0xb,t['ICommandService']),v(0xc,t['IPermissionService']),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x528acf(0x3ad)])(x))],L);let R=class extends P{constructor(_0x362a09,_0x184c97,_0x195356,_0x7952f,_0x23211b,_0x57a429,_0x20081f,_0x23f823,_0x105cc8,_0x1bc0be,_0x3879d5,_0x35ac41,_0x35e5bd,_0x2b4e48){const _0x5ee6f2=_0x528acf;super(_0x362a09,_0x195356,_0x184c97,_0x7952f,_0x23211b,_0x57a429,_0x20081f,_0x23f823,_0x105cc8,_0x1bc0be,_0x3879d5,_0x35ac41,_0x35e5bd,_0x2b4e48),this[_0x5ee6f2(0x179)]=_0x362a09,this[_0x5ee6f2(0x191)]=_0x184c97;}async[_0x528acf(0x250)](){const _0x5be641=_0x528acf;let _0x14f24b=await super[_0x5be641(0x250)]();return this[_0x5be641(0x3a2)](this[_0x5be641(0x28d)][_0x5be641(0x2c6)]((_0x32e669,_0x4e0380)=>{const _0x47036b=_0x5be641;if(_0x32e669[_0x47036b(0x191)]!==t[_0x47036b(0x1b6)][_0x47036b(0x3fa)]||_0x4e0380!=null&&_0x4e0380[_0x47036b(0x118)]||_0x4e0380!=null&&_0x4e0380[_0x47036b(0x24f)])return;let _0x32e63f=_0x32e669[_0x47036b(0x351)];if((_0x32e63f==null?void 0x0:_0x32e63f[_0x47036b(0x236)])!==this[_0x47036b(0x179)])return;let _0x22ea3c=_0x32e669,_0x2419b1=this[_0x47036b(0x2f9)][_0x47036b(0x13c)][_0x47036b(0x3c2)](this[_0x47036b(0x2f9)][_0x47036b(0x13c)]['getInterceptPoints']()[_0x47036b(0x3d4)])([_0x22ea3c],this[_0x47036b(0x416)])||[_0x22ea3c];this[_0x47036b(0x103)](_0x2419b1[0x0]);})),_0x14f24b;}};R=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t['IUniverInstanceService']),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],R);let z=class extends P{constructor(_0x1a1a61,_0x165e95,_0x10b660,_0x239c17,_0x3fd214,_0x8689e3,_0x257c5b,_0x26ced2,_0x5a38e5,_0x29273e,_0x2d504d,_0x171eb0,_0x1e8ca6,_0x39f1e5){const _0x59711d=_0x528acf;super(_0x1a1a61,_0x10b660,_0x165e95,_0x239c17,_0x3fd214,_0x8689e3,_0x257c5b,_0x26ced2,_0x5a38e5,_0x29273e,_0x2d504d,_0x171eb0,_0x1e8ca6,_0x39f1e5),this[_0x59711d(0x179)]=_0x1a1a61,this[_0x59711d(0x191)]=_0x165e95;}async[_0x528acf(0x250)](){const _0x555fde=_0x528acf;let _0x3b6ebe=await super[_0x555fde(0x250)]();return this[_0x555fde(0x3a2)](this['_commandService'][_0x555fde(0x2c6)]((_0x335519,_0x18e3a6)=>{const _0x12ba74=_0x555fde;if(_0x335519[_0x12ba74(0x191)]!==t['CommandType'][_0x12ba74(0x3fa)]||_0x18e3a6!=null&&_0x18e3a6[_0x12ba74(0x118)]||_0x18e3a6!=null&&_0x18e3a6[_0x12ba74(0x24f)])return;let _0x18e8e7=_0x335519['params'];if((_0x18e8e7==null?void 0x0:_0x18e8e7[_0x12ba74(0x236)])!==this[_0x12ba74(0x179)])return;let _0x135bff=_0x335519,_0x362066=this[_0x12ba74(0x2f9)][_0x12ba74(0x13c)][_0x12ba74(0x3c2)](this[_0x12ba74(0x2f9)][_0x12ba74(0x13c)][_0x12ba74(0x3ea)]()[_0x12ba74(0x3d4)])([_0x135bff],this['_univerInstanceService'])||[_0x135bff];this[_0x12ba74(0x103)](_0x362066[0x0]);})),_0x3b6ebe;}};z=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x528acf(0x3ad)])(x))],z);let B=class extends P{constructor(_0x256b99,_0x245ad0,_0x246452,_0xade3e2,_0x3e3407,_0x4196b1,_0x2f6e38,_0x56143f,_0x1ea9f0,_0x5cae05,_0x17d979,_0x4c554f,_0x42dd2e,_0x2139af){const _0x15b1c4=_0x528acf;super(_0x256b99,_0x246452,_0x245ad0,_0xade3e2,_0x3e3407,_0x4196b1,_0x2f6e38,_0x56143f,_0x1ea9f0,_0x5cae05,_0x17d979,_0x4c554f,_0x42dd2e,_0x2139af),this['unitID']=_0x256b99,this[_0x15b1c4(0x191)]=_0x245ad0;}async[_0x528acf(0x250)](){const _0x549537=_0x528acf;let _0x12739f=await super['_init']();return this['disposeWithMe'](this[_0x549537(0x28d)]['onMutationExecutedForCollab']((_0x431be0,_0x10dffd)=>{const _0x69cf78=_0x549537;if(_0x431be0[_0x69cf78(0x191)]!==t[_0x69cf78(0x1b6)][_0x69cf78(0x3fa)]||_0x10dffd!=null&&_0x10dffd['fromCollab']||_0x10dffd!=null&&_0x10dffd[_0x69cf78(0x24f)])return;let _0x151ac8=_0x431be0[_0x69cf78(0x351)];if((_0x151ac8==null?void 0x0:_0x151ac8[_0x69cf78(0x236)])!==this[_0x69cf78(0x179)])return;let _0x5287d1=_0x431be0,_0x543726=this['_compressMutationService'][_0x69cf78(0x13c)][_0x69cf78(0x3c2)](this[_0x69cf78(0x2f9)][_0x69cf78(0x13c)][_0x69cf78(0x3ea)]()['COMPRESS_MUTATION_SEND'])([_0x5287d1],this['_univerInstanceService'])||[_0x5287d1];this[_0x69cf78(0x103)](_0x543726[0x0]);})),_0x12739f;}};B=y([v(0x3,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x4,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x3a1)])),v(0x5,(0x0,t[_0x528acf(0x17f)])(t['LocaleService'])),v(0x6,(0x0,t[_0x528acf(0x17f)])(e[_0x528acf(0x2b8)])),v(0x7,(0x0,t[_0x528acf(0x17f)])(_)),v(0x8,t[_0x528acf(0x3a7)]),v(0x9,t[_0x528acf(0x30e)]),v(0xa,t[_0x528acf(0x14e)]),v(0xb,t[_0x528acf(0x352)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t['Optional'])(x))],B);const We=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x14c));function Ge(_0x377a09){const _0x2ce592=_0x528acf;let _0x2b90b3=_0x377a09[_0x2ce592(0x325)],_0x36a782=JSON[_0x2ce592(0x1c7)](_0x2b90b3);switch(_0x36a782[_0x2ce592(0x138)]){case a[_0x2ce592(0x110)][_0x2ce592(0x2c5)]:case a[_0x2ce592(0x110)][_0x2ce592(0x28a)]:{let _0xb33be9=_0x36a782[_0x2ce592(0x2d7)];return{..._0x36a782,'data':_0xb33be9,'cmd':_0x36a782[_0x2ce592(0x138)]};}case a[_0x2ce592(0x110)][_0x2ce592(0x22f)]:{let _0xa8fdd3=_0x36a782[_0x2ce592(0x13d)];return{..._0x36a782,'data':_0xa8fdd3,'cmd':_0x36a782['cmd']};}case a['CombCmd'][_0x2ce592(0x398)]:{let _0x37b1e0=_0x36a782[_0x2ce592(0x385)];switch(_0x37b1e0[_0x2ce592(0x1f0)]){case e[_0x2ce592(0x330)][_0x2ce592(0x426)]:var _0xa58d3f;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0xa58d3f=_0x37b1e0[_0x2ce592(0x32a)])==null?void 0x0:_0xa58d3f['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x41f)]:var _0x2419dd;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x2419dd=_0x37b1e0[_0x2ce592(0x2e8)])==null?void 0x0:_0x2419dd['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x173)]:var _0x3a8ae0;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x3a8ae0=_0x37b1e0[_0x2ce592(0x359)])==null?void 0x0:_0x3a8ae0['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x26c)]:var _0x2051ed;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x2051ed=_0x37b1e0[_0x2ce592(0x3c7)])==null?void 0x0:_0x2051ed['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['CHANGESET_SHOULD_RETRY']:var _0x4a738c;return{..._0x36a782,'data':{..._0x37b1e0,'data':(_0x4a738c=_0x37b1e0['csShouldRetryEvent'])==null?void 0x0:_0x4a738c['cs']},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x35b)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0['updateCursorEvent']},'cmd':_0x36a782['cmd']};case e[_0x2ce592(0x330)]['USERS_ENTER']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x348)]},'cmd':_0x36a782['cmd']};case e[_0x2ce592(0x330)][_0x2ce592(0x131)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x275)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x390)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x2c1)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x1de)]:case e[_0x2ce592(0x330)]['LIVESHARE_OPERATION']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x263)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x3ee)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x2c1)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e['CollaborationEvent'][_0x2ce592(0x1d5)]:return{..._0x36a782,'data':_0x37b1e0,'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['COMMENT_UPDATE']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x3e3)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)]['UPDATE_PERMISSION_OBJ']:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x3b6)]},'cmd':_0x36a782['cmd']};case e['CollaborationEvent'][_0x2ce592(0x2bd)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0[_0x2ce592(0x116)]},'cmd':_0x36a782[_0x2ce592(0x138)]};case e[_0x2ce592(0x330)][_0x2ce592(0x11f)]:return{..._0x36a782,'data':{..._0x37b1e0,'data':_0x37b1e0['uniscriptRunEvent']},'cmd':_0x36a782['cmd']};default:return _0x36a782;}}default:return _0x36a782;}}function Ke(_0x57f6b0){const _0x9d90f1=_0x528acf;switch(_0x57f6b0['cmd']){case a[_0x9d90f1(0x110)]['HEARTBEAT']:case a[_0x9d90f1(0x110)][_0x9d90f1(0x28a)]:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)]});case a[_0x9d90f1(0x110)][_0x9d90f1(0x37e)]:{let _0x960dbc;switch(_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x1f0)]){case e[_0x9d90f1(0x330)][_0x9d90f1(0x35b)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x35b)],'updateCursorEvent':_0x57f6b0[_0x9d90f1(0x325)]['data']};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x131)]:_0x960dbc={'eventID':e['CollaborationEvent'][_0x9d90f1(0x131)],'leaveEvent':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x1d0)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x1d0)],'joinEvent':_0x57f6b0['data'][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x390)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)]['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e['CollaborationEvent'][_0x9d90f1(0x350)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x350)],'liveShareOperation':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)]['LIVESHARE_TERMINATE']:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x3ee)],'liveShareTerminate':_0x57f6b0['data'][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x36e)]:_0x960dbc={'eventID':e['CollaborationEvent'][_0x9d90f1(0x36e)],'liveShareRequestHost':_0x57f6b0[_0x9d90f1(0x325)][_0x9d90f1(0x325)]};break;case e[_0x9d90f1(0x330)][_0x9d90f1(0x1de)]:_0x960dbc={'eventID':e[_0x9d90f1(0x330)][_0x9d90f1(0x1de)]};break;default:_0x960dbc={'eventID':_0x57f6b0['data'][_0x9d90f1(0x1f0)]};}return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)],'collaMsg':_0x960dbc});}case a[_0x9d90f1(0x110)]['JOIN']:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0[_0x9d90f1(0x138)],'routeKey':_0x57f6b0['routeKey'],'joinReq':_0x57f6b0['data']});case a[_0x9d90f1(0x110)][_0x9d90f1(0x427)]:return JSON[_0x9d90f1(0x29e)]({'cmd':_0x57f6b0['cmd'],'routeKey':_0x57f6b0[_0x9d90f1(0x16c)],'leaveReq':_0x57f6b0['data']});default:throw Error(_0x9d90f1(0x299));}}const qe=(0x0,t[_0x528acf(0x2ab)])('univer-pro.collaboration-client-socket-service');function Je(_0x425999,_0x786e8b,_0x137216){const _0x5f3377=_0x528acf;return _0x425999+'/'+_0x786e8b+_0x5f3377(0x187)+_0x137216+'/new_changes';}let Ye=class extends t[_0x528acf(0x23e)]{constructor(_0x4ab42d,_0x4a9909,_0x134b32,_0xc57d,_0x48750a){const _0x83dda1=_0x528acf;super(),this[_0x83dda1(0x1d6)]=_0x4ab42d,this['_httpService']=_0x4a9909,this[_0x83dda1(0xfa)]=_0x134b32,this[_0x83dda1(0x320)]=_0xc57d,this[_0x83dda1(0x2d1)]=_0x48750a;}['_doCreateSocket'](_0x1ca663){const _0x29027f=_0x528acf;let _0x1c3e30=this[_0x29027f(0x1d6)][_0x29027f(0x1b0)](l[_0x29027f(0x2b9)]);if(!_0x1c3e30)throw Error(_0x29027f(0x1fc));let _0x398044=_0x1c3e30[_0x29027f(0x241)](_0x1ca663);if(!_0x398044)throw Error(_0x29027f(0x10a));let _0x50e65e=new t[(_0x29027f(0x417))](),_0x452e03=new i[(_0x29027f(0x1bf))]();_0x50e65e[_0x29027f(0x3ac)](_0x398044[_0x29027f(0x374)]['subscribe'](_0x226624=>_0x452e03[_0x29027f(0x307)](_0x226624))),_0x50e65e[_0x29027f(0x3ac)]((0x0,t[_0x29027f(0x3dc)])(()=>_0x452e03[_0x29027f(0x13b)]()));let _0x4e029b=new i[(_0x29027f(0x1bf))]();_0x50e65e[_0x29027f(0x3ac)](_0x398044['error$'][_0x29027f(0x367)](_0x403069=>_0x4e029b['next'](_0x403069))),_0x50e65e['add']((0x0,t[_0x29027f(0x3dc)])(()=>_0x4e029b[_0x29027f(0x13b)]()));let _0x354cce=new i['Subject']();_0x50e65e[_0x29027f(0x3ac)](_0x398044[_0x29027f(0x38a)]['subscribe'](_0x509df4=>{const _0x4d203a=_0x29027f;let _0x413a76=Ge(_0x509df4);_0x354cce[_0x4d203a(0x307)](_0x413a76);})),_0x50e65e['add']((0x0,t[_0x29027f(0x3dc)])(()=>_0x354cce['complete']()));let _0x3cff5b,_0x3da9f4=()=>{const _0x445ec3=_0x29027f;_0x4e029b[_0x445ec3(0x307)](new Event('connection\x20error')),_0x452e03[_0x445ec3(0x307)](new Event(_0x445ec3(0x383))),_0x3cff5b['close']();};return _0x3cff5b={'memberID':'','close$':_0x452e03[_0x29027f(0x1db)](),'error$':_0x4e029b[_0x29027f(0x1db)](),'open$':_0x398044[_0x29027f(0x114)],'message$':_0x354cce[_0x29027f(0x1db)](),'send':_0x41f328=>{const _0x277aaf=_0x29027f;if(_0x41f328[_0x277aaf(0x138)]===a['CombCmd']['INGEST']){if(_0x41f328['data'][_0x277aaf(0x1f0)]===e[_0x277aaf(0x330)][_0x277aaf(0x1a7)]){this['_submitChangeset'](_0x3cff5b,_0x41f328[_0x277aaf(0x325)])[_0x277aaf(0x3ed)](_0x18604e=>{const _0x4ddb2f=_0x277aaf;this[_0x4ddb2f(0x320)][_0x4ddb2f(0x2d2)](_0x18604e),_0x3da9f4();});return;}if(_0x41f328['data']['eventID']===e[_0x277aaf(0x330)][_0x277aaf(0x29c)]){let _0x10d850=_0x41f328['data'];this['_fetchMissChangesets'](_0x10d850)[_0x277aaf(0x287)](_0x5634f2=>{const _0x4e53f3=_0x277aaf;_0x354cce[_0x4e53f3(0x307)]({'cmd':a[_0x4e53f3(0x110)][_0x4e53f3(0x398)],'code':a[_0x4e53f3(0x1a6)]['OK'],'routeKey':_0x10d850[_0x4e53f3(0x325)][_0x4e53f3(0x179)],'routeType':'','data':{'eventID':e[_0x4e53f3(0x330)][_0x4e53f3(0x40f)],'data':{'changesets':_0x5634f2}}});})[_0x277aaf(0x3ed)](_0x4ab925=>{this['_logService']['error'](_0x4ab925),_0x3da9f4();});return;}}_0x398044[_0x277aaf(0x2ef)](Ke(_0x41f328));},'close':()=>{const _0x3be1b3=_0x29027f;_0x398044['close'](),_0x50e65e[_0x3be1b3(0x1fb)]();}},_0x3cff5b;}async[_0x528acf(0x291)](_0x93bf4f,_0x4b2dc8){const _0x38bacf=_0x528acf;let {unitType:_0x32c393,unitID:_0x55f7d8,changeset:_0x40dde7}=_0x4b2dc8[_0x38bacf(0x325)],_0x163f70={'unitID':_0x55f7d8,'memberID':_0x93bf4f[_0x38bacf(0x2c4)],'type':_0x32c393,'changeset':(0x0,e['parseChangesetToProtocol'])(_0x40dde7)},_0x56e22d=this['_configService'][_0x38bacf(0x25f)](m),_0x5409fe=Je((_0x56e22d==null?void 0x0:_0x56e22d[_0x38bacf(0x165)])??'/universer-api/comb',_0x32c393,_0x55f7d8);try{await this[_0x38bacf(0x1ff)][_0x38bacf(0x24c)](_0x5409fe,{'body':_0x163f70});}catch(_0x1a95d8){throw this[_0x38bacf(0x320)]['error']('[CollaborationSession]',_0x38bacf(0x337)),_0x1a95d8;}}async[_0x528acf(0x2a2)](_0x39fac4){const _0x220871=_0x528acf;let {unitID:_0x1afffb,from:_0x421841,to:_0x30fe73,unitType:_0x2c75f7}=_0x39fac4[_0x220871(0x325)];return(await this[_0x220871(0x2d1)][_0x220871(0x27f)]({'metadata':void 0x0},{'unitID':_0x1afffb,'type':_0x2c75f7,'from':_0x421841,'to':_0x30fe73}))['changesets'][_0x220871(0x1f4)](_0x19977f=>((_0x19977f['mutations']===null||_0x19977f['mutations']===void 0x0)&&(_0x19977f['mutations']=[]),_0x19977f));}};Ye=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)])),v(0x2,t[_0x528acf(0x295)]),v(0x3,t['ILogService']),v(0x4,e[_0x528acf(0x14f)])],Ye);function _0x3420(_0x7940d2,_0x2e2edc){_0x7940d2=_0x7940d2-0xfa;const _0x28799a=_0x2879();let _0x3420ff=_0x28799a[_0x7940d2];return _0x3420ff;}const Xe=(0x0,t[_0x528acf(0x2ab)])(_0x528acf(0x37b));function Ze(_0x1a6dab={}){const _0x340612=_0x528acf;return _0x1a6dab['resolveUnit']?{'resolveUnit':_0x1a6dab[_0x340612(0x3da)]}:{'resolveUnit':_0x5f5745=>({'target':{'unitId':_0x5f5745['unitId'],'unitType':_0x5f5745[_0x340612(0x37d)]}})};}function Qe(_0xef96e4,_0x5e0fea,_0x54f55e){const _0x2a8c72=_0x528acf;let _0x50c7a1=_0x54f55e['target'][_0x2a8c72(0x243)];if(_0x50c7a1!=null&&_0x50c7a1[_0x2a8c72(0x247)]()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0x54f55e[_0x2a8c72(0x245)][_0x2a8c72(0x236)])throw Error('COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED');return{'localUnitId':_0xef96e4,'unitType':_0x5e0fea,'target':{'endpoint':_0x50c7a1,'unitId':_0x54f55e[_0x2a8c72(0x245)]['unitId'],'unitType':_0x54f55e[_0x2a8c72(0x245)]['unitType']??_0x5e0fea},'changeset':_0x54f55e[_0x2a8c72(0x2f0)]};}let V=class extends t['Disposable']{constructor(_0x51999a,_0x592f8f,_0x161624,_0x3227e8,_0x37ff5b,_0x5892e7,_0x3b7aa1){const _0x5e3999=_0x528acf;super(),this['_injector']=_0x51999a,this['_logService']=_0x592f8f,this['_configService']=_0x161624,this['_socketService']=_0x3227e8,this[_0x5e3999(0x102)]=_0x37ff5b,this[_0x5e3999(0x19a)]=_0x5892e7,this[_0x5e3999(0x1e5)]=_0x3b7aa1,g(this,_0x5e3999(0x3f3),new Map()),g(this,_0x5e3999(0x360),new Map()),g(this,_0x5e3999(0x178),new Map()),g(this,_0x5e3999(0x3e7),new Map()),g(this,_0x5e3999(0x36c),this['_getSocketChannel'](void 0x0)[_0x5e3999(0x36c)]['asObservable']()),g(this,_0x5e3999(0x20c),new i[(_0x5e3999(0x1ef))](0x0)),g(this,_0x5e3999(0x422),this[_0x5e3999(0x20c)][_0x5e3999(0x1db)]()),this[_0x5e3999(0x356)]();}['_listenToNetworkCondition'](){const _0x540721=_0x528acf;this[_0x540721(0x1e5)]&&this[_0x540721(0x3a2)](this['_networkConditionService'][_0x540721(0x248)][_0x540721(0x367)](_0x39abd9=>{const _0x86428a=_0x540721;_0x39abd9&&this[_0x86428a(0x40b)](),_0x39abd9||this['_socketChannels']['forEach'](_0x3c4de2=>this[_0x86428a(0x2ad)](_0x3c4de2));}));}['dispose'](){const _0x187724=_0x528acf;super[_0x187724(0x1fb)](),this['_socketChannels'][_0x187724(0x2d9)](_0x3c7df2=>{const _0x22a927=_0x187724;var _0x2300cc,_0x30be21;(_0x2300cc=_0x3c7df2[_0x22a927(0x3b9)])==null||_0x2300cc[_0x22a927(0x282)](),_0x3c7df2[_0x22a927(0x3b9)]=null,this['_clearRetryConnectingTimer'](_0x3c7df2),this['_clearTimeoutTimer'](_0x3c7df2),this[_0x22a927(0x1cb)](_0x3c7df2),(_0x30be21=_0x3c7df2[_0x22a927(0x36c)][_0x22a927(0x193)]())==null||_0x30be21[_0x22a927(0x11c)](),_0x3c7df2[_0x22a927(0x36c)][_0x22a927(0x13b)]();}),this[_0x187724(0x3e7)][_0x187724(0x3fc)](),this[_0x187724(0x3f3)][_0x187724(0x2d9)](_0x2c975e=>_0x2c975e['dispose']()),this[_0x187724(0x3f3)]['clear'](),this[_0x187724(0x178)][_0x187724(0x3fc)](),this['_status$']['complete']();}async[_0x528acf(0x1d1)](_0x34769c,_0x5c7ace){const _0x3ae143=_0x528acf;if(this[_0x3ae143(0x3f3)]['has'](_0x34769c))return this['_sessions'][_0x3ae143(0x1b0)](_0x34769c);let _0xa18974=this[_0x3ae143(0x360)]['get'](_0x34769c);if(_0xa18974)return _0xa18974;let _0x5f1104=this[_0x3ae143(0x24b)](_0x34769c,_0x5c7ace);this['_pendingSessions'][_0x3ae143(0x18b)](_0x34769c,_0x5f1104);try{return await _0x5f1104;}finally{this[_0x3ae143(0x360)][_0x3ae143(0x166)](_0x34769c);}}async['_createSession'](_0x4e8d1c,_0x46765a){const _0x28171a=_0x528acf;let _0x4a8591=await this[_0x28171a(0x22b)](_0x4e8d1c,_0x46765a),_0x2334d9=this['_getSocketChannel'](_0x4a8591[_0x28171a(0x245)]['endpoint']);this[_0x28171a(0x3cd)](_0x2334d9);let _0x5b5fb4=this[_0x28171a(0x1d6)][_0x28171a(0x33d)](ve,_0x4a8591,_0x2334d9[_0x28171a(0x36c)][_0x28171a(0x1db)]());return this[_0x28171a(0x3f3)][_0x28171a(0x18b)](_0x4e8d1c,_0x5b5fb4),this['_sessionChannels'][_0x28171a(0x18b)](_0x4e8d1c,_0x2334d9[_0x28171a(0x3e0)]),_0x5b5fb4;}[_0x528acf(0x408)](_0x5453cc){const _0x2b0a75=_0x528acf;let _0x647dfb=this[_0x2b0a75(0x3f3)][_0x2b0a75(0x1b0)](_0x5453cc),_0xce6018=this[_0x2b0a75(0x178)][_0x2b0a75(0x1b0)](_0x5453cc);if(_0x647dfb&&(this['_sessions'][_0x2b0a75(0x166)](_0x5453cc),this[_0x2b0a75(0x178)][_0x2b0a75(0x166)](_0x5453cc),_0x647dfb[_0x2b0a75(0x11c)]()),_0xce6018&&!this['_hasSessionsForEndpoint'](_0xce6018)){var _0x1868e6;let _0x2d4161=this[_0x2b0a75(0x3e7)][_0x2b0a75(0x1b0)](_0xce6018);_0x2d4161==null||(_0x1868e6=_0x2d4161[_0x2b0a75(0x36c)][_0x2b0a75(0x193)]())==null||_0x1868e6['close']();}}[_0x528acf(0x40b)](){const _0x5a80f8=_0x528acf;(this[_0x5a80f8(0x3e7)][_0x5a80f8(0x2c7)]?[...this[_0x5a80f8(0x3e7)]['values']()]:[this[_0x5a80f8(0x2a5)](void 0x0)])[_0x5a80f8(0x2d9)](_0x382ef7=>{const _0xc4ae9a=_0x5a80f8;_0x382ef7[_0xc4ae9a(0x176)]=0x0,this[_0xc4ae9a(0x345)](_0x382ef7),this[_0xc4ae9a(0x158)](_0x382ef7);});}['_clearRetryConnectingTimer'](_0x54a222){const _0x59296c=_0x528acf;_0x54a222['retryConnectingTimer']!=null&&(clearTimeout(_0x54a222[_0x59296c(0x421)]),_0x54a222[_0x59296c(0x421)]=null);}async[_0x528acf(0x171)](_0x2d361d){const _0x5c4dcb=_0x528acf;let _0x45b5b8=this[_0x5c4dcb(0xfa)][_0x5c4dcb(0x25f)](m),_0x503e01=_0x2d361d[_0x5c4dcb(0x243)]??(_0x45b5b8==null?void 0x0:_0x45b5b8['collabWebSocketUrl'])??_0x5c4dcb(0x219),_0x1dd05f=await this[_0x5c4dcb(0x27b)][_0x5c4dcb(0x241)](_0x503e01);return _0x2d361d[_0x5c4dcb(0x3ff)]=_0x1dd05f,_0x1dd05f;}async['_tryEnsureSocket'](_0x192642){const _0x4ea611=_0x528acf;try{let _0x5769e9=_0x192642[_0x4ea611(0x36c)][_0x4ea611(0x193)]()??_0x192642[_0x4ea611(0x3ff)]??await this[_0x4ea611(0x171)](_0x192642);if(_0x5769e9){var _0x5d8a4d;let _0x1e095f=_0x5769e9[_0x4ea611(0x2ef)];_0x5769e9[_0x4ea611(0x2ef)]=_0x24f12d=>(_0x24f12d['cmd']!==a['CombCmd']['LEAVE']&&this['_rescheduleHeartbeat'](_0x192642),_0x1e095f[_0x4ea611(0x335)](_0x5769e9,[_0x24f12d])),(_0x5d8a4d=_0x192642['socketMessageSubscription'])==null||_0x5d8a4d[_0x4ea611(0x282)](),_0x192642[_0x4ea611(0x3b9)]=null,_0x192642['socketMessageSubscription']=_0x5769e9[_0x4ea611(0x38a)][_0x4ea611(0x367)](_0xee15c4=>this[_0x4ea611(0x3c5)](_0x192642,_0x5769e9,_0xee15c4)),_0x5769e9[_0x4ea611(0x1c4)][_0x4ea611(0x3cf)]((0x0,s['take'])(0x1))[_0x4ea611(0x367)](_0x10e4bc=>this[_0x4ea611(0x320)][_0x4ea611(0x2d2)](_0x4ea611(0x3d1),_0x10e4bc)),_0x5769e9[_0x4ea611(0x114)][_0x4ea611(0x3cf)]((0x0,s[_0x4ea611(0x17b)])(0x1))[_0x4ea611(0x367)](()=>{const _0x2cc446=_0x4ea611;this[_0x2cc446(0x308)](_0x192642,_0x5769e9);}),_0x5769e9['close$']['pipe']((0x0,s[_0x4ea611(0x17b)])(0x1))[_0x4ea611(0x367)](_0x1bfee7=>{const _0x5da0b6=_0x4ea611;this[_0x5da0b6(0x320)][_0x5da0b6(0x264)]('[CollaborationSessionService]',_0x5da0b6(0x122),_0x1bfee7),this['_onConnectionFailed'](_0x192642);});}}catch(_0x557085){this[_0x4ea611(0x320)]['error'](_0x557085),this[_0x4ea611(0x329)](_0x192642);}}[_0x528acf(0x308)](_0xe337c1,_0x392a12){const _0x9f98d9=_0x528acf;this['_logService'][_0x9f98d9(0x264)](_0x9f98d9(0x2a3),_0x9f98d9(0x23c)),_0x392a12[_0x9f98d9(0x2ef)]({'cmd':a[_0x9f98d9(0x110)][_0x9f98d9(0x28a)]}),this['_rescheduleHeartbeat'](_0xe337c1);}[_0x528acf(0x2ad)](_0x2b3a70){const _0x1023da=_0x528acf;_0x2b3a70[_0x1023da(0x1d7)]=!0x1,_0x2b3a70[_0x1023da(0x3ff)]=null,this[_0x1023da(0x20c)]['next'](0x2),_0x2b3a70[_0x1023da(0x36c)]['next'](null),this[_0x1023da(0x35d)](_0x2b3a70),this[_0x1023da(0x1cb)](_0x2b3a70);}['_onConnectionFailed'](_0x5aab0b){const _0x4c59b8=_0x528acf;this[_0x4c59b8(0x2ad)](_0x5aab0b),this[_0x4c59b8(0x1bd)](_0x5aab0b[_0x4c59b8(0x3e0)])&&(_0x5aab0b[_0x4c59b8(0x176)]<(this['_configService'][_0x4c59b8(0x25f)](_0x4c59b8(0x146))??0x3)?(this['_collaborationUIEventService'][_0x4c59b8(0x237)]({'id':'SOCKET_FAILED_RETRY'}),this['_tryReconnect'](_0x5aab0b)):this[_0x4c59b8(0x102)]['emitEvent']({'id':'SOCKET_FAILED'}));}[_0x528acf(0x158)](_0x36efe1){const _0x549ff5=_0x528acf;let _0x11bd12=_0x36efe1[_0x549ff5(0x176)],_0x145034=this[_0x549ff5(0xfa)][_0x549ff5(0x25f)](m),_0x820b43=_0x11bd12===0x0?0x0:((_0x145034==null?void 0x0:_0x145034[_0x549ff5(0x1a2)])??0x4e20)*0x2**_0x11bd12;_0x36efe1[_0x549ff5(0x421)]=setTimeout(()=>{const _0x1c205d=_0x549ff5;clearTimeout(_0x36efe1['retryConnectingTimer']),_0x36efe1[_0x1c205d(0x421)]=null,this[_0x1c205d(0x3cd)](_0x36efe1);},_0x820b43),_0x36efe1[_0x549ff5(0x176)]+=0x1;}async[_0x528acf(0x22b)](_0x1fa294,_0x21e18d){return Qe(_0x1fa294,_0x21e18d,await this['_adapter']['resolveUnit']({'unitId':_0x1fa294,'unitType':_0x21e18d}));}[_0x528acf(0x3c5)](_0x253f49,_0x36f362,_0x49adbd){const _0x2ea4a8=_0x528acf;let {cmd:_0x5bde89}=_0x49adbd;_0x5bde89===a[_0x2ea4a8(0x110)][_0x2ea4a8(0x28a)]&&!_0x253f49[_0x2ea4a8(0x1d7)]&&(_0x36f362[_0x2ea4a8(0x2c4)]=_0x49adbd[_0x2ea4a8(0x325)][_0x2ea4a8(0x2c4)],_0x253f49[_0x2ea4a8(0x36c)][_0x2ea4a8(0x307)](_0x36f362),this['_status$'][_0x2ea4a8(0x307)](0x3),_0x253f49[_0x2ea4a8(0x1d7)]=!0x0,_0x253f49['candidateSocket']=null),_0x5bde89===a['CombCmd'][_0x2ea4a8(0x2c5)]&&this[_0x2ea4a8(0x35d)](_0x253f49),this['_rescheduleHeartbeat'](_0x253f49);}[_0x528acf(0x1bd)](_0x508be8){const _0x2e5dfa=_0x528acf;return[...this[_0x2e5dfa(0x178)][_0x2e5dfa(0x364)]()][_0x2e5dfa(0x353)](_0x4d7a08=>_0x4d7a08===_0x508be8);}[_0x528acf(0x2a5)](_0x4ed711){const _0x4e0ea7=_0x528acf;let _0x4c8870=_0x4ed711??'',_0x1d8749=this[_0x4e0ea7(0x3e7)][_0x4e0ea7(0x1b0)](_0x4c8870);if(_0x1d8749)return _0x1d8749;let _0x5e5235={'endpointKey':_0x4c8870,'endpoint':_0x4ed711,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x4e0ea7(0x3e7)][_0x4e0ea7(0x18b)](_0x4c8870,_0x5e5235),_0x5e5235;}['_rescheduleHeartbeat'](_0x2da9db){const _0x3406d9=_0x528acf;this[_0x3406d9(0x1cb)](_0x2da9db),_0x2da9db['sendHeartbeatTimer']=setTimeout(()=>this['_sendHeartbeat'](_0x2da9db),this[_0x3406d9(0xfa)][_0x3406d9(0x25f)](_0x3406d9(0x2a8))??0x7530);}[_0x528acf(0x226)](_0x54aac3){const _0xaca433=_0x528acf;_0x54aac3[_0xaca433(0x36c)][_0xaca433(0x193)]()[_0xaca433(0x2ef)]({'cmd':a[_0xaca433(0x110)][_0xaca433(0x2c5)]}),this[_0xaca433(0x148)](_0x54aac3);}[_0x528acf(0x148)](_0x1ac2c3){const _0x38e098=_0x528acf;_0x1ac2c3[_0x38e098(0x3ae)]=setTimeout(()=>this['_onConnectionFailed'](_0x1ac2c3),this[_0x38e098(0xfa)][_0x38e098(0x25f)](_0x38e098(0x372))??0x4e20);}[_0x528acf(0x1cb)](_0x5bd5e2){const _0x505060=_0x528acf;_0x5bd5e2[_0x505060(0x1f8)]!=null&&(clearTimeout(_0x5bd5e2[_0x505060(0x1f8)]),_0x5bd5e2['sendHeartbeatTimer']=null);}['_clearTimeoutTimer'](_0x30af3a){const _0x279f6f=_0x528acf;_0x30af3a[_0x279f6f(0x3ae)]!=null&&(clearTimeout(_0x30af3a[_0x279f6f(0x3ae)]),_0x30af3a[_0x279f6f(0x3ae)]=null);}};V=y([v(0x0,(0x0,t['Inject'])(t['Injector'])),v(0x1,t[_0x528acf(0x30e)]),v(0x2,t['IConfigService']),v(0x3,qe),v(0x4,(0x0,t[_0x528acf(0x17f)])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x528acf(0x3ad)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x349369,_0x40ab00,_0x395d13,_0x1c3540){const _0x2bfdea=_0x528acf;var _0x52fc76;super(),this[_0x2bfdea(0x1d6)]=_0x349369,this[_0x2bfdea(0x38c)]=_0x40ab00,this['_configService']=_0x395d13,this[_0x2bfdea(0x416)]=_0x1c3540,g(this,_0x2bfdea(0x1c8),new Map()),g(this,_0x2bfdea(0x174),new i[(_0x2bfdea(0x1bf))]()),g(this,_0x2bfdea(0x152),this[_0x2bfdea(0x174)][_0x2bfdea(0x1db)]()),((_0x52fc76=this['_configService'][_0x2bfdea(0x25f)]('collaboration-client.config'))==null?void 0x0:_0x52fc76['enableCollaboration'])!==!0x1&&this['_init']();}[_0x528acf(0x1fb)](){const _0x26d295=_0x528acf;super[_0x26d295(0x1fb)](),this[_0x26d295(0x1c8)][_0x26d295(0x2d9)](_0x4fa529=>_0x4fa529[_0x26d295(0x1fb)]()),this[_0x26d295(0x1c8)][_0x26d295(0x3fc)]();}[_0x528acf(0x13a)](_0x8f2cbb){const _0x5b5474=_0x528acf;return this[_0x5b5474(0x1c8)][_0x5b5474(0x1b0)](_0x8f2cbb)??null;}[_0x528acf(0x29b)](_0x6e1d7f){const _0x141072=_0x528acf;let _0x362e3a=this[_0x141072(0x13a)](_0x6e1d7f);return _0x362e3a?(0x0,i['of'])(_0x362e3a):this[_0x141072(0x174)][_0x141072(0x3cf)]((0x0,s[_0x141072(0x1e0)])(_0x3ad58d=>_0x3ad58d[_0x141072(0x179)]===_0x6e1d7f));}['readyForCollab'](_0x268314){const _0x3bd2ce=_0x528acf;return(0x0,i['firstValueFrom'])(this[_0x3bd2ce(0x29b)](_0x268314)[_0x3bd2ce(0x3cf)]((0x0,s[_0x3bd2ce(0x1f4)])(()=>void 0x0)));}[_0x528acf(0x250)](){const _0x558196=_0x528acf;this[_0x558196(0x416)][_0x558196(0x1dc)](t['UniverInstanceType'][_0x558196(0x2df)])[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0xf9ee8d=>{const _0x3616c2=_0x558196;let _0x322546=_0xf9ee8d['unit'][_0x3616c2(0x1bb)](),_0x1d66cb=await this['_startCollaboration'](_0x322546,t[_0x3616c2(0x274)]['UNIVER_SHEET']);this[_0x3616c2(0x1c8)]['set'](_0x322546,_0x1d66cb);}),this[_0x558196(0x416)]['getTypeOfUnitAdded$'](t[_0x558196(0x274)][_0x558196(0x214)])[_0x558196(0x3cf)]((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x3cf)]((0x0,s[_0x558196(0x1e0)])(_0x59f3bc=>!_0x59f3bc['unit'][_0x558196(0x1bb)]()[_0x558196(0x195)]('__')))[_0x558196(0x367)](async _0x1ff98a=>{const _0x2bad83=_0x558196;let _0x1e285d=_0x1ff98a[_0x2bad83(0x20d)][_0x2bad83(0x1bb)](),_0x51a4bf=await this['_startCollaboration'](_0x1e285d,t[_0x2bad83(0x274)][_0x2bad83(0x214)]);this[_0x2bad83(0x1c8)][_0x2bad83(0x18b)](_0x1e285d,_0x51a4bf);}),this['_univerInstanceService'][_0x558196(0x1dc)](t[_0x558196(0x274)][_0x558196(0x111)])['pipe']((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0x250e87=>{const _0x1a69f3=_0x558196;let _0x139371=_0x250e87[_0x1a69f3(0x20d)][_0x1a69f3(0x1bb)](),_0x3d0574=await this[_0x1a69f3(0x1e8)](_0x139371,t[_0x1a69f3(0x274)][_0x1a69f3(0x111)]);this[_0x1a69f3(0x1c8)][_0x1a69f3(0x18b)](_0x139371,_0x3d0574);}),this[_0x558196(0x416)][_0x558196(0x1dc)](t[_0x558196(0x274)][_0x558196(0x1eb)])[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this[_0x558196(0x2b0)]),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x367)](async _0x12528c=>{const _0x2a52e8=_0x558196;let _0xff3df2=_0x12528c[_0x2a52e8(0x20d)]['getUnitId'](),_0x10111a=await this[_0x2a52e8(0x1e8)](_0xff3df2,t[_0x2a52e8(0x274)][_0x2a52e8(0x1eb)]);this['_entities'][_0x2a52e8(0x18b)](_0xff3df2,_0x10111a);}),this['_univerInstanceService'][_0x558196(0x1dc)](t[_0x558196(0x274)]['UNIVER_BASE'])['pipe']((0x0,i['takeUntil'])(this['dispose$']),(0x0,s[_0x558196(0x201)])(0x10))[_0x558196(0x367)](async _0x5c5fe3=>{const _0x4a6920=_0x558196;let _0x455752=_0x5c5fe3[_0x4a6920(0x20d)][_0x4a6920(0x1bb)](),_0x23f90f=await this[_0x4a6920(0x1e8)](_0x455752,t[_0x4a6920(0x274)][_0x4a6920(0x15a)]);this[_0x4a6920(0x1c8)]['set'](_0x455752,_0x23f90f);}),this['_univerInstanceService'][_0x558196(0x1dc)](t['UniverInstanceType'][_0x558196(0x342)])['pipe']((0x0,i['takeUntil'])(this['dispose$']),(0x0,s['delay'])(0x10))[_0x558196(0x367)](async _0x5ae993=>{const _0x2f30ca=_0x558196;let _0x11b57f=_0x5ae993['unit']['getUnitId'](),_0x75e686=await this[_0x2f30ca(0x1e8)](_0x11b57f,t[_0x2f30ca(0x274)][_0x2f30ca(0x342)]);this[_0x2f30ca(0x1c8)]['set'](_0x11b57f,_0x75e686);}),(0x0,i[_0x558196(0x1c3)])(this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x2df)]),this[_0x558196(0x416)]['getTypeOfUnitDisposed$'](t['UniverInstanceType']['UNIVER_DOC']),this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x111)]),this[_0x558196(0x416)][_0x558196(0x20f)](t['UniverInstanceType'][_0x558196(0x1eb)]),this['_univerInstanceService'][_0x558196(0x20f)](t[_0x558196(0x274)][_0x558196(0x15a)]),this[_0x558196(0x416)][_0x558196(0x20f)](t['UniverInstanceType'][_0x558196(0x342)]))[_0x558196(0x3cf)]((0x0,i[_0x558196(0x25a)])(this['dispose$']))[_0x558196(0x367)](_0x33cbb4=>{const _0x538e89=_0x558196;let _0x2ad636=_0x33cbb4[_0x538e89(0x1bb)](),_0x119b70=this[_0x538e89(0x1c8)]['get'](_0x2ad636);_0x119b70&&(_0x119b70[_0x538e89(0x1fb)](),this[_0x538e89(0x1c8)][_0x538e89(0x166)](_0x2ad636));});}async['_startCollaboration'](_0x5ac948,_0x2c2cf1){const _0x28d706=_0x528acf;let _0x6eff10=await this[_0x28d706(0x38c)][_0x28d706(0x1d1)](_0x5ac948),_0x35f775=this[_0x28d706(0x1d6)][_0x28d706(0x33d)](this[_0x28d706(0x2fc)](_0x2c2cf1),_0x5ac948,_0x2c2cf1,_0x6eff10);return await _0x35f775[_0x28d706(0x3c0)](),this['_entityInit$'][_0x28d706(0x307)](_0x35f775),_0x35f775;}[_0x528acf(0x2fc)](_0x5e5090){const _0x4a9944=_0x528acf;switch(_0x5e5090){case t[_0x4a9944(0x274)][_0x4a9944(0x214)]:return F;case t['UniverInstanceType'][_0x4a9944(0x2df)]:return L;case t['UniverInstanceType'][_0x4a9944(0x111)]:return R;case t['UniverInstanceType'][_0x4a9944(0x1eb)]:return z;case t[_0x4a9944(0x274)]['UNIVER_BASE']:return I;case t[_0x4a9944(0x274)][_0x4a9944(0x342)]:return B;default:throw Error(_0x4a9944(0x3cc)+_0x5e5090);}}};H=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(V)),v(0x2,t[_0x528acf(0x295)]),v(0x3,t[_0x528acf(0x3a7)])],H);var $e=_0x528acf(0x1da),et=_0x528acf(0x1d3);let tt=class extends t['Disposable']{constructor(_0x1d35fe,_0x37a099){const _0x5160e7=_0x528acf;super(),this[_0x5160e7(0x416)]=_0x1d35fe,this[_0x5160e7(0xfa)]=_0x37a099,this[_0x5160e7(0x250)]();}[_0x528acf(0x250)](){const _0x442be6=_0x528acf;this[_0x442be6(0x3a2)](this[_0x442be6(0x416)][_0x442be6(0x2b3)]['subscribe'](()=>{const _0x1fc260=_0x442be6;let _0x406805=this[_0x1fc260(0x416)][_0x1fc260(0x30a)](),_0xb7b72d=this[_0x1fc260(0xfa)][_0x1fc260(0x25f)](_0x1fc260(0x177))??_0x1fc260(0x2e4);_0x406805 instanceof t['Workbook']&&(_0xb7b72d=_0x406805[_0x1fc260(0x1c0)]),document[_0x1fc260(0x3c3)]=_0xb7b72d;}));}};tt=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['IConfigService'])],tt);const nt=(0x0,t[_0x528acf(0x2ab)])('base-ui.attachment-io.service');let U=class{constructor(_0x52a290,_0x3d1c29,_0x4f5bd8){const _0xa4aa06=_0x528acf;this[_0xa4aa06(0x1ff)]=_0x52a290,this[_0xa4aa06(0xfa)]=_0x3d1c29,this['_univerInstanceService']=_0x4f5bd8;}[_0x528acf(0x38d)](){const _0x460a30=_0x528acf;return this[_0x460a30(0x1d4)]()[_0x460a30(0x276)]??{};}async[_0x528acf(0x2ba)](_0x49bc6d){const _0x33e5f4=_0x528acf;let _0x33343a=this[_0x33e5f4(0x38d)]();if(rt(_0x49bc6d,_0x33343a),_0x33343a[_0x33e5f4(0x32b)])return _0x33343a[_0x33e5f4(0x32b)](_0x49bc6d);let _0x2dd1b1=await this['_upload'](_0x49bc6d);return{'id':_0x2dd1b1,'name':_0x49bc6d[_0x33e5f4(0x1c0)],'mimeType':_0x49bc6d[_0x33e5f4(0x191)],'size':_0x49bc6d[_0x33e5f4(0x2c7)],'sourceType':t[_0x33e5f4(0x1e2)]['UUID'],'source':_0x2dd1b1};}async[_0x528acf(0x3fe)](_0x12eec4,_0x5a621d){const _0x161c74=_0x528acf;if(_0x5a621d!==t[_0x161c74(0x1e2)][_0x161c74(0x189)])return _0x12eec4;let _0x3bee7d=(await this[_0x161c74(0x1ff)][_0x161c74(0x1b0)](this[_0x161c74(0x3ab)]()[_0x161c74(0x175)](_0x161c74(0x3d0),_0x12eec4)))[_0x161c74(0x140)];if(_0x3bee7d[_0x161c74(0x2d2)]&&_0x3bee7d['error'][_0x161c74(0x381)]!==a['ErrorCode']['OK'])throw _0x3bee7d['error'];if(!_0x3bee7d['url'])throw Error(_0x161c74(0x425));return(0x0,t['resolveWithBasePath'])(_0x3bee7d[_0x161c74(0x24e)],this[_0x161c74(0x1cc)]());}async['_upload'](_0x1062c9){const _0x1b778b=_0x528acf;let _0x523289=this[_0x1b778b(0x416)][_0x1b778b(0x30a)](),_0x5caa7b=_0x523289==null?void 0x0:_0x523289[_0x1b778b(0x1bb)]();if(!_0x5caa7b)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x283048=new FormData();_0x283048[_0x1b778b(0x208)](_0x1b778b(0x323),_0x1062c9);let _0x2e73a8=this[_0x1b778b(0x355)]()+_0x1b778b(0x2aa)+_0x1062c9['size'][_0x1b778b(0x14b)]()+_0x1b778b(0x1f9)+a['FileSource'][_0x1b778b(0x33a)]+_0x1b778b(0x420)+encodeURIComponent(_0x5caa7b),_0x10ddc9=(await this[_0x1b778b(0x1ff)][_0x1b778b(0x24c)](_0x2e73a8,{'body':_0x283048}))[_0x1b778b(0x140)][_0x1b778b(0x246)];if(typeof _0x10ddc9!=_0x1b778b(0x259)||!_0x10ddc9)throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.');return _0x10ddc9;}[_0x528acf(0x355)](){const _0x15edf4=_0x528acf;return this[_0x15edf4(0x1d4)]()[_0x15edf4(0x281)]??_0x15edf4(0x1f7);}[_0x528acf(0x3ab)](){const _0x97ec45=_0x528acf;return this['_getConfig']()[_0x97ec45(0x36f)]??_0x97ec45(0x2a6);}[_0x528acf(0x1cc)](){const _0x3dae04=_0x528acf;let _0x2bb00e=this[_0x3dae04(0x1d4)]();return _0x2bb00e[_0x3dae04(0x238)]?_0x2bb00e[_0x3dae04(0x238)]:typeof location<'u'?location['origin']:_0x2bb00e['uploadFileServerUrl']??'';}['_getConfig'](){const _0x39292b=_0x528acf;return this['_configService'][_0x39292b(0x25f)](_0x39292b(0x18f))??{};}};U=y([v(0x0,(0x0,t['Inject'])(l[_0x528acf(0x3f0)])),v(0x1,(0x0,t['Inject'])(t['IConfigService'])),v(0x2,(0x0,t[_0x528acf(0x17f)])(t['IUniverInstanceService']))],U);function rt(_0x2d7952,_0x15b780){const _0x37a28d=_0x528acf;var _0x399155;if(_0x15b780['maxSize']!=null&&_0x2d7952[_0x37a28d(0x2c7)]>_0x15b780['maxSize'])throw Error(_0x37a28d(0x37c));if((_0x399155=_0x15b780['accept'])!=null&&_0x399155['length']&&!_0x15b780[_0x37a28d(0x2fd)][_0x37a28d(0x353)](_0x1a051c=>_0x2d7952['type']===_0x1a051c||_0x2d7952[_0x37a28d(0x1c0)][_0x37a28d(0x31c)](_0x1a051c)||_0x1a051c[_0x37a28d(0x31c)]('/*')&&_0x2d7952['type'][_0x37a28d(0x195)](_0x1a051c['slice'](0x0,-0x1))))throw Error(_0x37a28d(0x3df));}let W=class{constructor(_0x2afbb3,_0x3e3f60,_0x361c37){const _0xcbd926=_0x528acf;this[_0xcbd926(0xfa)]=_0x2afbb3,this[_0xcbd926(0x1ff)]=_0x3e3f60,this[_0xcbd926(0x1ce)]=_0x361c37,this[_0xcbd926(0x3c0)]();}[_0x528acf(0x3c0)](){const _0x58724e=_0x528acf;this['_httpService'][_0x58724e(0x10b)]({'priority':0x1,'interceptor':(_0x302c8c,_0xcd54c6)=>_0xcd54c6(_0x302c8c)[_0x58724e(0x3cf)]((0x0,i[_0x58724e(0x2a7)])(async _0x4469a4=>{const _0x535582=_0x58724e;let _0x3e1270=_0x4469a4;if(_0x3e1270['status']===0x191){if(typeof window>'u')throw Error(_0x535582(0x3d3));if(window[_0x535582(0x183)](this[_0x535582(0x1ce)]['t'](_0x535582(0x386)))){let _0x1f45a7=window['encodeURIComponent'](window[_0x535582(0x388)][_0x535582(0x3d7)]);window[_0x535582(0x388)][_0x535582(0x3d7)]=this[_0x535582(0x343)]()+_0x535582(0x369)+_0x1f45a7;}}return _0x3e1270;}))});}[_0x528acf(0x343)](){const _0x1a5064=_0x528acf;let _0xb0c176=this[_0x1a5064(0xfa)][_0x1a5064(0x25f)](m);return(_0xb0c176==null?void 0x0:_0xb0c176[_0x1a5064(0x3aa)])??_0x1a5064(0x28b);}};W=y([v(0x0,t[_0x528acf(0x295)]),v(0x1,(0x0,t[_0x528acf(0x17f)])(l['HTTPService'])),v(0x2,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x199)]))],W);let G=class extends t[_0x528acf(0x23e)]{constructor(_0xc7fb29,_0x3051ac){const _0xdc380a=_0x528acf;super(),this[_0xdc380a(0x224)]=_0xc7fb29,this['_configService']=_0x3051ac,g(this,_0xdc380a(0x13f),!0x1),this['_initMergeInterceptor']();}[_0x528acf(0x349)](){const _0xa0c7ee=_0x528acf;let _0x358b08=this;this[_0xa0c7ee(0x3a2)](this[_0xa0c7ee(0x224)][_0xa0c7ee(0x10b)]({'priority':0x3e7,'interceptor':(0x0,l[_0xa0c7ee(0x1c1)])({'isMatch'(_0x46937b){const _0x3e2751=_0xa0c7ee;var _0x114aa5;if(_0x46937b[_0x3e2751(0x133)]==='POST'&&(_0x114aa5=_0x46937b[_0x3e2751(0x3f4)])!=null&&_0x114aa5[_0x3e2751(0x140)]){let {objectID:_0x468417,objectType:_0x570f2e}=_0x46937b[_0x3e2751(0x3f4)][_0x3e2751(0x140)]||{};if(!_0x468417||_0x570f2e===void 0x0)return!0x1;let _0x352956=_0x358b08['_getAPIPrefixPath']()+'/'+_0x570f2e+'/object/'+_0x468417+'/allowed';if(_0x46937b['url']===_0x352956)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x1ee8f0){const _0x23f604=_0xa0c7ee;var _0x5321e1;return(_0x5321e1=_0x1ee8f0[_0x23f604(0x3f4)])==null?void 0x0:_0x5321e1[_0x23f604(0x140)];},'mergeParamsToRequest'(_0x4c1156,_0xd2c89c){const _0x19c8ac=_0xa0c7ee;let _0x180270=_0x358b08['_getAPIPrefixPath']()+'/-/object/-/batch_allowed',_0x1ba64b=_0x4c1156['reduce']((_0x2c9158,_0x4e7aa8)=>{const _0x4e654a=_0x3420;let {unitID:_0x532e06,objectID:_0x2acd71,objectType:_0xfb7172,actions:_0x3d83c0}=_0x4e7aa8;return _0x2c9158[_0x532e06]||(_0x2c9158[_0x532e06]={}),_0x2c9158[_0x532e06][_0x2acd71]||(_0x2c9158[_0x532e06][_0x2acd71]={'objectID':_0x2acd71,'objectType':_0xfb7172,'actions':[]}),_0x2c9158[_0x532e06][_0x2acd71][_0x4e654a(0x2f8)]['push'](..._0x3d83c0),_0x2c9158;},{}),_0x1ed683=[];for(let _0x4dbbc1 in _0x1ba64b)for(let _0x44eadb in _0x1ba64b[_0x4dbbc1]){let {actions:_0x33b522,objectType:_0x5e4c89}=_0x1ba64b[_0x4dbbc1][_0x44eadb],_0x34c77c=[...new Set(_0x33b522)];_0x1ed683[_0x19c8ac(0x19e)]({'unitID':_0x4dbbc1,'objectID':_0x44eadb,'objectType':_0x5e4c89,'actions':_0x34c77c});}return new l[(_0x19c8ac(0x358))](_0x19c8ac(0x40d),_0x180270,{'headers':_0xd2c89c[_0x19c8ac(0x18c)],'withCredentials':_0xd2c89c['withCredentials'],'responseType':_0xd2c89c[_0x19c8ac(0x2a1)],'body':{'requests':_0x1ed683}});}},{'distributeResult'(_0x55cd97,_0x339bc9){const _0x108639=_0xa0c7ee;let {objectActions:_0xb782ed}=_0x55cd97;return _0x339bc9[_0x108639(0x1f4)](_0x1139ed=>{const _0x1e28e8=_0x108639;let {unitID:_0x5a85f6,objectID:_0x666e81,actions:_0xf0e406}=_0x1139ed,_0x15df4d=_0xb782ed[_0x1e28e8(0x168)](_0x21ca5a=>_0x21ca5a[_0x1e28e8(0x179)]===_0x5a85f6&&_0x21ca5a[_0x1e28e8(0x290)]===_0x666e81);return{'config':_0x1139ed,'result':{'actions':_0xf0e406[_0x1e28e8(0x1f4)](_0x480264=>_0x15df4d==null?void 0x0:_0x15df4d[_0x1e28e8(0x2f8)][_0x1e28e8(0x168)](_0x27653e=>_0x27653e[_0x1e28e8(0x121)]===_0x480264))[_0x1e28e8(0x1e0)](_0x37c8da=>!!_0x37c8da),'error':_0x55cd97[_0x1e28e8(0x2d2)]}};});}})}));}[_0x528acf(0x31a)](){const _0x348de5=_0x528acf;let _0x595381=this['_configService'][_0x348de5(0x25f)](m);return(_0x595381==null?void 0x0:_0x595381['authzUrl'])??_0x348de5(0x215);}async[_0x528acf(0x300)](_0x28dfc1){const _0xf3c7d8=_0x528acf;let _0x5bf3d4=this[_0xf3c7d8(0x31a)]()+'/'+_0x28dfc1['objectType']+_0xf3c7d8(0x2b2);return(await this[_0xf3c7d8(0x224)][_0xf3c7d8(0x24c)](_0x5bf3d4,{'body':_0x28dfc1}))[_0xf3c7d8(0x140)][_0xf3c7d8(0x290)]||'';}async[_0x528acf(0x142)](_0x1075bd){const _0x19dfd8=_0x528acf;let _0x51cbbc=this[_0x19dfd8(0x31a)]()+_0x19dfd8(0x33b);return(await this['_HTTPService'][_0x19dfd8(0x24c)](_0x51cbbc,{'body':_0x1075bd}))['body'][_0x19dfd8(0x137)];}async[_0x528acf(0x3e6)](_0x51ccf7){const _0x3e7738=_0x528acf;var _0x59d1b0;let _0x364ebc=this[_0x3e7738(0x31a)]()+'/'+_0x51ccf7[_0x3e7738(0x366)]+_0x3e7738(0x12a)+_0x51ccf7[_0x3e7738(0x290)],_0x5b396c=await this[_0x3e7738(0x224)][_0x3e7738(0x39e)](_0x364ebc,{'body':_0x51ccf7});if((_0x5b396c==null||(_0x59d1b0=_0x5b396c[_0x3e7738(0x140)])==null||(_0x59d1b0=_0x59d1b0[_0x3e7738(0x2d2)])==null?void 0x0:_0x59d1b0[_0x3e7738(0x381)])!==0x1)throw Error(_0x3e7738(0x2c0));}async[_0x528acf(0x262)](_0x36d019){const _0x17fd3e=_0x528acf;let _0x261c74=this[_0x17fd3e(0x31a)]()+'/'+_0x36d019['objectType']+_0x17fd3e(0x12a)+_0x36d019[_0x17fd3e(0x290)]+_0x17fd3e(0x2db);return(await this['_HTTPService'][_0x17fd3e(0x24c)](_0x261c74,{'body':_0x36d019}))[_0x17fd3e(0x140)]['actions'];}async[_0x528acf(0x196)](_0x5e4a98){const _0x445adc=_0x528acf;let _0x17d8e7=this[_0x445adc(0x31a)]()+_0x445adc(0x23b);return(await this[_0x445adc(0x224)][_0x445adc(0x24c)](_0x17d8e7,{'body':{'requests':_0x5e4a98}}))['body'][_0x445adc(0x1b5)];}async['listRoles'](_0x597fe1){const _0x1b17fd=_0x528acf;let _0x51cd51=this[_0x1b17fd(0x31a)]()+'/'+_0x597fe1[_0x1b17fd(0x366)]+_0x1b17fd(0x20b),_0x21d4b0=await this[_0x1b17fd(0x224)][_0x1b17fd(0x24c)](_0x51cd51,{'body':_0x597fe1});return{'roles':_0x21d4b0[_0x1b17fd(0x140)][_0x1b17fd(0x2bb)],'actions':_0x21d4b0[_0x1b17fd(0x140)][_0x1b17fd(0x2f8)]};}async[_0x528acf(0x1d9)](_0x52e587){const _0x4e73ea=_0x528acf;let _0x5837f0=this[_0x4e73ea(0x31a)]()+_0x4e73ea(0x1a5);await this[_0x4e73ea(0x224)]['delete'](_0x5837f0,{'params':{'collaboratorID':_0x52e587[_0x4e73ea(0x3b4)],'objectID':_0x52e587[_0x4e73ea(0x290)],'unitID':_0x52e587['unitID']}});}async[_0x528acf(0x255)](_0x45e6cc){const _0x49ddcf=_0x528acf;let _0xa8aa68=this[_0x49ddcf(0x31a)]()+_0x49ddcf(0x1a5);await this[_0x49ddcf(0x224)][_0x49ddcf(0x10f)](_0xa8aa68,{'body':_0x45e6cc});}async[_0x528acf(0x41d)](_0x389551){const _0x4fe4b7=_0x528acf;let _0x210f9d=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x4fe4b7(0x224)][_0x4fe4b7(0x24c)](_0x210f9d,{'body':_0x389551});}async['listCollaborators'](_0xea348d){const _0x3ecd99=_0x528acf;let _0x1ce48d=this[_0x3ecd99(0x31a)]()+'/collaborator',_0x13e5fb=await this[_0x3ecd99(0x224)]['get'](_0x1ce48d,{'params':{'objectID':_0xea348d[_0x3ecd99(0x290)],'unitID':_0xea348d[_0x3ecd99(0x179)]}});return this[_0x3ecd99(0x202)](_0x13e5fb[_0x3ecd99(0x140)][_0x3ecd99(0x1b4)]??!0x1),_0x13e5fb[_0x3ecd99(0x140)][_0x3ecd99(0x363)];}async[_0x528acf(0x38e)](_0x5e8b5c){const _0xb7f7c0=_0x528acf;let _0x573e25=this['_getAPIPrefixPath']()+_0xb7f7c0(0x1a5);await this[_0xb7f7c0(0x224)][_0xb7f7c0(0x39e)](_0x573e25,{'body':_0x5e8b5c});}[_0x528acf(0x202)](_0x320193){this['_cfgEnableObjInherit']=_0x320193;}[_0x528acf(0x15e)](){const _0x49e3dc=_0x528acf;return this[_0x49e3dc(0x13f)];}};G=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x295)]))],G);function it(_0x5e06de){const _0x27d5bd=_0x528acf;let _0x137b62=atob(_0x5e06de),_0x4b2035=new Uint8Array(_0x137b62[_0x27d5bd(0x347)]);for(let _0x270332=0x0;_0x270332<_0x137b62[_0x27d5bd(0x347)];_0x270332++)_0x4b2035[_0x270332]=_0x137b62['charCodeAt'](_0x270332);return _0x4b2035;}function at(_0x39443a){const _0x4cd608=_0x528acf;let _0x2f87ad='';for(let _0x36b63d=0x0;_0x36b63d<_0x39443a[_0x4cd608(0x347)];_0x36b63d++)_0x2f87ad+=String[_0x4cd608(0x267)](_0x39443a[_0x36b63d]);return btoa(_0x2f87ad);}function ot(_0x2380a8,_0x42f3e6){const _0x428ac6=_0x528acf;let _0x2d7bcf=it(_0x42f3e6),_0x3887ca=(0x0,f['randomBytes'])(0x10);return at((0x0,f['concatBytes'])(_0x3887ca,(0x0,d[_0x428ac6(0x117)])(_0x2d7bcf,_0x3887ca)[_0x428ac6(0x2cd)]((0x0,f[_0x428ac6(0x192)])(_0x2380a8))));}function st(){const _0x4a4a4d=_0x528acf;let _0x2b532d=(0x0,u[_0x4a4a4d(0x278)])()[_0x4a4a4d(0x12b)];if(typeof window<'u'&&window[_0x4a4a4d(0x388)]!==void 0x0&&_0x2b532d){let _0xb03c4={'time':Math[_0x4a4a4d(0x30c)](Date['now']()/0x3e8),'domain':location['hostname']};return ot(JSON[_0x4a4a4d(0x29e)](_0xb03c4),_0x2b532d);}}let K=class{constructor(_0x278000){const _0x3ed519=_0x528acf;this[_0x3ed519(0x1ff)]=_0x278000,this[_0x3ed519(0x129)]();}[_0x528acf(0x129)](){const _0x21fe30=_0x528acf;this[_0x21fe30(0x1ff)][_0x21fe30(0x10b)]({'interceptor':(_0x56cd3b,_0x21333d)=>{const _0x4420fd=_0x21fe30;let _0x15c643=st();return _0x15c643&&_0x56cd3b[_0x4420fd(0x18c)][_0x4420fd(0x18b)](_0x4420fd(0x3b3),_0x15c643),_0x21333d(_0x56cd3b);}});}};K=y([v(0x0,(0x0,t['Inject'])(l[_0x528acf(0x3f0)]))],K);let q=class extends t[_0x528acf(0x1b1)]{constructor(_0x2f5abd,_0x3966ed,_0x101c51){const _0x29ad31=_0x528acf;super(),this[_0x29ad31(0x320)]=_0x2f5abd,this[_0x29ad31(0x1be)]=_0x3966ed,this[_0x29ad31(0x31e)]=_0x101c51,g(this,_0x29ad31(0x2d3),new i[(_0x29ad31(0x1ef))](null)),g(this,_0x29ad31(0x418),new i['Subject']()),g(this,_0x29ad31(0x392),this[_0x29ad31(0x2d3)][_0x29ad31(0x1db)]()),g(this,'unitLoaded$',this[_0x29ad31(0x418)][_0x29ad31(0x1db)]());}['dispose'](){const _0x2a744c=_0x528acf;super[_0x2a744c(0x1fb)](),this[_0x2a744c(0x418)][_0x2a744c(0x13b)](),this['_unitInfo$']['complete']();}async[_0x528acf(0x125)](_0x664dd4,_0x546b3b,_0x1c92b5,_0x28b075){const _0x3aade8=_0x528acf;this[_0x3aade8(0x2d3)]['next']({'unitId':_0x664dd4,'type':_0x546b3b,'subUnitId':_0x28b075});let _0x56866f=null;switch(_0x546b3b){case t['UniverInstanceType'][_0x3aade8(0x2df)]:_0x56866f=await this[_0x3aade8(0x1be)]['loadSheet'](_0x664dd4,_0x1c92b5,void 0x0,{'initialSubUnitId':_0x28b075});break;case t['UniverInstanceType']['UNIVER_DOC']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x2e5)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)][_0x3aade8(0x111)]:_0x56866f=await this[_0x3aade8(0x1be)]['loadSlide'](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)][_0x3aade8(0x1eb)]:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x21a)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)]['UNIVER_BASE']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x405)](_0x664dd4,_0x1c92b5);break;case t[_0x3aade8(0x274)]['UNIVER_PDF']:_0x56866f=await this[_0x3aade8(0x1be)][_0x3aade8(0x2ea)](_0x664dd4,_0x1c92b5);break;default:this[_0x3aade8(0x320)][_0x3aade8(0x2d2)]('[DataLoaderService]',_0x3aade8(0x1b8));break;}return _0x56866f&&this[_0x3aade8(0x418)]['next'](_0x56866f),_0x56866f;}async[_0x528acf(0x184)](_0x329d6e,_0x516579,_0x43733b){const _0x146a7f=_0x528acf;var _0x46c7a2;this[_0x146a7f(0x2d3)]['next']({'unitId':_0x329d6e,'type':_0x516579,'subUnitId':_0x43733b});let _0x36cf2d=0x0,_0x51f952=await((_0x46c7a2=this['_localCacheService'])==null?void 0x0:_0x46c7a2[_0x146a7f(0x277)](_0x329d6e));return _0x51f952&&(_0x51f952['awaitingChangeset']||_0x51f952[_0x146a7f(0x15b)]['length']!==0x0)&&(_0x36cf2d=_0x51f952['rev']),_0x36cf2d===0x0&&this[_0x146a7f(0x320)]['debug'](_0x146a7f(0x3ec),_0x146a7f(0x33f)),this[_0x146a7f(0x125)](_0x329d6e,_0x516579,_0x36cf2d,_0x43733b);}};q=y([v(0x0,t[_0x528acf(0x30e)]),v(0x1,(0x0,t['Inject'])(e[_0x528acf(0x233)])),v(0x2,(0x0,t['Optional'])(x))],q);let J=class{constructor(_0x32f501,_0x440120,_0x20d87d){const _0x553efe=_0x528acf;this[_0x553efe(0x1ff)]=_0x32f501,this[_0x553efe(0xfa)]=_0x440120,this[_0x553efe(0x416)]=_0x20d87d,g(this,_0x553efe(0x32c),0x0),g(this,_0x553efe(0x212),new i[(_0x553efe(0x1bf))]()),g(this,_0x553efe(0x3d5),this[_0x553efe(0x212)]),g(this,_0x553efe(0x3f7),new Map());}[_0x528acf(0x109)](_0x3dca71){const _0x5c6712=_0x528acf;this['_waitCount']=_0x3dca71,this[_0x5c6712(0x212)]['next'](_0x3dca71);}[_0x528acf(0x338)](_0x193698,_0x3a0da6){const _0x1a2774=_0x528acf;if(_0x3a0da6===t[_0x1a2774(0x1e2)]['BASE64']){let _0x4854e7=new Image();return _0x4854e7[_0x1a2774(0x380)]=_0x193698,_0x4854e7;}return this[_0x1a2774(0x3f7)]['get'](_0x193698);}[_0x528acf(0x200)](_0x57dc3a,_0x230f92,_0xc843c9){const _0x5e978c=_0x528acf;_0x230f92!==t[_0x5e978c(0x1e2)]['BASE64']&&_0xc843c9!=null&&this[_0x5e978c(0x3f7)][_0x5e978c(0x18b)](_0x57dc3a,_0xc843c9);}async[_0x528acf(0x3dd)](_0x5e718e){const _0x4349a6=_0x528acf;try{let _0x1d5ad6=this[_0x4349a6(0x17d)](this['_getSignURL'](),''+_0x5e718e),_0x2ec162=(await this['_httpService'][_0x4349a6(0x1b0)](_0x1d5ad6))[_0x4349a6(0x140)];if(_0x2ec162[_0x4349a6(0x2d2)]&&_0x2ec162[_0x4349a6(0x2d2)]['code']===a[_0x4349a6(0x1d2)]['OK']){let _0x2397f4=(0x0,t[_0x4349a6(0x1d8)])(_0x2ec162[_0x4349a6(0x24e)],this[_0x4349a6(0x1cc)]());return Promise[_0x4349a6(0x284)](_0x2397f4);}return Promise[_0x4349a6(0x409)](_0x2ec162[_0x4349a6(0x2d2)]);}catch(_0x21d498){return Promise[_0x4349a6(0x409)](_0x21d498);}}async[_0x528acf(0x28e)](_0x194c4f){const _0x521ccf=_0x528acf;let _0x970711='';if(!p[_0x521ccf(0x3c9)]['includes'](_0x194c4f[_0x521ccf(0x191)]))return this[_0x521ccf(0x1bc)](),Promise[_0x521ccf(0x409)](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x29f)]));if(_0x194c4f[_0x521ccf(0x2c7)]>(0x0,p['getDrawingImageAllowSize'])())return this['_decreaseWaiting'](),Promise[_0x521ccf(0x409)](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x279)]));try{let _0xa38ab6=new FormData();_0xa38ab6['append']('file',_0x194c4f);let _0xfa6334=this[_0x521ccf(0x416)][_0x521ccf(0x30a)](),_0x201c11=_0xfa6334==null?void 0x0:_0xfa6334['getUnitId']();if(!_0x201c11)throw Error(_0x521ccf(0x406));let _0x2742ef=this['_getUploadFileURL']()+'?size='+_0x194c4f[_0x521ccf(0x2c7)][_0x521ccf(0x14b)]()+_0x521ccf(0x1f9)+a[_0x521ccf(0x373)][_0x521ccf(0x33a)]+_0x521ccf(0x420)+encodeURIComponent(_0x201c11),_0x308f53={'body':_0xa38ab6},_0x49242e=(await this['_httpService'][_0x521ccf(0x24c)](_0x2742ef,_0x308f53))['body'];if(typeof _0x49242e[_0x521ccf(0x246)]!=_0x521ccf(0x259))return this[_0x521ccf(0x1bc)](),Promise['reject'](Error(t[_0x521ccf(0x1ac)][_0x521ccf(0x216)]));_0x970711=_0x49242e[_0x521ccf(0x246)];}catch{return this['_decreaseWaiting'](),Promise['reject'](Error(t['ImageUploadStatusType']['ERROR_IMAGE']));}return new Promise((_0xb691b4,_0x352dcc)=>{const _0x14ede7=_0x521ccf;let _0x438459=new FileReader();_0x438459[_0x14ede7(0x22e)](_0x194c4f),_0x438459[_0x14ede7(0x172)]=_0x1a7e3e=>{const _0x1a03e9=_0x14ede7;var _0x19f09c;let _0x1634e8=(_0x19f09c=_0x1a7e3e['target'])==null?void 0x0:_0x19f09c['result'];if(_0x1634e8==null){this['_decreaseWaiting'](),_0x352dcc(Error(t[_0x1a03e9(0x1ac)][_0x1a03e9(0x216)]));return;}_0xb691b4({'imageId':(0x0,t[_0x1a03e9(0x400)])(0x6),'imageSourceType':t[_0x1a03e9(0x1e2)][_0x1a03e9(0x189)],'source':_0x970711,'base64Cache':_0x1634e8,'status':t[_0x1a03e9(0x1ac)][_0x1a03e9(0x1e9)]}),this[_0x1a03e9(0x1bc)]();};});}[_0x528acf(0x355)](){const _0x1aef2f=_0x528acf;let _0x48c1c1=this[_0x1aef2f(0xfa)]['getConfig'](m);return(_0x48c1c1==null?void 0x0:_0x48c1c1[_0x1aef2f(0x281)])??_0x1aef2f(0x1f7);}[_0x528acf(0x3ab)](){const _0x13c2f5=_0x528acf;let _0x57be99=this[_0x13c2f5(0xfa)][_0x13c2f5(0x25f)](m);return(_0x57be99==null?void 0x0:_0x57be99[_0x13c2f5(0x36f)])??_0x13c2f5(0x2a6);}[_0x528acf(0x1cc)](){const _0x22760b=_0x528acf;let _0x4689c4=this[_0x22760b(0xfa)][_0x22760b(0x25f)](m);return(_0x4689c4==null?void 0x0:_0x4689c4[_0x22760b(0x238)])??location[_0x22760b(0x35a)];}[_0x528acf(0x17d)](_0x12c94a,_0xc4cd73){const _0x231b7a=_0x528acf;return _0x12c94a[_0x231b7a(0x175)](_0x231b7a(0x3d0),_0xc4cd73);}[_0x528acf(0x1bc)](){const _0x44c6d5=_0x528acf;--this[_0x44c6d5(0x32c)],this[_0x44c6d5(0x212)][_0x44c6d5(0x307)](this[_0x44c6d5(0x32c)]);}};J=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(l['HTTPService'])),v(0x1,t[_0x528acf(0x295)]),v(0x2,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x3a7)]))],J);let Y=class{constructor(_0x5999d0,_0x3cfaf5){const _0x2887f6=_0x528acf;this[_0x2887f6(0xfa)]=_0x5999d0,this['_HTTPService']=_0x3cfaf5;}[_0x528acf(0x31a)](){const _0x540353=_0x528acf;let _0x4ad5d7=this[_0x540353(0xfa)][_0x540353(0x25f)](m);return(_0x4ad5d7==null?void 0x0:_0x4ad5d7[_0x540353(0x402)])??'/universer-api/authz';}async[_0x528acf(0x142)](_0x14313a){const _0x236c37=_0x528acf;let _0x572f35=this[_0x236c37(0x31a)]()+_0x236c37(0x1a5);return{'list':[{'title':'People','mentions':(await this[_0x236c37(0x224)][_0x236c37(0x1b0)](_0x572f35,{'params':{'objectID':_0x14313a[_0x236c37(0x236)],'unitID':_0x14313a[_0x236c37(0x236)]}}))[_0x236c37(0x140)][_0x236c37(0x363)]['map'](_0xa33f21=>({'objectId':_0xa33f21['id'],'name':_0xa33f21[_0x236c37(0x33c)][_0x236c37(0x1c0)],'metadata':{'icon':_0xa33f21['subject'][_0x236c37(0x396)]},'label':_0xa33f21[_0x236c37(0x33c)][_0x236c37(0x1c0)],'objectType':t['MentionType']['PERSON']})),'metadata':{},'type':t[_0x236c37(0x3b8)][_0x236c37(0x240)]}]};}};Y=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x295)])),v(0x1,(0x0,t[_0x528acf(0x17f)])(l[_0x528acf(0x3f0)]))],Y);let X=class extends t['RxDisposable']{constructor(_0xd39b6d,_0x5426f2,_0x1ad20c,_0x11fe5e,_0x619e4d){const _0x4a91f4=_0x528acf;super(),this['_injector']=_0xd39b6d,this[_0x4a91f4(0x416)]=_0x5426f2,this['_permissionService']=_0x1ad20c,this[_0x4a91f4(0x206)]=_0x11fe5e,this[_0x4a91f4(0x102)]=_0x619e4d,this['_initUnitPermissionChange'](),this[_0x4a91f4(0x2ac)]();}['_initCloseConn'](){const _0x120d08=_0x528acf;let _0xe2acda=async _0x5212fc=>{const _0x3453f0=_0x3420;(await this[_0x3453f0(0x206)][_0x3453f0(0x1d1)](_0x5212fc))[_0x3453f0(0x115)]['pipe']((0x0,s['filter'])(_0x37292f=>_0x37292f[_0x3453f0(0x1f0)]===e[_0x3453f0(0x330)][_0x3453f0(0x2bd)]),(0x0,s[_0x3453f0(0x25a)])(this[_0x3453f0(0x2b0)]))[_0x3453f0(0x367)](_0x5d6311=>{const _0x15fec6=_0x3453f0;let {reason:_0x271e27}=_0x5d6311[_0x15fec6(0x325)];this[_0x15fec6(0x102)]['emitEvent']({'id':'CLOSE_ROOM','data':_0x271e27}),this[_0x15fec6(0x31d)][_0x15fec6(0x3e8)](new r[(_0x15fec6(0x3bc))](_0x5212fc)['id'],!0x1),this[_0x15fec6(0x206)][_0x15fec6(0x408)](_0x5212fc);});};(0x0,i['merge'])(this[_0x120d08(0x416)]['getTypeOfUnitAdded$'](t[_0x120d08(0x274)]['UNIVER_SHEET']),this[_0x120d08(0x416)]['getTypeOfUnitAdded$'](t[_0x120d08(0x274)][_0x120d08(0x214)]),this['_univerInstanceService']['getTypeOfUnitAdded$'](t['UniverInstanceType'][_0x120d08(0x1eb)]),this[_0x120d08(0x416)][_0x120d08(0x1dc)](t['UniverInstanceType'][_0x120d08(0x15a)]))[_0x120d08(0x3cf)]((0x0,s[_0x120d08(0x1f4)])(_0x509078=>_0x509078[_0x120d08(0x20d)][_0x120d08(0x1bb)]()),(0x0,s[_0x120d08(0x1e0)])(_0x134af8=>!(0x0,t[_0x120d08(0x382)])(_0x134af8)),(0x0,s['takeUntil'])(this[_0x120d08(0x2b0)]))[_0x120d08(0x367)](_0x4f8cf1=>{_0xe2acda(_0x4f8cf1);});}[_0x528acf(0x1a8)](){const _0x41eb22=_0x528acf;let _0x22a117=async _0x1ce9a3=>{const _0xa2e2c4=_0x3420;let _0x4ef67f=await this[_0xa2e2c4(0x206)][_0xa2e2c4(0x1d1)](_0x1ce9a3),_0x4a7775=this['_injector'][_0xa2e2c4(0x1b0)](r[_0xa2e2c4(0x316)]);_0x4ef67f[_0xa2e2c4(0x115)][_0xa2e2c4(0x3cf)]((0x0,s[_0xa2e2c4(0x1e0)])(_0x422319=>_0x422319[_0xa2e2c4(0x1f0)]===e[_0xa2e2c4(0x330)]['UPDATE_PERMISSION_OBJ']),(0x0,s[_0xa2e2c4(0x25a)])(this[_0xa2e2c4(0x2b0)]))[_0xa2e2c4(0x367)](_0x2fb4c0=>{const _0x16837f=_0xa2e2c4;let {objectId:_0x3129da}=_0x2fb4c0['data'];_0x3129da===_0x1ce9a3?_0x4a7775[_0x16837f(0x22d)](_0x1ce9a3):_0x4a7775[_0x16837f(0x1e1)](_0x1ce9a3,_0x3129da);});};(0x0,i[_0x41eb22(0x1c3)])(this[_0x41eb22(0x416)][_0x41eb22(0x1dc)](t[_0x41eb22(0x274)][_0x41eb22(0x2df)]))[_0x41eb22(0x3cf)]((0x0,s[_0x41eb22(0x1f4)])(_0x54d696=>_0x54d696[_0x41eb22(0x20d)][_0x41eb22(0x1bb)]()),(0x0,s[_0x41eb22(0x1e0)])(_0x5e7f4e=>!(0x0,t[_0x41eb22(0x382)])(_0x5e7f4e)),(0x0,s[_0x41eb22(0x25a)])(this[_0x41eb22(0x2b0)]))[_0x41eb22(0x367)](_0x35a2ca=>{_0x22a117(_0x35a2ca);});}};X=y([v(0x0,(0x0,t[_0x528acf(0x17f)])(t[_0x528acf(0x19d)])),v(0x1,t['IUniverInstanceService']),v(0x2,t[_0x528acf(0x352)]),v(0x3,(0x0,t['Inject'])(V)),v(0x4,(0x0,t[_0x528acf(0x17f)])(_))],X);let Z=class{constructor(_0x1fda30,_0x541b85){const _0x5a0bdc=_0x528acf;this[_0x5a0bdc(0xfa)]=_0x1fda30,this[_0x5a0bdc(0x1ff)]=_0x541b85;}async[_0x528acf(0x3db)](_0x2f9fbe,_0x17849c){const _0x578792=_0x528acf;var _0x1e4ab8;let {unitID:_0x5ca375,type:_0x2f0716,revision:_0x58aad2=0x0}=_0x17849c,_0x490e8f=this[_0x578792(0x297)]()+'/'+_0x2f0716+_0x578792(0x187)+_0x5ca375+_0x578792(0x302)+_0x58aad2,_0x3e0d74=(await this[_0x578792(0x1ff)][_0x578792(0x1b0)](_0x490e8f))[_0x578792(0x140)],_0x19e622=(_0x1e4ab8=_0x3e0d74[_0x578792(0x126)])==null?void 0x0:_0x1e4ab8[_0x578792(0x128)];if(_0x19e622){let _0x500ef8=_0x19e622==null?void 0x0:_0x19e622[_0x578792(0x136)];_0x19e622[_0x578792(0x136)]=e[_0x578792(0x35c)][_0x578792(0x15d)]((0x0,e[_0x578792(0x3a5)])(_0x500ef8)),Object[_0x578792(0x33e)](_0x19e622[_0x578792(0x21f)])['forEach'](([,_0x6896d6])=>{const _0x3e306e=_0x578792;let _0xd58060=_0x6896d6[_0x3e306e(0x136)];_0x6896d6['originalMeta']=e['textEncoder'][_0x3e306e(0x15d)]((0x0,e[_0x3e306e(0x3a5)])(_0xd58060));});}return _0x3e0d74;}async[_0x528acf(0x204)](_0x2051b1,_0x5f3109){const _0x199e6a=_0x528acf;let {unitID:_0x53c728,type:_0x3b99c9,blockID:_0xadbaca}=_0x5f3109,_0x2a2aeb=this[_0x199e6a(0x218)]()+'/'+_0x3b99c9+'/unit/'+_0x53c728+_0x199e6a(0x3ba)+_0xadbaca;return(await this[_0x199e6a(0x1ff)][_0x199e6a(0x1b0)](_0x2a2aeb))[_0x199e6a(0x140)];}async['getDeserializedSheetBlock'](_0x13ac63,_0x41881d){const _0x525edf=_0x528acf;let {unitID:_0x527bc4,type:_0xfb21d9,blockID:_0x4456b9}=_0x41881d,_0xce30f3=this[_0x525edf(0x218)]()+_0x525edf(0x3ba)+_0xfb21d9+_0x525edf(0x187)+_0x527bc4+_0x525edf(0x3ba)+_0x4456b9;return(await this['_httpService']['get'](_0xce30f3))[_0x525edf(0x140)];}async[_0x528acf(0x27f)](_0x5c909a,_0xcb64cc){const _0x3e2706=_0x528acf;let {unitID:_0x1a8048,type:_0x3249e8,from:_0x219490,to:_0x553373}=_0xcb64cc,_0x248d2c=this[_0x3e2706(0x218)]()+'/'+_0x3249e8+_0x3e2706(0x187)+_0x1a8048+'/fetchmissing?from='+_0x219490+_0x3e2706(0x2eb)+_0x553373;return(await this[_0x3e2706(0x1ff)]['get'](_0x248d2c))['body'];}[_0x528acf(0x297)](){const _0x39dd88=_0x528acf;return this['_configService'][_0x39dd88(0x25f)](_0x39dd88(0x1e6))??this[_0x39dd88(0x218)]();}['_getAPIPrefix'](){const _0x10053c=_0x528acf;let _0x590009=this[_0x10053c(0xfa)][_0x10053c(0x25f)](m);return(_0x590009==null?void 0x0:_0x590009[_0x10053c(0x256)])??_0x10053c(0xfc);}async['getResourcesRequest'](_0x21c851,_0x276c44){const _0x154b7d=_0x528acf;let _0x752c08=_0x154b7d(0x1b3)+_0x276c44[_0x154b7d(0x191)]+_0x154b7d(0x187)+_0x276c44['unitID']+'/resources';return(await this[_0x154b7d(0x1ff)]['get'](_0x752c08,{'params':{'resourceId':JSON['stringify'](_0x276c44[_0x154b7d(0x2d8)])}}))[_0x154b7d(0x140)];}[_0x528acf(0x3e1)](){const _0x8c60f4=_0x528acf;throw Error(_0x8c60f4(0x36d));}['updateSnapshot'](){const _0x578ebf=_0x528acf;throw Error(_0x578ebf(0x36d));}[_0x528acf(0x314)](){const _0x91a01e=_0x528acf;throw Error(_0x91a01e(0x36d));}['saveChangeset'](){const _0x34ad97=_0x528acf;throw Error(_0x34ad97(0x36d));}[_0x528acf(0xfb)](){const _0x1922ed=_0x528acf;throw Error(_0x1922ed(0x36d));}['getLatestCsReqIdBySid'](){const _0x4d9b0f=_0x528acf;throw Error(_0x4d9b0f(0x36d));}};Z=y([v(0x0,t[_0x528acf(0x295)]),v(0x1,(0x0,t['Inject'])(l['HTTPService']))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x13022c,_0x3c650c,_0x25baad,_0x3ec883,_0x1e3033){const _0x3c61d6=_0x528acf;super(_0x13022c,_0x3c650c,_0x25baad),this[_0x3c61d6(0x414)]=_0x3ec883,this['_logService']=_0x1e3033;}[_0x528acf(0x154)](_0x3bd4a5,_0x49b872){const _0x733de0=_0x528acf;let _0x50c44f=this[_0x733de0(0x298)](_0x3bd4a5);if(_0x50c44f)try{let _0x261ced=this[_0x733de0(0x249)](_0x50c44f,_0x49b872);this[_0x733de0(0x260)](_0x3bd4a5,_0x261ced);}catch(_0x46a814){this[_0x733de0(0x320)][_0x733de0(0x2d2)]('[CollaborationUndoRedoService]',_0x46a814),this[_0x733de0(0x310)](_0x3bd4a5);}let _0x4acc8f=this[_0x733de0(0x235)](_0x3bd4a5);if(_0x4acc8f)try{let _0x34c174=this[_0x733de0(0x249)](_0x4acc8f,_0x49b872);this['_substituteRedoStack'](_0x3bd4a5,_0x34c174);}catch(_0x1517ec){this[_0x733de0(0x320)][_0x733de0(0x2d2)](_0x1517ec),this[_0x733de0(0x108)](_0x3bd4a5);}}['_clearUndo'](_0x2120e){const _0x4f4cd0=_0x528acf;let _0x869eb9=this[_0x4f4cd0(0x298)](_0x2120e);_0x869eb9&&(_0x869eb9[_0x4f4cd0(0x347)]=0x0,this[_0x4f4cd0(0x221)]());}[_0x528acf(0x108)](_0x1a7b25){const _0x2487bb=_0x528acf;let _0x4c4bc5=this[_0x2487bb(0x235)](_0x1a7b25);_0x4c4bc5&&(_0x4c4bc5[_0x2487bb(0x347)]=0x0,this[_0x2487bb(0x221)]());}[_0x528acf(0x260)](_0x12de7f,_0x2c979c){const _0x13ed64=_0x528acf;this[_0x13ed64(0x2e7)][_0x13ed64(0x18b)](_0x12de7f,_0x2c979c),this[_0x13ed64(0x221)]();}[_0x528acf(0x1b7)](_0x15d582,_0x40bad4){const _0x5e41ae=_0x528acf;this[_0x5e41ae(0x229)][_0x5e41ae(0x18b)](_0x15d582,_0x40bad4),this['_updateStatus']();}[_0x528acf(0x249)](_0x32248f,_0x57db80){const _0x1694a8=_0x528acf;let _0x12d973=[],_0x1ef535=_0x57db80,_0x5e28f2=_0x57db80;for(let _0x41c4b6=_0x32248f['length']-0x1;_0x41c4b6>=0x0;_0x41c4b6--){let {unitID:_0x6034c8,undoMutations:_0x27c765,redoMutations:_0x105d23}=_0x32248f[_0x41c4b6],_0x1f03f4=this[_0x1694a8(0x414)][_0x1694a8(0x2d4)](_0x1ef535,_0x27c765),_0x42102f=this[_0x1694a8(0x414)][_0x1694a8(0x2d4)](_0x5e28f2,_0x105d23);if((0x0,e[_0x1694a8(0x286)])(_0x1f03f4)||(0x0,e[_0x1694a8(0x286)])(_0x42102f)){this['_logService'][_0x1694a8(0x2d2)](_0x1694a8(0x27a),'transformStack\x20failed!',_0x1f03f4,_0x42102f);break;}_0x1ef535=_0x1f03f4['c1Prime'],_0x5e28f2=_0x42102f[_0x1694a8(0x31b)],_0x12d973[_0x1694a8(0x19e)]({'unitID':_0x6034c8,'undoMutations':_0x1f03f4['m2Prime'],'redoMutations':_0x42102f[_0x1694a8(0x3a6)]});}return _0x12d973[_0x1694a8(0x3fd)]();}};Q=y([v(0x0,t[_0x528acf(0x3a7)]),v(0x1,t['ICommandService']),v(0x2,t['IContextService']),v(0x3,e[_0x528acf(0x27c)]),v(0x4,t[_0x528acf(0x30e)])],Q);let $=class extends t[_0x528acf(0x36a)]{constructor(_0x4824ee=ee,_0x3984d3,_0x377c89,_0x5708d7){const _0x50e0bc=_0x528acf;super(),this[_0x50e0bc(0x3c4)]=_0x4824ee,this[_0x50e0bc(0x320)]=_0x3984d3,this['_injector']=_0x377c89,this[_0x50e0bc(0xfa)]=_0x5708d7;let {..._0xf599d0}=(0x0,t[_0x50e0bc(0x1c3)])({},ee,this['_config']);if(!_0xf599d0[_0x50e0bc(0x161)])throw Error(_0x50e0bc(0x19f));this[_0x50e0bc(0x3c4)]=_0xf599d0,this[_0x50e0bc(0xfa)][_0x50e0bc(0x144)](m,_0xf599d0);}[_0x528acf(0x150)](){const _0x4961a1=_0x528acf;this[_0x4961a1(0x3de)](),this['_initDependencies']();}[_0x528acf(0x3de)](){const _0x125342=_0x528acf;var _0x19d242,_0x59b4b0;this[_0x125342(0x1d6)][_0x125342(0x2b6)](t[_0x125342(0x1fd)])&&this[_0x125342(0x320)][_0x125342(0x2d2)](_0x125342(0x11a),_0x125342(0x2cb));let _0x5e4aa4=(0x0,t[_0x125342(0x12e)])([[t[_0x125342(0x1fd)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this['_config'][_0x125342(0x161)]}],[e[_0x125342(0x14f)],{'useClass':Z}],[t[_0x125342(0x155)],{'useClass':G}],[t['IImageIoService'],{'useClass':J}],[nt,{'useClass':U}],[t[_0x125342(0x3b5)],{'useClass':Y}],[H],[tt]],(_0x19d242=this[_0x125342(0x3c4)])==null?void 0x0:_0x19d242[_0x125342(0x415)]);if(!((_0x59b4b0=this[_0x125342(0x3c4)])!=null&&_0x59b4b0[_0x125342(0x163)])){let _0x706fc=_0x5e4aa4['findIndex'](([_0x272920])=>_0x272920===C);_0x706fc!==-0x1&&_0x5e4aa4[_0x125342(0x283)](_0x706fc,0x1);}(0x0,t[_0x125342(0x26d)])(this[_0x125342(0x1d6)],_0x5e4aa4);}[_0x528acf(0x1fa)](){const _0x502e15=_0x528acf;var _0x3ae885,_0x1fcb7c;if(this[_0x502e15(0x1d6)][_0x502e15(0x1b0)](l[_0x502e15(0x3f0)])[_0x502e15(0x10b)]({'priority':0x14,'interceptor':(0x0,l[_0x502e15(0x3d8)])({'maxParallel':0x6})}),!((_0x3ae885=this[_0x502e15(0x3c4)])!=null&&_0x3ae885[_0x502e15(0x404)])){var _0x257b21;(_0x257b21=this[_0x502e15(0x1d6)][_0x502e15(0x1b0)](x,t[_0x502e15(0x315)][_0x502e15(0x2e1)]))==null||_0x257b21[_0x502e15(0x2be)]();}(_0x1fcb7c=this[_0x502e15(0x3c4)])!=null&&_0x1fcb7c[_0x502e15(0x387)]&&(0x0,t['touchDependencies'])(this['_injector'],[[W]]),(0x0,t[_0x502e15(0x34e)])(this[_0x502e15(0x1d6)],[[K],[H],[X]]);}};g($,'pluginName',_0x528acf(0x16f)),g($,_0x528acf(0x3ce),$e),g($,'version',et),$=y([(0x0,t[_0x528acf(0x31f)])(u[_0x528acf(0x19c)],l[_0x528acf(0x3be)],e[_0x528acf(0x265)]),v(0x1,t[_0x528acf(0x30e)]),v(0x2,(0x0,t[_0x528acf(0x17f)])(t['Injector'])),v(0x3,t[_0x528acf(0x295)])],$),Object[_0x528acf(0x2b7)](exports,'AuthzIoHttpService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x528acf(0x2b7)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return k;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x294),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x3d6),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x2f7),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x528acf(0x305)]=m,Object['defineProperty'](exports,_0x528acf(0x16d),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x156),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x528acf(0x2ff),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x105),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x145),{'enumerable':!0x0,'get':function(){return ve;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x1f1),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x220),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x528acf(0x3c8)]=Be,exports[_0x528acf(0x25e)]=ie,exports['CollaborationUIEventService']=_,Object[_0x528acf(0x2b7)](exports,_0x528acf(0x257),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x528acf(0x1df)]=ae,Object[_0x528acf(0x2b7)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return j;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x528acf(0x219),exports[_0x528acf(0x210)]=_0x528acf(0x273),exports[_0x528acf(0x197)]=_0x528acf(0x309),Object['defineProperty'](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x1cf),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x378),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x528acf(0x1e7)]=_0x528acf(0x2a8),exports[_0x528acf(0x2e6)]=_0x528acf(0x372),exports[_0x528acf(0x11b)]=nt,exports[_0x528acf(0x3b0)]=Xe,exports['ICollaborationSocketService']=qe,exports[_0x528acf(0x26b)]=x,exports[_0x528acf(0x2e2)]=We,exports[_0x528acf(0x16b)]=C,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x528acf(0x272)]=_0x528acf(0x16a),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x334),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x20a),{'enumerable':!0x0,'get':function(){return Y;}}),Object['defineProperty'](exports,_0x528acf(0x354),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x207),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x139),{'enumerable':!0x0,'get':function(){return O;}}),exports['REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY']=_0x528acf(0x104),exports[_0x528acf(0x3a8)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x528acf(0x16e)]=ge,Object['defineProperty'](exports,_0x528acf(0x2f5),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x528acf(0x2b7)](exports,_0x528acf(0x312),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x528acf(0x2b7)](exports,'SlideCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,'SnapshotServerOverHTTPService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x528acf(0x2b7)](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object[_0x528acf(0x2b7)](exports,_0x528acf(0x292),{'enumerable':!0x0,'get':function(){return $;}}),exports['createUniverCollaborationAdapter']=Ze,exports[_0x528acf(0xff)]=Ge,exports[_0x528acf(0x32f)]=ye,exports[_0x528acf(0x3e9)]=Ke;
|
|
1
|
+
const _0x318ac4=_0x2ea1;(function(_0x2681a6,_0x579daa){const _0x9fe220=_0x2ea1,_0xb46cbf=_0x2681a6();while(!![]){try{const _0x14bd05=-parseInt(_0x9fe220(0x158))/0x1+parseInt(_0x9fe220(0x2ce))/0x2*(-parseInt(_0x9fe220(0x29b))/0x3)+parseInt(_0x9fe220(0x19e))/0x4*(-parseInt(_0x9fe220(0x2eb))/0x5)+parseInt(_0x9fe220(0x1f7))/0x6+parseInt(_0x9fe220(0x264))/0x7+parseInt(_0x9fe220(0x3a3))/0x8+parseInt(_0x9fe220(0x258))/0x9*(parseInt(_0x9fe220(0x186))/0xa);if(_0x14bd05===_0x579daa)break;else _0xb46cbf['push'](_0xb46cbf['shift']());}catch(_0x128810){_0xb46cbf['push'](_0xb46cbf['shift']());}}}(_0x529c,0x6e49d),Object['defineProperty'](exports,Symbol[_0x318ac4(0x2b4)],{'value':_0x318ac4(0x208)}));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=_0x318ac4(0x11d),ee={};function te(_0x4a6e94){const _0x1c72e1=_0x318ac4;return JSON['stringify'](_0x4a6e94)[_0x1c72e1(0x347)];}function h(_0x38e60e){'@babel/helpers - typeof';const _0x4aeedd=_0x318ac4;return h=typeof Symbol==_0x4aeedd(0x136)&&typeof Symbol[_0x4aeedd(0x25f)]==_0x4aeedd(0x3ca)?function(_0x1e8d45){return typeof _0x1e8d45;}:function(_0x5a30d7){const _0x5e3d58=_0x4aeedd;return _0x5a30d7&&typeof Symbol==_0x5e3d58(0x136)&&_0x5a30d7[_0x5e3d58(0x13b)]===Symbol&&_0x5a30d7!==Symbol[_0x5e3d58(0x205)]?_0x5e3d58(0x3ca):typeof _0x5a30d7;},h(_0x38e60e);}function ne(_0x2a59c7,_0x4bda37){const _0x22c42a=_0x318ac4;if(h(_0x2a59c7)!=_0x22c42a(0x22e)||!_0x2a59c7)return _0x2a59c7;var _0x197dc9=_0x2a59c7[Symbol['toPrimitive']];if(_0x197dc9!==void 0x0){var _0x2b818a=_0x197dc9[_0x22c42a(0x19d)](_0x2a59c7,_0x4bda37||'default');if(h(_0x2b818a)!=_0x22c42a(0x22e))return _0x2b818a;throw TypeError(_0x22c42a(0x323));}return(_0x4bda37===_0x22c42a(0x30b)?String:Number)(_0x2a59c7);}function re(_0x3fd239){const _0x3b3b0d=_0x318ac4;var _0x4eecb0=ne(_0x3fd239,'string');return h(_0x4eecb0)==_0x3b3b0d(0x3ca)?_0x4eecb0:_0x4eecb0+'';}function g(_0x5f0703,_0xc4edcf,_0x248c45){const _0x5217ef=_0x318ac4;return(_0xc4edcf=re(_0xc4edcf))in _0x5f0703?Object[_0x5217ef(0x34e)](_0x5f0703,_0xc4edcf,{'value':_0x248c45,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5f0703[_0xc4edcf]=_0x248c45,_0x5f0703;}let ie=function(_0x4062d4){const _0x55a86e=_0x318ac4;return _0x4062d4['OTHER_CLIENT_EDITING']=_0x55a86e(0x153),_0x4062d4[_0x55a86e(0x18a)]='PERMISSION_DENIED',_0x4062d4['CONFLICT']=_0x55a86e(0x3d7),_0x4062d4[_0x55a86e(0x39c)]=_0x55a86e(0x39c),_0x4062d4[_0x55a86e(0x3f4)]=_0x55a86e(0x3f4),_0x4062d4[_0x55a86e(0x26f)]=_0x55a86e(0x26f),_0x4062d4[_0x55a86e(0x3e0)]=_0x55a86e(0x3e0),_0x4062d4[_0x55a86e(0x275)]=_0x55a86e(0x275),_0x4062d4;}({});var _=class{constructor(){const _0x473836=_0x318ac4;g(this,_0x473836(0x2a5),new i[(_0x473836(0x164))]()),g(this,_0x473836(0x21b),this['_event$'][_0x473836(0xe7)]());}[_0x318ac4(0x3b5)](_0x146e76){const _0x59dda0=_0x318ac4;this[_0x59dda0(0x2a5)]['next'](_0x146e76);}},ae=class{constructor(){const _0x10a640=_0x318ac4;g(this,_0x10a640(0x3cc),new i[(_0x10a640(0x164))]()),g(this,_0x10a640(0x37a),this[_0x10a640(0x3cc)][_0x10a640(0xe7)]());}[_0x318ac4(0x3cb)](_0x58a446){const _0x5015cf=_0x318ac4;this[_0x5015cf(0x3cc)]['next'](_0x58a446);}};function v(_0x3815a8,_0x3b1ad3){return function(_0xba036a,_0x16c636){_0x3b1ad3(_0xba036a,_0x16c636,_0x3815a8);};}function y(_0x31ea50,_0x30090b,_0x4e5112,_0x1d02a0){const _0x1dbb92=_0x318ac4;var _0x10382c=arguments[_0x1dbb92(0x347)],_0xf3a4d9=_0x10382c<0x3?_0x30090b:_0x1d02a0===null?_0x1d02a0=Object[_0x1dbb92(0x2cf)](_0x30090b,_0x4e5112):_0x1d02a0,_0x293d3a;if(typeof Reflect==_0x1dbb92(0x22e)&&typeof Reflect[_0x1dbb92(0x2f6)]==_0x1dbb92(0x136))_0xf3a4d9=Reflect[_0x1dbb92(0x2f6)](_0x31ea50,_0x30090b,_0x4e5112,_0x1d02a0);else{for(var _0x302b84=_0x31ea50['length']-0x1;_0x302b84>=0x0;_0x302b84--)(_0x293d3a=_0x31ea50[_0x302b84])&&(_0xf3a4d9=(_0x10382c<0x3?_0x293d3a(_0xf3a4d9):_0x10382c>0x3?_0x293d3a(_0x30090b,_0x4e5112,_0xf3a4d9):_0x293d3a(_0x30090b,_0x4e5112))||_0xf3a4d9);}return _0x10382c>0x3&&_0xf3a4d9&&Object[_0x1dbb92(0x34e)](_0x30090b,_0x4e5112,_0xf3a4d9),_0xf3a4d9;}let b=class extends t[_0x318ac4(0x256)]{constructor(_0x274268){const _0x55dbbf=_0x318ac4;super(),this[_0x55dbbf(0x1b9)]=_0x274268,g(this,_0x55dbbf(0x2a8),new Map()),g(this,'_roomCreated$',new i[(_0x55dbbf(0x164))]()),this[_0x55dbbf(0x309)]((0x0,i[_0x55dbbf(0xe4)])(this['_univerInstanceService'][_0x55dbbf(0x2c2)](t[_0x55dbbf(0x27b)][_0x55dbbf(0x204)])[_0x55dbbf(0x304)]((0x0,s[_0x55dbbf(0x2b6)])(_0x50b5d2=>_0x50b5d2[_0x55dbbf(0xd5)]())),this[_0x55dbbf(0x1b9)][_0x55dbbf(0x2c2)](t[_0x55dbbf(0x27b)][_0x55dbbf(0x1db)])[_0x55dbbf(0x304)]((0x0,s[_0x55dbbf(0x2b6)])(_0x51b186=>_0x51b186['getUnitId']())),this[_0x55dbbf(0x1b9)]['getTypeOfUnitDisposed$'](t[_0x55dbbf(0x27b)][_0x55dbbf(0x177)])[_0x55dbbf(0x304)]((0x0,s['map'])(_0x3eb591=>_0x3eb591['getUnitId']())),this[_0x55dbbf(0x1b9)][_0x55dbbf(0x2c2)](t[_0x55dbbf(0x27b)][_0x55dbbf(0x30c)])[_0x55dbbf(0x304)]((0x0,s[_0x55dbbf(0x2b6)])(_0x2b5827=>_0x2b5827['getUnitId']())))['subscribe'](_0x165462=>this[_0x55dbbf(0x296)](_0x165462)));}['waitForRoom$'](_0x103428){const _0x38563e=_0x318ac4;return this['_roomMembers'][_0x38563e(0x3e2)](_0x103428)?(0x0,i['of'])(this[_0x38563e(0x2a8)]['get'](_0x103428)):this[_0x38563e(0x3f2)]['pipe']((0x0,s[_0x38563e(0x2b6)])(_0x2b8dc0=>{const _0x1d92aa=_0x38563e;if(_0x2b8dc0===_0x103428)return this[_0x1d92aa(0x2a8)][_0x1d92aa(0x3c5)](_0x2b8dc0);}));}[_0x318ac4(0x274)](_0x44825a,_0x11923b){const _0x6e59ea=_0x318ac4;let _0x1a66bb=this[_0x6e59ea(0x2a8)][_0x6e59ea(0x3c5)](_0x44825a);_0x1a66bb||(_0x1a66bb=new oe(),this[_0x6e59ea(0x2a8)]['set'](_0x44825a,_0x1a66bb),this[_0x6e59ea(0x3f2)][_0x6e59ea(0x322)](_0x44825a)),_0x1a66bb[_0x6e59ea(0x274)](_0x11923b);}[_0x318ac4(0x11c)](_0x3d68ac,_0x21dc27){const _0xe8d224=_0x318ac4;let _0x7fb928=this[_0xe8d224(0x2a8)]['get'](_0x3d68ac);_0x7fb928&&_0x7fb928[_0xe8d224(0x11c)](_0x21dc27);}['getRoom'](_0x4588f9){const _0x23f50d=_0x318ac4;return this[_0x23f50d(0x2a8)]['get'](_0x4588f9);}[_0x318ac4(0x221)](_0x473399,_0x550c60){const _0x1bc144=_0x318ac4;let _0xb46052=this[_0x1bc144(0x2a8)][_0x1bc144(0x3c5)](_0x473399);if(_0xb46052)return _0xb46052[_0x1bc144(0x221)](_0x550c60);}[_0x318ac4(0x296)](_0xa90e2e){const _0x4420b8=_0x318ac4;let _0x3806cf=this[_0x4420b8(0x2a8)][_0x4420b8(0x3c5)](_0xa90e2e);_0x3806cf&&(_0x3806cf[_0x4420b8(0x171)](),this[_0x4420b8(0x2a8)][_0x4420b8(0x305)](_0xa90e2e));}[_0x318ac4(0x171)](){const _0x32ec1c=_0x318ac4;this['_roomMembers'][_0x32ec1c(0x2cc)](_0x4ec8c8=>_0x4ec8c8[_0x32ec1c(0x171)]()),this[_0x32ec1c(0x2a8)][_0x32ec1c(0x279)](),this[_0x32ec1c(0x3f2)][_0x32ec1c(0x129)]();}};b=y([v(0x0,t[_0x318ac4(0x245)])],b);var oe=class extends t[_0x318ac4(0x256)]{constructor(..._0x39dab9){const _0x2bf226=_0x318ac4;super(..._0x39dab9),g(this,'_members',new Map()),g(this,'_members$',new i[(_0x2bf226(0x193))](this[_0x2bf226(0x33c)])),g(this,_0x2bf226(0x2c9),this['_members$'][_0x2bf226(0xe7)]());}[_0x318ac4(0x171)](){const _0x47eeda=_0x318ac4;this['_members'][_0x47eeda(0x279)](),this[_0x47eeda(0x15b)]['complete']();}[_0x318ac4(0x274)](_0xa040e5){const _0x2121f4=_0x318ac4;this['_members']['set'](_0xa040e5[_0x2121f4(0x2c7)],_0xa040e5),this[_0x2121f4(0x29e)]();}['removeMember'](_0x3b5b02){const _0xa54cde=_0x318ac4;this['_members']['delete'](_0x3b5b02),this[_0xa54cde(0x29e)]();}[_0x318ac4(0x221)](_0x52a3f4){const _0x28cf2b=_0x318ac4;return this['_members'][_0x28cf2b(0x3c5)](_0x52a3f4);}[_0x318ac4(0x29c)](){const _0x32b002=_0x318ac4;return Array[_0x32b002(0x104)](this[_0x32b002(0x33c)][_0x32b002(0x3d9)]());}[_0x318ac4(0x29e)](){const _0x2740f3=_0x318ac4;this['_members$'][_0x2740f3(0x322)](this[_0x2740f3(0x33c)]);}};function se(_0x52045b,_0x1414f3){const _0x50d98f=_0x318ac4;if(le(_0x52045b))return _0x1414f3;if(_0x1414f3[_0x50d98f(0x1da)]===e[_0x50d98f(0x364)][_0x50d98f(0x18f)]){let _0x25a13e=me(_0x52045b),_0x2ef6fd=_0x1414f3;return{..._0x2ef6fd,'data':{..._0x2ef6fd[_0x50d98f(0x1ec)],'unitID':_0x52045b['target']['unitId'],'unitType':_0x52045b[_0x50d98f(0x1cd)]['unitType']??_0x2ef6fd[_0x50d98f(0x1ec)][_0x50d98f(0x1d3)],'changeset':_0x25a13e[_0x50d98f(0x135)](_0x2ef6fd[_0x50d98f(0x1ec)][_0x50d98f(0x1c6)],he(_0x52045b))}};}if(_0x1414f3['eventID']===e['CollaborationEvent']['FETCH_MISSING']){let _0x2cb859=_0x1414f3;return{..._0x2cb859,'data':{..._0x2cb859[_0x50d98f(0x1ec)],'unitID':_0x52045b['target'][_0x50d98f(0x19b)],'unitType':_0x52045b[_0x50d98f(0x1cd)][_0x50d98f(0x1d3)]??_0x2cb859[_0x50d98f(0x1ec)][_0x50d98f(0x1d3)]}};}return _0x1414f3;}function ce(_0x3ac0c9,_0x37cedd){const _0x1d7685=_0x318ac4;if(le(_0x3ac0c9))return[_0x37cedd];switch(_0x37cedd[_0x1d7685(0x1da)]){case e[_0x1d7685(0x364)][_0x1d7685(0xdc)]:return[ue(_0x3ac0c9,_0x37cedd)];case e[_0x1d7685(0x364)]['PSEUDO_FETCH_MISSING_RESULT']:return[fe(_0x3ac0c9,_0x37cedd)];case e['CollaborationEvent']['CHANGESET_SHOULD_RETRY']:return[de(_0x3ac0c9,_0x37cedd)];default:return[_0x37cedd];}}function le(_0x33f8b0){const _0x4b16c8=_0x318ac4;return _0x33f8b0[_0x4b16c8(0x1cd)][_0x4b16c8(0x1ae)]==null&&_0x33f8b0['target'][_0x4b16c8(0x19b)]===_0x33f8b0[_0x4b16c8(0x13c)]&&!_0x33f8b0[_0x4b16c8(0x1c6)];}function ue(_0x52c8bd,_0x805770){const _0x2c6773=_0x318ac4;return{..._0x805770,'data':(0x0,e[_0x2c6773(0x29d)])(pe(_0x52c8bd,(0x0,e[_0x2c6773(0x27d)])(_0x805770[_0x2c6773(0x1ec)])))};}function de(_0x49427d,_0x4ab265){const _0x22357b=_0x318ac4;return{..._0x4ab265,'data':pe(_0x49427d,_0x4ab265[_0x22357b(0x1ec)])};}function fe(_0x534596,_0x3a6977){const _0x4fc1a2=_0x318ac4;let _0x36aea5=_0x3a6977[_0x4fc1a2(0x1ec)];return{..._0x3a6977,'data':{..._0x36aea5,'changesets':_0x36aea5[_0x4fc1a2(0xe5)]['map'](_0xd591f9=>(0x0,e[_0x4fc1a2(0x29d)])(pe(_0x534596,(0x0,e['parseProtocolChangeset'])(_0xd591f9))))}};}function pe(_0x4ff9b7,_0x216031){return me(_0x4ff9b7)['toLocal'](_0x216031,he(_0x4ff9b7));}function me(_0x499738){const _0x1037eb=_0x318ac4;if(!_0x499738[_0x1037eb(0x1c6)])throw Error(_0x1037eb(0x2e6));return _0x499738['changeset'];}function he(_0x446fc7){const _0x36939b=_0x318ac4;return{'localUnitId':_0x446fc7['localUnitId'],'unitType':_0x446fc7[_0x36939b(0x1d3)],'target':_0x446fc7[_0x36939b(0x1cd)]};}let ge=function(_0x34e591){const _0x2d7b42=_0x318ac4;return _0x34e591[_0x34e591[_0x2d7b42(0x325)]=0x0]='IDLE',_0x34e591[_0x34e591[_0x2d7b42(0x2e2)]=0x1]=_0x2d7b42(0x2e2),_0x34e591[_0x34e591[_0x2d7b42(0x10e)]=0x2]='OFFLINE',_0x34e591[_0x34e591['ONLINE']=0x3]=_0x2d7b42(0xeb),_0x34e591;}({});const _e={[a[_0x318ac4(0x38e)][_0x318ac4(0x163)]]:_0x318ac4(0x2d6),[a['CmdRspCode'][_0x318ac4(0xd6)]]:_0x318ac4(0x3ad),[a['CmdRspCode'][_0x318ac4(0x32f)]]:_0x318ac4(0x376),[a[_0x318ac4(0x38e)][_0x318ac4(0x1cc)]]:_0x318ac4(0x210),[a[_0x318ac4(0x38e)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x318ac4(0x3d4)};let ve=class extends t[_0x318ac4(0x269)]{get['sessionStatus'](){const _0xcf67b7=_0x318ac4;return this[_0xcf67b7(0x337)][_0xcf67b7(0xfd)]();}constructor(_0x2318a9,_0x4641e2,_0x26b987,_0x5697fd,_0x47b0df,_0x35fc58,_0x4869d2,_0xdb5af){const _0x42d157=_0x318ac4;super(),this[_0x42d157(0x2b8)]=_0x2318a9,this[_0x42d157(0x2fa)]=_0x26b987,this['_configService']=_0x5697fd,this[_0x42d157(0x3a0)]=_0x47b0df,this[_0x42d157(0x3df)]=_0x35fc58,this[_0x42d157(0x20b)]=_0x4869d2,this[_0x42d157(0x281)]=_0xdb5af,g(this,_0x42d157(0x337),new i[(_0x42d157(0x193))](0x0)),g(this,_0x42d157(0x122),this['_sessionStatus$']['asObservable']()),g(this,_0x42d157(0x2a5),new i['Subject']()),g(this,'event$',this[_0x42d157(0x2a5)][_0x42d157(0xe7)]()),g(this,_0x42d157(0x31a),void 0x0),g(this,_0x42d157(0x3e3),void 0x0),g(this,_0x42d157(0x345),void 0x0),g(this,_0x42d157(0xdf),!0x1),g(this,'_telemetryInfo',null),this['_shouldReportTelemetry']=!!this[_0x42d157(0x281)],_0x4641e2[_0x42d157(0x304)]((0x0,i['takeUntil'])(this[_0x42d157(0x16a)]))[_0x42d157(0x126)](_0x5c0bad=>{const _0xae2ee=_0x42d157;if(_0x5c0bad!==void 0x0){if(this[_0xae2ee(0x31a)]=_0x5c0bad,_0x5c0bad)this[_0xae2ee(0x11f)](_0x5c0bad),this[_0xae2ee(0x3e3)]=_0x5c0bad['message$'][_0xae2ee(0x126)](_0x4a71a2=>{const _0x52ee4e=_0xae2ee;_0x4a71a2[_0x52ee4e(0x292)]===this[_0x52ee4e(0x2b8)]['target'][_0x52ee4e(0x19b)]&&this[_0x52ee4e(0x3f7)](_0x4a71a2);});else{var _0x497fc4;this['_throwTelemetryCollaborationNewChangeset'](),this[_0xae2ee(0x337)][_0xae2ee(0x322)](0x2),(_0x497fc4=this[_0xae2ee(0x3e3)])==null||_0x497fc4['unsubscribe'](),this[_0xae2ee(0x3e3)]=null;}}});}[_0x318ac4(0x24a)](){const _0x570e51=_0x318ac4;var _0xc3a34a;return((_0xc3a34a=this[_0x570e51(0x31a)])==null?void 0x0:_0xc3a34a[_0x570e51(0x2c7)])??null;}['dispose'](){const _0x36f081=_0x318ac4;super[_0x36f081(0x171)](),this[_0x36f081(0x2ef)](),this[_0x36f081(0x16a)][_0x36f081(0x322)](),this[_0x36f081(0x16a)][_0x36f081(0x129)]();}[_0x318ac4(0x2ef)](){const _0x251529=_0x318ac4;var _0x167bbb;this['_throwTelemetryCollaborationNewChangeset'](),(_0x167bbb=this[_0x251529(0x31a)])==null||_0x167bbb[_0x251529(0x2a3)]({'cmd':a[_0x251529(0x379)]['LEAVE'],'data':{'roomID':this[_0x251529(0x2b8)][_0x251529(0x1cd)][_0x251529(0x19b)]}}),this['_event$'][_0x251529(0x129)](),this[_0x251529(0x337)][_0x251529(0x129)]();}[_0x318ac4(0x3f7)](_0xbe0868){const _0x10f2e3=_0x318ac4;_0xbe0868[_0x10f2e3(0x31b)]===a['CombCmd'][_0x10f2e3(0x206)]?this['_onJoinRoomEvent'](_0xbe0868):_0xbe0868[_0x10f2e3(0x31b)]===a['CombCmd'][_0x10f2e3(0x33e)]&&this[_0x10f2e3(0x37c)](_0xbe0868);}[_0x318ac4(0x11f)](_0x9b570){const _0x15188e=_0x318ac4;this[_0x15188e(0x337)][_0x15188e(0x322)](0x1),_0x9b570[_0x15188e(0x2a3)]({'cmd':a[_0x15188e(0x379)][_0x15188e(0x206)],'routeKey':this[_0x15188e(0x2b8)][_0x15188e(0x1cd)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this['_identity'][_0x15188e(0x1cd)][_0x15188e(0x19b)]}]}});}[_0x318ac4(0x298)](_0x2230ca){const _0x27d3dc=_0x318ac4;var _0x1e0220;if(_0x2230ca[_0x27d3dc(0x1ad)]in _e){this[_0x27d3dc(0x20b)]['emitEvent']({'id':_0x27d3dc(0x3f4),'data':_e[_0x2230ca['code']]}),this['_sessionStatus$'][_0x27d3dc(0x322)](0x2);return;}this['_sessionStatus$'][_0x27d3dc(0x322)](0x3);let _0x592a67=(_0x1e0220=_0x2230ca[_0x27d3dc(0x1ec)][_0x27d3dc(0x3e5)][this['_identity'][_0x27d3dc(0x1cd)][_0x27d3dc(0x19b)]])==null?void 0x0:_0x1e0220['members'];_0x592a67&&_0x592a67[_0x27d3dc(0x2cc)](_0x544323=>this[_0x27d3dc(0x3a0)][_0x27d3dc(0x274)](this['_identity'][_0x27d3dc(0x13c)],_0x544323));}[_0x318ac4(0x37c)](_0x3fb87e){const _0x3afbbd=_0x318ac4;try{let _0x48d6c7=ce(this['_identity'],_0x3fb87e[_0x3afbbd(0x1ec)]);for(let _0x27d49b of _0x48d6c7)switch(_0x27d49b[_0x3afbbd(0x1da)]){case e[_0x3afbbd(0x364)][_0x3afbbd(0x112)]:this[_0x3afbbd(0x111)](_0x27d49b),this['_event$'][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x2b0)]:this[_0x3afbbd(0x278)](_0x27d49b),this[_0x3afbbd(0x2a5)][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x235)]:case e[_0x3afbbd(0x364)][_0x3afbbd(0x197)]:this[_0x3afbbd(0x2ea)](),this[_0x3afbbd(0x2dc)](),this['_event$'][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x3f8)]:this['_logService'][_0x3afbbd(0x36b)](_0x3afbbd(0x14c)+JSON['stringify'](_0x27d49b)),this['_event$'][_0x3afbbd(0x322)](_0x27d49b);break;case e[_0x3afbbd(0x364)][_0x3afbbd(0x356)]:this['_commentService'][_0x3afbbd(0x3cb)](_0x27d49b[_0x3afbbd(0x1ec)]),this[_0x3afbbd(0x2a5)][_0x3afbbd(0x322)](_0x27d49b);break;default:this[_0x3afbbd(0x2a5)]['next'](_0x27d49b);}}catch(_0x5dd048){this['_logService'][_0x3afbbd(0x36b)](_0x5dd048,_0x3fb87e);}}['_onUserJoin'](_0x118b0a){const _0x3933fe=_0x318ac4;this[_0x3933fe(0x3a0)][_0x3933fe(0x274)](this['_identity'][_0x3933fe(0x13c)],_0x118b0a[_0x3933fe(0x1ec)]);}[_0x318ac4(0x278)](_0x58e7d6){const _0x45f859=_0x318ac4;this[_0x45f859(0x3a0)][_0x45f859(0x11c)](this[_0x45f859(0x2b8)][_0x45f859(0x13c)],_0x58e7d6[_0x45f859(0x1ec)]['memberID']);}async[_0x318ac4(0x2a3)](_0x4a37b1,_0x328f48){const _0x6532ad=_0x318ac4;if(this[_0x6532ad(0x2ff)]!==0x3||!this['_socket'])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x2bfe59=se(this[_0x6532ad(0x2b8)],_0x4a37b1);_0x2bfe59['eventID']===e[_0x6532ad(0x364)][_0x6532ad(0x18f)]&&(this[_0x6532ad(0x328)](),this[_0x6532ad(0x37f)](_0x2bfe59)),this[_0x6532ad(0x31a)][_0x6532ad(0x2a3)]({'cmd':a[_0x6532ad(0x379)][_0x6532ad(0x27c)],'routeKey':this[_0x6532ad(0x2b8)][_0x6532ad(0x1cd)]['unitId'],'routeType':'','data':_0x2bfe59});}catch(_0x97a655){this['_logService'][_0x6532ad(0x36b)](_0x97a655);}}[_0x318ac4(0x328)](){const _0x557753=_0x318ac4;this[_0x557753(0x345)]=setTimeout(()=>{const _0x265836=_0x557753;this['_collaborationTimeoutTimer']=null,this[_0x265836(0x20b)][_0x265836(0x3b5)]({'id':'SUBMIT_CHANGESET_TIMEOUT'});},this['_configService']['getConfig'](_0x557753(0x303))??0x4e20);}['_clearCollaborationTimeoutTimer'](){const _0x4acede=_0x318ac4;this[_0x4acede(0x345)]&&=(clearTimeout(this[_0x4acede(0x345)]),null);}[_0x318ac4(0x37f)](_0x20d0cf){const _0x2ca882=_0x318ac4;if(!this[_0x2ca882(0xdf)])return;let {data:_0x18f173}=_0x20d0cf,{unitID:_0x18cb80,changeset:_0xefffa}=_0x18f173,{mutations:_0x2c684d,type:_0x5a032a}=_0xefffa;this[_0x2ca882(0x2f7)]={'unitId':_0x18cb80,'type':_0x5a032a,'startTime':performance[_0x2ca882(0x115)](),'stopTime':0x0,'duration':0x0,'size':te(_0x2c684d)};}[_0x318ac4(0x2ea)](){const _0x430af1=_0x318ac4;if(this['_shouldReportTelemetry']){if(!this[_0x430af1(0x2f7)]){this['_logService'][_0x430af1(0x36b)](_0x430af1(0x2d9),'telemetry\x20info\x20is\x20not\x20initialized');return;}this['_telemetryInfo']['stopTime']=performance[_0x430af1(0x115)](),this[_0x430af1(0x2f7)]['duration']=this[_0x430af1(0x2f7)][_0x430af1(0x288)]-this[_0x430af1(0x2f7)][_0x430af1(0x12d)],this[_0x430af1(0x281)][_0x430af1(0x321)](_0x430af1(0x133),this[_0x430af1(0x2f7)]),this[_0x430af1(0x2f7)]=null;}}[_0x318ac4(0x189)](){const _0x4591e0=_0x318ac4;this[_0x4591e0(0x2f7)]=null;}};ve=y([v(0x2,t[_0x318ac4(0x28c)]),v(0x3,t[_0x318ac4(0x1b7)]),v(0x4,(0x0,t[_0x318ac4(0x394)])(b)),v(0x5,(0x0,t[_0x318ac4(0x394)])(ae)),v(0x6,(0x0,t[_0x318ac4(0x394)])(_)),v(0x7,(0x0,t[_0x318ac4(0x2b2)])(o[_0x318ac4(0x240)]))],ve);const x=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x383));function ye(_0x399d15){const _0xe0aa8f=_0x318ac4;return _0xe0aa8f(0xf9)+_0x399d15;}function be(_0x18dd9c){const _0x52e2ae=_0x318ac4;let {unitID:_0x122aed,mutations:_0x5019a2}=_0x18dd9c;return{'unitId':_0x122aed,'subUnitId':_0x5019a2['length']>0x0?_0x5019a2[0x0][_0x52e2ae(0x20c)][_0x52e2ae(0x3bc)]:null};}let S=class{constructor(_0x2f7f04,_0x1b15e6,_0x15c837){const _0x180bb9=_0x318ac4;this[_0x180bb9(0x1d8)]=_0x2f7f04,this[_0x180bb9(0x1a4)]=_0x1b15e6,this[_0x180bb9(0x285)]=_0x15c837;}[_0x318ac4(0x12f)](_0x492ed9){const _0x4c37ef=_0x318ac4;var _0x5cc8f3,_0x5a87ca;let _0x3a49df=this[_0x4c37ef(0x1d8)]['get'](r[_0x4c37ef(0x3dd)]),{unitId:_0x31b085,subUnitId:_0x278a08}=be(_0x492ed9),_0x438806=_0x3a49df==null?void 0x0:_0x3a49df[_0x4c37ef(0x106)](_0x31b085)['getCurrentSelections'](),_0x3576c8=(_0x5cc8f3=this[_0x4c37ef(0x285)][_0x4c37ef(0x22d)](_0x31b085))==null||(_0x5cc8f3=_0x5cc8f3['getActiveSheet']())==null?void 0x0:_0x5cc8f3[_0x4c37ef(0x143)]();if(_0x438806[_0x4c37ef(0x347)]===0x0||!_0x31b085||!_0x278a08)return;let _0x1ec2aa=[{'id':r[_0x4c37ef(0x160)]['id'],'params':{'unitId':_0x31b085,'subUnitId':_0x3576c8,'selections':t['Tools'][_0x4c37ef(0x26d)](_0x438806)}}],_0x47f9b5=this[_0x4c37ef(0x1a4)][_0x4c37ef(0x19a)](_0x492ed9,_0x1ec2aa);if(!(0x0,e[_0x4c37ef(0x33d)])(_0x47f9b5))throw _0x47f9b5[_0x4c37ef(0x36b)];let _0x1f3f12=(_0x5a87ca=_0x47f9b5['m2Prime'][0x0])==null||(_0x5a87ca=_0x5a87ca[_0x4c37ef(0x20c)])==null?void 0x0:_0x5a87ca[_0x4c37ef(0x2b1)];if(Array['isArray'](_0x1f3f12)&&_0x1f3f12[_0x4c37ef(0x347)]){if(_0x1f3f12[_0x4c37ef(0x347)]===_0x1ec2aa[0x0][_0x4c37ef(0x20c)][_0x4c37ef(0x2b1)][_0x4c37ef(0x347)]&&_0x1f3f12[_0x4c37ef(0x3ee)]((_0x5f40c6,_0x531f2a)=>t[_0x4c37ef(0x1ab)]['equals'](_0x5f40c6[_0x4c37ef(0x32a)],_0x1ec2aa[0x0][_0x4c37ef(0x20c)][_0x4c37ef(0x2b1)][_0x531f2a][_0x4c37ef(0x32a)])))return;this['_injector'][_0x4c37ef(0x3c5)](t[_0x4c37ef(0x185)])[_0x4c37ef(0x373)](r[_0x4c37ef(0x160)]['id'],{'unitId':_0x31b085,'subUnitId':_0x3576c8,'selections':_0x1f3f12});}}};S=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x1,e['ITransformService']),v(0x2,t[_0x318ac4(0x245)])],S);const C=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x350));let xe=function(_0x4033cb){const _0x4e2356=_0x318ac4;return _0x4033cb[_0x4033cb['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x4e2356(0x1b5),_0x4033cb[_0x4033cb[_0x4e2356(0x3fa)]=0x1]=_0x4e2356(0x3fa),_0x4033cb;}({});function Se(_0x1cee35){const _0x347739=_0x318ac4;var _0x44f099;return!!((_0x44f099=_0x1cee35[_0x347739(0x20c)])!=null&&_0x44f099[_0x347739(0x25b)]);}const Ce=new Set([r[_0x318ac4(0x392)]['id']]),we=new Set([c[_0x318ac4(0x216)]['id'],c[_0x318ac4(0x36f)]['id'],c[_0x318ac4(0x268)]['id'],c[_0x318ac4(0x1c0)]['id']]);function Te(_0x24837a,_0x570431=Ce){const _0x1eba00=_0x318ac4;let _0x1811be=[];for(let _0x266193 of _0x24837a){if(_0x570431[_0x1eba00(0x3e2)](_0x266193['id'])){if(_0x1811be[_0x1eba00(0x347)]>0x0)break;_0x1811be[_0x1eba00(0x154)](_0x266193);break;}if(Se(_0x266193)){if(_0x1811be[_0x1eba00(0x347)]>0x0)break;_0x1811be['push'](_0x266193);break;}_0x1811be['push'](_0x266193);}return _0x1811be;}function w(_0x249d7f,_0x10b0b0,_0x6a2877,_0x321469,_0x5d54aa){const _0x11dcd0=_0x318ac4;let _0xaa4925=Te(_0x249d7f),_0x409ca0=_0x5d54aa[_0x11dcd0(0x3d2)](),_0x33ead5=(_0x409ca0==null?void 0x0:_0x409ca0[_0x11dcd0(0x348)])??_0x11dcd0(0x36d),_0x468f62=(_0x409ca0==null?void 0x0:_0x409ca0['memberID'])??_0x11dcd0(0x36d);return{'changeset':{'unitID':_0x10b0b0,'type':(0x0,e[_0x11dcd0(0x2ae)])(_0x6a2877[_0x11dcd0(0x132)](_0x10b0b0)),'baseRev':_0x321469[_0x11dcd0(0x398)](_0x10b0b0),'revision':0x0,'userID':_0x33ead5,'memberID':_0x468f62,'mutations':_0xaa4925},'pendingMutations':_0x249d7f['slice'](_0xaa4925[_0x11dcd0(0x347)])};}const Ee=w;function De(_0x346898,_0x544c34,_0x4b8302,_0x174871,_0x23c326){const _0x176113=_0x318ac4;let _0x1c2f9b=Te(_0x346898,we),_0x5670fc=_0x23c326['getCurrentUser'](),_0x305948=(_0x5670fc==null?void 0x0:_0x5670fc[_0x176113(0x348)])??_0x176113(0x36d),_0x4c7909=(_0x5670fc==null?void 0x0:_0x5670fc[_0x176113(0x2c7)])??_0x176113(0x36d);return{'changeset':{'unitID':_0x544c34,'type':(0x0,e[_0x176113(0x2ae)])(_0x4b8302[_0x176113(0x132)](_0x544c34)),'baseRev':_0x174871['getCurrentRevOfUnit'](_0x544c34),'revision':0x0,'userID':_0x305948,'memberID':_0x4c7909,'mutations':_0x1c2f9b},'pendingMutations':_0x346898['slice'](_0x1c2f9b[_0x176113(0x347)])};}function Oe(_0x224d75,_0xe3f538,_0x540c2d,_0x1f6312,_0x40d9c8){const _0x5b83dc=_0x318ac4;let _0x4947a9=_0x224d75[_0x5b83dc(0x2ac)]((_0x4c7885,_0xb64db1)=>{const _0x44af73=_0x5b83dc;let _0x39b598=_0x4c7885[_0x4c7885['length']-0x1],{id:_0x396c04}=_0x39b598??{},{id:_0x279f50,type:_0x8cb732}=_0xb64db1,_0x1e0437=_0xb64db1[_0x44af73(0x20c)];if(_0x396c04&&_0x396c04!==_0x279f50)throw Error(_0x44af73(0x32e)+_0x396c04+_0x44af73(0x2af)+_0x279f50+'.');if(!_0x39b598)return[{'id':_0x279f50,'type':_0x8cb732,'params':{'unitId':_0x1e0437['unitId'],'textRanges':_0x1e0437[_0x44af73(0x3ae)],'actions':_0x1e0437[_0x44af73(0x140)]}}];let _0x25af98=_0x39b598[_0x44af73(0x20c)];return ke(_0x25af98,_0x1e0437)?[..._0x4c7885[_0x44af73(0x343)](0x0,-0x1),{..._0x39b598,'id':_0x279f50,'type':_0x8cb732,'params':{'unitId':_0x1e0437[_0x44af73(0x19b)],'textRanges':_0x1e0437['textRanges'],'actions':t[_0x44af73(0x2d2)][_0x44af73(0x2f2)](_0x25af98['actions'],_0x1e0437['actions'])}}]:[..._0x4c7885,{'id':_0x279f50,'type':_0x8cb732,'params':{'unitId':_0x1e0437['unitId'],'textRanges':_0x1e0437[_0x44af73(0x3ae)],'actions':_0x1e0437['actions']}}];},[]),_0x321dee=_0x40d9c8[_0x5b83dc(0x3d2)](),_0x31d3ee=(_0x321dee==null?void 0x0:_0x321dee['userID'])??_0x5b83dc(0x36d),_0x2372b8=(_0x321dee==null?void 0x0:_0x321dee[_0x5b83dc(0x2c7)])??_0x5b83dc(0x36d);return{'changeset':{'unitID':_0xe3f538,'type':(0x0,e[_0x5b83dc(0x2ae)])(_0x540c2d[_0x5b83dc(0x132)](_0xe3f538)),'baseRev':_0x1f6312[_0x5b83dc(0x398)](_0xe3f538),'revision':0x0,'userID':_0x31d3ee,'memberID':_0x2372b8,'mutations':_0x4947a9},'pendingMutations':_0x224d75['slice'](_0x224d75[_0x5b83dc(0x347)])};}function ke(_0x39777d,_0x4d0e43){const _0xb10dd=_0x318ac4;return!Ae(_0x39777d)&&!Ae(_0x4d0e43)&&je(_0x39777d[_0xb10dd(0x140)],_0x4d0e43[_0xb10dd(0x140)]);}function Ae(_0x45983f){const _0x1f56e9=_0x318ac4;return _0x45983f[_0x1f56e9(0x1fc)]!==void 0x0;}function je(_0x44d949,_0x7fbac6){return Me(_0x44d949)&&Me(_0x7fbac6)&&!Pe(_0x44d949)&&!Pe(_0x7fbac6)&&!Ne(_0x44d949)&&!Ne(_0x7fbac6);}function Me(_0x154fd2){const _0x157898=_0x318ac4;return Fe(_0x154fd2)[_0x157898(0x194)](_0x16d95a=>T(_0x16d95a)&&_0x16d95a['et']===_0x157898(0x156));}function Ne(_0x13b8bc){const _0x191cbe=_0x318ac4;return Fe(_0x13b8bc)['some'](_0x13774f=>Array[_0x191cbe(0x2ba)](_0x13774f)||typeof _0x13774f==_0x191cbe(0x30b)||typeof _0x13774f==_0x191cbe(0xd7));}function Pe(_0x25fbed){const _0x81ce80=_0x318ac4;return Fe(_0x25fbed)[_0x81ce80(0x194)](_0x362534=>!T(_0x362534)||_0x362534['et']!==_0x81ce80(0x156)||!Array['isArray'](_0x362534['e'])?!0x1:_0x362534['e'][_0x81ce80(0x194)](_0x1acefe=>!T(_0x1acefe)||!T(_0x1acefe[_0x81ce80(0x175)])?!0x1:Object[_0x81ce80(0x205)][_0x81ce80(0x220)]['call'](_0x1acefe['body'],_0x81ce80(0x37d))||Object[_0x81ce80(0x205)][_0x81ce80(0x220)][_0x81ce80(0x19d)](_0x1acefe[_0x81ce80(0x175)],'columnGroups')||Object[_0x81ce80(0x205)][_0x81ce80(0x220)][_0x81ce80(0x19d)](_0x1acefe[_0x81ce80(0x175)],'blockRanges')));}function Fe(_0x55b743){const _0x3941f2=_0x318ac4;if(!Array[_0x3941f2(0x2ba)](_0x55b743))return[];let _0x359905=_0x55b743[_0x3941f2(0xfa)]('body')?_0x55b743:_0x55b743[_0x3941f2(0x1b8)](_0x51053c=>Array['isArray'](_0x51053c)&&_0x51053c[_0x3941f2(0xfa)](_0x3941f2(0x175)));if(!Array[_0x3941f2(0x2ba)](_0x359905))return[];let _0x4e0a4a=_0x359905[_0x3941f2(0x1ef)](_0x3941f2(0x175));return _0x4e0a4a===-0x1?[]:_0x359905['slice'](_0x4e0a4a+0x1);}function T(_0x1c78bc){const _0x3aa048=_0x318ac4;return typeof _0x1c78bc==_0x3aa048(0x22e)&&!!_0x1c78bc&&!Array[_0x3aa048(0x2ba)](_0x1c78bc);}function Ie(_0x2f375b,_0x5de783){const _0x202014=_0x318ac4;let _0x4fdcd7=new i[(_0x202014(0x349))](0x1);return setTimeout(()=>_0x4fdcd7[_0x202014(0x322)](_0x5de783),_0x2f375b),_0x4fdcd7[_0x202014(0xe7)]()['pipe']((0x0,i[_0x202014(0x161)])(0x1));}var Le,Re,ze;let Be=function(_0x2c969d){const _0x50a990=_0x318ac4;return _0x2c969d['NOT_COLLAB']='not_collab',_0x2c969d['SYNCED']=_0x50a990(0x2fc),_0x2c969d[_0x50a990(0x36e)]=_0x50a990(0x21d),_0x2c969d['AWAITING']=_0x50a990(0x1e5),_0x2c969d[_0x50a990(0x142)]=_0x50a990(0x287),_0x2c969d['FETCH_MISS']='fetch_missing',_0x2c969d[_0x50a990(0x3d7)]=_0x50a990(0x203),_0x2c969d[_0x50a990(0x10e)]=_0x50a990(0x30f),_0x2c969d;}({});const Ve=0x4e20,He=0x2bf20;var E=class{constructor(_0x155fde,_0x2212cc,_0x20fc41,_0x587409,_0x194d77,_0x457629,_0x2c3de5,_0x40ec41,_0x17a81a){const _0x15045e=_0x318ac4;this[_0x15045e(0x234)]=_0x155fde,this[_0x15045e(0x1cf)]=_0x2212cc,this[_0x15045e(0x28b)]=_0x194d77,this['_commandService']=_0x457629,this[_0x15045e(0x20e)]=_0x2c3de5,this[_0x15045e(0x169)]=_0x40ec41,this[_0x15045e(0x1a8)]=_0x17a81a,g(this,_0x15045e(0x30a),null),g(this,_0x15045e(0xd8),[]),this[_0x15045e(0x30a)]=_0x20fc41,this['_pendingMutations']=_0x587409;}[_0x318ac4(0x340)](_0x2a5b83){const _0x2cd07d=_0x318ac4;let _0x4993da=this[_0x2cd07d(0x169)][_0x2cd07d(0x398)](this[_0x2cd07d(0x234)]);return _0x2a5b83[_0x2cd07d(0x37b)]>_0x4993da+0x1?(this['_handler']['onMissingChangesets']({'from':_0x4993da,'to':_0x2a5b83['revision']-0x1}),!0x0):!0x1;}[_0x318ac4(0x200)](_0x10f001){const _0xbec2ac=_0x318ac4;this[_0xbec2ac(0x20e)]['transformUndoRedo'](this[_0xbec2ac(0x234)],_0x10f001);}[_0x318ac4(0x39d)](_0x3b9a72){const _0x2423a6=_0x318ac4;var _0x12ddd3,_0x40c955;(_0x12ddd3=(_0x40c955=this[_0x2423a6(0x28b)])[_0x2423a6(0x22c)])==null||_0x12ddd3[_0x2423a6(0x19d)](_0x40c955,_0x3b9a72);}[_0x318ac4(0x395)](_0x1cb7ca){const _0x46882c=_0x318ac4;var _0x25499c,_0x365167;return(_0x25499c=(_0x365167=this[_0x46882c(0x28b)])['onTransformIME'])==null?void 0x0:_0x25499c[_0x46882c(0x19d)](_0x365167,_0x1cb7ca);}['_transformStateCache'](_0x371f58){const _0x49fc7b=_0x318ac4;var _0x4d2230,_0x14ebed;return(_0x4d2230=(_0x14ebed=this[_0x49fc7b(0x28b)])[_0x49fc7b(0x227)])==null?void 0x0:_0x4d2230[_0x49fc7b(0x19d)](_0x14ebed,_0x371f58);}[_0x318ac4(0x105)](_0x123983){const _0x2ce5d8=_0x318ac4;var _0x1846c9,_0x5049de;return((_0x1846c9=(_0x5049de=this[_0x2ce5d8(0x28b)])[_0x2ce5d8(0x148)])==null?void 0x0:_0x1846c9['call'](_0x5049de,_0x123983))??_0x123983;}[_0x318ac4(0x3bb)](_0x49f40f){const _0x5eeae1=_0x318ac4;var _0x80a940,_0x5d6fa0;return((_0x80a940=(_0x5d6fa0=this[_0x5eeae1(0x28b)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x80a940[_0x5eeae1(0x19d)](_0x5d6fa0,_0x49f40f))??_0x49f40f;}['_syncEditingCollabCursor'](_0x49927b){const _0x570b12=_0x318ac4;if(this[_0x570b12(0x1cf)]===t['UniverInstanceType'][_0x570b12(0x1db)]){let {unitID:_0x4dc45d,mutations:_0xd70a38,memberID:_0x3cf549}=_0x49927b,_0x1d5520=_0xd70a38['length']>0x0?_0xd70a38[0x0][_0x570b12(0x20c)][_0x570b12(0x3ae)]:[];if(Array[_0x570b12(0x2ba)](_0x1d5520)&&_0x1d5520[_0x570b12(0x347)]>0x0){var _0x717dd3,_0x213e56;(_0x717dd3=(_0x213e56=this[_0x570b12(0x28b)])[_0x570b12(0x1d2)])==null||_0x717dd3[_0x570b12(0x19d)](_0x213e56,{'unitID':_0x4dc45d,'memberID':_0x3cf549,'textRanges':_0x1d5520});}}}['_updateLocalCache'](){const _0x2d6224=_0x318ac4;var _0x5a12dc;(_0x5a12dc=this[_0x2d6224(0x1a8)])==null||_0x5a12dc[_0x2d6224(0x11e)](this[_0x2d6224(0x234)],this[_0x2d6224(0x1cf)],this['_awaitingChangeset'],this['_pendingMutations']);}[_0x318ac4(0x1b4)](){const _0x37355b=_0x318ac4;return this[_0x37355b(0x169)][_0x37355b(0x398)](this[_0x37355b(0x234)]);}[_0x318ac4(0x320)](){const _0x284263=_0x318ac4;this[_0x284263(0x169)][_0x284263(0x306)](this[_0x284263(0x234)]);}[_0x318ac4(0x29a)](_0xe30628){const _0x52c7a8=_0x318ac4;let _0x5725e1=this[_0x52c7a8(0x105)](_0xe30628);_0x5725e1=this[_0x52c7a8(0x3bb)](_0x5725e1);let _0xa6ab92=(0x0,t[_0x52c7a8(0x259)])(_0x5725e1[_0x52c7a8(0x11a)],this[_0x52c7a8(0x152)],{'fromCollab':!0x0});if(!_0xa6ab92['result'])throw _0xa6ab92['error']instanceof Error?_0xa6ab92[_0x52c7a8(0x36b)]:Error(_0xa6ab92['error']??_0x52c7a8(0x368));this[_0x52c7a8(0x395)](_0x5725e1),this[_0x52c7a8(0x1aa)](_0x5725e1),this[_0x52c7a8(0x200)](_0xe30628),this[_0x52c7a8(0x39d)](_0x5725e1),this[_0x52c7a8(0x24c)](_0x5725e1),this[_0x52c7a8(0x320)]();}};let D=class extends E{constructor(_0x5c2c2f,_0x1f9471,_0x1c633b,_0x2dcbbd,_0x10c49e,_0x45c252,_0x3765f0,_0x5d4dd9,_0x194ae5,_0xbb8684){const _0x458b7c=_0x318ac4;super(_0x5c2c2f,_0x1f9471,null,[],_0x1c633b,_0x3765f0,_0x45c252,_0x2dcbbd,_0xbb8684),this[_0x458b7c(0x1d8)]=_0x10c49e,this[_0x458b7c(0x2fa)]=_0x5d4dd9,this[_0x458b7c(0x1a4)]=_0x194ae5,this[_0x458b7c(0x23d)]=_0xbb8684,g(this,_0x458b7c(0x125),_0x458b7c(0x2fc));}['appendMutation'](_0x16046f){const _0x337bce=_0x318ac4;let _0x208ce0=this[_0x337bce(0x1d8)][_0x337bce(0x188)](O,this[_0x337bce(0x234)],this[_0x337bce(0x1cf)],[_0x16046f],this['_handler']);return _0x208ce0['_schedule'](),_0x208ce0[_0x337bce(0x300)](),_0x208ce0;}[_0x318ac4(0x217)](_0x23f219){const _0x40ff51=_0x318ac4;if(this[_0x40ff51(0x340)](_0x23f219))return this[_0x40ff51(0x1d8)][_0x40ff51(0x188)](N,this[_0x40ff51(0x234)],this[_0x40ff51(0x1cf)],null,[],null,[_0x23f219],this['_handler']);try{let _0x3a77b1=this[_0x40ff51(0x1a4)][_0x40ff51(0x19a)](_0x23f219,[e['EmptyMutationInfo']]);if((0x0,e['isTransformMutationsWithChangesetSuccess'])(_0x3a77b1)){let {c1Prime:_0x3a53b0}=_0x3a77b1;return this[_0x40ff51(0x29a)](_0x3a53b0),this;}throw _0x3a77b1[_0x40ff51(0x36b)];}catch(_0x7f07b8){return this[_0x40ff51(0x2fa)][_0x40ff51(0x36b)](_0x7f07b8),this[_0x40ff51(0x223)](!0x1);}}[_0x318ac4(0x223)](_0x11a0aa){const _0x219a92=_0x318ac4;return this[_0x219a92(0x1d8)]['createInstance'](j,this[_0x219a92(0x234)],this[_0x219a92(0x1cf)],null,[],this[_0x219a92(0x28b)],_0x11a0aa);}['onRemoteAck'](_0x33a3a0){const _0x1f2291=_0x318ac4;if(_0x33a3a0[_0x1f2291(0x37b)]<=this['_getCurrentRevision']())return this;throw Error('[SyncedState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x4cb89e=_0x318ac4;throw Error(_0x4cb89e(0x10c));}[_0x318ac4(0x212)](){return this;}[_0x318ac4(0xe1)](){const _0x2f978b=_0x318ac4;return this['_injector']['createInstance'](M,this[_0x2f978b(0x234)],this[_0x2f978b(0x1cf)],null,[],this[_0x2f978b(0x28b)]);}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x363)](){const _0x4a3d78=_0x318ac4;throw Error(_0x4a3d78(0x120));}[_0x318ac4(0x34f)](){const _0x1a6cf1=_0x318ac4;let _0x1d72d2=this['_revisionService'][_0x1a6cf1(0x398)](this[_0x1a6cf1(0x234)]);return this[_0x1a6cf1(0x28b)]['onMissingChangesets']({'from':_0x1d72d2,'to':0x0}),this[_0x1a6cf1(0x1d8)]['createInstance'](N,this[_0x1a6cf1(0x234)],this[_0x1a6cf1(0x1cf)],null,[],null,[],this[_0x1a6cf1(0x28b)]);}};D=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x4,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x5,t[_0x318ac4(0x29f)]),v(0x6,t[_0x318ac4(0x185)]),v(0x7,t['ILogService']),v(0x8,e[_0x318ac4(0x28e)]),v(0x9,(0x0,t[_0x318ac4(0x2b2)])(x))],D);let O=Le=class extends E{constructor(_0x490294,_0x3a4b34,_0x2556bb,_0x20598c,_0x5c5700,_0x2657df,_0x391298,_0x2b6dd8,_0x4b2d97,_0x342f6b,_0x4e05dd,_0x4cb178,_0x20f67c,_0x542d6e){const _0x671c79=_0x318ac4;super(_0x490294,_0x3a4b34,null,_0x2556bb,_0x20598c,_0x4b2d97,_0x20f67c,_0x2657df,_0x542d6e),this[_0x671c79(0x1d8)]=_0x5c5700,this[_0x671c79(0x20f)]=_0x391298,this['_logService']=_0x2b6dd8,this[_0x671c79(0x3e9)]=_0x342f6b,this[_0x671c79(0x1a4)]=_0x4e05dd,this['_univerInstanceService']=_0x4cb178,g(this,_0x671c79(0x125),_0x671c79(0x21d)),g(this,_0x671c79(0x2ab),null),g(this,_0x671c79(0x3b3),null);}[_0x318ac4(0x3cd)](_0x1bb83d){const _0xc83f3d=_0x318ac4;return this[_0xc83f3d(0xd8)][_0xc83f3d(0x154)](_0x1bb83d),this[_0xc83f3d(0x300)](),this;}[_0x318ac4(0x217)](_0x471c8b){const _0xed9cf=_0x318ac4;if(this['_checkMissing'](_0x471c8b))return this[_0xed9cf(0x243)](),this['_injector'][_0xed9cf(0x188)](N,this[_0xed9cf(0x234)],this[_0xed9cf(0x1cf)],null,this[_0xed9cf(0xd8)],null,[_0x471c8b],this[_0xed9cf(0x28b)]);try{let _0x34ae49=this[_0xed9cf(0x1a4)][_0xed9cf(0x19a)](_0x471c8b,this['_pendingMutations']);if((0x0,e[_0xed9cf(0x33d)])(_0x34ae49)){let {c1Prime:_0x3fbf1c,m2Prime:_0xb6c6a7}=_0x34ae49;this[_0xed9cf(0x29a)](_0x3fbf1c);let _0x19334f=this[_0xed9cf(0x1d8)][_0xed9cf(0x188)](Le,this[_0xed9cf(0x234)],this[_0xed9cf(0x1cf)],_0xb6c6a7,this['_handler']);this[_0xed9cf(0x243)]();let _0x173b17=new Date()['getTime'](),_0x5e99b4=this['_scheduleCompleteTimestamp']?Math[_0xed9cf(0x168)](this['_scheduleCompleteTimestamp']-_0x173b17,0x0):this[_0xed9cf(0x226)]();return _0x19334f['_schedule'](_0x5e99b4),_0x19334f;}throw _0x34ae49['error'];}catch(_0x254efc){return this[_0xed9cf(0x2fa)][_0xed9cf(0x36b)](_0x254efc),this['_onConflict'](!0x1);}}[_0x318ac4(0x16f)](_0x1ca991){const _0x119361=_0x318ac4;if(_0x1ca991[_0x119361(0x37b)]<=this['_getCurrentRevision']())return this;throw Error('[PendingState]:\x20received\x20acknowledgement.');}['onRemoteRej'](){const _0x1e7351=_0x318ac4;throw Error(_0x1e7351(0x36a));}[_0x318ac4(0x212)](){return this;}[_0x318ac4(0xe1)](){const _0x5e6818=_0x318ac4;return this[_0x5e6818(0x243)](),this[_0x5e6818(0x1d8)][_0x5e6818(0x188)](M,this['unitID'],this[_0x5e6818(0x1cf)],null,this[_0x5e6818(0xd8)],this[_0x5e6818(0x28b)]);}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x145)](_0x5d0638){const _0x304851=_0x318ac4;let _0x404042=_0x5d0638??this[_0x304851(0x226)]();this[_0x304851(0x2ab)]=new Date()[_0x304851(0x2a9)]()+_0x404042,this[_0x304851(0x3b3)]=setTimeout(()=>{const _0x240f98=_0x304851;this['_clearScheduledTask']();let _0x1e9b20=null;switch(this['type']){case t[_0x240f98(0x27b)][_0x240f98(0x204)]:_0x1e9b20=w(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x1db)]:_0x1e9b20=this[_0x240f98(0xd8)][_0x240f98(0x3ee)](_0x1ab158=>_0x1ab158['id']===n[_0x240f98(0x2aa)]['id'])?Oe(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this['_univerInstanceService'],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]):w(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this['_univerInstanceService'],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x1bc)]:_0x1e9b20=De(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x1df)]:_0x1e9b20=Ee(this['_pendingMutations'],this['unitID'],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t[_0x240f98(0x27b)][_0x240f98(0x177)]:_0x1e9b20=w(this[_0x240f98(0xd8)],this[_0x240f98(0x234)],this[_0x240f98(0x1b9)],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;case t['UniverInstanceType'][_0x240f98(0x30c)]:_0x1e9b20=w(this['_pendingMutations'],this['unitID'],this['_univerInstanceService'],this[_0x240f98(0x169)],this[_0x240f98(0x20f)]);break;default:throw Error(_0x240f98(0x1ca)+this['type']+'\x20in\x20_schedule.');}let {changeset:_0x199fa7,pendingMutations:_0x264dc1}=_0x1e9b20;this[_0x240f98(0x28b)][_0x240f98(0x2a2)](_0x199fa7);let _0x109681=_0x264dc1[_0x240f98(0x347)]?this[_0x240f98(0x1d8)][_0x240f98(0x188)](A,this[_0x240f98(0x234)],this[_0x240f98(0x1cf)],_0x199fa7,_0x264dc1,this[_0x240f98(0x28b)],void 0x0):this['_injector']['createInstance'](k,this['unitID'],this[_0x240f98(0x1cf)],_0x199fa7,this['_handler']);_0x109681[_0x240f98(0x300)](),this[_0x240f98(0x28b)][_0x240f98(0x2d0)](this,_0x109681);},_0x404042);}[_0x318ac4(0x226)](){const _0xf7957a=_0x318ac4;let _0x12a2ab=this[_0xf7957a(0x3e9)][_0xf7957a(0x39f)](m);return(_0x12a2ab==null?void 0x0:_0x12a2ab[_0xf7957a(0x333)])??0x7d0;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_clearScheduledTask'](){const _0x330744=_0x318ac4;this[_0x330744(0x3b3)]!=null&&(clearTimeout(this['_sendingTimer']),this['_sendingTimer']=null);}[_0x318ac4(0x223)](_0x30ce33){const _0x4c30ee=_0x318ac4;return this[_0x4c30ee(0x243)](),this['_injector']['createInstance'](j,this[_0x4c30ee(0x234)],this[_0x4c30ee(0x1cf)],null,this['_pendingMutations'],this['_handler'],_0x30ce33);}};O=Le=y([v(0x4,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x6,(0x0,t['Inject'])(t[_0x318ac4(0x263)])),v(0x7,t[_0x318ac4(0x28c)]),v(0x8,t['ICommandService']),v(0x9,t[_0x318ac4(0x1b7)]),v(0xa,e[_0x318ac4(0x28e)]),v(0xb,t[_0x318ac4(0x245)]),v(0xc,t[_0x318ac4(0x29f)]),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],O);let k=Re=class extends E{constructor(_0x494091,_0x17224b,_0x956c38,_0xc0a9c8,_0x1a5627,_0x3c8244,_0x23cc2d,_0x4e4f5e,_0x5465b3,_0x2cbf4c,_0x550a4e){const _0x19fd00=_0x318ac4;super(_0x494091,_0x17224b,_0x956c38,[],_0xc0a9c8,_0x23cc2d,_0x2cbf4c,_0x3c8244,_0x550a4e),this['_injector']=_0x1a5627,this['_logService']=_0x4e4f5e,this[_0x19fd00(0x1a4)]=_0x5465b3,g(this,'status','awaiting'),g(this,_0x19fd00(0x257),0x0),g(this,_0x19fd00(0x219),0x0),g(this,_0x19fd00(0x34d),void 0x0),g(this,'_sender',void 0x0);}[_0x318ac4(0x3cd)](_0x305f1e){const _0x586876=_0x318ac4;this['_clearScheduledTask']();let _0xb3dea1=this['_injector'][_0x586876(0x188)](A,this[_0x586876(0x234)],this[_0x586876(0x1cf)],this[_0x586876(0x30a)],[_0x305f1e],this[_0x586876(0x28b)],this[_0x586876(0x34d)]);return _0xb3dea1[_0x586876(0x300)](),_0xb3dea1;}[_0x318ac4(0x217)](_0x20eeda){const _0x2b8a54=_0x318ac4;if(this[_0x2b8a54(0x340)](_0x20eeda))return this[_0x2b8a54(0x243)](),this[_0x2b8a54(0x1d8)][_0x2b8a54(0x188)](N,this[_0x2b8a54(0x234)],this[_0x2b8a54(0x1cf)],this[_0x2b8a54(0x30a)],[],null,[_0x20eeda],this[_0x2b8a54(0x28b)]);try{let _0x3b3374=this['_transformService'][_0x2b8a54(0x15e)]([_0x20eeda],[this[_0x2b8a54(0x30a)]],!0x1);if((0x0,e[_0x2b8a54(0x380)])(_0x3b3374)){let {c1Prime:_0x1e2d1f,c2Prime:_0x57a685}=_0x3b3374;this['_executeRemoteChangeset'](_0x1e2d1f[0x0]),_0x57a685[0x0][_0x2b8a54(0x302)]=this[_0x2b8a54(0x1b4)](),this[_0x2b8a54(0x243)]();let _0x597cb4=this[_0x2b8a54(0x1d8)]['createInstance'](Re,this['unitID'],this[_0x2b8a54(0x1cf)],_0x57a685[0x0],this['_handler']);return _0x597cb4[_0x2b8a54(0x300)](),_0x597cb4;}throw _0x3b3374['error'];}catch(_0x41557d){return this[_0x2b8a54(0x2fa)][_0x2b8a54(0x36b)](_0x41557d),this[_0x2b8a54(0x223)](!0x1);}}[_0x318ac4(0x16f)](_0x4db5fa){const _0x5a622a=_0x318ac4;this['_clearScheduledTask']();let _0x58d0f2=this[_0x5a622a(0x169)][_0x5a622a(0x398)](this[_0x5a622a(0x234)]);if(_0x4db5fa['revision']<=_0x58d0f2)return this;if(this['_checkMissing'](_0x4db5fa))return this['_injector'][_0x5a622a(0x188)](N,this['unitID'],this[_0x5a622a(0x1cf)],this[_0x5a622a(0x30a)],[],_0x4db5fa['revision'],[],this['_handler']);this['_incrementRevisionNumber']();let _0x395a13=this['_injector']['createInstance'](D,this[_0x5a622a(0x234)],this['type'],this[_0x5a622a(0x28b)]);return _0x395a13[_0x5a622a(0x300)](),_0x395a13;}[_0x318ac4(0x165)](_0x529468){const _0x5d4ff1=_0x318ac4;return this[_0x5d4ff1(0x223)](!!(_0x529468!=null&&_0x529468[_0x5d4ff1(0x390)]));}['onRemoteRetry'](_0x3b6634){const _0x235f53=_0x318ac4;return this[_0x235f53(0x219)]>He?this['toggleOffline']():(this[_0x235f53(0x34d)]=Ie(this[_0x235f53(0x257)],{'timeout':this['_resendTimeout'],'reqId':_0x3b6634[_0x235f53(0xd9)]}),this[_0x235f53(0x1b3)]=this[_0x235f53(0x34d)][_0x235f53(0x126)](({reqId:_0x11a94c,timeout:_0x58d948})=>{this['_resendWithTimeout'](_0x11a94c,_0x58d948);}),this);}[_0x318ac4(0xe1)](){const _0x595a9f=_0x318ac4;return this[_0x595a9f(0x243)](),this['_injector']['createInstance'](M,this[_0x595a9f(0x234)],this['type'],this[_0x595a9f(0x30a)],[],this[_0x595a9f(0x28b)]);}['toggleOnline'](){return this;}[_0x318ac4(0x363)](){const _0x37e0ec=_0x318ac4;this[_0x37e0ec(0x28b)][_0x37e0ec(0x2a2)](this[_0x37e0ec(0x30a)]);}['_onConflict'](_0xc3d0aa){const _0x45ddef=_0x318ac4;return this[_0x45ddef(0x243)](),this[_0x45ddef(0x1d8)][_0x45ddef(0x188)](j,this['unitID'],this[_0x45ddef(0x1cf)],this[_0x45ddef(0x30a)],[],this['_handler'],_0xc3d0aa);}['_resendWithTimeout'](_0x51a38c,_0x95d6af){const _0x8968ce=_0x318ac4;var _0xbe54f6;_0x51a38c===((_0xbe54f6=this[_0x8968ce(0x30a)])==null?void 0x0:_0xbe54f6['reqId'])&&(this['resend'](),this[_0x8968ce(0x257)]=_0x95d6af===0x0?0x3e8:Math['min'](_0x95d6af*0x2,Ve),this[_0x8968ce(0x219)]+=this[_0x8968ce(0x257)]);}[_0x318ac4(0x243)](){const _0x5a3a97=_0x318ac4;var _0x169223;(_0x169223=this[_0x5a3a97(0x1b3)])==null||_0x169223[_0x5a3a97(0x3f9)](),this[_0x5a3a97(0x257)]=0x0,this['_maxTotalRetryTimeout']=0x0;}};k=Re=y([v(0x4,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x5,(0x0,t['Inject'])(e['RevisionService'])),v(0x6,t['ICommandService']),v(0x7,t[_0x318ac4(0x28c)]),v(0x8,e[_0x318ac4(0x28e)]),v(0x9,t['IUndoRedoService']),v(0xa,(0x0,t[_0x318ac4(0x2b2)])(x))],k);let A=ze=class extends E{constructor(_0x609dff,_0x5c6e3f,_0x144000,_0x491482,_0x122794,_0x3c0fa5,_0x35a3d0,_0x50db59,_0x1e6ec3,_0x5f1800,_0x54a266,_0x5c8ad0,_0x4539c3){const _0x1feabb=_0x318ac4;super(_0x609dff,_0x5c6e3f,_0x144000,_0x491482,_0x122794,_0x1e6ec3,_0x5c8ad0,_0x50db59,_0x4539c3),this[_0x1feabb(0x1d8)]=_0x35a3d0,this['_logService']=_0x5f1800,this[_0x1feabb(0x1a4)]=_0x54a266,this[_0x1feabb(0x23d)]=_0x4539c3,g(this,_0x1feabb(0x125),_0x1feabb(0x287)),g(this,'_resendTimeout',0x0),g(this,_0x1feabb(0x219),0x0),g(this,_0x1feabb(0x34d),void 0x0),g(this,_0x1feabb(0x1b3),void 0x0),_0x3c0fa5&&(this[_0x1feabb(0x34d)]=_0x3c0fa5,this['_sender']=this[_0x1feabb(0x34d)][_0x1feabb(0x126)](({reqId:_0x30827f,timeout:_0x2e6fa6})=>{const _0x49c168=_0x1feabb;this[_0x49c168(0x20a)](_0x30827f,_0x2e6fa6);}));}['appendMutation'](_0xda5571){const _0x238e7a=_0x318ac4;return this[_0x238e7a(0xd8)]['push'](_0xda5571),this;}[_0x318ac4(0x217)](_0x5386e7){const _0x1175a6=_0x318ac4;if(this[_0x1175a6(0x340)](_0x5386e7))return this[_0x1175a6(0x243)](),this[_0x1175a6(0x1d8)][_0x1175a6(0x188)](N,this['unitID'],this[_0x1175a6(0x1cf)],this[_0x1175a6(0x30a)],this[_0x1175a6(0xd8)],null,[_0x5386e7],this[_0x1175a6(0x28b)]);try{let _0x85eb77=this['_transformService'][_0x1175a6(0x15e)]([_0x5386e7],[this['_awaitingChangeset']],!0x1);if((0x0,e['isTransformChangesetsSuccess'])(_0x85eb77)){let {c1Prime:_0x2f5505,c2Prime:_0x225a4f}=_0x85eb77,_0xcc4b87=this['_transformService'][_0x1175a6(0x19a)](_0x2f5505[0x0],this[_0x1175a6(0xd8)]);if((0x0,e[_0x1175a6(0x33d)])(_0xcc4b87)){let {c1Prime:_0x96d66e,m2Prime:_0x507982}=_0xcc4b87;return this[_0x1175a6(0x29a)](_0x96d66e),_0x225a4f[0x0]['baseRev']=this[_0x1175a6(0x1b4)](),this[_0x1175a6(0x243)](),this[_0x1175a6(0x1d8)]['createInstance'](ze,this[_0x1175a6(0x234)],this[_0x1175a6(0x1cf)],_0x225a4f[0x0],_0x507982,this['_handler'],void 0x0);}throw _0xcc4b87[_0x1175a6(0x36b)];}throw _0x85eb77[_0x1175a6(0x36b)];}catch(_0xeaf9a1){return this[_0x1175a6(0x2fa)][_0x1175a6(0x36b)](_0xeaf9a1),this['_onConflict'](!0x1);}}['onRemoteAck'](_0x224d48){const _0x204f5c=_0x318ac4;this['_clearScheduledTask']();let _0x1bb76a=this[_0x204f5c(0x1b4)]();if(_0x224d48[_0x204f5c(0x37b)]<=_0x1bb76a)return this;if(this[_0x204f5c(0x340)](_0x224d48))return this[_0x204f5c(0x1d8)][_0x204f5c(0x188)](N,this[_0x204f5c(0x234)],this['type'],this['_awaitingChangeset'],this[_0x204f5c(0xd8)],_0x224d48[_0x204f5c(0x37b)],[],this[_0x204f5c(0x28b)]);this['_incrementRevisionNumber']();let _0x1993c0=this[_0x204f5c(0x1d8)][_0x204f5c(0x188)](O,this['unitID'],this[_0x204f5c(0x1cf)],this[_0x204f5c(0xd8)],this[_0x204f5c(0x28b)]);return _0x1993c0[_0x204f5c(0x145)](),_0x1993c0[_0x204f5c(0x300)](),_0x1993c0;}[_0x318ac4(0x165)](_0xed0f36){const _0x594383=_0x318ac4;return this[_0x594383(0x223)](!!(_0xed0f36!=null&&_0xed0f36['isPermissionRej']));}[_0x318ac4(0x212)](_0x2c0fce){const _0x48ddbd=_0x318ac4;return this[_0x48ddbd(0x219)]>He?this[_0x48ddbd(0xe1)]():(this[_0x48ddbd(0x34d)]=Ie(this[_0x48ddbd(0x257)],{'timeout':this['_resendTimeout'],'reqId':_0x2c0fce['reqId']}),this[_0x48ddbd(0x1b3)]=this['_resendTimer'][_0x48ddbd(0x126)](({reqId:_0x413c8a,timeout:_0x3414f4})=>{const _0x148e16=_0x48ddbd;this[_0x148e16(0x20a)](_0x413c8a,_0x3414f4);}),this);}[_0x318ac4(0xe1)](){const _0x5f27a3=_0x318ac4;return this[_0x5f27a3(0x243)](),this[_0x5f27a3(0x1d8)]['createInstance'](M,this['unitID'],this[_0x5f27a3(0x1cf)],this[_0x5f27a3(0x30a)],this['_pendingMutations'],this[_0x5f27a3(0x28b)]);}[_0x318ac4(0x23a)](){return this;}['resend'](){const _0x50a16b=_0x318ac4;this[_0x50a16b(0x28b)][_0x50a16b(0x2a2)](this[_0x50a16b(0x30a)]);}[_0x318ac4(0x223)](_0x36e072){const _0x32f456=_0x318ac4;return this[_0x32f456(0x243)](),this[_0x32f456(0x1d8)][_0x32f456(0x188)](j,this[_0x32f456(0x234)],this[_0x32f456(0x1cf)],null,this[_0x32f456(0xd8)],this[_0x32f456(0x28b)],_0x36e072);}['_resendWithTimeout'](_0x4f11ae,_0x232cee){const _0x257a5d=_0x318ac4;var _0x56b241;_0x4f11ae===((_0x56b241=this[_0x257a5d(0x30a)])==null?void 0x0:_0x56b241[_0x257a5d(0xd9)])&&(this[_0x257a5d(0x363)](),this[_0x257a5d(0x257)]=_0x232cee===0x0?0x3e8:Math['min'](_0x232cee*0x2,Ve),this[_0x257a5d(0x219)]+=this[_0x257a5d(0x257)]);}[_0x318ac4(0x243)](){const _0x5ced0b=_0x318ac4;var _0x10bce0;(_0x10bce0=this[_0x5ced0b(0x1b3)])==null||_0x10bce0[_0x5ced0b(0x3f9)](),this[_0x5ced0b(0x257)]=0x0,this[_0x5ced0b(0x219)]=0x0;}};A=ze=y([v(0x6,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x8,t[_0x318ac4(0x185)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,e[_0x318ac4(0x28e)]),v(0xb,t[_0x318ac4(0x29f)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(x))],A);let j=class extends E{constructor(_0x186790,_0x4d5b47,_0x47898a,_0x5536ec,_0x551c7a,_0x5724d2=!0x1,_0xe8789a,_0x598cdd,_0x4d699e,_0x46b767,_0xff5056,_0x4358d8,_0x4173ae){const _0x11321f=_0x318ac4;super(_0x186790,_0x4d5b47,_0x47898a,_0x5536ec,_0x551c7a,_0x598cdd,_0x4d699e,_0x46b767,_0x4173ae),this[_0x11321f(0x237)]=_0x5724d2,this[_0x11321f(0x198)]=_0xe8789a,this[_0x11321f(0x18d)]=_0xff5056,this['_collaborationUIEventService']=_0x4358d8,this[_0x11321f(0x23d)]=_0x4173ae,g(this,_0x11321f(0x125),'conflict'),this['_showConflictNotification'](),this[_0x11321f(0x2ad)](),this[_0x11321f(0x2ca)]();}['appendMutation'](){return this;}['onRemoteChangeset'](){return this;}[_0x318ac4(0x16f)](){return this;}[_0x318ac4(0x165)](){return this;}['onRemoteRetry'](){return this;}['toggleOffline'](){return this;}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x363)](){const _0x4b2b46=_0x318ac4;throw Error(_0x4b2b46(0x236));}['_clearLocalCache'](){const _0x21ee4c=_0x318ac4;var _0x51063d,_0x1fce38,_0x302f7b;(_0x51063d=this[_0x21ee4c(0x1a8)])==null||(_0x1fce38=_0x51063d[_0x21ee4c(0x387)])==null||(_0x1fce38=_0x1fce38['call'](_0x51063d,this[_0x21ee4c(0x234)],_0x21ee4c(0x203)))==null||_0x1fce38[_0x21ee4c(0x3fb)](()=>void 0x0),(_0x302f7b=this[_0x21ee4c(0x1a8)])==null||_0x302f7b[_0x21ee4c(0x11e)](this[_0x21ee4c(0x234)],this['type'],null,[]);}[_0x318ac4(0x312)](){const _0x4911b6=_0x318ac4;this[_0x4911b6(0x237)]?this['_collaborationUIEventService'][_0x4911b6(0x3b5)]({'id':_0x4911b6(0x18a)}):this[_0x4911b6(0x20b)][_0x4911b6(0x3b5)]({'id':_0x4911b6(0x3d7)});}['_disableEditing'](){const _0x5401af=_0x318ac4;this[_0x5401af(0x198)][_0x5401af(0x311)](new r['WorkbookEditablePermission'](this['unitID'])['id'],!0x1);}};j=y([v(0x6,(0x0,t[_0x318ac4(0x394)])(t['IPermissionService'])),v(0x7,t[_0x318ac4(0x185)]),v(0x8,t[_0x318ac4(0x29f)]),v(0x9,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0xa,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0xb,(0x0,t[_0x318ac4(0x394)])(_)),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(x))],j);let M=class extends E{constructor(_0x10e636,_0x172f36,_0x38f6c8,_0x26af57,_0x588497,_0x4941e3,_0x1b1588,_0x50cbac,_0x5c85a1,_0x5dd3d3){const _0xed5378=_0x318ac4;super(_0x10e636,_0x172f36,_0x38f6c8,_0x26af57,_0x588497,_0x50cbac,_0x5c85a1,_0x1b1588,_0x5dd3d3),this[_0xed5378(0x1d8)]=_0x4941e3,g(this,'status',_0xed5378(0x30f));}[_0x318ac4(0x3cd)](_0x162f4f){const _0x148a3e=_0x318ac4;return this[_0x148a3e(0xd8)][_0x148a3e(0x154)](_0x162f4f),this[_0x148a3e(0x300)](),this;}[_0x318ac4(0x217)](_0x293858){const _0x2ad5e2=_0x318ac4;throw Error(_0x2ad5e2(0x2d5));}['onRemoteAck'](){const _0xbc7d14=_0x318ac4;throw Error(_0xbc7d14(0x3af));}[_0x318ac4(0x165)](){const _0x5a914b=_0x318ac4;throw Error(_0x5a914b(0x211));}['onRemoteRetry'](){return this;}[_0x318ac4(0xe1)](){return this;}[_0x318ac4(0x23a)](){const _0xd89672=_0x318ac4;let {_injector:_0x237a2e,_pendingMutations:_0x3fad7f,_awaitingChangeset:_0x4f779c,unitID:_0x6dd61,_handler:_0x20ce71,type:_0x41acfa}=this,_0x20fe97=Ue(_0x237a2e,_0x6dd61,_0x41acfa,_0x4f779c,_0x3fad7f,_0x20ce71);return _0x20fe97 instanceof O?_0x20fe97[_0xd89672(0x145)]():(_0x20fe97 instanceof A||_0x20fe97 instanceof k)&&_0x20fe97['resend'](),_0x20fe97;}[_0x318ac4(0x363)](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};M=y([v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x6,(0x0,t['Inject'])(e['RevisionService'])),v(0x7,t[_0x318ac4(0x185)]),v(0x8,t['IUndoRedoService']),v(0x9,(0x0,t['Optional'])(x))],M);let N=class extends E{constructor(_0x2a805a,_0x27e05f,_0x4f48d7,_0x4068cf,_0x4ca1c8,_0x25d5fc,_0x4539c2,_0x1406d9,_0x1e2035,_0x3472ef,_0x5d55ba,_0x237a16,_0x127fd2,_0x435343){const _0x5ac8c5=_0x318ac4;super(_0x2a805a,_0x27e05f,_0x4f48d7,_0x4068cf,_0x4539c2,_0x5d55ba,_0x237a16,_0x1e2035,_0x435343),this[_0x5ac8c5(0x12c)]=_0x4ca1c8,this[_0x5ac8c5(0x182)]=_0x25d5fc,this[_0x5ac8c5(0x1d8)]=_0x1406d9,this[_0x5ac8c5(0x2fa)]=_0x3472ef,this[_0x5ac8c5(0x1a4)]=_0x127fd2,this['localCacheService']=_0x435343,g(this,_0x5ac8c5(0x125),'fetch_missing');}[_0x318ac4(0x286)](_0xdf603){const _0x508f4d=_0x318ac4;try{if(this[_0x508f4d(0x3f1)](_0xdf603)[_0x508f4d(0x176)])throw Error(_0x508f4d(0x139));if(this[_0x508f4d(0x3f1)]([...this[_0x508f4d(0x182)]][_0x508f4d(0x1f0)]((_0x4c3577,_0x2dce20)=>_0x4c3577[_0x508f4d(0x37b)]-_0x2dce20[_0x508f4d(0x37b)]))[_0x508f4d(0x176)])return this[_0x508f4d(0x182)]=[],this['_updateLocalCache'](),this[_0x508f4d(0x28b)]['onMissingChangesets']({'from':this[_0x508f4d(0x1b4)](),'to':0x0}),this;let _0x27d275=this[_0x508f4d(0x30a)],_0x182a48=this[_0x508f4d(0xd8)],_0xb41333;if(_0x27d275&&_0x182a48[_0x508f4d(0x347)]!==0x0)_0xb41333=this[_0x508f4d(0x1d8)][_0x508f4d(0x188)](A,this[_0x508f4d(0x234)],this['type'],_0x27d275,_0x182a48,this[_0x508f4d(0x28b)],void 0x0);else{if(_0x27d275&&_0x182a48[_0x508f4d(0x347)]===0x0)_0x27d275['baseRev']=this[_0x508f4d(0x1b4)](),_0xb41333=this[_0x508f4d(0x1d8)]['createInstance'](k,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],_0x27d275,this[_0x508f4d(0x28b)]);else{if(_0x182a48[_0x508f4d(0x347)]!==0x0){let _0x505bb4=this[_0x508f4d(0x1d8)]['createInstance'](O,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],_0x182a48,this[_0x508f4d(0x28b)]);_0x505bb4[_0x508f4d(0x145)](),_0xb41333=_0x505bb4;}else _0xb41333=this[_0x508f4d(0x1d8)][_0x508f4d(0x188)](D,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],this[_0x508f4d(0x28b)]);}}return _0xb41333['_updateLocalCache'](),_0xb41333;}catch(_0x1bb1fa){return this[_0x508f4d(0x2fa)][_0x508f4d(0x36b)](_0x508f4d(0x12e),'failed\x20to\x20apply\x20missed\x20changesets!',_0x1bb1fa),this[_0x508f4d(0x1d8)][_0x508f4d(0x188)](j,this[_0x508f4d(0x234)],this[_0x508f4d(0x1cf)],this[_0x508f4d(0x30a)],this[_0x508f4d(0xd8)],this[_0x508f4d(0x28b)],!0x1);}}['_handleRemoteChangesets'](_0x3c3927){const _0x2662a7=_0x318ac4;this[_0x2662a7(0x2f8)]();for(let _0x157fc8=0x0;_0x157fc8<_0x3c3927['length'];_0x157fc8++){let _0x232f98=_0x3c3927[_0x157fc8],_0xd353d1=this[_0x2662a7(0x1b4)]();if(!(_0x232f98[_0x2662a7(0x37b)]<=_0xd353d1)){if(_0x232f98[_0x2662a7(0x37b)]>_0xd353d1+0x1)return{'missingChangesets':!0x0};if(this['_isEchoedAwaitingChangeset'](_0x232f98)){this['_acknowledgeAwaiting']();continue;}this['_transformAndApplyRemoteChangeset'](_0x232f98),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x318ac4(0x359)](_0x45bec8){const _0x36db38=_0x318ac4;let _0x4ade9d=_0x45bec8,_0x23554e=this[_0x36db38(0x30a)];if(_0x23554e){let _0x453875=this[_0x36db38(0x1a4)][_0x36db38(0x15e)]([_0x45bec8],[_0x23554e],!0x1);if(!(0x0,e[_0x36db38(0x380)])(_0x453875))throw _0x453875[_0x36db38(0x36b)];_0x4ade9d=_0x453875['c1Prime'][0x0],_0x23554e=_0x453875[_0x36db38(0x190)][0x0];}let _0x37d663=this[_0x36db38(0xd8)];if(_0x37d663[_0x36db38(0x347)]){let _0x39b1ba=this[_0x36db38(0x1a4)][_0x36db38(0x19a)](_0x4ade9d,_0x37d663);if(!(0x0,e[_0x36db38(0x33d)])(_0x39b1ba))throw _0x39b1ba[_0x36db38(0x36b)];_0x4ade9d=_0x39b1ba[_0x36db38(0x15c)],_0x37d663=_0x39b1ba[_0x36db38(0x1fd)];}this[_0x36db38(0x29a)](_0x4ade9d),_0x23554e&&(_0x23554e[_0x36db38(0x302)]=this[_0x36db38(0x1b4)]()),this[_0x36db38(0x30a)]=_0x23554e,this[_0x36db38(0xd8)]=_0x37d663;}[_0x318ac4(0x2f8)](){const _0x4ad261=_0x318ac4;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x158354=this[_0x4ad261(0x1b4)]();if(this[_0x4ad261(0x12c)]<=_0x158354)throw Error(_0x4ad261(0x3c7)+this[_0x4ad261(0x12c)]+'.');this[_0x4ad261(0x12c)]===_0x158354+0x1&&this[_0x4ad261(0x3a9)]();}[_0x318ac4(0x3a9)](){const _0x2cd490=_0x318ac4;this[_0x2cd490(0x320)](),this[_0x2cd490(0x30a)]=null,this[_0x2cd490(0x12c)]=null;}[_0x318ac4(0x23f)](_0xb3f8f1){const _0x1da631=_0x318ac4;let _0x39c835=this[_0x1da631(0x30a)];return!_0x39c835||!_0x39c835[_0x1da631(0x1a3)]||_0x39c835[_0x1da631(0xd9)]===null||_0x39c835[_0x1da631(0xd9)]===void 0x0?!0x1:_0xb3f8f1[_0x1da631(0x234)]===_0x39c835[_0x1da631(0x234)]&&_0xb3f8f1['sid']===_0x39c835['sid']&&_0xb3f8f1['reqId']===_0x39c835[_0x1da631(0xd9)];}['resend'](){const _0xeda54b=_0x318ac4;throw Error(_0xeda54b(0x3a5));}['appendMutation'](_0x4d91b4){const _0x573e51=_0x318ac4;return this['_pendingMutations'][_0x573e51(0x154)](_0x4d91b4),this;}[_0x318ac4(0x217)](_0x3a350a){const _0x46e235=_0x318ac4;return this[_0x46e235(0x182)][_0x46e235(0x154)](_0x3a350a),this;}[_0x318ac4(0x16f)](_0x41a262){const _0x9795b9=_0x318ac4;if(this[_0x9795b9(0x30a)]){let _0x25b328=this['_getCurrentRevision']();return _0x41a262[_0x9795b9(0x37b)]<=_0x25b328||(_0x25b328+0x1===_0x41a262[_0x9795b9(0x37b)]?(this[_0x9795b9(0x320)](),this[_0x9795b9(0x30a)]=null,this[_0x9795b9(0x12c)]=null):this[_0x9795b9(0x12c)]=_0x41a262['revision']),this;}if(_0x41a262[_0x9795b9(0x37b)]<=this[_0x9795b9(0x1b4)]())return this;throw Error('[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!');}[_0x318ac4(0x165)](_0x451469){const _0x3211e1=_0x318ac4;return this[_0x3211e1(0x223)](!!(_0x451469!=null&&_0x451469[_0x3211e1(0x390)]));}[_0x318ac4(0x212)](){return this;}[_0x318ac4(0xe1)](){const _0x584617=_0x318ac4;return this[_0x584617(0x1d8)][_0x584617(0x188)](M,this[_0x584617(0x234)],this[_0x584617(0x1cf)],this[_0x584617(0x30a)],this['_pendingMutations'],this[_0x584617(0x28b)]);}[_0x318ac4(0x23a)](){return this;}[_0x318ac4(0x223)](_0x2c8d9a){const _0x23a91a=_0x318ac4;return this[_0x23a91a(0x1d8)][_0x23a91a(0x188)](j,this[_0x23a91a(0x234)],this[_0x23a91a(0x1cf)],this[_0x23a91a(0x30a)],this[_0x23a91a(0xd8)],this[_0x23a91a(0x28b)],_0x2c8d9a);}};N=y([v(0x7,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x8,(0x0,t['Inject'])(e[_0x318ac4(0x371)])),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t['IUndoRedoService']),v(0xc,e['ITransformService']),v(0xd,(0x0,t['Optional'])(x))],N);function Ue(_0x41bc27,_0x56ba1e,_0x13a4d3,_0x286e0f,_0x175f20,_0x16f634){const _0x336e9a=_0x318ac4;return _0x286e0f&&_0x175f20[_0x336e9a(0x347)]?_0x41bc27[_0x336e9a(0x188)](A,_0x56ba1e,_0x13a4d3,_0x286e0f,_0x175f20,_0x16f634,void 0x0):_0x286e0f?_0x41bc27[_0x336e9a(0x188)](k,_0x56ba1e,_0x13a4d3,_0x286e0f,_0x16f634):_0x175f20[_0x336e9a(0x347)]?_0x41bc27[_0x336e9a(0x188)](O,_0x56ba1e,_0x13a4d3,_0x175f20,_0x16f634):_0x41bc27[_0x336e9a(0x188)](D,_0x56ba1e,_0x13a4d3,_0x16f634);}let P=class extends t[_0x318ac4(0x269)]{get['state'](){const _0x48cabf=_0x318ac4;return this[_0x48cabf(0x2c0)];}constructor(_0x16f801,_0x224639,_0x207bdc,_0x1f1021,_0x24d42e,_0xc4f856,_0x79cee3,_0x4d4e11,_0x59f2e0,_0x51eb29,_0x1b1cb8,_0x510890,_0x41a0a4,_0x5b43d2){const _0x37e703=_0x318ac4;super(),this[_0x37e703(0x234)]=_0x16f801,this[_0x37e703(0x3db)]=_0x224639,this[_0x37e703(0x3da)]=_0x207bdc,this[_0x37e703(0x1d8)]=_0x1f1021,this['_compressMutationService']=_0x24d42e,this[_0x37e703(0x18d)]=_0xc4f856,this[_0x37e703(0x169)]=_0x79cee3,this[_0x37e703(0x1fb)]=_0x4d4e11,this[_0x37e703(0x1b9)]=_0x59f2e0,this[_0x37e703(0x2fa)]=_0x51eb29,this['_commandService']=_0x1b1cb8,this[_0x37e703(0x198)]=_0x510890,this[_0x37e703(0x14f)]=_0x41a0a4,this['_localCacheService']=_0x5b43d2,g(this,'_state$',new i[(_0x37e703(0x193))](null)),g(this,'state$',this[_0x37e703(0x2e7)][_0x37e703(0xe7)]()),g(this,_0x37e703(0x2c0),void 0x0),g(this,_0x37e703(0x1dc),!0x1),g(this,'_changesetSessionId',''),g(this,'_changesetReqId',0x0),g(this,_0x37e703(0x233),this[_0x37e703(0x351)][_0x37e703(0x304)]((0x0,i['map'])(_0xfac079=>_0xfac079?_0xfac079[_0x37e703(0x125)]:'offline'),(0x0,i[_0x37e703(0x23b)])({'bufferSize':0x1,'refCount':!0x0}))),g(this,_0x37e703(0x241),!0x1),g(this,_0x37e703(0x183),[]);}async[_0x318ac4(0x2e5)](){const _0x2e425c=_0x318ac4;if(this[_0x2e425c(0x360)])throw Error(_0x2e425c(0x2f1));await this['_init']();}['pauseCollaboration'](){const _0x462a80=_0x318ac4;return this[_0x462a80(0x1dc)]=!0x0,(0x0,t['toDisposable'])(()=>{const _0x3da5d5=_0x462a80;this['_collaborationPaused']=!0x1,this[_0x3da5d5(0x128)]();});}[_0x318ac4(0x1e8)](_0x4c8e7c){const _0x4d2869=_0x318ac4;this[_0x4d2869(0x3d8)](_0x4c8e7c);}[_0x318ac4(0x146)](_0x34f08f){const _0x4b0c58=_0x318ac4;this[_0x4b0c58(0x2c0)]=_0x34f08f,this[_0x4b0c58(0x2e7)][_0x4b0c58(0x322)](_0x34f08f);}async['_init'](){const _0x22c82c=_0x318ac4;if(this[_0x22c82c(0x146)](await this[_0x22c82c(0x315)]()),this['_singleActiveUnitService']){var _0xc467d7;(_0xc467d7=this[_0x22c82c(0x14f)])==null||_0xc467d7[_0x22c82c(0x244)](this[_0x22c82c(0x234)]),this['disposeWithMe'](this[_0x22c82c(0x14f)][_0x22c82c(0x3b1)](this['unitID'])[_0x22c82c(0x126)](_0x12c8b5=>{const _0x514694=_0x22c82c;this[_0x514694(0x2fa)][_0x514694(0x195)](_0x514694(0x1f9),_0x514694(0x1e7),_0x12c8b5),_0x12c8b5===0x1?(this[_0x514694(0x1fb)][_0x514694(0x3b5)]({'id':_0x514694(0x153)}),this[_0x514694(0x198)][_0x514694(0x311)](new r[(_0x514694(0x2d3))](this[_0x514694(0x234)])['id'],!0x1),this['_permissionService'][_0x514694(0xea)](!0x1)):(this[_0x514694(0x198)][_0x514694(0x311)](new r[(_0x514694(0x2d3))](this[_0x514694(0x234)])['id'],!0x0),this[_0x514694(0x198)][_0x514694(0xea)](!0x0));}));}let _0x580748=!0x1;return this[_0x22c82c(0x309)](this['session'][_0x22c82c(0x122)][_0x22c82c(0x126)](_0x580320=>{_0x580320===0x3?this['_toggleOnline'](_0x580748):_0x580320===0x2&&(_0x580748=!0x0,this['_toggleOffline']());})),this[_0x22c82c(0x309)](this[_0x22c82c(0x3db)][_0x22c82c(0x21b)][_0x22c82c(0x126)](_0x2c8c26=>{const _0x246c22=_0x22c82c;try{switch(_0x2c8c26[_0x246c22(0x1da)]){case e[_0x246c22(0x364)]['NEW_CHANGESETS']:this[_0x246c22(0x388)]((0x0,e[_0x246c22(0x27d)])(_0x2c8c26[_0x246c22(0x1ec)]));break;case e[_0x246c22(0x364)][_0x246c22(0x235)]:this['_onRemoteACK'](_0x2c8c26[_0x246c22(0x1ec)]);break;case e[_0x246c22(0x364)]['CHANGESET_REJ']:this['_onRemoteRejected']();break;case e['CollaborationEvent'][_0x246c22(0x197)]:this[_0x246c22(0x1a7)](_0x2c8c26[_0x246c22(0x1ec)]);break;case e[_0x246c22(0x364)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x246c22(0x367)](_0x2c8c26[_0x246c22(0x1ec)]['changesets']['map'](_0x4468c2=>(0x0,e['parseProtocolChangeset'])(_0x4468c2)));break;case e[_0x246c22(0x364)]['PERMISSION_REJ']:this['_onRemoteRejected']({'isPermissionRej':!0x0});break;case e[_0x246c22(0x364)]['UNISCRIPT_RUN']:break;}}catch(_0x25c708){throw console['error'](_0x246c22(0x229),_0x25c708),_0x25c708;}})),this[_0x22c82c(0x2c0)];}[_0x318ac4(0x310)](){const _0x458e5d=_0x318ac4;this[_0x458e5d(0x241)]=!0x1;}[_0x318ac4(0x15f)](){const _0x29ef1a=_0x318ac4;if(this[_0x29ef1a(0x241)])throw Error(_0x29ef1a(0x339));this[_0x29ef1a(0x241)]=!0x0;}[_0x318ac4(0x3d8)](_0x2dd505){const _0x8fd89=_0x318ac4;this[_0x8fd89(0x15f)](),this[_0x8fd89(0x146)](this[_0x8fd89(0x2c0)][_0x8fd89(0x3cd)](_0x2dd505)),this['_unlockTransition']();}[_0x318ac4(0x388)](_0x39a09a){const _0x571a44=_0x318ac4;if(!(_0x39a09a['revision']<=this[_0x571a44(0x169)][_0x571a44(0x398)](this[_0x571a44(0x234)]))){if(this['_collaborationPaused']){this[_0x571a44(0x183)][_0x571a44(0x154)](_0x39a09a);return;}this['_applyRemoteChangeset'](_0x39a09a);}}['_exhaustRemoteChangesetQueue'](){const _0x4733c8=_0x318ac4;this['_remoteChangesetQueue']['forEach'](_0x265f1e=>this[_0x4733c8(0x21f)](_0x265f1e)),this[_0x4733c8(0x183)]=[];}['_applyRemoteChangeset'](_0x43afee){const _0x31302f=_0x318ac4;let _0x12860b=this[_0x31302f(0x3ab)]['interceptor']['fetchThroughInterceptors'](this[_0x31302f(0x3ab)]['interceptor']['getInterceptPoints']()[_0x31302f(0x346)])(_0x43afee['mutations'],null)||_0x43afee[_0x31302f(0x11a)],_0x12497b={..._0x43afee,'mutations':_0x12860b};this['_lockTransition'](),this[_0x31302f(0x146)](this[_0x31302f(0x2c0)][_0x31302f(0x217)](_0x12497b)),this[_0x31302f(0x310)]();}[_0x318ac4(0x35c)](_0x63ed24){const _0x115f7d=_0x318ac4;this[_0x115f7d(0x15f)](),this[_0x115f7d(0x146)](this[_0x115f7d(0x2c0)][_0x115f7d(0x16f)](_0x63ed24)),this['_unlockTransition']();}['_onRemoteRejected'](_0x57b27f){const _0xa9b7a2=_0x318ac4;this['_lockTransition'](),this[_0xa9b7a2(0x146)](this[_0xa9b7a2(0x2c0)][_0xa9b7a2(0x165)](_0x57b27f)),this[_0xa9b7a2(0x310)]();}[_0x318ac4(0x1a7)](_0x34398d){const _0x3ac6de=_0x318ac4;this['_lockTransition'](),this[_0x3ac6de(0x146)](this['_state'][_0x3ac6de(0x212)](_0x34398d)),this[_0x3ac6de(0x310)]();}[_0x318ac4(0x367)](_0x2930e0){const _0x51f198=_0x318ac4;if(!(this[_0x51f198(0x2c0)]instanceof N))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x16baa1=_0x2930e0['map'](_0x486eff=>{const _0x4d4cb9=_0x51f198;let _0x290e0f=this[_0x4d4cb9(0x3ab)]['interceptor']['fetchThroughInterceptors'](this[_0x4d4cb9(0x3ab)]['interceptor'][_0x4d4cb9(0x2cb)]()[_0x4d4cb9(0x346)])(_0x486eff[_0x4d4cb9(0x11a)],null)||_0x486eff[_0x4d4cb9(0x11a)];return{..._0x486eff,'mutations':_0x290e0f};});this[_0x51f198(0x15f)](),this[_0x51f198(0x146)](this[_0x51f198(0x2c0)][_0x51f198(0x286)](_0x16baa1)),this[_0x51f198(0x310)]();}[_0x318ac4(0x3d1)](){const _0x284029=_0x318ac4;this[_0x284029(0x15f)](),this[_0x284029(0x146)](this['_state'][_0x284029(0xe1)]()),this[_0x284029(0x310)]();}['_toggleOnline'](_0x40b4a5=!0x1){const _0x3a6be0=_0x318ac4;this[_0x3a6be0(0x15f)](),this[_0x3a6be0(0x146)](this[_0x3a6be0(0x2c0)][_0x3a6be0(0x23a)]()),this[_0x3a6be0(0x310)]();let _0x510588=this[_0x3a6be0(0x2c0)];_0x40b4a5&&_0x510588 instanceof D&&(this[_0x3a6be0(0x15f)](),this[_0x3a6be0(0x146)](_0x510588[_0x3a6be0(0x34f)]()),this[_0x3a6be0(0x310)]());}async['_createInitialState'](){return new Promise(_0x4e53c4=>{const _0x34548c=_0x2ea1;this['session'][_0x34548c(0x122)][_0x34548c(0x304)]((0x0,i['take'])(0x1))[_0x34548c(0x126)](async _0x17dee5=>{const _0x34e7af=_0x34548c;_0x4e53c4(await this[_0x34e7af(0x2c5)](_0x17dee5===0x3));});});}['_createHandler'](){const _0x3e544a=_0x318ac4;let _0xb92df4=this[_0x3e544a(0x234)];return{'onStateChange':(_0xcdeca6,_0x3c4d4b)=>{const _0x4b7c69=_0x3e544a;if(_0xcdeca6!==this[_0x4b7c69(0x2c0)])throw Error(_0x4b7c69(0x21a)+_0xcdeca6['status']+'\x0aAfter:\x20'+_0x3c4d4b[_0x4b7c69(0x125)]+'\x0aCurrent:\x20'+this[_0x4b7c69(0x2c0)][_0x4b7c69(0x125)]);this[_0x4b7c69(0x146)](_0x3c4d4b);},'onSendChangeset':_0x222fb9=>{const _0x9526d1=_0x3e544a;_0x222fb9[_0x9526d1(0x1a3)]||(_0x222fb9[_0x9526d1(0x1a3)]=this[_0x9526d1(0x178)],_0x222fb9['reqId']=++this['_changesetReqId']);let _0x3256f4={'eventID':e[_0x9526d1(0x364)][_0x9526d1(0x18f)],'data':{'unitID':_0x222fb9[_0x9526d1(0x234)],'unitType':this['_type'],'changeset':_0x222fb9,'memberID':this[_0x9526d1(0x3db)]['getMemberID']()}};this[_0x9526d1(0x3db)][_0x9526d1(0x2a3)](_0x3256f4,this['unitID']);},'onMissingChangesets':({from:_0x4f592d,to:_0x43702d})=>{const _0x28f9ee=_0x3e544a;this[_0x28f9ee(0x2fa)]['debug'](_0x28f9ee(0x1f9),_0x28f9ee(0x109)+_0x4f592d+_0x28f9ee(0x308)+_0x43702d);let _0x5b8c18={'eventID':e[_0x28f9ee(0x364)][_0x28f9ee(0xf6)],'data':{'unitID':_0xb92df4,'unitType':this['_type'],'from':_0x4f592d,'to':_0x43702d}};this[_0x28f9ee(0x3db)]['send'](_0x5b8c18,this['unitID']);}};}async[_0x318ac4(0x2c5)](_0x5b829e){const _0x5768d3=_0x318ac4;var _0x51cd3e;let _0x49f7ba=await((_0x51cd3e=this[_0x5768d3(0x1a8)])==null?void 0x0:_0x51cd3e[_0x5768d3(0x10d)](this['unitID'])),_0x9fc9f1=(_0x49f7ba==null?void 0x0:_0x49f7ba[_0x5768d3(0x11a)])??[],_0x322485=(_0x49f7ba==null?void 0x0:_0x49f7ba[_0x5768d3(0x181)])??null,_0x462be4=!!(_0x322485!=null&&_0x322485[_0x5768d3(0x1a3)])&&!!(_0x322485!=null&&_0x322485[_0x5768d3(0xd9)]);this['_changesetSessionId']=_0x462be4?_0x322485['sid']:(0x0,e[_0x5768d3(0x13f)])(),this[_0x5768d3(0x1a9)]=_0x462be4?_0x322485['reqId']:0x0;let _0x1cba70=this[_0x5768d3(0x234)];try{this['_replayCachedMutations'](_0x322485,_0x9fc9f1);}catch(_0x12e0fb){this[_0x5768d3(0x2fa)][_0x5768d3(0x36b)](_0x12e0fb);}let _0x589515=this[_0x5768d3(0x1d9)]();if(_0x5b829e){let _0x294785=Ue(this[_0x5768d3(0x1d8)],_0x1cba70,this[_0x5768d3(0x3da)],_0x322485,_0x9fc9f1,_0x589515);return _0x294785 instanceof O?_0x294785['_schedule']():(_0x294785 instanceof A||_0x294785 instanceof k)&&_0x294785['resend'](),_0x294785;}return this[_0x5768d3(0x1d8)][_0x5768d3(0x188)](M,_0x1cba70,this[_0x5768d3(0x3da)],_0x322485,_0x9fc9f1,_0x589515);}[_0x318ac4(0x23c)](_0x23c01b,_0x503cc2){const _0x1716c5=_0x318ac4;var _0x287f83,_0x5bf2d0;let _0x30aa6f=this[_0x1716c5(0x3ab)][_0x1716c5(0xff)][_0x1716c5(0x16b)](this[_0x1716c5(0x3ab)][_0x1716c5(0xff)][_0x1716c5(0x2cb)]()[_0x1716c5(0x346)]);(_0x287f83=_0x30aa6f((_0x23c01b==null?void 0x0:_0x23c01b['mutations'])||[],null))==null||_0x287f83[_0x1716c5(0x2cc)](_0x5906ef=>this[_0x1716c5(0x152)]['executeCommand'](_0x5906ef['id'],_0x5906ef[_0x1716c5(0x20c)])),(_0x5bf2d0=_0x30aa6f(_0x503cc2||[],null))==null||_0x5bf2d0[_0x1716c5(0x2cc)](_0x4ba24b=>this[_0x1716c5(0x152)][_0x1716c5(0x373)](_0x4ba24b['id'],_0x4ba24b[_0x1716c5(0x20c)]));}};P=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t['Inject'])(t['LocaleService'])),v(0x6,(0x0,t['Inject'])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],P);let F=class extends P{constructor(_0x859c39,_0x4ee579,_0x196c7d,_0x4db9b4,_0x5b671b,_0x40ef40,_0x45a113,_0x559092,_0x496e48,_0x4dbefb,_0xf75859,_0x1d7f76,_0x46d956,_0x20a896,_0x811e27){const _0x25682f=_0x318ac4;super(_0x859c39,_0x196c7d,_0x4ee579,_0x4db9b4,_0x5b671b,_0x40ef40,_0x45a113,_0x559092,_0x496e48,_0x4dbefb,_0xf75859,_0x1d7f76,_0x20a896,_0x811e27),this[_0x25682f(0x234)]=_0x859c39,this[_0x25682f(0x1cf)]=_0x4ee579,this['_docStateChangeManagerService']=_0x46d956,g(this,_0x25682f(0x10f),null);}[_0x318ac4(0xf8)](_0x666387){const _0x3bccf2=_0x318ac4;this[_0x3bccf2(0x10f)]=_0x666387;}[_0x318ac4(0x171)](){const _0x5108d9=_0x318ac4;this[_0x5108d9(0x10f)]=null,super[_0x5108d9(0x171)]();}[_0x318ac4(0x1d9)](){const _0x35cef9=_0x318ac4;let _0x9d6ea3=super['_createHandler']();return _0x9d6ea3['onTransformIME']=_0x53b20a=>{const _0x211bc9=_0x2ea1;var _0x4b687d,_0x3043c6;return(_0x4b687d=this[_0x211bc9(0x10f)])==null||(_0x3043c6=_0x4b687d['onTransformIME'])==null?void 0x0:_0x3043c6[_0x211bc9(0x19d)](_0x4b687d,_0x53b20a);},_0x9d6ea3[_0x35cef9(0x227)]=_0x5ee5e0=>{const _0xce050c=_0x35cef9;var _0x330a0f,_0x2887a3;return(_0x330a0f=this[_0xce050c(0x10f)])==null||(_0x2887a3=_0x330a0f['onTransformState'])==null?void 0x0:_0x2887a3[_0xce050c(0x19d)](_0x330a0f,_0x5ee5e0);},_0x9d6ea3[_0x35cef9(0x22c)]=_0x80e37c=>{const _0x191fbe=_0x35cef9;var _0x2f1a82,_0x56284c;return(_0x2f1a82=this['_handlerCallback'])==null||(_0x56284c=_0x2f1a82[_0x191fbe(0x22c)])==null?void 0x0:_0x56284c[_0x191fbe(0x19d)](_0x2f1a82,_0x80e37c);},_0x9d6ea3['onSyncEditingCollabCursor']=_0x47e3be=>{const _0x3fb040=_0x35cef9;var _0x362ef,_0x12d941;return(_0x362ef=this[_0x3fb040(0x10f)])==null||(_0x12d941=_0x362ef[_0x3fb040(0x1d2)])==null?void 0x0:_0x12d941[_0x3fb040(0x19d)](_0x362ef,_0x47e3be);},_0x9d6ea3[_0x35cef9(0x148)]=_0x5d6968=>{var _0x53fb5d,_0x31ab2a;return((_0x53fb5d=this['_handlerCallback'])==null||(_0x31ab2a=_0x53fb5d['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x31ab2a['call'](_0x53fb5d,_0x5d6968))??_0x5d6968;},_0x9d6ea3[_0x35cef9(0xda)]=_0x3112a0=>{const _0x5a2bc5=_0x35cef9;var _0x5985fe,_0x35141e;return((_0x5985fe=this[_0x5a2bc5(0x10f)])==null||(_0x35141e=_0x5985fe[_0x5a2bc5(0xda)])==null?void 0x0:_0x35141e[_0x5a2bc5(0x19d)](_0x5985fe,_0x3112a0))??_0x3112a0;},_0x9d6ea3;}async['_init'](){const _0x36f284=_0x318ac4;let _0xf75175=await super[_0x36f284(0xdb)]();return this[_0x36f284(0x309)](this['_docStateChangeManagerService'][_0x36f284(0x30e)]['subscribe'](_0x3b7b01=>{const _0x2c2e51=_0x36f284;if(_0x3b7b01==null||_0x3b7b01['unitId']!==this['unitID'])return;let {commandId:_0x18dc33,redoState:_0x1e1afa,unitId:_0x1c7a59}=_0x3b7b01,_0x3edd4c={'id':_0x18dc33,'type':t['CommandType']['MUTATION'],'params':{'unitId':_0x1c7a59,'actions':_0x1e1afa[_0x2c2e51(0x140)],'textRanges':null}};this[_0x2c2e51(0x3d8)](_0x3edd4c);})),this[_0x36f284(0x309)](this[_0x36f284(0x152)][_0x36f284(0xde)]((_0x4c8767,_0x3096d7)=>{const _0x23b21e=_0x36f284;if(_0x4c8767[_0x23b21e(0x1cf)]!==t[_0x23b21e(0x247)]['MUTATION']||_0x3096d7!=null&&_0x3096d7[_0x23b21e(0x179)]||_0x3096d7!=null&&_0x3096d7[_0x23b21e(0xec)]||_0x4c8767['id']===n[_0x23b21e(0x2aa)]['id'])return;let _0x1fa3a0=_0x4c8767['params'];if((_0x1fa3a0==null?void 0x0:_0x1fa3a0[_0x23b21e(0x19b)])!==this[_0x23b21e(0x234)])return;let _0x2794c5=_0x4c8767,_0x44f408=this[_0x23b21e(0x3ab)]['interceptor']['fetchThroughInterceptors'](this[_0x23b21e(0x3ab)]['interceptor'][_0x23b21e(0x2cb)]()[_0x23b21e(0x22b)])([_0x2794c5],this['_univerInstanceService'])||[_0x2794c5];this['_onLocalMutation'](_0x44f408[0x0]);})),_0xf75175;}};F=y([v(0x3,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e['CompressMutationService'])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t['Inject'])(n[_0x318ac4(0x17e)])),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x318ac4(0x2b2)])(x))],F);let I=class extends P{constructor(_0x3f4db0,_0x216c07,_0x2862b4,_0x3ce3e4,_0x1dcb61,_0x2feb96,_0x4d5587,_0x9a49f8,_0x1619ae,_0x2b3e69,_0x13ac02,_0x586570,_0x3391e6,_0x25392e){const _0x3d51da=_0x318ac4;super(_0x3f4db0,_0x2862b4,_0x216c07,_0x3ce3e4,_0x1dcb61,_0x2feb96,_0x4d5587,_0x9a49f8,_0x1619ae,_0x2b3e69,_0x13ac02,_0x586570,_0x3391e6,_0x25392e),this['unitID']=_0x3f4db0,this[_0x3d51da(0x1cf)]=_0x216c07;}async[_0x318ac4(0xdb)](){const _0x1bcf6a=_0x318ac4;let _0x536e1b=await super[_0x1bcf6a(0xdb)]();return this[_0x1bcf6a(0x309)](this[_0x1bcf6a(0x152)][_0x1bcf6a(0xde)]((_0x46342f,_0x1e090a)=>{const _0x326b10=_0x1bcf6a;if(_0x46342f[_0x326b10(0x1cf)]!==t[_0x326b10(0x247)][_0x326b10(0x301)]||_0x1e090a!=null&&_0x1e090a['fromCollab']||_0x1e090a!=null&&_0x1e090a[_0x326b10(0xec)])return;let _0x190505=_0x46342f[_0x326b10(0x20c)];if((_0x190505==null?void 0x0:_0x190505[_0x326b10(0x19b)])!==this[_0x326b10(0x234)])return;let _0x4895b0=_0x46342f,_0x38a18a=this['_compressMutationService'][_0x326b10(0xff)][_0x326b10(0x16b)](this[_0x326b10(0x3ab)][_0x326b10(0xff)][_0x326b10(0x2cb)]()[_0x326b10(0x22b)])([_0x4895b0],this['_univerInstanceService'])||[_0x4895b0];this[_0x326b10(0x3d8)](_0x38a18a[0x0]);})),_0x536e1b;}};I=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t['ILogService']),v(0xa,t['ICommandService']),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],I);let L=class extends P{constructor(_0x203890,_0x4f5984,_0x1014f3,_0x8784de,_0x147c4a,_0x2a392d,_0x15d287,_0x5885b5,_0x2d16d2,_0x137764,_0x2520ee,_0x536158,_0x29b76b,_0x576a23,_0x2a3a33){const _0x231496=_0x318ac4;super(_0x203890,_0x1014f3,_0x4f5984,_0x8784de,_0x147c4a,_0x2a392d,_0x15d287,_0x2d16d2,_0x137764,_0x2520ee,_0x536158,_0x29b76b,_0x576a23,_0x2a3a33),this[_0x231496(0x234)]=_0x203890,this[_0x231496(0x1cf)]=_0x4f5984,this[_0x231496(0x358)]=_0x5885b5;}[_0x318ac4(0x1d9)](){const _0x143158=_0x318ac4;let _0x47abeb=super[_0x143158(0x1d9)]();return _0x47abeb[_0x143158(0x22c)]=_0x400bbf=>this[_0x143158(0x358)]['transformSelections'](_0x400bbf),_0x47abeb;}async[_0x318ac4(0xdb)](){const _0x57b718=_0x318ac4;let _0x4e27f5=await super['_init']();return this[_0x57b718(0x309)](this['_commandService'][_0x57b718(0xde)]((_0x5208ae,_0x58cbc9)=>{const _0x48f241=_0x57b718;if(_0x5208ae[_0x48f241(0x1cf)]!==t[_0x48f241(0x247)][_0x48f241(0x301)]||_0x58cbc9!=null&&_0x58cbc9[_0x48f241(0x179)]||_0x58cbc9!=null&&_0x58cbc9[_0x48f241(0xec)])return;let _0x39c462=_0x5208ae[_0x48f241(0x20c)];if((_0x39c462==null?void 0x0:_0x39c462[_0x48f241(0x19b)])!==this[_0x48f241(0x234)])return;let _0x49ea23=_0x5208ae,_0x1aaab5=this['_compressMutationService'][_0x48f241(0xff)][_0x48f241(0x16b)](this[_0x48f241(0x3ab)]['interceptor'][_0x48f241(0x2cb)]()[_0x48f241(0x22b)])([_0x49ea23],this[_0x48f241(0x1b9)])||[_0x49ea23];this[_0x48f241(0x3d8)](_0x1aaab5[0x0]);})),_0x4e27f5;}};L=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t[_0x318ac4(0x394)])(S)),v(0x8,(0x0,t[_0x318ac4(0x394)])(_)),v(0x9,t['IUniverInstanceService']),v(0xa,t[_0x318ac4(0x28c)]),v(0xb,t[_0x318ac4(0x185)]),v(0xc,t[_0x318ac4(0x191)]),v(0xd,(0x0,t['Optional'])(C)),v(0xe,(0x0,t[_0x318ac4(0x2b2)])(x))],L);let R=class extends P{constructor(_0x154b66,_0x1a0e47,_0x154930,_0x55f825,_0x4edb86,_0x538d52,_0x4301be,_0xdbde6e,_0x3e1457,_0x477228,_0x56a79e,_0x31d25b,_0x183914,_0x4be248){const _0x272c18=_0x318ac4;super(_0x154b66,_0x154930,_0x1a0e47,_0x55f825,_0x4edb86,_0x538d52,_0x4301be,_0xdbde6e,_0x3e1457,_0x477228,_0x56a79e,_0x31d25b,_0x183914,_0x4be248),this[_0x272c18(0x234)]=_0x154b66,this['type']=_0x1a0e47;}async[_0x318ac4(0xdb)](){const _0x28d668=_0x318ac4;let _0x3e1171=await super[_0x28d668(0xdb)]();return this[_0x28d668(0x309)](this['_commandService'][_0x28d668(0xde)]((_0x4d1096,_0x560c8d)=>{const _0x153857=_0x28d668;if(_0x4d1096[_0x153857(0x1cf)]!==t['CommandType'][_0x153857(0x301)]||_0x560c8d!=null&&_0x560c8d[_0x153857(0x179)]||_0x560c8d!=null&&_0x560c8d[_0x153857(0xec)])return;let _0x4bd935=_0x4d1096['params'];if((_0x4bd935==null?void 0x0:_0x4bd935[_0x153857(0x19b)])!==this['unitID'])return;let _0x8446ba=_0x4d1096,_0x247633=this[_0x153857(0x3ab)][_0x153857(0xff)][_0x153857(0x16b)](this[_0x153857(0x3ab)][_0x153857(0xff)]['getInterceptPoints']()[_0x153857(0x22b)])([_0x8446ba],this[_0x153857(0x1b9)])||[_0x8446ba];this[_0x153857(0x3d8)](_0x247633[0x0]);})),_0x3e1171;}};function _0x529c(){const _0x57c647=['PENDING','EnsureSlideMasterPageMutation','SheetTransformSelectionsService','RevisionService','unitInfo$','executeCommand','change$','Plugin','session.room-not-exists','updateCollaborator','_config','CombCmd','commentUpdate$','revision','_onRecvEvent','tables','Injector','_startTelemetryCollaborationNewChangeset','isTransformChangesetsSuccess','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','_status$','collaboration-client.local-cache-service','@univerjs-pro/collaboration-client','closeSession','CollaborationSessionService','backupOfflineData','_onRemoteChangeset','headers','_clearRedo','ImageUploadStatusType','PERMISSION_REJ','HEARTBEAT_INTERVAL_KEY','CmdRspCode','_replaceFileID','isPermissionRej','shouldCloseConn','InsertSheetMutation','_onOffline','Inject','_transformIMECache','/role','isTransformMutationsWithChangesetFailure','getCurrentRevOfUnit','_getAPIPrefixPath','AwaitingState','&source=','CLOSE_ROOM','_transformSelections','loadPdf','getConfig','_memberService','downloadEndpointUrl','CollaborationImageIoService','3090336hGOrtF','createUniverCollaborationAdapter','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','reject','SlideCollaborationEntity','uniscriptRunEvent','_acknowledgeAwaiting','requestParams','_compressMutationService','randomBytes','session.room-full','textRanges','[OfflineState]:\x20received\x20acknowledgement.','_startCollaboration','getUnitStatus$','DisposableCollection','_sendingTimer','url','emitEvent','_snapshotServerService','saveAttachment','_createSession','HEARTBEAT_TIMEOUT_KEY','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','_transformRemoteChangesetByStateCache','subUnitId','upload','_createSocket','loadSlide','add','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','ThresholdInterceptorFactory','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','get','SheetCollaborationEntity','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','localeService','DRAWING_IMAGE_ALLOW_IMAGE_LIST','symbol','onCommentUpdate','_commentUpdate$','appendMutation','CollaborationAttachmentIoService','/-/object/-/batch_allowed','retryCount','_toggleOffline','getCurrentUser','collaborators','session.room-cnt-exceeds','socket$','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','CONFLICT','_onLocalMutation','values','_type','session','encode','SheetsSelectionsService','mergeOverrideWithDependencies','_commentService','SOCKET_FAILED','getCollabEntity','has','_socketMessageSubscription','packageName','roomInfos','/collaborator','registerDependencies','&to=','_configService','RETRY_CONNECTING_MAX_COUNT','COLLABORATION_ENDPOINT_INVALID','joinRsp','_fetchMissChangesets','every','getCfgEnableObjInherit','_clearRetryConnectingTimer','_handleRemoteChangesets','_roomCreated$','getFocusedUnit','JOIN_ROOM_FAILED','maxSize','disableLocalCache','_onCombEvent','MSG_FOR_ERROR','unsubscribe','OTHER_CLIENTS_EDITING','catch','_initMergeInterceptor','_getSocketChannel','getUnitId','JOIN_ROOM_FULL','number','_pendingMutations','reqId','onTransformRemoteChangesetByStateCache','_init','NEW_CHANGESETS','apply','onMutationExecutedForCollab','_shouldReportTelemetry','entries','toggleOffline','withCredentials','UUID','merge','changesets','UniverNetworkPlugin','asObservable','_onConnectionFailed','utf8ToBytes','setShowComponents','ONLINE','onlyLocal','hostname','method','_waitCount','CommentService','objects','DocCollaborationEntity','FileSource','ERROR_EXCEED_SIZE','_substituteUndoStack','FETCH_MISSING','confirm','addHandlerCallback','unit-cache-','includes','/universer-api/authz','__Key__','getValue','createSocket','interceptor','socket\x20close','/universer-api/snapshot/','charCodeAt','updatePermissionObjEvent','from','_transformRemoteChangesetByIMECache','getWorkbookSelections','loadDoc','attachment','fetching\x20missing\x20changesets\x20from\x20','?size=','objectID','[SyncedState]:\x20received\x20rejection.','loadOfflineData','OFFLINE','_handlerCallback','/universer-api/comb','_onUserJoin','USERS_ENTER','{fileID}','sendHeartbeatTimer','now','FetchingMissState','close$','collabWebSocketUrl','file','mutations','registerHTTPInterceptor','removeMember','collaboration-client.config','updateOfflineData','_joinRoom','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','concatBytes','sessionStatus$','set','getUploadOptions','status','subscribe','getDrawingImageAllowSize','_exhaustRemoteChangesetQueue','complete','initWorkbookPermissionChange','_initDependencies','_acknowledgedAwaitingRevision','startTime','[FetchMissState]','transformSelections','base-ui.attachment-io.service','_cfgEnableObjInherit','getUnitType','collaboration_new_changeset','deleteCollaborator','toRemote','function','getUnitOnRev','_getConfig','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','_HTTPService','constructor','localUnitId','_httpService','OPTIONAL','uuidv4','actions','focused$','AWAITING_WITH_PENDING','getSheetId','_substituteRedoStack','_schedule','_updateState','_decreaseWaiting','onTransformRemoteChangesetByIMECache','/new_changes','serializeCombRequest','loadSheet','save\x20fail\x20reason\x20is\x20','replace','size','_singleActiveUnitService','BASE64','retryConnectingInterval','_commandService','OTHER_CLIENT_EDITING','push','loginUrlKey','text-x','_sessionChannels','572222mMhQhP','getLatestCsReqIdBySid','liveShareNewHost','_members$','c1Prime','CompressMutationService','transformChangesets','_lockTransition','SetSelectionsOperation','take','PSEUDO_FETCH_MISSING_RESULT','FAIL','Subject','onRemoteRej','/object','MentionType','max','_revisionService','dispose$','fetchThroughInterceptors','append','src','LOCAL_CACHE_INTERVAL','onRemoteAck','_onMessage','dispose','endpointKey','/universer-api/snapshot','_listenToNetworkCondition','body','missingChangesets','UNIVER_BOARD','_changesetSessionId','fromCollab','permissionRejEvent','ICollaborationSocketService','AuthzIoHttpService','origin','DocStateChangeManagerService','findIndex','update','awaitingChangeset','_queuedRemoteChangesets','_remoteChangesetQueue','isInternalEditorID','ICommandService','2150KfUTDW','_upload','createInstance','_throwTelemetryCollaborationNewChangeset','PERMISSION_DENIED','/rev/','Failed\x20to\x20update\x20permission\x20point','_localeService','_clearHeartbeatTimer','SUBMIT_CHANGESET','c2Prime','IPermissionService','collabSubmitChangesetUrl','BehaviorSubject','some','debug','LIVESHARE_REQUEST_HOST','CHANGESET_SHOULD_RETRY','_permissionService','authzUrl','transformMutationsWithChangeset','unitId','Univer','call','503696kxJLSN','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','PendingState','_tryReconnect','BaseCollaborationEntity','sid','_transformService','_getUndoStack','_resolveSessionIdentity','_onRemoteRetry','_localCacheService','_changesetReqId','_transformStateCache','Rectangle','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','code','endpoint','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','getDeserializedSheetBlock','_getLoginPath','LOCAL_CACHE_INTERVAL_KEY','_sender','_getCurrentRevision','NO_OTHER_CLIENTS_EDITING','_registerDependencies','IConfigService','find','_univerInstanceService','UniverLicensePlugin','MentionIoHttpService','UNIVER_SLIDE','originalMeta','submit\x20changeset\x20error!','objectType','RemoveSlidePageMutation','CollaborationUIEventId','infoRsp','subject','BoardCollaborationEntity','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','changeset','saveSheetBlock','_adapter','/resources','[PendingState]:\x20unhandled\x20univer\x20type:\x20','ErrorCode','JOIN_ROOM_PERMISSION_DENIED','target','univer-pro.collaboration-client.network-condition.service','type','UPDATE_CURSOR','getCollabEntity$','onSyncEditingCollabCursor','unitType','deserializeToCombResponse','sheets','socket\x20open.','ImageSourceType','_injector','_createHandler','eventID','UNIVER_DOC','_collaborationPaused','put','ISnapshotServerService','UNIVER_PDF','_pendingSessions','_rescheduleHeartbeat','message$','createIdentifier','HEARTBEAT_INTERVAL','awaiting','ICollaborationClientAdapterService','editing\x20status\x20changed\x20to','onLocalMutation','IContextService','_collabSessionService','SnapshotServerOverHTTPService','data','loadBase','_socketChannels','indexOf','sort','name','_doCreateSocket','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','open$','UNIVER_COLLABORATION_CLIENT_PLUGIN','_getRedoStack','2753916SFtvtQ','retryConnectingTimer','[CollaborationEntity]','socketService','_eventService','isCompositionEnd','m2Prime','/block/','_socketService','_transformUndoredo','textEncoder','IAuthzIoService','conflict','UNIVER_SHEET','prototype','JOIN','accept','Module','&assign=','_resendWithTimeout','_collaborationUIEventService','params','/universer-api/oidc/authpage','_undoRedoService','_userManagerService','session.room-permission-denied','[OfflineState]:\x20received\x20rejection.','onRemoteRetry','_getCtorByUniverInstanceType','_initUnitPermissionChange','signUrlServerUrl','AddSlidePageMutation','onRemoteChangeset','unitId\x20is\x20not\x20found','_maxTotalRetryTimeout','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','event$','univer-pro.collaboration-client-socket-service','pending','action','_applyRemoteChangeset','hasOwnProperty','getMember','setWaitCount','_onConflict','endsWith','cfgEnableObjInherit','_getSendChangesetTimeout','onTransformState','version','Error\x20on\x20receiving\x20event','_sessions','COMPRESS_MUTATION_SEND','onTransformSelections','getUnit','object','PERSON','resolveUnit','_networkConditionService','create','status$','unitID','CHANGESET_ACK','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','_isPermissionRej','loadBoard','resolve','toggleOnline','shareReplay','_replayCachedMutations','localCacheService','onStarting','_isEchoedAwaitingChangeset','ITelemetryService','_transitionLocked','online$','_clearScheduledTask','editingUnit','IUniverInstanceService','Quantity','CommandType','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','univer-pro.collaboration-client-adapter-service','getMemberID','result','_syncEditingCollabCursor','toDisposable','liveShareOperation','_getUploadFileURL','connection\x20error','timeoutTimer','/object/','_hasSessionsForEndpoint','enableCollaboration','SheetPermissionInitController','Disposable','_resendTimeout','729LJugBm','sequenceExecute','[CollaborationUndoRedoService]','__splitChunk__','AwaitingWithPendingState','CHANGESET_REJ','takeUntil','iterator','loadUnit','enableSingleActiveInstanceLock','title','UserManagerService','4737985sWxiII','href','_getDownloadEndpointURL','_onConnectionOpen','MoveSlidePageMutation','RxDisposable','_clearTimeoutTimer','createCollaborator','touchDependencies','deepClone','startsWith','SOCKET_FAILED_RETRY','MergeInterceptorFactory','/fetchmissing?from=','getImage','copyFileMeta','updateMember','SUBMIT_CHANGESET_TIMEOUT','SHOULD_CLOSE_CONN','enableOfflineEditing','_onUserLeave','clear','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','UniverInstanceType','INGEST','parseProtocolChangeset','listCollaborators','filter','People','_telemetryService','_imageSourceCache','MemberService','saveSnapshot','_instanceService','onMissedChangesetFetched','awaiting_with_pending','stopTime','[CollaborationSessionService]','_snapshotService','_handler','ILogService','floor','ITransformService','requireSession','stringify','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','routeKey','objectActions','_unitLoaded$','onload','_removeRoom','uploadFileServerUrl','_onJoinRoomEvent','resolveWithBasePath','_executeRemoteChangeset','3IzPXtd','getAllMembers','parseChangesetToProtocol','_emitMembers','IUndoRedoService','CollaborationStatus','LIVESHARE_TERMINATE','onSendChangeset','send','LIVESHARE_OPERATION','_event$','unit','concatMap','_roomMembers','getTime','RichTextEditingMutation','_scheduleCompleteTimestamp','reduce','_clearLocalCache','mapDocumentTypeToUniverInstanceType','\x20-\x20','USERS_LEAVE','selections','Optional','_change$','toStringTag','IMentionIOService','map','_clearUndo','_identity','reconnect','isArray','_getSignURL','ILocalCacheService','csAckEvent','/allowed','workbook','_state','FileId','getTypeOfUnitDisposed$','LEAVE','list','_createInitialStateImpl','refreshPermission','memberID','location','members$','_disableEditing','getInterceptPoints','forEach','newCsEvent','527474LEciXx','getOwnPropertyDescriptor','onStateChange','csShouldRetryEvent','JSONX','WorkbookEditablePermission','ISingleActiveUnitService','[OfflineState]:\x20received\x20changeset.','session.join-failed','_entities','saveChangeset','[CollaborationSession]','leaveEvent','CollaborativeUndoRedoService','_clearCollaborationTimeoutTimer','responseType','_getAPIPrefix','getTypeOfUnitAdded$','splice','resourceIDs','JOINING','trim','HEARTBEAT','init','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_state$','_collaborationSessionService','updateCursorEvent','_stopTelemetryCollaborationNewChangeset','10GNeFUP','socketMessageSubscription','setConfig','HELLO','close','generateRandomId','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','compose','readAsDataURL','_submitChangeset','Workbook','decorate','_telemetryInfo','_acknowledgeAwaitingIfReady','_unitInfo$','_logService','LIVESHARE_NEW_HOST','synced','listRoles','_entityInit$','sessionStatus','_updateLocalCache','MUTATION','baseRev','HEARTBEAT_TIMEOUT','pipe','delete','incrementRevOfUnit','_initRequestHeader','\x20to\x20','disposeWithMe','_awaitingChangeset','string','UNIVER_BASE','SUCCUSS','docStateChange$','offline','_unlockTransition','updatePermissionPoint','_showConflictNotification','delay','entityInit$','_createInitialState','IImageIoService','CollaborationController','ConflictState','toString','_socket','cmd','allowed','_initCloseConn','LocaleService','commentUpdateEvent','_incrementRevisionNumber','capture','next','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','/-/object/list','IDLE','_transformStack','POST','_scheduleCollaborationTimeoutTimer','candidateSocket','range','readyForCollab','CollaborationEntity','getSheetBlock','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','JOIN_ROOM_NOT_EXISTS','error$','/unit/','/universer-api/file/{fileID}/sign-url','sendChangesetTimeout','_tryEnsureSocket','getSnapshotAPIPath','ERROR_IMAGE','_sessionStatus$','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','[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.','CollaborationSocketService','[DataLoaderService]','_members','isTransformMutationsWithChangesetSuccess','RECV','DEFAULT_WS_SESSION_TICKET_URL','_checkMissing','getAttachmentUrl','/universer-api/stream/file/upload','slice','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','_collaborationTimeoutTimer','COMPRESS_MUTATION_APPLY','length','userID','ReplaySubject','post','saveImage','UnitEmbedded','_resendTimer','defineProperty','fetchMiss','univer-pro.collaboration-client.single-active-unit-service','state$','DataLoaderService','collaboration-client.auth.needGotoLoginAlert','b64DecodeUnicode','LIVESHARE_FETCH_OPERATIONS','COMMENT_UPDATE','UPDATE_PERMISSION_OBJ','_sheetTransformSelectionsService','_transformAndApplyRemoteChangeset','_sendHeartbeat','enableAuthServer','_onRemoteACK','ERROR_IMAGE_TYPE','transformUndoRedo','socketReady','state','HTTPService','_updateStatus','resend','CollaborationEvent','parse','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_onFetchMissResult','[CollaborationState]:\x20apply\x20error!','/universer-api/user/session-ticket','[PendingState]:\x20received\x20rejection.','error','OfflineState','unknown'];_0x529c=function(){return _0x57c647;};return _0x529c();}R=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t['Inject'])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e['RevisionService'])),v(0x7,(0x0,t[_0x318ac4(0x394)])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t['ILogService']),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t['Optional'])(x))],R);let z=class extends P{constructor(_0x2885c3,_0x5e5d56,_0x49c289,_0x5b21aa,_0x2b4537,_0x551e3f,_0x3d58bb,_0x45eb2b,_0x130e31,_0x1b7525,_0xacdcd6,_0x52527c,_0x9a4129,_0x1b8566){const _0x180d2c=_0x318ac4;super(_0x2885c3,_0x49c289,_0x5e5d56,_0x5b21aa,_0x2b4537,_0x551e3f,_0x3d58bb,_0x45eb2b,_0x130e31,_0x1b7525,_0xacdcd6,_0x52527c,_0x9a4129,_0x1b8566),this[_0x180d2c(0x234)]=_0x2885c3,this[_0x180d2c(0x1cf)]=_0x5e5d56;}async[_0x318ac4(0xdb)](){const _0x7c95eb=_0x318ac4;let _0x4d989c=await super[_0x7c95eb(0xdb)]();return this['disposeWithMe'](this[_0x7c95eb(0x152)][_0x7c95eb(0xde)]((_0xd8aff2,_0x69cbf5)=>{const _0x2b2916=_0x7c95eb;if(_0xd8aff2[_0x2b2916(0x1cf)]!==t[_0x2b2916(0x247)]['MUTATION']||_0x69cbf5!=null&&_0x69cbf5[_0x2b2916(0x179)]||_0x69cbf5!=null&&_0x69cbf5[_0x2b2916(0xec)])return;let _0x49b19c=_0xd8aff2[_0x2b2916(0x20c)];if((_0x49b19c==null?void 0x0:_0x49b19c[_0x2b2916(0x19b)])!==this['unitID'])return;let _0x2a3b54=_0xd8aff2,_0x57d48b=this[_0x2b2916(0x3ab)][_0x2b2916(0xff)][_0x2b2916(0x16b)](this[_0x2b2916(0x3ab)][_0x2b2916(0xff)]['getInterceptPoints']()[_0x2b2916(0x22b)])([_0x2a3b54],this[_0x2b2916(0x1b9)])||[_0x2a3b54];this[_0x2b2916(0x3d8)](_0x57d48b[0x0]);})),_0x4d989c;}};z=y([v(0x3,(0x0,t[_0x318ac4(0x394)])(t['Injector'])),v(0x4,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t[_0x318ac4(0x394)])(t['LocaleService'])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e['RevisionService'])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t['Optional'])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],z);let B=class extends P{constructor(_0x194a91,_0x1a9c82,_0x12d0b4,_0x56066c,_0x19c443,_0x4c767d,_0x6f6390,_0x2f43d2,_0x9c418a,_0x53e738,_0x11d7bc,_0xe5eaa9,_0x28c11f,_0x259bbf){super(_0x194a91,_0x12d0b4,_0x1a9c82,_0x56066c,_0x19c443,_0x4c767d,_0x6f6390,_0x2f43d2,_0x9c418a,_0x53e738,_0x11d7bc,_0xe5eaa9,_0x28c11f,_0x259bbf),this['unitID']=_0x194a91,this['type']=_0x1a9c82;}async[_0x318ac4(0xdb)](){const _0x4ed432=_0x318ac4;let _0x43f818=await super[_0x4ed432(0xdb)]();return this[_0x4ed432(0x309)](this[_0x4ed432(0x152)]['onMutationExecutedForCollab']((_0x5b5e21,_0x29a7e3)=>{const _0x4a9aa5=_0x4ed432;if(_0x5b5e21[_0x4a9aa5(0x1cf)]!==t[_0x4a9aa5(0x247)][_0x4a9aa5(0x301)]||_0x29a7e3!=null&&_0x29a7e3[_0x4a9aa5(0x179)]||_0x29a7e3!=null&&_0x29a7e3[_0x4a9aa5(0xec)])return;let _0x2eb95d=_0x5b5e21[_0x4a9aa5(0x20c)];if((_0x2eb95d==null?void 0x0:_0x2eb95d[_0x4a9aa5(0x19b)])!==this[_0x4a9aa5(0x234)])return;let _0x5960c1=_0x5b5e21,_0x18f904=this[_0x4a9aa5(0x3ab)][_0x4a9aa5(0xff)][_0x4a9aa5(0x16b)](this[_0x4a9aa5(0x3ab)][_0x4a9aa5(0xff)][_0x4a9aa5(0x2cb)]()[_0x4a9aa5(0x22b)])([_0x5960c1],this[_0x4a9aa5(0x1b9)])||[_0x5960c1];this['_onLocalMutation'](_0x18f904[0x0]);})),_0x43f818;}};B=y([v(0x3,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x4,(0x0,t['Inject'])(e[_0x318ac4(0x15d)])),v(0x5,(0x0,t['Inject'])(t[_0x318ac4(0x31e)])),v(0x6,(0x0,t[_0x318ac4(0x394)])(e[_0x318ac4(0x371)])),v(0x7,(0x0,t['Inject'])(_)),v(0x8,t[_0x318ac4(0x245)]),v(0x9,t[_0x318ac4(0x28c)]),v(0xa,t[_0x318ac4(0x185)]),v(0xb,t[_0x318ac4(0x191)]),v(0xc,(0x0,t[_0x318ac4(0x2b2)])(C)),v(0xd,(0x0,t[_0x318ac4(0x2b2)])(x))],B);const We=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x1ce));function Ge(_0x5bef50){const _0x2a7e7d=_0x318ac4;let _0x4a1131=_0x5bef50['data'],_0x10807d=JSON[_0x2a7e7d(0x365)](_0x4a1131);switch(_0x10807d[_0x2a7e7d(0x31b)]){case a[_0x2a7e7d(0x379)]['HEARTBEAT']:case a[_0x2a7e7d(0x379)]['HELLO']:{let _0x186e39=_0x10807d[_0x2a7e7d(0x1c2)];return{..._0x10807d,'data':_0x186e39,'cmd':_0x10807d['cmd']};}case a[_0x2a7e7d(0x379)][_0x2a7e7d(0x206)]:{let _0x3d3b17=_0x10807d[_0x2a7e7d(0x3ec)];return{..._0x10807d,'data':_0x3d3b17,'cmd':_0x10807d[_0x2a7e7d(0x31b)]};}case a[_0x2a7e7d(0x379)][_0x2a7e7d(0x33e)]:{let _0x2b244d=_0x10807d['collaMsg'];switch(_0x2b244d[_0x2a7e7d(0x1da)]){case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x38c)]:var _0x3884e5;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x3884e5=_0x2b244d[_0x2a7e7d(0x17a)])==null?void 0x0:_0x3884e5['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x235)]:var _0x22362a;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x22362a=_0x2b244d[_0x2a7e7d(0x2bd)])==null?void 0x0:_0x22362a['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0xdc)]:var _0x4992dc;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x4992dc=_0x2b244d[_0x2a7e7d(0x2cd)])==null?void 0x0:_0x4992dc['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x25d)]:var _0x3e7310;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x3e7310=_0x2b244d['csRejEvent'])==null?void 0x0:_0x3e7310['cs']},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e['CollaborationEvent'][_0x2a7e7d(0x197)]:var _0x56cc59;return{..._0x10807d,'data':{..._0x2b244d,'data':(_0x56cc59=_0x2b244d[_0x2a7e7d(0x2d1)])==null?void 0x0:_0x56cc59['cs']},'cmd':_0x10807d['cmd']};case e['CollaborationEvent'][_0x2a7e7d(0x1d0)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x2e9)]},'cmd':_0x10807d['cmd']};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x112)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d['joinEvent']},'cmd':_0x10807d['cmd']};case e[_0x2a7e7d(0x364)]['USERS_LEAVE']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x2da)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)]['LIVESHARE_NEW_HOST']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x15a)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x355)]:case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x2a4)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x24e)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e['CollaborationEvent'][_0x2a7e7d(0x2a1)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x15a)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x3f8)]:return{..._0x10807d,'data':_0x2b244d,'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e['CollaborationEvent'][_0x2a7e7d(0x356)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x31f)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)][_0x2a7e7d(0x357)]:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x103)]},'cmd':_0x10807d['cmd']};case e[_0x2a7e7d(0x364)]['SHOULD_CLOSE_CONN']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x391)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};case e[_0x2a7e7d(0x364)]['UNISCRIPT_RUN']:return{..._0x10807d,'data':{..._0x2b244d,'data':_0x2b244d[_0x2a7e7d(0x3a8)]},'cmd':_0x10807d[_0x2a7e7d(0x31b)]};default:return _0x10807d;}}default:return _0x10807d;}}function Ke(_0x598986){const _0x238262=_0x318ac4;switch(_0x598986[_0x238262(0x31b)]){case a[_0x238262(0x379)][_0x238262(0x2e4)]:case a[_0x238262(0x379)][_0x238262(0x2ee)]:return JSON['stringify']({'cmd':_0x598986[_0x238262(0x31b)],'routeKey':_0x598986[_0x238262(0x292)]});case a['CombCmd'][_0x238262(0x27c)]:{let _0x484886;switch(_0x598986[_0x238262(0x1ec)]['eventID']){case e[_0x238262(0x364)][_0x238262(0x1d0)]:_0x484886={'eventID':e['CollaborationEvent'][_0x238262(0x1d0)],'updateCursorEvent':_0x598986['data'][_0x238262(0x1ec)]};break;case e['CollaborationEvent'][_0x238262(0x2b0)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x2b0)],'leaveEvent':_0x598986[_0x238262(0x1ec)][_0x238262(0x1ec)]};break;case e[_0x238262(0x364)]['USERS_ENTER']:_0x484886={'eventID':e['CollaborationEvent']['USERS_ENTER'],'joinEvent':_0x598986[_0x238262(0x1ec)]['data']};break;case e[_0x238262(0x364)][_0x238262(0x2fb)]:_0x484886={'eventID':e['CollaborationEvent']['LIVESHARE_NEW_HOST'],'liveShareNewHost':_0x598986['data'][_0x238262(0x1ec)]};break;case e[_0x238262(0x364)][_0x238262(0x2a4)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x2a4)],'liveShareOperation':_0x598986[_0x238262(0x1ec)]['data']};break;case e[_0x238262(0x364)][_0x238262(0x2a1)]:_0x484886={'eventID':e['CollaborationEvent'][_0x238262(0x2a1)],'liveShareTerminate':_0x598986[_0x238262(0x1ec)][_0x238262(0x1ec)]};break;case e[_0x238262(0x364)][_0x238262(0x196)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x196)],'liveShareRequestHost':_0x598986[_0x238262(0x1ec)]['data']};break;case e[_0x238262(0x364)][_0x238262(0x355)]:_0x484886={'eventID':e[_0x238262(0x364)][_0x238262(0x355)]};break;default:_0x484886={'eventID':_0x598986[_0x238262(0x1ec)][_0x238262(0x1da)]};}return JSON[_0x238262(0x290)]({'cmd':_0x598986[_0x238262(0x31b)],'routeKey':_0x598986['routeKey'],'collaMsg':_0x484886});}case a[_0x238262(0x379)][_0x238262(0x206)]:return JSON[_0x238262(0x290)]({'cmd':_0x598986[_0x238262(0x31b)],'routeKey':_0x598986[_0x238262(0x292)],'joinReq':_0x598986[_0x238262(0x1ec)]});case a['CombCmd'][_0x238262(0x2c3)]:return JSON[_0x238262(0x290)]({'cmd':_0x598986['cmd'],'routeKey':_0x598986[_0x238262(0x292)],'leaveReq':_0x598986[_0x238262(0x1ec)]});default:throw Error(_0x238262(0x381));}}const qe=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x21c));function Je(_0x3ab4ac,_0x3f0373,_0x34f21d){const _0x204993=_0x318ac4;return _0x3ab4ac+'/'+_0x3f0373+_0x204993(0x331)+_0x34f21d+_0x204993(0x149);}let Ye=class extends t['Disposable']{constructor(_0x174ae6,_0x3879ec,_0x33a0e6,_0x328862,_0x1f635a){const _0x44c9b5=_0x318ac4;super(),this['_injector']=_0x174ae6,this[_0x44c9b5(0x13d)]=_0x3879ec,this[_0x44c9b5(0x3e9)]=_0x33a0e6,this['_logService']=_0x328862,this[_0x44c9b5(0x3b6)]=_0x1f635a;}[_0x318ac4(0x1f2)](_0x2afd4c){const _0x3a836a=_0x318ac4;let _0x40ca4e=this[_0x3a836a(0x1d8)]['get'](l['ISocketService']);if(!_0x40ca4e)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x577515=_0x40ca4e[_0x3a836a(0xfe)](_0x2afd4c);if(!_0x577515)throw Error(_0x3a836a(0x19f));let _0x5e293c=new t[(_0x3a836a(0x3b2))](),_0x5f090b=new i[(_0x3a836a(0x164))]();_0x5e293c[_0x3a836a(0x3c0)](_0x577515['close$'][_0x3a836a(0x126)](_0x3b5806=>_0x5f090b[_0x3a836a(0x322)](_0x3b5806))),_0x5e293c[_0x3a836a(0x3c0)]((0x0,t['toDisposable'])(()=>_0x5f090b[_0x3a836a(0x129)]()));let _0x263b02=new i[(_0x3a836a(0x164))]();_0x5e293c[_0x3a836a(0x3c0)](_0x577515[_0x3a836a(0x330)][_0x3a836a(0x126)](_0xa097d7=>_0x263b02['next'](_0xa097d7))),_0x5e293c[_0x3a836a(0x3c0)]((0x0,t[_0x3a836a(0x24d)])(()=>_0x263b02['complete']()));let _0x3e245f=new i[(_0x3a836a(0x164))]();_0x5e293c[_0x3a836a(0x3c0)](_0x577515['message$'][_0x3a836a(0x126)](_0x42dd76=>{let _0x4e3290=Ge(_0x42dd76);_0x3e245f['next'](_0x4e3290);})),_0x5e293c[_0x3a836a(0x3c0)]((0x0,t['toDisposable'])(()=>_0x3e245f[_0x3a836a(0x129)]()));let _0x511b08,_0x270db8=()=>{const _0x58c76f=_0x3a836a;_0x263b02[_0x58c76f(0x322)](new Event(_0x58c76f(0x250))),_0x5f090b[_0x58c76f(0x322)](new Event(_0x58c76f(0x250))),_0x511b08['close']();};return _0x511b08={'memberID':'','close$':_0x5f090b[_0x3a836a(0xe7)](),'error$':_0x263b02[_0x3a836a(0xe7)](),'open$':_0x577515[_0x3a836a(0x1f4)],'message$':_0x3e245f[_0x3a836a(0xe7)](),'send':_0x5b4882=>{const _0x2d51e6=_0x3a836a;if(_0x5b4882[_0x2d51e6(0x31b)]===a[_0x2d51e6(0x379)][_0x2d51e6(0x27c)]){if(_0x5b4882['data'][_0x2d51e6(0x1da)]===e[_0x2d51e6(0x364)][_0x2d51e6(0x18f)]){this['_submitChangeset'](_0x511b08,_0x5b4882[_0x2d51e6(0x1ec)])[_0x2d51e6(0x3fb)](_0x50b9a4=>{const _0x1af163=_0x2d51e6;this[_0x1af163(0x2fa)][_0x1af163(0x36b)](_0x50b9a4),_0x270db8();});return;}if(_0x5b4882['data'][_0x2d51e6(0x1da)]===e[_0x2d51e6(0x364)]['FETCH_MISSING']){let _0x2f37f7=_0x5b4882[_0x2d51e6(0x1ec)];this[_0x2d51e6(0x3ed)](_0x2f37f7)['then'](_0x38af4c=>{const _0x32917d=_0x2d51e6;_0x3e245f[_0x32917d(0x322)]({'cmd':a[_0x32917d(0x379)][_0x32917d(0x33e)],'code':a[_0x32917d(0x38e)]['OK'],'routeKey':_0x2f37f7[_0x32917d(0x1ec)][_0x32917d(0x234)],'routeType':'','data':{'eventID':e[_0x32917d(0x364)][_0x32917d(0x162)],'data':{'changesets':_0x38af4c}}});})[_0x2d51e6(0x3fb)](_0x218705=>{const _0xad91d8=_0x2d51e6;this[_0xad91d8(0x2fa)][_0xad91d8(0x36b)](_0x218705),_0x270db8();});return;}}_0x577515[_0x2d51e6(0x2a3)](Ke(_0x5b4882));},'close':()=>{const _0x58bb0b=_0x3a836a;_0x577515['close'](),_0x5e293c[_0x58bb0b(0x171)]();}},_0x511b08;}async[_0x318ac4(0x2f4)](_0x3ee3c8,_0x1a125f){const _0x4c31bc=_0x318ac4;let {unitType:_0x3d6728,unitID:_0x37c534,changeset:_0x1fab01}=_0x1a125f[_0x4c31bc(0x1ec)],_0x54c7ce={'unitID':_0x37c534,'memberID':_0x3ee3c8[_0x4c31bc(0x2c7)],'type':_0x3d6728,'changeset':(0x0,e[_0x4c31bc(0x29d)])(_0x1fab01)},_0x224124=this[_0x4c31bc(0x3e9)][_0x4c31bc(0x39f)](m),_0x5ad552=Je((_0x224124==null?void 0x0:_0x224124[_0x4c31bc(0x192)])??_0x4c31bc(0x110),_0x3d6728,_0x37c534);try{await this['_httpService']['post'](_0x5ad552,{'body':_0x54c7ce});}catch(_0x58b3f6){throw this[_0x4c31bc(0x2fa)]['error'](_0x4c31bc(0x2d9),_0x4c31bc(0x1be)),_0x58b3f6;}}async['_fetchMissChangesets'](_0x3ec45a){const _0x22258e=_0x318ac4;let {unitID:_0x5ad60f,from:_0x3ce107,to:_0xe8fbff,unitType:_0x4d12ee}=_0x3ec45a['data'];return(await this[_0x22258e(0x3b6)]['fetchMissingChangesets']({'metadata':void 0x0},{'unitID':_0x5ad60f,'type':_0x4d12ee,'from':_0x3ce107,'to':_0xe8fbff}))[_0x22258e(0xe5)][_0x22258e(0x2b6)](_0x331850=>((_0x331850['mutations']===null||_0x331850[_0x22258e(0x11a)]===void 0x0)&&(_0x331850[_0x22258e(0x11a)]=[]),_0x331850));}};Ye=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x1,(0x0,t['Inject'])(l[_0x318ac4(0x361)])),v(0x2,t[_0x318ac4(0x1b7)]),v(0x3,t['ILogService']),v(0x4,e[_0x318ac4(0x1de)])],Ye);const Xe=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x249));function Ze(_0x5c5e22={}){const _0x13eeb6=_0x318ac4;return _0x5c5e22[_0x13eeb6(0x230)]?{'resolveUnit':_0x5c5e22[_0x13eeb6(0x230)]}:{'resolveUnit':_0x55aa3b=>({'target':{'unitId':_0x55aa3b[_0x13eeb6(0x19b)],'unitType':_0x55aa3b[_0x13eeb6(0x1d3)]}})};}function Qe(_0x96d5c5,_0x50d331,_0x3ad7c8){const _0x5025d7=_0x318ac4;let _0x332889=_0x3ad7c8[_0x5025d7(0x1cd)][_0x5025d7(0x1ae)];if(_0x332889!=null&&_0x332889[_0x5025d7(0x2e3)]()==='')throw Error(_0x5025d7(0x3eb));if(!_0x3ad7c8[_0x5025d7(0x1cd)][_0x5025d7(0x19b)])throw Error(_0x5025d7(0x291));return{'localUnitId':_0x96d5c5,'unitType':_0x50d331,'target':{'endpoint':_0x332889,'unitId':_0x3ad7c8['target'][_0x5025d7(0x19b)],'unitType':_0x3ad7c8[_0x5025d7(0x1cd)][_0x5025d7(0x1d3)]??_0x50d331},'changeset':_0x3ad7c8[_0x5025d7(0x1c6)]};}let V=class extends t[_0x318ac4(0x256)]{constructor(_0x3086ed,_0x120e8e,_0x34c358,_0x351c94,_0x1c9a25,_0x52dfde,_0x4c1e12){const _0x4be213=_0x318ac4;super(),this[_0x4be213(0x1d8)]=_0x3086ed,this[_0x4be213(0x2fa)]=_0x120e8e,this[_0x4be213(0x3e9)]=_0x34c358,this[_0x4be213(0x1ff)]=_0x351c94,this['_collaborationUIEventService']=_0x1c9a25,this['_adapter']=_0x52dfde,this[_0x4be213(0x231)]=_0x4c1e12,g(this,_0x4be213(0x22a),new Map()),g(this,_0x4be213(0x1e0),new Map()),g(this,_0x4be213(0x157),new Map()),g(this,_0x4be213(0x1ee),new Map()),g(this,_0x4be213(0x3d5),this[_0x4be213(0xd4)](void 0x0)[_0x4be213(0x3d5)]['asObservable']()),g(this,_0x4be213(0x382),new i[(_0x4be213(0x193))](0x0)),g(this,_0x4be213(0x233),this[_0x4be213(0x382)][_0x4be213(0xe7)]()),this[_0x4be213(0x174)]();}[_0x318ac4(0x174)](){const _0x90312e=_0x318ac4;this[_0x90312e(0x231)]&&this[_0x90312e(0x309)](this[_0x90312e(0x231)][_0x90312e(0x242)][_0x90312e(0x126)](_0x205b01=>{const _0x18b636=_0x90312e;_0x205b01&&this[_0x18b636(0x2b9)](),_0x205b01||this[_0x18b636(0x1ee)][_0x18b636(0x2cc)](_0x3a5656=>this[_0x18b636(0x393)](_0x3a5656));}));}[_0x318ac4(0x171)](){const _0x28f8da=_0x318ac4;super[_0x28f8da(0x171)](),this['_socketChannels']['forEach'](_0xc1b342=>{const _0x3573f0=_0x28f8da;var _0x52932a,_0x3c58b2;(_0x52932a=_0xc1b342[_0x3573f0(0x2ec)])==null||_0x52932a['unsubscribe'](),_0xc1b342[_0x3573f0(0x2ec)]=null,this[_0x3573f0(0x3f0)](_0xc1b342),this[_0x3573f0(0x26a)](_0xc1b342),this[_0x3573f0(0x18e)](_0xc1b342),(_0x3c58b2=_0xc1b342[_0x3573f0(0x3d5)][_0x3573f0(0xfd)]())==null||_0x3c58b2[_0x3573f0(0x2ef)](),_0xc1b342[_0x3573f0(0x3d5)][_0x3573f0(0x129)]();}),this[_0x28f8da(0x1ee)][_0x28f8da(0x279)](),this[_0x28f8da(0x22a)]['forEach'](_0x1f91e7=>_0x1f91e7[_0x28f8da(0x171)]()),this[_0x28f8da(0x22a)][_0x28f8da(0x279)](),this[_0x28f8da(0x157)]['clear'](),this[_0x28f8da(0x382)]['complete']();}async[_0x318ac4(0x28f)](_0x21d13b,_0x5eb89c){const _0x341b89=_0x318ac4;if(this[_0x341b89(0x22a)][_0x341b89(0x3e2)](_0x21d13b))return this[_0x341b89(0x22a)][_0x341b89(0x3c5)](_0x21d13b);let _0x372f0e=this[_0x341b89(0x1e0)][_0x341b89(0x3c5)](_0x21d13b);if(_0x372f0e)return _0x372f0e;let _0x86eddb=this[_0x341b89(0x3b8)](_0x21d13b,_0x5eb89c);this[_0x341b89(0x1e0)][_0x341b89(0x123)](_0x21d13b,_0x86eddb);try{return await _0x86eddb;}finally{this[_0x341b89(0x1e0)]['delete'](_0x21d13b);}}async[_0x318ac4(0x3b8)](_0x233825,_0x4fdf42){const _0x1ee16a=_0x318ac4;let _0x1c64a6=await this[_0x1ee16a(0x1a6)](_0x233825,_0x4fdf42),_0x2d917f=this[_0x1ee16a(0xd4)](_0x1c64a6[_0x1ee16a(0x1cd)][_0x1ee16a(0x1ae)]);this[_0x1ee16a(0x334)](_0x2d917f);let _0x143001=this[_0x1ee16a(0x1d8)][_0x1ee16a(0x188)](ve,_0x1c64a6,_0x2d917f['socket$'][_0x1ee16a(0xe7)]());return this[_0x1ee16a(0x22a)][_0x1ee16a(0x123)](_0x233825,_0x143001),this[_0x1ee16a(0x157)][_0x1ee16a(0x123)](_0x233825,_0x2d917f[_0x1ee16a(0x172)]),_0x143001;}[_0x318ac4(0x385)](_0x32af1a){const _0x1e5ecf=_0x318ac4;let _0x2c83a4=this[_0x1e5ecf(0x22a)][_0x1e5ecf(0x3c5)](_0x32af1a),_0x20ac89=this['_sessionChannels']['get'](_0x32af1a);if(_0x2c83a4&&(this['_sessions'][_0x1e5ecf(0x305)](_0x32af1a),this['_sessionChannels'][_0x1e5ecf(0x305)](_0x32af1a),_0x2c83a4[_0x1e5ecf(0x2ef)]()),_0x20ac89&&!this['_hasSessionsForEndpoint'](_0x20ac89)){var _0x568b34;let _0x37d381=this[_0x1e5ecf(0x1ee)][_0x1e5ecf(0x3c5)](_0x20ac89);_0x37d381==null||(_0x568b34=_0x37d381[_0x1e5ecf(0x3d5)][_0x1e5ecf(0xfd)]())==null||_0x568b34['close']();}}['reconnect'](){const _0x442939=_0x318ac4;(this[_0x442939(0x1ee)][_0x442939(0x14e)]?[...this[_0x442939(0x1ee)][_0x442939(0x3d9)]()]:[this[_0x442939(0xd4)](void 0x0)])['forEach'](_0x2e17=>{const _0x45eb5f=_0x442939;_0x2e17[_0x45eb5f(0x3d0)]=0x0,this[_0x45eb5f(0x3f0)](_0x2e17),this[_0x45eb5f(0x1a1)](_0x2e17);});}['_clearRetryConnectingTimer'](_0x36b772){const _0x81b611=_0x318ac4;_0x36b772[_0x81b611(0x1f8)]!=null&&(clearTimeout(_0x36b772[_0x81b611(0x1f8)]),_0x36b772[_0x81b611(0x1f8)]=null);}async[_0x318ac4(0x3be)](_0x225381){const _0x544bcf=_0x318ac4;let _0x8ce918=this[_0x544bcf(0x3e9)][_0x544bcf(0x39f)](m),_0x4ca0c3=_0x225381[_0x544bcf(0x1ae)]??(_0x8ce918==null?void 0x0:_0x8ce918[_0x544bcf(0x118)])??'ws://127.0.0.1:8000/universer-api/comb/connect',_0x4a0576=await this['_socketService'][_0x544bcf(0xfe)](_0x4ca0c3);return _0x225381[_0x544bcf(0x329)]=_0x4a0576,_0x4a0576;}async['_tryEnsureSocket'](_0x3e4c04){const _0x17c843=_0x318ac4;try{let _0x3f0198=_0x3e4c04[_0x17c843(0x3d5)][_0x17c843(0xfd)]()??_0x3e4c04[_0x17c843(0x329)]??await this[_0x17c843(0x3be)](_0x3e4c04);if(_0x3f0198){var _0x431b72;let _0x55469e=_0x3f0198['send'];_0x3f0198[_0x17c843(0x2a3)]=_0x4fb22a=>(_0x4fb22a['cmd']!==a[_0x17c843(0x379)]['LEAVE']&&this[_0x17c843(0x1e1)](_0x3e4c04),_0x55469e[_0x17c843(0xdd)](_0x3f0198,[_0x4fb22a])),(_0x431b72=_0x3e4c04[_0x17c843(0x2ec)])==null||_0x431b72['unsubscribe'](),_0x3e4c04[_0x17c843(0x2ec)]=null,_0x3e4c04[_0x17c843(0x2ec)]=_0x3f0198[_0x17c843(0x1e2)][_0x17c843(0x126)](_0x5e64c3=>this['_onMessage'](_0x3e4c04,_0x3f0198,_0x5e64c3)),_0x3f0198['error$'][_0x17c843(0x304)]((0x0,s[_0x17c843(0x161)])(0x1))[_0x17c843(0x126)](_0x2eeaa7=>this[_0x17c843(0x2fa)][_0x17c843(0x36b)]('[CollaborationSessionService]:\x20socket\x20error',_0x2eeaa7)),_0x3f0198['open$'][_0x17c843(0x304)]((0x0,s['take'])(0x1))[_0x17c843(0x126)](()=>{const _0x3e349c=_0x17c843;this[_0x3e349c(0x267)](_0x3e4c04,_0x3f0198);}),_0x3f0198[_0x17c843(0x117)][_0x17c843(0x304)]((0x0,s[_0x17c843(0x161)])(0x1))[_0x17c843(0x126)](_0x13c166=>{const _0x2806bd=_0x17c843;this[_0x2806bd(0x2fa)][_0x2806bd(0x195)](_0x2806bd(0x289),_0x2806bd(0x100),_0x13c166),this[_0x2806bd(0xe8)](_0x3e4c04);});}}catch(_0xa20454){this[_0x17c843(0x2fa)][_0x17c843(0x36b)](_0xa20454),this['_onConnectionFailed'](_0x3e4c04);}}[_0x318ac4(0x267)](_0x54a524,_0x3f31b4){const _0x47619b=_0x318ac4;this[_0x47619b(0x2fa)][_0x47619b(0x195)](_0x47619b(0x289),_0x47619b(0x1d6)),_0x3f31b4[_0x47619b(0x2a3)]({'cmd':a[_0x47619b(0x379)][_0x47619b(0x2ee)]}),this[_0x47619b(0x1e1)](_0x54a524);}[_0x318ac4(0x393)](_0x3e671f){const _0x2ea76c=_0x318ac4;_0x3e671f[_0x2ea76c(0x35f)]=!0x1,_0x3e671f[_0x2ea76c(0x329)]=null,this['_status$'][_0x2ea76c(0x322)](0x2),_0x3e671f[_0x2ea76c(0x3d5)][_0x2ea76c(0x322)](null),this[_0x2ea76c(0x26a)](_0x3e671f),this['_clearHeartbeatTimer'](_0x3e671f);}['_onConnectionFailed'](_0x2ceeb0){const _0x38e03f=_0x318ac4;this[_0x38e03f(0x393)](_0x2ceeb0),this[_0x38e03f(0x253)](_0x2ceeb0[_0x38e03f(0x172)])&&(_0x2ceeb0[_0x38e03f(0x3d0)]<(this['_configService'][_0x38e03f(0x39f)](_0x38e03f(0x3ea))??0x3)?(this['_collaborationUIEventService'][_0x38e03f(0x3b5)]({'id':_0x38e03f(0x26f)}),this[_0x38e03f(0x1a1)](_0x2ceeb0)):this[_0x38e03f(0x20b)]['emitEvent']({'id':_0x38e03f(0x3e0)}));}['_tryReconnect'](_0x159083){const _0x48b071=_0x318ac4;let _0xc9b7c2=_0x159083[_0x48b071(0x3d0)],_0x5bbdb9=this[_0x48b071(0x3e9)]['getConfig'](m),_0x2af48f=_0xc9b7c2===0x0?0x0:((_0x5bbdb9==null?void 0x0:_0x5bbdb9[_0x48b071(0x151)])??0x4e20)*0x2**_0xc9b7c2;_0x159083['retryConnectingTimer']=setTimeout(()=>{const _0x2ef66a=_0x48b071;clearTimeout(_0x159083[_0x2ef66a(0x1f8)]),_0x159083[_0x2ef66a(0x1f8)]=null,this[_0x2ef66a(0x334)](_0x159083);},_0x2af48f),_0x159083[_0x48b071(0x3d0)]+=0x1;}async[_0x318ac4(0x1a6)](_0x4e4158,_0x1fe84b){const _0x4f94b8=_0x318ac4;return Qe(_0x4e4158,_0x1fe84b,await this[_0x4f94b8(0x1c8)][_0x4f94b8(0x230)]({'unitId':_0x4e4158,'unitType':_0x1fe84b}));}[_0x318ac4(0x170)](_0x1c7728,_0x334a1a,_0x4008fd){const _0x36c694=_0x318ac4;let {cmd:_0xc86e49}=_0x4008fd;_0xc86e49===a[_0x36c694(0x379)][_0x36c694(0x2ee)]&&!_0x1c7728[_0x36c694(0x35f)]&&(_0x334a1a[_0x36c694(0x2c7)]=_0x4008fd[_0x36c694(0x1ec)][_0x36c694(0x2c7)],_0x1c7728[_0x36c694(0x3d5)][_0x36c694(0x322)](_0x334a1a),this['_status$'][_0x36c694(0x322)](0x3),_0x1c7728['socketReady']=!0x0,_0x1c7728[_0x36c694(0x329)]=null),_0xc86e49===a[_0x36c694(0x379)][_0x36c694(0x2e4)]&&this[_0x36c694(0x26a)](_0x1c7728),this['_rescheduleHeartbeat'](_0x1c7728);}[_0x318ac4(0x253)](_0x37920a){const _0x54b8c0=_0x318ac4;return[...this['_sessionChannels'][_0x54b8c0(0x3d9)]()]['some'](_0x22b5a7=>_0x22b5a7===_0x37920a);}['_getSocketChannel'](_0x1237ff){const _0x213703=_0x318ac4;let _0x17e0a1=_0x1237ff??'',_0x582b4c=this[_0x213703(0x1ee)][_0x213703(0x3c5)](_0x17e0a1);if(_0x582b4c)return _0x582b4c;let _0x3f72d6={'endpointKey':_0x17e0a1,'endpoint':_0x1237ff,'socket$':new i['BehaviorSubject'](void 0x0),'candidateSocket':null,'socketReady':!0x1,'socketMessageSubscription':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x213703(0x1ee)][_0x213703(0x123)](_0x17e0a1,_0x3f72d6),_0x3f72d6;}['_rescheduleHeartbeat'](_0x588f7c){const _0x3f667c=_0x318ac4;this[_0x3f667c(0x18e)](_0x588f7c),_0x588f7c['sendHeartbeatTimer']=setTimeout(()=>this[_0x3f667c(0x35a)](_0x588f7c),this[_0x3f667c(0x3e9)]['getConfig'](_0x3f667c(0x1e4))??0x7530);}[_0x318ac4(0x35a)](_0x4c6185){const _0x37759c=_0x318ac4;_0x4c6185[_0x37759c(0x3d5)]['getValue']()[_0x37759c(0x2a3)]({'cmd':a[_0x37759c(0x379)][_0x37759c(0x2e4)]}),this['_waitForHeartbeatResponse'](_0x4c6185);}['_waitForHeartbeatResponse'](_0x9ea8cb){const _0x56f56f=_0x318ac4;_0x9ea8cb[_0x56f56f(0x251)]=setTimeout(()=>this[_0x56f56f(0xe8)](_0x9ea8cb),this[_0x56f56f(0x3e9)][_0x56f56f(0x39f)](_0x56f56f(0x303))??0x4e20);}[_0x318ac4(0x18e)](_0x2bf001){const _0x5c3406=_0x318ac4;_0x2bf001[_0x5c3406(0x114)]!=null&&(clearTimeout(_0x2bf001['sendHeartbeatTimer']),_0x2bf001['sendHeartbeatTimer']=null);}[_0x318ac4(0x26a)](_0x111b94){const _0x2d3a61=_0x318ac4;_0x111b94[_0x2d3a61(0x251)]!=null&&(clearTimeout(_0x111b94[_0x2d3a61(0x251)]),_0x111b94[_0x2d3a61(0x251)]=null);}};V=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x37e)])),v(0x1,t[_0x318ac4(0x28c)]),v(0x2,t[_0x318ac4(0x1b7)]),v(0x3,qe),v(0x4,(0x0,t['Inject'])(_)),v(0x5,Xe),v(0x6,(0x0,t[_0x318ac4(0x2b2)])(We))],V);let H=class extends t['RxDisposable']{constructor(_0x32f383,_0x15e7e7,_0x12fa5f,_0x16306f){const _0x171053=_0x318ac4;var _0x31db7f;super(),this[_0x171053(0x1d8)]=_0x32f383,this[_0x171053(0x1ea)]=_0x15e7e7,this[_0x171053(0x3e9)]=_0x12fa5f,this['_univerInstanceService']=_0x16306f,g(this,_0x171053(0x2d7),new Map()),g(this,'_entityInit$',new i[(_0x171053(0x164))]()),g(this,_0x171053(0x314),this[_0x171053(0x2fe)][_0x171053(0xe7)]()),((_0x31db7f=this[_0x171053(0x3e9)][_0x171053(0x39f)](_0x171053(0x11d)))==null?void 0x0:_0x31db7f[_0x171053(0x254)])!==!0x1&&this['_init']();}['dispose'](){const _0x2a2947=_0x318ac4;super[_0x2a2947(0x171)](),this[_0x2a2947(0x2d7)][_0x2a2947(0x2cc)](_0x3c5125=>_0x3c5125[_0x2a2947(0x171)]()),this[_0x2a2947(0x2d7)][_0x2a2947(0x279)]();}[_0x318ac4(0x3e1)](_0x556e87){const _0x342026=_0x318ac4;return this['_entities'][_0x342026(0x3c5)](_0x556e87)??null;}[_0x318ac4(0x1d1)](_0x5527f6){const _0x396279=_0x318ac4;let _0x412cae=this[_0x396279(0x3e1)](_0x5527f6);return _0x412cae?(0x0,i['of'])(_0x412cae):this[_0x396279(0x2fe)]['pipe']((0x0,s[_0x396279(0x27f)])(_0x4fda81=>_0x4fda81[_0x396279(0x234)]===_0x5527f6));}[_0x318ac4(0x32b)](_0xf131d1){const _0xb84831=_0x318ac4;return(0x0,i['firstValueFrom'])(this['getCollabEntity$'](_0xf131d1)['pipe']((0x0,s[_0xb84831(0x2b6)])(()=>void 0x0)));}['_init'](){const _0x10fb3c=_0x318ac4;this['_univerInstanceService'][_0x10fb3c(0x2df)](t[_0x10fb3c(0x27b)]['UNIVER_SHEET'])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]),(0x0,s[_0x10fb3c(0x313)])(0x10))[_0x10fb3c(0x126)](async _0x131457=>{const _0x2c8c75=_0x10fb3c;let _0x10514a=_0x131457[_0x2c8c75(0x2a6)][_0x2c8c75(0xd5)](),_0x3779cb=await this[_0x2c8c75(0x3b0)](_0x10514a,t[_0x2c8c75(0x27b)][_0x2c8c75(0x204)]);this['_entities'][_0x2c8c75(0x123)](_0x10514a,_0x3779cb);}),this[_0x10fb3c(0x1b9)]['getTypeOfUnitAdded$'](t[_0x10fb3c(0x27b)][_0x10fb3c(0x1db)])[_0x10fb3c(0x304)]((0x0,i['takeUntil'])(this[_0x10fb3c(0x16a)]),(0x0,s['delay'])(0x10))[_0x10fb3c(0x304)]((0x0,s[_0x10fb3c(0x27f)])(_0x1f928e=>!_0x1f928e[_0x10fb3c(0x2a6)][_0x10fb3c(0xd5)]()[_0x10fb3c(0x26e)]('__')))[_0x10fb3c(0x126)](async _0x3aa9ad=>{const _0x50c13c=_0x10fb3c;let _0x58e7ac=_0x3aa9ad['unit'][_0x50c13c(0xd5)](),_0x47e042=await this[_0x50c13c(0x3b0)](_0x58e7ac,t[_0x50c13c(0x27b)][_0x50c13c(0x1db)]);this[_0x50c13c(0x2d7)]['set'](_0x58e7ac,_0x47e042);}),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2df)](t['UniverInstanceType'][_0x10fb3c(0x1bc)])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]),(0x0,s['delay'])(0x10))['subscribe'](async _0x4915e0=>{const _0x2edc72=_0x10fb3c;let _0x1e8809=_0x4915e0['unit'][_0x2edc72(0xd5)](),_0x14c937=await this[_0x2edc72(0x3b0)](_0x1e8809,t[_0x2edc72(0x27b)]['UNIVER_SLIDE']);this[_0x2edc72(0x2d7)][_0x2edc72(0x123)](_0x1e8809,_0x14c937);}),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2df)](t['UniverInstanceType'][_0x10fb3c(0x177)])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this['dispose$']),(0x0,s[_0x10fb3c(0x313)])(0x10))[_0x10fb3c(0x126)](async _0x453c97=>{const _0x43dbbe=_0x10fb3c;let _0x18edfc=_0x453c97['unit'][_0x43dbbe(0xd5)](),_0x2c26ce=await this['_startCollaboration'](_0x18edfc,t[_0x43dbbe(0x27b)][_0x43dbbe(0x177)]);this['_entities']['set'](_0x18edfc,_0x2c26ce);}),this['_univerInstanceService'][_0x10fb3c(0x2df)](t[_0x10fb3c(0x27b)][_0x10fb3c(0x30c)])[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]),(0x0,s['delay'])(0x10))[_0x10fb3c(0x126)](async _0x253fc2=>{const _0x340778=_0x10fb3c;let _0x21f1b4=_0x253fc2['unit'][_0x340778(0xd5)](),_0x36c950=await this[_0x340778(0x3b0)](_0x21f1b4,t[_0x340778(0x27b)][_0x340778(0x30c)]);this[_0x340778(0x2d7)][_0x340778(0x123)](_0x21f1b4,_0x36c950);}),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2df)](t[_0x10fb3c(0x27b)]['UNIVER_PDF'])[_0x10fb3c(0x304)]((0x0,i['takeUntil'])(this[_0x10fb3c(0x16a)]),(0x0,s[_0x10fb3c(0x313)])(0x10))[_0x10fb3c(0x126)](async _0x3936a5=>{const _0x4a9101=_0x10fb3c;let _0x14da54=_0x3936a5[_0x4a9101(0x2a6)][_0x4a9101(0xd5)](),_0x27d5dc=await this[_0x4a9101(0x3b0)](_0x14da54,t[_0x4a9101(0x27b)]['UNIVER_PDF']);this[_0x4a9101(0x2d7)][_0x4a9101(0x123)](_0x14da54,_0x27d5dc);}),(0x0,i[_0x10fb3c(0xe4)])(this[_0x10fb3c(0x1b9)]['getTypeOfUnitDisposed$'](t[_0x10fb3c(0x27b)][_0x10fb3c(0x204)]),this[_0x10fb3c(0x1b9)]['getTypeOfUnitDisposed$'](t['UniverInstanceType'][_0x10fb3c(0x1db)]),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t['UniverInstanceType'][_0x10fb3c(0x1bc)]),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t[_0x10fb3c(0x27b)]['UNIVER_BOARD']),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t['UniverInstanceType']['UNIVER_BASE']),this[_0x10fb3c(0x1b9)][_0x10fb3c(0x2c2)](t[_0x10fb3c(0x27b)][_0x10fb3c(0x1df)]))[_0x10fb3c(0x304)]((0x0,i[_0x10fb3c(0x25e)])(this[_0x10fb3c(0x16a)]))['subscribe'](_0x66a5da=>{const _0x3403ba=_0x10fb3c;let _0x172555=_0x66a5da['getUnitId'](),_0x2143b3=this[_0x3403ba(0x2d7)][_0x3403ba(0x3c5)](_0x172555);_0x2143b3&&(_0x2143b3[_0x3403ba(0x171)](),this[_0x3403ba(0x2d7)][_0x3403ba(0x305)](_0x172555));});}async[_0x318ac4(0x3b0)](_0x400c58,_0x26d4bd){const _0x15c19d=_0x318ac4;let _0x50bc05=await this[_0x15c19d(0x1ea)]['requireSession'](_0x400c58),_0x144494=this[_0x15c19d(0x1d8)]['createInstance'](this[_0x15c19d(0x213)](_0x26d4bd),_0x400c58,_0x26d4bd,_0x50bc05);return await _0x144494[_0x15c19d(0x2e5)](),this[_0x15c19d(0x2fe)][_0x15c19d(0x322)](_0x144494),_0x144494;}[_0x318ac4(0x213)](_0x38fc22){const _0x1990af=_0x318ac4;switch(_0x38fc22){case t[_0x1990af(0x27b)][_0x1990af(0x1db)]:return F;case t['UniverInstanceType'][_0x1990af(0x204)]:return L;case t[_0x1990af(0x27b)][_0x1990af(0x1bc)]:return R;case t[_0x1990af(0x27b)][_0x1990af(0x177)]:return z;case t[_0x1990af(0x27b)][_0x1990af(0x30c)]:return I;case t['UniverInstanceType'][_0x1990af(0x1df)]:return B;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x38fc22);}}};H=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t['Injector'])),v(0x1,(0x0,t['Inject'])(V)),v(0x2,t['IConfigService']),v(0x3,t['IUniverInstanceService'])],H);var $e=_0x318ac4(0x384),et='1.0.0-beta.1';let tt=class extends t[_0x318ac4(0x256)]{constructor(_0x138cbb,_0x761fda){const _0x4f14fb=_0x318ac4;super(),this[_0x4f14fb(0x1b9)]=_0x138cbb,this[_0x4f14fb(0x3e9)]=_0x761fda,this[_0x4f14fb(0xdb)]();}[_0x318ac4(0xdb)](){const _0x3f537a=_0x318ac4;this['disposeWithMe'](this[_0x3f537a(0x1b9)][_0x3f537a(0x141)][_0x3f537a(0x126)](()=>{const _0x4bbe72=_0x3f537a;let _0x2dbf98=this[_0x4bbe72(0x1b9)][_0x4bbe72(0x3f3)](),_0x198229=this[_0x4bbe72(0x3e9)][_0x4bbe72(0x39f)]('DEFAULT_FILE_NAME')??_0x4bbe72(0x19c);_0x2dbf98 instanceof t[_0x4bbe72(0x2f5)]&&(_0x198229=_0x2dbf98['name']),document[_0x4bbe72(0x262)]=_0x198229;}));}};tt=y([v(0x0,t[_0x318ac4(0x245)]),v(0x1,t[_0x318ac4(0x1b7)])],tt);const nt=(0x0,t[_0x318ac4(0x1e3)])(_0x318ac4(0x130));let U=class{constructor(_0x101a2c,_0x42a463,_0x44999f){const _0x28d0db=_0x318ac4;this[_0x28d0db(0x13d)]=_0x101a2c,this[_0x28d0db(0x3e9)]=_0x42a463,this[_0x28d0db(0x1b9)]=_0x44999f;}[_0x318ac4(0x124)](){const _0x42540e=_0x318ac4;return this[_0x42540e(0x138)]()[_0x42540e(0x108)]??{};}async[_0x318ac4(0x3b7)](_0x2f20fe){const _0x74964=_0x318ac4;let _0x14101f=this['getUploadOptions']();if(rt(_0x2f20fe,_0x14101f),_0x14101f['upload'])return _0x14101f[_0x74964(0x3bd)](_0x2f20fe);let _0x1537cd=await this[_0x74964(0x187)](_0x2f20fe);return{'id':_0x1537cd,'name':_0x2f20fe['name'],'mimeType':_0x2f20fe[_0x74964(0x1cf)],'size':_0x2f20fe['size'],'sourceType':t[_0x74964(0x1d7)][_0x74964(0xe3)],'source':_0x1537cd};}async[_0x318ac4(0x341)](_0x295daa,_0x1da934){const _0x5067c7=_0x318ac4;if(_0x1da934!==t[_0x5067c7(0x1d7)]['UUID'])return _0x295daa;let _0x3e97dc=(await this[_0x5067c7(0x13d)][_0x5067c7(0x3c5)](this[_0x5067c7(0x2bb)]()[_0x5067c7(0x14d)]('{fileID}',_0x295daa)))[_0x5067c7(0x175)];if(_0x3e97dc[_0x5067c7(0x36b)]&&_0x3e97dc[_0x5067c7(0x36b)]['code']!==a[_0x5067c7(0x1cb)]['OK'])throw _0x3e97dc[_0x5067c7(0x36b)];if(!_0x3e97dc[_0x5067c7(0x3b4)])throw Error(_0x5067c7(0x3c2));return(0x0,t[_0x5067c7(0x299)])(_0x3e97dc[_0x5067c7(0x3b4)],this[_0x5067c7(0x266)]());}async[_0x318ac4(0x187)](_0x2393b9){const _0x3cc755=_0x318ac4;let _0x14ba26=this[_0x3cc755(0x1b9)]['getFocusedUnit'](),_0x574715=_0x14ba26==null?void 0x0:_0x14ba26['getUnitId']();if(!_0x574715)throw Error('[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.');let _0x275049=new FormData();_0x275049[_0x3cc755(0x16c)]('file',_0x2393b9);let _0x9e4173=this[_0x3cc755(0x24f)]()+_0x3cc755(0x10a)+_0x2393b9[_0x3cc755(0x14e)][_0x3cc755(0x319)]()+_0x3cc755(0x39b)+a[_0x3cc755(0xf3)][_0x3cc755(0x34c)]+'&assign='+encodeURIComponent(_0x574715),_0x55e31a=(await this['_httpService'][_0x3cc755(0x34a)](_0x9e4173,{'body':_0x275049}))['body'][_0x3cc755(0x2c1)];if(typeof _0x55e31a!='string'||!_0x55e31a)throw Error(_0x3cc755(0x338));return _0x55e31a;}[_0x318ac4(0x24f)](){const _0x9600df=_0x318ac4;return this[_0x9600df(0x138)]()[_0x9600df(0x297)]??'/universer-api/stream/file/upload';}[_0x318ac4(0x2bb)](){const _0xd9e02b=_0x318ac4;return this['_getConfig']()[_0xd9e02b(0x215)]??_0xd9e02b(0x332);}[_0x318ac4(0x266)](){const _0xd998f3=_0x318ac4;let _0x1c3182=this[_0xd998f3(0x138)]();return _0x1c3182[_0xd998f3(0x3a1)]?_0x1c3182[_0xd998f3(0x3a1)]:typeof location<'u'?location['origin']:_0x1c3182['uploadFileServerUrl']??'';}[_0x318ac4(0x138)](){const _0x3d8583=_0x318ac4;return this[_0x3d8583(0x3e9)][_0x3d8583(0x39f)](_0x3d8583(0x11d))??{};}};U=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l['HTTPService'])),v(0x1,(0x0,t['Inject'])(t['IConfigService'])),v(0x2,(0x0,t['Inject'])(t[_0x318ac4(0x245)]))],U);function rt(_0x1d4f93,_0x31f082){const _0x5d287d=_0x318ac4;var _0x22551d;if(_0x31f082[_0x5d287d(0x3f5)]!=null&&_0x1d4f93['size']>_0x31f082[_0x5d287d(0x3f5)])throw Error(_0x5d287d(0x344));if((_0x22551d=_0x31f082[_0x5d287d(0x207)])!=null&&_0x22551d[_0x5d287d(0x347)]&&!_0x31f082[_0x5d287d(0x207)][_0x5d287d(0x194)](_0x400026=>_0x1d4f93[_0x5d287d(0x1cf)]===_0x400026||_0x1d4f93['name'][_0x5d287d(0x224)](_0x400026)||_0x400026['endsWith']('/*')&&_0x1d4f93[_0x5d287d(0x1cf)][_0x5d287d(0x26e)](_0x400026[_0x5d287d(0x343)](0x0,-0x1))))throw Error(_0x5d287d(0x1ac));}let W=class{constructor(_0x1eeb00,_0x219cba,_0x177947){const _0x39d7d2=_0x318ac4;this[_0x39d7d2(0x3e9)]=_0x1eeb00,this[_0x39d7d2(0x13d)]=_0x219cba,this[_0x39d7d2(0x3c8)]=_0x177947,this[_0x39d7d2(0x2e5)]();}[_0x318ac4(0x2e5)](){const _0x17efc8=_0x318ac4;this['_httpService']['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x226e71,_0x2d57d4)=>_0x2d57d4(_0x226e71)['pipe']((0x0,i[_0x17efc8(0x2a7)])(async _0x175d5e=>{const _0x548dc5=_0x17efc8;let _0x597ac8=_0x175d5e;if(_0x597ac8[_0x548dc5(0x125)]===0x191){if(typeof window>'u')throw Error(_0x548dc5(0x3c4));if(window[_0x548dc5(0xf7)](this[_0x548dc5(0x3c8)]['t'](_0x548dc5(0x353)))){let _0x24e974=window['encodeURIComponent'](window[_0x548dc5(0x2c8)][_0x548dc5(0x265)]);window[_0x548dc5(0x2c8)][_0x548dc5(0x265)]=this[_0x548dc5(0x1b1)]()+'?url='+_0x24e974;}}return _0x597ac8;}))});}['_getLoginPath'](){const _0x26a917=_0x318ac4;let _0x49fdc9=this['_configService'][_0x26a917(0x39f)](m);return(_0x49fdc9==null?void 0x0:_0x49fdc9[_0x26a917(0x155)])??_0x26a917(0x20d);}};W=y([v(0x0,t[_0x318ac4(0x1b7)]),v(0x1,(0x0,t[_0x318ac4(0x394)])(l[_0x318ac4(0x361)])),v(0x2,(0x0,t['Inject'])(t[_0x318ac4(0x31e)]))],W);let G=class extends t['Disposable']{constructor(_0xd40154,_0x2386ee){const _0x54117a=_0x318ac4;super(),this[_0x54117a(0x13a)]=_0xd40154,this[_0x54117a(0x3e9)]=_0x2386ee,g(this,_0x54117a(0x131),!0x1),this[_0x54117a(0xd3)]();}[_0x318ac4(0xd3)](){const _0x376651=_0x318ac4;let _0x24c58d=this;this[_0x376651(0x309)](this['_HTTPService'][_0x376651(0x11b)]({'priority':0x3e7,'interceptor':(0x0,l[_0x376651(0x270)])({'isMatch'(_0x37900a){const _0x28c66c=_0x376651;var _0x10400c;if(_0x37900a[_0x28c66c(0xee)]==='POST'&&(_0x10400c=_0x37900a[_0x28c66c(0x3aa)])!=null&&_0x10400c[_0x28c66c(0x175)]){let {objectID:_0x530eb3,objectType:_0x4f2acd}=_0x37900a['requestParams']['body']||{};if(!_0x530eb3||_0x4f2acd===void 0x0)return!0x1;let _0x55eb4c=_0x24c58d[_0x28c66c(0x399)]()+'/'+_0x4f2acd+_0x28c66c(0x252)+_0x530eb3+'/allowed';if(_0x37900a[_0x28c66c(0x3b4)]===_0x55eb4c)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3e0913){const _0x5c5303=_0x376651;var _0x18177a;return(_0x18177a=_0x3e0913[_0x5c5303(0x3aa)])==null?void 0x0:_0x18177a[_0x5c5303(0x175)];},'mergeParamsToRequest'(_0x1ef5ea,_0x3dc81d){const _0x4359aa=_0x376651;let _0xcf84fb=_0x24c58d['_getAPIPrefixPath']()+_0x4359aa(0x3cf),_0x4f5fa7=_0x1ef5ea[_0x4359aa(0x2ac)]((_0x1b0fbe,_0x5622e4)=>{const _0x393c4f=_0x4359aa;let {unitID:_0x5edbac,objectID:_0x4cd8e9,objectType:_0x5a029d,actions:_0x57cdbd}=_0x5622e4;return _0x1b0fbe[_0x5edbac]||(_0x1b0fbe[_0x5edbac]={}),_0x1b0fbe[_0x5edbac][_0x4cd8e9]||(_0x1b0fbe[_0x5edbac][_0x4cd8e9]={'objectID':_0x4cd8e9,'objectType':_0x5a029d,'actions':[]}),_0x1b0fbe[_0x5edbac][_0x4cd8e9][_0x393c4f(0x140)]['push'](..._0x57cdbd),_0x1b0fbe;},{}),_0x1e8901=[];for(let _0x24bd88 in _0x4f5fa7)for(let _0x254e11 in _0x4f5fa7[_0x24bd88]){let {actions:_0x432015,objectType:_0x79afd}=_0x4f5fa7[_0x24bd88][_0x254e11],_0x57f492=[...new Set(_0x432015)];_0x1e8901[_0x4359aa(0x154)]({'unitID':_0x24bd88,'objectID':_0x254e11,'objectType':_0x79afd,'actions':_0x57f492});}return new l['HTTPRequest'](_0x4359aa(0x327),_0xcf84fb,{'headers':_0x3dc81d[_0x4359aa(0x389)],'withCredentials':_0x3dc81d[_0x4359aa(0xe2)],'responseType':_0x3dc81d[_0x4359aa(0x2dd)],'body':{'requests':_0x1e8901}});}},{'distributeResult'(_0x3ee9e1,_0x4b8438){const _0x232b39=_0x376651;let {objectActions:_0x19cab8}=_0x3ee9e1;return _0x4b8438[_0x232b39(0x2b6)](_0x30856e=>{const _0x493108=_0x232b39;let {unitID:_0x5b8428,objectID:_0xe19b3,actions:_0x45a0b6}=_0x30856e,_0x3a50fc=_0x19cab8[_0x493108(0x1b8)](_0x3d45bb=>_0x3d45bb['unitID']===_0x5b8428&&_0x3d45bb['objectID']===_0xe19b3);return{'config':_0x30856e,'result':{'actions':_0x45a0b6[_0x493108(0x2b6)](_0x2edbc6=>_0x3a50fc==null?void 0x0:_0x3a50fc['actions'][_0x493108(0x1b8)](_0x1b8f02=>_0x1b8f02[_0x493108(0x21e)]===_0x2edbc6))['filter'](_0xd979b0=>!!_0xd979b0),'error':_0x3ee9e1[_0x493108(0x36b)]}};});}})}));}[_0x318ac4(0x399)](){const _0x4545e1=_0x318ac4;let _0x42b261=this[_0x4545e1(0x3e9)][_0x4545e1(0x39f)](m);return(_0x42b261==null?void 0x0:_0x42b261[_0x4545e1(0x199)])??_0x4545e1(0xfb);}async[_0x318ac4(0x232)](_0xedc41){const _0x3635ff=_0x318ac4;let _0x561f50=this[_0x3635ff(0x399)]()+'/'+_0xedc41[_0x3635ff(0x1bf)]+_0x3635ff(0x166);return(await this[_0x3635ff(0x13a)][_0x3635ff(0x34a)](_0x561f50,{'body':_0xedc41}))[_0x3635ff(0x175)][_0x3635ff(0x10b)]||'';}async['list'](_0x3a7fe4){const _0x207f15=_0x318ac4;let _0x2f3a27=this['_getAPIPrefixPath']()+_0x207f15(0x324);return(await this[_0x207f15(0x13a)][_0x207f15(0x34a)](_0x2f3a27,{'body':_0x3a7fe4}))[_0x207f15(0x175)][_0x207f15(0xf1)];}async[_0x318ac4(0x180)](_0x20997d){const _0xe00a16=_0x318ac4;var _0x441659;let _0x5efd2c=this[_0xe00a16(0x399)]()+'/'+_0x20997d[_0xe00a16(0x1bf)]+_0xe00a16(0x252)+_0x20997d[_0xe00a16(0x10b)],_0x2f33c9=await this[_0xe00a16(0x13a)][_0xe00a16(0x1dd)](_0x5efd2c,{'body':_0x20997d});if((_0x2f33c9==null||(_0x441659=_0x2f33c9[_0xe00a16(0x175)])==null||(_0x441659=_0x441659[_0xe00a16(0x36b)])==null?void 0x0:_0x441659[_0xe00a16(0x1ad)])!==0x1)throw Error(_0xe00a16(0x18c));}async[_0x318ac4(0x31c)](_0x380d4b){const _0x15fc7d=_0x318ac4;let _0x243cce=this[_0x15fc7d(0x399)]()+'/'+_0x380d4b[_0x15fc7d(0x1bf)]+_0x15fc7d(0x252)+_0x380d4b[_0x15fc7d(0x10b)]+_0x15fc7d(0x2be);return(await this['_HTTPService'][_0x15fc7d(0x34a)](_0x243cce,{'body':_0x380d4b}))[_0x15fc7d(0x175)][_0x15fc7d(0x140)];}async['batchAllowed'](_0xde6861){const _0x52ed12=_0x318ac4;let _0x375027=this[_0x52ed12(0x399)]()+_0x52ed12(0x3cf);return(await this['_HTTPService'][_0x52ed12(0x34a)](_0x375027,{'body':{'requests':_0xde6861}}))['body'][_0x52ed12(0x293)];}async[_0x318ac4(0x2fd)](_0x4580b5){const _0x2edb8c=_0x318ac4;let _0x14b1f9=this[_0x2edb8c(0x399)]()+'/'+_0x4580b5['objectType']+_0x2edb8c(0x396),_0x5cadc0=await this[_0x2edb8c(0x13a)]['post'](_0x14b1f9,{'body':_0x4580b5});return{'roles':_0x5cadc0[_0x2edb8c(0x175)]['roles'],'actions':_0x5cadc0[_0x2edb8c(0x175)]['actions']};}async[_0x318ac4(0x134)](_0x3712bb){const _0x4a346d=_0x318ac4;let _0x6f2bf9=this[_0x4a346d(0x399)]()+_0x4a346d(0x3e6);await this[_0x4a346d(0x13a)]['delete'](_0x6f2bf9,{'params':{'collaboratorID':_0x3712bb['collaboratorID'],'objectID':_0x3712bb[_0x4a346d(0x10b)],'unitID':_0x3712bb['unitID']}});}async[_0x318ac4(0x377)](_0x27eb28){const _0x133329=_0x318ac4;let _0x4e3348=this[_0x133329(0x399)]()+_0x133329(0x3e6);await this['_HTTPService']['patch'](_0x4e3348,{'body':_0x27eb28});}async[_0x318ac4(0x26b)](_0x1cdfa8){const _0x555573=_0x318ac4;let _0x478c09=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x555573(0x13a)][_0x555573(0x34a)](_0x478c09,{'body':_0x1cdfa8});}async[_0x318ac4(0x27e)](_0x5699e1){const _0x59b359=_0x318ac4;let _0x3fb243=this[_0x59b359(0x399)]()+_0x59b359(0x3e6),_0x5c6e16=await this[_0x59b359(0x13a)][_0x59b359(0x3c5)](_0x3fb243,{'params':{'objectID':_0x5699e1[_0x59b359(0x10b)],'unitID':_0x5699e1[_0x59b359(0x234)]}});return this['setCfgEnableObjInherit'](_0x5c6e16[_0x59b359(0x175)][_0x59b359(0x225)]??!0x1),_0x5c6e16[_0x59b359(0x175)][_0x59b359(0x3d3)];}async['putCollaborators'](_0x98c8c4){const _0x5e9b7a=_0x318ac4;let _0x642700=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x5e9b7a(0x13a)]['put'](_0x642700,{'body':_0x98c8c4});}['setCfgEnableObjInherit'](_0x42f808){const _0x70702f=_0x318ac4;this[_0x70702f(0x131)]=_0x42f808;}[_0x318ac4(0x3ef)](){const _0x2d9a7c=_0x318ac4;return this[_0x2d9a7c(0x131)];}};G=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l[_0x318ac4(0x361)])),v(0x1,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x1b7)]))],G);function it(_0x193b7c){const _0x3ba6c5=_0x318ac4;let _0x4dd32f=atob(_0x193b7c),_0x5aa56a=new Uint8Array(_0x4dd32f['length']);for(let _0x26c27a=0x0;_0x26c27a<_0x4dd32f[_0x3ba6c5(0x347)];_0x26c27a++)_0x5aa56a[_0x26c27a]=_0x4dd32f[_0x3ba6c5(0x102)](_0x26c27a);return _0x5aa56a;}function at(_0x27fc04){const _0x222543=_0x318ac4;let _0x3bbec0='';for(let _0xc61e6a=0x0;_0xc61e6a<_0x27fc04[_0x222543(0x347)];_0xc61e6a++)_0x3bbec0+=String['fromCharCode'](_0x27fc04[_0xc61e6a]);return btoa(_0x3bbec0);}function ot(_0x1f903a,_0x283810){const _0x5e49b1=_0x318ac4;let _0x21fcf5=it(_0x283810),_0x4b7066=(0x0,f[_0x5e49b1(0x3ac)])(0x10);return at((0x0,f[_0x5e49b1(0x121)])(_0x4b7066,(0x0,d['cbc'])(_0x21fcf5,_0x4b7066)['encrypt']((0x0,f[_0x5e49b1(0xe9)])(_0x1f903a))));}function st(){const _0x339628=_0x318ac4;let _0x1b3e2c=(0x0,u['getGlobalObject'])()[_0x339628(0xfc)];if(typeof window<'u'&&window[_0x339628(0x2c8)]!==void 0x0&&_0x1b3e2c){let _0x2d1a54={'time':Math[_0x339628(0x28d)](Date[_0x339628(0x115)]()/0x3e8),'domain':location[_0x339628(0xed)]};return ot(JSON['stringify'](_0x2d1a54),_0x1b3e2c);}}let K=class{constructor(_0x393109){const _0x441dbc=_0x318ac4;this[_0x441dbc(0x13d)]=_0x393109,this['_initRequestHeader']();}[_0x318ac4(0x307)](){const _0xdd51e0=_0x318ac4;this[_0xdd51e0(0x13d)][_0xdd51e0(0x11b)]({'interceptor':(_0x23474f,_0x123497)=>{const _0x286e9b=_0xdd51e0;let _0x167444=st();return _0x167444&&_0x23474f[_0x286e9b(0x389)]['set']('x-univer-host',_0x167444),_0x123497(_0x23474f);}});}};K=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l['HTTPService']))],K);let q=class extends t[_0x318ac4(0x269)]{constructor(_0x4f66d4,_0x56901b,_0x4dda84){const _0x4be3eb=_0x318ac4;super(),this[_0x4be3eb(0x2fa)]=_0x4f66d4,this[_0x4be3eb(0x28a)]=_0x56901b,this['_localCacheService']=_0x4dda84,g(this,_0x4be3eb(0x2f9),new i['BehaviorSubject'](null)),g(this,_0x4be3eb(0x294),new i[(_0x4be3eb(0x164))]()),g(this,_0x4be3eb(0x372),this[_0x4be3eb(0x2f9)]['asObservable']()),g(this,'unitLoaded$',this[_0x4be3eb(0x294)]['asObservable']());}[_0x318ac4(0x171)](){const _0x565eb2=_0x318ac4;super['dispose'](),this['_unitLoaded$'][_0x565eb2(0x129)](),this[_0x565eb2(0x2f9)]['complete']();}async['loadUnitOfRevision'](_0x2abbe6,_0x77ce4a,_0x110723,_0x44defb){const _0x6f7c48=_0x318ac4;this[_0x6f7c48(0x2f9)][_0x6f7c48(0x322)]({'unitId':_0x2abbe6,'type':_0x77ce4a,'subUnitId':_0x44defb});let _0x3ccac5=null;switch(_0x77ce4a){case t[_0x6f7c48(0x27b)]['UNIVER_SHEET']:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x14b)](_0x2abbe6,_0x110723,void 0x0,{'initialSubUnitId':_0x44defb});break;case t['UniverInstanceType'][_0x6f7c48(0x1db)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x107)](_0x2abbe6,_0x110723);break;case t[_0x6f7c48(0x27b)][_0x6f7c48(0x1bc)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x3bf)](_0x2abbe6,_0x110723);break;case t['UniverInstanceType'][_0x6f7c48(0x177)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x238)](_0x2abbe6,_0x110723);break;case t[_0x6f7c48(0x27b)]['UNIVER_BASE']:_0x3ccac5=await this['_snapshotService'][_0x6f7c48(0x1ed)](_0x2abbe6,_0x110723);break;case t['UniverInstanceType'][_0x6f7c48(0x1df)]:_0x3ccac5=await this[_0x6f7c48(0x28a)][_0x6f7c48(0x39e)](_0x2abbe6,_0x110723);break;default:this[_0x6f7c48(0x2fa)][_0x6f7c48(0x36b)](_0x6f7c48(0x33b),_0x6f7c48(0x3d6));break;}return _0x3ccac5&&this[_0x6f7c48(0x294)][_0x6f7c48(0x322)](_0x3ccac5),_0x3ccac5;}async[_0x318ac4(0x260)](_0x458b23,_0x35fb11,_0x3d9d5d){const _0x5ed259=_0x318ac4;var _0x43e65f;this[_0x5ed259(0x2f9)][_0x5ed259(0x322)]({'unitId':_0x458b23,'type':_0x35fb11,'subUnitId':_0x3d9d5d});let _0x219ffa=0x0,_0x3d492e=await((_0x43e65f=this['_localCacheService'])==null?void 0x0:_0x43e65f[_0x5ed259(0x10d)](_0x458b23));return _0x3d492e&&(_0x3d492e[_0x5ed259(0x181)]||_0x3d492e[_0x5ed259(0x11a)][_0x5ed259(0x347)]!==0x0)&&(_0x219ffa=_0x3d492e['rev']),_0x219ffa===0x0&&this[_0x5ed259(0x2fa)][_0x5ed259(0x195)](_0x5ed259(0x33b),_0x5ed259(0x1af)),this['loadUnitOfRevision'](_0x458b23,_0x35fb11,_0x219ffa,_0x3d9d5d);}};q=y([v(0x0,t[_0x318ac4(0x28c)]),v(0x1,(0x0,t[_0x318ac4(0x394)])(e['SnapshotService'])),v(0x2,(0x0,t[_0x318ac4(0x2b2)])(x))],q);let J=class{constructor(_0x570dc7,_0x5a4159,_0x3de19d){const _0x7c9e43=_0x318ac4;this[_0x7c9e43(0x13d)]=_0x570dc7,this[_0x7c9e43(0x3e9)]=_0x5a4159,this[_0x7c9e43(0x1b9)]=_0x3de19d,g(this,_0x7c9e43(0xef),0x0),g(this,_0x7c9e43(0x2b3),new i['Subject']()),g(this,_0x7c9e43(0x374),this[_0x7c9e43(0x2b3)]),g(this,_0x7c9e43(0x282),new Map());}[_0x318ac4(0x222)](_0x3db9fe){const _0x21e1ab=_0x318ac4;this['_waitCount']=_0x3db9fe,this[_0x21e1ab(0x2b3)][_0x21e1ab(0x322)](_0x3db9fe);}['getImageSourceCache'](_0x103c11,_0x5595da){const _0x3d7f84=_0x318ac4;if(_0x5595da===t[_0x3d7f84(0x1d7)]['BASE64']){let _0x375b94=new Image();return _0x375b94[_0x3d7f84(0x16d)]=_0x103c11,_0x375b94;}return this[_0x3d7f84(0x282)]['get'](_0x103c11);}['addImageSourceCache'](_0xe91b81,_0x57b1e0,_0x1d1d2a){const _0x5d9262=_0x318ac4;_0x57b1e0!==t[_0x5d9262(0x1d7)][_0x5d9262(0x150)]&&_0x1d1d2a!=null&&this[_0x5d9262(0x282)][_0x5d9262(0x123)](_0xe91b81,_0x1d1d2a);}async[_0x318ac4(0x272)](_0x2d8f31){const _0xdc88de=_0x318ac4;try{let _0x411926=this[_0xdc88de(0x38f)](this['_getSignURL'](),''+_0x2d8f31),_0xd5a0ac=(await this['_httpService']['get'](_0x411926))['body'];if(_0xd5a0ac['error']&&_0xd5a0ac[_0xdc88de(0x36b)]['code']===a[_0xdc88de(0x1cb)]['OK']){let _0x222d7e=(0x0,t['resolveWithBasePath'])(_0xd5a0ac[_0xdc88de(0x3b4)],this[_0xdc88de(0x266)]());return Promise[_0xdc88de(0x239)](_0x222d7e);}return Promise[_0xdc88de(0x3a6)](_0xd5a0ac[_0xdc88de(0x36b)]);}catch(_0x3f0bff){return Promise[_0xdc88de(0x3a6)](_0x3f0bff);}}async[_0x318ac4(0x34b)](_0x25ba97){const _0x39fdc9=_0x318ac4;let _0x25c5c5='';if(!p[_0x39fdc9(0x3c9)][_0x39fdc9(0xfa)](_0x25ba97[_0x39fdc9(0x1cf)]))return this['_decreaseWaiting'](),Promise[_0x39fdc9(0x3a6)](Error(t[_0x39fdc9(0x38b)][_0x39fdc9(0x35d)]));if(_0x25ba97[_0x39fdc9(0x14e)]>(0x0,p[_0x39fdc9(0x127)])())return this['_decreaseWaiting'](),Promise['reject'](Error(t['ImageUploadStatusType'][_0x39fdc9(0xf4)]));try{let _0xd451a2=new FormData();_0xd451a2['append'](_0x39fdc9(0x119),_0x25ba97);let _0x3231ec=this['_univerInstanceService']['getFocusedUnit'](),_0x308142=_0x3231ec==null?void 0x0:_0x3231ec['getUnitId']();if(!_0x308142)throw Error(_0x39fdc9(0x218));let _0x346528=this[_0x39fdc9(0x24f)]()+_0x39fdc9(0x10a)+_0x25ba97[_0x39fdc9(0x14e)][_0x39fdc9(0x319)]()+_0x39fdc9(0x39b)+a[_0x39fdc9(0xf3)][_0x39fdc9(0x34c)]+_0x39fdc9(0x209)+encodeURIComponent(_0x308142),_0x51e3bf={'body':_0xd451a2},_0x445733=(await this['_httpService'][_0x39fdc9(0x34a)](_0x346528,_0x51e3bf))[_0x39fdc9(0x175)];if(typeof _0x445733['FileId']!=_0x39fdc9(0x30b))return this[_0x39fdc9(0x147)](),Promise[_0x39fdc9(0x3a6)](Error(t[_0x39fdc9(0x38b)][_0x39fdc9(0x336)]));_0x25c5c5=_0x445733[_0x39fdc9(0x2c1)];}catch{return this[_0x39fdc9(0x147)](),Promise[_0x39fdc9(0x3a6)](Error(t[_0x39fdc9(0x38b)]['ERROR_IMAGE']));}return new Promise((_0x5b501f,_0x2d0357)=>{const _0x224b8d=_0x39fdc9;let _0x302e8f=new FileReader();_0x302e8f[_0x224b8d(0x2f3)](_0x25ba97),_0x302e8f[_0x224b8d(0x295)]=_0x37615b=>{const _0x4fff9a=_0x224b8d;var _0x469792;let _0x3fbff=(_0x469792=_0x37615b['target'])==null?void 0x0:_0x469792[_0x4fff9a(0x24b)];if(_0x3fbff==null){this[_0x4fff9a(0x147)](),_0x2d0357(Error(t[_0x4fff9a(0x38b)][_0x4fff9a(0x336)]));return;}_0x5b501f({'imageId':(0x0,t[_0x4fff9a(0x2f0)])(0x6),'imageSourceType':t[_0x4fff9a(0x1d7)]['UUID'],'source':_0x25c5c5,'base64Cache':_0x3fbff,'status':t[_0x4fff9a(0x38b)][_0x4fff9a(0x30d)]}),this[_0x4fff9a(0x147)]();};});}[_0x318ac4(0x24f)](){const _0x49a685=_0x318ac4;let _0x56f5a9=this[_0x49a685(0x3e9)][_0x49a685(0x39f)](m);return(_0x56f5a9==null?void 0x0:_0x56f5a9[_0x49a685(0x297)])??_0x49a685(0x342);}[_0x318ac4(0x2bb)](){const _0x1bcb70=_0x318ac4;let _0x5ad111=this[_0x1bcb70(0x3e9)][_0x1bcb70(0x39f)](m);return(_0x5ad111==null?void 0x0:_0x5ad111[_0x1bcb70(0x215)])??'/universer-api/file/{fileID}/sign-url';}[_0x318ac4(0x266)](){const _0x1cf273=_0x318ac4;let _0x4e4805=this['_configService'][_0x1cf273(0x39f)](m);return(_0x4e4805==null?void 0x0:_0x4e4805[_0x1cf273(0x3a1)])??location[_0x1cf273(0x17d)];}[_0x318ac4(0x38f)](_0x12dd9c,_0x1cac73){const _0x4c1c90=_0x318ac4;return _0x12dd9c['replace'](_0x4c1c90(0x113),_0x1cac73);}[_0x318ac4(0x147)](){const _0x283a2c=_0x318ac4;--this[_0x283a2c(0xef)],this['_change$'][_0x283a2c(0x322)](this[_0x283a2c(0xef)]);}};J=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(l['HTTPService'])),v(0x1,t[_0x318ac4(0x1b7)]),v(0x2,(0x0,t[_0x318ac4(0x394)])(t[_0x318ac4(0x245)]))],J);let Y=class{constructor(_0x3af2bc,_0x2f3502){const _0x36f8dd=_0x318ac4;this[_0x36f8dd(0x3e9)]=_0x3af2bc,this[_0x36f8dd(0x13a)]=_0x2f3502;}[_0x318ac4(0x399)](){const _0x251b41=_0x318ac4;let _0x6ab565=this['_configService']['getConfig'](m);return(_0x6ab565==null?void 0x0:_0x6ab565[_0x251b41(0x199)])??_0x251b41(0xfb);}async[_0x318ac4(0x2c4)](_0x51d8ab){const _0x2e07fc=_0x318ac4;let _0x12af41=this[_0x2e07fc(0x399)]()+_0x2e07fc(0x3e6);return{'list':[{'title':_0x2e07fc(0x280),'mentions':(await this['_HTTPService']['get'](_0x12af41,{'params':{'objectID':_0x51d8ab[_0x2e07fc(0x19b)],'unitID':_0x51d8ab[_0x2e07fc(0x19b)]}}))[_0x2e07fc(0x175)]['collaborators'][_0x2e07fc(0x2b6)](_0x50573d=>({'objectId':_0x50573d['id'],'name':_0x50573d[_0x2e07fc(0x1c3)]['name'],'metadata':{'icon':_0x50573d['subject']['avatar']},'label':_0x50573d['subject'][_0x2e07fc(0x1f1)],'objectType':t[_0x2e07fc(0x167)][_0x2e07fc(0x22f)]})),'metadata':{},'type':t['MentionType'][_0x2e07fc(0x22f)]}]};}};Y=y([v(0x0,(0x0,t[_0x318ac4(0x394)])(t['IConfigService'])),v(0x1,(0x0,t[_0x318ac4(0x394)])(l['HTTPService']))],Y);function _0x2ea1(_0x23d969,_0x1bad6e){_0x23d969=_0x23d969-0xd3;const _0x529cc9=_0x529c();let _0x2ea184=_0x529cc9[_0x23d969];return _0x2ea184;}let X=class extends t[_0x318ac4(0x269)]{constructor(_0x2eb221,_0x584c2e,_0x76543b,_0x4208c8,_0x34e698){const _0x1ddd41=_0x318ac4;super(),this[_0x1ddd41(0x1d8)]=_0x2eb221,this[_0x1ddd41(0x1b9)]=_0x584c2e,this[_0x1ddd41(0x198)]=_0x76543b,this[_0x1ddd41(0x2e8)]=_0x4208c8,this[_0x1ddd41(0x20b)]=_0x34e698,this[_0x1ddd41(0x214)](),this[_0x1ddd41(0x31d)]();}[_0x318ac4(0x31d)](){const _0x58850d=_0x318ac4;let _0x3c45b9=async _0x276332=>{const _0x15fc70=_0x2ea1;(await this[_0x15fc70(0x2e8)][_0x15fc70(0x28f)](_0x276332))['event$'][_0x15fc70(0x304)]((0x0,s[_0x15fc70(0x27f)])(_0x109fb1=>_0x109fb1[_0x15fc70(0x1da)]===e['CollaborationEvent'][_0x15fc70(0x276)]),(0x0,s['takeUntil'])(this[_0x15fc70(0x16a)]))[_0x15fc70(0x126)](_0x4873db=>{const _0x561f8b=_0x15fc70;let {reason:_0x1f24c5}=_0x4873db['data'];this[_0x561f8b(0x20b)]['emitEvent']({'id':_0x561f8b(0x39c),'data':_0x1f24c5}),this[_0x561f8b(0x198)][_0x561f8b(0x311)](new r[(_0x561f8b(0x2d3))](_0x276332)['id'],!0x1),this[_0x561f8b(0x2e8)][_0x561f8b(0x385)](_0x276332);});};(0x0,i[_0x58850d(0xe4)])(this[_0x58850d(0x1b9)][_0x58850d(0x2df)](t[_0x58850d(0x27b)][_0x58850d(0x204)]),this[_0x58850d(0x1b9)]['getTypeOfUnitAdded$'](t[_0x58850d(0x27b)][_0x58850d(0x1db)]),this[_0x58850d(0x1b9)][_0x58850d(0x2df)](t['UniverInstanceType'][_0x58850d(0x177)]),this[_0x58850d(0x1b9)][_0x58850d(0x2df)](t[_0x58850d(0x27b)][_0x58850d(0x30c)]))[_0x58850d(0x304)]((0x0,s[_0x58850d(0x2b6)])(_0x1656d2=>_0x1656d2['unit'][_0x58850d(0xd5)]()),(0x0,s[_0x58850d(0x27f)])(_0x14d3a8=>!(0x0,t[_0x58850d(0x184)])(_0x14d3a8)),(0x0,s['takeUntil'])(this[_0x58850d(0x16a)]))[_0x58850d(0x126)](_0x3b7889=>{_0x3c45b9(_0x3b7889);});}['_initUnitPermissionChange'](){const _0x1c76ae=_0x318ac4;let _0x20df47=async _0x4e9ac3=>{const _0x85aff5=_0x2ea1;let _0x17f43b=await this[_0x85aff5(0x2e8)][_0x85aff5(0x28f)](_0x4e9ac3),_0x2e50e4=this[_0x85aff5(0x1d8)]['get'](r[_0x85aff5(0x255)]);_0x17f43b[_0x85aff5(0x21b)][_0x85aff5(0x304)]((0x0,s[_0x85aff5(0x27f)])(_0x1a99d5=>_0x1a99d5['eventID']===e[_0x85aff5(0x364)][_0x85aff5(0x357)]),(0x0,s[_0x85aff5(0x25e)])(this[_0x85aff5(0x16a)]))[_0x85aff5(0x126)](_0x27c8a6=>{const _0x15af1c=_0x85aff5;let {objectId:_0x2c9ffc}=_0x27c8a6[_0x15af1c(0x1ec)];_0x2c9ffc===_0x4e9ac3?_0x2e50e4[_0x15af1c(0x12a)](_0x4e9ac3):_0x2e50e4[_0x15af1c(0x2c6)](_0x4e9ac3,_0x2c9ffc);});};(0x0,i[_0x1c76ae(0xe4)])(this['_univerInstanceService'][_0x1c76ae(0x2df)](t['UniverInstanceType'][_0x1c76ae(0x204)]))[_0x1c76ae(0x304)]((0x0,s[_0x1c76ae(0x2b6)])(_0x2010d2=>_0x2010d2[_0x1c76ae(0x2a6)][_0x1c76ae(0xd5)]()),(0x0,s['filter'])(_0x3781fe=>!(0x0,t[_0x1c76ae(0x184)])(_0x3781fe)),(0x0,s['takeUntil'])(this[_0x1c76ae(0x16a)]))[_0x1c76ae(0x126)](_0x2c7e09=>{_0x20df47(_0x2c7e09);});}};X=y([v(0x0,(0x0,t['Inject'])(t[_0x318ac4(0x37e)])),v(0x1,t[_0x318ac4(0x245)]),v(0x2,t[_0x318ac4(0x191)]),v(0x3,(0x0,t[_0x318ac4(0x394)])(V)),v(0x4,(0x0,t[_0x318ac4(0x394)])(_))],X);let Z=class{constructor(_0x3f1b99,_0x3f30c4){const _0x3627f7=_0x318ac4;this[_0x3627f7(0x3e9)]=_0x3f1b99,this[_0x3627f7(0x13d)]=_0x3f30c4;}async[_0x318ac4(0x137)](_0xc847bd,_0x21a7d5){const _0x25502c=_0x318ac4;var _0x12a66b;let {unitID:_0xc93ee8,type:_0x36bd73,revision:_0x3699b0=0x0}=_0x21a7d5,_0x2c6428=this[_0x25502c(0x335)]()+'/'+_0x36bd73+_0x25502c(0x331)+_0xc93ee8+_0x25502c(0x18b)+_0x3699b0,_0x58c8a8=(await this['_httpService']['get'](_0x2c6428))['body'],_0x34152d=(_0x12a66b=_0x58c8a8['snapshot'])==null?void 0x0:_0x12a66b[_0x25502c(0x2bf)];if(_0x34152d){let _0x40117c=_0x34152d==null?void 0x0:_0x34152d[_0x25502c(0x1bd)];_0x34152d[_0x25502c(0x1bd)]=e[_0x25502c(0x201)]['encode']((0x0,e[_0x25502c(0x354)])(_0x40117c)),Object[_0x25502c(0xe0)](_0x34152d[_0x25502c(0x1d5)])[_0x25502c(0x2cc)](([,_0x3c0132])=>{const _0x456814=_0x25502c;let _0x2c413a=_0x3c0132[_0x456814(0x1bd)];_0x3c0132['originalMeta']=e['textEncoder'][_0x456814(0x3dc)]((0x0,e[_0x456814(0x354)])(_0x2c413a));});}return _0x58c8a8;}async[_0x318ac4(0x32d)](_0xd0aa06,_0x16be99){const _0x17d660=_0x318ac4;let {unitID:_0x200dec,type:_0x4a9f1d,blockID:_0xd248aa}=_0x16be99,_0x3e8d99=this[_0x17d660(0x2de)]()+'/'+_0x4a9f1d+_0x17d660(0x331)+_0x200dec+_0x17d660(0x1fe)+_0xd248aa;return(await this[_0x17d660(0x13d)]['get'](_0x3e8d99))[_0x17d660(0x175)];}async[_0x318ac4(0x1b0)](_0x1ba626,_0x4556d3){const _0x150625=_0x318ac4;let {unitID:_0x405f06,type:_0x311d01,blockID:_0x1f69b8}=_0x4556d3,_0x469040=this[_0x150625(0x2de)]()+_0x150625(0x1fe)+_0x311d01+_0x150625(0x331)+_0x405f06+_0x150625(0x1fe)+_0x1f69b8;return(await this[_0x150625(0x13d)][_0x150625(0x3c5)](_0x469040))['body'];}async['fetchMissingChangesets'](_0x1746e9,_0x2b9918){const _0x463f33=_0x318ac4;let {unitID:_0x20bdb0,type:_0x5e43fb,from:_0x1c71a9,to:_0x2485fe}=_0x2b9918,_0x132ac4=this['_getAPIPrefix']()+'/'+_0x5e43fb+'/unit/'+_0x20bdb0+_0x463f33(0x271)+_0x1c71a9+_0x463f33(0x3e8)+_0x2485fe;return(await this['_httpService'][_0x463f33(0x3c5)](_0x132ac4))[_0x463f33(0x175)];}['getSnapshotAPIPath'](){const _0x52e2a6=_0x318ac4;return this[_0x52e2a6(0x3e9)][_0x52e2a6(0x39f)]('SNAPSHOT_URL_KEY')??this['_getAPIPrefix']();}[_0x318ac4(0x2de)](){const _0x15d319=_0x318ac4;let _0xc90da6=this['_configService'][_0x15d319(0x39f)](m);return(_0xc90da6==null?void 0x0:_0xc90da6['snapshotServerUrl'])??_0x15d319(0x173);}async['getResourcesRequest'](_0x132164,_0x5bb82c){const _0x47387c=_0x318ac4;let _0x3c6fc6=_0x47387c(0x101)+_0x5bb82c[_0x47387c(0x1cf)]+_0x47387c(0x331)+_0x5bb82c[_0x47387c(0x234)]+_0x47387c(0x1c9);return(await this[_0x47387c(0x13d)][_0x47387c(0x3c5)](_0x3c6fc6,{'params':{'resourceId':JSON[_0x47387c(0x290)](_0x5bb82c[_0x47387c(0x2e1)])}}))[_0x47387c(0x175)];}[_0x318ac4(0x284)](){const _0x2b5ad0=_0x318ac4;throw Error(_0x2b5ad0(0x366));}['updateSnapshot'](){const _0x543c5e=_0x318ac4;throw Error(_0x543c5e(0x366));}[_0x318ac4(0x1c7)](){const _0x4bb5cd=_0x318ac4;throw Error(_0x4bb5cd(0x366));}[_0x318ac4(0x2d8)](){const _0x256557=_0x318ac4;throw Error(_0x256557(0x366));}[_0x318ac4(0x273)](){const _0x38173e=_0x318ac4;throw Error(_0x38173e(0x366));}[_0x318ac4(0x159)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};Z=y([v(0x0,t[_0x318ac4(0x1b7)]),v(0x1,(0x0,t[_0x318ac4(0x394)])(l['HTTPService']))],Z);let Q=class extends t['LocalUndoRedoService']{constructor(_0x6fed0e,_0x488bfc,_0x391b29,_0x4f13fc,_0x175bdb,_0x4f76b3){const _0x8cd8fd=_0x318ac4;super(_0x6fed0e,_0x488bfc,_0x391b29,_0x4f13fc),this[_0x8cd8fd(0x1a4)]=_0x175bdb,this['_logService']=_0x4f76b3;}[_0x318ac4(0x35e)](_0x50b9a2,_0x89f3c7){const _0x53949a=_0x318ac4;let _0x538c00=this[_0x53949a(0x1a5)](_0x50b9a2);if(_0x538c00)try{let _0x10daf3=this['_transformStack'](_0x538c00,_0x89f3c7);this[_0x53949a(0xf5)](_0x50b9a2,_0x10daf3);}catch(_0x232aee){this[_0x53949a(0x2fa)][_0x53949a(0x36b)](_0x53949a(0x25a),_0x232aee),this['_clearUndo'](_0x50b9a2);}let _0x30c10b=this[_0x53949a(0x1f6)](_0x50b9a2);if(_0x30c10b)try{let _0x565381=this[_0x53949a(0x326)](_0x30c10b,_0x89f3c7);this['_substituteRedoStack'](_0x50b9a2,_0x565381);}catch(_0x4580fc){this['_logService'][_0x53949a(0x36b)](_0x4580fc),this[_0x53949a(0x38a)](_0x50b9a2);}}[_0x318ac4(0x2b7)](_0x2fa7a4){const _0x46a790=_0x318ac4;let _0x99c5af=this[_0x46a790(0x1a5)](_0x2fa7a4);_0x99c5af&&(_0x99c5af['length']=0x0,this[_0x46a790(0x362)]());}[_0x318ac4(0x38a)](_0x55c2ad){const _0x498c42=_0x318ac4;let _0x5b3031=this[_0x498c42(0x1f6)](_0x55c2ad);_0x5b3031&&(_0x5b3031[_0x498c42(0x347)]=0x0,this[_0x498c42(0x362)]());}[_0x318ac4(0xf5)](_0x4cf6fd,_0x46250e){const _0x39faa1=_0x318ac4;this['_undoStacks'][_0x39faa1(0x123)](_0x4cf6fd,_0x46250e),this[_0x39faa1(0x362)]();}[_0x318ac4(0x144)](_0x1fe284,_0x156cad){this['_redoStacks']['set'](_0x1fe284,_0x156cad),this['_updateStatus']();}[_0x318ac4(0x326)](_0x7cafc0,_0x103ef9){const _0x2b8739=_0x318ac4;let _0x29259a=[],_0x2ae7de=_0x103ef9,_0x57157c=_0x103ef9;for(let _0x355c83=_0x7cafc0[_0x2b8739(0x347)]-0x1;_0x355c83>=0x0;_0x355c83--){let {unitID:_0x4bc16d,undoMutations:_0x1d1ee1,redoMutations:_0x1181bf}=_0x7cafc0[_0x355c83],_0x2b841e=this[_0x2b8739(0x1a4)][_0x2b8739(0x19a)](_0x2ae7de,_0x1d1ee1),_0x29c9bb=this['_transformService'][_0x2b8739(0x19a)](_0x57157c,_0x1181bf);if((0x0,e[_0x2b8739(0x397)])(_0x2b841e)||(0x0,e[_0x2b8739(0x397)])(_0x29c9bb)){this[_0x2b8739(0x2fa)][_0x2b8739(0x36b)]('[CollaborationUndoRedoService]','transformStack\x20failed!',_0x2b841e,_0x29c9bb);break;}_0x2ae7de=_0x2b841e[_0x2b8739(0x15c)],_0x57157c=_0x29c9bb[_0x2b8739(0x15c)],_0x29259a['push']({'unitID':_0x4bc16d,'undoMutations':_0x2b841e['m2Prime'],'redoMutations':_0x29c9bb[_0x2b8739(0x1fd)]});}return _0x29259a['reverse']();}};Q=y([v(0x0,t['IUniverInstanceService']),v(0x1,t['ICommandService']),v(0x2,t[_0x318ac4(0x1e9)]),v(0x3,t[_0x318ac4(0x1b7)]),v(0x4,e[_0x318ac4(0x28e)]),v(0x5,t[_0x318ac4(0x28c)])],Q);let $=class extends t[_0x318ac4(0x375)]{constructor(_0x2c7144=ee,_0x30ae90,_0x2da6e4,_0x1be3a7){const _0x45f825=_0x318ac4;super(),this[_0x45f825(0x378)]=_0x2c7144,this[_0x45f825(0x2fa)]=_0x30ae90,this['_injector']=_0x2da6e4,this[_0x45f825(0x3e9)]=_0x1be3a7;let {..._0x15fdc4}=(0x0,t['merge'])({},ee,this['_config']);if(!_0x15fdc4[_0x45f825(0x1fa)])throw Error(_0x45f825(0x3c1));this[_0x45f825(0x378)]=_0x15fdc4,this[_0x45f825(0x3e9)][_0x45f825(0x2ed)](m,_0x15fdc4);}[_0x318ac4(0x23e)](){const _0x3087d6=_0x318ac4;this['_registerDependencies'](),this[_0x3087d6(0x12b)]();}[_0x318ac4(0x1b6)](){const _0x135f08=_0x318ac4;var _0x1f4600,_0x481a36;this[_0x135f08(0x1d8)]['has'](t[_0x135f08(0x29f)])&&this[_0x135f08(0x2fa)][_0x135f08(0x36b)]('[UniverCollaborationClientPlugin]',_0x135f08(0x3ba));let _0x511288=(0x0,t[_0x135f08(0x3de)])([[t[_0x135f08(0x29f)],{'useClass':Q}],[Xe,{'useValue':Ze()}],[V],[b],[S],[W],[K],[ae],[X],[_],[q],[qe,{'useClass':this[_0x135f08(0x378)][_0x135f08(0x1fa)]}],[e['ISnapshotServerService'],{'useClass':Z}],[t[_0x135f08(0x202)],{'useClass':G}],[t[_0x135f08(0x316)],{'useClass':J}],[nt,{'useClass':U}],[t[_0x135f08(0x2b5)],{'useClass':Y}],[H],[tt]],(_0x1f4600=this['_config'])==null?void 0x0:_0x1f4600['override']);if(!((_0x481a36=this['_config'])!=null&&_0x481a36[_0x135f08(0x261)])){let _0x1ee2e5=_0x511288[_0x135f08(0x17f)](([_0x27d5ee])=>_0x27d5ee===C);_0x1ee2e5!==-0x1&&_0x511288[_0x135f08(0x2e0)](_0x1ee2e5,0x1);}(0x0,t[_0x135f08(0x3e7)])(this[_0x135f08(0x1d8)],_0x511288);}['_initDependencies'](){const _0x1c92c1=_0x318ac4;var _0x8830f2,_0x5402ef;if(this[_0x1c92c1(0x1d8)]['get'](l[_0x1c92c1(0x361)])[_0x1c92c1(0x11b)]({'priority':0x14,'interceptor':(0x0,l[_0x1c92c1(0x3c3)])({'maxParallel':0x6})}),!((_0x8830f2=this[_0x1c92c1(0x378)])!=null&&_0x8830f2[_0x1c92c1(0x277)])){var _0x54eacc;(_0x54eacc=this[_0x1c92c1(0x1d8)][_0x1c92c1(0x3c5)](x,t[_0x1c92c1(0x246)][_0x1c92c1(0x13e)]))==null||_0x54eacc[_0x1c92c1(0x3f6)]();}(_0x5402ef=this[_0x1c92c1(0x378)])!=null&&_0x5402ef[_0x1c92c1(0x35b)]&&(0x0,t[_0x1c92c1(0x26c)])(this[_0x1c92c1(0x1d8)],[[W]]),(0x0,t[_0x1c92c1(0x26c)])(this[_0x1c92c1(0x1d8)],[[K],[H],[X]]);}};g($,'pluginName',_0x318ac4(0x1f5)),g($,_0x318ac4(0x3e4),$e),g($,_0x318ac4(0x228),et),$=y([(0x0,t['DependentOn'])(u[_0x318ac4(0x1ba)],l[_0x318ac4(0xe6)],e['UniverCollaborationPlugin']),v(0x1,t[_0x318ac4(0x28c)]),v(0x2,(0x0,t['Inject'])(t['Injector'])),v(0x3,t[_0x318ac4(0x1b7)])],$),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x17c),{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x318ac4(0x39a),{'enumerable':!0x0,'get':function(){return k;}}),Object['defineProperty'](exports,_0x318ac4(0x25c),{'enumerable':!0x0,'get':function(){return A;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1a2),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1c4),{'enumerable':!0x0,'get':function(){return z;}}),exports[_0x318ac4(0x248)]=m,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3ce),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x318ac4(0x317),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x32c),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3a2),{'enumerable':!0x0,'get':function(){return J;}}),Object[_0x318ac4(0x34e)](exports,'CollaborationSession',{'enumerable':!0x0,'get':function(){return ve;}}),Object['defineProperty'](exports,_0x318ac4(0x386),{'enumerable':!0x0,'get':function(){return V;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x33a),{'enumerable':!0x0,'get':function(){return Ye;}}),exports[_0x318ac4(0x2a0)]=Be,exports[_0x318ac4(0x1c1)]=ie,exports['CollaborationUIEventService']=_,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x2db),{'enumerable':!0x0,'get':function(){return Q;}}),exports[_0x318ac4(0xf0)]=ae,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x318),{'enumerable':!0x0,'get':function(){return j;}}),exports['DEFAULT_COLLAB_WEB_SOCKET_URL']='ws://127.0.0.1:8000/universer-api/comb/connect',exports[_0x318ac4(0x1f3)]='/universer-api/uniscript',exports[_0x318ac4(0x33f)]=_0x318ac4(0x369),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x352),{'enumerable':!0x0,'get':function(){return q;}}),Object['defineProperty'](exports,_0x318ac4(0xf2),{'enumerable':!0x0,'get':function(){return F;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x116),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x318ac4(0x38d)]=_0x318ac4(0x1e4),exports[_0x318ac4(0x3b9)]='HEARTBEAT_TIMEOUT',exports['IAttachmentIoService']=nt,exports[_0x318ac4(0x1e6)]=Xe,exports[_0x318ac4(0x17b)]=qe,exports[_0x318ac4(0x2bc)]=x,exports['INetworkConditionService']=We,exports[_0x318ac4(0x2d4)]=C,exports['LOCAL_CACHE_INTERVAL']=0x3e8,exports[_0x318ac4(0x1b2)]=_0x318ac4(0x16e),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x283),{'enumerable':!0x0,'get':function(){return b;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1bb),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x36c),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x318ac4(0x34e)](exports,'PdfCollaborationEntity',{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x1a0),{'enumerable':!0x0,'get':function(){return O;}}),exports[_0x318ac4(0x27a)]=_0x318ac4(0x1c5),exports['RETRY_CONNECTING_MAX_COUNT_KEY']=_0x318ac4(0x3ea),exports['SessionStatus']=ge,Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3c6),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x370),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x318ac4(0x34e)](exports,_0x318ac4(0x3a7),{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x318ac4(0x1eb),{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x318ac4(0x34e)](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return D;}}),exports['UnitStatus']=xe,Object[_0x318ac4(0x34e)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x318ac4(0x3a4)]=Ze,exports[_0x318ac4(0x1d4)]=Ge,exports['getLocalCacheKey']=ye,exports[_0x318ac4(0x14a)]=Ke;
|