@univerjs-pro/collaboration-client 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/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 _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;
|
|
1
|
+
const _0x313905=_0x16c4;(function(_0x5b613e,_0x248b64){const _0x47a94f=_0x16c4,_0x576f2e=_0x5b613e();while(!![]){try{const _0x57e78f=-parseInt(_0x47a94f(0x111))/0x1*(-parseInt(_0x47a94f(0x345))/0x2)+parseInt(_0x47a94f(0x36c))/0x3+-parseInt(_0x47a94f(0x207))/0x4*(parseInt(_0x47a94f(0xba))/0x5)+-parseInt(_0x47a94f(0x16f))/0x6+-parseInt(_0x47a94f(0x2c5))/0x7*(-parseInt(_0x47a94f(0x12d))/0x8)+-parseInt(_0x47a94f(0x41d))/0x9+-parseInt(_0x47a94f(0x241))/0xa*(-parseInt(_0x47a94f(0x35b))/0xb);if(_0x57e78f===_0x248b64)break;else _0x576f2e['push'](_0x576f2e['shift']());}catch(_0x1d2608){_0x576f2e['push'](_0x576f2e['shift']());}}}(_0x247d,0x9a5a5),Object[_0x313905(0xbf)](exports,Symbol['toStringTag'],{'value':_0x313905(0x461)}));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=_0x313905(0x2f6),h={};function g(_0x4de668){'@babel/helpers - typeof';const _0x567c90=_0x313905;return g=typeof Symbol==_0x567c90(0x1b8)&&typeof Symbol[_0x567c90(0x290)]==_0x567c90(0x379)?function(_0xa2cd8e){return typeof _0xa2cd8e;}:function(_0x5ea05f){const _0x55ef4d=_0x567c90;return _0x5ea05f&&typeof Symbol==_0x55ef4d(0x1b8)&&_0x5ea05f[_0x55ef4d(0x128)]===Symbol&&_0x5ea05f!==Symbol['prototype']?_0x55ef4d(0x379):typeof _0x5ea05f;},g(_0x4de668);}function ee(_0x4d47c4,_0x41fe3b){const _0x24be45=_0x313905;if(g(_0x4d47c4)!=_0x24be45(0x31b)||!_0x4d47c4)return _0x4d47c4;var _0x8c844a=_0x4d47c4[Symbol['toPrimitive']];if(_0x8c844a!==void 0x0){var _0xdcfe92=_0x8c844a['call'](_0x4d47c4,_0x41fe3b||_0x24be45(0x236));if(g(_0xdcfe92)!=_0x24be45(0x31b))return _0xdcfe92;throw TypeError(_0x24be45(0x331));}return(_0x41fe3b==='string'?String:Number)(_0x4d47c4);}function te(_0x465ab8){var _0x40526b=ee(_0x465ab8,'string');return g(_0x40526b)=='symbol'?_0x40526b:_0x40526b+'';}function _(_0x5d8d86,_0x5acbfd,_0x535abe){return(_0x5acbfd=te(_0x5acbfd))in _0x5d8d86?Object['defineProperty'](_0x5d8d86,_0x5acbfd,{'value':_0x535abe,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5d8d86[_0x5acbfd]=_0x535abe,_0x5d8d86;}var ne=class{constructor(_0x133fe7,_0x344cc8,_0x5e7377={}){const _0x3e8276=_0x313905;this[_0x3e8276(0x3ff)]=_0x344cc8,this[_0x3e8276(0xcc)]=_0x5e7377,_(this,_0x3e8276(0x1c2),0x0),_(this,_0x3e8276(0x32b),void 0x0),_(this,_0x3e8276(0x10a),void 0x0),_(this,_0x3e8276(0x25b),void 0x0),_(this,_0x3e8276(0x10f),0x0),_(this,_0x3e8276(0x221),0x0),_(this,_0x3e8276(0x352),null),_(this,'_pendingReason',null),_(this,_0x3e8276(0x295),null),_(this,_0x3e8276(0x206),0x0),_(this,_0x3e8276(0x3fa),!0x1),_(this,'_now',void 0x0),_(this,_0x3e8276(0x1de),void 0x0),this['_reqId']=_0x133fe7,this[_0x3e8276(0x10a)]=_0x5e7377[_0x3e8276(0x2d3)]??0x4e20,this[_0x3e8276(0x25b)]=Math[_0x3e8276(0x2aa)](_0x5e7377['maxAckTimeout']??0x1d4c0,this['_ackTimeout']),this[_0x3e8276(0x3f6)]=_0x5e7377[_0x3e8276(0x445)]??(()=>Date[_0x3e8276(0x445)]()),this[_0x3e8276(0x32b)]=this[_0x3e8276(0x3f6)]();}get['reqId'](){return this['_reqId'];}get[_0x313905(0x30f)](){return this['_attempt'];}get[_0x313905(0x12a)](){const _0x283218=_0x313905;return this[_0x283218(0x221)];}get[_0x313905(0x18d)](){const _0x359008=_0x313905;return this['_now']()-this[_0x359008(0x32b)];}[_0x313905(0x3a7)](_0xd2cc72){const _0x264f2c=_0x313905;if(this[_0x264f2c(0x3fa)])return;this[_0x264f2c(0x295)]=_0xd2cc72;let _0x33305c=this[_0x264f2c(0x33f)];_0x33305c&&(this[_0x264f2c(0x33f)]=null,this[_0x264f2c(0x44b)](_0x33305c));}[_0x313905(0x41f)](){const _0x5eb64d=_0x313905;this[_0x5eb64d(0x295)]=null;}[_0x313905(0x45b)](_0xef776c,_0x49140b,_0x454261){const _0x2f927b=_0x313905;this[_0x2f927b(0x3fa)]||(_0x454261&&this['_countResend'](_0x454261),this[_0x2f927b(0xda)](),this[_0x2f927b(0x262)](_0xef776c),this[_0x2f927b(0x1de)]=_0xef776c[_0x2f927b(0x131)]??this[_0x2f927b(0x1de)],_0x454261&&this[_0x2f927b(0x1f1)](_0x454261,_0x49140b));}[_0x313905(0xda)](){const _0x1ad8d4=_0x313905;this[_0x1ad8d4(0x2ac)](this['_ackTimeout'],_0x1ad8d4(0x2e4));}[_0x313905(0x188)](_0x26378a=_0x313905(0x1c8)){const _0x4c96ce=_0x313905;this[_0x4c96ce(0x2ac)](this[_0x4c96ce(0x10f)],_0x26378a);}['dispose'](){const _0x526c72=_0x313905;this['_disposed']=!0x0,this['_clearTimer'](),this[_0x526c72(0x295)]=null,this['_pendingReason']=null;}[_0x313905(0x262)](_0x4f17f0){const _0x5ab35c=_0x313905;let _0x40b77d=++this[_0x5ab35c(0x206)],_0x63ee42;try{_0x63ee42=this[_0x5ab35c(0x3ff)](_0x4f17f0,{'timeout':this['_ackTimeout']});}catch(_0x5b912f){this[_0x5ab35c(0x271)](_0x40b77d,_0x5b912f);return;}_0x63ee42 instanceof Promise&&_0x63ee42[_0x5ab35c(0x3bb)](_0x2076e3=>this[_0x5ab35c(0x271)](_0x40b77d,_0x2076e3));}[_0x313905(0x271)](_0x50f649,_0x55d497){const _0x520eff=_0x313905;if(this[_0x520eff(0x3fa)]||_0x50f649!==this[_0x520eff(0x206)])return;let _0x127cba=re(_0x55d497,this[_0x520eff(0x10f)]);_0x127cba!==null&&this['_schedule'](_0x127cba,'request_failed');}[_0x313905(0x2ac)](_0x4fb4a2,_0x303af1){const _0x25e4ab=_0x313905;this['_disposed']||(this[_0x25e4ab(0x2d0)](),this[_0x25e4ab(0x33f)]=null,this[_0x25e4ab(0x221)]=_0x4fb4a2,this[_0x25e4ab(0x352)]=setTimeout(()=>{const _0x33cc9d=_0x25e4ab;this[_0x33cc9d(0x352)]=null,this[_0x33cc9d(0x295)]?this[_0x33cc9d(0x44b)](_0x303af1):this[_0x33cc9d(0x33f)]=_0x303af1;},_0x4fb4a2));}[_0x313905(0x44b)](_0x3ed778){const _0x4d1e7f=_0x313905;let _0x5864b9=this['_source'];if(!_0x5864b9||this[_0x4d1e7f(0x3fa)])return;let {changeset:_0x500b12,unsyncedMutationCount:_0x4f3647}=_0x5864b9();this[_0x4d1e7f(0x447)](_0x3ed778),this['armAckTimeout'](),this[_0x4d1e7f(0x262)](_0x500b12),this[_0x4d1e7f(0x1de)]=_0x500b12['reqId']??this[_0x4d1e7f(0x1de)],this[_0x4d1e7f(0x1f1)](_0x3ed778,_0x4f3647);}[_0x313905(0x447)](_0x21f659){const _0x2243ac=_0x313905;this[_0x2243ac(0x1c2)]+=0x1,_0x21f659===_0x2243ac(0x1c8)||_0x21f659==='request_failed'||_0x21f659===_0x2243ac(0x286)?this[_0x2243ac(0x10f)]=this[_0x2243ac(0x10f)]===0x0?0x3e8:Math[_0x2243ac(0x2a4)](this['_retryBackoff']*0x2,0x4e20):_0x21f659===_0x2243ac(0x2e4)&&(this[_0x2243ac(0x10a)]=Math['min'](this[_0x2243ac(0x10a)]*0x2,this[_0x2243ac(0x25b)]));}[_0x313905(0x1f1)](_0x54de44,_0x295e8d){const _0x4cacc4=_0x313905;var _0x57f1f4,_0x244f84;this['_disposed']||(_0x57f1f4=(_0x244f84=this[_0x4cacc4(0xcc)])[_0x4cacc4(0x212)])==null||_0x57f1f4['call'](_0x244f84,{'reqId':this[_0x4cacc4(0x1de)],'reason':_0x54de44,'attempt':this[_0x4cacc4(0x1c2)],'elapsedMs':this[_0x4cacc4(0x18d)],'unsyncedMutationCount':_0x295e8d,'nextDelayMs':this['_ackTimeout']});}[_0x313905(0x2d0)](){const _0x5afe5e=_0x313905;this[_0x5afe5e(0x352)]!=null&&(clearTimeout(this[_0x5afe5e(0x352)]),this[_0x5afe5e(0x352)]=null);}};function re(_0x43fe6b,_0x4a2151){const _0x55fcae=_0x313905;if(_0x43fe6b instanceof t['TimeoutError'])return null;if(_0x43fe6b instanceof e[_0x55fcae(0x3dd)]){let _0x3fca2c=_0x43fe6b[_0x55fcae(0x265)]??0x0;return _0x3fca2c===0x0||_0x3fca2c===0x198||_0x3fca2c===0x1ad||_0x3fca2c>=0x1f4?Math[_0x55fcae(0x2aa)](_0x4a2151,ie(_0x43fe6b)):null;}return _0x4a2151;}function ie(_0xaa2e96){const _0x19e456=_0x313905;var _0x53b09f;let _0x161b55=(_0x53b09f=_0xaa2e96[_0x19e456(0x272)])==null||(_0x53b09f=_0x53b09f[_0x19e456(0xe5)](_0x19e456(0x34d)))==null?void 0x0:_0x53b09f[0x0],_0x252344=_0x161b55===void 0x0?NaN:Number(_0x161b55);return Number['isFinite'](_0x252344)&&_0x252344>0x0?_0x252344*0x3e8:0x0;}function ae(_0x13013b){const _0x1de982=_0x313905;return JSON[_0x1de982(0x321)](_0x13013b)[_0x1de982(0x1f6)];}let oe=function(_0x3ed50e){const _0x47339c=_0x313905;return _0x3ed50e['OTHER_CLIENT_EDITING']=_0x47339c(0x410),_0x3ed50e['PERMISSION_DENIED']='PERMISSION_DENIED',_0x3ed50e[_0x47339c(0x25f)]=_0x47339c(0x25f),_0x3ed50e[_0x47339c(0x20d)]=_0x47339c(0x20d),_0x3ed50e[_0x47339c(0x218)]=_0x47339c(0x218),_0x3ed50e[_0x47339c(0x1eb)]=_0x47339c(0x1eb),_0x3ed50e[_0x47339c(0x36b)]='JOIN_ROOM_FAILED',_0x3ed50e[_0x47339c(0x1f3)]=_0x47339c(0x1f3),_0x3ed50e[_0x47339c(0x124)]=_0x47339c(0x124),_0x3ed50e[_0x47339c(0x13b)]=_0x47339c(0x13b),_0x3ed50e[_0x47339c(0x3f4)]='SUBMIT_CHANGESET_TIMEOUT',_0x3ed50e;}({});var v=class{constructor(){const _0x46da43=_0x313905;_(this,_0x46da43(0x441),new t[(_0x46da43(0xb7))]()),_(this,_0x46da43(0x2ed),this[_0x46da43(0x441)]['asObservable']());}[_0x313905(0x117)](_0x41564a){const _0x1ce629=_0x313905;this[_0x1ce629(0x441)][_0x1ce629(0xb9)](_0x41564a);}},se=class{constructor(){const _0x483a29=_0x313905;_(this,_0x483a29(0x147),new t[(_0x483a29(0xb7))]()),_(this,'commentUpdate$',this['_commentUpdate$']['asObservable']());}['onCommentUpdate'](_0x2866f1){const _0x5baf6d=_0x313905;this[_0x5baf6d(0x147)][_0x5baf6d(0xb9)](_0x2866f1);}};function y(_0x41f5dd,_0x4d3ec0){return function(_0x339a6d,_0xf51f6a){_0x4d3ec0(_0x339a6d,_0xf51f6a,_0x41f5dd);};}function b(_0x1d3e3f,_0xe258b8,_0x59fc2b,_0xc256ae){const _0x331c46=_0x313905;var _0x578bc7=arguments[_0x331c46(0x1f6)],_0x5cc7b5=_0x578bc7<0x3?_0xe258b8:_0xc256ae===null?_0xc256ae=Object[_0x331c46(0x30b)](_0xe258b8,_0x59fc2b):_0xc256ae,_0x302812;if(typeof Reflect==_0x331c46(0x31b)&&typeof Reflect['decorate']==_0x331c46(0x1b8))_0x5cc7b5=Reflect[_0x331c46(0xc4)](_0x1d3e3f,_0xe258b8,_0x59fc2b,_0xc256ae);else{for(var _0x31e33=_0x1d3e3f[_0x331c46(0x1f6)]-0x1;_0x31e33>=0x0;_0x31e33--)(_0x302812=_0x1d3e3f[_0x31e33])&&(_0x5cc7b5=(_0x578bc7<0x3?_0x302812(_0x5cc7b5):_0x578bc7>0x3?_0x302812(_0xe258b8,_0x59fc2b,_0x5cc7b5):_0x302812(_0xe258b8,_0x59fc2b))||_0x5cc7b5);}return _0x578bc7>0x3&&_0x5cc7b5&&Object[_0x331c46(0xbf)](_0xe258b8,_0x59fc2b,_0x5cc7b5),_0x5cc7b5;}let x=class extends r[_0x313905(0x333)]{constructor(_0x26918b){const _0x1c87f5=_0x313905;super(),this['_univerInstanceService']=_0x26918b,_(this,_0x1c87f5(0x127),new Map()),_(this,_0x1c87f5(0x263),new t[(_0x1c87f5(0xb7))]()),this['disposeWithMe']((0x0,t[_0x1c87f5(0x1d4)])(this['_univerInstanceService']['getTypeOfUnitDisposed$'](r[_0x1c87f5(0xd4)]['UNIVER_SHEET'])[_0x1c87f5(0x24a)]((0x0,c['map'])(_0x298f4f=>_0x298f4f[_0x1c87f5(0x400)]())),this[_0x1c87f5(0x121)]['getTypeOfUnitDisposed$'](r['UniverInstanceType']['UNIVER_DOC'])[_0x1c87f5(0x24a)]((0x0,c[_0x1c87f5(0x180)])(_0x55b072=>_0x55b072['getUnitId']())),this[_0x1c87f5(0x121)][_0x1c87f5(0x1f5)](r[_0x1c87f5(0xd4)][_0x1c87f5(0x454)])[_0x1c87f5(0x24a)]((0x0,c['map'])(_0x408ec8=>_0x408ec8['getUnitId']())),this[_0x1c87f5(0x121)][_0x1c87f5(0x1f5)](r[_0x1c87f5(0xd4)][_0x1c87f5(0x315)])[_0x1c87f5(0x24a)]((0x0,c[_0x1c87f5(0x180)])(_0x3d1c99=>_0x3d1c99[_0x1c87f5(0x400)]())))[_0x1c87f5(0x1c9)](_0x3d30c7=>this[_0x1c87f5(0x198)](_0x3d30c7)));}[_0x313905(0x3b0)](_0x70e727){const _0x2bf6ff=_0x313905;return this[_0x2bf6ff(0x127)][_0x2bf6ff(0x3ae)](_0x70e727)?(0x0,t['of'])(this[_0x2bf6ff(0x127)][_0x2bf6ff(0xe5)](_0x70e727)):this['_roomCreated$'][_0x2bf6ff(0x24a)]((0x0,c['map'])(_0x3caa20=>{const _0x226c20=_0x2bf6ff;if(_0x3caa20===_0x70e727)return this[_0x226c20(0x127)][_0x226c20(0xe5)](_0x3caa20);}));}['updateMember'](_0x14b0bb,_0xccd0d8){const _0x171f0b=_0x313905;let _0x311c8e=this[_0x171f0b(0x127)]['get'](_0x14b0bb);_0x311c8e||(_0x311c8e=new ce(),this[_0x171f0b(0x127)][_0x171f0b(0x245)](_0x14b0bb,_0x311c8e),this['_roomCreated$']['next'](_0x14b0bb)),_0x311c8e[_0x171f0b(0xe8)](_0xccd0d8);}[_0x313905(0x1f9)](_0x55a371,_0x52e380){const _0x1e40c0=_0x313905;let _0x324dc1=this['_roomMembers'][_0x1e40c0(0xe5)](_0x55a371);_0x324dc1&&_0x324dc1[_0x1e40c0(0x1f9)](_0x52e380);}[_0x313905(0x3d7)](_0x52293c){const _0xe43bd7=_0x313905;return this['_roomMembers'][_0xe43bd7(0xe5)](_0x52293c);}[_0x313905(0x237)](_0x469748,_0x321c80){const _0x1a6b24=_0x313905;let _0x2cddd3=this['_roomMembers'][_0x1a6b24(0xe5)](_0x469748);if(_0x2cddd3)return _0x2cddd3[_0x1a6b24(0x237)](_0x321c80);}[_0x313905(0x198)](_0x11e278){const _0x2f1eb6=_0x313905;let _0xb66bcb=this[_0x2f1eb6(0x127)][_0x2f1eb6(0xe5)](_0x11e278);_0xb66bcb&&(_0xb66bcb['dispose'](),this[_0x2f1eb6(0x127)][_0x2f1eb6(0x20e)](_0x11e278));}[_0x313905(0x2a7)](){const _0x4ef068=_0x313905;this[_0x4ef068(0x127)][_0x4ef068(0xf3)](_0x4d7697=>_0x4d7697['dispose']()),this[_0x4ef068(0x127)][_0x4ef068(0x1d5)](),this['_roomCreated$']['complete']();}};x=b([y(0x0,r['IUniverInstanceService'])],x);var ce=class extends r[_0x313905(0x333)]{constructor(..._0x1f9e18){const _0x1ad89b=_0x313905;super(..._0x1f9e18),_(this,'_members',new Map()),_(this,_0x1ad89b(0x463),new t[(_0x1ad89b(0x34f))](this[_0x1ad89b(0x2f7)])),_(this,_0x1ad89b(0x169),this['_members$'][_0x1ad89b(0x1da)]());}[_0x313905(0x2a7)](){const _0x1a045f=_0x313905;this[_0x1a045f(0x2f7)]['clear'](),this[_0x1a045f(0x463)][_0x1a045f(0x395)]();}[_0x313905(0xe8)](_0x278ef0){const _0x3f97e1=_0x313905;this['_members'][_0x3f97e1(0x245)](_0x278ef0['memberID'],_0x278ef0),this[_0x3f97e1(0x1c6)]();}[_0x313905(0x1f9)](_0x36642d){const _0x3114b4=_0x313905;this['_members'][_0x3114b4(0x20e)](_0x36642d),this['_emitMembers']();}[_0x313905(0x237)](_0x56da12){const _0x586b30=_0x313905;return this[_0x586b30(0x2f7)][_0x586b30(0xe5)](_0x56da12);}[_0x313905(0x311)](){const _0x39b517=_0x313905;return Array[_0x39b517(0x298)](this[_0x39b517(0x2f7)]['values']());}[_0x313905(0x1c6)](){const _0x377e95=_0x313905;this[_0x377e95(0x463)]['next'](this[_0x377e95(0x2f7)]);}};function le(_0x4db74c,_0x2ade6c){const _0x424547=_0x313905;if(de(_0x4db74c))return _0x2ade6c;if(_0x2ade6c[_0x424547(0x280)]===n[_0x424547(0x2ce)][_0x424547(0x189)]){let _0x591190=ge(_0x4db74c),_0x530a7c=_0x2ade6c;return{..._0x530a7c,'data':{..._0x530a7c[_0x424547(0x335)],'unitID':_0x4db74c[_0x424547(0x19f)]['unitId'],'unitType':_0x4db74c['target'][_0x424547(0x459)]??_0x530a7c[_0x424547(0x335)][_0x424547(0x459)],'changeset':_0x591190['toRemote'](_0x530a7c[_0x424547(0x335)]['changeset'],_e(_0x4db74c))}};}if(_0x2ade6c[_0x424547(0x280)]===n['CollaborationEvent'][_0x424547(0x3b3)]){let _0x33e75f=_0x2ade6c;return{..._0x33e75f,'data':{..._0x33e75f[_0x424547(0x335)],'unitID':_0x4db74c[_0x424547(0x19f)][_0x424547(0x39a)],'unitType':_0x4db74c['target']['unitType']??_0x33e75f[_0x424547(0x335)][_0x424547(0x459)]}};}return _0x2ade6c;}function ue(_0x5b3919,_0x3d518b){const _0x3eb253=_0x313905;if(de(_0x5b3919))return[_0x3d518b];switch(_0x3d518b[_0x3eb253(0x280)]){case n[_0x3eb253(0x2ce)][_0x3eb253(0x378)]:return[fe(_0x5b3919,_0x3d518b)];case n[_0x3eb253(0x2ce)]['PSEUDO_FETCH_MISSING_RESULT']:return[me(_0x5b3919,_0x3d518b)];case n[_0x3eb253(0x2ce)][_0x3eb253(0x3cc)]:return[pe(_0x5b3919,_0x3d518b)];default:return[_0x3d518b];}}function de(_0x1f7f4e){const _0x2d92c9=_0x313905;return _0x1f7f4e[_0x2d92c9(0x19f)][_0x2d92c9(0x2dd)]==null&&_0x1f7f4e[_0x2d92c9(0x19f)]['unitId']===_0x1f7f4e[_0x2d92c9(0xb4)]&&!_0x1f7f4e[_0x2d92c9(0x1f0)];}function fe(_0x15bbb9,_0x52faf4){const _0x3d438c=_0x313905;return{..._0x52faf4,'data':(0x0,n['parseChangesetToProtocol'])(he(_0x15bbb9,(0x0,n[_0x3d438c(0x232)])(_0x52faf4['data'])))};}function pe(_0x2a3cc4,_0x173fce){const _0x332a22=_0x313905;return{..._0x173fce,'data':he(_0x2a3cc4,_0x173fce[_0x332a22(0x335)])};}function me(_0x51295c,_0x132f5c){const _0x37434a=_0x313905;let _0x13df4a=_0x132f5c[_0x37434a(0x335)];return{..._0x132f5c,'data':{..._0x13df4a,'changesets':_0x13df4a[_0x37434a(0x1aa)][_0x37434a(0x180)](_0x39ec29=>(0x0,n[_0x37434a(0x37d)])(he(_0x51295c,(0x0,n[_0x37434a(0x232)])(_0x39ec29))))}};}function he(_0x5ef626,_0x299f12){const _0x5022c1=_0x313905;return ge(_0x5ef626)[_0x5022c1(0x1ad)](_0x299f12,_e(_0x5ef626));}function ge(_0x11dff5){const _0x273bd6=_0x313905;if(!_0x11dff5['changeset'])throw Error('COLLABORATION_CHANGESET_TRANSLATION_REQUIRED');return _0x11dff5[_0x273bd6(0x1f0)];}function _e(_0x288ca2){const _0x3170ca=_0x313905;return{'localUnitId':_0x288ca2['localUnitId'],'unitType':_0x288ca2[_0x3170ca(0x459)],'target':_0x288ca2[_0x3170ca(0x19f)]};}let ve=function(_0x4c24de){const _0xe88956=_0x313905;return _0x4c24de[_0x4c24de[_0xe88956(0xeb)]=0x0]=_0xe88956(0xeb),_0x4c24de[_0x4c24de[_0xe88956(0x370)]=0x1]=_0xe88956(0x370),_0x4c24de[_0x4c24de[_0xe88956(0x162)]=0x2]=_0xe88956(0x162),_0x4c24de[_0x4c24de[_0xe88956(0x3ea)]=0x3]='ONLINE',_0x4c24de;}({});function _0x16c4(_0x4be54c,_0x385d68){_0x4be54c=_0x4be54c-0xab;const _0x247d9a=_0x247d();let _0x16c47a=_0x247d9a[_0x4be54c];return _0x16c47a;}const ye={[o[_0x313905(0x177)]['FAIL']]:_0x313905(0x149),[o[_0x313905(0x177)][_0x313905(0x2e0)]]:'session.room-full',[o[_0x313905(0x177)][_0x313905(0xef)]]:'session.room-not-exists',[o[_0x313905(0x177)][_0x313905(0x285)]]:'session.room-permission-denied',[o[_0x313905(0x177)]['GLOBAL_ROOMS_CNT_EXCEEDS']]:_0x313905(0x289)};let S=class extends r[_0x313905(0x380)]{get['sessionStatus'](){const _0x1ce163=_0x313905;return this[_0x1ce163(0x139)][_0x1ce163(0x28b)]();}constructor(_0x506285,_0x4807f4,_0x4d58c0,_0x15e692,_0x277c4b,_0x2370f4,_0x40d71e){const _0x27b6ff=_0x313905;super(),this[_0x27b6ff(0x2e9)]=_0x506285,this[_0x27b6ff(0x1c1)]=_0x4d58c0,this['_memberService']=_0x15e692,this['_commentService']=_0x277c4b,this[_0x27b6ff(0x37e)]=_0x2370f4,this[_0x27b6ff(0x361)]=_0x40d71e,_(this,_0x27b6ff(0x139),new t['BehaviorSubject'](0x0)),_(this,_0x27b6ff(0x107),this[_0x27b6ff(0x139)][_0x27b6ff(0x1da)]()),_(this,_0x27b6ff(0x441),new t[(_0x27b6ff(0xb7))]()),_(this,_0x27b6ff(0x2ed),this[_0x27b6ff(0x441)][_0x27b6ff(0x1da)]()),_(this,_0x27b6ff(0xe1),void 0x0),_(this,_0x27b6ff(0x344),void 0x0),_(this,_0x27b6ff(0x442),!0x1),_(this,'_telemetryInfo',null),this[_0x27b6ff(0x442)]=!!this['_telemetryService'],_0x4807f4[_0x27b6ff(0x24a)]((0x0,t[_0x27b6ff(0x385)])(this[_0x27b6ff(0x42b)]))['subscribe'](_0x1b20c0=>{const _0x27571e=_0x27b6ff;if(_0x1b20c0!==void 0x0){if(this[_0x27571e(0xe1)]=_0x1b20c0,_0x1b20c0)this['_joinRoom'](_0x1b20c0),this[_0x27571e(0x344)]=_0x1b20c0[_0x27571e(0xf4)]['subscribe'](_0x299a35=>{const _0xdf90c7=_0x27571e;_0x299a35['routeKey']===this[_0xdf90c7(0x2e9)]['target'][_0xdf90c7(0x39a)]&&this[_0xdf90c7(0xf0)](_0x299a35);});else{var _0x31d935;this[_0x27571e(0x105)](),this[_0x27571e(0x139)][_0x27571e(0xb9)](0x2),(_0x31d935=this[_0x27571e(0x344)])==null||_0x31d935[_0x27571e(0xbd)](),this[_0x27571e(0x344)]=null;}}});}[_0x313905(0x35a)](){const _0x592e6f=_0x313905;var _0x2f3cf3;return((_0x2f3cf3=this[_0x592e6f(0xe1)])==null?void 0x0:_0x2f3cf3[_0x592e6f(0x190)])??null;}['dispose'](){const _0x31c366=_0x313905;super[_0x31c366(0x2a7)](),this[_0x31c366(0x2d4)](),this['dispose$']['next'](),this[_0x31c366(0x42b)][_0x31c366(0x395)]();}[_0x313905(0x2d4)](){const _0x216513=_0x313905;var _0x15d7ed;this[_0x216513(0x105)](),(_0x15d7ed=this[_0x216513(0xe1)])==null||_0x15d7ed[_0x216513(0x1fa)]({'cmd':o[_0x216513(0x123)][_0x216513(0x346)],'data':{'roomID':this[_0x216513(0x2e9)]['target']['unitId']}}),this[_0x216513(0x441)]['complete'](),this['_sessionStatus$'][_0x216513(0x395)]();}[_0x313905(0xf0)](_0x33b6f5){const _0x493259=_0x313905;_0x33b6f5['cmd']===o[_0x493259(0x123)]['JOIN']?this[_0x493259(0x115)](_0x33b6f5):_0x33b6f5['cmd']===o['CombCmd'][_0x493259(0xe4)]&&this[_0x493259(0x168)](_0x33b6f5);}[_0x313905(0xcb)](_0x4b50f7){const _0x5b4c74=_0x313905;this[_0x5b4c74(0x139)][_0x5b4c74(0xb9)](0x1),_0x4b50f7[_0x5b4c74(0x1fa)]({'cmd':o[_0x5b4c74(0x123)][_0x5b4c74(0x381)],'routeKey':this[_0x5b4c74(0x2e9)][_0x5b4c74(0x19f)][_0x5b4c74(0x39a)],'routeType':'','data':{'rooms':[{'roomID':this[_0x5b4c74(0x2e9)]['target'][_0x5b4c74(0x39a)]}]}});}['_onJoinRoomEvent'](_0x356a04){const _0x5c4699=_0x313905;var _0x3637e1;if(_0x356a04['code']in ye){this['_collaborationUIEventService']['emitEvent']({'id':'JOIN_ROOM_FAILED','data':ye[_0x356a04[_0x5c4699(0x2c3)]]}),this[_0x5c4699(0x139)][_0x5c4699(0xb9)](0x2);return;}this['_sessionStatus$']['next'](0x3);let _0xb23b11=(_0x3637e1=_0x356a04[_0x5c4699(0x335)]['roomInfos'][this[_0x5c4699(0x2e9)][_0x5c4699(0x19f)][_0x5c4699(0x39a)]])==null?void 0x0:_0x3637e1['members'];_0xb23b11&&_0xb23b11['forEach'](_0x4cd8f7=>this[_0x5c4699(0x2e8)]['updateMember'](this['_identity'][_0x5c4699(0xb4)],_0x4cd8f7));}[_0x313905(0x168)](_0xaa0358){const _0x20cb2c=_0x313905;try{let _0x4000ee=ue(this[_0x20cb2c(0x2e9)],_0xaa0358[_0x20cb2c(0x335)]);for(let _0x5958fc of _0x4000ee)switch(_0x5958fc[_0x20cb2c(0x280)]){case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x1bc)]:this[_0x20cb2c(0x2d1)](_0x5958fc),this['_event$'][_0x20cb2c(0xb9)](_0x5958fc);break;case n['CollaborationEvent'][_0x20cb2c(0x134)]:this['_onUserLeave'](_0x5958fc),this[_0x20cb2c(0x441)][_0x20cb2c(0xb9)](_0x5958fc);break;case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x15d)]:case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x3cc)]:this[_0x20cb2c(0xc9)](),this[_0x20cb2c(0x441)]['next'](_0x5958fc);break;case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x398)]:this[_0x20cb2c(0x1c1)][_0x20cb2c(0x287)](_0x20cb2c(0x2ee)+JSON[_0x20cb2c(0x321)](_0x5958fc)),this[_0x20cb2c(0x441)][_0x20cb2c(0xb9)](_0x5958fc);break;case n[_0x20cb2c(0x2ce)][_0x20cb2c(0x2eb)]:this[_0x20cb2c(0x42c)][_0x20cb2c(0x11e)](_0x5958fc[_0x20cb2c(0x335)]),this[_0x20cb2c(0x441)][_0x20cb2c(0xb9)](_0x5958fc);break;default:this[_0x20cb2c(0x441)]['next'](_0x5958fc);}}catch(_0x4ce30a){this[_0x20cb2c(0x1c1)][_0x20cb2c(0x287)](_0x4ce30a,_0xaa0358);}}[_0x313905(0x2d1)](_0x20eae3){const _0x64a115=_0x313905;this[_0x64a115(0x2e8)]['updateMember'](this['_identity']['localUnitId'],_0x20eae3[_0x64a115(0x335)]);}['_onUserLeave'](_0x531aef){const _0x2556f0=_0x313905;this[_0x2556f0(0x2e8)][_0x2556f0(0x1f9)](this[_0x2556f0(0x2e9)][_0x2556f0(0xb4)],_0x531aef['data'][_0x2556f0(0x190)]);}async[_0x313905(0x1fa)](_0x33c199,_0x3bb383,_0x1c3c2d){const _0x40aef7=_0x313905;if(this[_0x40aef7(0x15c)]!==0x3||!this[_0x40aef7(0xe1)])throw Error(_0x40aef7(0x1cf));try{let _0x2257c5=le(this[_0x40aef7(0x2e9)],_0x33c199);_0x2257c5[_0x40aef7(0x280)]===n['CollaborationEvent'][_0x40aef7(0x189)]&&this[_0x40aef7(0x391)](_0x2257c5);let _0x29a044={'cmd':o[_0x40aef7(0x123)][_0x40aef7(0x40e)],'routeKey':this['_identity']['target'][_0x40aef7(0x39a)],'routeType':'','data':_0x2257c5};return _0x1c3c2d===void 0x0?this[_0x40aef7(0xe1)][_0x40aef7(0x1fa)](_0x29a044):this[_0x40aef7(0xe1)][_0x40aef7(0x1fa)](_0x29a044,_0x1c3c2d);}catch(_0x19fa21){this['_logService']['error'](_0x19fa21);}}[_0x313905(0x391)](_0x3bd6f9){const _0x4e4b56=_0x313905;if(!this[_0x4e4b56(0x442)])return;let {data:_0x339a9d}=_0x3bd6f9,{unitID:_0x40029c,changeset:_0x27d279}=_0x339a9d,{mutations:_0x3ba417,type:_0x18d536}=_0x27d279;this[_0x4e4b56(0x45f)]={'unitId':_0x40029c,'type':_0x18d536,'startTime':performance[_0x4e4b56(0x445)](),'stopTime':0x0,'duration':0x0,'size':ae(_0x3ba417)};}[_0x313905(0xc9)](){const _0x2429fb=_0x313905;this[_0x2429fb(0x442)]&&(this[_0x2429fb(0x45f)]?(this[_0x2429fb(0x45f)][_0x2429fb(0x312)]=performance[_0x2429fb(0x445)](),this[_0x2429fb(0x45f)]['duration']=this[_0x2429fb(0x45f)]['stopTime']-this[_0x2429fb(0x45f)][_0x2429fb(0x154)],this[_0x2429fb(0x361)]['capture'](_0x2429fb(0x300),this[_0x2429fb(0x45f)]),this[_0x2429fb(0x45f)]=null):this[_0x2429fb(0x1c1)][_0x2429fb(0x287)](_0x2429fb(0x28a),_0x2429fb(0x228)));}[_0x313905(0x105)](){const _0x2a85cb=_0x313905;this[_0x2a85cb(0x45f)]=null;}};S=b([y(0x2,r[_0x313905(0x26a)]),y(0x3,(0x0,r['Inject'])(x)),y(0x4,(0x0,r[_0x313905(0x377)])(se)),y(0x5,(0x0,r[_0x313905(0x377)])(v)),y(0x6,(0x0,r['Optional'])(s[_0x313905(0x138)]))],S);const C=(0x0,r[_0x313905(0x15e)])('collaboration-client.local-cache-service');function be(_0x264376,_0x368886){return _0x368886===''||_0x368886==null?'unit-cache-'+_0x264376:'unit-cache-'+_0x264376+'-'+encodeURIComponent(_0x368886);}function xe(_0x926296){const _0x166e40=_0x313905;let {unitID:_0x203753,mutations:_0x4e90d5}=_0x926296;return{'unitId':_0x203753,'subUnitId':_0x4e90d5[_0x166e40(0x1f6)]>0x0?_0x4e90d5[0x0][_0x166e40(0x1a1)][_0x166e40(0x39b)]:null};}let w=class{constructor(_0x174ab1,_0x5eeec4,_0x271b55){const _0x24d565=_0x313905;this[_0x24d565(0x2a2)]=_0x174ab1,this[_0x24d565(0x1a7)]=_0x5eeec4,this[_0x24d565(0x106)]=_0x271b55;}['transformSelections'](_0x1a9de3){const _0x4d5025=_0x313905;var _0x141f93,_0x30d8c9;let _0x41817d=this[_0x4d5025(0x2a2)][_0x4d5025(0xe5)](a[_0x4d5025(0x1f8)]),{unitId:_0x2817bd,subUnitId:_0x5c9164}=xe(_0x1a9de3),_0x42b87e=_0x41817d==null?void 0x0:_0x41817d[_0x4d5025(0x17f)](_0x2817bd)[_0x4d5025(0x276)](),_0x1cc3ff=(_0x141f93=this[_0x4d5025(0x106)]['getUnit'](_0x2817bd))==null||(_0x141f93=_0x141f93['getActiveSheet']())==null?void 0x0:_0x141f93['getSheetId']();if(_0x42b87e[_0x4d5025(0x1f6)]===0x0||!_0x2817bd||!_0x5c9164)return;let _0x5cbdc4=[{'id':a[_0x4d5025(0x17d)]['id'],'params':{'unitId':_0x2817bd,'subUnitId':_0x1cc3ff,'selections':r['Tools'][_0x4d5025(0x33b)](_0x42b87e)}}],_0x436205=this[_0x4d5025(0x1a7)][_0x4d5025(0x356)](_0x1a9de3,_0x5cbdc4);if(!(0x0,n[_0x4d5025(0x194)])(_0x436205))throw _0x436205[_0x4d5025(0x287)];let _0x9523de=(_0x30d8c9=_0x436205[_0x4d5025(0x248)][0x0])==null||(_0x30d8c9=_0x30d8c9[_0x4d5025(0x1a1)])==null?void 0x0:_0x30d8c9['selections'];if(Array['isArray'](_0x9523de)&&_0x9523de[_0x4d5025(0x1f6)]){if(_0x9523de[_0x4d5025(0x1f6)]===_0x5cbdc4[0x0]['params'][_0x4d5025(0x2ae)][_0x4d5025(0x1f6)]&&_0x9523de[_0x4d5025(0xc7)]((_0x3b4a3c,_0x501d0b)=>r[_0x4d5025(0x2f3)]['equals'](_0x3b4a3c[_0x4d5025(0x17e)],_0x5cbdc4[0x0][_0x4d5025(0x1a1)][_0x4d5025(0x2ae)][_0x501d0b]['range'])))return;this[_0x4d5025(0x2a2)][_0x4d5025(0xe5)](r[_0x4d5025(0x296)])[_0x4d5025(0x3c3)](a[_0x4d5025(0x17d)]['id'],{'unitId':_0x2817bd,'subUnitId':_0x1cc3ff,'selections':_0x9523de});}}};w=b([y(0x0,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x1,n[_0x313905(0x3cf)]),y(0x2,r[_0x313905(0xbb)])],w);const T=(0x0,r[_0x313905(0x15e)])('univer-pro.collaboration-client.single-active-unit-service');let Se=function(_0xd7a675){const _0x1d8b16=_0x313905;return _0xd7a675[_0xd7a675['NO_OTHER_CLIENTS_EDITING']=0x0]=_0x1d8b16(0xfd),_0xd7a675[_0xd7a675[_0x1d8b16(0x3ee)]=0x1]='OTHER_CLIENTS_EDITING',_0xd7a675;}({});function Ce(_0x2f4a24){const _0x502dd4=_0x313905;var _0x4b75a1;return!!((_0x4b75a1=_0x2f4a24[_0x502dd4(0x1a1)])!=null&&_0x4b75a1[_0x502dd4(0x3f7)]);}const we=new Set([a[_0x313905(0x14f)]['id']]),Te=new Set([l[_0x313905(0x2d2)]['id'],l['EnsureSlideMasterPageMutation']['id'],l['MoveSlidePageMutation']['id'],l[_0x313905(0x102)]['id']]);function Ee(_0xe421e4,_0xcf9656=we){const _0x17c58a=_0x313905;let _0x379ae0=[];for(let _0xed71b7 of _0xe421e4){if(_0xcf9656[_0x17c58a(0x3ae)](_0xed71b7['id'])||Ce(_0xed71b7)){if(_0x379ae0[_0x17c58a(0x1f6)]>0x0)break;_0x379ae0['push'](_0xed71b7);break;}_0x379ae0['push'](_0xed71b7);}return _0x379ae0;}function E(_0x39cd65,_0xb377df,_0x234c1e,_0x5c3535,_0x39cee8){const _0x1e94cb=_0x313905;let _0x125a5b=Ee(_0x39cd65),_0x38e08e=_0x39cee8['getCurrentUser'](),_0x3ca817=(_0x38e08e==null?void 0x0:_0x38e08e[_0x1e94cb(0x126)])??'unknown',_0x13e49f=(_0x38e08e==null?void 0x0:_0x38e08e[_0x1e94cb(0x190)])??_0x1e94cb(0x171);return{'changeset':{'unitID':_0xb377df,'type':(0x0,n['mapDocumentTypeToUniverInstanceType'])(_0x234c1e['getUnitType'](_0xb377df)),'baseRev':_0x5c3535[_0x1e94cb(0x3f3)](_0xb377df),'revision':0x0,'userID':_0x3ca817,'memberID':_0x13e49f,'mutations':_0x125a5b},'pendingMutations':_0x39cd65['slice'](_0x125a5b['length'])};}const De=E;function Oe(_0x37c32e,_0x1ed26,_0x4c6c4,_0x10d098,_0x442d11){const _0x1329df=_0x313905;let _0x2d13ad=Ee(_0x37c32e,Te),_0x869d3e=_0x442d11[_0x1329df(0x3ac)](),_0x47ad1a=(_0x869d3e==null?void 0x0:_0x869d3e[_0x1329df(0x126)])??_0x1329df(0x171),_0x37b36f=(_0x869d3e==null?void 0x0:_0x869d3e[_0x1329df(0x190)])??_0x1329df(0x171);return{'changeset':{'unitID':_0x1ed26,'type':(0x0,n['mapDocumentTypeToUniverInstanceType'])(_0x4c6c4['getUnitType'](_0x1ed26)),'baseRev':_0x10d098[_0x1329df(0x3f3)](_0x1ed26),'revision':0x0,'userID':_0x47ad1a,'memberID':_0x37b36f,'mutations':_0x2d13ad},'pendingMutations':_0x37c32e[_0x1329df(0x191)](_0x2d13ad['length'])};}function ke(_0x2580c6,_0x359691,_0x476357,_0x53d3bd,_0x4a4cc7){const _0x11b84e=_0x313905;let _0xb240c1=_0x2580c6[_0x11b84e(0x1a0)]((_0x20e4ec,_0x50374f)=>{const _0x5b8a2e=_0x11b84e;let _0x56d3a1=_0x20e4ec[_0x20e4ec[_0x5b8a2e(0x1f6)]-0x1],{id:_0x591c52}=_0x56d3a1??{},{id:_0x5d61a5,type:_0x20c004}=_0x50374f,_0x35553b=_0x50374f[_0x5b8a2e(0x1a1)];if(_0x591c52&&_0x591c52!==_0x5d61a5)throw Error(_0x5b8a2e(0x1ac)+_0x591c52+'\x20-\x20'+_0x5d61a5+'.');if(!_0x56d3a1)return[{'id':_0x5d61a5,'type':_0x20c004,'params':{'unitId':_0x35553b[_0x5b8a2e(0x39a)],'textRanges':_0x35553b['textRanges'],'actions':_0x35553b[_0x5b8a2e(0x465)]}}];let _0x24d568=_0x56d3a1[_0x5b8a2e(0x1a1)];return Ae(_0x24d568,_0x35553b)?[..._0x20e4ec[_0x5b8a2e(0x191)](0x0,-0x1),{..._0x56d3a1,'id':_0x5d61a5,'type':_0x20c004,'params':{'unitId':_0x35553b[_0x5b8a2e(0x39a)],'textRanges':_0x35553b[_0x5b8a2e(0x215)],'actions':r['JSONX'][_0x5b8a2e(0x3e3)](_0x24d568[_0x5b8a2e(0x465)],_0x35553b[_0x5b8a2e(0x465)])}}]:[..._0x20e4ec,{'id':_0x5d61a5,'type':_0x20c004,'params':{'unitId':_0x35553b[_0x5b8a2e(0x39a)],'textRanges':_0x35553b[_0x5b8a2e(0x215)],'actions':_0x35553b[_0x5b8a2e(0x465)]}}];},[]),_0x347b4c=_0x4a4cc7[_0x11b84e(0x3ac)](),_0x349480=(_0x347b4c==null?void 0x0:_0x347b4c[_0x11b84e(0x126)])??'unknown',_0x767b08=(_0x347b4c==null?void 0x0:_0x347b4c[_0x11b84e(0x190)])??_0x11b84e(0x171);return{'changeset':{'unitID':_0x359691,'type':(0x0,n[_0x11b84e(0x307)])(_0x476357[_0x11b84e(0x3c8)](_0x359691)),'baseRev':_0x53d3bd['getCurrentRevOfUnit'](_0x359691),'revision':0x0,'userID':_0x349480,'memberID':_0x767b08,'mutations':_0xb240c1},'pendingMutations':_0x2580c6[_0x11b84e(0x191)](_0x2580c6[_0x11b84e(0x1f6)])};}function Ae(_0x3d6168,_0x49cb13){const _0x50057a=_0x313905;return!je(_0x3d6168)&&!je(_0x49cb13)&&Me(_0x3d6168[_0x50057a(0x465)],_0x49cb13[_0x50057a(0x465)]);}function je(_0x32b514){const _0x23be49=_0x313905;return _0x32b514[_0x23be49(0x19a)]!==void 0x0;}function Me(_0x3e5136,_0x1c1466){return Ne(_0x3e5136)&&Ne(_0x1c1466)&&!Fe(_0x3e5136)&&!Fe(_0x1c1466)&&!Pe(_0x3e5136)&&!Pe(_0x1c1466);}function Ne(_0x51388e){const _0x2055f5=_0x313905;return Ie(_0x51388e)[_0x2055f5(0xb3)](_0x1ea63a=>D(_0x1ea63a)&&_0x1ea63a['et']===_0x2055f5(0x267));}function Pe(_0x1e74be){const _0xb182f5=_0x313905;return Ie(_0x1e74be)[_0xb182f5(0xb3)](_0x2a8b27=>Array[_0xb182f5(0x319)](_0x2a8b27)||typeof _0x2a8b27=='string'||typeof _0x2a8b27=='number');}function Fe(_0x4f6837){const _0x12e9ee=_0x313905;return Ie(_0x4f6837)[_0x12e9ee(0xb3)](_0x4067cc=>!D(_0x4067cc)||_0x4067cc['et']!==_0x12e9ee(0x267)||!Array[_0x12e9ee(0x319)](_0x4067cc['e'])?!0x1:_0x4067cc['e'][_0x12e9ee(0xb3)](_0x314cf3=>!D(_0x314cf3)||!D(_0x314cf3[_0x12e9ee(0x13e)])?!0x1:Object[_0x12e9ee(0x40d)]['hasOwnProperty'][_0x12e9ee(0x15b)](_0x314cf3[_0x12e9ee(0x13e)],_0x12e9ee(0x431))||Object[_0x12e9ee(0x40d)][_0x12e9ee(0xc5)][_0x12e9ee(0x15b)](_0x314cf3[_0x12e9ee(0x13e)],_0x12e9ee(0x3d9))||Object[_0x12e9ee(0x40d)][_0x12e9ee(0xc5)][_0x12e9ee(0x15b)](_0x314cf3[_0x12e9ee(0x13e)],_0x12e9ee(0x35d))));}function Ie(_0x42183e){const _0x541444=_0x313905;if(!Array[_0x541444(0x319)](_0x42183e))return[];let _0x4147ee=_0x42183e['includes'](_0x541444(0x13e))?_0x42183e:_0x42183e[_0x541444(0x3d1)](_0x5111c0=>Array[_0x541444(0x319)](_0x5111c0)&&_0x5111c0[_0x541444(0x310)](_0x541444(0x13e)));if(!Array[_0x541444(0x319)](_0x4147ee))return[];let _0x5839a5=_0x4147ee['indexOf'](_0x541444(0x13e));return _0x5839a5===-0x1?[]:_0x4147ee['slice'](_0x5839a5+0x1);}function D(_0x486984){return typeof _0x486984=='object'&&!!_0x486984&&!Array['isArray'](_0x486984);}function Le(_0x1475c4,_0x448f51){const _0x508f18=_0x313905;for(let _0xbf25a of _0x1475c4['mutations']){if(_0xbf25a['id']!==n[_0x508f18(0x24f)]['id'])continue;let _0x5cb93f=_0xbf25a['params'];if((_0x5cb93f==null?void 0x0:_0x5cb93f['unitId'])===_0x448f51&&typeof _0x5cb93f['revision']==_0x508f18(0x130))return{'unitId':_0x5cb93f[_0x508f18(0x39a)],'revision':_0x5cb93f[_0x508f18(0x274)]};}return null;}var Re,ze,Be,Ve=class extends Error{constructor(_0x4e8318){const _0x2d82bd=_0x313905;super(_0x4e8318 instanceof Error?_0x4e8318[_0x2d82bd(0x24c)]:typeof _0x4e8318=='string'?_0x4e8318:_0x2d82bd(0x308)),this['applyError']=_0x4e8318,this[_0x2d82bd(0x41b)]=_0x2d82bd(0x393);}},He=class extends Error{constructor(_0x4d3b20){const _0x324716=_0x313905;var _0x1979e3;super(_0x324716(0x2b4)+((_0x1979e3=_0x4d3b20[_0x324716(0x367)])==null?void 0x0:_0x1979e3[_0x324716(0x274)])+'.'),this[_0x324716(0x34a)]=_0x4d3b20,this[_0x324716(0x41b)]=_0x324716(0x40a);}};let Ue=function(_0x4906a5){const _0x79cd58=_0x313905;return _0x4906a5[_0x79cd58(0x112)]=_0x79cd58(0x1d9),_0x4906a5[_0x79cd58(0x282)]='synced',_0x4906a5[_0x79cd58(0x27a)]=_0x79cd58(0xd2),_0x4906a5['AWAITING']=_0x79cd58(0x3b6),_0x4906a5[_0x79cd58(0x3aa)]=_0x79cd58(0x244),_0x4906a5[_0x79cd58(0x3a3)]='fetch_missing',_0x4906a5[_0x79cd58(0x218)]=_0x79cd58(0x3a9),_0x4906a5['OFFLINE']=_0x79cd58(0x231),_0x4906a5;}({});var O=class{constructor(_0x328a5d,_0x56d268,_0x5ec219,_0x2c7b24,_0x5e37f6,_0xc34e58,_0x34b98a,_0x39608d,_0x595cbd){const _0x31a790=_0x313905;this[_0x31a790(0x181)]=_0x328a5d,this[_0x31a790(0x133)]=_0x56d268,this['_handler']=_0x5e37f6,this['_commandService']=_0xc34e58,this[_0x31a790(0x31e)]=_0x34b98a,this[_0x31a790(0x10b)]=_0x39608d,this['_localCacheService']=_0x595cbd,_(this,_0x31a790(0x10c),null),_(this,_0x31a790(0x3f8),[]),this[_0x31a790(0x10c)]=_0x5ec219,this[_0x31a790(0x3f8)]=_0x2c7b24;}['hasLocalChanges'](){const _0x1e8ece=_0x313905;return!!this[_0x1e8ece(0x10c)]||this[_0x1e8ece(0x3f8)]['length']>0x0;}[_0x313905(0x2a7)](){}[_0x313905(0x1b9)](){const _0x4f6af3=_0x313905;var _0x3b6d4c;return(((_0x3b6d4c=this[_0x4f6af3(0x10c)])==null?void 0x0:_0x3b6d4c[_0x4f6af3(0x23a)][_0x4f6af3(0x1f6)])??0x0)+this['_pendingMutations']['length'];}[_0x313905(0x33a)](_0x185b1d){const _0x29c520=_0x313905;return new ne(_0x185b1d[_0x29c520(0x131)]??0x0,(_0x5ec8c9,_0x28ae7d)=>this['_handler'][_0x29c520(0x1af)](_0x5ec8c9,_0x28ae7d),{...this[_0x29c520(0x146)][_0x29c520(0x205)],'onResend':_0x3bec40=>{const _0x340109=_0x29c520;var _0x4a2476,_0x2f7548;return(_0x4a2476=(_0x2f7548=this[_0x340109(0x146)])[_0x340109(0x1ed)])==null?void 0x0:_0x4a2476[_0x340109(0x15b)](_0x2f7548,_0x3bec40);}});}[_0x313905(0x3c0)](_0x5526a){const _0x45f069=_0x313905;if(this['_isEchoedAwaitingChangeset'](_0x5526a))return'echo';if(Le(_0x5526a,this[_0x45f069(0x181)]))return _0x45f069(0x1be);let _0x579848=this[_0x45f069(0x28e)]();return _0x5526a[_0x45f069(0x274)]<=_0x579848?_0x45f069(0x196):_0x5526a[_0x45f069(0x274)]>_0x579848+0x1?_0x45f069(0x2db):_0x45f069(0x425);}[_0x313905(0x17b)](_0x4e72fb){const _0xa4f4a9=_0x313905;let _0x326dc9=this[_0xa4f4a9(0x28e)]();return _0x4e72fb[_0xa4f4a9(0x274)]<=_0x326dc9?this[_0xa4f4a9(0x3ef)](_0x4e72fb)?_0xa4f4a9(0x19d):'stale':_0x4e72fb['revision']>_0x326dc9+0x1?'missing':_0xa4f4a9(0xb9);}[_0x313905(0x288)](_0x2fa8cb,_0x24b7e7){const _0x38b08a=_0x313905;switch(this[_0x38b08a(0x3c0)](_0x2fa8cb)){case _0x38b08a(0x193):return this[_0x38b08a(0x2c9)](_0x2fa8cb);case _0x38b08a(0x1be):return _0x24b7e7[_0x38b08a(0x433)](_0x2fa8cb);case _0x38b08a(0x196):return this;case _0x38b08a(0x2db):return this[_0x38b08a(0x1e9)](_0x2fa8cb[_0x38b08a(0x274)]),_0x24b7e7[_0x38b08a(0x354)](_0x2fa8cb);case _0x38b08a(0x425):return _0x24b7e7[_0x38b08a(0x421)](_0x2fa8cb);}}[_0x313905(0x2b8)](_0x5875be){const _0x25f295=_0x313905;return{'reason':_0x25f295(0x1be),'revert':{'revision':Le(_0x5875be,this[_0x25f295(0x181)])[_0x25f295(0x274)],'memberId':_0x5875be[_0x25f295(0x190)],'userId':_0x5875be[_0x25f295(0x126)]}};}['_conflictInfoFromError'](_0x31a291){const _0x36f90e=_0x313905;return{'reason':_0x31a291 instanceof Ve?'apply_failed':'transform_failed','message':_0x31a291 instanceof Error?_0x31a291[_0x36f90e(0x24c)]:typeof _0x31a291==_0x36f90e(0x116)?_0x31a291:void 0x0};}[_0x313905(0xbc)](_0x2807ef){const _0x5f09eb=_0x313905;return{'reason':_0x2807ef!=null&&_0x2807ef['isPermissionRej']?_0x5f09eb(0x229):(_0x2807ef==null?void 0x0:_0x2807ef[_0x5f09eb(0x2c3)])===o['ErrorCode']['LICENSE_UNIT_TYPE_REJECTED']?_0x5f09eb(0x2b7):_0x5f09eb(0x455),'message':_0x2807ef==null?void 0x0:_0x2807ef[_0x5f09eb(0x3ca)]};}[_0x313905(0x114)](_0x51e96e){const _0xae8ab3=_0x313905;return _0x51e96e===o[_0xae8ab3(0x18b)][_0xae8ab3(0x30c)]?_0xae8ab3(0x286):_0xae8ab3(0x1c8);}['_requestMissingChangesets'](_0x4b504d){const _0x1ce8f2=_0x313905;this['_handler'][_0x1ce8f2(0x432)]({'from':this[_0x1ce8f2(0x28e)](),'to':_0x4b504d-0x1});}[_0x313905(0x343)](_0x5b9247){const _0x326c02=_0x313905;this[_0x326c02(0x31e)]['transformUndoRedo'](this[_0x326c02(0x181)],_0x5b9247);}[_0x313905(0x2c4)](_0x14c2f8){const _0x34eb47=_0x313905;var _0x11cfc4,_0x531a6b;(_0x11cfc4=(_0x531a6b=this[_0x34eb47(0x146)])[_0x34eb47(0x1a6)])==null||_0x11cfc4['call'](_0x531a6b,_0x14c2f8);}['_prepareTransformSelections'](_0x5f2895){const _0x330509=_0x313905;var _0x3525e7,_0x1ed184;return((_0x3525e7=(_0x1ed184=this[_0x330509(0x146)])[_0x330509(0x1ba)])==null?void 0x0:_0x3525e7['call'](_0x1ed184,_0x5f2895))??null;}['_transformIMECache'](_0x492376){const _0x5f4c07=_0x313905;var _0xc94395,_0x3d06bf;return(_0xc94395=(_0x3d06bf=this[_0x5f4c07(0x146)])[_0x5f4c07(0x384)])==null?void 0x0:_0xc94395[_0x5f4c07(0x15b)](_0x3d06bf,_0x492376);}[_0x313905(0x302)](_0x3aac55){const _0x22abd9=_0x313905;var _0x1bc5fb,_0x4d6ced;return(_0x1bc5fb=(_0x4d6ced=this['_handler'])['onTransformState'])==null?void 0x0:_0x1bc5fb[_0x22abd9(0x15b)](_0x4d6ced,_0x3aac55);}['_transformRemoteChangesetByIMECache'](_0x107de2){const _0x3669dd=_0x313905;var _0x3dabb2,_0x5573ae;return((_0x3dabb2=(_0x5573ae=this['_handler'])[_0x3669dd(0x329)])==null?void 0x0:_0x3dabb2[_0x3669dd(0x15b)](_0x5573ae,_0x107de2))??_0x107de2;}[_0x313905(0xb5)](_0x237523){const _0x1a5e99=_0x313905;var _0x3c46af,_0x831d7d;return((_0x3c46af=(_0x831d7d=this[_0x1a5e99(0x146)])['onTransformRemoteChangesetByStateCache'])==null?void 0x0:_0x3c46af[_0x1a5e99(0x15b)](_0x831d7d,_0x237523))??_0x237523;}[_0x313905(0x11a)](_0x558257){const _0x3b80dd=_0x313905;if(this[_0x3b80dd(0x133)]===r[_0x3b80dd(0xd4)][_0x3b80dd(0x2b0)]){let {unitID:_0x189226,mutations:_0xa56183,memberID:_0x4a3570}=_0x558257,_0xafe801=_0xa56183[_0x3b80dd(0x1f6)]>0x0?_0xa56183[0x0]['params'][_0x3b80dd(0x215)]:[];if(Array['isArray'](_0xafe801)&&_0xafe801[_0x3b80dd(0x1f6)]>0x0){var _0x4be22f,_0x4917a0;(_0x4be22f=(_0x4917a0=this[_0x3b80dd(0x146)])[_0x3b80dd(0x36f)])==null||_0x4be22f['call'](_0x4917a0,{'unitID':_0x189226,'memberID':_0x4a3570,'textRanges':_0xafe801});}}}[_0x313905(0x1ae)](){const _0x3a77a2=_0x313905;var _0x327592;(_0x327592=this[_0x3a77a2(0x268)])==null||_0x327592[_0x3a77a2(0x1bb)](this['unitID'],this[_0x3a77a2(0x133)],this['_awaitingChangeset'],this[_0x3a77a2(0x3f8)]);}[_0x313905(0x28e)](){const _0x25982e=_0x313905;return this[_0x25982e(0x10b)][_0x25982e(0x3f3)](this[_0x25982e(0x181)]);}[_0x313905(0x15a)](_0x2befa3){const _0x54d93f=_0x313905;let _0x585700=this['_awaitingChangeset'];return!_0x585700||!_0x585700[_0x54d93f(0x3fd)]||_0x585700[_0x54d93f(0x131)]===null||_0x585700[_0x54d93f(0x131)]===void 0x0?!0x1:_0x2befa3[_0x54d93f(0x181)]===_0x585700[_0x54d93f(0x181)]&&_0x2befa3[_0x54d93f(0x3fd)]===_0x585700[_0x54d93f(0x3fd)]&&_0x2befa3[_0x54d93f(0x131)]===_0x585700[_0x54d93f(0x131)];}[_0x313905(0x3ef)](_0x2e9200){const _0x1418a3=_0x313905;let _0x13ecd2=this[_0x1418a3(0x10c)];return!(_0x13ecd2!=null&&_0x13ecd2['sid'])||_0x13ecd2['reqId']==null||!_0x2e9200[_0x1418a3(0x3fd)]||_0x2e9200['reqId']==null?!0x1:_0x2e9200[_0x1418a3(0x3fd)]===_0x13ecd2['sid']&&_0x2e9200[_0x1418a3(0x131)]===_0x13ecd2[_0x1418a3(0x131)];}[_0x313905(0x31a)](){const _0x4766ee=_0x313905;this[_0x4766ee(0x10b)]['incrementRevOfUnit'](this['unitID']);}[_0x313905(0x22c)](_0x346a21){const _0x3cf77b=_0x313905;let _0x2c7d3d=this[_0x3cf77b(0x2de)](_0x346a21);_0x2c7d3d=this[_0x3cf77b(0xb5)](_0x2c7d3d);let _0x3688ae=this[_0x3cf77b(0x2ad)](_0x2c7d3d),_0x364b34=(0x0,r['sequenceExecute'])(_0x2c7d3d[_0x3cf77b(0x23a)],this[_0x3cf77b(0x281)],{'fromCollab':!0x0});if(!_0x364b34['result'])throw _0x3688ae==null||_0x3688ae['rollback'](),new Ve(_0x364b34[_0x3cf77b(0x287)]);_0x3688ae==null||_0x3688ae[_0x3cf77b(0x3be)](),this['_transformIMECache'](_0x2c7d3d),this[_0x3cf77b(0x302)](_0x2c7d3d),this[_0x3cf77b(0x343)](_0x346a21),this[_0x3cf77b(0x2c4)](_0x2c7d3d),this['_syncEditingCollabCursor'](_0x2c7d3d),this['_incrementRevisionNumber']();}};let k=class extends O{constructor(_0x584726,_0x47d551,_0x2ff00f,_0x1dd7d8,_0xdb9fd7,_0x1be2d6,_0x2948b0,_0x422d44,_0x1eeb1f,_0x96c2e3){const _0x27a028=_0x313905;super(_0x584726,_0x47d551,null,[],_0x2ff00f,_0x2948b0,_0x1be2d6,_0x1dd7d8,_0x96c2e3),this['_injector']=_0xdb9fd7,this['_logService']=_0x422d44,this[_0x27a028(0x1a7)]=_0x1eeb1f,this['localCacheService']=_0x96c2e3,_(this,'status',_0x27a028(0x37a));}[_0x313905(0x36e)](_0x37753d){const _0x3f69c0=_0x313905;let _0x55ea0e=this[_0x3f69c0(0x2a2)][_0x3f69c0(0x246)](A,this[_0x3f69c0(0x181)],this['type'],[_0x37753d],this[_0x3f69c0(0x146)]);return _0x55ea0e['_schedule'](),_0x55ea0e[_0x3f69c0(0x1ae)](),_0x55ea0e;}[_0x313905(0x11f)](_0x3eefa3){const _0x2e002a=_0x313905;return this[_0x2e002a(0x288)](_0x3eefa3,{'onMissing':()=>this[_0x2e002a(0x2a2)]['createInstance'](F,this[_0x2e002a(0x181)],this[_0x2e002a(0x133)],null,[],null,[_0x3eefa3],this['_handler'],void 0x0),'onApply':()=>this[_0x2e002a(0x41c)](_0x3eefa3),'onRemoteRevert':()=>this[_0x2e002a(0xad)](this[_0x2e002a(0x2b8)](_0x3eefa3))});}[_0x313905(0x41c)](_0x513107){const _0x13c80a=_0x313905;try{let _0x26f90c=this[_0x13c80a(0x1a7)][_0x13c80a(0x356)](_0x513107,[n[_0x13c80a(0x342)]]);if((0x0,n[_0x13c80a(0x194)])(_0x26f90c)){let {c1Prime:_0x14d8a5}=_0x26f90c;return this['_executeRemoteChangeset'](_0x14d8a5),this;}throw _0x26f90c[_0x13c80a(0x287)];}catch(_0x22bfd3){return this[_0x13c80a(0x1c1)][_0x13c80a(0x287)](_0x22bfd3),this[_0x13c80a(0xad)](this[_0x13c80a(0xc8)](_0x22bfd3));}}['_onConflict'](_0x457e2e){const _0x146026=_0x313905;return this['_injector']['createInstance'](N,this[_0x146026(0x181)],this['type'],null,[],this[_0x146026(0x146)],_0x457e2e);}[_0x313905(0x2c9)](_0x28ada5){const _0x214e3c=_0x313905;if(this[_0x214e3c(0x17b)](_0x28ada5)==='stale')return this;throw Error(_0x214e3c(0x3db));}['onRemoteRej'](){throw Error('[SyncedState]:\x20received\x20rejection.');}[_0x313905(0x100)](){return this;}['toggleOffline'](){const _0x277320=_0x313905;return this[_0x277320(0x2a2)][_0x277320(0x246)](P,this[_0x277320(0x181)],this['type'],null,[],this[_0x277320(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x323)](){const _0x511c8e=_0x313905;throw Error(_0x511c8e(0x362));}['fetchMiss'](){const _0x4dcfec=_0x313905;let _0xcaa49f=this['_revisionService'][_0x4dcfec(0x3f3)](this['unitID']);return this['_handler'][_0x4dcfec(0x432)]({'from':_0xcaa49f,'to':0x0}),this['_injector']['createInstance'](F,this['unitID'],this[_0x4dcfec(0x133)],null,[],null,[],this[_0x4dcfec(0x146)],void 0x0);}};k=b([y(0x3,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x4,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x5,r[_0x313905(0xb1)]),y(0x6,r[_0x313905(0x296)]),y(0x7,r[_0x313905(0x26a)]),y(0x8,n['ITransformService']),y(0x9,(0x0,r['Optional'])(C))],k);let A=Re=class extends O{constructor(_0x407a6b,_0x41725e,_0xd5aa20,_0xe800eb,_0x126338,_0x2cfa5e,_0x30f392,_0x371b0d,_0x5b7405,_0x4ff0ac,_0x14d8c3,_0x3e6c76,_0x412e56,_0x4cfafb){const _0x53b03c=_0x313905;super(_0x407a6b,_0x41725e,null,_0xd5aa20,_0xe800eb,_0x5b7405,_0x412e56,_0x2cfa5e,_0x4cfafb),this['_injector']=_0x126338,this[_0x53b03c(0xdb)]=_0x30f392,this[_0x53b03c(0x1c1)]=_0x371b0d,this['_configService']=_0x4ff0ac,this[_0x53b03c(0x1a7)]=_0x14d8c3,this['_univerInstanceService']=_0x3e6c76,_(this,_0x53b03c(0x265),_0x53b03c(0xd2)),_(this,_0x53b03c(0x1fc),null),_(this,_0x53b03c(0x44f),null);}['appendMutation'](_0x1d7700){const _0x37b722=_0x313905;return this[_0x37b722(0x3f8)][_0x37b722(0x101)](_0x1d7700),this[_0x37b722(0x1ae)](),this;}['onRemoteChangeset'](_0x488bd8){const _0x83bca8=_0x313905;return this['_dispatchRemoteChangeset'](_0x488bd8,{'onMissing':()=>(this[_0x83bca8(0x43f)](),this['_injector'][_0x83bca8(0x246)](F,this['unitID'],this[_0x83bca8(0x133)],null,this[_0x83bca8(0x3f8)],null,[_0x488bd8],this['_handler'],void 0x0)),'onApply':()=>this[_0x83bca8(0x41c)](_0x488bd8),'onRemoteRevert':()=>this[_0x83bca8(0xad)](this[_0x83bca8(0x2b8)](_0x488bd8))});}[_0x313905(0x41c)](_0x186857){const _0x21cb17=_0x313905;try{let _0x3005e0=this[_0x21cb17(0x1a7)][_0x21cb17(0x356)](_0x186857,this['_pendingMutations']);if((0x0,n[_0x21cb17(0x194)])(_0x3005e0)){let {c1Prime:_0x10fc92,m2Prime:_0x14a499}=_0x3005e0;this[_0x21cb17(0x22c)](_0x10fc92);let _0x1f672d=this[_0x21cb17(0x2a2)][_0x21cb17(0x246)](Re,this['unitID'],this[_0x21cb17(0x133)],_0x14a499,this[_0x21cb17(0x146)]);_0x1f672d[_0x21cb17(0x1ae)](),this[_0x21cb17(0x43f)]();let _0x533d71=new Date()[_0x21cb17(0x1cd)](),_0x5112ed=this[_0x21cb17(0x1fc)]?Math[_0x21cb17(0x2aa)](this[_0x21cb17(0x1fc)]-_0x533d71,0x0):this['_getSendChangesetTimeout']();return _0x1f672d['_schedule'](_0x5112ed),_0x1f672d;}throw _0x3005e0[_0x21cb17(0x287)];}catch(_0x9619c5){return this[_0x21cb17(0x1c1)]['error'](_0x9619c5),this[_0x21cb17(0xad)](this[_0x21cb17(0xc8)](_0x9619c5));}}[_0x313905(0x2c9)](_0x13ec84){const _0x48d068=_0x313905;if(this[_0x48d068(0x17b)](_0x13ec84)==='stale')return this;throw Error(_0x48d068(0x1e0));}[_0x313905(0x446)](){const _0xce1618=_0x313905;throw Error(_0xce1618(0x382));}[_0x313905(0x100)](){return this;}[_0x313905(0x2c7)](){const _0x55cac9=_0x313905;return this[_0x55cac9(0x43f)](),this['_injector']['createInstance'](P,this[_0x55cac9(0x181)],this['type'],null,this[_0x55cac9(0x3f8)],this[_0x55cac9(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x2ac)](_0x1a3375){const _0x2aebb7=_0x313905;let _0x44a0e5=_0x1a3375??this[_0x2aebb7(0x374)]();this[_0x2aebb7(0x1fc)]=new Date()['getTime']()+_0x44a0e5,this['_sendingTimer']=setTimeout(()=>{const _0x2c88fb=_0x2aebb7;this['_clearScheduledTask']();let _0x53d07b=null;switch(this[_0x2c88fb(0x133)]){case r['UniverInstanceType'][_0x2c88fb(0x155)]:_0x53d07b=E(this[_0x2c88fb(0x3f8)],this[_0x2c88fb(0x181)],this['_univerInstanceService'],this[_0x2c88fb(0x10b)],this['_userManagerService']);break;case r[_0x2c88fb(0xd4)]['UNIVER_DOC']:_0x53d07b=this[_0x2c88fb(0x3f8)]['every'](_0x13fcd6=>_0x13fcd6['id']===i[_0x2c88fb(0x1d0)]['id'])?ke(this['_pendingMutations'],this[_0x2c88fb(0x181)],this[_0x2c88fb(0x121)],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]):E(this[_0x2c88fb(0x3f8)],this[_0x2c88fb(0x181)],this['_univerInstanceService'],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]);break;case r['UniverInstanceType']['UNIVER_SLIDE']:_0x53d07b=Oe(this[_0x2c88fb(0x3f8)],this[_0x2c88fb(0x181)],this[_0x2c88fb(0x121)],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]);break;case r[_0x2c88fb(0xd4)][_0x2c88fb(0x341)]:_0x53d07b=De(this['_pendingMutations'],this['unitID'],this[_0x2c88fb(0x121)],this['_revisionService'],this[_0x2c88fb(0xdb)]);break;case r[_0x2c88fb(0xd4)]['UNIVER_BOARD']:_0x53d07b=E(this['_pendingMutations'],this['unitID'],this[_0x2c88fb(0x121)],this['_revisionService'],this[_0x2c88fb(0xdb)]);break;case r[_0x2c88fb(0xd4)][_0x2c88fb(0x315)]:_0x53d07b=E(this['_pendingMutations'],this['unitID'],this[_0x2c88fb(0x121)],this[_0x2c88fb(0x10b)],this[_0x2c88fb(0xdb)]);break;default:throw Error(_0x2c88fb(0xec)+this[_0x2c88fb(0x133)]+_0x2c88fb(0xf9));}let {changeset:_0x5ba628,pendingMutations:_0x1f26f2}=_0x53d07b,_0x50cf21=this[_0x2c88fb(0x33a)](_0x5ba628);_0x50cf21['submit'](_0x5ba628,_0x5ba628[_0x2c88fb(0x23a)][_0x2c88fb(0x1f6)]+_0x1f26f2['length']);let _0x242948=_0x1f26f2[_0x2c88fb(0x1f6)]?this[_0x2c88fb(0x2a2)]['createInstance'](M,this[_0x2c88fb(0x181)],this['type'],_0x5ba628,_0x1f26f2,this[_0x2c88fb(0x146)],_0x50cf21):this[_0x2c88fb(0x2a2)][_0x2c88fb(0x246)](j,this['unitID'],this[_0x2c88fb(0x133)],_0x5ba628,this[_0x2c88fb(0x146)],_0x50cf21);_0x242948['_updateLocalCache'](),this[_0x2c88fb(0x146)]['onStateChange'](this,_0x242948);},_0x44a0e5);}[_0x313905(0x374)](){const _0x30de00=_0x313905;let _0x1b1386=this[_0x30de00(0x2be)][_0x30de00(0x292)](m);return(_0x1b1386==null?void 0x0:_0x1b1386[_0x30de00(0x366)])??0x7d0;}[_0x313905(0x323)](){const _0x55740d=_0x313905;throw Error(_0x55740d(0x372));}['_clearScheduledTask'](){const _0x16f3d6=_0x313905;this[_0x16f3d6(0x44f)]!=null&&(clearTimeout(this['_sendingTimer']),this[_0x16f3d6(0x44f)]=null);}[_0x313905(0x2a7)](){this['_clearScheduledTask']();}[_0x313905(0xad)](_0x12de4a){const _0x186e41=_0x313905;return this[_0x186e41(0x43f)](),this['_injector'][_0x186e41(0x246)](N,this['unitID'],this[_0x186e41(0x133)],null,this[_0x186e41(0x3f8)],this[_0x186e41(0x146)],_0x12de4a);}};A=Re=b([y(0x4,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x5,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x6,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x224)])),y(0x7,r[_0x313905(0x26a)]),y(0x8,r[_0x313905(0x296)]),y(0x9,r[_0x313905(0x21c)]),y(0xa,n[_0x313905(0x3cf)]),y(0xb,r['IUniverInstanceService']),y(0xc,r['IUndoRedoService']),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],A);let j=ze=class extends O{constructor(_0x14c02a,_0x226f99,_0x330212,_0x4df480,_0x5a4514,_0x38981f,_0x12d066,_0x1ccdd6,_0x26ab70,_0x5a909b,_0x6ef9ff,_0x37db53){const _0x1f7d7a=_0x313905;super(_0x14c02a,_0x226f99,_0x330212,[],_0x4df480,_0x1ccdd6,_0x6ef9ff,_0x12d066,_0x37db53),this[_0x1f7d7a(0x2a2)]=_0x38981f,this[_0x1f7d7a(0x1c1)]=_0x26ab70,this[_0x1f7d7a(0x1a7)]=_0x5a909b,_(this,_0x1f7d7a(0x265),_0x1f7d7a(0x3b6)),_(this,_0x1f7d7a(0x43a),void 0x0),this[_0x1f7d7a(0x43a)]=_0x5a4514??this[_0x1f7d7a(0x33a)](_0x330212),this[_0x1f7d7a(0x43a)][_0x1f7d7a(0x3a7)](()=>({'changeset':this[_0x1f7d7a(0x10c)],'unsyncedMutationCount':this['_unsyncedMutationCount']()})),_0x5a4514||this['_submitter']['armAckTimeout']();}[_0x313905(0x36e)](_0x5ca44b){const _0x583389=_0x313905;this[_0x583389(0x26c)]();let _0x32b74a=this['_injector'][_0x583389(0x246)](M,this[_0x583389(0x181)],this[_0x583389(0x133)],this[_0x583389(0x10c)],[_0x5ca44b],this[_0x583389(0x146)],this['_submitter']);return _0x32b74a[_0x583389(0x1ae)](),_0x32b74a;}[_0x313905(0x11f)](_0x4237c1){const _0x19008a=_0x313905;return this[_0x19008a(0x288)](_0x4237c1,{'onMissing':()=>(this[_0x19008a(0x26c)](),this['_injector']['createInstance'](F,this[_0x19008a(0x181)],this[_0x19008a(0x133)],this[_0x19008a(0x10c)],[],null,[_0x4237c1],this[_0x19008a(0x146)],this[_0x19008a(0x43a)])),'onApply':()=>this['_transformAndApply'](_0x4237c1),'onRemoteRevert':()=>this[_0x19008a(0xad)](this[_0x19008a(0x2b8)](_0x4237c1))});}[_0x313905(0x41c)](_0x133f48){const _0x3ce8b6=_0x313905;try{let _0x4b99b7=this[_0x3ce8b6(0x1a7)][_0x3ce8b6(0x2f0)]([_0x133f48],[this[_0x3ce8b6(0x10c)]],!0x1);if((0x0,n[_0x3ce8b6(0x204)])(_0x4b99b7)){let {c1Prime:_0x5f2b93,c2Prime:_0x15d67b}=_0x4b99b7;this[_0x3ce8b6(0x22c)](_0x5f2b93[0x0]),_0x15d67b[0x0]['baseRev']=this[_0x3ce8b6(0x28e)](),this['_detachSubmitter']();let _0x3dbed6=this['_injector'][_0x3ce8b6(0x246)](ze,this[_0x3ce8b6(0x181)],this['type'],_0x15d67b[0x0],this[_0x3ce8b6(0x146)],this['_submitter']);return _0x3dbed6[_0x3ce8b6(0x1ae)](),_0x3dbed6;}throw _0x4b99b7[_0x3ce8b6(0x287)];}catch(_0x3b680b){return this['_logService'][_0x3ce8b6(0x287)](_0x3b680b),this[_0x3ce8b6(0xad)](this['_conflictInfoFromError'](_0x3b680b));}}['onRemoteAck'](_0x5b6747){const _0x27bcd3=_0x313905;switch(this[_0x27bcd3(0x17b)](_0x5b6747)){case _0x27bcd3(0x109):return this[_0x27bcd3(0x1c1)]['debug']('[AwaitingState]','ignored\x20stale\x20ack\x20of\x20revision\x20'+_0x5b6747[_0x27bcd3(0x274)]+_0x27bcd3(0x254)+this['_getCurrentRevision']()+'.'),this;case'ack_of_awaiting':return this['_submitter'][_0x27bcd3(0x2a7)](),this[_0x27bcd3(0x14a)]();case _0x27bcd3(0x2db):return this[_0x27bcd3(0x43a)][_0x27bcd3(0x2a7)](),this[_0x27bcd3(0x1e9)](_0x5b6747[_0x27bcd3(0x274)]),this[_0x27bcd3(0x2a2)][_0x27bcd3(0x246)](F,this['unitID'],this[_0x27bcd3(0x133)],this[_0x27bcd3(0x10c)],[],_0x5b6747[_0x27bcd3(0x274)],[],this[_0x27bcd3(0x146)],void 0x0);case _0x27bcd3(0xb9):return this[_0x27bcd3(0x43a)][_0x27bcd3(0x2a7)](),this[_0x27bcd3(0x31a)](),this[_0x27bcd3(0x14a)]();}}[_0x313905(0x14a)](){const _0x1016dd=_0x313905;let _0x175332=this[_0x1016dd(0x2a2)]['createInstance'](k,this['unitID'],this[_0x1016dd(0x133)],this['_handler']);return _0x175332[_0x1016dd(0x1ae)](),_0x175332;}[_0x313905(0x446)](_0x197155){const _0x5f0e2e=_0x313905;return this[_0x5f0e2e(0xad)](this[_0x5f0e2e(0xbc)](_0x197155));}[_0x313905(0x100)](_0x1cab67,_0x2b96c5){const _0x26e290=_0x313905;var _0x423d8f;return _0x1cab67[_0x26e290(0x131)]===((_0x423d8f=this[_0x26e290(0x10c)])==null?void 0x0:_0x423d8f[_0x26e290(0x131)])&&this[_0x26e290(0x43a)][_0x26e290(0x188)](this[_0x26e290(0x114)](_0x2b96c5)),this;}['toggleOffline'](){const _0x2c0b72=_0x313905;return this[_0x2c0b72(0x43a)][_0x2c0b72(0x2a7)](),this[_0x2c0b72(0x2a2)][_0x2c0b72(0x246)](P,this[_0x2c0b72(0x181)],this['type'],this[_0x2c0b72(0x10c)],[],this['_handler']);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x323)](_0x1ebf7b='reconnect'){const _0x24ea98=_0x313905;this[_0x24ea98(0x43a)][_0x24ea98(0x45b)](this[_0x24ea98(0x10c)],this['_unsyncedMutationCount'](),_0x1ebf7b);}['_onConflict'](_0x22769c){const _0x3182a8=_0x313905;return this[_0x3182a8(0x43a)][_0x3182a8(0x2a7)](),this['_injector'][_0x3182a8(0x246)](N,this[_0x3182a8(0x181)],this[_0x3182a8(0x133)],this[_0x3182a8(0x10c)],[],this['_handler'],_0x22769c);}[_0x313905(0x2a7)](){const _0x2a445c=_0x313905;this[_0x2a445c(0x43a)][_0x2a445c(0x2a7)]();}[_0x313905(0x26c)](){const _0x3f201f=_0x313905;this[_0x3f201f(0x43a)][_0x3f201f(0x41f)]();}};j=ze=b([y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,r['ICommandService']),y(0x8,r[_0x313905(0x26a)]),y(0x9,n[_0x313905(0x3cf)]),y(0xa,r[_0x313905(0xb1)]),y(0xb,(0x0,r['Optional'])(C))],j);let M=Be=class extends O{constructor(_0x1f476c,_0x14a87a,_0x3beb52,_0x549f20,_0x33aa58,_0x4231cb,_0x44fe41,_0x273295,_0x1cd2fa,_0x273842,_0x13e491,_0x57e77a,_0x13a436){const _0x47b9ea=_0x313905;super(_0x1f476c,_0x14a87a,_0x3beb52,_0x549f20,_0x33aa58,_0x1cd2fa,_0x57e77a,_0x273295,_0x13a436),this[_0x47b9ea(0x2a2)]=_0x44fe41,this[_0x47b9ea(0x1c1)]=_0x273842,this[_0x47b9ea(0x1a7)]=_0x13e491,this[_0x47b9ea(0x103)]=_0x13a436,_(this,_0x47b9ea(0x265),'awaiting_with_pending'),_(this,'_submitter',void 0x0),this['_submitter']=_0x4231cb??this[_0x47b9ea(0x33a)](_0x3beb52),this[_0x47b9ea(0x43a)][_0x47b9ea(0x3a7)](()=>({'changeset':this['_awaitingChangeset'],'unsyncedMutationCount':this[_0x47b9ea(0x1b9)]()})),_0x4231cb||this[_0x47b9ea(0x43a)]['armAckTimeout']();}[_0x313905(0x36e)](_0x16bd1c){const _0x56072c=_0x313905;return this[_0x56072c(0x3f8)]['push'](_0x16bd1c),this[_0x56072c(0x1ae)](),this;}[_0x313905(0x11f)](_0x5ca582){const _0x3b28ed=_0x313905;return this[_0x3b28ed(0x288)](_0x5ca582,{'onMissing':()=>(this[_0x3b28ed(0x26c)](),this[_0x3b28ed(0x2a2)][_0x3b28ed(0x246)](F,this[_0x3b28ed(0x181)],this['type'],this[_0x3b28ed(0x10c)],this[_0x3b28ed(0x3f8)],null,[_0x5ca582],this[_0x3b28ed(0x146)],this[_0x3b28ed(0x43a)])),'onApply':()=>this[_0x3b28ed(0x41c)](_0x5ca582),'onRemoteRevert':()=>this[_0x3b28ed(0xad)](this[_0x3b28ed(0x2b8)](_0x5ca582))});}[_0x313905(0x41c)](_0x3100bc){const _0x55e2f0=_0x313905;try{let _0x4c82e5=this[_0x55e2f0(0x1a7)][_0x55e2f0(0x2f0)]([_0x3100bc],[this[_0x55e2f0(0x10c)]],!0x1);if((0x0,n[_0x55e2f0(0x204)])(_0x4c82e5)){let {c1Prime:_0x4d81fa,c2Prime:_0x37411b}=_0x4c82e5,_0x528c9c=this[_0x55e2f0(0x1a7)][_0x55e2f0(0x356)](_0x4d81fa[0x0],this['_pendingMutations']);if((0x0,n[_0x55e2f0(0x194)])(_0x528c9c)){let {c1Prime:_0x132cb3,m2Prime:_0x3359d7}=_0x528c9c;this[_0x55e2f0(0x22c)](_0x132cb3),_0x37411b[0x0][_0x55e2f0(0x199)]=this['_getCurrentRevision'](),this['_detachSubmitter']();let _0x4eef0a=this[_0x55e2f0(0x2a2)][_0x55e2f0(0x246)](Be,this['unitID'],this[_0x55e2f0(0x133)],_0x37411b[0x0],_0x3359d7,this['_handler'],this['_submitter']);return _0x4eef0a[_0x55e2f0(0x1ae)](),_0x4eef0a;}throw _0x528c9c[_0x55e2f0(0x287)];}throw _0x4c82e5[_0x55e2f0(0x287)];}catch(_0x3daca7){return this[_0x55e2f0(0x1c1)][_0x55e2f0(0x287)](_0x3daca7),this[_0x55e2f0(0xad)](this['_conflictInfoFromError'](_0x3daca7));}}['onRemoteAck'](_0x1d8c81){const _0x36c8b2=_0x313905;switch(this[_0x36c8b2(0x17b)](_0x1d8c81)){case _0x36c8b2(0x109):return this['_logService']['debug'](_0x36c8b2(0x464),_0x36c8b2(0x202)+_0x1d8c81[_0x36c8b2(0x274)]+'\x20at\x20revision\x20'+this[_0x36c8b2(0x28e)]()+'.'),this;case _0x36c8b2(0x19d):return this[_0x36c8b2(0x43a)][_0x36c8b2(0x2a7)](),this[_0x36c8b2(0x404)]();case _0x36c8b2(0x2db):return this[_0x36c8b2(0x43a)][_0x36c8b2(0x2a7)](),this[_0x36c8b2(0x1e9)](_0x1d8c81[_0x36c8b2(0x274)]),this[_0x36c8b2(0x2a2)]['createInstance'](F,this[_0x36c8b2(0x181)],this[_0x36c8b2(0x133)],this[_0x36c8b2(0x10c)],this['_pendingMutations'],_0x1d8c81['revision'],[],this[_0x36c8b2(0x146)],void 0x0);case _0x36c8b2(0xb9):return this[_0x36c8b2(0x43a)][_0x36c8b2(0x2a7)](),this[_0x36c8b2(0x31a)](),this[_0x36c8b2(0x404)]();}}['_toPending'](){const _0x39e6f5=_0x313905;let _0x2a7a4e=this['_injector']['createInstance'](A,this['unitID'],this['type'],this[_0x39e6f5(0x3f8)],this['_handler']);return _0x2a7a4e['_schedule'](),_0x2a7a4e['_updateLocalCache'](),_0x2a7a4e;}[_0x313905(0x446)](_0x4f6059){const _0x35ae81=_0x313905;return this[_0x35ae81(0xad)](this[_0x35ae81(0xbc)](_0x4f6059));}[_0x313905(0x100)](_0x3494eb,_0x8fea35){const _0x263e63=_0x313905;var _0x484bad;return _0x3494eb[_0x263e63(0x131)]===((_0x484bad=this[_0x263e63(0x10c)])==null?void 0x0:_0x484bad[_0x263e63(0x131)])&&this[_0x263e63(0x43a)][_0x263e63(0x188)](this[_0x263e63(0x114)](_0x8fea35)),this;}['toggleOffline'](){const _0x34f67e=_0x313905;return this[_0x34f67e(0x43a)][_0x34f67e(0x2a7)](),this['_injector'][_0x34f67e(0x246)](P,this[_0x34f67e(0x181)],this[_0x34f67e(0x133)],this['_awaitingChangeset'],this[_0x34f67e(0x3f8)],this[_0x34f67e(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0x323)](_0x40caaa=_0x313905(0xf6)){const _0x5c6cc5=_0x313905;this[_0x5c6cc5(0x43a)]['submit'](this[_0x5c6cc5(0x10c)],this[_0x5c6cc5(0x1b9)](),_0x40caaa);}[_0x313905(0xad)](_0x3f3b03){const _0x8529c7=_0x313905;return this[_0x8529c7(0x43a)][_0x8529c7(0x2a7)](),this[_0x8529c7(0x2a2)][_0x8529c7(0x246)](N,this[_0x8529c7(0x181)],this[_0x8529c7(0x133)],this[_0x8529c7(0x10c)],this[_0x8529c7(0x3f8)],this[_0x8529c7(0x146)],_0x3f3b03);}[_0x313905(0x2a7)](){const _0x32fe42=_0x313905;this[_0x32fe42(0x43a)][_0x32fe42(0x2a7)]();}[_0x313905(0x26c)](){const _0x344cd1=_0x313905;this[_0x344cd1(0x43a)][_0x344cd1(0x41f)]();}};M=Be=b([y(0x6,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x7,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x8,r[_0x313905(0x296)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,n[_0x313905(0x3cf)]),y(0xb,r['IUndoRedoService']),y(0xc,(0x0,r[_0x313905(0xe6)])(C))],M);let N=class extends O{constructor(_0x229d63,_0x532621,_0x53e099,_0xd4c84c,_0x14289e,_0x1cb1ec,_0x15764e,_0x5b1303,_0x20b171,_0x53ece5,_0x174893,_0x468f19,_0x5d8e27,_0x2b9749){const _0x30605c=_0x313905;var _0x5484a1;super(_0x229d63,_0x532621,_0x53e099,_0xd4c84c,_0x14289e,_0x5b1303,_0x20b171,_0x53ece5,_0x2b9749),this[_0x30605c(0x34a)]=_0x1cb1ec,this[_0x30605c(0x3ed)]=_0x15764e,this[_0x30605c(0xdb)]=_0x174893,this[_0x30605c(0x1c1)]=_0x468f19,this['_collaborationUIEventService']=_0x5d8e27,this[_0x30605c(0x103)]=_0x2b9749,_(this,_0x30605c(0x265),_0x30605c(0x3a9)),_(this,_0x30605c(0x3af),void 0x0);let _0x48953f=((_0x5484a1=this['_userManagerService'][_0x30605c(0x3ac)]())==null?void 0x0:_0x5484a1[_0x30605c(0x126)])??'';this[_0x30605c(0x3af)]=_0x53e099||_0xd4c84c[_0x30605c(0x1f6)]?{'unitID':_0x229d63,'userId':_0x48953f||void 0x0,'type':_0x532621,'rev':this[_0x30605c(0x28e)](),'awaitingChangeset':_0x53e099,'mutations':_0xd4c84c}:null,this[_0x30605c(0x1a5)](),this[_0x30605c(0x3c6)](),this[_0x30605c(0x1ff)](_0x48953f)[_0x30605c(0x3bb)](_0x4ba00b=>this[_0x30605c(0x1c1)][_0x30605c(0x287)](_0x4ba00b));}async[_0x313905(0x1ff)](_0x4c1f08){const _0x354034=_0x313905;var _0x1d7f4f,_0x5d0604,_0x2e8b77,_0xe46044;await((_0x1d7f4f=this[_0x354034(0x268)])==null||(_0x5d0604=_0x1d7f4f['backupOfflineData'])==null?void 0x0:_0x5d0604[_0x354034(0x15b)](_0x1d7f4f,this[_0x354034(0x181)],this[_0x354034(0x34a)]['reason'],_0x4c1f08)['catch'](()=>void 0x0));let _0x2139ec=!0x0;try{var _0x1d9369;await((_0x1d9369=this[_0x354034(0x268)])==null?void 0x0:_0x1d9369[_0x354034(0x1c0)](this[_0x354034(0x181)],_0x4c1f08));}catch{_0x2139ec=!0x1,this[_0x354034(0x37e)][_0x354034(0x117)]({'id':_0x354034(0x20d),'unitID':this[_0x354034(0x181)],'userId':_0x4c1f08});}(_0x2e8b77=(_0xe46044=this['_handler'])[_0x354034(0xb0)])==null||_0x2e8b77[_0x354034(0x15b)](_0xe46044,this[_0x354034(0x34a)],this[_0x354034(0x3af)],_0x2139ec);}[_0x313905(0x36e)](){return this;}[_0x313905(0x11f)](){return this;}[_0x313905(0x2c9)](){return this;}[_0x313905(0x446)](){return this;}[_0x313905(0x100)](){return this;}[_0x313905(0x2c7)](){return this;}['toggleOnline'](){return this;}[_0x313905(0x323)](){throw Error('[ConflictState]:\x20invalid\x20calling\x20to\x20`resend`.');}[_0x313905(0x3c6)](){const _0x57865f=_0x313905;this['_collaborationUIEventService'][_0x57865f(0x117)]({'id':_0x57865f(0x25f),'unitID':this[_0x57865f(0x181)]});}[_0x313905(0x1a5)](){const _0x3cf03e=_0x313905;this[_0x3cf03e(0x3ed)][_0x3cf03e(0x43b)](new a[(_0x3cf03e(0x360))](this[_0x3cf03e(0x181)])['id'],!0x1);}};N=b([y(0x6,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x132)])),y(0x7,r['ICommandService']),y(0x8,r[_0x313905(0xb1)]),y(0x9,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0xa,(0x0,r['Inject'])(r[_0x313905(0x224)])),y(0xb,r[_0x313905(0x26a)]),y(0xc,(0x0,r['Inject'])(v)),y(0xd,(0x0,r['Optional'])(C))],N);let P=class extends O{constructor(_0x42b186,_0x592f9f,_0x37f968,_0x5a7ff3,_0x12e8dc,_0x411e7f,_0x3317dc,_0x5b347b,_0x23d171,_0x5a24a4,_0x3302af){const _0x1c7d50=_0x313905;super(_0x42b186,_0x592f9f,_0x37f968,_0x5a7ff3,_0x12e8dc,_0x5b347b,_0x23d171,_0x3317dc,_0x3302af),this[_0x1c7d50(0x2a2)]=_0x411e7f,this[_0x1c7d50(0x1c1)]=_0x5a24a4,_(this,'status',_0x1c7d50(0x231));}['appendMutation'](_0x2e2332){const _0x5e91e8=_0x313905;return this[_0x5e91e8(0x3f8)][_0x5e91e8(0x101)](_0x2e2332),this[_0x5e91e8(0x1ae)](),this;}[_0x313905(0x11f)](_0x2354ef){const _0x35cb95=_0x313905;return this[_0x35cb95(0x1c1)][_0x35cb95(0x426)](_0x35cb95(0x195),_0x35cb95(0x200)+_0x2354ef[_0x35cb95(0x274)]+'.'),this;}[_0x313905(0x2c9)](_0x14123e){const _0x36a3d7=_0x313905;return this[_0x36a3d7(0x1c1)]['debug'](_0x36a3d7(0x195),_0x36a3d7(0x351)+_0x14123e[_0x36a3d7(0x274)]+'.'),this;}[_0x313905(0x446)](){const _0x217f67=_0x313905;return this[_0x217f67(0x1c1)][_0x217f67(0x426)]('[OfflineState]',_0x217f67(0x108)),this;}[_0x313905(0x100)](){return this;}[_0x313905(0x2c7)](){return this;}[_0x313905(0x2a8)](){const _0x2782ef=_0x313905;let {_injector:_0x4c11e1,_pendingMutations:_0x4e2bc9,_awaitingChangeset:_0x48a3ae,unitID:_0x348cea,_handler:_0x266887,type:_0x421824}=this,_0x45606d=We(_0x4c11e1,_0x348cea,_0x421824,_0x48a3ae,_0x4e2bc9,_0x266887);return _0x45606d instanceof A?_0x45606d[_0x2782ef(0x2ac)]():(_0x45606d instanceof M||_0x45606d instanceof j)&&_0x45606d[_0x2782ef(0x323)](),_0x45606d;}['resend'](){const _0x54511f=_0x313905;throw Error(_0x54511f(0xd1));}};P=b([y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,r['ICommandService']),y(0x8,r[_0x313905(0xb1)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,(0x0,r['Optional'])(C))],P);let F=class extends O{constructor(_0xdb6933,_0x12ddd6,_0x357700,_0x2615a6,_0x1706d9,_0x367a26,_0x4ffe47,_0x3ad2ee,_0x7d5e1d,_0x356ae2,_0x47d328,_0x7da76b,_0x5d7d4e,_0x965897,_0x1e3bb5){const _0xf4e3c4=_0x313905;super(_0xdb6933,_0x12ddd6,_0x357700,_0x2615a6,_0x4ffe47,_0x7da76b,_0x5d7d4e,_0x356ae2,_0x1e3bb5),this[_0xf4e3c4(0x422)]=_0x1706d9,this[_0xf4e3c4(0x2f8)]=_0x367a26,this[_0xf4e3c4(0x43a)]=_0x3ad2ee,this[_0xf4e3c4(0x2a2)]=_0x7d5e1d,this[_0xf4e3c4(0x1c1)]=_0x47d328,this[_0xf4e3c4(0x1a7)]=_0x965897,this[_0xf4e3c4(0x103)]=_0x1e3bb5,_(this,_0xf4e3c4(0x265),_0xf4e3c4(0x284));}[_0x313905(0x3b7)](_0x542940){const _0x47fe8b=_0x313905;try{if(this[_0x47fe8b(0x2e7)](_0x542940)[_0x47fe8b(0x143)])throw Error('[FetchMissState]:\x20missing\x20changesets\x20response\x20still\x20has\x20revision\x20gaps.');if(this[_0x47fe8b(0x2e7)]([...this[_0x47fe8b(0x2f8)]][_0x47fe8b(0x299)]((_0xaee1b7,_0x3b8d55)=>_0xaee1b7[_0x47fe8b(0x274)]-_0x3b8d55[_0x47fe8b(0x274)]))['missingChangesets'])return this[_0x47fe8b(0x2f8)]=[],this['_updateLocalCache'](),this[_0x47fe8b(0x146)][_0x47fe8b(0x432)]({'from':this[_0x47fe8b(0x28e)](),'to':0x0}),this;let _0x3955f6=this[_0x47fe8b(0x10c)],_0x545b45=this['_pendingMutations'],_0x4be37b;if(_0x3955f6&&_0x545b45['length']!==0x0)_0x4be37b=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](M,this[_0x47fe8b(0x181)],this['type'],_0x3955f6,_0x545b45,this[_0x47fe8b(0x146)],this[_0x47fe8b(0x43a)]);else{if(_0x3955f6&&_0x545b45[_0x47fe8b(0x1f6)]===0x0)_0x3955f6[_0x47fe8b(0x199)]=this[_0x47fe8b(0x28e)](),_0x4be37b=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](j,this[_0x47fe8b(0x181)],this['type'],_0x3955f6,this['_handler'],this[_0x47fe8b(0x43a)]);else{if(_0x545b45[_0x47fe8b(0x1f6)]!==0x0){let _0x1c1d76=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](A,this[_0x47fe8b(0x181)],this[_0x47fe8b(0x133)],_0x545b45,this['_handler']);_0x1c1d76[_0x47fe8b(0x2ac)](),_0x4be37b=_0x1c1d76;}else _0x4be37b=this[_0x47fe8b(0x2a2)][_0x47fe8b(0x246)](k,this['unitID'],this[_0x47fe8b(0x133)],this[_0x47fe8b(0x146)]);}}return _0x4be37b[_0x47fe8b(0x1ae)](),_0x4be37b;}catch(_0x4b9771){return _0x4b9771 instanceof He?(this[_0x47fe8b(0x1c1)][_0x47fe8b(0x426)](_0x47fe8b(0x2e6),_0x4b9771[_0x47fe8b(0x24c)]),this[_0x47fe8b(0xad)](_0x4b9771[_0x47fe8b(0x34a)])):(this[_0x47fe8b(0x1c1)][_0x47fe8b(0x287)](_0x47fe8b(0x2e6),'failed\x20to\x20apply\x20missed\x20changesets!',_0x4b9771),this[_0x47fe8b(0xad)](this[_0x47fe8b(0xc8)](_0x4b9771)));}}[_0x313905(0x2e7)](_0x1995f5){const _0x4aace5=_0x313905;this[_0x4aace5(0x216)]();for(let _0x32f3da=0x0;_0x32f3da<_0x1995f5[_0x4aace5(0x1f6)];_0x32f3da++){let _0xe15137=_0x1995f5[_0x32f3da];switch(this['_classifyRemoteChangeset'](_0xe15137)){case _0x4aace5(0x193):{let _0x45d66c=this[_0x4aace5(0x28e)]();if(_0xe15137[_0x4aace5(0x274)]>_0x45d66c+0x1)return{'missingChangesets':!0x0};_0xe15137[_0x4aace5(0x274)]<=_0x45d66c?this['_dropAcknowledgedAwaiting']():this['_acknowledgeAwaiting']();break;}case _0x4aace5(0x1be):throw new He(this[_0x4aace5(0x2b8)](_0xe15137));case _0x4aace5(0x196):break;case _0x4aace5(0x2db):return{'missingChangesets':!0x0};case _0x4aace5(0x425):this['_transformAndApplyRemoteChangeset'](_0xe15137),this['_acknowledgeAwaitingIfReady']();}}return{'missingChangesets':!0x1};}[_0x313905(0x41e)](_0x56bcb3){const _0x174d22=_0x313905;let _0x42be50=_0x56bcb3,_0x38c708=this[_0x174d22(0x10c)];if(_0x38c708){let _0x234b94=this[_0x174d22(0x1a7)][_0x174d22(0x2f0)]([_0x56bcb3],[_0x38c708],!0x1);if(!(0x0,n[_0x174d22(0x204)])(_0x234b94))throw _0x234b94[_0x174d22(0x287)];_0x42be50=_0x234b94[_0x174d22(0x2e3)][0x0],_0x38c708=_0x234b94[_0x174d22(0x434)][0x0];}let _0x431ff4=this[_0x174d22(0x3f8)];if(_0x431ff4[_0x174d22(0x1f6)]){let _0xf1c8af=this[_0x174d22(0x1a7)]['transformMutationsWithChangeset'](_0x42be50,_0x431ff4);if(!(0x0,n[_0x174d22(0x194)])(_0xf1c8af))throw _0xf1c8af['error'];_0x42be50=_0xf1c8af[_0x174d22(0x2e3)],_0x431ff4=_0xf1c8af[_0x174d22(0x248)];}this[_0x174d22(0x22c)](_0x42be50),_0x38c708&&(_0x38c708['baseRev']=this['_getCurrentRevision']()),this[_0x174d22(0x10c)]=_0x38c708,this[_0x174d22(0x3f8)]=_0x431ff4;}[_0x313905(0x216)](){const _0x14cf39=_0x313905;if(!this[_0x14cf39(0x10c)]||this[_0x14cf39(0x422)]==null)return;let _0x2ea1db=this[_0x14cf39(0x28e)]();if(this[_0x14cf39(0x422)]<=_0x2ea1db)throw Error(_0x14cf39(0x136)+this[_0x14cf39(0x422)]+'.');this[_0x14cf39(0x422)]===_0x2ea1db+0x1&&this[_0x14cf39(0x1b1)]();}[_0x313905(0x1b1)](){const _0x3d5df7=_0x313905;this['_incrementRevisionNumber'](),this[_0x3d5df7(0xc6)]();}[_0x313905(0xc6)](){const _0x1063f0=_0x313905;this[_0x1063f0(0x10c)]=null,this['_acknowledgedAwaitingRevision']=null,this['_disposeSubmitter']();}['_disposeSubmitter'](){const _0x59e1d6=_0x313905;var _0xe5c379;(_0xe5c379=this[_0x59e1d6(0x43a)])==null||_0xe5c379[_0x59e1d6(0x2a7)](),this[_0x59e1d6(0x43a)]=void 0x0;}[_0x313905(0x2a7)](){const _0x48b5d4=_0x313905;this[_0x48b5d4(0x29f)]();}[_0x313905(0x323)](){const _0x598f75=_0x313905;throw Error(_0x598f75(0x3df));}[_0x313905(0x36e)](_0xfc8c){const _0x1729b1=_0x313905;return this[_0x1729b1(0x3f8)][_0x1729b1(0x101)](_0xfc8c),this[_0x1729b1(0x1ae)](),this;}['onRemoteChangeset'](_0x1ff902){const _0x508983=_0x313905;return this[_0x508983(0x2f8)][_0x508983(0x101)](_0x1ff902),this;}[_0x313905(0x2c9)](_0x1f3cfb){const _0x338399=_0x313905;let _0xf67a3d=this['_classifyAck'](_0x1f3cfb);if(this[_0x338399(0x10c)]){switch(_0xf67a3d){case'ack_of_awaiting':this[_0x338399(0xc6)]();break;case _0x338399(0x109):break;case _0x338399(0xb9):this[_0x338399(0x1b1)]();break;case _0x338399(0x2db):this['_acknowledgedAwaitingRevision']=_0x1f3cfb['revision'],this[_0x338399(0x29f)]();}return this;}if(_0xf67a3d==='stale')return this;throw Error(_0x338399(0x1b5));}[_0x313905(0x446)](_0x3a790a){const _0x542a05=_0x313905;return this[_0x542a05(0xad)](this['_rejectionInfo'](_0x3a790a));}[_0x313905(0x100)](_0x32e47c,_0x34de3d){const _0x1dc3d2=_0x313905;var _0x432258;return this[_0x1dc3d2(0x422)]!=null||_0x32e47c['reqId']!==((_0x432258=this['_awaitingChangeset'])==null?void 0x0:_0x432258[_0x1dc3d2(0x131)])||(this['_submitter']??=this[_0x1dc3d2(0x33a)](this[_0x1dc3d2(0x10c)]),this[_0x1dc3d2(0x43a)]['requestRetry'](this[_0x1dc3d2(0x114)](_0x34de3d))),this;}[_0x313905(0x2c7)](){const _0x43d3bc=_0x313905;return this[_0x43d3bc(0x29f)](),this[_0x43d3bc(0x2a2)][_0x43d3bc(0x246)](P,this[_0x43d3bc(0x181)],this[_0x43d3bc(0x133)],this[_0x43d3bc(0x10c)],this[_0x43d3bc(0x3f8)],this[_0x43d3bc(0x146)]);}[_0x313905(0x2a8)](){return this;}[_0x313905(0xad)](_0x43b3fc){const _0x2d491d=_0x313905;return this['_disposeSubmitter'](),this[_0x2d491d(0x2a2)][_0x2d491d(0x246)](N,this[_0x2d491d(0x181)],this[_0x2d491d(0x133)],this[_0x2d491d(0x10c)],this[_0x2d491d(0x3f8)],this[_0x2d491d(0x146)],_0x43b3fc);}};F=b([y(0x8,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x9,(0x0,r['Inject'])(n[_0x313905(0x2cf)])),y(0xa,r[_0x313905(0x26a)]),y(0xb,r[_0x313905(0x296)]),y(0xc,r[_0x313905(0xb1)]),y(0xd,n[_0x313905(0x3cf)]),y(0xe,(0x0,r[_0x313905(0xe6)])(C))],F);function We(_0x11bb4d,_0x5ae07f,_0x3df15e,_0x458dc4,_0x1f4c83,_0x5acc3f){const _0x4de6c2=_0x313905;return _0x458dc4&&_0x1f4c83[_0x4de6c2(0x1f6)]?_0x11bb4d[_0x4de6c2(0x246)](M,_0x5ae07f,_0x3df15e,_0x458dc4,_0x1f4c83,_0x5acc3f,void 0x0):_0x458dc4?_0x11bb4d[_0x4de6c2(0x246)](j,_0x5ae07f,_0x3df15e,_0x458dc4,_0x5acc3f,void 0x0):_0x1f4c83['length']?_0x11bb4d[_0x4de6c2(0x246)](A,_0x5ae07f,_0x3df15e,_0x1f4c83,_0x5acc3f):_0x11bb4d[_0x4de6c2(0x246)](k,_0x5ae07f,_0x3df15e,_0x5acc3f);}let I=class extends r[_0x313905(0x380)]{get[_0x313905(0x235)](){const _0x5268bd=_0x313905;return this[_0x5268bd(0x25d)];}constructor(_0x3dcda9,_0x30612a,_0x5156d8,_0x26ed57,_0x19f01e,_0x5463d6,_0x9f4ab5,_0x5c2103,_0x475a01,_0x59b661,_0x56661d,_0x369a51,_0x25bb2c,_0x3e845d){const _0x5e1776=_0x313905;super(),this[_0x5e1776(0x181)]=_0x3dcda9,this[_0x5e1776(0x44d)]=_0x30612a,this[_0x5e1776(0x2e2)]=_0x5156d8,this['_injector']=_0x26ed57,this['_compressMutationService']=_0x19f01e,this[_0x5e1776(0xe0)]=_0x5463d6,this[_0x5e1776(0x10b)]=_0x9f4ab5,this[_0x5e1776(0x34e)]=_0x5c2103,this['_univerInstanceService']=_0x475a01,this[_0x5e1776(0x1c1)]=_0x59b661,this['_commandService']=_0x56661d,this[_0x5e1776(0x3ed)]=_0x369a51,this[_0x5e1776(0x3ec)]=_0x25bb2c,this['_localCacheService']=_0x3e845d,_(this,_0x5e1776(0x175),new t[(_0x5e1776(0x34f))](null)),_(this,'state$',this[_0x5e1776(0x175)][_0x5e1776(0x1da)]()),_(this,_0x5e1776(0x25d),void 0x0),_(this,_0x5e1776(0x42f),!0x1),_(this,_0x5e1776(0x113),''),_(this,_0x5e1776(0x12c),0x0),_(this,_0x5e1776(0x359),this[_0x5e1776(0x29b)][_0x5e1776(0x24a)]((0x0,t[_0x5e1776(0x180)])(_0x18777d=>_0x18777d?_0x18777d[_0x5e1776(0x265)]:_0x5e1776(0x231)),(0x0,t['shareReplay'])({'bufferSize':0x1,'refCount':!0x0}))),_(this,_0x5e1776(0x2d6),new t[(_0x5e1776(0xb7))]()),_(this,'changesetResend$',this[_0x5e1776(0x2d6)][_0x5e1776(0x1da)]()),_(this,_0x5e1776(0x3ad),new t['Subject']()),_(this,_0x5e1776(0x1a9),this[_0x5e1776(0x3ad)][_0x5e1776(0x1da)]()),_(this,_0x5e1776(0x412),!0x1),_(this,_0x5e1776(0x118),[]);}async[_0x313905(0xb8)](){const _0x2177a9=_0x313905;if(this[_0x2177a9(0x235)])throw Error(_0x2177a9(0xed));await this[_0x2177a9(0x32a)]();}[_0x313905(0x1ef)](){const _0x101170=_0x313905;return this[_0x101170(0x42f)]=!0x0,(0x0,r[_0x101170(0xfa)])(()=>{const _0x57cb1d=_0x101170;this[_0x57cb1d(0x42f)]=!0x1,this[_0x57cb1d(0x460)]();});}[_0x313905(0x388)](_0x23a3d0){this['_onLocalMutation'](_0x23a3d0);}[_0x313905(0x1ee)](){const _0x5d8693=_0x313905;var _0x25a28f;return((_0x25a28f=this[_0x5d8693(0x25d)])==null?void 0x0:_0x25a28f['hasLocalChanges']())??!0x1;}[_0x313905(0x2a7)](){const _0x1f6467=_0x313905;var _0x2589ac;super[_0x1f6467(0x2a7)](),(_0x2589ac=this['_state'])==null||_0x2589ac[_0x1f6467(0x2a7)](),this[_0x1f6467(0x2d6)][_0x1f6467(0x395)](),this[_0x1f6467(0x3ad)]['complete']();}['_updateState'](_0x1ab84d){const _0x5830e4=_0x313905;this[_0x5830e4(0x25d)]=_0x1ab84d,this[_0x5830e4(0x175)][_0x5830e4(0xb9)](_0x1ab84d);}async[_0x313905(0x32a)](){const _0x3cee8e=_0x313905;if(this[_0x3cee8e(0x42e)](await this[_0x3cee8e(0xc1)]()),this['_singleActiveUnitService']){var _0x573b77;(_0x573b77=this[_0x3cee8e(0x3ec)])==null||_0x573b77['editingUnit'](this['unitID']),this['disposeWithMe'](this['_singleActiveUnitService'][_0x3cee8e(0x17c)](this[_0x3cee8e(0x181)])[_0x3cee8e(0x1c9)](_0x6a3bd6=>{const _0x5a389c=_0x3cee8e;this[_0x5a389c(0x1c1)][_0x5a389c(0x426)](_0x5a389c(0x214),_0x5a389c(0xea),_0x6a3bd6),_0x6a3bd6===0x1?(this[_0x5a389c(0x34e)][_0x5a389c(0x117)]({'id':_0x5a389c(0x410)}),this['_permissionService']['updatePermissionPoint'](new a[(_0x5a389c(0x360))](this[_0x5a389c(0x181)])['id'],!0x1),this['_permissionService']['setShowComponents'](!0x1)):(this[_0x5a389c(0x3ed)][_0x5a389c(0x43b)](new a[(_0x5a389c(0x360))](this['unitID'])['id'],!0x0),this[_0x5a389c(0x3ed)][_0x5a389c(0x21b)](!0x0));}));}let _0xbed459=!0x1;return this[_0x3cee8e(0x25e)](this[_0x3cee8e(0x44d)][_0x3cee8e(0x107)][_0x3cee8e(0x1c9)](_0x3ef720=>{const _0x4d5676=_0x3cee8e;_0x3ef720===0x3?this[_0x4d5676(0x12f)](_0xbed459):_0x3ef720===0x2&&(_0xbed459=!0x0,this['_toggleOffline']());})),this[_0x3cee8e(0x25e)](this['session'][_0x3cee8e(0x2ed)][_0x3cee8e(0x1c9)](_0x1815d1=>{const _0x245fb5=_0x3cee8e;try{switch(_0x1815d1[_0x245fb5(0x280)]){case n['CollaborationEvent'][_0x245fb5(0x378)]:this['_onRemoteChangeset']((0x0,n['parseProtocolChangeset'])(_0x1815d1[_0x245fb5(0x335)]));break;case n['CollaborationEvent'][_0x245fb5(0x15d)]:this['_onRemoteACK'](_0x1815d1[_0x245fb5(0x335)]);break;case n[_0x245fb5(0x2ce)][_0x245fb5(0xfb)]:this['_onRemoteRejected']({'isPermissionRej':!0x1,'reason':_0x1815d1[_0x245fb5(0x3ca)],'code':_0x1815d1[_0x245fb5(0x2c3)]});break;case n[_0x245fb5(0x2ce)]['CHANGESET_SHOULD_RETRY']:{let _0x7e454f=_0x1815d1;this['_onRemoteRetry'](_0x7e454f['data'],_0x7e454f[_0x245fb5(0x2c3)]);break;}case n[_0x245fb5(0x2ce)]['PSEUDO_FETCH_MISSING_RESULT']:this[_0x245fb5(0xbe)](_0x1815d1[_0x245fb5(0x335)][_0x245fb5(0x1aa)]['map'](_0x3fe47b=>(0x0,n[_0x245fb5(0x232)])(_0x3fe47b)));break;case n[_0x245fb5(0x2ce)][_0x245fb5(0x30a)]:this['_onRemoteRejected']({'isPermissionRej':!0x0,'reason':_0x1815d1[_0x245fb5(0x3ca)],'code':_0x1815d1['code']});break;case n[_0x245fb5(0x2ce)][_0x245fb5(0x420)]:}}catch(_0x5b09f5){throw console[_0x245fb5(0x287)]('Error\x20on\x20receiving\x20event',_0x5b09f5),_0x5b09f5;}})),this['_state'];}['_unlockTransition'](){const _0x1c85b1=_0x313905;this[_0x1c85b1(0x412)]=!0x1;}[_0x313905(0x2e1)](){const _0x15735=_0x313905;if(this[_0x15735(0x412)])throw Error(_0x15735(0x22e));this[_0x15735(0x412)]=!0x0;}[_0x313905(0x164)](_0x5210ff){const _0x26c11c=_0x313905;this['_lockTransition']();try{this[_0x26c11c(0x42e)](_0x5210ff());}finally{this['_unlockTransition']();}}['_onLocalMutation'](_0x26a931){const _0x3d242d=_0x313905;this[_0x3d242d(0x164)](()=>this[_0x3d242d(0x25d)]['appendMutation'](_0x26a931));}[_0x313905(0x176)](_0x40b811){const _0xb8b325=_0x313905;this[_0xb8b325(0x42f)]?this[_0xb8b325(0x118)][_0xb8b325(0x101)](_0x40b811):this[_0xb8b325(0x406)](_0x40b811);}['_exhaustRemoteChangesetQueue'](){const _0x1cb708=_0x313905;this[_0x1cb708(0x118)]['forEach'](_0x596a2f=>this['_applyRemoteChangeset'](_0x596a2f)),this[_0x1cb708(0x118)]=[];}['_applyRemoteChangeset'](_0x1b09e4){const _0x1d0de5=_0x313905;let _0x15de49=this['_compressMutationService'][_0x1d0de5(0x45e)][_0x1d0de5(0x247)](this[_0x1d0de5(0x407)]['interceptor'][_0x1d0de5(0x22d)]()[_0x1d0de5(0x373)])(_0x1b09e4[_0x1d0de5(0x23a)],null)||_0x1b09e4[_0x1d0de5(0x23a)],_0x4821cd={..._0x1b09e4,'mutations':_0x15de49};this[_0x1d0de5(0x164)](()=>this[_0x1d0de5(0x25d)][_0x1d0de5(0x11f)](_0x4821cd));}[_0x313905(0x211)](_0x38059b){const _0x14ae2d=_0x313905;this[_0x14ae2d(0x164)](()=>this['_state'][_0x14ae2d(0x2c9)](_0x38059b));}[_0x313905(0x167)](_0x388842){const _0x27d1b6=_0x313905;this[_0x27d1b6(0x164)](()=>this[_0x27d1b6(0x25d)][_0x27d1b6(0x446)](_0x388842));}[_0x313905(0x429)](_0x112657,_0x152767){const _0x3ef5aa=_0x313905;this[_0x3ef5aa(0x164)](()=>this[_0x3ef5aa(0x25d)]['onRemoteRetry'](_0x112657,_0x152767));}[_0x313905(0xbe)](_0x494d17){const _0x357b35=_0x313905;let _0x56e340=this[_0x357b35(0x25d)];if(!(_0x56e340 instanceof F))throw TypeError('[CollaborationEntity]:\x20cannot\x20apply\x20missing\x20results\x20on\x20other\x20states!');let _0x567437=_0x494d17[_0x357b35(0x180)](_0x5e9c16=>{const _0x44805a=_0x357b35;let _0x52d34b=this[_0x44805a(0x407)][_0x44805a(0x45e)]['fetchThroughInterceptors'](this['_compressMutationService']['interceptor'][_0x44805a(0x22d)]()[_0x44805a(0x373)])(_0x5e9c16[_0x44805a(0x23a)],null)||_0x5e9c16[_0x44805a(0x23a)];return{..._0x5e9c16,'mutations':_0x52d34b};});this['_transit'](()=>_0x56e340[_0x357b35(0x3b7)](_0x567437));}[_0x313905(0x20a)](){const _0x1342bf=_0x313905;this[_0x1342bf(0x164)](()=>this[_0x1342bf(0x25d)][_0x1342bf(0x2c7)]());}[_0x313905(0x12f)](_0x329d8a=!0x1){const _0x22a1e9=_0x313905;this['_transit'](()=>this[_0x22a1e9(0x25d)]['toggleOnline']());let _0x36fb46=this[_0x22a1e9(0x25d)];_0x329d8a&&_0x36fb46 instanceof k&&this['_transit'](()=>_0x36fb46[_0x22a1e9(0x266)]());}async[_0x313905(0xc1)](){return new Promise(_0x5defcf=>{const _0x3611c6=_0x16c4;this['session'][_0x3611c6(0x107)]['pipe']((0x0,t[_0x3611c6(0x16d)])(0x1))['subscribe'](async _0x3a7415=>{const _0x1d41d3=_0x3611c6;_0x5defcf(await this[_0x1d41d3(0x38d)](_0x3a7415===0x3));});});}[_0x313905(0x322)](){const _0x3ae8fc=_0x313905;let _0x447bd2=this[_0x3ae8fc(0x181)],_0x67f898=this[_0x3ae8fc(0x2a2)]['get'](r[_0x3ae8fc(0x21c)])[_0x3ae8fc(0x292)](m);return{'resendTimeouts':{'ackTimeout':_0x67f898==null?void 0x0:_0x67f898[_0x3ae8fc(0x405)],'maxAckTimeout':_0x67f898==null?void 0x0:_0x67f898[_0x3ae8fc(0x325)]},'onStateChange':(_0x22e164,_0xc8a09e)=>{const _0x536591=_0x3ae8fc;if(_0x22e164!==this[_0x536591(0x25d)])throw Error(_0x536591(0x1d8)+_0x22e164[_0x536591(0x265)]+_0x536591(0xfc)+_0xc8a09e['status']+'\x0aCurrent:\x20'+this['_state'][_0x536591(0x265)]);this[_0x536591(0x42e)](_0xc8a09e);},'onSendChangeset':(_0x4d86e9,_0x4b818e)=>{const _0x7f2c48=_0x3ae8fc;_0x4d86e9[_0x7f2c48(0x3fd)]||(_0x4d86e9[_0x7f2c48(0x3fd)]=this[_0x7f2c48(0x113)],_0x4d86e9[_0x7f2c48(0x131)]=++this['_changesetReqId']);let _0x278f37={'eventID':n[_0x7f2c48(0x2ce)][_0x7f2c48(0x189)],'data':{'unitID':_0x4d86e9['unitID'],'unitType':this['_type'],'changeset':_0x4d86e9,'memberID':this[_0x7f2c48(0x44d)][_0x7f2c48(0x35a)]()}};return this[_0x7f2c48(0x44d)][_0x7f2c48(0x1fa)](_0x278f37,this[_0x7f2c48(0x181)],_0x4b818e);},'onConflict':(_0x27f717,_0x3e3651,_0x59e42a)=>{const _0x18dead=_0x3ae8fc;this['_conflict$'][_0x18dead(0x28d)]||this[_0x18dead(0x3ad)][_0x18dead(0xb9)]({'unitID':_0x447bd2,..._0x27f717,'localChanges':_0x3e3651,'cacheCleared':_0x59e42a});},'onChangesetResend':_0x282f35=>{const _0x5d3439=_0x3ae8fc;this['_logService'][_0x5d3439(0x426)](_0x5d3439(0x214),_0x5d3439(0x305)+_0x282f35[_0x5d3439(0x131)]+'\x20('+_0x282f35[_0x5d3439(0x3ca)]+_0x5d3439(0x29d)+_0x282f35[_0x5d3439(0x30f)]+')'),queueMicrotask(()=>{const _0x22d874=_0x5d3439;this['_changesetResend$'][_0x22d874(0x28d)]||this['_changesetResend$']['next']({'unitID':_0x447bd2,..._0x282f35});});},'onMissingChangesets':({from:_0x3f2ea5,to:_0x5cddbb})=>{const _0x3fadd9=_0x3ae8fc;this[_0x3fadd9(0x1c1)][_0x3fadd9(0x426)]('[CollaborationEntity]',_0x3fadd9(0x1a2)+_0x3f2ea5+_0x3fadd9(0x424)+_0x5cddbb);let _0x5b14d1={'eventID':n[_0x3fadd9(0x2ce)]['FETCH_MISSING'],'data':{'unitID':_0x447bd2,'unitType':this['_type'],'from':_0x3f2ea5,'to':_0x5cddbb}};this[_0x3fadd9(0x44d)]['send'](_0x5b14d1,this[_0x3fadd9(0x181)]);}};}async['_createInitialStateImpl'](_0x1e7df9){const _0xc3cf1c=_0x313905;var _0x532705;let _0x5e2531=await((_0x532705=this['_localCacheService'])==null?void 0x0:_0x532705[_0xc3cf1c(0x2da)](this[_0xc3cf1c(0x181)])),_0xe0b2b6=(_0x5e2531==null?void 0x0:_0x5e2531[_0xc3cf1c(0x23a)])??[],_0x58efeb=(_0x5e2531==null?void 0x0:_0x5e2531[_0xc3cf1c(0x38c)])??null,_0xfe71cf=!!(_0x58efeb!=null&&_0x58efeb[_0xc3cf1c(0x3fd)])&&!!(_0x58efeb!=null&&_0x58efeb[_0xc3cf1c(0x131)]);this[_0xc3cf1c(0x113)]=_0xfe71cf?_0x58efeb[_0xc3cf1c(0x3fd)]:(0x0,n[_0xc3cf1c(0x261)])(),this['_changesetReqId']=_0xfe71cf?_0x58efeb[_0xc3cf1c(0x131)]:0x0;let _0x16e6de=this[_0xc3cf1c(0x181)];try{this[_0xc3cf1c(0x18a)](_0x58efeb,_0xe0b2b6);}catch(_0x151c40){this['_logService'][_0xc3cf1c(0x287)](_0x151c40);}let _0x46291c=this[_0xc3cf1c(0x322)]();if(_0x1e7df9){let _0x1a70a7=We(this[_0xc3cf1c(0x2a2)],_0x16e6de,this[_0xc3cf1c(0x2e2)],_0x58efeb,_0xe0b2b6,_0x46291c);return _0x1a70a7 instanceof A?_0x1a70a7['_schedule']():(_0x1a70a7 instanceof M||_0x1a70a7 instanceof j)&&_0x1a70a7[_0xc3cf1c(0x323)](),_0x1a70a7;}return this['_injector'][_0xc3cf1c(0x246)](P,_0x16e6de,this[_0xc3cf1c(0x2e2)],_0x58efeb,_0xe0b2b6,_0x46291c);}[_0x313905(0x18a)](_0x52c038,_0x23d7c6){const _0x190c0e=_0x313905;var _0x1b7d5d,_0x331561;let _0x3fdf5c=this[_0x190c0e(0x407)]['interceptor'][_0x190c0e(0x247)](this[_0x190c0e(0x407)][_0x190c0e(0x45e)][_0x190c0e(0x22d)]()['COMPRESS_MUTATION_APPLY']);(_0x1b7d5d=_0x3fdf5c((_0x52c038==null?void 0x0:_0x52c038[_0x190c0e(0x23a)])||[],null))==null||_0x1b7d5d[_0x190c0e(0xf3)](_0x4336f7=>this['_commandService'][_0x190c0e(0x3c3)](_0x4336f7['id'],_0x4336f7[_0x190c0e(0x1a1)])),(_0x331561=_0x3fdf5c(_0x23d7c6||[],null))==null||_0x331561[_0x190c0e(0xf3)](_0x20fdf3=>this['_commandService'][_0x190c0e(0x3c3)](_0x20fdf3['id'],_0x20fdf3[_0x190c0e(0x1a1)]));}};I=b([y(0x3,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x4,(0x0,r['Inject'])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r['Inject'])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,r['ICommandService']),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r['Optional'])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],I);let L=class extends I{constructor(_0x2de477,_0x30aea6,_0x135bf2,_0x459af8,_0x53fa82,_0x55df78,_0xcfcf85,_0x133d83,_0x240195,_0x593dbb,_0xb7d2d9,_0x36e538,_0x4c6f4e,_0x2f2a65,_0xb29133){const _0x516c0f=_0x313905;super(_0x2de477,_0x135bf2,_0x30aea6,_0x459af8,_0x53fa82,_0x55df78,_0xcfcf85,_0x133d83,_0x240195,_0x593dbb,_0xb7d2d9,_0x36e538,_0x2f2a65,_0xb29133),this['unitID']=_0x2de477,this[_0x516c0f(0x133)]=_0x30aea6,this['_docStateChangeManagerService']=_0x4c6f4e,_(this,_0x516c0f(0x29c),null);}[_0x313905(0x172)](_0xd69bd9){const _0x410eb1=_0x313905;this[_0x410eb1(0x29c)]=_0xd69bd9;}['dispose'](){const _0x26b71f=_0x313905;this[_0x26b71f(0x29c)]=null,super[_0x26b71f(0x2a7)]();}['_createHandler'](){const _0x535dfd=_0x313905;let _0x483e93=super[_0x535dfd(0x322)]();return _0x483e93['onTransformIME']=_0xdd2d0a=>{const _0x690435=_0x535dfd;var _0x35cc29,_0x213883;return(_0x35cc29=this[_0x690435(0x29c)])==null||(_0x213883=_0x35cc29[_0x690435(0x384)])==null?void 0x0:_0x213883['call'](_0x35cc29,_0xdd2d0a);},_0x483e93[_0x535dfd(0x165)]=_0x3f017d=>{const _0xf883c1=_0x535dfd;var _0x57a422,_0x305d44;return(_0x57a422=this[_0xf883c1(0x29c)])==null||(_0x305d44=_0x57a422['onTransformState'])==null?void 0x0:_0x305d44[_0xf883c1(0x15b)](_0x57a422,_0x3f017d);},_0x483e93[_0x535dfd(0x1ba)]=_0x23ed5b=>{const _0x40c081=_0x535dfd;var _0x57068e,_0x52dbde;return((_0x57068e=this['_handlerCallback'])==null||(_0x52dbde=_0x57068e[_0x40c081(0x1ba)])==null?void 0x0:_0x52dbde['call'](_0x57068e,_0x23ed5b))??null;},_0x483e93[_0x535dfd(0x1a6)]=_0x3ea562=>{const _0x1d9df7=_0x535dfd;var _0x3e74f6,_0x34710b;return(_0x3e74f6=this['_handlerCallback'])==null||(_0x34710b=_0x3e74f6[_0x1d9df7(0x1a6)])==null?void 0x0:_0x34710b[_0x1d9df7(0x15b)](_0x3e74f6,_0x3ea562);},_0x483e93[_0x535dfd(0x36f)]=_0x469998=>{const _0x3262bf=_0x535dfd;var _0x22500e,_0x399a09;return(_0x22500e=this['_handlerCallback'])==null||(_0x399a09=_0x22500e[_0x3262bf(0x36f)])==null?void 0x0:_0x399a09[_0x3262bf(0x15b)](_0x22500e,_0x469998);},_0x483e93[_0x535dfd(0x329)]=_0x1b499e=>{const _0x30a844=_0x535dfd;var _0x1e9a0e,_0x21f411;return((_0x1e9a0e=this[_0x30a844(0x29c)])==null||(_0x21f411=_0x1e9a0e[_0x30a844(0x329)])==null?void 0x0:_0x21f411[_0x30a844(0x15b)](_0x1e9a0e,_0x1b499e))??_0x1b499e;},_0x483e93[_0x535dfd(0x35e)]=_0x4fed99=>{const _0x5bc4ab=_0x535dfd;var _0x33ccfa,_0x333955;return((_0x33ccfa=this[_0x5bc4ab(0x29c)])==null||(_0x333955=_0x33ccfa[_0x5bc4ab(0x35e)])==null?void 0x0:_0x333955['call'](_0x33ccfa,_0x4fed99))??_0x4fed99;},_0x483e93;}async[_0x313905(0x32a)](){const _0x3b5a78=_0x313905;let _0x2900f4=await super[_0x3b5a78(0x32a)]();return this[_0x3b5a78(0x25e)](this[_0x3b5a78(0x293)][_0x3b5a78(0x40f)]['subscribe'](_0x27f5b9=>{const _0x2cae1b=_0x3b5a78;if(_0x27f5b9==null||_0x27f5b9[_0x2cae1b(0x39a)]!==this[_0x2cae1b(0x181)])return;let {commandId:_0x20f85f,redoState:_0x394ff7,unitId:_0x25441d}=_0x27f5b9,_0x194762={'id':_0x20f85f,'type':r[_0x2cae1b(0x186)][_0x2cae1b(0x437)],'params':{'unitId':_0x25441d,'actions':_0x394ff7[_0x2cae1b(0x465)],'textRanges':null}};this[_0x2cae1b(0xac)](_0x194762);})),this[_0x3b5a78(0x25e)](this[_0x3b5a78(0x281)][_0x3b5a78(0x2ef)]((_0x3b353f,_0x4ece7b)=>{const _0x3443f5=_0x3b5a78;if(_0x3b353f[_0x3443f5(0x133)]!==r['CommandType'][_0x3443f5(0x437)]||_0x4ece7b!=null&&_0x4ece7b[_0x3443f5(0x1fb)]||_0x4ece7b!=null&&_0x4ece7b[_0x3443f5(0x409)]||_0x3b353f['id']===i[_0x3443f5(0x1d0)]['id'])return;let _0x4aa13f=_0x3b353f[_0x3443f5(0x1a1)];if((_0x4aa13f==null?void 0x0:_0x4aa13f[_0x3443f5(0x39a)])!==this[_0x3443f5(0x181)])return;let _0x1c8e20=_0x3b353f,_0x4022ee=this[_0x3443f5(0x407)][_0x3443f5(0x45e)][_0x3443f5(0x247)](this[_0x3443f5(0x407)][_0x3443f5(0x45e)]['getInterceptPoints']()[_0x3443f5(0x192)])([_0x1c8e20],this['_univerInstanceService'])||[_0x1c8e20];this[_0x3443f5(0xac)](_0x4022ee[0x0]);})),_0x2900f4;}};L=b([y(0x3,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n['RevisionService'])),y(0x7,(0x0,r['Inject'])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r[_0x313905(0x26a)]),y(0xa,r['ICommandService']),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x313905(0x377)])(i[_0x313905(0x1b2)])),y(0xd,(0x0,r['Optional'])(T)),y(0xe,(0x0,r['Optional'])(C))],L);let R=class extends I{constructor(_0xf25d8e,_0x39d995,_0x197b4a,_0x19fe44,_0x1b402d,_0x114d66,_0x156b83,_0x29a6ae,_0x11735b,_0x3cf11e,_0x1117df,_0x36d197,_0x772ec0,_0x2fa558){const _0x475a00=_0x313905;super(_0xf25d8e,_0x197b4a,_0x39d995,_0x19fe44,_0x1b402d,_0x114d66,_0x156b83,_0x29a6ae,_0x11735b,_0x3cf11e,_0x1117df,_0x36d197,_0x772ec0,_0x2fa558),this[_0x475a00(0x181)]=_0xf25d8e,this[_0x475a00(0x133)]=_0x39d995;}async[_0x313905(0x32a)](){const _0x2b5c51=_0x313905;let _0x1d2c34=await super[_0x2b5c51(0x32a)]();return this['disposeWithMe'](this['_commandService']['onMutationExecutedForCollab']((_0x37c4a3,_0x4619db)=>{const _0x447c3c=_0x2b5c51;if(_0x37c4a3['type']!==r[_0x447c3c(0x186)]['MUTATION']||_0x4619db!=null&&_0x4619db[_0x447c3c(0x1fb)]||_0x4619db!=null&&_0x4619db['onlyLocal'])return;let _0x3c3268=_0x37c4a3['params'];if((_0x3c3268==null?void 0x0:_0x3c3268['unitId'])!==this['unitID'])return;let _0x7af083=_0x37c4a3,_0x1a13a8=this[_0x447c3c(0x407)][_0x447c3c(0x45e)][_0x447c3c(0x247)](this[_0x447c3c(0x407)][_0x447c3c(0x45e)][_0x447c3c(0x22d)]()[_0x447c3c(0x192)])([_0x7af083],this[_0x447c3c(0x121)])||[_0x7af083];this[_0x447c3c(0xac)](_0x1a13a8[0x0]);})),_0x1d2c34;}};R=b([y(0x3,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x4,(0x0,r[_0x313905(0x377)])(n['CompressMutationService'])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,r[_0x313905(0x296)]),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],R);let z=class extends I{constructor(_0x1eee56,_0xee2737,_0x4acb37,_0x1fcda1,_0x9ab987,_0x4a0886,_0x30fd87,_0x4127a1,_0x39dd01,_0xbc5d6f,_0x356d9c,_0x333f88,_0x58373f,_0x31688f,_0x9e6c5){const _0x3d099a=_0x313905;super(_0x1eee56,_0x4acb37,_0xee2737,_0x1fcda1,_0x9ab987,_0x4a0886,_0x30fd87,_0x39dd01,_0xbc5d6f,_0x356d9c,_0x333f88,_0x58373f,_0x31688f,_0x9e6c5),this['unitID']=_0x1eee56,this[_0x3d099a(0x133)]=_0xee2737,this[_0x3d099a(0x313)]=_0x4127a1;}[_0x313905(0x322)](){const _0x1856c0=_0x313905;let _0x344ceb=super['_createHandler']();return _0x344ceb['onTransformSelections']=_0x5bd03b=>this['_sheetTransformSelectionsService'][_0x1856c0(0x256)](_0x5bd03b),_0x344ceb;}async['_init'](){const _0x8364a7=_0x313905;let _0x46c934=await super[_0x8364a7(0x32a)]();return this['disposeWithMe'](this['_commandService'][_0x8364a7(0x2ef)]((_0x4aef2f,_0x91c996)=>{const _0x29a86d=_0x8364a7;if(_0x4aef2f[_0x29a86d(0x133)]!==r[_0x29a86d(0x186)][_0x29a86d(0x437)]||_0x91c996!=null&&_0x91c996[_0x29a86d(0x1fb)]||_0x91c996!=null&&_0x91c996[_0x29a86d(0x409)])return;let _0x36f4e5=_0x4aef2f[_0x29a86d(0x1a1)];if((_0x36f4e5==null?void 0x0:_0x36f4e5['unitId'])!==this[_0x29a86d(0x181)])return;let _0x1ca087=_0x4aef2f,_0x38b57d=this['_compressMutationService'][_0x29a86d(0x45e)][_0x29a86d(0x247)](this['_compressMutationService'][_0x29a86d(0x45e)]['getInterceptPoints']()[_0x29a86d(0x192)])([_0x1ca087],this['_univerInstanceService'])||[_0x1ca087];this['_onLocalMutation'](_0x38b57d[0x0]);})),_0x46c934;}};z=b([y(0x3,(0x0,r['Inject'])(r['Injector'])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n['RevisionService'])),y(0x7,(0x0,r[_0x313905(0x377)])(w)),y(0x8,(0x0,r[_0x313905(0x377)])(v)),y(0x9,r[_0x313905(0xbb)]),y(0xa,r[_0x313905(0x26a)]),y(0xb,r[_0x313905(0x296)]),y(0xc,r[_0x313905(0x132)]),y(0xd,(0x0,r[_0x313905(0xe6)])(T)),y(0xe,(0x0,r[_0x313905(0xe6)])(C))],z);let B=class extends I{constructor(_0x304146,_0x2f0804,_0x119760,_0x5b878f,_0x566668,_0x191dec,_0x152dcc,_0x19e659,_0xa5a3,_0x3ed1b9,_0x1758d5,_0x3a9ef8,_0x1b9a43,_0x29d03f){const _0x5cfaa3=_0x313905;super(_0x304146,_0x119760,_0x2f0804,_0x5b878f,_0x566668,_0x191dec,_0x152dcc,_0x19e659,_0xa5a3,_0x3ed1b9,_0x1758d5,_0x3a9ef8,_0x1b9a43,_0x29d03f),this['unitID']=_0x304146,this[_0x5cfaa3(0x133)]=_0x2f0804;}async[_0x313905(0x32a)](){const _0x2916c7=_0x313905;let _0xbe81b0=await super[_0x2916c7(0x32a)]();return this[_0x2916c7(0x25e)](this[_0x2916c7(0x281)][_0x2916c7(0x2ef)]((_0x842a30,_0x1f4444)=>{const _0x3903ea=_0x2916c7;if(_0x842a30[_0x3903ea(0x133)]!==r[_0x3903ea(0x186)][_0x3903ea(0x437)]||_0x1f4444!=null&&_0x1f4444[_0x3903ea(0x1fb)]||_0x1f4444!=null&&_0x1f4444[_0x3903ea(0x409)])return;let _0x2e7cd6=_0x842a30[_0x3903ea(0x1a1)];if((_0x2e7cd6==null?void 0x0:_0x2e7cd6[_0x3903ea(0x39a)])!==this[_0x3903ea(0x181)])return;let _0xbcc1b6=_0x842a30,_0x242b3=this[_0x3903ea(0x407)][_0x3903ea(0x45e)]['fetchThroughInterceptors'](this[_0x3903ea(0x407)][_0x3903ea(0x45e)][_0x3903ea(0x22d)]()[_0x3903ea(0x192)])([_0xbcc1b6],this['_univerInstanceService'])||[_0xbcc1b6];this[_0x3903ea(0xac)](_0x242b3[0x0]);})),_0xbe81b0;}};B=b([y(0x3,(0x0,r['Inject'])(r[_0x313905(0xdf)])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r['Inject'])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r[_0x313905(0x377)])(n['RevisionService'])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r[_0x313905(0x26a)]),y(0xa,r['ICommandService']),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],B);let V=class extends I{constructor(_0x2edecc,_0x49b46c,_0x1c220b,_0x2a5902,_0x724bfc,_0x3e42e7,_0x222add,_0x4094c8,_0x1afcd4,_0x1c49a1,_0x3c652b,_0x2f55e2,_0x1a4293,_0x1abd0e){const _0x2ae21b=_0x313905;super(_0x2edecc,_0x1c220b,_0x49b46c,_0x2a5902,_0x724bfc,_0x3e42e7,_0x222add,_0x4094c8,_0x1afcd4,_0x1c49a1,_0x3c652b,_0x2f55e2,_0x1a4293,_0x1abd0e),this[_0x2ae21b(0x181)]=_0x2edecc,this['type']=_0x49b46c;}async[_0x313905(0x32a)](){const _0x430bcd=_0x313905;let _0xbceb43=await super['_init']();return this[_0x430bcd(0x25e)](this[_0x430bcd(0x281)][_0x430bcd(0x2ef)]((_0x311f21,_0x1c3771)=>{const _0xf3f5f7=_0x430bcd;if(_0x311f21[_0xf3f5f7(0x133)]!==r['CommandType'][_0xf3f5f7(0x437)]||_0x1c3771!=null&&_0x1c3771[_0xf3f5f7(0x1fb)]||_0x1c3771!=null&&_0x1c3771['onlyLocal'])return;let _0x43573a=_0x311f21[_0xf3f5f7(0x1a1)];if((_0x43573a==null?void 0x0:_0x43573a[_0xf3f5f7(0x39a)])!==this[_0xf3f5f7(0x181)])return;let _0x55a3da=_0x311f21,_0x489f02=this[_0xf3f5f7(0x407)][_0xf3f5f7(0x45e)][_0xf3f5f7(0x247)](this['_compressMutationService'][_0xf3f5f7(0x45e)][_0xf3f5f7(0x22d)]()['COMPRESS_MUTATION_SEND'])([_0x55a3da],this[_0xf3f5f7(0x121)])||[_0x55a3da];this[_0xf3f5f7(0xac)](_0x489f02[0x0]);})),_0xbceb43;}};function _0x247d(){const _0x459dbf=['base-ui.attachment-io.service','saveSnapshot','code','_transformSelections','9303ghQnit','PERSON','toggleOffline','_getDownloadEndpointURL','onRemoteAck','online','subType','ERROR_IMAGE_TYPE','_clearTimeoutTimer','CollaborationEvent','RevisionService','_clearTimer','_onUserJoin','AddSlidePageMutation','ackTimeout','close','csAckEvent','_changesetResend$','getCfgEnableObjInherit','_rebaseUnchangedAttributes','getFocusedUnit','loadOfflineData','missing','close$','endpoint','_transformRemoteChangesetByIMECache','len','JOIN_ROOM_FULL','_lockTransition','_type','c1Prime','ack_timeout','you\x20should\x20override\x20\x22IUndoRedoService\x22\x20provided\x20in\x20\x22core\x22\x20package!','[FetchMissState]','_handleRemoteChangesets','_memberService','_identity','routeKey','COMMENT_UPDATE','sendHeartbeatTimer','event$','save\x20fail\x20reason\x20is\x20','onMutationExecutedForCollab','transformChangesets','_httpService','_entities','Rectangle','ImageSourceType','supports','collaboration-client.config','_members','_queuedRemoteChangesets','_onConnectionFailed','_clearRedo','_clearRetryConnectingTimer','patch','_fetchMissChangesets','_getUndoStack','/-/object/-/batch_allowed','collaboration_new_changeset','encrypt','_transformStateCache','stream','_getUnitPermissionPoints','resent\x20changeset\x20','unitLoaded$','mapDocumentTypeToUniverInstanceType','[CollaborationState]:\x20apply\x20error!','FetchingMissState','PERMISSION_REJ','getOwnPropertyDescriptor','LICENSE_EDITING_CONNECTIONS_EXCEEDED','startIndex','endpointKey','attempt','includes','getAllMembers','stopTime','_sheetTransformSelectionsService','/fetchmissing?from=','UNIVER_BASE','unitId\x20is\x20not\x20found','UNIVER_COLLABORATION_CLIENT_PLUGIN','_onLicenseRejected','isArray','_incrementRevisionNumber','object','/allowed','post','_undoRedoService','result','This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!','stringify','_createHandler','resend','encodeURIComponent','maxChangesetAckTimeout','_initRequestHeader','/universer-api/uniscript','/object/','onTransformRemoteChangesetByIMECache','_init','_firstSentAt','_unitLoaded$','IAttachmentIoService','CollaborationImageIoService','PSEUDO_FETCH_MISSING_RESULT','retryCount','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_HTTPService','Disposable','SheetTransformSelectionsService','data','SNAPSHOT_URL_KEY','_getUploadFileURL','createSocket','UPDATE_CURSOR','_createChangesetSubmitter','deepClone','SyncedState','?size=','OfflineState','_pendingReason','putCollaborators','UNIVER_PDF','EmptyMutationInfo','_transformUndoredo','_socketMessageSubscription','46NcnBkV','LEAVE','CollaborationUIEventService','liveShareNewHost','resolveUnit','info','getTypeOfUnitAdded$','ThresholdInterceptorFactory','retry-after','_eventService','BehaviorSubject','_imageSourceCache','ignored\x20acknowledgement\x20of\x20revision\x20','_timer','addImageSourceCache','onMissing','Unknown\x20type.\x20Will\x20not\x20load\x20files\x20from\x20remote\x20address.','transformMutationsWithChangeset','downloadEndpointUrl','&assign=','status$','getMemberID','1518gRyNiG','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT_KEY','blockRanges','onTransformRemoteChangesetByStateCache','/universer-api/comb','WorkbookEditablePermission','_telemetryService','[SyncedState]:\x20invalid\x20calling\x20to\x20`resend`.','socket$','ws://127.0.0.1:8000/universer-api/comb/connect','&to=','sendChangesetTimeout','revert','clearUnit','_clearHandshakeTimer','rev','JOIN_ROOM_FAILED','1902819eOqCuV','_startCollaboration','appendMutation','onSyncEditingCollabCursor','JOINING','ILocalCacheService','[PendingState]:\x20invalid\x20calling\x20to\x20`resend`.','COMPRESS_MUTATION_APPLY','_getSendChangesetTimeout','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','getPath','Inject','NEW_CHANGESETS','symbol','synced','ERROR_EXCEED_SIZE','_sessions','parseChangesetToProtocol','_collaborationUIEventService','1.3.1','RxDisposable','JOIN','[PendingState]:\x20received\x20rejection.','[CollaborationSessionService]:\x20socket\x20error','onTransformIME','takeUntil','/universer-api/user/session-ticket','online$','onLocalMutation','coverType','listCollaborators','_tryReconnect','awaitingChangeset','_createInitialStateImpl','collaborators','RETRY_CONNECTING_MAX_COUNT','AuthzIoHttpService','_startTelemetryCollaborationNewChangeset','liveShareOperation','RemoteChangesetApplyError','DEFAULT_WS_SESSION_TICKET_URL','complete','ImageUploadStatusType','_change$','MSG_FOR_ERROR','permissionRejEvent','unitId','subUnitId','FileSource','avatar','updateCursorEvent','objectType','_config','onStarting','keys','FETCH_MISS','[CollaborationAttachmentIoService]:\x20attachment\x20exceeds\x20max\x20size.','file','allowed','bind','ICollaborationSocketService','conflict','AWAITING_WITH_PENDING','setConfig','getCurrentUser','_conflict$','has','localChanges','waitForRoom$','getUnit','LIVESHARE_NEW_HOST','FETCH_MISSING','registerHTTPInterceptor','joinEvent','awaiting','onMissedChangesetFetched','snapshot','_closedUnits','[serializeCombRequest]:\x20should\x20not\x20fall\x20into\x20default\x20branch!','catch','resolveWithBasePath','readyForCollab','commit','[CollaborationAttachmentIoService]:\x20failed\x20to\x20resolve\x20attachment\x20URL.','_classifyRemoteChangeset','_getSignURL','create','executeCommand','RETRY_CONNECTING_MAX_COUNT_KEY','override','_showConflictProcessingNotification','hostname','getUnitType','ChangesetSubmitter','reason','_networkConditionService','CHANGESET_SHOULD_RETRY','[CollaborationAttachmentIoService]:\x20unitId\x20is\x20not\x20found.','MentionType','ITransformService','_pendingSessions','find','_getLoginPath','entityInit$','LIVESHARE_FETCH_OPERATIONS','unitDisposed$','_onMessage','getRoom','SnapshotServerOverHTTPService','columnGroups','_rescheduleHeartbeat','[SyncedState]:\x20received\x20acknowledgement.','responseType','HTTPResponseError','ISocketService','[FetchingMissState]:\x20invalid\x20calling\x20to\x20`resend`.','requireSession','_entityInit$','floor','compose','UNIVER_SLIDE','shouldCloseConn','HELLO','roles','PendingState','_substituteUndoStack','ONLINE','createCollaborator','_singleActiveUnitService','_permissionService','OTHER_CLIENTS_EDITING','_isAckOfAwaitingChangeset','[UniverCollaborationClientPlugin]:\x20you\x20must\x20provide\x20a\x20socketService\x20implementation\x20in\x20config!','getLatestCsReqIdBySid','_adapter','getCurrentRevOfUnit','SUBMIT_CHANGESET_TIMEOUT','UnitStatus','_now','__splitChunk__','_pendingMutations','ICollaborationClientAdapterService','_disposed','COLLABORATION_ENDPOINT_INVALID','\x20failed:\x20','sid','&source=','_send','getUnitId','retryConnectingTimer','_socketService','_listenToNetworkCondition','_toPending','changesetAckTimeout','_applyRemoteChangeset','_compressMutationService','_status$','onlyLocal','RemoteRevertError','CollaborationSessionService','Tools','prototype','INGEST','docStateChange$','OTHER_CLIENT_EDITING','_doCreateSocket','_transitionLocked','@univerjs-pro/collaboration-client','_clearHeartbeatTimer','deserializeToCombResponse','_filterTableActions','_createSocket','timeoutTimer','isInternalEditorID','diffValue','name','_transformAndApply','9240453HXOBIe','_transformAndApplyRemoteChangeset','unbind','UNISCRIPT_RUN','onApply','_acknowledgedAwaitingRevision','findIndex','\x20to\x20','apply','debug','connection\x20error','origin','_onRemoteRetry','workbook','dispose$','_commentService','_initUnitPermissionChange','_updateState','_collaborationPaused','_onOffline','tables','onMissingChangesets','onRemoteRevert','c2Prime','connectionAttempt','_submitChangeset','MUTATION','paragraphId','/universer-api/snapshot/','_submitter','updatePermissionPoint','getGlobalObject','CollaborationController','focused$','_clearScheduledTask','loginUrlKey','_event$','_shouldReportTelemetry','_snapshotServerService','deleteCollaborator','now','onRemoteRej','_countResend','getCollabEntity','writeAtPath','closeSession','_resend','Univer','session','splice','_sendingTimer','href','/collaborator','fetching\x20the\x20latest\x20document\x20from\x20the\x20server.','utf8ToBytes','UNIVER_BOARD','changeset_rejected','IAuthzIoService','_replaceFileID','textEncoder','unitType','change$','submit','COLLABORATION_SESSION_TARGET_UNIT_ID_REQUIRED','initWorkbookPermissionChange','interceptor','_telemetryInfo','_exhaustRemoteChangesetQueue','Module','_unitInfo$','_members$','[AwaitingWithPendingState]','actions','readCursor','_onLocalMutation','_onConflict','[CollaborationUndoRedoService]','DataLoaderService','onConflict','IUndoRedoService','isObject','some','localUnitId','_transformRemoteChangesetByStateCache','transformStack\x20failed!','Subject','init','next','350ZRgDFl','IUniverInstanceService','_rejectionInfo','unsubscribe','_onFetchMissResult','defineProperty','HEARTBEAT_TIMEOUT','_createInitialState','MemberService','BaseCollaborationEntity','decorate','hasOwnProperty','_dropAcknowledgedAwaiting','every','_conflictInfoFromError','_stopTelemetryCollaborationNewChangeset','/universer-api/stream/file/upload','_joinRoom','_options','location','unitInfo$','_tryEnsureSocket','[CollaborationAttachmentIoService]:\x20attachment\x20type\x20is\x20not\x20accepted.','[OfflineState]:\x20invalid\x20calling\x20to\x20`resend`.','pending','resolve','UniverInstanceType','retryConnectingInterval','packageName','reject','UnitEmbedded','/-/object/list','armAckTimeout','_userManagerService','_authzIoService','__Key__','delay','Injector','_localeService','_socket','IImageIoService','SlideCollaborationEntity','RECV','get','Optional','deleteProperty','updateMember','_getRedoStack','editing\x20status\x20changed\x20to','IDLE','[PendingState]:\x20unhandled\x20univer\x20type:\x20','[CollaborationEntity]:\x20initial\x20state\x20has\x20been\x20created\x20before.\x20You\x20should\x20not\x20call\x20\x22init\x22\x20twice.','POST','JOIN_ROOM_NOT_EXISTS','_onCombEvent','loadDoc','objectActions','forEach','message$','_undoStacks','reconnect','getSnapshot','socket\x20open.','\x20in\x20_schedule.','toDisposable','CHANGESET_REJ','\x0aAfter:\x20','NO_OTHER_CLIENTS_EDITING','getAllPermissionPoint','transformUndoRedo','onRemoteRetry','push','RemoveSlidePageMutation','localCacheService','[CollaborationSessionService]','_throwTelemetryCollaborationNewChangeset','_instanceService','sessionStatus$','ignored\x20rejection.','stale','_ackTimeout','_revisionService','_awaitingChangeset','upload','onload','_retryBackoff','objects','6971wNTssF','NOT_COLLAB','_changesetSessionId','_retryReason','_onJoinRoomEvent','string','emitEvent','_remoteChangesetQueue','_transformHistoryMutations','_syncEditingCollabCursor','_socketChannels','UnitObject','getLocalCacheKey','onCommentUpdate','onRemoteChangeset','/new_changes','_univerInstanceService','getSnapshotAPIPath','CombCmd','SOCKET_FAILED','SheetPermissionInitController','userID','_roomMembers','constructor','_loadUnit','nextDelayMs','_onConnectionOpen','_changesetReqId','6648kqMJJw','updatePermissionObjEvent','_toggleOnline','number','reqId','IPermissionService','type','USERS_LEAVE','registerDependencies','[FetchingMissState]:\x20received\x20stale\x20ack\x20revision:\x20','getCollabEntities','ITelemetryService','_sessionStatus$','IContextService','LICENSE_DOMAIN_REJECTED','updateSnapshot','_getConfig','body','saveChangeset','socket\x20close','[UniverCollaborationClientPlugin]','OBJECT_PERMISSION_CONFIG_KEY','missingChangesets','REMOTE_UNISCRIPT_EXECUTION_ENDPOINT','_initMergeInterceptor','_handler','_commentUpdate$','_transformStack','session.join-failed','_toSynced','fromCharCode','getUploadOptions','/resources','HTTPEventType','InsertSheetMutation','_updateStatus','objectID','Response','reverse','startTime','UNIVER_SHEET','fetchMissingChangesets','getCollabEntity$','SHOULD_CLOSE_CONN','getAttachmentUrl','_isEchoedAwaitingChangeset','call','sessionStatus','CHANGESET_ACK','createIdentifier','timeout','CollaborationStatus','Quantity','OFFLINE','univer-pro.collaboration-client-adapter-service','_transit','onTransformState','/unit/','_onRemoteRejected','_onRecvEvent','members$','Workbook','DependentOn','_getSocketChannel','take','LOCAL_CACHE_INTERVAL','7286058GjLyKh','_updateUnitPermissionPoint','unknown','addHandlerCallback','_initDependencies','accept','_state$','_onRemoteChangeset','CmdRspCode','confirm','People','_waitCount','_classifyAck','getUnitStatus$','SetSelectionsOperation','range','getWorkbookSelections','map','unitID','UpdateDocsAttributeType','replace','values','paragraph','CommandType','size','requestRetry','SUBMIT_CHANGESET','_replayCachedMutations','ErrorCode','[CollaborationAttachmentIoService]:\x20failed\x20to\x20upload\x20attachment.','elapsedMs','action','refreshUnit','memberID','slice','COMPRESS_MUTATION_SEND','echo','isTransformMutationsWithChangesetSuccess','[OfflineState]','applied','commentUpdateEvent','_removeRoom','baseRev','isCompositionEnd','maxSize','saveImage','ack_of_awaiting','REPLACE','target','reduce','params','fetching\x20missing\x20changesets\x20from\x20','collaboratorID','HTTPService','_disableEditing','onTransformSelections','_transformService','/object','conflict$','changesets','pluginName','Cannot\x20assemble\x20a\x20changeset\x20from\x20multiple\x20mutations\x20of\x20different\x20types:\x20','toLocal','_updateLocalCache','onSendChangeset','setCfgEnableObjInherit','_acknowledgeAwaiting','DocStateChangeManagerService','append','leaveEvent','[FetchingMissState]:\x20not\x20expected\x20to\x20receive\x20ack\x20when\x20`this._awaitingChangeset`\x20is\x20null!','concatMap','generateRandomId','function','_unsyncedMutationCount','onPrepareTransformSelections','updateOfflineData','USERS_ENTER','UniverCollaborationClientPlugin','remote_revert','traverse','clearOfflineData','_logService','_attempt','HEARTBEAT','startsWith','filter','_emitMembers','_getAPIPrefix','should_retry','subscribe','candidateSocket','objectPermissionTypes','DRAWING_IMAGE_ALLOW_IMAGE_LIST','getTime','_decreaseWaiting','[CollaborationSession]:\x20should\x20not\x20send\x20message\x20when\x20the\x20session\x20is\x20offline!','RichTextEditingMutation','OPTIONAL','CompressMutationService','x-univer-host','merge','clear','_rebaseParagraphHistory','isTransformMutationsWithChangesetFailure','[CollaborationEntity]:\x20invalid\x20state\x20transition!\x20State\x20transferred\x20from\x20is\x20not\x20the\x20current\x20state.\x0aBefore:\x20','not_collab','asObservable','PdfCollaborationEntity','ISnapshotServerService','_refreshUnitPermission','_reqId','loadBoard','[PendingState]:\x20received\x20acknowledgement.','createUniverCollaborationAdapter','_getAPIPrefixPath','UUID','_clearUndo','/block/','_sessionChannels','{fileID}','_hasSessionsForEndpoint','_requestMissingChangesets','LocaleService','CLOSE_ROOM','endsWith','onChangesetResend','hasWritePending','pauseCollaboration','changeset','_notifyResend','firstValueFrom','SOCKET_FAILED_RETRY','subject','getTypeOfUnitDisposed$','length','mergeOverrideWithDependencies','SheetsSelectionsService','removeMember','send','fromCollab','_scheduleCompleteTimestamp','objectId','_collabSessionService','_prepareConflictRecovery','ignored\x20remote\x20changeset\x20of\x20revision\x20','url','ignored\x20stale\x20ack\x20of\x20revision\x20','_registerDependencies','isTransformChangesetsSuccess','resendTimeouts','_sendToken','48836gRjYbI','TextXActionType','INetworkConditionService','_toggleOffline','LIVESHARE_TERMINATE','_substituteRedoStack','CONFLICT_CACHE_CLEAR_FAILED','delete','csRejEvent','[CollaborationSocketService]','_onRemoteACK','onResend','b64DecodeUnicode','[CollaborationEntity]','textRanges','_acknowledgeAwaitingIfReady','_invertDocumentHistory','CONFLICT','batchAllowed','uploadFileServerUrl','setShowComponents','IConfigService','/universer-api/file/{fileID}/sign-url','HTTPRequest','UPDATE_PERMISSION_OBJ','loadBase','_nextDelay','enableCollaboration','socketService','UserManagerService','csShouldRetryEvent','CollaborationSession','DEFAULT_FILE_NAME','telemetry\x20info\x20is\x20not\x20initialized','permission_rejected','_resolveSessionIdentity','originalMeta','_executeRemoteChangeset','getInterceptPoints','[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.','title','setWaitCount','offline','parseProtocolChangeset','LIVESHARE_REQUEST_HOST','readAsDataURL','state','default','getMember','newCsEvent','infoRsp','mutations','[DataLoaderService]','Slide','saveSheetBlock','JSON1','getImage','_collaborationSessionService','132530nRepUE','withCredentials','socketSubscription','awaiting_with_pending','set','createInstance','fetchThroughInterceptors','m2Prime','CollaborationUIEventId','pipe','add','message','LocalUndoRedoService','authzUrl','RevertRevisionMutation','_upload','getSheetBlock','CollaborativeUndoRedoService','loadSlide','\x20at\x20revision\x20','error$','transformSelections','MergeInterceptorFactory','handshakeTimer','Board','_cfgEnableObjInherit','_maxAckTimeout','getUnitOnRev','_state','disposeWithMe','CONFLICT_PROCESSING','isNoop','uuidv4','_deliver','_roomCreated$','Failed\x20to\x20update\x20permission\x20point','status','fetchMiss','text-x','_localCacheService','writeCursor','ILogService','_sendHeartbeat','_detachSubmitter','_waitForHeartbeatResponse','resourceIDs','SUCCUSS','copyFileMeta','_onRequestFailed','headers','/universer-api/authz','revision','DEFAULT_ACK_TIMEOUT','getCurrentSelections','HEARTBEAT_INTERVAL','_initCloseConn','SheetCollaborationEntity','PENDING','JSONX','toString','collabWebSocketUrl','concatBytes','_loadSnapshot','eventID','_commandService','SYNCED','MAX_ACK_TIMEOUT','fetch_missing','JOIN_ROOM_PERMISSION_DENIED','license_editing_connections_exceeded','error','_dispatchRemoteChangeset','session.room-cnt-exceeds','[CollaborationSession]','getValue','update','closed','_getCurrentRevision','charCodeAt','iterator','localeService','getConfig','_docStateChangeManagerService','cfgEnableObjInherit','_source','ICommandService','FileId','from','sort','cmd','state$','_handlerCallback',',\x20attempt\x20','BASE64','_disposeSubmitter','refreshPermission','open$','_injector','touchDependencies','min','paragraphs','ObjectPermissionService','dispose','toggleOnline','LIVESHARE_OPERATION','max','Subscription','_schedule','_prepareTransformSelections','selections','/rev/','UNIVER_DOC','randomBytes','socketReady','LOCAL_CACHE_INTERVAL_KEY','[CollaborationState]:\x20the\x20unit\x20was\x20reverted\x20to\x20revision\x20','univer-pro.collaboration-client.network-condition.service','ERROR_IMAGE','license_unit_type_rejected','_remoteRevertInfo','getResourcesRequest','enableAuthServer','unit','_snapshotService','ISingleActiveUnitService','_configService','then','INSERT'];_0x247d=function(){return _0x459dbf;};return _0x247d();}V=b([y(0x3,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x4,(0x0,r['Inject'])(n['CompressMutationService'])),y(0x5,(0x0,r['Inject'])(r['LocaleService'])),y(0x6,(0x0,r['Inject'])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r[_0x313905(0xbb)]),y(0x9,r['ILogService']),y(0xa,r['ICommandService']),y(0xb,r[_0x313905(0x132)]),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r['Optional'])(C))],V);let H=class extends I{constructor(_0x559b48,_0xf43875,_0x1a9527,_0xa53609,_0x50ba6b,_0x4e5ae1,_0xfb9056,_0xa9d3de,_0x2cdc49,_0x5522e7,_0xf1800d,_0x447b2c,_0x448a1b,_0x1bdc13){const _0x2e6061=_0x313905;super(_0x559b48,_0x1a9527,_0xf43875,_0xa53609,_0x50ba6b,_0x4e5ae1,_0xfb9056,_0xa9d3de,_0x2cdc49,_0x5522e7,_0xf1800d,_0x447b2c,_0x448a1b,_0x1bdc13),this[_0x2e6061(0x181)]=_0x559b48,this[_0x2e6061(0x133)]=_0xf43875;}async[_0x313905(0x32a)](){const _0x53ec08=_0x313905;let _0x4b758e=await super[_0x53ec08(0x32a)]();return this[_0x53ec08(0x25e)](this[_0x53ec08(0x281)][_0x53ec08(0x2ef)]((_0x4a433a,_0x31d53d)=>{const _0xf7b4d5=_0x53ec08;if(_0x4a433a[_0xf7b4d5(0x133)]!==r[_0xf7b4d5(0x186)]['MUTATION']||_0x31d53d!=null&&_0x31d53d[_0xf7b4d5(0x1fb)]||_0x31d53d!=null&&_0x31d53d[_0xf7b4d5(0x409)])return;let _0x53f92b=_0x4a433a[_0xf7b4d5(0x1a1)];if((_0x53f92b==null?void 0x0:_0x53f92b[_0xf7b4d5(0x39a)])!==this[_0xf7b4d5(0x181)])return;let _0x5f5d93=_0x4a433a,_0x39f847=this['_compressMutationService'][_0xf7b4d5(0x45e)][_0xf7b4d5(0x247)](this[_0xf7b4d5(0x407)][_0xf7b4d5(0x45e)][_0xf7b4d5(0x22d)]()[_0xf7b4d5(0x192)])([_0x5f5d93],this['_univerInstanceService'])||[_0x5f5d93];this[_0xf7b4d5(0xac)](_0x39f847[0x0]);})),_0x4b758e;}};H=b([y(0x3,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x4,(0x0,r[_0x313905(0x377)])(n[_0x313905(0x1d2)])),y(0x5,(0x0,r[_0x313905(0x377)])(r[_0x313905(0x1ea)])),y(0x6,(0x0,r['Inject'])(n[_0x313905(0x2cf)])),y(0x7,(0x0,r[_0x313905(0x377)])(v)),y(0x8,r['IUniverInstanceService']),y(0x9,r['ILogService']),y(0xa,r['ICommandService']),y(0xb,r['IPermissionService']),y(0xc,(0x0,r[_0x313905(0xe6)])(T)),y(0xd,(0x0,r[_0x313905(0xe6)])(C))],H);const Ge=(0x0,r[_0x313905(0x15e)])(_0x313905(0x2b5));function Ke(_0x6fb1c8){const _0xb4fccf=_0x313905;let _0x22896c=_0x6fb1c8[_0xb4fccf(0x335)],_0x2bd456=JSON['parse'](_0x22896c);switch(_0x2bd456['cmd']){case o[_0xb4fccf(0x123)][_0xb4fccf(0x1c3)]:case o['CombCmd'][_0xb4fccf(0x3e6)]:{let _0x1e06dc=_0x2bd456[_0xb4fccf(0x239)];return{..._0x2bd456,'data':_0x1e06dc,'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case o['CombCmd']['JOIN']:{let _0x55d51e=_0x2bd456['joinRsp'];return{..._0x2bd456,'data':_0x55d51e,'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case o[_0xb4fccf(0x123)][_0xb4fccf(0xe4)]:{let _0x41b9c8=_0x2bd456['collaMsg'];switch(_0x41b9c8[_0xb4fccf(0x280)]){case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x30a)]:{let {cs:_0x49f573,code:_0x2a4596,reason:_0x3f309f}=_0x41b9c8[_0xb4fccf(0x399)]??{};return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x49f573,'code':_0x2a4596,'reason':_0x3f309f},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case n['CollaborationEvent'][_0xb4fccf(0x15d)]:var _0x271f4c;return{..._0x2bd456,'data':{..._0x41b9c8,'data':(_0x271f4c=_0x41b9c8[_0xb4fccf(0x2d5)])==null?void 0x0:_0x271f4c['cs']},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x378)]:var _0x5355ff;return{..._0x2bd456,'data':{..._0x41b9c8,'data':(_0x5355ff=_0x41b9c8[_0xb4fccf(0x238)])==null?void 0x0:_0x5355ff['cs']},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0xfb)]:{let {cs:_0x3959cc,code:_0x400f3e,reason:_0x15f583}=_0x41b9c8[_0xb4fccf(0x20f)]??{};return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x3959cc,'code':_0x400f3e,'reason':_0x15f583},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};}case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x3cc)]:{let {cs:_0x58081a,code:_0x3d0981,reason:_0x3f725c}=_0x41b9c8[_0xb4fccf(0x225)]??{};return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x58081a,'code':_0x3d0981,'reason':_0x3f725c},'cmd':_0x2bd456['cmd']};}case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x339)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x39e)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent'][_0xb4fccf(0x1bc)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x3b5)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x134)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x1b4)]},'cmd':_0x2bd456['cmd']};case n['CollaborationEvent']['LIVESHARE_NEW_HOST']:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x348)]},'cmd':_0x2bd456['cmd']};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x3d4)]:case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x2a9)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x392)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent']['LIVESHARE_TERMINATE']:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x348)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent'][_0xb4fccf(0x398)]:return{..._0x2bd456,'data':_0x41b9c8,'cmd':_0x2bd456['cmd']};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x2eb)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x197)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x21f)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x12e)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n[_0xb4fccf(0x2ce)][_0xb4fccf(0x158)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8[_0xb4fccf(0x3e5)]},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};case n['CollaborationEvent'][_0xb4fccf(0x420)]:return{..._0x2bd456,'data':{..._0x41b9c8,'data':_0x41b9c8['uniscriptRunEvent']},'cmd':_0x2bd456[_0xb4fccf(0x29a)]};default:return _0x2bd456;}}default:return _0x2bd456;}}function qe(_0x10c08b){const _0x3d21d7=_0x313905;switch(_0x10c08b[_0x3d21d7(0x29a)]){case o[_0x3d21d7(0x123)][_0x3d21d7(0x1c3)]:case o[_0x3d21d7(0x123)]['HELLO']:return JSON[_0x3d21d7(0x321)]({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b[_0x3d21d7(0x2ea)]});case o[_0x3d21d7(0x123)]['INGEST']:{let _0x509548;switch(_0x10c08b[_0x3d21d7(0x335)]['eventID']){case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x339)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x339)],'updateCursorEvent':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)]['USERS_LEAVE']:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x134)],'leaveEvent':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x1bc)]:_0x509548={'eventID':n['CollaborationEvent'][_0x3d21d7(0x1bc)],'joinEvent':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n['CollaborationEvent'][_0x3d21d7(0x3b2)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x3b2)],'liveShareNewHost':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x2a9)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x2a9)],'liveShareOperation':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)]['LIVESHARE_TERMINATE']:_0x509548={'eventID':n[_0x3d21d7(0x2ce)][_0x3d21d7(0x20b)],'liveShareTerminate':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n['CollaborationEvent'][_0x3d21d7(0x233)]:_0x509548={'eventID':n[_0x3d21d7(0x2ce)]['LIVESHARE_REQUEST_HOST'],'liveShareRequestHost':_0x10c08b[_0x3d21d7(0x335)][_0x3d21d7(0x335)]};break;case n[_0x3d21d7(0x2ce)][_0x3d21d7(0x3d4)]:_0x509548={'eventID':n['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};break;default:_0x509548={'eventID':_0x10c08b['data'][_0x3d21d7(0x280)]};}return JSON[_0x3d21d7(0x321)]({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b[_0x3d21d7(0x2ea)],'collaMsg':_0x509548});}case o[_0x3d21d7(0x123)][_0x3d21d7(0x381)]:return JSON['stringify']({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b[_0x3d21d7(0x2ea)],'joinReq':_0x10c08b[_0x3d21d7(0x335)]});case o['CombCmd'][_0x3d21d7(0x346)]:return JSON['stringify']({'cmd':_0x10c08b[_0x3d21d7(0x29a)],'routeKey':_0x10c08b['routeKey'],'leaveReq':_0x10c08b[_0x3d21d7(0x335)]});default:throw Error(_0x3d21d7(0x3ba));}}const Je=(0x0,r[_0x313905(0x15e)])('univer-pro.collaboration-client-socket-service');function Ye(_0x1d7251,_0x3c9638,_0x38d4d4){const _0x1f0c25=_0x313905;return _0x1d7251+'/'+_0x3c9638+_0x1f0c25(0x166)+_0x38d4d4+_0x1f0c25(0x120);}let Xe=class extends r[_0x313905(0x333)]{constructor(_0x42397f,_0x5ee96f,_0x443d51,_0x439501,_0x2fbe15){const _0x597168=_0x313905;super(),this['_injector']=_0x42397f,this[_0x597168(0x2f1)]=_0x5ee96f,this[_0x597168(0x2be)]=_0x443d51,this[_0x597168(0x1c1)]=_0x439501,this['_snapshotServerService']=_0x2fbe15;}[_0x313905(0x411)](_0xba6213){const _0x4bb5ce=_0x313905;let _0x36ac4a=this['_injector'][_0x4bb5ce(0xe5)](e[_0x4bb5ce(0x3de)]);if(!_0x36ac4a)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20get\x20web\x20socket\x20factory!');let _0x244179=_0x36ac4a[_0x4bb5ce(0x338)](_0xba6213);if(!_0x244179)throw Error('[CollaborationSocketService]:\x20failed\x20to\x20create\x20socket!');let _0x961578=new r['DisposableCollection'](),_0x26f8ff=new t[(_0x4bb5ce(0xb7))]();_0x961578[_0x4bb5ce(0x24b)](_0x244179[_0x4bb5ce(0x2dc)]['subscribe'](_0x2a48a6=>_0x26f8ff['next'](_0x2a48a6))),_0x961578[_0x4bb5ce(0x24b)]((0x0,r[_0x4bb5ce(0xfa)])(()=>_0x26f8ff[_0x4bb5ce(0x395)]()));let _0x3b2ec6=new t[(_0x4bb5ce(0xb7))]();_0x961578[_0x4bb5ce(0x24b)](_0x244179[_0x4bb5ce(0x255)][_0x4bb5ce(0x1c9)](_0x8d6f10=>_0x3b2ec6[_0x4bb5ce(0xb9)](_0x8d6f10))),_0x961578[_0x4bb5ce(0x24b)]((0x0,r[_0x4bb5ce(0xfa)])(()=>_0x3b2ec6[_0x4bb5ce(0x395)]()));let _0x215dd7=new t['Subject']();_0x961578[_0x4bb5ce(0x24b)](_0x244179[_0x4bb5ce(0xf4)]['subscribe'](_0x91c264=>{const _0x5bf454=_0x4bb5ce;let _0x2bb756=Ke(_0x91c264);_0x215dd7[_0x5bf454(0xb9)](_0x2bb756);})),_0x961578[_0x4bb5ce(0x24b)]((0x0,r[_0x4bb5ce(0xfa)])(()=>_0x215dd7[_0x4bb5ce(0x395)]()));let _0x104239,_0x3b7c97=()=>{const _0x177585=_0x4bb5ce;_0x3b2ec6[_0x177585(0xb9)](new Event(_0x177585(0x427))),_0x26f8ff['next'](new Event(_0x177585(0x427))),_0x104239[_0x177585(0x2d4)]();};return _0x104239={'memberID':'','close$':_0x26f8ff[_0x4bb5ce(0x1da)](),'error$':_0x3b2ec6[_0x4bb5ce(0x1da)](),'open$':_0x244179['open$'],'message$':_0x215dd7[_0x4bb5ce(0x1da)](),'send':(_0x49ea37,_0x583e1d)=>{const _0x282490=_0x4bb5ce;if(_0x49ea37[_0x282490(0x29a)]===o['CombCmd'][_0x282490(0x40e)]){if(_0x49ea37[_0x282490(0x335)][_0x282490(0x280)]===n[_0x282490(0x2ce)]['SUBMIT_CHANGESET']){let _0x22c1f0=this[_0x282490(0x436)](_0x104239,_0x49ea37[_0x282490(0x335)],(_0x583e1d==null?void 0x0:_0x583e1d['timeout'])??0x1d4c0);return _0x22c1f0[_0x282490(0x3bb)](()=>void 0x0),_0x22c1f0;}if(_0x49ea37[_0x282490(0x335)]['eventID']===n[_0x282490(0x2ce)][_0x282490(0x3b3)]){let _0x1f293e=_0x49ea37['data'];this['_fetchMissChangesets'](_0x1f293e)[_0x282490(0x2bf)](_0x4b3d06=>{const _0x4f234f=_0x282490;_0x215dd7[_0x4f234f(0xb9)]({'cmd':o[_0x4f234f(0x123)][_0x4f234f(0xe4)],'code':o['CmdRspCode']['OK'],'routeKey':_0x1f293e[_0x4f234f(0x335)][_0x4f234f(0x181)],'routeType':'','data':{'eventID':n['CollaborationEvent'][_0x4f234f(0x32f)],'data':{'changesets':_0x4b3d06}}});})[_0x282490(0x3bb)](_0x1da592=>{const _0x4c359b=_0x282490;this[_0x4c359b(0x1c1)][_0x4c359b(0x287)](_0x1da592),_0x3b7c97();});return;}}_0x244179['send'](qe(_0x49ea37));},'close':()=>{const _0x2d69f8=_0x4bb5ce;_0x244179[_0x2d69f8(0x2d4)](),_0x961578[_0x2d69f8(0x2a7)]();}},_0x104239;}[_0x313905(0x436)](_0xa37985,_0x439edf,_0x166c22){const _0x46270a=_0x313905;let {unitType:_0x52c199,unitID:_0x677923,changeset:_0x62740e}=_0x439edf[_0x46270a(0x335)],_0x532984={'unitID':_0x677923,'memberID':_0xa37985[_0x46270a(0x190)],'type':_0x52c199,'changeset':(0x0,n[_0x46270a(0x37d)])(_0x62740e)},_0x44817a=this[_0x46270a(0x2be)][_0x46270a(0x292)](m),_0x47ea99=Ye((_0x44817a==null?void 0x0:_0x44817a['collabSubmitChangesetUrl'])??_0x46270a(0x35f),_0x52c199,_0x677923);return(0x0,t[_0x46270a(0x1f2)])(this[_0x46270a(0x2f1)][_0x46270a(0x303)](_0x46270a(0xee),_0x47ea99,{'body':_0x532984})['pipe']((0x0,t[_0x46270a(0x1c5)])(_0x301a7a=>_0x301a7a[_0x46270a(0x133)]===e[_0x46270a(0x14e)][_0x46270a(0x152)]),(0x0,t[_0x46270a(0x15f)])(_0x166c22)))[_0x46270a(0x2bf)](()=>void 0x0,_0x3a5d53=>{const _0xed8c3b=_0x46270a;throw this[_0xed8c3b(0x1c1)]['warn'](_0xed8c3b(0x210),'submitting\x20changeset\x20'+_0x62740e[_0xed8c3b(0x3fd)]+':'+_0x62740e[_0xed8c3b(0x131)]+_0xed8c3b(0x3fc)+Ze(_0x3a5d53)),_0x3a5d53;});}async[_0x313905(0x2fd)](_0xdafa40){const _0x47c086=_0x313905;let {unitID:_0x1e7c16,from:_0xb0d011,to:_0x294d80,unitType:_0x461c65}=_0xdafa40[_0x47c086(0x335)];return(await this[_0x47c086(0x443)][_0x47c086(0x156)]({'metadata':void 0x0},{'unitID':_0x1e7c16,'type':_0x461c65,'from':_0xb0d011,'to':_0x294d80}))['changesets'][_0x47c086(0x180)](_0x5ad265=>((_0x5ad265[_0x47c086(0x23a)]===null||_0x5ad265[_0x47c086(0x23a)]===void 0x0)&&(_0x5ad265[_0x47c086(0x23a)]=[]),_0x5ad265));}};Xe=b([y(0x0,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xdf)])),y(0x1,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)])),y(0x2,r['IConfigService']),y(0x3,r[_0x313905(0x26a)]),y(0x4,n['ISnapshotServerService'])],Xe);function Ze(_0x44cd93){const _0x5ca2d2=_0x313905;return _0x44cd93 instanceof e[_0x5ca2d2(0x3dd)]?'HTTP\x20'+(_0x44cd93['status']??0x0):_0x44cd93 instanceof Error?_0x44cd93[_0x5ca2d2(0x41b)]:String(_0x44cd93);}const Qe=(0x0,r[_0x313905(0x15e)])(_0x313905(0x163));function $e(_0x281b29={}){const _0x235b7c=_0x313905;return _0x281b29[_0x235b7c(0x349)]?{'resolveUnit':_0x281b29[_0x235b7c(0x349)]}:{'resolveUnit':_0xf0408f=>({'target':{'unitId':_0xf0408f['unitId'],'unitType':_0xf0408f[_0x235b7c(0x459)]}})};}function et(_0x3d0f13,_0x3cb93a,_0x5088e5){const _0x3aa788=_0x313905;let _0x2939eb=_0x5088e5[_0x3aa788(0x19f)][_0x3aa788(0x2dd)];if(_0x2939eb!=null&&_0x2939eb['trim']()==='')throw Error(_0x3aa788(0x3fb));if(!_0x5088e5[_0x3aa788(0x19f)]['unitId'])throw Error(_0x3aa788(0x45c));return{'localUnitId':_0x3d0f13,'unitType':_0x3cb93a,'target':{'endpoint':_0x2939eb,'unitId':_0x5088e5['target'][_0x3aa788(0x39a)],'unitType':_0x5088e5['target']['unitType']??_0x3cb93a},'changeset':_0x5088e5['changeset']};}let U=class extends r['Disposable']{constructor(_0x425a8d,_0x5c927c,_0x4cea7a,_0x53e446,_0x2971bd,_0x3d72b7){const _0x4be885=_0x313905;super(),this[_0x4be885(0x2a2)]=_0x425a8d,this[_0x4be885(0x1c1)]=_0x5c927c,this[_0x4be885(0x2be)]=_0x4cea7a,this[_0x4be885(0x402)]=_0x53e446,this['_collaborationUIEventService']=_0x2971bd,this[_0x4be885(0x3f2)]=_0x3d72b7,_(this,_0x4be885(0x37c),new Map()),_(this,_0x4be885(0x3d0),new Map()),_(this,_0x4be885(0x1e6),new Map()),_(this,_0x4be885(0x11b),new Map()),_(this,_0x4be885(0x3cb),void 0x0),_(this,_0x4be885(0x363),this[_0x4be885(0x16c)](void 0x0)['socket$'][_0x4be885(0x1da)]()),_(this,_0x4be885(0x408),new t[(_0x4be885(0x34f))](0x0)),_(this,_0x4be885(0x359),this['_status$']['asObservable']());}[_0x313905(0x403)](){const _0x3d00c7=_0x313905;this[_0x3d00c7(0x3cb)]||(this[_0x3d00c7(0x3cb)]=this[_0x3d00c7(0x2a2)][_0x3d00c7(0xe5)](Ge,r[_0x3d00c7(0x161)][_0x3d00c7(0x1d1)])??void 0x0,this[_0x3d00c7(0x3cb)]&&this['disposeWithMe'](this[_0x3d00c7(0x3cb)][_0x3d00c7(0x387)][_0x3d00c7(0x1c9)](_0x3cea8d=>{const _0x5e64cd=_0x3d00c7;_0x3cea8d&&this[_0x5e64cd(0xf6)](),_0x3cea8d||this[_0x5e64cd(0x11b)]['forEach'](_0x55951d=>this[_0x5e64cd(0x430)](_0x55951d));})));}[_0x313905(0x2a7)](){const _0x415e98=_0x313905;super['dispose'](),this[_0x415e98(0x11b)][_0x415e98(0xf3)](_0x574a06=>{const _0x10f2fa=_0x415e98;var _0x481c21,_0x5c9bdf,_0xefc026;(_0x481c21=_0x574a06[_0x10f2fa(0x243)])==null||_0x481c21[_0x10f2fa(0xbd)](),_0x574a06[_0x10f2fa(0x243)]=null,this[_0x10f2fa(0x369)](_0x574a06),this[_0x10f2fa(0x2fb)](_0x574a06),this['_clearTimeoutTimer'](_0x574a06),this[_0x10f2fa(0x414)](_0x574a06),(_0x5c9bdf=_0x574a06[_0x10f2fa(0x363)]['getValue']())==null||_0x5c9bdf[_0x10f2fa(0x2d4)](),(_0xefc026=_0x574a06['candidateSocket'])==null||_0xefc026['close'](),_0x574a06[_0x10f2fa(0x363)][_0x10f2fa(0x395)]();}),this['_socketChannels']['clear'](),this[_0x415e98(0x37c)][_0x415e98(0xf3)](_0x4f4749=>_0x4f4749[_0x415e98(0x2a7)]()),this[_0x415e98(0x37c)][_0x415e98(0x1d5)](),this['_sessionChannels'][_0x415e98(0x1d5)](),this[_0x415e98(0x408)][_0x415e98(0x395)]();}async['requireSession'](_0x1b2f5f,_0x5922e6){const _0x352119=_0x313905;if(this[_0x352119(0x403)](),this[_0x352119(0x37c)][_0x352119(0x3ae)](_0x1b2f5f))return this[_0x352119(0x37c)][_0x352119(0xe5)](_0x1b2f5f);let _0x1c7eed=this[_0x352119(0x3d0)][_0x352119(0xe5)](_0x1b2f5f);if(_0x1c7eed)return _0x1c7eed;let _0x35d0ee=this['_createSession'](_0x1b2f5f,_0x5922e6);this['_pendingSessions'][_0x352119(0x245)](_0x1b2f5f,_0x35d0ee);try{return await _0x35d0ee;}finally{this[_0x352119(0x3d0)][_0x352119(0x20e)](_0x1b2f5f);}}async['_createSession'](_0x1935d2,_0x126c51){const _0x27fad7=_0x313905;let _0x30efea=await this[_0x27fad7(0x22a)](_0x1935d2,_0x126c51),_0x1f101f=this[_0x27fad7(0x16c)](_0x30efea[_0x27fad7(0x19f)][_0x27fad7(0x2dd)]);this[_0x27fad7(0xcf)](_0x1f101f);let _0x2999d9=this['_injector']['createInstance'](S,_0x30efea,_0x1f101f[_0x27fad7(0x363)][_0x27fad7(0x1da)]());return this[_0x27fad7(0x37c)]['set'](_0x1935d2,_0x2999d9),this[_0x27fad7(0x1e6)][_0x27fad7(0x245)](_0x1935d2,_0x1f101f[_0x27fad7(0x30e)]),_0x2999d9;}[_0x313905(0x44a)](_0x43a43b){const _0x5ec1e7=_0x313905;let _0x144725=this[_0x5ec1e7(0x37c)][_0x5ec1e7(0xe5)](_0x43a43b),_0xc893fc=this[_0x5ec1e7(0x1e6)][_0x5ec1e7(0xe5)](_0x43a43b);if(_0x144725&&(this['_sessions'][_0x5ec1e7(0x20e)](_0x43a43b),this[_0x5ec1e7(0x1e6)][_0x5ec1e7(0x20e)](_0x43a43b),_0x144725['close']()),_0xc893fc!==void 0x0&&!this[_0x5ec1e7(0x1e8)](_0xc893fc)){let _0x2ff66b=this[_0x5ec1e7(0x11b)][_0x5ec1e7(0xe5)](_0xc893fc);_0x2ff66b&&this[_0x5ec1e7(0x430)](_0x2ff66b);}}[_0x313905(0xf6)](){const _0x35319a=_0x313905;(this[_0x35319a(0x11b)][_0x35319a(0x187)]?[...this[_0x35319a(0x11b)]['values']()]:[this[_0x35319a(0x16c)](void 0x0)])[_0x35319a(0xf3)](_0x25368a=>{const _0x56fde9=_0x35319a;!this[_0x56fde9(0x1e8)](_0x25368a[_0x56fde9(0x30e)])||_0x25368a['socketReady']||_0x25368a[_0x56fde9(0x1ca)]||_0x25368a[_0x56fde9(0x435)]||(_0x25368a['retryCount']=0x0,this[_0x56fde9(0x2fb)](_0x25368a),this[_0x56fde9(0x38b)](_0x25368a));});}['_clearRetryConnectingTimer'](_0x57395c){const _0x8febb4=_0x313905;_0x57395c[_0x8febb4(0x401)]!=null&&(clearTimeout(_0x57395c[_0x8febb4(0x401)]),_0x57395c[_0x8febb4(0x401)]=null);}[_0x313905(0x417)](_0x26f2f4){const _0x1fa6d0=_0x313905;let _0x30b0fb=this[_0x1fa6d0(0x2be)][_0x1fa6d0(0x292)](m),_0x2cb458=_0x26f2f4[_0x1fa6d0(0x2dd)]??(_0x30b0fb==null?void 0x0:_0x30b0fb[_0x1fa6d0(0x27d)])??_0x1fa6d0(0x364);return this[_0x1fa6d0(0x402)]['createSocket'](_0x2cb458);}async[_0x313905(0xcf)](_0x1a5685){const _0x3b0b79=_0x313905;var _0x51ec43;if(this[_0x3b0b79(0x3fa)]||((_0x51ec43=this[_0x3b0b79(0x3cb)])==null?void 0x0:_0x51ec43[_0x3b0b79(0x2ca)])===!0x1||_0x1a5685[_0x3b0b79(0x2b2)]||_0x1a5685[_0x3b0b79(0x1ca)]||_0x1a5685[_0x3b0b79(0x435)])return;let _0x39f242={};_0x1a5685[_0x3b0b79(0x435)]=_0x39f242;try{let _0x49e47a=await this['_createSocket'](_0x1a5685);if(this['_disposed']||_0x1a5685[_0x3b0b79(0x435)]!==_0x39f242){_0x49e47a==null||_0x49e47a[_0x3b0b79(0x2d4)]();return;}if(_0x49e47a){var _0x390f28;_0x1a5685[_0x3b0b79(0x1ca)]=_0x49e47a,_0x1a5685[_0x3b0b79(0x258)]=setTimeout(()=>{const _0x171a93=_0x3b0b79;!this['_disposed']&&_0x1a5685[_0x171a93(0x1ca)]===_0x49e47a&&this['_onConnectionFailed'](_0x1a5685);},0x4e20);let _0x44f1ca=_0x49e47a[_0x3b0b79(0x1fa)];_0x49e47a[_0x3b0b79(0x1fa)]=(_0x2c8495,_0x4f0351)=>{const _0xc79149=_0x3b0b79;_0x2c8495['cmd']!==o[_0xc79149(0x123)][_0xc79149(0x346)]&&!tt(_0x2c8495)&&_0x1a5685[_0xc79149(0x2b2)]&&_0x1a5685[_0xc79149(0x363)][_0xc79149(0x28b)]()===_0x49e47a&&this[_0xc79149(0x3da)](_0x1a5685);let _0x1dcb11=_0x4f0351===void 0x0?_0x44f1ca['call'](_0x49e47a,_0x2c8495):_0x44f1ca['call'](_0x49e47a,_0x2c8495,_0x4f0351);return _0x1dcb11 instanceof Promise&&_0x1dcb11[_0xc79149(0x3bb)](_0x3b53de=>{const _0x10231c=_0xc79149;nt(_0x3b53de)&&_0x1a5685['socket$']['getValue']()===_0x49e47a&&this[_0x10231c(0x318)](_0x1a5685);}),_0x1dcb11;},(_0x390f28=_0x1a5685[_0x3b0b79(0x243)])==null||_0x390f28[_0x3b0b79(0xbd)]();let _0xae9493=new t[(_0x3b0b79(0x2ab))]();_0x1a5685[_0x3b0b79(0x243)]=_0xae9493,_0xae9493[_0x3b0b79(0x24b)](_0x49e47a['message$']['subscribe'](_0x13c0e2=>this['_onMessage'](_0x1a5685,_0x49e47a,_0x13c0e2))),_0xae9493[_0x3b0b79(0x24b)](_0x49e47a['error$']['pipe']((0x0,c[_0x3b0b79(0x16d)])(0x1))['subscribe'](_0xc308ab=>this[_0x3b0b79(0x1c1)][_0x3b0b79(0x287)](_0x3b0b79(0x383),_0xc308ab))),_0xae9493['add'](_0x49e47a[_0x3b0b79(0x2a1)][_0x3b0b79(0x24a)]((0x0,c[_0x3b0b79(0x16d)])(0x1))[_0x3b0b79(0x1c9)](()=>{this['_onConnectionOpen'](_0x1a5685,_0x49e47a);})),_0xae9493[_0x3b0b79(0x24b)](_0x49e47a[_0x3b0b79(0x2dc)][_0x3b0b79(0x24a)]((0x0,c[_0x3b0b79(0x16d)])(0x1))[_0x3b0b79(0x1c9)](_0x34c17c=>{const _0x1bcc8a=_0x3b0b79;(_0x1a5685['candidateSocket']===_0x49e47a||_0x1a5685[_0x1bcc8a(0x363)][_0x1bcc8a(0x28b)]()===_0x49e47a)&&(this[_0x1bcc8a(0x1c1)][_0x1bcc8a(0x426)]('[CollaborationSessionService]',_0x1bcc8a(0x140),_0x34c17c),this[_0x1bcc8a(0x2f9)](_0x1a5685));}));}}catch(_0x455ae4){if(_0x1a5685[_0x3b0b79(0x435)]!==_0x39f242)return;if(nt(_0x455ae4)){this[_0x3b0b79(0x318)](_0x1a5685);return;}this['_logService'][_0x3b0b79(0x287)](_0x455ae4),this[_0x3b0b79(0x2f9)](_0x1a5685);}finally{_0x1a5685[_0x3b0b79(0x435)]===_0x39f242&&(_0x1a5685[_0x3b0b79(0x435)]=null);}}[_0x313905(0x12b)](_0x244db2,_0x5a30a7){const _0x426f50=_0x313905;this[_0x426f50(0x3fa)]||_0x244db2[_0x426f50(0x1ca)]!==_0x5a30a7||(this[_0x426f50(0x1c1)][_0x426f50(0x426)](_0x426f50(0x104),_0x426f50(0xf8)),_0x5a30a7[_0x426f50(0x1fa)]({'cmd':o[_0x426f50(0x123)][_0x426f50(0x3e6)]}));}[_0x313905(0x430)](_0xe1a6c3){const _0x148749=_0x313905;var _0x3be890;let _0x4e3273=_0xe1a6c3[_0x148749(0x363)][_0x148749(0x28b)]()??_0xe1a6c3[_0x148749(0x1ca)];_0xe1a6c3[_0x148749(0x435)]=null,_0xe1a6c3[_0x148749(0x2b2)]=!0x1,_0xe1a6c3[_0x148749(0x1ca)]=null,(_0x3be890=_0xe1a6c3[_0x148749(0x243)])==null||_0x3be890[_0x148749(0xbd)](),_0xe1a6c3[_0x148749(0x243)]=null,this[_0x148749(0x408)][_0x148749(0xb9)](0x2),_0xe1a6c3[_0x148749(0x363)][_0x148749(0xb9)](null),this[_0x148749(0x2fb)](_0xe1a6c3),this[_0x148749(0x369)](_0xe1a6c3),this[_0x148749(0x2cd)](_0xe1a6c3),this[_0x148749(0x414)](_0xe1a6c3),_0x4e3273==null||_0x4e3273[_0x148749(0x2d4)]();}[_0x313905(0x318)](_0xac7c58){const _0x511319=_0x313905;this['_onOffline'](_0xac7c58),this[_0x511319(0x37e)]['emitEvent']({'id':_0x511319(0x13b)});}[_0x313905(0x2f9)](_0x3d365e){const _0x2ea9ab=_0x313905;var _0x3a1b73;this[_0x2ea9ab(0x430)](_0x3d365e),!this['_disposed']&&((_0x3a1b73=this[_0x2ea9ab(0x3cb)])==null?void 0x0:_0x3a1b73['online'])!==!0x1&&this[_0x2ea9ab(0x1e8)](_0x3d365e[_0x2ea9ab(0x30e)])&&(_0x3d365e[_0x2ea9ab(0x330)]<(this[_0x2ea9ab(0x2be)][_0x2ea9ab(0x292)](_0x2ea9ab(0x38f))??0x3)?(this[_0x2ea9ab(0x37e)][_0x2ea9ab(0x117)]({'id':_0x2ea9ab(0x1f3)}),this[_0x2ea9ab(0x38b)](_0x3d365e)):this[_0x2ea9ab(0x37e)][_0x2ea9ab(0x117)]({'id':_0x2ea9ab(0x124)}));}[_0x313905(0x38b)](_0x29d642){const _0x5b1271=_0x313905;let _0x21fb1b=_0x29d642[_0x5b1271(0x330)],_0x425767=this['_configService'][_0x5b1271(0x292)](m),_0x404e83=_0x21fb1b===0x0?0x0:((_0x425767==null?void 0x0:_0x425767[_0x5b1271(0xd5)])??0x4e20)*0x2**_0x21fb1b;_0x29d642[_0x5b1271(0x401)]=setTimeout(()=>{const _0x1bd5b4=_0x5b1271;clearTimeout(_0x29d642[_0x1bd5b4(0x401)]),_0x29d642[_0x1bd5b4(0x401)]=null,this['_tryEnsureSocket'](_0x29d642);},_0x404e83),_0x29d642['retryCount']+=0x1;}async[_0x313905(0x22a)](_0x2c797a,_0x609772){const _0x2bf629=_0x313905;return et(_0x2c797a,_0x609772,await this['_adapter'][_0x2bf629(0x349)]({'unitId':_0x2c797a,'unitType':_0x609772}));}[_0x313905(0x3d6)](_0x1084ea,_0xa295b4,_0x2609e0){const _0x48d292=_0x313905;if(this['_disposed']||_0x1084ea['candidateSocket']!==_0xa295b4&&_0x1084ea[_0x48d292(0x363)][_0x48d292(0x28b)]()!==_0xa295b4)return;let {cmd:_0x595d0e}=_0x2609e0;if(_0x595d0e===o[_0x48d292(0x123)][_0x48d292(0x3e6)]&&!_0x1084ea[_0x48d292(0x2b2)]){var _0x1f97ab;if((_0x2609e0[_0x48d292(0x2c3)]??o[_0x48d292(0x177)]['OK'])!==o['CmdRspCode']['OK']||!((_0x1f97ab=_0x2609e0['data'])!=null&&_0x1f97ab[_0x48d292(0x190)])){this['_onConnectionFailed'](_0x1084ea);return;}this[_0x48d292(0x369)](_0x1084ea),_0xa295b4[_0x48d292(0x190)]=_0x2609e0[_0x48d292(0x335)][_0x48d292(0x190)],_0x1084ea['retryCount']=0x0,_0x1084ea[_0x48d292(0x2b2)]=!0x0,_0x1084ea[_0x48d292(0x1ca)]=null,_0x1084ea['socket$'][_0x48d292(0xb9)](_0xa295b4),this[_0x48d292(0x408)]['next'](0x3);}_0x595d0e===o[_0x48d292(0x123)][_0x48d292(0x1c3)]&&this[_0x48d292(0x2cd)](_0x1084ea),this[_0x48d292(0x3da)](_0x1084ea);}[_0x313905(0x1e8)](_0x44ccfe){const _0x32768d=_0x313905;return[...this[_0x32768d(0x1e6)][_0x32768d(0x184)]()][_0x32768d(0xb3)](_0x285b17=>_0x285b17===_0x44ccfe);}[_0x313905(0x16c)](_0x1168fe){const _0x152949=_0x313905;let _0x818808=_0x1168fe??'',_0x6c6837=this[_0x152949(0x11b)]['get'](_0x818808);if(_0x6c6837)return _0x6c6837;let _0x32b061={'endpointKey':_0x818808,'endpoint':_0x1168fe,'socket$':new t[(_0x152949(0x34f))](void 0x0),'candidateSocket':null,'connectionAttempt':null,'socketReady':!0x1,'socketSubscription':null,'handshakeTimer':null,'retryConnectingTimer':null,'retryCount':0x0,'sendHeartbeatTimer':null,'timeoutTimer':null};return this[_0x152949(0x11b)][_0x152949(0x245)](_0x818808,_0x32b061),_0x32b061;}[_0x313905(0x369)](_0x101fe7){const _0xa7ba72=_0x313905;_0x101fe7[_0xa7ba72(0x258)]!=null&&(clearTimeout(_0x101fe7[_0xa7ba72(0x258)]),_0x101fe7['handshakeTimer']=null);}[_0x313905(0x3da)](_0x43b42d){const _0x322453=_0x313905;this['_clearHeartbeatTimer'](_0x43b42d),_0x43b42d[_0x322453(0x2b2)]&&(_0x43b42d[_0x322453(0x2ec)]=setTimeout(()=>this[_0x322453(0x26b)](_0x43b42d),this[_0x322453(0x2be)][_0x322453(0x292)](_0x322453(0x277))??0x7530));}[_0x313905(0x26b)](_0x4a35b3){const _0xeb0638=_0x313905;let _0x22595a=_0x4a35b3[_0xeb0638(0x363)][_0xeb0638(0x28b)]();_0x4a35b3[_0xeb0638(0x2b2)]&&_0x22595a&&(_0x22595a[_0xeb0638(0x1fa)]({'cmd':o[_0xeb0638(0x123)][_0xeb0638(0x1c3)]}),this['_waitForHeartbeatResponse'](_0x4a35b3));}[_0x313905(0x26d)](_0x1dde6f){const _0x25a15b=_0x313905;_0x1dde6f[_0x25a15b(0x418)]=setTimeout(()=>this[_0x25a15b(0x2f9)](_0x1dde6f),this['_configService']['getConfig']('HEARTBEAT_TIMEOUT')??0x4e20);}[_0x313905(0x414)](_0xc78c17){const _0x540e0c=_0x313905;_0xc78c17[_0x540e0c(0x2ec)]!=null&&(clearTimeout(_0xc78c17[_0x540e0c(0x2ec)]),_0xc78c17[_0x540e0c(0x2ec)]=null);}[_0x313905(0x2cd)](_0x4df6d8){const _0x574550=_0x313905;_0x4df6d8[_0x574550(0x418)]!=null&&(clearTimeout(_0x4df6d8[_0x574550(0x418)]),_0x4df6d8['timeoutTimer']=null);}};U=b([y(0x0,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x1,r[_0x313905(0x26a)]),y(0x2,r[_0x313905(0x21c)]),y(0x3,Je),y(0x4,(0x0,r[_0x313905(0x377)])(v)),y(0x5,Qe)],U);function tt(_0x32c340){const _0x3e18ea=_0x313905;if(_0x32c340[_0x3e18ea(0x29a)]!==o[_0x3e18ea(0x123)]['INGEST'])return!0x1;let _0x161070=_0x32c340[_0x3e18ea(0x335)][_0x3e18ea(0x280)];return _0x161070===n[_0x3e18ea(0x2ce)][_0x3e18ea(0x189)]||_0x161070===n['CollaborationEvent'][_0x3e18ea(0x3b3)];}function nt(_0x5d3ba2){const _0x23b053=_0x313905;var _0xb3689d;if(!(_0x5d3ba2 instanceof e['HTTPResponseError'])||_0x5d3ba2[_0x23b053(0x265)]!==0x193)return!0x1;let _0x59022c=_0x5d3ba2[_0x23b053(0x287)];return(_0x59022c==null||(_0xb3689d=_0x59022c[_0x23b053(0x287)])==null?void 0x0:_0xb3689d[_0x23b053(0x2c3)])===o[_0x23b053(0x18b)][_0x23b053(0x13b)];}let W=class extends r[_0x313905(0x380)]{constructor(_0x2ff7c1,_0x5f4b0c,_0x9367b0,_0x472d68){const _0x410574=_0x313905;var _0x8eadc4;super(),this[_0x410574(0x2a2)]=_0x2ff7c1,this[_0x410574(0x1fe)]=_0x5f4b0c,this['_configService']=_0x9367b0,this[_0x410574(0x121)]=_0x472d68,_(this,_0x410574(0x2f2),new Map()),_(this,_0x410574(0x3e1),new t['Subject']()),_(this,_0x410574(0x3d3),this['_entityInit$'][_0x410574(0x1da)]()),((_0x8eadc4=this[_0x410574(0x2be)][_0x410574(0x292)]('collaboration-client.config'))==null?void 0x0:_0x8eadc4[_0x410574(0x222)])!==!0x1&&this[_0x410574(0x32a)]();}[_0x313905(0x2a7)](){const _0x326340=_0x313905;super[_0x326340(0x2a7)](),this[_0x326340(0x2f2)][_0x326340(0xf3)](_0x4eaa14=>_0x4eaa14[_0x326340(0x2a7)]()),this[_0x326340(0x2f2)][_0x326340(0x1d5)]();}[_0x313905(0x448)](_0x2400f1){const _0x23b381=_0x313905;return this[_0x23b381(0x2f2)][_0x23b381(0xe5)](_0x2400f1)??null;}[_0x313905(0x137)](){const _0x2a4728=_0x313905;return Array[_0x2a4728(0x298)](this[_0x2a4728(0x2f2)][_0x2a4728(0x184)]());}[_0x313905(0x157)](_0x1dba1f){const _0x40332e=_0x313905;let _0x4d16c2=this[_0x40332e(0x448)](_0x1dba1f);return _0x4d16c2?(0x0,t['of'])(_0x4d16c2):this[_0x40332e(0x3e1)][_0x40332e(0x24a)]((0x0,c[_0x40332e(0x1c5)])(_0xf488cb=>_0xf488cb['unitID']===_0x1dba1f));}[_0x313905(0x3bd)](_0xbdf82a){const _0x4647c4=_0x313905;return(0x0,t[_0x4647c4(0x1f2)])(this[_0x4647c4(0x157)](_0xbdf82a)[_0x4647c4(0x24a)]((0x0,c['map'])(()=>void 0x0)));}['hasWritePending'](_0x4878cc){const _0x233168=_0x313905;if(_0x4878cc!==void 0x0){var _0x343c06;return((_0x343c06=this[_0x233168(0x2f2)][_0x233168(0xe5)](_0x4878cc))==null?void 0x0:_0x343c06['hasWritePending']())??!0x1;}for(let _0xe93bc2 of this[_0x233168(0x2f2)]['values']())if(_0xe93bc2[_0x233168(0x1ee)]())return!0x0;return!0x1;}[_0x313905(0x32a)](){const _0x5ed931=_0x313905;this[_0x5ed931(0x121)]['getTypeOfUnitAdded$'](r[_0x5ed931(0xd4)]['UNIVER_SHEET'])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c['delay'])(0x10))[_0x5ed931(0x1c9)](async _0x5ae4cc=>{const _0x5a3118=_0x5ed931;let _0x4e9666=_0x5ae4cc[_0x5a3118(0x2bb)][_0x5a3118(0x400)](),_0x1adad2=await this[_0x5a3118(0x36d)](_0x4e9666,r[_0x5a3118(0xd4)][_0x5a3118(0x155)]);this['_entities'][_0x5a3118(0x245)](_0x4e9666,_0x1adad2);}),this[_0x5ed931(0x121)][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)]['UNIVER_DOC'])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c['delay'])(0x10))['pipe']((0x0,c['filter'])(_0x221ab6=>!_0x221ab6[_0x5ed931(0x2bb)][_0x5ed931(0x400)]()['startsWith']('__')))[_0x5ed931(0x1c9)](async _0x4f037e=>{const _0x19c02d=_0x5ed931;let _0x29c2c6=_0x4f037e['unit'][_0x19c02d(0x400)](),_0x198152=await this[_0x19c02d(0x36d)](_0x29c2c6,r[_0x19c02d(0xd4)][_0x19c02d(0x2b0)]);this[_0x19c02d(0x2f2)][_0x19c02d(0x245)](_0x29c2c6,_0x198152);}),this['_univerInstanceService'][_0x5ed931(0x34b)](r['UniverInstanceType'][_0x5ed931(0x3e4)])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c[_0x5ed931(0xde)])(0x10))[_0x5ed931(0x1c9)](async _0x4bae7d=>{const _0xc92566=_0x5ed931;let _0x1e3897=_0x4bae7d[_0xc92566(0x2bb)][_0xc92566(0x400)](),_0x17b4bf=await this[_0xc92566(0x36d)](_0x1e3897,r[_0xc92566(0xd4)][_0xc92566(0x3e4)]);this['_entities'][_0xc92566(0x245)](_0x1e3897,_0x17b4bf);}),this[_0x5ed931(0x121)][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)][_0x5ed931(0x454)])[_0x5ed931(0x24a)]((0x0,t['takeUntil'])(this[_0x5ed931(0x42b)]),(0x0,c[_0x5ed931(0xde)])(0x10))[_0x5ed931(0x1c9)](async _0x58feb6=>{const _0x3cd155=_0x5ed931;let _0x1ce2f1=_0x58feb6[_0x3cd155(0x2bb)][_0x3cd155(0x400)](),_0x5be918=await this[_0x3cd155(0x36d)](_0x1ce2f1,r[_0x3cd155(0xd4)]['UNIVER_BOARD']);this[_0x3cd155(0x2f2)][_0x3cd155(0x245)](_0x1ce2f1,_0x5be918);}),this[_0x5ed931(0x121)][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)][_0x5ed931(0x315)])[_0x5ed931(0x24a)]((0x0,t['takeUntil'])(this[_0x5ed931(0x42b)]),(0x0,c[_0x5ed931(0xde)])(0x10))['subscribe'](async _0x54a128=>{const _0xf13f2f=_0x5ed931;let _0x1972bb=_0x54a128[_0xf13f2f(0x2bb)][_0xf13f2f(0x400)](),_0x5ca739=await this[_0xf13f2f(0x36d)](_0x1972bb,r[_0xf13f2f(0xd4)][_0xf13f2f(0x315)]);this[_0xf13f2f(0x2f2)][_0xf13f2f(0x245)](_0x1972bb,_0x5ca739);}),this['_univerInstanceService'][_0x5ed931(0x34b)](r[_0x5ed931(0xd4)][_0x5ed931(0x341)])[_0x5ed931(0x24a)]((0x0,t[_0x5ed931(0x385)])(this[_0x5ed931(0x42b)]),(0x0,c['delay'])(0x10))[_0x5ed931(0x1c9)](async _0x3a9b62=>{const _0x54ccea=_0x5ed931;let _0x175192=_0x3a9b62[_0x54ccea(0x2bb)][_0x54ccea(0x400)](),_0x4bce93=await this[_0x54ccea(0x36d)](_0x175192,r[_0x54ccea(0xd4)][_0x54ccea(0x341)]);this[_0x54ccea(0x2f2)][_0x54ccea(0x245)](_0x175192,_0x4bce93);}),(0x0,t[_0x5ed931(0x1d4)])(this[_0x5ed931(0x121)][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)][_0x5ed931(0x155)]),this['_univerInstanceService'][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)][_0x5ed931(0x2b0)]),this[_0x5ed931(0x121)]['getTypeOfUnitDisposed$'](r[_0x5ed931(0xd4)]['UNIVER_SLIDE']),this['_univerInstanceService'][_0x5ed931(0x1f5)](r['UniverInstanceType'][_0x5ed931(0x454)]),this[_0x5ed931(0x121)][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)][_0x5ed931(0x315)]),this[_0x5ed931(0x121)][_0x5ed931(0x1f5)](r[_0x5ed931(0xd4)]['UNIVER_PDF']))[_0x5ed931(0x24a)]((0x0,t['takeUntil'])(this['dispose$']))[_0x5ed931(0x1c9)](_0x156546=>{const _0x19faa8=_0x5ed931;let _0x475a26=_0x156546['getUnitId'](),_0x561304=this[_0x19faa8(0x2f2)]['get'](_0x475a26);_0x561304&&(_0x561304[_0x19faa8(0x2a7)](),this[_0x19faa8(0x2f2)][_0x19faa8(0x20e)](_0x475a26));});}async[_0x313905(0x36d)](_0x16501e,_0x3ca775){const _0x520700=_0x313905;let _0x471e87=await this['_collabSessionService']['requireSession'](_0x16501e),_0x2f86c0=this[_0x520700(0x2a2)][_0x520700(0x246)](this['_getCtorByUniverInstanceType'](_0x3ca775),_0x16501e,_0x3ca775,_0x471e87);return await _0x2f86c0[_0x520700(0xb8)](),this[_0x520700(0x3e1)][_0x520700(0xb9)](_0x2f86c0),_0x2f86c0;}['_getCtorByUniverInstanceType'](_0x4890bf){const _0x30b73e=_0x313905;switch(_0x4890bf){case r[_0x30b73e(0xd4)][_0x30b73e(0x2b0)]:return L;case r[_0x30b73e(0xd4)][_0x30b73e(0x155)]:return z;case r[_0x30b73e(0xd4)][_0x30b73e(0x3e4)]:return B;case r[_0x30b73e(0xd4)][_0x30b73e(0x454)]:return V;case r[_0x30b73e(0xd4)][_0x30b73e(0x315)]:return R;case r[_0x30b73e(0xd4)][_0x30b73e(0x341)]:return H;default:throw Error('[CollaborationController]:\x20invalid\x20univer\x20type:\x20'+_0x4890bf);}}};W=b([y(0x0,(0x0,r['Inject'])(r[_0x313905(0xdf)])),y(0x1,(0x0,r[_0x313905(0x377)])(U)),y(0x2,r[_0x313905(0x21c)]),y(0x3,r[_0x313905(0xbb)])],W);var rt=_0x313905(0x413),it=_0x313905(0x37f);let at=class extends r[_0x313905(0x333)]{constructor(_0x52ed5d,_0x10d416){const _0x3fa14d=_0x313905;super(),this[_0x3fa14d(0x121)]=_0x52ed5d,this[_0x3fa14d(0x2be)]=_0x10d416,this['_init']();}[_0x313905(0x32a)](){const _0xba395d=_0x313905;this[_0xba395d(0x25e)](this[_0xba395d(0x121)][_0xba395d(0x43e)][_0xba395d(0x1c9)](()=>{const _0x20833b=_0xba395d;let _0x37d60f=this[_0x20833b(0x121)][_0x20833b(0x2d9)](),_0x287543=this[_0x20833b(0x2be)][_0x20833b(0x292)](_0x20833b(0x227))??_0x20833b(0x44c);_0x37d60f instanceof r[_0x20833b(0x16a)]&&(_0x287543=_0x37d60f[_0x20833b(0x41b)]),document[_0x20833b(0x22f)]=_0x287543;}));}};at=b([y(0x0,r['IUniverInstanceService']),y(0x1,r[_0x313905(0x21c)])],at);const ot=(0x0,r['createIdentifier'])(_0x313905(0x2c1));let G=class{constructor(_0x16fc87,_0x29ff9e,_0x5306d1){const _0x4ce492=_0x313905;this[_0x4ce492(0x2f1)]=_0x16fc87,this[_0x4ce492(0x2be)]=_0x29ff9e,this[_0x4ce492(0x121)]=_0x5306d1;}[_0x313905(0x14c)](){const _0x2dd16c=_0x313905;return this[_0x2dd16c(0x13d)]()['attachment']??{};}async['saveAttachment'](_0x52ce2f){const _0x390d86=_0x313905;let _0x7eb611=this[_0x390d86(0x14c)]();if(st(_0x52ce2f,_0x7eb611),_0x7eb611[_0x390d86(0x10d)])return _0x7eb611[_0x390d86(0x10d)](_0x52ce2f);let _0x4e3e87=await this['_upload'](_0x52ce2f);return{'id':_0x4e3e87,'name':_0x52ce2f['name'],'mimeType':_0x52ce2f[_0x390d86(0x133)],'size':_0x52ce2f[_0x390d86(0x187)],'sourceType':r['ImageSourceType'][_0x390d86(0x1e3)],'source':_0x4e3e87};}async[_0x313905(0x159)](_0x4dda47,_0x48a365){const _0x5774ba=_0x313905;if(_0x48a365!==r[_0x5774ba(0x2f4)][_0x5774ba(0x1e3)])return _0x4dda47;let _0x375c77=(await this[_0x5774ba(0x2f1)][_0x5774ba(0xe5)](this[_0x5774ba(0x3c1)]()[_0x5774ba(0x183)](_0x5774ba(0x1e7),_0x4dda47)))[_0x5774ba(0x13e)];if(_0x375c77[_0x5774ba(0x287)]&&_0x375c77['error'][_0x5774ba(0x2c3)]!==o[_0x5774ba(0x18b)]['OK'])throw _0x375c77['error'];if(!_0x375c77[_0x5774ba(0x201)])throw Error(_0x5774ba(0x3bf));return(0x0,r[_0x5774ba(0x3bc)])(_0x375c77[_0x5774ba(0x201)],this[_0x5774ba(0x2c8)]());}async[_0x313905(0x250)](_0x42e7eb){const _0x5f4caa=_0x313905;let _0x4e5169=this[_0x5f4caa(0x121)][_0x5f4caa(0x2d9)](),_0x4ae806=_0x4e5169==null?void 0x0:_0x4e5169[_0x5f4caa(0x400)]();if(!_0x4ae806)throw Error(_0x5f4caa(0x3cd));let _0x5542f4=new FormData();_0x5542f4[_0x5f4caa(0x1b3)](_0x5f4caa(0x3a5),_0x42e7eb);let _0x5d6988=this[_0x5f4caa(0x337)]()+'?size='+_0x42e7eb[_0x5f4caa(0x187)][_0x5f4caa(0x27c)]()+'&source='+o[_0x5f4caa(0x39c)][_0x5f4caa(0xd8)]+_0x5f4caa(0x358)+encodeURIComponent(_0x4ae806),_0x5708c7=(await this['_httpService'][_0x5f4caa(0x31d)](_0x5d6988,{'body':_0x5542f4}))[_0x5f4caa(0x13e)]['FileId'];if(typeof _0x5708c7!=_0x5f4caa(0x116)||!_0x5708c7)throw Error(_0x5f4caa(0x18c));return _0x5708c7;}['_getUploadFileURL'](){const _0x2a3fb3=_0x313905;return this[_0x2a3fb3(0x13d)]()[_0x2a3fb3(0x21a)]??_0x2a3fb3(0xca);}[_0x313905(0x3c1)](){const _0x580fd3=_0x313905;return this[_0x580fd3(0x13d)]()['signUrlServerUrl']??_0x580fd3(0x21d);}[_0x313905(0x2c8)](){const _0x670556=_0x313905;let _0x35cd87=this['_getConfig']();return _0x35cd87['downloadEndpointUrl']?_0x35cd87[_0x670556(0x357)]:typeof location<'u'?location[_0x670556(0x428)]:_0x35cd87[_0x670556(0x21a)]??'';}[_0x313905(0x13d)](){const _0xc51134=_0x313905;return this['_configService'][_0xc51134(0x292)](_0xc51134(0x2f6))??{};}};G=b([y(0x0,(0x0,r['Inject'])(e[_0x313905(0x1a4)])),y(0x1,(0x0,r[_0x313905(0x377)])(r['IConfigService'])),y(0x2,(0x0,r['Inject'])(r[_0x313905(0xbb)]))],G);function st(_0x1b007c,_0x1f7309){const _0x727224=_0x313905;var _0x5613f1;if(_0x1f7309[_0x727224(0x19b)]!=null&&_0x1b007c[_0x727224(0x187)]>_0x1f7309[_0x727224(0x19b)])throw Error(_0x727224(0x3a4));if((_0x5613f1=_0x1f7309[_0x727224(0x174)])!=null&&_0x5613f1[_0x727224(0x1f6)]&&!_0x1f7309[_0x727224(0x174)][_0x727224(0xb3)](_0x3f498b=>_0x1b007c['type']===_0x3f498b||_0x1b007c[_0x727224(0x41b)][_0x727224(0x1ec)](_0x3f498b)||_0x3f498b[_0x727224(0x1ec)]('/*')&&_0x1b007c[_0x727224(0x133)][_0x727224(0x1c4)](_0x3f498b['slice'](0x0,-0x1))))throw Error(_0x727224(0xd0));}let K=class{constructor(_0x10c9aa,_0x6c0076,_0x4f75b1){const _0x4a742e=_0x313905;this[_0x4a742e(0x2be)]=_0x10c9aa,this[_0x4a742e(0x2f1)]=_0x6c0076,this[_0x4a742e(0x291)]=_0x4f75b1,this[_0x4a742e(0xb8)]();}[_0x313905(0xb8)](){const _0x2f4417=_0x313905;this[_0x2f4417(0x2f1)][_0x2f4417(0x3b4)]({'priority':0x1,'interceptor':(_0x258e1b,_0x4b00c5)=>_0x4b00c5(_0x258e1b)[_0x2f4417(0x24a)]((0x0,t[_0x2f4417(0x1b6)])(async _0x26e986=>{const _0x5a678f=_0x2f4417;let _0x21dd64=_0x26e986;if(_0x21dd64[_0x5a678f(0x265)]===0x191){if(typeof window>'u')throw Error('[AuthServerService]:\x20you\x20should\x20provide\x20authentication\x20info\x20on\x20Node.js.');if(window[_0x5a678f(0x178)](this[_0x5a678f(0x291)]['t']('collaboration-client.auth.needGotoLoginAlert'))){let _0x17f1c8=window[_0x5a678f(0x324)](window[_0x5a678f(0xcd)][_0x5a678f(0x450)]);window[_0x5a678f(0xcd)][_0x5a678f(0x450)]=this[_0x5a678f(0x3d2)]()+'?url='+_0x17f1c8;}}return _0x21dd64;}))});}[_0x313905(0x3d2)](){const _0x4937cc=_0x313905;let _0x28dcaa=this['_configService'][_0x4937cc(0x292)](m);return(_0x28dcaa==null?void 0x0:_0x28dcaa[_0x4937cc(0x440)])??'/universer-api/oidc/authpage';}};K=b([y(0x0,r[_0x313905(0x21c)]),y(0x1,(0x0,r['Inject'])(e['HTTPService'])),y(0x2,(0x0,r[_0x313905(0x377)])(r['LocaleService']))],K);let q=class extends r[_0x313905(0x333)]{constructor(_0x287f74,_0x5a533a){const _0x24ed1e=_0x313905;super(),this['_HTTPService']=_0x287f74,this[_0x24ed1e(0x2be)]=_0x5a533a,_(this,_0x24ed1e(0x25a),!0x1),this[_0x24ed1e(0x145)]();}[_0x313905(0x145)](){const _0x39e09a=_0x313905;let _0x7af417=this;this['disposeWithMe'](this[_0x39e09a(0x332)][_0x39e09a(0x3b4)]({'priority':0x3e7,'interceptor':(0x0,e[_0x39e09a(0x257)])({'isMatch'(_0x5934d3){const _0x155f76=_0x39e09a;var _0x382166;if(_0x5934d3['method']==='POST'&&(_0x382166=_0x5934d3['requestParams'])!=null&&_0x382166['body']){let {objectID:_0x172a7f,objectType:_0x17cec4}=_0x5934d3['requestParams'][_0x155f76(0x13e)]||{};if(!_0x172a7f||_0x17cec4===void 0x0)return!0x1;let _0x3801cf=_0x7af417[_0x155f76(0x1e2)]()+'/'+_0x17cec4+_0x155f76(0x328)+encodeURIComponent(_0x172a7f)+_0x155f76(0x31c);if(_0x5934d3[_0x155f76(0x201)]===_0x3801cf)return!0x0;}return!0x1;},'getParamsFromRequest'(_0x3824ef){var _0x1bdc4a;return(_0x1bdc4a=_0x3824ef['requestParams'])==null?void 0x0:_0x1bdc4a['body'];},'mergeParamsToRequest'(_0x754b98,_0x5767aa){const _0x107c9f=_0x39e09a;let _0x3a98f5=_0x7af417['_getAPIPrefixPath']()+_0x107c9f(0x2ff),_0x19560c=_0x754b98[_0x107c9f(0x1a0)]((_0x3ce21f,_0xd794a6)=>{const _0x60efb4=_0x107c9f;let {unitID:_0x295405,objectID:_0x16e44a,objectType:_0xea2dff,actions:_0x36853c}=_0xd794a6;return _0x3ce21f[_0x295405]||(_0x3ce21f[_0x295405]=Object[_0x60efb4(0x3c2)](null)),_0x3ce21f[_0x295405][_0x16e44a]||(_0x3ce21f[_0x295405][_0x16e44a]={'objectID':_0x16e44a,'objectType':_0xea2dff,'actions':[]}),_0x3ce21f[_0x295405][_0x16e44a][_0x60efb4(0x465)]['push'](..._0x36853c),_0x3ce21f;},Object[_0x107c9f(0x3c2)](null)),_0x3d972d=[];for(let _0x13f93d in _0x19560c)for(let _0x1146d7 in _0x19560c[_0x13f93d]){let {actions:_0x24bef3,objectType:_0x21b1f8}=_0x19560c[_0x13f93d][_0x1146d7],_0x5e4a1b=[...new Set(_0x24bef3)];_0x3d972d['push']({'unitID':_0x13f93d,'objectID':_0x1146d7,'objectType':_0x21b1f8,'actions':_0x5e4a1b});}return new e[(_0x107c9f(0x21e))](_0x107c9f(0xee),_0x3a98f5,{'headers':_0x5767aa[_0x107c9f(0x272)],'withCredentials':_0x5767aa[_0x107c9f(0x242)],'responseType':_0x5767aa[_0x107c9f(0x3dc)],'body':{'requests':_0x3d972d}});}},{'distributeResult'(_0x53f698,_0x13bf19){const _0x2c939a=_0x39e09a;let {objectActions:_0x17d701}=_0x53f698;return _0x13bf19[_0x2c939a(0x180)](_0x376e87=>{const _0x22e6cd=_0x2c939a;let {unitID:_0x3d5f12,objectID:_0x59c473,actions:_0x14ed66}=_0x376e87,_0x4381cf=_0x17d701[_0x22e6cd(0x3d1)](_0xf5ff0a=>_0xf5ff0a['unitID']===_0x3d5f12&&_0xf5ff0a['objectID']===_0x59c473);return{'config':_0x376e87,'result':{'actions':_0x14ed66[_0x22e6cd(0x180)](_0xf885fb=>_0x4381cf==null?void 0x0:_0x4381cf[_0x22e6cd(0x465)]['find'](_0x2908b9=>_0x2908b9['action']===_0xf885fb))[_0x22e6cd(0x1c5)](_0x46d49e=>!!_0x46d49e),'error':_0x53f698[_0x22e6cd(0x287)]}};});}})}));}[_0x313905(0x1e2)](){const _0x1bb417=_0x313905;let _0x339682=this[_0x1bb417(0x2be)][_0x1bb417(0x292)](m);return(_0x339682==null?void 0x0:_0x339682[_0x1bb417(0x24e)])??_0x1bb417(0x273);}async[_0x313905(0x3c2)](_0xbbacaa){const _0x1fbdda=_0x313905;let _0x249534=this[_0x1fbdda(0x1e2)]()+'/'+_0xbbacaa[_0x1fbdda(0x39f)]+_0x1fbdda(0x1a8);return(await this[_0x1fbdda(0x332)][_0x1fbdda(0x31d)](_0x249534,{'body':_0xbbacaa}))[_0x1fbdda(0x13e)][_0x1fbdda(0x151)]||'';}async['list'](_0xfdc431){const _0x2e95da=_0x313905;let _0x554a7f=this['_getAPIPrefixPath']()+_0x2e95da(0xd9);return(await this['_HTTPService'][_0x2e95da(0x31d)](_0x554a7f,{'body':_0xfdc431}))['body'][_0x2e95da(0x110)];}async[_0x313905(0x28c)](_0x3a2638){const _0x18e5c5=_0x313905;var _0x11ab07;let _0x1deb26=this['_getAPIPrefixPath']()+'/'+_0x3a2638[_0x18e5c5(0x39f)]+_0x18e5c5(0x328)+encodeURIComponent(_0x3a2638[_0x18e5c5(0x151)]),_0x5dd5d6=await this[_0x18e5c5(0x332)]['put'](_0x1deb26,{'body':_0x3a2638});if((_0x5dd5d6==null||(_0x11ab07=_0x5dd5d6[_0x18e5c5(0x13e)])==null||(_0x11ab07=_0x11ab07[_0x18e5c5(0x287)])==null?void 0x0:_0x11ab07[_0x18e5c5(0x2c3)])!==0x1)throw Error(_0x18e5c5(0x264));}async[_0x313905(0x3a6)](_0x412859){const _0x139e5a=_0x313905;let _0x46093b=this[_0x139e5a(0x1e2)]()+'/'+_0x412859[_0x139e5a(0x39f)]+_0x139e5a(0x328)+encodeURIComponent(_0x412859[_0x139e5a(0x151)])+_0x139e5a(0x31c);return(await this[_0x139e5a(0x332)][_0x139e5a(0x31d)](_0x46093b,{'body':_0x412859}))[_0x139e5a(0x13e)][_0x139e5a(0x465)];}async[_0x313905(0x219)](_0x3cc6da){const _0x8b15cb=_0x313905;let _0xaf8151=this[_0x8b15cb(0x1e2)]()+_0x8b15cb(0x2ff);return(await this['_HTTPService'][_0x8b15cb(0x31d)](_0xaf8151,{'body':{'requests':_0x3cc6da}}))[_0x8b15cb(0x13e)][_0x8b15cb(0xf2)];}async['listRoles'](_0x2d8780){const _0x1aefb7=_0x313905;let _0xd8b3d6=this[_0x1aefb7(0x1e2)]()+'/'+_0x2d8780['objectType']+'/role',_0x58533c=await this['_HTTPService'][_0x1aefb7(0x31d)](_0xd8b3d6,{'body':_0x2d8780});return{'roles':_0x58533c[_0x1aefb7(0x13e)][_0x1aefb7(0x3e7)],'actions':_0x58533c['body'][_0x1aefb7(0x465)]};}async[_0x313905(0x444)](_0x3decb7){const _0x3c4817=_0x313905;let _0x4875ff=this[_0x3c4817(0x1e2)]()+_0x3c4817(0x451);await this[_0x3c4817(0x332)][_0x3c4817(0x20e)](_0x4875ff,{'params':{'collaboratorID':_0x3decb7[_0x3c4817(0x1a3)],'objectID':_0x3decb7[_0x3c4817(0x151)],'unitID':_0x3decb7[_0x3c4817(0x181)]}});}async['updateCollaborator'](_0x905d44){const _0x14be9f=_0x313905;let _0x68dde=this[_0x14be9f(0x1e2)]()+_0x14be9f(0x451);await this['_HTTPService'][_0x14be9f(0x2fc)](_0x68dde,{'body':_0x905d44});}async[_0x313905(0x3eb)](_0x1e2fe2){const _0x19058d=_0x313905;let _0x5d3b4c=this[_0x19058d(0x1e2)]()+_0x19058d(0x451);await this[_0x19058d(0x332)][_0x19058d(0x31d)](_0x5d3b4c,{'body':_0x1e2fe2});}async[_0x313905(0x38a)](_0x49642c){const _0x152589=_0x313905;let _0x1cf1cd=this['_getAPIPrefixPath']()+_0x152589(0x451),_0x2409d6=await this[_0x152589(0x332)][_0x152589(0xe5)](_0x1cf1cd,{'params':{'objectID':_0x49642c[_0x152589(0x151)],'unitID':_0x49642c['unitID']}});return this['setCfgEnableObjInherit'](_0x2409d6[_0x152589(0x13e)][_0x152589(0x294)]??!0x1),_0x2409d6[_0x152589(0x13e)][_0x152589(0x38e)];}async[_0x313905(0x340)](_0x54bb64){const _0x471a7e=_0x313905;let _0x2a5365=this[_0x471a7e(0x1e2)]()+_0x471a7e(0x451);await this['_HTTPService']['put'](_0x2a5365,{'body':_0x54bb64});}[_0x313905(0x1b0)](_0x55995a){const _0x26bb93=_0x313905;this[_0x26bb93(0x25a)]=_0x55995a;}[_0x313905(0x2d7)](){const _0x5e3133=_0x313905;return this[_0x5e3133(0x25a)];}};q=b([y(0x0,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)])),y(0x1,(0x0,r['Inject'])(r[_0x313905(0x21c)]))],q);function ct(_0x146968){const _0x102d04=_0x313905;let _0x191eff=atob(_0x146968),_0x504170=new Uint8Array(_0x191eff[_0x102d04(0x1f6)]);for(let _0xfe7bd2=0x0;_0xfe7bd2<_0x191eff['length'];_0xfe7bd2++)_0x504170[_0xfe7bd2]=_0x191eff[_0x102d04(0x28f)](_0xfe7bd2);return _0x504170;}function lt(_0x39eabb){const _0x23ec69=_0x313905;let _0x5bfef1='';for(let _0x45e42f=0x0;_0x45e42f<_0x39eabb[_0x23ec69(0x1f6)];_0x45e42f++)_0x5bfef1+=String[_0x23ec69(0x14b)](_0x39eabb[_0x45e42f]);return btoa(_0x5bfef1);}function ut(_0x37176e,_0x17300e){const _0x462850=_0x313905;let _0x25fd50=ct(_0x17300e),_0x5147bb=(0x0,f[_0x462850(0x2b1)])(0x10),_0x4a3f6a=(0x0,d['cbc'])(_0x25fd50,_0x5147bb)[_0x462850(0x301)]((0x0,f[_0x462850(0x453)])(_0x37176e));return lt((0x0,f[_0x462850(0x27e)])(_0x5147bb,_0x4a3f6a));}function dt(){const _0x5e48ff=_0x313905;let _0x15d65c=(0x0,u[_0x5e48ff(0x43c)])()[_0x5e48ff(0xdd)];if(typeof window<'u'&&window[_0x5e48ff(0xcd)]!==void 0x0&&_0x15d65c){let _0x184005={'time':Math[_0x5e48ff(0x3e2)](Date[_0x5e48ff(0x445)]()/0x3e8),'domain':location[_0x5e48ff(0x3c7)]};return ut(JSON['stringify'](_0x184005),_0x15d65c);}}let J=class{constructor(_0x5d09a2){const _0x3e07d8=_0x313905;this[_0x3e07d8(0x2f1)]=_0x5d09a2,this[_0x3e07d8(0x326)]();}[_0x313905(0x326)](){const _0x33a02a=_0x313905;this[_0x33a02a(0x2f1)][_0x33a02a(0x3b4)]({'interceptor':(_0x362c6c,_0x2980b8)=>{const _0x232fca=_0x33a02a;let _0x1b03ec=dt();return _0x1b03ec&&_0x362c6c[_0x232fca(0x272)][_0x232fca(0x245)](_0x232fca(0x1d3),_0x1b03ec),_0x2980b8(_0x362c6c);}});}};J=b([y(0x0,(0x0,r['Inject'])(e[_0x313905(0x1a4)]))],J);let Y=class extends r[_0x313905(0x380)]{constructor(_0x48e80b,_0x1b1aa7,_0x369a6c){const _0x384037=_0x313905;super(),this[_0x384037(0x1c1)]=_0x48e80b,this[_0x384037(0x2bc)]=_0x1b1aa7,this['_localCacheService']=_0x369a6c,_(this,_0x384037(0x462),new t[(_0x384037(0x34f))](null)),_(this,_0x384037(0x32c),new t[(_0x384037(0xb7))]()),_(this,_0x384037(0xce),this[_0x384037(0x462)]['asObservable']()),_(this,_0x384037(0x306),this[_0x384037(0x32c)]['asObservable']());}['dispose'](){const _0x9e0aff=_0x313905;super[_0x9e0aff(0x2a7)](),this[_0x9e0aff(0x32c)]['complete'](),this[_0x9e0aff(0x462)][_0x9e0aff(0x395)]();}['loadUnitOfRevision'](_0x559a3c,_0x45ffb5,_0x50ecdf,_0x501216,_0xaee0e8){const _0x44653b=_0x313905;return this[_0x44653b(0x129)](_0x559a3c,_0x45ffb5,_0x50ecdf,_0x501216,_0xaee0e8);}['loadUnit'](_0x5ad1af,_0x312bbb,_0x1571d1,_0x58fef4){return this['_loadUnit'](_0x5ad1af,_0x312bbb,void 0x0,_0x1571d1,_0x58fef4);}async['_loadUnit'](_0x281253,_0x38289f,_0x1ab608,_0xb17ed4,_0x2aabfb){const _0x264ce1=_0x313905;this[_0x264ce1(0x462)]['next']({'unitId':_0x281253,'type':_0x38289f,'subUnitId':_0xb17ed4});let _0x562816=_0x1ab608;if(_0x562816===void 0x0){var _0x5cd8c9;let _0xe61fbe=await((_0x5cd8c9=this[_0x264ce1(0x268)])==null?void 0x0:_0x5cd8c9[_0x264ce1(0x2da)](_0x281253));_0x562816=_0xe61fbe&&(_0xe61fbe[_0x264ce1(0x38c)]||_0xe61fbe[_0x264ce1(0x23a)][_0x264ce1(0x1f6)]!==0x0)?_0xe61fbe[_0x264ce1(0x36a)]:0x0,_0x562816===0x0&&this['_logService'][_0x264ce1(0x426)](_0x264ce1(0x23b),_0x264ce1(0x452));}return this[_0x264ce1(0x27f)](_0x281253,_0x38289f,_0x562816,_0xb17ed4,_0x2aabfb);}async[_0x313905(0x27f)](_0x46d2b7,_0x218238,_0x1f37ef,_0x50be75,_0x22d338){const _0x4deab7=_0x313905;let _0x4f7d19=null;switch(_0x218238){case r[_0x4deab7(0xd4)]['UNIVER_SHEET']:_0x4f7d19=await this[_0x4deab7(0x2bc)]['loadSheet'](_0x46d2b7,_0x1f37ef,_0x22d338,{'initialSubUnitId':_0x50be75});break;case r[_0x4deab7(0xd4)]['UNIVER_DOC']:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0xf1)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r[_0x4deab7(0xd4)][_0x4deab7(0x3e4)]:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0x253)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r['UniverInstanceType'][_0x4deab7(0x454)]:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0x1df)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r[_0x4deab7(0xd4)][_0x4deab7(0x315)]:_0x4f7d19=await this[_0x4deab7(0x2bc)][_0x4deab7(0x220)](_0x46d2b7,_0x1f37ef,_0x22d338);break;case r['UniverInstanceType'][_0x4deab7(0x341)]:_0x4f7d19=await this['_snapshotService']['loadPdf'](_0x46d2b7,_0x1f37ef,_0x22d338);break;default:this['_logService'][_0x4deab7(0x287)](_0x4deab7(0x23b),_0x4deab7(0x355));}return _0x4f7d19&&this[_0x4deab7(0x32c)][_0x4deab7(0xb9)](_0x4f7d19),_0x4f7d19;}};Y=b([y(0x0,r[_0x313905(0x26a)]),y(0x1,(0x0,r[_0x313905(0x377)])(n['SnapshotService'])),y(0x2,(0x0,r[_0x313905(0xe6)])(C))],Y);let X=class{constructor(_0x4523e7,_0x1afb05,_0x28b344){const _0x5f9fbe=_0x313905;this[_0x5f9fbe(0x2f1)]=_0x4523e7,this[_0x5f9fbe(0x2be)]=_0x1afb05,this[_0x5f9fbe(0x121)]=_0x28b344,_(this,_0x5f9fbe(0x17a),0x0),_(this,_0x5f9fbe(0x397),new t[(_0x5f9fbe(0xb7))]()),_(this,_0x5f9fbe(0x45a),this['_change$']),_(this,'_imageSourceCache',new Map());}[_0x313905(0x230)](_0x567ae7){const _0x27ac34=_0x313905;this[_0x27ac34(0x17a)]=_0x567ae7,this[_0x27ac34(0x397)]['next'](_0x567ae7);}['getImageSourceCache'](_0x20b67c,_0x48852f){const _0x1d8f11=_0x313905;if(_0x48852f===r[_0x1d8f11(0x2f4)][_0x1d8f11(0x29e)]){let _0x1b7ce3=new Image();return _0x1b7ce3['src']=_0x20b67c,_0x1b7ce3;}return this[_0x1d8f11(0x350)]['get'](_0x20b67c);}[_0x313905(0x353)](_0x5b9363,_0x1c6bf9,_0x3cadfe){const _0x1e003c=_0x313905;_0x1c6bf9!==r['ImageSourceType']['BASE64']&&_0x3cadfe!=null&&this[_0x1e003c(0x350)][_0x1e003c(0x245)](_0x5b9363,_0x3cadfe);}async[_0x313905(0x23f)](_0x4b9d86){const _0x2885bf=_0x313905;try{let _0x3f0f03=this[_0x2885bf(0x457)](this[_0x2885bf(0x3c1)](),''+_0x4b9d86),_0x1c91ba=(await this[_0x2885bf(0x2f1)][_0x2885bf(0xe5)](_0x3f0f03))[_0x2885bf(0x13e)];if(_0x1c91ba[_0x2885bf(0x287)]&&_0x1c91ba[_0x2885bf(0x287)]['code']===o[_0x2885bf(0x18b)]['OK']){let _0x39d54e=(0x0,r['resolveWithBasePath'])(_0x1c91ba['url'],this[_0x2885bf(0x2c8)]());return Promise[_0x2885bf(0xd3)](_0x39d54e);}return Promise[_0x2885bf(0xd7)](_0x1c91ba[_0x2885bf(0x287)]);}catch(_0x2d9b63){return Promise[_0x2885bf(0xd7)](_0x2d9b63);}}async[_0x313905(0x19c)](_0x194107){const _0x19ee9f=_0x313905;let _0x778a8='';if(!p[_0x19ee9f(0x1cc)][_0x19ee9f(0x310)](_0x194107[_0x19ee9f(0x133)]))return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r[_0x19ee9f(0x396)][_0x19ee9f(0x2cc)]));if(_0x194107[_0x19ee9f(0x187)]>(0x0,p['getDrawingImageAllowSize'])())return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r[_0x19ee9f(0x396)][_0x19ee9f(0x37b)]));try{let _0x372076=new FormData();_0x372076[_0x19ee9f(0x1b3)]('file',_0x194107);let _0x568742=this[_0x19ee9f(0x121)]['getFocusedUnit'](),_0x2a7eaa=_0x568742==null?void 0x0:_0x568742[_0x19ee9f(0x400)]();if(!_0x2a7eaa)throw Error(_0x19ee9f(0x316));let _0x12df8f=this[_0x19ee9f(0x337)]()+_0x19ee9f(0x33d)+_0x194107['size']['toString']()+_0x19ee9f(0x3fe)+o['FileSource'][_0x19ee9f(0xd8)]+_0x19ee9f(0x358)+encodeURIComponent(_0x2a7eaa),_0x147545={'body':_0x372076},_0x5376a1=(await this['_httpService'][_0x19ee9f(0x31d)](_0x12df8f,_0x147545))[_0x19ee9f(0x13e)];if(typeof _0x5376a1['FileId']!=_0x19ee9f(0x116))return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r['ImageUploadStatusType'][_0x19ee9f(0x2b6)]));_0x778a8=_0x5376a1[_0x19ee9f(0x297)];}catch{return this[_0x19ee9f(0x1ce)](),Promise[_0x19ee9f(0xd7)](Error(r[_0x19ee9f(0x396)][_0x19ee9f(0x2b6)]));}return new Promise((_0xa44194,_0x2c64c2)=>{const _0x10c560=_0x19ee9f;let _0x45b5ec=new FileReader();_0x45b5ec[_0x10c560(0x234)](_0x194107),_0x45b5ec[_0x10c560(0x10e)]=_0xe7e4e5=>{const _0x38dfca=_0x10c560;var _0x28a673;let _0x44e2c4=(_0x28a673=_0xe7e4e5['target'])==null?void 0x0:_0x28a673[_0x38dfca(0x31f)];_0x44e2c4==null?(this[_0x38dfca(0x1ce)](),_0x2c64c2(Error(r['ImageUploadStatusType'][_0x38dfca(0x2b6)]))):(_0xa44194({'imageId':(0x0,r[_0x38dfca(0x1b7)])(0x6),'imageSourceType':r[_0x38dfca(0x2f4)][_0x38dfca(0x1e3)],'source':_0x778a8,'base64Cache':_0x44e2c4,'status':r[_0x38dfca(0x396)][_0x38dfca(0x26f)]}),this[_0x38dfca(0x1ce)]());};});}[_0x313905(0x337)](){const _0x59d386=_0x313905;let _0x3e5dce=this[_0x59d386(0x2be)][_0x59d386(0x292)](m);return(_0x3e5dce==null?void 0x0:_0x3e5dce['uploadFileServerUrl'])??_0x59d386(0xca);}['_getSignURL'](){const _0x299ed2=_0x313905;let _0x2bdea4=this[_0x299ed2(0x2be)][_0x299ed2(0x292)](m);return(_0x2bdea4==null?void 0x0:_0x2bdea4['signUrlServerUrl'])??_0x299ed2(0x21d);}[_0x313905(0x2c8)](){const _0xbf6e42=_0x313905;let _0x5284b6=this['_configService'][_0xbf6e42(0x292)](m);return(_0x5284b6==null?void 0x0:_0x5284b6[_0xbf6e42(0x357)])??location['origin'];}[_0x313905(0x457)](_0x7d053f,_0x34fec3){const _0x3d47b6=_0x313905;return _0x7d053f[_0x3d47b6(0x183)](_0x3d47b6(0x1e7),_0x34fec3);}[_0x313905(0x1ce)](){const _0x5f3e62=_0x313905;--this[_0x5f3e62(0x17a)],this[_0x5f3e62(0x397)][_0x5f3e62(0xb9)](this[_0x5f3e62(0x17a)]);}};X=b([y(0x0,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)])),y(0x1,r['IConfigService']),y(0x2,(0x0,r[_0x313905(0x377)])(r[_0x313905(0xbb)]))],X);let Z=class{constructor(_0x13f6d9,_0x474ecd){const _0x1ff318=_0x313905;this[_0x1ff318(0x2be)]=_0x13f6d9,this[_0x1ff318(0x332)]=_0x474ecd;}[_0x313905(0x1e2)](){const _0x171a66=_0x313905;let _0x4ed023=this['_configService'][_0x171a66(0x292)](m);return(_0x4ed023==null?void 0x0:_0x4ed023[_0x171a66(0x24e)])??_0x171a66(0x273);}async['list'](_0x2b1a80){const _0x2c8406=_0x313905;let _0x585250=this[_0x2c8406(0x1e2)]()+_0x2c8406(0x451);return{'list':[{'title':_0x2c8406(0x179),'mentions':(await this[_0x2c8406(0x332)][_0x2c8406(0xe5)](_0x585250,{'params':{'objectID':_0x2b1a80[_0x2c8406(0x39a)],'unitID':_0x2b1a80['unitId']}}))['body']['collaborators']['map'](_0x54a004=>({'objectId':_0x54a004['id'],'name':_0x54a004[_0x2c8406(0x1f4)]['name'],'metadata':{'icon':_0x54a004[_0x2c8406(0x1f4)][_0x2c8406(0x39d)]},'label':_0x54a004[_0x2c8406(0x1f4)][_0x2c8406(0x41b)],'objectType':r[_0x2c8406(0x3ce)][_0x2c8406(0x2c6)]})),'metadata':{},'type':r[_0x2c8406(0x3ce)][_0x2c8406(0x2c6)]}]};}};Z=b([y(0x0,(0x0,r[_0x313905(0x377)])(r['IConfigService'])),y(0x1,(0x0,r[_0x313905(0x377)])(e[_0x313905(0x1a4)]))],Z);let Q=class extends r['RxDisposable']{constructor(_0x863df7,_0x1cf3c4,_0x5e06eb,_0x3511c0,_0x2d0a05,_0x3e686a){const _0x33a9b3=_0x313905;super(),this['_injector']=_0x863df7,this[_0x33a9b3(0x121)]=_0x1cf3c4,this['_permissionService']=_0x5e06eb,this['_authzIoService']=_0x3511c0,this[_0x33a9b3(0x240)]=_0x2d0a05,this[_0x33a9b3(0x37e)]=_0x3e686a,_(this,_0x33a9b3(0x3b9),new Set()),this[_0x33a9b3(0x25e)](()=>this[_0x33a9b3(0x3b9)][_0x33a9b3(0x1d5)]()),this[_0x33a9b3(0x25e)](ft(this['_univerInstanceService'])[_0x33a9b3(0x1c9)](({unitId:_0x27bb2a})=>this[_0x33a9b3(0x3b9)][_0x33a9b3(0x20e)](_0x27bb2a))),this[_0x33a9b3(0x42d)](),this[_0x33a9b3(0x278)](),[r['UniverInstanceType'][_0x33a9b3(0x2b0)],r[_0x33a9b3(0xd4)][_0x33a9b3(0x3e4)],r['UniverInstanceType'][_0x33a9b3(0x315)],r[_0x33a9b3(0xd4)][_0x33a9b3(0x454)]][_0x33a9b3(0xf3)](_0x3a36a2=>{const _0x390c9b=_0x33a9b3;this[_0x390c9b(0x25e)](this['_univerInstanceService'][_0x390c9b(0x1f5)](_0x3a36a2)['subscribe'](_0x22b3fd=>{const _0x1fd0b8=_0x390c9b;this[_0x1fd0b8(0x3b9)][_0x1fd0b8(0x24b)](_0x22b3fd[_0x1fd0b8(0x400)]()),this['_injector']['get'](r[_0x1fd0b8(0x2a6)])[_0x1fd0b8(0x368)](_0x22b3fd[_0x1fd0b8(0x400)]());}));});}[_0x313905(0x278)](){const _0x527b53=_0x313905;let _0x42d88c=async(_0x5b0af4,_0x25aa9c)=>{const _0x2c2422=_0x16c4;let _0x3c9781=await this[_0x2c2422(0x240)][_0x2c2422(0x3e0)](_0x5b0af4);this[_0x2c2422(0x3fa)]||this[_0x2c2422(0x3b9)]['has'](_0x5b0af4)||!this[_0x2c2422(0x121)][_0x2c2422(0x3b1)](_0x5b0af4)||_0x3c9781['event$'][_0x2c2422(0x24a)]((0x0,c[_0x2c2422(0x1c5)])(_0x35a37e=>_0x35a37e[_0x2c2422(0x280)]===n['CollaborationEvent'][_0x2c2422(0x158)]),(0x0,c[_0x2c2422(0x385)])((0x0,t['merge'])(this[_0x2c2422(0x42b)],this[_0x2c2422(0x121)]['unitDisposed$']['pipe']((0x0,c[_0x2c2422(0x1c5)])(_0x52125d=>_0x52125d[_0x2c2422(0x400)]()===_0x5b0af4)))))[_0x2c2422(0x1c9)](_0x5c62f6=>{const _0x2ac058=_0x2c2422;let {reason:_0x36c8f7}=_0x5c62f6['data'];this['_collaborationUIEventService'][_0x2ac058(0x117)]({'id':_0x2ac058(0x1eb),'data':_0x36c8f7}),this[_0x2ac058(0x3b9)][_0x2ac058(0x24b)](_0x5b0af4),this[_0x2ac058(0x2a2)][_0x2ac058(0xe5)](r['ObjectPermissionService'])['clearUnit'](_0x5b0af4);let _0x460434=pt(_0x25aa9c);_0x460434!=null&&this[_0x2ac058(0x170)](_0x5b0af4,_0x460434,o['UnitAction']['Edit'],!0x1),this[_0x2ac058(0x240)][_0x2ac058(0x44a)](_0x5b0af4);});};ft(this[_0x527b53(0x121)])['pipe']((0x0,c[_0x527b53(0x1c5)])(({unitId:_0x59fa63})=>!(0x0,r[_0x527b53(0x419)])(_0x59fa63)),(0x0,c['takeUntil'])(this[_0x527b53(0x42b)]))[_0x527b53(0x1c9)](({type:_0x4ccd2c,unitId:_0x4f052a})=>{const _0x3fe4fa=_0x527b53;_0x42d88c(_0x4f052a,_0x4ccd2c)['catch'](_0x3d1477=>this[_0x3fe4fa(0x2a2)][_0x3fe4fa(0xe5)](r['ILogService'])[_0x3fe4fa(0x287)](_0x3d1477));});}[_0x313905(0x42d)](){const _0x27bbc5=_0x313905;let _0x4b2184=async(_0x4480f8,_0x2942fd)=>{const _0x3e359e=_0x16c4;let _0x63dfb3=await this[_0x3e359e(0x240)][_0x3e359e(0x3e0)](_0x4480f8);if(!(this[_0x3e359e(0x3fa)]||this[_0x3e359e(0x3b9)][_0x3e359e(0x3ae)](_0x4480f8)||!this[_0x3e359e(0x121)][_0x3e359e(0x3b1)](_0x4480f8))){if(_0x2942fd===r['UniverInstanceType'][_0x3e359e(0x155)]){let _0x2f7c46=this['_injector'][_0x3e359e(0xe5)](a[_0x3e359e(0x125)]);await _0x2f7c46['initWorkbookPermissionChange'](_0x4480f8),_0x63dfb3['event$']['pipe']((0x0,c[_0x3e359e(0x1c5)])(_0x3516e4=>_0x3516e4[_0x3e359e(0x280)]===n[_0x3e359e(0x2ce)][_0x3e359e(0x21f)]),(0x0,c[_0x3e359e(0x385)])((0x0,t[_0x3e359e(0x1d4)])(this[_0x3e359e(0x42b)],_0x63dfb3[_0x3e359e(0x2ed)][_0x3e359e(0x24a)]((0x0,c[_0x3e359e(0x1c5)])(_0xba07af=>_0xba07af[_0x3e359e(0x280)]===n['CollaborationEvent'][_0x3e359e(0x158)])),this[_0x3e359e(0x121)][_0x3e359e(0x3d5)]['pipe']((0x0,c[_0x3e359e(0x1c5)])(_0xdc669a=>_0xdc669a[_0x3e359e(0x400)]()===_0x4480f8)))))[_0x3e359e(0x1c9)](_0x3b7da8=>{const _0x12a9da=_0x3e359e;let {objectId:_0x28ad72}=_0x3b7da8[_0x12a9da(0x335)];_0x28ad72===_0x4480f8?_0x2f7c46[_0x12a9da(0x45d)](_0x4480f8):_0x2f7c46[_0x12a9da(0x2a0)](_0x4480f8,_0x28ad72);});}else _0x63dfb3[_0x3e359e(0x2ed)]['pipe']((0x0,c[_0x3e359e(0x1c5)])(_0x5a0a92=>_0x5a0a92[_0x3e359e(0x280)]===n[_0x3e359e(0x2ce)][_0x3e359e(0x21f)]),(0x0,c['takeUntil'])((0x0,t['merge'])(this[_0x3e359e(0x42b)],_0x63dfb3['event$'][_0x3e359e(0x24a)]((0x0,c['filter'])(_0x194273=>_0x194273['eventID']===n['CollaborationEvent'][_0x3e359e(0x158)])),this[_0x3e359e(0x121)]['unitDisposed$'][_0x3e359e(0x24a)]((0x0,c[_0x3e359e(0x1c5)])(_0x27e080=>_0x27e080['getUnitId']()===_0x4480f8)))))[_0x3e359e(0x1c9)](()=>{const _0x4b82d6=_0x3e359e;this[_0x4b82d6(0x1dd)](_0x4480f8,_0x2942fd)[_0x4b82d6(0x3bb)](_0x41c087=>this[_0x4b82d6(0x2a2)][_0x4b82d6(0xe5)](r[_0x4b82d6(0x26a)])[_0x4b82d6(0x287)](_0x41c087));}),await this['_refreshUnitPermission'](_0x4480f8,_0x2942fd);}};ft(this[_0x27bbc5(0x121)])[_0x27bbc5(0x24a)]((0x0,c[_0x27bbc5(0x1c5)])(({unitId:_0x1864d8})=>!(0x0,r[_0x27bbc5(0x419)])(_0x1864d8)),(0x0,c[_0x27bbc5(0x385)])(this[_0x27bbc5(0x42b)]))[_0x27bbc5(0x1c9)](({type:_0x1a924d,unitId:_0x11acb1})=>{const _0x47758a=_0x27bbc5;_0x4b2184(_0x11acb1,_0x1a924d)[_0x47758a(0x3bb)](_0x5c0602=>this['_injector'][_0x47758a(0xe5)](r[_0x47758a(0x26a)])[_0x47758a(0x287)](_0x5c0602));});}async[_0x313905(0x1dd)](_0x3d0610,_0x168965){const _0x3a593b=_0x313905;let _0x2b1db1=pt(_0x168965);if(_0x2b1db1==null)return;let _0x45a9f2=this['_injector'][_0x3a593b(0xe5)](r['ObjectPermissionService']);if(_0x45a9f2[_0x3a593b(0x2f5)]({'unitId':_0x3d0610,'objectId':_0x3d0610,'objectType':_0x2b1db1})){await _0x45a9f2[_0x3a593b(0x18f)](_0x3d0610);return;}let _0x261c39=this[_0x3a593b(0x304)](_0x3d0610,_0x2b1db1);if(!_0x261c39[_0x3a593b(0x1f6)])return;let _0x5c3e64=await this[_0x3a593b(0xdc)][_0x3a593b(0x3a6)]({'objectID':_0x3d0610,'objectType':_0x2b1db1,'unitID':_0x3d0610,'actions':_0x261c39[_0x3a593b(0x180)](({action:_0x5a6a09})=>_0x5a6a09)});this['_disposed']||this[_0x3a593b(0x3b9)][_0x3a593b(0x3ae)](_0x3d0610)||!this['_univerInstanceService']['getUnit'](_0x3d0610)||_0x5c3e64[_0x3a593b(0xf3)](_0x11ff91=>{const _0x8123c=_0x3a593b;let _0x13ebca=_0x11ff91[_0x8123c(0x18e)],_0x2adcc6=_0x11ff91[_0x8123c(0x3a6)];_0x13ebca!=null&&_0x2adcc6!=null&&_0x261c39[_0x8123c(0x1c5)](_0x25a805=>_0x25a805['action']===_0x13ebca)['forEach'](_0x53a11f=>this['_permissionService'][_0x8123c(0x43b)](_0x53a11f['id'],_0x2adcc6));});}[_0x313905(0x304)](_0x29e272,_0x4b1a74){const _0x48101f=_0x313905;let _0x1afa74=[];return this['_permissionService'][_0x48101f(0xfe)]()[_0x48101f(0xf3)]((_0x4c4623,_0x7fec9e)=>{const _0x48f139=_0x48101f;_0x4c4623['subscribe'](_0x3dd2d7=>{const _0x35fec6=_0x16c4;_0x3dd2d7['type']===_0x4b1a74&&_0x35fec6(0x39a)in _0x3dd2d7&&_0x3dd2d7['unitId']===_0x29e272&&(!(_0x35fec6(0x1fd)in _0x3dd2d7)||_0x3dd2d7['objectId']===_0x29e272)&&_0x1afa74[_0x35fec6(0x101)]({'id':_0x7fec9e,'action':_0x3dd2d7[_0x35fec6(0x2cb)]});})[_0x48f139(0xbd)]();}),_0x1afa74;}[_0x313905(0x170)](_0x41f4bf,_0x1cdb89,_0x385b2f,_0x3262c1){const _0x38cfb2=_0x313905;this[_0x38cfb2(0x3ed)][_0x38cfb2(0xfe)]()[_0x38cfb2(0xf3)]((_0x5745cf,_0x958ade)=>{const _0x616cc4=_0x38cfb2;let _0x22da7f=!0x1;_0x5745cf[_0x616cc4(0x1c9)](_0x21b147=>{const _0x3e7293=_0x616cc4;_0x22da7f=_0x21b147[_0x3e7293(0x133)]===_0x1cdb89&&_0x21b147[_0x3e7293(0x2cb)]===_0x385b2f&&_0x3e7293(0x39a)in _0x21b147&&_0x21b147[_0x3e7293(0x39a)]===_0x41f4bf&&(!('objectId'in _0x21b147)||_0x21b147[_0x3e7293(0x1fd)]===_0x41f4bf);})[_0x616cc4(0xbd)](),_0x22da7f&&this['_permissionService']['updatePermissionPoint'](_0x958ade,_0x3262c1);});}};Q=b([y(0x0,(0x0,r[_0x313905(0x377)])(r['Injector'])),y(0x1,r[_0x313905(0xbb)]),y(0x2,r[_0x313905(0x132)]),y(0x3,r[_0x313905(0x456)]),y(0x4,(0x0,r[_0x313905(0x377)])(U)),y(0x5,(0x0,r[_0x313905(0x377)])(v))],Q);function ft(_0x2f0975){const _0x4c0989=_0x313905;return(0x0,t['merge'])(...[r[_0x4c0989(0xd4)][_0x4c0989(0x155)],r[_0x4c0989(0xd4)][_0x4c0989(0x2b0)],r[_0x4c0989(0xd4)][_0x4c0989(0x3e4)],r[_0x4c0989(0xd4)][_0x4c0989(0x454)],r[_0x4c0989(0xd4)][_0x4c0989(0x315)]][_0x4c0989(0x180)](_0x16cc56=>_0x2f0975[_0x4c0989(0x34b)](_0x16cc56)[_0x4c0989(0x24a)]((0x0,c[_0x4c0989(0x180)])(_0x6d78ac=>({'type':_0x16cc56,'unitId':_0x6d78ac[_0x4c0989(0x2bb)][_0x4c0989(0x400)]()})))));}function pt(_0x38cab0){const _0x1b8253=_0x313905;switch(_0x38cab0){case r[_0x1b8253(0xd4)]['UNIVER_SHEET']:return o[_0x1b8253(0x11c)][_0x1b8253(0x16a)];case r[_0x1b8253(0xd4)][_0x1b8253(0x2b0)]:return o['UnitObject']['Document'];case r[_0x1b8253(0xd4)][_0x1b8253(0x3e4)]:return o[_0x1b8253(0x11c)][_0x1b8253(0x23c)];case r[_0x1b8253(0xd4)][_0x1b8253(0x454)]:return o[_0x1b8253(0x11c)][_0x1b8253(0x259)];case r[_0x1b8253(0xd4)][_0x1b8253(0x315)]:return o[_0x1b8253(0x11c)]['Base'];default:return;}}let mt=class{constructor(_0x57b0fe,_0x43ef5){const _0x384e6c=_0x313905;this[_0x384e6c(0x2be)]=_0x57b0fe,this[_0x384e6c(0x2f1)]=_0x43ef5;}async[_0x313905(0x25c)](_0x298712,_0x2c500d){const _0x1d3291=_0x313905;var _0x4329e8;let {unitID:_0x13748d,type:_0x56914f,revision:_0x35a02e=0x0}=_0x2c500d,_0x1fc97b=this[_0x1d3291(0x122)]()+'/'+_0x56914f+'/unit/'+_0x13748d+_0x1d3291(0x2af)+_0x35a02e,_0x42badd=(await this['_httpService']['get'](_0x1fc97b))[_0x1d3291(0x13e)],_0x1f34b5=(_0x4329e8=_0x42badd[_0x1d3291(0x3b8)])==null?void 0x0:_0x4329e8[_0x1d3291(0x42a)];if(_0x1f34b5){let _0x2b1d1f=_0x1f34b5==null?void 0x0:_0x1f34b5[_0x1d3291(0x22b)];_0x1f34b5['originalMeta']=n[_0x1d3291(0x458)]['encode']((0x0,n[_0x1d3291(0x213)])(_0x2b1d1f)),Object['entries'](_0x1f34b5['sheets'])[_0x1d3291(0xf3)](([,_0x52a175])=>{const _0x419510=_0x1d3291;let _0x46814f=_0x52a175[_0x419510(0x22b)];_0x52a175[_0x419510(0x22b)]=n['textEncoder']['encode']((0x0,n[_0x419510(0x213)])(_0x46814f));});}return _0x42badd;}async[_0x313905(0x251)](_0x10770d,_0x5b5139){const _0x129313=_0x313905;let {unitID:_0x23cbe2,type:_0x230c55,blockID:_0x13b846}=_0x5b5139,_0x30b290=this[_0x129313(0x1c7)]()+'/'+_0x230c55+_0x129313(0x166)+_0x23cbe2+_0x129313(0x1e5)+_0x13b846;return(await this['_httpService']['get'](_0x30b290))['body'];}async['getDeserializedSheetBlock'](_0x7afc96,_0x3488d8){const _0xde0d65=_0x313905;let {unitID:_0xb56d83,type:_0x835108,blockID:_0x2a1be3}=_0x3488d8,_0x2c56f4=this[_0xde0d65(0x1c7)]()+_0xde0d65(0x1e5)+_0x835108+_0xde0d65(0x166)+_0xb56d83+_0xde0d65(0x1e5)+_0x2a1be3;return(await this[_0xde0d65(0x2f1)][_0xde0d65(0xe5)](_0x2c56f4))[_0xde0d65(0x13e)];}async[_0x313905(0x156)](_0x3eb476,_0x241cd7){const _0x1ae736=_0x313905;let {unitID:_0x12f274,type:_0x19b3a5,from:_0x3e9b2a,to:_0x33d5db}=_0x241cd7,_0x420b3f=this['_getAPIPrefix']()+'/'+_0x19b3a5+_0x1ae736(0x166)+_0x12f274+_0x1ae736(0x314)+_0x3e9b2a+_0x1ae736(0x365)+_0x33d5db;return(await this[_0x1ae736(0x2f1)]['get'](_0x420b3f))[_0x1ae736(0x13e)];}[_0x313905(0x122)](){const _0x40f360=_0x313905;return this[_0x40f360(0x2be)]['getConfig'](_0x40f360(0x336))??this[_0x40f360(0x1c7)]();}['_getAPIPrefix'](){const _0x174bce=_0x313905;let _0xb627bf=this['_configService'][_0x174bce(0x292)](m);return(_0xb627bf==null?void 0x0:_0xb627bf['snapshotServerUrl'])??'/universer-api/snapshot';}async[_0x313905(0x2b9)](_0x1bd98f,_0x4f6c67){const _0x40c51c=_0x313905;let _0x28463d=_0x40c51c(0x439)+_0x4f6c67[_0x40c51c(0x133)]+_0x40c51c(0x166)+_0x4f6c67[_0x40c51c(0x181)]+_0x40c51c(0x14d);return(await this[_0x40c51c(0x2f1)][_0x40c51c(0xe5)](_0x28463d,{'params':{'resourceId':JSON[_0x40c51c(0x321)](_0x4f6c67[_0x40c51c(0x26e)])}}))[_0x40c51c(0x13e)];}[_0x313905(0x2c2)](){const _0x493f56=_0x313905;throw Error(_0x493f56(0x320));}[_0x313905(0x13c)](){const _0x4042a8=_0x313905;throw Error(_0x4042a8(0x320));}[_0x313905(0x23d)](){const _0xe922f6=_0x313905;throw Error(_0xe922f6(0x320));}[_0x313905(0x13f)](){const _0x552454=_0x313905;throw Error(_0x552454(0x320));}[_0x313905(0x270)](){const _0x482e3b=_0x313905;throw Error(_0x482e3b(0x320));}[_0x313905(0x3f1)](){throw Error('This\x20method\x20should\x20not\x20be\x20called\x20on\x20the\x20client\x20side!');}};mt=b([y(0x0,r['IConfigService']),y(0x1,(0x0,r[_0x313905(0x377)])(e['HTTPService']))],mt);let ht=class extends r[_0x313905(0x24d)]{constructor(_0x3bf0fd,_0x58e688,_0x182f0a,_0x4aa511,_0x27f2cd,_0x37f7ac){const _0x5d22d6=_0x313905;super(_0x3bf0fd,_0x58e688,_0x182f0a,_0x4aa511),this[_0x5d22d6(0x1a7)]=_0x27f2cd,this[_0x5d22d6(0x1c1)]=_0x37f7ac;}[_0x313905(0xff)](_0x25f42,_0x5776df){const _0x4ce962=_0x313905;let _0xfca70b=this[_0x4ce962(0x2fe)](_0x25f42);if(_0xfca70b)try{let _0x3a1e0b=this[_0x4ce962(0x148)](_0xfca70b,_0x5776df);this[_0x4ce962(0x3e9)](_0x25f42,_0x3a1e0b);}catch(_0x3ef1b8){this[_0x4ce962(0x1c1)]['error'](_0x4ce962(0xae),_0x3ef1b8),this[_0x4ce962(0x1e4)](_0x25f42);}let _0xa417d4=this[_0x4ce962(0xe9)](_0x25f42);if(_0xa417d4)try{let _0x14315b=this[_0x4ce962(0x148)](_0xa417d4,_0x5776df,!0x0);this[_0x4ce962(0x20c)](_0x25f42,_0x14315b);}catch(_0x1ac17c){this[_0x4ce962(0x1c1)][_0x4ce962(0x287)](_0x1ac17c),this[_0x4ce962(0x2fa)](_0x25f42);}}[_0x313905(0x1e4)](_0x583d92){const _0x133cf5=_0x313905;let _0x569787=this[_0x133cf5(0x2fe)](_0x583d92);_0x569787&&(_0x569787[_0x133cf5(0x1f6)]=0x0,this[_0x133cf5(0x150)]());}[_0x313905(0x2fa)](_0x221a1a){const _0x834ed1=_0x313905;let _0x453ae1=this[_0x834ed1(0xe9)](_0x221a1a);_0x453ae1&&(_0x453ae1[_0x834ed1(0x1f6)]=0x0,this[_0x834ed1(0x150)]());}[_0x313905(0x3e9)](_0x4b1cdb,_0x3d53cb){const _0x3e56c0=_0x313905;this[_0x3e56c0(0xf5)][_0x3e56c0(0x245)](_0x4b1cdb,_0x3d53cb),this['_updateStatus']();}[_0x313905(0x20c)](_0x5c103e,_0x2c62af){this['_redoStacks']['set'](_0x5c103e,_0x2c62af),this['_updateStatus']();}[_0x313905(0x148)](_0x506918,_0x458ff1,_0x427f91=!0x1){const _0x47b4d4=_0x313905;if(!_0x506918['length'])return[];let _0x36a210=[],_0x3e9471=_0x458ff1,_0x33d923=_0x458ff1['type']===r[_0x47b4d4(0xd4)][_0x47b4d4(0x2b0)]?this[_0x47b4d4(0x121)]['getUnit'](_0x458ff1[_0x47b4d4(0x181)],r[_0x47b4d4(0xd4)][_0x47b4d4(0x2b0)]):null,_0x4a6a38=_0x33d923?{'id':_0x33d923[_0x47b4d4(0x400)](),'documentStyle':{},'tableSource':r['Tools'][_0x47b4d4(0x33b)](_0x33d923[_0x47b4d4(0xf7)]()['tableSource']??{})}:null;for(let _0xbb3443=_0x506918[_0x47b4d4(0x1f6)]-0x1;_0xbb3443>=0x0;_0xbb3443--){let {unitID:_0x10b36d,undoMutations:_0x38b6a2,redoMutations:_0x1133a1}=_0x506918[_0xbb3443],_0x5d9834=_0x427f91?_0x1133a1:_0x38b6a2,_0x3f60e5=this[_0x47b4d4(0x119)](_0x3e9471,_0x5d9834);if((0x0,n[_0x47b4d4(0x1d7)])(_0x3f60e5)){this[_0x47b4d4(0x1c1)][_0x47b4d4(0x287)](_0x47b4d4(0xae),_0x47b4d4(0xb6),_0x3f60e5);break;}let _0x205309=_0x427f91?_0x38b6a2:_0x1133a1,_0x45ab20=this[_0x47b4d4(0x119)](_0x3f60e5[_0x47b4d4(0x2e3)],_0x205309);if((0x0,n['isTransformMutationsWithChangesetFailure'])(_0x45ab20)){this['_logService'][_0x47b4d4(0x287)]('[CollaborationUndoRedoService]',_0x47b4d4(0xb6),_0x45ab20);break;}let _0x1b9856=_0x427f91?_0x45ab20:_0x3f60e5,_0x1f2b2a=_0x427f91?_0x3f60e5:_0x45ab20;_0x3e9471=_0x3f60e5[_0x47b4d4(0x2e3)],_0x4a6a38&&=this[_0x47b4d4(0x217)](_0x4a6a38,_0x3f60e5['m2Prime'],_0x45ab20[_0x47b4d4(0x248)]),_0x36a210[_0x47b4d4(0x101)]({'unitID':_0x10b36d,'undoMutations':_0x1b9856[_0x47b4d4(0x248)],'redoMutations':_0x1f2b2a[_0x47b4d4(0x248)]});}return _0x36a210[_0x47b4d4(0x153)]();}[_0x313905(0x119)](_0x3633a8,_0x4e94ad){const _0xc74aa6=_0x313905;if(_0x3633a8[_0xc74aa6(0x133)]!==r[_0xc74aa6(0xd4)][_0xc74aa6(0x2b0)]||_0x4e94ad['some'](_0x199546=>_0x199546['id']!==i[_0xc74aa6(0x1d0)]['id']))return this['_transformService'][_0xc74aa6(0x356)](_0x3633a8,_0x4e94ad);let _0x32821b=r[_0xc74aa6(0x40c)][_0xc74aa6(0x33b)](_0x4e94ad),_0x402dbf=[];for(let _0xe4f0c3 of _0x3633a8['mutations']){let _0x418672={..._0x3633a8,'mutations':[_0xe4f0c3]},_0x31b0a8=[];for(let _0x4f7d36 of _0x32821b){_0x418672=this[_0xc74aa6(0x1d6)](_0x418672,[_0x4f7d36]);let _0xf2adb6=this['_transformService'][_0xc74aa6(0x356)](_0x418672,[_0x4f7d36]);if((0x0,n[_0xc74aa6(0x1d7)])(_0xf2adb6))return _0xf2adb6;_0x418672=_0xf2adb6[_0xc74aa6(0x2e3)],_0x31b0a8[_0xc74aa6(0x101)](..._0xf2adb6[_0xc74aa6(0x248)]);}_0x32821b=_0x31b0a8,_0x402dbf[_0xc74aa6(0x101)](..._0x418672[_0xc74aa6(0x23a)]);}return{'m2Prime':_0x32821b,'c1Prime':{..._0x3633a8,'mutations':_0x402dbf}};}['_rebaseParagraphHistory'](_0x259ebd,_0x4a5407){const _0xde7baa=_0x313905;let _0xc45f39=new Map(),_0xb3ccaa=r[_0xde7baa(0x23e)][_0xde7baa(0x133)][_0xde7baa(0xab)](_0x4a5407[0x0]['params'][_0xde7baa(0x465)]);if(_0xb3ccaa[_0xde7baa(0x1bf)](null,_0x342f69=>{const _0x28c816=_0xde7baa;if(_0x342f69['et']!==_0x28c816(0x267))return;let _0x4eadb8=JSON[_0x28c816(0x321)](_0xb3ccaa[_0x28c816(0x376)]()),_0xe7031b=_0xc45f39[_0x28c816(0xe5)](_0x4eadb8)??new Map(),_0x573a49=0x0;for(let _0x4d1478 of _0x342f69['e']){if(_0x4d1478['t']===r[_0x28c816(0x208)]['RETAIN']){var _0x3316fb;for(let _0x3c85fd of((_0x3316fb=_0x4d1478[_0x28c816(0x13e)])==null?void 0x0:_0x3316fb[_0x28c816(0x2a5)])??[])_0xe7031b[_0x28c816(0x245)](_0x573a49+_0x3c85fd[_0x28c816(0x30d)],{'paragraph':_0x3c85fd,'replace':_0x4d1478[_0x28c816(0x389)]===r[_0x28c816(0x182)][_0x28c816(0x19e)]});}_0x4d1478['t']!==r[_0x28c816(0x208)][_0x28c816(0x2c0)]&&(_0x573a49+=_0x4d1478['len']);}_0xe7031b[_0x28c816(0x187)]>0x0&&_0xc45f39[_0x28c816(0x245)](_0x4eadb8,_0xe7031b);}),_0xc45f39['size']===0x0)return _0x259ebd;let _0x135a9c=r['Tools'][_0xde7baa(0x33b)](_0x259ebd);for(let _0x3a627a of _0x135a9c['mutations']){if(_0x3a627a['id']!==i[_0xde7baa(0x1d0)]['id'])continue;let _0x5713e2=r[_0xde7baa(0x23e)][_0xde7baa(0x133)]['readCursor'](_0x3a627a['params']['actions']);_0x5713e2['traverse'](null,_0x50c15a=>{const _0x5e59be=_0xde7baa;if(_0x50c15a['et']!==_0x5e59be(0x267))return;let _0x2b5ed1=JSON[_0x5e59be(0x321)](_0x5713e2[_0x5e59be(0x376)]()),_0x19eddb=_0xc45f39['get'](_0x2b5ed1);if(!(_0x19eddb!=null&&_0x19eddb[_0x5e59be(0x187)]))return;let _0x51430c=0x0;for(let _0x48ab0a of _0x50c15a['e']){if(_0x48ab0a['t']===r['TextXActionType']['RETAIN']&&_0x48ab0a['coverType']===r[_0x5e59be(0x182)][_0x5e59be(0x19e)]){var _0x424b8e;for(let _0x286160 of((_0x424b8e=_0x48ab0a[_0x5e59be(0x13e)])==null?void 0x0:_0x424b8e[_0x5e59be(0x2a5)])??[]){var _0x54e3eb;let _0x51d555=(_0x54e3eb=_0x48ab0a['oldBody'])==null||(_0x54e3eb=_0x54e3eb[_0x5e59be(0x2a5)])==null?void 0x0:_0x54e3eb[_0x5e59be(0x3d1)](_0x139692=>_0x139692[_0x5e59be(0x30d)]===_0x286160['startIndex']),_0x45a4a8=_0x19eddb[_0x5e59be(0xe5)](_0x51430c+_0x286160[_0x5e59be(0x30d)]);if(_0x51d555&&_0x45a4a8){this['_rebaseUnchangedAttributes'](_0x286160,_0x51d555,_0x45a4a8[_0x5e59be(0x185)],_0x45a4a8[_0x5e59be(0x183)]);let _0x4c13ac=_0x45a4a8[_0x5e59be(0x183)]?new Set([...Object[_0x5e59be(0x3a2)](_0x45a4a8['paragraph']),...Object['keys'](_0x286160)]):Object[_0x5e59be(0x3a2)](_0x45a4a8[_0x5e59be(0x185)]);for(let _0x47743f of _0x4c13ac){if(_0x47743f===_0x5e59be(0x30d)||_0x47743f===_0x5e59be(0x438))continue;let _0x18d3ff=Reflect[_0x5e59be(0xe5)](_0x286160,_0x47743f);_0x18d3ff===void 0x0?Reflect['deleteProperty'](_0x45a4a8[_0x5e59be(0x185)],_0x47743f):Reflect[_0x5e59be(0x245)](_0x45a4a8[_0x5e59be(0x185)],_0x47743f,r[_0x5e59be(0x40c)][_0x5e59be(0x33b)](_0x18d3ff));}}}}_0x48ab0a['t']!==r[_0x5e59be(0x208)][_0x5e59be(0x2c0)]&&(_0x51430c+=_0x48ab0a[_0x5e59be(0x2df)]);}});}return _0x135a9c;}[_0x313905(0x2d8)](_0xabc716,_0x420883,_0x1f9b81,_0x1daa3b){const _0x11fb57=_0x313905;let _0x3d8dc1=new Set([...Object[_0x11fb57(0x3a2)](_0xabc716),...Object[_0x11fb57(0x3a2)](_0x420883),...Object[_0x11fb57(0x3a2)](_0x1f9b81)]);for(let _0x408a9e of _0x3d8dc1){if(_0x408a9e==='startIndex'||_0x408a9e===_0x11fb57(0x438))continue;let _0x2cf544=Reflect[_0x11fb57(0xe5)](_0xabc716,_0x408a9e),_0x29b7f9=Reflect['get'](_0x420883,_0x408a9e),_0x4c4baa=Reflect['get'](_0x1f9b81,_0x408a9e);if(_0x1daa3b||_0x4c4baa!==void 0x0){if(r[_0x11fb57(0x40c)][_0x11fb57(0x41a)](_0x2cf544,_0x29b7f9))_0x4c4baa===void 0x0?(Reflect[_0x11fb57(0xe7)](_0xabc716,_0x408a9e),Reflect[_0x11fb57(0xe7)](_0x420883,_0x408a9e)):(Reflect[_0x11fb57(0x245)](_0xabc716,_0x408a9e,r[_0x11fb57(0x40c)]['deepClone'](_0x4c4baa)),Reflect[_0x11fb57(0x245)](_0x420883,_0x408a9e,r[_0x11fb57(0x40c)][_0x11fb57(0x33b)](_0x4c4baa)));else{if(r['Tools'][_0x11fb57(0xb2)](_0x2cf544)&&(r[_0x11fb57(0x40c)][_0x11fb57(0xb2)](_0x29b7f9)||_0x29b7f9===void 0x0)){let _0x3b25fe=_0x29b7f9??{};this[_0x11fb57(0x2d8)](_0x2cf544,_0x3b25fe,r[_0x11fb57(0x40c)][_0x11fb57(0xb2)](_0x4c4baa)?_0x4c4baa:{},_0x1daa3b),(_0x29b7f9!==void 0x0||Object['keys'](_0x3b25fe)[_0x11fb57(0x1f6)]>0x0)&&Reflect[_0x11fb57(0x245)](_0x420883,_0x408a9e,_0x3b25fe);}}}}}['_invertDocumentHistory'](_0x147ced,_0x4533c4,_0x4b3725){const _0x5ba4ed=_0x313905;if(_0x4533c4[_0x5ba4ed(0x1f6)]!==0x1||_0x4b3725[_0x5ba4ed(0x1f6)]!==0x1||_0x4533c4[0x0]['id']!==i['RichTextEditingMutation']['id']||_0x4b3725[0x0]['id']!==i[_0x5ba4ed(0x1d0)]['id'])return _0x147ced;let _0x556946=_0x4533c4[0x0][_0x5ba4ed(0x1a1)],_0x38bc20=_0x4b3725[0x0]['params'],_0x5689c6=this[_0x5ba4ed(0x416)](_0x556946[_0x5ba4ed(0x465)],!0x0);return r[_0x5ba4ed(0x27b)][_0x5ba4ed(0x260)](_0x5689c6)?_0x147ced:(_0x38bc20[_0x5ba4ed(0x465)]=r[_0x5ba4ed(0x27b)][_0x5ba4ed(0x3e3)](this['_filterTableActions'](_0x38bc20['actions'],!0x1),r[_0x5ba4ed(0x27b)]['invertWithDoc'](_0x5689c6,_0x147ced)),r[_0x5ba4ed(0x27b)]['apply'](_0x147ced,_0x5689c6)??_0x147ced);}[_0x313905(0x416)](_0x16e141,_0x161007){const _0x2e488e=_0x313905;let _0x4561f4=r[_0x2e488e(0x23e)][_0x2e488e(0x133)][_0x2e488e(0xab)](_0x16e141),_0x5257b5=r[_0x2e488e(0x23e)]['type'][_0x2e488e(0x269)]();return _0x4561f4['traverse'](null,_0x437f4d=>{const _0x15bb7f=_0x2e488e;let _0x2a4140=_0x4561f4[_0x15bb7f(0x376)]();if(_0x2a4140[0x0]==='tableSource'===_0x161007){for(let _0x2f75cf of Object[_0x15bb7f(0x3a2)](_0x437f4d))_0x5257b5[_0x15bb7f(0x449)](_0x2a4140,_0x2f75cf,_0x437f4d[_0x2f75cf]);}}),_0x5257b5[_0x2e488e(0xe5)]();}};ht=b([y(0x0,r[_0x313905(0xbb)]),y(0x1,r[_0x313905(0x296)]),y(0x2,r[_0x313905(0x13a)]),y(0x3,r[_0x313905(0x21c)]),y(0x4,n[_0x313905(0x3cf)]),y(0x5,r[_0x313905(0x26a)])],ht);let $=class extends r['Plugin']{constructor(_0x1fdb10=h,_0x263b84,_0x2f186f,_0x231639){const _0x579a93=_0x313905;super(),this[_0x579a93(0x3a0)]=_0x1fdb10,this[_0x579a93(0x1c1)]=_0x263b84,this[_0x579a93(0x2a2)]=_0x2f186f,this[_0x579a93(0x2be)]=_0x231639;let {..._0x594874}=(0x0,r[_0x579a93(0x1d4)])({},h,this[_0x579a93(0x3a0)]);if(!_0x594874['socketService'])throw Error(_0x579a93(0x3f0));this[_0x579a93(0x3a0)]=_0x594874,this[_0x579a93(0x2be)][_0x579a93(0x3ab)](m,_0x594874);}[_0x313905(0x3a1)](){const _0x5274fa=_0x313905;this[_0x5274fa(0x2be)][_0x5274fa(0x3ab)](r[_0x5274fa(0x142)],this[_0x5274fa(0x3a0)][_0x5274fa(0x1cb)]??[]),this[_0x5274fa(0x203)](),this['_initDependencies']();}['_registerDependencies'](){const _0x40e709=_0x313905;var _0x1887bb,_0x5c63c8;this[_0x40e709(0x2a2)][_0x40e709(0x3ae)](r[_0x40e709(0xb1)])&&this[_0x40e709(0x1c1)][_0x40e709(0x287)](_0x40e709(0x141),_0x40e709(0x2e5));let _0x5d2fad=(0x0,r[_0x40e709(0x1f7)])([[r[_0x40e709(0xb1)],{'useClass':ht}],[Qe,{'useValue':$e()}],[U],[x],[w],[K],[J],[se],[Q],[v],[Y],[Je,{'useClass':this[_0x40e709(0x3a0)][_0x40e709(0x223)]}],[n[_0x40e709(0x1dc)],{'useClass':mt}],[r[_0x40e709(0x456)],{'useClass':q}],[r[_0x40e709(0xe2)],{'useClass':X}],[ot,{'useClass':G}],[r['IMentionIOService'],{'useClass':Z}],[W],[at]],(_0x1887bb=this['_config'])==null?void 0x0:_0x1887bb[_0x40e709(0x3c5)]);if(!((_0x5c63c8=this[_0x40e709(0x3a0)])!=null&&_0x5c63c8['enableSingleActiveInstanceLock'])){let _0x4b9b4b=_0x5d2fad[_0x40e709(0x423)](([_0x5d15ac])=>_0x5d15ac===T);_0x4b9b4b!==-0x1&&_0x5d2fad[_0x40e709(0x44e)](_0x4b9b4b,0x1);}(0x0,r[_0x40e709(0x135)])(this[_0x40e709(0x2a2)],_0x5d2fad);}[_0x313905(0x173)](){const _0x4aa2cb=_0x313905;var _0x4095c9,_0x36d9ba;if(this[_0x4aa2cb(0x2a2)][_0x4aa2cb(0xe5)](e['HTTPService'])[_0x4aa2cb(0x3b4)]({'priority':0x14,'interceptor':(0x0,e[_0x4aa2cb(0x34c)])({'maxParallel':0x6})}),!((_0x4095c9=this[_0x4aa2cb(0x3a0)])!=null&&_0x4095c9['enableOfflineEditing'])){var _0x40c27b;(_0x40c27b=this[_0x4aa2cb(0x2a2)][_0x4aa2cb(0xe5)](C,r['Quantity'][_0x4aa2cb(0x1d1)]))==null||_0x40c27b['disableLocalCache']();}(_0x36d9ba=this[_0x4aa2cb(0x3a0)])!=null&&_0x36d9ba[_0x4aa2cb(0x2ba)]&&(0x0,r[_0x4aa2cb(0x2a3)])(this[_0x4aa2cb(0x2a2)],[[K]]),(0x0,r[_0x4aa2cb(0x2a3)])(this[_0x4aa2cb(0x2a2)],[[J],[W],[Q]]);}};_($,_0x313905(0x1ab),_0x313905(0x317)),_($,_0x313905(0xd6),rt),_($,'version',it),$=b([(0x0,r[_0x313905(0x16b)])(u['UniverLicensePlugin'],e['UniverNetworkPlugin'],n['UniverCollaborationPlugin']),y(0x1,r[_0x313905(0x26a)]),y(0x2,(0x0,r['Inject'])(r[_0x313905(0xdf)])),y(0x3,r['IConfigService'])],$),Object[_0x313905(0xbf)](exports,_0x313905(0x390),{'enumerable':!0x0,'get':function(){return q;}}),Object[_0x313905(0xbf)](exports,'AwaitingState',{'enumerable':!0x0,'get':function(){return j;}}),Object['defineProperty'](exports,'AwaitingWithPendingState',{'enumerable':!0x0,'get':function(){return M;}}),Object[_0x313905(0xbf)](exports,_0x313905(0xc3),{'enumerable':!0x0,'get':function(){return R;}}),Object[_0x313905(0xbf)](exports,'BoardCollaborationEntity',{'enumerable':!0x0,'get':function(){return V;}}),exports[_0x313905(0x375)]=m,exports[_0x313905(0x3c9)]=ne,Object[_0x313905(0xbf)](exports,'CollaborationAttachmentIoService',{'enumerable':!0x0,'get':function(){return G;}}),Object['defineProperty'](exports,_0x313905(0x43d),{'enumerable':!0x0,'get':function(){return W;}}),Object[_0x313905(0xbf)](exports,'CollaborationEntity',{'enumerable':!0x0,'get':function(){return I;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x32e),{'enumerable':!0x0,'get':function(){return X;}}),Object['defineProperty'](exports,_0x313905(0x226),{'enumerable':!0x0,'get':function(){return S;}}),Object['defineProperty'](exports,_0x313905(0x40b),{'enumerable':!0x0,'get':function(){return U;}}),Object['defineProperty'](exports,'CollaborationSocketService',{'enumerable':!0x0,'get':function(){return Xe;}}),exports[_0x313905(0x160)]=Ue,exports[_0x313905(0x249)]=oe,exports[_0x313905(0x347)]=v,Object['defineProperty'](exports,_0x313905(0x252),{'enumerable':!0x0,'get':function(){return ht;}}),exports['CommentService']=se,Object[_0x313905(0xbf)](exports,'ConflictState',{'enumerable':!0x0,'get':function(){return N;}}),exports[_0x313905(0x275)]=0x4e20,exports['DEFAULT_COLLAB_WEB_SOCKET_URL']=_0x313905(0x364),exports['DEFAULT_REMOTE_UNISCRIPT_EXECUTION_ENDPOINT']=_0x313905(0x327),exports[_0x313905(0x394)]=_0x313905(0x386),Object['defineProperty'](exports,_0x313905(0xaf),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x313905(0xbf)](exports,'DocCollaborationEntity',{'enumerable':!0x0,'get':function(){return L;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x309),{'enumerable':!0x0,'get':function(){return F;}}),exports['HEARTBEAT_INTERVAL_KEY']='HEARTBEAT_INTERVAL',exports['HEARTBEAT_TIMEOUT_KEY']=_0x313905(0xc0),exports[_0x313905(0x32d)]=ot,exports[_0x313905(0x3f9)]=Qe,exports[_0x313905(0x3a8)]=Je,exports[_0x313905(0x371)]=C,exports[_0x313905(0x209)]=Ge,exports[_0x313905(0x2bd)]=T,exports[_0x313905(0x16e)]=0x3e8,exports[_0x313905(0x2b3)]=_0x313905(0x16e),exports[_0x313905(0x283)]=0x1d4c0,Object[_0x313905(0xbf)](exports,_0x313905(0xc2),{'enumerable':!0x0,'get':function(){return x;}}),Object[_0x313905(0xbf)](exports,'MentionIoHttpService',{'enumerable':!0x0,'get':function(){return Z;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x33e),{'enumerable':!0x0,'get':function(){return P;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x1db),{'enumerable':!0x0,'get':function(){return H;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x3e8),{'enumerable':!0x0,'get':function(){return A;}}),exports[_0x313905(0x35c)]=_0x313905(0x144),exports[_0x313905(0x3c4)]=_0x313905(0x38f),exports['SessionStatus']=ve,Object[_0x313905(0xbf)](exports,_0x313905(0x279),{'enumerable':!0x0,'get':function(){return z;}}),Object['defineProperty'](exports,_0x313905(0x334),{'enumerable':!0x0,'get':function(){return w;}}),Object['defineProperty'](exports,_0x313905(0xe3),{'enumerable':!0x0,'get':function(){return B;}}),Object[_0x313905(0xbf)](exports,_0x313905(0x3d8),{'enumerable':!0x0,'get':function(){return mt;}}),Object['defineProperty'](exports,_0x313905(0x33c),{'enumerable':!0x0,'get':function(){return k;}}),exports[_0x313905(0x3f5)]=Se,Object['defineProperty'](exports,_0x313905(0x1bd),{'enumerable':!0x0,'get':function(){return $;}}),exports[_0x313905(0x1e1)]=$e,exports[_0x313905(0x415)]=Ke,exports[_0x313905(0x11d)]=be,exports['serializeCombRequest']=qe;
|