@univerjs-pro/collaboration-client 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/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/controllers/collaboration/changeset-submitter.d.ts +2 -2
- package/lib/types/controllers/collaboration/collaboration-entity.d.ts +4 -4
- package/lib/types/controllers/collaboration/collaboration-state.d.ts +24 -22
- package/lib/types/facade/f-event.d.ts +3 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/services/collaboration-session/collaboration-session.service.d.ts +1 -0
- package/lib/types/services/collaboration-ui-event/collaboration-ui-event.d.ts +2 -0
- 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 _0x28bbb9=_0x53d0;(function(_0x595e4b,_0x280e2d){const _0x46e188=_0x53d0,_0x5aa3db=_0x595e4b();while(!![]){try{const _0x133258=parseInt(_0x46e188(0x45d))/0x1*(-parseInt(_0x46e188(0x2ce))/0x2)+parseInt(_0x46e188(0x416))/0x3*(-parseInt(_0x46e188(0x42c))/0x4)+parseInt(_0x46e188(0x1fc))/0x5*(-parseInt(_0x46e188(0x2a7))/0x6)+-parseInt(_0x46e188(0x4f2))/0x7+parseInt(_0x46e188(0x3be))/0x8+-parseInt(_0x46e188(0x25d))/0x9*(parseInt(_0x46e188(0x4af))/0xa)+parseInt(_0x46e188(0x4c8))/0xb;if(_0x133258===_0x280e2d)break;else _0x5aa3db['push'](_0x5aa3db['shift']());}catch(_0x57c9c6){_0x5aa3db['push'](_0x5aa3db['shift']());}}}(_0x1757,0xf26c5),Object['defineProperty'](exports,Symbol[_0x28bbb9(0x315)],{'value':'Module'}));let e=require('@univerjs/network'),t=require('rxjs'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs/core'),i=require('@univerjs/docs'),a=require('@univerjs/sheets'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m='collaboration-client.config',h={};function g(_0x1ccc31){'@babel/helpers - typeof';const _0x193dcf=_0x28bbb9;return g=typeof Symbol==_0x193dcf(0x258)&&typeof Symbol['iterator']==_0x193dcf(0x302)?function(_0x13f3a7){return typeof _0x13f3a7;}:function(_0x8e196){const _0x18c4e8=_0x193dcf;return _0x8e196&&typeof Symbol==_0x18c4e8(0x258)&&_0x8e196[_0x18c4e8(0x274)]===Symbol&&_0x8e196!==Symbol['prototype']?_0x18c4e8(0x302):typeof _0x8e196;},g(_0x1ccc31);}function ee(_0x9dc7ec,_0x2a6f7d){const _0x49b740=_0x28bbb9;if(g(_0x9dc7ec)!=_0x49b740(0x25b)||!_0x9dc7ec)return _0x9dc7ec;var _0xd2bae4=_0x9dc7ec[Symbol[_0x49b740(0x2d0)]];if(_0xd2bae4!==void 0x0){var _0x417900=_0xd2bae4['call'](_0x9dc7ec,_0x2a6f7d||'default');if(g(_0x417900)!=_0x49b740(0x25b))return _0x417900;throw TypeError(_0x49b740(0x205));}return(_0x2a6f7d===_0x49b740(0x2d4)?String:Number)(_0x9dc7ec);}function te(_0x256c48){const _0x49f750=_0x28bbb9;var _0x39add3=ee(_0x256c48,_0x49f750(0x2d4));return g(_0x39add3)==_0x49f750(0x302)?_0x39add3:_0x39add3+'';}function _(_0x296558,_0x4b7012,_0x41a371){const _0x4ea6dc=_0x28bbb9;return(_0x4b7012=te(_0x4b7012))in _0x296558?Object[_0x4ea6dc(0x41f)](_0x296558,_0x4b7012,{'value':_0x41a371,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x296558[_0x4b7012]=_0x41a371,_0x296558;}var ne=class{constructor(_0x1ce8a5,_0x2596b7,_0xe9bdcd={}){const _0x319a36=_0x28bbb9;this['_send']=_0x2596b7,this[_0x319a36(0x261)]=_0xe9bdcd,_(this,'_attempt',0x0),_(this,'_firstSentAt',void 0x0),_(this,_0x319a36(0x201),void 0x0),_(this,'_maxAckTimeout',void 0x0),_(this,_0x319a36(0x1c4),0x0),_(this,_0x319a36(0x44f),0x0),_(this,_0x319a36(0x510),null),_(this,_0x319a36(0x4ee),null),_(this,_0x319a36(0x48a),null),_(this,_0x319a36(0x247),0x0),_(this,_0x319a36(0x1c7),!0x1),_(this,_0x319a36(0x2a2),void 0x0),_(this,_0x319a36(0x255),void 0x0),this[_0x319a36(0x255)]=_0x1ce8a5,this[_0x319a36(0x201)]=_0xe9bdcd['ackTimeout']??0x4e20,this[_0x319a36(0x4cc)]=Math[_0x319a36(0x3fc)](_0xe9bdcd[_0x319a36(0x4ca)]??0x1d4c0,this[_0x319a36(0x201)]),this[_0x319a36(0x2a2)]=_0xe9bdcd[_0x319a36(0x4a3)]??(()=>Date[_0x319a36(0x4a3)]()),this[_0x319a36(0x4c4)]=this[_0x319a36(0x2a2)]();}get['reqId'](){const _0x27511b=_0x28bbb9;return this[_0x27511b(0x255)];}get[_0x28bbb9(0x543)](){const _0x3e9d36=_0x28bbb9;return this[_0x3e9d36(0x439)];}get[_0x28bbb9(0x4f0)](){const _0x24f7e2=_0x28bbb9;return this[_0x24f7e2(0x44f)];}get[_0x28bbb9(0x51a)](){const _0x51a368=_0x28bbb9;return this[_0x51a368(0x2a2)]()-this[_0x51a368(0x4c4)];}[_0x28bbb9(0x260)](_0x4517a2){const _0x1434e5=_0x28bbb9;if(this[_0x1434e5(0x1c7)])return;this['_source']=_0x4517a2;let _0xcaa421=this[_0x1434e5(0x4ee)];_0xcaa421&&(this[_0x1434e5(0x4ee)]=null,this[_0x1434e5(0x2ed)](_0xcaa421));}[_0x28bbb9(0x3ef)](){const _0x35a47d=_0x28bbb9;this[_0x35a47d(0x48a)]=null;}[_0x28bbb9(0x1c1)](_0x12c0c5,_0x1cd681,_0x52f27f){const _0x16cabd=_0x28bbb9;this[_0x16cabd(0x1c7)]||(_0x52f27f&&this[_0x16cabd(0x53f)](_0x52f27f),this['armAckTimeout'](),this[_0x16cabd(0x470)](_0x12c0c5),this['_reqId']=_0x12c0c5[_0x16cabd(0x4cd)]??this['_reqId'],_0x52f27f&&this[_0x16cabd(0x451)](_0x52f27f,_0x1cd681));}[_0x28bbb9(0x25e)](){const _0x713283=_0x28bbb9;this['_schedule'](this['_ackTimeout'],_0x713283(0x23f));}['requestRetry'](){const _0x300c1d=_0x28bbb9;this[_0x300c1d(0x3d2)](this['_retryBackoff'],'should_retry');}[_0x28bbb9(0x3ac)](){const _0x39da6d=_0x28bbb9;this[_0x39da6d(0x1c7)]=!0x0,this[_0x39da6d(0x3d4)](),this[_0x39da6d(0x48a)]=null,this[_0x39da6d(0x4ee)]=null;}[_0x28bbb9(0x470)](_0x181324){const _0x5d67a1=_0x28bbb9;let _0x289cba=++this[_0x5d67a1(0x247)],_0x406055;try{_0x406055=this[_0x5d67a1(0x31a)](_0x181324,{'timeout':this['_ackTimeout']});}catch(_0x3ff000){this[_0x5d67a1(0x259)](_0x289cba,_0x3ff000);return;}_0x406055 instanceof Promise&&_0x406055[_0x5d67a1(0x4a4)](_0x5ad0b3=>this[_0x5d67a1(0x259)](_0x289cba,_0x5ad0b3));}[_0x28bbb9(0x259)](_0x164a1d,_0x50c847){const _0x147c03=_0x28bbb9;if(this[_0x147c03(0x1c7)]||_0x164a1d!==this[_0x147c03(0x247)])return;let _0x2f5981=re(_0x50c847,this[_0x147c03(0x1c4)]);_0x2f5981!==null&&this[_0x147c03(0x3d2)](_0x2f5981,_0x147c03(0x27e));}['_schedule'](_0x14b52a,_0xf8330d){const _0x5e4230=_0x28bbb9;this[_0x5e4230(0x1c7)]||(this[_0x5e4230(0x3d4)](),this[_0x5e4230(0x4ee)]=null,this[_0x5e4230(0x44f)]=_0x14b52a,this[_0x5e4230(0x510)]=setTimeout(()=>{const _0x43afd7=_0x5e4230;this[_0x43afd7(0x510)]=null,this['_source']?this[_0x43afd7(0x2ed)](_0xf8330d):this[_0x43afd7(0x4ee)]=_0xf8330d;},_0x14b52a));}[_0x28bbb9(0x2ed)](_0xb0c1d3){const _0xd32630=_0x28bbb9;let _0x5f2f53=this['_source'];if(!_0x5f2f53||this[_0xd32630(0x1c7)])return;let {changeset:_0x54a2b5,unsyncedMutationCount:_0x4fdc76}=_0x5f2f53();this[_0xd32630(0x53f)](_0xb0c1d3),this[_0xd32630(0x25e)](),this[_0xd32630(0x470)](_0x54a2b5),this[_0xd32630(0x255)]=_0x54a2b5[_0xd32630(0x4cd)]??this[_0xd32630(0x255)],this['_notifyResend'](_0xb0c1d3,_0x4fdc76);}[_0x28bbb9(0x53f)](_0x340792){const _0x3f3b03=_0x28bbb9;this[_0x3f3b03(0x439)]+=0x1,_0x340792==='should_retry'||_0x340792===_0x3f3b03(0x27e)?this[_0x3f3b03(0x1c4)]=this['_retryBackoff']===0x0?0x3e8:Math[_0x3f3b03(0x492)](this[_0x3f3b03(0x1c4)]*0x2,0x4e20):_0x340792===_0x3f3b03(0x23f)&&(this['_ackTimeout']=Math[_0x3f3b03(0x492)](this[_0x3f3b03(0x201)]*0x2,this[_0x3f3b03(0x4cc)]));}['_notifyResend'](_0x3c175a,_0x3d2cb3){const _0x354118=_0x28bbb9;var _0x5f4cc7,_0x448dd7;this[_0x354118(0x1c7)]||(_0x5f4cc7=(_0x448dd7=this[_0x354118(0x261)])[_0x354118(0x526)])==null||_0x5f4cc7[_0x354118(0x446)](_0x448dd7,{'reqId':this[_0x354118(0x255)],'reason':_0x3c175a,'attempt':this['_attempt'],'elapsedMs':this[_0x354118(0x51a)],'unsyncedMutationCount':_0x3d2cb3,'nextDelayMs':this['_ackTimeout']});}['_clearTimer'](){const _0x57958c=_0x28bbb9;this[_0x57958c(0x510)]!=null&&(clearTimeout(this[_0x57958c(0x510)]),this[_0x57958c(0x510)]=null);}};function re(_0x3abeb6,_0x5624ea){const _0x2c8002=_0x28bbb9;if(_0x3abeb6 instanceof t[_0x2c8002(0x4bc)])return null;if(_0x3abeb6 instanceof e['HTTPResponseError']){let _0x501ec1=_0x3abeb6[_0x2c8002(0x290)]??0x0;return _0x501ec1===0x0||_0x501ec1===0x198||_0x501ec1===0x1ad||_0x501ec1>=0x1f4?Math[_0x2c8002(0x3fc)](_0x5624ea,ie(_0x3abeb6)):null;}return _0x5624ea;}function ie(_0x14f364){const _0x33a044=_0x28bbb9;var _0x31bb9e;let _0x3c9446=(_0x31bb9e=_0x14f364[_0x33a044(0x1bd)])==null||(_0x31bb9e=_0x31bb9e['get']('retry-after'))==null?void 0x0:_0x31bb9e[0x0],_0x6eaed0=_0x3c9446===void 0x0?NaN:Number(_0x3c9446);return Number[_0x33a044(0x425)](_0x6eaed0)&&_0x6eaed0>0x0?_0x6eaed0*0x3e8:0x0;}function ae(_0x19bc83){const _0x5dff42=_0x28bbb9;return JSON[_0x5dff42(0x4d3)](_0x19bc83)[_0x5dff42(0x47a)];}let oe=function(_0x484f59){const _0x2e3d21=_0x28bbb9;return _0x484f59[_0x2e3d21(0x4da)]='OTHER_CLIENT_EDITING',_0x484f59['PERMISSION_DENIED']=_0x2e3d21(0x1d7),_0x484f59[_0x2e3d21(0x4b3)]=_0x2e3d21(0x4b3),_0x484f59[_0x2e3d21(0x503)]='CONFLICT_CACHE_CLEAR_FAILED',_0x484f59['CONFLICT']='CONFLICT',_0x484f59[_0x2e3d21(0x2f0)]=_0x2e3d21(0x2f0),_0x484f59['JOIN_ROOM_FAILED']=_0x2e3d21(0x353),_0x484f59['SOCKET_FAILED_RETRY']='SOCKET_FAILED_RETRY',_0x484f59[_0x2e3d21(0x46b)]='SOCKET_FAILED',_0x484f59[_0x2e3d21(0x20a)]=_0x2e3d21(0x20a),_0x484f59;}({});var v=class{constructor(){const _0x218013=_0x28bbb9;_(this,_0x218013(0x228),new t[(_0x218013(0x39a))]()),_(this,_0x218013(0x2f3),this[_0x218013(0x228)][_0x218013(0x32f)]());}['emitEvent'](_0x33a58e){this['_event$']['next'](_0x33a58e);}},se=class{constructor(){const _0x27ac54=_0x28bbb9;_(this,_0x27ac54(0x54d),new t[(_0x27ac54(0x39a))]()),_(this,_0x27ac54(0x224),this[_0x27ac54(0x54d)][_0x27ac54(0x32f)]());}['onCommentUpdate'](_0x37de6a){const _0x2c5971=_0x28bbb9;this[_0x2c5971(0x54d)]['next'](_0x37de6a);}};function y(_0x3d6b4a,_0x40849a){return function(_0x2a0a14,_0x5eb887){_0x40849a(_0x2a0a14,_0x5eb887,_0x3d6b4a);};}function b(_0x33dc08,_0x2dabac,_0x410ee0,_0x514fbf){const _0x521219=_0x28bbb9;var _0x25abde=arguments[_0x521219(0x47a)],_0x20b739=_0x25abde<0x3?_0x2dabac:_0x514fbf===null?_0x514fbf=Object[_0x521219(0x3f2)](_0x2dabac,_0x410ee0):_0x514fbf,_0x3eb2b6;if(typeof Reflect==_0x521219(0x25b)&&typeof Reflect['decorate']=='function')_0x20b739=Reflect[_0x521219(0x360)](_0x33dc08,_0x2dabac,_0x410ee0,_0x514fbf);else{for(var _0xa6da60=_0x33dc08[_0x521219(0x47a)]-0x1;_0xa6da60>=0x0;_0xa6da60--)(_0x3eb2b6=_0x33dc08[_0xa6da60])&&(_0x20b739=(_0x25abde<0x3?_0x3eb2b6(_0x20b739):_0x25abde>0x3?_0x3eb2b6(_0x2dabac,_0x410ee0,_0x20b739):_0x3eb2b6(_0x2dabac,_0x410ee0))||_0x20b739);}return _0x25abde>0x3&&_0x20b739&&Object[_0x521219(0x41f)](_0x2dabac,_0x410ee0,_0x20b739),_0x20b739;}let x=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x5601b1){const _0x5ab4c3=_0x28bbb9;super(),this[_0x5ab4c3(0x4b7)]=_0x5601b1,_(this,_0x5ab4c3(0x2b0),new Map()),_(this,_0x5ab4c3(0x27d),new t[(_0x5ab4c3(0x39a))]()),this[_0x5ab4c3(0x457)]((0x0,t[_0x5ab4c3(0x3e1)])(this[_0x5ab4c3(0x4b7)][_0x5ab4c3(0x3ce)](r['UniverInstanceType'][_0x5ab4c3(0x486)])[_0x5ab4c3(0x213)]((0x0,c[_0x5ab4c3(0x485)])(_0x4196d4=>_0x4196d4[_0x5ab4c3(0x3e7)]())),this[_0x5ab4c3(0x4b7)]['getTypeOfUnitDisposed$'](r[_0x5ab4c3(0x24b)][_0x5ab4c3(0x297)])[_0x5ab4c3(0x213)]((0x0,c['map'])(_0x1b30bf=>_0x1b30bf[_0x5ab4c3(0x3e7)]())),this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x5ab4c3(0x24b)]['UNIVER_BOARD'])['pipe']((0x0,c[_0x5ab4c3(0x485)])(_0x3e2cee=>_0x3e2cee[_0x5ab4c3(0x3e7)]())),this[_0x5ab4c3(0x4b7)][_0x5ab4c3(0x3ce)](r[_0x5ab4c3(0x24b)][_0x5ab4c3(0x3bb)])[_0x5ab4c3(0x213)]((0x0,c[_0x5ab4c3(0x485)])(_0x306803=>_0x306803[_0x5ab4c3(0x3e7)]())))['subscribe'](_0x3a3fc1=>this[_0x5ab4c3(0x568)](_0x3a3fc1)));}[_0x28bbb9(0x52c)](_0x403f7d){const _0x540622=_0x28bbb9;return this[_0x540622(0x2b0)][_0x540622(0x546)](_0x403f7d)?(0x0,t['of'])(this['_roomMembers']['get'](_0x403f7d)):this[_0x540622(0x27d)][_0x540622(0x213)]((0x0,c[_0x540622(0x485)])(_0x5efc94=>{const _0x545475=_0x540622;if(_0x5efc94===_0x403f7d)return this['_roomMembers'][_0x545475(0x285)](_0x5efc94);}));}['updateMember'](_0x2f3c2a,_0x55042a){const _0x30992b=_0x28bbb9;let _0x3261f8=this[_0x30992b(0x2b0)][_0x30992b(0x285)](_0x2f3c2a);_0x3261f8||(_0x3261f8=new ce(),this[_0x30992b(0x2b0)][_0x30992b(0x36a)](_0x2f3c2a,_0x3261f8),this['_roomCreated$'][_0x30992b(0x512)](_0x2f3c2a)),_0x3261f8[_0x30992b(0x434)](_0x55042a);}[_0x28bbb9(0x1d1)](_0x2c98f7,_0x556961){const _0x145000=_0x28bbb9;let _0x79b7d2=this[_0x145000(0x2b0)][_0x145000(0x285)](_0x2c98f7);_0x79b7d2&&_0x79b7d2[_0x145000(0x1d1)](_0x556961);}[_0x28bbb9(0x2f9)](_0x37c7ad){const _0xc895b3=_0x28bbb9;return this['_roomMembers'][_0xc895b3(0x285)](_0x37c7ad);}[_0x28bbb9(0x262)](_0x3b076f,_0x2fdfa7){const _0x2f6abc=_0x28bbb9;let _0x856721=this[_0x2f6abc(0x2b0)][_0x2f6abc(0x285)](_0x3b076f);if(_0x856721)return _0x856721[_0x2f6abc(0x262)](_0x2fdfa7);}[_0x28bbb9(0x568)](_0x41d259){const _0x556706=_0x28bbb9;let _0xe79f89=this[_0x556706(0x2b0)]['get'](_0x41d259);_0xe79f89&&(_0xe79f89[_0x556706(0x3ac)](),this['_roomMembers']['delete'](_0x41d259));}['dispose'](){const _0x204d50=_0x28bbb9;this[_0x204d50(0x2b0)]['forEach'](_0x1a030b=>_0x1a030b[_0x204d50(0x3ac)]()),this['_roomMembers']['clear'](),this[_0x204d50(0x27d)][_0x204d50(0x30f)]();}};x=b([y(0x0,r[_0x28bbb9(0x51c)])],x);var ce=class extends r[_0x28bbb9(0x3ad)]{constructor(..._0x5c4d20){const _0x18f845=_0x28bbb9;super(..._0x5c4d20),_(this,_0x18f845(0x30d),new Map()),_(this,_0x18f845(0x2e5),new t[(_0x18f845(0x45f))](this[_0x18f845(0x30d)])),_(this,_0x18f845(0x441),this['_members$'][_0x18f845(0x32f)]());}[_0x28bbb9(0x3ac)](){const _0x54d3b5=_0x28bbb9;this[_0x54d3b5(0x30d)][_0x54d3b5(0x311)](),this[_0x54d3b5(0x2e5)]['complete']();}['updateMember'](_0x1b77ba){const _0x2f2274=_0x28bbb9;this[_0x2f2274(0x30d)][_0x2f2274(0x36a)](_0x1b77ba[_0x2f2274(0x362)],_0x1b77ba),this[_0x2f2274(0x1d2)]();}[_0x28bbb9(0x1d1)](_0x538894){const _0x43929b=_0x28bbb9;this[_0x43929b(0x30d)][_0x43929b(0x551)](_0x538894),this[_0x43929b(0x1d2)]();}[_0x28bbb9(0x262)](_0x584756){const _0x4762ae=_0x28bbb9;return this[_0x4762ae(0x30d)][_0x4762ae(0x285)](_0x584756);}[_0x28bbb9(0x393)](){const _0x3782f5=_0x28bbb9;return Array[_0x3782f5(0x3f8)](this[_0x3782f5(0x30d)]['values']());}[_0x28bbb9(0x1d2)](){this['_members$']['next'](this['_members']);}};function le(_0x6b064c,_0x20f2ca){const _0x587b16=_0x28bbb9;if(de(_0x6b064c))return _0x20f2ca;if(_0x20f2ca[_0x587b16(0x2ff)]===n[_0x587b16(0x33f)][_0x587b16(0x296)]){let _0x4bb809=ge(_0x6b064c),_0x1f7e0b=_0x20f2ca;return{..._0x1f7e0b,'data':{..._0x1f7e0b[_0x587b16(0x350)],'unitID':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x212)],'unitType':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x3da)]??_0x1f7e0b['data'][_0x587b16(0x3da)],'changeset':_0x4bb809[_0x587b16(0x407)](_0x1f7e0b['data'][_0x587b16(0x2d9)],_e(_0x6b064c))}};}if(_0x20f2ca[_0x587b16(0x2ff)]===n[_0x587b16(0x33f)]['FETCH_MISSING']){let _0x2db5ec=_0x20f2ca;return{..._0x2db5ec,'data':{..._0x2db5ec[_0x587b16(0x350)],'unitID':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x212)],'unitType':_0x6b064c[_0x587b16(0x29d)][_0x587b16(0x3da)]??_0x2db5ec[_0x587b16(0x350)][_0x587b16(0x3da)]}};}return _0x20f2ca;}function ue(_0x5f5ced,_0x437dfc){const _0x4310ad=_0x28bbb9;if(de(_0x5f5ced))return[_0x437dfc];switch(_0x437dfc[_0x4310ad(0x2ff)]){case n[_0x4310ad(0x33f)][_0x4310ad(0x49b)]:return[fe(_0x5f5ced,_0x437dfc)];case n[_0x4310ad(0x33f)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x5f5ced,_0x437dfc)];case n[_0x4310ad(0x33f)][_0x4310ad(0x422)]:return[pe(_0x5f5ced,_0x437dfc)];default:return[_0x437dfc];}}function de(_0x2093da){const _0x32f645=_0x28bbb9;return _0x2093da['target'][_0x32f645(0x1e4)]==null&&_0x2093da[_0x32f645(0x29d)][_0x32f645(0x212)]===_0x2093da[_0x32f645(0x4f9)]&&!_0x2093da[_0x32f645(0x2d9)];}function fe(_0x19cf3e,_0x4dabf3){const _0x3b2dc4=_0x28bbb9;return{..._0x4dabf3,'data':(0x0,n[_0x3b2dc4(0x50d)])(he(_0x19cf3e,(0x0,n[_0x3b2dc4(0x4e4)])(_0x4dabf3[_0x3b2dc4(0x350)])))};}function pe(_0x5b2733,_0x43ac4d){const _0x434554=_0x28bbb9;return{..._0x43ac4d,'data':he(_0x5b2733,_0x43ac4d[_0x434554(0x350)])};}function me(_0x1878a1,_0x4057bd){const _0x522930=_0x28bbb9;let _0x533b0a=_0x4057bd[_0x522930(0x350)];return{..._0x4057bd,'data':{..._0x533b0a,'changesets':_0x533b0a[_0x522930(0x509)][_0x522930(0x485)](_0x4a6660=>(0x0,n['parseChangesetToProtocol'])(he(_0x1878a1,(0x0,n[_0x522930(0x4e4)])(_0x4a6660))))}};}function he(_0x53acd4,_0x6c88cb){const _0xa9f688=_0x28bbb9;return ge(_0x53acd4)[_0xa9f688(0x231)](_0x6c88cb,_e(_0x53acd4));}function ge(_0x324662){const _0x5360ed=_0x28bbb9;if(!_0x324662['changeset'])throw Error(_0x5360ed(0x3f6));return _0x324662[_0x5360ed(0x2d9)];}function _e(_0x4a70c7){const _0x4dfc29=_0x28bbb9;return{'localUnitId':_0x4a70c7[_0x4dfc29(0x4f9)],'unitType':_0x4a70c7[_0x4dfc29(0x3da)],'target':_0x4a70c7[_0x4dfc29(0x29d)]};}let ve=function(_0x369069){const _0x1ecc87=_0x28bbb9;return _0x369069[_0x369069[_0x1ecc87(0x237)]=0x0]=_0x1ecc87(0x237),_0x369069[_0x369069[_0x1ecc87(0x4f1)]=0x1]=_0x1ecc87(0x4f1),_0x369069[_0x369069[_0x1ecc87(0x35a)]=0x2]=_0x1ecc87(0x35a),_0x369069[_0x369069['ONLINE']=0x3]='ONLINE',_0x369069;}({});const ye={[o[_0x28bbb9(0x2e7)][_0x28bbb9(0x316)]]:'session.join-failed',[o['CmdRspCode']['JOIN_ROOM_FULL']]:_0x28bbb9(0x1e5),[o[_0x28bbb9(0x2e7)]['JOIN_ROOM_NOT_EXISTS']]:_0x28bbb9(0x4e0),[o[_0x28bbb9(0x2e7)]['JOIN_ROOM_PERMISSION_DENIED']]:_0x28bbb9(0x26e),[o[_0x28bbb9(0x2e7)][_0x28bbb9(0x44e)]]:_0x28bbb9(0x437)};let S=class extends r[_0x28bbb9(0x22c)]{get['sessionStatus'](){const _0x1ee7d1=_0x28bbb9;return this[_0x1ee7d1(0x537)]['getValue']();}constructor(_0x250ecd,_0x3e5de1,_0x3a2b56,_0x173abb,_0x390966,_0x2544f1,_0x5aa390){const _0x2a9a41=_0x28bbb9;super(),this[_0x2a9a41(0x399)]=_0x250ecd,this[_0x2a9a41(0x41e)]=_0x3a2b56,this[_0x2a9a41(0x334)]=_0x173abb,this['_commentService']=_0x390966,this[_0x2a9a41(0x3b5)]=_0x2544f1,this['_telemetryService']=_0x5aa390,_(this,'_sessionStatus$',new t[(_0x2a9a41(0x45f))](0x0)),_(this,_0x2a9a41(0x3f5),this[_0x2a9a41(0x537)]['asObservable']()),_(this,_0x2a9a41(0x228),new t[(_0x2a9a41(0x39a))]()),_(this,_0x2a9a41(0x2f3),this['_event$']['asObservable']()),_(this,_0x2a9a41(0x308),void 0x0),_(this,_0x2a9a41(0x37e),void 0x0),_(this,_0x2a9a41(0x2ee),!0x1),_(this,_0x2a9a41(0x508),null),this[_0x2a9a41(0x2ee)]=!!this[_0x2a9a41(0x553)],_0x3e5de1[_0x2a9a41(0x213)]((0x0,t[_0x2a9a41(0x418)])(this[_0x2a9a41(0x55d)]))[_0x2a9a41(0x264)](_0x5dd4f5=>{const _0x182b23=_0x2a9a41;if(_0x5dd4f5!==void 0x0){if(this[_0x182b23(0x308)]=_0x5dd4f5,_0x5dd4f5)this[_0x182b23(0x514)](_0x5dd4f5),this['_socketMessageSubscription']=_0x5dd4f5[_0x182b23(0x3fa)][_0x182b23(0x264)](_0xcbe643=>{const _0x5880d6=_0x182b23;_0xcbe643[_0x5880d6(0x1e3)]===this[_0x5880d6(0x399)][_0x5880d6(0x29d)][_0x5880d6(0x212)]&&this[_0x5880d6(0x4a6)](_0xcbe643);});else{var _0x477c32;this['_throwTelemetryCollaborationNewChangeset'](),this[_0x182b23(0x537)][_0x182b23(0x512)](0x2),(_0x477c32=this[_0x182b23(0x37e)])==null||_0x477c32[_0x182b23(0x3c7)](),this[_0x182b23(0x37e)]=null;}}});}[_0x28bbb9(0x268)](){const _0x234d90=_0x28bbb9;var _0x161b51;return((_0x161b51=this[_0x234d90(0x308)])==null?void 0x0:_0x161b51[_0x234d90(0x362)])??null;}[_0x28bbb9(0x3ac)](){const _0x1825c5=_0x28bbb9;super[_0x1825c5(0x3ac)](),this[_0x1825c5(0x326)](),this[_0x1825c5(0x55d)][_0x1825c5(0x512)](),this['dispose$']['complete']();}[_0x28bbb9(0x326)](){const _0x5aacad=_0x28bbb9;var _0x125e2f;this[_0x5aacad(0x39e)](),(_0x125e2f=this[_0x5aacad(0x308)])==null||_0x125e2f[_0x5aacad(0x1d8)]({'cmd':o[_0x5aacad(0x291)]['LEAVE'],'data':{'roomID':this['_identity'][_0x5aacad(0x29d)]['unitId']}}),this[_0x5aacad(0x228)][_0x5aacad(0x30f)](),this[_0x5aacad(0x537)][_0x5aacad(0x30f)]();}[_0x28bbb9(0x4a6)](_0x399e34){const _0x497f6e=_0x28bbb9;_0x399e34[_0x497f6e(0x329)]===o[_0x497f6e(0x291)]['JOIN']?this[_0x497f6e(0x1f9)](_0x399e34):_0x399e34[_0x497f6e(0x329)]===o[_0x497f6e(0x291)][_0x497f6e(0x540)]&&this[_0x497f6e(0x272)](_0x399e34);}[_0x28bbb9(0x514)](_0x12ed63){const _0x1e273d=_0x28bbb9;this[_0x1e273d(0x537)]['next'](0x1),_0x12ed63['send']({'cmd':o['CombCmd'][_0x1e273d(0x21f)],'routeKey':this['_identity'][_0x1e273d(0x29d)]['unitId'],'routeType':'','data':{'rooms':[{'roomID':this[_0x1e273d(0x399)][_0x1e273d(0x29d)]['unitId']}]}});}[_0x28bbb9(0x1f9)](_0x5cd57d){const _0x3f4411=_0x28bbb9;var _0x391949;if(_0x5cd57d[_0x3f4411(0x4d2)]in ye){this[_0x3f4411(0x3b5)][_0x3f4411(0x40c)]({'id':_0x3f4411(0x353),'data':ye[_0x5cd57d[_0x3f4411(0x4d2)]]}),this['_sessionStatus$'][_0x3f4411(0x512)](0x2);return;}this[_0x3f4411(0x537)]['next'](0x3);let _0x4401e7=(_0x391949=_0x5cd57d[_0x3f4411(0x350)][_0x3f4411(0x204)][this['_identity']['target'][_0x3f4411(0x212)]])==null?void 0x0:_0x391949[_0x3f4411(0x2c6)];_0x4401e7&&_0x4401e7[_0x3f4411(0x3e9)](_0xfbf782=>this[_0x3f4411(0x334)]['updateMember'](this[_0x3f4411(0x399)]['localUnitId'],_0xfbf782));}[_0x28bbb9(0x272)](_0x5ac1db){const _0x18da65=_0x28bbb9;try{let _0x488d7e=ue(this['_identity'],_0x5ac1db[_0x18da65(0x350)]);for(let _0x2778df of _0x488d7e)switch(_0x2778df['eventID']){case n['CollaborationEvent'][_0x18da65(0x313)]:this[_0x18da65(0x330)](_0x2778df),this[_0x18da65(0x228)]['next'](_0x2778df);break;case n['CollaborationEvent'][_0x18da65(0x3e8)]:this['_onUserLeave'](_0x2778df),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x31f)]:case n[_0x18da65(0x33f)][_0x18da65(0x422)]:this[_0x18da65(0x3dc)](),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x346)]:this[_0x18da65(0x41e)][_0x18da65(0x456)](_0x18da65(0x4c7)+JSON['stringify'](_0x2778df)),this[_0x18da65(0x228)][_0x18da65(0x512)](_0x2778df);break;case n[_0x18da65(0x33f)][_0x18da65(0x43c)]:this[_0x18da65(0x1cb)]['onCommentUpdate'](_0x2778df[_0x18da65(0x350)]),this['_event$'][_0x18da65(0x512)](_0x2778df);break;default:this['_event$'][_0x18da65(0x512)](_0x2778df);}}catch(_0x2815f4){this['_logService'][_0x18da65(0x456)](_0x2815f4,_0x5ac1db);}}[_0x28bbb9(0x330)](_0x1ed8aa){const _0x46cab2=_0x28bbb9;this['_memberService'][_0x46cab2(0x434)](this[_0x46cab2(0x399)][_0x46cab2(0x4f9)],_0x1ed8aa['data']);}['_onUserLeave'](_0x3ef6b8){const _0x387077=_0x28bbb9;this['_memberService']['removeMember'](this[_0x387077(0x399)][_0x387077(0x4f9)],_0x3ef6b8['data'][_0x387077(0x362)]);}async[_0x28bbb9(0x1d8)](_0x12194b,_0xc749be,_0x51e855){const _0x5a5fec=_0x28bbb9;if(this[_0x5a5fec(0x3a8)]!==0x3||!this['_socket'])throw Error(_0x5a5fec(0x414));try{let _0x1e4a69=le(this[_0x5a5fec(0x399)],_0x12194b);_0x1e4a69[_0x5a5fec(0x2ff)]===n['CollaborationEvent']['SUBMIT_CHANGESET']&&this[_0x5a5fec(0x467)](_0x1e4a69);let _0x15f29e={'cmd':o[_0x5a5fec(0x291)][_0x5a5fec(0x31c)],'routeKey':this['_identity'][_0x5a5fec(0x29d)]['unitId'],'routeType':'','data':_0x1e4a69};return _0x51e855===void 0x0?this['_socket'][_0x5a5fec(0x1d8)](_0x15f29e):this[_0x5a5fec(0x308)][_0x5a5fec(0x1d8)](_0x15f29e,_0x51e855);}catch(_0x2c6c04){this[_0x5a5fec(0x41e)]['error'](_0x2c6c04);}}[_0x28bbb9(0x467)](_0x1353de){const _0x208e3e=_0x28bbb9;if(!this[_0x208e3e(0x2ee)])return;let {data:_0x5156ae}=_0x1353de,{unitID:_0x419f7f,changeset:_0x460159}=_0x5156ae,{mutations:_0x453943,type:_0x33dde1}=_0x460159;this[_0x208e3e(0x508)]={'unitId':_0x419f7f,'type':_0x33dde1,'startTime':performance['now'](),'stopTime':0x0,'duration':0x0,'size':ae(_0x453943)};}[_0x28bbb9(0x3dc)](){const _0x5c7082=_0x28bbb9;this[_0x5c7082(0x2ee)]&&(this[_0x5c7082(0x508)]?(this['_telemetryInfo']['stopTime']=performance['now'](),this[_0x5c7082(0x508)][_0x5c7082(0x211)]=this[_0x5c7082(0x508)][_0x5c7082(0x2c5)]-this[_0x5c7082(0x508)][_0x5c7082(0x53a)],this['_telemetryService'][_0x5c7082(0x4d1)](_0x5c7082(0x3bc),this[_0x5c7082(0x508)]),this[_0x5c7082(0x508)]=null):this[_0x5c7082(0x41e)]['error']('[CollaborationSession]',_0x5c7082(0x28f)));}['_throwTelemetryCollaborationNewChangeset'](){const _0x3dfaa1=_0x28bbb9;this[_0x3dfaa1(0x508)]=null;}};S=b([y(0x2,r[_0x28bbb9(0x369)]),y(0x3,(0x0,r[_0x28bbb9(0x431)])(x)),y(0x4,(0x0,r[_0x28bbb9(0x431)])(se)),y(0x5,(0x0,r['Inject'])(v)),y(0x6,(0x0,r[_0x28bbb9(0x1cd)])(s[_0x28bbb9(0x558)]))],S);const C=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x21d));function be(_0x505801,_0x3acce1){const _0x23b2ef=_0x28bbb9;return _0x3acce1===''||_0x3acce1==null?_0x23b2ef(0x1c3)+_0x505801:_0x23b2ef(0x1c3)+_0x505801+'-'+encodeURIComponent(_0x3acce1);}function xe(_0x23f990){const _0x530660=_0x28bbb9;let {unitID:_0x5e4ddb,mutations:_0xb801eb}=_0x23f990;return{'unitId':_0x5e4ddb,'subUnitId':_0xb801eb[_0x530660(0x47a)]>0x0?_0xb801eb[0x0][_0x530660(0x453)][_0x530660(0x3f9)]:null};}let w=class{constructor(_0x5aff56,_0x171c47,_0x15a562){const _0x3213ca=_0x28bbb9;this[_0x3213ca(0x475)]=_0x5aff56,this[_0x3213ca(0x1f2)]=_0x171c47,this[_0x3213ca(0x2db)]=_0x15a562;}[_0x28bbb9(0x2df)](_0x36d572){const _0x149e15=_0x28bbb9;var _0x52c233,_0x2d30ad;let _0x2679c3=this['_injector'][_0x149e15(0x285)](a['SheetsSelectionsService']),{unitId:_0x2ded11,subUnitId:_0x2e0eb2}=xe(_0x36d572),_0x1f2afe=_0x2679c3==null?void 0x0:_0x2679c3[_0x149e15(0x210)](_0x2ded11)['getCurrentSelections'](),_0x3c30ac=(_0x52c233=this['_instanceService'][_0x149e15(0x1e2)](_0x2ded11))==null||(_0x52c233=_0x52c233[_0x149e15(0x1db)]())==null?void 0x0:_0x52c233[_0x149e15(0x388)]();if(_0x1f2afe['length']===0x0||!_0x2ded11||!_0x2e0eb2)return;let _0x50e951=[{'id':a[_0x149e15(0x2a3)]['id'],'params':{'unitId':_0x2ded11,'subUnitId':_0x3c30ac,'selections':r[_0x149e15(0x4cf)][_0x149e15(0x417)](_0x1f2afe)}}],_0x88490a=this[_0x149e15(0x1f2)][_0x149e15(0x541)](_0x36d572,_0x50e951);if(!(0x0,n['isTransformMutationsWithChangesetSuccess'])(_0x88490a))throw _0x88490a[_0x149e15(0x456)];let _0x48bde5=(_0x2d30ad=_0x88490a[_0x149e15(0x3bd)][0x0])==null||(_0x2d30ad=_0x2d30ad['params'])==null?void 0x0:_0x2d30ad[_0x149e15(0x3c1)];if(Array[_0x149e15(0x2e8)](_0x48bde5)&&_0x48bde5[_0x149e15(0x47a)]){if(_0x48bde5['length']===_0x50e951[0x0][_0x149e15(0x453)][_0x149e15(0x3c1)][_0x149e15(0x47a)]&&_0x48bde5[_0x149e15(0x219)]((_0x1d1777,_0x1ac32b)=>r[_0x149e15(0x3e3)][_0x149e15(0x4c2)](_0x1d1777[_0x149e15(0x2ae)],_0x50e951[0x0]['params'][_0x149e15(0x3c1)][_0x1ac32b][_0x149e15(0x2ae)])))return;this[_0x149e15(0x475)]['get'](r[_0x149e15(0x382)])[_0x149e15(0x2bd)](a['SetSelectionsOperation']['id'],{'unitId':_0x2ded11,'subUnitId':_0x3c30ac,'selections':_0x48bde5});}}};w=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,n[_0x28bbb9(0x4fc)]),y(0x2,r['IUniverInstanceService'])],w);const T=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x3a6));let Se=function(_0x26309b){const _0x41638f=_0x28bbb9;return _0x26309b[_0x26309b['NO_OTHER_CLIENTS_EDITING']=0x0]='NO_OTHER_CLIENTS_EDITING',_0x26309b[_0x26309b['OTHER_CLIENTS_EDITING']=0x1]=_0x41638f(0x2eb),_0x26309b;}({});function Ce(_0xd6c3f0){const _0x1fe896=_0x28bbb9;var _0x234dbd;return!!((_0x234dbd=_0xd6c3f0[_0x1fe896(0x453)])!=null&&_0x234dbd[_0x1fe896(0x236)]);}const we=new Set([a[_0x28bbb9(0x1c5)]['id']]),Te=new Set([l[_0x28bbb9(0x4bb)]['id'],l['EnsureSlideMasterPageMutation']['id'],l[_0x28bbb9(0x1ba)]['id'],l[_0x28bbb9(0x56b)]['id']]);function Ee(_0x5a6432,_0x59741e=we){const _0x3297c0=_0x28bbb9;let _0x2d78ae=[];for(let _0xdc67c6 of _0x5a6432){if(_0x59741e[_0x3297c0(0x546)](_0xdc67c6['id'])||Ce(_0xdc67c6)){if(_0x2d78ae[_0x3297c0(0x47a)]>0x0)break;_0x2d78ae[_0x3297c0(0x4ec)](_0xdc67c6);break;}_0x2d78ae[_0x3297c0(0x4ec)](_0xdc67c6);}return _0x2d78ae;}function E(_0x5211fa,_0x1b405e,_0x1a2654,_0x51dc10,_0x453d4f){const _0x4dc86b=_0x28bbb9;let _0x2ae2b8=Ee(_0x5211fa),_0x1c9e4c=_0x453d4f[_0x4dc86b(0x1f5)](),_0x482d42=(_0x1c9e4c==null?void 0x0:_0x1c9e4c['userID'])??_0x4dc86b(0x4e3),_0xe3ccbc=(_0x1c9e4c==null?void 0x0:_0x1c9e4c[_0x4dc86b(0x362)])??'unknown';return{'changeset':{'unitID':_0x1b405e,'type':(0x0,n[_0x4dc86b(0x38e)])(_0x1a2654['getUnitType'](_0x1b405e)),'baseRev':_0x51dc10[_0x4dc86b(0x1f3)](_0x1b405e),'revision':0x0,'userID':_0x482d42,'memberID':_0xe3ccbc,'mutations':_0x2ae2b8},'pendingMutations':_0x5211fa[_0x4dc86b(0x4e6)](_0x2ae2b8[_0x4dc86b(0x47a)])};}const De=E;function Oe(_0x2cd178,_0x248195,_0x46d0cc,_0x3c7785,_0x116244){const _0x272a82=_0x28bbb9;let _0x2a3715=Ee(_0x2cd178,Te),_0x45b761=_0x116244[_0x272a82(0x1f5)](),_0x278d77=(_0x45b761==null?void 0x0:_0x45b761[_0x272a82(0x47b)])??'unknown',_0x110319=(_0x45b761==null?void 0x0:_0x45b761['memberID'])??_0x272a82(0x4e3);return{'changeset':{'unitID':_0x248195,'type':(0x0,n[_0x272a82(0x38e)])(_0x46d0cc[_0x272a82(0x286)](_0x248195)),'baseRev':_0x3c7785['getCurrentRevOfUnit'](_0x248195),'revision':0x0,'userID':_0x278d77,'memberID':_0x110319,'mutations':_0x2a3715},'pendingMutations':_0x2cd178['slice'](_0x2a3715[_0x272a82(0x47a)])};}function ke(_0x19e2a7,_0x21f7b6,_0x45f9aa,_0x44cf4f,_0xd5ba42){const _0x1c5961=_0x28bbb9;let _0x19a2a8=_0x19e2a7[_0x1c5961(0x3b9)]((_0x8876e6,_0x50fe1f)=>{const _0x2398ec=_0x1c5961;let _0x3698ec=_0x8876e6[_0x8876e6[_0x2398ec(0x47a)]-0x1],{id:_0x2afa1a}=_0x3698ec??{},{id:_0x46e83b,type:_0x479d6f}=_0x50fe1f,_0x4486d8=_0x50fe1f[_0x2398ec(0x453)];if(_0x2afa1a&&_0x2afa1a!==_0x46e83b)throw Error(_0x2398ec(0x359)+_0x2afa1a+'\x20-\x20'+_0x46e83b+'.');if(!_0x3698ec)return[{'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8[_0x2398ec(0x212)],'textRanges':_0x4486d8[_0x2398ec(0x41a)],'actions':_0x4486d8[_0x2398ec(0x3d1)]}}];let _0x227cf8=_0x3698ec[_0x2398ec(0x453)];return Ae(_0x227cf8,_0x4486d8)?[..._0x8876e6[_0x2398ec(0x4e6)](0x0,-0x1),{..._0x3698ec,'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8['unitId'],'textRanges':_0x4486d8[_0x2398ec(0x41a)],'actions':r[_0x2398ec(0x413)]['compose'](_0x227cf8[_0x2398ec(0x3d1)],_0x4486d8[_0x2398ec(0x3d1)])}}]:[..._0x8876e6,{'id':_0x46e83b,'type':_0x479d6f,'params':{'unitId':_0x4486d8[_0x2398ec(0x212)],'textRanges':_0x4486d8['textRanges'],'actions':_0x4486d8[_0x2398ec(0x3d1)]}}];},[]),_0x168c56=_0xd5ba42['getCurrentUser'](),_0x453f00=(_0x168c56==null?void 0x0:_0x168c56[_0x1c5961(0x47b)])??'unknown',_0x1d042e=(_0x168c56==null?void 0x0:_0x168c56['memberID'])??_0x1c5961(0x4e3);return{'changeset':{'unitID':_0x21f7b6,'type':(0x0,n[_0x1c5961(0x38e)])(_0x45f9aa[_0x1c5961(0x286)](_0x21f7b6)),'baseRev':_0x44cf4f[_0x1c5961(0x1f3)](_0x21f7b6),'revision':0x0,'userID':_0x453f00,'memberID':_0x1d042e,'mutations':_0x19a2a8},'pendingMutations':_0x19e2a7['slice'](_0x19e2a7['length'])};}function Ae(_0x4df04a,_0x213c73){const _0x348c19=_0x28bbb9;return!je(_0x4df04a)&&!je(_0x213c73)&&Me(_0x4df04a[_0x348c19(0x3d1)],_0x213c73[_0x348c19(0x3d1)]);}function je(_0x5add37){return _0x5add37['isCompositionEnd']!==void 0x0;}function Me(_0x1b22ae,_0x5a806b){return Ne(_0x1b22ae)&&Ne(_0x5a806b)&&!Fe(_0x1b22ae)&&!Fe(_0x5a806b)&&!Pe(_0x1b22ae)&&!Pe(_0x5a806b);}function Ne(_0x22dfec){const _0x24610b=_0x28bbb9;return Ie(_0x22dfec)[_0x24610b(0x33e)](_0x2f68e8=>D(_0x2f68e8)&&_0x2f68e8['et']==='text-x');}function Pe(_0xdd4a19){const _0x2210e1=_0x28bbb9;return Ie(_0xdd4a19)[_0x2210e1(0x33e)](_0x1c5615=>Array[_0x2210e1(0x2e8)](_0x1c5615)||typeof _0x1c5615==_0x2210e1(0x2d4)||typeof _0x1c5615==_0x2210e1(0x378));}function Fe(_0x46d851){const _0x19d36a=_0x28bbb9;return Ie(_0x46d851)['some'](_0x42be8e=>!D(_0x42be8e)||_0x42be8e['et']!=='text-x'||!Array[_0x19d36a(0x2e8)](_0x42be8e['e'])?!0x1:_0x42be8e['e'][_0x19d36a(0x33e)](_0x22fb98=>!D(_0x22fb98)||!D(_0x22fb98[_0x19d36a(0x340)])?!0x1:Object['prototype']['hasOwnProperty'][_0x19d36a(0x446)](_0x22fb98[_0x19d36a(0x340)],_0x19d36a(0x428))||Object[_0x19d36a(0x30e)][_0x19d36a(0x36d)]['call'](_0x22fb98[_0x19d36a(0x340)],'columnGroups')||Object['prototype'][_0x19d36a(0x36d)][_0x19d36a(0x446)](_0x22fb98[_0x19d36a(0x340)],_0x19d36a(0x3a4))));}function Ie(_0x5ab935){const _0x2fac49=_0x28bbb9;if(!Array[_0x2fac49(0x2e8)](_0x5ab935))return[];let _0x4fef3c=_0x5ab935[_0x2fac49(0x539)](_0x2fac49(0x340))?_0x5ab935:_0x5ab935['find'](_0x1a5491=>Array[_0x2fac49(0x2e8)](_0x1a5491)&&_0x1a5491['includes']('body'));if(!Array[_0x2fac49(0x2e8)](_0x4fef3c))return[];let _0x54c7dc=_0x4fef3c[_0x2fac49(0x383)]('body');return _0x54c7dc===-0x1?[]:_0x4fef3c[_0x2fac49(0x4e6)](_0x54c7dc+0x1);}function D(_0x1a2c43){const _0x55e5ef=_0x28bbb9;return typeof _0x1a2c43==_0x55e5ef(0x25b)&&!!_0x1a2c43&&!Array[_0x55e5ef(0x2e8)](_0x1a2c43);}function Le(_0x3b98e5,_0x178115){const _0x27cf20=_0x28bbb9;for(let _0x2317bb of _0x3b98e5[_0x27cf20(0x220)]){if(_0x2317bb['id']!==n[_0x27cf20(0x1bc)]['id'])continue;let _0xb860ee=_0x2317bb[_0x27cf20(0x453)];if((_0xb860ee==null?void 0x0:_0xb860ee[_0x27cf20(0x212)])===_0x178115&&typeof _0xb860ee['revision']==_0x27cf20(0x378))return{'unitId':_0xb860ee[_0x27cf20(0x212)],'revision':_0xb860ee[_0x27cf20(0x27c)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x3a868f){const _0x28f07f=_0x28bbb9;super(_0x3a868f instanceof Error?_0x3a868f['message']:typeof _0x3a868f=='string'?_0x3a868f:'[CollaborationState]:\x20apply\x20error!'),this[_0x28f07f(0x415)]=_0x3a868f,this['name']=_0x28f07f(0x2f8);}},He=class extends Error{constructor(_0x2bd778){const _0x4575e7=_0x28bbb9;var _0x37609c;super('[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20'+((_0x37609c=_0x2bd778[_0x4575e7(0x34f)])==null?void 0x0:_0x37609c[_0x4575e7(0x27c)])+'.'),this['info']=_0x2bd778,this[_0x4575e7(0x234)]=_0x4575e7(0x2ad);}};let Ue=function(_0x527c46){const _0x179bfc=_0x28bbb9;return _0x527c46['NOT_COLLAB']='not_collab',_0x527c46['SYNCED']=_0x179bfc(0x4e8),_0x527c46[_0x179bfc(0x4e9)]=_0x179bfc(0x432),_0x527c46[_0x179bfc(0x349)]='awaiting',_0x527c46['AWAITING_WITH_PENDING']=_0x179bfc(0x472),_0x527c46[_0x179bfc(0x4a0)]=_0x179bfc(0x48c),_0x527c46[_0x179bfc(0x2b1)]=_0x179bfc(0x257),_0x527c46['OFFLINE']='offline',_0x527c46;}({});var O=class{constructor(_0x8ebd13,_0x30500e,_0x1d1528,_0x43ba5c,_0x5b423a,_0x402a96,_0x2bf7a5,_0x5dc368,_0x29b634){const _0x2a6c2a=_0x28bbb9;this[_0x2a6c2a(0x2e9)]=_0x8ebd13,this[_0x2a6c2a(0x538)]=_0x30500e,this[_0x2a6c2a(0x2a8)]=_0x5b423a,this[_0x2a6c2a(0x265)]=_0x402a96,this[_0x2a6c2a(0x377)]=_0x2bf7a5,this[_0x2a6c2a(0x460)]=_0x5dc368,this[_0x2a6c2a(0x4a5)]=_0x29b634,_(this,_0x2a6c2a(0x524),null),_(this,_0x2a6c2a(0x4f8),[]),this[_0x2a6c2a(0x524)]=_0x1d1528,this[_0x2a6c2a(0x4f8)]=_0x43ba5c;}[_0x28bbb9(0x40b)](){const _0x43b9cc=_0x28bbb9;return!!this[_0x43b9cc(0x524)]||this['_pendingMutations'][_0x43b9cc(0x47a)]>0x0;}[_0x28bbb9(0x3ac)](){}[_0x28bbb9(0x4b2)](){const _0x24ea80=_0x28bbb9;var _0x207997;return(((_0x207997=this[_0x24ea80(0x524)])==null?void 0x0:_0x207997[_0x24ea80(0x220)][_0x24ea80(0x47a)])??0x0)+this['_pendingMutations'][_0x24ea80(0x47a)];}[_0x28bbb9(0x478)](_0x4e067c){const _0x17d1a6=_0x28bbb9;return new ne(_0x4e067c[_0x17d1a6(0x4cd)]??0x0,(_0x45d6fc,_0x2a2786)=>this[_0x17d1a6(0x2a8)][_0x17d1a6(0x49a)](_0x45d6fc,_0x2a2786),{...this['_handler'][_0x17d1a6(0x245)],'onResend':_0x3dbe8d=>{const _0x1f2538=_0x17d1a6;var _0x57b89b,_0x5b0873;return(_0x57b89b=(_0x5b0873=this[_0x1f2538(0x2a8)])['onChangesetResend'])==null?void 0x0:_0x57b89b[_0x1f2538(0x446)](_0x5b0873,_0x3dbe8d);}});}[_0x28bbb9(0x4d6)](_0x143464){const _0x527e70=_0x28bbb9;if(this[_0x527e70(0x53b)](_0x143464))return _0x527e70(0x1ec);if(Le(_0x143464,this[_0x527e70(0x2e9)]))return _0x527e70(0x318);let _0x2c63ab=this['_getCurrentRevision']();return _0x143464['revision']<=_0x2c63ab?_0x527e70(0x363):_0x143464[_0x527e70(0x27c)]>_0x2c63ab+0x1?_0x527e70(0x518):_0x527e70(0x1ea);}[_0x28bbb9(0x373)](_0xc76ab9){const _0x3ee7f9=_0x28bbb9;let _0x4009ec=this['_getCurrentRevision']();return _0xc76ab9[_0x3ee7f9(0x27c)]<=_0x4009ec?this[_0x3ee7f9(0x502)](_0xc76ab9)?_0x3ee7f9(0x497):_0x3ee7f9(0x338):_0xc76ab9['revision']>_0x4009ec+0x1?_0x3ee7f9(0x518):_0x3ee7f9(0x512);}[_0x28bbb9(0x2bc)](_0x4107af,_0x59ec2d){const _0x4d9330=_0x28bbb9;switch(this['_classifyRemoteChangeset'](_0x4107af)){case'echo':return this['onRemoteAck'](_0x4107af);case _0x4d9330(0x318):return _0x59ec2d[_0x4d9330(0x2e0)](_0x4107af);case _0x4d9330(0x363):return this;case _0x4d9330(0x518):return this[_0x4d9330(0x429)](_0x4107af[_0x4d9330(0x27c)]),_0x59ec2d['onMissing'](_0x4107af);case _0x4d9330(0x1ea):return _0x59ec2d[_0x4d9330(0x459)](_0x4107af);}}['_remoteRevertInfo'](_0x4f6642){const _0x4d1478=_0x28bbb9;return{'reason':'remote_revert','revert':{'revision':Le(_0x4f6642,this['unitID'])[_0x4d1478(0x27c)],'memberId':_0x4f6642[_0x4d1478(0x362)],'userId':_0x4f6642[_0x4d1478(0x47b)]}};}[_0x28bbb9(0x4c5)](_0x4bd102){const _0x39d85a=_0x28bbb9;return{'reason':_0x4bd102 instanceof Ve?_0x39d85a(0x3bf):_0x39d85a(0x20e),'message':_0x4bd102 instanceof Error?_0x4bd102[_0x39d85a(0x34c)]:typeof _0x4bd102==_0x39d85a(0x2d4)?_0x4bd102:void 0x0};}[_0x28bbb9(0x37a)](_0x365a91){const _0x5bd19c=_0x28bbb9;return{'reason':_0x365a91!=null&&_0x365a91['isPermissionRej']?_0x5bd19c(0x3cd):_0x5bd19c(0x2a0)};}['_requestMissingChangesets'](_0x1b877c){const _0x447d53=_0x28bbb9;this[_0x447d53(0x2a8)][_0x447d53(0x241)]({'from':this[_0x447d53(0x2b6)](),'to':_0x1b877c-0x1});}[_0x28bbb9(0x46a)](_0x4dc70e){const _0x3bb9a2=_0x28bbb9;this['_undoRedoService'][_0x3bb9a2(0x2be)](this[_0x3bb9a2(0x2e9)],_0x4dc70e);}[_0x28bbb9(0x495)](_0x2e6b8b){const _0x112ab6=_0x28bbb9;var _0x250da4,_0xc3d981;(_0x250da4=(_0xc3d981=this[_0x112ab6(0x2a8)])['onTransformSelections'])==null||_0x250da4[_0x112ab6(0x446)](_0xc3d981,_0x2e6b8b);}[_0x28bbb9(0x3d0)](_0x367495){const _0x58c1a=_0x28bbb9;var _0x3ea1a2,_0x4d062c;return((_0x3ea1a2=(_0x4d062c=this['_handler'])[_0x58c1a(0x51d)])==null?void 0x0:_0x3ea1a2['call'](_0x4d062c,_0x367495))??null;}[_0x28bbb9(0x3f3)](_0x2f8239){const _0x1a0088=_0x28bbb9;var _0x4b112a,_0x30efe2;return(_0x4b112a=(_0x30efe2=this[_0x1a0088(0x2a8)])[_0x1a0088(0x317)])==null?void 0x0:_0x4b112a[_0x1a0088(0x446)](_0x30efe2,_0x2f8239);}[_0x28bbb9(0x3ca)](_0x4edef5){const _0x26391d=_0x28bbb9;var _0x2619ec,_0x33f959;return(_0x2619ec=(_0x33f959=this[_0x26391d(0x2a8)])['onTransformState'])==null?void 0x0:_0x2619ec['call'](_0x33f959,_0x4edef5);}[_0x28bbb9(0x51e)](_0x56c47e){const _0xbcd0e3=_0x28bbb9;var _0x5d7174,_0x213920;return((_0x5d7174=(_0x213920=this[_0xbcd0e3(0x2a8)])[_0xbcd0e3(0x348)])==null?void 0x0:_0x5d7174['call'](_0x213920,_0x56c47e))??_0x56c47e;}[_0x28bbb9(0x517)](_0x3575f5){const _0x430e23=_0x28bbb9;var _0x5ba327,_0x21e778;return((_0x5ba327=(_0x21e778=this['_handler'])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x5ba327[_0x430e23(0x446)](_0x21e778,_0x3575f5))??_0x3575f5;}[_0x28bbb9(0x435)](_0x46492f){const _0x63f775=_0x28bbb9;if(this['type']===r['UniverInstanceType'][_0x63f775(0x297)]){let {unitID:_0x4f9c32,mutations:_0xc215b2,memberID:_0x122d5b}=_0x46492f,_0xe12b32=_0xc215b2['length']>0x0?_0xc215b2[0x0]['params'][_0x63f775(0x41a)]:[];if(Array['isArray'](_0xe12b32)&&_0xe12b32['length']>0x0){var _0x22f5be,_0x7236fe;(_0x22f5be=(_0x7236fe=this[_0x63f775(0x2a8)])[_0x63f775(0x2a6)])==null||_0x22f5be['call'](_0x7236fe,{'unitID':_0x4f9c32,'memberID':_0x122d5b,'textRanges':_0xe12b32});}}}[_0x28bbb9(0x2ac)](){const _0x105a89=_0x28bbb9;var _0x510a7f;(_0x510a7f=this['_localCacheService'])==null||_0x510a7f[_0x105a89(0x55b)](this[_0x105a89(0x2e9)],this[_0x105a89(0x538)],this[_0x105a89(0x524)],this['_pendingMutations']);}['_getCurrentRevision'](){const _0x8b7869=_0x28bbb9;return this[_0x8b7869(0x460)]['getCurrentRevOfUnit'](this[_0x8b7869(0x2e9)]);}[_0x28bbb9(0x53b)](_0x25bced){const _0x5bd553=_0x28bbb9;let _0x1f6a02=this[_0x5bd553(0x524)];return!_0x1f6a02||!_0x1f6a02[_0x5bd553(0x32d)]||_0x1f6a02['reqId']===null||_0x1f6a02[_0x5bd553(0x4cd)]===void 0x0?!0x1:_0x25bced[_0x5bd553(0x2e9)]===_0x1f6a02['unitID']&&_0x25bced[_0x5bd553(0x32d)]===_0x1f6a02[_0x5bd553(0x32d)]&&_0x25bced['reqId']===_0x1f6a02[_0x5bd553(0x4cd)];}['_isAckOfAwaitingChangeset'](_0x32499d){const _0x1b0b08=_0x28bbb9;let _0x25f4fc=this[_0x1b0b08(0x524)];return!(_0x25f4fc!=null&&_0x25f4fc[_0x1b0b08(0x32d)])||_0x25f4fc[_0x1b0b08(0x4cd)]==null||!_0x32499d[_0x1b0b08(0x32d)]||_0x32499d[_0x1b0b08(0x4cd)]==null?!0x1:_0x32499d['sid']===_0x25f4fc[_0x1b0b08(0x32d)]&&_0x32499d[_0x1b0b08(0x4cd)]===_0x25f4fc[_0x1b0b08(0x4cd)];}['_incrementRevisionNumber'](){const _0x52312d=_0x28bbb9;this[_0x52312d(0x460)]['incrementRevOfUnit'](this[_0x52312d(0x2e9)]);}[_0x28bbb9(0x3c5)](_0x551b9b){const _0x52eece=_0x28bbb9;let _0x2087a5=this[_0x52eece(0x51e)](_0x551b9b);_0x2087a5=this[_0x52eece(0x517)](_0x2087a5);let _0x2cde65=this[_0x52eece(0x3d0)](_0x2087a5),_0xad7c3f=(0x0,r['sequenceExecute'])(_0x2087a5[_0x52eece(0x220)],this[_0x52eece(0x265)],{'fromCollab':!0x0});if(!_0xad7c3f['result'])throw _0x2cde65==null||_0x2cde65[_0x52eece(0x2d6)](),new Ve(_0xad7c3f[_0x52eece(0x456)]);_0x2cde65==null||_0x2cde65[_0x52eece(0x4b6)](),this[_0x52eece(0x3f3)](_0x2087a5),this[_0x52eece(0x3ca)](_0x2087a5),this['_transformUndoredo'](_0x551b9b),this[_0x52eece(0x495)](_0x2087a5),this['_syncEditingCollabCursor'](_0x2087a5),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x526a7c,_0x576622,_0x49e89e,_0x5347b5,_0x3df163,_0x96b77b,_0x57dc9b,_0x230e1d,_0x52c31b,_0x1260b5){const _0x438bea=_0x28bbb9;super(_0x526a7c,_0x576622,null,[],_0x49e89e,_0x57dc9b,_0x96b77b,_0x5347b5,_0x1260b5),this[_0x438bea(0x475)]=_0x3df163,this[_0x438bea(0x41e)]=_0x230e1d,this[_0x438bea(0x1f2)]=_0x52c31b,this[_0x438bea(0x28a)]=_0x1260b5,_(this,_0x438bea(0x290),_0x438bea(0x4e8));}['appendMutation'](_0x5ccd84){const _0x25f5b3=_0x28bbb9;let _0x351aa0=this[_0x25f5b3(0x475)]['createInstance'](A,this['unitID'],this['type'],[_0x5ccd84],this['_handler']);return _0x351aa0[_0x25f5b3(0x3d2)](),_0x351aa0[_0x25f5b3(0x2ac)](),_0x351aa0;}[_0x28bbb9(0x458)](_0x4f63e1){const _0x16bd97=_0x28bbb9;return this[_0x16bd97(0x2bc)](_0x4f63e1,{'onMissing':()=>this['_injector'][_0x16bd97(0x3e2)](F,this['unitID'],this['type'],null,[],null,[_0x4f63e1],this[_0x16bd97(0x2a8)],void 0x0),'onApply':()=>this['_transformAndApply'](_0x4f63e1),'onRemoteRevert':()=>this[_0x16bd97(0x1c0)](this[_0x16bd97(0x208)](_0x4f63e1))});}['_transformAndApply'](_0x558f79){const _0x138a1f=_0x28bbb9;try{let _0x1f287d=this[_0x138a1f(0x1f2)]['transformMutationsWithChangeset'](_0x558f79,[n[_0x138a1f(0x324)]]);if((0x0,n[_0x138a1f(0x4a7)])(_0x1f287d)){let {c1Prime:_0x4630ae}=_0x1f287d;return this[_0x138a1f(0x3c5)](_0x4630ae),this;}throw _0x1f287d[_0x138a1f(0x456)];}catch(_0xe26467){return this['_logService'][_0x138a1f(0x456)](_0xe26467),this['_onConflict'](this['_conflictInfoFromError'](_0xe26467));}}[_0x28bbb9(0x1c0)](_0x4a3238){const _0x168397=_0x28bbb9;return this[_0x168397(0x475)][_0x168397(0x3e2)](N,this[_0x168397(0x2e9)],this[_0x168397(0x538)],null,[],this[_0x168397(0x2a8)],_0x4a3238);}[_0x28bbb9(0x48f)](_0x1964a1){const _0x5e750f=_0x28bbb9;if(this[_0x5e750f(0x373)](_0x1964a1)==='stale')return this;throw Error(_0x5e750f(0x226));}[_0x28bbb9(0x4df)](){const _0x1eea3e=_0x28bbb9;throw Error(_0x1eea3e(0x385));}[_0x28bbb9(0x49f)](){return this;}[_0x28bbb9(0x27a)](){const _0xb2e0f3=_0x28bbb9;return this[_0xb2e0f3(0x475)][_0xb2e0f3(0x3e2)](P,this[_0xb2e0f3(0x2e9)],this['type'],null,[],this['_handler']);}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x462)](){const _0x153d95=_0x28bbb9;throw Error(_0x153d95(0x42f));}[_0x28bbb9(0x202)](){const _0xdbcd49=_0x28bbb9;let _0x4e49eb=this[_0xdbcd49(0x460)]['getCurrentRevOfUnit'](this[_0xdbcd49(0x2e9)]);return this['_handler']['onMissingChangesets']({'from':_0x4e49eb,'to':0x0}),this[_0xdbcd49(0x475)][_0xdbcd49(0x3e2)](F,this[_0xdbcd49(0x2e9)],this[_0xdbcd49(0x538)],null,[],null,[],this[_0xdbcd49(0x2a8)],void 0x0);}};k=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x5,r['IUndoRedoService']),y(0x6,r['ICommandService']),y(0x7,r[_0x28bbb9(0x369)]),y(0x8,n[_0x28bbb9(0x4fc)]),y(0x9,(0x0,r[_0x28bbb9(0x1cd)])(C))],k);let A=Re=class extends O{constructor(_0x427d55,_0x5d6fe6,_0x2a7e53,_0x2c78c0,_0x302ae3,_0xa5a2fc,_0x46f361,_0x57898b,_0x1b55fe,_0x4d4719,_0x1b0c8b,_0x2cece4,_0x512a12,_0x29e1b6){const _0x469d5d=_0x28bbb9;super(_0x427d55,_0x5d6fe6,null,_0x2a7e53,_0x2c78c0,_0x1b55fe,_0x512a12,_0xa5a2fc,_0x29e1b6),this[_0x469d5d(0x475)]=_0x302ae3,this['_userManagerService']=_0x46f361,this['_logService']=_0x57898b,this[_0x469d5d(0x2c8)]=_0x4d4719,this['_transformService']=_0x1b0c8b,this[_0x469d5d(0x4b7)]=_0x2cece4,_(this,_0x469d5d(0x290),_0x469d5d(0x432)),_(this,_0x469d5d(0x442),null),_(this,'_sendingTimer',null);}[_0x28bbb9(0x2b9)](_0x211a19){const _0x35fb5b=_0x28bbb9;return this[_0x35fb5b(0x4f8)][_0x35fb5b(0x4ec)](_0x211a19),this['_updateLocalCache'](),this;}[_0x28bbb9(0x458)](_0x4a7731){const _0x2d0f5c=_0x28bbb9;return this[_0x2d0f5c(0x2bc)](_0x4a7731,{'onMissing':()=>(this[_0x2d0f5c(0x54a)](),this[_0x2d0f5c(0x475)]['createInstance'](F,this[_0x2d0f5c(0x2e9)],this[_0x2d0f5c(0x538)],null,this[_0x2d0f5c(0x4f8)],null,[_0x4a7731],this['_handler'],void 0x0)),'onApply':()=>this['_transformAndApply'](_0x4a7731),'onRemoteRevert':()=>this[_0x2d0f5c(0x1c0)](this[_0x2d0f5c(0x208)](_0x4a7731))});}[_0x28bbb9(0x47f)](_0x1ee4cc){const _0x3d2c69=_0x28bbb9;try{let _0x5f247d=this[_0x3d2c69(0x1f2)][_0x3d2c69(0x541)](_0x1ee4cc,this[_0x3d2c69(0x4f8)]);if((0x0,n['isTransformMutationsWithChangesetSuccess'])(_0x5f247d)){let {c1Prime:_0xd7db23,m2Prime:_0x3fd5dc}=_0x5f247d;this[_0x3d2c69(0x3c5)](_0xd7db23);let _0x3733f1=this[_0x3d2c69(0x475)][_0x3d2c69(0x3e2)](Re,this['unitID'],this[_0x3d2c69(0x538)],_0x3fd5dc,this[_0x3d2c69(0x2a8)]);_0x3733f1[_0x3d2c69(0x2ac)](),this['_clearScheduledTask']();let _0x277771=new Date()[_0x3d2c69(0x402)](),_0x41d52a=this[_0x3d2c69(0x442)]?Math[_0x3d2c69(0x3fc)](this['_scheduleCompleteTimestamp']-_0x277771,0x0):this[_0x3d2c69(0x379)]();return _0x3733f1[_0x3d2c69(0x3d2)](_0x41d52a),_0x3733f1;}throw _0x5f247d['error'];}catch(_0x316a09){return this['_logService'][_0x3d2c69(0x456)](_0x316a09),this['_onConflict'](this[_0x3d2c69(0x4c5)](_0x316a09));}}[_0x28bbb9(0x48f)](_0x5d18b8){const _0x179854=_0x28bbb9;if(this[_0x179854(0x373)](_0x5d18b8)==='stale')return this;throw Error(_0x179854(0x20d));}['onRemoteRej'](){const _0x178853=_0x28bbb9;throw Error(_0x178853(0x37b));}['onRemoteRetry'](){return this;}['toggleOffline'](){const _0x301647=_0x28bbb9;return this[_0x301647(0x54a)](),this[_0x301647(0x475)]['createInstance'](P,this['unitID'],this[_0x301647(0x538)],null,this[_0x301647(0x4f8)],this[_0x301647(0x2a8)]);}['toggleOnline'](){return this;}[_0x28bbb9(0x3d2)](_0xc686bc){const _0x4603c5=_0x28bbb9;let _0x592302=_0xc686bc??this[_0x4603c5(0x379)]();this['_scheduleCompleteTimestamp']=new Date()[_0x4603c5(0x402)]()+_0x592302,this[_0x4603c5(0x2c9)]=setTimeout(()=>{const _0x439b4f=_0x4603c5;this[_0x439b4f(0x54a)]();let _0x15dbb0=null;switch(this[_0x439b4f(0x538)]){case r[_0x439b4f(0x24b)]['UNIVER_SHEET']:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r['UniverInstanceType']['UNIVER_DOC']:_0x15dbb0=this[_0x439b4f(0x4f8)]['every'](_0x632e86=>_0x632e86['id']===i[_0x439b4f(0x4d7)]['id'])?ke(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this['_userManagerService']):E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x405)]:_0x15dbb0=Oe(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this['_univerInstanceService'],this['_revisionService'],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x367)]:_0x15dbb0=De(this[_0x439b4f(0x4f8)],this[_0x439b4f(0x2e9)],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x449)]:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this[_0x439b4f(0x460)],this[_0x439b4f(0x433)]);break;case r[_0x439b4f(0x24b)][_0x439b4f(0x3bb)]:_0x15dbb0=E(this[_0x439b4f(0x4f8)],this['unitID'],this[_0x439b4f(0x4b7)],this['_revisionService'],this[_0x439b4f(0x433)]);break;default:throw Error(_0x439b4f(0x1f6)+this[_0x439b4f(0x538)]+_0x439b4f(0x30c));}let {changeset:_0x341044,pendingMutations:_0x33f476}=_0x15dbb0,_0x15e6cb=this[_0x439b4f(0x478)](_0x341044);_0x15e6cb[_0x439b4f(0x1c1)](_0x341044,_0x341044[_0x439b4f(0x220)][_0x439b4f(0x47a)]+_0x33f476[_0x439b4f(0x47a)]);let _0x347e4e=_0x33f476['length']?this[_0x439b4f(0x475)][_0x439b4f(0x3e2)](M,this[_0x439b4f(0x2e9)],this[_0x439b4f(0x538)],_0x341044,_0x33f476,this[_0x439b4f(0x2a8)],_0x15e6cb):this[_0x439b4f(0x475)][_0x439b4f(0x3e2)](j,this[_0x439b4f(0x2e9)],this[_0x439b4f(0x538)],_0x341044,this['_handler'],_0x15e6cb);_0x347e4e['_updateLocalCache'](),this['_handler'][_0x439b4f(0x20c)](this,_0x347e4e);},_0x592302);}[_0x28bbb9(0x379)](){const _0x4d7231=_0x28bbb9;let _0x31bb7d=this['_configService'][_0x4d7231(0x230)](m);return(_0x31bb7d==null?void 0x0:_0x31bb7d[_0x4d7231(0x306)])??0x7d0;}[_0x28bbb9(0x462)](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x28bbb9(0x54a)](){const _0x7023c5=_0x28bbb9;this[_0x7023c5(0x2c9)]!=null&&(clearTimeout(this[_0x7023c5(0x2c9)]),this['_sendingTimer']=null);}['dispose'](){this['_clearScheduledTask']();}[_0x28bbb9(0x1c0)](_0x618426){const _0x38ac6f=_0x28bbb9;return this[_0x38ac6f(0x54a)](),this['_injector'][_0x38ac6f(0x3e2)](N,this[_0x38ac6f(0x2e9)],this[_0x38ac6f(0x538)],null,this[_0x38ac6f(0x4f8)],this['_handler'],_0x618426);}};A=Re=b([y(0x4,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x6,(0x0,r['Inject'])(r[_0x28bbb9(0x42e)])),y(0x7,r[_0x28bbb9(0x369)]),y(0x8,r['ICommandService']),y(0x9,r[_0x28bbb9(0x421)]),y(0xa,n[_0x28bbb9(0x4fc)]),y(0xb,r['IUniverInstanceService']),y(0xc,r['IUndoRedoService']),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],A);let j=ze=class extends O{constructor(_0x51d913,_0x44f327,_0x3d874d,_0x503792,_0x4ac092,_0x3802d9,_0x2c5040,_0x2c2a18,_0xf012c2,_0x4c2b23,_0x4b1150,_0x3ecb36){const _0x432333=_0x28bbb9;super(_0x51d913,_0x44f327,_0x3d874d,[],_0x503792,_0x2c2a18,_0x4b1150,_0x2c5040,_0x3ecb36),this[_0x432333(0x475)]=_0x3802d9,this[_0x432333(0x41e)]=_0xf012c2,this[_0x432333(0x1f2)]=_0x4c2b23,_(this,_0x432333(0x290),_0x432333(0x35e)),_(this,_0x432333(0x455),void 0x0),this[_0x432333(0x455)]=_0x4ac092??this[_0x432333(0x478)](_0x3d874d),this[_0x432333(0x455)][_0x432333(0x260)](()=>({'changeset':this[_0x432333(0x524)],'unsyncedMutationCount':this[_0x432333(0x4b2)]()})),_0x4ac092||this['_submitter'][_0x432333(0x25e)]();}[_0x28bbb9(0x2b9)](_0x23f6f5){const _0x11b43a=_0x28bbb9;this[_0x11b43a(0x375)]();let _0x5eaaf4=this[_0x11b43a(0x475)][_0x11b43a(0x3e2)](M,this[_0x11b43a(0x2e9)],this[_0x11b43a(0x538)],this['_awaitingChangeset'],[_0x23f6f5],this[_0x11b43a(0x2a8)],this['_submitter']);return _0x5eaaf4['_updateLocalCache'](),_0x5eaaf4;}[_0x28bbb9(0x458)](_0x394f60){const _0x54f0dc=_0x28bbb9;return this[_0x54f0dc(0x2bc)](_0x394f60,{'onMissing':()=>(this['_detachSubmitter'](),this[_0x54f0dc(0x475)]['createInstance'](F,this[_0x54f0dc(0x2e9)],this[_0x54f0dc(0x538)],this[_0x54f0dc(0x524)],[],null,[_0x394f60],this[_0x54f0dc(0x2a8)],this[_0x54f0dc(0x455)])),'onApply':()=>this['_transformAndApply'](_0x394f60),'onRemoteRevert':()=>this[_0x54f0dc(0x1c0)](this['_remoteRevertInfo'](_0x394f60))});}[_0x28bbb9(0x47f)](_0x1f9753){const _0x450247=_0x28bbb9;try{let _0x15aa77=this[_0x450247(0x1f2)]['transformChangesets']([_0x1f9753],[this[_0x450247(0x524)]],!0x1);if((0x0,n[_0x450247(0x55e)])(_0x15aa77)){let {c1Prime:_0x318060,c2Prime:_0x287a2b}=_0x15aa77;this[_0x450247(0x3c5)](_0x318060[0x0]),_0x287a2b[0x0]['baseRev']=this[_0x450247(0x2b6)](),this[_0x450247(0x375)]();let _0x508479=this[_0x450247(0x475)][_0x450247(0x3e2)](ze,this[_0x450247(0x2e9)],this['type'],_0x287a2b[0x0],this[_0x450247(0x2a8)],this[_0x450247(0x455)]);return _0x508479[_0x450247(0x2ac)](),_0x508479;}throw _0x15aa77[_0x450247(0x456)];}catch(_0x4cec7f){return this[_0x450247(0x41e)][_0x450247(0x456)](_0x4cec7f),this['_onConflict'](this[_0x450247(0x4c5)](_0x4cec7f));}}['onRemoteAck'](_0x1ea40e){const _0x1cd3a1=_0x28bbb9;switch(this[_0x1cd3a1(0x373)](_0x1ea40e)){case _0x1cd3a1(0x338):return this[_0x1cd3a1(0x41e)][_0x1cd3a1(0x2ba)]('[AwaitingState]',_0x1cd3a1(0x1cc)+_0x1ea40e[_0x1cd3a1(0x27c)]+_0x1cd3a1(0x561)+this[_0x1cd3a1(0x2b6)]()+'.'),this;case _0x1cd3a1(0x497):return this['_submitter'][_0x1cd3a1(0x3ac)](),this[_0x1cd3a1(0x4fd)]();case _0x1cd3a1(0x518):return this[_0x1cd3a1(0x455)][_0x1cd3a1(0x3ac)](),this[_0x1cd3a1(0x429)](_0x1ea40e[_0x1cd3a1(0x27c)]),this[_0x1cd3a1(0x475)][_0x1cd3a1(0x3e2)](F,this[_0x1cd3a1(0x2e9)],this[_0x1cd3a1(0x538)],this[_0x1cd3a1(0x524)],[],_0x1ea40e['revision'],[],this[_0x1cd3a1(0x2a8)],void 0x0);case'next':return this['_submitter'][_0x1cd3a1(0x3ac)](),this['_incrementRevisionNumber'](),this[_0x1cd3a1(0x4fd)]();}}[_0x28bbb9(0x4fd)](){const _0x19ebc1=_0x28bbb9;let _0x45bc4e=this['_injector']['createInstance'](k,this[_0x19ebc1(0x2e9)],this['type'],this[_0x19ebc1(0x2a8)]);return _0x45bc4e[_0x19ebc1(0x2ac)](),_0x45bc4e;}['onRemoteRej'](_0x5d1b73){const _0x4bbf41=_0x28bbb9;return this[_0x4bbf41(0x1c0)](this['_rejectionInfo'](_0x5d1b73));}[_0x28bbb9(0x49f)](_0x42dba6){const _0x5bd0eb=_0x28bbb9;var _0x63c731;return _0x42dba6[_0x5bd0eb(0x4cd)]===((_0x63c731=this[_0x5bd0eb(0x524)])==null?void 0x0:_0x63c731[_0x5bd0eb(0x4cd)])&&this[_0x5bd0eb(0x455)][_0x5bd0eb(0x34d)](),this;}[_0x28bbb9(0x27a)](){const _0x542bc8=_0x28bbb9;return this['_submitter'][_0x542bc8(0x3ac)](),this['_injector'][_0x542bc8(0x3e2)](P,this['unitID'],this[_0x542bc8(0x538)],this['_awaitingChangeset'],[],this[_0x542bc8(0x2a8)]);}[_0x28bbb9(0x2e4)](){return this;}['resend'](_0x514999=_0x28bbb9(0x4d8)){const _0x565232=_0x28bbb9;this[_0x565232(0x455)][_0x565232(0x1c1)](this[_0x565232(0x524)],this[_0x565232(0x4b2)](),_0x514999);}[_0x28bbb9(0x1c0)](_0x25e9f1){const _0x37d05f=_0x28bbb9;return this[_0x37d05f(0x455)][_0x37d05f(0x3ac)](),this['_injector'][_0x37d05f(0x3e2)](N,this[_0x37d05f(0x2e9)],this[_0x37d05f(0x538)],this[_0x37d05f(0x524)],[],this[_0x37d05f(0x2a8)],_0x25e9f1);}[_0x28bbb9(0x3ac)](){const _0x11ccbb=_0x28bbb9;this['_submitter'][_0x11ccbb(0x3ac)]();}[_0x28bbb9(0x375)](){const _0x6cc1d5=_0x28bbb9;this[_0x6cc1d5(0x455)][_0x6cc1d5(0x3ef)]();}};j=ze=b([y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r['ILogService']),y(0x9,n[_0x28bbb9(0x4fc)]),y(0xa,r['IUndoRedoService']),y(0xb,(0x0,r['Optional'])(C))],j);let M=Be=class extends O{constructor(_0x286811,_0x29fa0c,_0x5473f5,_0x33d931,_0x312750,_0x1dfe05,_0x357794,_0x44d6c0,_0x8cd02f,_0xe55954,_0xb94652,_0xc745d7,_0xe098b9){const _0x3bbcfa=_0x28bbb9;super(_0x286811,_0x29fa0c,_0x5473f5,_0x33d931,_0x312750,_0x8cd02f,_0xc745d7,_0x44d6c0,_0xe098b9),this[_0x3bbcfa(0x475)]=_0x357794,this['_logService']=_0xe55954,this[_0x3bbcfa(0x1f2)]=_0xb94652,this['localCacheService']=_0xe098b9,_(this,_0x3bbcfa(0x290),_0x3bbcfa(0x472)),_(this,_0x3bbcfa(0x455),void 0x0),this[_0x3bbcfa(0x455)]=_0x1dfe05??this[_0x3bbcfa(0x478)](_0x5473f5),this[_0x3bbcfa(0x455)][_0x3bbcfa(0x260)](()=>({'changeset':this[_0x3bbcfa(0x524)],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x1dfe05||this[_0x3bbcfa(0x455)]['armAckTimeout']();}[_0x28bbb9(0x2b9)](_0x563aad){const _0x2a869a=_0x28bbb9;return this[_0x2a869a(0x4f8)][_0x2a869a(0x4ec)](_0x563aad),this['_updateLocalCache'](),this;}[_0x28bbb9(0x458)](_0x25d26f){const _0x452204=_0x28bbb9;return this[_0x452204(0x2bc)](_0x25d26f,{'onMissing':()=>(this[_0x452204(0x375)](),this['_injector'][_0x452204(0x3e2)](F,this[_0x452204(0x2e9)],this[_0x452204(0x538)],this[_0x452204(0x524)],this[_0x452204(0x4f8)],null,[_0x25d26f],this[_0x452204(0x2a8)],this['_submitter'])),'onApply':()=>this['_transformAndApply'](_0x25d26f),'onRemoteRevert':()=>this[_0x452204(0x1c0)](this[_0x452204(0x208)](_0x25d26f))});}[_0x28bbb9(0x47f)](_0x42a231){const _0x4c9b70=_0x28bbb9;try{let _0x3bdc25=this['_transformService']['transformChangesets']([_0x42a231],[this[_0x4c9b70(0x524)]],!0x1);if((0x0,n[_0x4c9b70(0x55e)])(_0x3bdc25)){let {c1Prime:_0x1ecc76,c2Prime:_0x56b8d2}=_0x3bdc25,_0x22fe67=this[_0x4c9b70(0x1f2)][_0x4c9b70(0x541)](_0x1ecc76[0x0],this[_0x4c9b70(0x4f8)]);if((0x0,n[_0x4c9b70(0x4a7)])(_0x22fe67)){let {c1Prime:_0x226004,m2Prime:_0x4c0a17}=_0x22fe67;this[_0x4c9b70(0x3c5)](_0x226004),_0x56b8d2[0x0][_0x4c9b70(0x3a5)]=this[_0x4c9b70(0x2b6)](),this[_0x4c9b70(0x375)]();let _0x4f8d27=this[_0x4c9b70(0x475)][_0x4c9b70(0x3e2)](Be,this[_0x4c9b70(0x2e9)],this[_0x4c9b70(0x538)],_0x56b8d2[0x0],_0x4c0a17,this['_handler'],this['_submitter']);return _0x4f8d27[_0x4c9b70(0x2ac)](),_0x4f8d27;}throw _0x22fe67[_0x4c9b70(0x456)];}throw _0x3bdc25[_0x4c9b70(0x456)];}catch(_0x1f8469){return this['_logService'][_0x4c9b70(0x456)](_0x1f8469),this['_onConflict'](this[_0x4c9b70(0x4c5)](_0x1f8469));}}[_0x28bbb9(0x48f)](_0x4ead12){const _0x3d2474=_0x28bbb9;switch(this[_0x3d2474(0x373)](_0x4ead12)){case _0x3d2474(0x338):return this[_0x3d2474(0x41e)][_0x3d2474(0x2ba)]('[AwaitingWithPendingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x4ead12[_0x3d2474(0x27c)]+'\x20at\x20revision\x20'+this[_0x3d2474(0x2b6)]()+'.'),this;case _0x3d2474(0x497):return this[_0x3d2474(0x455)][_0x3d2474(0x3ac)](),this[_0x3d2474(0x347)]();case _0x3d2474(0x518):return this[_0x3d2474(0x455)][_0x3d2474(0x3ac)](),this[_0x3d2474(0x429)](_0x4ead12[_0x3d2474(0x27c)]),this[_0x3d2474(0x475)]['createInstance'](F,this[_0x3d2474(0x2e9)],this[_0x3d2474(0x538)],this[_0x3d2474(0x524)],this['_pendingMutations'],_0x4ead12['revision'],[],this[_0x3d2474(0x2a8)],void 0x0);case _0x3d2474(0x512):return this[_0x3d2474(0x455)]['dispose'](),this['_incrementRevisionNumber'](),this[_0x3d2474(0x347)]();}}[_0x28bbb9(0x347)](){const _0x335efb=_0x28bbb9;let _0x316270=this[_0x335efb(0x475)][_0x335efb(0x3e2)](A,this['unitID'],this[_0x335efb(0x538)],this[_0x335efb(0x4f8)],this[_0x335efb(0x2a8)]);return _0x316270[_0x335efb(0x3d2)](),_0x316270[_0x335efb(0x2ac)](),_0x316270;}[_0x28bbb9(0x4df)](_0x54b292){const _0x7fd001=_0x28bbb9;return this[_0x7fd001(0x1c0)](this[_0x7fd001(0x37a)](_0x54b292));}[_0x28bbb9(0x49f)](_0x304313){const _0xce9ba=_0x28bbb9;var _0x242ee8;return _0x304313[_0xce9ba(0x4cd)]===((_0x242ee8=this[_0xce9ba(0x524)])==null?void 0x0:_0x242ee8[_0xce9ba(0x4cd)])&&this[_0xce9ba(0x455)][_0xce9ba(0x34d)](),this;}[_0x28bbb9(0x27a)](){const _0x285743=_0x28bbb9;return this[_0x285743(0x455)]['dispose'](),this[_0x285743(0x475)][_0x285743(0x3e2)](P,this['unitID'],this[_0x285743(0x538)],this[_0x285743(0x524)],this['_pendingMutations'],this[_0x285743(0x2a8)]);}['toggleOnline'](){return this;}['resend'](_0x386f0f=_0x28bbb9(0x4d8)){const _0xfb8486=_0x28bbb9;this['_submitter'][_0xfb8486(0x1c1)](this['_awaitingChangeset'],this[_0xfb8486(0x4b2)](),_0x386f0f);}[_0x28bbb9(0x1c0)](_0x5240d8){const _0x4629bb=_0x28bbb9;return this[_0x4629bb(0x455)][_0x4629bb(0x3ac)](),this[_0x4629bb(0x475)][_0x4629bb(0x3e2)](N,this[_0x4629bb(0x2e9)],this['type'],this[_0x4629bb(0x524)],this[_0x4629bb(0x4f8)],this[_0x4629bb(0x2a8)],_0x5240d8);}[_0x28bbb9(0x3ac)](){const _0xbf9dff=_0x28bbb9;this[_0xbf9dff(0x455)][_0xbf9dff(0x3ac)]();}['_detachSubmitter'](){const _0x4ca758=_0x28bbb9;this[_0x4ca758(0x455)]['unbind']();}};M=Be=b([y(0x6,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x8,r['ICommandService']),y(0x9,r['ILogService']),y(0xa,n[_0x28bbb9(0x4fc)]),y(0xb,r['IUndoRedoService']),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(C))],M);let N=class extends O{constructor(_0x4c3f5f,_0x3a894f,_0x508978,_0x20bfcf,_0x54c62f,_0x2b5f80,_0x2d7218,_0x20c26e,_0xaad8fe,_0xbdc42e,_0x2b216d,_0x2253d8,_0x26cb95,_0x12b021){const _0x1e64f6=_0x28bbb9;var _0x2bb17e;super(_0x4c3f5f,_0x3a894f,_0x508978,_0x20bfcf,_0x54c62f,_0x20c26e,_0xaad8fe,_0xbdc42e,_0x12b021),this['info']=_0x2b5f80,this[_0x1e64f6(0x370)]=_0x2d7218,this[_0x1e64f6(0x433)]=_0x2b216d,this[_0x1e64f6(0x41e)]=_0x2253d8,this[_0x1e64f6(0x3b5)]=_0x26cb95,this[_0x1e64f6(0x28a)]=_0x12b021,_(this,'status','conflict'),_(this,_0x1e64f6(0x4ac),void 0x0);let _0x1989f0=((_0x2bb17e=this[_0x1e64f6(0x433)][_0x1e64f6(0x1f5)]())==null?void 0x0:_0x2bb17e['userID'])??'';this[_0x1e64f6(0x4ac)]=_0x508978||_0x20bfcf[_0x1e64f6(0x47a)]?{'unitID':_0x4c3f5f,'userId':_0x1989f0||void 0x0,'type':_0x3a894f,'rev':this['_getCurrentRevision'](),'awaitingChangeset':_0x508978,'mutations':_0x20bfcf}:null,this[_0x1e64f6(0x39d)](),this[_0x1e64f6(0x550)](),this[_0x1e64f6(0x3e6)](_0x1989f0)[_0x1e64f6(0x4a4)](_0x1b78e3=>this[_0x1e64f6(0x41e)][_0x1e64f6(0x456)](_0x1b78e3));}async[_0x28bbb9(0x3e6)](_0x3230e2){const _0x425032=_0x28bbb9;var _0x2b6dc2,_0x9cde12,_0x1b3cf5,_0x2a450a;await((_0x2b6dc2=this[_0x425032(0x4a5)])==null||(_0x9cde12=_0x2b6dc2['backupOfflineData'])==null?void 0x0:_0x9cde12['call'](_0x2b6dc2,this[_0x425032(0x2e9)],this[_0x425032(0x520)][_0x425032(0x489)],_0x3230e2)['catch'](()=>void 0x0));let _0x222edb=!0x0;try{var _0x59c548;await((_0x59c548=this[_0x425032(0x4a5)])==null?void 0x0:_0x59c548['clearOfflineData'](this[_0x425032(0x2e9)],_0x3230e2));}catch{_0x222edb=!0x1,this[_0x425032(0x3b5)][_0x425032(0x40c)]({'id':_0x425032(0x503),'unitID':this['unitID'],'userId':_0x3230e2});}(_0x1b3cf5=(_0x2a450a=this[_0x425032(0x2a8)])[_0x425032(0x248)])==null||_0x1b3cf5['call'](_0x2a450a,this[_0x425032(0x520)],this['localChanges'],_0x222edb);}[_0x28bbb9(0x2b9)](){return this;}[_0x28bbb9(0x458)](){return this;}['onRemoteAck'](){return this;}[_0x28bbb9(0x4df)](){return this;}['onRemoteRetry'](){return this;}[_0x28bbb9(0x27a)](){return this;}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x462)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}['_showConflictProcessingNotification'](){const _0x284cf4=_0x28bbb9;this[_0x284cf4(0x3b5)][_0x284cf4(0x40c)]({'id':'CONFLICT_PROCESSING','unitID':this[_0x284cf4(0x2e9)]});}[_0x28bbb9(0x39d)](){const _0x1a5844=_0x28bbb9;this[_0x1a5844(0x370)][_0x1a5844(0x3cc)](new a[(_0x1a5844(0x371))](this[_0x1a5844(0x2e9)])['id'],!0x1);}};N=b([y(0x6,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x427)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r[_0x28bbb9(0x493)]),y(0x9,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0xa,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x42e)])),y(0xb,r[_0x28bbb9(0x369)]),y(0xc,(0x0,r[_0x28bbb9(0x431)])(v)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],N);let P=class extends O{constructor(_0x1fc119,_0x160ffa,_0x5d3a05,_0x25616b,_0x2de8e8,_0x4cc16d,_0x12e180,_0x111b6a,_0x1d3d10,_0x42adde,_0x3aecb2){const _0x1888a2=_0x28bbb9;super(_0x1fc119,_0x160ffa,_0x5d3a05,_0x25616b,_0x2de8e8,_0x111b6a,_0x1d3d10,_0x12e180,_0x3aecb2),this[_0x1888a2(0x475)]=_0x4cc16d,this[_0x1888a2(0x41e)]=_0x42adde,_(this,_0x1888a2(0x290),_0x1888a2(0x203));}[_0x28bbb9(0x2b9)](_0x411c0e){const _0x324915=_0x28bbb9;return this['_pendingMutations']['push'](_0x411c0e),this[_0x324915(0x2ac)](),this;}[_0x28bbb9(0x458)](_0x59ae22){const _0x5420b1=_0x28bbb9;return this[_0x5420b1(0x41e)][_0x5420b1(0x2ba)]('[OfflineState]',_0x5420b1(0x3c6)+_0x59ae22[_0x5420b1(0x27c)]+'.'),this;}['onRemoteAck'](_0x1f11ee){const _0x48d50c=_0x28bbb9;return this[_0x48d50c(0x41e)][_0x48d50c(0x2ba)](_0x48d50c(0x47c),_0x48d50c(0x2e2)+_0x1f11ee[_0x48d50c(0x27c)]+'.'),this;}[_0x28bbb9(0x4df)](){const _0x417452=_0x28bbb9;return this[_0x417452(0x41e)][_0x417452(0x2ba)](_0x417452(0x47c),'ignored\x20rejection.'),this;}['onRemoteRetry'](){return this;}[_0x28bbb9(0x27a)](){return this;}[_0x28bbb9(0x2e4)](){const _0x5d1a25=_0x28bbb9;let {_injector:_0x3c8f76,_pendingMutations:_0x4f8098,_awaitingChangeset:_0x53e2f7,unitID:_0x222b80,_handler:_0xd7b2fd,type:_0x544c45}=this,_0x1cff36=We(_0x3c8f76,_0x222b80,_0x544c45,_0x53e2f7,_0x4f8098,_0xd7b2fd);return _0x1cff36 instanceof A?_0x1cff36[_0x5d1a25(0x3d2)]():(_0x1cff36 instanceof M||_0x1cff36 instanceof j)&&_0x1cff36[_0x5d1a25(0x462)](),_0x1cff36;}['resend'](){throw Error('[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.');}};P=b([y(0x5,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x6,(0x0,r['Inject'])(n[_0x28bbb9(0x49e)])),y(0x7,r[_0x28bbb9(0x382)]),y(0x8,r[_0x28bbb9(0x493)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,(0x0,r[_0x28bbb9(0x1cd)])(C))],P);let F=class extends O{constructor(_0x5428ba,_0x4ec649,_0x5a19d4,_0x500cfe,_0x17ff7e,_0x271b46,_0x4152c0,_0x300c7c,_0x9706cd,_0x4ad3ba,_0x10e3f5,_0x283de0,_0x4a150f,_0x3bf167,_0x1c3b93){const _0x3d1e86=_0x28bbb9;super(_0x5428ba,_0x4ec649,_0x5a19d4,_0x500cfe,_0x4152c0,_0x283de0,_0x4a150f,_0x4ad3ba,_0x1c3b93),this[_0x3d1e86(0x21b)]=_0x17ff7e,this[_0x3d1e86(0x392)]=_0x271b46,this[_0x3d1e86(0x455)]=_0x300c7c,this[_0x3d1e86(0x475)]=_0x9706cd,this['_logService']=_0x10e3f5,this[_0x3d1e86(0x1f2)]=_0x3bf167,this[_0x3d1e86(0x28a)]=_0x1c3b93,_(this,'status',_0x3d1e86(0x48c));}[_0x28bbb9(0x4f6)](_0x1c378e){const _0x11f103=_0x28bbb9;try{if(this[_0x11f103(0x406)](_0x1c378e)['missingChangesets'])throw Error(_0x11f103(0x293));if(this[_0x11f103(0x406)]([...this[_0x11f103(0x392)]][_0x11f103(0x26b)]((_0x56fdba,_0xb49833)=>_0x56fdba[_0x11f103(0x27c)]-_0xb49833[_0x11f103(0x27c)]))[_0x11f103(0x366)])return this['_queuedRemoteChangesets']=[],this['_updateLocalCache'](),this[_0x11f103(0x2a8)][_0x11f103(0x241)]({'from':this[_0x11f103(0x2b6)](),'to':0x0}),this;let _0x52ebd0=this[_0x11f103(0x524)],_0x42c3ce=this['_pendingMutations'],_0x121c64;if(_0x52ebd0&&_0x42c3ce[_0x11f103(0x47a)]!==0x0)_0x121c64=this['_injector'][_0x11f103(0x3e2)](M,this['unitID'],this[_0x11f103(0x538)],_0x52ebd0,_0x42c3ce,this[_0x11f103(0x2a8)],this[_0x11f103(0x455)]);else{if(_0x52ebd0&&_0x42c3ce['length']===0x0)_0x52ebd0['baseRev']=this[_0x11f103(0x2b6)](),_0x121c64=this[_0x11f103(0x475)][_0x11f103(0x3e2)](j,this[_0x11f103(0x2e9)],this[_0x11f103(0x538)],_0x52ebd0,this[_0x11f103(0x2a8)],this[_0x11f103(0x455)]);else{if(_0x42c3ce[_0x11f103(0x47a)]!==0x0){let _0x30e805=this[_0x11f103(0x475)]['createInstance'](A,this['unitID'],this[_0x11f103(0x538)],_0x42c3ce,this[_0x11f103(0x2a8)]);_0x30e805['_schedule'](),_0x121c64=_0x30e805;}else _0x121c64=this[_0x11f103(0x475)][_0x11f103(0x3e2)](k,this[_0x11f103(0x2e9)],this[_0x11f103(0x538)],this[_0x11f103(0x2a8)]);}}return _0x121c64[_0x11f103(0x2ac)](),_0x121c64;}catch(_0x36f16f){return _0x36f16f instanceof He?(this['_logService'][_0x11f103(0x2ba)]('[FetchMissState]',_0x36f16f[_0x11f103(0x34c)]),this[_0x11f103(0x1c0)](_0x36f16f[_0x11f103(0x520)])):(this['_logService'][_0x11f103(0x456)](_0x11f103(0x479),'failed\x20to\x20apply\x20missed\x20changesets!',_0x36f16f),this[_0x11f103(0x1c0)](this[_0x11f103(0x4c5)](_0x36f16f)));}}['_handleRemoteChangesets'](_0x5b95ab){const _0x54ef7e=_0x28bbb9;this['_acknowledgeAwaitingIfReady']();for(let _0x1dc71b=0x0;_0x1dc71b<_0x5b95ab[_0x54ef7e(0x47a)];_0x1dc71b++){let _0x42d67f=_0x5b95ab[_0x1dc71b];switch(this['_classifyRemoteChangeset'](_0x42d67f)){case'echo':{let _0x30376c=this['_getCurrentRevision']();if(_0x42d67f[_0x54ef7e(0x27c)]>_0x30376c+0x1)return{'missingChangesets':!0x0};_0x42d67f[_0x54ef7e(0x27c)]<=_0x30376c?this[_0x54ef7e(0x40f)]():this['_acknowledgeAwaiting']();break;}case _0x54ef7e(0x318):throw new He(this[_0x54ef7e(0x208)](_0x42d67f));case _0x54ef7e(0x363):break;case'missing':return{'missingChangesets':!0x0};case _0x54ef7e(0x1ea):this[_0x54ef7e(0x44b)](_0x42d67f),this[_0x54ef7e(0x3b3)]();}}return{'missingChangesets':!0x1};}[_0x28bbb9(0x44b)](_0x2fd23d){const _0x3320aa=_0x28bbb9;let _0x1b1b4a=_0x2fd23d,_0x227b7f=this[_0x3320aa(0x524)];if(_0x227b7f){let _0x46b3a8=this[_0x3320aa(0x1f2)][_0x3320aa(0x515)]([_0x2fd23d],[_0x227b7f],!0x1);if(!(0x0,n[_0x3320aa(0x55e)])(_0x46b3a8))throw _0x46b3a8['error'];_0x1b1b4a=_0x46b3a8[_0x3320aa(0x310)][0x0],_0x227b7f=_0x46b3a8[_0x3320aa(0x254)][0x0];}let _0x4fb769=this[_0x3320aa(0x4f8)];if(_0x4fb769[_0x3320aa(0x47a)]){let _0x478396=this[_0x3320aa(0x1f2)][_0x3320aa(0x541)](_0x1b1b4a,_0x4fb769);if(!(0x0,n[_0x3320aa(0x4a7)])(_0x478396))throw _0x478396['error'];_0x1b1b4a=_0x478396[_0x3320aa(0x310)],_0x4fb769=_0x478396[_0x3320aa(0x3bd)];}this[_0x3320aa(0x3c5)](_0x1b1b4a),_0x227b7f&&(_0x227b7f['baseRev']=this[_0x3320aa(0x2b6)]()),this['_awaitingChangeset']=_0x227b7f,this['_pendingMutations']=_0x4fb769;}['_acknowledgeAwaitingIfReady'](){const _0xc52883=_0x28bbb9;if(!this[_0xc52883(0x524)]||this['_acknowledgedAwaitingRevision']==null)return;let _0xefeddc=this['_getCurrentRevision']();if(this[_0xc52883(0x21b)]<=_0xefeddc)throw Error(_0xc52883(0x4a9)+this['_acknowledgedAwaitingRevision']+'.');this[_0xc52883(0x21b)]===_0xefeddc+0x1&&this[_0xc52883(0x35d)]();}[_0x28bbb9(0x35d)](){const _0x2c679e=_0x28bbb9;this['_incrementRevisionNumber'](),this[_0x2c679e(0x40f)]();}[_0x28bbb9(0x40f)](){const _0x53d614=_0x28bbb9;this[_0x53d614(0x524)]=null,this['_acknowledgedAwaitingRevision']=null,this[_0x53d614(0x42d)]();}['_disposeSubmitter'](){const _0x70cbdc=_0x28bbb9;var _0x35bc27;(_0x35bc27=this[_0x70cbdc(0x455)])==null||_0x35bc27[_0x70cbdc(0x3ac)](),this['_submitter']=void 0x0;}['dispose'](){const _0x4e0289=_0x28bbb9;this[_0x4e0289(0x42d)]();}[_0x28bbb9(0x462)](){const _0x31cd2d=_0x28bbb9;throw Error(_0x31cd2d(0x3a9));}[_0x28bbb9(0x2b9)](_0x34b04a){const _0x59f29a=_0x28bbb9;return this[_0x59f29a(0x4f8)]['push'](_0x34b04a),this[_0x59f29a(0x2ac)](),this;}[_0x28bbb9(0x458)](_0x25c986){const _0x171f0f=_0x28bbb9;return this[_0x171f0f(0x392)][_0x171f0f(0x4ec)](_0x25c986),this;}[_0x28bbb9(0x48f)](_0x1cb8fd){const _0x4013e4=_0x28bbb9;let _0x501c90=this['_classifyAck'](_0x1cb8fd);if(this[_0x4013e4(0x524)]){switch(_0x501c90){case'ack_of_awaiting':this[_0x4013e4(0x40f)]();break;case'stale':break;case _0x4013e4(0x512):this[_0x4013e4(0x35d)]();break;case _0x4013e4(0x518):this[_0x4013e4(0x21b)]=_0x1cb8fd[_0x4013e4(0x27c)],this['_disposeSubmitter']();}return this;}if(_0x501c90==='stale')return this;throw Error(_0x4013e4(0x4a1));}[_0x28bbb9(0x4df)](_0x1cf335){const _0x174bf2=_0x28bbb9;return this[_0x174bf2(0x1c0)](this['_rejectionInfo'](_0x1cf335));}[_0x28bbb9(0x49f)](_0x57f361){const _0x4000d9=_0x28bbb9;var _0x325d50;return this[_0x4000d9(0x21b)]!=null||_0x57f361[_0x4000d9(0x4cd)]!==((_0x325d50=this[_0x4000d9(0x524)])==null?void 0x0:_0x325d50[_0x4000d9(0x4cd)])||(this[_0x4000d9(0x455)]??=this['_createChangesetSubmitter'](this[_0x4000d9(0x524)]),this[_0x4000d9(0x455)][_0x4000d9(0x34d)]()),this;}[_0x28bbb9(0x27a)](){const _0x5a1718=_0x28bbb9;return this[_0x5a1718(0x42d)](),this[_0x5a1718(0x475)]['createInstance'](P,this[_0x5a1718(0x2e9)],this[_0x5a1718(0x538)],this[_0x5a1718(0x524)],this[_0x5a1718(0x4f8)],this[_0x5a1718(0x2a8)]);}[_0x28bbb9(0x2e4)](){return this;}[_0x28bbb9(0x1c0)](_0x4883b9){const _0x16ef32=_0x28bbb9;return this[_0x16ef32(0x42d)](),this[_0x16ef32(0x475)][_0x16ef32(0x3e2)](N,this['unitID'],this['type'],this['_awaitingChangeset'],this[_0x16ef32(0x4f8)],this[_0x16ef32(0x2a8)],_0x4883b9);}};F=b([y(0x8,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x9,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0xa,r[_0x28bbb9(0x369)]),y(0xb,r[_0x28bbb9(0x382)]),y(0xc,r['IUndoRedoService']),y(0xd,n[_0x28bbb9(0x4fc)]),y(0xe,(0x0,r[_0x28bbb9(0x1cd)])(C))],F);function _0x1757(){const _0x10b0f4=['forEach','confirm','deleteCollaborator','liveShareOperation','_refreshUnitPermission','_clearRedo','unbind','getLatestCsReqIdBySid','liveShareNewHost','getOwnPropertyDescriptor','_transformIMECache','allowed','sessionStatus$','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','_hasSessionsForEndpoint','from','subUnitId','message$','maxSize','max','LIVESHARE_OPERATION','createSocket','HTTPService','univer-pro.collaboration-client-socket-service','_upload','getTime','_waitForHeartbeatResponse','[CollaborationController]:\x20invalid\x20univer\x20type:\x20','UNIVER_SLIDE','_handleRemoteChangesets','toRemote','/-/object/list','_createInitialState','[DataLoaderService]','hasLocalChanges','emitEvent','refreshPermission','putCollaborators','_dropAcknowledgedAwaiting','Slide','/universer-api/oidc/authpage','PSEUDO_FETCH_MISSING_RESULT','JSONX','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','applyError','6gYFRkN','deepClone','takeUntil','infoRsp','textRanges','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_transit','Base','_logService','defineProperty','deleteProperty','IConfigService','CHANGESET_SHOULD_RETRY','setCfgEnableObjInherit','getFocusedUnit','isFinite','/fetchmissing?from=','IPermissionService','tables','_requestMissingChangesets','_adapter','candidateSocket','1977772EhjSud','_disposeSubmitter','UserManagerService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','_initRequestHeader','Inject','pending','_userManagerService','updateMember','_syncEditingCollabCursor','getUploadOptions','session.room-cnt-exceeds','awaitingChangeset','_attempt','_status$','_sendHeartbeat','COMMENT_UPDATE','UnitEmbedded','_onOffline','IMentionIOService','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','members$','_scheduleCompleteTimestamp','enableSingleActiveInstanceLock','_loadSnapshot','newCsEvent','call','workbook','csShouldRetryEvent','UNIVER_BOARD','CollaborationSession','_transformAndApplyRemoteChangeset','collaborators','LIVESHARE_NEW_HOST','GLOBAL_ROOMS_CNT_EXCEEDS','_nextDelay','_getSocketChannel','_notifyResend','ICollaborationSocketService','params','text-x','_submitter','error','disposeWithMe','onRemoteChangeset','onApply','REPLACE','createIdentifier','_onRemoteRetry','433hVzgDk','LEAVE','BehaviorSubject','_revisionService','_undoStacks','resend','_redoStacks','RETRY_CONNECTING_MAX_COUNT_KEY','_updateState','\x20to\x20','_startTelemetryCollaborationNewChangeset','_eventService','upload','_transformUndoredo','SOCKET_FAILED','len','retryConnectingTimer','_getAPIPrefix','filter','_deliver','SnapshotService','awaiting_with_pending','_docStateChangeManagerService','IAttachmentIoService','_injector','packageName','univer-pro.collaboration-client.network-condition.service','_createChangesetSubmitter','[FetchMissState]','length','userID','[OfflineState]','loginUrlKey','objectActions','_transformAndApply','sheets','reject','_lockTransition','session','replace','map','UNIVER_SHEET','invertWithDoc','_onMessage','reason','_source','resent\x20changeset\x20','fetch_missing','enableAuthServer','changesetAckTimeout','onRemoteAck','b64DecodeUnicode','delay','min','IUndoRedoService','_snapshotService','_transformSelections','?url=','ack_of_awaiting','FETCH_MISSING','HEARTBEAT','onSendChangeset','NEW_CHANGESETS','writeAtPath','registerHTTPInterceptor','RevisionService','onRemoteRetry','FETCH_MISS','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','_fetchMissChangesets','now','catch','_localCacheService','_onCombEvent','isTransformMutationsWithChangesetSuccess','createUniverCollaborationAdapter','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','MUTATION','_transformStack','localChanges','saveImage','updateCollaborator','2046070JosXRQ','MemberService','findIndex','_unsyncedMutationCount','CONFLICT_PROCESSING','then','UnitAction','commit','_univerInstanceService','_socketService','collaboratorID','/-/object/-/batch_allowed','AddSlidePageMutation','TimeoutError','_submitChangeset','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','connection\x20error','toString','action','equals','UNIVER_COLLABORATION_CLIENT_PLUGIN','_firstSentAt','_conflictInfoFromError','getCollabEntity','save\x20fail\x20reason\x20is\x20','49749513ulYfjy','_createSocket','maxAckTimeout','state$','_maxAckTimeout','reqId','_initMergeInterceptor','Tools','[CollaborationSocketService]','capture','code','stringify','endsWith','authzUrl','_classifyRemoteChangeset','RichTextEditingMutation','reconnect','_unlockTransition','OTHER_CLIENT_EDITING','trim','COMPRESS_MUTATION_SEND','startsWith','withCredentials','onRemoteRej','session.room-not-exists','PERSON','_state','unknown','parseProtocolChangeset','Failed\x20to\x20update\x20permission\x20point','slice','_handlerCallback','synced','PENDING','_onConnectionOpen','UpdateDocsAttributeType','push','SnapshotServerOverHTTPService','_pendingReason','_registerDependencies','nextDelayMs','JOINING','3884363PDbCxW','ImageSourceType','RETAIN','getGlobalObject','onMissedChangesetFetched','_clearHandshakeTimer','_pendingMutations','localUnitId','/universer-api/authz','keys','ITransformService','_toSynced','CollaborationStatus','/universer-api/user/session-ticket','_waitCount','create','_isAckOfAwaitingChangeset','CONFLICT_CACHE_CLEAR_FAILED','submitting\x20changeset\x20','_invertDocumentHistory','Injector','DocCollaborationEntity','_telemetryInfo','changesets','People','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','state','parseChangesetToProtocol','MentionType','PendingState','_timer','getAttachmentUrl','next','entityInit$','_joinRoom','transformChangesets','_getUploadFileURL','_transformRemoteChangesetByStateCache','missing','pauseCollaboration','elapsedMs','CollaborationSocketService','IUniverInstanceService','onPrepareTransformSelections','_transformRemoteChangesetByIMECache','tableSource','info','diffValue','Plugin','createCollaborator','_awaitingChangeset','TextXActionType','onResend','getImage','[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.','/resources','HELLO','_clearRetryConnectingTimer','waitForRoom$','SheetCollaborationEntity','socketReady','Error\x20on\x20receiving\x20event','_tryReconnect','conflict$','_socketChannels','UNISCRIPT_RUN','isObject','disableLocalCache','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','_sessionStatus$','type','includes','startTime','_isEchoedAwaitingChangeset','enableCollaboration','isInternalEditorID','retryConnectingInterval','_countResend','RECV','transformMutationsWithChangeset','collabSubmitChangesetUrl','attempt','{fileID}','/universer-api/file/{fileID}/sign-url','has','_change$','cbc','DisposableCollection','_clearScheduledTask','_loadUnit','/universer-api/snapshot','_commentUpdate$','SessionStatus','unit','_showConflictProcessingNotification','delete','find','_telemetryService','_initUnitPermissionChange','ICollaborationClientAdapterService','fetchMissingChangesets','collaboration-client.auth.needGotoLoginAlert','ITelemetryService','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_toggleOnline','updateOfflineData','saveChangeset','dispose$','isTransformChangesetsSuccess','loadUnit','updateCursorEvent','\x20at\x20revision\x20','_toggleOffline','ImageUploadStatusType','getSheetBlock','ws://127.0.0.1:8000/universer-api/comb/connect','unitInfo$','enableOfflineEditing','_removeRoom','Edit','_closedUnits','RemoveSlidePageMutation','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','snapshotServerUrl','/object','ErrorCode','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','[UniverCollaborationClientPlugin]','MoveSlidePageMutation','BASE64','RevertRevisionMutation','headers','_onLocalMutation','editingUnit','_onConflict','submit','/universer-api/stream/file/upload','unit-cache-','_retryBackoff','InsertSheetMutation','_clearUndo','_disposed','_updateUnitPermissionPoint','addHandlerCallback','splice','_commentService','ignored\x20stale\x20ack\x20of\x20revision\x20','Optional','loadSheet','[CollaborationSessionService]','\x0aCurrent:\x20','removeMember','_emitMembers','UUID','_sheetTransformSelectionsService','ConflictState','version','PERMISSION_DENIED','send','serializeCombRequest','_sessions','getActiveSheet','UniverLicensePlugin','getUnitStatus$','_conflict$','CompressMutationService','refreshUnit','_decreaseWaiting','getUnit','routeKey','endpoint','session.room-full','_changesetSessionId','collabWebSocketUrl','size','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','apply','_createInitialStateImpl','echo','uploadFileServerUrl','UPDATE_CURSOR','append','CollaborationSessionService','getSnapshot','_transformService','getCurrentRevOfUnit','\x0aAfter:\x20','getCurrentUser','[PendingState]:\x20unhandled\x20univer\x20type:\x20','_pendingSessions','close$','_onJoinRoomEvent','Univer','DEFAULT_ACK_TIMEOUT','329790lYNSju','/collaborator','_rescheduleHeartbeat','interceptor','closeSession','_ackTimeout','fetchMiss','offline','roomInfos','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','loadDoc','hasWritePending','_remoteRevertInfo','concatMap','SUBMIT_CHANGESET_TIMEOUT','_substituteUndoStack','onStateChange','[PendingState]:\x20received\x20acknowledgement.','transform_failed','_unitInfo$','getWorkbookSelections','duration','unitId','pipe','objects','entries','encode','FileId','Workbook','every','__Key__','_acknowledgedAwaitingRevision','_entities','collaboration-client.local-cache-service','sendHeartbeatTimer','JOIN','mutations','[CollaborationEntity]','_localeService','CommentService','commentUpdate$','_authzIoService','[SyncedState]:\x20received\x20acknowledgement.','_remoteChangesetQueue','_event$','[CollaborationSessionService]:\x20socket\x20error','SHOULD_CLOSE_CONN','unitDisposed$','RxDisposable','_collaborationSessionService','readyForCollab','closed','getConfig','toLocal','SUCCUSS','_singleActiveUnitService','name','_clearTimeoutTimer','__splitChunk__','IDLE','_collaborationPaused','/object/','Subscription','collaMsg','_getCtorByUniverInstanceType','_transitionLocked','writeCursor','ack_timeout','_init','onMissingChangesets','objectID','base-ui.attachment-io.service','_onConnectionFailed','resendTimeouts','file','_sendToken','onConflict','supports','ISingleActiveUnitService','UniverInstanceType','compose','_HTTPService','location','generateRandomId','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','getAllPermissionPoint','_clearHeartbeatTimer','stream','c2Prime','_reqId','getImageSourceCache','conflict','function','_onRequestFailed','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','object','LocaleService','45RFfapT','armAckTimeout','_rebaseUnchangedAttributes','bind','_options','getMember','hostname','subscribe','_commandService','onMutationExecutedForCollab','PdfCollaborationEntity','getMemberID','HEARTBEAT_TIMEOUT','getSnapshotAPIPath','sort','_entityInit$','POST','session.room-permission-denied','requestParams','CollaborationController','UniverCollaborationPlugin','_onRecvEvent','_initCloseConn','constructor','reverse','_getRedoStack','objectType','toDisposable','coverType','toggleOffline','_state$','revision','_roomCreated$','request_failed','/universer-api/uniscript','LocalUndoRedoService','endpointKey','getInterceptPoints','LIVESHARE_FETCH_OPERATIONS','_replayCachedMutations','get','getUnitType','OBJECT_PERMISSION_CONFIG_KEY','[CollaborationUndoRedoService]','href','localCacheService','_listenToNetworkCondition','resolveWithBasePath','HTTPRequest','AwaitingWithPendingState','telemetry\x20info\x20is\x20not\x20initialized','status','CombCmd','_filterTableActions','[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.','getCollabEntities','registerDependencies','SUBMIT_CHANGESET','UNIVER_DOC','socket$','status$','paragraphId','SlideCollaborationEntity','_createHandler','target','timeout','attachment','changeset_rejected','addImageSourceCache','_now','SetSelectionsOperation','_httpService','_substituteRedoStack','onSyncEditingCollabCursor','66pyjrjD','_handler','/allowed','saveAttachment','_compressMutationService','_updateLocalCache','RemoteRevertError','range','signUrlServerUrl','_roomMembers','CONFLICT','_type','timeoutTimer','HTTPResponseError','Response','_getCurrentRevision','_networkConditionService','mergeOverrideWithDependencies','appendMutation','debug','onStarting','_dispatchRemoteChangeset','executeCommand','transformUndoRedo','AwaitingState','SNAPSHOT_URL_KEY','DEFAULT_COLLAB_WEB_SOCKET_URL','ThresholdInterceptorFactory','isTransformMutationsWithChangesetFailure','UnitObject','stopTime','members','_config','_configService','_sendingTimer','CollaborationUIEventId','_cfgEnableObjInherit','getValue','roles','3226KQYVYD','?size=','toPrimitive','_changesetReqId','encodeURIComponent','AuthzIoHttpService','string','subject','rollback','touchDependencies','_getUndoStack','changeset','setConfig','_instanceService','_rebaseParagraphHistory','uniscriptRunEvent','onTransformRemoteChangesetByStateCache','transformSelections','onRemoteRevert','_getAPIPrefixPath','ignored\x20acknowledgement\x20of\x20revision\x20','origin','toggleOnline','_members$','handshakeTimer','CmdRspCode','isArray','unitID','localeService','OTHER_CLIENTS_EDITING','retryCount','_resend','_shouldReportTelemetry','_getSignURL','CLOSE_ROOM','resolveUnit','_getUnitPermissionPoints','event$','subType','_tryEnsureSocket','online','getDrawingImageAllowSize','RemoteChangesetApplyError','getRoom','_onRemoteChangeset','DEFAULT_FILE_NAME','&source=','getCollabEntity$','values','eventID','/unit/','fetchThroughInterceptors','symbol','RETRY_CONNECTING_MAX_COUNT','deserializeToCombResponse','&to=','sendChangesetTimeout','_applyRemoteChangeset','_socket','startIndex','paragraph','_onRemoteRejected','\x20in\x20_schedule.','_members','prototype','complete','c1Prime','clear','unitLoaded$','USERS_ENTER','CommandType','toStringTag','FAIL','onTransformIME','remote_revert','result','_send','updatePermissionObjEvent','INGEST','url','readAsDataURL','CHANGESET_ACK','ISocketService','uuidv4','ChangesetSubmitter','CollaborativeUndoRedoService','EmptyMutationInfo','leaveEvent','close','onlyLocal','paragraphs','cmd','OPTIONAL','fromCollab','clearUnit','sid','COLLABORATION_ENDPOINT_INVALID','asObservable','_onUserJoin','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','LOCAL_CACHE_INTERVAL_KEY','src','_memberService','CollaborationImageIoService','listCollaborators','loadBase','stale','override','onLocalMutation','isNoop','saveSheetBlock','getPath','some','CollaborationEvent','body','_startCollaboration','getTypeOfUnitAdded$','MergeInterceptorFactory','_sessionChannels','requireSession','MSG_FOR_ERROR','_toPending','onTransformRemoteChangesetByIMECache','AWAITING','readCursor','/universer-api/snapshot/','message','requestRetry','_unitLoaded$','revert','data','editing\x20status\x20changed\x20to','focused$','JOIN_ROOM_FAILED','init','textEncoder','HEARTBEAT_INTERVAL_KEY','Document','pluginName','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','OFFLINE','joinRsp','LIVESHARE_TERMINATE','_acknowledgeAwaiting','awaiting','ISnapshotServerService','decorate','initWorkbookPermissionChange','memberID','applied','getResourcesRequest','DependentOn','missingChangesets','UNIVER_PDF','SyncedState','ILogService','set','post','originalMeta','hasOwnProperty','open$','@univerjs-pro/collaboration-client','_permissionService','WorkbookEditablePermission','objectPermissionTypes','_classifyAck','_onFetchMissResult','_detachSubmitter','transformStack\x20failed!','_undoRedoService','number','_getSendChangesetTimeout','_rejectionInfo','[PendingState]:\x20received\x20rejection.','setWaitCount','UPDATE_PERMISSION_OBJ','_socketMessageSubscription','CHANGESET_REJ','downloadEndpointUrl','randomBytes','ICommandService','indexOf','socketService','[SyncedState]:\x20received\x20rejection.','_getLoginPath','_onRemoteACK','getSheetId','CollaborationEntity','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','getDeserializedSheetBlock','CollaborationUIEventService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','mapDocumentTypeToUniverInstanceType','charCodeAt','utf8ToBytes','onTransformSelections','_queuedRemoteChangesets','getAllMembers','objectId','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','Board','_changesetResend$','copyFileMeta','_identity','Subject','HEARTBEAT_INTERVAL','error$','_disableEditing','_throwTelemetryCollaborationNewChangeset','saveSnapshot','connectionAttempt','PERMISSION_REJ','LOCAL_CACHE_INTERVAL','add','blockRanges','baseRev','univer-pro.collaboration-client.single-active-unit-service','_createSession','sessionStatus','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','DocStateChangeManagerService','HTTP\x20','dispose','Disposable','[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!','rev','_updateStatus','socketSubscription','IAuthzIoService','_acknowledgeAwaitingIfReady','MAX_ACK_TIMEOUT','_collaborationUIEventService','LIVESHARE_REQUEST_HOST','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','loadOfflineData','reduce','ObjectPermissionService','UNIVER_BASE','collaboration_new_changeset','m2Prime','3688632YtMDKx','apply_failed','_getConfig','selections','_imageSourceCache','/new_changes','HTTPEventType','_executeRemoteChangeset','ignored\x20remote\x20changeset\x20of\x20revision\x20','unsubscribe','BaseCollaborationEntity','_transformHistoryMutations','_transformStateCache','take','updatePermissionPoint','permission_rejected','getTypeOfUnitDisposed$','socket\x20open.','_prepareTransformSelections','actions','_schedule','JSON1','_clearTimer','/block/','commentUpdateEvent','loadSlide','_replaceFileID','_exhaustRemoteChangesetQueue','unitType','Quantity','_stopTelemetryCollaborationNewChangeset','_initDependencies','csAckEvent','_getDownloadEndpointURL','_resolveSessionIdentity','merge','createInstance','Rectangle','INSERT','traverse','_prepareConflictRecovery','getUnitId','USERS_LEAVE'];_0x1757=function(){return _0x10b0f4;};return _0x1757();}function We(_0x476143,_0x3e9aad,_0x18247e,_0x55e8ff,_0x316f3a,_0x5d3f8c){const _0x19d168=_0x28bbb9;return _0x55e8ff&&_0x316f3a[_0x19d168(0x47a)]?_0x476143[_0x19d168(0x3e2)](M,_0x3e9aad,_0x18247e,_0x55e8ff,_0x316f3a,_0x5d3f8c,void 0x0):_0x55e8ff?_0x476143[_0x19d168(0x3e2)](j,_0x3e9aad,_0x18247e,_0x55e8ff,_0x5d3f8c,void 0x0):_0x316f3a[_0x19d168(0x47a)]?_0x476143[_0x19d168(0x3e2)](A,_0x3e9aad,_0x18247e,_0x316f3a,_0x5d3f8c):_0x476143[_0x19d168(0x3e2)](k,_0x3e9aad,_0x18247e,_0x5d3f8c);}let I=class extends r['RxDisposable']{get[_0x28bbb9(0x50c)](){return this['_state'];}constructor(_0x2a92fe,_0x1e3d30,_0x356965,_0x45c54a,_0x5b6d18,_0xb0120e,_0x21f09a,_0x472fce,_0x205cb4,_0x17a613,_0x490e3c,_0x12b434,_0x3524d1,_0x1b7f96){const _0x4f1443=_0x28bbb9;super(),this[_0x4f1443(0x2e9)]=_0x2a92fe,this[_0x4f1443(0x483)]=_0x1e3d30,this[_0x4f1443(0x2b2)]=_0x356965,this[_0x4f1443(0x475)]=_0x45c54a,this[_0x4f1443(0x2ab)]=_0x5b6d18,this[_0x4f1443(0x222)]=_0xb0120e,this[_0x4f1443(0x460)]=_0x21f09a,this[_0x4f1443(0x468)]=_0x472fce,this[_0x4f1443(0x4b7)]=_0x205cb4,this['_logService']=_0x17a613,this['_commandService']=_0x490e3c,this[_0x4f1443(0x370)]=_0x12b434,this[_0x4f1443(0x233)]=_0x3524d1,this[_0x4f1443(0x4a5)]=_0x1b7f96,_(this,_0x4f1443(0x27b),new t[(_0x4f1443(0x45f))](null)),_(this,_0x4f1443(0x4cb),this['_state$'][_0x4f1443(0x32f)]()),_(this,'_state',void 0x0),_(this,_0x4f1443(0x238),!0x1),_(this,'_changesetSessionId',''),_(this,'_changesetReqId',0x0),_(this,_0x4f1443(0x299),this[_0x4f1443(0x4cb)][_0x4f1443(0x213)]((0x0,t[_0x4f1443(0x485)])(_0x10f010=>_0x10f010?_0x10f010['status']:_0x4f1443(0x203)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x4f1443(0x397),new t[(_0x4f1443(0x39a))]()),_(this,'changesetResend$',this[_0x4f1443(0x397)][_0x4f1443(0x32f)]()),_(this,_0x4f1443(0x1de),new t[(_0x4f1443(0x39a))]()),_(this,_0x4f1443(0x531),this['_conflict$'][_0x4f1443(0x32f)]()),_(this,_0x4f1443(0x23d),!0x1),_(this,_0x4f1443(0x227),[]);}async[_0x28bbb9(0x354)](){const _0x3e7b1e=_0x28bbb9;if(this[_0x3e7b1e(0x50c)])throw Error(_0x3e7b1e(0x56c));await this[_0x3e7b1e(0x240)]();}[_0x28bbb9(0x519)](){return this['_collaborationPaused']=!0x0,(0x0,r['toDisposable'])(()=>{const _0x5f3317=_0x53d0;this[_0x5f3317(0x238)]=!0x1,this['_exhaustRemoteChangesetQueue']();});}[_0x28bbb9(0x33a)](_0x5eb3a0){const _0x55d191=_0x28bbb9;this[_0x55d191(0x1be)](_0x5eb3a0);}['hasWritePending'](){const _0x1c33b4=_0x28bbb9;var _0x234f6c;return((_0x234f6c=this['_state'])==null?void 0x0:_0x234f6c[_0x1c33b4(0x40b)]())??!0x1;}[_0x28bbb9(0x3ac)](){const _0x590fbe=_0x28bbb9;var _0x46b8c3;super['dispose'](),(_0x46b8c3=this[_0x590fbe(0x4e2)])==null||_0x46b8c3['dispose'](),this[_0x590fbe(0x397)][_0x590fbe(0x30f)](),this[_0x590fbe(0x1de)][_0x590fbe(0x30f)]();}['_updateState'](_0x211cec){const _0x24daa1=_0x28bbb9;this[_0x24daa1(0x4e2)]=_0x211cec,this[_0x24daa1(0x27b)]['next'](_0x211cec);}async['_init'](){const _0x104f31=_0x28bbb9;if(this[_0x104f31(0x465)](await this[_0x104f31(0x409)]()),this[_0x104f31(0x233)]){var _0x15561c;(_0x15561c=this[_0x104f31(0x233)])==null||_0x15561c[_0x104f31(0x1bf)](this[_0x104f31(0x2e9)]),this[_0x104f31(0x457)](this['_singleActiveUnitService'][_0x104f31(0x1dd)](this[_0x104f31(0x2e9)])[_0x104f31(0x264)](_0x284cad=>{const _0x1031d6=_0x104f31;this[_0x1031d6(0x41e)][_0x1031d6(0x2ba)](_0x1031d6(0x221),_0x1031d6(0x351),_0x284cad),_0x284cad===0x1?(this[_0x1031d6(0x468)][_0x1031d6(0x40c)]({'id':_0x1031d6(0x4da)}),this[_0x1031d6(0x370)][_0x1031d6(0x3cc)](new a[(_0x1031d6(0x371))](this['unitID'])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this['_permissionService'][_0x1031d6(0x3cc)](new a['WorkbookEditablePermission'](this[_0x1031d6(0x2e9)])['id'],!0x0),this[_0x1031d6(0x370)]['setShowComponents'](!0x0));}));}let _0x4b8ae8=!0x1;return this[_0x104f31(0x457)](this['session'][_0x104f31(0x3f5)][_0x104f31(0x264)](_0x1928ba=>{const _0x1ecc34=_0x104f31;_0x1928ba===0x3?this[_0x1ecc34(0x55a)](_0x4b8ae8):_0x1928ba===0x2&&(_0x4b8ae8=!0x0,this['_toggleOffline']());})),this[_0x104f31(0x457)](this[_0x104f31(0x483)][_0x104f31(0x2f3)][_0x104f31(0x264)](_0x31d114=>{const _0x5bd0bf=_0x104f31;try{switch(_0x31d114[_0x5bd0bf(0x2ff)]){case n[_0x5bd0bf(0x33f)]['NEW_CHANGESETS']:this[_0x5bd0bf(0x2fa)]((0x0,n[_0x5bd0bf(0x4e4)])(_0x31d114[_0x5bd0bf(0x350)]));break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x31f)]:this[_0x5bd0bf(0x387)](_0x31d114[_0x5bd0bf(0x350)]);break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x37f)]:this[_0x5bd0bf(0x30b)]();break;case n['CollaborationEvent'][_0x5bd0bf(0x422)]:this[_0x5bd0bf(0x45c)](_0x31d114[_0x5bd0bf(0x350)]);break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x412)]:this[_0x5bd0bf(0x374)](_0x31d114[_0x5bd0bf(0x350)][_0x5bd0bf(0x509)][_0x5bd0bf(0x485)](_0x4c02ed=>(0x0,n[_0x5bd0bf(0x4e4)])(_0x4c02ed)));break;case n[_0x5bd0bf(0x33f)][_0x5bd0bf(0x3a1)]:this[_0x5bd0bf(0x30b)]({'isPermissionRej':!0x0});break;case n['CollaborationEvent']['UNISCRIPT_RUN']:}}catch(_0x357388){throw console[_0x5bd0bf(0x456)](_0x5bd0bf(0x52f),_0x357388),_0x357388;}})),this['_state'];}[_0x28bbb9(0x4d9)](){this['_transitionLocked']=!0x1;}[_0x28bbb9(0x482)](){const _0x2a1484=_0x28bbb9;if(this['_transitionLocked'])throw Error('[CollaborationEntity]:\x20cannot\x20lock\x20transition\x20twice!\x20This\x20is\x20an\x20implementation\x20error,\x20meaning\x20you\x20transit\x20the\x20collaboration\x20state\x20again\x20in\x20the\x20process\x20of\x20a\x20previous\x20transition.\x20This\x20should\x20never\x20happen.');this[_0x2a1484(0x23d)]=!0x0;}[_0x28bbb9(0x41c)](_0x2b073a){const _0x10baa7=_0x28bbb9;this['_lockTransition']();try{this[_0x10baa7(0x465)](_0x2b073a());}finally{this[_0x10baa7(0x4d9)]();}}[_0x28bbb9(0x1be)](_0x2ef994){const _0x22f7d1=_0x28bbb9;this['_transit'](()=>this[_0x22f7d1(0x4e2)][_0x22f7d1(0x2b9)](_0x2ef994));}['_onRemoteChangeset'](_0x2985a1){const _0x3bb587=_0x28bbb9;this[_0x3bb587(0x238)]?this[_0x3bb587(0x227)]['push'](_0x2985a1):this[_0x3bb587(0x307)](_0x2985a1);}[_0x28bbb9(0x3d9)](){const _0x3556e7=_0x28bbb9;this[_0x3556e7(0x227)]['forEach'](_0x28683d=>this[_0x3556e7(0x307)](_0x28683d)),this['_remoteChangesetQueue']=[];}['_applyRemoteChangeset'](_0x142168){const _0x49f46c=_0x28bbb9;let _0x57540b=this['_compressMutationService'][_0x49f46c(0x1ff)][_0x49f46c(0x301)](this['_compressMutationService'][_0x49f46c(0x1ff)][_0x49f46c(0x282)]()['COMPRESS_MUTATION_APPLY'])(_0x142168['mutations'],null)||_0x142168['mutations'],_0x5efe4a={..._0x142168,'mutations':_0x57540b};this[_0x49f46c(0x41c)](()=>this[_0x49f46c(0x4e2)][_0x49f46c(0x458)](_0x5efe4a));}['_onRemoteACK'](_0x35c5a8){const _0x2cb4b5=_0x28bbb9;this[_0x2cb4b5(0x41c)](()=>this['_state'][_0x2cb4b5(0x48f)](_0x35c5a8));}[_0x28bbb9(0x30b)](_0xf024d6){const _0x1f3ed2=_0x28bbb9;this[_0x1f3ed2(0x41c)](()=>this[_0x1f3ed2(0x4e2)][_0x1f3ed2(0x4df)](_0xf024d6));}['_onRemoteRetry'](_0x2daebe){const _0x33cb97=_0x28bbb9;this[_0x33cb97(0x41c)](()=>this[_0x33cb97(0x4e2)][_0x33cb97(0x49f)](_0x2daebe));}[_0x28bbb9(0x374)](_0xe3a8ca){const _0x4bfa84=_0x28bbb9;let _0x1b954f=this[_0x4bfa84(0x4e2)];if(!(_0x1b954f instanceof F))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x5dd757=_0xe3a8ca[_0x4bfa84(0x485)](_0x1af16f=>{const _0x237c28=_0x4bfa84;let _0x3f2b07=this['_compressMutationService'][_0x237c28(0x1ff)]['fetchThroughInterceptors'](this[_0x237c28(0x2ab)][_0x237c28(0x1ff)][_0x237c28(0x282)]()['COMPRESS_MUTATION_APPLY'])(_0x1af16f[_0x237c28(0x220)],null)||_0x1af16f[_0x237c28(0x220)];return{..._0x1af16f,'mutations':_0x3f2b07};});this['_transit'](()=>_0x1b954f[_0x4bfa84(0x4f6)](_0x5dd757));}[_0x28bbb9(0x562)](){const _0x39379e=_0x28bbb9;this[_0x39379e(0x41c)](()=>this['_state'][_0x39379e(0x27a)]());}[_0x28bbb9(0x55a)](_0x48c511=!0x1){const _0x2502fc=_0x28bbb9;this[_0x2502fc(0x41c)](()=>this[_0x2502fc(0x4e2)][_0x2502fc(0x2e4)]());let _0x348725=this[_0x2502fc(0x4e2)];_0x48c511&&_0x348725 instanceof k&&this['_transit'](()=>_0x348725[_0x2502fc(0x202)]());}async['_createInitialState'](){return new Promise(_0x5e4987=>{const _0x17098d=_0x53d0;this[_0x17098d(0x483)][_0x17098d(0x3f5)]['pipe']((0x0,t[_0x17098d(0x3cb)])(0x1))['subscribe'](async _0x40607d=>{_0x5e4987(await this['_createInitialStateImpl'](_0x40607d===0x3));});});}['_createHandler'](){const _0x3cc255=_0x28bbb9;let _0x46c168=this[_0x3cc255(0x2e9)],_0x1d1b39=this[_0x3cc255(0x475)][_0x3cc255(0x285)](r['IConfigService'])[_0x3cc255(0x230)](m);return{'resendTimeouts':{'ackTimeout':_0x1d1b39==null?void 0x0:_0x1d1b39[_0x3cc255(0x48e)],'maxAckTimeout':_0x1d1b39==null?void 0x0:_0x1d1b39['maxChangesetAckTimeout']},'onStateChange':(_0x519d12,_0x21b04a)=>{const _0x41c08b=_0x3cc255;if(_0x519d12!==this[_0x41c08b(0x4e2)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x519d12[_0x41c08b(0x290)]+_0x41c08b(0x1f4)+_0x21b04a[_0x41c08b(0x290)]+_0x41c08b(0x1d0)+this['_state'][_0x41c08b(0x290)]);this[_0x41c08b(0x465)](_0x21b04a);},'onSendChangeset':(_0x10546b,_0x9e6383)=>{const _0x33ab73=_0x3cc255;_0x10546b[_0x33ab73(0x32d)]||(_0x10546b[_0x33ab73(0x32d)]=this[_0x33ab73(0x1e6)],_0x10546b[_0x33ab73(0x4cd)]=++this['_changesetReqId']);let _0x507a97={'eventID':n[_0x33ab73(0x33f)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x10546b[_0x33ab73(0x2e9)],'unitType':this[_0x33ab73(0x2b2)],'changeset':_0x10546b,'memberID':this['session'][_0x33ab73(0x268)]()}};return this[_0x33ab73(0x483)][_0x33ab73(0x1d8)](_0x507a97,this[_0x33ab73(0x2e9)],_0x9e6383);},'onConflict':(_0x1f28e8,_0x11f147,_0x3656d5)=>{const _0x44da31=_0x3cc255;this[_0x44da31(0x1de)][_0x44da31(0x22f)]||this[_0x44da31(0x1de)][_0x44da31(0x512)]({'unitID':_0x46c168,..._0x1f28e8,'localChanges':_0x11f147,'cacheCleared':_0x3656d5});},'onChangesetResend':_0x2e2e61=>{const _0x5cc95f=_0x3cc255;this[_0x5cc95f(0x41e)]['debug'](_0x5cc95f(0x221),_0x5cc95f(0x48b)+_0x2e2e61['reqId']+'\x20('+_0x2e2e61[_0x5cc95f(0x489)]+',\x20attempt\x20'+_0x2e2e61[_0x5cc95f(0x543)]+')'),queueMicrotask(()=>{const _0x3b0a6a=_0x5cc95f;this['_changesetResend$']['closed']||this[_0x3b0a6a(0x397)]['next']({'unitID':_0x46c168,..._0x2e2e61});});},'onMissingChangesets':({from:_0x355732,to:_0x4536c9})=>{const _0x4b1a50=_0x3cc255;this[_0x4b1a50(0x41e)][_0x4b1a50(0x2ba)](_0x4b1a50(0x221),'fetching\x20missing\x20changesets\x20from\x20'+_0x355732+_0x4b1a50(0x466)+_0x4536c9);let _0x3eba17={'eventID':n[_0x4b1a50(0x33f)][_0x4b1a50(0x498)],'data':{'unitID':_0x46c168,'unitType':this[_0x4b1a50(0x2b2)],'from':_0x355732,'to':_0x4536c9}};this['session']['send'](_0x3eba17,this['unitID']);}};}async[_0x28bbb9(0x1eb)](_0x38c913){const _0x2d00c3=_0x28bbb9;var _0x1b6c24;let _0x1fb57b=await((_0x1b6c24=this[_0x2d00c3(0x4a5)])==null?void 0x0:_0x1b6c24['loadOfflineData'](this['unitID'])),_0x431d9f=(_0x1fb57b==null?void 0x0:_0x1fb57b['mutations'])??[],_0x189cfa=(_0x1fb57b==null?void 0x0:_0x1fb57b[_0x2d00c3(0x438)])??null,_0x235bd6=!!(_0x189cfa!=null&&_0x189cfa['sid'])&&!!(_0x189cfa!=null&&_0x189cfa[_0x2d00c3(0x4cd)]);this[_0x2d00c3(0x1e6)]=_0x235bd6?_0x189cfa[_0x2d00c3(0x32d)]:(0x0,n[_0x2d00c3(0x321)])(),this[_0x2d00c3(0x2d1)]=_0x235bd6?_0x189cfa[_0x2d00c3(0x4cd)]:0x0;let _0x4b8bd3=this['unitID'];try{this[_0x2d00c3(0x284)](_0x189cfa,_0x431d9f);}catch(_0x3dced6){this['_logService'][_0x2d00c3(0x456)](_0x3dced6);}let _0xdad307=this[_0x2d00c3(0x29c)]();if(_0x38c913){let _0x2b93ac=We(this[_0x2d00c3(0x475)],_0x4b8bd3,this['_type'],_0x189cfa,_0x431d9f,_0xdad307);return _0x2b93ac instanceof A?_0x2b93ac[_0x2d00c3(0x3d2)]():(_0x2b93ac instanceof M||_0x2b93ac instanceof j)&&_0x2b93ac['resend'](),_0x2b93ac;}return this[_0x2d00c3(0x475)][_0x2d00c3(0x3e2)](P,_0x4b8bd3,this[_0x2d00c3(0x2b2)],_0x189cfa,_0x431d9f,_0xdad307);}[_0x28bbb9(0x284)](_0x1df330,_0x5b0445){const _0x6947f6=_0x28bbb9;var _0x4e53a6,_0x40d28c;let _0x9483d2=this[_0x6947f6(0x2ab)]['interceptor'][_0x6947f6(0x301)](this[_0x6947f6(0x2ab)][_0x6947f6(0x1ff)][_0x6947f6(0x282)]()['COMPRESS_MUTATION_APPLY']);(_0x4e53a6=_0x9483d2((_0x1df330==null?void 0x0:_0x1df330[_0x6947f6(0x220)])||[],null))==null||_0x4e53a6[_0x6947f6(0x3e9)](_0xc091d5=>this[_0x6947f6(0x265)][_0x6947f6(0x2bd)](_0xc091d5['id'],_0xc091d5[_0x6947f6(0x453)])),(_0x40d28c=_0x9483d2(_0x5b0445||[],null))==null||_0x40d28c[_0x6947f6(0x3e9)](_0x38f18d=>this[_0x6947f6(0x265)][_0x6947f6(0x2bd)](_0x38f18d['id'],_0x38f18d[_0x6947f6(0x453)]));}};I=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],I);let L=class extends I{constructor(_0x4391ef,_0x3f55af,_0x21127f,_0x496040,_0xb33541,_0x267c46,_0x5736e6,_0xa0242,_0x5770a5,_0x337f27,_0x133e46,_0x4b305e,_0x3cf5b0,_0xf077bf,_0x5f1951){const _0x41a241=_0x28bbb9;super(_0x4391ef,_0x21127f,_0x3f55af,_0x496040,_0xb33541,_0x267c46,_0x5736e6,_0xa0242,_0x5770a5,_0x337f27,_0x133e46,_0x4b305e,_0xf077bf,_0x5f1951),this['unitID']=_0x4391ef,this[_0x41a241(0x538)]=_0x3f55af,this[_0x41a241(0x473)]=_0x3cf5b0,_(this,_0x41a241(0x4e7),null);}[_0x28bbb9(0x1c9)](_0x5df634){const _0x564297=_0x28bbb9;this[_0x564297(0x4e7)]=_0x5df634;}[_0x28bbb9(0x3ac)](){const _0x1ce794=_0x28bbb9;this[_0x1ce794(0x4e7)]=null,super[_0x1ce794(0x3ac)]();}[_0x28bbb9(0x29c)](){const _0x467d70=_0x28bbb9;let _0x43c8e0=super[_0x467d70(0x29c)]();return _0x43c8e0[_0x467d70(0x317)]=_0x428f6d=>{const _0x13da0c=_0x467d70;var _0xf0569d,_0x12e616;return(_0xf0569d=this[_0x13da0c(0x4e7)])==null||(_0x12e616=_0xf0569d[_0x13da0c(0x317)])==null?void 0x0:_0x12e616[_0x13da0c(0x446)](_0xf0569d,_0x428f6d);},_0x43c8e0['onTransformState']=_0x397d0c=>{const _0x18da02=_0x467d70;var _0x164c76,_0x5e17ce;return(_0x164c76=this[_0x18da02(0x4e7)])==null||(_0x5e17ce=_0x164c76['onTransformState'])==null?void 0x0:_0x5e17ce['call'](_0x164c76,_0x397d0c);},_0x43c8e0['onPrepareTransformSelections']=_0x179ea1=>{const _0x5708b7=_0x467d70;var _0x319773,_0x2fafef;return((_0x319773=this[_0x5708b7(0x4e7)])==null||(_0x2fafef=_0x319773[_0x5708b7(0x51d)])==null?void 0x0:_0x2fafef[_0x5708b7(0x446)](_0x319773,_0x179ea1))??null;},_0x43c8e0[_0x467d70(0x391)]=_0x1eb729=>{const _0x297669=_0x467d70;var _0x3c9197,_0x5c4c9b;return(_0x3c9197=this[_0x297669(0x4e7)])==null||(_0x5c4c9b=_0x3c9197[_0x297669(0x391)])==null?void 0x0:_0x5c4c9b[_0x297669(0x446)](_0x3c9197,_0x1eb729);},_0x43c8e0[_0x467d70(0x2a6)]=_0x161030=>{const _0x3e818a=_0x467d70;var _0x533deb,_0x186d33;return(_0x533deb=this[_0x3e818a(0x4e7)])==null||(_0x186d33=_0x533deb[_0x3e818a(0x2a6)])==null?void 0x0:_0x186d33[_0x3e818a(0x446)](_0x533deb,_0x161030);},_0x43c8e0['onTransformRemoteChangesetByIMECache']=_0x17aa52=>{const _0x2cadf8=_0x467d70;var _0x304d11,_0x1d7286;return((_0x304d11=this[_0x2cadf8(0x4e7)])==null||(_0x1d7286=_0x304d11[_0x2cadf8(0x348)])==null?void 0x0:_0x1d7286[_0x2cadf8(0x446)](_0x304d11,_0x17aa52))??_0x17aa52;},_0x43c8e0[_0x467d70(0x2de)]=_0x18ea56=>{const _0x5e183d=_0x467d70;var _0xf07aaf,_0xc116f9;return((_0xf07aaf=this[_0x5e183d(0x4e7)])==null||(_0xc116f9=_0xf07aaf[_0x5e183d(0x2de)])==null?void 0x0:_0xc116f9[_0x5e183d(0x446)](_0xf07aaf,_0x18ea56))??_0x18ea56;},_0x43c8e0;}async['_init'](){const _0x21c210=_0x28bbb9;let _0x284f03=await super[_0x21c210(0x240)]();return this['disposeWithMe'](this[_0x21c210(0x473)]['docStateChange$'][_0x21c210(0x264)](_0x12110c=>{const _0x2b02ed=_0x21c210;if(_0x12110c==null||_0x12110c['unitId']!==this[_0x2b02ed(0x2e9)])return;let {commandId:_0x3c6d2f,redoState:_0x5230d9,unitId:_0x12ae03}=_0x12110c,_0x1c9d42={'id':_0x3c6d2f,'type':r[_0x2b02ed(0x314)][_0x2b02ed(0x4aa)],'params':{'unitId':_0x12ae03,'actions':_0x5230d9['actions'],'textRanges':null}};this[_0x2b02ed(0x1be)](_0x1c9d42);})),this[_0x21c210(0x457)](this['_commandService'][_0x21c210(0x266)]((_0x25c0ec,_0x1d76e2)=>{const _0x53d424=_0x21c210;if(_0x25c0ec[_0x53d424(0x538)]!==r[_0x53d424(0x314)][_0x53d424(0x4aa)]||_0x1d76e2!=null&&_0x1d76e2[_0x53d424(0x32b)]||_0x1d76e2!=null&&_0x1d76e2[_0x53d424(0x327)]||_0x25c0ec['id']===i['RichTextEditingMutation']['id'])return;let _0x356666=_0x25c0ec['params'];if((_0x356666==null?void 0x0:_0x356666[_0x53d424(0x212)])!==this['unitID'])return;let _0x500f3b=_0x25c0ec,_0x39e368=this[_0x53d424(0x2ab)][_0x53d424(0x1ff)][_0x53d424(0x301)](this['_compressMutationService'][_0x53d424(0x1ff)][_0x53d424(0x282)]()[_0x53d424(0x4dc)])([_0x500f3b],this[_0x53d424(0x4b7)])||[_0x500f3b];this[_0x53d424(0x1be)](_0x39e368[0x0]);})),_0x284f03;}};L=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r['Inject'])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x431)])(i[_0x28bbb9(0x3aa)])),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0x2108e1,_0x1610fa,_0x19e8b0,_0x39f73d,_0x4e057c,_0x513185,_0x4d1a43,_0x197b45,_0x130f3e,_0x4c882a,_0x3cfde2,_0x546d4b,_0x145833,_0x5b022c){const _0x29a43b=_0x28bbb9;super(_0x2108e1,_0x19e8b0,_0x1610fa,_0x39f73d,_0x4e057c,_0x513185,_0x4d1a43,_0x197b45,_0x130f3e,_0x4c882a,_0x3cfde2,_0x546d4b,_0x145833,_0x5b022c),this[_0x29a43b(0x2e9)]=_0x2108e1,this[_0x29a43b(0x538)]=_0x1610fa;}async[_0x28bbb9(0x240)](){const _0x3e1bf3=_0x28bbb9;let _0x40ce42=await super['_init']();return this['disposeWithMe'](this[_0x3e1bf3(0x265)]['onMutationExecutedForCollab']((_0xbe6314,_0x1d4915)=>{const _0x259c1a=_0x3e1bf3;if(_0xbe6314[_0x259c1a(0x538)]!==r[_0x259c1a(0x314)][_0x259c1a(0x4aa)]||_0x1d4915!=null&&_0x1d4915[_0x259c1a(0x32b)]||_0x1d4915!=null&&_0x1d4915[_0x259c1a(0x327)])return;let _0x34520b=_0xbe6314[_0x259c1a(0x453)];if((_0x34520b==null?void 0x0:_0x34520b[_0x259c1a(0x212)])!==this['unitID'])return;let _0x1ba166=_0xbe6314,_0x8f592e=this[_0x259c1a(0x2ab)][_0x259c1a(0x1ff)][_0x259c1a(0x301)](this[_0x259c1a(0x2ab)][_0x259c1a(0x1ff)][_0x259c1a(0x282)]()[_0x259c1a(0x4dc)])([_0x1ba166],this[_0x259c1a(0x4b7)])||[_0x1ba166];this[_0x259c1a(0x1be)](_0x8f592e[0x0]);})),_0x40ce42;}};R=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n['RevisionService'])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],R);let z=class extends I{constructor(_0x570b6c,_0x58ef12,_0x3baba3,_0x1dd776,_0x31b799,_0x5f48a8,_0x2a5b45,_0x25c240,_0x42f302,_0x500cd5,_0x151782,_0x16e351,_0x2b512a,_0x4d600e,_0x597fb3){const _0x22f194=_0x28bbb9;super(_0x570b6c,_0x3baba3,_0x58ef12,_0x1dd776,_0x31b799,_0x5f48a8,_0x2a5b45,_0x42f302,_0x500cd5,_0x151782,_0x16e351,_0x2b512a,_0x4d600e,_0x597fb3),this[_0x22f194(0x2e9)]=_0x570b6c,this['type']=_0x58ef12,this[_0x22f194(0x1d4)]=_0x25c240;}[_0x28bbb9(0x29c)](){const _0x3319c0=_0x28bbb9;let _0x23c915=super['_createHandler']();return _0x23c915[_0x3319c0(0x391)]=_0x5c46b2=>this[_0x3319c0(0x1d4)][_0x3319c0(0x2df)](_0x5c46b2),_0x23c915;}async[_0x28bbb9(0x240)](){const _0xa9eba1=_0x28bbb9;let _0x527abb=await super[_0xa9eba1(0x240)]();return this[_0xa9eba1(0x457)](this[_0xa9eba1(0x265)]['onMutationExecutedForCollab']((_0x4758e9,_0x23b730)=>{const _0xbfeb75=_0xa9eba1;if(_0x4758e9[_0xbfeb75(0x538)]!==r[_0xbfeb75(0x314)][_0xbfeb75(0x4aa)]||_0x23b730!=null&&_0x23b730[_0xbfeb75(0x32b)]||_0x23b730!=null&&_0x23b730[_0xbfeb75(0x327)])return;let _0xeecaaa=_0x4758e9[_0xbfeb75(0x453)];if((_0xeecaaa==null?void 0x0:_0xeecaaa[_0xbfeb75(0x212)])!==this[_0xbfeb75(0x2e9)])return;let _0x5d5a0d=_0x4758e9,_0x106941=this[_0xbfeb75(0x2ab)][_0xbfeb75(0x1ff)][_0xbfeb75(0x301)](this['_compressMutationService'][_0xbfeb75(0x1ff)][_0xbfeb75(0x282)]()[_0xbfeb75(0x4dc)])([_0x5d5a0d],this['_univerInstanceService'])||[_0x5d5a0d];this[_0xbfeb75(0x1be)](_0x106941[0x0]);})),_0x527abb;}};z=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r['LocaleService'])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(w)),y(0x8,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x9,r[_0x28bbb9(0x51c)]),y(0xa,r[_0x28bbb9(0x369)]),y(0xb,r[_0x28bbb9(0x382)]),y(0xc,r[_0x28bbb9(0x427)]),y(0xd,(0x0,r['Optional'])(T)),y(0xe,(0x0,r[_0x28bbb9(0x1cd)])(C))],z);let B=class extends I{constructor(_0x426b28,_0x572139,_0x1abeaa,_0x202abf,_0x20458c,_0x12de6e,_0x408984,_0x12943e,_0x5f20f9,_0x8233f1,_0x14c779,_0x1520ab,_0x54e99e,_0x4137ec){const _0x26d8fd=_0x28bbb9;super(_0x426b28,_0x1abeaa,_0x572139,_0x202abf,_0x20458c,_0x12de6e,_0x408984,_0x12943e,_0x5f20f9,_0x8233f1,_0x14c779,_0x1520ab,_0x54e99e,_0x4137ec),this[_0x26d8fd(0x2e9)]=_0x426b28,this[_0x26d8fd(0x538)]=_0x572139;}async['_init'](){const _0x9f3ee=_0x28bbb9;let _0x437fe6=await super['_init']();return this[_0x9f3ee(0x457)](this['_commandService'][_0x9f3ee(0x266)]((_0x4cb48c,_0x3ec3ac)=>{const _0x32fef6=_0x9f3ee;if(_0x4cb48c[_0x32fef6(0x538)]!==r[_0x32fef6(0x314)][_0x32fef6(0x4aa)]||_0x3ec3ac!=null&&_0x3ec3ac[_0x32fef6(0x32b)]||_0x3ec3ac!=null&&_0x3ec3ac[_0x32fef6(0x327)])return;let _0x17fd52=_0x4cb48c['params'];if((_0x17fd52==null?void 0x0:_0x17fd52[_0x32fef6(0x212)])!==this['unitID'])return;let _0x208256=_0x4cb48c,_0x414604=this[_0x32fef6(0x2ab)][_0x32fef6(0x1ff)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x32fef6(0x282)]()[_0x32fef6(0x4dc)])([_0x208256],this[_0x32fef6(0x4b7)])||[_0x208256];this[_0x32fef6(0x1be)](_0x414604[0x0]);})),_0x437fe6;}};B=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r['Inject'])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],B);let V=class extends I{constructor(_0x261d73,_0x3fad4f,_0x25aad7,_0x4ebb08,_0x3be3f3,_0x1e7e34,_0xac4f66,_0x32b2c9,_0x36de61,_0x3a11e3,_0x45c8d8,_0x3891c1,_0x5316b1,_0x19b6c0){const _0x10c5ef=_0x28bbb9;super(_0x261d73,_0x25aad7,_0x3fad4f,_0x4ebb08,_0x3be3f3,_0x1e7e34,_0xac4f66,_0x32b2c9,_0x36de61,_0x3a11e3,_0x45c8d8,_0x3891c1,_0x5316b1,_0x19b6c0),this[_0x10c5ef(0x2e9)]=_0x261d73,this[_0x10c5ef(0x538)]=_0x3fad4f;}async[_0x28bbb9(0x240)](){const _0x3e65e3=_0x28bbb9;let _0x54a705=await super[_0x3e65e3(0x240)]();return this[_0x3e65e3(0x457)](this['_commandService']['onMutationExecutedForCollab']((_0x50573c,_0x457a3f)=>{const _0x81d55a=_0x3e65e3;if(_0x50573c[_0x81d55a(0x538)]!==r[_0x81d55a(0x314)]['MUTATION']||_0x457a3f!=null&&_0x457a3f[_0x81d55a(0x32b)]||_0x457a3f!=null&&_0x457a3f[_0x81d55a(0x327)])return;let _0x5a1fba=_0x50573c[_0x81d55a(0x453)];if((_0x5a1fba==null?void 0x0:_0x5a1fba['unitId'])!==this[_0x81d55a(0x2e9)])return;let _0x283eac=_0x50573c,_0x158a41=this[_0x81d55a(0x2ab)]['interceptor'][_0x81d55a(0x301)](this[_0x81d55a(0x2ab)][_0x81d55a(0x1ff)]['getInterceptPoints']()[_0x81d55a(0x4dc)])([_0x283eac],this[_0x81d55a(0x4b7)])||[_0x283eac];this[_0x81d55a(0x1be)](_0x158a41[0x0]);})),_0x54a705;}};V=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x1df)])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r['ICommandService']),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r['Optional'])(T)),y(0xd,(0x0,r[_0x28bbb9(0x1cd)])(C))],V);let H=class extends I{constructor(_0x5cd0c0,_0x3f028b,_0x13e4b2,_0x5b29a2,_0x33c6a2,_0x231296,_0x501059,_0x2693dc,_0x1499bf,_0x147839,_0x1f1c2c,_0x3304c2,_0x3432f4,_0x1ae6e8){const _0x55e856=_0x28bbb9;super(_0x5cd0c0,_0x13e4b2,_0x3f028b,_0x5b29a2,_0x33c6a2,_0x231296,_0x501059,_0x2693dc,_0x1499bf,_0x147839,_0x1f1c2c,_0x3304c2,_0x3432f4,_0x1ae6e8),this['unitID']=_0x5cd0c0,this[_0x55e856(0x538)]=_0x3f028b;}async['_init'](){const _0x2f082b=_0x28bbb9;let _0xf3484b=await super[_0x2f082b(0x240)]();return this[_0x2f082b(0x457)](this[_0x2f082b(0x265)]['onMutationExecutedForCollab']((_0x2dd136,_0x3469cf)=>{const _0x572d27=_0x2f082b;if(_0x2dd136[_0x572d27(0x538)]!==r[_0x572d27(0x314)]['MUTATION']||_0x3469cf!=null&&_0x3469cf[_0x572d27(0x32b)]||_0x3469cf!=null&&_0x3469cf[_0x572d27(0x327)])return;let _0x45c1fc=_0x2dd136[_0x572d27(0x453)];if((_0x45c1fc==null?void 0x0:_0x45c1fc[_0x572d27(0x212)])!==this[_0x572d27(0x2e9)])return;let _0x1f3176=_0x2dd136,_0x4d1e2a=this['_compressMutationService'][_0x572d27(0x1ff)]['fetchThroughInterceptors'](this[_0x572d27(0x2ab)]['interceptor'][_0x572d27(0x282)]()[_0x572d27(0x4dc)])([_0x1f3176],this['_univerInstanceService'])||[_0x1f3176];this[_0x572d27(0x1be)](_0x4d1e2a[0x0]);})),_0xf3484b;}};H=b([y(0x3,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x4,(0x0,r['Inject'])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)])),y(0x6,(0x0,r[_0x28bbb9(0x431)])(n[_0x28bbb9(0x49e)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x28bbb9(0x51c)]),y(0x9,r[_0x28bbb9(0x369)]),y(0xa,r[_0x28bbb9(0x382)]),y(0xb,r[_0x28bbb9(0x427)]),y(0xc,(0x0,r[_0x28bbb9(0x1cd)])(T)),y(0xd,(0x0,r['Optional'])(C))],H);const Ge=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x477));function Ke(_0x4b6bad){const _0x2ede10=_0x28bbb9;let _0x5ee1b0=_0x4b6bad['data'],_0x1e6eb0=JSON['parse'](_0x5ee1b0);switch(_0x1e6eb0['cmd']){case o['CombCmd'][_0x2ede10(0x499)]:case o[_0x2ede10(0x291)][_0x2ede10(0x52a)]:{let _0xedd6bd=_0x1e6eb0[_0x2ede10(0x419)];return{..._0x1e6eb0,'data':_0xedd6bd,'cmd':_0x1e6eb0[_0x2ede10(0x329)]};}case o[_0x2ede10(0x291)][_0x2ede10(0x21f)]:{let _0x101df6=_0x1e6eb0[_0x2ede10(0x35b)];return{..._0x1e6eb0,'data':_0x101df6,'cmd':_0x1e6eb0[_0x2ede10(0x329)]};}case o[_0x2ede10(0x291)][_0x2ede10(0x540)]:{let _0x14ed50=_0x1e6eb0[_0x2ede10(0x23b)];switch(_0x14ed50[_0x2ede10(0x2ff)]){case n['CollaborationEvent'][_0x2ede10(0x3a1)]:var _0x1c9b30;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0x1c9b30=_0x14ed50['permissionRejEvent'])==null?void 0x0:_0x1c9b30['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['CHANGESET_ACK']:var _0x36bef5;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0x36bef5=_0x14ed50[_0x2ede10(0x3de)])==null?void 0x0:_0x36bef5['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x49b)]:var _0xe6e0e9;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xe6e0e9=_0x14ed50[_0x2ede10(0x445)])==null?void 0x0:_0xe6e0e9['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x37f)]:var _0xf3ab76;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xf3ab76=_0x14ed50['csRejEvent'])==null?void 0x0:_0xf3ab76['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n['CollaborationEvent'][_0x2ede10(0x422)]:var _0xe501d;return{..._0x1e6eb0,'data':{..._0x14ed50,'data':(_0xe501d=_0x14ed50[_0x2ede10(0x448)])==null?void 0x0:_0xe501d['cs']},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x1ee)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x560)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x313)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50['joinEvent']},'cmd':_0x1e6eb0['cmd']};case n[_0x2ede10(0x33f)]['USERS_LEAVE']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x325)]},'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3f1)]},'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent'][_0x2ede10(0x283)]:case n[_0x2ede10(0x33f)][_0x2ede10(0x3fd)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3ec)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)][_0x2ede10(0x35c)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3f1)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['MSG_FOR_ERROR']:return{..._0x1e6eb0,'data':_0x14ed50,'cmd':_0x1e6eb0['cmd']};case n['CollaborationEvent'][_0x2ede10(0x43c)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x3d6)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n['CollaborationEvent'][_0x2ede10(0x37d)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x31b)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};case n[_0x2ede10(0x33f)]['SHOULD_CLOSE_CONN']:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50['shouldCloseConn']},'cmd':_0x1e6eb0['cmd']};case n[_0x2ede10(0x33f)][_0x2ede10(0x533)]:return{..._0x1e6eb0,'data':{..._0x14ed50,'data':_0x14ed50[_0x2ede10(0x2dd)]},'cmd':_0x1e6eb0[_0x2ede10(0x329)]};default:return _0x1e6eb0;}}default:return _0x1e6eb0;}}function qe(_0x4f78c8){const _0x138381=_0x28bbb9;switch(_0x4f78c8['cmd']){case o[_0x138381(0x291)][_0x138381(0x499)]:case o[_0x138381(0x291)]['HELLO']:return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)]});case o[_0x138381(0x291)]['INGEST']:{let _0x404959;switch(_0x4f78c8[_0x138381(0x350)][_0x138381(0x2ff)]){case n[_0x138381(0x33f)][_0x138381(0x1ee)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x1ee)],'updateCursorEvent':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x3e8)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x3e8)],'leaveEvent':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x313)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x313)],'joinEvent':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x44d)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x44d)],'liveShareNewHost':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x3fd)]:_0x404959={'eventID':n[_0x138381(0x33f)]['LIVESHARE_OPERATION'],'liveShareOperation':_0x4f78c8[_0x138381(0x350)][_0x138381(0x350)]};break;case n[_0x138381(0x33f)][_0x138381(0x35c)]:_0x404959={'eventID':n['CollaborationEvent'][_0x138381(0x35c)],'liveShareTerminate':_0x4f78c8[_0x138381(0x350)]['data']};break;case n[_0x138381(0x33f)][_0x138381(0x3b6)]:_0x404959={'eventID':n[_0x138381(0x33f)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x4f78c8['data']['data']};break;case n['CollaborationEvent'][_0x138381(0x283)]:_0x404959={'eventID':n[_0x138381(0x33f)][_0x138381(0x283)]};break;default:_0x404959={'eventID':_0x4f78c8['data'][_0x138381(0x2ff)]};}return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)],'collaMsg':_0x404959});}case o[_0x138381(0x291)][_0x138381(0x21f)]:return JSON[_0x138381(0x4d3)]({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8['routeKey'],'joinReq':_0x4f78c8[_0x138381(0x350)]});case o['CombCmd'][_0x138381(0x45e)]:return JSON['stringify']({'cmd':_0x4f78c8[_0x138381(0x329)],'routeKey':_0x4f78c8[_0x138381(0x1e3)],'leaveReq':_0x4f78c8[_0x138381(0x350)]});default:throw Error(_0x138381(0x25a));}}const Je=(0x0,r[_0x28bbb9(0x45b)])(_0x28bbb9(0x400));function Ye(_0x167730,_0x385838,_0x134e24){const _0x46c5e6=_0x28bbb9;return _0x167730+'/'+_0x385838+_0x46c5e6(0x300)+_0x134e24+_0x46c5e6(0x3c3);}let Xe=class extends r[_0x28bbb9(0x3ad)]{constructor(_0xc38506,_0x1a8230,_0x362406,_0x87ab5,_0x52d211){const _0x5389c6=_0x28bbb9;super(),this['_injector']=_0xc38506,this[_0x5389c6(0x2a4)]=_0x1a8230,this[_0x5389c6(0x2c8)]=_0x362406,this[_0x5389c6(0x41e)]=_0x87ab5,this['_snapshotServerService']=_0x52d211;}['_doCreateSocket'](_0x5a7098){const _0xeb189f=_0x28bbb9;let _0x43eee6=this[_0xeb189f(0x475)][_0xeb189f(0x285)](e[_0xeb189f(0x320)]);if(!_0x43eee6)throw Error(_0xeb189f(0x3b7));let _0x2f101b=_0x43eee6[_0xeb189f(0x3fe)](_0x5a7098);if(!_0x2f101b)throw Error(_0xeb189f(0x3ae));let _0x2e27ea=new r[(_0xeb189f(0x549))](),_0x32de0d=new t['Subject']();_0x2e27ea['add'](_0x2f101b['close$'][_0xeb189f(0x264)](_0x303951=>_0x32de0d[_0xeb189f(0x512)](_0x303951))),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r[_0xeb189f(0x278)])(()=>_0x32de0d[_0xeb189f(0x30f)]()));let _0x37bb1e=new t[(_0xeb189f(0x39a))]();_0x2e27ea[_0xeb189f(0x3a3)](_0x2f101b[_0xeb189f(0x39c)][_0xeb189f(0x264)](_0x133be2=>_0x37bb1e[_0xeb189f(0x512)](_0x133be2))),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r[_0xeb189f(0x278)])(()=>_0x37bb1e['complete']()));let _0x142c34=new t[(_0xeb189f(0x39a))]();_0x2e27ea[_0xeb189f(0x3a3)](_0x2f101b[_0xeb189f(0x3fa)][_0xeb189f(0x264)](_0x344404=>{const _0x89b1db=_0xeb189f;let _0x3a91cf=Ke(_0x344404);_0x142c34[_0x89b1db(0x512)](_0x3a91cf);})),_0x2e27ea[_0xeb189f(0x3a3)]((0x0,r['toDisposable'])(()=>_0x142c34['complete']()));let _0x5a80fc,_0x36e1c8=()=>{const _0x4c87c5=_0xeb189f;_0x37bb1e[_0x4c87c5(0x512)](new Event(_0x4c87c5(0x4bf))),_0x32de0d['next'](new Event('connection\x20error')),_0x5a80fc['close']();};return _0x5a80fc={'memberID':'','close$':_0x32de0d[_0xeb189f(0x32f)](),'error$':_0x37bb1e['asObservable'](),'open$':_0x2f101b[_0xeb189f(0x36e)],'message$':_0x142c34[_0xeb189f(0x32f)](),'send':(_0x22ac73,_0x477ac1)=>{const _0x2fa564=_0xeb189f;if(_0x22ac73[_0x2fa564(0x329)]===o[_0x2fa564(0x291)][_0x2fa564(0x31c)]){if(_0x22ac73['data']['eventID']===n[_0x2fa564(0x33f)]['SUBMIT_CHANGESET']){let _0x221692=this[_0x2fa564(0x4bd)](_0x5a80fc,_0x22ac73['data'],(_0x477ac1==null?void 0x0:_0x477ac1[_0x2fa564(0x29e)])??0x1d4c0);return _0x221692[_0x2fa564(0x4a4)](()=>void 0x0),_0x221692;}if(_0x22ac73[_0x2fa564(0x350)][_0x2fa564(0x2ff)]===n['CollaborationEvent']['FETCH_MISSING']){let _0x2d5ed3=_0x22ac73['data'];this[_0x2fa564(0x4a2)](_0x2d5ed3)[_0x2fa564(0x4b4)](_0x14940a=>{const _0x4114e4=_0x2fa564;_0x142c34[_0x4114e4(0x512)]({'cmd':o[_0x4114e4(0x291)][_0x4114e4(0x540)],'code':o[_0x4114e4(0x2e7)]['OK'],'routeKey':_0x2d5ed3['data']['unitID'],'routeType':'','data':{'eventID':n[_0x4114e4(0x33f)][_0x4114e4(0x412)],'data':{'changesets':_0x14940a}}});})[_0x2fa564(0x4a4)](_0xb532cc=>{const _0x239c31=_0x2fa564;this[_0x239c31(0x41e)][_0x239c31(0x456)](_0xb532cc),_0x36e1c8();});return;}}_0x2f101b[_0x2fa564(0x1d8)](qe(_0x22ac73));},'close':()=>{_0x2f101b['close'](),_0x2e27ea['dispose']();}},_0x5a80fc;}[_0x28bbb9(0x4bd)](_0x1c6bb1,_0x3f4a07,_0x1af040){const _0x6a2fe3=_0x28bbb9;let {unitType:_0x94888,unitID:_0x151f34,changeset:_0x252f48}=_0x3f4a07[_0x6a2fe3(0x350)],_0x4f02cf={'unitID':_0x151f34,'memberID':_0x1c6bb1['memberID'],'type':_0x94888,'changeset':(0x0,n[_0x6a2fe3(0x50d)])(_0x252f48)},_0xd5fe9b=this[_0x6a2fe3(0x2c8)][_0x6a2fe3(0x230)](m),_0xb09f3f=Ye((_0xd5fe9b==null?void 0x0:_0xd5fe9b[_0x6a2fe3(0x542)])??'/universer-api/comb',_0x94888,_0x151f34);return(0x0,t['firstValueFrom'])(this[_0x6a2fe3(0x2a4)][_0x6a2fe3(0x253)]('POST',_0xb09f3f,{'body':_0x4f02cf})[_0x6a2fe3(0x213)]((0x0,t[_0x6a2fe3(0x46f)])(_0x541c99=>_0x541c99[_0x6a2fe3(0x538)]===e[_0x6a2fe3(0x3c4)][_0x6a2fe3(0x2b5)]),(0x0,t[_0x6a2fe3(0x29e)])(_0x1af040)))[_0x6a2fe3(0x4b4)](()=>void 0x0,_0x5b202d=>{const _0x471b3f=_0x6a2fe3;throw this[_0x471b3f(0x41e)]['warn'](_0x471b3f(0x4d0),_0x471b3f(0x504)+_0x252f48['sid']+':'+_0x252f48[_0x471b3f(0x4cd)]+'\x20failed:\x20'+Ze(_0x5b202d)),_0x5b202d;});}async[_0x28bbb9(0x4a2)](_0x3ed87d){const _0x3e6b2f=_0x28bbb9;let {unitID:_0x1959f6,from:_0x4ab51d,to:_0x10c388,unitType:_0x3a2302}=_0x3ed87d[_0x3e6b2f(0x350)];return(await this['_snapshotServerService'][_0x3e6b2f(0x556)]({'metadata':void 0x0},{'unitID':_0x1959f6,'type':_0x3a2302,'from':_0x4ab51d,'to':_0x10c388}))[_0x3e6b2f(0x509)][_0x3e6b2f(0x485)](_0xb2207a=>((_0xb2207a[_0x3e6b2f(0x220)]===null||_0xb2207a[_0x3e6b2f(0x220)]===void 0x0)&&(_0xb2207a['mutations']=[]),_0xb2207a));}};Xe=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,(0x0,r['Inject'])(e['HTTPService'])),y(0x2,r[_0x28bbb9(0x421)]),y(0x3,r[_0x28bbb9(0x369)]),y(0x4,n[_0x28bbb9(0x35f)])],Xe);function Ze(_0x402950){const _0x40a6b7=_0x28bbb9;return _0x402950 instanceof e[_0x40a6b7(0x2b4)]?_0x40a6b7(0x3ab)+(_0x402950['status']??0x0):_0x402950 instanceof Error?_0x402950['name']:String(_0x402950);}const Qe=(0x0,r[_0x28bbb9(0x45b)])('univer-pro.collaboration-client-adapter-service');function $e(_0x305898={}){const _0x8884bc=_0x28bbb9;return _0x305898[_0x8884bc(0x2f1)]?{'resolveUnit':_0x305898[_0x8884bc(0x2f1)]}:{'resolveUnit':_0x23d778=>({'target':{'unitId':_0x23d778[_0x8884bc(0x212)],'unitType':_0x23d778[_0x8884bc(0x3da)]}})};}function et(_0x220e7d,_0xa69128,_0x7b30fa){const _0x31c49a=_0x28bbb9;let _0x349358=_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x1e4)];if(_0x349358!=null&&_0x349358[_0x31c49a(0x4db)]()==='')throw Error(_0x31c49a(0x32e));if(!_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x212)])throw Error(_0x31c49a(0x331));return{'localUnitId':_0x220e7d,'unitType':_0xa69128,'target':{'endpoint':_0x349358,'unitId':_0x7b30fa[_0x31c49a(0x29d)][_0x31c49a(0x212)],'unitType':_0x7b30fa['target'][_0x31c49a(0x3da)]??_0xa69128},'changeset':_0x7b30fa[_0x31c49a(0x2d9)]};}let U=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x1902d7,_0x66e012,_0x4e7bc5,_0x5721dd,_0x4b3e02,_0x307fbf){const _0x45327d=_0x28bbb9;super(),this[_0x45327d(0x475)]=_0x1902d7,this[_0x45327d(0x41e)]=_0x66e012,this[_0x45327d(0x2c8)]=_0x4e7bc5,this[_0x45327d(0x4b8)]=_0x5721dd,this[_0x45327d(0x3b5)]=_0x4b3e02,this[_0x45327d(0x42a)]=_0x307fbf,_(this,_0x45327d(0x1da),new Map()),_(this,'_pendingSessions',new Map()),_(this,_0x45327d(0x344),new Map()),_(this,_0x45327d(0x532),new Map()),_(this,'_networkConditionService',void 0x0),_(this,'socket$',this[_0x45327d(0x450)](void 0x0)[_0x45327d(0x298)][_0x45327d(0x32f)]()),_(this,_0x45327d(0x43a),new t[(_0x45327d(0x45f))](0x0)),_(this,_0x45327d(0x299),this['_status$'][_0x45327d(0x32f)]());}[_0x28bbb9(0x28b)](){const _0x1a7a54=_0x28bbb9;this['_networkConditionService']||(this[_0x1a7a54(0x2b7)]=this[_0x1a7a54(0x475)][_0x1a7a54(0x285)](Ge,r[_0x1a7a54(0x3db)][_0x1a7a54(0x32a)])??void 0x0,this['_networkConditionService']&&this[_0x1a7a54(0x457)](this[_0x1a7a54(0x2b7)]['online$'][_0x1a7a54(0x264)](_0x4c1bfc=>{const _0x44a246=_0x1a7a54;_0x4c1bfc&&this[_0x44a246(0x4d8)](),_0x4c1bfc||this[_0x44a246(0x532)][_0x44a246(0x3e9)](_0x3ac2f3=>this[_0x44a246(0x43e)](_0x3ac2f3));})));}['dispose'](){const _0x2f5c58=_0x28bbb9;super[_0x2f5c58(0x3ac)](),this[_0x2f5c58(0x532)][_0x2f5c58(0x3e9)](_0x3401ea=>{const _0x53eb32=_0x2f5c58;var _0x47465c,_0x5f5ae2,_0x5b3a82;(_0x47465c=_0x3401ea['socketSubscription'])==null||_0x47465c[_0x53eb32(0x3c7)](),_0x3401ea[_0x53eb32(0x3b1)]=null,this[_0x53eb32(0x4f7)](_0x3401ea),this[_0x53eb32(0x52b)](_0x3401ea),this[_0x53eb32(0x235)](_0x3401ea),this['_clearHeartbeatTimer'](_0x3401ea),(_0x5f5ae2=_0x3401ea[_0x53eb32(0x298)][_0x53eb32(0x2cc)]())==null||_0x5f5ae2[_0x53eb32(0x326)](),(_0x5b3a82=_0x3401ea[_0x53eb32(0x42b)])==null||_0x5b3a82[_0x53eb32(0x326)](),_0x3401ea['socket$'][_0x53eb32(0x30f)]();}),this['_socketChannels']['clear'](),this[_0x2f5c58(0x1da)]['forEach'](_0xeb2640=>_0xeb2640[_0x2f5c58(0x3ac)]()),this[_0x2f5c58(0x1da)][_0x2f5c58(0x311)](),this[_0x2f5c58(0x344)]['clear'](),this['_status$'][_0x2f5c58(0x30f)]();}async[_0x28bbb9(0x345)](_0x3a8e0d,_0x57a685){const _0x2cdcd0=_0x28bbb9;if(this['_listenToNetworkCondition'](),this[_0x2cdcd0(0x1da)][_0x2cdcd0(0x546)](_0x3a8e0d))return this['_sessions'][_0x2cdcd0(0x285)](_0x3a8e0d);let _0x30f82c=this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x285)](_0x3a8e0d);if(_0x30f82c)return _0x30f82c;let _0x49cb81=this[_0x2cdcd0(0x3a7)](_0x3a8e0d,_0x57a685);this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x36a)](_0x3a8e0d,_0x49cb81);try{return await _0x49cb81;}finally{this[_0x2cdcd0(0x1f7)][_0x2cdcd0(0x551)](_0x3a8e0d);}}async[_0x28bbb9(0x3a7)](_0x2b4116,_0x365054){const _0x4ee3ee=_0x28bbb9;let _0x4ae5da=await this[_0x4ee3ee(0x3e0)](_0x2b4116,_0x365054),_0x2a087e=this[_0x4ee3ee(0x450)](_0x4ae5da[_0x4ee3ee(0x29d)]['endpoint']);this[_0x4ee3ee(0x2f5)](_0x2a087e);let _0x30e04a=this[_0x4ee3ee(0x475)][_0x4ee3ee(0x3e2)](S,_0x4ae5da,_0x2a087e[_0x4ee3ee(0x298)][_0x4ee3ee(0x32f)]());return this['_sessions']['set'](_0x2b4116,_0x30e04a),this[_0x4ee3ee(0x344)][_0x4ee3ee(0x36a)](_0x2b4116,_0x2a087e['endpointKey']),_0x30e04a;}[_0x28bbb9(0x200)](_0x184cdf){const _0x35aa0a=_0x28bbb9;let _0x17c6ff=this[_0x35aa0a(0x1da)]['get'](_0x184cdf),_0x318d82=this[_0x35aa0a(0x344)][_0x35aa0a(0x285)](_0x184cdf);if(_0x17c6ff&&(this[_0x35aa0a(0x1da)]['delete'](_0x184cdf),this['_sessionChannels'][_0x35aa0a(0x551)](_0x184cdf),_0x17c6ff[_0x35aa0a(0x326)]()),_0x318d82!==void 0x0&&!this[_0x35aa0a(0x3f7)](_0x318d82)){let _0x4613aa=this['_socketChannels'][_0x35aa0a(0x285)](_0x318d82);_0x4613aa&&this[_0x35aa0a(0x43e)](_0x4613aa);}}[_0x28bbb9(0x4d8)](){const _0x161149=_0x28bbb9;(this[_0x161149(0x532)][_0x161149(0x1e8)]?[...this[_0x161149(0x532)][_0x161149(0x2fe)]()]:[this[_0x161149(0x450)](void 0x0)])[_0x161149(0x3e9)](_0x5e59bc=>{const _0x3f50a2=_0x161149;!this[_0x3f50a2(0x3f7)](_0x5e59bc[_0x3f50a2(0x281)])||_0x5e59bc['socketReady']||_0x5e59bc[_0x3f50a2(0x42b)]||_0x5e59bc['connectionAttempt']||(_0x5e59bc[_0x3f50a2(0x2ec)]=0x0,this[_0x3f50a2(0x52b)](_0x5e59bc),this[_0x3f50a2(0x530)](_0x5e59bc));});}['_clearRetryConnectingTimer'](_0x3bdcbe){const _0x4239dd=_0x28bbb9;_0x3bdcbe[_0x4239dd(0x46d)]!=null&&(clearTimeout(_0x3bdcbe[_0x4239dd(0x46d)]),_0x3bdcbe['retryConnectingTimer']=null);}[_0x28bbb9(0x4c9)](_0x564de5){const _0x5adf1a=_0x28bbb9;let _0x591b84=this[_0x5adf1a(0x2c8)][_0x5adf1a(0x230)](m),_0x3f05d9=_0x564de5[_0x5adf1a(0x1e4)]??(_0x591b84==null?void 0x0:_0x591b84[_0x5adf1a(0x1e7)])??_0x5adf1a(0x565);return this['_socketService'][_0x5adf1a(0x3fe)](_0x3f05d9);}async[_0x28bbb9(0x2f5)](_0xb291a4){const _0x53c5c7=_0x28bbb9;var _0x59476c;if(this[_0x53c5c7(0x1c7)]||((_0x59476c=this[_0x53c5c7(0x2b7)])==null?void 0x0:_0x59476c['online'])===!0x1||_0xb291a4[_0x53c5c7(0x52e)]||_0xb291a4[_0x53c5c7(0x42b)]||_0xb291a4[_0x53c5c7(0x3a0)])return;let _0x57df96={};_0xb291a4[_0x53c5c7(0x3a0)]=_0x57df96;try{let _0x76c655=await this[_0x53c5c7(0x4c9)](_0xb291a4);if(this[_0x53c5c7(0x1c7)]||_0xb291a4[_0x53c5c7(0x3a0)]!==_0x57df96){_0x76c655==null||_0x76c655[_0x53c5c7(0x326)]();return;}if(_0x76c655){var _0x38e425;_0xb291a4[_0x53c5c7(0x42b)]=_0x76c655,_0xb291a4['handshakeTimer']=setTimeout(()=>{const _0x552894=_0x53c5c7;!this['_disposed']&&_0xb291a4['candidateSocket']===_0x76c655&&this[_0x552894(0x244)](_0xb291a4);},0x4e20);let _0x2e0456=_0x76c655[_0x53c5c7(0x1d8)];_0x76c655[_0x53c5c7(0x1d8)]=(_0x1a6a53,_0x386b31)=>(_0x1a6a53[_0x53c5c7(0x329)]!==o['CombCmd']['LEAVE']&&!tt(_0x1a6a53)&&_0xb291a4['socketReady']&&_0xb291a4[_0x53c5c7(0x298)][_0x53c5c7(0x2cc)]()===_0x76c655&&this[_0x53c5c7(0x1fe)](_0xb291a4),_0x386b31===void 0x0?_0x2e0456[_0x53c5c7(0x446)](_0x76c655,_0x1a6a53):_0x2e0456[_0x53c5c7(0x446)](_0x76c655,_0x1a6a53,_0x386b31)),(_0x38e425=_0xb291a4[_0x53c5c7(0x3b1)])==null||_0x38e425[_0x53c5c7(0x3c7)]();let _0x2010cf=new t[(_0x53c5c7(0x23a))]();_0xb291a4[_0x53c5c7(0x3b1)]=_0x2010cf,_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655['message$'][_0x53c5c7(0x264)](_0x6ef193=>this[_0x53c5c7(0x488)](_0xb291a4,_0x76c655,_0x6ef193))),_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655[_0x53c5c7(0x39c)][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](_0x4ae2c2=>this[_0x53c5c7(0x41e)][_0x53c5c7(0x456)](_0x53c5c7(0x229),_0x4ae2c2))),_0x2010cf[_0x53c5c7(0x3a3)](_0x76c655['open$'][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](()=>{const _0x1cac00=_0x53c5c7;this[_0x1cac00(0x4ea)](_0xb291a4,_0x76c655);})),_0x2010cf['add'](_0x76c655[_0x53c5c7(0x1f8)][_0x53c5c7(0x213)]((0x0,c[_0x53c5c7(0x3cb)])(0x1))[_0x53c5c7(0x264)](_0x8b2514=>{const _0x208d06=_0x53c5c7;(_0xb291a4['candidateSocket']===_0x76c655||_0xb291a4[_0x208d06(0x298)][_0x208d06(0x2cc)]()===_0x76c655)&&(this[_0x208d06(0x41e)][_0x208d06(0x2ba)]('[CollaborationSessionService]','socket\x20close',_0x8b2514),this[_0x208d06(0x244)](_0xb291a4));}));}}catch(_0x11ab9b){if(_0xb291a4[_0x53c5c7(0x3a0)]!==_0x57df96)return;this[_0x53c5c7(0x41e)][_0x53c5c7(0x456)](_0x11ab9b),this[_0x53c5c7(0x244)](_0xb291a4);}finally{_0xb291a4[_0x53c5c7(0x3a0)]===_0x57df96&&(_0xb291a4[_0x53c5c7(0x3a0)]=null);}}[_0x28bbb9(0x4ea)](_0x3dd350,_0x38de64){const _0x1a5218=_0x28bbb9;this['_disposed']||_0x3dd350['candidateSocket']!==_0x38de64||(this[_0x1a5218(0x41e)]['debug'](_0x1a5218(0x1cf),_0x1a5218(0x3cf)),_0x38de64['send']({'cmd':o['CombCmd']['HELLO']}));}[_0x28bbb9(0x43e)](_0x7fdcb6){const _0x4275c3=_0x28bbb9;var _0x5ea74d;let _0x2d9c4f=_0x7fdcb6[_0x4275c3(0x298)][_0x4275c3(0x2cc)]()??_0x7fdcb6[_0x4275c3(0x42b)];_0x7fdcb6[_0x4275c3(0x3a0)]=null,_0x7fdcb6[_0x4275c3(0x52e)]=!0x1,_0x7fdcb6[_0x4275c3(0x42b)]=null,(_0x5ea74d=_0x7fdcb6[_0x4275c3(0x3b1)])==null||_0x5ea74d[_0x4275c3(0x3c7)](),_0x7fdcb6[_0x4275c3(0x3b1)]=null,this['_status$'][_0x4275c3(0x512)](0x2),_0x7fdcb6['socket$']['next'](null),this[_0x4275c3(0x52b)](_0x7fdcb6),this[_0x4275c3(0x4f7)](_0x7fdcb6),this[_0x4275c3(0x235)](_0x7fdcb6),this['_clearHeartbeatTimer'](_0x7fdcb6),_0x2d9c4f==null||_0x2d9c4f[_0x4275c3(0x326)]();}['_onConnectionFailed'](_0x4db6e7){const _0x4581d3=_0x28bbb9;var _0x4bda13;this[_0x4581d3(0x43e)](_0x4db6e7),!this[_0x4581d3(0x1c7)]&&((_0x4bda13=this[_0x4581d3(0x2b7)])==null?void 0x0:_0x4bda13[_0x4581d3(0x2f6)])!==!0x1&&this[_0x4581d3(0x3f7)](_0x4db6e7['endpointKey'])&&(_0x4db6e7['retryCount']<(this[_0x4581d3(0x2c8)]['getConfig'](_0x4581d3(0x303))??0x3)?(this[_0x4581d3(0x3b5)]['emitEvent']({'id':'SOCKET_FAILED_RETRY'}),this[_0x4581d3(0x530)](_0x4db6e7)):this[_0x4581d3(0x3b5)]['emitEvent']({'id':'SOCKET_FAILED'}));}[_0x28bbb9(0x530)](_0x3a3841){const _0x5da755=_0x28bbb9;let _0x4b888e=_0x3a3841[_0x5da755(0x2ec)],_0x4ea66c=this['_configService'][_0x5da755(0x230)](m),_0x4bee2a=_0x4b888e===0x0?0x0:((_0x4ea66c==null?void 0x0:_0x4ea66c[_0x5da755(0x53e)])??0x4e20)*0x2**_0x4b888e;_0x3a3841[_0x5da755(0x46d)]=setTimeout(()=>{const _0x3ed724=_0x5da755;clearTimeout(_0x3a3841[_0x3ed724(0x46d)]),_0x3a3841['retryConnectingTimer']=null,this[_0x3ed724(0x2f5)](_0x3a3841);},_0x4bee2a),_0x3a3841[_0x5da755(0x2ec)]+=0x1;}async[_0x28bbb9(0x3e0)](_0x3ecd08,_0x3a55c0){const _0x454d61=_0x28bbb9;return et(_0x3ecd08,_0x3a55c0,await this[_0x454d61(0x42a)][_0x454d61(0x2f1)]({'unitId':_0x3ecd08,'unitType':_0x3a55c0}));}['_onMessage'](_0x5cf24f,_0xbce756,_0x35de7c){const _0x4e9d52=_0x28bbb9;if(this[_0x4e9d52(0x1c7)]||_0x5cf24f[_0x4e9d52(0x42b)]!==_0xbce756&&_0x5cf24f['socket$']['getValue']()!==_0xbce756)return;let {cmd:_0x28a626}=_0x35de7c;if(_0x28a626===o[_0x4e9d52(0x291)]['HELLO']&&!_0x5cf24f['socketReady']){var _0x4f53c2;if((_0x35de7c[_0x4e9d52(0x4d2)]??o[_0x4e9d52(0x2e7)]['OK'])!==o[_0x4e9d52(0x2e7)]['OK']||!((_0x4f53c2=_0x35de7c[_0x4e9d52(0x350)])!=null&&_0x4f53c2[_0x4e9d52(0x362)])){this[_0x4e9d52(0x244)](_0x5cf24f);return;}this[_0x4e9d52(0x4f7)](_0x5cf24f),_0xbce756['memberID']=_0x35de7c['data'][_0x4e9d52(0x362)],_0x5cf24f['retryCount']=0x0,_0x5cf24f[_0x4e9d52(0x52e)]=!0x0,_0x5cf24f[_0x4e9d52(0x42b)]=null,_0x5cf24f[_0x4e9d52(0x298)]['next'](_0xbce756),this[_0x4e9d52(0x43a)][_0x4e9d52(0x512)](0x3);}_0x28a626===o[_0x4e9d52(0x291)][_0x4e9d52(0x499)]&&this[_0x4e9d52(0x235)](_0x5cf24f),this[_0x4e9d52(0x1fe)](_0x5cf24f);}[_0x28bbb9(0x3f7)](_0x267143){const _0x36e9ac=_0x28bbb9;return[...this[_0x36e9ac(0x344)][_0x36e9ac(0x2fe)]()][_0x36e9ac(0x33e)](_0x28494e=>_0x28494e===_0x267143);}[_0x28bbb9(0x450)](_0x5ed8dd){const _0x49e4e5=_0x28bbb9;let _0x6eecfd=_0x5ed8dd??'',_0x282c62=this[_0x49e4e5(0x532)][_0x49e4e5(0x285)](_0x6eecfd);if(_0x282c62)return _0x282c62;let _0x4c34b8={'endpointKey':_0x6eecfd,'endpoint':_0x5ed8dd,'socket$':new t[(_0x49e4e5(0x45f))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x49e4e5(0x36a)](_0x6eecfd,_0x4c34b8),_0x4c34b8;}[_0x28bbb9(0x4f7)](_0x851f3f){const _0x58a14a=_0x28bbb9;_0x851f3f[_0x58a14a(0x2e6)]!=null&&(clearTimeout(_0x851f3f[_0x58a14a(0x2e6)]),_0x851f3f['handshakeTimer']=null);}[_0x28bbb9(0x1fe)](_0x2a2bde){const _0xeff5bb=_0x28bbb9;this['_clearHeartbeatTimer'](_0x2a2bde),_0x2a2bde['socketReady']&&(_0x2a2bde[_0xeff5bb(0x21e)]=setTimeout(()=>this[_0xeff5bb(0x43b)](_0x2a2bde),this[_0xeff5bb(0x2c8)][_0xeff5bb(0x230)]('HEARTBEAT_INTERVAL')??0x7530));}[_0x28bbb9(0x43b)](_0x50f77d){const _0x2a3ca0=_0x28bbb9;let _0x43ead1=_0x50f77d[_0x2a3ca0(0x298)][_0x2a3ca0(0x2cc)]();_0x50f77d['socketReady']&&_0x43ead1&&(_0x43ead1[_0x2a3ca0(0x1d8)]({'cmd':o[_0x2a3ca0(0x291)]['HEARTBEAT']}),this[_0x2a3ca0(0x403)](_0x50f77d));}['_waitForHeartbeatResponse'](_0x324ba7){const _0x21637b=_0x28bbb9;_0x324ba7[_0x21637b(0x2b3)]=setTimeout(()=>this['_onConnectionFailed'](_0x324ba7),this['_configService']['getConfig'](_0x21637b(0x269))??0x4e20);}[_0x28bbb9(0x252)](_0x3b0c3a){const _0x1cc49d=_0x28bbb9;_0x3b0c3a[_0x1cc49d(0x21e)]!=null&&(clearTimeout(_0x3b0c3a['sendHeartbeatTimer']),_0x3b0c3a[_0x1cc49d(0x21e)]=null);}[_0x28bbb9(0x235)](_0x5c962e){const _0x12acbe=_0x28bbb9;_0x5c962e['timeoutTimer']!=null&&(clearTimeout(_0x5c962e[_0x12acbe(0x2b3)]),_0x5c962e[_0x12acbe(0x2b3)]=null);}};function _0x53d0(_0x58f3f8,_0x3d0e11){_0x58f3f8=_0x58f3f8-0x1b5;const _0x175792=_0x1757();let _0x53d08b=_0x175792[_0x58f3f8];return _0x53d08b;}U=b([y(0x0,(0x0,r['Inject'])(r[_0x28bbb9(0x506)])),y(0x1,r[_0x28bbb9(0x369)]),y(0x2,r['IConfigService']),y(0x3,Je),y(0x4,(0x0,r[_0x28bbb9(0x431)])(v)),y(0x5,Qe)],U);function tt(_0x4aca3e){const _0x11626c=_0x28bbb9;if(_0x4aca3e[_0x11626c(0x329)]!==o[_0x11626c(0x291)][_0x11626c(0x31c)])return!0x1;let _0x223e63=_0x4aca3e[_0x11626c(0x350)]['eventID'];return _0x223e63===n[_0x11626c(0x33f)][_0x11626c(0x296)]||_0x223e63===n['CollaborationEvent']['FETCH_MISSING'];}let W=class extends r[_0x28bbb9(0x22c)]{constructor(_0x1a718a,_0x1bbfde,_0x421e46,_0x39e6e4){const _0x473404=_0x28bbb9;var _0x19c178;super(),this[_0x473404(0x475)]=_0x1a718a,this['_collabSessionService']=_0x1bbfde,this[_0x473404(0x2c8)]=_0x421e46,this['_univerInstanceService']=_0x39e6e4,_(this,_0x473404(0x21c),new Map()),_(this,_0x473404(0x26c),new t[(_0x473404(0x39a))]()),_(this,_0x473404(0x513),this[_0x473404(0x26c)][_0x473404(0x32f)]()),((_0x19c178=this[_0x473404(0x2c8)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x19c178[_0x473404(0x53c)])!==!0x1&&this['_init']();}[_0x28bbb9(0x3ac)](){const _0x462d2b=_0x28bbb9;super['dispose'](),this[_0x462d2b(0x21c)][_0x462d2b(0x3e9)](_0x29c404=>_0x29c404[_0x462d2b(0x3ac)]()),this['_entities'][_0x462d2b(0x311)]();}[_0x28bbb9(0x4c6)](_0x1d3b62){const _0x519ab7=_0x28bbb9;return this[_0x519ab7(0x21c)][_0x519ab7(0x285)](_0x1d3b62)??null;}[_0x28bbb9(0x294)](){const _0x4a739b=_0x28bbb9;return Array[_0x4a739b(0x3f8)](this[_0x4a739b(0x21c)][_0x4a739b(0x2fe)]());}[_0x28bbb9(0x2fd)](_0xdcb763){const _0x1d5258=_0x28bbb9;let _0x53c029=this[_0x1d5258(0x4c6)](_0xdcb763);return _0x53c029?(0x0,t['of'])(_0x53c029):this[_0x1d5258(0x26c)][_0x1d5258(0x213)]((0x0,c[_0x1d5258(0x46f)])(_0xe74755=>_0xe74755['unitID']===_0xdcb763));}[_0x28bbb9(0x22e)](_0x112f50){const _0x566905=_0x28bbb9;return(0x0,t['firstValueFrom'])(this[_0x566905(0x2fd)](_0x112f50)[_0x566905(0x213)]((0x0,c[_0x566905(0x485)])(()=>void 0x0)));}[_0x28bbb9(0x207)](_0xb7b911){const _0x38af60=_0x28bbb9;if(_0xb7b911!==void 0x0){var _0xf95834;return((_0xf95834=this[_0x38af60(0x21c)]['get'](_0xb7b911))==null?void 0x0:_0xf95834[_0x38af60(0x207)]())??!0x1;}for(let _0x3380ea of this[_0x38af60(0x21c)][_0x38af60(0x2fe)]())if(_0x3380ea[_0x38af60(0x207)]())return!0x0;return!0x1;}[_0x28bbb9(0x240)](){const _0x47900f=_0x28bbb9;this[_0x47900f(0x4b7)]['getTypeOfUnitAdded$'](r[_0x47900f(0x24b)]['UNIVER_SHEET'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x1712f0=>{const _0x436c49=_0x47900f;let _0x474a9e=_0x1712f0[_0x436c49(0x54f)][_0x436c49(0x3e7)](),_0x28dd4b=await this[_0x436c49(0x341)](_0x474a9e,r[_0x436c49(0x24b)][_0x436c49(0x486)]);this[_0x436c49(0x21c)]['set'](_0x474a9e,_0x28dd4b);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_DOC'])[_0x47900f(0x213)]((0x0,t['takeUntil'])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x213)]((0x0,c[_0x47900f(0x46f)])(_0x389b76=>!_0x389b76[_0x47900f(0x54f)][_0x47900f(0x3e7)]()['startsWith']('__')))['subscribe'](async _0xf6ec7=>{const _0x3d7702=_0x47900f;let _0x3e7097=_0xf6ec7['unit'][_0x3d7702(0x3e7)](),_0x1007e1=await this[_0x3d7702(0x341)](_0x3e7097,r[_0x3d7702(0x24b)]['UNIVER_DOC']);this[_0x3d7702(0x21c)][_0x3d7702(0x36a)](_0x3e7097,_0x1007e1);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_SLIDE'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x541d8a=>{const _0x493de4=_0x47900f;let _0x2834b1=_0x541d8a['unit'][_0x493de4(0x3e7)](),_0x73e1e1=await this[_0x493de4(0x341)](_0x2834b1,r[_0x493de4(0x24b)]['UNIVER_SLIDE']);this['_entities'][_0x493de4(0x36a)](_0x2834b1,_0x73e1e1);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r['UniverInstanceType']['UNIVER_BOARD'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c['delay'])(0x10))[_0x47900f(0x264)](async _0x2bd0bb=>{const _0x246475=_0x47900f;let _0x1acfe4=_0x2bd0bb[_0x246475(0x54f)]['getUnitId'](),_0x575d9c=await this['_startCollaboration'](_0x1acfe4,r['UniverInstanceType'][_0x246475(0x449)]);this['_entities'][_0x246475(0x36a)](_0x1acfe4,_0x575d9c);}),this[_0x47900f(0x4b7)][_0x47900f(0x342)](r[_0x47900f(0x24b)][_0x47900f(0x3bb)])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]),(0x0,c['delay'])(0x10))['subscribe'](async _0x38af90=>{const _0x57cdb2=_0x47900f;let _0xbdbad=_0x38af90[_0x57cdb2(0x54f)]['getUnitId'](),_0x3f86c5=await this[_0x57cdb2(0x341)](_0xbdbad,r[_0x57cdb2(0x24b)][_0x57cdb2(0x3bb)]);this['_entities'][_0x57cdb2(0x36a)](_0xbdbad,_0x3f86c5);}),this['_univerInstanceService'][_0x47900f(0x342)](r[_0x47900f(0x24b)]['UNIVER_PDF'])[_0x47900f(0x213)]((0x0,t[_0x47900f(0x418)])(this['dispose$']),(0x0,c[_0x47900f(0x491)])(0x10))[_0x47900f(0x264)](async _0x5bc2f4=>{const _0x3f6d9c=_0x47900f;let _0x1c5865=_0x5bc2f4[_0x3f6d9c(0x54f)][_0x3f6d9c(0x3e7)](),_0x195756=await this[_0x3f6d9c(0x341)](_0x1c5865,r[_0x3f6d9c(0x24b)][_0x3f6d9c(0x367)]);this[_0x3f6d9c(0x21c)]['set'](_0x1c5865,_0x195756);}),(0x0,t[_0x47900f(0x3e1)])(this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r['UniverInstanceType'][_0x47900f(0x486)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r['UniverInstanceType'][_0x47900f(0x297)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x405)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x449)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x3bb)]),this[_0x47900f(0x4b7)][_0x47900f(0x3ce)](r[_0x47900f(0x24b)][_0x47900f(0x367)]))['pipe']((0x0,t[_0x47900f(0x418)])(this[_0x47900f(0x55d)]))[_0x47900f(0x264)](_0x2dd825=>{const _0x39a13b=_0x47900f;let _0x218092=_0x2dd825['getUnitId'](),_0x507cb7=this['_entities']['get'](_0x218092);_0x507cb7&&(_0x507cb7[_0x39a13b(0x3ac)](),this[_0x39a13b(0x21c)]['delete'](_0x218092));});}async[_0x28bbb9(0x341)](_0x5c4921,_0x58ca0b){const _0x663165=_0x28bbb9;let _0x359cb8=await this['_collabSessionService'][_0x663165(0x345)](_0x5c4921),_0xa34501=this[_0x663165(0x475)][_0x663165(0x3e2)](this[_0x663165(0x23c)](_0x58ca0b),_0x5c4921,_0x58ca0b,_0x359cb8);return await _0xa34501['init'](),this[_0x663165(0x26c)]['next'](_0xa34501),_0xa34501;}[_0x28bbb9(0x23c)](_0x4b3b9b){const _0x2fe2cc=_0x28bbb9;switch(_0x4b3b9b){case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x297)]:return L;case r['UniverInstanceType'][_0x2fe2cc(0x486)]:return z;case r['UniverInstanceType']['UNIVER_SLIDE']:return B;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x449)]:return V;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x3bb)]:return R;case r[_0x2fe2cc(0x24b)][_0x2fe2cc(0x367)]:return H;default:throw Error(_0x2fe2cc(0x404)+_0x4b3b9b);}}};W=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(U)),y(0x2,r[_0x28bbb9(0x421)]),y(0x3,r[_0x28bbb9(0x51c)])],W);var nt=_0x28bbb9(0x36f),rt='1.2.0';let it=class extends r['Disposable']{constructor(_0x311fb8,_0x4e69f4){const _0x4a899b=_0x28bbb9;super(),this['_univerInstanceService']=_0x311fb8,this[_0x4a899b(0x2c8)]=_0x4e69f4,this[_0x4a899b(0x240)]();}[_0x28bbb9(0x240)](){const _0x2c3dea=_0x28bbb9;this['disposeWithMe'](this['_univerInstanceService'][_0x2c3dea(0x352)][_0x2c3dea(0x264)](()=>{const _0x318ffb=_0x2c3dea;let _0x3da952=this[_0x318ffb(0x4b7)][_0x318ffb(0x424)](),_0x18815f=this['_configService'][_0x318ffb(0x230)](_0x318ffb(0x2fb))??_0x318ffb(0x1fa);_0x3da952 instanceof r[_0x318ffb(0x218)]&&(_0x18815f=_0x3da952[_0x318ffb(0x234)]),document['title']=_0x18815f;}));}};it=b([y(0x0,r[_0x28bbb9(0x51c)]),y(0x1,r['IConfigService'])],it);const at=(0x0,r['createIdentifier'])(_0x28bbb9(0x243));let G=class{constructor(_0x3764be,_0xc7075e,_0x19ca76){const _0x4b6d1b=_0x28bbb9;this[_0x4b6d1b(0x2a4)]=_0x3764be,this[_0x4b6d1b(0x2c8)]=_0xc7075e,this[_0x4b6d1b(0x4b7)]=_0x19ca76;}['getUploadOptions'](){const _0x19d827=_0x28bbb9;return this[_0x19d827(0x3c0)]()[_0x19d827(0x29f)]??{};}async[_0x28bbb9(0x2aa)](_0x10813b){const _0x1ca5eb=_0x28bbb9;let _0x1fd27b=this[_0x1ca5eb(0x436)]();if(ot(_0x10813b,_0x1fd27b),_0x1fd27b[_0x1ca5eb(0x469)])return _0x1fd27b['upload'](_0x10813b);let _0x4ea171=await this[_0x1ca5eb(0x401)](_0x10813b);return{'id':_0x4ea171,'name':_0x10813b[_0x1ca5eb(0x234)],'mimeType':_0x10813b[_0x1ca5eb(0x538)],'size':_0x10813b['size'],'sourceType':r['ImageSourceType']['UUID'],'source':_0x4ea171};}async[_0x28bbb9(0x511)](_0x7de473,_0x4025fa){const _0x54f1e7=_0x28bbb9;if(_0x4025fa!==r['ImageSourceType'][_0x54f1e7(0x1d3)])return _0x7de473;let _0x148238=(await this[_0x54f1e7(0x2a4)]['get'](this[_0x54f1e7(0x2ef)]()['replace'](_0x54f1e7(0x544),_0x7de473)))[_0x54f1e7(0x340)];if(_0x148238[_0x54f1e7(0x456)]&&_0x148238[_0x54f1e7(0x456)][_0x54f1e7(0x4d2)]!==o[_0x54f1e7(0x1b7)]['OK'])throw _0x148238['error'];if(!_0x148238[_0x54f1e7(0x31d)])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,r[_0x54f1e7(0x28c)])(_0x148238[_0x54f1e7(0x31d)],this['_getDownloadEndpointURL']());}async['_upload'](_0x1b4378){const _0x3faab4=_0x28bbb9;let _0x5ae676=this[_0x3faab4(0x4b7)][_0x3faab4(0x424)](),_0x67e9ef=_0x5ae676==null?void 0x0:_0x5ae676[_0x3faab4(0x3e7)]();if(!_0x67e9ef)throw Error(_0x3faab4(0x38a));let _0x4fecf9=new FormData();_0x4fecf9[_0x3faab4(0x1ef)](_0x3faab4(0x246),_0x1b4378);let _0x28c2e9=this['_getUploadFileURL']()+_0x3faab4(0x2cf)+_0x1b4378['size'][_0x3faab4(0x4c0)]()+_0x3faab4(0x2fc)+o['FileSource'][_0x3faab4(0x43d)]+'&assign='+encodeURIComponent(_0x67e9ef),_0x5206d0=(await this['_httpService'][_0x3faab4(0x36b)](_0x28c2e9,{'body':_0x4fecf9}))[_0x3faab4(0x340)][_0x3faab4(0x217)];if(typeof _0x5206d0!=_0x3faab4(0x2d4)||!_0x5206d0)throw Error(_0x3faab4(0x50b));return _0x5206d0;}[_0x28bbb9(0x516)](){const _0x59cb40=_0x28bbb9;return this['_getConfig']()['uploadFileServerUrl']??_0x59cb40(0x1c2);}[_0x28bbb9(0x2ef)](){const _0x2935eb=_0x28bbb9;return this[_0x2935eb(0x3c0)]()[_0x2935eb(0x2af)]??_0x2935eb(0x545);}[_0x28bbb9(0x3df)](){const _0x2b9418=_0x28bbb9;let _0x31280c=this[_0x2b9418(0x3c0)]();return _0x31280c[_0x2b9418(0x380)]?_0x31280c[_0x2b9418(0x380)]:typeof location<'u'?location[_0x2b9418(0x2e3)]:_0x31280c['uploadFileServerUrl']??'';}[_0x28bbb9(0x3c0)](){const _0x332fce=_0x28bbb9;return this['_configService'][_0x332fce(0x230)]('collaboration-client.config')??{};}};G=b([y(0x0,(0x0,r['Inject'])(e['HTTPService'])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(r['IConfigService'])),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x51c)]))],G);function ot(_0x2b8fab,_0x5d71b1){const _0x298d70=_0x28bbb9;var _0x4fde8c;if(_0x5d71b1['maxSize']!=null&&_0x2b8fab[_0x298d70(0x1e8)]>_0x5d71b1[_0x298d70(0x3fb)])throw Error(_0x298d70(0x1b8));if((_0x4fde8c=_0x5d71b1['accept'])!=null&&_0x4fde8c[_0x298d70(0x47a)]&&!_0x5d71b1['accept'][_0x298d70(0x33e)](_0x49e26b=>_0x2b8fab[_0x298d70(0x538)]===_0x49e26b||_0x2b8fab[_0x298d70(0x234)][_0x298d70(0x4d4)](_0x49e26b)||_0x49e26b['endsWith']('/*')&&_0x2b8fab[_0x298d70(0x538)][_0x298d70(0x4dd)](_0x49e26b[_0x298d70(0x4e6)](0x0,-0x1))))throw Error(_0x298d70(0x250));}let K=class{constructor(_0x5c9d87,_0x492847,_0x3b7d79){const _0x59ff52=_0x28bbb9;this[_0x59ff52(0x2c8)]=_0x5c9d87,this[_0x59ff52(0x2a4)]=_0x492847,this['localeService']=_0x3b7d79,this['init']();}[_0x28bbb9(0x354)](){const _0x228ecc=_0x28bbb9;this[_0x228ecc(0x2a4)][_0x228ecc(0x49d)]({'priority':0x1,'interceptor':(_0x187b0e,_0x3920d7)=>_0x3920d7(_0x187b0e)[_0x228ecc(0x213)]((0x0,t[_0x228ecc(0x209)])(async _0x2674b3=>{const _0x199eaa=_0x228ecc;let _0x173d3d=_0x2674b3;if(_0x173d3d[_0x199eaa(0x290)]===0x191){if(typeof window>'u')throw Error(_0x199eaa(0x528));if(window[_0x199eaa(0x3ea)](this[_0x199eaa(0x2ea)]['t'](_0x199eaa(0x557)))){let _0x538e03=window[_0x199eaa(0x2d2)](window[_0x199eaa(0x24e)][_0x199eaa(0x289)]);window[_0x199eaa(0x24e)][_0x199eaa(0x289)]=this[_0x199eaa(0x386)]()+_0x199eaa(0x496)+_0x538e03;}}return _0x173d3d;}))});}[_0x28bbb9(0x386)](){const _0x9b14dc=_0x28bbb9;let _0x57221b=this[_0x9b14dc(0x2c8)]['getConfig'](m);return(_0x57221b==null?void 0x0:_0x57221b[_0x9b14dc(0x47d)])??_0x9b14dc(0x411);}};K=b([y(0x0,r[_0x28bbb9(0x421)]),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)])),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x25c)]))],K);let q=class extends r[_0x28bbb9(0x3ad)]{constructor(_0x366185,_0x3df6f1){const _0x3adc49=_0x28bbb9;super(),this[_0x3adc49(0x24d)]=_0x366185,this[_0x3adc49(0x2c8)]=_0x3df6f1,_(this,_0x3adc49(0x2cb),!0x1),this[_0x3adc49(0x4ce)]();}[_0x28bbb9(0x4ce)](){const _0xced2c5=_0x28bbb9;let _0x357be2=this;this['disposeWithMe'](this[_0xced2c5(0x24d)][_0xced2c5(0x49d)]({'priority':0x3e7,'interceptor':(0x0,e[_0xced2c5(0x343)])({'isMatch'(_0x39d9bb){const _0x40607e=_0xced2c5;var _0x1cc6e8;if(_0x39d9bb['method']===_0x40607e(0x26d)&&(_0x1cc6e8=_0x39d9bb[_0x40607e(0x26f)])!=null&&_0x1cc6e8[_0x40607e(0x340)]){let {objectID:_0x7945e1,objectType:_0x398b21}=_0x39d9bb[_0x40607e(0x26f)][_0x40607e(0x340)]||{};if(!_0x7945e1||_0x398b21===void 0x0)return!0x1;let _0x540d2a=_0x357be2['_getAPIPrefixPath']()+'/'+_0x398b21+_0x40607e(0x239)+encodeURIComponent(_0x7945e1)+_0x40607e(0x2a9);if(_0x39d9bb[_0x40607e(0x31d)]===_0x540d2a)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x2f496e){const _0x21f29a=_0xced2c5;var _0x78438;return(_0x78438=_0x2f496e['requestParams'])==null?void 0x0:_0x78438[_0x21f29a(0x340)];},'mergeParamsToRequest'(_0x3956ea,_0x4c231c){const _0x5e81e3=_0xced2c5;let _0xb0b62e=_0x357be2[_0x5e81e3(0x2e1)]()+_0x5e81e3(0x4ba),_0x5cd883=_0x3956ea[_0x5e81e3(0x3b9)]((_0x21b407,_0x153a6f)=>{const _0x2afc16=_0x5e81e3;let {unitID:_0x46efd6,objectID:_0x3ec70c,objectType:_0x21496f,actions:_0x449bb8}=_0x153a6f;return _0x21b407[_0x46efd6]||(_0x21b407[_0x46efd6]=Object['create'](null)),_0x21b407[_0x46efd6][_0x3ec70c]||(_0x21b407[_0x46efd6][_0x3ec70c]={'objectID':_0x3ec70c,'objectType':_0x21496f,'actions':[]}),_0x21b407[_0x46efd6][_0x3ec70c][_0x2afc16(0x3d1)][_0x2afc16(0x4ec)](..._0x449bb8),_0x21b407;},Object[_0x5e81e3(0x501)](null)),_0x6e32f9=[];for(let _0x10fc56 in _0x5cd883)for(let _0x4341be in _0x5cd883[_0x10fc56]){let {actions:_0x416f17,objectType:_0x7a8dc6}=_0x5cd883[_0x10fc56][_0x4341be],_0x6d2525=[...new Set(_0x416f17)];_0x6e32f9[_0x5e81e3(0x4ec)]({'unitID':_0x10fc56,'objectID':_0x4341be,'objectType':_0x7a8dc6,'actions':_0x6d2525});}return new e[(_0x5e81e3(0x28d))]('POST',_0xb0b62e,{'headers':_0x4c231c['headers'],'withCredentials':_0x4c231c[_0x5e81e3(0x4de)],'responseType':_0x4c231c['responseType'],'body':{'requests':_0x6e32f9}});}},{'distributeResult'(_0x4f768b,_0x427454){const _0x516681=_0xced2c5;let {objectActions:_0x3285f5}=_0x4f768b;return _0x427454[_0x516681(0x485)](_0x29d219=>{const _0x45fa89=_0x516681;let {unitID:_0xe9e810,objectID:_0x53cdfe,actions:_0x38d139}=_0x29d219,_0x19f829=_0x3285f5[_0x45fa89(0x552)](_0x59f698=>_0x59f698[_0x45fa89(0x2e9)]===_0xe9e810&&_0x59f698[_0x45fa89(0x242)]===_0x53cdfe);return{'config':_0x29d219,'result':{'actions':_0x38d139[_0x45fa89(0x485)](_0x2ab671=>_0x19f829==null?void 0x0:_0x19f829[_0x45fa89(0x3d1)][_0x45fa89(0x552)](_0x311165=>_0x311165[_0x45fa89(0x4c1)]===_0x2ab671))[_0x45fa89(0x46f)](_0xb50ffc=>!!_0xb50ffc),'error':_0x4f768b[_0x45fa89(0x456)]}};});}})}));}[_0x28bbb9(0x2e1)](){const _0x2486ba=_0x28bbb9;let _0x8aa7df=this[_0x2486ba(0x2c8)]['getConfig'](m);return(_0x8aa7df==null?void 0x0:_0x8aa7df[_0x2486ba(0x4d5)])??_0x2486ba(0x4fa);}async[_0x28bbb9(0x501)](_0x11d25d){const _0x4fc330=_0x28bbb9;let _0x679600=this[_0x4fc330(0x2e1)]()+'/'+_0x11d25d[_0x4fc330(0x277)]+_0x4fc330(0x1b6);return(await this[_0x4fc330(0x24d)][_0x4fc330(0x36b)](_0x679600,{'body':_0x11d25d}))[_0x4fc330(0x340)][_0x4fc330(0x242)]||'';}async['list'](_0x82ae19){const _0x30fb20=_0x28bbb9;let _0x514190=this[_0x30fb20(0x2e1)]()+_0x30fb20(0x408);return(await this['_HTTPService'][_0x30fb20(0x36b)](_0x514190,{'body':_0x82ae19}))['body'][_0x30fb20(0x214)];}async['update'](_0x161520){const _0x195370=_0x28bbb9;var _0x5b5726;let _0x596022=this[_0x195370(0x2e1)]()+'/'+_0x161520[_0x195370(0x277)]+_0x195370(0x239)+encodeURIComponent(_0x161520[_0x195370(0x242)]),_0x38b23f=await this[_0x195370(0x24d)]['put'](_0x596022,{'body':_0x161520});if((_0x38b23f==null||(_0x5b5726=_0x38b23f[_0x195370(0x340)])==null||(_0x5b5726=_0x5b5726[_0x195370(0x456)])==null?void 0x0:_0x5b5726[_0x195370(0x4d2)])!==0x1)throw Error(_0x195370(0x4e5));}async[_0x28bbb9(0x3f4)](_0x55268f){const _0x1c6e2a=_0x28bbb9;let _0x21a8b7=this['_getAPIPrefixPath']()+'/'+_0x55268f[_0x1c6e2a(0x277)]+_0x1c6e2a(0x239)+encodeURIComponent(_0x55268f['objectID'])+'/allowed';return(await this[_0x1c6e2a(0x24d)]['post'](_0x21a8b7,{'body':_0x55268f}))[_0x1c6e2a(0x340)][_0x1c6e2a(0x3d1)];}async['batchAllowed'](_0x3188f3){const _0xe4f176=_0x28bbb9;let _0x1c0ec3=this[_0xe4f176(0x2e1)]()+'/-/object/-/batch_allowed';return(await this[_0xe4f176(0x24d)][_0xe4f176(0x36b)](_0x1c0ec3,{'body':{'requests':_0x3188f3}}))[_0xe4f176(0x340)][_0xe4f176(0x47e)];}async['listRoles'](_0x751340){const _0x412db7=_0x28bbb9;let _0x52cb58=this[_0x412db7(0x2e1)]()+'/'+_0x751340['objectType']+'/role',_0x150f2f=await this[_0x412db7(0x24d)][_0x412db7(0x36b)](_0x52cb58,{'body':_0x751340});return{'roles':_0x150f2f[_0x412db7(0x340)][_0x412db7(0x2cd)],'actions':_0x150f2f[_0x412db7(0x340)][_0x412db7(0x3d1)]};}async[_0x28bbb9(0x3eb)](_0x5a09fe){const _0x582feb=_0x28bbb9;let _0x4a7fed=this[_0x582feb(0x2e1)]()+_0x582feb(0x1fd);await this[_0x582feb(0x24d)][_0x582feb(0x551)](_0x4a7fed,{'params':{'collaboratorID':_0x5a09fe[_0x582feb(0x4b9)],'objectID':_0x5a09fe['objectID'],'unitID':_0x5a09fe[_0x582feb(0x2e9)]}});}async[_0x28bbb9(0x4ae)](_0x4c43a2){const _0x375d0e=_0x28bbb9;let _0x3e6510=this[_0x375d0e(0x2e1)]()+_0x375d0e(0x1fd);await this[_0x375d0e(0x24d)]['patch'](_0x3e6510,{'body':_0x4c43a2});}async[_0x28bbb9(0x523)](_0x376979){const _0xe71979=_0x28bbb9;let _0x21c404=this[_0xe71979(0x2e1)]()+_0xe71979(0x1fd);await this[_0xe71979(0x24d)][_0xe71979(0x36b)](_0x21c404,{'body':_0x376979});}async[_0x28bbb9(0x336)](_0x46bef5){const _0x23fef4=_0x28bbb9;let _0x1b1425=this[_0x23fef4(0x2e1)]()+_0x23fef4(0x1fd),_0x5d575f=await this['_HTTPService'][_0x23fef4(0x285)](_0x1b1425,{'params':{'objectID':_0x46bef5[_0x23fef4(0x242)],'unitID':_0x46bef5['unitID']}});return this[_0x23fef4(0x423)](_0x5d575f[_0x23fef4(0x340)]['cfgEnableObjInherit']??!0x1),_0x5d575f[_0x23fef4(0x340)][_0x23fef4(0x44c)];}async[_0x28bbb9(0x40e)](_0x10b568){const _0x22f09c=_0x28bbb9;let _0x5d3a58=this[_0x22f09c(0x2e1)]()+'/collaborator';await this[_0x22f09c(0x24d)]['put'](_0x5d3a58,{'body':_0x10b568});}[_0x28bbb9(0x423)](_0x24dd26){const _0x293bc2=_0x28bbb9;this[_0x293bc2(0x2cb)]=_0x24dd26;}['getCfgEnableObjInherit'](){const _0x47ffdf=_0x28bbb9;return this[_0x47ffdf(0x2cb)];}};q=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x421)]))],q);function st(_0x2d4863){const _0x19562e=_0x28bbb9;let _0xbae5f3=atob(_0x2d4863),_0x318e06=new Uint8Array(_0xbae5f3[_0x19562e(0x47a)]);for(let _0x19ceff=0x0;_0x19ceff<_0xbae5f3['length'];_0x19ceff++)_0x318e06[_0x19ceff]=_0xbae5f3[_0x19562e(0x38f)](_0x19ceff);return _0x318e06;}function ct(_0x3535cd){const _0x500913=_0x28bbb9;let _0x5907eb='';for(let _0x266efa=0x0;_0x266efa<_0x3535cd[_0x500913(0x47a)];_0x266efa++)_0x5907eb+=String['fromCharCode'](_0x3535cd[_0x266efa]);return btoa(_0x5907eb);}function lt(_0x1daf59,_0x296371){const _0x2ec6f6=_0x28bbb9;let _0x5ea617=st(_0x296371),_0x2adcfa=(0x0,f[_0x2ec6f6(0x381)])(0x10),_0x1434bb=(0x0,d[_0x2ec6f6(0x548)])(_0x5ea617,_0x2adcfa)['encrypt']((0x0,f[_0x2ec6f6(0x390)])(_0x1daf59));return ct((0x0,f['concatBytes'])(_0x2adcfa,_0x1434bb));}function ut(){const _0x227614=_0x28bbb9;let _0x5eaf19=(0x0,u[_0x227614(0x4f5)])()[_0x227614(0x21a)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x5eaf19){let _0x4db7fa={'time':Math['floor'](Date[_0x227614(0x4a3)]()/0x3e8),'domain':location[_0x227614(0x263)]};return lt(JSON[_0x227614(0x4d3)](_0x4db7fa),_0x5eaf19);}}let J=class{constructor(_0x8b52b5){const _0x2441de=_0x28bbb9;this[_0x2441de(0x2a4)]=_0x8b52b5,this[_0x2441de(0x430)]();}[_0x28bbb9(0x430)](){this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x1589c3,_0x310eab)=>{const _0x54e7aa=_0x53d0;let _0x35541f=ut();return _0x35541f&&_0x1589c3['headers'][_0x54e7aa(0x36a)]('x-univer-host',_0x35541f),_0x310eab(_0x1589c3);}});}};J=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(e['HTTPService']))],J);let Y=class extends r['RxDisposable']{constructor(_0x42a047,_0xe81de1,_0xd96e7d){const _0x4bf90f=_0x28bbb9;super(),this[_0x4bf90f(0x41e)]=_0x42a047,this[_0x4bf90f(0x494)]=_0xe81de1,this[_0x4bf90f(0x4a5)]=_0xd96e7d,_(this,'_unitInfo$',new t[(_0x4bf90f(0x45f))](null)),_(this,_0x4bf90f(0x34e),new t[(_0x4bf90f(0x39a))]()),_(this,_0x4bf90f(0x566),this[_0x4bf90f(0x20f)][_0x4bf90f(0x32f)]()),_(this,_0x4bf90f(0x312),this['_unitLoaded$'][_0x4bf90f(0x32f)]());}[_0x28bbb9(0x3ac)](){const _0x13480c=_0x28bbb9;super[_0x13480c(0x3ac)](),this['_unitLoaded$'][_0x13480c(0x30f)](),this[_0x13480c(0x20f)][_0x13480c(0x30f)]();}['loadUnitOfRevision'](_0x554788,_0x3a41c3,_0x4fffcf,_0x4850e7,_0xefd3c4){return this['_loadUnit'](_0x554788,_0x3a41c3,_0x4fffcf,_0x4850e7,_0xefd3c4);}[_0x28bbb9(0x55f)](_0x48b8f,_0x37eaca,_0x4d61ce,_0x1e5f60){const _0x2f4647=_0x28bbb9;return this[_0x2f4647(0x54b)](_0x48b8f,_0x37eaca,void 0x0,_0x4d61ce,_0x1e5f60);}async[_0x28bbb9(0x54b)](_0x24de53,_0x30e847,_0x528d17,_0x1c7c6a,_0x1b8799){const _0x393911=_0x28bbb9;this[_0x393911(0x20f)][_0x393911(0x512)]({'unitId':_0x24de53,'type':_0x30e847,'subUnitId':_0x1c7c6a});let _0x306e70=_0x528d17;if(_0x306e70===void 0x0){var _0x50a06c;let _0x511c47=await((_0x50a06c=this[_0x393911(0x4a5)])==null?void 0x0:_0x50a06c[_0x393911(0x3b8)](_0x24de53));_0x306e70=_0x511c47&&(_0x511c47[_0x393911(0x438)]||_0x511c47[_0x393911(0x220)][_0x393911(0x47a)]!==0x0)?_0x511c47[_0x393911(0x3af)]:0x0,_0x306e70===0x0&&this[_0x393911(0x41e)][_0x393911(0x2ba)](_0x393911(0x40a),_0x393911(0x559));}return this[_0x393911(0x444)](_0x24de53,_0x30e847,_0x306e70,_0x1c7c6a,_0x1b8799);}async['_loadSnapshot'](_0x3b2e95,_0x33176b,_0x55c09b,_0x293ea9,_0x20a06a){const _0x34caef=_0x28bbb9;let _0xac0583=null;switch(_0x33176b){case r[_0x34caef(0x24b)][_0x34caef(0x486)]:_0xac0583=await this[_0x34caef(0x494)][_0x34caef(0x1ce)](_0x3b2e95,_0x55c09b,_0x20a06a,{'initialSubUnitId':_0x293ea9});break;case r[_0x34caef(0x24b)][_0x34caef(0x297)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x206)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x405)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x3d7)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x449)]:_0xac0583=await this['_snapshotService']['loadBoard'](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x3bb)]:_0xac0583=await this['_snapshotService'][_0x34caef(0x337)](_0x3b2e95,_0x55c09b,_0x20a06a);break;case r[_0x34caef(0x24b)][_0x34caef(0x367)]:_0xac0583=await this['_snapshotService']['loadPdf'](_0x3b2e95,_0x55c09b,_0x20a06a);break;default:this[_0x34caef(0x41e)][_0x34caef(0x456)](_0x34caef(0x40a),'Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.');}return _0xac0583&&this[_0x34caef(0x34e)][_0x34caef(0x512)](_0xac0583),_0xac0583;}};Y=b([y(0x0,r[_0x28bbb9(0x369)]),y(0x1,(0x0,r['Inject'])(n[_0x28bbb9(0x471)])),y(0x2,(0x0,r[_0x28bbb9(0x1cd)])(C))],Y);let X=class{constructor(_0x2913ae,_0x22a6c9,_0x34a138){const _0x4040fa=_0x28bbb9;this[_0x4040fa(0x2a4)]=_0x2913ae,this['_configService']=_0x22a6c9,this[_0x4040fa(0x4b7)]=_0x34a138,_(this,'_waitCount',0x0),_(this,_0x4040fa(0x547),new t[(_0x4040fa(0x39a))]()),_(this,'change$',this[_0x4040fa(0x547)]),_(this,_0x4040fa(0x3c2),new Map());}[_0x28bbb9(0x37c)](_0x428a9c){const _0x191d24=_0x28bbb9;this['_waitCount']=_0x428a9c,this[_0x191d24(0x547)]['next'](_0x428a9c);}[_0x28bbb9(0x256)](_0x22611c,_0x3090d1){const _0x2fcb3d=_0x28bbb9;if(_0x3090d1===r[_0x2fcb3d(0x4f3)]['BASE64']){let _0x48c750=new Image();return _0x48c750[_0x2fcb3d(0x333)]=_0x22611c,_0x48c750;}return this[_0x2fcb3d(0x3c2)][_0x2fcb3d(0x285)](_0x22611c);}[_0x28bbb9(0x2a1)](_0x29bd6a,_0x4ab156,_0x2c64d7){const _0x2cde2c=_0x28bbb9;_0x4ab156!==r[_0x2cde2c(0x4f3)][_0x2cde2c(0x1bb)]&&_0x2c64d7!=null&&this[_0x2cde2c(0x3c2)]['set'](_0x29bd6a,_0x2c64d7);}async[_0x28bbb9(0x527)](_0xeb13d){const _0x328baf=_0x28bbb9;try{let _0x316fb8=this[_0x328baf(0x3d8)](this[_0x328baf(0x2ef)](),''+_0xeb13d),_0x5ee50b=(await this['_httpService'][_0x328baf(0x285)](_0x316fb8))[_0x328baf(0x340)];if(_0x5ee50b['error']&&_0x5ee50b['error']['code']===o[_0x328baf(0x1b7)]['OK']){let _0x2cf382=(0x0,r[_0x328baf(0x28c)])(_0x5ee50b['url'],this[_0x328baf(0x3df)]());return Promise['resolve'](_0x2cf382);}return Promise[_0x328baf(0x481)](_0x5ee50b[_0x328baf(0x456)]);}catch(_0x44e53c){return Promise[_0x328baf(0x481)](_0x44e53c);}}async[_0x28bbb9(0x4ad)](_0x8ba2cc){const _0x1b9cff=_0x28bbb9;let _0x305644='';if(!p['DRAWING_IMAGE_ALLOW_IMAGE_LIST'][_0x1b9cff(0x539)](_0x8ba2cc[_0x1b9cff(0x538)]))return this['_decreaseWaiting'](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE_TYPE']));if(_0x8ba2cc['size']>(0x0,p[_0x1b9cff(0x2f7)])())return this[_0x1b9cff(0x1e1)](),Promise['reject'](Error(r['ImageUploadStatusType']['ERROR_EXCEED_SIZE']));try{let _0x1234f8=new FormData();_0x1234f8[_0x1b9cff(0x1ef)](_0x1b9cff(0x246),_0x8ba2cc);let _0x5176ed=this['_univerInstanceService']['getFocusedUnit'](),_0x15a5ba=_0x5176ed==null?void 0x0:_0x5176ed[_0x1b9cff(0x3e7)]();if(!_0x15a5ba)throw Error('unitId\x20is\x20not\x20found');let _0x16a6c2=this[_0x1b9cff(0x516)]()+'?size='+_0x8ba2cc[_0x1b9cff(0x1e8)][_0x1b9cff(0x4c0)]()+_0x1b9cff(0x2fc)+o['FileSource'][_0x1b9cff(0x43d)]+'&assign='+encodeURIComponent(_0x15a5ba),_0x5bf507={'body':_0x1234f8},_0x8b8c42=(await this['_httpService'][_0x1b9cff(0x36b)](_0x16a6c2,_0x5bf507))[_0x1b9cff(0x340)];if(typeof _0x8b8c42['FileId']!=_0x1b9cff(0x2d4))return this[_0x1b9cff(0x1e1)](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE']));_0x305644=_0x8b8c42[_0x1b9cff(0x217)];}catch{return this['_decreaseWaiting'](),Promise[_0x1b9cff(0x481)](Error(r[_0x1b9cff(0x563)]['ERROR_IMAGE']));}return new Promise((_0x36bb09,_0x246328)=>{const _0x82ca04=_0x1b9cff;let _0xb43a39=new FileReader();_0xb43a39[_0x82ca04(0x31e)](_0x8ba2cc),_0xb43a39['onload']=_0x3dc964=>{const _0x47f873=_0x82ca04;var _0x4039af;let _0x442a80=(_0x4039af=_0x3dc964[_0x47f873(0x29d)])==null?void 0x0:_0x4039af[_0x47f873(0x319)];_0x442a80==null?(this[_0x47f873(0x1e1)](),_0x246328(Error(r[_0x47f873(0x563)]['ERROR_IMAGE']))):(_0x36bb09({'imageId':(0x0,r[_0x47f873(0x24f)])(0x6),'imageSourceType':r[_0x47f873(0x4f3)]['UUID'],'source':_0x305644,'base64Cache':_0x442a80,'status':r[_0x47f873(0x563)][_0x47f873(0x232)]}),this['_decreaseWaiting']());};});}['_getUploadFileURL'](){const _0x4826c5=_0x28bbb9;let _0x7f8794=this['_configService'][_0x4826c5(0x230)](m);return(_0x7f8794==null?void 0x0:_0x7f8794[_0x4826c5(0x1ed)])??_0x4826c5(0x1c2);}[_0x28bbb9(0x2ef)](){const _0x102eef=_0x28bbb9;let _0x2aa09f=this['_configService']['getConfig'](m);return(_0x2aa09f==null?void 0x0:_0x2aa09f[_0x102eef(0x2af)])??_0x102eef(0x545);}[_0x28bbb9(0x3df)](){const _0x53dbe4=_0x28bbb9;let _0x4d6ede=this[_0x53dbe4(0x2c8)][_0x53dbe4(0x230)](m);return(_0x4d6ede==null?void 0x0:_0x4d6ede[_0x53dbe4(0x380)])??location[_0x53dbe4(0x2e3)];}[_0x28bbb9(0x3d8)](_0x525b40,_0x1488a0){const _0x17d529=_0x28bbb9;return _0x525b40[_0x17d529(0x484)](_0x17d529(0x544),_0x1488a0);}[_0x28bbb9(0x1e1)](){const _0x561f43=_0x28bbb9;--this[_0x561f43(0x500)],this[_0x561f43(0x547)][_0x561f43(0x512)](this[_0x561f43(0x500)]);}};X=b([y(0x0,(0x0,r['Inject'])(e['HTTPService'])),y(0x1,r[_0x28bbb9(0x421)]),y(0x2,(0x0,r['Inject'])(r['IUniverInstanceService']))],X);let Z=class{constructor(_0x19ee94,_0x3d532){const _0x386bcb=_0x28bbb9;this['_configService']=_0x19ee94,this[_0x386bcb(0x24d)]=_0x3d532;}[_0x28bbb9(0x2e1)](){const _0x1d371d=_0x28bbb9;let _0x17e2e5=this[_0x1d371d(0x2c8)][_0x1d371d(0x230)](m);return(_0x17e2e5==null?void 0x0:_0x17e2e5[_0x1d371d(0x4d5)])??'/universer-api/authz';}async['list'](_0x4330da){const _0x3c0f93=_0x28bbb9;let _0x3c54bf=this[_0x3c0f93(0x2e1)]()+_0x3c0f93(0x1fd);return{'list':[{'title':_0x3c0f93(0x50a),'mentions':(await this[_0x3c0f93(0x24d)][_0x3c0f93(0x285)](_0x3c54bf,{'params':{'objectID':_0x4330da[_0x3c0f93(0x212)],'unitID':_0x4330da[_0x3c0f93(0x212)]}}))['body']['collaborators'][_0x3c0f93(0x485)](_0x4b9923=>({'objectId':_0x4b9923['id'],'name':_0x4b9923[_0x3c0f93(0x2d5)][_0x3c0f93(0x234)],'metadata':{'icon':_0x4b9923[_0x3c0f93(0x2d5)]['avatar']},'label':_0x4b9923[_0x3c0f93(0x2d5)]['name'],'objectType':r[_0x3c0f93(0x50e)]['PERSON']})),'metadata':{},'type':r['MentionType'][_0x3c0f93(0x4e1)]}]};}};Z=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x421)])),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)]))],Z);let Q=class extends r[_0x28bbb9(0x22c)]{constructor(_0x34c637,_0x2f1071,_0x51e64c,_0x18835c,_0x45e2e5,_0x4a536a){const _0x444068=_0x28bbb9;super(),this['_injector']=_0x34c637,this['_univerInstanceService']=_0x2f1071,this[_0x444068(0x370)]=_0x51e64c,this[_0x444068(0x225)]=_0x18835c,this[_0x444068(0x22d)]=_0x45e2e5,this[_0x444068(0x3b5)]=_0x4a536a,_(this,_0x444068(0x56a),new Set()),this[_0x444068(0x457)](()=>this[_0x444068(0x56a)]['clear']()),this['disposeWithMe'](dt(this[_0x444068(0x4b7)])[_0x444068(0x264)](({unitId:_0x45c6f5})=>this['_closedUnits'][_0x444068(0x551)](_0x45c6f5))),this['_initUnitPermissionChange'](),this[_0x444068(0x273)](),[r[_0x444068(0x24b)][_0x444068(0x297)],r[_0x444068(0x24b)][_0x444068(0x405)],r[_0x444068(0x24b)][_0x444068(0x3bb)],r[_0x444068(0x24b)][_0x444068(0x449)]]['forEach'](_0x5cafea=>{const _0x52ca24=_0x444068;this[_0x52ca24(0x457)](this[_0x52ca24(0x4b7)][_0x52ca24(0x3ce)](_0x5cafea)[_0x52ca24(0x264)](_0x3cc33c=>{const _0x414d93=_0x52ca24;this[_0x414d93(0x56a)][_0x414d93(0x3a3)](_0x3cc33c[_0x414d93(0x3e7)]()),this[_0x414d93(0x475)]['get'](r[_0x414d93(0x3ba)])['clearUnit'](_0x3cc33c['getUnitId']());}));});}[_0x28bbb9(0x273)](){const _0x9af16c=_0x28bbb9;let _0x29f560=async(_0x3702b2,_0x149226)=>{const _0x4c9eac=_0x53d0;let _0x4a6e49=await this['_collaborationSessionService'][_0x4c9eac(0x345)](_0x3702b2);this['_disposed']||this['_closedUnits']['has'](_0x3702b2)||!this[_0x4c9eac(0x4b7)][_0x4c9eac(0x1e2)](_0x3702b2)||_0x4a6e49[_0x4c9eac(0x2f3)][_0x4c9eac(0x213)]((0x0,c[_0x4c9eac(0x46f)])(_0x294ad9=>_0x294ad9[_0x4c9eac(0x2ff)]===n['CollaborationEvent']['SHOULD_CLOSE_CONN']),(0x0,c['takeUntil'])((0x0,t[_0x4c9eac(0x3e1)])(this[_0x4c9eac(0x55d)],this[_0x4c9eac(0x4b7)][_0x4c9eac(0x22b)][_0x4c9eac(0x213)]((0x0,c['filter'])(_0x2e2b18=>_0x2e2b18[_0x4c9eac(0x3e7)]()===_0x3702b2)))))[_0x4c9eac(0x264)](_0xc3ef60=>{const _0x27b2a8=_0x4c9eac;let {reason:_0x1539a3}=_0xc3ef60[_0x27b2a8(0x350)];this[_0x27b2a8(0x3b5)][_0x27b2a8(0x40c)]({'id':'CLOSE_ROOM','data':_0x1539a3}),this[_0x27b2a8(0x56a)][_0x27b2a8(0x3a3)](_0x3702b2),this[_0x27b2a8(0x475)][_0x27b2a8(0x285)](r[_0x27b2a8(0x3ba)])[_0x27b2a8(0x32c)](_0x3702b2);let _0x6a4c3b=ft(_0x149226);_0x6a4c3b!=null&&this[_0x27b2a8(0x1c8)](_0x3702b2,_0x6a4c3b,o[_0x27b2a8(0x4b5)][_0x27b2a8(0x569)],!0x1),this[_0x27b2a8(0x22d)][_0x27b2a8(0x200)](_0x3702b2);});};dt(this[_0x9af16c(0x4b7)])[_0x9af16c(0x213)]((0x0,c[_0x9af16c(0x46f)])(({unitId:_0x4a00fd})=>!(0x0,r[_0x9af16c(0x53d)])(_0x4a00fd)),(0x0,c['takeUntil'])(this[_0x9af16c(0x55d)]))[_0x9af16c(0x264)](({type:_0x40b18f,unitId:_0x5a2460})=>{const _0x4d9fbb=_0x9af16c;_0x29f560(_0x5a2460,_0x40b18f)['catch'](_0x17354b=>this['_injector'][_0x4d9fbb(0x285)](r[_0x4d9fbb(0x369)])['error'](_0x17354b));});}[_0x28bbb9(0x554)](){const _0x18e54c=_0x28bbb9;let _0x5ae7db=async(_0x223bbd,_0xcbaecb)=>{const _0x2c1613=_0x53d0;let _0x5d48f5=await this[_0x2c1613(0x22d)]['requireSession'](_0x223bbd);if(!(this[_0x2c1613(0x1c7)]||this[_0x2c1613(0x56a)][_0x2c1613(0x546)](_0x223bbd)||!this[_0x2c1613(0x4b7)]['getUnit'](_0x223bbd))){if(_0xcbaecb===r[_0x2c1613(0x24b)][_0x2c1613(0x486)]){let _0x5380c0=this[_0x2c1613(0x475)][_0x2c1613(0x285)](a['SheetPermissionInitController']);await _0x5380c0[_0x2c1613(0x361)](_0x223bbd),_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c['filter'])(_0x56c413=>_0x56c413[_0x2c1613(0x2ff)]===n['CollaborationEvent']['UPDATE_PERMISSION_OBJ']),(0x0,c[_0x2c1613(0x418)])((0x0,t['merge'])(this[_0x2c1613(0x55d)],_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c[_0x2c1613(0x46f)])(_0x5c0273=>_0x5c0273[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)][_0x2c1613(0x22a)])),this[_0x2c1613(0x4b7)]['unitDisposed$']['pipe']((0x0,c[_0x2c1613(0x46f)])(_0x5ecbb7=>_0x5ecbb7[_0x2c1613(0x3e7)]()===_0x223bbd)))))[_0x2c1613(0x264)](_0x55d6a7=>{const _0x315d7a=_0x2c1613;let {objectId:_0x2f4ebb}=_0x55d6a7[_0x315d7a(0x350)];_0x2f4ebb===_0x223bbd?_0x5380c0['initWorkbookPermissionChange'](_0x223bbd):_0x5380c0[_0x315d7a(0x40d)](_0x223bbd,_0x2f4ebb);});}else _0x5d48f5[_0x2c1613(0x2f3)]['pipe']((0x0,c[_0x2c1613(0x46f)])(_0x25942a=>_0x25942a[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)]['UPDATE_PERMISSION_OBJ']),(0x0,c[_0x2c1613(0x418)])((0x0,t[_0x2c1613(0x3e1)])(this[_0x2c1613(0x55d)],_0x5d48f5[_0x2c1613(0x2f3)][_0x2c1613(0x213)]((0x0,c[_0x2c1613(0x46f)])(_0x28e153=>_0x28e153[_0x2c1613(0x2ff)]===n[_0x2c1613(0x33f)]['SHOULD_CLOSE_CONN'])),this[_0x2c1613(0x4b7)][_0x2c1613(0x22b)]['pipe']((0x0,c['filter'])(_0xf4919c=>_0xf4919c[_0x2c1613(0x3e7)]()===_0x223bbd)))))[_0x2c1613(0x264)](()=>{const _0x25f1ca=_0x2c1613;this[_0x25f1ca(0x3ed)](_0x223bbd,_0xcbaecb)[_0x25f1ca(0x4a4)](_0x5f0cf6=>this[_0x25f1ca(0x475)][_0x25f1ca(0x285)](r[_0x25f1ca(0x369)])[_0x25f1ca(0x456)](_0x5f0cf6));}),await this[_0x2c1613(0x3ed)](_0x223bbd,_0xcbaecb);}};dt(this[_0x18e54c(0x4b7)])['pipe']((0x0,c[_0x18e54c(0x46f)])(({unitId:_0x18ba12})=>!(0x0,r[_0x18e54c(0x53d)])(_0x18ba12)),(0x0,c[_0x18e54c(0x418)])(this[_0x18e54c(0x55d)]))[_0x18e54c(0x264)](({type:_0x2b4eea,unitId:_0x51e246})=>{const _0x458272=_0x18e54c;_0x5ae7db(_0x51e246,_0x2b4eea)['catch'](_0x4764e9=>this['_injector']['get'](r[_0x458272(0x369)])[_0x458272(0x456)](_0x4764e9));});}async[_0x28bbb9(0x3ed)](_0x4c19db,_0x571908){const _0x3384ba=_0x28bbb9;let _0xa4c899=ft(_0x571908);if(_0xa4c899==null)return;let _0x553be6=this['_injector'][_0x3384ba(0x285)](r[_0x3384ba(0x3ba)]);if(_0x553be6[_0x3384ba(0x249)]({'unitId':_0x4c19db,'objectId':_0x4c19db,'objectType':_0xa4c899})){await _0x553be6[_0x3384ba(0x1e0)](_0x4c19db);return;}let _0x2afd38=this[_0x3384ba(0x2f2)](_0x4c19db,_0xa4c899);if(!_0x2afd38[_0x3384ba(0x47a)])return;let _0x232247=await this[_0x3384ba(0x225)][_0x3384ba(0x3f4)]({'objectID':_0x4c19db,'objectType':_0xa4c899,'unitID':_0x4c19db,'actions':_0x2afd38[_0x3384ba(0x485)](({action:_0x57f9ab})=>_0x57f9ab)});this[_0x3384ba(0x1c7)]||this['_closedUnits'][_0x3384ba(0x546)](_0x4c19db)||!this[_0x3384ba(0x4b7)][_0x3384ba(0x1e2)](_0x4c19db)||_0x232247[_0x3384ba(0x3e9)](_0x20e190=>{const _0x1eceb4=_0x3384ba;let _0x498595=_0x20e190[_0x1eceb4(0x4c1)],_0xcb80df=_0x20e190[_0x1eceb4(0x3f4)];_0x498595!=null&&_0xcb80df!=null&&_0x2afd38[_0x1eceb4(0x46f)](_0x32af35=>_0x32af35[_0x1eceb4(0x4c1)]===_0x498595)[_0x1eceb4(0x3e9)](_0x7cfb7f=>this['_permissionService'][_0x1eceb4(0x3cc)](_0x7cfb7f['id'],_0xcb80df));});}['_getUnitPermissionPoints'](_0x4358d4,_0x241f39){const _0x4050e7=_0x28bbb9;let _0x5495bd=[];return this[_0x4050e7(0x370)][_0x4050e7(0x251)]()[_0x4050e7(0x3e9)]((_0x1065f3,_0x25b261)=>{_0x1065f3['subscribe'](_0x284c23=>{const _0x3dd4f0=_0x53d0;_0x284c23[_0x3dd4f0(0x538)]===_0x241f39&&_0x3dd4f0(0x212)in _0x284c23&&_0x284c23[_0x3dd4f0(0x212)]===_0x4358d4&&(!(_0x3dd4f0(0x394)in _0x284c23)||_0x284c23['objectId']===_0x4358d4)&&_0x5495bd[_0x3dd4f0(0x4ec)]({'id':_0x25b261,'action':_0x284c23[_0x3dd4f0(0x2f4)]});})['unsubscribe']();}),_0x5495bd;}[_0x28bbb9(0x1c8)](_0x4c7508,_0x41a119,_0x4c0862,_0x3f69ce){const _0x1cadb9=_0x28bbb9;this['_permissionService'][_0x1cadb9(0x251)]()[_0x1cadb9(0x3e9)]((_0x30e853,_0x1cf78f)=>{const _0x160a04=_0x1cadb9;let _0x1a8410=!0x1;_0x30e853['subscribe'](_0x2dbf55=>{const _0x4d3f08=_0x53d0;_0x1a8410=_0x2dbf55[_0x4d3f08(0x538)]===_0x41a119&&_0x2dbf55[_0x4d3f08(0x2f4)]===_0x4c0862&&_0x4d3f08(0x212)in _0x2dbf55&&_0x2dbf55['unitId']===_0x4c7508&&(!(_0x4d3f08(0x394)in _0x2dbf55)||_0x2dbf55[_0x4d3f08(0x394)]===_0x4c7508);})[_0x160a04(0x3c7)](),_0x1a8410&&this[_0x160a04(0x370)][_0x160a04(0x3cc)](_0x1cf78f,_0x3f69ce);});}};Q=b([y(0x0,(0x0,r[_0x28bbb9(0x431)])(r['Injector'])),y(0x1,r[_0x28bbb9(0x51c)]),y(0x2,r['IPermissionService']),y(0x3,r[_0x28bbb9(0x3b2)]),y(0x4,(0x0,r['Inject'])(U)),y(0x5,(0x0,r[_0x28bbb9(0x431)])(v))],Q);function dt(_0x14ba21){const _0x5d29c2=_0x28bbb9;return(0x0,t[_0x5d29c2(0x3e1)])(...[r[_0x5d29c2(0x24b)][_0x5d29c2(0x486)],r['UniverInstanceType'][_0x5d29c2(0x297)],r['UniverInstanceType'][_0x5d29c2(0x405)],r['UniverInstanceType']['UNIVER_BOARD'],r[_0x5d29c2(0x24b)]['UNIVER_BASE']][_0x5d29c2(0x485)](_0x5921f6=>_0x14ba21[_0x5d29c2(0x342)](_0x5921f6)[_0x5d29c2(0x213)]((0x0,c['map'])(_0x3be352=>({'type':_0x5921f6,'unitId':_0x3be352[_0x5d29c2(0x54f)][_0x5d29c2(0x3e7)]()})))));}function ft(_0x5d134d){const _0x39ff35=_0x28bbb9;switch(_0x5d134d){case r[_0x39ff35(0x24b)][_0x39ff35(0x486)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x218)];case r[_0x39ff35(0x24b)][_0x39ff35(0x297)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x357)];case r[_0x39ff35(0x24b)][_0x39ff35(0x405)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x410)];case r[_0x39ff35(0x24b)][_0x39ff35(0x449)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x396)];case r['UniverInstanceType'][_0x39ff35(0x3bb)]:return o[_0x39ff35(0x2c4)][_0x39ff35(0x41d)];default:return;}}let pt=class{constructor(_0x6d69b6,_0x45e2ac){const _0x3f9e91=_0x28bbb9;this[_0x3f9e91(0x2c8)]=_0x6d69b6,this['_httpService']=_0x45e2ac;}async['getUnitOnRev'](_0x17e73c,_0x27050d){const _0x1a58c7=_0x28bbb9;var _0xf73452;let {unitID:_0x30cebf,type:_0x43fa26,revision:_0xf195fb=0x0}=_0x27050d,_0x4b9a99=this[_0x1a58c7(0x26a)]()+'/'+_0x43fa26+_0x1a58c7(0x300)+_0x30cebf+'/rev/'+_0xf195fb,_0xea705f=(await this[_0x1a58c7(0x2a4)]['get'](_0x4b9a99))['body'],_0x430789=(_0xf73452=_0xea705f['snapshot'])==null?void 0x0:_0xf73452[_0x1a58c7(0x447)];if(_0x430789){let _0xfdea4d=_0x430789==null?void 0x0:_0x430789[_0x1a58c7(0x36c)];_0x430789[_0x1a58c7(0x36c)]=n[_0x1a58c7(0x355)][_0x1a58c7(0x216)]((0x0,n[_0x1a58c7(0x490)])(_0xfdea4d)),Object[_0x1a58c7(0x215)](_0x430789[_0x1a58c7(0x480)])[_0x1a58c7(0x3e9)](([,_0x488dbd])=>{const _0x50a2f6=_0x1a58c7;let _0x367679=_0x488dbd['originalMeta'];_0x488dbd[_0x50a2f6(0x36c)]=n[_0x50a2f6(0x355)][_0x50a2f6(0x216)]((0x0,n[_0x50a2f6(0x490)])(_0x367679));});}return _0xea705f;}async[_0x28bbb9(0x564)](_0x31b213,_0x32d7c0){const _0x4b81fb=_0x28bbb9;let {unitID:_0x4296e0,type:_0xbf222f,blockID:_0x55128e}=_0x32d7c0,_0x401e1a=this[_0x4b81fb(0x46e)]()+'/'+_0xbf222f+_0x4b81fb(0x300)+_0x4296e0+_0x4b81fb(0x3d5)+_0x55128e;return(await this['_httpService'][_0x4b81fb(0x285)](_0x401e1a))[_0x4b81fb(0x340)];}async[_0x28bbb9(0x38b)](_0x46edca,_0xf78edc){const _0x48082e=_0x28bbb9;let {unitID:_0x3e6eab,type:_0x1205c0,blockID:_0x333fb8}=_0xf78edc,_0x3cef51=this[_0x48082e(0x46e)]()+_0x48082e(0x3d5)+_0x1205c0+_0x48082e(0x300)+_0x3e6eab+_0x48082e(0x3d5)+_0x333fb8;return(await this[_0x48082e(0x2a4)][_0x48082e(0x285)](_0x3cef51))[_0x48082e(0x340)];}async[_0x28bbb9(0x556)](_0x2b850f,_0x22a44b){const _0x4d43fd=_0x28bbb9;let {unitID:_0x14a18f,type:_0x2a697d,from:_0x5f0a2b,to:_0x4c991d}=_0x22a44b,_0x3b7b9b=this[_0x4d43fd(0x46e)]()+'/'+_0x2a697d+_0x4d43fd(0x300)+_0x14a18f+_0x4d43fd(0x426)+_0x5f0a2b+_0x4d43fd(0x305)+_0x4c991d;return(await this[_0x4d43fd(0x2a4)][_0x4d43fd(0x285)](_0x3b7b9b))[_0x4d43fd(0x340)];}['getSnapshotAPIPath'](){const _0x51f96b=_0x28bbb9;return this[_0x51f96b(0x2c8)][_0x51f96b(0x230)](_0x51f96b(0x2c0))??this[_0x51f96b(0x46e)]();}[_0x28bbb9(0x46e)](){const _0x30c156=_0x28bbb9;let _0x1ef613=this[_0x30c156(0x2c8)][_0x30c156(0x230)](m);return(_0x1ef613==null?void 0x0:_0x1ef613[_0x30c156(0x1b5)])??_0x30c156(0x54c);}async[_0x28bbb9(0x364)](_0x205861,_0x684f18){const _0x3606fe=_0x28bbb9;let _0x2b67a4=_0x3606fe(0x34b)+_0x684f18['type']+'/unit/'+_0x684f18['unitID']+_0x3606fe(0x529);return(await this[_0x3606fe(0x2a4)][_0x3606fe(0x285)](_0x2b67a4,{'params':{'resourceId':JSON['stringify'](_0x684f18['resourceIDs'])}}))[_0x3606fe(0x340)];}[_0x28bbb9(0x39f)](){const _0x54d2c4=_0x28bbb9;throw Error(_0x54d2c4(0x536));}['updateSnapshot'](){const _0x4592e6=_0x28bbb9;throw Error(_0x4592e6(0x536));}[_0x28bbb9(0x33c)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x28bbb9(0x55c)](){const _0x186f82=_0x28bbb9;throw Error(_0x186f82(0x536));}[_0x28bbb9(0x398)](){const _0xfe465c=_0x28bbb9;throw Error(_0xfe465c(0x536));}[_0x28bbb9(0x3f0)](){const _0x1f13c2=_0x28bbb9;throw Error(_0x1f13c2(0x536));}};pt=b([y(0x0,r['IConfigService']),y(0x1,(0x0,r[_0x28bbb9(0x431)])(e[_0x28bbb9(0x3ff)]))],pt);let mt=class extends r[_0x28bbb9(0x280)]{constructor(_0x1e0218,_0x2cec4a,_0x49970a,_0x59e61f,_0x2a5bb2,_0x75fa72){const _0x38dfa5=_0x28bbb9;super(_0x1e0218,_0x2cec4a,_0x49970a,_0x59e61f),this[_0x38dfa5(0x1f2)]=_0x2a5bb2,this['_logService']=_0x75fa72;}[_0x28bbb9(0x2be)](_0x446ab7,_0x8170d5){const _0x12a77c=_0x28bbb9;let _0x11c848=this[_0x12a77c(0x2d8)](_0x446ab7);if(_0x11c848)try{let _0x324fed=this[_0x12a77c(0x4ab)](_0x11c848,_0x8170d5);this['_substituteUndoStack'](_0x446ab7,_0x324fed);}catch(_0x539ced){this[_0x12a77c(0x41e)][_0x12a77c(0x456)](_0x12a77c(0x288),_0x539ced),this['_clearUndo'](_0x446ab7);}let _0x29c106=this[_0x12a77c(0x276)](_0x446ab7);if(_0x29c106)try{let _0x3de0a5=this[_0x12a77c(0x4ab)](_0x29c106,_0x8170d5,!0x0);this['_substituteRedoStack'](_0x446ab7,_0x3de0a5);}catch(_0xf3c114){this['_logService']['error'](_0xf3c114),this[_0x12a77c(0x3ee)](_0x446ab7);}}[_0x28bbb9(0x1c6)](_0x593656){const _0x53440f=_0x28bbb9;let _0x54d1a1=this[_0x53440f(0x2d8)](_0x593656);_0x54d1a1&&(_0x54d1a1[_0x53440f(0x47a)]=0x0,this[_0x53440f(0x3b0)]());}['_clearRedo'](_0x53e3e9){const _0x3b7978=_0x28bbb9;let _0x4cdd6c=this['_getRedoStack'](_0x53e3e9);_0x4cdd6c&&(_0x4cdd6c[_0x3b7978(0x47a)]=0x0,this[_0x3b7978(0x3b0)]());}[_0x28bbb9(0x20b)](_0x4940ad,_0x22526e){const _0x444e0f=_0x28bbb9;this[_0x444e0f(0x461)]['set'](_0x4940ad,_0x22526e),this['_updateStatus']();}[_0x28bbb9(0x2a5)](_0x5d6c03,_0x361d6f){const _0x2b7fe4=_0x28bbb9;this[_0x2b7fe4(0x463)][_0x2b7fe4(0x36a)](_0x5d6c03,_0x361d6f),this[_0x2b7fe4(0x3b0)]();}[_0x28bbb9(0x4ab)](_0x26b3d5,_0x48ffd2,_0x252352=!0x1){const _0x135d51=_0x28bbb9;if(!_0x26b3d5['length'])return[];let _0x5e2495=[],_0x18ac63=_0x48ffd2,_0x3a3d68=_0x48ffd2['type']===r[_0x135d51(0x24b)]['UNIVER_DOC']?this[_0x135d51(0x4b7)]['getUnit'](_0x48ffd2['unitID'],r[_0x135d51(0x24b)]['UNIVER_DOC']):null,_0x363c5f=_0x3a3d68?{'id':_0x3a3d68[_0x135d51(0x3e7)](),'documentStyle':{},'tableSource':r[_0x135d51(0x4cf)]['deepClone'](_0x3a3d68[_0x135d51(0x1f1)]()[_0x135d51(0x51f)]??{})}:null;for(let _0x403d90=_0x26b3d5[_0x135d51(0x47a)]-0x1;_0x403d90>=0x0;_0x403d90--){let {unitID:_0x181808,undoMutations:_0x414ce7,redoMutations:_0x54be73}=_0x26b3d5[_0x403d90],_0xe2b6cf=_0x252352?_0x54be73:_0x414ce7,_0x1a9a13=this[_0x135d51(0x3c9)](_0x18ac63,_0xe2b6cf);if((0x0,n[_0x135d51(0x2c3)])(_0x1a9a13)){this[_0x135d51(0x41e)]['error'](_0x135d51(0x288),_0x135d51(0x376),_0x1a9a13);break;}let _0x1bb0fe=_0x252352?_0x414ce7:_0x54be73,_0x131e0d=this[_0x135d51(0x3c9)](_0x1a9a13[_0x135d51(0x310)],_0x1bb0fe);if((0x0,n[_0x135d51(0x2c3)])(_0x131e0d)){this[_0x135d51(0x41e)]['error'](_0x135d51(0x288),_0x135d51(0x376),_0x131e0d);break;}let _0xc523f2=_0x252352?_0x131e0d:_0x1a9a13,_0x50ef10=_0x252352?_0x1a9a13:_0x131e0d;_0x18ac63=_0x1a9a13['c1Prime'],_0x363c5f&&=this[_0x135d51(0x505)](_0x363c5f,_0x1a9a13['m2Prime'],_0x131e0d[_0x135d51(0x3bd)]),_0x5e2495[_0x135d51(0x4ec)]({'unitID':_0x181808,'undoMutations':_0xc523f2[_0x135d51(0x3bd)],'redoMutations':_0x50ef10['m2Prime']});}return _0x5e2495[_0x135d51(0x275)]();}[_0x28bbb9(0x3c9)](_0x258c4c,_0x244afe){const _0x1c1ccc=_0x28bbb9;if(_0x258c4c[_0x1c1ccc(0x538)]!==r['UniverInstanceType'][_0x1c1ccc(0x297)]||_0x244afe[_0x1c1ccc(0x33e)](_0x4981a1=>_0x4981a1['id']!==i[_0x1c1ccc(0x4d7)]['id']))return this[_0x1c1ccc(0x1f2)]['transformMutationsWithChangeset'](_0x258c4c,_0x244afe);let _0x579bc7=r['Tools'][_0x1c1ccc(0x417)](_0x244afe),_0x46a132=[];for(let _0xa7c975 of _0x258c4c[_0x1c1ccc(0x220)]){let _0x2efcbf={..._0x258c4c,'mutations':[_0xa7c975]},_0x13c0fa=[];for(let _0x5c4832 of _0x579bc7){_0x2efcbf=this['_rebaseParagraphHistory'](_0x2efcbf,[_0x5c4832]);let _0x4ca4be=this[_0x1c1ccc(0x1f2)][_0x1c1ccc(0x541)](_0x2efcbf,[_0x5c4832]);if((0x0,n[_0x1c1ccc(0x2c3)])(_0x4ca4be))return _0x4ca4be;_0x2efcbf=_0x4ca4be[_0x1c1ccc(0x310)],_0x13c0fa[_0x1c1ccc(0x4ec)](..._0x4ca4be[_0x1c1ccc(0x3bd)]);}_0x579bc7=_0x13c0fa,_0x46a132['push'](..._0x2efcbf[_0x1c1ccc(0x220)]);}return{'m2Prime':_0x579bc7,'c1Prime':{..._0x258c4c,'mutations':_0x46a132}};}[_0x28bbb9(0x2dc)](_0x5be293,_0x36fbe5){const _0xf7e4d8=_0x28bbb9;let _0x47381c=new Map(),_0x49fc8e=r[_0xf7e4d8(0x3d3)][_0xf7e4d8(0x538)][_0xf7e4d8(0x34a)](_0x36fbe5[0x0][_0xf7e4d8(0x453)][_0xf7e4d8(0x3d1)]);if(_0x49fc8e[_0xf7e4d8(0x3e5)](null,_0x109907=>{const _0x3100a3=_0xf7e4d8;if(_0x109907['et']!==_0x3100a3(0x454))return;let _0xf06ea3=JSON[_0x3100a3(0x4d3)](_0x49fc8e[_0x3100a3(0x33d)]()),_0x1b96a9=_0x47381c['get'](_0xf06ea3)??new Map(),_0x549684=0x0;for(let _0x5f357f of _0x109907['e']){if(_0x5f357f['t']===r[_0x3100a3(0x525)]['RETAIN']){var _0x12dded;for(let _0x3e6a52 of((_0x12dded=_0x5f357f[_0x3100a3(0x340)])==null?void 0x0:_0x12dded[_0x3100a3(0x328)])??[])_0x1b96a9[_0x3100a3(0x36a)](_0x549684+_0x3e6a52[_0x3100a3(0x309)],{'paragraph':_0x3e6a52,'replace':_0x5f357f[_0x3100a3(0x279)]===r[_0x3100a3(0x4eb)][_0x3100a3(0x45a)]});}_0x5f357f['t']!==r[_0x3100a3(0x525)][_0x3100a3(0x3e4)]&&(_0x549684+=_0x5f357f[_0x3100a3(0x46c)]);}_0x1b96a9[_0x3100a3(0x1e8)]>0x0&&_0x47381c[_0x3100a3(0x36a)](_0xf06ea3,_0x1b96a9);}),_0x47381c[_0xf7e4d8(0x1e8)]===0x0)return _0x5be293;let _0x352904=r[_0xf7e4d8(0x4cf)][_0xf7e4d8(0x417)](_0x5be293);for(let _0x48b538 of _0x352904[_0xf7e4d8(0x220)]){if(_0x48b538['id']!==i['RichTextEditingMutation']['id'])continue;let _0x4aa48b=r[_0xf7e4d8(0x3d3)][_0xf7e4d8(0x538)][_0xf7e4d8(0x34a)](_0x48b538[_0xf7e4d8(0x453)][_0xf7e4d8(0x3d1)]);_0x4aa48b[_0xf7e4d8(0x3e5)](null,_0x5da7d9=>{const _0x1d2fdc=_0xf7e4d8;if(_0x5da7d9['et']!=='text-x')return;let _0x58fa2d=JSON['stringify'](_0x4aa48b[_0x1d2fdc(0x33d)]()),_0x572346=_0x47381c['get'](_0x58fa2d);if(!(_0x572346!=null&&_0x572346[_0x1d2fdc(0x1e8)]))return;let _0x47d08b=0x0;for(let _0x1445ee of _0x5da7d9['e']){if(_0x1445ee['t']===r['TextXActionType'][_0x1d2fdc(0x4f4)]&&_0x1445ee[_0x1d2fdc(0x279)]===r[_0x1d2fdc(0x4eb)][_0x1d2fdc(0x45a)]){var _0x56bbe8;for(let _0x18375c of((_0x56bbe8=_0x1445ee['body'])==null?void 0x0:_0x56bbe8[_0x1d2fdc(0x328)])??[]){var _0x46bcbf;let _0xabf1a7=(_0x46bcbf=_0x1445ee['oldBody'])==null||(_0x46bcbf=_0x46bcbf['paragraphs'])==null?void 0x0:_0x46bcbf[_0x1d2fdc(0x552)](_0x1ce1ac=>_0x1ce1ac[_0x1d2fdc(0x309)]===_0x18375c[_0x1d2fdc(0x309)]),_0x21c18a=_0x572346[_0x1d2fdc(0x285)](_0x47d08b+_0x18375c[_0x1d2fdc(0x309)]);if(_0xabf1a7&&_0x21c18a){this[_0x1d2fdc(0x25f)](_0x18375c,_0xabf1a7,_0x21c18a[_0x1d2fdc(0x30a)],_0x21c18a[_0x1d2fdc(0x484)]);let _0x5e9463=_0x21c18a['replace']?new Set([...Object['keys'](_0x21c18a['paragraph']),...Object[_0x1d2fdc(0x4fb)](_0x18375c)]):Object[_0x1d2fdc(0x4fb)](_0x21c18a[_0x1d2fdc(0x30a)]);for(let _0xe144a1 of _0x5e9463){if(_0xe144a1===_0x1d2fdc(0x309)||_0xe144a1===_0x1d2fdc(0x29a))continue;let _0x3f43f3=Reflect[_0x1d2fdc(0x285)](_0x18375c,_0xe144a1);_0x3f43f3===void 0x0?Reflect[_0x1d2fdc(0x420)](_0x21c18a[_0x1d2fdc(0x30a)],_0xe144a1):Reflect[_0x1d2fdc(0x36a)](_0x21c18a['paragraph'],_0xe144a1,r[_0x1d2fdc(0x4cf)][_0x1d2fdc(0x417)](_0x3f43f3));}}}}_0x1445ee['t']!==r[_0x1d2fdc(0x525)][_0x1d2fdc(0x3e4)]&&(_0x47d08b+=_0x1445ee[_0x1d2fdc(0x46c)]);}});}return _0x352904;}[_0x28bbb9(0x25f)](_0x392ae0,_0x515069,_0x34c531,_0x200a76){const _0x24716b=_0x28bbb9;let _0x2233fe=new Set([...Object[_0x24716b(0x4fb)](_0x392ae0),...Object[_0x24716b(0x4fb)](_0x515069),...Object[_0x24716b(0x4fb)](_0x34c531)]);for(let _0x5d20af of _0x2233fe){if(_0x5d20af===_0x24716b(0x309)||_0x5d20af===_0x24716b(0x29a))continue;let _0x2224a9=Reflect[_0x24716b(0x285)](_0x392ae0,_0x5d20af),_0xe5dd64=Reflect[_0x24716b(0x285)](_0x515069,_0x5d20af),_0x47077b=Reflect[_0x24716b(0x285)](_0x34c531,_0x5d20af);if(_0x200a76||_0x47077b!==void 0x0){if(r['Tools'][_0x24716b(0x521)](_0x2224a9,_0xe5dd64))_0x47077b===void 0x0?(Reflect[_0x24716b(0x420)](_0x392ae0,_0x5d20af),Reflect[_0x24716b(0x420)](_0x515069,_0x5d20af)):(Reflect[_0x24716b(0x36a)](_0x392ae0,_0x5d20af,r[_0x24716b(0x4cf)][_0x24716b(0x417)](_0x47077b)),Reflect[_0x24716b(0x36a)](_0x515069,_0x5d20af,r[_0x24716b(0x4cf)][_0x24716b(0x417)](_0x47077b)));else{if(r[_0x24716b(0x4cf)]['isObject'](_0x2224a9)&&(r['Tools'][_0x24716b(0x534)](_0xe5dd64)||_0xe5dd64===void 0x0)){let _0x5896d1=_0xe5dd64??{};this[_0x24716b(0x25f)](_0x2224a9,_0x5896d1,r['Tools'][_0x24716b(0x534)](_0x47077b)?_0x47077b:{},_0x200a76),(_0xe5dd64!==void 0x0||Object['keys'](_0x5896d1)[_0x24716b(0x47a)]>0x0)&&Reflect[_0x24716b(0x36a)](_0x515069,_0x5d20af,_0x5896d1);}}}}}[_0x28bbb9(0x505)](_0x196f80,_0x98632e,_0x349bb8){const _0x4d7ee9=_0x28bbb9;if(_0x98632e['length']!==0x1||_0x349bb8[_0x4d7ee9(0x47a)]!==0x1||_0x98632e[0x0]['id']!==i[_0x4d7ee9(0x4d7)]['id']||_0x349bb8[0x0]['id']!==i['RichTextEditingMutation']['id'])return _0x196f80;let _0x53941f=_0x98632e[0x0][_0x4d7ee9(0x453)],_0x5955c3=_0x349bb8[0x0][_0x4d7ee9(0x453)],_0x5be373=this[_0x4d7ee9(0x292)](_0x53941f[_0x4d7ee9(0x3d1)],!0x0);return r[_0x4d7ee9(0x413)][_0x4d7ee9(0x33b)](_0x5be373)?_0x196f80:(_0x5955c3[_0x4d7ee9(0x3d1)]=r[_0x4d7ee9(0x413)][_0x4d7ee9(0x24c)](this[_0x4d7ee9(0x292)](_0x5955c3['actions'],!0x1),r[_0x4d7ee9(0x413)][_0x4d7ee9(0x487)](_0x5be373,_0x196f80)),r[_0x4d7ee9(0x413)]['apply'](_0x196f80,_0x5be373)??_0x196f80);}[_0x28bbb9(0x292)](_0x3280fe,_0x3855fd){const _0x358b5b=_0x28bbb9;let _0x5be5e4=r['JSON1'][_0x358b5b(0x538)][_0x358b5b(0x34a)](_0x3280fe),_0x1211a4=r[_0x358b5b(0x3d3)]['type'][_0x358b5b(0x23e)]();return _0x5be5e4[_0x358b5b(0x3e5)](null,_0x3a0d68=>{const _0x1f1576=_0x358b5b;let _0x34ce05=_0x5be5e4[_0x1f1576(0x33d)]();if(_0x34ce05[0x0]===_0x1f1576(0x51f)===_0x3855fd){for(let _0x35c44b of Object[_0x1f1576(0x4fb)](_0x3a0d68))_0x1211a4[_0x1f1576(0x49c)](_0x34ce05,_0x35c44b,_0x3a0d68[_0x35c44b]);}}),_0x1211a4[_0x358b5b(0x285)]();}};mt=b([y(0x0,r['IUniverInstanceService']),y(0x1,r['ICommandService']),y(0x2,r['IContextService']),y(0x3,r[_0x28bbb9(0x421)]),y(0x4,n[_0x28bbb9(0x4fc)]),y(0x5,r[_0x28bbb9(0x369)])],mt);let $=class extends r[_0x28bbb9(0x522)]{constructor(_0x588744=h,_0x2a9aab,_0x112115,_0x50e49e){const _0x559972=_0x28bbb9;super(),this[_0x559972(0x2c7)]=_0x588744,this[_0x559972(0x41e)]=_0x2a9aab,this[_0x559972(0x475)]=_0x112115,this[_0x559972(0x2c8)]=_0x50e49e;let {..._0x41bd80}=(0x0,r[_0x559972(0x3e1)])({},h,this[_0x559972(0x2c7)]);if(!_0x41bd80['socketService'])throw Error(_0x559972(0x1e9));this['_config']=_0x41bd80,this[_0x559972(0x2c8)][_0x559972(0x2da)](m,_0x41bd80);}[_0x28bbb9(0x2bb)](){const _0x4b1ba2=_0x28bbb9;this[_0x4b1ba2(0x2c8)][_0x4b1ba2(0x2da)](r[_0x4b1ba2(0x287)],this[_0x4b1ba2(0x2c7)][_0x4b1ba2(0x372)]??[]),this[_0x4b1ba2(0x4ef)](),this[_0x4b1ba2(0x3dd)]();}[_0x28bbb9(0x4ef)](){const _0x22befe=_0x28bbb9;var _0x4a3d3b,_0x3e0aaa;this['_injector'][_0x22befe(0x546)](r[_0x22befe(0x493)])&&this[_0x22befe(0x41e)]['error'](_0x22befe(0x1b9),_0x22befe(0x440));let _0x479c55=(0x0,r[_0x22befe(0x2b8)])([[r['IUndoRedoService'],{'useClass':mt}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this['_config'][_0x22befe(0x384)]}],[n[_0x22befe(0x35f)],{'useClass':pt}],[r[_0x22befe(0x3b2)],{'useClass':q}],[r['IImageIoService'],{'useClass':X}],[at,{'useClass':G}],[r[_0x22befe(0x43f)],{'useClass':Z}],[W],[it]],(_0x4a3d3b=this[_0x22befe(0x2c7)])==null?void 0x0:_0x4a3d3b[_0x22befe(0x339)]);if(!((_0x3e0aaa=this['_config'])!=null&&_0x3e0aaa[_0x22befe(0x443)])){let _0x363010=_0x479c55[_0x22befe(0x4b1)](([_0x65565b])=>_0x65565b===T);_0x363010!==-0x1&&_0x479c55[_0x22befe(0x1ca)](_0x363010,0x1);}(0x0,r[_0x22befe(0x295)])(this[_0x22befe(0x475)],_0x479c55);}[_0x28bbb9(0x3dd)](){const _0xc80d94=_0x28bbb9;var _0x5ffd34,_0x366c6c;if(this['_injector'][_0xc80d94(0x285)](e[_0xc80d94(0x3ff)])['registerHTTPInterceptor']({'priority':0x14,'interceptor':(0x0,e[_0xc80d94(0x2c2)])({'maxParallel':0x6})}),!((_0x5ffd34=this['_config'])!=null&&_0x5ffd34[_0xc80d94(0x567)])){var _0x3e97ee;(_0x3e97ee=this[_0xc80d94(0x475)][_0xc80d94(0x285)](C,r[_0xc80d94(0x3db)][_0xc80d94(0x32a)]))==null||_0x3e97ee[_0xc80d94(0x535)]();}(_0x366c6c=this['_config'])!=null&&_0x366c6c[_0xc80d94(0x48d)]&&(0x0,r[_0xc80d94(0x2d7)])(this[_0xc80d94(0x475)],[[K]]),(0x0,r[_0xc80d94(0x2d7)])(this[_0xc80d94(0x475)],[[J],[W],[Q]]);}};_($,_0x28bbb9(0x358),_0x28bbb9(0x4c3)),_($,_0x28bbb9(0x476),nt),_($,_0x28bbb9(0x1d6),rt),$=b([(0x0,r[_0x28bbb9(0x365)])(u[_0x28bbb9(0x1dc)],e['UniverNetworkPlugin'],n[_0x28bbb9(0x271)]),y(0x1,r[_0x28bbb9(0x369)]),y(0x2,(0x0,r[_0x28bbb9(0x431)])(r[_0x28bbb9(0x506)])),y(0x3,r['IConfigService'])],$),Object['defineProperty'](exports,_0x28bbb9(0x2d3),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x2bf),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x28e),{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x3c8),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x28bbb9(0x41f)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x28bbb9(0x38d)]=m,exports[_0x28bbb9(0x322)]=ne,Object[_0x28bbb9(0x41f)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x270),{'enumerable':!0x0,'get':function(){return W;}}),Object['defineProperty'](exports,_0x28bbb9(0x389),{'enumerable':!0x0,'get':function(){return I;}}),Object['defineProperty'](exports,_0x28bbb9(0x335),{'enumerable':!0x0,'get':function(){return X;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x44a),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x1f0),{'enumerable':!0x0,'get':function(){return U;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x51b),{'enumerable':!0x0,'get':function(){return Xe;}}),exports[_0x28bbb9(0x4fe)]=Ue,exports[_0x28bbb9(0x2ca)]=oe,exports[_0x28bbb9(0x38c)]=v,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x323),{'enumerable':!0x0,'get':function(){return mt;}}),exports[_0x28bbb9(0x223)]=se,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x1d5),{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x28bbb9(0x1fb)]=0x4e20,exports[_0x28bbb9(0x2c1)]='ws://127.0.0.1:8000/universer-api/comb/connect',exports[_0x28bbb9(0x41b)]=_0x28bbb9(0x27f),exports['DEFAULT_WS_SESSION_TICKET_URL']=_0x28bbb9(0x4ff),Object[_0x28bbb9(0x41f)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x507),{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x28bbb9(0x41f)](exports,'FetchingMissState',{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x28bbb9(0x356)]=_0x28bbb9(0x39b),exports['HEARTBEAT_TIMEOUT_KEY']=_0x28bbb9(0x269),exports[_0x28bbb9(0x474)]=at,exports[_0x28bbb9(0x555)]=Qe,exports[_0x28bbb9(0x452)]=Je,exports['ILocalCacheService']=C,exports['INetworkConditionService']=Ge,exports[_0x28bbb9(0x24a)]=T,exports[_0x28bbb9(0x3a2)]=0x3e8,exports[_0x28bbb9(0x332)]=_0x28bbb9(0x3a2),exports[_0x28bbb9(0x3b4)]=0x1d4c0,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x4b0),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x28bbb9(0x41f)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x28bbb9(0x41f)](exports,'OfflineState',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x267),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x50f),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x28bbb9(0x4be)]=_0x28bbb9(0x395),exports[_0x28bbb9(0x464)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x28bbb9(0x54e)]=ve,Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x52d),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,'SheetTransformSelectionsService',{'enumerable':!0x0,'get':function(){return w;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x29b),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x4ed),{'enumerable':!0x0,'get':function(){return pt;}}),Object[_0x28bbb9(0x41f)](exports,_0x28bbb9(0x368),{'enumerable':!0x0,'get':function(){return k;}}),exports['UnitStatus']=Se,Object[_0x28bbb9(0x41f)](exports,'UniverCollaborationClientPlugin',{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x28bbb9(0x4a8)]=$e,exports[_0x28bbb9(0x304)]=Ke,exports['getLocalCacheKey']=be,exports[_0x28bbb9(0x1d9)]=qe;
|
|
1
|
+
const _0x3bc608=_0xa8b9;(function(_0x492356,_0x365e2e){const _0x1db5fd=_0xa8b9,_0x498b44=_0x492356();while(!![]){try{const _0x463aff=-parseInt(_0x1db5fd(0x2d5))/0x1+parseInt(_0x1db5fd(0x437))/0x2+-parseInt(_0x1db5fd(0x232))/0x3*(-parseInt(_0x1db5fd(0x3a4))/0x4)+parseInt(_0x1db5fd(0x272))/0x5+-parseInt(_0x1db5fd(0x3f3))/0x6+-parseInt(_0x1db5fd(0x3b2))/0x7+parseInt(_0x1db5fd(0x3bd))/0x8*(-parseInt(_0x1db5fd(0x493))/0x9);if(_0x463aff===_0x365e2e)break;else _0x498b44['push'](_0x498b44['shift']());}catch(_0x333715){_0x498b44['push'](_0x498b44['shift']());}}}(_0x449c,0x7140b),Object[_0x3bc608(0xf1)](exports,Symbol[_0x3bc608(0x3f9)],{'value':_0x3bc608(0x41f)}));let e=require('@univerjs/network'),t=require('rxjs'),n=require('@univerjs-pro/collaboration'),r=require('@univerjs/core'),i=require('@univerjs/docs'),a=require('@univerjs/sheets'),o=require('@univerjs/protocol'),s=require('@univerjs/telemetry'),c=require('rxjs/operators'),l=require('@univerjs-pro/slides'),u=require('@univerjs-pro/license'),d=require('@noble/ciphers/aes.js'),f=require('@noble/ciphers/utils.js'),p=require('@univerjs/drawing');const m=_0x3bc608(0x2f1),h={};function g(_0xa4665f){'@babel/helpers - typeof';const _0x5c709e=_0x3bc608;return g=typeof Symbol==_0x5c709e(0x265)&&typeof Symbol[_0x5c709e(0x196)]==_0x5c709e(0x489)?function(_0x149bcc){return typeof _0x149bcc;}:function(_0xdeb486){const _0x1bf0a3=_0x5c709e;return _0xdeb486&&typeof Symbol==_0x1bf0a3(0x265)&&_0xdeb486[_0x1bf0a3(0x492)]===Symbol&&_0xdeb486!==Symbol[_0x1bf0a3(0x164)]?'symbol':typeof _0xdeb486;},g(_0xa4665f);}function ee(_0x44aa93,_0x5cc36e){const _0x5fa71f=_0x3bc608;if(g(_0x44aa93)!='object'||!_0x44aa93)return _0x44aa93;var _0x24557e=_0x44aa93[Symbol['toPrimitive']];if(_0x24557e!==void 0x0){var _0x390d87=_0x24557e[_0x5fa71f(0x1e2)](_0x44aa93,_0x5cc36e||_0x5fa71f(0x1d4));if(g(_0x390d87)!='object')return _0x390d87;throw TypeError(_0x5fa71f(0x47e));}return(_0x5cc36e===_0x5fa71f(0x268)?String:Number)(_0x44aa93);}function te(_0x2cef52){const _0x43a36a=_0x3bc608;var _0x570975=ee(_0x2cef52,_0x43a36a(0x268));return g(_0x570975)==_0x43a36a(0x489)?_0x570975:_0x570975+'';}function _(_0x14fb5a,_0x3fb526,_0x2f9c4c){const _0x42ef59=_0x3bc608;return(_0x3fb526=te(_0x3fb526))in _0x14fb5a?Object[_0x42ef59(0xf1)](_0x14fb5a,_0x3fb526,{'value':_0x2f9c4c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x14fb5a[_0x3fb526]=_0x2f9c4c,_0x14fb5a;}var ne=class{constructor(_0x200981,_0x3f0170,_0xbc9e8e={}){const _0x2f5676=_0x3bc608;this[_0x2f5676(0x141)]=_0x3f0170,this['_options']=_0xbc9e8e,_(this,_0x2f5676(0x304),0x0),_(this,_0x2f5676(0x13e),void 0x0),_(this,'_ackTimeout',void 0x0),_(this,_0x2f5676(0x40f),void 0x0),_(this,_0x2f5676(0x223),0x0),_(this,'_nextDelay',0x0),_(this,'_timer',null),_(this,_0x2f5676(0x3ea),null),_(this,_0x2f5676(0x478),null),_(this,_0x2f5676(0x3fd),0x0),_(this,_0x2f5676(0x14d),!0x1),_(this,'_now',void 0x0),_(this,_0x2f5676(0x44d),void 0x0),this[_0x2f5676(0x44d)]=_0x200981,this[_0x2f5676(0x12f)]=_0xbc9e8e[_0x2f5676(0x21a)]??0x4e20,this[_0x2f5676(0x40f)]=Math[_0x2f5676(0x44b)](_0xbc9e8e[_0x2f5676(0x428)]??0x1d4c0,this[_0x2f5676(0x12f)]),this[_0x2f5676(0x2ae)]=_0xbc9e8e['now']??(()=>Date[_0x2f5676(0x261)]()),this[_0x2f5676(0x13e)]=this['_now']();}get[_0x3bc608(0x198)](){return this['_reqId'];}get['attempt'](){const _0x41a77c=_0x3bc608;return this[_0x41a77c(0x304)];}get['nextDelayMs'](){const _0x4bbc1b=_0x3bc608;return this[_0x4bbc1b(0x440)];}get[_0x3bc608(0x1a0)](){const _0x162e9b=_0x3bc608;return this[_0x162e9b(0x2ae)]()-this[_0x162e9b(0x13e)];}['bind'](_0x4f6132){const _0xb8832b=_0x3bc608;if(this[_0xb8832b(0x14d)])return;this[_0xb8832b(0x478)]=_0x4f6132;let _0x214644=this[_0xb8832b(0x3ea)];_0x214644&&(this[_0xb8832b(0x3ea)]=null,this['_resend'](_0x214644));}[_0x3bc608(0x315)](){this['_source']=null;}['submit'](_0x448d53,_0x2aefb1,_0x3fc4de){const _0x51bb3b=_0x3bc608;this[_0x51bb3b(0x14d)]||(_0x3fc4de&&this[_0x51bb3b(0x431)](_0x3fc4de),this[_0x51bb3b(0x412)](),this[_0x51bb3b(0x450)](_0x448d53),this[_0x51bb3b(0x44d)]=_0x448d53[_0x51bb3b(0x198)]??this['_reqId'],_0x3fc4de&&this[_0x51bb3b(0x3c7)](_0x3fc4de,_0x2aefb1));}[_0x3bc608(0x412)](){const _0x8bb662=_0x3bc608;this[_0x8bb662(0x32e)](this['_ackTimeout'],'ack_timeout');}[_0x3bc608(0x2a9)](_0x45e123=_0x3bc608(0x24e)){const _0x5e99d2=_0x3bc608;this[_0x5e99d2(0x32e)](this[_0x5e99d2(0x223)],_0x45e123);}['dispose'](){const _0x39235f=_0x3bc608;this[_0x39235f(0x14d)]=!0x0,this['_clearTimer'](),this[_0x39235f(0x478)]=null,this[_0x39235f(0x3ea)]=null;}[_0x3bc608(0x450)](_0x403976){const _0x34c14b=_0x3bc608;let _0x106085=++this['_sendToken'],_0x1b946a;try{_0x1b946a=this[_0x34c14b(0x141)](_0x403976,{'timeout':this[_0x34c14b(0x12f)]});}catch(_0x1b1b88){this['_onRequestFailed'](_0x106085,_0x1b1b88);return;}_0x1b946a instanceof Promise&&_0x1b946a['catch'](_0x5f0d4f=>this[_0x34c14b(0x215)](_0x106085,_0x5f0d4f));}[_0x3bc608(0x215)](_0x397eb2,_0x278985){const _0x42b8c6=_0x3bc608;if(this['_disposed']||_0x397eb2!==this[_0x42b8c6(0x3fd)])return;let _0x48f7fb=re(_0x278985,this[_0x42b8c6(0x223)]);_0x48f7fb!==null&&this[_0x42b8c6(0x32e)](_0x48f7fb,_0x42b8c6(0x330));}[_0x3bc608(0x32e)](_0x14b2d3,_0x277ed1){const _0x2cc6f4=_0x3bc608;this[_0x2cc6f4(0x14d)]||(this['_clearTimer'](),this[_0x2cc6f4(0x3ea)]=null,this[_0x2cc6f4(0x440)]=_0x14b2d3,this[_0x2cc6f4(0x360)]=setTimeout(()=>{const _0x39e761=_0x2cc6f4;this[_0x39e761(0x360)]=null,this[_0x39e761(0x478)]?this[_0x39e761(0x1c2)](_0x277ed1):this[_0x39e761(0x3ea)]=_0x277ed1;},_0x14b2d3));}[_0x3bc608(0x1c2)](_0x51afc5){const _0x20807c=_0x3bc608;let _0x1ccb4c=this[_0x20807c(0x478)];if(!_0x1ccb4c||this[_0x20807c(0x14d)])return;let {changeset:_0x3e3a0f,unsyncedMutationCount:_0xccf3b4}=_0x1ccb4c();this[_0x20807c(0x431)](_0x51afc5),this['armAckTimeout'](),this[_0x20807c(0x450)](_0x3e3a0f),this['_reqId']=_0x3e3a0f[_0x20807c(0x198)]??this[_0x20807c(0x44d)],this[_0x20807c(0x3c7)](_0x51afc5,_0xccf3b4);}[_0x3bc608(0x431)](_0x34fbcc){const _0x3fb1f2=_0x3bc608;this[_0x3fb1f2(0x304)]+=0x1,_0x34fbcc==='should_retry'||_0x34fbcc===_0x3fb1f2(0x330)||_0x34fbcc===_0x3fb1f2(0x214)?this[_0x3fb1f2(0x223)]=this[_0x3fb1f2(0x223)]===0x0?0x3e8:Math[_0x3fb1f2(0x20c)](this['_retryBackoff']*0x2,0x4e20):_0x34fbcc==='ack_timeout'&&(this[_0x3fb1f2(0x12f)]=Math[_0x3fb1f2(0x20c)](this['_ackTimeout']*0x2,this[_0x3fb1f2(0x40f)]));}[_0x3bc608(0x3c7)](_0x138c17,_0x377fa0){const _0x122f80=_0x3bc608;var _0x20cb61,_0x1a70a8;this[_0x122f80(0x14d)]||(_0x20cb61=(_0x1a70a8=this['_options'])[_0x122f80(0x1f9)])==null||_0x20cb61['call'](_0x1a70a8,{'reqId':this[_0x122f80(0x44d)],'reason':_0x138c17,'attempt':this[_0x122f80(0x304)],'elapsedMs':this['elapsedMs'],'unsyncedMutationCount':_0x377fa0,'nextDelayMs':this['_ackTimeout']});}['_clearTimer'](){const _0x5ba417=_0x3bc608;this['_timer']!=null&&(clearTimeout(this['_timer']),this[_0x5ba417(0x360)]=null);}};function re(_0x4414e4,_0x100b63){const _0xe66388=_0x3bc608;if(_0x4414e4 instanceof t[_0xe66388(0x2c5)])return null;if(_0x4414e4 instanceof e[_0xe66388(0x19b)]){let _0x3475a6=_0x4414e4['status']??0x0;return _0x3475a6===0x0||_0x3475a6===0x198||_0x3475a6===0x1ad||_0x3475a6>=0x1f4?Math['max'](_0x100b63,ie(_0x4414e4)):null;}return _0x100b63;}function ie(_0x42ac0b){const _0x5a079d=_0x3bc608;var _0x2b0c27;let _0x377d60=(_0x2b0c27=_0x42ac0b['headers'])==null||(_0x2b0c27=_0x2b0c27['get'](_0x5a079d(0x3cd)))==null?void 0x0:_0x2b0c27[0x0],_0x2b701a=_0x377d60===void 0x0?NaN:Number(_0x377d60);return Number[_0x5a079d(0x31f)](_0x2b701a)&&_0x2b701a>0x0?_0x2b701a*0x3e8:0x0;}function ae(_0x452857){const _0x6b640e=_0x3bc608;return JSON[_0x6b640e(0x42b)](_0x452857)[_0x6b640e(0x16e)];}let oe=function(_0x100461){const _0x1b8209=_0x3bc608;return _0x100461[_0x1b8209(0x26b)]='OTHER_CLIENT_EDITING',_0x100461[_0x1b8209(0x1e1)]=_0x1b8209(0x1e1),_0x100461[_0x1b8209(0x3b6)]=_0x1b8209(0x3b6),_0x100461[_0x1b8209(0x27c)]=_0x1b8209(0x27c),_0x100461[_0x1b8209(0x400)]=_0x1b8209(0x400),_0x100461['CLOSE_ROOM']=_0x1b8209(0x39b),_0x100461[_0x1b8209(0x393)]='JOIN_ROOM_FAILED',_0x100461[_0x1b8209(0x471)]=_0x1b8209(0x471),_0x100461[_0x1b8209(0x125)]=_0x1b8209(0x125),_0x100461[_0x1b8209(0x367)]=_0x1b8209(0x367),_0x100461['SUBMIT_CHANGESET_TIMEOUT']=_0x1b8209(0x238),_0x100461;}({});var v=class{constructor(){const _0x32a696=_0x3bc608;_(this,_0x32a696(0x408),new t['Subject']()),_(this,'event$',this[_0x32a696(0x408)][_0x32a696(0x40b)]());}[_0x3bc608(0x2d0)](_0x38fc23){this['_event$']['next'](_0x38fc23);}},se=class{constructor(){const _0x4966e2=_0x3bc608;_(this,_0x4966e2(0x448),new t[(_0x4966e2(0x1a3))]()),_(this,_0x4966e2(0x436),this[_0x4966e2(0x448)][_0x4966e2(0x40b)]());}['onCommentUpdate'](_0x4e0aa8){const _0x3b7271=_0x3bc608;this[_0x3b7271(0x448)][_0x3b7271(0x33a)](_0x4e0aa8);}};function y(_0x8f43d8,_0x2a238b){return function(_0x437b9a,_0x35f786){_0x2a238b(_0x437b9a,_0x35f786,_0x8f43d8);};}function b(_0x4f3b90,_0x1f7ccc,_0x28f5ac,_0x4e4ceb){const _0x4d248d=_0x3bc608;var _0x26948e=arguments[_0x4d248d(0x16e)],_0x58e9cd=_0x26948e<0x3?_0x1f7ccc:_0x4e4ceb===null?_0x4e4ceb=Object[_0x4d248d(0x288)](_0x1f7ccc,_0x28f5ac):_0x4e4ceb,_0x2e1e39;if(typeof Reflect==_0x4d248d(0x435)&&typeof Reflect[_0x4d248d(0x1a7)]==_0x4d248d(0x265))_0x58e9cd=Reflect[_0x4d248d(0x1a7)](_0x4f3b90,_0x1f7ccc,_0x28f5ac,_0x4e4ceb);else{for(var _0x55c2ae=_0x4f3b90[_0x4d248d(0x16e)]-0x1;_0x55c2ae>=0x0;_0x55c2ae--)(_0x2e1e39=_0x4f3b90[_0x55c2ae])&&(_0x58e9cd=(_0x26948e<0x3?_0x2e1e39(_0x58e9cd):_0x26948e>0x3?_0x2e1e39(_0x1f7ccc,_0x28f5ac,_0x58e9cd):_0x2e1e39(_0x1f7ccc,_0x28f5ac))||_0x58e9cd);}return _0x26948e>0x3&&_0x58e9cd&&Object['defineProperty'](_0x1f7ccc,_0x28f5ac,_0x58e9cd),_0x58e9cd;}let x=class extends r['Disposable']{constructor(_0x50c65f){const _0x3722cb=_0x3bc608;super(),this['_univerInstanceService']=_0x50c65f,_(this,_0x3722cb(0x2a3),new Map()),_(this,'_roomCreated$',new t[(_0x3722cb(0x1a3))]()),this[_0x3722cb(0x24c)]((0x0,t[_0x3722cb(0x22a)])(this[_0x3722cb(0x414)][_0x3722cb(0x343)](r[_0x3722cb(0x403)][_0x3722cb(0xf2)])[_0x3722cb(0x1d6)]((0x0,c[_0x3722cb(0x222)])(_0x4a9d1b=>_0x4a9d1b[_0x3722cb(0x363)]())),this['_univerInstanceService'][_0x3722cb(0x343)](r[_0x3722cb(0x403)][_0x3722cb(0x2c2)])[_0x3722cb(0x1d6)]((0x0,c[_0x3722cb(0x222)])(_0xb3dfd3=>_0xb3dfd3[_0x3722cb(0x363)]())),this[_0x3722cb(0x414)]['getTypeOfUnitDisposed$'](r[_0x3722cb(0x403)][_0x3722cb(0x398)])[_0x3722cb(0x1d6)]((0x0,c[_0x3722cb(0x222)])(_0x563f61=>_0x563f61[_0x3722cb(0x363)]())),this[_0x3722cb(0x414)][_0x3722cb(0x343)](r[_0x3722cb(0x403)][_0x3722cb(0x2c4)])['pipe']((0x0,c['map'])(_0x539fc0=>_0x539fc0[_0x3722cb(0x363)]())))[_0x3722cb(0x2ad)](_0x5df451=>this['_removeRoom'](_0x5df451)));}[_0x3bc608(0x314)](_0xed193){const _0x145ed0=_0x3bc608;return this['_roomMembers'][_0x145ed0(0x411)](_0xed193)?(0x0,t['of'])(this[_0x145ed0(0x2a3)][_0x145ed0(0x119)](_0xed193)):this['_roomCreated$'][_0x145ed0(0x1d6)]((0x0,c['map'])(_0x32417a=>{const _0xe4bc33=_0x145ed0;if(_0x32417a===_0xed193)return this[_0xe4bc33(0x2a3)]['get'](_0x32417a);}));}[_0x3bc608(0x23a)](_0x2592f6,_0x4228dc){const _0x53c8e0=_0x3bc608;let _0x1b531c=this[_0x53c8e0(0x2a3)][_0x53c8e0(0x119)](_0x2592f6);_0x1b531c||(_0x1b531c=new ce(),this[_0x53c8e0(0x2a3)][_0x53c8e0(0x122)](_0x2592f6,_0x1b531c),this[_0x53c8e0(0x2ab)][_0x53c8e0(0x33a)](_0x2592f6)),_0x1b531c['updateMember'](_0x4228dc);}[_0x3bc608(0x22d)](_0x14e577,_0x598177){const _0x4ee6a7=_0x3bc608;let _0x55f6b4=this[_0x4ee6a7(0x2a3)][_0x4ee6a7(0x119)](_0x14e577);_0x55f6b4&&_0x55f6b4[_0x4ee6a7(0x22d)](_0x598177);}[_0x3bc608(0x1da)](_0x26c886){const _0x5c83e6=_0x3bc608;return this[_0x5c83e6(0x2a3)]['get'](_0x26c886);}[_0x3bc608(0x1c5)](_0x178376,_0x1bb225){const _0x5d0ad2=_0x3bc608;let _0x3ece76=this['_roomMembers'][_0x5d0ad2(0x119)](_0x178376);if(_0x3ece76)return _0x3ece76[_0x5d0ad2(0x1c5)](_0x1bb225);}[_0x3bc608(0xec)](_0x490bd2){const _0x2285e8=_0x3bc608;let _0x2ee78d=this[_0x2285e8(0x2a3)][_0x2285e8(0x119)](_0x490bd2);_0x2ee78d&&(_0x2ee78d[_0x2285e8(0x3cc)](),this['_roomMembers']['delete'](_0x490bd2));}[_0x3bc608(0x3cc)](){const _0x4763fe=_0x3bc608;this[_0x4763fe(0x2a3)]['forEach'](_0x53f611=>_0x53f611[_0x4763fe(0x3cc)]()),this[_0x4763fe(0x2a3)][_0x4763fe(0x3ca)](),this['_roomCreated$'][_0x4763fe(0x10e)]();}};x=b([y(0x0,r[_0x3bc608(0x260)])],x);var ce=class extends r[_0x3bc608(0x358)]{constructor(..._0x3ed803){const _0x49aabb=_0x3bc608;super(..._0x3ed803),_(this,_0x49aabb(0x2b5),new Map()),_(this,'_members$',new t['BehaviorSubject'](this[_0x49aabb(0x2b5)])),_(this,'members$',this['_members$']['asObservable']());}[_0x3bc608(0x3cc)](){const _0x2ddd82=_0x3bc608;this[_0x2ddd82(0x2b5)][_0x2ddd82(0x3ca)](),this[_0x2ddd82(0x45a)][_0x2ddd82(0x10e)]();}['updateMember'](_0x4fe1f9){const _0x362d2f=_0x3bc608;this[_0x362d2f(0x2b5)]['set'](_0x4fe1f9[_0x362d2f(0x28c)],_0x4fe1f9),this[_0x362d2f(0x1e7)]();}['removeMember'](_0x133ea0){const _0x198610=_0x3bc608;this[_0x198610(0x2b5)][_0x198610(0x3a1)](_0x133ea0),this[_0x198610(0x1e7)]();}[_0x3bc608(0x1c5)](_0x347651){const _0x3fc65b=_0x3bc608;return this[_0x3fc65b(0x2b5)][_0x3fc65b(0x119)](_0x347651);}['getAllMembers'](){const _0x2bb2a2=_0x3bc608;return Array[_0x2bb2a2(0x32f)](this[_0x2bb2a2(0x2b5)]['values']());}[_0x3bc608(0x1e7)](){const _0x32b09e=_0x3bc608;this[_0x32b09e(0x45a)][_0x32b09e(0x33a)](this[_0x32b09e(0x2b5)]);}};function le(_0x26a4d2,_0x34ff49){const _0x574bcc=_0x3bc608;if(de(_0x26a4d2))return _0x34ff49;if(_0x34ff49[_0x574bcc(0x1e5)]===n[_0x574bcc(0x1be)][_0x574bcc(0x47b)]){let _0x7c2224=ge(_0x26a4d2),_0xdf174=_0x34ff49;return{..._0xdf174,'data':{..._0xdf174[_0x574bcc(0x34b)],'unitID':_0x26a4d2['target']['unitId'],'unitType':_0x26a4d2[_0x574bcc(0x1f4)][_0x574bcc(0x1b8)]??_0xdf174[_0x574bcc(0x34b)][_0x574bcc(0x1b8)],'changeset':_0x7c2224[_0x574bcc(0x207)](_0xdf174[_0x574bcc(0x34b)]['changeset'],_e(_0x26a4d2))}};}if(_0x34ff49[_0x574bcc(0x1e5)]===n[_0x574bcc(0x1be)][_0x574bcc(0x3d4)]){let _0x373e5f=_0x34ff49;return{..._0x373e5f,'data':{..._0x373e5f['data'],'unitID':_0x26a4d2['target'][_0x574bcc(0x3dc)],'unitType':_0x26a4d2[_0x574bcc(0x1f4)][_0x574bcc(0x1b8)]??_0x373e5f[_0x574bcc(0x34b)]['unitType']}};}return _0x34ff49;}function ue(_0x4438ec,_0x45db2c){const _0x5d586e=_0x3bc608;if(de(_0x4438ec))return[_0x45db2c];switch(_0x45db2c['eventID']){case n[_0x5d586e(0x1be)][_0x5d586e(0x1f0)]:return[fe(_0x4438ec,_0x45db2c)];case n[_0x5d586e(0x1be)][_0x5d586e(0x2c6)]:return[me(_0x4438ec,_0x45db2c)];case n[_0x5d586e(0x1be)]['CHANGESET_SHOULD_RETRY']:return[pe(_0x4438ec,_0x45db2c)];default:return[_0x45db2c];}}function de(_0x522dc8){const _0x48be76=_0x3bc608;return _0x522dc8[_0x48be76(0x1f4)][_0x48be76(0x295)]==null&&_0x522dc8[_0x48be76(0x1f4)][_0x48be76(0x3dc)]===_0x522dc8[_0x48be76(0x26e)]&&!_0x522dc8[_0x48be76(0x167)];}function fe(_0x1f900a,_0x4258b2){const _0x21e454=_0x3bc608;return{..._0x4258b2,'data':(0x0,n[_0x21e454(0x17f)])(he(_0x1f900a,(0x0,n[_0x21e454(0x395)])(_0x4258b2[_0x21e454(0x34b)])))};}function pe(_0x425672,_0x1828ab){const _0x4d921f=_0x3bc608;return{..._0x1828ab,'data':he(_0x425672,_0x1828ab[_0x4d921f(0x34b)])};}function me(_0x154e31,_0x25df23){const _0xea48d7=_0x3bc608;let _0x3c5b28=_0x25df23[_0xea48d7(0x34b)];return{..._0x25df23,'data':{..._0x3c5b28,'changesets':_0x3c5b28[_0xea48d7(0x1ee)]['map'](_0x327b96=>(0x0,n[_0xea48d7(0x17f)])(he(_0x154e31,(0x0,n[_0xea48d7(0x395)])(_0x327b96))))}};}function he(_0x3dd89e,_0x5bfa9f){const _0x59421c=_0x3bc608;return ge(_0x3dd89e)[_0x59421c(0x338)](_0x5bfa9f,_e(_0x3dd89e));}function ge(_0x42c01a){const _0x113d33=_0x3bc608;if(!_0x42c01a[_0x113d33(0x167)])throw Error(_0x113d33(0xe9));return _0x42c01a['changeset'];}function _e(_0x13a811){const _0x55d1ae=_0x3bc608;return{'localUnitId':_0x13a811[_0x55d1ae(0x26e)],'unitType':_0x13a811['unitType'],'target':_0x13a811['target']};}let ve=function(_0x437e73){const _0xddec02=_0x3bc608;return _0x437e73[_0x437e73[_0xddec02(0x285)]=0x0]='IDLE',_0x437e73[_0x437e73[_0xddec02(0x264)]=0x1]=_0xddec02(0x264),_0x437e73[_0x437e73[_0xddec02(0x25d)]=0x2]='OFFLINE',_0x437e73[_0x437e73['ONLINE']=0x3]='ONLINE',_0x437e73;}({});const ye={[o[_0x3bc608(0x2c9)][_0x3bc608(0x475)]]:'session.join-failed',[o[_0x3bc608(0x2c9)][_0x3bc608(0x356)]]:_0x3bc608(0x3ff),[o[_0x3bc608(0x2c9)]['JOIN_ROOM_NOT_EXISTS']]:_0x3bc608(0x108),[o['CmdRspCode']['JOIN_ROOM_PERMISSION_DENIED']]:_0x3bc608(0x1d8),[o[_0x3bc608(0x2c9)][_0x3bc608(0x446)]]:'session.room-cnt-exceeds'};let S=class extends r['RxDisposable']{get[_0x3bc608(0x445)](){const _0x587208=_0x3bc608;return this[_0x587208(0x35f)]['getValue']();}constructor(_0x2eb05f,_0x545756,_0x54289a,_0x270135,_0x5d10b8,_0x4b9ccc,_0x45bba7){const _0xba4a42=_0x3bc608;super(),this[_0xba4a42(0x434)]=_0x2eb05f,this[_0xba4a42(0x2bc)]=_0x54289a,this[_0xba4a42(0x389)]=_0x270135,this[_0xba4a42(0x101)]=_0x5d10b8,this[_0xba4a42(0x1fe)]=_0x4b9ccc,this[_0xba4a42(0x1bb)]=_0x45bba7,_(this,_0xba4a42(0x35f),new t[(_0xba4a42(0x249))](0x0)),_(this,_0xba4a42(0x1d5),this[_0xba4a42(0x35f)][_0xba4a42(0x40b)]()),_(this,_0xba4a42(0x408),new t[(_0xba4a42(0x1a3))]()),_(this,_0xba4a42(0x165),this[_0xba4a42(0x408)][_0xba4a42(0x40b)]()),_(this,_0xba4a42(0x2e0),void 0x0),_(this,_0xba4a42(0x12a),void 0x0),_(this,_0xba4a42(0x373),!0x1),_(this,_0xba4a42(0xef),null),this['_shouldReportTelemetry']=!!this[_0xba4a42(0x1bb)],_0x545756[_0xba4a42(0x1d6)]((0x0,t['takeUntil'])(this['dispose$']))['subscribe'](_0x3a59b1=>{const _0x11c7bb=_0xba4a42;if(_0x3a59b1!==void 0x0){if(this[_0x11c7bb(0x2e0)]=_0x3a59b1,_0x3a59b1)this[_0x11c7bb(0x22e)](_0x3a59b1),this[_0x11c7bb(0x12a)]=_0x3a59b1[_0x11c7bb(0x30d)][_0x11c7bb(0x2ad)](_0x3a5b42=>{const _0x33e6a8=_0x11c7bb;_0x3a5b42['routeKey']===this[_0x33e6a8(0x434)][_0x33e6a8(0x1f4)][_0x33e6a8(0x3dc)]&&this['_onCombEvent'](_0x3a5b42);});else{var _0x5a6864;this[_0x11c7bb(0x178)](),this[_0x11c7bb(0x35f)][_0x11c7bb(0x33a)](0x2),(_0x5a6864=this[_0x11c7bb(0x12a)])==null||_0x5a6864['unsubscribe'](),this[_0x11c7bb(0x12a)]=null;}}});}[_0x3bc608(0x1a6)](){const _0x50c851=_0x3bc608;var _0x1ec028;return((_0x1ec028=this[_0x50c851(0x2e0)])==null?void 0x0:_0x1ec028[_0x50c851(0x28c)])??null;}[_0x3bc608(0x3cc)](){const _0x27ab68=_0x3bc608;super[_0x27ab68(0x3cc)](),this['close'](),this['dispose$']['next'](),this['dispose$'][_0x27ab68(0x10e)]();}['close'](){const _0x14576f=_0x3bc608;var _0x8c7296;this[_0x14576f(0x178)](),(_0x8c7296=this[_0x14576f(0x2e0)])==null||_0x8c7296[_0x14576f(0x153)]({'cmd':o[_0x14576f(0x162)][_0x14576f(0x37e)],'data':{'roomID':this['_identity']['target']['unitId']}}),this[_0x14576f(0x408)][_0x14576f(0x10e)](),this[_0x14576f(0x35f)]['complete']();}[_0x3bc608(0x11e)](_0x24ee36){const _0x50a10f=_0x3bc608;_0x24ee36['cmd']===o[_0x50a10f(0x162)][_0x50a10f(0x21c)]?this[_0x50a10f(0x2d7)](_0x24ee36):_0x24ee36[_0x50a10f(0x1e9)]===o[_0x50a10f(0x162)][_0x50a10f(0x2d4)]&&this[_0x50a10f(0x3ee)](_0x24ee36);}[_0x3bc608(0x22e)](_0xca103a){const _0x59588b=_0x3bc608;this[_0x59588b(0x35f)][_0x59588b(0x33a)](0x1),_0xca103a[_0x59588b(0x153)]({'cmd':o[_0x59588b(0x162)][_0x59588b(0x21c)],'routeKey':this[_0x59588b(0x434)][_0x59588b(0x1f4)][_0x59588b(0x3dc)],'routeType':'','data':{'rooms':[{'roomID':this[_0x59588b(0x434)][_0x59588b(0x1f4)][_0x59588b(0x3dc)]}]}});}[_0x3bc608(0x2d7)](_0x5f0a54){const _0x1d0fd0=_0x3bc608;var _0x527bc2;if(_0x5f0a54[_0x1d0fd0(0x3e2)]in ye){this[_0x1d0fd0(0x1fe)][_0x1d0fd0(0x2d0)]({'id':_0x1d0fd0(0x393),'data':ye[_0x5f0a54[_0x1d0fd0(0x3e2)]]}),this[_0x1d0fd0(0x35f)][_0x1d0fd0(0x33a)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0x17b3a7=(_0x527bc2=_0x5f0a54[_0x1d0fd0(0x34b)][_0x1d0fd0(0x2b2)][this[_0x1d0fd0(0x434)]['target']['unitId']])==null?void 0x0:_0x527bc2['members'];_0x17b3a7&&_0x17b3a7[_0x1d0fd0(0x103)](_0x11dfb7=>this['_memberService']['updateMember'](this[_0x1d0fd0(0x434)][_0x1d0fd0(0x26e)],_0x11dfb7));}[_0x3bc608(0x3ee)](_0x3452f2){const _0x22635b=_0x3bc608;try{let _0x29a1e4=ue(this[_0x22635b(0x434)],_0x3452f2[_0x22635b(0x34b)]);for(let _0xec59e2 of _0x29a1e4)switch(_0xec59e2[_0x22635b(0x1e5)]){case n[_0x22635b(0x1be)][_0x22635b(0x34a)]:this[_0x22635b(0x157)](_0xec59e2),this[_0x22635b(0x408)][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)][_0x22635b(0x390)]:this['_onUserLeave'](_0xec59e2),this['_event$'][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)][_0x22635b(0x362)]:case n[_0x22635b(0x1be)][_0x22635b(0x34e)]:this[_0x22635b(0x10d)](),this[_0x22635b(0x408)][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)]['MSG_FOR_ERROR']:this[_0x22635b(0x2bc)][_0x22635b(0x3a2)](_0x22635b(0x40c)+JSON[_0x22635b(0x42b)](_0xec59e2)),this['_event$'][_0x22635b(0x33a)](_0xec59e2);break;case n[_0x22635b(0x1be)][_0x22635b(0x218)]:this[_0x22635b(0x101)]['onCommentUpdate'](_0xec59e2[_0x22635b(0x34b)]),this['_event$'][_0x22635b(0x33a)](_0xec59e2);break;default:this[_0x22635b(0x408)]['next'](_0xec59e2);}}catch(_0x4cb9a8){this[_0x22635b(0x2bc)][_0x22635b(0x3a2)](_0x4cb9a8,_0x3452f2);}}[_0x3bc608(0x157)](_0xbd29c6){const _0x324697=_0x3bc608;this[_0x324697(0x389)][_0x324697(0x23a)](this['_identity'][_0x324697(0x26e)],_0xbd29c6[_0x324697(0x34b)]);}[_0x3bc608(0x374)](_0x407d1e){const _0xf30042=_0x3bc608;this[_0xf30042(0x389)][_0xf30042(0x22d)](this[_0xf30042(0x434)][_0xf30042(0x26e)],_0x407d1e['data'][_0xf30042(0x28c)]);}async[_0x3bc608(0x153)](_0x4dd40d,_0x3ca19f,_0x2f7783){const _0x1dfc97=_0x3bc608;if(this['sessionStatus']!==0x3||!this[_0x1dfc97(0x2e0)])throw Error('[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!');try{let _0x87b46=le(this[_0x1dfc97(0x434)],_0x4dd40d);_0x87b46[_0x1dfc97(0x1e5)]===n['CollaborationEvent']['SUBMIT_CHANGESET']&&this[_0x1dfc97(0x20e)](_0x87b46);let _0x390dff={'cmd':o[_0x1dfc97(0x162)][_0x1dfc97(0x496)],'routeKey':this[_0x1dfc97(0x434)][_0x1dfc97(0x1f4)][_0x1dfc97(0x3dc)],'routeType':'','data':_0x87b46};return _0x2f7783===void 0x0?this['_socket'][_0x1dfc97(0x153)](_0x390dff):this[_0x1dfc97(0x2e0)][_0x1dfc97(0x153)](_0x390dff,_0x2f7783);}catch(_0x28c827){this[_0x1dfc97(0x2bc)]['error'](_0x28c827);}}[_0x3bc608(0x20e)](_0x55c621){const _0x4c38b2=_0x3bc608;if(!this[_0x4c38b2(0x373)])return;let {data:_0x592f62}=_0x55c621,{unitID:_0x3878f7,changeset:_0x1f96ce}=_0x592f62,{mutations:_0x1df69f,type:_0x2f4c04}=_0x1f96ce;this['_telemetryInfo']={'unitId':_0x3878f7,'type':_0x2f4c04,'startTime':performance[_0x4c38b2(0x261)](),'stopTime':0x0,'duration':0x0,'size':ae(_0x1df69f)};}[_0x3bc608(0x10d)](){const _0x4baf3c=_0x3bc608;this[_0x4baf3c(0x373)]&&(this[_0x4baf3c(0xef)]?(this['_telemetryInfo'][_0x4baf3c(0x18b)]=performance[_0x4baf3c(0x261)](),this[_0x4baf3c(0xef)]['duration']=this[_0x4baf3c(0xef)][_0x4baf3c(0x18b)]-this[_0x4baf3c(0xef)][_0x4baf3c(0x332)],this[_0x4baf3c(0x1bb)][_0x4baf3c(0x1f2)](_0x4baf3c(0x3d7),this[_0x4baf3c(0xef)]),this[_0x4baf3c(0xef)]=null):this['_logService'][_0x4baf3c(0x3a2)](_0x4baf3c(0x19f),_0x4baf3c(0x313)));}[_0x3bc608(0x178)](){const _0x4b91b2=_0x3bc608;this[_0x4b91b2(0xef)]=null;}};S=b([y(0x2,r['ILogService']),y(0x3,(0x0,r[_0x3bc608(0x2bb)])(x)),y(0x4,(0x0,r['Inject'])(se)),y(0x5,(0x0,r['Inject'])(v)),y(0x6,(0x0,r[_0x3bc608(0x18d)])(s['ITelemetryService']))],S);const C=(0x0,r[_0x3bc608(0x2e1)])(_0x3bc608(0x211));function be(_0x40cb90,_0x282c24){const _0x257cbf=_0x3bc608;return _0x282c24===''||_0x282c24==null?_0x257cbf(0x202)+_0x40cb90:_0x257cbf(0x202)+_0x40cb90+'-'+encodeURIComponent(_0x282c24);}function xe(_0x1a5fed){const _0x1b4eac=_0x3bc608;let {unitID:_0x38fb18,mutations:_0x9e2522}=_0x1a5fed;return{'unitId':_0x38fb18,'subUnitId':_0x9e2522[_0x1b4eac(0x16e)]>0x0?_0x9e2522[0x0][_0x1b4eac(0x41a)][_0x1b4eac(0x219)]:null};}let w=class{constructor(_0x162a66,_0x5452dd,_0x574eed){const _0x1f6c9f=_0x3bc608;this['_injector']=_0x162a66,this[_0x1f6c9f(0x378)]=_0x5452dd,this[_0x1f6c9f(0x2c3)]=_0x574eed;}[_0x3bc608(0x286)](_0x5095ea){const _0x576201=_0x3bc608;var _0x3fc84d,_0x53cbc5;let _0x1a703d=this['_injector'][_0x576201(0x119)](a[_0x576201(0x1bc)]),{unitId:_0x194657,subUnitId:_0x4fd5a3}=xe(_0x5095ea),_0x3d60b1=_0x1a703d==null?void 0x0:_0x1a703d[_0x576201(0x375)](_0x194657)['getCurrentSelections'](),_0x594f0d=(_0x3fc84d=this['_instanceService']['getUnit'](_0x194657))==null||(_0x3fc84d=_0x3fc84d[_0x576201(0x42c)]())==null?void 0x0:_0x3fc84d[_0x576201(0x146)]();if(_0x3d60b1['length']===0x0||!_0x194657||!_0x4fd5a3)return;let _0x555ed8=[{'id':a['SetSelectionsOperation']['id'],'params':{'unitId':_0x194657,'subUnitId':_0x594f0d,'selections':r[_0x576201(0x42e)][_0x576201(0x47d)](_0x3d60b1)}}],_0x3b0603=this['_transformService']['transformMutationsWithChangeset'](_0x5095ea,_0x555ed8);if(!(0x0,n[_0x576201(0x3c5)])(_0x3b0603))throw _0x3b0603[_0x576201(0x3a2)];let _0x106462=(_0x53cbc5=_0x3b0603[_0x576201(0x2fd)][0x0])==null||(_0x53cbc5=_0x53cbc5[_0x576201(0x41a)])==null?void 0x0:_0x53cbc5[_0x576201(0x25f)];if(Array[_0x576201(0x2f7)](_0x106462)&&_0x106462[_0x576201(0x16e)]){if(_0x106462['length']===_0x555ed8[0x0][_0x576201(0x41a)][_0x576201(0x25f)][_0x576201(0x16e)]&&_0x106462[_0x576201(0x127)]((_0x12e282,_0x24a74f)=>r[_0x576201(0x189)]['equals'](_0x12e282[_0x576201(0x3c9)],_0x555ed8[0x0]['params'][_0x576201(0x25f)][_0x24a74f]['range'])))return;this[_0x576201(0x1aa)]['get'](r[_0x576201(0x185)])['executeCommand'](a['SetSelectionsOperation']['id'],{'unitId':_0x194657,'subUnitId':_0x594f0d,'selections':_0x106462});}}};w=b([y(0x0,(0x0,r['Inject'])(r['Injector'])),y(0x1,n[_0x3bc608(0x331)]),y(0x2,r[_0x3bc608(0x260)])],w);const T=(0x0,r['createIdentifier'])(_0x3bc608(0x413));let Se=function(_0x53edc5){const _0x2f28e7=_0x3bc608;return _0x53edc5[_0x53edc5[_0x2f28e7(0x3e1)]=0x0]='NO_OTHER_CLIENTS_EDITING',_0x53edc5[_0x53edc5[_0x2f28e7(0x134)]=0x1]='OTHER_CLIENTS_EDITING',_0x53edc5;}({});function Ce(_0x21cf4e){const _0x30d393=_0x3bc608;var _0x56b8b0;return!!((_0x56b8b0=_0x21cf4e[_0x30d393(0x41a)])!=null&&_0x56b8b0['__splitChunk__']);}const we=new Set([a['InsertSheetMutation']['id']]),Te=new Set([l[_0x3bc608(0x253)]['id'],l['EnsureSlideMasterPageMutation']['id'],l[_0x3bc608(0x2cc)]['id'],l[_0x3bc608(0x246)]['id']]);function Ee(_0x3526b5,_0x185d9c=we){const _0x5a4bb9=_0x3bc608;let _0xfc21f7=[];for(let _0x3f1cd3 of _0x3526b5){if(_0x185d9c['has'](_0x3f1cd3['id'])||Ce(_0x3f1cd3)){if(_0xfc21f7[_0x5a4bb9(0x16e)]>0x0)break;_0xfc21f7[_0x5a4bb9(0x13a)](_0x3f1cd3);break;}_0xfc21f7[_0x5a4bb9(0x13a)](_0x3f1cd3);}return _0xfc21f7;}function E(_0xe485c4,_0xdfa981,_0x233215,_0x4d3294,_0x2cfaf3){const _0x1fff43=_0x3bc608;let _0x2d67e8=Ee(_0xe485c4),_0x1d9045=_0x2cfaf3['getCurrentUser'](),_0x20e8a2=(_0x1d9045==null?void 0x0:_0x1d9045[_0x1fff43(0x381)])??_0x1fff43(0x1bd),_0x32b8d7=(_0x1d9045==null?void 0x0:_0x1d9045[_0x1fff43(0x28c)])??'unknown';return{'changeset':{'unitID':_0xdfa981,'type':(0x0,n[_0x1fff43(0x429)])(_0x233215[_0x1fff43(0x1a2)](_0xdfa981)),'baseRev':_0x4d3294[_0x1fff43(0x1b4)](_0xdfa981),'revision':0x0,'userID':_0x20e8a2,'memberID':_0x32b8d7,'mutations':_0x2d67e8},'pendingMutations':_0xe485c4['slice'](_0x2d67e8[_0x1fff43(0x16e)])};}const De=E;function Oe(_0x4c8bf6,_0x194174,_0x9981a2,_0x30b899,_0x54452e){const _0x20bc1a=_0x3bc608;let _0x24a773=Ee(_0x4c8bf6,Te),_0x4a40bb=_0x54452e[_0x20bc1a(0x147)](),_0x4c38ee=(_0x4a40bb==null?void 0x0:_0x4a40bb[_0x20bc1a(0x381)])??'unknown',_0x1dd5dd=(_0x4a40bb==null?void 0x0:_0x4a40bb['memberID'])??_0x20bc1a(0x1bd);return{'changeset':{'unitID':_0x194174,'type':(0x0,n[_0x20bc1a(0x429)])(_0x9981a2[_0x20bc1a(0x1a2)](_0x194174)),'baseRev':_0x30b899['getCurrentRevOfUnit'](_0x194174),'revision':0x0,'userID':_0x4c38ee,'memberID':_0x1dd5dd,'mutations':_0x24a773},'pendingMutations':_0x4c8bf6[_0x20bc1a(0x1a1)](_0x24a773[_0x20bc1a(0x16e)])};}function ke(_0x1cc2ac,_0x2beada,_0x41bc7f,_0x27be7b,_0x4b49e0){const _0x1037cd=_0x3bc608;let _0x5c4a19=_0x1cc2ac[_0x1037cd(0x2a5)]((_0x28b8e6,_0x23a9b1)=>{const _0x50feb5=_0x1037cd;let _0x3a0c31=_0x28b8e6[_0x28b8e6[_0x50feb5(0x16e)]-0x1],{id:_0x3ac973}=_0x3a0c31??{},{id:_0x1f5eda,type:_0x24378e}=_0x23a9b1,_0x1de6f5=_0x23a9b1[_0x50feb5(0x41a)];if(_0x3ac973&&_0x3ac973!==_0x1f5eda)throw Error(_0x50feb5(0x321)+_0x3ac973+_0x50feb5(0x427)+_0x1f5eda+'.');if(!_0x3a0c31)return[{'id':_0x1f5eda,'type':_0x24378e,'params':{'unitId':_0x1de6f5[_0x50feb5(0x3dc)],'textRanges':_0x1de6f5[_0x50feb5(0x344)],'actions':_0x1de6f5[_0x50feb5(0x33d)]}}];let _0x261f91=_0x3a0c31['params'];return Ae(_0x261f91,_0x1de6f5)?[..._0x28b8e6[_0x50feb5(0x1a1)](0x0,-0x1),{..._0x3a0c31,'id':_0x1f5eda,'type':_0x24378e,'params':{'unitId':_0x1de6f5[_0x50feb5(0x3dc)],'textRanges':_0x1de6f5[_0x50feb5(0x344)],'actions':r[_0x50feb5(0x1d0)][_0x50feb5(0x491)](_0x261f91[_0x50feb5(0x33d)],_0x1de6f5[_0x50feb5(0x33d)])}}]:[..._0x28b8e6,{'id':_0x1f5eda,'type':_0x24378e,'params':{'unitId':_0x1de6f5['unitId'],'textRanges':_0x1de6f5[_0x50feb5(0x344)],'actions':_0x1de6f5[_0x50feb5(0x33d)]}}];},[]),_0x1b27df=_0x4b49e0[_0x1037cd(0x147)](),_0x31d1ed=(_0x1b27df==null?void 0x0:_0x1b27df[_0x1037cd(0x381)])??_0x1037cd(0x1bd),_0x1a594e=(_0x1b27df==null?void 0x0:_0x1b27df[_0x1037cd(0x28c)])??_0x1037cd(0x1bd);return{'changeset':{'unitID':_0x2beada,'type':(0x0,n[_0x1037cd(0x429)])(_0x41bc7f[_0x1037cd(0x1a2)](_0x2beada)),'baseRev':_0x27be7b['getCurrentRevOfUnit'](_0x2beada),'revision':0x0,'userID':_0x31d1ed,'memberID':_0x1a594e,'mutations':_0x5c4a19},'pendingMutations':_0x1cc2ac[_0x1037cd(0x1a1)](_0x1cc2ac['length'])};}function Ae(_0xefe0aa,_0x8ac5cd){const _0x31d7e4=_0x3bc608;return!je(_0xefe0aa)&&!je(_0x8ac5cd)&&Me(_0xefe0aa[_0x31d7e4(0x33d)],_0x8ac5cd['actions']);}function je(_0x470eee){const _0x721282=_0x3bc608;return _0x470eee[_0x721282(0x335)]!==void 0x0;}function Me(_0x2abe86,_0xdbf0b2){return Ne(_0x2abe86)&&Ne(_0xdbf0b2)&&!Fe(_0x2abe86)&&!Fe(_0xdbf0b2)&&!Pe(_0x2abe86)&&!Pe(_0xdbf0b2);}function Ne(_0x4a66cd){const _0x48b73e=_0x3bc608;return Ie(_0x4a66cd)[_0x48b73e(0x3fc)](_0x402cc2=>D(_0x402cc2)&&_0x402cc2['et']===_0x48b73e(0x459));}function Pe(_0x5ad193){const _0x551f58=_0x3bc608;return Ie(_0x5ad193)[_0x551f58(0x3fc)](_0x1cb56c=>Array[_0x551f58(0x2f7)](_0x1cb56c)||typeof _0x1cb56c=='string'||typeof _0x1cb56c==_0x551f58(0x3b9));}function Fe(_0x1ed097){const _0x332e11=_0x3bc608;return Ie(_0x1ed097)[_0x332e11(0x3fc)](_0x2ca115=>!D(_0x2ca115)||_0x2ca115['et']!==_0x332e11(0x459)||!Array[_0x332e11(0x2f7)](_0x2ca115['e'])?!0x1:_0x2ca115['e'][_0x332e11(0x3fc)](_0x51e677=>!D(_0x51e677)||!D(_0x51e677[_0x332e11(0x28e)])?!0x1:Object[_0x332e11(0x164)]['hasOwnProperty'][_0x332e11(0x1e2)](_0x51e677[_0x332e11(0x28e)],_0x332e11(0x16f))||Object[_0x332e11(0x164)][_0x332e11(0x3ec)][_0x332e11(0x1e2)](_0x51e677[_0x332e11(0x28e)],_0x332e11(0x40a))||Object[_0x332e11(0x164)][_0x332e11(0x3ec)]['call'](_0x51e677[_0x332e11(0x28e)],'blockRanges')));}function Ie(_0x2e3652){const _0x1391a0=_0x3bc608;if(!Array[_0x1391a0(0x2f7)](_0x2e3652))return[];let _0x1ba9f0=_0x2e3652[_0x1391a0(0x480)](_0x1391a0(0x28e))?_0x2e3652:_0x2e3652['find'](_0x5a63cd=>Array[_0x1391a0(0x2f7)](_0x5a63cd)&&_0x5a63cd[_0x1391a0(0x480)](_0x1391a0(0x28e)));if(!Array[_0x1391a0(0x2f7)](_0x1ba9f0))return[];let _0x26f461=_0x1ba9f0[_0x1391a0(0x3af)](_0x1391a0(0x28e));return _0x26f461===-0x1?[]:_0x1ba9f0[_0x1391a0(0x1a1)](_0x26f461+0x1);}function D(_0x459176){const _0x2fe6be=_0x3bc608;return typeof _0x459176==_0x2fe6be(0x435)&&!!_0x459176&&!Array[_0x2fe6be(0x2f7)](_0x459176);}function Le(_0x29008c,_0x108b10){const _0x171037=_0x3bc608;for(let _0x4c9b7a of _0x29008c[_0x171037(0x29d)]){if(_0x4c9b7a['id']!==n['RevertRevisionMutation']['id'])continue;let _0x1f0dd0=_0x4c9b7a[_0x171037(0x41a)];if((_0x1f0dd0==null?void 0x0:_0x1f0dd0[_0x171037(0x3dc)])===_0x108b10&&typeof _0x1f0dd0['revision']=='number')return{'unitId':_0x1f0dd0[_0x171037(0x3dc)],'revision':_0x1f0dd0[_0x171037(0x2f9)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x2817da){const _0x76f004=_0x3bc608;super(_0x2817da instanceof Error?_0x2817da[_0x76f004(0x3c4)]:typeof _0x2817da=='string'?_0x2817da:'[CollaborationState]:\x20apply\x20error!'),this[_0x76f004(0x33f)]=_0x2817da,this[_0x76f004(0x142)]=_0x76f004(0x497);}},He=class extends Error{constructor(_0x864f9){const _0x164ae6=_0x3bc608;var _0x622b41;super(_0x164ae6(0x12b)+((_0x622b41=_0x864f9[_0x164ae6(0x337)])==null?void 0x0:_0x622b41['revision'])+'.'),this[_0x164ae6(0x1d3)]=_0x864f9,this[_0x164ae6(0x142)]=_0x164ae6(0x19e);}};let Ue=function(_0x1f7421){const _0xe2492b=_0x3bc608;return _0x1f7421['NOT_COLLAB']=_0xe2492b(0x212),_0x1f7421[_0xe2492b(0x2f4)]=_0xe2492b(0x359),_0x1f7421['PENDING']=_0xe2492b(0x149),_0x1f7421[_0xe2492b(0x449)]='awaiting',_0x1f7421[_0xe2492b(0x2aa)]=_0xe2492b(0x20b),_0x1f7421[_0xe2492b(0x300)]=_0xe2492b(0x241),_0x1f7421['CONFLICT']=_0xe2492b(0x473),_0x1f7421[_0xe2492b(0x25d)]=_0xe2492b(0x290),_0x1f7421;}({});var O=class{constructor(_0x809d0f,_0x4c8192,_0x360e28,_0x6a4914,_0x5d1358,_0x4be876,_0x164efd,_0x4a9c5f,_0x2ae104){const _0x5b7f73=_0x3bc608;this['unitID']=_0x809d0f,this[_0x5b7f73(0x48f)]=_0x4c8192,this[_0x5b7f73(0x3fa)]=_0x5d1358,this[_0x5b7f73(0x2f5)]=_0x4be876,this[_0x5b7f73(0x104)]=_0x164efd,this['_revisionService']=_0x4a9c5f,this['_localCacheService']=_0x2ae104,_(this,'_awaitingChangeset',null),_(this,_0x5b7f73(0x112),[]),this[_0x5b7f73(0x48e)]=_0x360e28,this[_0x5b7f73(0x112)]=_0x6a4914;}[_0x3bc608(0x406)](){const _0x959180=_0x3bc608;return!!this[_0x959180(0x48e)]||this[_0x959180(0x112)][_0x959180(0x16e)]>0x0;}[_0x3bc608(0x3cc)](){}['_unsyncedMutationCount'](){const _0x1a2a70=_0x3bc608;var _0x570c05;return(((_0x570c05=this[_0x1a2a70(0x48e)])==null?void 0x0:_0x570c05['mutations'][_0x1a2a70(0x16e)])??0x0)+this[_0x1a2a70(0x112)][_0x1a2a70(0x16e)];}[_0x3bc608(0x401)](_0x3d7eec){const _0x2d213a=_0x3bc608;return new ne(_0x3d7eec['reqId']??0x0,(_0x2f295b,_0x3a3c9a)=>this[_0x2d213a(0x3fa)][_0x2d213a(0x140)](_0x2f295b,_0x3a3c9a),{...this['_handler'][_0x2d213a(0x177)],'onResend':_0x196e8b=>{const _0x3a3d00=_0x2d213a;var _0x16821c,_0x3e776c;return(_0x16821c=(_0x3e776c=this[_0x3a3d00(0x3fa)])[_0x3a3d00(0x319)])==null?void 0x0:_0x16821c[_0x3a3d00(0x1e2)](_0x3e776c,_0x196e8b);}});}['_classifyRemoteChangeset'](_0x320644){const _0x22c24e=_0x3bc608;if(this['_isEchoedAwaitingChangeset'](_0x320644))return _0x22c24e(0x39d);if(Le(_0x320644,this['unitID']))return'remote_revert';let _0xd372ed=this[_0x22c24e(0x447)]();return _0x320644['revision']<=_0xd372ed?'applied':_0x320644['revision']>_0xd372ed+0x1?'missing':'apply';}[_0x3bc608(0x2d6)](_0x54faa0){const _0x5f50ed=_0x3bc608;let _0x2b7df5=this[_0x5f50ed(0x447)]();return _0x54faa0[_0x5f50ed(0x2f9)]<=_0x2b7df5?this['_isAckOfAwaitingChangeset'](_0x54faa0)?_0x5f50ed(0x276):_0x5f50ed(0x2ef):_0x54faa0[_0x5f50ed(0x2f9)]>_0x2b7df5+0x1?'missing':_0x5f50ed(0x33a);}[_0x3bc608(0x11f)](_0x2736b8,_0x13ea6f){const _0x558e02=_0x3bc608;switch(this['_classifyRemoteChangeset'](_0x2736b8)){case _0x558e02(0x39d):return this[_0x558e02(0x38d)](_0x2736b8);case _0x558e02(0x43a):return _0x13ea6f[_0x558e02(0x28b)](_0x2736b8);case _0x558e02(0x36b):return this;case _0x558e02(0x38e):return this[_0x558e02(0x29a)](_0x2736b8[_0x558e02(0x2f9)]),_0x13ea6f[_0x558e02(0x30e)](_0x2736b8);case _0x558e02(0x3ce):return _0x13ea6f[_0x558e02(0x34f)](_0x2736b8);}}['_remoteRevertInfo'](_0x1db267){const _0x212fd4=_0x3bc608;return{'reason':_0x212fd4(0x43a),'revert':{'revision':Le(_0x1db267,this['unitID'])[_0x212fd4(0x2f9)],'memberId':_0x1db267[_0x212fd4(0x28c)],'userId':_0x1db267[_0x212fd4(0x381)]}};}[_0x3bc608(0x334)](_0x4c255f){const _0x314629=_0x3bc608;return{'reason':_0x4c255f instanceof Ve?'apply_failed':_0x314629(0x2b1),'message':_0x4c255f instanceof Error?_0x4c255f[_0x314629(0x3c4)]:typeof _0x4c255f==_0x314629(0x268)?_0x4c255f:void 0x0};}[_0x3bc608(0x442)](_0x16da09){const _0x4333ca=_0x3bc608;return{'reason':_0x16da09!=null&&_0x16da09[_0x4333ca(0x287)]?_0x4333ca(0x17c):(_0x16da09==null?void 0x0:_0x16da09[_0x4333ca(0x3e2)])===o[_0x4333ca(0x43c)][_0x4333ca(0x418)]?_0x4333ca(0x323):_0x4333ca(0x156),'message':_0x16da09==null?void 0x0:_0x16da09['reason']};}[_0x3bc608(0x225)](_0x173e18){const _0x16f2a0=_0x3bc608;return _0x173e18===o['ErrorCode'][_0x16f2a0(0x2fa)]?_0x16f2a0(0x214):_0x16f2a0(0x24e);}[_0x3bc608(0x29a)](_0x5daeaa){const _0x49c89f=_0x3bc608;this[_0x49c89f(0x3fa)][_0x49c89f(0x357)]({'from':this[_0x49c89f(0x447)](),'to':_0x5daeaa-0x1});}['_transformUndoredo'](_0x4f59fb){const _0x30c7b1=_0x3bc608;this[_0x30c7b1(0x104)][_0x30c7b1(0x1c9)](this['unitID'],_0x4f59fb);}[_0x3bc608(0x27e)](_0x3aa4fd){const _0x715c61=_0x3bc608;var _0xaef70a,_0x12bece;(_0xaef70a=(_0x12bece=this['_handler'])[_0x715c61(0x245)])==null||_0xaef70a[_0x715c61(0x1e2)](_0x12bece,_0x3aa4fd);}[_0x3bc608(0x46c)](_0x265bfe){const _0x23c658=_0x3bc608;var _0x2a7c8f,_0x102fcd;return((_0x2a7c8f=(_0x102fcd=this[_0x23c658(0x3fa)])['onPrepareTransformSelections'])==null?void 0x0:_0x2a7c8f[_0x23c658(0x1e2)](_0x102fcd,_0x265bfe))??null;}[_0x3bc608(0xeb)](_0x4f7ecc){const _0x57346f=_0x3bc608;var _0x20bf70,_0x5eb8b4;return(_0x20bf70=(_0x5eb8b4=this['_handler'])[_0x57346f(0x468)])==null?void 0x0:_0x20bf70[_0x57346f(0x1e2)](_0x5eb8b4,_0x4f7ecc);}[_0x3bc608(0x258)](_0x55416f){const _0x1b4a53=_0x3bc608;var _0x4d519f,_0x4f5acf;return(_0x4d519f=(_0x4f5acf=this[_0x1b4a53(0x3fa)])[_0x1b4a53(0x34c)])==null?void 0x0:_0x4d519f[_0x1b4a53(0x1e2)](_0x4f5acf,_0x55416f);}[_0x3bc608(0x29b)](_0x74fced){const _0x305cdb=_0x3bc608;var _0x3c436e,_0x63d02e;return((_0x3c436e=(_0x63d02e=this[_0x305cdb(0x3fa)])['onTransformRemoteChangesetByIMECache'])==null?void 0x0:_0x3c436e[_0x305cdb(0x1e2)](_0x63d02e,_0x74fced))??_0x74fced;}[_0x3bc608(0x39c)](_0x41fda){const _0x1c718e=_0x3bc608;var _0x1f2206,_0x18bc90;return((_0x1f2206=(_0x18bc90=this[_0x1c718e(0x3fa)])[_0x1c718e(0x2be)])==null?void 0x0:_0x1f2206['call'](_0x18bc90,_0x41fda))??_0x41fda;}[_0x3bc608(0x40e)](_0x37818b){const _0x214643=_0x3bc608;if(this[_0x214643(0x48f)]===r[_0x214643(0x403)][_0x214643(0x2c2)]){let {unitID:_0x574b40,mutations:_0x159767,memberID:_0x7c970c}=_0x37818b,_0x212997=_0x159767[_0x214643(0x16e)]>0x0?_0x159767[0x0][_0x214643(0x41a)][_0x214643(0x344)]:[];if(Array['isArray'](_0x212997)&&_0x212997[_0x214643(0x16e)]>0x0){var _0x4c9817,_0x1df5a5;(_0x4c9817=(_0x1df5a5=this[_0x214643(0x3fa)])[_0x214643(0x1f7)])==null||_0x4c9817[_0x214643(0x1e2)](_0x1df5a5,{'unitID':_0x574b40,'memberID':_0x7c970c,'textRanges':_0x212997});}}}[_0x3bc608(0x1d2)](){const _0x4cdd1b=_0x3bc608;var _0x4b2525;(_0x4b2525=this['_localCacheService'])==null||_0x4b2525['updateOfflineData'](this['unitID'],this[_0x4cdd1b(0x48f)],this[_0x4cdd1b(0x48e)],this[_0x4cdd1b(0x112)]);}[_0x3bc608(0x447)](){const _0x5cb69a=_0x3bc608;return this[_0x5cb69a(0x2d8)]['getCurrentRevOfUnit'](this[_0x5cb69a(0x29f)]);}[_0x3bc608(0x443)](_0x285d2c){const _0x160f39=_0x3bc608;let _0x52a0ef=this[_0x160f39(0x48e)];return!_0x52a0ef||!_0x52a0ef['sid']||_0x52a0ef[_0x160f39(0x198)]===null||_0x52a0ef[_0x160f39(0x198)]===void 0x0?!0x1:_0x285d2c[_0x160f39(0x29f)]===_0x52a0ef[_0x160f39(0x29f)]&&_0x285d2c['sid']===_0x52a0ef[_0x160f39(0xfe)]&&_0x285d2c[_0x160f39(0x198)]===_0x52a0ef[_0x160f39(0x198)];}['_isAckOfAwaitingChangeset'](_0xfc608){const _0x18776c=_0x3bc608;let _0x57ef2d=this['_awaitingChangeset'];return!(_0x57ef2d!=null&&_0x57ef2d[_0x18776c(0xfe)])||_0x57ef2d[_0x18776c(0x198)]==null||!_0xfc608['sid']||_0xfc608[_0x18776c(0x198)]==null?!0x1:_0xfc608[_0x18776c(0xfe)]===_0x57ef2d[_0x18776c(0xfe)]&&_0xfc608['reqId']===_0x57ef2d['reqId'];}[_0x3bc608(0x2e6)](){const _0x52cca4=_0x3bc608;this[_0x52cca4(0x2d8)]['incrementRevOfUnit'](this[_0x52cca4(0x29f)]);}[_0x3bc608(0x155)](_0x8391be){const _0x3cd486=_0x3bc608;let _0x51d123=this['_transformRemoteChangesetByIMECache'](_0x8391be);_0x51d123=this[_0x3cd486(0x39c)](_0x51d123);let _0x4f5317=this[_0x3cd486(0x46c)](_0x51d123),_0x4a27ce=(0x0,r[_0x3cd486(0x37c)])(_0x51d123[_0x3cd486(0x29d)],this['_commandService'],{'fromCollab':!0x0});if(!_0x4a27ce[_0x3cd486(0x179)])throw _0x4f5317==null||_0x4f5317['rollback'](),new Ve(_0x4a27ce[_0x3cd486(0x3a2)]);_0x4f5317==null||_0x4f5317[_0x3cd486(0x416)](),this[_0x3cd486(0xeb)](_0x51d123),this[_0x3cd486(0x258)](_0x51d123),this[_0x3cd486(0xf7)](_0x8391be),this['_transformSelections'](_0x51d123),this[_0x3cd486(0x40e)](_0x51d123),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x3b4ad5,_0x54eb34,_0x366c16,_0x7f8f82,_0xf0e27a,_0x35f2ca,_0x36e7e1,_0x1a6bdb,_0xd098d9,_0x5469ac){const _0x4d8120=_0x3bc608;super(_0x3b4ad5,_0x54eb34,null,[],_0x366c16,_0x36e7e1,_0x35f2ca,_0x7f8f82,_0x5469ac),this['_injector']=_0xf0e27a,this[_0x4d8120(0x2bc)]=_0x1a6bdb,this['_transformService']=_0xd098d9,this['localCacheService']=_0x5469ac,_(this,_0x4d8120(0x1eb),_0x4d8120(0x359));}[_0x3bc608(0x38c)](_0x37d844){const _0x363b00=_0x3bc608;let _0x3951d5=this[_0x363b00(0x1aa)]['createInstance'](A,this[_0x363b00(0x29f)],this['type'],[_0x37d844],this[_0x363b00(0x3fa)]);return _0x3951d5[_0x363b00(0x32e)](),_0x3951d5['_updateLocalCache'](),_0x3951d5;}['onRemoteChangeset'](_0x4a3aab){const _0x381244=_0x3bc608;return this[_0x381244(0x11f)](_0x4a3aab,{'onMissing':()=>this['_injector'][_0x381244(0x169)](F,this[_0x381244(0x29f)],this[_0x381244(0x48f)],null,[],null,[_0x4a3aab],this[_0x381244(0x3fa)],void 0x0),'onApply':()=>this[_0x381244(0x2f2)](_0x4a3aab),'onRemoteRevert':()=>this['_onConflict'](this[_0x381244(0x3c3)](_0x4a3aab))});}['_transformAndApply'](_0x9b13ab){const _0x1b25da=_0x3bc608;try{let _0x1004b8=this[_0x1b25da(0x378)][_0x1b25da(0x464)](_0x9b13ab,[n['EmptyMutationInfo']]);if((0x0,n[_0x1b25da(0x3c5)])(_0x1004b8)){let {c1Prime:_0x503e1b}=_0x1004b8;return this['_executeRemoteChangeset'](_0x503e1b),this;}throw _0x1004b8[_0x1b25da(0x3a2)];}catch(_0x1b5b2f){return this[_0x1b25da(0x2bc)]['error'](_0x1b5b2f),this['_onConflict'](this['_conflictInfoFromError'](_0x1b5b2f));}}[_0x3bc608(0x46f)](_0x11afd9){const _0x2278ac=_0x3bc608;return this[_0x2278ac(0x1aa)]['createInstance'](N,this['unitID'],this[_0x2278ac(0x48f)],null,[],this['_handler'],_0x11afd9);}[_0x3bc608(0x38d)](_0x43e49d){const _0x5aa150=_0x3bc608;if(this[_0x5aa150(0x2d6)](_0x43e49d)===_0x5aa150(0x2ef))return this;throw Error(_0x5aa150(0x2da));}[_0x3bc608(0x2ca)](){const _0xa74a8a=_0x3bc608;throw Error(_0xa74a8a(0x13f));}[_0x3bc608(0x455)](){return this;}[_0x3bc608(0x361)](){const _0x488fe8=_0x3bc608;return this['_injector']['createInstance'](P,this[_0x488fe8(0x29f)],this[_0x488fe8(0x48f)],null,[],this[_0x488fe8(0x3fa)]);}[_0x3bc608(0x1b1)](){return this;}[_0x3bc608(0x426)](){const _0x48d5b4=_0x3bc608;throw Error(_0x48d5b4(0x351));}[_0x3bc608(0x36d)](){const _0x2568b6=_0x3bc608;let _0x4c8a90=this[_0x2568b6(0x2d8)][_0x2568b6(0x1b4)](this[_0x2568b6(0x29f)]);return this['_handler']['onMissingChangesets']({'from':_0x4c8a90,'to':0x0}),this['_injector'][_0x2568b6(0x169)](F,this[_0x2568b6(0x29f)],this['type'],null,[],null,[],this['_handler'],void 0x0);}};k=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(r['Injector'])),y(0x5,r[_0x3bc608(0x41b)]),y(0x6,r['ICommandService']),y(0x7,r[_0x3bc608(0x3ae)]),y(0x8,n[_0x3bc608(0x331)]),y(0x9,(0x0,r['Optional'])(C))],k);let A=Re=class extends O{constructor(_0x3537e6,_0x333bdd,_0x3ecb7,_0x2b68b0,_0x28ad02,_0x17aa4d,_0x3988cc,_0x8563fa,_0x2d2375,_0x491c2d,_0x49ea78,_0x2e8206,_0x41c114,_0x50c7fd){const _0x9f7a46=_0x3bc608;super(_0x3537e6,_0x333bdd,null,_0x3ecb7,_0x2b68b0,_0x2d2375,_0x41c114,_0x17aa4d,_0x50c7fd),this[_0x9f7a46(0x1aa)]=_0x28ad02,this[_0x9f7a46(0x1f6)]=_0x3988cc,this[_0x9f7a46(0x2bc)]=_0x8563fa,this['_configService']=_0x491c2d,this[_0x9f7a46(0x378)]=_0x49ea78,this[_0x9f7a46(0x414)]=_0x2e8206,_(this,'status',_0x9f7a46(0x149)),_(this,_0x9f7a46(0x174),null),_(this,_0x9f7a46(0x1d9),null);}[_0x3bc608(0x38c)](_0x1d97be){const _0x5c221b=_0x3bc608;return this['_pendingMutations'][_0x5c221b(0x13a)](_0x1d97be),this['_updateLocalCache'](),this;}[_0x3bc608(0x424)](_0x43c84e){const _0x5f020b=_0x3bc608;return this['_dispatchRemoteChangeset'](_0x43c84e,{'onMissing':()=>(this[_0x5f020b(0x1a8)](),this[_0x5f020b(0x1aa)][_0x5f020b(0x169)](F,this['unitID'],this[_0x5f020b(0x48f)],null,this['_pendingMutations'],null,[_0x43c84e],this[_0x5f020b(0x3fa)],void 0x0)),'onApply':()=>this['_transformAndApply'](_0x43c84e),'onRemoteRevert':()=>this[_0x5f020b(0x46f)](this[_0x5f020b(0x3c3)](_0x43c84e))});}['_transformAndApply'](_0x1ab6c6){const _0x1c3632=_0x3bc608;try{let _0x3852f5=this['_transformService'][_0x1c3632(0x464)](_0x1ab6c6,this[_0x1c3632(0x112)]);if((0x0,n[_0x1c3632(0x3c5)])(_0x3852f5)){let {c1Prime:_0x2be065,m2Prime:_0xda64d3}=_0x3852f5;this[_0x1c3632(0x155)](_0x2be065);let _0x5b3968=this['_injector']['createInstance'](Re,this[_0x1c3632(0x29f)],this[_0x1c3632(0x48f)],_0xda64d3,this[_0x1c3632(0x3fa)]);_0x5b3968[_0x1c3632(0x1d2)](),this['_clearScheduledTask']();let _0x1f72f2=new Date()[_0x1c3632(0xf0)](),_0x224c99=this[_0x1c3632(0x174)]?Math[_0x1c3632(0x44b)](this[_0x1c3632(0x174)]-_0x1f72f2,0x0):this['_getSendChangesetTimeout']();return _0x5b3968[_0x1c3632(0x32e)](_0x224c99),_0x5b3968;}throw _0x3852f5['error'];}catch(_0x2f5ebd){return this[_0x1c3632(0x2bc)]['error'](_0x2f5ebd),this[_0x1c3632(0x46f)](this[_0x1c3632(0x334)](_0x2f5ebd));}}[_0x3bc608(0x38d)](_0x1afe06){const _0x4a3328=_0x3bc608;if(this['_classifyAck'](_0x1afe06)==='stale')return this;throw Error(_0x4a3328(0x15d));}[_0x3bc608(0x2ca)](){const _0x377348=_0x3bc608;throw Error(_0x377348(0x13d));}['onRemoteRetry'](){return this;}[_0x3bc608(0x361)](){const _0x3b7be2=_0x3bc608;return this[_0x3b7be2(0x1a8)](),this['_injector'][_0x3b7be2(0x169)](P,this[_0x3b7be2(0x29f)],this['type'],null,this[_0x3b7be2(0x112)],this[_0x3b7be2(0x3fa)]);}['toggleOnline'](){return this;}[_0x3bc608(0x32e)](_0x38265d){const _0xe28906=_0x3bc608;let _0x3c55a7=_0x38265d??this[_0xe28906(0x1d7)]();this[_0xe28906(0x174)]=new Date()[_0xe28906(0xf0)]()+_0x3c55a7,this[_0xe28906(0x1d9)]=setTimeout(()=>{const _0x4372ac=_0xe28906;this[_0x4372ac(0x1a8)]();let _0x3f3927=null;switch(this[_0x4372ac(0x48f)]){case r[_0x4372ac(0x403)][_0x4372ac(0xf2)]:_0x3f3927=E(this[_0x4372ac(0x112)],this['unitID'],this[_0x4372ac(0x414)],this['_revisionService'],this['_userManagerService']);break;case r['UniverInstanceType'][_0x4372ac(0x2c2)]:_0x3f3927=this[_0x4372ac(0x112)][_0x4372ac(0x127)](_0x489148=>_0x489148['id']===i[_0x4372ac(0x341)]['id'])?ke(this['_pendingMutations'],this['unitID'],this[_0x4372ac(0x414)],this['_revisionService'],this[_0x4372ac(0x1f6)]):E(this['_pendingMutations'],this[_0x4372ac(0x29f)],this[_0x4372ac(0x414)],this['_revisionService'],this['_userManagerService']);break;case r[_0x4372ac(0x403)][_0x4372ac(0x1ab)]:_0x3f3927=Oe(this['_pendingMutations'],this[_0x4372ac(0x29f)],this['_univerInstanceService'],this[_0x4372ac(0x2d8)],this[_0x4372ac(0x1f6)]);break;case r[_0x4372ac(0x403)][_0x4372ac(0x326)]:_0x3f3927=De(this[_0x4372ac(0x112)],this[_0x4372ac(0x29f)],this[_0x4372ac(0x414)],this[_0x4372ac(0x2d8)],this['_userManagerService']);break;case r['UniverInstanceType'][_0x4372ac(0x398)]:_0x3f3927=E(this['_pendingMutations'],this[_0x4372ac(0x29f)],this['_univerInstanceService'],this[_0x4372ac(0x2d8)],this[_0x4372ac(0x1f6)]);break;case r[_0x4372ac(0x403)]['UNIVER_BASE']:_0x3f3927=E(this[_0x4372ac(0x112)],this[_0x4372ac(0x29f)],this['_univerInstanceService'],this[_0x4372ac(0x2d8)],this[_0x4372ac(0x1f6)]);break;default:throw Error(_0x4372ac(0x26c)+this['type']+_0x4372ac(0x299));}let {changeset:_0x536f70,pendingMutations:_0x3ed720}=_0x3f3927,_0x28f85d=this['_createChangesetSubmitter'](_0x536f70);_0x28f85d['submit'](_0x536f70,_0x536f70['mutations']['length']+_0x3ed720[_0x4372ac(0x16e)]);let _0x1fa3ff=_0x3ed720[_0x4372ac(0x16e)]?this[_0x4372ac(0x1aa)][_0x4372ac(0x169)](M,this['unitID'],this[_0x4372ac(0x48f)],_0x536f70,_0x3ed720,this[_0x4372ac(0x3fa)],_0x28f85d):this['_injector'][_0x4372ac(0x169)](j,this[_0x4372ac(0x29f)],this['type'],_0x536f70,this[_0x4372ac(0x3fa)],_0x28f85d);_0x1fa3ff[_0x4372ac(0x1d2)](),this['_handler'][_0x4372ac(0x2c7)](this,_0x1fa3ff);},_0x3c55a7);}['_getSendChangesetTimeout'](){const _0x3e0c74=_0x3bc608;let _0x16de6e=this['_configService'][_0x3e0c74(0x2de)](m);return(_0x16de6e==null?void 0x0:_0x16de6e[_0x3e0c74(0x27f)])??0x7d0;}['resend'](){throw Error('[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc608(0x1a8)](){const _0xc98a0d=_0x3bc608;this['_sendingTimer']!=null&&(clearTimeout(this['_sendingTimer']),this[_0xc98a0d(0x1d9)]=null);}[_0x3bc608(0x3cc)](){const _0x4243ca=_0x3bc608;this[_0x4243ca(0x1a8)]();}['_onConflict'](_0x208810){const _0x5b25fa=_0x3bc608;return this[_0x5b25fa(0x1a8)](),this['_injector'][_0x5b25fa(0x169)](N,this['unitID'],this[_0x5b25fa(0x48f)],null,this[_0x5b25fa(0x112)],this['_handler'],_0x208810);}};A=Re=b([y(0x4,(0x0,r['Inject'])(r['Injector'])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(r['UserManagerService'])),y(0x7,r[_0x3bc608(0x3ae)]),y(0x8,r[_0x3bc608(0x185)]),y(0x9,r[_0x3bc608(0x190)]),y(0xa,n['ITransformService']),y(0xb,r[_0x3bc608(0x260)]),y(0xc,r[_0x3bc608(0x41b)]),y(0xd,(0x0,r['Optional'])(C))],A);let j=ze=class extends O{constructor(_0x5f44d7,_0x1cf205,_0x3ae6a9,_0x38e783,_0x23859f,_0x3eca51,_0x3ce966,_0x43d17b,_0x1bd9f4,_0x1f24d4,_0x5b93a7,_0x4cb07f){const _0x47319f=_0x3bc608;super(_0x5f44d7,_0x1cf205,_0x3ae6a9,[],_0x38e783,_0x43d17b,_0x5b93a7,_0x3ce966,_0x4cb07f),this[_0x47319f(0x1aa)]=_0x3eca51,this[_0x47319f(0x2bc)]=_0x1bd9f4,this[_0x47319f(0x378)]=_0x1f24d4,_(this,_0x47319f(0x1eb),_0x47319f(0x2ec)),_(this,_0x47319f(0x148),void 0x0),this['_submitter']=_0x23859f??this[_0x47319f(0x401)](_0x3ae6a9),this['_submitter'][_0x47319f(0x25c)](()=>({'changeset':this[_0x47319f(0x48e)],'unsyncedMutationCount':this[_0x47319f(0x298)]()})),_0x23859f||this[_0x47319f(0x148)][_0x47319f(0x412)]();}[_0x3bc608(0x38c)](_0x240534){const _0x28b022=_0x3bc608;this['_detachSubmitter']();let _0x203d9a=this[_0x28b022(0x1aa)][_0x28b022(0x169)](M,this[_0x28b022(0x29f)],this[_0x28b022(0x48f)],this['_awaitingChangeset'],[_0x240534],this[_0x28b022(0x3fa)],this[_0x28b022(0x148)]);return _0x203d9a[_0x28b022(0x1d2)](),_0x203d9a;}['onRemoteChangeset'](_0x30569c){const _0x4bfb90=_0x3bc608;return this['_dispatchRemoteChangeset'](_0x30569c,{'onMissing':()=>(this[_0x4bfb90(0x237)](),this['_injector']['createInstance'](F,this['unitID'],this['type'],this['_awaitingChangeset'],[],null,[_0x30569c],this[_0x4bfb90(0x3fa)],this[_0x4bfb90(0x148)])),'onApply':()=>this[_0x4bfb90(0x2f2)](_0x30569c),'onRemoteRevert':()=>this[_0x4bfb90(0x46f)](this[_0x4bfb90(0x3c3)](_0x30569c))});}[_0x3bc608(0x2f2)](_0x331561){const _0x44a78e=_0x3bc608;try{let _0x1beb4c=this[_0x44a78e(0x378)][_0x44a78e(0x1c4)]([_0x331561],[this[_0x44a78e(0x48e)]],!0x1);if((0x0,n[_0x44a78e(0x38b)])(_0x1beb4c)){let {c1Prime:_0x4436f9,c2Prime:_0x3e6923}=_0x1beb4c;this[_0x44a78e(0x155)](_0x4436f9[0x0]),_0x3e6923[0x0][_0x44a78e(0x32b)]=this[_0x44a78e(0x447)](),this[_0x44a78e(0x237)]();let _0x38cc65=this[_0x44a78e(0x1aa)][_0x44a78e(0x169)](ze,this['unitID'],this['type'],_0x3e6923[0x0],this[_0x44a78e(0x3fa)],this['_submitter']);return _0x38cc65[_0x44a78e(0x1d2)](),_0x38cc65;}throw _0x1beb4c[_0x44a78e(0x3a2)];}catch(_0x222e79){return this['_logService'][_0x44a78e(0x3a2)](_0x222e79),this['_onConflict'](this[_0x44a78e(0x334)](_0x222e79));}}['onRemoteAck'](_0x3cbfd6){const _0x1129c0=_0x3bc608;switch(this[_0x1129c0(0x2d6)](_0x3cbfd6)){case _0x1129c0(0x2ef):return this[_0x1129c0(0x2bc)][_0x1129c0(0x3eb)](_0x1129c0(0x113),'ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x3cbfd6[_0x1129c0(0x2f9)]+'\x20at\x20revision\x20'+this[_0x1129c0(0x447)]()+'.'),this;case _0x1129c0(0x276):return this[_0x1129c0(0x148)][_0x1129c0(0x3cc)](),this[_0x1129c0(0x47c)]();case _0x1129c0(0x38e):return this[_0x1129c0(0x148)][_0x1129c0(0x3cc)](),this[_0x1129c0(0x29a)](_0x3cbfd6['revision']),this['_injector'][_0x1129c0(0x169)](F,this['unitID'],this[_0x1129c0(0x48f)],this[_0x1129c0(0x48e)],[],_0x3cbfd6['revision'],[],this[_0x1129c0(0x3fa)],void 0x0);case _0x1129c0(0x33a):return this[_0x1129c0(0x148)][_0x1129c0(0x3cc)](),this[_0x1129c0(0x2e6)](),this['_toSynced']();}}['_toSynced'](){const _0x4f1fd2=_0x3bc608;let _0x324e1b=this[_0x4f1fd2(0x1aa)][_0x4f1fd2(0x169)](k,this['unitID'],this[_0x4f1fd2(0x48f)],this['_handler']);return _0x324e1b[_0x4f1fd2(0x1d2)](),_0x324e1b;}['onRemoteRej'](_0x4e2ca7){const _0x1e997a=_0x3bc608;return this['_onConflict'](this[_0x1e997a(0x442)](_0x4e2ca7));}[_0x3bc608(0x455)](_0x56977e,_0x50f96b){const _0x33b867=_0x3bc608;var _0x4ac9d3;return _0x56977e[_0x33b867(0x198)]===((_0x4ac9d3=this[_0x33b867(0x48e)])==null?void 0x0:_0x4ac9d3['reqId'])&&this[_0x33b867(0x148)][_0x33b867(0x2a9)](this[_0x33b867(0x225)](_0x50f96b)),this;}[_0x3bc608(0x361)](){const _0x310152=_0x3bc608;return this[_0x310152(0x148)][_0x310152(0x3cc)](),this[_0x310152(0x1aa)][_0x310152(0x169)](P,this[_0x310152(0x29f)],this[_0x310152(0x48f)],this[_0x310152(0x48e)],[],this[_0x310152(0x3fa)]);}[_0x3bc608(0x1b1)](){return this;}['resend'](_0x13a168=_0x3bc608(0x1e3)){const _0x1e02db=_0x3bc608;this['_submitter'][_0x1e02db(0x312)](this[_0x1e02db(0x48e)],this[_0x1e02db(0x298)](),_0x13a168);}[_0x3bc608(0x46f)](_0x22ecb6){const _0x3defd8=_0x3bc608;return this[_0x3defd8(0x148)][_0x3defd8(0x3cc)](),this[_0x3defd8(0x1aa)]['createInstance'](N,this[_0x3defd8(0x29f)],this[_0x3defd8(0x48f)],this[_0x3defd8(0x48e)],[],this['_handler'],_0x22ecb6);}[_0x3bc608(0x3cc)](){const _0x48dfcb=_0x3bc608;this[_0x48dfcb(0x148)][_0x48dfcb(0x3cc)]();}[_0x3bc608(0x237)](){const _0x3cb186=_0x3bc608;this[_0x3cb186(0x148)][_0x3cb186(0x315)]();}};j=ze=b([y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n['RevisionService'])),y(0x7,r[_0x3bc608(0x185)]),y(0x8,r[_0x3bc608(0x3ae)]),y(0x9,n[_0x3bc608(0x331)]),y(0xa,r[_0x3bc608(0x41b)]),y(0xb,(0x0,r[_0x3bc608(0x18d)])(C))],j);function _0x449c(){const _0x117d5c=['collaMsg','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','getSnapshotAPIPath','RECV','295798tFqLPS','_classifyAck','_onJoinRoomEvent','_revisionService','_onConnectionFailed','[SyncedState]:\x20received\x20acknowledgement.','resolveWithBasePath','infoRsp','loadUnitOfRevision','getConfig','AwaitingState','_socket','createIdentifier','unsubscribe','_hasSessionsForEndpoint','connectionAttempt','updatePermissionObjEvent','_incrementRevisionNumber','_sendHeartbeat','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','LocaleService','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','awaiting','getSnapshot','/object','stale','/universer-api/snapshot/','collaboration-client.config','_transformAndApply','shouldCloseConn','SYNCED','_commandService','getTypeOfUnitAdded$','isArray','/allowed','revision','LICENSE_EDITING_CONNECTIONS_EXCEEDED','retryCount','downloadEndpointUrl','m2Prime','_refreshUnitPermission','deleteCollaborator','FETCH_MISS','[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.','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','requireSession','_attempt','resent\x20changeset\x20','INetworkConditionService','unit','getImageSourceCache','retryConnectingTimer','getDeserializedSheetBlock','confirm','delay','message$','onMissing','_tryEnsureSocket','missingChangesets','INSERT','submit','telemetry\x20info\x20is\x20not\x20initialized','waitForRoom$','unbind','_cfgEnableObjInherit','_getDownloadEndpointURL','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','onChangesetResend','POST','objectId','getSheetBlock','_acknowledgeAwaitingIfReady','_rebaseUnchangedAttributes','isFinite','_adapter','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','UniverCollaborationClientPlugin','license_unit_type_rejected','[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!','LIVESHARE_REQUEST_HOST','UNIVER_PDF','/-/object/list','generateRandomId','editing\x20status\x20changed\x20to','LOCAL_CACHE_INTERVAL','baseRev','IPermissionService','Plugin','_schedule','from','request_failed','ITransformService','startTime','_acknowledgedAwaitingRevision','_conflictInfoFromError','isCompositionEnd','CommandType','revert','toLocal','objectActions','next','getGlobalObject','online$','actions','LIVESHARE_NEW_HOST','applyError','sort','RichTextEditingMutation','textEncoder','getTypeOfUnitDisposed$','textRanges','enableOfflineEditing','onStarting','_config','RETRY_CONNECTING_MAX_COUNT_KEY','/universer-api/snapshot','USERS_ENTER','data','onTransformState','_rebaseParagraphHistory','CHANGESET_SHOULD_RETRY','onApply','getCfgEnableObjInherit','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','/collaborator','[FetchMissState]','setWaitCount','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','JOIN_ROOM_FULL','onMissingChangesets','Disposable','synced','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','_transformStack','rev','timeoutTimer','UnitObject','_sessionStatus$','_timer','toggleOffline','CHANGESET_ACK','getUnitId','unitDisposed$','/universer-api/user/session-ticket','fetchMissingChangesets','LICENSE_DOMAIN_REJECTED','toDisposable','\x20failed:\x20','SNAPSHOT_URL_KEY','applied','_onRemoteACK','fetchMiss','sheets','headers','/-/object/-/batch_allowed','_onRemoteRejected','unitLoaded$','_shouldReportTelemetry','_onUserLeave','getWorkbookSelections','accept','focused$','_transformService','enableAuthServer','withCredentials','_toggleOffline','sequenceExecute','_onMessage','LEAVE','ignored\x20stale\x20ack\x20of\x20revision\x20','post','userID','replace','method','reason','deleteProperty','getUnitStatus$','ignored\x20remote\x20changeset\x20of\x20revision\x20','/unit/','_memberService','WorkbookEditablePermission','isTransformChangesetsSuccess','appendMutation','onRemoteAck','missing','_initCloseConn','USERS_LEAVE','_closedUnits','pauseCollaboration','JOIN_ROOM_FAILED','endpointKey','parseProtocolChangeset','uploadFileServerUrl','subject','UNIVER_BOARD','_toggleOnline','getValue','CLOSE_ROOM','_transformRemoteChangesetByStateCache','echo','_disposeSubmitter','authzUrl','_HTTPService','delete','error','[DataLoaderService]','4dKIQHI','UpdateDocsAttributeType','failed\x20to\x20apply\x20missed\x20changesets!','registerDependencies','putCollaborators','UnitEmbedded','CollaborationSession','_getConfig','Slide','loadDoc','ILogService','indexOf','refreshPermission','/rev/','1319549mGkLsN','_socketChannels','_getLoginPath','_waitForHeartbeatResponse','CONFLICT_PROCESSING','_onLocalMutation','_collaborationSessionService','number','?size=','takeUntil','/universer-api/authz','186376mXiMHM','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','onLocalMutation','COMPRESS_MUTATION_APPLY','/universer-api/uniscript','Injector','_remoteRevertInfo','message','isTransformMutationsWithChangesetSuccess','localChanges','_notifyResend','_substituteUndoStack','range','clear','stream','dispose','retry-after','apply','paragraphs','RETRY_CONNECTING_MAX_COUNT','clearUnit','file','href','FETCH_MISSING','_unlockTransition','[UniverCollaborationClientPlugin]','collaboration_new_changeset','interceptor','changesetAckTimeout','readCursor','enableSingleActiveInstanceLock','unitId','version','DisposableCollection','MSG_FOR_ERROR','SessionStatus','NO_OTHER_CLIENTS_EDITING','code','PERSON','session','getAllPermissionPoint','attempt','UPDATE_PERMISSION_OBJ','loadUnit','batchAllowed','_pendingReason','debug','hasOwnProperty','localeService','_onRecvEvent','CompressMutationService','UniverCollaborationPlugin','_listenToNetworkCondition','unitInfo$','2033628pExMxB','HTTPEventType','touchDependencies','setShowComponents','action','hostname','toStringTag','_handler','concatMap','some','_sendToken','packageName','session.room-full','CONFLICT','_createChangesetSubmitter','/universer-api/file/{fileID}/sign-url','UniverInstanceType','len','DependentOn','hasLocalChanges','CollaborationAttachmentIoService','_event$','saveSheetBlock','columnGroups','asObservable','save\x20fail\x20reason\x20is\x20','collabSubmitChangesetUrl','_syncEditingCollabCursor','_maxAckTimeout','collaborators','has','armAckTimeout','univer-pro.collaboration-client.single-active-unit-service','_univerInstanceService','TextXActionType','commit','take','LICENSE_UNIT_TYPE_REJECTED','ICollaborationSocketService','params','IUndoRedoService','_loadSnapshot','transformStack\x20failed!','SheetTransformSelectionsService','Module','_onOffline','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','_changesetReqId','OPTIONAL','onRemoteChangeset','listCollaborators','resend','\x20-\x20','maxAckTimeout','mapDocumentTypeToUniverInstanceType','location','stringify','getActiveSheet','joinEvent','Tools','_clearHeartbeatTimer','_configService','_countResend','UPDATE_CURSOR','_getAPIPrefix','_identity','object','commentUpdate$','1287918dfGkOf','UnitAction','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','remote_revert','startsWith','ErrorCode','splice','_unitLoaded$','filter','_nextDelay','_waitCount','_rejectionInfo','_isEchoedAwaitingChangeset','disableLocalCache','sessionStatus','GLOBAL_ROOMS_CNT_EXCEEDS','_getCurrentRevision','_commentUpdate$','AWAITING','ChangesetSubmitter','max','ImageSourceType','_reqId','LIVESHARE_OPERATION','MUTATION','_deliver','_sheetTransformSelectionsService','_collaborationPaused','utf8ToBytes','HELLO','onRemoteRetry','_tryReconnect','paragraphId','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','text-x','_members$','setCfgEnableObjInherit','close','Quantity','_startCollaboration','\x20to\x20','HEARTBEAT_TIMEOUT','onTransformRemoteChangesetByIMECache','toString','updatePermissionPoint','transformMutationsWithChangeset','b64DecodeUnicode','_socketService','add','onTransformIME','isInternalEditorID','DEFAULT_WS_SESSION_TICKET_URL','getLatestCsReqIdBySid','_prepareTransformSelections','addHandlerCallback','HEARTBEAT_INTERVAL','_onConflict','cfgEnableObjInherit','SOCKET_FAILED_RETRY','UnitStatus','conflict','IAuthzIoService','FAIL','size','_snapshotService','_source','_unitInfo$','[OfflineState]','SUBMIT_CHANGESET','_toSynced','deepClone','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_onLicenseRejected','includes','getCollabEntity','SUCCUSS','keys','setConfig','SheetPermissionInitController','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','liveShareOperation','readAsDataURL','symbol','[CollaborationSessionService]','Failed\x20to\x20update\x20permission\x20point','DEFAULT_FILE_NAME','catch','_awaitingChangeset','type','_getUnitPermissionPoints','compose','constructor','81BtydHp','_singleActiveUnitService','UUID','INGEST','RemoteChangesetApplyError','Error\x20on\x20receiving\x20event','_httpService','COLLABORATION_CHANGESET_TRANSLATION_REQUIRED','snapshotServerUrl','_transformIMECache','_removeRoom','originalMeta','open$','_telemetryInfo','getTime','defineProperty','UNIVER_SHEET','awaitingChangeset','RxDisposable','handshakeTimer','&to=','_transformUndoredo','LocalUndoRedoService','find','AuthzIoHttpService','_replaceFileID','saveChangeset','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','sid','HTTPService','\x20at\x20revision\x20','_commentService','getCollabEntities','forEach','_undoRedoService','candidateSocket','_replayCachedMutations','HEARTBEAT_INTERVAL_KEY','session.room-not-exists','CollaborationEntity','MentionType','MAX_ACK_TIMEOUT','_onFetchMissResult','_stopTelemetryCollaborationNewChangeset','complete','CollaborativeUndoRedoService','maxSize','ERROR_IMAGE_TYPE','_pendingMutations','[AwaitingState]','avatar','error$',',\x20attempt\x20','getFocusedUnit','coverType','get','loadPdf','change$','getPath','_acknowledgeAwaiting','_onCombEvent','_dispatchRemoteChangeset','CollaborationController','backupOfflineData','set','upload','_state$','SOCKET_FAILED','/object/','every','routeKey','isTransformMutationsWithChangesetFailure','_socketMessageSubscription','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!','ILocalCacheService','closeSession','_ackTimeout','socket\x20close','_sessionChannels','Subscription','/block/','OTHER_CLIENTS_EDITING','readyForCollab','Univer','getCollabEntity$','_queuedRemoteChangesets','ISocketService','push','_undoStacks','writeCursor','[PendingState]:\x20received\x20rejection.','_firstSentAt','[SyncedState]:\x20received\x20rejection.','onSendChangeset','_send','name','SlideCollaborationEntity','put','editingUnit','getSheetId','getCurrentUser','_submitter','pending','FetchingMissState','/new_changes','state$','_disposed','UniverNetworkPlugin','_status$','ImageUploadStatusType','_remoteChangesetQueue','_applyRemoteChangeset','send','_transformHistoryMutations','_executeRemoteChangeset','changeset_rejected','_onUserJoin','_classifyRemoteChangeset','_fetchMissChangesets','ws://127.0.0.1:8000/universer-api/comb/connect','DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_onRemoteRetry','[PendingState]:\x20received\x20acknowledgement.','closed','[CollaborationUndoRedoService]','create','_substituteRedoStack','CombCmd','loginUrlKey','prototype','event$','saveImage','changeset','docStateChange$','createInstance','_state','socketReady','_getSocketChannel','UniverLicensePlugin','length','tables','LIVESHARE_FETCH_OPERATIONS','csRejEvent','reject','getInterceptPoints','_scheduleCompleteTimestamp','DRAWING_IMAGE_ALLOW_IMAGE_LIST','_snapshotServerService','resendTimeouts','_throwTelemetryCollaborationNewChangeset','result','_clearTimeoutTimer','ignored\x20acknowledgement\x20of\x20revision\x20','permission_rejected','ConflictState','init','parseChangesetToProtocol','socket$','BoardCollaborationEntity','loadBase','_onConnectionOpen','_getUndoStack','ICommandService','_init','dispose$','/universer-api/oidc/authpage','Rectangle','_authzIoService','stopTime','_decreaseWaiting','Optional','CollaborationSocketService','[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.','IConfigService','_createSocket','retryConnectingInterval','OBJECT_PERMISSION_CONFIG_KEY','_getRedoStack','IAttachmentIoService','iterator','getLocalCacheKey','reqId','getImage','deserializeToCombResponse','HTTPResponseError','url','&assign=','RemoteRevertError','[CollaborationSession]','elapsedMs','slice','getUnitType','Subject','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','_initDependencies','getMemberID','decorate','_clearScheduledTask','_getAPIPrefixPath','_injector','UNIVER_SLIDE','?url=','[AwaitingWithPendingState]','_disableEditing','connection\x20error','_initRequestHeader','toggleOnline','randomBytes','loadOfflineData','getCurrentRevOfUnit','ObjectPermissionService','_clearUndo','serializeCombRequest','unitType','_prepareConflictRecovery','c1Prime','_telemetryService','SheetsSelectionsService','unknown','CollaborationEvent','timeout','_updateUnitPermissionPoint','_clearHandshakeTimer','_resend','ERROR_IMAGE','transformChangesets','getMember','reverse','_changesetSessionId','SHOULD_CLOSE_CONN','transformUndoRedo','ISnapshotServerService','MergeInterceptorFactory','_invertDocumentHistory','{fileID}','_transitionLocked','parse','JSONX','ThresholdInterceptorFactory','_updateLocalCache','info','default','sessionStatus$','pipe','_getSendChangesetTimeout','session.room-permission-denied','_sendingTimer','getRoom','isObject','univer-pro.collaboration-client-socket-service','_registerDependencies','_resolveSessionIdentity','clearOfflineData','_showConflictProcessingNotification','PERMISSION_DENIED','call','reconnect','socketSubscription','eventID','IMentionIOService','_emitMembers','_permissionService','cmd','localCacheService','status','CollaborationSessionService','c2Prime','changesets','liveShareNewHost','NEW_CHANGESETS','oldBody','capture','_toPending','target','[CollaborationEntity]','_userManagerService','onSyncEditingCollabCursor','tableSource','onResend','_entityInit$','updateCollaborator','_updateStatus','_handlerCallback','_collaborationUIEventService','_conflict$','snapshot','_entities','unit-cache-','traverse','getUploadOptions','refreshUnit','listRoles','toRemote','AwaitingWithPendingState','&source=','_pendingSessions','awaiting_with_pending','min','createSocket','_startTelemetryCollaborationNewChangeset','HEARTBEAT_TIMEOUT_KEY','_createHandler','collaboration-client.local-cache-service','not_collab','_lockTransition','license_editing_connections_exceeded','_onRequestFailed','fromCollab','CollaborationImageIoService','COMMENT_UPDATE','subUnitId','ackTimeout','status$','JOIN','findIndex','objectType','FileSource','values','commentUpdateEvent','map','_retryBackoff','collaboratorID','_retryReason','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','charCodeAt','HEARTBEAT','onMutationExecutedForCollab','merge','_getUploadFileURL','_changesetResend$','removeMember','_joinRoom','_change$','getAttachmentUrl','roles','27309NmuGFl','_initMergeInterceptor','Document','firstValueFrom','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','_detachSubmitter','SUBMIT_CHANGESET_TIMEOUT','_localCacheService','updateMember','patch','_transformAndApplyRemoteChangeset','_transit','close$','_upload','endsWith','fetch_missing','_compressMutationService','_rescheduleHeartbeat','requestParams','onTransformSelections','RemoveSlidePageMutation','CollaborationUIEventId','paragraph','BehaviorSubject','_getCtorByUniverInstanceType','Board','disposeWithMe','_sessions','should_retry','DocCollaborationEntity','getUnit','state','createUniverCollaborationAdapter','AddSlidePageMutation','title','registerHTTPInterceptor','_submitChangeset','ICollaborationClientAdapterService','_transformStateCache','then','univer-pro.collaboration-client-adapter-service','PendingState','bind','OFFLINE','csAckEvent','selections','IUniverInstanceService','now','socketService','BASE64','JOINING','function','signUrlServerUrl','_collabSessionService','string','COMPRESS_MUTATION_SEND','responseType','OTHER_CLIENT_EDITING','[PendingState]:\x20unhandled\x20univer\x20type:\x20','resourceIDs','localUnitId','_docStateChangeManagerService','startIndex','floor','4218685aFqgPY','resolveUnit','onlyLocal','src','ack_of_awaiting','sendHeartbeatTimer','_filterTableActions','RevisionService','x-univer-host','online','CONFLICT_CACHE_CLEAR_FAILED','unitId\x20is\x20not\x20found','_transformSelections','sendChangesetTimeout','DocStateChangeManagerService','_clearRetryConnectingTimer','objectID','REPLACE','CollaborationUIEventService','IDLE','transformSelections','isPermissionRej','getOwnPropertyDescriptor','onPrepareTransformSelections','hasWritePending','onRemoteRevert','memberID','diffValue','body','_handleRemoteChangesets','offline','/universer-api/comb','_createInitialState','_loadUnit','_imageSourceCache','endpoint','SnapshotService','JSON1','_unsyncedMutationCount','\x20in\x20_schedule.','_requestMissingChangesets','_transformRemoteChangesetByIMECache','__Key__','mutations','SnapshotServerOverHTTPService','unitID','PdfCollaborationEntity','append','_onRemoteChangeset','_roomMembers','saveAttachment','reduce','allowed','PERMISSION_REJ','Base','requestRetry','AWAITING_WITH_PENDING','_roomCreated$','_getSignURL','subscribe','_now','list','_exhaustRemoteChangesetQueue','transform_failed','roomInfos','fetchThroughInterceptors','origin','_members','collabWebSocketUrl','_updateState','_networkConditionService','_type','csShouldRetryEvent','Inject','_logService','_initUnitPermissionChange','onTransformRemoteChangesetByStateCache','FileId','subType','updateSnapshot','UNIVER_DOC','_instanceService','UNIVER_BASE','TimeoutError','PSEUDO_FETCH_MISSING_RESULT','onStateChange','_dropAcknowledgedAwaiting','CmdRspCode','onRemoteRej','onConflict','MoveSlidePageMutation','_eventService','CHANGESET_REJ','_localeService','emitEvent'];_0x449c=function(){return _0x117d5c;};return _0x449c();}let M=Be=class extends O{constructor(_0x1f3ca1,_0x199e1f,_0x4ba5f8,_0x501c7b,_0x35634,_0x2d714d,_0x416f0d,_0x5f413f,_0xed259d,_0x2ba730,_0x4b2dc6,_0x4baa4a,_0x4aee96){const _0x41bf48=_0x3bc608;super(_0x1f3ca1,_0x199e1f,_0x4ba5f8,_0x501c7b,_0x35634,_0xed259d,_0x4baa4a,_0x5f413f,_0x4aee96),this[_0x41bf48(0x1aa)]=_0x416f0d,this['_logService']=_0x2ba730,this[_0x41bf48(0x378)]=_0x4b2dc6,this[_0x41bf48(0x1ea)]=_0x4aee96,_(this,_0x41bf48(0x1eb),'awaiting_with_pending'),_(this,'_submitter',void 0x0),this[_0x41bf48(0x148)]=_0x2d714d??this[_0x41bf48(0x401)](_0x4ba5f8),this[_0x41bf48(0x148)]['bind'](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this[_0x41bf48(0x298)]()})),_0x2d714d||this['_submitter'][_0x41bf48(0x412)]();}[_0x3bc608(0x38c)](_0x2a3634){const _0x345f83=_0x3bc608;return this[_0x345f83(0x112)]['push'](_0x2a3634),this['_updateLocalCache'](),this;}['onRemoteChangeset'](_0x52f2c6){const _0x4f6ac7=_0x3bc608;return this[_0x4f6ac7(0x11f)](_0x52f2c6,{'onMissing':()=>(this[_0x4f6ac7(0x237)](),this[_0x4f6ac7(0x1aa)][_0x4f6ac7(0x169)](F,this[_0x4f6ac7(0x29f)],this[_0x4f6ac7(0x48f)],this[_0x4f6ac7(0x48e)],this['_pendingMutations'],null,[_0x52f2c6],this[_0x4f6ac7(0x3fa)],this[_0x4f6ac7(0x148)])),'onApply':()=>this[_0x4f6ac7(0x2f2)](_0x52f2c6),'onRemoteRevert':()=>this['_onConflict'](this[_0x4f6ac7(0x3c3)](_0x52f2c6))});}[_0x3bc608(0x2f2)](_0x448d7f){const _0x338bb5=_0x3bc608;try{let _0x578b96=this['_transformService']['transformChangesets']([_0x448d7f],[this['_awaitingChangeset']],!0x1);if((0x0,n[_0x338bb5(0x38b)])(_0x578b96)){let {c1Prime:_0x4345a5,c2Prime:_0x2631d3}=_0x578b96,_0x4b48da=this[_0x338bb5(0x378)]['transformMutationsWithChangeset'](_0x4345a5[0x0],this[_0x338bb5(0x112)]);if((0x0,n[_0x338bb5(0x3c5)])(_0x4b48da)){let {c1Prime:_0xf4e19c,m2Prime:_0x7bc176}=_0x4b48da;this['_executeRemoteChangeset'](_0xf4e19c),_0x2631d3[0x0][_0x338bb5(0x32b)]=this[_0x338bb5(0x447)](),this[_0x338bb5(0x237)]();let _0x24a28f=this[_0x338bb5(0x1aa)]['createInstance'](Be,this[_0x338bb5(0x29f)],this[_0x338bb5(0x48f)],_0x2631d3[0x0],_0x7bc176,this[_0x338bb5(0x3fa)],this['_submitter']);return _0x24a28f[_0x338bb5(0x1d2)](),_0x24a28f;}throw _0x4b48da[_0x338bb5(0x3a2)];}throw _0x578b96[_0x338bb5(0x3a2)];}catch(_0x4dceb7){return this[_0x338bb5(0x2bc)][_0x338bb5(0x3a2)](_0x4dceb7),this['_onConflict'](this[_0x338bb5(0x334)](_0x4dceb7));}}['onRemoteAck'](_0x2f9114){const _0x8a31cb=_0x3bc608;switch(this[_0x8a31cb(0x2d6)](_0x2f9114)){case _0x8a31cb(0x2ef):return this[_0x8a31cb(0x2bc)][_0x8a31cb(0x3eb)](_0x8a31cb(0x1ad),_0x8a31cb(0x37f)+_0x2f9114[_0x8a31cb(0x2f9)]+_0x8a31cb(0x100)+this['_getCurrentRevision']()+'.'),this;case _0x8a31cb(0x276):return this[_0x8a31cb(0x148)]['dispose'](),this[_0x8a31cb(0x1f3)]();case _0x8a31cb(0x38e):return this[_0x8a31cb(0x148)][_0x8a31cb(0x3cc)](),this[_0x8a31cb(0x29a)](_0x2f9114[_0x8a31cb(0x2f9)]),this[_0x8a31cb(0x1aa)][_0x8a31cb(0x169)](F,this['unitID'],this[_0x8a31cb(0x48f)],this['_awaitingChangeset'],this[_0x8a31cb(0x112)],_0x2f9114[_0x8a31cb(0x2f9)],[],this[_0x8a31cb(0x3fa)],void 0x0);case _0x8a31cb(0x33a):return this[_0x8a31cb(0x148)][_0x8a31cb(0x3cc)](),this[_0x8a31cb(0x2e6)](),this[_0x8a31cb(0x1f3)]();}}[_0x3bc608(0x1f3)](){const _0x8b95d9=_0x3bc608;let _0x1ae84f=this[_0x8b95d9(0x1aa)][_0x8b95d9(0x169)](A,this[_0x8b95d9(0x29f)],this['type'],this[_0x8b95d9(0x112)],this[_0x8b95d9(0x3fa)]);return _0x1ae84f[_0x8b95d9(0x32e)](),_0x1ae84f[_0x8b95d9(0x1d2)](),_0x1ae84f;}[_0x3bc608(0x2ca)](_0x4ecc68){const _0xabf641=_0x3bc608;return this[_0xabf641(0x46f)](this[_0xabf641(0x442)](_0x4ecc68));}['onRemoteRetry'](_0x403ed1,_0xb9c1e8){const _0x4a9da1=_0x3bc608;var _0x1a0996;return _0x403ed1['reqId']===((_0x1a0996=this[_0x4a9da1(0x48e)])==null?void 0x0:_0x1a0996['reqId'])&&this[_0x4a9da1(0x148)]['requestRetry'](this[_0x4a9da1(0x225)](_0xb9c1e8)),this;}[_0x3bc608(0x361)](){const _0x3d50f4=_0x3bc608;return this[_0x3d50f4(0x148)][_0x3d50f4(0x3cc)](),this[_0x3d50f4(0x1aa)][_0x3d50f4(0x169)](P,this[_0x3d50f4(0x29f)],this[_0x3d50f4(0x48f)],this[_0x3d50f4(0x48e)],this[_0x3d50f4(0x112)],this[_0x3d50f4(0x3fa)]);}['toggleOnline'](){return this;}[_0x3bc608(0x426)](_0x3f98c1=_0x3bc608(0x1e3)){const _0x5842ef=_0x3bc608;this[_0x5842ef(0x148)][_0x5842ef(0x312)](this[_0x5842ef(0x48e)],this[_0x5842ef(0x298)](),_0x3f98c1);}[_0x3bc608(0x46f)](_0x15bcad){const _0x24f4ae=_0x3bc608;return this[_0x24f4ae(0x148)][_0x24f4ae(0x3cc)](),this[_0x24f4ae(0x1aa)]['createInstance'](N,this[_0x24f4ae(0x29f)],this['type'],this[_0x24f4ae(0x48e)],this[_0x24f4ae(0x112)],this[_0x24f4ae(0x3fa)],_0x15bcad);}[_0x3bc608(0x3cc)](){const _0x75afde=_0x3bc608;this[_0x75afde(0x148)]['dispose']();}['_detachSubmitter'](){const _0x1c3e91=_0x3bc608;this[_0x1c3e91(0x148)]['unbind']();}};function _0xa8b9(_0x1496fa,_0x1e5f0e){_0x1496fa=_0x1496fa-0xe9;const _0x449cda=_0x449c();let _0xa8b931=_0x449cda[_0x1496fa];return _0xa8b931;}M=Be=b([y(0x6,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x8,r[_0x3bc608(0x185)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,n[_0x3bc608(0x331)]),y(0xb,r[_0x3bc608(0x41b)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(C))],M);let N=class extends O{constructor(_0x3ba72f,_0x271897,_0x32e34a,_0x5917ef,_0x5105e1,_0x53b179,_0x423fd7,_0x408f1d,_0xf763db,_0x52b5f4,_0x2b4a3a,_0x29c3b5,_0x306d4d,_0x5b2fa3){const _0x4866bc=_0x3bc608;var _0x593ab4;super(_0x3ba72f,_0x271897,_0x32e34a,_0x5917ef,_0x5105e1,_0x408f1d,_0xf763db,_0x52b5f4,_0x5b2fa3),this[_0x4866bc(0x1d3)]=_0x53b179,this[_0x4866bc(0x1e8)]=_0x423fd7,this[_0x4866bc(0x1f6)]=_0x2b4a3a,this[_0x4866bc(0x2bc)]=_0x29c3b5,this[_0x4866bc(0x1fe)]=_0x306d4d,this['localCacheService']=_0x5b2fa3,_(this,_0x4866bc(0x1eb),'conflict'),_(this,_0x4866bc(0x3c6),void 0x0);let _0x3de485=((_0x593ab4=this['_userManagerService'][_0x4866bc(0x147)]())==null?void 0x0:_0x593ab4[_0x4866bc(0x381)])??'';this['localChanges']=_0x32e34a||_0x5917ef[_0x4866bc(0x16e)]?{'unitID':_0x3ba72f,'userId':_0x3de485||void 0x0,'type':_0x271897,'rev':this[_0x4866bc(0x447)](),'awaitingChangeset':_0x32e34a,'mutations':_0x5917ef}:null,this[_0x4866bc(0x1ae)](),this[_0x4866bc(0x1e0)](),this[_0x4866bc(0x1b9)](_0x3de485)['catch'](_0x4cb9b8=>this[_0x4866bc(0x2bc)][_0x4866bc(0x3a2)](_0x4cb9b8));}async[_0x3bc608(0x1b9)](_0x300679){const _0x113326=_0x3bc608;var _0x807c80,_0x1e4112,_0x49952e,_0x3783d6;await((_0x807c80=this[_0x113326(0x239)])==null||(_0x1e4112=_0x807c80[_0x113326(0x121)])==null?void 0x0:_0x1e4112[_0x113326(0x1e2)](_0x807c80,this[_0x113326(0x29f)],this[_0x113326(0x1d3)]['reason'],_0x300679)[_0x113326(0x48d)](()=>void 0x0));let _0x2df621=!0x0;try{var _0x39495a;await((_0x39495a=this['_localCacheService'])==null?void 0x0:_0x39495a[_0x113326(0x1df)](this[_0x113326(0x29f)],_0x300679));}catch{_0x2df621=!0x1,this[_0x113326(0x1fe)]['emitEvent']({'id':'CONFLICT_CACHE_CLEAR_FAILED','unitID':this[_0x113326(0x29f)],'userId':_0x300679});}(_0x49952e=(_0x3783d6=this[_0x113326(0x3fa)])[_0x113326(0x2cb)])==null||_0x49952e['call'](_0x3783d6,this[_0x113326(0x1d3)],this[_0x113326(0x3c6)],_0x2df621);}[_0x3bc608(0x38c)](){return this;}[_0x3bc608(0x424)](){return this;}[_0x3bc608(0x38d)](){return this;}[_0x3bc608(0x2ca)](){return this;}[_0x3bc608(0x455)](){return this;}[_0x3bc608(0x361)](){return this;}[_0x3bc608(0x1b1)](){return this;}[_0x3bc608(0x426)](){const _0xa64bc4=_0x3bc608;throw Error(_0xa64bc4(0x18f));}[_0x3bc608(0x1e0)](){const _0x5501b2=_0x3bc608;this[_0x5501b2(0x1fe)][_0x5501b2(0x2d0)]({'id':_0x5501b2(0x3b6),'unitID':this[_0x5501b2(0x29f)]});}[_0x3bc608(0x1ae)](){const _0x149fd4=_0x3bc608;this[_0x149fd4(0x1e8)][_0x149fd4(0x463)](new a[(_0x149fd4(0x38a))](this['unitID'])['id'],!0x1);}};N=b([y(0x6,(0x0,r['Inject'])(r[_0x3bc608(0x32c)])),y(0x7,r[_0x3bc608(0x185)]),y(0x8,r[_0x3bc608(0x41b)]),y(0x9,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0xa,(0x0,r[_0x3bc608(0x2bb)])(r['UserManagerService'])),y(0xb,r[_0x3bc608(0x3ae)]),y(0xc,(0x0,r['Inject'])(v)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],N);let P=class extends O{constructor(_0x161ab3,_0x5a72d9,_0x26b7db,_0x2ecdcd,_0x759935,_0x1c31ec,_0xe193ed,_0x5acfe6,_0x1b1cf2,_0x3a1e65,_0x12be56){const _0x52039c=_0x3bc608;super(_0x161ab3,_0x5a72d9,_0x26b7db,_0x2ecdcd,_0x759935,_0x5acfe6,_0x1b1cf2,_0xe193ed,_0x12be56),this[_0x52039c(0x1aa)]=_0x1c31ec,this[_0x52039c(0x2bc)]=_0x3a1e65,_(this,_0x52039c(0x1eb),_0x52039c(0x290));}[_0x3bc608(0x38c)](_0x1f3111){const _0x28e97e=_0x3bc608;return this[_0x28e97e(0x112)]['push'](_0x1f3111),this[_0x28e97e(0x1d2)](),this;}[_0x3bc608(0x424)](_0x5f0e87){const _0x503856=_0x3bc608;return this[_0x503856(0x2bc)]['debug'](_0x503856(0x47a),_0x503856(0x387)+_0x5f0e87['revision']+'.'),this;}[_0x3bc608(0x38d)](_0x3e5b5e){const _0x59b533=_0x3bc608;return this['_logService'][_0x59b533(0x3eb)](_0x59b533(0x47a),_0x59b533(0x17b)+_0x3e5b5e['revision']+'.'),this;}[_0x3bc608(0x2ca)](){const _0x3a9608=_0x3bc608;return this[_0x3a9608(0x2bc)][_0x3a9608(0x3eb)](_0x3a9608(0x47a),'ignored\x20rejection.'),this;}[_0x3bc608(0x455)](){return this;}[_0x3bc608(0x361)](){return this;}[_0x3bc608(0x1b1)](){const _0x46df83=_0x3bc608;let {_injector:_0x5c312b,_pendingMutations:_0x1e7810,_awaitingChangeset:_0x2dcead,unitID:_0x382580,_handler:_0x5adb51,type:_0x57e75b}=this,_0x438c42=We(_0x5c312b,_0x382580,_0x57e75b,_0x2dcead,_0x1e7810,_0x5adb51);return _0x438c42 instanceof A?_0x438c42['_schedule']():(_0x438c42 instanceof M||_0x438c42 instanceof j)&&_0x438c42[_0x46df83(0x426)](),_0x438c42;}['resend'](){const _0x51091f=_0x3bc608;throw Error(_0x51091f(0x1a4));}};P=b([y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r['Injector'])),y(0x6,(0x0,r['Inject'])(n['RevisionService'])),y(0x7,r[_0x3bc608(0x185)]),y(0x8,r[_0x3bc608(0x41b)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,(0x0,r['Optional'])(C))],P);let F=class extends O{constructor(_0x3be3ac,_0x4af8fa,_0x39b94b,_0x49c72a,_0x4b3e36,_0x4c2fa7,_0x113553,_0x6f6a86,_0x19625e,_0x50b5c3,_0x249eb9,_0x2d49c7,_0x2e8fd8,_0x2376e8,_0x283e50){const _0x427a5f=_0x3bc608;super(_0x3be3ac,_0x4af8fa,_0x39b94b,_0x49c72a,_0x113553,_0x2d49c7,_0x2e8fd8,_0x50b5c3,_0x283e50),this[_0x427a5f(0x333)]=_0x4b3e36,this['_queuedRemoteChangesets']=_0x4c2fa7,this['_submitter']=_0x6f6a86,this['_injector']=_0x19625e,this[_0x427a5f(0x2bc)]=_0x249eb9,this[_0x427a5f(0x378)]=_0x2376e8,this[_0x427a5f(0x1ea)]=_0x283e50,_(this,_0x427a5f(0x1eb),_0x427a5f(0x241));}['onMissedChangesetFetched'](_0x4ee265){const _0xf28aa4=_0x3bc608;try{if(this[_0xf28aa4(0x28f)](_0x4ee265)[_0xf28aa4(0x310)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0xf28aa4(0x28f)]([...this[_0xf28aa4(0x138)]][_0xf28aa4(0x340)]((_0x4cdb98,_0x43d685)=>_0x4cdb98[_0xf28aa4(0x2f9)]-_0x43d685['revision']))[_0xf28aa4(0x310)])return this['_queuedRemoteChangesets']=[],this[_0xf28aa4(0x1d2)](),this[_0xf28aa4(0x3fa)][_0xf28aa4(0x357)]({'from':this[_0xf28aa4(0x447)](),'to':0x0}),this;let _0x289a13=this[_0xf28aa4(0x48e)],_0x3063f4=this[_0xf28aa4(0x112)],_0x457a40;if(_0x289a13&&_0x3063f4[_0xf28aa4(0x16e)]!==0x0)_0x457a40=this[_0xf28aa4(0x1aa)][_0xf28aa4(0x169)](M,this['unitID'],this[_0xf28aa4(0x48f)],_0x289a13,_0x3063f4,this[_0xf28aa4(0x3fa)],this[_0xf28aa4(0x148)]);else{if(_0x289a13&&_0x3063f4[_0xf28aa4(0x16e)]===0x0)_0x289a13[_0xf28aa4(0x32b)]=this[_0xf28aa4(0x447)](),_0x457a40=this[_0xf28aa4(0x1aa)][_0xf28aa4(0x169)](j,this['unitID'],this[_0xf28aa4(0x48f)],_0x289a13,this[_0xf28aa4(0x3fa)],this['_submitter']);else{if(_0x3063f4[_0xf28aa4(0x16e)]!==0x0){let _0xca1673=this[_0xf28aa4(0x1aa)]['createInstance'](A,this[_0xf28aa4(0x29f)],this[_0xf28aa4(0x48f)],_0x3063f4,this[_0xf28aa4(0x3fa)]);_0xca1673[_0xf28aa4(0x32e)](),_0x457a40=_0xca1673;}else _0x457a40=this[_0xf28aa4(0x1aa)][_0xf28aa4(0x169)](k,this[_0xf28aa4(0x29f)],this['type'],this[_0xf28aa4(0x3fa)]);}}return _0x457a40[_0xf28aa4(0x1d2)](),_0x457a40;}catch(_0x33b35c){return _0x33b35c instanceof He?(this['_logService']['debug']('[FetchMissState]',_0x33b35c[_0xf28aa4(0x3c4)]),this['_onConflict'](_0x33b35c['info'])):(this[_0xf28aa4(0x2bc)]['error'](_0xf28aa4(0x353),_0xf28aa4(0x3a6),_0x33b35c),this[_0xf28aa4(0x46f)](this[_0xf28aa4(0x334)](_0x33b35c)));}}[_0x3bc608(0x28f)](_0xcfa999){const _0x220df4=_0x3bc608;this[_0x220df4(0x31d)]();for(let _0x58c5ed=0x0;_0x58c5ed<_0xcfa999[_0x220df4(0x16e)];_0x58c5ed++){let _0x83c1ac=_0xcfa999[_0x58c5ed];switch(this[_0x220df4(0x158)](_0x83c1ac)){case _0x220df4(0x39d):{let _0x2fe680=this['_getCurrentRevision']();if(_0x83c1ac[_0x220df4(0x2f9)]>_0x2fe680+0x1)return{'missingChangesets':!0x0};_0x83c1ac['revision']<=_0x2fe680?this['_dropAcknowledgedAwaiting']():this['_acknowledgeAwaiting']();break;}case'remote_revert':throw new He(this[_0x220df4(0x3c3)](_0x83c1ac));case _0x220df4(0x36b):break;case'missing':return{'missingChangesets':!0x0};case _0x220df4(0x3ce):this[_0x220df4(0x23c)](_0x83c1ac),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x3bc608(0x23c)](_0x17ce3c){const _0x343b90=_0x3bc608;let _0x1a0988=_0x17ce3c,_0x5c9e03=this[_0x343b90(0x48e)];if(_0x5c9e03){let _0x57d90a=this[_0x343b90(0x378)][_0x343b90(0x1c4)]([_0x17ce3c],[_0x5c9e03],!0x1);if(!(0x0,n[_0x343b90(0x38b)])(_0x57d90a))throw _0x57d90a[_0x343b90(0x3a2)];_0x1a0988=_0x57d90a['c1Prime'][0x0],_0x5c9e03=_0x57d90a[_0x343b90(0x1ed)][0x0];}let _0x972e08=this['_pendingMutations'];if(_0x972e08[_0x343b90(0x16e)]){let _0x15f587=this[_0x343b90(0x378)][_0x343b90(0x464)](_0x1a0988,_0x972e08);if(!(0x0,n[_0x343b90(0x3c5)])(_0x15f587))throw _0x15f587['error'];_0x1a0988=_0x15f587[_0x343b90(0x1ba)],_0x972e08=_0x15f587[_0x343b90(0x2fd)];}this[_0x343b90(0x155)](_0x1a0988),_0x5c9e03&&(_0x5c9e03['baseRev']=this[_0x343b90(0x447)]()),this[_0x343b90(0x48e)]=_0x5c9e03,this['_pendingMutations']=_0x972e08;}[_0x3bc608(0x31d)](){const _0x4665f2=_0x3bc608;if(!this['_awaitingChangeset']||this['_acknowledgedAwaitingRevision']==null)return;let _0x59109b=this[_0x4665f2(0x447)]();if(this[_0x4665f2(0x333)]<=_0x59109b)throw Error(_0x4665f2(0x35a)+this[_0x4665f2(0x333)]+'.');this['_acknowledgedAwaitingRevision']===_0x59109b+0x1&&this[_0x4665f2(0x11d)]();}[_0x3bc608(0x11d)](){const _0x58faec=_0x3bc608;this['_incrementRevisionNumber'](),this[_0x58faec(0x2c8)]();}[_0x3bc608(0x2c8)](){const _0x363982=_0x3bc608;this[_0x363982(0x48e)]=null,this[_0x363982(0x333)]=null,this[_0x363982(0x39e)]();}[_0x3bc608(0x39e)](){const _0x13a01d=_0x3bc608;var _0x511c88;(_0x511c88=this['_submitter'])==null||_0x511c88[_0x13a01d(0x3cc)](),this[_0x13a01d(0x148)]=void 0x0;}[_0x3bc608(0x3cc)](){const _0x7ff1f2=_0x3bc608;this[_0x7ff1f2(0x39e)]();}['resend'](){throw Error('[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x3bc608(0x38c)](_0x8fcd10){const _0x3a140c=_0x3bc608;return this['_pendingMutations']['push'](_0x8fcd10),this[_0x3a140c(0x1d2)](),this;}[_0x3bc608(0x424)](_0x35e7ac){const _0x5be4dd=_0x3bc608;return this['_queuedRemoteChangesets'][_0x5be4dd(0x13a)](_0x35e7ac),this;}['onRemoteAck'](_0x526ca6){const _0x399732=_0x3bc608;let _0x161e7b=this[_0x399732(0x2d6)](_0x526ca6);if(this[_0x399732(0x48e)]){switch(_0x161e7b){case _0x399732(0x276):this[_0x399732(0x2c8)]();break;case _0x399732(0x2ef):break;case _0x399732(0x33a):this[_0x399732(0x11d)]();break;case'missing':this[_0x399732(0x333)]=_0x526ca6[_0x399732(0x2f9)],this['_disposeSubmitter']();}return this;}if(_0x161e7b===_0x399732(0x2ef))return this;throw Error(_0x399732(0x2eb));}[_0x3bc608(0x2ca)](_0x4bbbd7){const _0x56f31d=_0x3bc608;return this[_0x56f31d(0x46f)](this['_rejectionInfo'](_0x4bbbd7));}[_0x3bc608(0x455)](_0x3510a2,_0x4b1c4a){const _0xc07497=_0x3bc608;var _0x22fdab;return this[_0xc07497(0x333)]!=null||_0x3510a2[_0xc07497(0x198)]!==((_0x22fdab=this[_0xc07497(0x48e)])==null?void 0x0:_0x22fdab['reqId'])||(this[_0xc07497(0x148)]??=this[_0xc07497(0x401)](this['_awaitingChangeset']),this[_0xc07497(0x148)]['requestRetry'](this[_0xc07497(0x225)](_0x4b1c4a))),this;}['toggleOffline'](){const _0x307aa0=_0x3bc608;return this[_0x307aa0(0x39e)](),this[_0x307aa0(0x1aa)][_0x307aa0(0x169)](P,this[_0x307aa0(0x29f)],this[_0x307aa0(0x48f)],this[_0x307aa0(0x48e)],this[_0x307aa0(0x112)],this[_0x307aa0(0x3fa)]);}[_0x3bc608(0x1b1)](){return this;}[_0x3bc608(0x46f)](_0x5ea9a6){const _0x14aa1b=_0x3bc608;return this[_0x14aa1b(0x39e)](),this['_injector'][_0x14aa1b(0x169)](N,this[_0x14aa1b(0x29f)],this[_0x14aa1b(0x48f)],this[_0x14aa1b(0x48e)],this['_pendingMutations'],this[_0x14aa1b(0x3fa)],_0x5ea9a6);}};F=b([y(0x8,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x9,(0x0,r[_0x3bc608(0x2bb)])(n['RevisionService'])),y(0xa,r['ILogService']),y(0xb,r['ICommandService']),y(0xc,r[_0x3bc608(0x41b)]),y(0xd,n[_0x3bc608(0x331)]),y(0xe,(0x0,r[_0x3bc608(0x18d)])(C))],F);function We(_0x6bf7a,_0x47130d,_0x138852,_0x147810,_0x509a6b,_0x559200){const _0x281a4e=_0x3bc608;return _0x147810&&_0x509a6b['length']?_0x6bf7a[_0x281a4e(0x169)](M,_0x47130d,_0x138852,_0x147810,_0x509a6b,_0x559200,void 0x0):_0x147810?_0x6bf7a['createInstance'](j,_0x47130d,_0x138852,_0x147810,_0x559200,void 0x0):_0x509a6b[_0x281a4e(0x16e)]?_0x6bf7a['createInstance'](A,_0x47130d,_0x138852,_0x509a6b,_0x559200):_0x6bf7a['createInstance'](k,_0x47130d,_0x138852,_0x559200);}let I=class extends r[_0x3bc608(0xf4)]{get['state'](){const _0x495e60=_0x3bc608;return this[_0x495e60(0x16a)];}constructor(_0x4868c0,_0x8e2062,_0x58d9b3,_0x327309,_0xcb6d63,_0x2f474d,_0x41bce3,_0x4ee173,_0x128584,_0x18b2ca,_0x2804e0,_0xf19cea,_0x4db606,_0x357143){const _0x152308=_0x3bc608;super(),this[_0x152308(0x29f)]=_0x4868c0,this['session']=_0x8e2062,this[_0x152308(0x2b9)]=_0x58d9b3,this['_injector']=_0x327309,this[_0x152308(0x242)]=_0xcb6d63,this[_0x152308(0x2cf)]=_0x2f474d,this[_0x152308(0x2d8)]=_0x41bce3,this[_0x152308(0x2cd)]=_0x4ee173,this[_0x152308(0x414)]=_0x128584,this[_0x152308(0x2bc)]=_0x18b2ca,this[_0x152308(0x2f5)]=_0x2804e0,this['_permissionService']=_0xf19cea,this['_singleActiveUnitService']=_0x4db606,this['_localCacheService']=_0x357143,_(this,_0x152308(0x124),new t[(_0x152308(0x249))](null)),_(this,'state$',this[_0x152308(0x124)]['asObservable']()),_(this,_0x152308(0x16a),void 0x0),_(this,_0x152308(0x452),!0x1),_(this,_0x152308(0x1c7),''),_(this,_0x152308(0x422),0x0),_(this,_0x152308(0x21b),this[_0x152308(0x14c)][_0x152308(0x1d6)]((0x0,t[_0x152308(0x222)])(_0x1f2c95=>_0x1f2c95?_0x1f2c95['status']:_0x152308(0x290)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x152308(0x22c),new t[(_0x152308(0x1a3))]()),_(this,'changesetResend$',this['_changesetResend$']['asObservable']()),_(this,'_conflict$',new t[(_0x152308(0x1a3))]()),_(this,'conflict$',this[_0x152308(0x1ff)]['asObservable']()),_(this,_0x152308(0x1ce),!0x1),_(this,_0x152308(0x151),[]);}async[_0x3bc608(0x17e)](){const _0x43c8fb=_0x3bc608;if(this[_0x43c8fb(0x251)])throw Error(_0x43c8fb(0x3be));await this[_0x43c8fb(0x186)]();}[_0x3bc608(0x392)](){const _0x1cc091=_0x3bc608;return this['_collaborationPaused']=!0x0,(0x0,r[_0x1cc091(0x368)])(()=>{const _0x38b78d=_0x1cc091;this[_0x38b78d(0x452)]=!0x1,this[_0x38b78d(0x2b0)]();});}[_0x3bc608(0x3bf)](_0x7b384a){const _0x3410f1=_0x3bc608;this[_0x3410f1(0x3b7)](_0x7b384a);}[_0x3bc608(0x28a)](){var _0xccecf7;return((_0xccecf7=this['_state'])==null?void 0x0:_0xccecf7['hasLocalChanges']())??!0x1;}['dispose'](){const _0x56329f=_0x3bc608;var _0x2b463d;super['dispose'](),(_0x2b463d=this[_0x56329f(0x16a)])==null||_0x2b463d[_0x56329f(0x3cc)](),this[_0x56329f(0x22c)][_0x56329f(0x10e)](),this[_0x56329f(0x1ff)]['complete']();}['_updateState'](_0x4db9d5){const _0x17947d=_0x3bc608;this[_0x17947d(0x16a)]=_0x4db9d5,this[_0x17947d(0x124)][_0x17947d(0x33a)](_0x4db9d5);}async[_0x3bc608(0x186)](){const _0x4deea6=_0x3bc608;if(this[_0x4deea6(0x2b7)](await this[_0x4deea6(0x292)]()),this['_singleActiveUnitService']){var _0x46e22a;(_0x46e22a=this[_0x4deea6(0x494)])==null||_0x46e22a[_0x4deea6(0x145)](this[_0x4deea6(0x29f)]),this[_0x4deea6(0x24c)](this[_0x4deea6(0x494)][_0x4deea6(0x386)](this['unitID'])[_0x4deea6(0x2ad)](_0x1fffc2=>{const _0x102b84=_0x4deea6;this[_0x102b84(0x2bc)][_0x102b84(0x3eb)](_0x102b84(0x1f5),_0x102b84(0x329),_0x1fffc2),_0x1fffc2===0x1?(this[_0x102b84(0x2cd)][_0x102b84(0x2d0)]({'id':_0x102b84(0x26b)}),this[_0x102b84(0x1e8)][_0x102b84(0x463)](new a[(_0x102b84(0x38a))](this[_0x102b84(0x29f)])['id'],!0x1),this[_0x102b84(0x1e8)][_0x102b84(0x3f6)](!0x1)):(this[_0x102b84(0x1e8)][_0x102b84(0x463)](new a[(_0x102b84(0x38a))](this[_0x102b84(0x29f)])['id'],!0x0),this['_permissionService']['setShowComponents'](!0x0));}));}let _0x3c617e=!0x1;return this[_0x4deea6(0x24c)](this[_0x4deea6(0x3e4)][_0x4deea6(0x1d5)][_0x4deea6(0x2ad)](_0x2cb767=>{const _0x58d040=_0x4deea6;_0x2cb767===0x3?this[_0x58d040(0x399)](_0x3c617e):_0x2cb767===0x2&&(_0x3c617e=!0x0,this[_0x58d040(0x37b)]());})),this[_0x4deea6(0x24c)](this[_0x4deea6(0x3e4)][_0x4deea6(0x165)][_0x4deea6(0x2ad)](_0x3d39f0=>{const _0x300723=_0x4deea6;try{switch(_0x3d39f0[_0x300723(0x1e5)]){case n[_0x300723(0x1be)][_0x300723(0x1f0)]:this[_0x300723(0x2a2)]((0x0,n[_0x300723(0x395)])(_0x3d39f0['data']));break;case n['CollaborationEvent'][_0x300723(0x362)]:this['_onRemoteACK'](_0x3d39f0['data']);break;case n[_0x300723(0x1be)][_0x300723(0x2ce)]:this['_onRemoteRejected']({'isPermissionRej':!0x1,'reason':_0x3d39f0[_0x300723(0x384)],'code':_0x3d39f0[_0x300723(0x3e2)]});break;case n[_0x300723(0x1be)][_0x300723(0x34e)]:{let _0x50e0ad=_0x3d39f0;this[_0x300723(0x15c)](_0x50e0ad['data'],_0x50e0ad[_0x300723(0x3e2)]);break;}case n[_0x300723(0x1be)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x300723(0x10c)](_0x3d39f0[_0x300723(0x34b)]['changesets'][_0x300723(0x222)](_0x35ad13=>(0x0,n[_0x300723(0x395)])(_0x35ad13)));break;case n[_0x300723(0x1be)][_0x300723(0x2a7)]:this[_0x300723(0x371)]({'isPermissionRej':!0x0,'reason':_0x3d39f0['reason'],'code':_0x3d39f0[_0x300723(0x3e2)]});break;case n['CollaborationEvent']['UNISCRIPT_RUN']:}}catch(_0x26cd24){throw console[_0x300723(0x3a2)](_0x300723(0x498),_0x26cd24),_0x26cd24;}})),this[_0x4deea6(0x16a)];}[_0x3bc608(0x3d5)](){const _0x3e2a09=_0x3bc608;this[_0x3e2a09(0x1ce)]=!0x1;}[_0x3bc608(0x213)](){const _0x134b6a=_0x3bc608;if(this[_0x134b6a(0x1ce)])throw Error(_0x134b6a(0x301));this[_0x134b6a(0x1ce)]=!0x0;}[_0x3bc608(0x23d)](_0x29a7bd){const _0x1a9baf=_0x3bc608;this[_0x1a9baf(0x213)]();try{this[_0x1a9baf(0x2b7)](_0x29a7bd());}finally{this['_unlockTransition']();}}[_0x3bc608(0x3b7)](_0x5af978){const _0x1aefe7=_0x3bc608;this['_transit'](()=>this[_0x1aefe7(0x16a)][_0x1aefe7(0x38c)](_0x5af978));}[_0x3bc608(0x2a2)](_0x4a2177){const _0x2d7e39=_0x3bc608;this['_collaborationPaused']?this[_0x2d7e39(0x151)]['push'](_0x4a2177):this['_applyRemoteChangeset'](_0x4a2177);}['_exhaustRemoteChangesetQueue'](){const _0x37ba84=_0x3bc608;this[_0x37ba84(0x151)][_0x37ba84(0x103)](_0x5aca83=>this[_0x37ba84(0x152)](_0x5aca83)),this['_remoteChangesetQueue']=[];}[_0x3bc608(0x152)](_0x235075){const _0x2199f9=_0x3bc608;let _0x52867b=this['_compressMutationService'][_0x2199f9(0x3d8)][_0x2199f9(0x2b3)](this[_0x2199f9(0x242)][_0x2199f9(0x3d8)][_0x2199f9(0x173)]()[_0x2199f9(0x3c0)])(_0x235075[_0x2199f9(0x29d)],null)||_0x235075[_0x2199f9(0x29d)],_0x43e576={..._0x235075,'mutations':_0x52867b};this[_0x2199f9(0x23d)](()=>this[_0x2199f9(0x16a)]['onRemoteChangeset'](_0x43e576));}[_0x3bc608(0x36c)](_0x19a84d){const _0x4da386=_0x3bc608;this['_transit'](()=>this[_0x4da386(0x16a)]['onRemoteAck'](_0x19a84d));}[_0x3bc608(0x371)](_0x112aa8){const _0x3c4e6=_0x3bc608;this[_0x3c4e6(0x23d)](()=>this[_0x3c4e6(0x16a)][_0x3c4e6(0x2ca)](_0x112aa8));}['_onRemoteRetry'](_0x4b443e,_0xcc117b){const _0x233592=_0x3bc608;this['_transit'](()=>this['_state'][_0x233592(0x455)](_0x4b443e,_0xcc117b));}[_0x3bc608(0x10c)](_0x865fe9){const _0x210bdb=_0x3bc608;let _0x314088=this[_0x210bdb(0x16a)];if(!(_0x314088 instanceof F))throw TypeError(_0x210bdb(0x12c));let _0x3ec273=_0x865fe9[_0x210bdb(0x222)](_0x4e4428=>{const _0x335d7b=_0x210bdb;let _0x2c77b8=this[_0x335d7b(0x242)][_0x335d7b(0x3d8)][_0x335d7b(0x2b3)](this[_0x335d7b(0x242)][_0x335d7b(0x3d8)]['getInterceptPoints']()[_0x335d7b(0x3c0)])(_0x4e4428[_0x335d7b(0x29d)],null)||_0x4e4428[_0x335d7b(0x29d)];return{..._0x4e4428,'mutations':_0x2c77b8};});this['_transit'](()=>_0x314088['onMissedChangesetFetched'](_0x3ec273));}[_0x3bc608(0x37b)](){const _0x23e63f=_0x3bc608;this[_0x23e63f(0x23d)](()=>this['_state'][_0x23e63f(0x361)]());}[_0x3bc608(0x399)](_0x4b515f=!0x1){const _0x5ab6a4=_0x3bc608;this[_0x5ab6a4(0x23d)](()=>this['_state'][_0x5ab6a4(0x1b1)]());let _0xce92ab=this[_0x5ab6a4(0x16a)];_0x4b515f&&_0xce92ab instanceof k&&this[_0x5ab6a4(0x23d)](()=>_0xce92ab['fetchMiss']());}async[_0x3bc608(0x292)](){return new Promise(_0x646c2d=>{const _0x3c0c34=_0xa8b9;this[_0x3c0c34(0x3e4)][_0x3c0c34(0x1d5)][_0x3c0c34(0x1d6)]((0x0,t[_0x3c0c34(0x417)])(0x1))['subscribe'](async _0x46fa24=>{_0x646c2d(await this['_createInitialStateImpl'](_0x46fa24===0x3));});});}['_createHandler'](){const _0x310982=_0x3bc608;let _0x193ecc=this['unitID'],_0x26fb93=this[_0x310982(0x1aa)][_0x310982(0x119)](r[_0x310982(0x190)])[_0x310982(0x2de)](m);return{'resendTimeouts':{'ackTimeout':_0x26fb93==null?void 0x0:_0x26fb93[_0x310982(0x3d9)],'maxAckTimeout':_0x26fb93==null?void 0x0:_0x26fb93['maxChangesetAckTimeout']},'onStateChange':(_0x2e7f06,_0x409e4b)=>{const _0x4e9e76=_0x310982;if(_0x2e7f06!==this[_0x4e9e76(0x16a)])throw Error('[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20'+_0x2e7f06[_0x4e9e76(0x1eb)]+'\x0aAfter:\x20'+_0x409e4b[_0x4e9e76(0x1eb)]+'\x0aCurrent:\x20'+this[_0x4e9e76(0x16a)]['status']);this[_0x4e9e76(0x2b7)](_0x409e4b);},'onSendChangeset':(_0x45a58a,_0x400353)=>{const _0x2a0644=_0x310982;_0x45a58a[_0x2a0644(0xfe)]||(_0x45a58a[_0x2a0644(0xfe)]=this[_0x2a0644(0x1c7)],_0x45a58a[_0x2a0644(0x198)]=++this[_0x2a0644(0x422)]);let _0x39aa2b={'eventID':n[_0x2a0644(0x1be)]['SUBMIT_CHANGESET'],'data':{'unitID':_0x45a58a[_0x2a0644(0x29f)],'unitType':this[_0x2a0644(0x2b9)],'changeset':_0x45a58a,'memberID':this[_0x2a0644(0x3e4)][_0x2a0644(0x1a6)]()}};return this[_0x2a0644(0x3e4)][_0x2a0644(0x153)](_0x39aa2b,this[_0x2a0644(0x29f)],_0x400353);},'onConflict':(_0x4e1323,_0x2ee6b0,_0x4986ac)=>{const _0x4eb6b1=_0x310982;this[_0x4eb6b1(0x1ff)][_0x4eb6b1(0x15e)]||this['_conflict$']['next']({'unitID':_0x193ecc,..._0x4e1323,'localChanges':_0x2ee6b0,'cacheCleared':_0x4986ac});},'onChangesetResend':_0x4b076d=>{const _0x5a3ae0=_0x310982;this[_0x5a3ae0(0x2bc)][_0x5a3ae0(0x3eb)](_0x5a3ae0(0x1f5),_0x5a3ae0(0x305)+_0x4b076d['reqId']+'\x20('+_0x4b076d[_0x5a3ae0(0x384)]+_0x5a3ae0(0x116)+_0x4b076d[_0x5a3ae0(0x3e6)]+')'),queueMicrotask(()=>{const _0x61c3cf=_0x5a3ae0;this[_0x61c3cf(0x22c)][_0x61c3cf(0x15e)]||this[_0x61c3cf(0x22c)][_0x61c3cf(0x33a)]({'unitID':_0x193ecc,..._0x4b076d});});},'onMissingChangesets':({from:_0x3a951c,to:_0x19d640})=>{const _0x1c561d=_0x310982;this['_logService'][_0x1c561d(0x3eb)](_0x1c561d(0x1f5),'fetching\x20missing\x20changesets\x20from\x20'+_0x3a951c+_0x1c561d(0x45f)+_0x19d640);let _0x47aac4={'eventID':n[_0x1c561d(0x1be)]['FETCH_MISSING'],'data':{'unitID':_0x193ecc,'unitType':this[_0x1c561d(0x2b9)],'from':_0x3a951c,'to':_0x19d640}};this[_0x1c561d(0x3e4)][_0x1c561d(0x153)](_0x47aac4,this[_0x1c561d(0x29f)]);}};}async['_createInitialStateImpl'](_0x5ea0a6){const _0x223c69=_0x3bc608;var _0x1a0e96;let _0x342d42=await((_0x1a0e96=this[_0x223c69(0x239)])==null?void 0x0:_0x1a0e96['loadOfflineData'](this[_0x223c69(0x29f)])),_0x142cb3=(_0x342d42==null?void 0x0:_0x342d42['mutations'])??[],_0x40eced=(_0x342d42==null?void 0x0:_0x342d42[_0x223c69(0xf3)])??null,_0x1d89e5=!!(_0x40eced!=null&&_0x40eced[_0x223c69(0xfe)])&&!!(_0x40eced!=null&&_0x40eced[_0x223c69(0x198)]);this[_0x223c69(0x1c7)]=_0x1d89e5?_0x40eced[_0x223c69(0xfe)]:(0x0,n['uuidv4'])(),this['_changesetReqId']=_0x1d89e5?_0x40eced[_0x223c69(0x198)]:0x0;let _0x4f46c0=this['unitID'];try{this[_0x223c69(0x106)](_0x40eced,_0x142cb3);}catch(_0x342d7f){this['_logService'][_0x223c69(0x3a2)](_0x342d7f);}let _0x4bef9a=this[_0x223c69(0x210)]();if(_0x5ea0a6){let _0x283c39=We(this['_injector'],_0x4f46c0,this[_0x223c69(0x2b9)],_0x40eced,_0x142cb3,_0x4bef9a);return _0x283c39 instanceof A?_0x283c39[_0x223c69(0x32e)]():(_0x283c39 instanceof M||_0x283c39 instanceof j)&&_0x283c39[_0x223c69(0x426)](),_0x283c39;}return this[_0x223c69(0x1aa)][_0x223c69(0x169)](P,_0x4f46c0,this[_0x223c69(0x2b9)],_0x40eced,_0x142cb3,_0x4bef9a);}[_0x3bc608(0x106)](_0x8b99b1,_0x28f72e){const _0x356d2=_0x3bc608;var _0x1a7fc4,_0x595728;let _0x4f3a42=this['_compressMutationService'][_0x356d2(0x3d8)][_0x356d2(0x2b3)](this['_compressMutationService'][_0x356d2(0x3d8)]['getInterceptPoints']()[_0x356d2(0x3c0)]);(_0x1a7fc4=_0x4f3a42((_0x8b99b1==null?void 0x0:_0x8b99b1[_0x356d2(0x29d)])||[],null))==null||_0x1a7fc4['forEach'](_0x1f2794=>this['_commandService']['executeCommand'](_0x1f2794['id'],_0x1f2794[_0x356d2(0x41a)])),(_0x595728=_0x4f3a42(_0x28f72e||[],null))==null||_0x595728[_0x356d2(0x103)](_0x255dab=>this['_commandService']['executeCommand'](_0x255dab['id'],_0x255dab[_0x356d2(0x41a)]));}};I=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r['LocaleService'])),y(0x6,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r['ICommandService']),y(0xb,r[_0x3bc608(0x32c)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],I);let L=class extends I{constructor(_0x11953f,_0x667379,_0x53fa30,_0x5e9e6d,_0x575c79,_0xc1d69f,_0x3520cc,_0x366e58,_0x5b4d0c,_0x3dfcba,_0x1848a6,_0x22d7f7,_0x5c6dfd,_0x4dc3dd,_0x12707f){const _0x40b6a3=_0x3bc608;super(_0x11953f,_0x53fa30,_0x667379,_0x5e9e6d,_0x575c79,_0xc1d69f,_0x3520cc,_0x366e58,_0x5b4d0c,_0x3dfcba,_0x1848a6,_0x22d7f7,_0x4dc3dd,_0x12707f),this[_0x40b6a3(0x29f)]=_0x11953f,this[_0x40b6a3(0x48f)]=_0x667379,this[_0x40b6a3(0x26f)]=_0x5c6dfd,_(this,_0x40b6a3(0x1fd),null);}[_0x3bc608(0x46d)](_0x12191b){this['_handlerCallback']=_0x12191b;}['dispose'](){const _0x279223=_0x3bc608;this[_0x279223(0x1fd)]=null,super['dispose']();}['_createHandler'](){const _0x3256a1=_0x3bc608;let _0x1aebc9=super[_0x3256a1(0x210)]();return _0x1aebc9[_0x3256a1(0x468)]=_0x510112=>{const _0x3b3b31=_0x3256a1;var _0x885add,_0x350b37;return(_0x885add=this[_0x3b3b31(0x1fd)])==null||(_0x350b37=_0x885add[_0x3b3b31(0x468)])==null?void 0x0:_0x350b37[_0x3b3b31(0x1e2)](_0x885add,_0x510112);},_0x1aebc9[_0x3256a1(0x34c)]=_0x2c6f41=>{const _0x3f9cd1=_0x3256a1;var _0x19a475,_0x25872a;return(_0x19a475=this[_0x3f9cd1(0x1fd)])==null||(_0x25872a=_0x19a475['onTransformState'])==null?void 0x0:_0x25872a[_0x3f9cd1(0x1e2)](_0x19a475,_0x2c6f41);},_0x1aebc9[_0x3256a1(0x289)]=_0x5f5567=>{const _0x42d3d2=_0x3256a1;var _0x10d123,_0x5be8ff;return((_0x10d123=this[_0x42d3d2(0x1fd)])==null||(_0x5be8ff=_0x10d123[_0x42d3d2(0x289)])==null?void 0x0:_0x5be8ff[_0x42d3d2(0x1e2)](_0x10d123,_0x5f5567))??null;},_0x1aebc9[_0x3256a1(0x245)]=_0x42ff5e=>{const _0x1c1120=_0x3256a1;var _0x3e27dd,_0x37c005;return(_0x3e27dd=this['_handlerCallback'])==null||(_0x37c005=_0x3e27dd[_0x1c1120(0x245)])==null?void 0x0:_0x37c005[_0x1c1120(0x1e2)](_0x3e27dd,_0x42ff5e);},_0x1aebc9['onSyncEditingCollabCursor']=_0x2c096d=>{const _0x6e7f50=_0x3256a1;var _0x2ea803,_0x456909;return(_0x2ea803=this[_0x6e7f50(0x1fd)])==null||(_0x456909=_0x2ea803[_0x6e7f50(0x1f7)])==null?void 0x0:_0x456909[_0x6e7f50(0x1e2)](_0x2ea803,_0x2c096d);},_0x1aebc9[_0x3256a1(0x461)]=_0x3595fb=>{const _0x2b3d6d=_0x3256a1;var _0x42fd02,_0x4811fd;return((_0x42fd02=this[_0x2b3d6d(0x1fd)])==null||(_0x4811fd=_0x42fd02[_0x2b3d6d(0x461)])==null?void 0x0:_0x4811fd[_0x2b3d6d(0x1e2)](_0x42fd02,_0x3595fb))??_0x3595fb;},_0x1aebc9[_0x3256a1(0x2be)]=_0x50832b=>{const _0x99ce25=_0x3256a1;var _0x14b190,_0x2c7646;return((_0x14b190=this[_0x99ce25(0x1fd)])==null||(_0x2c7646=_0x14b190[_0x99ce25(0x2be)])==null?void 0x0:_0x2c7646[_0x99ce25(0x1e2)](_0x14b190,_0x50832b))??_0x50832b;},_0x1aebc9;}async['_init'](){const _0x33f06c=_0x3bc608;let _0x19786e=await super[_0x33f06c(0x186)]();return this[_0x33f06c(0x24c)](this[_0x33f06c(0x26f)][_0x33f06c(0x168)][_0x33f06c(0x2ad)](_0x7b5824=>{const _0x378fea=_0x33f06c;if(_0x7b5824==null||_0x7b5824['unitId']!==this[_0x378fea(0x29f)])return;let {commandId:_0xf0b912,redoState:_0x9a0c51,unitId:_0x452931}=_0x7b5824,_0x4ad067={'id':_0xf0b912,'type':r[_0x378fea(0x336)][_0x378fea(0x44f)],'params':{'unitId':_0x452931,'actions':_0x9a0c51['actions'],'textRanges':null}};this[_0x378fea(0x3b7)](_0x4ad067);})),this[_0x33f06c(0x24c)](this[_0x33f06c(0x2f5)][_0x33f06c(0x229)]((_0x4823c4,_0x1e5444)=>{const _0x31149d=_0x33f06c;if(_0x4823c4[_0x31149d(0x48f)]!==r[_0x31149d(0x336)][_0x31149d(0x44f)]||_0x1e5444!=null&&_0x1e5444[_0x31149d(0x216)]||_0x1e5444!=null&&_0x1e5444[_0x31149d(0x274)]||_0x4823c4['id']===i[_0x31149d(0x341)]['id'])return;let _0x55fdcb=_0x4823c4[_0x31149d(0x41a)];if((_0x55fdcb==null?void 0x0:_0x55fdcb['unitId'])!==this[_0x31149d(0x29f)])return;let _0x51a495=_0x4823c4,_0x522899=this[_0x31149d(0x242)]['interceptor'][_0x31149d(0x2b3)](this[_0x31149d(0x242)][_0x31149d(0x3d8)][_0x31149d(0x173)]()[_0x31149d(0x269)])([_0x51a495],this[_0x31149d(0x414)])||[_0x51a495];this[_0x31149d(0x3b7)](_0x522899[0x0]);})),_0x19786e;}};L=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r['ICommandService']),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x3bc608(0x2bb)])(i[_0x3bc608(0x280)])),y(0xd,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0x32d12f,_0xc6465f,_0xb87e49,_0x101e15,_0x583b8f,_0x49fc3b,_0xd7dec2,_0x46e52f,_0x544fee,_0x11fe5e,_0x58fe37,_0x5bb860,_0x2645fc,_0x7946cb){const _0x34f81a=_0x3bc608;super(_0x32d12f,_0xb87e49,_0xc6465f,_0x101e15,_0x583b8f,_0x49fc3b,_0xd7dec2,_0x46e52f,_0x544fee,_0x11fe5e,_0x58fe37,_0x5bb860,_0x2645fc,_0x7946cb),this[_0x34f81a(0x29f)]=_0x32d12f,this[_0x34f81a(0x48f)]=_0xc6465f;}async['_init'](){const _0x1bd499=_0x3bc608;let _0x22c93c=await super['_init']();return this[_0x1bd499(0x24c)](this[_0x1bd499(0x2f5)][_0x1bd499(0x229)]((_0x25b6c2,_0xfcfae7)=>{const _0x2921b4=_0x1bd499;if(_0x25b6c2[_0x2921b4(0x48f)]!==r['CommandType'][_0x2921b4(0x44f)]||_0xfcfae7!=null&&_0xfcfae7[_0x2921b4(0x216)]||_0xfcfae7!=null&&_0xfcfae7['onlyLocal'])return;let _0x100709=_0x25b6c2['params'];if((_0x100709==null?void 0x0:_0x100709['unitId'])!==this[_0x2921b4(0x29f)])return;let _0x382a27=_0x25b6c2,_0x2cc43e=this[_0x2921b4(0x242)][_0x2921b4(0x3d8)][_0x2921b4(0x2b3)](this[_0x2921b4(0x242)][_0x2921b4(0x3d8)][_0x2921b4(0x173)]()[_0x2921b4(0x269)])([_0x382a27],this[_0x2921b4(0x414)])||[_0x382a27];this[_0x2921b4(0x3b7)](_0x2cc43e[0x0]);})),_0x22c93c;}};R=b([y(0x3,(0x0,r['Inject'])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r['ICommandService']),y(0xb,r[_0x3bc608(0x32c)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],R);let z=class extends I{constructor(_0xb7ee6c,_0x4449d3,_0x30d869,_0x3be37d,_0x5d5989,_0x11da13,_0x2a81dd,_0xdde4eb,_0x2716f6,_0x2d3697,_0x5dfee9,_0x201d88,_0x223530,_0x114453,_0x5ed631){const _0x146c0a=_0x3bc608;super(_0xb7ee6c,_0x30d869,_0x4449d3,_0x3be37d,_0x5d5989,_0x11da13,_0x2a81dd,_0x2716f6,_0x2d3697,_0x5dfee9,_0x201d88,_0x223530,_0x114453,_0x5ed631),this['unitID']=_0xb7ee6c,this[_0x146c0a(0x48f)]=_0x4449d3,this['_sheetTransformSelectionsService']=_0xdde4eb;}['_createHandler'](){const _0x20454d=_0x3bc608;let _0x82a720=super[_0x20454d(0x210)]();return _0x82a720[_0x20454d(0x245)]=_0x115854=>this[_0x20454d(0x451)][_0x20454d(0x286)](_0x115854),_0x82a720;}async[_0x3bc608(0x186)](){const _0xe21f36=_0x3bc608;let _0x1fb586=await super[_0xe21f36(0x186)]();return this[_0xe21f36(0x24c)](this[_0xe21f36(0x2f5)][_0xe21f36(0x229)]((_0x307444,_0x2e6f0e)=>{const _0x506e19=_0xe21f36;if(_0x307444[_0x506e19(0x48f)]!==r[_0x506e19(0x336)][_0x506e19(0x44f)]||_0x2e6f0e!=null&&_0x2e6f0e[_0x506e19(0x216)]||_0x2e6f0e!=null&&_0x2e6f0e[_0x506e19(0x274)])return;let _0x4dd681=_0x307444['params'];if((_0x4dd681==null?void 0x0:_0x4dd681[_0x506e19(0x3dc)])!==this[_0x506e19(0x29f)])return;let _0x3bd371=_0x307444,_0x4bcbae=this[_0x506e19(0x242)][_0x506e19(0x3d8)][_0x506e19(0x2b3)](this[_0x506e19(0x242)][_0x506e19(0x3d8)][_0x506e19(0x173)]()[_0x506e19(0x269)])([_0x3bd371],this['_univerInstanceService'])||[_0x3bd371];this['_onLocalMutation'](_0x4bcbae[0x0]);})),_0x1fb586;}};z=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r['Inject'])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(w)),y(0x8,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x9,r['IUniverInstanceService']),y(0xa,r[_0x3bc608(0x3ae)]),y(0xb,r[_0x3bc608(0x185)]),y(0xc,r['IPermissionService']),y(0xd,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xe,(0x0,r[_0x3bc608(0x18d)])(C))],z);let B=class extends I{constructor(_0x58189a,_0x3dfa1b,_0x3a6d62,_0x19e4f4,_0x253694,_0xef0029,_0x51d40d,_0x4901be,_0x5b4e64,_0x3ccbc8,_0x546b37,_0x5e8989,_0x463e0c,_0x5b6dbf){const _0x24d3b2=_0x3bc608;super(_0x58189a,_0x3a6d62,_0x3dfa1b,_0x19e4f4,_0x253694,_0xef0029,_0x51d40d,_0x4901be,_0x5b4e64,_0x3ccbc8,_0x546b37,_0x5e8989,_0x463e0c,_0x5b6dbf),this[_0x24d3b2(0x29f)]=_0x58189a,this[_0x24d3b2(0x48f)]=_0x3dfa1b;}async[_0x3bc608(0x186)](){const _0x3c5b93=_0x3bc608;let _0x3a7c05=await super[_0x3c5b93(0x186)]();return this[_0x3c5b93(0x24c)](this[_0x3c5b93(0x2f5)][_0x3c5b93(0x229)]((_0x10b751,_0x5130d0)=>{const _0x464bfe=_0x3c5b93;if(_0x10b751[_0x464bfe(0x48f)]!==r['CommandType'][_0x464bfe(0x44f)]||_0x5130d0!=null&&_0x5130d0['fromCollab']||_0x5130d0!=null&&_0x5130d0[_0x464bfe(0x274)])return;let _0x320268=_0x10b751['params'];if((_0x320268==null?void 0x0:_0x320268[_0x464bfe(0x3dc)])!==this[_0x464bfe(0x29f)])return;let _0x103528=_0x10b751,_0x2ff4e6=this[_0x464bfe(0x242)][_0x464bfe(0x3d8)]['fetchThroughInterceptors'](this[_0x464bfe(0x242)][_0x464bfe(0x3d8)][_0x464bfe(0x173)]()[_0x464bfe(0x269)])([_0x103528],this[_0x464bfe(0x414)])||[_0x103528];this[_0x464bfe(0x3b7)](_0x2ff4e6[0x0]);})),_0x3a7c05;}};B=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r['Injector'])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n['CompressMutationService'])),y(0x5,(0x0,r['Inject'])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r[_0x3bc608(0x185)]),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],B);let V=class extends I{constructor(_0xb111c7,_0x312e1f,_0x2a6123,_0x594b58,_0x1ece9b,_0x135816,_0x1b48b7,_0x57d173,_0x3c3e00,_0x591ccf,_0x5d10d9,_0x532348,_0x5d05ee,_0x56efd1){const _0x3e21af=_0x3bc608;super(_0xb111c7,_0x2a6123,_0x312e1f,_0x594b58,_0x1ece9b,_0x135816,_0x1b48b7,_0x57d173,_0x3c3e00,_0x591ccf,_0x5d10d9,_0x532348,_0x5d05ee,_0x56efd1),this[_0x3e21af(0x29f)]=_0xb111c7,this['type']=_0x312e1f;}async[_0x3bc608(0x186)](){const _0x2e4896=_0x3bc608;let _0x126d1b=await super[_0x2e4896(0x186)]();return this[_0x2e4896(0x24c)](this[_0x2e4896(0x2f5)]['onMutationExecutedForCollab']((_0x88e27f,_0x7f603d)=>{const _0x306c57=_0x2e4896;if(_0x88e27f['type']!==r[_0x306c57(0x336)]['MUTATION']||_0x7f603d!=null&&_0x7f603d[_0x306c57(0x216)]||_0x7f603d!=null&&_0x7f603d['onlyLocal'])return;let _0x2d5db9=_0x88e27f[_0x306c57(0x41a)];if((_0x2d5db9==null?void 0x0:_0x2d5db9[_0x306c57(0x3dc)])!==this[_0x306c57(0x29f)])return;let _0x41e3c9=_0x88e27f,_0x4670ee=this[_0x306c57(0x242)][_0x306c57(0x3d8)][_0x306c57(0x2b3)](this[_0x306c57(0x242)][_0x306c57(0x3d8)]['getInterceptPoints']()['COMPRESS_MUTATION_SEND'])([_0x41e3c9],this[_0x306c57(0x414)])||[_0x41e3c9];this[_0x306c57(0x3b7)](_0x4670ee[0x0]);})),_0x126d1b;}};V=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r['Inject'])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r['Inject'])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r[_0x3bc608(0x185)]),y(0xb,r[_0x3bc608(0x32c)]),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r['Optional'])(C))],V);let H=class extends I{constructor(_0x38c5e1,_0x1b7366,_0x5723b9,_0x4c9573,_0x54d311,_0x2bf632,_0x4cad0a,_0x9bd6e9,_0x348b6d,_0x536bdc,_0x51fd1d,_0x1b475a,_0x31bf3d,_0x351089){super(_0x38c5e1,_0x5723b9,_0x1b7366,_0x4c9573,_0x54d311,_0x2bf632,_0x4cad0a,_0x9bd6e9,_0x348b6d,_0x536bdc,_0x51fd1d,_0x1b475a,_0x31bf3d,_0x351089),this['unitID']=_0x38c5e1,this['type']=_0x1b7366;}async[_0x3bc608(0x186)](){const _0x3db443=_0x3bc608;let _0x1bde26=await super[_0x3db443(0x186)]();return this[_0x3db443(0x24c)](this[_0x3db443(0x2f5)][_0x3db443(0x229)]((_0x406d70,_0x265ffe)=>{const _0x1722d8=_0x3db443;if(_0x406d70[_0x1722d8(0x48f)]!==r['CommandType'][_0x1722d8(0x44f)]||_0x265ffe!=null&&_0x265ffe[_0x1722d8(0x216)]||_0x265ffe!=null&&_0x265ffe[_0x1722d8(0x274)])return;let _0x18bc41=_0x406d70['params'];if((_0x18bc41==null?void 0x0:_0x18bc41[_0x1722d8(0x3dc)])!==this['unitID'])return;let _0x4be2f1=_0x406d70,_0xb37ad2=this[_0x1722d8(0x242)][_0x1722d8(0x3d8)][_0x1722d8(0x2b3)](this['_compressMutationService']['interceptor'][_0x1722d8(0x173)]()[_0x1722d8(0x269)])([_0x4be2f1],this[_0x1722d8(0x414)])||[_0x4be2f1];this[_0x1722d8(0x3b7)](_0xb37ad2[0x0]);})),_0x1bde26;}};H=b([y(0x3,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x3ef)])),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)])),y(0x6,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x279)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x3bc608(0x260)]),y(0x9,r[_0x3bc608(0x3ae)]),y(0xa,r[_0x3bc608(0x185)]),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x3bc608(0x18d)])(T)),y(0xd,(0x0,r[_0x3bc608(0x18d)])(C))],H);const Ge=(0x0,r[_0x3bc608(0x2e1)])('univer-pro.collaboration-client.network-condition.service');function Ke(_0x362c89){const _0x52bbc3=_0x3bc608;let _0x1aad93=_0x362c89[_0x52bbc3(0x34b)],_0x5e4518=JSON[_0x52bbc3(0x1cf)](_0x1aad93);switch(_0x5e4518['cmd']){case o[_0x52bbc3(0x162)][_0x52bbc3(0x228)]:case o['CombCmd']['HELLO']:{let _0x422e19=_0x5e4518[_0x52bbc3(0x2dc)];return{..._0x5e4518,'data':_0x422e19,'cmd':_0x5e4518['cmd']};}case o[_0x52bbc3(0x162)][_0x52bbc3(0x21c)]:{let _0x425f6d=_0x5e4518['joinRsp'];return{..._0x5e4518,'data':_0x425f6d,'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};}case o[_0x52bbc3(0x162)][_0x52bbc3(0x2d4)]:{let _0x25ea30=_0x5e4518[_0x52bbc3(0x2d1)];switch(_0x25ea30['eventID']){case n[_0x52bbc3(0x1be)]['PERMISSION_REJ']:{let {cs:_0x3c6dbb,code:_0x24acfd,reason:_0x202ba4}=_0x25ea30['permissionRejEvent']??{};return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x3c6dbb,'code':_0x24acfd,'reason':_0x202ba4},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};}case n[_0x52bbc3(0x1be)]['CHANGESET_ACK']:var _0x182801;return{..._0x5e4518,'data':{..._0x25ea30,'data':(_0x182801=_0x25ea30[_0x52bbc3(0x25e)])==null?void 0x0:_0x182801['cs']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x1f0)]:var _0xd80136;return{..._0x5e4518,'data':{..._0x25ea30,'data':(_0xd80136=_0x25ea30['newCsEvent'])==null?void 0x0:_0xd80136['cs']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x2ce)]:{let {cs:_0x32c930,code:_0x26e173,reason:_0xb19883}=_0x25ea30[_0x52bbc3(0x171)]??{};return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x32c930,'code':_0x26e173,'reason':_0xb19883},'cmd':_0x5e4518['cmd']};}case n[_0x52bbc3(0x1be)][_0x52bbc3(0x34e)]:{let {cs:_0x18c633,code:_0x5b9747,reason:_0x3abb3e}=_0x25ea30[_0x52bbc3(0x2ba)]??{};return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x18c633,'code':_0x5b9747,'reason':_0x3abb3e},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};}case n[_0x52bbc3(0x1be)][_0x52bbc3(0x432)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30['updateCursorEvent']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x34a)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x42d)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)]['USERS_LEAVE']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30['leaveEvent']},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x33e)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x1ef)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x170)]:case n[_0x52bbc3(0x1be)]['LIVESHARE_OPERATION']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x487)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)]['LIVESHARE_TERMINATE']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x1ef)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x3df)]:return{..._0x5e4518,'data':_0x25ea30,'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x218)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x221)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n['CollaborationEvent'][_0x52bbc3(0x3e7)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x2e5)]},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};case n[_0x52bbc3(0x1be)][_0x52bbc3(0x1c8)]:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30[_0x52bbc3(0x2f3)]},'cmd':_0x5e4518['cmd']};case n[_0x52bbc3(0x1be)]['UNISCRIPT_RUN']:return{..._0x5e4518,'data':{..._0x25ea30,'data':_0x25ea30['uniscriptRunEvent']},'cmd':_0x5e4518[_0x52bbc3(0x1e9)]};default:return _0x5e4518;}}default:return _0x5e4518;}}function qe(_0x36ff0d){const _0x1e45bd=_0x3bc608;switch(_0x36ff0d[_0x1e45bd(0x1e9)]){case o[_0x1e45bd(0x162)]['HEARTBEAT']:case o[_0x1e45bd(0x162)]['HELLO']:return JSON[_0x1e45bd(0x42b)]({'cmd':_0x36ff0d[_0x1e45bd(0x1e9)],'routeKey':_0x36ff0d[_0x1e45bd(0x128)]});case o[_0x1e45bd(0x162)]['INGEST']:{let _0x926304;switch(_0x36ff0d[_0x1e45bd(0x34b)]['eventID']){case n[_0x1e45bd(0x1be)][_0x1e45bd(0x432)]:_0x926304={'eventID':n['CollaborationEvent'][_0x1e45bd(0x432)],'updateCursorEvent':_0x36ff0d[_0x1e45bd(0x34b)]['data']};break;case n[_0x1e45bd(0x1be)][_0x1e45bd(0x390)]:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x390)],'leaveEvent':_0x36ff0d['data'][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['USERS_ENTER']:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x34a)],'joinEvent':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)][_0x1e45bd(0x33e)]:_0x926304={'eventID':n['CollaborationEvent'][_0x1e45bd(0x33e)],'liveShareNewHost':_0x36ff0d['data'][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['LIVESHARE_OPERATION']:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x44e)],'liveShareOperation':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['LIVESHARE_TERMINATE']:_0x926304={'eventID':n[_0x1e45bd(0x1be)]['LIVESHARE_TERMINATE'],'liveShareTerminate':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n['CollaborationEvent'][_0x1e45bd(0x325)]:_0x926304={'eventID':n['CollaborationEvent'][_0x1e45bd(0x325)],'liveShareRequestHost':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x34b)]};break;case n[_0x1e45bd(0x1be)]['LIVESHARE_FETCH_OPERATIONS']:_0x926304={'eventID':n[_0x1e45bd(0x1be)][_0x1e45bd(0x170)]};break;default:_0x926304={'eventID':_0x36ff0d[_0x1e45bd(0x34b)][_0x1e45bd(0x1e5)]};}return JSON[_0x1e45bd(0x42b)]({'cmd':_0x36ff0d[_0x1e45bd(0x1e9)],'routeKey':_0x36ff0d[_0x1e45bd(0x128)],'collaMsg':_0x926304});}case o[_0x1e45bd(0x162)][_0x1e45bd(0x21c)]:return JSON[_0x1e45bd(0x42b)]({'cmd':_0x36ff0d['cmd'],'routeKey':_0x36ff0d[_0x1e45bd(0x128)],'joinReq':_0x36ff0d[_0x1e45bd(0x34b)]});case o[_0x1e45bd(0x162)][_0x1e45bd(0x37e)]:return JSON['stringify']({'cmd':_0x36ff0d[_0x1e45bd(0x1e9)],'routeKey':_0x36ff0d[_0x1e45bd(0x128)],'leaveReq':_0x36ff0d['data']});default:throw Error(_0x1e45bd(0x2d2));}}const Je=(0x0,r['createIdentifier'])(_0x3bc608(0x1dc));function Ye(_0x295c8f,_0x1cabb3,_0x245ef4){const _0x2b26b9=_0x3bc608;return _0x295c8f+'/'+_0x1cabb3+_0x2b26b9(0x388)+_0x245ef4+_0x2b26b9(0x14b);}let Xe=class extends r[_0x3bc608(0x358)]{constructor(_0x4802a1,_0x527c86,_0x30129d,_0x3f3e84,_0x5ec1ef){const _0x4ed824=_0x3bc608;super(),this[_0x4ed824(0x1aa)]=_0x4802a1,this[_0x4ed824(0x499)]=_0x527c86,this[_0x4ed824(0x430)]=_0x30129d,this['_logService']=_0x3f3e84,this[_0x4ed824(0x176)]=_0x5ec1ef;}['_doCreateSocket'](_0x552453){const _0x4f063e=_0x3bc608;let _0x233c17=this[_0x4f063e(0x1aa)][_0x4f063e(0x119)](e[_0x4f063e(0x139)]);if(!_0x233c17)throw Error(_0x4f063e(0x324));let _0x27b556=_0x233c17[_0x4f063e(0x20d)](_0x552453);if(!_0x27b556)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x388622=new r[(_0x4f063e(0x3de))](),_0x16bbf7=new t[(_0x4f063e(0x1a3))]();_0x388622['add'](_0x27b556[_0x4f063e(0x23e)][_0x4f063e(0x2ad)](_0x2b5dc1=>_0x16bbf7[_0x4f063e(0x33a)](_0x2b5dc1))),_0x388622[_0x4f063e(0x467)]((0x0,r[_0x4f063e(0x368)])(()=>_0x16bbf7[_0x4f063e(0x10e)]()));let _0x12d413=new t['Subject']();_0x388622[_0x4f063e(0x467)](_0x27b556[_0x4f063e(0x115)][_0x4f063e(0x2ad)](_0x2e28f6=>_0x12d413[_0x4f063e(0x33a)](_0x2e28f6))),_0x388622[_0x4f063e(0x467)]((0x0,r[_0x4f063e(0x368)])(()=>_0x12d413[_0x4f063e(0x10e)]()));let _0x2447fd=new t[(_0x4f063e(0x1a3))]();_0x388622[_0x4f063e(0x467)](_0x27b556[_0x4f063e(0x30d)][_0x4f063e(0x2ad)](_0x43aa86=>{const _0x2fb304=_0x4f063e;let _0x3bed16=Ke(_0x43aa86);_0x2447fd[_0x2fb304(0x33a)](_0x3bed16);})),_0x388622[_0x4f063e(0x467)]((0x0,r[_0x4f063e(0x368)])(()=>_0x2447fd['complete']()));let _0x1949f4,_0x41a6aa=()=>{const _0xdbc84f=_0x4f063e;_0x12d413[_0xdbc84f(0x33a)](new Event('connection\x20error')),_0x16bbf7[_0xdbc84f(0x33a)](new Event(_0xdbc84f(0x1af))),_0x1949f4[_0xdbc84f(0x45c)]();};return _0x1949f4={'memberID':'','close$':_0x16bbf7[_0x4f063e(0x40b)](),'error$':_0x12d413['asObservable'](),'open$':_0x27b556[_0x4f063e(0xee)],'message$':_0x2447fd[_0x4f063e(0x40b)](),'send':(_0x26f053,_0x4dda32)=>{const _0x54c80f=_0x4f063e;if(_0x26f053[_0x54c80f(0x1e9)]===o[_0x54c80f(0x162)]['INGEST']){if(_0x26f053[_0x54c80f(0x34b)][_0x54c80f(0x1e5)]===n[_0x54c80f(0x1be)][_0x54c80f(0x47b)]){let _0x215b88=this[_0x54c80f(0x256)](_0x1949f4,_0x26f053['data'],(_0x4dda32==null?void 0x0:_0x4dda32[_0x54c80f(0x1bf)])??0x1d4c0);return _0x215b88[_0x54c80f(0x48d)](()=>void 0x0),_0x215b88;}if(_0x26f053[_0x54c80f(0x34b)][_0x54c80f(0x1e5)]===n[_0x54c80f(0x1be)][_0x54c80f(0x3d4)]){let _0xcb2afb=_0x26f053[_0x54c80f(0x34b)];this[_0x54c80f(0x159)](_0xcb2afb)['then'](_0x58c4fa=>{const _0x2074fc=_0x54c80f;_0x2447fd[_0x2074fc(0x33a)]({'cmd':o[_0x2074fc(0x162)][_0x2074fc(0x2d4)],'code':o[_0x2074fc(0x2c9)]['OK'],'routeKey':_0xcb2afb['data'][_0x2074fc(0x29f)],'routeType':'','data':{'eventID':n[_0x2074fc(0x1be)][_0x2074fc(0x2c6)],'data':{'changesets':_0x58c4fa}}});})[_0x54c80f(0x48d)](_0x1ed40e=>{const _0x12526d=_0x54c80f;this[_0x12526d(0x2bc)]['error'](_0x1ed40e),_0x41a6aa();});return;}}_0x27b556[_0x54c80f(0x153)](qe(_0x26f053));},'close':()=>{const _0x5b4dbe=_0x4f063e;_0x27b556[_0x5b4dbe(0x45c)](),_0x388622[_0x5b4dbe(0x3cc)]();}},_0x1949f4;}[_0x3bc608(0x256)](_0x2a3fda,_0x1c47ef,_0xbf55a3){const _0x2ab244=_0x3bc608;let {unitType:_0x4bfb8f,unitID:_0x2705be,changeset:_0x3f2c6c}=_0x1c47ef[_0x2ab244(0x34b)],_0x3bd084={'unitID':_0x2705be,'memberID':_0x2a3fda[_0x2ab244(0x28c)],'type':_0x4bfb8f,'changeset':(0x0,n[_0x2ab244(0x17f)])(_0x3f2c6c)},_0x391fb1=this[_0x2ab244(0x430)]['getConfig'](m),_0x3244b1=Ye((_0x391fb1==null?void 0x0:_0x391fb1[_0x2ab244(0x40d)])??_0x2ab244(0x291),_0x4bfb8f,_0x2705be);return(0x0,t['firstValueFrom'])(this[_0x2ab244(0x499)][_0x2ab244(0x3cb)](_0x2ab244(0x31a),_0x3244b1,{'body':_0x3bd084})[_0x2ab244(0x1d6)]((0x0,t[_0x2ab244(0x43f)])(_0x1acb07=>_0x1acb07['type']===e[_0x2ab244(0x3f4)]['Response']),(0x0,t[_0x2ab244(0x1bf)])(_0xbf55a3)))[_0x2ab244(0x259)](()=>void 0x0,_0x5965bd=>{const _0x1544fc=_0x2ab244;throw this[_0x1544fc(0x2bc)]['warn']('[CollaborationSocketService]','submitting\x20changeset\x20'+_0x3f2c6c[_0x1544fc(0xfe)]+':'+_0x3f2c6c[_0x1544fc(0x198)]+_0x1544fc(0x369)+Ze(_0x5965bd)),_0x5965bd;});}async[_0x3bc608(0x159)](_0x313d9e){const _0x4c9990=_0x3bc608;let {unitID:_0x2dfb6c,from:_0x4c4395,to:_0x292062,unitType:_0xaef858}=_0x313d9e[_0x4c9990(0x34b)];return(await this['_snapshotServerService'][_0x4c9990(0x366)]({'metadata':void 0x0},{'unitID':_0x2dfb6c,'type':_0xaef858,'from':_0x4c4395,'to':_0x292062}))['changesets'][_0x4c9990(0x222)](_0x56b88f=>((_0x56b88f[_0x4c9990(0x29d)]===null||_0x56b88f[_0x4c9990(0x29d)]===void 0x0)&&(_0x56b88f['mutations']=[]),_0x56b88f));}};Xe=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x1,(0x0,r['Inject'])(e[_0x3bc608(0xff)])),y(0x2,r[_0x3bc608(0x190)]),y(0x3,r['ILogService']),y(0x4,n['ISnapshotServerService'])],Xe);function Ze(_0x8b4cf7){const _0x264218=_0x3bc608;return _0x8b4cf7 instanceof e[_0x264218(0x19b)]?'HTTP\x20'+(_0x8b4cf7['status']??0x0):_0x8b4cf7 instanceof Error?_0x8b4cf7[_0x264218(0x142)]:String(_0x8b4cf7);}const Qe=(0x0,r[_0x3bc608(0x2e1)])(_0x3bc608(0x25a));function $e(_0x3150dd={}){const _0x7fd797=_0x3bc608;return _0x3150dd['resolveUnit']?{'resolveUnit':_0x3150dd['resolveUnit']}:{'resolveUnit':_0x273cfd=>({'target':{'unitId':_0x273cfd[_0x7fd797(0x3dc)],'unitType':_0x273cfd[_0x7fd797(0x1b8)]}})};}function et(_0x1a7b75,_0x3639af,_0xce094){const _0x36f433=_0x3bc608;let _0x7062b4=_0xce094['target'][_0x36f433(0x295)];if(_0x7062b4!=null&&_0x7062b4['trim']()==='')throw Error('COLLABORATION_ENDPOINT_INVALID');if(!_0xce094['target'][_0x36f433(0x3dc)])throw Error(_0x36f433(0x2e9));return{'localUnitId':_0x1a7b75,'unitType':_0x3639af,'target':{'endpoint':_0x7062b4,'unitId':_0xce094['target'][_0x36f433(0x3dc)],'unitType':_0xce094[_0x36f433(0x1f4)]['unitType']??_0x3639af},'changeset':_0xce094[_0x36f433(0x167)]};}let U=class extends r['Disposable']{constructor(_0x5eae7e,_0x4e2e5f,_0x123a1b,_0x2b69d1,_0x38c69b,_0x521063){const _0x420a58=_0x3bc608;super(),this[_0x420a58(0x1aa)]=_0x5eae7e,this[_0x420a58(0x2bc)]=_0x4e2e5f,this[_0x420a58(0x430)]=_0x123a1b,this[_0x420a58(0x466)]=_0x2b69d1,this[_0x420a58(0x1fe)]=_0x38c69b,this['_adapter']=_0x521063,_(this,_0x420a58(0x24d),new Map()),_(this,_0x420a58(0x20a),new Map()),_(this,'_sessionChannels',new Map()),_(this,_0x420a58(0x3b3),new Map()),_(this,_0x420a58(0x2b8),void 0x0),_(this,'socket$',this['_getSocketChannel'](void 0x0)[_0x420a58(0x180)][_0x420a58(0x40b)]()),_(this,_0x420a58(0x14f),new t[(_0x420a58(0x249))](0x0)),_(this,_0x420a58(0x21b),this[_0x420a58(0x14f)][_0x420a58(0x40b)]());}[_0x3bc608(0x3f1)](){const _0xb83801=_0x3bc608;this[_0xb83801(0x2b8)]||(this[_0xb83801(0x2b8)]=this[_0xb83801(0x1aa)][_0xb83801(0x119)](Ge,r['Quantity']['OPTIONAL'])??void 0x0,this[_0xb83801(0x2b8)]&&this[_0xb83801(0x24c)](this[_0xb83801(0x2b8)][_0xb83801(0x33c)][_0xb83801(0x2ad)](_0x23efe2=>{const _0xdc040e=_0xb83801;_0x23efe2&&this[_0xdc040e(0x1e3)](),_0x23efe2||this[_0xdc040e(0x3b3)][_0xdc040e(0x103)](_0x2e5882=>this[_0xdc040e(0x420)](_0x2e5882));})));}[_0x3bc608(0x3cc)](){const _0x367e49=_0x3bc608;super[_0x367e49(0x3cc)](),this[_0x367e49(0x3b3)][_0x367e49(0x103)](_0x5a15a7=>{const _0x2dddfa=_0x367e49;var _0x414ede,_0x3f939a,_0x3005a6;(_0x414ede=_0x5a15a7[_0x2dddfa(0x1e4)])==null||_0x414ede['unsubscribe'](),_0x5a15a7[_0x2dddfa(0x1e4)]=null,this[_0x2dddfa(0x1c1)](_0x5a15a7),this[_0x2dddfa(0x281)](_0x5a15a7),this[_0x2dddfa(0x17a)](_0x5a15a7),this['_clearHeartbeatTimer'](_0x5a15a7),(_0x3f939a=_0x5a15a7[_0x2dddfa(0x180)][_0x2dddfa(0x39a)]())==null||_0x3f939a[_0x2dddfa(0x45c)](),(_0x3005a6=_0x5a15a7['candidateSocket'])==null||_0x3005a6[_0x2dddfa(0x45c)](),_0x5a15a7[_0x2dddfa(0x180)][_0x2dddfa(0x10e)]();}),this[_0x367e49(0x3b3)][_0x367e49(0x3ca)](),this[_0x367e49(0x24d)]['forEach'](_0x1a0afb=>_0x1a0afb[_0x367e49(0x3cc)]()),this[_0x367e49(0x24d)]['clear'](),this[_0x367e49(0x131)][_0x367e49(0x3ca)](),this['_status$'][_0x367e49(0x10e)]();}async[_0x3bc608(0x303)](_0x4fdf66,_0x3be25c){const _0x4dc523=_0x3bc608;if(this[_0x4dc523(0x3f1)](),this[_0x4dc523(0x24d)]['has'](_0x4fdf66))return this[_0x4dc523(0x24d)][_0x4dc523(0x119)](_0x4fdf66);let _0x6df233=this['_pendingSessions'][_0x4dc523(0x119)](_0x4fdf66);if(_0x6df233)return _0x6df233;let _0x27707e=this['_createSession'](_0x4fdf66,_0x3be25c);this['_pendingSessions']['set'](_0x4fdf66,_0x27707e);try{return await _0x27707e;}finally{this['_pendingSessions']['delete'](_0x4fdf66);}}async['_createSession'](_0x4c8a1e,_0x156149){const _0x511a58=_0x3bc608;let _0x554346=await this[_0x511a58(0x1de)](_0x4c8a1e,_0x156149),_0x47d154=this['_getSocketChannel'](_0x554346[_0x511a58(0x1f4)][_0x511a58(0x295)]);this[_0x511a58(0x30f)](_0x47d154);let _0xcc221d=this['_injector']['createInstance'](S,_0x554346,_0x47d154[_0x511a58(0x180)][_0x511a58(0x40b)]());return this[_0x511a58(0x24d)][_0x511a58(0x122)](_0x4c8a1e,_0xcc221d),this[_0x511a58(0x131)][_0x511a58(0x122)](_0x4c8a1e,_0x47d154[_0x511a58(0x394)]),_0xcc221d;}[_0x3bc608(0x12e)](_0x43de8e){const _0x100029=_0x3bc608;let _0xecefb3=this[_0x100029(0x24d)][_0x100029(0x119)](_0x43de8e),_0x1e599b=this[_0x100029(0x131)][_0x100029(0x119)](_0x43de8e);if(_0xecefb3&&(this[_0x100029(0x24d)][_0x100029(0x3a1)](_0x43de8e),this[_0x100029(0x131)][_0x100029(0x3a1)](_0x43de8e),_0xecefb3['close']()),_0x1e599b!==void 0x0&&!this[_0x100029(0x2e3)](_0x1e599b)){let _0x1b550b=this[_0x100029(0x3b3)][_0x100029(0x119)](_0x1e599b);_0x1b550b&&this[_0x100029(0x420)](_0x1b550b);}}[_0x3bc608(0x1e3)](){const _0x4621ec=_0x3bc608;(this[_0x4621ec(0x3b3)][_0x4621ec(0x476)]?[...this['_socketChannels'][_0x4621ec(0x220)]()]:[this[_0x4621ec(0x16c)](void 0x0)])[_0x4621ec(0x103)](_0x3d4ba7=>{const _0x13084e=_0x4621ec;!this[_0x13084e(0x2e3)](_0x3d4ba7[_0x13084e(0x394)])||_0x3d4ba7['socketReady']||_0x3d4ba7[_0x13084e(0x105)]||_0x3d4ba7['connectionAttempt']||(_0x3d4ba7[_0x13084e(0x2fb)]=0x0,this[_0x13084e(0x281)](_0x3d4ba7),this[_0x13084e(0x456)](_0x3d4ba7));});}[_0x3bc608(0x281)](_0x15f85b){const _0x4ad3e3=_0x3bc608;_0x15f85b[_0x4ad3e3(0x309)]!=null&&(clearTimeout(_0x15f85b[_0x4ad3e3(0x309)]),_0x15f85b[_0x4ad3e3(0x309)]=null);}[_0x3bc608(0x191)](_0xbb1d0){const _0x40891a=_0x3bc608;let _0x32e885=this[_0x40891a(0x430)][_0x40891a(0x2de)](m),_0x18786f=_0xbb1d0[_0x40891a(0x295)]??(_0x32e885==null?void 0x0:_0x32e885[_0x40891a(0x2b6)])??'ws://127.0.0.1:8000/universer-api/comb/connect';return this[_0x40891a(0x466)][_0x40891a(0x20d)](_0x18786f);}async[_0x3bc608(0x30f)](_0x21b534){const _0x38bde0=_0x3bc608;var _0x1239c7;if(this[_0x38bde0(0x14d)]||((_0x1239c7=this['_networkConditionService'])==null?void 0x0:_0x1239c7[_0x38bde0(0x27b)])===!0x1||_0x21b534[_0x38bde0(0x16b)]||_0x21b534[_0x38bde0(0x105)]||_0x21b534[_0x38bde0(0x2e4)])return;let _0x32fd16={};_0x21b534[_0x38bde0(0x2e4)]=_0x32fd16;try{let _0x562962=await this['_createSocket'](_0x21b534);if(this[_0x38bde0(0x14d)]||_0x21b534[_0x38bde0(0x2e4)]!==_0x32fd16){_0x562962==null||_0x562962[_0x38bde0(0x45c)]();return;}if(_0x562962){var _0xe03267;_0x21b534[_0x38bde0(0x105)]=_0x562962,_0x21b534['handshakeTimer']=setTimeout(()=>{const _0x340799=_0x38bde0;!this[_0x340799(0x14d)]&&_0x21b534[_0x340799(0x105)]===_0x562962&&this[_0x340799(0x2d9)](_0x21b534);},0x4e20);let _0x372b28=_0x562962[_0x38bde0(0x153)];_0x562962[_0x38bde0(0x153)]=(_0x494f74,_0x4a36be)=>{const _0x4cb1dc=_0x38bde0;_0x494f74[_0x4cb1dc(0x1e9)]!==o[_0x4cb1dc(0x162)][_0x4cb1dc(0x37e)]&&!tt(_0x494f74)&&_0x21b534[_0x4cb1dc(0x16b)]&&_0x21b534[_0x4cb1dc(0x180)][_0x4cb1dc(0x39a)]()===_0x562962&&this[_0x4cb1dc(0x243)](_0x21b534);let _0x2a4481=_0x4a36be===void 0x0?_0x372b28[_0x4cb1dc(0x1e2)](_0x562962,_0x494f74):_0x372b28['call'](_0x562962,_0x494f74,_0x4a36be);return _0x2a4481 instanceof Promise&&_0x2a4481['catch'](_0x313381=>{const _0x4b9b87=_0x4cb1dc;nt(_0x313381)&&_0x21b534[_0x4b9b87(0x180)][_0x4b9b87(0x39a)]()===_0x562962&&this['_onLicenseRejected'](_0x21b534);}),_0x2a4481;},(_0xe03267=_0x21b534[_0x38bde0(0x1e4)])==null||_0xe03267[_0x38bde0(0x2e2)]();let _0x4fd32a=new t[(_0x38bde0(0x132))]();_0x21b534[_0x38bde0(0x1e4)]=_0x4fd32a,_0x4fd32a[_0x38bde0(0x467)](_0x562962['message$']['subscribe'](_0x4e3ea0=>this['_onMessage'](_0x21b534,_0x562962,_0x4e3ea0))),_0x4fd32a['add'](_0x562962[_0x38bde0(0x115)][_0x38bde0(0x1d6)]((0x0,c['take'])(0x1))[_0x38bde0(0x2ad)](_0x625c20=>this['_logService'][_0x38bde0(0x3a2)]('[CollaborationSessionService]:\x20socket\x20error',_0x625c20))),_0x4fd32a[_0x38bde0(0x467)](_0x562962[_0x38bde0(0xee)]['pipe']((0x0,c['take'])(0x1))['subscribe'](()=>{const _0xca4f5e=_0x38bde0;this[_0xca4f5e(0x183)](_0x21b534,_0x562962);})),_0x4fd32a[_0x38bde0(0x467)](_0x562962[_0x38bde0(0x23e)][_0x38bde0(0x1d6)]((0x0,c['take'])(0x1))['subscribe'](_0x5104c8=>{const _0x239276=_0x38bde0;(_0x21b534[_0x239276(0x105)]===_0x562962||_0x21b534['socket$'][_0x239276(0x39a)]()===_0x562962)&&(this['_logService'][_0x239276(0x3eb)](_0x239276(0x48a),_0x239276(0x130),_0x5104c8),this[_0x239276(0x2d9)](_0x21b534));}));}}catch(_0xaf68e5){if(_0x21b534[_0x38bde0(0x2e4)]!==_0x32fd16)return;if(nt(_0xaf68e5)){this['_onLicenseRejected'](_0x21b534);return;}this['_logService'][_0x38bde0(0x3a2)](_0xaf68e5),this[_0x38bde0(0x2d9)](_0x21b534);}finally{_0x21b534[_0x38bde0(0x2e4)]===_0x32fd16&&(_0x21b534[_0x38bde0(0x2e4)]=null);}}[_0x3bc608(0x183)](_0x398e0a,_0x5ee960){const _0x4dc314=_0x3bc608;this[_0x4dc314(0x14d)]||_0x398e0a[_0x4dc314(0x105)]!==_0x5ee960||(this[_0x4dc314(0x2bc)][_0x4dc314(0x3eb)](_0x4dc314(0x48a),'socket\x20open.'),_0x5ee960[_0x4dc314(0x153)]({'cmd':o[_0x4dc314(0x162)][_0x4dc314(0x454)]}));}[_0x3bc608(0x420)](_0x1f062f){const _0x5d7fb6=_0x3bc608;var _0x48d908;let _0x56e956=_0x1f062f['socket$']['getValue']()??_0x1f062f[_0x5d7fb6(0x105)];_0x1f062f['connectionAttempt']=null,_0x1f062f['socketReady']=!0x1,_0x1f062f[_0x5d7fb6(0x105)]=null,(_0x48d908=_0x1f062f[_0x5d7fb6(0x1e4)])==null||_0x48d908[_0x5d7fb6(0x2e2)](),_0x1f062f['socketSubscription']=null,this[_0x5d7fb6(0x14f)][_0x5d7fb6(0x33a)](0x2),_0x1f062f[_0x5d7fb6(0x180)]['next'](null),this['_clearRetryConnectingTimer'](_0x1f062f),this[_0x5d7fb6(0x1c1)](_0x1f062f),this['_clearTimeoutTimer'](_0x1f062f),this[_0x5d7fb6(0x42f)](_0x1f062f),_0x56e956==null||_0x56e956[_0x5d7fb6(0x45c)]();}[_0x3bc608(0x47f)](_0x919703){const _0x21db7b=_0x3bc608;this[_0x21db7b(0x420)](_0x919703),this[_0x21db7b(0x1fe)]['emitEvent']({'id':_0x21db7b(0x367)});}[_0x3bc608(0x2d9)](_0x51a6f1){const _0x3d8b9f=_0x3bc608;var _0x44b807;this[_0x3d8b9f(0x420)](_0x51a6f1),!this[_0x3d8b9f(0x14d)]&&((_0x44b807=this[_0x3d8b9f(0x2b8)])==null?void 0x0:_0x44b807[_0x3d8b9f(0x27b)])!==!0x1&&this[_0x3d8b9f(0x2e3)](_0x51a6f1[_0x3d8b9f(0x394)])&&(_0x51a6f1[_0x3d8b9f(0x2fb)]<(this[_0x3d8b9f(0x430)][_0x3d8b9f(0x2de)](_0x3d8b9f(0x3d0))??0x3)?(this[_0x3d8b9f(0x1fe)]['emitEvent']({'id':_0x3d8b9f(0x471)}),this[_0x3d8b9f(0x456)](_0x51a6f1)):this['_collaborationUIEventService'][_0x3d8b9f(0x2d0)]({'id':_0x3d8b9f(0x125)}));}[_0x3bc608(0x456)](_0x3b8e48){const _0x54cc30=_0x3bc608;let _0x5c54cc=_0x3b8e48[_0x54cc30(0x2fb)],_0x27355d=this[_0x54cc30(0x430)][_0x54cc30(0x2de)](m),_0xde770a=_0x5c54cc===0x0?0x0:((_0x27355d==null?void 0x0:_0x27355d[_0x54cc30(0x192)])??0x4e20)*0x2**_0x5c54cc;_0x3b8e48[_0x54cc30(0x309)]=setTimeout(()=>{const _0x32c4ca=_0x54cc30;clearTimeout(_0x3b8e48[_0x32c4ca(0x309)]),_0x3b8e48[_0x32c4ca(0x309)]=null,this[_0x32c4ca(0x30f)](_0x3b8e48);},_0xde770a),_0x3b8e48['retryCount']+=0x1;}async['_resolveSessionIdentity'](_0x37fcb0,_0x10e606){const _0x204352=_0x3bc608;return et(_0x37fcb0,_0x10e606,await this[_0x204352(0x320)][_0x204352(0x273)]({'unitId':_0x37fcb0,'unitType':_0x10e606}));}[_0x3bc608(0x37d)](_0x3f0f08,_0x2a8c22,_0x27ee36){const _0x17f87b=_0x3bc608;if(this[_0x17f87b(0x14d)]||_0x3f0f08['candidateSocket']!==_0x2a8c22&&_0x3f0f08[_0x17f87b(0x180)][_0x17f87b(0x39a)]()!==_0x2a8c22)return;let {cmd:_0x5d915d}=_0x27ee36;if(_0x5d915d===o[_0x17f87b(0x162)][_0x17f87b(0x454)]&&!_0x3f0f08[_0x17f87b(0x16b)]){var _0x317c82;if((_0x27ee36[_0x17f87b(0x3e2)]??o['CmdRspCode']['OK'])!==o['CmdRspCode']['OK']||!((_0x317c82=_0x27ee36[_0x17f87b(0x34b)])!=null&&_0x317c82[_0x17f87b(0x28c)])){this[_0x17f87b(0x2d9)](_0x3f0f08);return;}this[_0x17f87b(0x1c1)](_0x3f0f08),_0x2a8c22['memberID']=_0x27ee36[_0x17f87b(0x34b)][_0x17f87b(0x28c)],_0x3f0f08['retryCount']=0x0,_0x3f0f08['socketReady']=!0x0,_0x3f0f08[_0x17f87b(0x105)]=null,_0x3f0f08[_0x17f87b(0x180)][_0x17f87b(0x33a)](_0x2a8c22),this[_0x17f87b(0x14f)][_0x17f87b(0x33a)](0x3);}_0x5d915d===o[_0x17f87b(0x162)][_0x17f87b(0x228)]&&this[_0x17f87b(0x17a)](_0x3f0f08),this['_rescheduleHeartbeat'](_0x3f0f08);}[_0x3bc608(0x2e3)](_0x5b2a6a){const _0x2f896e=_0x3bc608;return[...this[_0x2f896e(0x131)][_0x2f896e(0x220)]()]['some'](_0x1caae6=>_0x1caae6===_0x5b2a6a);}[_0x3bc608(0x16c)](_0xc75d38){const _0x3ceba1=_0x3bc608;let _0x351ed2=_0xc75d38??'',_0x52ba3a=this[_0x3ceba1(0x3b3)][_0x3ceba1(0x119)](_0x351ed2);if(_0x52ba3a)return _0x52ba3a;let _0x2d766b={'endpointKey':_0x351ed2,'endpoint':_0xc75d38,'socket$':new t[(_0x3ceba1(0x249))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this['_socketChannels'][_0x3ceba1(0x122)](_0x351ed2,_0x2d766b),_0x2d766b;}[_0x3bc608(0x1c1)](_0x56ec92){const _0x57fbb6=_0x3bc608;_0x56ec92[_0x57fbb6(0xf5)]!=null&&(clearTimeout(_0x56ec92[_0x57fbb6(0xf5)]),_0x56ec92[_0x57fbb6(0xf5)]=null);}['_rescheduleHeartbeat'](_0x2b615e){const _0x199fa1=_0x3bc608;this[_0x199fa1(0x42f)](_0x2b615e),_0x2b615e['socketReady']&&(_0x2b615e[_0x199fa1(0x277)]=setTimeout(()=>this[_0x199fa1(0x2e7)](_0x2b615e),this[_0x199fa1(0x430)]['getConfig']('HEARTBEAT_INTERVAL')??0x7530));}[_0x3bc608(0x2e7)](_0x4cff29){const _0x8feda0=_0x3bc608;let _0x1496e0=_0x4cff29['socket$']['getValue']();_0x4cff29[_0x8feda0(0x16b)]&&_0x1496e0&&(_0x1496e0[_0x8feda0(0x153)]({'cmd':o[_0x8feda0(0x162)][_0x8feda0(0x228)]}),this[_0x8feda0(0x3b5)](_0x4cff29));}['_waitForHeartbeatResponse'](_0x3f0d4a){const _0x2004dc=_0x3bc608;_0x3f0d4a[_0x2004dc(0x35d)]=setTimeout(()=>this['_onConnectionFailed'](_0x3f0d4a),this[_0x2004dc(0x430)]['getConfig'](_0x2004dc(0x460))??0x4e20);}[_0x3bc608(0x42f)](_0x55d62c){const _0x42179c=_0x3bc608;_0x55d62c[_0x42179c(0x277)]!=null&&(clearTimeout(_0x55d62c[_0x42179c(0x277)]),_0x55d62c[_0x42179c(0x277)]=null);}[_0x3bc608(0x17a)](_0x42f84e){const _0xe055d8=_0x3bc608;_0x42f84e[_0xe055d8(0x35d)]!=null&&(clearTimeout(_0x42f84e[_0xe055d8(0x35d)]),_0x42f84e['timeoutTimer']=null);}};U=b([y(0x0,(0x0,r['Inject'])(r[_0x3bc608(0x3c2)])),y(0x1,r['ILogService']),y(0x2,r[_0x3bc608(0x190)]),y(0x3,Je),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(v)),y(0x5,Qe)],U);function tt(_0x3e8843){const _0x1b08c4=_0x3bc608;if(_0x3e8843[_0x1b08c4(0x1e9)]!==o['CombCmd'][_0x1b08c4(0x496)])return!0x1;let _0x6bde=_0x3e8843[_0x1b08c4(0x34b)][_0x1b08c4(0x1e5)];return _0x6bde===n[_0x1b08c4(0x1be)][_0x1b08c4(0x47b)]||_0x6bde===n[_0x1b08c4(0x1be)][_0x1b08c4(0x3d4)];}function nt(_0x52f37d){const _0x53d741=_0x3bc608;var _0x3a2de2;if(!(_0x52f37d instanceof e[_0x53d741(0x19b)])||_0x52f37d[_0x53d741(0x1eb)]!==0x193)return!0x1;let _0x595086=_0x52f37d[_0x53d741(0x3a2)];return(_0x595086==null||(_0x3a2de2=_0x595086[_0x53d741(0x3a2)])==null?void 0x0:_0x3a2de2['code'])===o[_0x53d741(0x43c)][_0x53d741(0x367)];}let W=class extends r['RxDisposable']{constructor(_0x10a4c2,_0x1c9e66,_0x517c74,_0xa70e72){const _0xac7ca2=_0x3bc608;var _0x4406ad;super(),this['_injector']=_0x10a4c2,this[_0xac7ca2(0x267)]=_0x1c9e66,this[_0xac7ca2(0x430)]=_0x517c74,this[_0xac7ca2(0x414)]=_0xa70e72,_(this,_0xac7ca2(0x201),new Map()),_(this,_0xac7ca2(0x1fa),new t[(_0xac7ca2(0x1a3))]()),_(this,'entityInit$',this['_entityInit$'][_0xac7ca2(0x40b)]()),((_0x4406ad=this[_0xac7ca2(0x430)]['getConfig']('collaboration-client.config'))==null?void 0x0:_0x4406ad['enableCollaboration'])!==!0x1&&this[_0xac7ca2(0x186)]();}[_0x3bc608(0x3cc)](){const _0x1a3370=_0x3bc608;super[_0x1a3370(0x3cc)](),this[_0x1a3370(0x201)][_0x1a3370(0x103)](_0x59d95f=>_0x59d95f[_0x1a3370(0x3cc)]()),this['_entities'][_0x1a3370(0x3ca)]();}[_0x3bc608(0x481)](_0x1006b2){const _0x197cf3=_0x3bc608;return this['_entities'][_0x197cf3(0x119)](_0x1006b2)??null;}[_0x3bc608(0x102)](){const _0x4d9149=_0x3bc608;return Array[_0x4d9149(0x32f)](this[_0x4d9149(0x201)][_0x4d9149(0x220)]());}['getCollabEntity$'](_0xe6af25){const _0x4fac16=_0x3bc608;let _0x31c850=this[_0x4fac16(0x481)](_0xe6af25);return _0x31c850?(0x0,t['of'])(_0x31c850):this[_0x4fac16(0x1fa)][_0x4fac16(0x1d6)]((0x0,c[_0x4fac16(0x43f)])(_0xbb6ac4=>_0xbb6ac4[_0x4fac16(0x29f)]===_0xe6af25));}[_0x3bc608(0x135)](_0x17b2e0){const _0x1758ac=_0x3bc608;return(0x0,t[_0x1758ac(0x235)])(this[_0x1758ac(0x137)](_0x17b2e0)['pipe']((0x0,c[_0x1758ac(0x222)])(()=>void 0x0)));}['hasWritePending'](_0x4e9a4b){const _0x27e995=_0x3bc608;if(_0x4e9a4b!==void 0x0){var _0x4cbb08;return((_0x4cbb08=this[_0x27e995(0x201)][_0x27e995(0x119)](_0x4e9a4b))==null?void 0x0:_0x4cbb08[_0x27e995(0x28a)]())??!0x1;}for(let _0x195e43 of this[_0x27e995(0x201)][_0x27e995(0x220)]())if(_0x195e43['hasWritePending']())return!0x0;return!0x1;}['_init'](){const _0x1ecbbd=_0x3bc608;this[_0x1ecbbd(0x414)]['getTypeOfUnitAdded$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0xf2)])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0x45e6c4=>{const _0x48c7c1=_0x1ecbbd;let _0x52d033=_0x45e6c4[_0x48c7c1(0x307)][_0x48c7c1(0x363)](),_0x26f879=await this[_0x48c7c1(0x45e)](_0x52d033,r[_0x48c7c1(0x403)][_0x48c7c1(0xf2)]);this[_0x48c7c1(0x201)]['set'](_0x52d033,_0x26f879);}),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x2f6)](r['UniverInstanceType'][_0x1ecbbd(0x2c2)])['pipe']((0x0,t[_0x1ecbbd(0x3bb)])(this['dispose$']),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x1d6)]((0x0,c[_0x1ecbbd(0x43f)])(_0x20eb1d=>!_0x20eb1d[_0x1ecbbd(0x307)]['getUnitId']()[_0x1ecbbd(0x43b)]('__')))[_0x1ecbbd(0x2ad)](async _0x52344c=>{const _0x4e2afc=_0x1ecbbd;let _0x2de732=_0x52344c['unit']['getUnitId'](),_0xd1e41f=await this[_0x4e2afc(0x45e)](_0x2de732,r[_0x4e2afc(0x403)]['UNIVER_DOC']);this[_0x4e2afc(0x201)][_0x4e2afc(0x122)](_0x2de732,_0xd1e41f);}),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x2f6)](r[_0x1ecbbd(0x403)]['UNIVER_SLIDE'])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0x3f0b71=>{const _0x41f2f1=_0x1ecbbd;let _0x2b049b=_0x3f0b71[_0x41f2f1(0x307)]['getUnitId'](),_0x4d637d=await this[_0x41f2f1(0x45e)](_0x2b049b,r[_0x41f2f1(0x403)][_0x41f2f1(0x1ab)]);this[_0x41f2f1(0x201)][_0x41f2f1(0x122)](_0x2b049b,_0x4d637d);}),this[_0x1ecbbd(0x414)]['getTypeOfUnitAdded$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x398)])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this['dispose$']),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0xb1599d=>{const _0x5e8a06=_0x1ecbbd;let _0x41a719=_0xb1599d[_0x5e8a06(0x307)]['getUnitId'](),_0x5675c2=await this[_0x5e8a06(0x45e)](_0x41a719,r[_0x5e8a06(0x403)][_0x5e8a06(0x398)]);this[_0x5e8a06(0x201)]['set'](_0x41a719,_0x5675c2);}),this[_0x1ecbbd(0x414)]['getTypeOfUnitAdded$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x2c4)])[_0x1ecbbd(0x1d6)]((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))['subscribe'](async _0x5bea02=>{const _0x18990a=_0x1ecbbd;let _0x21944c=_0x5bea02['unit'][_0x18990a(0x363)](),_0x419d95=await this[_0x18990a(0x45e)](_0x21944c,r[_0x18990a(0x403)][_0x18990a(0x2c4)]);this[_0x18990a(0x201)][_0x18990a(0x122)](_0x21944c,_0x419d95);}),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x2f6)](r[_0x1ecbbd(0x403)]['UNIVER_PDF'])['pipe']((0x0,t[_0x1ecbbd(0x3bb)])(this[_0x1ecbbd(0x187)]),(0x0,c[_0x1ecbbd(0x30c)])(0x10))[_0x1ecbbd(0x2ad)](async _0x49e4df=>{const _0x57606f=_0x1ecbbd;let _0x598f1a=_0x49e4df[_0x57606f(0x307)]['getUnitId'](),_0x42f51e=await this['_startCollaboration'](_0x598f1a,r[_0x57606f(0x403)]['UNIVER_PDF']);this[_0x57606f(0x201)][_0x57606f(0x122)](_0x598f1a,_0x42f51e);}),(0x0,t[_0x1ecbbd(0x22a)])(this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r[_0x1ecbbd(0x403)]['UNIVER_SHEET']),this[_0x1ecbbd(0x414)]['getTypeOfUnitDisposed$'](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x2c2)]),this['_univerInstanceService'][_0x1ecbbd(0x343)](r['UniverInstanceType'][_0x1ecbbd(0x1ab)]),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x398)]),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r[_0x1ecbbd(0x403)][_0x1ecbbd(0x2c4)]),this[_0x1ecbbd(0x414)][_0x1ecbbd(0x343)](r['UniverInstanceType'][_0x1ecbbd(0x326)]))['pipe']((0x0,t[_0x1ecbbd(0x3bb)])(this['dispose$']))[_0x1ecbbd(0x2ad)](_0x4005da=>{const _0x1c3435=_0x1ecbbd;let _0x1599c6=_0x4005da[_0x1c3435(0x363)](),_0x3e5d5c=this['_entities'][_0x1c3435(0x119)](_0x1599c6);_0x3e5d5c&&(_0x3e5d5c[_0x1c3435(0x3cc)](),this[_0x1c3435(0x201)][_0x1c3435(0x3a1)](_0x1599c6));});}async['_startCollaboration'](_0x135a2f,_0xc83675){const _0x370c56=_0x3bc608;let _0x4a3723=await this[_0x370c56(0x267)][_0x370c56(0x303)](_0x135a2f),_0x1a3bad=this['_injector'][_0x370c56(0x169)](this[_0x370c56(0x24a)](_0xc83675),_0x135a2f,_0xc83675,_0x4a3723);return await _0x1a3bad[_0x370c56(0x17e)](),this['_entityInit$'][_0x370c56(0x33a)](_0x1a3bad),_0x1a3bad;}['_getCtorByUniverInstanceType'](_0x56a371){const _0x4a37bf=_0x3bc608;switch(_0x56a371){case r[_0x4a37bf(0x403)]['UNIVER_DOC']:return L;case r[_0x4a37bf(0x403)][_0x4a37bf(0xf2)]:return z;case r['UniverInstanceType'][_0x4a37bf(0x1ab)]:return B;case r[_0x4a37bf(0x403)]['UNIVER_BOARD']:return V;case r[_0x4a37bf(0x403)][_0x4a37bf(0x2c4)]:return R;case r[_0x4a37bf(0x403)]['UNIVER_PDF']:return H;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x56a371);}}};W=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(U)),y(0x2,r['IConfigService']),y(0x3,r[_0x3bc608(0x260)])],W);var rt='@univerjs-pro/collaboration-client',it='1.3.0';let at=class extends r[_0x3bc608(0x358)]{constructor(_0x42f10a,_0x4a7168){const _0x5232b6=_0x3bc608;super(),this[_0x5232b6(0x414)]=_0x42f10a,this[_0x5232b6(0x430)]=_0x4a7168,this[_0x5232b6(0x186)]();}[_0x3bc608(0x186)](){const _0x17dc29=_0x3bc608;this[_0x17dc29(0x24c)](this[_0x17dc29(0x414)][_0x17dc29(0x377)]['subscribe'](()=>{const _0x486894=_0x17dc29;let _0x3331a0=this[_0x486894(0x414)][_0x486894(0x117)](),_0x5aefc8=this[_0x486894(0x430)][_0x486894(0x2de)](_0x486894(0x48c))??_0x486894(0x136);_0x3331a0 instanceof r['Workbook']&&(_0x5aefc8=_0x3331a0['name']),document[_0x486894(0x254)]=_0x5aefc8;}));}};at=b([y(0x0,r[_0x3bc608(0x260)]),y(0x1,r[_0x3bc608(0x190)])],at);const ot=(0x0,r[_0x3bc608(0x2e1)])('base-ui.attachment-io.service');let G=class{constructor(_0x42c1ac,_0x6cf2c,_0x285888){const _0x478029=_0x3bc608;this[_0x478029(0x499)]=_0x42c1ac,this[_0x478029(0x430)]=_0x6cf2c,this[_0x478029(0x414)]=_0x285888;}['getUploadOptions'](){const _0x541c08=_0x3bc608;return this[_0x541c08(0x3ab)]()['attachment']??{};}async[_0x3bc608(0x2a4)](_0x58d2fd){const _0x444961=_0x3bc608;let _0x38dccc=this[_0x444961(0x204)]();if(st(_0x58d2fd,_0x38dccc),_0x38dccc['upload'])return _0x38dccc[_0x444961(0x123)](_0x58d2fd);let _0x2dea99=await this[_0x444961(0x23f)](_0x58d2fd);return{'id':_0x2dea99,'name':_0x58d2fd[_0x444961(0x142)],'mimeType':_0x58d2fd[_0x444961(0x48f)],'size':_0x58d2fd[_0x444961(0x476)],'sourceType':r[_0x444961(0x44c)][_0x444961(0x495)],'source':_0x2dea99};}async[_0x3bc608(0x230)](_0x58c4c2,_0xe5aca4){const _0x1b47cc=_0x3bc608;if(_0xe5aca4!==r[_0x1b47cc(0x44c)][_0x1b47cc(0x495)])return _0x58c4c2;let _0x41da6a=(await this[_0x1b47cc(0x499)][_0x1b47cc(0x119)](this[_0x1b47cc(0x2ac)]()[_0x1b47cc(0x382)](_0x1b47cc(0x1cd),_0x58c4c2)))[_0x1b47cc(0x28e)];if(_0x41da6a['error']&&_0x41da6a['error'][_0x1b47cc(0x3e2)]!==o['ErrorCode']['OK'])throw _0x41da6a['error'];if(!_0x41da6a['url'])throw Error('[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.');return(0x0,r[_0x1b47cc(0x2db)])(_0x41da6a[_0x1b47cc(0x19c)],this[_0x1b47cc(0x317)]());}async['_upload'](_0x245764){const _0x7cdcf4=_0x3bc608;let _0x4c0eaf=this[_0x7cdcf4(0x414)][_0x7cdcf4(0x117)](),_0x23dcb2=_0x4c0eaf==null?void 0x0:_0x4c0eaf['getUnitId']();if(!_0x23dcb2)throw Error(_0x7cdcf4(0x458));let _0x3574ef=new FormData();_0x3574ef['append'](_0x7cdcf4(0x3d2),_0x245764);let _0x2ec945=this[_0x7cdcf4(0x22b)]()+_0x7cdcf4(0x3ba)+_0x245764[_0x7cdcf4(0x476)][_0x7cdcf4(0x462)]()+_0x7cdcf4(0x209)+o[_0x7cdcf4(0x21f)][_0x7cdcf4(0x3a9)]+_0x7cdcf4(0x19d)+encodeURIComponent(_0x23dcb2),_0x2adef3=(await this[_0x7cdcf4(0x499)]['post'](_0x2ec945,{'body':_0x3574ef}))['body'][_0x7cdcf4(0x2bf)];if(typeof _0x2adef3!='string'||!_0x2adef3)throw Error(_0x7cdcf4(0x439));return _0x2adef3;}[_0x3bc608(0x22b)](){const _0x2baa5e=_0x3bc608;return this[_0x2baa5e(0x3ab)]()[_0x2baa5e(0x396)]??'/universer-api/stream/file/upload';}[_0x3bc608(0x2ac)](){const _0x2892eb=_0x3bc608;return this[_0x2892eb(0x3ab)]()[_0x2892eb(0x266)]??_0x2892eb(0x402);}[_0x3bc608(0x317)](){const _0x2c46d1=_0x3bc608;let _0x29a670=this[_0x2c46d1(0x3ab)]();return _0x29a670[_0x2c46d1(0x2fc)]?_0x29a670[_0x2c46d1(0x2fc)]:typeof location<'u'?location[_0x2c46d1(0x2b4)]:_0x29a670[_0x2c46d1(0x396)]??'';}['_getConfig'](){const _0x177a52=_0x3bc608;return this['_configService'][_0x177a52(0x2de)](_0x177a52(0x2f1))??{};}};G=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e['HTTPService'])),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(r['IConfigService'])),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x260)]))],G);function st(_0x5d170d,_0x37dec6){const _0x444795=_0x3bc608;var _0x224743;if(_0x37dec6['maxSize']!=null&&_0x5d170d['size']>_0x37dec6[_0x444795(0x110)])throw Error(_0x444795(0x355));if((_0x224743=_0x37dec6['accept'])!=null&&_0x224743[_0x444795(0x16e)]&&!_0x37dec6[_0x444795(0x376)][_0x444795(0x3fc)](_0x4a02bf=>_0x5d170d[_0x444795(0x48f)]===_0x4a02bf||_0x5d170d['name'][_0x444795(0x240)](_0x4a02bf)||_0x4a02bf[_0x444795(0x240)]('/*')&&_0x5d170d[_0x444795(0x48f)]['startsWith'](_0x4a02bf[_0x444795(0x1a1)](0x0,-0x1))))throw Error(_0x444795(0x302));}let K=class{constructor(_0x182553,_0x2c33e0,_0x26ff42){const _0x3ace32=_0x3bc608;this[_0x3ace32(0x430)]=_0x182553,this['_httpService']=_0x2c33e0,this[_0x3ace32(0x3ed)]=_0x26ff42,this[_0x3ace32(0x17e)]();}[_0x3bc608(0x17e)](){const _0x588b36=_0x3bc608;this[_0x588b36(0x499)]['registerHTTPInterceptor']({'priority':0x1,'interceptor':(_0x2af238,_0xc43243)=>_0xc43243(_0x2af238)[_0x588b36(0x1d6)]((0x0,t[_0x588b36(0x3fb)])(async _0x2c58c3=>{const _0x4fad8e=_0x588b36;let _0x314271=_0x2c58c3;if(_0x314271[_0x4fad8e(0x1eb)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x4fad8e(0x30b)](this[_0x4fad8e(0x3ed)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x3f9f8d=window['encodeURIComponent'](window[_0x4fad8e(0x42a)][_0x4fad8e(0x3d3)]);window['location']['href']=this['_getLoginPath']()+_0x4fad8e(0x1ac)+_0x3f9f8d;}}return _0x314271;}))});}[_0x3bc608(0x3b4)](){const _0xc5615b=_0x3bc608;let _0x1ff679=this[_0xc5615b(0x430)][_0xc5615b(0x2de)](m);return(_0x1ff679==null?void 0x0:_0x1ff679[_0xc5615b(0x163)])??_0xc5615b(0x188);}};K=b([y(0x0,r[_0x3bc608(0x190)]),y(0x1,(0x0,r['Inject'])(e[_0x3bc608(0xff)])),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x2ea)]))],K);let q=class extends r[_0x3bc608(0x358)]{constructor(_0x464e5b,_0x25e359){const _0x1545bc=_0x3bc608;super(),this[_0x1545bc(0x3a0)]=_0x464e5b,this[_0x1545bc(0x430)]=_0x25e359,_(this,_0x1545bc(0x316),!0x1),this[_0x1545bc(0x233)]();}['_initMergeInterceptor'](){const _0x4cf7cc=_0x3bc608;let _0x584bdd=this;this[_0x4cf7cc(0x24c)](this[_0x4cf7cc(0x3a0)]['registerHTTPInterceptor']({'priority':0x3e7,'interceptor':(0x0,e[_0x4cf7cc(0x1cb)])({'isMatch'(_0x40230c){const _0x436690=_0x4cf7cc;var _0x429751;if(_0x40230c[_0x436690(0x383)]==='POST'&&(_0x429751=_0x40230c[_0x436690(0x244)])!=null&&_0x429751['body']){let {objectID:_0x3fc495,objectType:_0x4736b1}=_0x40230c['requestParams'][_0x436690(0x28e)]||{};if(!_0x3fc495||_0x4736b1===void 0x0)return!0x1;let _0x5af9ee=_0x584bdd[_0x436690(0x1a9)]()+'/'+_0x4736b1+_0x436690(0x126)+encodeURIComponent(_0x3fc495)+'/allowed';if(_0x40230c['url']===_0x5af9ee)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x53a63a){const _0x231a0f=_0x4cf7cc;var _0x1efef1;return(_0x1efef1=_0x53a63a[_0x231a0f(0x244)])==null?void 0x0:_0x1efef1[_0x231a0f(0x28e)];},'mergeParamsToRequest'(_0x4f0ee4,_0xfc7e5a){const _0x14219c=_0x4cf7cc;let _0x5705bc=_0x584bdd[_0x14219c(0x1a9)]()+_0x14219c(0x370),_0x72356=_0x4f0ee4['reduce']((_0x547123,_0x1ffa65)=>{const _0x2054f8=_0x14219c;let {unitID:_0x4a1d12,objectID:_0x4392b7,objectType:_0x292739,actions:_0x272cb8}=_0x1ffa65;return _0x547123[_0x4a1d12]||(_0x547123[_0x4a1d12]=Object[_0x2054f8(0x160)](null)),_0x547123[_0x4a1d12][_0x4392b7]||(_0x547123[_0x4a1d12][_0x4392b7]={'objectID':_0x4392b7,'objectType':_0x292739,'actions':[]}),_0x547123[_0x4a1d12][_0x4392b7][_0x2054f8(0x33d)][_0x2054f8(0x13a)](..._0x272cb8),_0x547123;},Object['create'](null)),_0x517362=[];for(let _0x2477e8 in _0x72356)for(let _0x4a8da8 in _0x72356[_0x2477e8]){let {actions:_0x15329f,objectType:_0x40c892}=_0x72356[_0x2477e8][_0x4a8da8],_0x4844e5=[...new Set(_0x15329f)];_0x517362['push']({'unitID':_0x2477e8,'objectID':_0x4a8da8,'objectType':_0x40c892,'actions':_0x4844e5});}return new e['HTTPRequest']('POST',_0x5705bc,{'headers':_0xfc7e5a[_0x14219c(0x36f)],'withCredentials':_0xfc7e5a[_0x14219c(0x37a)],'responseType':_0xfc7e5a[_0x14219c(0x26a)],'body':{'requests':_0x517362}});}},{'distributeResult'(_0x5c3e66,_0x5429a1){const _0x1128bb=_0x4cf7cc;let {objectActions:_0x2569bb}=_0x5c3e66;return _0x5429a1[_0x1128bb(0x222)](_0x5deacd=>{const _0x3a3eb1=_0x1128bb;let {unitID:_0x4638b0,objectID:_0x44b362,actions:_0x1ca8f1}=_0x5deacd,_0xfa04ac=_0x2569bb[_0x3a3eb1(0xf9)](_0x211313=>_0x211313[_0x3a3eb1(0x29f)]===_0x4638b0&&_0x211313[_0x3a3eb1(0x282)]===_0x44b362);return{'config':_0x5deacd,'result':{'actions':_0x1ca8f1['map'](_0x52fce9=>_0xfa04ac==null?void 0x0:_0xfa04ac[_0x3a3eb1(0x33d)][_0x3a3eb1(0xf9)](_0x50d6b9=>_0x50d6b9[_0x3a3eb1(0x3f7)]===_0x52fce9))[_0x3a3eb1(0x43f)](_0x4a93e1=>!!_0x4a93e1),'error':_0x5c3e66[_0x3a3eb1(0x3a2)]}};});}})}));}[_0x3bc608(0x1a9)](){const _0x5da955=_0x3bc608;let _0x4d50dc=this[_0x5da955(0x430)][_0x5da955(0x2de)](m);return(_0x4d50dc==null?void 0x0:_0x4d50dc[_0x5da955(0x39f)])??_0x5da955(0x3bc);}async['create'](_0x75caea){const _0x59bba2=_0x3bc608;let _0x419628=this[_0x59bba2(0x1a9)]()+'/'+_0x75caea[_0x59bba2(0x21e)]+_0x59bba2(0x2ee);return(await this[_0x59bba2(0x3a0)]['post'](_0x419628,{'body':_0x75caea}))[_0x59bba2(0x28e)][_0x59bba2(0x282)]||'';}async[_0x3bc608(0x2af)](_0x25b456){const _0x2d2108=_0x3bc608;let _0x68286=this[_0x2d2108(0x1a9)]()+_0x2d2108(0x327);return(await this[_0x2d2108(0x3a0)][_0x2d2108(0x380)](_0x68286,{'body':_0x25b456}))[_0x2d2108(0x28e)]['objects'];}async['update'](_0xa9cb7){const _0x4c4a82=_0x3bc608;var _0x124fe6;let _0x15e4a7=this[_0x4c4a82(0x1a9)]()+'/'+_0xa9cb7[_0x4c4a82(0x21e)]+_0x4c4a82(0x126)+encodeURIComponent(_0xa9cb7[_0x4c4a82(0x282)]),_0x18ca42=await this[_0x4c4a82(0x3a0)][_0x4c4a82(0x144)](_0x15e4a7,{'body':_0xa9cb7});if((_0x18ca42==null||(_0x124fe6=_0x18ca42[_0x4c4a82(0x28e)])==null||(_0x124fe6=_0x124fe6[_0x4c4a82(0x3a2)])==null?void 0x0:_0x124fe6['code'])!==0x1)throw Error(_0x4c4a82(0x48b));}async['allowed'](_0x129328){const _0x93c752=_0x3bc608;let _0x8c4f6=this[_0x93c752(0x1a9)]()+'/'+_0x129328[_0x93c752(0x21e)]+_0x93c752(0x126)+encodeURIComponent(_0x129328[_0x93c752(0x282)])+_0x93c752(0x2f8);return(await this[_0x93c752(0x3a0)]['post'](_0x8c4f6,{'body':_0x129328}))[_0x93c752(0x28e)][_0x93c752(0x33d)];}async[_0x3bc608(0x3e9)](_0x14e4a9){const _0xad71c4=_0x3bc608;let _0x2a1616=this[_0xad71c4(0x1a9)]()+_0xad71c4(0x370);return(await this[_0xad71c4(0x3a0)][_0xad71c4(0x380)](_0x2a1616,{'body':{'requests':_0x14e4a9}}))[_0xad71c4(0x28e)][_0xad71c4(0x339)];}async[_0x3bc608(0x206)](_0x4e807f){const _0x5e74d9=_0x3bc608;let _0x58f4d7=this['_getAPIPrefixPath']()+'/'+_0x4e807f['objectType']+'/role',_0x5483c6=await this['_HTTPService'][_0x5e74d9(0x380)](_0x58f4d7,{'body':_0x4e807f});return{'roles':_0x5483c6[_0x5e74d9(0x28e)][_0x5e74d9(0x231)],'actions':_0x5483c6[_0x5e74d9(0x28e)][_0x5e74d9(0x33d)]};}async[_0x3bc608(0x2ff)](_0x30c856){const _0x13ba37=_0x3bc608;let _0x45aeea=this['_getAPIPrefixPath']()+'/collaborator';await this[_0x13ba37(0x3a0)]['delete'](_0x45aeea,{'params':{'collaboratorID':_0x30c856[_0x13ba37(0x224)],'objectID':_0x30c856[_0x13ba37(0x282)],'unitID':_0x30c856['unitID']}});}async[_0x3bc608(0x1fb)](_0x52466f){const _0x23deab=_0x3bc608;let _0x11915f=this[_0x23deab(0x1a9)]()+_0x23deab(0x352);await this['_HTTPService'][_0x23deab(0x23b)](_0x11915f,{'body':_0x52466f});}async['createCollaborator'](_0x1e1e7c){const _0x1613b4=_0x3bc608;let _0x459aba=this['_getAPIPrefixPath']()+_0x1613b4(0x352);await this['_HTTPService']['post'](_0x459aba,{'body':_0x1e1e7c});}async[_0x3bc608(0x425)](_0x520427){const _0x27fec3=_0x3bc608;let _0xd0d8b=this[_0x27fec3(0x1a9)]()+_0x27fec3(0x352),_0x32a655=await this['_HTTPService'][_0x27fec3(0x119)](_0xd0d8b,{'params':{'objectID':_0x520427['objectID'],'unitID':_0x520427['unitID']}});return this['setCfgEnableObjInherit'](_0x32a655[_0x27fec3(0x28e)][_0x27fec3(0x470)]??!0x1),_0x32a655['body'][_0x27fec3(0x410)];}async[_0x3bc608(0x3a8)](_0x3e06dc){const _0x28d561=_0x3bc608;let _0x2769f2=this[_0x28d561(0x1a9)]()+_0x28d561(0x352);await this[_0x28d561(0x3a0)][_0x28d561(0x144)](_0x2769f2,{'body':_0x3e06dc});}[_0x3bc608(0x45b)](_0x3c6c8d){const _0x2b0ec4=_0x3bc608;this[_0x2b0ec4(0x316)]=_0x3c6c8d;}[_0x3bc608(0x350)](){const _0x3f98b9=_0x3bc608;return this[_0x3f98b9(0x316)];}};q=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e[_0x3bc608(0xff)])),y(0x1,(0x0,r['Inject'])(r[_0x3bc608(0x190)]))],q);function ct(_0x1d575b){const _0x2652c4=_0x3bc608;let _0x2fada9=atob(_0x1d575b),_0x42e108=new Uint8Array(_0x2fada9[_0x2652c4(0x16e)]);for(let _0xbf7bad=0x0;_0xbf7bad<_0x2fada9[_0x2652c4(0x16e)];_0xbf7bad++)_0x42e108[_0xbf7bad]=_0x2fada9[_0x2652c4(0x227)](_0xbf7bad);return _0x42e108;}function lt(_0x5ead9a){const _0x315f7f=_0x3bc608;let _0xc8612a='';for(let _0x3fa9ce=0x0;_0x3fa9ce<_0x5ead9a[_0x315f7f(0x16e)];_0x3fa9ce++)_0xc8612a+=String['fromCharCode'](_0x5ead9a[_0x3fa9ce]);return btoa(_0xc8612a);}function ut(_0x6ea063,_0x19143c){const _0x49a6ed=_0x3bc608;let _0x371641=ct(_0x19143c),_0x49eb4a=(0x0,f[_0x49a6ed(0x1b2)])(0x10),_0x43ddb1=(0x0,d['cbc'])(_0x371641,_0x49eb4a)['encrypt']((0x0,f[_0x49a6ed(0x453)])(_0x6ea063));return lt((0x0,f['concatBytes'])(_0x49eb4a,_0x43ddb1));}function dt(){const _0x2532ce=_0x3bc608;let _0x2dbb7b=(0x0,u[_0x2532ce(0x33b)])()[_0x2532ce(0x29c)];if(typeof window<'u'&&window['location']!==void 0x0&&_0x2dbb7b){let _0x5ef5ec={'time':Math[_0x2532ce(0x271)](Date[_0x2532ce(0x261)]()/0x3e8),'domain':location[_0x2532ce(0x3f8)]};return ut(JSON[_0x2532ce(0x42b)](_0x5ef5ec),_0x2dbb7b);}}let J=class{constructor(_0x5a0c16){this['_httpService']=_0x5a0c16,this['_initRequestHeader']();}[_0x3bc608(0x1b0)](){const _0xbc6554=_0x3bc608;this['_httpService'][_0xbc6554(0x255)]({'interceptor':(_0x13eac5,_0x25d22a)=>{const _0x1b0128=_0xbc6554;let _0x464739=dt();return _0x464739&&_0x13eac5['headers'][_0x1b0128(0x122)](_0x1b0128(0x27a),_0x464739),_0x25d22a(_0x13eac5);}});}};J=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e['HTTPService']))],J);let Y=class extends r['RxDisposable']{constructor(_0x3b3403,_0x3464e9,_0x53249e){const _0x2f51ad=_0x3bc608;super(),this['_logService']=_0x3b3403,this[_0x2f51ad(0x477)]=_0x3464e9,this[_0x2f51ad(0x239)]=_0x53249e,_(this,_0x2f51ad(0x479),new t[(_0x2f51ad(0x249))](null)),_(this,_0x2f51ad(0x43e),new t[(_0x2f51ad(0x1a3))]()),_(this,_0x2f51ad(0x3f2),this['_unitInfo$']['asObservable']()),_(this,_0x2f51ad(0x372),this[_0x2f51ad(0x43e)]['asObservable']());}['dispose'](){const _0x1faadc=_0x3bc608;super[_0x1faadc(0x3cc)](),this[_0x1faadc(0x43e)][_0x1faadc(0x10e)](),this[_0x1faadc(0x479)][_0x1faadc(0x10e)]();}[_0x3bc608(0x2dd)](_0x5f09e2,_0x368f1a,_0x21a95d,_0x2b6fbb,_0x16f920){const _0x591f00=_0x3bc608;return this[_0x591f00(0x293)](_0x5f09e2,_0x368f1a,_0x21a95d,_0x2b6fbb,_0x16f920);}[_0x3bc608(0x3e8)](_0x5f4b2a,_0x12d945,_0xe301cf,_0x25582f){return this['_loadUnit'](_0x5f4b2a,_0x12d945,void 0x0,_0xe301cf,_0x25582f);}async[_0x3bc608(0x293)](_0x41e3af,_0x5a242a,_0x440eee,_0x13992a,_0x587db8){const _0x1c33f3=_0x3bc608;this[_0x1c33f3(0x479)]['next']({'unitId':_0x41e3af,'type':_0x5a242a,'subUnitId':_0x13992a});let _0x39a2c8=_0x440eee;if(_0x39a2c8===void 0x0){var _0x3290ea;let _0x353ac4=await((_0x3290ea=this['_localCacheService'])==null?void 0x0:_0x3290ea[_0x1c33f3(0x1b3)](_0x41e3af));_0x39a2c8=_0x353ac4&&(_0x353ac4[_0x1c33f3(0xf3)]||_0x353ac4['mutations'][_0x1c33f3(0x16e)]!==0x0)?_0x353ac4[_0x1c33f3(0x35c)]:0x0,_0x39a2c8===0x0&&this[_0x1c33f3(0x2bc)]['debug'](_0x1c33f3(0x3a3),_0x1c33f3(0x421));}return this['_loadSnapshot'](_0x41e3af,_0x5a242a,_0x39a2c8,_0x13992a,_0x587db8);}async[_0x3bc608(0x41c)](_0x58c34,_0x251995,_0x1c6460,_0x323a86,_0x4cceac){const _0x55bce1=_0x3bc608;let _0x3c8870=null;switch(_0x251995){case r[_0x55bce1(0x403)][_0x55bce1(0xf2)]:_0x3c8870=await this[_0x55bce1(0x477)]['loadSheet'](_0x58c34,_0x1c6460,_0x4cceac,{'initialSubUnitId':_0x323a86});break;case r['UniverInstanceType'][_0x55bce1(0x2c2)]:_0x3c8870=await this[_0x55bce1(0x477)][_0x55bce1(0x3ad)](_0x58c34,_0x1c6460,_0x4cceac);break;case r['UniverInstanceType'][_0x55bce1(0x1ab)]:_0x3c8870=await this[_0x55bce1(0x477)]['loadSlide'](_0x58c34,_0x1c6460,_0x4cceac);break;case r[_0x55bce1(0x403)][_0x55bce1(0x398)]:_0x3c8870=await this[_0x55bce1(0x477)]['loadBoard'](_0x58c34,_0x1c6460,_0x4cceac);break;case r[_0x55bce1(0x403)][_0x55bce1(0x2c4)]:_0x3c8870=await this[_0x55bce1(0x477)][_0x55bce1(0x182)](_0x58c34,_0x1c6460,_0x4cceac);break;case r[_0x55bce1(0x403)][_0x55bce1(0x326)]:_0x3c8870=await this[_0x55bce1(0x477)][_0x55bce1(0x11a)](_0x58c34,_0x1c6460,_0x4cceac);break;default:this[_0x55bce1(0x2bc)][_0x55bce1(0x3a2)]('[DataLoaderService]',_0x55bce1(0x236));}return _0x3c8870&&this[_0x55bce1(0x43e)][_0x55bce1(0x33a)](_0x3c8870),_0x3c8870;}};Y=b([y(0x0,r[_0x3bc608(0x3ae)]),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(n[_0x3bc608(0x296)])),y(0x2,(0x0,r[_0x3bc608(0x18d)])(C))],Y);let X=class{constructor(_0x47ca30,_0x2374b4,_0x552bc0){const _0x4fc6=_0x3bc608;this[_0x4fc6(0x499)]=_0x47ca30,this[_0x4fc6(0x430)]=_0x2374b4,this[_0x4fc6(0x414)]=_0x552bc0,_(this,_0x4fc6(0x441),0x0),_(this,_0x4fc6(0x22f),new t['Subject']()),_(this,_0x4fc6(0x11b),this['_change$']),_(this,_0x4fc6(0x294),new Map());}[_0x3bc608(0x354)](_0x47e80b){const _0x3f4db0=_0x3bc608;this[_0x3f4db0(0x441)]=_0x47e80b,this[_0x3f4db0(0x22f)]['next'](_0x47e80b);}[_0x3bc608(0x308)](_0x115c9a,_0x48b4fd){const _0x3b3bdb=_0x3bc608;if(_0x48b4fd===r[_0x3b3bdb(0x44c)][_0x3b3bdb(0x263)]){let _0x3b93c0=new Image();return _0x3b93c0[_0x3b3bdb(0x275)]=_0x115c9a,_0x3b93c0;}return this[_0x3b3bdb(0x294)][_0x3b3bdb(0x119)](_0x115c9a);}['addImageSourceCache'](_0x35b2b2,_0x347033,_0x5189af){const _0x2f6cc6=_0x3bc608;_0x347033!==r['ImageSourceType'][_0x2f6cc6(0x263)]&&_0x5189af!=null&&this[_0x2f6cc6(0x294)][_0x2f6cc6(0x122)](_0x35b2b2,_0x5189af);}async[_0x3bc608(0x199)](_0x321c51){const _0x3eded6=_0x3bc608;try{let _0x25ee44=this[_0x3eded6(0xfb)](this[_0x3eded6(0x2ac)](),''+_0x321c51),_0x136d47=(await this['_httpService'][_0x3eded6(0x119)](_0x25ee44))[_0x3eded6(0x28e)];if(_0x136d47[_0x3eded6(0x3a2)]&&_0x136d47[_0x3eded6(0x3a2)]['code']===o[_0x3eded6(0x43c)]['OK']){let _0x3a39fb=(0x0,r['resolveWithBasePath'])(_0x136d47[_0x3eded6(0x19c)],this[_0x3eded6(0x317)]());return Promise['resolve'](_0x3a39fb);}return Promise[_0x3eded6(0x172)](_0x136d47[_0x3eded6(0x3a2)]);}catch(_0x2be375){return Promise['reject'](_0x2be375);}}async[_0x3bc608(0x166)](_0x3bcba2){const _0x1fe130=_0x3bc608;let _0x530fd1='';if(!p[_0x1fe130(0x175)][_0x1fe130(0x480)](_0x3bcba2[_0x1fe130(0x48f)]))return this['_decreaseWaiting'](),Promise['reject'](Error(r[_0x1fe130(0x150)][_0x1fe130(0x111)]));if(_0x3bcba2[_0x1fe130(0x476)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x1fe130(0x18c)](),Promise[_0x1fe130(0x172)](Error(r[_0x1fe130(0x150)]['ERROR_EXCEED_SIZE']));try{let _0xe20cbf=new FormData();_0xe20cbf[_0x1fe130(0x2a1)]('file',_0x3bcba2);let _0x54b177=this[_0x1fe130(0x414)][_0x1fe130(0x117)](),_0x58e2e8=_0x54b177==null?void 0x0:_0x54b177[_0x1fe130(0x363)]();if(!_0x58e2e8)throw Error(_0x1fe130(0x27d));let _0x3972cf=this['_getUploadFileURL']()+_0x1fe130(0x3ba)+_0x3bcba2[_0x1fe130(0x476)][_0x1fe130(0x462)]()+'&source='+o[_0x1fe130(0x21f)][_0x1fe130(0x3a9)]+_0x1fe130(0x19d)+encodeURIComponent(_0x58e2e8),_0x213c64={'body':_0xe20cbf},_0x640690=(await this['_httpService'][_0x1fe130(0x380)](_0x3972cf,_0x213c64))[_0x1fe130(0x28e)];if(typeof _0x640690['FileId']!=_0x1fe130(0x268))return this['_decreaseWaiting'](),Promise['reject'](Error(r[_0x1fe130(0x150)][_0x1fe130(0x1c3)]));_0x530fd1=_0x640690[_0x1fe130(0x2bf)];}catch{return this[_0x1fe130(0x18c)](),Promise[_0x1fe130(0x172)](Error(r[_0x1fe130(0x150)][_0x1fe130(0x1c3)]));}return new Promise((_0x4fc6b4,_0xca68a6)=>{const _0x4d0168=_0x1fe130;let _0x5768b1=new FileReader();_0x5768b1[_0x4d0168(0x488)](_0x3bcba2),_0x5768b1['onload']=_0xc29cdc=>{const _0x3a467f=_0x4d0168;var _0x38771d;let _0x624f23=(_0x38771d=_0xc29cdc[_0x3a467f(0x1f4)])==null?void 0x0:_0x38771d[_0x3a467f(0x179)];_0x624f23==null?(this[_0x3a467f(0x18c)](),_0xca68a6(Error(r[_0x3a467f(0x150)]['ERROR_IMAGE']))):(_0x4fc6b4({'imageId':(0x0,r[_0x3a467f(0x328)])(0x6),'imageSourceType':r[_0x3a467f(0x44c)][_0x3a467f(0x495)],'source':_0x530fd1,'base64Cache':_0x624f23,'status':r[_0x3a467f(0x150)][_0x3a467f(0x482)]}),this[_0x3a467f(0x18c)]());};});}[_0x3bc608(0x22b)](){const _0x31c399=_0x3bc608;let _0x2498bf=this['_configService'][_0x31c399(0x2de)](m);return(_0x2498bf==null?void 0x0:_0x2498bf[_0x31c399(0x396)])??'/universer-api/stream/file/upload';}[_0x3bc608(0x2ac)](){const _0x62db28=_0x3bc608;let _0x2c352d=this[_0x62db28(0x430)]['getConfig'](m);return(_0x2c352d==null?void 0x0:_0x2c352d[_0x62db28(0x266)])??_0x62db28(0x402);}[_0x3bc608(0x317)](){const _0x2b4d17=_0x3bc608;let _0xd8ab8c=this['_configService'][_0x2b4d17(0x2de)](m);return(_0xd8ab8c==null?void 0x0:_0xd8ab8c[_0x2b4d17(0x2fc)])??location['origin'];}[_0x3bc608(0xfb)](_0x2797b7,_0x5ca2e9){const _0x595c8d=_0x3bc608;return _0x2797b7[_0x595c8d(0x382)](_0x595c8d(0x1cd),_0x5ca2e9);}['_decreaseWaiting'](){const _0xd8d330=_0x3bc608;--this[_0xd8d330(0x441)],this['_change$'][_0xd8d330(0x33a)](this[_0xd8d330(0x441)]);}};X=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(e[_0x3bc608(0xff)])),y(0x1,r[_0x3bc608(0x190)]),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x260)]))],X);let Z=class{constructor(_0x461da1,_0x1af4bc){const _0xca3b2b=_0x3bc608;this[_0xca3b2b(0x430)]=_0x461da1,this['_HTTPService']=_0x1af4bc;}[_0x3bc608(0x1a9)](){const _0x13f85a=_0x3bc608;let _0x177c03=this['_configService'][_0x13f85a(0x2de)](m);return(_0x177c03==null?void 0x0:_0x177c03[_0x13f85a(0x39f)])??'/universer-api/authz';}async[_0x3bc608(0x2af)](_0x37e3f3){const _0x2396df=_0x3bc608;let _0x205633=this[_0x2396df(0x1a9)]()+_0x2396df(0x352);return{'list':[{'title':'People','mentions':(await this['_HTTPService'][_0x2396df(0x119)](_0x205633,{'params':{'objectID':_0x37e3f3['unitId'],'unitID':_0x37e3f3[_0x2396df(0x3dc)]}}))[_0x2396df(0x28e)]['collaborators'][_0x2396df(0x222)](_0x4ef808=>({'objectId':_0x4ef808['id'],'name':_0x4ef808[_0x2396df(0x397)][_0x2396df(0x142)],'metadata':{'icon':_0x4ef808[_0x2396df(0x397)][_0x2396df(0x114)]},'label':_0x4ef808[_0x2396df(0x397)][_0x2396df(0x142)],'objectType':r[_0x2396df(0x10a)]['PERSON']})),'metadata':{},'type':r[_0x2396df(0x10a)][_0x2396df(0x3e3)]}]};}};Z=b([y(0x0,(0x0,r['Inject'])(r[_0x3bc608(0x190)])),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(e[_0x3bc608(0xff)]))],Z);let Q=class extends r[_0x3bc608(0xf4)]{constructor(_0x4ecf0e,_0x57e701,_0x164b3a,_0x4907c1,_0x406b26,_0x2d9bb3){const _0x179d83=_0x3bc608;super(),this[_0x179d83(0x1aa)]=_0x4ecf0e,this[_0x179d83(0x414)]=_0x57e701,this['_permissionService']=_0x164b3a,this[_0x179d83(0x18a)]=_0x4907c1,this[_0x179d83(0x3b8)]=_0x406b26,this['_collaborationUIEventService']=_0x2d9bb3,_(this,'_closedUnits',new Set()),this[_0x179d83(0x24c)](()=>this['_closedUnits'][_0x179d83(0x3ca)]()),this[_0x179d83(0x24c)](ft(this[_0x179d83(0x414)])[_0x179d83(0x2ad)](({unitId:_0x3469fb})=>this[_0x179d83(0x391)][_0x179d83(0x3a1)](_0x3469fb))),this[_0x179d83(0x2bd)](),this[_0x179d83(0x38f)](),[r[_0x179d83(0x403)][_0x179d83(0x2c2)],r[_0x179d83(0x403)]['UNIVER_SLIDE'],r['UniverInstanceType'][_0x179d83(0x2c4)],r['UniverInstanceType'][_0x179d83(0x398)]][_0x179d83(0x103)](_0x595cda=>{const _0x290ce5=_0x179d83;this[_0x290ce5(0x24c)](this[_0x290ce5(0x414)][_0x290ce5(0x343)](_0x595cda)[_0x290ce5(0x2ad)](_0x558cb0=>{const _0x3a3049=_0x290ce5;this['_closedUnits'][_0x3a3049(0x467)](_0x558cb0[_0x3a3049(0x363)]()),this[_0x3a3049(0x1aa)][_0x3a3049(0x119)](r[_0x3a3049(0x1b5)])['clearUnit'](_0x558cb0[_0x3a3049(0x363)]());}));});}[_0x3bc608(0x38f)](){const _0x545fe2=_0x3bc608;let _0x1aadb2=async(_0x175857,_0x315c1c)=>{const _0x1e11f6=_0xa8b9;let _0x56d693=await this['_collaborationSessionService'][_0x1e11f6(0x303)](_0x175857);this[_0x1e11f6(0x14d)]||this[_0x1e11f6(0x391)][_0x1e11f6(0x411)](_0x175857)||!this[_0x1e11f6(0x414)]['getUnit'](_0x175857)||_0x56d693[_0x1e11f6(0x165)][_0x1e11f6(0x1d6)]((0x0,c['filter'])(_0x128df2=>_0x128df2[_0x1e11f6(0x1e5)]===n['CollaborationEvent'][_0x1e11f6(0x1c8)]),(0x0,c[_0x1e11f6(0x3bb)])((0x0,t[_0x1e11f6(0x22a)])(this[_0x1e11f6(0x187)],this['_univerInstanceService'][_0x1e11f6(0x364)][_0x1e11f6(0x1d6)]((0x0,c[_0x1e11f6(0x43f)])(_0x290a5d=>_0x290a5d[_0x1e11f6(0x363)]()===_0x175857)))))[_0x1e11f6(0x2ad)](_0xff9552=>{const _0x2ed11f=_0x1e11f6;let {reason:_0x3dfd06}=_0xff9552['data'];this[_0x2ed11f(0x1fe)][_0x2ed11f(0x2d0)]({'id':_0x2ed11f(0x39b),'data':_0x3dfd06}),this[_0x2ed11f(0x391)][_0x2ed11f(0x467)](_0x175857),this[_0x2ed11f(0x1aa)][_0x2ed11f(0x119)](r['ObjectPermissionService'])[_0x2ed11f(0x3d1)](_0x175857);let _0x300a63=pt(_0x315c1c);_0x300a63!=null&&this[_0x2ed11f(0x1c0)](_0x175857,_0x300a63,o[_0x2ed11f(0x438)]['Edit'],!0x1),this['_collaborationSessionService'][_0x2ed11f(0x12e)](_0x175857);});};ft(this[_0x545fe2(0x414)])[_0x545fe2(0x1d6)]((0x0,c[_0x545fe2(0x43f)])(({unitId:_0x5a3ae5})=>!(0x0,r[_0x545fe2(0x469)])(_0x5a3ae5)),(0x0,c['takeUntil'])(this['dispose$']))[_0x545fe2(0x2ad)](({type:_0x2380be,unitId:_0x10e3e0})=>{const _0x573846=_0x545fe2;_0x1aadb2(_0x10e3e0,_0x2380be)['catch'](_0x2ae928=>this['_injector']['get'](r[_0x573846(0x3ae)])['error'](_0x2ae928));});}['_initUnitPermissionChange'](){const _0x2c4717=_0x3bc608;let _0x17c53f=async(_0x1840ee,_0x20a57f)=>{const _0x1402fd=_0xa8b9;let _0x509c8f=await this[_0x1402fd(0x3b8)][_0x1402fd(0x303)](_0x1840ee);if(!(this[_0x1402fd(0x14d)]||this['_closedUnits'][_0x1402fd(0x411)](_0x1840ee)||!this[_0x1402fd(0x414)][_0x1402fd(0x250)](_0x1840ee))){if(_0x20a57f===r['UniverInstanceType'][_0x1402fd(0xf2)]){let _0x5c4f6d=this[_0x1402fd(0x1aa)][_0x1402fd(0x119)](a[_0x1402fd(0x485)]);await _0x5c4f6d['initWorkbookPermissionChange'](_0x1840ee),_0x509c8f[_0x1402fd(0x165)][_0x1402fd(0x1d6)]((0x0,c['filter'])(_0x1cb967=>_0x1cb967[_0x1402fd(0x1e5)]===n[_0x1402fd(0x1be)][_0x1402fd(0x3e7)]),(0x0,c['takeUntil'])((0x0,t[_0x1402fd(0x22a)])(this[_0x1402fd(0x187)],_0x509c8f['event$'][_0x1402fd(0x1d6)]((0x0,c['filter'])(_0x5c07d8=>_0x5c07d8[_0x1402fd(0x1e5)]===n['CollaborationEvent'][_0x1402fd(0x1c8)])),this['_univerInstanceService'][_0x1402fd(0x364)]['pipe']((0x0,c[_0x1402fd(0x43f)])(_0x1b2738=>_0x1b2738[_0x1402fd(0x363)]()===_0x1840ee)))))['subscribe'](_0x5aab69=>{const _0x4d35ab=_0x1402fd;let {objectId:_0x35ba14}=_0x5aab69['data'];_0x35ba14===_0x1840ee?_0x5c4f6d['initWorkbookPermissionChange'](_0x1840ee):_0x5c4f6d[_0x4d35ab(0x3b0)](_0x1840ee,_0x35ba14);});}else _0x509c8f['event$'][_0x1402fd(0x1d6)]((0x0,c[_0x1402fd(0x43f)])(_0x37f614=>_0x37f614[_0x1402fd(0x1e5)]===n[_0x1402fd(0x1be)][_0x1402fd(0x3e7)]),(0x0,c[_0x1402fd(0x3bb)])((0x0,t[_0x1402fd(0x22a)])(this[_0x1402fd(0x187)],_0x509c8f[_0x1402fd(0x165)][_0x1402fd(0x1d6)]((0x0,c['filter'])(_0x30bff7=>_0x30bff7['eventID']===n[_0x1402fd(0x1be)][_0x1402fd(0x1c8)])),this['_univerInstanceService']['unitDisposed$']['pipe']((0x0,c['filter'])(_0x1c950b=>_0x1c950b[_0x1402fd(0x363)]()===_0x1840ee)))))[_0x1402fd(0x2ad)](()=>{const _0x5abc5c=_0x1402fd;this[_0x5abc5c(0x2fe)](_0x1840ee,_0x20a57f)['catch'](_0x1be670=>this['_injector'][_0x5abc5c(0x119)](r[_0x5abc5c(0x3ae)])[_0x5abc5c(0x3a2)](_0x1be670));}),await this[_0x1402fd(0x2fe)](_0x1840ee,_0x20a57f);}};ft(this[_0x2c4717(0x414)])[_0x2c4717(0x1d6)]((0x0,c[_0x2c4717(0x43f)])(({unitId:_0xefa5c1})=>!(0x0,r['isInternalEditorID'])(_0xefa5c1)),(0x0,c[_0x2c4717(0x3bb)])(this[_0x2c4717(0x187)]))[_0x2c4717(0x2ad)](({type:_0x2ad92a,unitId:_0x33f50e})=>{const _0x725b6f=_0x2c4717;_0x17c53f(_0x33f50e,_0x2ad92a)[_0x725b6f(0x48d)](_0x1455aa=>this[_0x725b6f(0x1aa)]['get'](r['ILogService'])['error'](_0x1455aa));});}async[_0x3bc608(0x2fe)](_0x1e145f,_0x9d868c){const _0x983056=_0x3bc608;let _0x2bce22=pt(_0x9d868c);if(_0x2bce22==null)return;let _0x199958=this['_injector'][_0x983056(0x119)](r[_0x983056(0x1b5)]);if(_0x199958['supports']({'unitId':_0x1e145f,'objectId':_0x1e145f,'objectType':_0x2bce22})){await _0x199958[_0x983056(0x205)](_0x1e145f);return;}let _0x2b6650=this[_0x983056(0x490)](_0x1e145f,_0x2bce22);if(!_0x2b6650[_0x983056(0x16e)])return;let _0x304a98=await this[_0x983056(0x18a)]['allowed']({'objectID':_0x1e145f,'objectType':_0x2bce22,'unitID':_0x1e145f,'actions':_0x2b6650[_0x983056(0x222)](({action:_0x5a22e0})=>_0x5a22e0)});this[_0x983056(0x14d)]||this[_0x983056(0x391)][_0x983056(0x411)](_0x1e145f)||!this['_univerInstanceService'][_0x983056(0x250)](_0x1e145f)||_0x304a98['forEach'](_0x1925e0=>{const _0x3c3f1d=_0x983056;let _0x3cfb6b=_0x1925e0[_0x3c3f1d(0x3f7)],_0xd93c95=_0x1925e0[_0x3c3f1d(0x2a6)];_0x3cfb6b!=null&&_0xd93c95!=null&&_0x2b6650[_0x3c3f1d(0x43f)](_0x579dcf=>_0x579dcf[_0x3c3f1d(0x3f7)]===_0x3cfb6b)['forEach'](_0x2fb1eb=>this[_0x3c3f1d(0x1e8)][_0x3c3f1d(0x463)](_0x2fb1eb['id'],_0xd93c95));});}['_getUnitPermissionPoints'](_0x56cfcf,_0x430e1){const _0x38a6b6=_0x3bc608;let _0x21ffe9=[];return this[_0x38a6b6(0x1e8)][_0x38a6b6(0x3e5)]()[_0x38a6b6(0x103)]((_0x5d768c,_0x2b8db0)=>{const _0x5b43f3=_0x38a6b6;_0x5d768c[_0x5b43f3(0x2ad)](_0x273be5=>{const _0x566720=_0x5b43f3;_0x273be5[_0x566720(0x48f)]===_0x430e1&&_0x566720(0x3dc)in _0x273be5&&_0x273be5[_0x566720(0x3dc)]===_0x56cfcf&&(!(_0x566720(0x31b)in _0x273be5)||_0x273be5[_0x566720(0x31b)]===_0x56cfcf)&&_0x21ffe9[_0x566720(0x13a)]({'id':_0x2b8db0,'action':_0x273be5['subType']});})[_0x5b43f3(0x2e2)]();}),_0x21ffe9;}[_0x3bc608(0x1c0)](_0xa427ea,_0x454300,_0xd13c17,_0x29bf8f){const _0x4e8afa=_0x3bc608;this[_0x4e8afa(0x1e8)][_0x4e8afa(0x3e5)]()[_0x4e8afa(0x103)]((_0x40471e,_0x324146)=>{const _0x398f01=_0x4e8afa;let _0x374fd1=!0x1;_0x40471e['subscribe'](_0x4125e5=>{const _0x13ec0b=_0xa8b9;_0x374fd1=_0x4125e5[_0x13ec0b(0x48f)]===_0x454300&&_0x4125e5[_0x13ec0b(0x2c0)]===_0xd13c17&&'unitId'in _0x4125e5&&_0x4125e5[_0x13ec0b(0x3dc)]===_0xa427ea&&(!('objectId'in _0x4125e5)||_0x4125e5[_0x13ec0b(0x31b)]===_0xa427ea);})['unsubscribe'](),_0x374fd1&&this[_0x398f01(0x1e8)][_0x398f01(0x463)](_0x324146,_0x29bf8f);});}};Q=b([y(0x0,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x1,r[_0x3bc608(0x260)]),y(0x2,r[_0x3bc608(0x32c)]),y(0x3,r[_0x3bc608(0x474)]),y(0x4,(0x0,r[_0x3bc608(0x2bb)])(U)),y(0x5,(0x0,r[_0x3bc608(0x2bb)])(v))],Q);function ft(_0x38bff2){const _0x2ac241=_0x3bc608;return(0x0,t[_0x2ac241(0x22a)])(...[r['UniverInstanceType']['UNIVER_SHEET'],r[_0x2ac241(0x403)][_0x2ac241(0x2c2)],r[_0x2ac241(0x403)][_0x2ac241(0x1ab)],r[_0x2ac241(0x403)][_0x2ac241(0x398)],r['UniverInstanceType'][_0x2ac241(0x2c4)]][_0x2ac241(0x222)](_0x2172d7=>_0x38bff2[_0x2ac241(0x2f6)](_0x2172d7)[_0x2ac241(0x1d6)]((0x0,c[_0x2ac241(0x222)])(_0x39d5f4=>({'type':_0x2172d7,'unitId':_0x39d5f4['unit']['getUnitId']()})))));}function pt(_0xd2d68b){const _0x586c8a=_0x3bc608;switch(_0xd2d68b){case r['UniverInstanceType'][_0x586c8a(0xf2)]:return o[_0x586c8a(0x35e)]['Workbook'];case r[_0x586c8a(0x403)]['UNIVER_DOC']:return o[_0x586c8a(0x35e)][_0x586c8a(0x234)];case r[_0x586c8a(0x403)][_0x586c8a(0x1ab)]:return o['UnitObject'][_0x586c8a(0x3ac)];case r[_0x586c8a(0x403)][_0x586c8a(0x398)]:return o[_0x586c8a(0x35e)][_0x586c8a(0x24b)];case r[_0x586c8a(0x403)]['UNIVER_BASE']:return o[_0x586c8a(0x35e)][_0x586c8a(0x2a8)];default:return;}}let mt=class{constructor(_0x996979,_0xbd7f5a){const _0x380aad=_0x3bc608;this[_0x380aad(0x430)]=_0x996979,this[_0x380aad(0x499)]=_0xbd7f5a;}async['getUnitOnRev'](_0x4dd1b9,_0x2dd386){const _0x8c9799=_0x3bc608;var _0x59e613;let {unitID:_0x178141,type:_0x93ced4,revision:_0x5a2cef=0x0}=_0x2dd386,_0x3eeec4=this[_0x8c9799(0x2d3)]()+'/'+_0x93ced4+'/unit/'+_0x178141+_0x8c9799(0x3b1)+_0x5a2cef,_0x23bc27=(await this['_httpService'][_0x8c9799(0x119)](_0x3eeec4))[_0x8c9799(0x28e)],_0x41e075=(_0x59e613=_0x23bc27[_0x8c9799(0x200)])==null?void 0x0:_0x59e613['workbook'];if(_0x41e075){let _0x472f41=_0x41e075==null?void 0x0:_0x41e075['originalMeta'];_0x41e075[_0x8c9799(0xed)]=n[_0x8c9799(0x342)]['encode']((0x0,n[_0x8c9799(0x465)])(_0x472f41)),Object['entries'](_0x41e075[_0x8c9799(0x36e)])[_0x8c9799(0x103)](([,_0x143d7b])=>{const _0x5ed2e9=_0x8c9799;let _0x1752b1=_0x143d7b[_0x5ed2e9(0xed)];_0x143d7b['originalMeta']=n[_0x5ed2e9(0x342)]['encode']((0x0,n[_0x5ed2e9(0x465)])(_0x1752b1));});}return _0x23bc27;}async[_0x3bc608(0x31c)](_0x57dd52,_0x20fa82){const _0x3c859c=_0x3bc608;let {unitID:_0x1b7e3b,type:_0x5f0f90,blockID:_0x54ce86}=_0x20fa82,_0x472dc9=this[_0x3c859c(0x433)]()+'/'+_0x5f0f90+_0x3c859c(0x388)+_0x1b7e3b+_0x3c859c(0x133)+_0x54ce86;return(await this[_0x3c859c(0x499)][_0x3c859c(0x119)](_0x472dc9))[_0x3c859c(0x28e)];}async[_0x3bc608(0x30a)](_0xd3a9f9,_0x5577c9){const _0x39c8cb=_0x3bc608;let {unitID:_0x568922,type:_0x2679d9,blockID:_0x2a91f6}=_0x5577c9,_0x31d3d6=this[_0x39c8cb(0x433)]()+'/block/'+_0x2679d9+'/unit/'+_0x568922+'/block/'+_0x2a91f6;return(await this[_0x39c8cb(0x499)][_0x39c8cb(0x119)](_0x31d3d6))['body'];}async[_0x3bc608(0x366)](_0x38ee45,_0x5f0df6){const _0x3e38c2=_0x3bc608;let {unitID:_0x23b891,type:_0x55d5de,from:_0xb1707b,to:_0x92bc43}=_0x5f0df6,_0x29852a=this[_0x3e38c2(0x433)]()+'/'+_0x55d5de+_0x3e38c2(0x388)+_0x23b891+'/fetchmissing?from='+_0xb1707b+_0x3e38c2(0xf6)+_0x92bc43;return(await this['_httpService'][_0x3e38c2(0x119)](_0x29852a))[_0x3e38c2(0x28e)];}[_0x3bc608(0x2d3)](){const _0xe360f0=_0x3bc608;return this['_configService'][_0xe360f0(0x2de)](_0xe360f0(0x36a))??this[_0xe360f0(0x433)]();}[_0x3bc608(0x433)](){const _0x84f4a7=_0x3bc608;let _0x59911b=this[_0x84f4a7(0x430)][_0x84f4a7(0x2de)](m);return(_0x59911b==null?void 0x0:_0x59911b[_0x84f4a7(0xea)])??_0x84f4a7(0x349);}async['getResourcesRequest'](_0x4d5f18,_0x145169){const _0x2a5692=_0x3bc608;let _0x3cc27a=_0x2a5692(0x2f0)+_0x145169[_0x2a5692(0x48f)]+_0x2a5692(0x388)+_0x145169[_0x2a5692(0x29f)]+'/resources';return(await this[_0x2a5692(0x499)][_0x2a5692(0x119)](_0x3cc27a,{'params':{'resourceId':JSON[_0x2a5692(0x42b)](_0x145169[_0x2a5692(0x26d)])}}))['body'];}['saveSnapshot'](){const _0x1bd504=_0x3bc608;throw Error(_0x1bd504(0xfd));}[_0x3bc608(0x2c1)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc608(0x409)](){const _0x14e914=_0x3bc608;throw Error(_0x14e914(0xfd));}[_0x3bc608(0xfc)](){const _0x99dc23=_0x3bc608;throw Error(_0x99dc23(0xfd));}['copyFileMeta'](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}[_0x3bc608(0x46b)](){const _0x24db0a=_0x3bc608;throw Error(_0x24db0a(0xfd));}};mt=b([y(0x0,r[_0x3bc608(0x190)]),y(0x1,(0x0,r[_0x3bc608(0x2bb)])(e['HTTPService']))],mt);let ht=class extends r[_0x3bc608(0xf8)]{constructor(_0x9e0a48,_0x40029a,_0x2ad68a,_0xe84daa,_0x3fb35f,_0x3a58f3){const _0x3b1ee1=_0x3bc608;super(_0x9e0a48,_0x40029a,_0x2ad68a,_0xe84daa),this[_0x3b1ee1(0x378)]=_0x3fb35f,this[_0x3b1ee1(0x2bc)]=_0x3a58f3;}[_0x3bc608(0x1c9)](_0x17e48c,_0xa6a7bc){const _0x208473=_0x3bc608;let _0x1f379a=this[_0x208473(0x184)](_0x17e48c);if(_0x1f379a)try{let _0xb3124a=this[_0x208473(0x35b)](_0x1f379a,_0xa6a7bc);this[_0x208473(0x3c8)](_0x17e48c,_0xb3124a);}catch(_0x2505d7){this[_0x208473(0x2bc)][_0x208473(0x3a2)](_0x208473(0x15f),_0x2505d7),this[_0x208473(0x1b6)](_0x17e48c);}let _0x379469=this[_0x208473(0x194)](_0x17e48c);if(_0x379469)try{let _0x9e3853=this[_0x208473(0x35b)](_0x379469,_0xa6a7bc,!0x0);this[_0x208473(0x161)](_0x17e48c,_0x9e3853);}catch(_0x21304e){this[_0x208473(0x2bc)][_0x208473(0x3a2)](_0x21304e),this['_clearRedo'](_0x17e48c);}}['_clearUndo'](_0xf60cff){const _0x58d1c1=_0x3bc608;let _0x2f12ac=this[_0x58d1c1(0x184)](_0xf60cff);_0x2f12ac&&(_0x2f12ac[_0x58d1c1(0x16e)]=0x0,this[_0x58d1c1(0x1fc)]());}['_clearRedo'](_0x5428ee){const _0x399ebe=_0x3bc608;let _0xc41fb8=this['_getRedoStack'](_0x5428ee);_0xc41fb8&&(_0xc41fb8[_0x399ebe(0x16e)]=0x0,this[_0x399ebe(0x1fc)]());}[_0x3bc608(0x3c8)](_0x23bab8,_0x570ed3){const _0x15132c=_0x3bc608;this[_0x15132c(0x13b)][_0x15132c(0x122)](_0x23bab8,_0x570ed3),this[_0x15132c(0x1fc)]();}['_substituteRedoStack'](_0x487210,_0x2f72a6){this['_redoStacks']['set'](_0x487210,_0x2f72a6),this['_updateStatus']();}[_0x3bc608(0x35b)](_0x2246ff,_0x5a89de,_0x5acf49=!0x1){const _0x239b53=_0x3bc608;if(!_0x2246ff[_0x239b53(0x16e)])return[];let _0x444b11=[],_0x289ee9=_0x5a89de,_0x48d18a=_0x5a89de['type']===r[_0x239b53(0x403)][_0x239b53(0x2c2)]?this['_univerInstanceService'][_0x239b53(0x250)](_0x5a89de[_0x239b53(0x29f)],r['UniverInstanceType'][_0x239b53(0x2c2)]):null,_0x4ef22b=_0x48d18a?{'id':_0x48d18a[_0x239b53(0x363)](),'documentStyle':{},'tableSource':r[_0x239b53(0x42e)][_0x239b53(0x47d)](_0x48d18a[_0x239b53(0x2ed)]()[_0x239b53(0x1f8)]??{})}:null;for(let _0x12d05c=_0x2246ff['length']-0x1;_0x12d05c>=0x0;_0x12d05c--){let {unitID:_0x5243e5,undoMutations:_0x58d80a,redoMutations:_0x3ab8ea}=_0x2246ff[_0x12d05c],_0x58acb8=_0x5acf49?_0x3ab8ea:_0x58d80a,_0x5dd505=this[_0x239b53(0x154)](_0x289ee9,_0x58acb8);if((0x0,n['isTransformMutationsWithChangesetFailure'])(_0x5dd505)){this[_0x239b53(0x2bc)]['error']('[CollaborationUndoRedoService]',_0x239b53(0x41d),_0x5dd505);break;}let _0x45adda=_0x5acf49?_0x58d80a:_0x3ab8ea,_0x71589e=this[_0x239b53(0x154)](_0x5dd505[_0x239b53(0x1ba)],_0x45adda);if((0x0,n[_0x239b53(0x129)])(_0x71589e)){this['_logService'][_0x239b53(0x3a2)](_0x239b53(0x15f),_0x239b53(0x41d),_0x71589e);break;}let _0x5242c3=_0x5acf49?_0x71589e:_0x5dd505,_0x3e722b=_0x5acf49?_0x5dd505:_0x71589e;_0x289ee9=_0x5dd505['c1Prime'],_0x4ef22b&&=this[_0x239b53(0x1cc)](_0x4ef22b,_0x5dd505[_0x239b53(0x2fd)],_0x71589e['m2Prime']),_0x444b11[_0x239b53(0x13a)]({'unitID':_0x5243e5,'undoMutations':_0x5242c3[_0x239b53(0x2fd)],'redoMutations':_0x3e722b[_0x239b53(0x2fd)]});}return _0x444b11[_0x239b53(0x1c6)]();}['_transformHistoryMutations'](_0x79ffe1,_0xab8f00){const _0x3f30ff=_0x3bc608;if(_0x79ffe1[_0x3f30ff(0x48f)]!==r[_0x3f30ff(0x403)]['UNIVER_DOC']||_0xab8f00['some'](_0x240047=>_0x240047['id']!==i[_0x3f30ff(0x341)]['id']))return this[_0x3f30ff(0x378)]['transformMutationsWithChangeset'](_0x79ffe1,_0xab8f00);let _0x394094=r[_0x3f30ff(0x42e)]['deepClone'](_0xab8f00),_0xb904ef=[];for(let _0x1cab1a of _0x79ffe1['mutations']){let _0xb20fdb={..._0x79ffe1,'mutations':[_0x1cab1a]},_0x40c0e4=[];for(let _0x2e25ce of _0x394094){_0xb20fdb=this[_0x3f30ff(0x34d)](_0xb20fdb,[_0x2e25ce]);let _0x1fccd8=this[_0x3f30ff(0x378)][_0x3f30ff(0x464)](_0xb20fdb,[_0x2e25ce]);if((0x0,n[_0x3f30ff(0x129)])(_0x1fccd8))return _0x1fccd8;_0xb20fdb=_0x1fccd8[_0x3f30ff(0x1ba)],_0x40c0e4['push'](..._0x1fccd8[_0x3f30ff(0x2fd)]);}_0x394094=_0x40c0e4,_0xb904ef['push'](..._0xb20fdb[_0x3f30ff(0x29d)]);}return{'m2Prime':_0x394094,'c1Prime':{..._0x79ffe1,'mutations':_0xb904ef}};}[_0x3bc608(0x34d)](_0x1c3079,_0x1a478d){const _0x340f0f=_0x3bc608;let _0x2fc842=new Map(),_0x27cb93=r[_0x340f0f(0x297)][_0x340f0f(0x48f)][_0x340f0f(0x3da)](_0x1a478d[0x0]['params'][_0x340f0f(0x33d)]);if(_0x27cb93[_0x340f0f(0x203)](null,_0x424394=>{const _0x5d408e=_0x340f0f;if(_0x424394['et']!==_0x5d408e(0x459))return;let _0x16690a=JSON['stringify'](_0x27cb93[_0x5d408e(0x11c)]()),_0x59424e=_0x2fc842[_0x5d408e(0x119)](_0x16690a)??new Map(),_0x456003=0x0;for(let _0x17d446 of _0x424394['e']){if(_0x17d446['t']===r['TextXActionType']['RETAIN']){var _0xac6d15;for(let _0xa472bc of((_0xac6d15=_0x17d446[_0x5d408e(0x28e)])==null?void 0x0:_0xac6d15[_0x5d408e(0x3cf)])??[])_0x59424e[_0x5d408e(0x122)](_0x456003+_0xa472bc[_0x5d408e(0x270)],{'paragraph':_0xa472bc,'replace':_0x17d446[_0x5d408e(0x118)]===r['UpdateDocsAttributeType'][_0x5d408e(0x283)]});}_0x17d446['t']!==r[_0x5d408e(0x415)][_0x5d408e(0x311)]&&(_0x456003+=_0x17d446['len']);}_0x59424e[_0x5d408e(0x476)]>0x0&&_0x2fc842[_0x5d408e(0x122)](_0x16690a,_0x59424e);}),_0x2fc842[_0x340f0f(0x476)]===0x0)return _0x1c3079;let _0x607229=r[_0x340f0f(0x42e)][_0x340f0f(0x47d)](_0x1c3079);for(let _0x382195 of _0x607229[_0x340f0f(0x29d)]){if(_0x382195['id']!==i[_0x340f0f(0x341)]['id'])continue;let _0x51e725=r[_0x340f0f(0x297)]['type']['readCursor'](_0x382195[_0x340f0f(0x41a)][_0x340f0f(0x33d)]);_0x51e725['traverse'](null,_0x3b3cd4=>{const _0x3af1ad=_0x340f0f;if(_0x3b3cd4['et']!==_0x3af1ad(0x459))return;let _0x949f4f=JSON['stringify'](_0x51e725[_0x3af1ad(0x11c)]()),_0x5ac109=_0x2fc842[_0x3af1ad(0x119)](_0x949f4f);if(!(_0x5ac109!=null&&_0x5ac109[_0x3af1ad(0x476)]))return;let _0x48e747=0x0;for(let _0x229889 of _0x3b3cd4['e']){if(_0x229889['t']===r[_0x3af1ad(0x415)]['RETAIN']&&_0x229889['coverType']===r[_0x3af1ad(0x3a5)][_0x3af1ad(0x283)]){var _0x517d90;for(let _0x35fe4d of((_0x517d90=_0x229889[_0x3af1ad(0x28e)])==null?void 0x0:_0x517d90[_0x3af1ad(0x3cf)])??[]){var _0xc83212;let _0x2a3a3e=(_0xc83212=_0x229889[_0x3af1ad(0x1f1)])==null||(_0xc83212=_0xc83212[_0x3af1ad(0x3cf)])==null?void 0x0:_0xc83212[_0x3af1ad(0xf9)](_0x2b9da1=>_0x2b9da1[_0x3af1ad(0x270)]===_0x35fe4d[_0x3af1ad(0x270)]),_0x3d7f7f=_0x5ac109[_0x3af1ad(0x119)](_0x48e747+_0x35fe4d['startIndex']);if(_0x2a3a3e&&_0x3d7f7f){this['_rebaseUnchangedAttributes'](_0x35fe4d,_0x2a3a3e,_0x3d7f7f['paragraph'],_0x3d7f7f[_0x3af1ad(0x382)]);let _0x7dedbe=_0x3d7f7f[_0x3af1ad(0x382)]?new Set([...Object['keys'](_0x3d7f7f[_0x3af1ad(0x248)]),...Object[_0x3af1ad(0x483)](_0x35fe4d)]):Object[_0x3af1ad(0x483)](_0x3d7f7f[_0x3af1ad(0x248)]);for(let _0x46884e of _0x7dedbe){if(_0x46884e==='startIndex'||_0x46884e===_0x3af1ad(0x457))continue;let _0x9ee2d=Reflect[_0x3af1ad(0x119)](_0x35fe4d,_0x46884e);_0x9ee2d===void 0x0?Reflect[_0x3af1ad(0x385)](_0x3d7f7f[_0x3af1ad(0x248)],_0x46884e):Reflect[_0x3af1ad(0x122)](_0x3d7f7f[_0x3af1ad(0x248)],_0x46884e,r[_0x3af1ad(0x42e)][_0x3af1ad(0x47d)](_0x9ee2d));}}}}_0x229889['t']!==r[_0x3af1ad(0x415)][_0x3af1ad(0x311)]&&(_0x48e747+=_0x229889[_0x3af1ad(0x404)]);}});}return _0x607229;}[_0x3bc608(0x31e)](_0x581afe,_0x2c2c3f,_0x3630a8,_0x1ccd5d){const _0x12f9f1=_0x3bc608;let _0xddaf09=new Set([...Object[_0x12f9f1(0x483)](_0x581afe),...Object['keys'](_0x2c2c3f),...Object[_0x12f9f1(0x483)](_0x3630a8)]);for(let _0x355f70 of _0xddaf09){if(_0x355f70===_0x12f9f1(0x270)||_0x355f70===_0x12f9f1(0x457))continue;let _0x47d9e4=Reflect[_0x12f9f1(0x119)](_0x581afe,_0x355f70),_0x341f35=Reflect[_0x12f9f1(0x119)](_0x2c2c3f,_0x355f70),_0x52d483=Reflect[_0x12f9f1(0x119)](_0x3630a8,_0x355f70);if(_0x1ccd5d||_0x52d483!==void 0x0){if(r[_0x12f9f1(0x42e)][_0x12f9f1(0x28d)](_0x47d9e4,_0x341f35))_0x52d483===void 0x0?(Reflect[_0x12f9f1(0x385)](_0x581afe,_0x355f70),Reflect[_0x12f9f1(0x385)](_0x2c2c3f,_0x355f70)):(Reflect[_0x12f9f1(0x122)](_0x581afe,_0x355f70,r[_0x12f9f1(0x42e)][_0x12f9f1(0x47d)](_0x52d483)),Reflect[_0x12f9f1(0x122)](_0x2c2c3f,_0x355f70,r[_0x12f9f1(0x42e)][_0x12f9f1(0x47d)](_0x52d483)));else{if(r[_0x12f9f1(0x42e)][_0x12f9f1(0x1db)](_0x47d9e4)&&(r[_0x12f9f1(0x42e)][_0x12f9f1(0x1db)](_0x341f35)||_0x341f35===void 0x0)){let _0x212314=_0x341f35??{};this['_rebaseUnchangedAttributes'](_0x47d9e4,_0x212314,r[_0x12f9f1(0x42e)][_0x12f9f1(0x1db)](_0x52d483)?_0x52d483:{},_0x1ccd5d),(_0x341f35!==void 0x0||Object[_0x12f9f1(0x483)](_0x212314)[_0x12f9f1(0x16e)]>0x0)&&Reflect[_0x12f9f1(0x122)](_0x2c2c3f,_0x355f70,_0x212314);}}}}}['_invertDocumentHistory'](_0xd6400e,_0x11a7ba,_0x3d4a75){const _0x5b3e70=_0x3bc608;if(_0x11a7ba[_0x5b3e70(0x16e)]!==0x1||_0x3d4a75['length']!==0x1||_0x11a7ba[0x0]['id']!==i[_0x5b3e70(0x341)]['id']||_0x3d4a75[0x0]['id']!==i[_0x5b3e70(0x341)]['id'])return _0xd6400e;let _0x5068cd=_0x11a7ba[0x0][_0x5b3e70(0x41a)],_0x8d454d=_0x3d4a75[0x0][_0x5b3e70(0x41a)],_0x416958=this[_0x5b3e70(0x278)](_0x5068cd['actions'],!0x0);return r[_0x5b3e70(0x1d0)]['isNoop'](_0x416958)?_0xd6400e:(_0x8d454d[_0x5b3e70(0x33d)]=r[_0x5b3e70(0x1d0)][_0x5b3e70(0x491)](this[_0x5b3e70(0x278)](_0x8d454d[_0x5b3e70(0x33d)],!0x1),r[_0x5b3e70(0x1d0)]['invertWithDoc'](_0x416958,_0xd6400e)),r[_0x5b3e70(0x1d0)][_0x5b3e70(0x3ce)](_0xd6400e,_0x416958)??_0xd6400e);}[_0x3bc608(0x278)](_0x4f1a60,_0x18cb6f){const _0x2c6ce3=_0x3bc608;let _0x1e05f8=r[_0x2c6ce3(0x297)][_0x2c6ce3(0x48f)][_0x2c6ce3(0x3da)](_0x4f1a60),_0x318836=r['JSON1'][_0x2c6ce3(0x48f)][_0x2c6ce3(0x13c)]();return _0x1e05f8[_0x2c6ce3(0x203)](null,_0x7132ff=>{const _0x5171f7=_0x2c6ce3;let _0x386b7a=_0x1e05f8['getPath']();if(_0x386b7a[0x0]==='tableSource'===_0x18cb6f){for(let _0x242208 of Object[_0x5171f7(0x483)](_0x7132ff))_0x318836['writeAtPath'](_0x386b7a,_0x242208,_0x7132ff[_0x242208]);}}),_0x318836[_0x2c6ce3(0x119)]();}};ht=b([y(0x0,r['IUniverInstanceService']),y(0x1,r[_0x3bc608(0x185)]),y(0x2,r['IContextService']),y(0x3,r['IConfigService']),y(0x4,n[_0x3bc608(0x331)]),y(0x5,r[_0x3bc608(0x3ae)])],ht);let $=class extends r[_0x3bc608(0x32d)]{constructor(_0x2ac22f=h,_0x1b9aa2,_0x2ddf22,_0x2d6f7d){const _0x2fcf41=_0x3bc608;super(),this['_config']=_0x2ac22f,this[_0x2fcf41(0x2bc)]=_0x1b9aa2,this[_0x2fcf41(0x1aa)]=_0x2ddf22,this[_0x2fcf41(0x430)]=_0x2d6f7d;let {..._0x3d45cc}=(0x0,r['merge'])({},h,this[_0x2fcf41(0x347)]);if(!_0x3d45cc[_0x2fcf41(0x262)])throw Error(_0x2fcf41(0x318));this['_config']=_0x3d45cc,this[_0x2fcf41(0x430)][_0x2fcf41(0x484)](m,_0x3d45cc);}[_0x3bc608(0x346)](){const _0x53278d=_0x3bc608;this['_configService'][_0x53278d(0x484)](r[_0x53278d(0x193)],this[_0x53278d(0x347)]['objectPermissionTypes']??[]),this[_0x53278d(0x1dd)](),this[_0x53278d(0x1a5)]();}[_0x3bc608(0x1dd)](){const _0x22e6f3=_0x3bc608;var _0x23d61e,_0x3bbf0a;this[_0x22e6f3(0x1aa)]['has'](r[_0x22e6f3(0x41b)])&&this[_0x22e6f3(0x2bc)][_0x22e6f3(0x3a2)](_0x22e6f3(0x3d6),'you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!');let _0x4f01cc=(0x0,r['mergeOverrideWithDependencies'])([[r[_0x22e6f3(0x41b)],{'useClass':ht}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this['_config'][_0x22e6f3(0x262)]}],[n[_0x22e6f3(0x1ca)],{'useClass':mt}],[r[_0x22e6f3(0x474)],{'useClass':q}],[r['IImageIoService'],{'useClass':X}],[ot,{'useClass':G}],[r[_0x22e6f3(0x1e6)],{'useClass':Z}],[W],[at]],(_0x23d61e=this[_0x22e6f3(0x347)])==null?void 0x0:_0x23d61e['override']);if(!((_0x3bbf0a=this['_config'])!=null&&_0x3bbf0a[_0x22e6f3(0x3db)])){let _0x46540e=_0x4f01cc[_0x22e6f3(0x21d)](([_0x5ad867])=>_0x5ad867===T);_0x46540e!==-0x1&&_0x4f01cc[_0x22e6f3(0x43d)](_0x46540e,0x1);}(0x0,r[_0x22e6f3(0x3a7)])(this[_0x22e6f3(0x1aa)],_0x4f01cc);}['_initDependencies'](){const _0x54dae9=_0x3bc608;var _0x9eedfa,_0x25e884;if(this[_0x54dae9(0x1aa)][_0x54dae9(0x119)](e[_0x54dae9(0xff)])[_0x54dae9(0x255)]({'priority':0x14,'interceptor':(0x0,e[_0x54dae9(0x1d1)])({'maxParallel':0x6})}),!((_0x9eedfa=this[_0x54dae9(0x347)])!=null&&_0x9eedfa[_0x54dae9(0x345)])){var _0x57fd23;(_0x57fd23=this[_0x54dae9(0x1aa)][_0x54dae9(0x119)](C,r[_0x54dae9(0x45d)][_0x54dae9(0x423)]))==null||_0x57fd23[_0x54dae9(0x444)]();}(_0x25e884=this[_0x54dae9(0x347)])!=null&&_0x25e884[_0x54dae9(0x379)]&&(0x0,r['touchDependencies'])(this[_0x54dae9(0x1aa)],[[K]]),(0x0,r[_0x54dae9(0x3f5)])(this[_0x54dae9(0x1aa)],[[J],[W],[Q]]);}};_($,'pluginName','UNIVER_COLLABORATION_CLIENT_PLUGIN'),_($,_0x3bc608(0x3fe),rt),_($,_0x3bc608(0x3dd),it),$=b([(0x0,r[_0x3bc608(0x405)])(u[_0x3bc608(0x16d)],e[_0x3bc608(0x14e)],n[_0x3bc608(0x3f0)]),y(0x1,r[_0x3bc608(0x3ae)]),y(0x2,(0x0,r[_0x3bc608(0x2bb)])(r[_0x3bc608(0x3c2)])),y(0x3,r[_0x3bc608(0x190)])],$),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0xfa),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x2df),{'enumerable':!0x0,'get':function(){return j;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x208),{'enumerable':!0x0,'get':function(){return M;}}),Object['defineProperty'](exports,'BaseCollaborationEntity',{'enumerable':!0x0,'get':function(){return R;}}),Object['defineProperty'](exports,_0x3bc608(0x181),{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x3bc608(0x2e8)]=m,exports[_0x3bc608(0x44a)]=ne,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x407),{'enumerable':!0x0,'get':function(){return G;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x120),{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x109),{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x217),{'enumerable':!0x0,'get':function(){return X;}}),Object['defineProperty'](exports,_0x3bc608(0x3aa),{'enumerable':!0x0,'get':function(){return S;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x1ec),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,_0x3bc608(0x18e),{'enumerable':!0x0,'get':function(){return Xe;}}),exports['CollaborationStatus']=Ue,exports[_0x3bc608(0x247)]=oe,exports[_0x3bc608(0x284)]=v,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x10f),{'enumerable':!0x0,'get':function(){return ht;}}),exports['CommentService']=se,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x17d),{'enumerable':!0x0,'get':function(){return N;}}),exports['DEFAULT_ACK_TIMEOUT']=0x4e20,exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x3bc608(0x15a),exports[_0x3bc608(0x15b)]=_0x3bc608(0x3c1),exports[_0x3bc608(0x46a)]=_0x3bc608(0x365),Object[_0x3bc608(0xf1)](exports,'DataLoaderService',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x24f),{'enumerable':!0x0,'get':function(){return L;}}),Object['defineProperty'](exports,_0x3bc608(0x14a),{'enumerable':!0x0,'get':function(){return F;}}),exports[_0x3bc608(0x107)]=_0x3bc608(0x46e),exports[_0x3bc608(0x20f)]=_0x3bc608(0x460),exports[_0x3bc608(0x195)]=ot,exports[_0x3bc608(0x257)]=Qe,exports[_0x3bc608(0x419)]=Je,exports[_0x3bc608(0x12d)]=C,exports[_0x3bc608(0x306)]=Ge,exports['ISingleActiveUnitService']=T,exports[_0x3bc608(0x32a)]=0x3e8,exports['LOCAL_CACHE_INTERVAL_KEY']='LOCAL_CACHE_INTERVAL',exports[_0x3bc608(0x10b)]=0x1d4c0,Object[_0x3bc608(0xf1)](exports,'MemberService',{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x3bc608(0xf1)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x3bc608(0xf1)](exports,'OfflineState',{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x2a0),{'enumerable':!0x0,'get':function(){return H;}}),Object['defineProperty'](exports,_0x3bc608(0x25b),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x3bc608(0x226)]=_0x3bc608(0x486),exports[_0x3bc608(0x348)]='RETRY_CONNECTING_MAX_COUNT',exports[_0x3bc608(0x3e0)]=ve,Object[_0x3bc608(0xf1)](exports,'SheetCollaborationEntity',{'enumerable':!0x0,'get':function(){return z;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x41e),{'enumerable':!0x0,'get':function(){return w;}}),Object['defineProperty'](exports,_0x3bc608(0x143),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x29e),{'enumerable':!0x0,'get':function(){return mt;}}),Object['defineProperty'](exports,'SyncedState',{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x3bc608(0x472)]=Se,Object[_0x3bc608(0xf1)](exports,_0x3bc608(0x322),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x3bc608(0x252)]=$e,exports[_0x3bc608(0x19a)]=Ke,exports[_0x3bc608(0x197)]=be,exports[_0x3bc608(0x1b7)]=qe;
|